@nocobase/app-plugin-agents 0.1.0-beta.2 → 0.1.0-beta.4

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 (194) hide show
  1. package/CHANGELOG.md +123 -0
  2. package/README.md +30 -4
  3. package/dist/client/api/client.d.ts +3 -1
  4. package/dist/client/api/client.d.ts.map +1 -1
  5. package/dist/client/api/client.js +5 -1
  6. package/dist/client/api/client.js.map +1 -1
  7. package/dist/client/components/model-entries.d.ts +12 -3
  8. package/dist/client/components/model-entries.d.ts.map +1 -1
  9. package/dist/client/components/model-entries.js +41 -19
  10. package/dist/client/components/model-entries.js.map +1 -1
  11. package/dist/client/components/variables/variable-dialogs.d.ts +3 -2
  12. package/dist/client/components/variables/variable-dialogs.d.ts.map +1 -1
  13. package/dist/client/components/variables/variable-dialogs.js +18 -8
  14. package/dist/client/components/variables/variable-dialogs.js.map +1 -1
  15. package/dist/client/components/variables/variables-panel.d.ts.map +1 -1
  16. package/dist/client/components/variables/variables-panel.js +3 -1
  17. package/dist/client/components/variables/variables-panel.js.map +1 -1
  18. package/dist/client/lib/agents.d.ts +5 -0
  19. package/dist/client/lib/agents.d.ts.map +1 -1
  20. package/dist/client/lib/agents.js +22 -0
  21. package/dist/client/lib/agents.js.map +1 -1
  22. package/dist/client/lib/model-suggestions.d.ts +28 -0
  23. package/dist/client/lib/model-suggestions.d.ts.map +1 -0
  24. package/dist/client/lib/model-suggestions.js +44 -0
  25. package/dist/client/lib/model-suggestions.js.map +1 -0
  26. package/dist/client/locales/en-US.d.ts +14 -0
  27. package/dist/client/locales/en-US.d.ts.map +1 -1
  28. package/dist/client/locales/en-US.js +14 -0
  29. package/dist/client/locales/en-US.js.map +1 -1
  30. package/dist/client/locales/runtimes.en-US.d.ts +6 -0
  31. package/dist/client/locales/runtimes.en-US.d.ts.map +1 -1
  32. package/dist/client/locales/runtimes.en-US.js +6 -0
  33. package/dist/client/locales/runtimes.en-US.js.map +1 -1
  34. package/dist/client/locales/runtimes.zh-CN.d.ts.map +1 -1
  35. package/dist/client/locales/runtimes.zh-CN.js +6 -0
  36. package/dist/client/locales/runtimes.zh-CN.js.map +1 -1
  37. package/dist/client/locales/zh-CN.d.ts.map +1 -1
  38. package/dist/client/locales/zh-CN.js +14 -0
  39. package/dist/client/locales/zh-CN.js.map +1 -1
  40. package/dist/client/pages/agents/index.d.ts.map +1 -1
  41. package/dist/client/pages/agents/index.js +6 -6
  42. package/dist/client/pages/agents/index.js.map +1 -1
  43. package/dist/client/pages/runtimes/runner-sheet.js +11 -3
  44. package/dist/client/pages/runtimes/runner-sheet.js.map +1 -1
  45. package/dist/database/migrations/.manifest.json +20 -0
  46. package/dist/database/migrations/202610090002_ag_create_run_requests.d.ts +10 -0
  47. package/dist/database/migrations/202610090002_ag_create_run_requests.d.ts.map +1 -0
  48. package/dist/database/migrations/202610090002_ag_create_run_requests.js +105 -0
  49. package/dist/database/migrations/202610090002_ag_create_run_requests.js.map +1 -0
  50. package/dist/database/migrations/202610090003_ag_add_execution_history.d.ts +4 -0
  51. package/dist/database/migrations/202610090003_ag_add_execution_history.d.ts.map +1 -0
  52. package/dist/database/migrations/202610090003_ag_add_execution_history.js +17 -0
  53. package/dist/database/migrations/202610090003_ag_add_execution_history.js.map +1 -0
  54. package/dist/database/migrations/202610090004_ag_add_runner_workspace_usage.d.ts +9 -0
  55. package/dist/database/migrations/202610090004_ag_add_runner_workspace_usage.d.ts.map +1 -0
  56. package/dist/database/migrations/202610090004_ag_add_runner_workspace_usage.js +22 -0
  57. package/dist/database/migrations/202610090004_ag_add_runner_workspace_usage.js.map +1 -0
  58. package/dist/database/migrations/202610090005_ag_add_runner_variables.d.ts +10 -0
  59. package/dist/database/migrations/202610090005_ag_add_runner_variables.d.ts.map +1 -0
  60. package/dist/database/migrations/202610090005_ag_add_runner_variables.js +36 -0
  61. package/dist/database/migrations/202610090005_ag_add_runner_variables.js.map +1 -0
  62. package/dist/database/migrations/202610100001_ag_index_run_event_types.d.ts +4 -0
  63. package/dist/database/migrations/202610100001_ag_index_run_event_types.d.ts.map +1 -0
  64. package/dist/database/migrations/202610100001_ag_index_run_event_types.js +17 -0
  65. package/dist/database/migrations/202610100001_ag_index_run_event_types.js.map +1 -0
  66. package/dist/package.json +1 -1
  67. package/dist/server/composition.d.ts +6 -1
  68. package/dist/server/composition.d.ts.map +1 -1
  69. package/dist/server/composition.js +6 -1
  70. package/dist/server/composition.js.map +1 -1
  71. package/dist/server/core/agents/agent.service.d.ts.map +1 -1
  72. package/dist/server/core/agents/agent.service.js +4 -1
  73. package/dist/server/core/agents/agent.service.js.map +1 -1
  74. package/dist/server/core/consultations/consultation.service.d.ts.map +1 -1
  75. package/dist/server/core/consultations/consultation.service.js +5 -2
  76. package/dist/server/core/consultations/consultation.service.js.map +1 -1
  77. package/dist/server/core/conversations/conversation.service.d.ts.map +1 -1
  78. package/dist/server/core/conversations/conversation.service.js +5 -5
  79. package/dist/server/core/conversations/conversation.service.js.map +1 -1
  80. package/dist/server/core/runs/claim.d.ts +4 -1
  81. package/dist/server/core/runs/claim.d.ts.map +1 -1
  82. package/dist/server/core/runs/claim.js +46 -2
  83. package/dist/server/core/runs/claim.js.map +1 -1
  84. package/dist/server/core/runs/execution-view.d.ts +10 -0
  85. package/dist/server/core/runs/execution-view.d.ts.map +1 -0
  86. package/dist/server/core/runs/execution-view.js +25 -0
  87. package/dist/server/core/runs/execution-view.js.map +1 -0
  88. package/dist/server/core/runs/execution.d.ts +13 -0
  89. package/dist/server/core/runs/execution.d.ts.map +1 -0
  90. package/dist/server/core/runs/execution.js +85 -0
  91. package/dist/server/core/runs/execution.js.map +1 -0
  92. package/dist/server/core/runs/index.d.ts +4 -2
  93. package/dist/server/core/runs/index.d.ts.map +1 -1
  94. package/dist/server/core/runs/index.js +3 -1
  95. package/dist/server/core/runs/index.js.map +1 -1
  96. package/dist/server/core/runs/lifecycle.d.ts.map +1 -1
  97. package/dist/server/core/runs/lifecycle.js +29 -2
  98. package/dist/server/core/runs/lifecycle.js.map +1 -1
  99. package/dist/server/core/runs/ports.d.ts +20 -0
  100. package/dist/server/core/runs/ports.d.ts.map +1 -1
  101. package/dist/server/core/runs/ports.js.map +1 -1
  102. package/dist/server/core/runs/preview.d.ts.map +1 -1
  103. package/dist/server/core/runs/preview.js +2 -0
  104. package/dist/server/core/runs/preview.js.map +1 -1
  105. package/dist/server/core/runs/run-requests.d.ts +217 -0
  106. package/dist/server/core/runs/run-requests.d.ts.map +1 -0
  107. package/dist/server/core/runs/run-requests.js +471 -0
  108. package/dist/server/core/runs/run-requests.js.map +1 -0
  109. package/dist/server/core/runs/run.service.d.ts +62 -7
  110. package/dist/server/core/runs/run.service.d.ts.map +1 -1
  111. package/dist/server/core/runs/run.service.js +209 -38
  112. package/dist/server/core/runs/run.service.js.map +1 -1
  113. package/dist/server/core/runs/run.store.d.ts +7 -1
  114. package/dist/server/core/runs/run.store.d.ts.map +1 -1
  115. package/dist/server/core/runs/run.store.js +33 -0
  116. package/dist/server/core/runs/run.store.js.map +1 -1
  117. package/dist/server/core/runs/runner-view.d.ts +4 -3
  118. package/dist/server/core/runs/runner-view.d.ts.map +1 -1
  119. package/dist/server/core/runs/runner-view.js +7 -3
  120. package/dist/server/core/runs/runner-view.js.map +1 -1
  121. package/dist/server/core/runs/transitions.d.ts.map +1 -1
  122. package/dist/server/core/runs/transitions.js +3 -0
  123. package/dist/server/core/runs/transitions.js.map +1 -1
  124. package/dist/server/core/variables/variable.service.d.ts +18 -3
  125. package/dist/server/core/variables/variable.service.d.ts.map +1 -1
  126. package/dist/server/core/variables/variable.service.js +130 -38
  127. package/dist/server/core/variables/variable.service.js.map +1 -1
  128. package/dist/server/kernel/errors.d.ts +1 -1
  129. package/dist/server/kernel/errors.d.ts.map +1 -1
  130. package/dist/server/kernel/errors.js +1 -0
  131. package/dist/server/kernel/errors.js.map +1 -1
  132. package/dist/server/kernel/events.d.ts +23 -8
  133. package/dist/server/kernel/events.d.ts.map +1 -1
  134. package/dist/server/kernel/events.js.map +1 -1
  135. package/dist/server/routes/admin.d.ts.map +1 -1
  136. package/dist/server/routes/admin.js +36 -12
  137. package/dist/server/routes/admin.js.map +1 -1
  138. package/dist/server/routes/index.d.ts.map +1 -1
  139. package/dist/server/routes/index.js +5 -0
  140. package/dist/server/routes/index.js.map +1 -1
  141. package/dist/server/routes/run-requests.d.ts +6 -0
  142. package/dist/server/routes/run-requests.d.ts.map +1 -0
  143. package/dist/server/routes/run-requests.js +216 -0
  144. package/dist/server/routes/run-requests.js.map +1 -0
  145. package/dist/server/routes/runners/runner.d.ts.map +1 -1
  146. package/dist/server/routes/runners/runner.js +21 -3
  147. package/dist/server/routes/runners/runner.js.map +1 -1
  148. package/dist/server/routes/schemas.d.ts +29 -2
  149. package/dist/server/routes/schemas.d.ts.map +1 -1
  150. package/dist/server/routes/schemas.js +208 -2
  151. package/dist/server/routes/schemas.js.map +1 -1
  152. package/dist/server/runners/index.d.ts +1 -0
  153. package/dist/server/runners/index.d.ts.map +1 -1
  154. package/dist/server/runners/index.js +1 -0
  155. package/dist/server/runners/index.js.map +1 -1
  156. package/dist/server/runners/runner.service.d.ts +3 -3
  157. package/dist/server/runners/runner.service.d.ts.map +1 -1
  158. package/dist/server/runners/runner.service.js +13 -8
  159. package/dist/server/runners/runner.service.js.map +1 -1
  160. package/dist/server/runners/runner.store.d.ts +7 -1
  161. package/dist/server/runners/runner.store.d.ts.map +1 -1
  162. package/dist/server/runners/runner.store.js +69 -4
  163. package/dist/server/runners/runner.store.js.map +1 -1
  164. package/dist/server/runners/sweeper.d.ts +5 -0
  165. package/dist/server/runners/sweeper.d.ts.map +1 -1
  166. package/dist/server/runners/sweeper.js +4 -2
  167. package/dist/server/runners/sweeper.js.map +1 -1
  168. package/dist/server/runners/workspaces.d.ts +30 -0
  169. package/dist/server/runners/workspaces.d.ts.map +1 -0
  170. package/dist/server/runners/workspaces.js +135 -0
  171. package/dist/server/runners/workspaces.js.map +1 -0
  172. package/dist/server/tokens.d.ts +3 -2
  173. package/dist/server/tokens.d.ts.map +1 -1
  174. package/dist/server/tokens.js +1 -0
  175. package/dist/server/tokens.js.map +1 -1
  176. package/dist/server/vendor/just-bash.js +117 -117
  177. package/dist/shared/agents.d.ts +2 -0
  178. package/dist/shared/agents.d.ts.map +1 -1
  179. package/dist/shared/agents.js.map +1 -1
  180. package/dist/shared/runners.d.ts +47 -1
  181. package/dist/shared/runners.d.ts.map +1 -1
  182. package/dist/shared/runners.js.map +1 -1
  183. package/dist/shared/runs.d.ts +123 -0
  184. package/dist/shared/runs.d.ts.map +1 -1
  185. package/dist/shared/runs.js +15 -0
  186. package/dist/shared/runs.js.map +1 -1
  187. package/dist/shared/variables.d.ts +10 -0
  188. package/dist/shared/variables.d.ts.map +1 -1
  189. package/dist/shared/variables.js +5 -1
  190. package/dist/shared/variables.js.map +1 -1
  191. package/package.json +11 -11
  192. package/skills/nocobase-app-plugin-agents/references/extension-points.md +3 -2
  193. package/skills/nocobase-app-plugin-agents/references/runners.md +8 -0
  194. package/skills/nocobase-app-plugin-agents/references/verification-and-troubleshooting.md +4 -0
@@ -1,16 +1,16 @@
1
1
  import { createRequire as __createRequire } from "node:module";
2
2
  const require = __createRequire(import.meta.url);
3
- var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __esm=(fn3,res,err)=>function(){if(err)throw err[0];try{return fn3&&(res=(0,fn3[__getOwnPropNames(fn3)[0]])(fn3=0)),res}catch(e8){throw err=[e8],e8}};var __commonJS=(cb,mod)=>function(){try{return mod||(0,cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports}catch(e8){throw mod=0,e8}};var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to3,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to3,key)&&key!==except&&__defProp(to3,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to3};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod));import{createRequire as createRequire2}from"node:module";function f(t8,n10,e8){if(!Number.isSafeInteger(t8)||t8<0||!Number.isSafeInteger(n10)||n10<0||t8>n10)throw new RangeError(`${e8}: byte conversion limit exceeded (${n10} bytes)`)}function x(t8){let n10=0;for(let e8=0;e8<t8.length;e8++){let o13=t8.charCodeAt(e8);if(o13<=127)n10++;else if(o13<=2047)n10+=2;else if(o13>=55296&&o13<=56319&&e8+1<t8.length){let r7=t8.charCodeAt(e8+1);r7>=56320&&r7<=57343?(n10+=4,e8++):n10+=3}else n10+=3}return n10}function a2(t8,n10=d){let e8=t8;if(!e8)return e8;f(e8.length,n10,"UTF-8 decode");let o13=!1;for(let i22=0;i22<e8.length;i22++){let c18=e8.charCodeAt(i22);if(c18>255)return e8;c18>127&&(o13=!0)}if(!o13)return e8;let r7=new Uint8Array(e8.length);for(let i22=0;i22<e8.length;i22++)r7[i22]=e8.charCodeAt(i22);try{return u2.decode(r7)}catch{return e8}}function l2(t8,n10=d){if(!t8)return t8;f(x(t8),n10,"UTF-8 encode");let e8=y.encode(t8),o13="";for(let r7=0;r7<e8.length;r7++)o13+=String.fromCharCode(e8[r7]);return o13}function g(t8,n10=d){f(t8.byteLength,n10,"byte-string conversion");let e8="";for(let o13=0;o13<t8.length;o13++)e8+=String.fromCharCode(t8[o13]);return e8}async function B(t8,n10){return typeof t8.readFileBytes=="function"?t8.readFileBytes(n10):g(await t8.readFileBuffer(n10))}function s(t8){return t8.stdoutKind?t8.stdoutKind:t8.stdoutEncoding==="binary"?"bytes":"text"}function F(t8){return s(t8)==="bytes"?t8.stdout:l2(t8.stdout)}function T(t8){return s(t8)==="bytes"?a2(t8.stdout):t8.stdout}var require3,u2,y,d,b,init_chunk_GN6CQ3J4=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-GN6CQ3J4.js"(){require3=createRequire2(import.meta.url),u2=new TextDecoder("utf-8",{fatal:!0}),y=new TextEncoder,d=512*1024*1024;b=""}});import{createRequire as createRequire3}from"node:module";function E(r7){return r7 instanceof u3||r7 instanceof i||r7 instanceof a3}var require4,n,u3,i,a3,x2,p,d2,l3,h2,m,b2,f2,$,C,v,init_chunk_EFORKKSH=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-EFORKKSH.js"(){init_chunk_GN6CQ3J4();require4=createRequire3(import.meta.url),n=class extends Error{stdout;stderr;internalOutputAccounting={stdout:0,stderr:0};constructor(t8,e8="",s10=""){super(t8),this.stdout=e8,this.stderr=s10}prependOutput(t8,e8){this.stdout=t8+this.stdout,this.stderr=e8+this.stderr,this.internalOutputAccounting.stdout+=x(t8),this.internalOutputAccounting.stderr+=x(e8)}},u3=class extends n{levels;name="BreakError";constructor(t8=1,e8="",s10=""){super("break",e8,s10),this.levels=t8}},i=class extends n{levels;name="ContinueError";constructor(t8=1,e8="",s10=""){super("continue",e8,s10),this.levels=t8}},a3=class extends n{exitCode;name="ReturnError";constructor(t8=0,e8="",s10=""){super("return",e8,s10),this.exitCode=t8}},x2=class extends n{exitCode;name="ErrexitError";constructor(t8,e8="",s10=""){super(`errexit: command exited with status ${t8}`,e8,s10),this.exitCode=t8}},p=class extends n{varName;name="NounsetError";constructor(t8,e8=""){super(`${t8}: unbound variable`,e8,`bash: ${t8}: unbound variable
3
+ var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __esm=(fn3,res,err)=>function(){if(err)throw err[0];try{return fn3&&(res=(0,fn3[__getOwnPropNames(fn3)[0]])(fn3=0)),res}catch(e8){throw err=[e8],e8}};var __commonJS=(cb,mod)=>function(){try{return mod||(0,cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports}catch(e8){throw mod=0,e8}};var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to3,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to3,key)&&key!==except&&__defProp(to3,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to3};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod));import{createRequire as createRequire2}from"node:module";function f(t8,n10,e8){if(!Number.isSafeInteger(t8)||t8<0||!Number.isSafeInteger(n10)||n10<0||t8>n10)throw new RangeError(`${e8}: byte conversion limit exceeded (${n10} bytes)`)}function x(t8){let n10=0;for(let e8=0;e8<t8.length;e8++){let o13=t8.charCodeAt(e8);if(o13<=127)n10++;else if(o13<=2047)n10+=2;else if(o13>=55296&&o13<=56319&&e8+1<t8.length){let r7=t8.charCodeAt(e8+1);r7>=56320&&r7<=57343?(n10+=4,e8++):n10+=3}else n10+=3}return n10}function a2(t8,n10=d){let e8=t8;if(!e8)return e8;f(e8.length,n10,"UTF-8 decode");let o13=!1;for(let i22=0;i22<e8.length;i22++){let c18=e8.charCodeAt(i22);if(c18>255)return e8;c18>127&&(o13=!0)}if(!o13)return e8;let r7=new Uint8Array(e8.length);for(let i22=0;i22<e8.length;i22++)r7[i22]=e8.charCodeAt(i22);try{return u2.decode(r7)}catch{return e8}}function l2(t8,n10=d){if(!t8)return t8;f(x(t8),n10,"UTF-8 encode");let e8=y.encode(t8),o13="";for(let r7=0;r7<e8.length;r7++)o13+=String.fromCharCode(e8[r7]);return o13}function g(t8,n10=d){f(t8.byteLength,n10,"byte-string conversion");let e8="";for(let o13=0;o13<t8.length;o13++)e8+=String.fromCharCode(t8[o13]);return e8}async function B(t8,n10){return typeof t8.readFileBytes=="function"?t8.readFileBytes(n10):g(await t8.readFileBuffer(n10))}function s(t8){return t8.stdoutKind?t8.stdoutKind:t8.stdoutEncoding==="binary"?"bytes":"text"}function F(t8){return s(t8)==="bytes"?t8.stdout:l2(t8.stdout)}function T(t8){return s(t8)==="bytes"?a2(t8.stdout):t8.stdout}var require3,u2,y,d,b,init_chunk_GN6CQ3J4=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-GN6CQ3J4.js"(){require3=createRequire2(import.meta.url),u2=new TextDecoder("utf-8",{fatal:!0}),y=new TextEncoder,d=512*1024*1024;b=""}});import{createRequire as createRequire3}from"node:module";function E(r7){return r7 instanceof u3||r7 instanceof i||r7 instanceof a3}var require4,n,u3,i,a3,x2,p,d2,l3,h2,m,b2,f2,$,C,v,init_chunk_EFORKKSH=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-EFORKKSH.js"(){init_chunk_GN6CQ3J4();require4=createRequire3(import.meta.url),n=class extends Error{stdout;stderr;internalOutputAccounting={stdout:0,stderr:0};constructor(t8,e8="",s10=""){super(t8),this.stdout=e8,this.stderr=s10}prependOutput(t8,e8){this.stdout=t8+this.stdout,this.stderr=e8+this.stderr,this.internalOutputAccounting.stdout+=x(t8),this.internalOutputAccounting.stderr+=x(e8)}},u3=class extends n{levels;name="BreakError";constructor(t8=1,e8="",s10=""){super("break",e8,s10),this.levels=t8}},i=class extends n{levels;name="ContinueError";constructor(t8=1,e8="",s10=""){super("continue",e8,s10),this.levels=t8}},a3=class extends n{exitCode;name="ReturnError";constructor(t8=0,e8="",s10=""){super("return",e8,s10),this.exitCode=t8}},x2=class extends n{exitCode;name="ErrexitError";constructor(t8,e8="",s10=""){super(`errexit: command exited with status ${t8}`,e8,s10),this.exitCode=t8}},p=class extends n{varName;name="NounsetError";constructor(t8,e8=""){super(`${t8}: unbound variable`,e8,`bash: ${t8}: unbound variable
4
4
  `),this.varName=t8}},d2=class extends n{exitCode;name="ExitError";constructor(t8,e8="",s10=""){super("exit",e8,s10),this.exitCode=t8}},l3=class extends n{name="ArithmeticError";fatal;constructor(t8,e8="",s10="",o13=!1){super(t8,e8,s10),this.stderr=s10||`bash: ${t8}
5
5
  `,this.fatal=o13}},h2=class extends n{name="BadSubstitutionError";constructor(t8,e8="",s10=""){super(t8,e8,s10),this.stderr=s10||`bash: ${t8}: bad substitution
6
6
  `}},m=class extends n{name="GlobError";constructor(t8,e8="",s10=""){super(`no match: ${t8}`,e8,s10),this.stderr=s10||`bash: no match: ${t8}
7
7
  `}},b2=class extends n{name="BraceExpansionError";constructor(t8,e8="",s10=""){super(t8,e8,s10),this.stderr=s10||`bash: ${t8}
8
8
  `}},f2=class extends n{limitType;name="ExecutionLimitError";static EXIT_CODE=126;constructor(t8,e8,s10="",o13=""){super(t8,s10,o13),this.limitType=e8,this.stderr=o13||`bash: ${t8}
9
- `}},$=class extends n{name="ExecutionAbortedError";constructor(t8="",e8=""){super("execution aborted",t8,e8)}},C=class extends n{name="SubshellExitError";constructor(t8="",e8=""){super("subshell exit",t8,e8)}};v=class extends n{exitCode;name="PosixFatalError";constructor(t8,e8="",s10=""){super("posix fatal error",e8,s10),this.exitCode=t8}}}});import{createRequire as createRequire4}from"node:module";function l4(...i22){let n10=[...new Set(i22.filter(e8=>e8!==void 0))];if(n10.length===0)return{signal:void 0,cleanup(){}};if(n10.length===1)return{signal:n10[0],cleanup(){}};let t8=new AbortController,r7=[];for(let e8 of n10){if(e8.aborted){t8.abort(e8.reason);break}let o13=()=>t8.abort(e8.reason);e8.addEventListener("abort",o13,{once:!0}),r7.push([e8,o13])}return{signal:t8.signal,cleanup(){for(let[e8,o13]of r7)e8.removeEventListener("abort",o13)}}}async function c(i22,n10,t8){if(!n10)return i22;if(n10.aborted)throw i22.catch(()=>{}),new $("",t8);let r7;try{return await Promise.race([i22,new Promise((e8,o13)=>{r7=()=>o13(new $("",t8)),n10.addEventListener("abort",r7,{once:!0})})])}finally{r7&&n10.removeEventListener("abort",r7)}}var require5,init_chunk_SRB6FXRH=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-SRB6FXRH.js"(){init_chunk_EFORKKSH();require5=createRequire4(import.meta.url)}});import{createRequire as createRequire5}from"node:module";import*as M from"node:async_hooks";import*as $2 from"node:module";function T2(){return P||_(),P}function _(){let l12=[{prop:"Function",target:globalThis,violationType:"function_constructor",strategy:"throw",reason:"Function constructor allows arbitrary code execution"},{prop:"eval",target:globalThis,violationType:"eval",strategy:"throw",reason:"eval() allows arbitrary code execution"},{prop:"setTimeout",target:globalThis,violationType:"setTimeout",strategy:"throw",reason:"setTimeout with string argument allows code execution"},{prop:"setInterval",target:globalThis,violationType:"setInterval",strategy:"throw",reason:"setInterval with string argument allows code execution"},{prop:"setImmediate",target:globalThis,violationType:"setImmediate",strategy:"throw",reason:"setImmediate could be used to escape sandbox context"},{prop:"env",target:process,violationType:"process_env",strategy:"throw",reason:"process.env could leak sensitive environment variables",allowedKeys:new Set(["NODE_V8_COVERAGE","NODE_DEBUG","NODE_DEBUG_NATIVE","NODE_COMPILE_CACHE","NODE_ENV","WATCH_REPORT_DEPENDENCIES","FORCE_COLOR","DEBUG","UNDICI_NO_FG","JEST_WORKER_ID","__MINIMATCH_TESTING_PLATFORM__","LOG_TOKENS","LOG_STREAM"])},{prop:"binding",target:process,violationType:"process_binding",strategy:"throw",reason:"process.binding provides access to native Node.js modules"},{prop:"_linkedBinding",target:process,violationType:"process_binding",strategy:"throw",reason:"process._linkedBinding provides access to native Node.js modules"},{prop:"dlopen",target:process,violationType:"process_dlopen",strategy:"throw",reason:"process.dlopen allows loading native addons"},{prop:"getBuiltinModule",target:process,violationType:"process_get_builtin_module",strategy:"throw",reason:"process.getBuiltinModule allows loading native Node.js modules (fs, child_process, vm)"},{prop:"exit",target:process,violationType:"process_exit",strategy:"throw",reason:"process.exit could terminate the interpreter"},{prop:"abort",target:process,violationType:"process_exit",strategy:"throw",reason:"process.abort could crash the interpreter"},{prop:"kill",target:process,violationType:"process_kill",strategy:"throw",reason:"process.kill could signal other processes"},{prop:"setuid",target:process,violationType:"process_setuid",strategy:"throw",reason:"process.setuid could escalate privileges"},{prop:"setgid",target:process,violationType:"process_setuid",strategy:"throw",reason:"process.setgid could escalate privileges"},{prop:"seteuid",target:process,violationType:"process_setuid",strategy:"throw",reason:"process.seteuid could escalate effective user privileges"},{prop:"setegid",target:process,violationType:"process_setuid",strategy:"throw",reason:"process.setegid could escalate effective group privileges"},{prop:"initgroups",target:process,violationType:"process_setuid",strategy:"throw",reason:"process.initgroups could modify supplementary group IDs"},{prop:"setgroups",target:process,violationType:"process_setuid",strategy:"throw",reason:"process.setgroups could modify supplementary group IDs"},{prop:"umask",target:process,violationType:"process_umask",strategy:"throw",reason:"process.umask could modify file creation permissions"},{prop:"argv",target:process,violationType:"process_argv",strategy:"throw",reason:"process.argv may contain secrets in CLI arguments"},{prop:"cwd",target:process,violationType:"process_chdir",strategy:"throw",reason:"process.cwd could disclose real host working directory path"},{prop:"chdir",target:process,violationType:"process_chdir",strategy:"throw",reason:"process.chdir could confuse the interpreter's CWD tracking"},{prop:"report",target:process,violationType:"process_report",strategy:"throw",reason:"process.report could disclose full environment, host paths, and system info"},{prop:"loadEnvFile",target:process,violationType:"process_env",strategy:"throw",reason:"process.loadEnvFile could load env files bypassing env proxy"},{prop:"setUncaughtExceptionCaptureCallback",target:process,violationType:"process_exception_handler",strategy:"throw",reason:"setUncaughtExceptionCaptureCallback could intercept security errors"},...["on","once","addListener","prependListener","prependOnceListener"].map(t8=>({prop:t8,target:process,violationType:"process_exception_handler",strategy:"throw",reason:"process-global listeners can outlive the sandbox and lose its security context"})),{prop:"send",target:process,violationType:"process_send",strategy:"throw",reason:"process.send could communicate with parent process in IPC contexts"},{prop:"channel",target:process,violationType:"process_channel",strategy:"throw",reason:"process.channel could access IPC channel to parent process"},{prop:"cpuUsage",target:process,violationType:"process_timing",strategy:"throw",reason:"process.cpuUsage could enable timing side-channel attacks"},{prop:"memoryUsage",target:process,violationType:"process_timing",strategy:"throw",reason:"process.memoryUsage could enable timing side-channel attacks"},{prop:"hrtime",target:process,violationType:"process_timing",strategy:"throw",reason:"process.hrtime could enable timing side-channel attacks"},{prop:"WeakRef",target:globalThis,violationType:"weak_ref",strategy:"throw",reason:"WeakRef could be used to leak references outside sandbox"},{prop:"FinalizationRegistry",target:globalThis,violationType:"finalization_registry",strategy:"throw",reason:"FinalizationRegistry could be used to leak references outside sandbox"},{prop:"Reflect",target:globalThis,violationType:"reflect",strategy:"freeze",reason:"Reflect provides introspection capabilities"},{prop:"Proxy",target:globalThis,violationType:"proxy",strategy:"throw",reason:"Proxy allows intercepting and modifying object behavior"},{prop:"WebAssembly",target:globalThis,violationType:"webassembly",strategy:"throw",reason:"WebAssembly allows executing arbitrary compiled code"},{prop:"SharedArrayBuffer",target:globalThis,violationType:"shared_array_buffer",strategy:"throw",reason:"SharedArrayBuffer could enable side-channel communication or timing attacks"},{prop:"Atomics",target:globalThis,violationType:"atomics",strategy:"throw",reason:"Atomics could enable side-channel communication or timing attacks"},{prop:"performance",target:globalThis,violationType:"performance_timing",strategy:"throw",reason:"performance.now() provides sub-millisecond timing for side-channel attacks"},{prop:"stdout",target:process,violationType:"process_stdout",strategy:"throw",reason:"process.stdout could bypass interpreter output to write to host stdout"},{prop:"stderr",target:process,violationType:"process_stderr",strategy:"throw",reason:"process.stderr could bypass interpreter output to write to host stderr"},{prop:"__defineGetter__",target:Object.prototype,violationType:"prototype_mutation",strategy:"throw",reason:"__defineGetter__ allows prototype pollution via getter injection"},{prop:"__defineSetter__",target:Object.prototype,violationType:"prototype_mutation",strategy:"throw",reason:"__defineSetter__ allows prototype pollution via setter injection"},{prop:"__lookupGetter__",target:Object.prototype,violationType:"prototype_mutation",strategy:"throw",reason:"__lookupGetter__ enables introspection for prototype pollution attacks"},{prop:"__lookupSetter__",target:Object.prototype,violationType:"prototype_mutation",strategy:"throw",reason:"__lookupSetter__ enables introspection for prototype pollution attacks"},{prop:"JSON",target:globalThis,violationType:"json_mutation",strategy:"freeze",reason:"Freeze JSON to prevent mutation of parsing/serialization"},{prop:"Math",target:globalThis,violationType:"math_mutation",strategy:"freeze",reason:"Freeze Math to prevent mutation of math utilities"}];try{let t8=Object.getPrototypeOf(async()=>{}).constructor;t8&&t8!==Function&&l12.push({prop:"constructor",target:Object.getPrototypeOf(async()=>{}),violationType:"async_function_constructor",strategy:"throw",reason:"AsyncFunction constructor allows arbitrary async code execution"})}catch{}try{let t8=Object.getPrototypeOf(function*(){}).constructor;t8&&t8!==Function&&l12.push({prop:"constructor",target:Object.getPrototypeOf(function*(){}),violationType:"generator_function_constructor",strategy:"throw",reason:"GeneratorFunction constructor allows arbitrary generator code execution"})}catch{}try{let t8=Object.getPrototypeOf(async function*(){}).constructor;t8&&t8!==Function&&t8!==Object.getPrototypeOf(async()=>{}).constructor&&l12.push({prop:"constructor",target:Object.getPrototypeOf(async function*(){}),violationType:"async_generator_function_constructor",strategy:"throw",reason:"AsyncGeneratorFunction constructor allows arbitrary async generator code execution"})}catch{}let e8=l12.filter(t8=>{try{return t8.target[t8.prop]!==void 0}catch{return!1}});return P??=new Set(e8.map(({violationType:t8})=>t8)),e8}function E2(){return Math.floor(F2+R())}function O(l12){let e8=l12?.find(t8=>D.has(t8));if(e8)throw new RangeError(`defenseInDepth.excludeViolationTypes cannot disable the non-excludable "${e8}" protection`)}function S(l12,e8,t8){let i22=t8&&!D.has(e8)?`
9
+ `}},$=class extends n{name="ExecutionAbortedError";constructor(t8="",e8=""){super("execution aborted",t8,e8)}},C=class extends n{name="SubshellExitError";constructor(t8="",e8=""){super("subshell exit",t8,e8)}};v=class extends n{exitCode;name="PosixFatalError";constructor(t8,e8="",s10=""){super("posix fatal error",e8,s10),this.exitCode=t8}}}});import{createRequire as createRequire4}from"node:module";function l4(...i22){let n10=[...new Set(i22.filter(e8=>e8!==void 0))];if(n10.length===0)return{signal:void 0,cleanup(){}};if(n10.length===1)return{signal:n10[0],cleanup(){}};let t8=new AbortController,r7=[];for(let e8 of n10){if(e8.aborted){t8.abort(e8.reason);break}let o13=()=>t8.abort(e8.reason);e8.addEventListener("abort",o13,{once:!0}),r7.push([e8,o13])}return{signal:t8.signal,cleanup(){for(let[e8,o13]of r7)e8.removeEventListener("abort",o13)}}}async function c(i22,n10,t8){if(!n10)return i22;if(n10.aborted)throw i22.catch(()=>{}),new $("",t8);let r7;try{return await Promise.race([i22,new Promise((e8,o13)=>{r7=()=>o13(new $("",t8)),n10.addEventListener("abort",r7,{once:!0})})])}finally{r7&&n10.removeEventListener("abort",r7)}}var require5,init_chunk_SRB6FXRH=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-SRB6FXRH.js"(){init_chunk_EFORKKSH();require5=createRequire4(import.meta.url)}});import{createRequire as createRequire5}from"node:module";import*as M from"node:async_hooks";import*as $2 from"node:module";function T2(){return P||_(),P}function _(){let l12=[{prop:"Function",target:globalThis,violationType:"function_constructor",strategy:"throw",reason:"Function constructor allows arbitrary code execution"},{prop:"eval",target:globalThis,violationType:"eval",strategy:"throw",reason:"eval() allows arbitrary code execution"},{prop:"setTimeout",target:globalThis,violationType:"setTimeout",strategy:"throw",reason:"setTimeout with string argument allows code execution"},{prop:"setInterval",target:globalThis,violationType:"setInterval",strategy:"throw",reason:"setInterval with string argument allows code execution"},{prop:"setImmediate",target:globalThis,violationType:"setImmediate",strategy:"throw",reason:"setImmediate could be used to escape sandbox context"},{prop:"env",target:process,violationType:"process_env",strategy:"throw",reason:"process.env could leak sensitive environment variables",allowedKeys:new Set(["NODE_V8_COVERAGE","NODE_DEBUG","NODE_DEBUG_NATIVE","NODE_COMPILE_CACHE","NODE_ENV","WATCH_REPORT_DEPENDENCIES","FORCE_COLOR","DEBUG","UNDICI_NO_FG","JEST_WORKER_ID","__MINIMATCH_TESTING_PLATFORM__","LOG_TOKENS","LOG_STREAM"])},{prop:"binding",target:process,violationType:"process_binding",strategy:"throw",reason:"process.binding provides access to native Node.js modules"},{prop:"_linkedBinding",target:process,violationType:"process_binding",strategy:"throw",reason:"process._linkedBinding provides access to native Node.js modules"},{prop:"dlopen",target:process,violationType:"process_dlopen",strategy:"throw",reason:"process.dlopen allows loading native addons"},{prop:"getBuiltinModule",target:process,violationType:"process_get_builtin_module",strategy:"throw",reason:"process.getBuiltinModule allows loading native Node.js modules (fs, child_process, vm)"},{prop:"exit",target:process,violationType:"process_exit",strategy:"throw",reason:"process.exit could terminate the interpreter"},{prop:"abort",target:process,violationType:"process_exit",strategy:"throw",reason:"process.abort could crash the interpreter"},{prop:"kill",target:process,violationType:"process_kill",strategy:"throw",reason:"process.kill could signal other processes"},{prop:"setuid",target:process,violationType:"process_setuid",strategy:"throw",reason:"process.setuid could escalate privileges"},{prop:"setgid",target:process,violationType:"process_setuid",strategy:"throw",reason:"process.setgid could escalate privileges"},{prop:"seteuid",target:process,violationType:"process_setuid",strategy:"throw",reason:"process.seteuid could escalate effective user privileges"},{prop:"setegid",target:process,violationType:"process_setuid",strategy:"throw",reason:"process.setegid could escalate effective group privileges"},{prop:"initgroups",target:process,violationType:"process_setuid",strategy:"throw",reason:"process.initgroups could modify supplementary group IDs"},{prop:"setgroups",target:process,violationType:"process_setuid",strategy:"throw",reason:"process.setgroups could modify supplementary group IDs"},{prop:"umask",target:process,violationType:"process_umask",strategy:"throw",reason:"process.umask could modify file creation permissions"},{prop:"argv",target:process,violationType:"process_argv",strategy:"throw",reason:"process.argv may contain secrets in CLI arguments"},{prop:"cwd",target:process,violationType:"process_chdir",strategy:"throw",reason:"process.cwd could disclose real host working directory path"},{prop:"chdir",target:process,violationType:"process_chdir",strategy:"throw",reason:"process.chdir could confuse the interpreter's CWD tracking"},{prop:"report",target:process,violationType:"process_report",strategy:"throw",reason:"process.report could disclose full environment, host paths, and system info"},{prop:"loadEnvFile",target:process,violationType:"process_env",strategy:"throw",reason:"process.loadEnvFile could load env files bypassing env proxy"},{prop:"setUncaughtExceptionCaptureCallback",target:process,violationType:"process_exception_handler",strategy:"throw",reason:"setUncaughtExceptionCaptureCallback could intercept security errors"},...["on","once","addListener","prependListener","prependOnceListener"].map(t8=>({prop:t8,target:process,violationType:"process_exception_handler",strategy:"throw",reason:"process-global listeners can outlive the sandbox and lose its security context"})),{prop:"send",target:process,violationType:"process_send",strategy:"throw",reason:"process.send could communicate with parent process in IPC contexts"},{prop:"channel",target:process,violationType:"process_channel",strategy:"throw",reason:"process.channel could access IPC channel to parent process"},{prop:"cpuUsage",target:process,violationType:"process_timing",strategy:"throw",reason:"process.cpuUsage could enable timing side-channel attacks"},{prop:"memoryUsage",target:process,violationType:"process_timing",strategy:"throw",reason:"process.memoryUsage could enable timing side-channel attacks"},{prop:"hrtime",target:process,violationType:"process_timing",strategy:"throw",reason:"process.hrtime could enable timing side-channel attacks"},{prop:"WeakRef",target:globalThis,violationType:"weak_ref",strategy:"throw",reason:"WeakRef could be used to leak references outside sandbox"},{prop:"FinalizationRegistry",target:globalThis,violationType:"finalization_registry",strategy:"throw",reason:"FinalizationRegistry could be used to leak references outside sandbox"},{prop:"Reflect",target:globalThis,violationType:"reflect",strategy:"freeze",reason:"Reflect provides introspection capabilities"},{prop:"Proxy",target:globalThis,violationType:"proxy",strategy:"throw",reason:"Proxy allows intercepting and modifying object behavior"},{prop:"WebAssembly",target:globalThis,violationType:"webassembly",strategy:"throw",reason:"WebAssembly allows executing arbitrary compiled code"},{prop:"SharedArrayBuffer",target:globalThis,violationType:"shared_array_buffer",strategy:"throw",reason:"SharedArrayBuffer could enable side-channel communication or timing attacks"},{prop:"Atomics",target:globalThis,violationType:"atomics",strategy:"throw",reason:"Atomics could enable side-channel communication or timing attacks"},{prop:"performance",target:globalThis,violationType:"performance_timing",strategy:"throw",reason:"performance.now() provides sub-millisecond timing for side-channel attacks"},{prop:"stdout",target:process,violationType:"process_stdout",strategy:"throw",reason:"process.stdout could bypass interpreter output to write to host stdout"},{prop:"stderr",target:process,violationType:"process_stderr",strategy:"throw",reason:"process.stderr could bypass interpreter output to write to host stderr"},{prop:"__defineGetter__",target:Object.prototype,violationType:"prototype_mutation",strategy:"throw",reason:"__defineGetter__ allows prototype pollution via getter injection"},{prop:"__defineSetter__",target:Object.prototype,violationType:"prototype_mutation",strategy:"throw",reason:"__defineSetter__ allows prototype pollution via setter injection"},{prop:"__lookupGetter__",target:Object.prototype,violationType:"prototype_mutation",strategy:"throw",reason:"__lookupGetter__ enables introspection for prototype pollution attacks"},{prop:"__lookupSetter__",target:Object.prototype,violationType:"prototype_mutation",strategy:"throw",reason:"__lookupSetter__ enables introspection for prototype pollution attacks"},{prop:"JSON",target:globalThis,violationType:"json_mutation",strategy:"freeze",reason:"Freeze JSON to prevent mutation of parsing/serialization"},{prop:"Math",target:globalThis,violationType:"math_mutation",strategy:"freeze",reason:"Freeze Math to prevent mutation of math utilities"}];try{let t8=Object.getPrototypeOf(async()=>{}).constructor;t8&&t8!==Function&&l12.push({prop:"constructor",target:Object.getPrototypeOf(async()=>{}),violationType:"async_function_constructor",strategy:"throw",reason:"AsyncFunction constructor allows arbitrary async code execution"})}catch{}try{let t8=Object.getPrototypeOf(function*(){}).constructor;t8&&t8!==Function&&l12.push({prop:"constructor",target:Object.getPrototypeOf(function*(){}),violationType:"generator_function_constructor",strategy:"throw",reason:"GeneratorFunction constructor allows arbitrary generator code execution"})}catch{}try{let t8=Object.getPrototypeOf(async function*(){}).constructor;t8&&t8!==Function&&t8!==Object.getPrototypeOf(async()=>{}).constructor&&l12.push({prop:"constructor",target:Object.getPrototypeOf(async function*(){}),violationType:"async_generator_function_constructor",strategy:"throw",reason:"AsyncGeneratorFunction constructor allows arbitrary async generator code execution"})}catch{}let e8=l12.filter(t8=>{try{return t8.target[t8.prop]!==void 0}catch{return!1}});return P??=new Set(e8.map(({violationType:t8})=>t8)),e8}function E2(){return Math.floor(F2+R())}function O(l12){let e8=l12?.find(t8=>D.has(t8));if(e8)throw new RangeError(`defenseInDepth.excludeViolationTypes cannot disable the non-excludable "${e8}" protection`)}function S(l12,e8,t8){let i22=t8&&!D.has(e8)?`
10
10
 
11
- If this access is required by trusted host-runtime code, add "${e8}" to defenseInDepth.excludeViolationTypes.`:"";return l12+V+i22}function I(){return typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,l12=>{let e8=Math.random()*16|0;return(l12==="x"?e8:e8&3|8).toString(16)})}function L(l12,e8,...t8){return p2.run(l12,()=>e8(...t8))}function C2(){return!b3&&typeof v2?.registerHooks=="function"}function A(l12){let e8=typeof l12=="boolean"?{enabled:l12}:l12??{};if(O(e8.excludeViolationTypes),e8.enabled!==void 0&&e8.enabled!==!0&&e8.enabled!==!1&&e8.enabled!=="auto")throw new RangeError('defenseInDepth.enabled must be true, false, or "auto"');let t8={...N,...e8},i22=t8.enabled==="auto"?"auto":t8.enabled?"enabled":"disabled",o13={...t8,enabled:i22!=="disabled",requested:i22};return o13.excludeViolationTypes&&(o13.excludeViolationTypes=[...new Set(o13.excludeViolationTypes)].sort()),o13}function H(l12,e8){if(l12.enabled!==e8.enabled||l12.auditMode!==e8.auditMode||l12.processLifetimeIntrinsicHardening!==e8.processLifetimeIntrinsicHardening||l12.onViolation!==e8.onViolation)return!1;let t8=l12.excludeViolationTypes??[],i22=e8.excludeViolationTypes??[];return t8.length===i22.length&&t8.every((o13,r7)=>o13===i22[r7])}var require6,P,F2,R,D,V,b3,k,v2,j,d3,p2,G,N,B2,init_chunk_CBM6J4AL=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-CBM6J4AL.js"(){require6=createRequire5(import.meta.url);F2=performance.timeOrigin,R=performance.now.bind(performance);D=new Set(["function_constructor","async_function_constructor","generator_function_constructor","async_generator_function_constructor"]);V=`
11
+ If this access is required by trusted host-runtime code, add "${e8}" to defenseInDepth.excludeViolationTypes.`:"";return l12+V+i22}function I(){return typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,l12=>{let e8=Math.random()*16|0;return(l12==="x"?e8:e8&3|8).toString(16)})}function L(l12,e8,...t8){return p2.run(l12,()=>e8(...t8))}function C2(){return!b3&&typeof v2?.registerHooks=="function"}function A(l12){let e8=typeof l12=="boolean"?{enabled:l12}:l12??{};if(O(e8.excludeViolationTypes),e8.enabled!==void 0&&e8.enabled!==!0&&e8.enabled!==!1&&e8.enabled!=="auto")throw new RangeError('defenseInDepth.enabled must be true, false, or "auto"');let t8={...N,...e8},i22=t8.enabled==="auto"?"auto":t8.enabled?"enabled":"disabled",o13={...t8,enabled:i22!=="disabled",requested:i22};return o13.excludeViolationTypes&&(o13.excludeViolationTypes=[...new Set(o13.excludeViolationTypes)].sort()),o13}function H(l12,e8){if(l12.enabled!==e8.enabled||l12.auditMode!==e8.auditMode||l12.processLifetimeIntrinsicHardening!==e8.processLifetimeIntrinsicHardening||l12.onViolation!==e8.onViolation)return!1;let t8=l12.excludeViolationTypes??[],i22=e8.excludeViolationTypes??[];return t8.length===i22.length&&t8.every((o13,r7)=>o13===i22[r7])}var require6,P,F2,R,D,V,b3,k,v2,j,d3,p2,G,N,B2,init_chunk_CBM6J4AL=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-CBM6J4AL.js"(){require6=createRequire5(import.meta.url);F2=performance.timeOrigin,R=performance.now.bind(performance);D=new Set(["function_constructor","async_function_constructor","generator_function_constructor","async_generator_function_constructor"]);V=`
12
12
 
13
- This is a defense-in-depth measure and indicates a bug in just-bash. Please report this at security@vercel.com`;b3=typeof __BROWSER__<"u"&&__BROWSER__;k=null,v2=null,j=null;if(!b3)try{k=M.AsyncLocalStorage,v2=$2,j=v2.Module??v2.default??null}catch{}d3=class extends Error{violation;constructor(e8,t8){super(S(e8,t8.type,t8.type==="error_prepare_stack_trace"||T2().has(t8.type))),this.violation=t8,this.name="SecurityViolationError"}},p2=!b3&&k?new k:null,G=1e3;N={enabled:!0,auditMode:!1,processLifetimeIntrinsicHardening:!1};B2=class l5{static instance=null;static importHooksRegistered=!1;static trustedExecutionDepth=new Map;config;refCount=0;patchFailures=[];activeExecutionIds=new Set;contextCache=new Map;originalDescriptors=[];moduleAccessorResets=[];temporaryIntrinsicDescriptors=[];violations=[];activationTime=0;totalActiveTimeMs=0;constructor(e8){this.config=e8}static getInstance(e8){let t8=A(e8);if(!l5.instance)l5.instance=new l5(t8);else{let i22=l5.instance.config;if(!H(t8,i22))throw new Error("DefenseInDepthBox config conflict: all resolved defense options, including exclusions and the violation callback, must match across Bash instances. Call DefenseInDepthBox.resetInstance() between incompatible configurations.")}return l5.instance}static resetInstance(){l5.instance&&(l5.instance.forceDeactivate(),l5.instance=null),l5.trustedExecutionDepth.clear()}static isInSandboxedContext(){return p2?p2?.getStore()?.sandboxActive===!0:!1}static getCurrentExecutionId(){if(p2)return p2?.getStore()?.executionId}static enterTrustedScope(e8){let t8=l5.trustedExecutionDepth.get(e8)??0;l5.trustedExecutionDepth.set(e8,t8+1)}static leaveTrustedScope(e8){let t8=l5.trustedExecutionDepth.get(e8);if(t8){if(t8===1){l5.trustedExecutionDepth.delete(e8);return}l5.trustedExecutionDepth.set(e8,t8-1)}}static isTrustedScopeActive(e8){return e8?(l5.trustedExecutionDepth.get(e8)??0)>0:!1}static isTrustedContext(e8){return!e8||e8.forceUntrusted?!1:e8.trusted===!0||l5.isTrustedScopeActive(e8.executionId)}isExecutionIdActive(e8){return this.activeExecutionIds.has(e8)}getCachedContext(e8){let t8=this.contextCache.get(e8);return t8||(t8={sandboxActive:!0,executionId:e8},this.contextCache.set(e8,t8)),t8}static bindCurrentContext(e8){if(!p2)return e8;let t8=p2.getStore(),i22=t8?.sandboxActive===!0?t8.executionId:void 0;if(!i22)return e8;let r7=l5.instance?.getCachedContext(i22)??{sandboxActive:!0,executionId:i22},s10=t8?.forceUntrusted?{...r7,forceUntrusted:!0}:r7;return((...n10)=>{let c18=l5.instance;if(!(c18&&!c18.isExecutionIdActive(i22)&&(c18.recordViolation("bound_callback_after_deactivate","bound callback","Bound callback blocked after originating execution was deactivated"),!c18.config.auditMode)))return L(s10,e8,...n10)})}isEnabled(){return this.getStatus().state==="enabled"}getStatus(){let e8=C2();return this.config.requested==="disabled"?{requested:"disabled",state:"disabled",level:"none",contextualDynamicImportProtection:e8,processLifetimeIntrinsicHardening:this.config.processLifetimeIntrinsicHardening===!0,intrinsicProtection:this.config.processLifetimeIntrinsicHardening?"process-lifetime":"scoped-best-effort"}:!p2||b3?{requested:this.config.requested,state:"unsupported",level:"none",contextualDynamicImportProtection:!1,processLifetimeIntrinsicHardening:this.config.processLifetimeIntrinsicHardening===!0,intrinsicProtection:this.config.processLifetimeIntrinsicHardening?"process-lifetime":"scoped-best-effort",reason:"context-aware ESM loader hooks (node:module.registerHooks) are unavailable"}:{requested:this.config.requested,state:"enabled",level:this.config.auditMode?"none":e8?"full":"best-effort",contextualDynamicImportProtection:e8,processLifetimeIntrinsicHardening:this.config.processLifetimeIntrinsicHardening===!0,intrinsicProtection:this.config.processLifetimeIntrinsicHardening?"process-lifetime":"scoped-best-effort",reason:this.config.auditMode?"audit mode records violations but does not block them":e8?void 0:"best-effort protection; context-aware ESM loader hooks are unavailable"}}updateConfig(e8){if(this.refCount>0)throw new Error("DefenseInDepthBox configuration cannot change while protection is active");this.config=A({...this.config,...e8})}activate(){if(!b3&&this.config.enabled&&!p2)throw new Error("DefenseInDepthBox: enabled protection requires node:async_hooks and node:module");if(b3||!this.config.enabled){let i22=I(),o13=!1;return{run:r7=>o13?Promise.reject(new Error("DefenseInDepthBox handle is deactivated and cannot run new work")):r7(),deactivate:()=>{o13=!0},executionId:i22}}if(this.refCount++,this.refCount===1){try{this.applyPatches()}catch(i22){throw this.restorePatches(),this.activeExecutionIds.clear(),this.contextCache.clear(),this.refCount=0,i22}this.activationTime=Date.now()}let e8=I(),t8=!1;return{run:i22=>t8?Promise.reject(new Error("DefenseInDepthBox handle is deactivated and cannot run new work")):(this.activeExecutionIds.add(e8),p2.run({sandboxActive:!0,executionId:e8},i22)),deactivate:()=>{t8||(t8=!0,this.activeExecutionIds.delete(e8),this.contextCache.delete(e8),l5.trustedExecutionDepth.delete(e8),this.refCount--,this.refCount===0&&(this.restorePatches(),this.totalActiveTimeMs+=Date.now()-this.activationTime),this.refCount<0&&(this.refCount=0))},executionId:e8}}forceDeactivate(){this.refCount>0&&(this.restorePatches(),this.totalActiveTimeMs+=Date.now()-this.activationTime),this.activeExecutionIds.clear(),this.contextCache.clear(),this.refCount=0}isActive(){return this.refCount>0}getStats(){return{violationsBlocked:this.violations.length,violations:[...this.violations],activeTimeMs:this.totalActiveTimeMs+(this.refCount>0?Date.now()-this.activationTime:0),refCount:this.refCount}}getPatchFailures(){return[...this.patchFailures]}clearViolations(){this.violations=[]}getPathForTarget(e8,t8){return e8===globalThis?`globalThis.${t8}`:e8===process?`process.${t8}`:e8===Error?`Error.${t8}`:e8===Function.prototype?`Function.prototype.${t8}`:e8===Object.prototype?`Object.prototype.${t8}`:`<object>.${t8}`}static runTrusted(e8){if(!p2)return e8();let t8=p2.getStore();if(!t8)return e8();let{executionId:i22}=t8;return p2.run({...t8,trusted:!0,forceUntrusted:!1},()=>{l5.enterTrustedScope(i22);try{let o13=e8();return typeof o13=="object"&&o13!==null&&"finally"in o13&&typeof o13.finally=="function"?o13.finally(()=>{l5.leaveTrustedScope(i22)}):(l5.leaveTrustedScope(i22),o13)}catch(o13){throw l5.leaveTrustedScope(i22),o13}})}static async runTrustedAsync(e8){if(!p2)return e8();let t8=p2.getStore();if(!t8)return e8();let{executionId:i22}=t8;return await p2.run({...t8,trusted:!0,forceUntrusted:!1},async()=>{l5.enterTrustedScope(i22);try{return await e8()}finally{l5.leaveTrustedScope(i22)}})}static async runUntrustedAsync(e8){if(!p2)return e8();let t8=p2.getStore();return t8?p2.run({...t8,trusted:!1,forceUntrusted:!0},e8):e8()}shouldBlock(){if(b3||this.config.auditMode||!p2)return!1;let e8=p2?.getStore();return!(e8?.sandboxActive!==!0||l5.isTrustedContext(e8))}shouldAudit(){if(!this.config.auditMode||!p2)return!1;let e8=p2.getStore();return e8?.sandboxActive===!0&&!l5.isTrustedContext(e8)}recordViolation(e8,t8,i22){let o13={timestamp:E2(),type:e8,message:i22,path:t8,stack:new Error().stack,executionId:p2?.getStore()?.executionId};if(this.violations.length<G&&this.violations.push(o13),this.config.onViolation)try{this.config.onViolation(o13)}catch(r7){console.debug("[DefenseInDepthBox] onViolation callback threw:",r7 instanceof Error?r7.message:r7)}return o13}createBlockingProxy(e8,t8,i22){let o13=this;return new Proxy(e8,{apply(r7,s10,n10){if(o13.shouldBlock()){let c18=`${t8} is blocked during script execution`,a14=o13.recordViolation(i22,t8,c18);throw new d3(c18,a14)}return o13.shouldAudit()&&o13.recordViolation(i22,t8,`${t8} called (audit mode)`),Reflect.apply(r7,s10,n10)},construct(r7,s10,n10){if(o13.shouldBlock()){let c18=`${t8} constructor is blocked during script execution`,a14=o13.recordViolation(i22,t8,c18);throw new d3(c18,a14)}return o13.shouldAudit()&&o13.recordViolation(i22,t8,`${t8} constructor called (audit mode)`),Reflect.construct(r7,s10,n10)}})}createBlockingObjectProxy(e8,t8,i22,o13){let r7=this;return new Proxy(e8,{get(s10,n10,c18){if(r7.shouldBlock()){if(o13&&typeof n10=="string"&&o13.has(n10))return Reflect.get(s10,n10,c18);let a14=`${t8}.${String(n10)}`,u15=`${a14} is blocked during script execution`,h18=r7.recordViolation(i22,a14,u15);throw new d3(u15,h18)}if(r7.shouldAudit()){let a14=`${t8}.${String(n10)}`;r7.recordViolation(i22,a14,`${a14} accessed (audit mode)`)}return Reflect.get(s10,n10,c18)},set(s10,n10,c18,a14){if(r7.shouldBlock()){let u15=`${t8}.${String(n10)}`,h18=`${u15} modification is blocked during script execution`,y14=r7.recordViolation(i22,u15,h18);throw new d3(h18,y14)}return t8==="process.env"&&n10==="DEBUG"?Reflect.set(s10,n10,c18):Reflect.set(s10,n10,c18,a14)},ownKeys(s10){if(r7.shouldBlock()){let n10=`${t8} enumeration is blocked during script execution`,c18=r7.recordViolation(i22,t8,n10);throw new d3(n10,c18)}return Reflect.ownKeys(s10)},getOwnPropertyDescriptor(s10,n10){if(r7.shouldBlock()){let c18=`${t8}.${String(n10)}`,a14=`${c18} descriptor access is blocked during script execution`,u15=r7.recordViolation(i22,c18,a14);throw new d3(a14,u15)}return Reflect.getOwnPropertyDescriptor(s10,n10)},has(s10,n10){if(r7.shouldBlock()){let c18=`${t8}.${String(n10)}`,a14=`${c18} existence check is blocked during script execution`,u15=r7.recordViolation(i22,c18,a14);throw new d3(a14,u15)}return Reflect.has(s10,n10)},deleteProperty(s10,n10){if(r7.shouldBlock()){let c18=`${t8}.${String(n10)}`,a14=`${c18} deletion is blocked during script execution`,u15=r7.recordViolation(i22,c18,a14);throw new d3(a14,u15)}return Reflect.deleteProperty(s10,n10)},setPrototypeOf(s10,n10){if(r7.shouldBlock()){let c18=`${t8} setPrototypeOf is blocked during script execution`,a14=r7.recordViolation(i22,t8,c18);throw new d3(c18,a14)}return Reflect.setPrototypeOf(s10,n10)},defineProperty(s10,n10,c18){if(r7.shouldBlock()){let a14=`${t8}.${String(n10)}`,u15=`${a14} defineProperty is blocked during script execution`,h18=r7.recordViolation(i22,a14,u15);throw new d3(u15,h18)}return Reflect.defineProperty(s10,n10,c18)}})}createReadonlyObjectProxy(e8,t8,i22){let o13=this,r7=s10=>{let n10=`${t8} ${s10} is blocked during script execution`,c18=o13.recordViolation(i22,t8,n10);throw new d3(n10,c18)};return new Proxy(e8,{set(s10,n10,c18,a14){return o13.shouldBlock()&&r7("modification"),Reflect.set(s10,n10,c18,a14)},defineProperty(s10,n10,c18){return o13.shouldBlock()&&r7("defineProperty"),Reflect.defineProperty(s10,n10,c18)},deleteProperty(s10,n10){return o13.shouldBlock()&&r7("deletion"),Reflect.deleteProperty(s10,n10)},setPrototypeOf(s10,n10){return o13.shouldBlock()&&r7("setPrototypeOf"),Reflect.setPrototypeOf(s10,n10)},preventExtensions(s10){return o13.shouldBlock()&&r7("preventExtensions"),Reflect.preventExtensions(s10)}})}applyPatches(){this.patchFailures=[];let e8=_(),t8=new Set(this.config.excludeViolationTypes??[]),i22=new Set(["process_send","process_channel","process_stdout","process_stderr"]),o13=[];for(let n10 of e8)if(!t8.has(n10.violationType)&&!i22.has(n10.violationType)){if(n10.strategy==="freeze"){o13.push(n10);continue}this.applyPatch(n10)}this.protectConstructorChain(),t8.has("error_prepare_stack_trace")||this.protectErrorPrepareStackTrace(),this.protectPromiseThen(),C2()&&this.protectDynamicImport(),this.protectModuleLoad(),this.protectModuleResolveFilename(),this.protectProcessMainModule(),this.protectProcessExecPath(),this.protectProxyRevocable();let r7=["Function.prototype.constructor","Module._load","Module._resolveFilename"],s10=this.patchFailures.filter(n10=>r7.includes(n10));if(s10.length>0)throw this.restorePatches(),new Error(`DefenseInDepthBox: critical patches failed: ${s10.join(", ")}`);this.config.processLifetimeIntrinsicHardening||this.protectReversibleIntrinsics(o13);for(let n10 of o13)this.applyPatch(n10,this.config.processLifetimeIntrinsicHardening===!0);this.config.processLifetimeIntrinsicHardening&&this.lockWellKnownSymbols()}protectReversibleIntrinsics(e8){let t8=new Set,i22=(s10,n10)=>{let c18=Object.getOwnPropertyDescriptor(s10,n10);!c18||!("value"in c18)||c18.writable!==!0||c18.configurable!==!0||(this.temporaryIntrinsicDescriptors.push({target:s10,prop:n10,descriptor:c18}),Object.defineProperty(s10,n10,{...c18,writable:!1}))};for(let{target:s10,prop:n10}of e8){let c18=s10[n10];if(!(typeof c18!="object"||c18===null)){t8.add(c18);for(let a14 of Reflect.ownKeys(c18))i22(c18,a14)}}let o13=[];for(let s10 of[Array,Map,Set,RegExp,Promise])o13.push([s10,Symbol.species]);for(let s10 of[Array.prototype,String.prototype,Map.prototype,Set.prototype])o13.push([s10,Symbol.iterator]);o13.push([Symbol.prototype,Symbol.toPrimitive],[Date.prototype,Symbol.toPrimitive],[Function.prototype,Symbol.hasInstance],[Array.prototype,Symbol.unscopables]);for(let s10 of[Symbol.match,Symbol.matchAll,Symbol.replace,Symbol.search,Symbol.split])o13.push([RegExp.prototype,s10]);for(let s10 of[Map.prototype,Set.prototype,Promise.prototype,ArrayBuffer.prototype])o13.push([s10,Symbol.toStringTag]);for(let[s10,n10]of o13)t8.add(s10),i22(s10,n10);let r7=(s10,n10,c18)=>{let a14=Object.getOwnPropertyDescriptor(s10,n10);if(!a14||!("value"in a14)||typeof a14.value!="function"||a14.configurable!==!0)return;let u15=a14.value,h18=this,y14=function(...f15){let g13=f15[0];if(h18.shouldBlock()&&typeof g13=="object"&&g13!==null&&t8.has(g13)){let x23=`${c18}.${n10}`,m16=`${x23} is blocked for protected intrinsics during script execution`,w15=h18.recordViolation("prototype_mutation",x23,m16);throw new d3(m16,w15)}return Reflect.apply(u15,this,f15)};this.temporaryIntrinsicDescriptors.push({target:s10,prop:n10,descriptor:a14}),Object.defineProperty(s10,n10,{...a14,value:y14,writable:!1})};for(let s10 of["assign","defineProperties","defineProperty","freeze","preventExtensions","seal","setPrototypeOf"])r7(Object,s10,"Object");for(let s10 of["defineProperty","deleteProperty","preventExtensions","set","setPrototypeOf"])r7(Reflect,s10,"Reflect")}protectConstructorChain(){this.patchPrototypeConstructor(Function.prototype,"Function.prototype.constructor","function_constructor");try{let e8=Object.getPrototypeOf(async()=>{}).constructor;e8&&e8!==Function&&this.patchPrototypeConstructor(e8.prototype,"AsyncFunction.prototype.constructor","async_function_constructor")}catch(e8){this.patchFailures.push("AsyncFunction.prototype.constructor"),console.debug("[DefenseInDepthBox] Could not patch AsyncFunction.prototype.constructor:",e8 instanceof Error?e8.message:e8)}try{let e8=Object.getPrototypeOf(function*(){}).constructor;e8&&e8!==Function&&this.patchPrototypeConstructor(e8.prototype,"GeneratorFunction.prototype.constructor","generator_function_constructor")}catch(e8){this.patchFailures.push("GeneratorFunction.prototype.constructor"),console.debug("[DefenseInDepthBox] Could not patch GeneratorFunction.prototype.constructor:",e8 instanceof Error?e8.message:e8)}try{let e8=Object.getPrototypeOf(async function*(){}).constructor,t8=Object.getPrototypeOf(async()=>{}).constructor;e8&&e8!==Function&&e8!==t8&&this.patchPrototypeConstructor(e8.prototype,"AsyncGeneratorFunction.prototype.constructor","async_generator_function_constructor")}catch(e8){this.patchFailures.push("AsyncGeneratorFunction.prototype.constructor"),console.debug("[DefenseInDepthBox] Could not patch AsyncGeneratorFunction.prototype.constructor:",e8 instanceof Error?e8.message:e8)}}protectErrorPrepareStackTrace(){let e8=this;try{let t8=Object.getOwnPropertyDescriptor(Error,"prepareStackTrace");this.originalDescriptors.push({target:Error,prop:"prepareStackTrace",descriptor:t8});let i22=t8?.value;Object.defineProperty(Error,"prepareStackTrace",{get(){return i22},set(o13){if(e8.shouldBlock()){let r7="Error.prepareStackTrace modification is blocked during script execution",s10=e8.recordViolation("error_prepare_stack_trace","Error.prepareStackTrace",r7);throw new d3(r7,s10)}e8.shouldAudit()&&e8.recordViolation("error_prepare_stack_trace","Error.prepareStackTrace","Error.prepareStackTrace set (audit mode)"),i22=o13},configurable:!0})}catch(t8){this.patchFailures.push("Error.prepareStackTrace"),console.debug("[DefenseInDepthBox] Could not protect Error.prepareStackTrace:",t8 instanceof Error?t8.message:t8)}}protectPromiseThen(){let e8=this;try{let r7=function(...s10){return p2.run(this.captured,()=>{if(!this.box.isExecutionIdActive(this.executionId)){if(this.box.recordViolation("promise_then_after_deactivate","Promise.then","Promise.then callback is blocked after defense deactivation"),this.box.config.auditMode)return Reflect.apply(this.cb,void 0,s10);if(this.kind==="fulfilled")return s10[0];throw s10[0]}return Reflect.apply(this.cb,void 0,s10)})};var t8=r7;let i22=Object.getOwnPropertyDescriptor(Promise.prototype,"then");this.originalDescriptors.push({target:Promise.prototype,prop:"then",descriptor:i22});let o13=i22?.value;if(typeof o13!="function")return;Object.defineProperty(Promise.prototype,"then",{value:function(n10,c18){if(!p2)return Reflect.apply(o13,this,[n10,c18]);let a14=p2.getStore(),u15=a14?.sandboxActive===!0&&a14.trusted!==!0?a14.executionId:void 0;if(!u15)return Reflect.apply(o13,this,[n10,c18]);let h18=e8.getCachedContext(u15),y14=a14?.forceUntrusted?{...h18,forceUntrusted:!0}:h18,f15=(g13,x23)=>typeof g13!="function"?g13:r7.bind({box:e8,executionId:u15,captured:y14,cb:g13,kind:x23});return Reflect.apply(o13,this,[f15(n10,"fulfilled"),f15(c18,"rejected")])},writable:!0,configurable:!0})}catch(i22){this.patchFailures.push("Promise.prototype.then"),console.debug("[DefenseInDepthBox] Could not protect Promise.prototype.then:",i22 instanceof Error?i22.message:i22)}}patchPrototypeConstructor(e8,t8,i22){let o13=this;try{let r7=Object.getOwnPropertyDescriptor(e8,"constructor");this.originalDescriptors.push({target:e8,prop:"constructor",descriptor:r7});let s10=r7?.value;Object.defineProperty(e8,"constructor",{get(){if(o13.shouldBlock()){let n10=`${t8} access is blocked during script execution`,c18=o13.recordViolation(i22,t8,n10);throw new d3(n10,c18)}return o13.shouldAudit()&&o13.recordViolation(i22,t8,`${t8} accessed (audit mode)`),s10},set(n10){if(o13.shouldBlock()){let c18=`${t8} modification is blocked during script execution`,a14=o13.recordViolation(i22,t8,c18);throw new d3(c18,a14)}Object.defineProperty(this,"constructor",{value:n10,writable:!0,configurable:!0})},configurable:!0})}catch(r7){this.patchFailures.push(t8),console.debug(`[DefenseInDepthBox] Could not patch ${t8}:`,r7 instanceof Error?r7.message:r7)}}protectProcessMainModule(){if(typeof process>"u")return;let e8=this;try{let t8=Object.getOwnPropertyDescriptor(process,"mainModule");this.originalDescriptors.push({target:process,prop:"mainModule",descriptor:t8});let i22=t8?.value;i22!==void 0&&Object.defineProperty(process,"mainModule",{get(){if(e8.shouldBlock()){let o13="process.mainModule access is blocked during script execution",r7=e8.recordViolation("process_main_module","process.mainModule",o13);throw new d3(o13,r7)}return e8.shouldAudit()&&e8.recordViolation("process_main_module","process.mainModule","process.mainModule accessed (audit mode)"),i22},set(o13){if(e8.shouldBlock()){let r7="process.mainModule modification is blocked during script execution",s10=e8.recordViolation("process_main_module","process.mainModule",r7);throw new d3(r7,s10)}Object.defineProperty(process,"mainModule",{value:o13,writable:!0,configurable:!0})},configurable:!0})}catch(t8){this.patchFailures.push("process.mainModule"),console.debug("[DefenseInDepthBox] Could not protect process.mainModule:",t8 instanceof Error?t8.message:t8)}}protectProcessExecPath(){if(typeof process>"u")return;let e8=this;try{let t8=Object.getOwnPropertyDescriptor(process,"execPath");this.originalDescriptors.push({target:process,prop:"execPath",descriptor:t8});let i22=t8?.value??process.execPath;Object.defineProperty(process,"execPath",{get(){if(e8.shouldBlock()){let o13="process.execPath access is blocked during script execution",r7=e8.recordViolation("process_exec_path","process.execPath",o13);throw new d3(o13,r7)}return e8.shouldAudit()&&e8.recordViolation("process_exec_path","process.execPath","process.execPath accessed (audit mode)"),i22},set(o13){if(e8.shouldBlock()){let r7="process.execPath modification is blocked during script execution",s10=e8.recordViolation("process_exec_path","process.execPath",r7);throw new d3(r7,s10)}Object.defineProperty(process,"execPath",{value:o13,writable:!0,configurable:!0})},configurable:!0})}catch(t8){this.patchFailures.push("process.execPath"),console.debug("[DefenseInDepthBox] Could not protect process.execPath:",t8 instanceof Error?t8.message:t8)}}lockWellKnownSymbols(){let e8=(t8,i22)=>{try{let o13=Object.getOwnPropertyDescriptor(t8,i22);if(o13?.configurable){if("value"in o13){Object.defineProperty(t8,i22,{...o13,configurable:!1,writable:!1});return}Object.defineProperty(t8,i22,{...o13,configurable:!1})}}catch{}};for(let t8 of[Array,Map,Set,RegExp,Promise])e8(t8,Symbol.species);for(let t8 of[Array.prototype,String.prototype,Map.prototype,Set.prototype])e8(t8,Symbol.iterator);e8(Symbol.prototype,Symbol.toPrimitive),e8(Date.prototype,Symbol.toPrimitive);for(let t8 of[Symbol.match,Symbol.matchAll,Symbol.replace,Symbol.search,Symbol.split])e8(RegExp.prototype,t8);e8(Function.prototype,Symbol.hasInstance),e8(Array.prototype,Symbol.unscopables);for(let t8 of[Map.prototype,Set.prototype,Promise.prototype,ArrayBuffer.prototype])e8(t8,Symbol.toStringTag)}protectProxyRevocable(){let e8=this;try{let t8=Proxy.revocable;if(typeof t8!="function")return;let i22=Object.getOwnPropertyDescriptor(Proxy,"revocable");this.originalDescriptors.push({target:Proxy,prop:"revocable",descriptor:i22}),Object.defineProperty(Proxy,"revocable",{value:function(r7,s10){if(e8.shouldBlock()){let n10="Proxy.revocable is blocked during script execution",c18=e8.recordViolation("proxy","Proxy.revocable",n10);throw new d3(n10,c18)}return e8.shouldAudit()&&e8.recordViolation("proxy","Proxy.revocable","Proxy.revocable called (audit mode)"),t8(r7,s10)},writable:!1,configurable:!0})}catch(t8){this.patchFailures.push("Proxy.revocable"),console.debug("[DefenseInDepthBox] Could not protect Proxy.revocable:",t8 instanceof Error?t8.message:t8)}}protectDynamicImport(){if(!(b3||l5.importHooksRegistered))try{let e8=v2;if(!e8)throw new Error("node:module is unavailable");let t8=new Set;for(let r7 of e8.builtinModules??[]){let s10=r7.startsWith("node:")?r7.slice(5):r7;t8.add(s10);let n10=s10.indexOf("/");n10>0&&t8.add(s10.slice(0,n10))}let i22=r7=>{if(r7.startsWith("./")||r7.startsWith("../")||r7.startsWith("/")||r7.startsWith("file:")||r7.startsWith("data:")||r7.startsWith("blob:")||r7.startsWith("http:")||r7.startsWith("https:"))return!1;let s10=r7.startsWith("node:")?r7.slice(5):r7;if(!s10)return!1;if(typeof e8.isBuiltin=="function"&&e8.isBuiltin(s10)||t8.has(s10))return!0;let n10=s10.indexOf("/");return n10>0&&t8.has(s10.slice(0,n10))},o13=r7=>{let s10=p2?.getStore();return r7.config.auditMode===!0&&s10?.sandboxActive===!0&&!l5.isTrustedContext(s10)};if(typeof e8.registerHooks=="function"){e8.registerHooks({resolve(r7,s10,n10){let c18=l5.instance;if(!c18)return n10(r7,s10);if((r7.startsWith("data:")||r7.startsWith("blob:"))&&c18.shouldBlock()){let a14=`import(${r7.startsWith("data:")?"data:":"blob:"})`,u15=`dynamic import of ${r7.startsWith("data:")?"data:":"blob:"} URLs is blocked by defense-in-depth`,h18=c18.recordViolation("dynamic_import_builtin",a14,u15);throw new d3(u15,h18)}if(i22(r7)){let a14=`import(${r7})`,u15=`dynamic import of Node.js builtin '${r7}' is blocked during script execution`;if(c18.shouldBlock()){let h18=c18.recordViolation("dynamic_import_builtin",a14,u15);throw new d3(u15,h18)}o13(c18)&&c18.recordViolation("dynamic_import_builtin",a14,`dynamic import of Node.js builtin '${r7}' called (audit mode)`)}return n10(r7,s10)}}),l5.importHooksRegistered=!0;return}throw new Error("context-aware ESM loader hooks (node:module.registerHooks) are unavailable")}catch(e8){throw new Error(`DefenseInDepthBox: could not register dynamic-import hooks: ${e8 instanceof Error?e8.message:String(e8)}`,{cause:e8})}}protectModuleLoad(){this.protectModuleMethod("_load","module_load")}protectModuleResolveFilename(){this.protectModuleMethod("_resolveFilename","module_resolve_filename")}protectModuleMethod(e8,t8){if(b3)return;let i22=`Module.${e8}`;try{let o13=j,r7=o13?.[e8];if(!o13||typeof r7!="function")throw new Error("node:module Module class or method is unavailable");let s10=Object.getOwnPropertyDescriptor(o13,e8);if(!s10)throw new Error("method has no own property descriptor");if(s10.configurable===!1&&s10.writable===!1)throw new Error("method is non-configurable and non-writable");let n10=a14=>this.createBlockingProxy(a14,i22,t8),c18=n10(r7);if(this.originalDescriptors.push({target:o13,prop:e8,descriptor:s10}),"value"in s10){Object.defineProperty(o13,e8,{...s10,value:c18});let a14=Object.getOwnPropertyDescriptor(o13,e8);if(o13[e8]!==c18||a14?.value!==c18)throw new Error("installed patch failed verification")}else{let a14=s10.get,u15=s10.set;if(typeof u15!="function")throw new Error("accessor has no setter to install protection through");this.moduleAccessorResets.push(()=>{u15.call(o13,r7)});let h18={configurable:s10.configurable,enumerable:s10.enumerable,get:a14,set:f15=>{if(this.shouldBlock()){let m16=`${i22} modification is blocked during script execution`,w15=this.recordViolation(t8,i22,m16);throw new d3(m16,w15)}this.shouldAudit()&&this.recordViolation(t8,i22,`${i22} modified (audit mode)`);let g13=typeof f15=="function"?n10(f15):f15,x23=a14?.call(o13);try{y14(g13)}catch(m16){throw y14(x23),m16}}},y14=f15=>{try{u15.call(o13,f15)}finally{Object.defineProperty(o13,e8,h18)}let g13=Object.getOwnPropertyDescriptor(o13,e8);if(g13?.get!==h18.get||g13?.set!==h18.set||a14?.call(o13)!==f15||o13[e8]!==f15)throw new Error("installed patch failed accessor verification")};y14(c18)}}catch{this.patchFailures.push(i22)}}applyPatch(e8,t8=!1){let{target:i22,prop:o13,violationType:r7,strategy:s10}=e8;try{let n10=i22[o13];if(n10===void 0)return;let c18=Object.getOwnPropertyDescriptor(i22,o13);if(this.originalDescriptors.push({target:i22,prop:o13,descriptor:c18}),s10==="freeze"){if(typeof n10=="object"&&n10!==null){t8&&Object.freeze(n10);let a14=this.getPathForTarget(i22,o13),u15=this.createReadonlyObjectProxy(n10,a14,r7);Object.defineProperty(i22,o13,{...c18,value:u15})}}else{let a14=this.getPathForTarget(i22,o13),u15=typeof n10=="function"?this.createBlockingProxy(n10,a14,r7):this.createBlockingObjectProxy(n10,a14,r7,e8.allowedKeys);Object.defineProperty(i22,o13,{value:u15,writable:!0,configurable:!0})}}catch(n10){let c18=this.getPathForTarget(i22,o13);this.patchFailures.push(c18),console.debug(`[DefenseInDepthBox] Could not patch ${c18}:`,n10 instanceof Error?n10.message:n10)}}restorePatches(){for(let e8=this.moduleAccessorResets.length-1;e8>=0;e8--)try{this.moduleAccessorResets[e8]()}catch(t8){console.debug("[DefenseInDepthBox] Could not reset module accessor override slot:",t8 instanceof Error?t8.message:t8)}this.moduleAccessorResets=[];for(let e8=this.temporaryIntrinsicDescriptors.length-1;e8>=0;e8--){let{target:t8,prop:i22,descriptor:o13}=this.temporaryIntrinsicDescriptors[e8];try{Object.defineProperty(t8,i22,o13)}catch(r7){console.debug(`[DefenseInDepthBox] Could not restore temporary intrinsic ${String(i22)}:`,r7 instanceof Error?r7.message:r7)}}this.temporaryIntrinsicDescriptors=[];for(let e8=this.originalDescriptors.length-1;e8>=0;e8--){let{target:t8,prop:i22,descriptor:o13}=this.originalDescriptors[e8];try{o13?Object.defineProperty(t8,i22,o13):delete t8[i22]}catch(r7){let s10=this.getPathForTarget(t8,i22);console.debug(`[DefenseInDepthBox] Could not restore ${s10}:`,r7 instanceof Error?r7.message:r7)}}this.originalDescriptors=[]}}}});import{createRequire as createRequire6}from"node:module";function u4(e8){return typeof e8!="function"?e8:B2.bindCurrentContext(e8)}function I2(e8,n10){if(n10===Number.POSITIVE_INFINITY)return;let i22=u4(e8),t8={cleared:!1,remainingMs:Math.max(0,n10),timer:void 0},r7=()=>{if(t8.cleared)return;let o13=Math.min(t8.remainingMs,c2);t8.timer=s2(()=>{t8.cleared||(t8.remainingMs-=o13,t8.remainingMs>0?r7():i22())},o13)};return r7(),t8}function _2(e8){e8&&(e8.cleared=!0,e8.timer!==void 0&&l6(e8.timer))}var require7,s2,l6,T3,f3,b4,d4,c2,init_chunk_43OP7DFL=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-43OP7DFL.js"(){init_chunk_CBM6J4AL();require7=createRequire6(import.meta.url),s2=globalThis.setTimeout.bind(globalThis),l6=globalThis.clearTimeout.bind(globalThis),T3=globalThis.setInterval.bind(globalThis),f3=globalThis.clearInterval.bind(globalThis);b4=((e8,n10,...i22)=>s2(u4(e8),n10,...i22)),d4=l6,c2=2147483647}});import{createRequire as createRequire7}from"node:module";var require8,o2,r,e,t,s3,a4,init_chunk_XZ34OGNM=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-XZ34OGNM.js"(){require8=createRequire7(import.meta.url),o2=globalThis.SharedArrayBuffer,r=globalThis.Atomics,e=performance.now.bind(performance),t=globalThis.Headers,s3=globalThis.Proxy,a4=Promise.prototype.then}});import{createRequire as createRequire8}from"node:module";var require9,h3,init_chunk_J2OBOJ64=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-J2OBOJ64.js"(){init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();require9=createRequire8(import.meta.url),h3=class{scope;site;stdoutChunks=[];stderrChunks=[];stdoutBytes=0;stderrBytes=0;attachedErrors=new WeakSet;constructor(t8,s10){this.scope=t8,this.site=s10}append(t8,s10,e8=0,r7="text"){let d11;try{d11=this.scope.appendOutput(t8,s10,this.site,e8,r7)}catch(n10){throw this.prependTo(n10),n10}s10&&(t8==="stdout"?this.stdoutChunks:this.stderrChunks).push(s10),t8==="stdout"?this.stdoutBytes+=d11:this.stderrBytes+=d11}prependTo(t8){t8 instanceof n&&(this.attachedErrors.has(t8)||(this.attachedErrors.add(t8),t8.prependOutput(this.stdout,this.stderr)))}appendResult(t8,s10=t8.stdout){let e8=t8.stdoutKind==="bytes"||t8.stdoutEncoding==="binary"?"bytes":"text",r7=e8==="bytes"?s10.length:x(s10);this.append("stdout",s10,Math.min(t8.internalOutputAccounting?.stdout??0,r7),e8),this.append("stderr",t8.stderr,t8.internalOutputAccounting?.stderr??0)}build(t8,s10){return{stdout:this.stdoutChunks.join(""),stderr:this.stderrChunks.join(""),exitCode:t8,...s10,internalOutputAccounting:{stdout:this.stdoutBytes,stderr:this.stderrBytes}}}get stdout(){return this.stdoutChunks.join("")}get stderr(){return this.stderrChunks.join("")}}}});import{createRequire as createRequire9}from"node:module";function n2(e8){return`'${e8.replace(/'/g,"'\\''")}'`}function r2(e8){return e8.map(n2).join(" ")}var require10,init_chunk_L2UW7DWF=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-L2UW7DWF.js"(){require10=createRequire9(import.meta.url)}});import{createRequire as createRequire10}from"node:module";function r3(e8){return Object.assign(Object.create(null),Object.fromEntries(e8))}function n3(e8,t8){return Object.assign(Object.create(null),Object.fromEntries(e8),t8)}function c3(...e8){return Object.assign(Object.create(null),...e8)}var require11,init_chunk_DLL7UR66=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-DLL7UR66.js"(){require11=createRequire10(import.meta.url)}});import{createRequire as createRequire11}from"node:module";function a5(t8,e8,n10){if(!t8||B2.isInSandboxedContext())return;let r7=`${e8} ${n10} attempted outside defense context`;throw new d3(r7,{timestamp:Date.now(),type:"missing_defense_context",message:r7,path:"DefenseInDepthBox.context",stack:new Error().stack,executionId:B2.getCurrentExecutionId()})}async function x3(t8,e8,n10,r7){a5(t8,e8,`${n10} (pre-await)`);let o13=await r7();return a5(t8,e8,`${n10} (post-await)`),o13}var require12,init_chunk_CHWP6GRK=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-CHWP6GRK.js"(){init_chunk_CBM6J4AL();require12=createRequire11(import.meta.url)}});import{createRequire as createRequire12}from"node:module";function r4(s10,t8){if(!Number.isSafeInteger(s10)||s10<0)throw new f2(`${t8}: invalid bounded allocation count`,"array_elements")}function c4(s10){return new f2(`${s10}: invalid bounded allocation count`,"array_elements")}function f4(s10,t8,e8){r4(s10,e8),r4(t8,e8);let i22=s10+t8;if(!Number.isSafeInteger(i22))throw c4(e8);return i22}function p3(s10,t8,e8){if(r4(s10,e8),r4(t8,e8),s10!==0&&t8>Math.floor(Number.MAX_SAFE_INTEGER/s10))throw c4(e8);return s10*t8}function m2(s10,t8,e8,i22){let n10=new u5(e8,i22);return n10.repeat(s10,t8),n10.build()}function b5(s10,t8,e8,i22){let n10=new u5(e8,i22);for(let h18=0;h18<s10.length;h18++)h18>0&&n10.append(t8),n10.append(s10[h18]);return n10.build()}var require13,u5,init_chunk_DIWMSSQY=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-DIWMSSQY.js"(){init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();require13=createRequire12(import.meta.url);u5=class{maxBytes;label;createLimitError;reservedBytes;chunks=[];usedBytes=0;constructor(t8,e8,i22=void 0,n10=0){this.maxBytes=t8,this.label=e8,this.createLimitError=i22,this.reservedBytes=n10,r4(t8,e8),r4(n10,e8),n10>t8&&this.fail()}fail(){throw this.createLimitError?.()??new f2(`${this.label}: output size limit exceeded (${this.maxBytes} bytes)`,"output_size")}get byteLength(){return this.usedBytes}get remainingBytes(){return this.maxBytes-this.reservedBytes-this.usedBytes}reserve(t8){r4(t8,this.label),t8>this.remainingBytes&&this.fail()}append(t8){let e8=x(t8);return this.reserve(e8),t8&&this.chunks.push(t8),this.usedBytes+=e8,this}repeat(t8,e8){r4(e8,this.label);let i22=x(t8);return i22!==0&&e8>Math.floor(this.remainingBytes/i22)&&this.fail(),this.append(t8.repeat(e8))}reset(){this.chunks.length=0,this.usedBytes=0}build(){return this.chunks.join("")}}}});import{createRequire as createRequire13}from"node:module";function P1(i22){let t8=0;return i22.includes("i")&&(t8|=y2.CASE_INSENSITIVE),i22.includes("m")&&(t8|=y2.MULTILINE),i22.includes("s")&&(t8|=y2.DOTALL),t8}function L1(i22){return y2.translateRegExp(i22)}function H1(i22,t8){let e8=P1(t8);if(i22.length>M1)return y2.compile(L1(i22),e8);let s10=`${e8} ${i22}`,n10=F3.get(s10);if(n10!==void 0)return n10;let r7=y2.compile(L1(i22),e8);if(F3.size>=k1){let a14=F3.keys().next().value;a14!==void 0&&F3.delete(a14)}return F3.set(s10,r7),r7}function G1(i22,t8="",e8={}){return new v3(i22,t8,e8)}var require14,g2,u6,l7,x4,E3,C3,U1,_3,Y,z,P2,I3,$3,V2,N2,k2,T4,j2,U,q,W,w,K,X,H2,I1,y1,Z,Q,c5,J,D2,t1,e1,d5,h1,u1,c1,p1,f1,g1,A1,E1,w1,d1,C1,O1,m1,S1,R1,T1,N1,x1,b1,L2,G2,s1,n1,i1,r1,a1,y2,_1,D1,k1,M1,F3,v3,l1,init_chunk_7GA3QWJJ=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-7GA3QWJJ.js"(){init_chunk_DIWMSSQY();init_chunk_EFORKKSH();require14=createRequire13(import.meta.url),g2=class i2{static FOLD_CASE=1;static LITERAL=2;static CLASS_NL=4;static DOT_NL=8;static ONE_LINE=16;static NON_GREEDY=32;static PERL_X=64;static UNICODE_GROUPS=128;static WAS_DOLLAR=256;static MATCH_NL=i2.CLASS_NL|i2.DOT_NL;static PERL=i2.CLASS_NL|i2.ONE_LINE|i2.PERL_X|i2.UNICODE_GROUPS;static POSIX=0;static UNANCHORED=0;static ANCHOR_START=1;static ANCHOR_BOTH=2},u6=class{static CODES=new Map([["\x07",7],["\b",8],[" ",9],[`
13
+ This is a defense-in-depth measure and indicates a bug in just-bash. Please report this at security@vercel.com`;b3=typeof __BROWSER__<"u"&&__BROWSER__;k=null,v2=null,j=null;if(!b3)try{k=M.AsyncLocalStorage,v2=$2,j=v2.Module??v2.default??null}catch{}d3=class extends Error{violation;constructor(e8,t8){super(S(e8,t8.type,t8.type==="error_prepare_stack_trace"||T2().has(t8.type))),this.violation=t8,this.name="SecurityViolationError"}},p2=!b3&&k?new k:null,G=1e3;N={enabled:!0,auditMode:!1,processLifetimeIntrinsicHardening:!1};B2=class l5{static instance=null;static importHooksRegistered=!1;static trustedExecutionDepth=new Map;config;refCount=0;patchFailures=[];activeExecutionIds=new Set;contextCache=new Map;originalDescriptors=[];moduleAccessorResets=[];temporaryIntrinsicDescriptors=[];violations=[];activationTime=0;totalActiveTimeMs=0;constructor(e8){this.config=e8}static getInstance(e8){let t8=A(e8);if(!l5.instance)l5.instance=new l5(t8);else{let i22=l5.instance.config;if(!H(t8,i22))throw new Error("DefenseInDepthBox config conflict: all resolved defense options, including exclusions and the violation callback, must match across Bash instances. Call DefenseInDepthBox.resetInstance() between incompatible configurations.")}return l5.instance}static resetInstance(){l5.instance&&(l5.instance.forceDeactivate(),l5.instance=null),l5.trustedExecutionDepth.clear()}static isInSandboxedContext(){return p2?p2?.getStore()?.sandboxActive===!0:!1}static getCurrentExecutionId(){if(p2)return p2?.getStore()?.executionId}static enterTrustedScope(e8){let t8=l5.trustedExecutionDepth.get(e8)??0;l5.trustedExecutionDepth.set(e8,t8+1)}static leaveTrustedScope(e8){let t8=l5.trustedExecutionDepth.get(e8);if(t8){if(t8===1){l5.trustedExecutionDepth.delete(e8);return}l5.trustedExecutionDepth.set(e8,t8-1)}}static isTrustedScopeActive(e8){return e8?(l5.trustedExecutionDepth.get(e8)??0)>0:!1}static isTrustedContext(e8){return!e8||e8.forceUntrusted?!1:e8.trusted===!0||l5.isTrustedScopeActive(e8.executionId)}isExecutionIdActive(e8){return this.activeExecutionIds.has(e8)}getCachedContext(e8){let t8=this.contextCache.get(e8);return t8||(t8={sandboxActive:!0,executionId:e8},this.contextCache.set(e8,t8)),t8}static bindCurrentContext(e8){if(!p2)return e8;let t8=p2.getStore(),i22=t8?.sandboxActive===!0?t8.executionId:void 0;if(!i22)return e8;let r7=l5.instance?.getCachedContext(i22)??{sandboxActive:!0,executionId:i22},s10=t8?.forceUntrusted?{...r7,forceUntrusted:!0}:r7;return((...n10)=>{let c18=l5.instance;if(!(c18&&!c18.isExecutionIdActive(i22)&&(c18.recordViolation("bound_callback_after_deactivate","bound callback","Bound callback blocked after originating execution was deactivated"),!c18.config.auditMode)))return L(s10,e8,...n10)})}isEnabled(){return this.getStatus().state==="enabled"}getStatus(){let e8=C2();return this.config.requested==="disabled"?{requested:"disabled",state:"disabled",level:"none",contextualDynamicImportProtection:e8,processLifetimeIntrinsicHardening:this.config.processLifetimeIntrinsicHardening===!0,intrinsicProtection:this.config.processLifetimeIntrinsicHardening?"process-lifetime":"scoped-best-effort"}:!p2||b3?{requested:this.config.requested,state:"unsupported",level:"none",contextualDynamicImportProtection:!1,processLifetimeIntrinsicHardening:this.config.processLifetimeIntrinsicHardening===!0,intrinsicProtection:this.config.processLifetimeIntrinsicHardening?"process-lifetime":"scoped-best-effort",reason:"context-aware ESM loader hooks (node:module.registerHooks) are unavailable"}:{requested:this.config.requested,state:"enabled",level:this.config.auditMode?"none":e8?"full":"best-effort",contextualDynamicImportProtection:e8,processLifetimeIntrinsicHardening:this.config.processLifetimeIntrinsicHardening===!0,intrinsicProtection:this.config.processLifetimeIntrinsicHardening?"process-lifetime":"scoped-best-effort",reason:this.config.auditMode?"audit mode records violations but does not block them":e8?void 0:"best-effort protection; context-aware ESM loader hooks are unavailable"}}updateConfig(e8){if(this.refCount>0)throw new Error("DefenseInDepthBox configuration cannot change while protection is active");this.config=A({...this.config,...e8})}activate(){if(!b3&&this.config.enabled&&!p2)throw new Error("DefenseInDepthBox: enabled protection requires node:async_hooks and node:module");if(b3||!this.config.enabled){let i22=I(),o13=!1;return{run:r7=>o13?Promise.reject(new Error("DefenseInDepthBox handle is deactivated and cannot run new work")):r7(),deactivate:()=>{o13=!0},executionId:i22}}if(this.refCount++,this.refCount===1){try{this.applyPatches()}catch(i22){throw this.restorePatches(),this.activeExecutionIds.clear(),this.contextCache.clear(),this.refCount=0,i22}this.activationTime=Date.now()}let e8=I(),t8=!1;return{run:i22=>t8?Promise.reject(new Error("DefenseInDepthBox handle is deactivated and cannot run new work")):(this.activeExecutionIds.add(e8),p2.run({sandboxActive:!0,executionId:e8},i22)),deactivate:()=>{t8||(t8=!0,this.activeExecutionIds.delete(e8),this.contextCache.delete(e8),l5.trustedExecutionDepth.delete(e8),this.refCount--,this.refCount===0&&(this.restorePatches(),this.totalActiveTimeMs+=Date.now()-this.activationTime),this.refCount<0&&(this.refCount=0))},executionId:e8}}forceDeactivate(){this.refCount>0&&(this.restorePatches(),this.totalActiveTimeMs+=Date.now()-this.activationTime),this.activeExecutionIds.clear(),this.contextCache.clear(),this.refCount=0}isActive(){return this.refCount>0}getStats(){return{violationsBlocked:this.violations.length,violations:[...this.violations],activeTimeMs:this.totalActiveTimeMs+(this.refCount>0?Date.now()-this.activationTime:0),refCount:this.refCount}}getPatchFailures(){return[...this.patchFailures]}clearViolations(){this.violations=[]}getPathForTarget(e8,t8){return e8===globalThis?`globalThis.${t8}`:e8===process?`process.${t8}`:e8===Error?`Error.${t8}`:e8===Function.prototype?`Function.prototype.${t8}`:e8===Object.prototype?`Object.prototype.${t8}`:`<object>.${t8}`}static runTrusted(e8){if(!p2)return e8();let t8=p2.getStore();if(!t8)return e8();let{executionId:i22}=t8;return p2.run({...t8,trusted:!0,forceUntrusted:!1},()=>{l5.enterTrustedScope(i22);try{let o13=e8();return typeof o13=="object"&&o13!==null&&"finally"in o13&&typeof o13.finally=="function"?o13.finally(()=>{l5.leaveTrustedScope(i22)}):(l5.leaveTrustedScope(i22),o13)}catch(o13){throw l5.leaveTrustedScope(i22),o13}})}static async runTrustedAsync(e8){if(!p2)return e8();let t8=p2.getStore();if(!t8)return e8();let{executionId:i22}=t8;return await p2.run({...t8,trusted:!0,forceUntrusted:!1},async()=>{l5.enterTrustedScope(i22);try{return await e8()}finally{l5.leaveTrustedScope(i22)}})}static async runUntrustedAsync(e8){if(!p2)return e8();let t8=p2.getStore();return t8?p2.run({...t8,trusted:!1,forceUntrusted:!0},e8):e8()}shouldBlock(){if(b3||this.config.auditMode||!p2)return!1;let e8=p2?.getStore();return!(e8?.sandboxActive!==!0||l5.isTrustedContext(e8))}shouldAudit(){if(!this.config.auditMode||!p2)return!1;let e8=p2.getStore();return e8?.sandboxActive===!0&&!l5.isTrustedContext(e8)}recordViolation(e8,t8,i22){let o13={timestamp:E2(),type:e8,message:i22,path:t8,stack:new Error().stack,executionId:p2?.getStore()?.executionId};if(this.violations.length<G&&this.violations.push(o13),this.config.onViolation)try{this.config.onViolation(o13)}catch(r7){console.debug("[DefenseInDepthBox] onViolation callback threw:",r7 instanceof Error?r7.message:r7)}return o13}createBlockingProxy(e8,t8,i22){let o13=this;return new Proxy(e8,{apply(r7,s10,n10){if(o13.shouldBlock()){let c18=`${t8} is blocked during script execution`,a14=o13.recordViolation(i22,t8,c18);throw new d3(c18,a14)}return o13.shouldAudit()&&o13.recordViolation(i22,t8,`${t8} called (audit mode)`),Reflect.apply(r7,s10,n10)},construct(r7,s10,n10){if(o13.shouldBlock()){let c18=`${t8} constructor is blocked during script execution`,a14=o13.recordViolation(i22,t8,c18);throw new d3(c18,a14)}return o13.shouldAudit()&&o13.recordViolation(i22,t8,`${t8} constructor called (audit mode)`),Reflect.construct(r7,s10,n10)}})}createBlockingObjectProxy(e8,t8,i22,o13){let r7=this;return new Proxy(e8,{get(s10,n10,c18){if(r7.shouldBlock()){if(o13&&typeof n10=="string"&&o13.has(n10))return Reflect.get(s10,n10,c18);let a14=`${t8}.${String(n10)}`,u15=`${a14} is blocked during script execution`,h18=r7.recordViolation(i22,a14,u15);throw new d3(u15,h18)}if(r7.shouldAudit()){let a14=`${t8}.${String(n10)}`;r7.recordViolation(i22,a14,`${a14} accessed (audit mode)`)}return Reflect.get(s10,n10,c18)},set(s10,n10,c18,a14){if(r7.shouldBlock()){let u15=`${t8}.${String(n10)}`,h18=`${u15} modification is blocked during script execution`,y14=r7.recordViolation(i22,u15,h18);throw new d3(h18,y14)}return t8==="process.env"&&n10==="DEBUG"?Reflect.set(s10,n10,c18):Reflect.set(s10,n10,c18,a14)},ownKeys(s10){if(r7.shouldBlock()){let n10=`${t8} enumeration is blocked during script execution`,c18=r7.recordViolation(i22,t8,n10);throw new d3(n10,c18)}return Reflect.ownKeys(s10)},getOwnPropertyDescriptor(s10,n10){if(r7.shouldBlock()){let c18=`${t8}.${String(n10)}`,a14=`${c18} descriptor access is blocked during script execution`,u15=r7.recordViolation(i22,c18,a14);throw new d3(a14,u15)}return Reflect.getOwnPropertyDescriptor(s10,n10)},has(s10,n10){if(r7.shouldBlock()){let c18=`${t8}.${String(n10)}`,a14=`${c18} existence check is blocked during script execution`,u15=r7.recordViolation(i22,c18,a14);throw new d3(a14,u15)}return Reflect.has(s10,n10)},deleteProperty(s10,n10){if(r7.shouldBlock()){let c18=`${t8}.${String(n10)}`,a14=`${c18} deletion is blocked during script execution`,u15=r7.recordViolation(i22,c18,a14);throw new d3(a14,u15)}return Reflect.deleteProperty(s10,n10)},setPrototypeOf(s10,n10){if(r7.shouldBlock()){let c18=`${t8} setPrototypeOf is blocked during script execution`,a14=r7.recordViolation(i22,t8,c18);throw new d3(c18,a14)}return Reflect.setPrototypeOf(s10,n10)},defineProperty(s10,n10,c18){if(r7.shouldBlock()){let a14=`${t8}.${String(n10)}`,u15=`${a14} defineProperty is blocked during script execution`,h18=r7.recordViolation(i22,a14,u15);throw new d3(u15,h18)}return Reflect.defineProperty(s10,n10,c18)}})}createReadonlyObjectProxy(e8,t8,i22){let o13=this,r7=s10=>{let n10=`${t8} ${s10} is blocked during script execution`,c18=o13.recordViolation(i22,t8,n10);throw new d3(n10,c18)};return new Proxy(e8,{set(s10,n10,c18,a14){return o13.shouldBlock()&&r7("modification"),Reflect.set(s10,n10,c18,a14)},defineProperty(s10,n10,c18){return o13.shouldBlock()&&r7("defineProperty"),Reflect.defineProperty(s10,n10,c18)},deleteProperty(s10,n10){return o13.shouldBlock()&&r7("deletion"),Reflect.deleteProperty(s10,n10)},setPrototypeOf(s10,n10){return o13.shouldBlock()&&r7("setPrototypeOf"),Reflect.setPrototypeOf(s10,n10)},preventExtensions(s10){return o13.shouldBlock()&&r7("preventExtensions"),Reflect.preventExtensions(s10)}})}applyPatches(){this.patchFailures=[];let e8=_(),t8=new Set(this.config.excludeViolationTypes??[]),i22=new Set(["process_send","process_channel","process_stdout","process_stderr"]),o13=[];for(let n10 of e8)if(!t8.has(n10.violationType)&&!i22.has(n10.violationType)){if(n10.strategy==="freeze"){o13.push(n10);continue}this.applyPatch(n10)}this.protectConstructorChain(),t8.has("error_prepare_stack_trace")||this.protectErrorPrepareStackTrace(),this.protectPromiseThen(),C2()&&this.protectDynamicImport(),this.protectModuleLoad(),this.protectModuleResolveFilename(),this.protectProcessMainModule(),this.protectProcessExecPath(),this.protectProxyRevocable();let r7=["Function.prototype.constructor","Module._load","Module._resolveFilename"],s10=this.patchFailures.filter(n10=>r7.includes(n10));if(s10.length>0)throw this.restorePatches(),new Error(`DefenseInDepthBox: critical patches failed: ${s10.join(", ")}`);this.config.processLifetimeIntrinsicHardening||this.protectReversibleIntrinsics(o13);for(let n10 of o13)this.applyPatch(n10,this.config.processLifetimeIntrinsicHardening===!0);this.config.processLifetimeIntrinsicHardening&&this.lockWellKnownSymbols()}protectReversibleIntrinsics(e8){let t8=new Set,i22=(s10,n10)=>{let c18=Object.getOwnPropertyDescriptor(s10,n10);!c18||!("value"in c18)||c18.writable!==!0||c18.configurable!==!0||(this.temporaryIntrinsicDescriptors.push({target:s10,prop:n10,descriptor:c18}),Object.defineProperty(s10,n10,{...c18,writable:!1}))};for(let{target:s10,prop:n10}of e8){let c18=s10[n10];if(!(typeof c18!="object"||c18===null)){t8.add(c18);for(let a14 of Reflect.ownKeys(c18))i22(c18,a14)}}let o13=[];for(let s10 of[Array,Map,Set,RegExp,Promise])o13.push([s10,Symbol.species]);for(let s10 of[Array.prototype,String.prototype,Map.prototype,Set.prototype])o13.push([s10,Symbol.iterator]);o13.push([Symbol.prototype,Symbol.toPrimitive],[Date.prototype,Symbol.toPrimitive],[Function.prototype,Symbol.hasInstance],[Array.prototype,Symbol.unscopables]);for(let s10 of[Symbol.match,Symbol.matchAll,Symbol.replace,Symbol.search,Symbol.split])o13.push([RegExp.prototype,s10]);for(let s10 of[Map.prototype,Set.prototype,Promise.prototype,ArrayBuffer.prototype])o13.push([s10,Symbol.toStringTag]);for(let[s10,n10]of o13)t8.add(s10),i22(s10,n10);let r7=(s10,n10,c18)=>{let a14=Object.getOwnPropertyDescriptor(s10,n10);if(!a14||!("value"in a14)||typeof a14.value!="function"||a14.configurable!==!0)return;let u15=a14.value,h18=this,y14=function(...f15){let g13=f15[0];if(h18.shouldBlock()&&typeof g13=="object"&&g13!==null&&t8.has(g13)){let x23=`${c18}.${n10}`,m16=`${x23} is blocked for protected intrinsics during script execution`,w15=h18.recordViolation("prototype_mutation",x23,m16);throw new d3(m16,w15)}return Reflect.apply(u15,this,f15)};this.temporaryIntrinsicDescriptors.push({target:s10,prop:n10,descriptor:a14}),Object.defineProperty(s10,n10,{...a14,value:y14,writable:!1})};for(let s10 of["assign","defineProperties","defineProperty","freeze","preventExtensions","seal","setPrototypeOf"])r7(Object,s10,"Object");for(let s10 of["defineProperty","deleteProperty","preventExtensions","set","setPrototypeOf"])r7(Reflect,s10,"Reflect")}protectConstructorChain(){this.patchPrototypeConstructor(Function.prototype,"Function.prototype.constructor","function_constructor");try{let e8=Object.getPrototypeOf(async()=>{}).constructor;e8&&e8!==Function&&this.patchPrototypeConstructor(e8.prototype,"AsyncFunction.prototype.constructor","async_function_constructor")}catch(e8){this.patchFailures.push("AsyncFunction.prototype.constructor"),console.debug("[DefenseInDepthBox] Could not patch AsyncFunction.prototype.constructor:",e8 instanceof Error?e8.message:e8)}try{let e8=Object.getPrototypeOf(function*(){}).constructor;e8&&e8!==Function&&this.patchPrototypeConstructor(e8.prototype,"GeneratorFunction.prototype.constructor","generator_function_constructor")}catch(e8){this.patchFailures.push("GeneratorFunction.prototype.constructor"),console.debug("[DefenseInDepthBox] Could not patch GeneratorFunction.prototype.constructor:",e8 instanceof Error?e8.message:e8)}try{let e8=Object.getPrototypeOf(async function*(){}).constructor,t8=Object.getPrototypeOf(async()=>{}).constructor;e8&&e8!==Function&&e8!==t8&&this.patchPrototypeConstructor(e8.prototype,"AsyncGeneratorFunction.prototype.constructor","async_generator_function_constructor")}catch(e8){this.patchFailures.push("AsyncGeneratorFunction.prototype.constructor"),console.debug("[DefenseInDepthBox] Could not patch AsyncGeneratorFunction.prototype.constructor:",e8 instanceof Error?e8.message:e8)}}protectErrorPrepareStackTrace(){let e8=this;try{let t8=Object.getOwnPropertyDescriptor(Error,"prepareStackTrace");this.originalDescriptors.push({target:Error,prop:"prepareStackTrace",descriptor:t8});let i22=t8?.value;Object.defineProperty(Error,"prepareStackTrace",{get(){return i22},set(o13){if(e8.shouldBlock()){let r7="Error.prepareStackTrace modification is blocked during script execution",s10=e8.recordViolation("error_prepare_stack_trace","Error.prepareStackTrace",r7);throw new d3(r7,s10)}e8.shouldAudit()&&e8.recordViolation("error_prepare_stack_trace","Error.prepareStackTrace","Error.prepareStackTrace set (audit mode)"),i22=o13},configurable:!0})}catch(t8){this.patchFailures.push("Error.prepareStackTrace"),console.debug("[DefenseInDepthBox] Could not protect Error.prepareStackTrace:",t8 instanceof Error?t8.message:t8)}}protectPromiseThen(){let e8=this;try{let r7=function(...s10){return p2.run(this.captured,()=>{if(!this.box.isExecutionIdActive(this.executionId)){if(this.box.recordViolation("promise_then_after_deactivate","Promise.then","Promise.then callback is blocked after defense deactivation"),this.box.config.auditMode)return Reflect.apply(this.cb,void 0,s10);if(this.kind==="fulfilled")return s10[0];throw s10[0]}return Reflect.apply(this.cb,void 0,s10)})};var t8=r7;let i22=Object.getOwnPropertyDescriptor(Promise.prototype,"then");this.originalDescriptors.push({target:Promise.prototype,prop:"then",descriptor:i22});let o13=i22?.value;if(typeof o13!="function")return;Object.defineProperty(Promise.prototype,"then",{value:function(n10,c18){if(!p2)return Reflect.apply(o13,this,[n10,c18]);let a14=p2.getStore(),u15=a14?.sandboxActive===!0&&a14.trusted!==!0?a14.executionId:void 0;if(!u15)return Reflect.apply(o13,this,[n10,c18]);let h18=e8.getCachedContext(u15),y14=a14?.forceUntrusted?{...h18,forceUntrusted:!0}:h18,f15=(g13,x23)=>typeof g13!="function"?g13:r7.bind({box:e8,executionId:u15,captured:y14,cb:g13,kind:x23});return Reflect.apply(o13,this,[f15(n10,"fulfilled"),f15(c18,"rejected")])},writable:!0,configurable:!0})}catch(i22){this.patchFailures.push("Promise.prototype.then"),console.debug("[DefenseInDepthBox] Could not protect Promise.prototype.then:",i22 instanceof Error?i22.message:i22)}}patchPrototypeConstructor(e8,t8,i22){let o13=this;try{let r7=Object.getOwnPropertyDescriptor(e8,"constructor");this.originalDescriptors.push({target:e8,prop:"constructor",descriptor:r7});let s10=r7?.value;Object.defineProperty(e8,"constructor",{get(){if(o13.shouldBlock()){let n10=`${t8} access is blocked during script execution`,c18=o13.recordViolation(i22,t8,n10);throw new d3(n10,c18)}return o13.shouldAudit()&&o13.recordViolation(i22,t8,`${t8} accessed (audit mode)`),s10},set(n10){if(o13.shouldBlock()){let c18=`${t8} modification is blocked during script execution`,a14=o13.recordViolation(i22,t8,c18);throw new d3(c18,a14)}Object.defineProperty(this,"constructor",{value:n10,writable:!0,configurable:!0})},configurable:!0})}catch(r7){this.patchFailures.push(t8),console.debug(`[DefenseInDepthBox] Could not patch ${t8}:`,r7 instanceof Error?r7.message:r7)}}protectProcessMainModule(){if(typeof process>"u")return;let e8=this;try{let t8=Object.getOwnPropertyDescriptor(process,"mainModule");this.originalDescriptors.push({target:process,prop:"mainModule",descriptor:t8});let i22=t8?.value;i22!==void 0&&Object.defineProperty(process,"mainModule",{get(){if(e8.shouldBlock()){let o13="process.mainModule access is blocked during script execution",r7=e8.recordViolation("process_main_module","process.mainModule",o13);throw new d3(o13,r7)}return e8.shouldAudit()&&e8.recordViolation("process_main_module","process.mainModule","process.mainModule accessed (audit mode)"),i22},set(o13){if(e8.shouldBlock()){let r7="process.mainModule modification is blocked during script execution",s10=e8.recordViolation("process_main_module","process.mainModule",r7);throw new d3(r7,s10)}Object.defineProperty(process,"mainModule",{value:o13,writable:!0,configurable:!0})},configurable:!0})}catch(t8){this.patchFailures.push("process.mainModule"),console.debug("[DefenseInDepthBox] Could not protect process.mainModule:",t8 instanceof Error?t8.message:t8)}}protectProcessExecPath(){if(typeof process>"u")return;let e8=this;try{let t8=Object.getOwnPropertyDescriptor(process,"execPath");this.originalDescriptors.push({target:process,prop:"execPath",descriptor:t8});let i22=t8?.value??process.execPath;Object.defineProperty(process,"execPath",{get(){if(e8.shouldBlock()){let o13="process.execPath access is blocked during script execution",r7=e8.recordViolation("process_exec_path","process.execPath",o13);throw new d3(o13,r7)}return e8.shouldAudit()&&e8.recordViolation("process_exec_path","process.execPath","process.execPath accessed (audit mode)"),i22},set(o13){if(e8.shouldBlock()){let r7="process.execPath modification is blocked during script execution",s10=e8.recordViolation("process_exec_path","process.execPath",r7);throw new d3(r7,s10)}Object.defineProperty(process,"execPath",{value:o13,writable:!0,configurable:!0})},configurable:!0})}catch(t8){this.patchFailures.push("process.execPath"),console.debug("[DefenseInDepthBox] Could not protect process.execPath:",t8 instanceof Error?t8.message:t8)}}lockWellKnownSymbols(){let e8=(t8,i22)=>{try{let o13=Object.getOwnPropertyDescriptor(t8,i22);if(o13?.configurable){if("value"in o13){Object.defineProperty(t8,i22,{...o13,configurable:!1,writable:!1});return}Object.defineProperty(t8,i22,{...o13,configurable:!1})}}catch{}};for(let t8 of[Array,Map,Set,RegExp,Promise])e8(t8,Symbol.species);for(let t8 of[Array.prototype,String.prototype,Map.prototype,Set.prototype])e8(t8,Symbol.iterator);e8(Symbol.prototype,Symbol.toPrimitive),e8(Date.prototype,Symbol.toPrimitive);for(let t8 of[Symbol.match,Symbol.matchAll,Symbol.replace,Symbol.search,Symbol.split])e8(RegExp.prototype,t8);e8(Function.prototype,Symbol.hasInstance),e8(Array.prototype,Symbol.unscopables);for(let t8 of[Map.prototype,Set.prototype,Promise.prototype,ArrayBuffer.prototype])e8(t8,Symbol.toStringTag)}protectProxyRevocable(){let e8=this;try{let t8=Proxy.revocable;if(typeof t8!="function")return;let i22=Object.getOwnPropertyDescriptor(Proxy,"revocable");this.originalDescriptors.push({target:Proxy,prop:"revocable",descriptor:i22}),Object.defineProperty(Proxy,"revocable",{value:function(r7,s10){if(e8.shouldBlock()){let n10="Proxy.revocable is blocked during script execution",c18=e8.recordViolation("proxy","Proxy.revocable",n10);throw new d3(n10,c18)}return e8.shouldAudit()&&e8.recordViolation("proxy","Proxy.revocable","Proxy.revocable called (audit mode)"),t8(r7,s10)},writable:!1,configurable:!0})}catch(t8){this.patchFailures.push("Proxy.revocable"),console.debug("[DefenseInDepthBox] Could not protect Proxy.revocable:",t8 instanceof Error?t8.message:t8)}}protectDynamicImport(){if(!(b3||l5.importHooksRegistered))try{let e8=v2;if(!e8)throw new Error("node:module is unavailable");let t8=new Set;for(let r7 of e8.builtinModules??[]){let s10=r7.startsWith("node:")?r7.slice(5):r7;t8.add(s10);let n10=s10.indexOf("/");n10>0&&t8.add(s10.slice(0,n10))}let i22=r7=>{if(r7.startsWith("./")||r7.startsWith("../")||r7.startsWith("/")||r7.startsWith("file:")||r7.startsWith("data:")||r7.startsWith("blob:")||r7.startsWith("http:")||r7.startsWith("https:"))return!1;let s10=r7.startsWith("node:")?r7.slice(5):r7;if(!s10)return!1;if(typeof e8.isBuiltin=="function"&&e8.isBuiltin(s10)||t8.has(s10))return!0;let n10=s10.indexOf("/");return n10>0&&t8.has(s10.slice(0,n10))},o13=r7=>{let s10=p2?.getStore();return r7.config.auditMode===!0&&s10?.sandboxActive===!0&&!l5.isTrustedContext(s10)};if(typeof e8.registerHooks=="function"){e8.registerHooks({resolve(r7,s10,n10){let c18=l5.instance;if(!c18)return n10(r7,s10);if((r7.startsWith("data:")||r7.startsWith("blob:"))&&c18.shouldBlock()){let a14=`import(${r7.startsWith("data:")?"data:":"blob:"})`,u15=`dynamic import of ${r7.startsWith("data:")?"data:":"blob:"} URLs is blocked by defense-in-depth`,h18=c18.recordViolation("dynamic_import_builtin",a14,u15);throw new d3(u15,h18)}if(i22(r7)){let a14=`import(${r7})`,u15=`dynamic import of Node.js builtin '${r7}' is blocked during script execution`;if(c18.shouldBlock()){let h18=c18.recordViolation("dynamic_import_builtin",a14,u15);throw new d3(u15,h18)}o13(c18)&&c18.recordViolation("dynamic_import_builtin",a14,`dynamic import of Node.js builtin '${r7}' called (audit mode)`)}return n10(r7,s10)}}),l5.importHooksRegistered=!0;return}throw new Error("context-aware ESM loader hooks (node:module.registerHooks) are unavailable")}catch(e8){throw new Error(`DefenseInDepthBox: could not register dynamic-import hooks: ${e8 instanceof Error?e8.message:String(e8)}`,{cause:e8})}}protectModuleLoad(){this.protectModuleMethod("_load","module_load")}protectModuleResolveFilename(){this.protectModuleMethod("_resolveFilename","module_resolve_filename")}protectModuleMethod(e8,t8){if(b3)return;let i22=`Module.${e8}`;try{let o13=j,r7=o13?.[e8];if(!o13||typeof r7!="function")throw new Error("node:module Module class or method is unavailable");let s10=Object.getOwnPropertyDescriptor(o13,e8);if(!s10)throw new Error("method has no own property descriptor");if(s10.configurable===!1&&s10.writable===!1)throw new Error("method is non-configurable and non-writable");let n10=a14=>this.createBlockingProxy(a14,i22,t8),c18=n10(r7);if(this.originalDescriptors.push({target:o13,prop:e8,descriptor:s10}),"value"in s10){Object.defineProperty(o13,e8,{...s10,value:c18});let a14=Object.getOwnPropertyDescriptor(o13,e8);if(o13[e8]!==c18||a14?.value!==c18)throw new Error("installed patch failed verification")}else{let a14=s10.get,u15=s10.set;if(typeof u15!="function")throw new Error("accessor has no setter to install protection through");this.moduleAccessorResets.push(()=>{u15.call(o13,r7)});let h18={configurable:s10.configurable,enumerable:s10.enumerable,get:a14,set:f15=>{if(this.shouldBlock()){let m16=`${i22} modification is blocked during script execution`,w15=this.recordViolation(t8,i22,m16);throw new d3(m16,w15)}this.shouldAudit()&&this.recordViolation(t8,i22,`${i22} modified (audit mode)`);let g13=typeof f15=="function"?n10(f15):f15,x23=a14?.call(o13);try{y14(g13)}catch(m16){throw y14(x23),m16}}},y14=f15=>{try{u15.call(o13,f15)}finally{Object.defineProperty(o13,e8,h18)}let g13=Object.getOwnPropertyDescriptor(o13,e8);if(g13?.get!==h18.get||g13?.set!==h18.set||a14?.call(o13)!==f15||o13[e8]!==f15)throw new Error("installed patch failed accessor verification")};y14(c18)}}catch{this.patchFailures.push(i22)}}applyPatch(e8,t8=!1){let{target:i22,prop:o13,violationType:r7,strategy:s10}=e8;try{let n10=i22[o13];if(n10===void 0)return;let c18=Object.getOwnPropertyDescriptor(i22,o13);if(this.originalDescriptors.push({target:i22,prop:o13,descriptor:c18}),s10==="freeze"){if(typeof n10=="object"&&n10!==null){t8&&Object.freeze(n10);let a14=this.getPathForTarget(i22,o13),u15=this.createReadonlyObjectProxy(n10,a14,r7);Object.defineProperty(i22,o13,{...c18,value:u15})}}else{let a14=this.getPathForTarget(i22,o13),u15=typeof n10=="function"?this.createBlockingProxy(n10,a14,r7):this.createBlockingObjectProxy(n10,a14,r7,e8.allowedKeys);Object.defineProperty(i22,o13,{value:u15,writable:!0,configurable:!0})}}catch(n10){let c18=this.getPathForTarget(i22,o13);this.patchFailures.push(c18),console.debug(`[DefenseInDepthBox] Could not patch ${c18}:`,n10 instanceof Error?n10.message:n10)}}restorePatches(){for(let e8=this.moduleAccessorResets.length-1;e8>=0;e8--)try{this.moduleAccessorResets[e8]()}catch(t8){console.debug("[DefenseInDepthBox] Could not reset module accessor override slot:",t8 instanceof Error?t8.message:t8)}this.moduleAccessorResets=[];for(let e8=this.temporaryIntrinsicDescriptors.length-1;e8>=0;e8--){let{target:t8,prop:i22,descriptor:o13}=this.temporaryIntrinsicDescriptors[e8];try{Object.defineProperty(t8,i22,o13)}catch(r7){console.debug(`[DefenseInDepthBox] Could not restore temporary intrinsic ${String(i22)}:`,r7 instanceof Error?r7.message:r7)}}this.temporaryIntrinsicDescriptors=[];for(let e8=this.originalDescriptors.length-1;e8>=0;e8--){let{target:t8,prop:i22,descriptor:o13}=this.originalDescriptors[e8];try{o13?Object.defineProperty(t8,i22,o13):delete t8[i22]}catch(r7){let s10=this.getPathForTarget(t8,i22);console.debug(`[DefenseInDepthBox] Could not restore ${s10}:`,r7 instanceof Error?r7.message:r7)}}this.originalDescriptors=[]}}}});import{createRequire as createRequire6}from"node:module";function u4(e8){return typeof e8!="function"?e8:B2.bindCurrentContext(e8)}function I2(e8,n10){if(n10===Number.POSITIVE_INFINITY)return;let i22=u4(e8),t8={cleared:!1,remainingMs:Math.max(0,n10),timer:void 0},r7=()=>{if(t8.cleared)return;let o13=Math.min(t8.remainingMs,c2);t8.timer=s2(()=>{t8.cleared||(t8.remainingMs-=o13,t8.remainingMs>0?r7():i22())},o13)};return r7(),t8}function _2(e8){e8&&(e8.cleared=!0,e8.timer!==void 0&&l6(e8.timer))}var require7,s2,l6,T3,f3,b4,d4,c2,init_chunk_43OP7DFL=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-43OP7DFL.js"(){init_chunk_CBM6J4AL();require7=createRequire6(import.meta.url),s2=globalThis.setTimeout.bind(globalThis),l6=globalThis.clearTimeout.bind(globalThis),T3=globalThis.setInterval.bind(globalThis),f3=globalThis.clearInterval.bind(globalThis);b4=((e8,n10,...i22)=>s2(u4(e8),n10,...i22)),d4=l6,c2=2147483647}});import{createRequire as createRequire7}from"node:module";var require8,o2,r,e,t,s3,a4,init_chunk_XZ34OGNM=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-XZ34OGNM.js"(){require8=createRequire7(import.meta.url),o2=globalThis.SharedArrayBuffer,r=globalThis.Atomics,e=performance.now.bind(performance),t=globalThis.Headers,s3=globalThis.Proxy,a4=Promise.prototype.then}});import{createRequire as createRequire8}from"node:module";var require9,h3,init_chunk_J2OBOJ64=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-J2OBOJ64.js"(){init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();require9=createRequire8(import.meta.url),h3=class{scope;site;stdoutChunks=[];stderrChunks=[];stdoutBytes=0;stderrBytes=0;attachedErrors=new WeakSet;constructor(t8,s10){this.scope=t8,this.site=s10}append(t8,s10,e8=0,r7="text"){let d11;try{d11=this.scope.appendOutput(t8,s10,this.site,e8,r7)}catch(n10){throw this.prependTo(n10),n10}s10&&(t8==="stdout"?this.stdoutChunks:this.stderrChunks).push(s10),t8==="stdout"?this.stdoutBytes+=d11:this.stderrBytes+=d11}prependTo(t8){t8 instanceof n&&(this.attachedErrors.has(t8)||(this.attachedErrors.add(t8),t8.prependOutput(this.stdout,this.stderr)))}appendResult(t8,s10=t8.stdout){let e8=t8.stdoutKind==="bytes"||t8.stdoutEncoding==="binary"?"bytes":"text",r7=e8==="bytes"?s10.length:x(s10);this.append("stdout",s10,Math.min(t8.internalOutputAccounting?.stdout??0,r7),e8),this.append("stderr",t8.stderr,t8.internalOutputAccounting?.stderr??0)}build(t8,s10){return{stdout:this.stdoutChunks.join(""),stderr:this.stderrChunks.join(""),exitCode:t8,...s10,internalOutputAccounting:{stdout:this.stdoutBytes,stderr:this.stderrBytes}}}get stdout(){return this.stdoutChunks.join("")}get stderr(){return this.stderrChunks.join("")}}}});import{createRequire as createRequire9}from"node:module";function n2(e8){return`'${e8.replace(/'/g,"'\\''")}'`}function r2(e8){return e8.map(n2).join(" ")}var require10,init_chunk_L2UW7DWF=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-L2UW7DWF.js"(){require10=createRequire9(import.meta.url)}});import{createRequire as createRequire10}from"node:module";function r3(e8){return Object.assign(Object.create(null),Object.fromEntries(e8))}function n3(e8,t8){return Object.assign(Object.create(null),Object.fromEntries(e8),t8)}function c3(...e8){return Object.assign(Object.create(null),...e8)}var require11,init_chunk_DLL7UR66=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-DLL7UR66.js"(){require11=createRequire10(import.meta.url)}});import{createRequire as createRequire11}from"node:module";function a5(t8,e8,n10){if(!t8||B2.isInSandboxedContext())return;let r7=`${e8} ${n10} attempted outside defense context`;throw new d3(r7,{timestamp:Date.now(),type:"missing_defense_context",message:r7,path:"DefenseInDepthBox.context",stack:new Error().stack,executionId:B2.getCurrentExecutionId()})}async function x3(t8,e8,n10,r7){a5(t8,e8,`${n10} (pre-await)`);let o13=await r7();return a5(t8,e8,`${n10} (post-await)`),o13}var require12,init_chunk_CHWP6GRK=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-CHWP6GRK.js"(){init_chunk_CBM6J4AL();require12=createRequire11(import.meta.url)}});import{createRequire as createRequire12}from"node:module";function r4(s10,t8){if(!Number.isSafeInteger(s10)||s10<0)throw new f2(`${t8}: invalid bounded allocation count`,"array_elements")}function c4(s10){return new f2(`${s10}: invalid bounded allocation count`,"array_elements")}function f4(s10,t8,e8){r4(s10,e8),r4(t8,e8);let i22=s10+t8;if(!Number.isSafeInteger(i22))throw c4(e8);return i22}function p3(s10,t8,e8){if(r4(s10,e8),r4(t8,e8),s10!==0&&t8>Math.floor(Number.MAX_SAFE_INTEGER/s10))throw c4(e8);return s10*t8}function m2(s10,t8,e8,i22){let n10=new u5(e8,i22);return n10.repeat(s10,t8),n10.build()}function b5(s10,t8,e8,i22){let n10=new u5(e8,i22);for(let h18=0;h18<s10.length;h18++)h18>0&&n10.append(t8),n10.append(s10[h18]);return n10.build()}var require13,u5,init_chunk_DIWMSSQY=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-DIWMSSQY.js"(){init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();require13=createRequire12(import.meta.url);u5=class{maxBytes;label;createLimitError;reservedBytes;chunks=[];usedBytes=0;constructor(t8,e8,i22=void 0,n10=0){this.maxBytes=t8,this.label=e8,this.createLimitError=i22,this.reservedBytes=n10,r4(t8,e8),r4(n10,e8),n10>t8&&this.fail()}fail(){throw this.createLimitError?.()??new f2(`${this.label}: output size limit exceeded (${this.maxBytes} bytes)`,"output_size")}get byteLength(){return this.usedBytes}get remainingBytes(){return this.maxBytes-this.reservedBytes-this.usedBytes}reserve(t8){r4(t8,this.label),t8>this.remainingBytes&&this.fail()}append(t8){let e8=x(t8);return this.reserve(e8),t8&&this.chunks.push(t8),this.usedBytes+=e8,this}repeat(t8,e8){r4(e8,this.label);let i22=x(t8);return i22!==0&&e8>Math.floor(this.remainingBytes/i22)&&this.fail(),this.append(t8.repeat(e8))}reset(){this.chunks.length=0,this.usedBytes=0}build(){return this.chunks.join("")}}}});import{createRequire as createRequire13}from"node:module";function P1(i22){let t8=0;return i22.includes("i")&&(t8|=y2.CASE_INSENSITIVE),i22.includes("m")&&(t8|=y2.MULTILINE),i22.includes("s")&&(t8|=y2.DOTALL),t8}function L1(i22){return y2.translateRegExp(i22)}function H1(i22,t8){let e8=P1(t8);if(i22.length>M1)return y2.compile(L1(i22),e8);let s10=`${e8} ${i22}`,n10=F3.get(s10);if(n10!==void 0)return n10;let r7=y2.compile(L1(i22),e8);if(F3.size>=k1){let a14=F3.keys().next().value;a14!==void 0&&F3.delete(a14)}return F3.set(s10,r7),r7}function G1(i22,t8="",e8={}){return new v3(i22,t8,e8)}var require14,g2,u6,l7,x4,E3,C3,U1,_3,Y,z,P2,I3,$3,V2,N2,k2,T4,j2,U,q,W,w,K,X,H2,I1,y1,Z,Q,c5,J,D2,t1,e1,d5,h1,u1,c1,p1,f1,g1,A1,E1,w1,d1,C1,O1,m1,S1,R1,T1,N1,x1,b1,L2,G2,s1,n1,i1,r1,a1,y2,_1,D1,k1,M1,F3,v3,l1,init_chunk_7GA3QWJJ=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-7GA3QWJJ.js"(){init_chunk_DIWMSSQY();init_chunk_EFORKKSH();require14=createRequire13(import.meta.url),g2=class i2{static FOLD_CASE=1;static LITERAL=2;static CLASS_NL=4;static DOT_NL=8;static ONE_LINE=16;static NON_GREEDY=32;static PERL_X=64;static UNICODE_GROUPS=128;static WAS_DOLLAR=256;static MATCH_NL=i2.CLASS_NL|i2.DOT_NL;static PERL=i2.CLASS_NL|i2.ONE_LINE|i2.PERL_X|i2.UNICODE_GROUPS;static POSIX=0;static UNANCHORED=0;static ANCHOR_START=1;static ANCHOR_BOTH=2},u6=class{static CODES=new Map([["\x07",7],["\b",8],[" ",9],[`
14
14
  `,10],["\v",11],["\f",12],["\r",13],[" ",32],['"',34],["$",36],["&",38],["(",40],[")",41],["*",42],["+",43],["-",45],[".",46],["0",48],["1",49],["2",50],["3",51],["4",52],["5",53],["6",54],["7",55],["8",56],["9",57],[":",58],["<",60],[">",62],["?",63],["A",65],["B",66],["C",67],["F",70],["P",80],["Q",81],["U",85],["Z",90],["[",91],["\\",92],["]",93],["^",94],["_",95],["a",97],["b",98],["f",102],["i",105],["m",109],["n",110],["r",114],["s",115],["t",116],["v",118],["x",120],["z",122],["{",123],["|",124],["}",125]]);static toUpperCase(t8){let e8=String.fromCodePoint(t8).toUpperCase();if(e8.length>1)return t8;let s10=String.fromCodePoint(e8.codePointAt(0)).toLowerCase();return s10.length>1||s10.codePointAt(0)!==t8?t8:e8.codePointAt(0)}static toLowerCase(t8){let e8=String.fromCodePoint(t8).toLowerCase();if(e8.length>1)return t8;let s10=String.fromCodePoint(e8.codePointAt(0)).toUpperCase();return s10.length>1||s10.codePointAt(0)!==t8?t8:e8.codePointAt(0)}},l7=class{SIZE=3;constructor(t8){this.data=t8}getLo(t8){return this.data[t8*this.SIZE]}getHi(t8){return this.data[t8*this.SIZE+1]}getStride(t8){return this.data[t8*this.SIZE+2]}get(t8){let e8=t8*this.SIZE;return[this.data[e8],this.data[e8+1],this.data[e8+2]]}get length(){return this.data.length/this.SIZE}},x4=class i3{static CASE_ORBIT=new Map([[75,107],[107,8490],[8490,75],[83,115],[115,383],[383,83],[181,924],[924,956],[956,181],[197,229],[229,8491],[8491,197],[452,453],[453,454],[454,452],[455,456],[456,457],[457,455],[458,459],[459,460],[460,458],[497,498],[498,499],[499,497],[837,921],[921,953],[953,8126],[8126,837],[914,946],[946,976],[976,914],[917,949],[949,1013],[1013,917],[920,952],[952,977],[977,1012],[1012,920],[922,954],[954,1008],[1008,922],[928,960],[960,982],[982,928],[929,961],[961,1009],[1009,929],[931,962],[962,963],[963,931],[934,966],[966,981],[981,934],[937,969],[969,8486],[8486,937],[1042,1074],[1074,7296],[7296,1042],[1044,1076],[1076,7297],[7297,1044],[1054,1086],[1086,7298],[7298,1054],[1057,1089],[1089,7299],[7299,1057],[1058,1090],[1090,7300],[7300,7301],[7301,1058],[1066,1098],[1098,7302],[7302,1066],[1122,1123],[1123,7303],[7303,1122],[7304,42570],[42570,42571],[42571,7304],[7776,7777],[7777,7835],[7835,7776],[223,7838],[7838,223],[8064,8072],[8072,8064],[8065,8073],[8073,8065],[8066,8074],[8074,8066],[8067,8075],[8075,8067],[8068,8076],[8076,8068],[8069,8077],[8077,8069],[8070,8078],[8078,8070],[8071,8079],[8079,8071],[8080,8088],[8088,8080],[8081,8089],[8089,8081],[8082,8090],[8090,8082],[8083,8091],[8091,8083],[8084,8092],[8092,8084],[8085,8093],[8093,8085],[8086,8094],[8094,8086],[8087,8095],[8095,8087],[8096,8104],[8104,8096],[8097,8105],[8105,8097],[8098,8106],[8106,8098],[8099,8107],[8107,8099],[8100,8108],[8108,8100],[8101,8109],[8109,8101],[8102,8110],[8110,8102],[8103,8111],[8111,8103],[8115,8124],[8124,8115],[8131,8140],[8140,8131],[912,8147],[8147,912],[944,8163],[8163,944],[8179,8188],[8188,8179],[64261,64262],[64262,64261],[66560,66600],[66600,66560],[66561,66601],[66601,66561],[66562,66602],[66602,66562],[66563,66603],[66603,66563],[66564,66604],[66604,66564],[66565,66605],[66605,66565],[66566,66606],[66606,66566],[66567,66607],[66607,66567],[66568,66608],[66608,66568],[66569,66609],[66609,66569],[66570,66610],[66610,66570],[66571,66611],[66611,66571],[66572,66612],[66612,66572],[66573,66613],[66613,66573],[66574,66614],[66614,66574],[66575,66615],[66615,66575],[66576,66616],[66616,66576],[66577,66617],[66617,66577],[66578,66618],[66618,66578],[66579,66619],[66619,66579],[66580,66620],[66620,66580],[66581,66621],[66621,66581],[66582,66622],[66622,66582],[66583,66623],[66623,66583],[66584,66624],[66624,66584],[66585,66625],[66625,66585],[66586,66626],[66626,66586],[66587,66627],[66627,66587],[66588,66628],[66628,66588],[66589,66629],[66629,66589],[66590,66630],[66630,66590],[66591,66631],[66631,66591],[66592,66632],[66632,66592],[66593,66633],[66633,66593],[66594,66634],[66634,66594],[66595,66635],[66635,66595],[66596,66636],[66636,66596],[66597,66637],[66637,66597],[66598,66638],[66638,66598],[66599,66639],[66639,66599],[66736,66776],[66776,66736],[66737,66777],[66777,66737],[66738,66778],[66778,66738],[66739,66779],[66779,66739],[66740,66780],[66780,66740],[66741,66781],[66781,66741],[66742,66782],[66782,66742],[66743,66783],[66783,66743],[66744,66784],[66784,66744],[66745,66785],[66785,66745],[66746,66786],[66786,66746],[66747,66787],[66787,66747],[66748,66788],[66788,66748],[66749,66789],[66789,66749],[66750,66790],[66790,66750],[66751,66791],[66791,66751],[66752,66792],[66792,66752],[66753,66793],[66793,66753],[66754,66794],[66794,66754],[66755,66795],[66795,66755],[66756,66796],[66796,66756],[66757,66797],[66797,66757],[66758,66798],[66798,66758],[66759,66799],[66799,66759],[66760,66800],[66800,66760],[66761,66801],[66801,66761],[66762,66802],[66802,66762],[66763,66803],[66803,66763],[66764,66804],[66804,66764],[66765,66805],[66805,66765],[66766,66806],[66806,66766],[66767,66807],[66807,66767],[66768,66808],[66808,66768],[66769,66809],[66809,66769],[66770,66810],[66810,66770],[66771,66811],[66811,66771],[66928,66967],[66967,66928],[66929,66968],[66968,66929],[66930,66969],[66969,66930],[66931,66970],[66970,66931],[66932,66971],[66971,66932],[66933,66972],[66972,66933],[66934,66973],[66973,66934],[66935,66974],[66974,66935],[66936,66975],[66975,66936],[66937,66976],[66976,66937],[66938,66977],[66977,66938],[66940,66979],[66979,66940],[66941,66980],[66980,66941],[66942,66981],[66981,66942],[66943,66982],[66982,66943],[66944,66983],[66983,66944],[66945,66984],[66984,66945],[66946,66985],[66985,66946],[66947,66986],[66986,66947],[66948,66987],[66987,66948],[66949,66988],[66988,66949],[66950,66989],[66989,66950],[66951,66990],[66990,66951],[66952,66991],[66991,66952],[66953,66992],[66992,66953],[66954,66993],[66993,66954],[66956,66995],[66995,66956],[66957,66996],[66996,66957],[66958,66997],[66997,66958],[66959,66998],[66998,66959],[66960,66999],[66999,66960],[66961,67e3],[67e3,66961],[66962,67001],[67001,66962],[66964,67003],[67003,66964],[66965,67004],[67004,66965],[68736,68800],[68800,68736],[68737,68801],[68801,68737],[68738,68802],[68802,68738],[68739,68803],[68803,68739],[68740,68804],[68804,68740],[68741,68805],[68805,68741],[68742,68806],[68806,68742],[68743,68807],[68807,68743],[68744,68808],[68808,68744],[68745,68809],[68809,68745],[68746,68810],[68810,68746],[68747,68811],[68811,68747],[68748,68812],[68812,68748],[68749,68813],[68813,68749],[68750,68814],[68814,68750],[68751,68815],[68815,68751],[68752,68816],[68816,68752],[68753,68817],[68817,68753],[68754,68818],[68818,68754],[68755,68819],[68819,68755],[68756,68820],[68820,68756],[68757,68821],[68821,68757],[68758,68822],[68822,68758],[68759,68823],[68823,68759],[68760,68824],[68824,68760],[68761,68825],[68825,68761],[68762,68826],[68826,68762],[68763,68827],[68827,68763],[68764,68828],[68828,68764],[68765,68829],[68829,68765],[68766,68830],[68830,68766],[68767,68831],[68831,68767],[68768,68832],[68832,68768],[68769,68833],[68833,68769],[68770,68834],[68834,68770],[68771,68835],[68835,68771],[68772,68836],[68836,68772],[68773,68837],[68837,68773],[68774,68838],[68838,68774],[68775,68839],[68839,68775],[68776,68840],[68840,68776],[68777,68841],[68841,68777],[68778,68842],[68842,68778],[68779,68843],[68843,68779],[68780,68844],[68844,68780],[68781,68845],[68845,68781],[68782,68846],[68846,68782],[68783,68847],[68847,68783],[68784,68848],[68848,68784],[68785,68849],[68849,68785],[68786,68850],[68850,68786],[68944,68976],[68976,68944],[68945,68977],[68977,68945],[68946,68978],[68978,68946],[68947,68979],[68979,68947],[68948,68980],[68980,68948],[68949,68981],[68981,68949],[68950,68982],[68982,68950],[68951,68983],[68983,68951],[68952,68984],[68984,68952],[68953,68985],[68985,68953],[68954,68986],[68986,68954],[68955,68987],[68987,68955],[68956,68988],[68988,68956],[68957,68989],[68989,68957],[68958,68990],[68990,68958],[68959,68991],[68991,68959],[68960,68992],[68992,68960],[68961,68993],[68993,68961],[68962,68994],[68994,68962],[68963,68995],[68995,68963],[68964,68996],[68996,68964],[68965,68997],[68997,68965],[71840,71872],[71872,71840],[71841,71873],[71873,71841],[71842,71874],[71874,71842],[71843,71875],[71875,71843],[71844,71876],[71876,71844],[71845,71877],[71877,71845],[71846,71878],[71878,71846],[71847,71879],[71879,71847],[71848,71880],[71880,71848],[71849,71881],[71881,71849],[71850,71882],[71882,71850],[71851,71883],[71883,71851],[71852,71884],[71884,71852],[71853,71885],[71885,71853],[71854,71886],[71886,71854],[71855,71887],[71887,71855],[71856,71888],[71888,71856],[71857,71889],[71889,71857],[71858,71890],[71890,71858],[71859,71891],[71891,71859],[71860,71892],[71892,71860],[71861,71893],[71893,71861],[71862,71894],[71894,71862],[71863,71895],[71895,71863],[71864,71896],[71896,71864],[71865,71897],[71897,71865],[71866,71898],[71898,71866],[71867,71899],[71899,71867],[71868,71900],[71900,71868],[71869,71901],[71901,71869],[71870,71902],[71902,71870],[71871,71903],[71903,71871],[93760,93792],[93792,93760],[93761,93793],[93793,93761],[93762,93794],[93794,93762],[93763,93795],[93795,93763],[93764,93796],[93796,93764],[93765,93797],[93797,93765],[93766,93798],[93798,93766],[93767,93799],[93799,93767],[93768,93800],[93800,93768],[93769,93801],[93801,93769],[93770,93802],[93802,93770],[93771,93803],[93803,93771],[93772,93804],[93804,93772],[93773,93805],[93805,93773],[93774,93806],[93806,93774],[93775,93807],[93807,93775],[93776,93808],[93808,93776],[93777,93809],[93809,93777],[93778,93810],[93810,93778],[93779,93811],[93811,93779],[93780,93812],[93812,93780],[93781,93813],[93813,93781],[93782,93814],[93814,93782],[93783,93815],[93815,93783],[93784,93816],[93816,93784],[93785,93817],[93817,93785],[93786,93818],[93818,93786],[93787,93819],[93819,93787],[93788,93820],[93820,93788],[93789,93821],[93821,93789],[93790,93822],[93822,93790],[93791,93823],[93823,93791],[125184,125218],[125218,125184],[125185,125219],[125219,125185],[125186,125220],[125220,125186],[125187,125221],[125221,125187],[125188,125222],[125222,125188],[125189,125223],[125223,125189],[125190,125224],[125224,125190],[125191,125225],[125225,125191],[125192,125226],[125226,125192],[125193,125227],[125227,125193],[125194,125228],[125228,125194],[125195,125229],[125229,125195],[125196,125230],[125230,125196],[125197,125231],[125231,125197],[125198,125232],[125232,125198],[125199,125233],[125233,125199],[125200,125234],[125234,125200],[125201,125235],[125235,125201],[125202,125236],[125236,125202],[125203,125237],[125237,125203],[125204,125238],[125238,125204],[125205,125239],[125239,125205],[125206,125240],[125240,125206],[125207,125241],[125241,125207],[125208,125242],[125242,125208],[125209,125243],[125243,125209],[125210,125244],[125244,125210],[125211,125245],[125245,125211],[125212,125246],[125246,125212],[125213,125247],[125247,125213],[125214,125248],[125248,125214],[125215,125249],[125249,125215],[125216,125250],[125250,125216],[125217,125251],[125251,125217]]);static C=new l7(new Uint32Array([0,31,1,127,159,1,173,888,715,889,896,7,897,899,1,907,909,2,930,1328,398,1367,1368,1,1419,1420,1,1424,1480,56,1481,1487,1,1515,1518,1,1525,1541,1,1564,1757,193,1806,1807,1,1867,1868,1,1970,1983,1,2043,2044,1,2094,2095,1,2111,2140,29,2141,2143,2,2155,2159,1,2191,2198,1,2274,2436,162,2445,2446,1,2449,2450,1,2473,2481,8,2483,2485,1,2490,2491,1,2501,2502,1,2505,2506,1,2511,2518,1,2520,2523,1,2526,2532,6,2533,2559,26,2560,2564,4,2571,2574,1,2577,2578,1,2601,2609,8,2612,2618,3,2619,2621,2,2627,2630,1,2633,2634,1,2638,2640,1,2642,2648,1,2653,2655,2,2656,2661,1,2679,2688,1,2692,2702,10,2706,2729,23,2737,2740,3,2746,2747,1,2758,2766,4,2767,2769,2,2770,2783,1,2788,2789,1,2802,2808,1,2816,2820,4,2829,2830,1,2833,2834,1,2857,2865,8,2868,2874,6,2875,2885,10,2886,2889,3,2890,2894,4,2895,2900,1,2904,2907,1,2910,2916,6,2917,2936,19,2937,2945,1,2948,2955,7,2956,2957,1,2961,2966,5,2967,2968,1,2971,2973,2,2976,2978,1,2981,2983,1,2987,2989,1,3002,3005,1,3011,3013,1,3017,3022,5,3023,3025,2,3026,3030,1,3032,3045,1,3067,3071,1,3085,3089,4,3113,3130,17,3131,3141,10,3145,3150,5,3151,3156,1,3159,3163,4,3164,3166,2,3167,3172,5,3173,3184,11,3185,3190,1,3213,3217,4,3241,3252,11,3258,3259,1,3269,3273,4,3278,3284,1,3287,3292,1,3295,3300,5,3301,3312,11,3316,3327,1,3341,3345,4,3397,3401,4,3408,3411,1,3428,3429,1,3456,3460,4,3479,3481,1,3506,3516,10,3518,3519,1,3527,3529,1,3531,3534,1,3541,3543,2,3552,3557,1,3568,3569,1,3573,3584,1,3643,3646,1,3676,3712,1,3715,3717,2,3723,3748,25,3750,3774,24,3775,3781,6,3783,3791,8,3802,3803,1,3808,3839,1,3912,3949,37,3950,3952,1,3992,4029,37,4045,4059,14,4060,4095,1,4294,4296,2,4297,4300,1,4302,4303,1,4681,4686,5,4687,4695,8,4697,4702,5,4703,4745,42,4750,4751,1,4785,4790,5,4791,4799,8,4801,4806,5,4807,4823,16,4881,4886,5,4887,4955,68,4956,4989,33,4990,4991,1,5018,5023,1,5110,5111,1,5118,5119,1,5789,5791,1,5881,5887,1,5910,5918,1,5943,5951,1,5972,5983,1,5997,6001,4,6004,6015,1,6110,6111,1,6122,6127,1,6138,6143,1,6158,6170,12,6171,6175,1,6265,6271,1,6315,6319,1,6390,6399,1,6431,6444,13,6445,6447,1,6460,6463,1,6465,6467,1,6510,6511,1,6517,6527,1,6572,6575,1,6602,6607,1,6619,6621,1,6684,6685,1,6751,6781,30,6782,6794,12,6795,6799,1,6810,6815,1,6830,6831,1,6863,6911,1,6989,7156,167,7157,7163,1,7224,7226,1,7242,7244,1,7307,7311,1,7355,7356,1,7368,7375,1,7419,7423,1,7958,7959,1,7966,7967,1,8006,8007,1,8014,8015,1,8024,8030,2,8062,8063,1,8117,8133,16,8148,8149,1,8156,8176,20,8177,8181,4,8191,8203,12,8204,8207,1,8234,8238,1,8288,8303,1,8306,8307,1,8335,8349,14,8350,8351,1,8385,8399,1,8433,8447,1,8588,8591,1,9258,9279,1,9291,9311,1,11124,11125,1,11158,11508,350,11509,11512,1,11558,11560,2,11561,11564,1,11566,11567,1,11624,11630,1,11633,11646,1,11671,11679,1,11687,11743,8,11870,11903,1,11930,12020,90,12021,12031,1,12246,12271,1,12352,12439,87,12440,12544,104,12545,12548,1,12592,12687,95,12774,12782,1,12831,42125,29294,42126,42127,1,42183,42191,1,42540,42559,1,42744,42751,1,42958,42959,1,42962,42964,2,42973,42993,1,43053,43055,1,43066,43071,1,43128,43135,1,43206,43213,1,43226,43231,1,43348,43358,1,43389,43391,1,43470,43482,12,43483,43485,1,43519,43575,56,43576,43583,1,43598,43599,1,43610,43611,1,43715,43738,1,43767,43776,1,43783,43784,1,43791,43792,1,43799,43807,1,43815,43823,8,43884,43887,1,44014,44015,1,44026,44031,1,55204,55215,1,55239,55242,1,55292,63743,1,64110,64111,1,64218,64255,1,64263,64274,1,64280,64284,1,64311,64317,6,64319,64325,3,64451,64466,1,64912,64913,1,64968,64974,1,64976,65007,1,65050,65055,1,65107,65127,20,65132,65135,1,65141,65277,136,65278,65280,1,65471,65473,1,65480,65481,1,65488,65489,1,65496,65497,1,65501,65503,1,65511,65519,8,65520,65531,1,65534,65535,1,65548,65575,27,65595,65598,3,65614,65615,1,65630,65663,1,65787,65791,1,65795,65798,1,65844,65846,1,65935,65949,14,65950,65951,1,65953,65999,1,66046,66175,1,66205,66207,1,66257,66271,1,66300,66303,1,66340,66348,1,66379,66383,1,66427,66431,1,66462,66500,38,66501,66503,1,66518,66559,1,66718,66719,1,66730,66735,1,66772,66775,1,66812,66815,1,66856,66863,1,66916,66926,1,66939,66955,16,66963,66966,3,66978,66994,16,67002,67005,3,67006,67007,1,67060,67071,1,67383,67391,1,67414,67423,1,67432,67455,1,67462,67505,43,67515,67583,1,67590,67591,1,67593,67638,45,67641,67643,1,67645,67646,1,67670,67743,73,67744,67750,1,67760,67807,1,67827,67830,3,67831,67834,1,67868,67870,1,67898,67902,1,67904,67967,1,68024,68027,1,68048,68049,1,68100,68103,3,68104,68107,1,68116,68120,4,68150,68151,1,68155,68158,1,68169,68175,1,68185,68191,1,68256,68287,1,68327,68330,1,68343,68351,1,68406,68408,1,68438,68439,1,68467,68471,1,68498,68504,1,68509,68520,1,68528,68607,1,68681,68735,1,68787,68799,1,68851,68857,1,68904,68911,1,68922,68927,1,68966,68968,1,68998,69005,1,69008,69215,1,69247,69290,43,69294,69295,1,69298,69313,1,69317,69371,1,69416,69423,1,69466,69487,1,69514,69551,1,69580,69599,1,69623,69631,1,69710,69713,1,69750,69758,1,69821,69827,6,69828,69839,1,69865,69871,1,69882,69887,1,69941,69960,19,69961,69967,1,70007,70015,1,70112,70133,21,70134,70143,1,70162,70210,48,70211,70271,1,70279,70281,2,70286,70302,16,70314,70319,1,70379,70383,1,70394,70399,1,70404,70413,9,70414,70417,3,70418,70441,23,70449,70452,3,70458,70469,11,70470,70473,3,70474,70478,4,70479,70481,2,70482,70486,1,70488,70492,1,70500,70501,1,70509,70511,1,70517,70527,1,70538,70540,2,70541,70543,2,70582,70593,11,70595,70596,1,70598,70603,5,70614,70617,3,70618,70624,1,70627,70655,1,70748,70754,6,70755,70783,1,70856,70863,1,70874,71039,1,71094,71095,1,71134,71167,1,71237,71247,1,71258,71263,1,71277,71295,1,71354,71359,1,71370,71375,1,71396,71423,1,71451,71452,1,71468,71471,1,71495,71679,1,71740,71839,1,71923,71934,1,71943,71944,1,71946,71947,1,71956,71959,3,71990,71993,3,71994,72007,13,72008,72015,1,72026,72095,1,72104,72105,1,72152,72153,1,72165,72191,1,72264,72271,1,72355,72367,1,72441,72447,1,72458,72639,1,72674,72687,1,72698,72703,1,72713,72759,46,72774,72783,1,72813,72815,1,72848,72849,1,72872,72887,15,72888,72959,1,72967,72970,3,73015,73017,1,73019,73022,3,73032,73039,1,73050,73055,1,73062,73065,3,73103,73106,3,73113,73119,1,73130,73439,1,73465,73471,1,73489,73531,42,73532,73533,1,73563,73647,1,73649,73663,1,73714,73726,1,74650,74751,1,74863,74869,6,74870,74879,1,75076,77711,1,77811,77823,1,78896,78911,1,78934,78943,1,82939,82943,1,83527,90367,1,90426,92159,1,92729,92735,1,92767,92778,11,92779,92781,1,92863,92874,11,92875,92879,1,92910,92911,1,92918,92927,1,92998,93007,1,93018,93026,8,93048,93052,1,93072,93503,1,93562,93759,1,93851,93951,1,94027,94030,1,94088,94094,1,94112,94175,1,94181,94191,1,94194,94207,1,100344,100351,1,101590,101630,1,101641,110575,1,110580,110588,8,110591,110883,292,110884,110897,1,110899,110927,1,110931,110932,1,110934,110947,1,110952,110959,1,111356,113663,1,113771,113775,1,113789,113791,1,113801,113807,1,113818,113819,1,113824,117759,1,118010,118015,1,118452,118527,1,118574,118575,1,118599,118607,1,118724,118783,1,119030,119039,1,119079,119080,1,119155,119162,1,119275,119295,1,119366,119487,1,119508,119519,1,119540,119551,1,119639,119647,1,119673,119807,1,119893,119965,72,119968,119969,1,119971,119972,1,119975,119976,1,119981,119994,13,119996,120004,8,120070,120075,5,120076,120085,9,120093,120122,29,120127,120133,6,120135,120137,1,120145,120486,341,120487,120780,293,120781,121484,703,121485,121498,1,121504,121520,16,121521,122623,1,122655,122660,1,122667,122879,1,122887,122905,18,122906,122914,8,122917,122923,6,122924,122927,1,122990,123022,1,123024,123135,1,123181,123183,1,123198,123199,1,123210,123213,1,123216,123535,1,123567,123583,1,123642,123646,1,123648,124111,1,124154,124367,1,124411,124414,1,124416,124895,1,124903,124908,5,124911,124927,16,125125,125126,1,125143,125183,1,125260,125263,1,125274,125277,1,125280,126064,1,126133,126208,1,126270,126463,1,126468,126496,28,126499,126501,2,126502,126504,2,126515,126520,5,126522,126524,2,126525,126529,1,126531,126534,1,126536,126540,2,126544,126547,3,126549,126550,1,126552,126560,2,126563,126565,2,126566,126571,5,126579,126589,5,126591,126602,11,126620,126624,1,126628,126634,6,126652,126703,1,126706,126975,1,127020,127023,1,127124,127135,1,127151,127152,1,127168,127184,16,127222,127231,1,127406,127461,1,127491,127503,1,127548,127551,1,127561,127567,1,127570,127583,1,127590,127743,1,128728,128731,1,128749,128751,1,128765,128767,1,128887,128890,1,128986,128991,1,129004,129007,1,129009,129023,1,129036,129039,1,129096,129103,1,129114,129119,1,129160,129167,1,129198,129199,1,129212,129215,1,129218,129279,1,129620,129631,1,129646,129647,1,129661,129663,1,129674,129678,1,129735,129741,1,129757,129758,1,129770,129775,1,129785,129791,1,129939,130042,103,130043,131071,1,173792,173823,1,177978,177983,1,178206,178207,1,183970,183983,1,191457,191471,1,192094,194559,1,195102,196607,1,201547,201551,1,205744,917759,1,918e3,1114111,1]));static Cc=new l7(new Uint32Array([0,31,1,127,159,1]));static Cf=new l7(new Uint32Array([173,1536,1363,1537,1541,1,1564,1757,193,1807,2192,385,2193,2274,81,6158,8203,2045,8204,8207,1,8234,8238,1,8288,8292,1,8294,8303,1,65279,65529,250,65530,65531,1,69821,69837,16,78896,78911,1,113824,113827,1,119155,119162,1,917505,917536,31,917537,917631,1]));static Co=new l7(new Uint32Array([57344,63743,1,983040,1048573,1,1048576,1114109,1]));static Cs=new l7(new Uint32Array([55296,57343,1]));static L=new l7(new Uint32Array([65,90,1,97,122,1,170,181,11,186,192,6,193,214,1,216,246,1,248,705,1,710,721,1,736,740,1,748,750,2,880,884,1,886,887,1,890,893,1,895,902,7,904,906,1,908,910,2,911,929,1,931,1013,1,1015,1153,1,1162,1327,1,1329,1366,1,1369,1376,7,1377,1416,1,1488,1514,1,1519,1522,1,1568,1610,1,1646,1647,1,1649,1747,1,1749,1765,16,1766,1774,8,1775,1786,11,1787,1788,1,1791,1808,17,1810,1839,1,1869,1957,1,1969,1994,25,1995,2026,1,2036,2037,1,2042,2048,6,2049,2069,1,2074,2084,10,2088,2112,24,2113,2136,1,2144,2154,1,2160,2183,1,2185,2190,1,2208,2249,1,2308,2361,1,2365,2384,19,2392,2401,1,2417,2432,1,2437,2444,1,2447,2448,1,2451,2472,1,2474,2480,1,2482,2486,4,2487,2489,1,2493,2510,17,2524,2525,1,2527,2529,1,2544,2545,1,2556,2565,9,2566,2570,1,2575,2576,1,2579,2600,1,2602,2608,1,2610,2611,1,2613,2614,1,2616,2617,1,2649,2652,1,2654,2674,20,2675,2676,1,2693,2701,1,2703,2705,1,2707,2728,1,2730,2736,1,2738,2739,1,2741,2745,1,2749,2768,19,2784,2785,1,2809,2821,12,2822,2828,1,2831,2832,1,2835,2856,1,2858,2864,1,2866,2867,1,2869,2873,1,2877,2908,31,2909,2911,2,2912,2913,1,2929,2947,18,2949,2954,1,2958,2960,1,2962,2965,1,2969,2970,1,2972,2974,2,2975,2979,4,2980,2984,4,2985,2986,1,2990,3001,1,3024,3077,53,3078,3084,1,3086,3088,1,3090,3112,1,3114,3129,1,3133,3160,27,3161,3162,1,3165,3168,3,3169,3200,31,3205,3212,1,3214,3216,1,3218,3240,1,3242,3251,1,3253,3257,1,3261,3293,32,3294,3296,2,3297,3313,16,3314,3332,18,3333,3340,1,3342,3344,1,3346,3386,1,3389,3406,17,3412,3414,1,3423,3425,1,3450,3455,1,3461,3478,1,3482,3505,1,3507,3515,1,3517,3520,3,3521,3526,1,3585,3632,1,3634,3635,1,3648,3654,1,3713,3714,1,3716,3718,2,3719,3722,1,3724,3747,1,3749,3751,2,3752,3760,1,3762,3763,1,3773,3776,3,3777,3780,1,3782,3804,22,3805,3807,1,3840,3904,64,3905,3911,1,3913,3948,1,3976,3980,1,4096,4138,1,4159,4176,17,4177,4181,1,4186,4189,1,4193,4197,4,4198,4206,8,4207,4208,1,4213,4225,1,4238,4256,18,4257,4293,1,4295,4301,6,4304,4346,1,4348,4680,1,4682,4685,1,4688,4694,1,4696,4698,2,4699,4701,1,4704,4744,1,4746,4749,1,4752,4784,1,4786,4789,1,4792,4798,1,4800,4802,2,4803,4805,1,4808,4822,1,4824,4880,1,4882,4885,1,4888,4954,1,4992,5007,1,5024,5109,1,5112,5117,1,5121,5740,1,5743,5759,1,5761,5786,1,5792,5866,1,5873,5880,1,5888,5905,1,5919,5937,1,5952,5969,1,5984,5996,1,5998,6e3,1,6016,6067,1,6103,6108,5,6176,6264,1,6272,6276,1,6279,6312,1,6314,6320,6,6321,6389,1,6400,6430,1,6480,6509,1,6512,6516,1,6528,6571,1,6576,6601,1,6656,6678,1,6688,6740,1,6823,6917,94,6918,6963,1,6981,6988,1,7043,7072,1,7086,7087,1,7098,7141,1,7168,7203,1,7245,7247,1,7258,7293,1,7296,7306,1,7312,7354,1,7357,7359,1,7401,7404,1,7406,7411,1,7413,7414,1,7418,7424,6,7425,7615,1,7680,7957,1,7960,7965,1,7968,8005,1,8008,8013,1,8016,8023,1,8025,8031,2,8032,8061,1,8064,8116,1,8118,8124,1,8126,8130,4,8131,8132,1,8134,8140,1,8144,8147,1,8150,8155,1,8160,8172,1,8178,8180,1,8182,8188,1,8305,8319,14,8336,8348,1,8450,8455,5,8458,8467,1,8469,8473,4,8474,8477,1,8484,8490,2,8491,8493,1,8495,8505,1,8508,8511,1,8517,8521,1,8526,8579,53,8580,11264,2684,11265,11492,1,11499,11502,1,11506,11507,1,11520,11557,1,11559,11565,6,11568,11623,1,11631,11648,17,11649,11670,1,11680,11686,1,11688,11694,1,11696,11702,1,11704,11710,1,11712,11718,1,11720,11726,1,11728,11734,1,11736,11742,1,11823,12293,470,12294,12337,43,12338,12341,1,12347,12348,1,12353,12438,1,12445,12447,1,12449,12538,1,12540,12543,1,12549,12591,1,12593,12686,1,12704,12735,1,12784,12799,1,13312,19903,1,19968,42124,1,42192,42237,1,42240,42508,1,42512,42527,1,42538,42539,1,42560,42606,1,42623,42653,1,42656,42725,1,42775,42783,1,42786,42888,1,42891,42957,1,42960,42961,1,42963,42965,2,42966,42972,1,42994,43009,1,43011,43013,1,43015,43018,1,43020,43042,1,43072,43123,1,43138,43187,1,43250,43255,1,43259,43261,2,43262,43274,12,43275,43301,1,43312,43334,1,43360,43388,1,43396,43442,1,43471,43488,17,43489,43492,1,43494,43503,1,43514,43518,1,43520,43560,1,43584,43586,1,43588,43595,1,43616,43638,1,43642,43646,4,43647,43695,1,43697,43701,4,43702,43705,3,43706,43709,1,43712,43714,2,43739,43741,1,43744,43754,1,43762,43764,1,43777,43782,1,43785,43790,1,43793,43798,1,43808,43814,1,43816,43822,1,43824,43866,1,43868,43881,1,43888,44002,1,44032,55203,1,55216,55238,1,55243,55291,1,63744,64109,1,64112,64217,1,64256,64262,1,64275,64279,1,64285,64287,2,64288,64296,1,64298,64310,1,64312,64316,1,64318,64320,2,64321,64323,2,64324,64326,2,64327,64433,1,64467,64829,1,64848,64911,1,64914,64967,1,65008,65019,1,65136,65140,1,65142,65276,1,65313,65338,1,65345,65370,1,65382,65470,1,65474,65479,1,65482,65487,1,65490,65495,1,65498,65500,1,65536,65547,1,65549,65574,1,65576,65594,1,65596,65597,1,65599,65613,1,65616,65629,1,65664,65786,1,66176,66204,1,66208,66256,1,66304,66335,1,66349,66368,1,66370,66377,1,66384,66421,1,66432,66461,1,66464,66499,1,66504,66511,1,66560,66717,1,66736,66771,1,66776,66811,1,66816,66855,1,66864,66915,1,66928,66938,1,66940,66954,1,66956,66962,1,66964,66965,1,66967,66977,1,66979,66993,1,66995,67001,1,67003,67004,1,67008,67059,1,67072,67382,1,67392,67413,1,67424,67431,1,67456,67461,1,67463,67504,1,67506,67514,1,67584,67589,1,67592,67594,2,67595,67637,1,67639,67640,1,67644,67647,3,67648,67669,1,67680,67702,1,67712,67742,1,67808,67826,1,67828,67829,1,67840,67861,1,67872,67897,1,67968,68023,1,68030,68031,1,68096,68112,16,68113,68115,1,68117,68119,1,68121,68149,1,68192,68220,1,68224,68252,1,68288,68295,1,68297,68324,1,68352,68405,1,68416,68437,1,68448,68466,1,68480,68497,1,68608,68680,1,68736,68786,1,68800,68850,1,68864,68899,1,68938,68965,1,68975,68997,1,69248,69289,1,69296,69297,1,69314,69316,1,69376,69404,1,69415,69424,9,69425,69445,1,69488,69505,1,69552,69572,1,69600,69622,1,69635,69687,1,69745,69746,1,69749,69763,14,69764,69807,1,69840,69864,1,69891,69926,1,69956,69959,3,69968,70002,1,70006,70019,13,70020,70066,1,70081,70084,1,70106,70108,2,70144,70161,1,70163,70187,1,70207,70208,1,70272,70278,1,70280,70282,2,70283,70285,1,70287,70301,1,70303,70312,1,70320,70366,1,70405,70412,1,70415,70416,1,70419,70440,1,70442,70448,1,70450,70451,1,70453,70457,1,70461,70480,19,70493,70497,1,70528,70537,1,70539,70542,3,70544,70581,1,70583,70609,26,70611,70656,45,70657,70708,1,70727,70730,1,70751,70753,1,70784,70831,1,70852,70853,1,70855,71040,185,71041,71086,1,71128,71131,1,71168,71215,1,71236,71296,60,71297,71338,1,71352,71424,72,71425,71450,1,71488,71494,1,71680,71723,1,71840,71903,1,71935,71942,1,71945,71948,3,71949,71955,1,71957,71958,1,71960,71983,1,71999,72001,2,72096,72103,1,72106,72144,1,72161,72163,2,72192,72203,11,72204,72242,1,72250,72272,22,72284,72329,1,72349,72368,19,72369,72440,1,72640,72672,1,72704,72712,1,72714,72750,1,72768,72818,50,72819,72847,1,72960,72966,1,72968,72969,1,72971,73008,1,73030,73056,26,73057,73061,1,73063,73064,1,73066,73097,1,73112,73440,328,73441,73458,1,73474,73476,2,73477,73488,1,73490,73523,1,73648,73728,80,73729,74649,1,74880,75075,1,77712,77808,1,77824,78895,1,78913,78918,1,78944,82938,1,82944,83526,1,90368,90397,1,92160,92728,1,92736,92766,1,92784,92862,1,92880,92909,1,92928,92975,1,92992,92995,1,93027,93047,1,93053,93071,1,93504,93548,1,93760,93823,1,93952,94026,1,94032,94099,67,94100,94111,1,94176,94177,1,94179,94208,29,94209,100343,1,100352,101589,1,101631,101640,1,110576,110579,1,110581,110587,1,110589,110590,1,110592,110882,1,110898,110928,30,110929,110930,1,110933,110948,15,110949,110951,1,110960,111355,1,113664,113770,1,113776,113788,1,113792,113800,1,113808,113817,1,119808,119892,1,119894,119964,1,119966,119967,1,119970,119973,3,119974,119977,3,119978,119980,1,119982,119993,1,119995,119997,2,119998,120003,1,120005,120069,1,120071,120074,1,120077,120084,1,120086,120092,1,120094,120121,1,120123,120126,1,120128,120132,1,120134,120138,4,120139,120144,1,120146,120485,1,120488,120512,1,120514,120538,1,120540,120570,1,120572,120596,1,120598,120628,1,120630,120654,1,120656,120686,1,120688,120712,1,120714,120744,1,120746,120770,1,120772,120779,1,122624,122654,1,122661,122666,1,122928,122989,1,123136,123180,1,123191,123197,1,123214,123536,322,123537,123565,1,123584,123627,1,124112,124139,1,124368,124397,1,124400,124896,496,124897,124902,1,124904,124907,1,124909,124910,1,124912,124926,1,124928,125124,1,125184,125251,1,125259,126464,1205,126465,126467,1,126469,126495,1,126497,126498,1,126500,126503,3,126505,126514,1,126516,126519,1,126521,126523,2,126530,126535,5,126537,126541,2,126542,126543,1,126545,126546,1,126548,126551,3,126553,126561,2,126562,126564,2,126567,126570,1,126572,126578,1,126580,126583,1,126585,126588,1,126590,126592,2,126593,126601,1,126603,126619,1,126625,126627,1,126629,126633,1,126635,126651,1,131072,173791,1,173824,177977,1,177984,178205,1,178208,183969,1,183984,191456,1,191472,192093,1,194560,195101,1,196608,201546,1,201552,205743,1]));static foldL=new l7(new Uint32Array([837,837,1]));static Ll=new l7(new Uint32Array([97,122,1,181,223,42,224,246,1,248,255,1,257,311,2,312,328,2,329,375,2,378,382,2,383,384,1,387,389,2,392,396,4,397,402,5,405,409,4,410,411,1,414,417,3,419,421,2,424,426,2,427,429,2,432,436,4,438,441,3,442,445,3,446,447,1,454,460,3,462,476,2,477,495,2,496,499,3,501,505,4,507,563,2,564,569,1,572,575,3,576,578,2,583,591,2,592,659,1,661,687,1,881,883,2,887,891,4,892,893,1,912,940,28,941,974,1,976,977,1,981,983,1,985,1007,2,1008,1011,1,1013,1019,3,1020,1072,52,1073,1119,1,1121,1153,2,1163,1215,2,1218,1230,2,1231,1327,2,1376,1416,1,4304,4346,1,4349,4351,1,5112,5117,1,7296,7304,1,7306,7424,118,7425,7467,1,7531,7543,1,7545,7578,1,7681,7829,2,7830,7837,1,7839,7935,2,7936,7943,1,7952,7957,1,7968,7975,1,7984,7991,1,8e3,8005,1,8016,8023,1,8032,8039,1,8048,8061,1,8064,8071,1,8080,8087,1,8096,8103,1,8112,8116,1,8118,8119,1,8126,8130,4,8131,8132,1,8134,8135,1,8144,8147,1,8150,8151,1,8160,8167,1,8178,8180,1,8182,8183,1,8458,8462,4,8463,8467,4,8495,8505,5,8508,8509,1,8518,8521,1,8526,8580,54,11312,11359,1,11361,11365,4,11366,11372,2,11377,11379,2,11380,11382,2,11383,11387,1,11393,11491,2,11492,11500,8,11502,11507,5,11520,11557,1,11559,11565,6,42561,42605,2,42625,42651,2,42787,42799,2,42800,42801,1,42803,42865,2,42866,42872,1,42874,42876,2,42879,42887,2,42892,42894,2,42897,42899,2,42900,42901,1,42903,42921,2,42927,42933,6,42935,42947,2,42952,42954,2,42957,42961,4,42963,42971,2,42998,43002,4,43824,43866,1,43872,43880,1,43888,43967,1,64256,64262,1,64275,64279,1,65345,65370,1,66600,66639,1,66776,66811,1,66967,66977,1,66979,66993,1,66995,67001,1,67003,67004,1,68800,68850,1,68976,68997,1,71872,71903,1,93792,93823,1,119834,119859,1,119886,119892,1,119894,119911,1,119938,119963,1,119990,119993,1,119995,119997,2,119998,120003,1,120005,120015,1,120042,120067,1,120094,120119,1,120146,120171,1,120198,120223,1,120250,120275,1,120302,120327,1,120354,120379,1,120406,120431,1,120458,120485,1,120514,120538,1,120540,120545,1,120572,120596,1,120598,120603,1,120630,120654,1,120656,120661,1,120688,120712,1,120714,120719,1,120746,120770,1,120772,120777,1,120779,122624,1845,122625,122633,1,122635,122654,1,122661,122666,1,125218,125251,1]));static foldLl=new l7(new Uint32Array([65,90,1,192,214,1,216,222,1,256,302,2,306,310,2,313,327,2,330,376,2,377,381,2,385,386,1,388,390,2,391,393,2,394,395,1,398,401,1,403,404,1,406,408,1,412,413,1,415,416,1,418,422,2,423,425,2,428,430,2,431,433,2,434,435,1,437,439,2,440,444,4,452,453,1,455,456,1,458,459,1,461,475,2,478,494,2,497,498,1,500,502,2,503,504,1,506,562,2,570,571,1,573,574,1,577,579,2,580,582,1,584,590,2,837,880,43,882,886,4,895,902,7,904,906,1,908,910,2,911,913,2,914,929,1,931,939,1,975,984,9,986,1006,2,1012,1015,3,1017,1018,1,1021,1071,1,1120,1152,2,1162,1216,2,1217,1229,2,1232,1326,2,1329,1366,1,4256,4293,1,4295,4301,6,5024,5109,1,7305,7312,7,7313,7354,1,7357,7359,1,7680,7828,2,7838,7934,2,7944,7951,1,7960,7965,1,7976,7983,1,7992,7999,1,8008,8013,1,8025,8031,2,8040,8047,1,8072,8079,1,8088,8095,1,8104,8111,1,8120,8124,1,8136,8140,1,8152,8155,1,8168,8172,1,8184,8188,1,8486,8490,4,8491,8498,7,8579,11264,2685,11265,11311,1,11360,11362,2,11363,11364,1,11367,11373,2,11374,11376,1,11378,11381,3,11390,11392,1,11394,11490,2,11499,11501,2,11506,42560,31054,42562,42604,2,42624,42650,2,42786,42798,2,42802,42862,2,42873,42877,2,42878,42886,2,42891,42893,2,42896,42898,2,42902,42922,2,42923,42926,1,42928,42932,1,42934,42948,2,42949,42951,1,42953,42955,2,42956,42960,4,42966,42972,2,42997,65313,22316,65314,65338,1,66560,66599,1,66736,66771,1,66928,66938,1,66940,66954,1,66956,66962,1,66964,66965,1,68736,68786,1,68944,68965,1,71840,71871,1,93760,93791,1,125184,125217,1]));static Lm=new l7(new Uint32Array([688,705,1,710,721,1,736,740,1,748,750,2,884,890,6,1369,1600,231,1765,1766,1,2036,2037,1,2042,2074,32,2084,2088,4,2249,2417,168,3654,3782,128,4348,6103,1755,6211,6823,612,7288,7293,1,7468,7530,1,7544,7579,35,7580,7615,1,8305,8319,14,8336,8348,1,11388,11389,1,11631,11823,192,12293,12337,44,12338,12341,1,12347,12445,98,12446,12540,94,12541,12542,1,40981,42232,1251,42233,42237,1,42508,42623,115,42652,42653,1,42775,42783,1,42864,42888,24,42994,42996,1,43e3,43001,1,43471,43494,23,43632,43741,109,43763,43764,1,43868,43871,1,43881,65392,21511,65438,65439,1,67456,67461,1,67463,67504,1,67506,67514,1,68942,68975,33,92992,92995,1,93504,93506,1,93547,93548,1,94099,94111,1,94176,94177,1,94179,110576,16397,110577,110579,1,110581,110587,1,110589,110590,1,122928,122989,1,123191,123197,1,124139,125259,1120]));static Lo=new l7(new Uint32Array([170,186,16,443,448,5,449,451,1,660,1488,828,1489,1514,1,1519,1522,1,1568,1599,1,1601,1610,1,1646,1647,1,1649,1747,1,1749,1774,25,1775,1786,11,1787,1788,1,1791,1808,17,1810,1839,1,1869,1957,1,1969,1994,25,1995,2026,1,2048,2069,1,2112,2136,1,2144,2154,1,2160,2183,1,2185,2190,1,2208,2248,1,2308,2361,1,2365,2384,19,2392,2401,1,2418,2432,1,2437,2444,1,2447,2448,1,2451,2472,1,2474,2480,1,2482,2486,4,2487,2489,1,2493,2510,17,2524,2525,1,2527,2529,1,2544,2545,1,2556,2565,9,2566,2570,1,2575,2576,1,2579,2600,1,2602,2608,1,2610,2611,1,2613,2614,1,2616,2617,1,2649,2652,1,2654,2674,20,2675,2676,1,2693,2701,1,2703,2705,1,2707,2728,1,2730,2736,1,2738,2739,1,2741,2745,1,2749,2768,19,2784,2785,1,2809,2821,12,2822,2828,1,2831,2832,1,2835,2856,1,2858,2864,1,2866,2867,1,2869,2873,1,2877,2908,31,2909,2911,2,2912,2913,1,2929,2947,18,2949,2954,1,2958,2960,1,2962,2965,1,2969,2970,1,2972,2974,2,2975,2979,4,2980,2984,4,2985,2986,1,2990,3001,1,3024,3077,53,3078,3084,1,3086,3088,1,3090,3112,1,3114,3129,1,3133,3160,27,3161,3162,1,3165,3168,3,3169,3200,31,3205,3212,1,3214,3216,1,3218,3240,1,3242,3251,1,3253,3257,1,3261,3293,32,3294,3296,2,3297,3313,16,3314,3332,18,3333,3340,1,3342,3344,1,3346,3386,1,3389,3406,17,3412,3414,1,3423,3425,1,3450,3455,1,3461,3478,1,3482,3505,1,3507,3515,1,3517,3520,3,3521,3526,1,3585,3632,1,3634,3635,1,3648,3653,1,3713,3714,1,3716,3718,2,3719,3722,1,3724,3747,1,3749,3751,2,3752,3760,1,3762,3763,1,3773,3776,3,3777,3780,1,3804,3807,1,3840,3904,64,3905,3911,1,3913,3948,1,3976,3980,1,4096,4138,1,4159,4176,17,4177,4181,1,4186,4189,1,4193,4197,4,4198,4206,8,4207,4208,1,4213,4225,1,4238,4352,114,4353,4680,1,4682,4685,1,4688,4694,1,4696,4698,2,4699,4701,1,4704,4744,1,4746,4749,1,4752,4784,1,4786,4789,1,4792,4798,1,4800,4802,2,4803,4805,1,4808,4822,1,4824,4880,1,4882,4885,1,4888,4954,1,4992,5007,1,5121,5740,1,5743,5759,1,5761,5786,1,5792,5866,1,5873,5880,1,5888,5905,1,5919,5937,1,5952,5969,1,5984,5996,1,5998,6e3,1,6016,6067,1,6108,6176,68,6177,6210,1,6212,6264,1,6272,6276,1,6279,6312,1,6314,6320,6,6321,6389,1,6400,6430,1,6480,6509,1,6512,6516,1,6528,6571,1,6576,6601,1,6656,6678,1,6688,6740,1,6917,6963,1,6981,6988,1,7043,7072,1,7086,7087,1,7098,7141,1,7168,7203,1,7245,7247,1,7258,7287,1,7401,7404,1,7406,7411,1,7413,7414,1,7418,8501,1083,8502,8504,1,11568,11623,1,11648,11670,1,11680,11686,1,11688,11694,1,11696,11702,1,11704,11710,1,11712,11718,1,11720,11726,1,11728,11734,1,11736,11742,1,12294,12348,54,12353,12438,1,12447,12449,2,12450,12538,1,12543,12549,6,12550,12591,1,12593,12686,1,12704,12735,1,12784,12799,1,13312,19903,1,19968,40980,1,40982,42124,1,42192,42231,1,42240,42507,1,42512,42527,1,42538,42539,1,42606,42656,50,42657,42725,1,42895,42999,104,43003,43009,1,43011,43013,1,43015,43018,1,43020,43042,1,43072,43123,1,43138,43187,1,43250,43255,1,43259,43261,2,43262,43274,12,43275,43301,1,43312,43334,1,43360,43388,1,43396,43442,1,43488,43492,1,43495,43503,1,43514,43518,1,43520,43560,1,43584,43586,1,43588,43595,1,43616,43631,1,43633,43638,1,43642,43646,4,43647,43695,1,43697,43701,4,43702,43705,3,43706,43709,1,43712,43714,2,43739,43740,1,43744,43754,1,43762,43777,15,43778,43782,1,43785,43790,1,43793,43798,1,43808,43814,1,43816,43822,1,43968,44002,1,44032,55203,1,55216,55238,1,55243,55291,1,63744,64109,1,64112,64217,1,64285,64287,2,64288,64296,1,64298,64310,1,64312,64316,1,64318,64320,2,64321,64323,2,64324,64326,2,64327,64433,1,64467,64829,1,64848,64911,1,64914,64967,1,65008,65019,1,65136,65140,1,65142,65276,1,65382,65391,1,65393,65437,1,65440,65470,1,65474,65479,1,65482,65487,1,65490,65495,1,65498,65500,1,65536,65547,1,65549,65574,1,65576,65594,1,65596,65597,1,65599,65613,1,65616,65629,1,65664,65786,1,66176,66204,1,66208,66256,1,66304,66335,1,66349,66368,1,66370,66377,1,66384,66421,1,66432,66461,1,66464,66499,1,66504,66511,1,66640,66717,1,66816,66855,1,66864,66915,1,67008,67059,1,67072,67382,1,67392,67413,1,67424,67431,1,67584,67589,1,67592,67594,2,67595,67637,1,67639,67640,1,67644,67647,3,67648,67669,1,67680,67702,1,67712,67742,1,67808,67826,1,67828,67829,1,67840,67861,1,67872,67897,1,67968,68023,1,68030,68031,1,68096,68112,16,68113,68115,1,68117,68119,1,68121,68149,1,68192,68220,1,68224,68252,1,68288,68295,1,68297,68324,1,68352,68405,1,68416,68437,1,68448,68466,1,68480,68497,1,68608,68680,1,68864,68899,1,68938,68941,1,68943,69248,305,69249,69289,1,69296,69297,1,69314,69316,1,69376,69404,1,69415,69424,9,69425,69445,1,69488,69505,1,69552,69572,1,69600,69622,1,69635,69687,1,69745,69746,1,69749,69763,14,69764,69807,1,69840,69864,1,69891,69926,1,69956,69959,3,69968,70002,1,70006,70019,13,70020,70066,1,70081,70084,1,70106,70108,2,70144,70161,1,70163,70187,1,70207,70208,1,70272,70278,1,70280,70282,2,70283,70285,1,70287,70301,1,70303,70312,1,70320,70366,1,70405,70412,1,70415,70416,1,70419,70440,1,70442,70448,1,70450,70451,1,70453,70457,1,70461,70480,19,70493,70497,1,70528,70537,1,70539,70542,3,70544,70581,1,70583,70609,26,70611,70656,45,70657,70708,1,70727,70730,1,70751,70753,1,70784,70831,1,70852,70853,1,70855,71040,185,71041,71086,1,71128,71131,1,71168,71215,1,71236,71296,60,71297,71338,1,71352,71424,72,71425,71450,1,71488,71494,1,71680,71723,1,71935,71942,1,71945,71948,3,71949,71955,1,71957,71958,1,71960,71983,1,71999,72001,2,72096,72103,1,72106,72144,1,72161,72163,2,72192,72203,11,72204,72242,1,72250,72272,22,72284,72329,1,72349,72368,19,72369,72440,1,72640,72672,1,72704,72712,1,72714,72750,1,72768,72818,50,72819,72847,1,72960,72966,1,72968,72969,1,72971,73008,1,73030,73056,26,73057,73061,1,73063,73064,1,73066,73097,1,73112,73440,328,73441,73458,1,73474,73476,2,73477,73488,1,73490,73523,1,73648,73728,80,73729,74649,1,74880,75075,1,77712,77808,1,77824,78895,1,78913,78918,1,78944,82938,1,82944,83526,1,90368,90397,1,92160,92728,1,92736,92766,1,92784,92862,1,92880,92909,1,92928,92975,1,93027,93047,1,93053,93071,1,93507,93546,1,93952,94026,1,94032,94208,176,94209,100343,1,100352,101589,1,101631,101640,1,110592,110882,1,110898,110928,30,110929,110930,1,110933,110948,15,110949,110951,1,110960,111355,1,113664,113770,1,113776,113788,1,113792,113800,1,113808,113817,1,122634,123136,502,123137,123180,1,123214,123536,322,123537,123565,1,123584,123627,1,124112,124138,1,124368,124397,1,124400,124896,496,124897,124902,1,124904,124907,1,124909,124910,1,124912,124926,1,124928,125124,1,126464,126467,1,126469,126495,1,126497,126498,1,126500,126503,3,126505,126514,1,126516,126519,1,126521,126523,2,126530,126535,5,126537,126541,2,126542,126543,1,126545,126546,1,126548,126551,3,126553,126561,2,126562,126564,2,126567,126570,1,126572,126578,1,126580,126583,1,126585,126588,1,126590,126592,2,126593,126601,1,126603,126619,1,126625,126627,1,126629,126633,1,126635,126651,1,131072,173791,1,173824,177977,1,177984,178205,1,178208,183969,1,183984,191456,1,191472,192093,1,194560,195101,1,196608,201546,1,201552,205743,1]));static Lt=new l7(new Uint32Array([453,459,3,498,8072,7574,8073,8079,1,8088,8095,1,8104,8111,1,8124,8140,16,8188,8188,1]));static foldLt=new l7(new Uint32Array([452,454,2,455,457,2,458,460,2,497,499,2,8064,8071,1,8080,8087,1,8096,8103,1,8115,8131,16,8179,8179,1]));static Lu=new l7(new Uint32Array([65,90,1,192,214,1,216,222,1,256,310,2,313,327,2,330,376,2,377,381,2,385,386,1,388,390,2,391,393,2,394,395,1,398,401,1,403,404,1,406,408,1,412,413,1,415,416,1,418,422,2,423,425,2,428,430,2,431,433,2,434,435,1,437,439,2,440,444,4,452,461,3,463,475,2,478,494,2,497,500,3,502,504,1,506,562,2,570,571,1,573,574,1,577,579,2,580,582,1,584,590,2,880,882,2,886,895,9,902,904,2,905,906,1,908,910,2,911,913,2,914,929,1,931,939,1,975,978,3,979,980,1,984,1006,2,1012,1015,3,1017,1018,1,1021,1071,1,1120,1152,2,1162,1216,2,1217,1229,2,1232,1326,2,1329,1366,1,4256,4293,1,4295,4301,6,5024,5109,1,7305,7312,7,7313,7354,1,7357,7359,1,7680,7828,2,7838,7934,2,7944,7951,1,7960,7965,1,7976,7983,1,7992,7999,1,8008,8013,1,8025,8031,2,8040,8047,1,8120,8123,1,8136,8139,1,8152,8155,1,8168,8172,1,8184,8187,1,8450,8455,5,8459,8461,1,8464,8466,1,8469,8473,4,8474,8477,1,8484,8490,2,8491,8493,1,8496,8499,1,8510,8511,1,8517,8579,62,11264,11311,1,11360,11362,2,11363,11364,1,11367,11373,2,11374,11376,1,11378,11381,3,11390,11392,1,11394,11490,2,11499,11501,2,11506,42560,31054,42562,42604,2,42624,42650,2,42786,42798,2,42802,42862,2,42873,42877,2,42878,42886,2,42891,42893,2,42896,42898,2,42902,42922,2,42923,42926,1,42928,42932,1,42934,42948,2,42949,42951,1,42953,42955,2,42956,42960,4,42966,42972,2,42997,65313,22316,65314,65338,1,66560,66599,1,66736,66771,1,66928,66938,1,66940,66954,1,66956,66962,1,66964,66965,1,68736,68786,1,68944,68965,1,71840,71871,1,93760,93791,1,119808,119833,1,119860,119885,1,119912,119937,1,119964,119966,2,119967,119973,3,119974,119977,3,119978,119980,1,119982,119989,1,120016,120041,1,120068,120069,1,120071,120074,1,120077,120084,1,120086,120092,1,120120,120121,1,120123,120126,1,120128,120132,1,120134,120138,4,120139,120144,1,120172,120197,1,120224,120249,1,120276,120301,1,120328,120353,1,120380,120405,1,120432,120457,1,120488,120512,1,120546,120570,1,120604,120628,1,120662,120686,1,120720,120744,1,120778,125184,4406,125185,125217,1]));static Upper=this.Lu;static foldLu=new l7(new Uint32Array([97,122,1,181,223,42,224,246,1,248,255,1,257,303,2,307,311,2,314,328,2,331,375,2,378,382,2,383,384,1,387,389,2,392,396,4,402,405,3,409,411,1,414,417,3,419,421,2,424,429,5,432,436,4,438,441,3,445,447,2,453,454,1,456,457,1,459,460,1,462,476,2,477,495,2,498,499,1,501,505,4,507,543,2,547,563,2,572,575,3,576,578,2,583,591,2,592,596,1,598,599,1,601,603,2,604,608,4,609,611,2,612,614,1,616,620,1,623,625,2,626,629,3,637,640,3,642,643,1,647,652,1,658,669,11,670,837,167,881,883,2,887,891,4,892,893,1,940,943,1,945,974,1,976,977,1,981,983,1,985,1007,2,1008,1011,1,1013,1019,3,1072,1119,1,1121,1153,2,1163,1215,2,1218,1230,2,1231,1327,2,1377,1414,1,4304,4346,1,4349,4351,1,5112,5117,1,7296,7304,1,7306,7545,239,7549,7566,17,7681,7829,2,7835,7841,6,7843,7935,2,7936,7943,1,7952,7957,1,7968,7975,1,7984,7991,1,8e3,8005,1,8017,8023,2,8032,8039,1,8048,8061,1,8112,8113,1,8126,8144,18,8145,8160,15,8161,8165,4,8526,8580,54,11312,11359,1,11361,11365,4,11366,11372,2,11379,11382,3,11393,11491,2,11500,11502,2,11507,11520,13,11521,11557,1,11559,11565,6,42561,42605,2,42625,42651,2,42787,42799,2,42803,42863,2,42874,42876,2,42879,42887,2,42892,42897,5,42899,42900,1,42903,42921,2,42933,42947,2,42952,42954,2,42957,42961,4,42967,42971,2,42998,43859,861,43888,43967,1,65345,65370,1,66600,66639,1,66776,66811,1,66967,66977,1,66979,66993,1,66995,67001,1,67003,67004,1,68800,68850,1,68976,68997,1,71872,71903,1,93792,93823,1,125218,125251,1]));static M=new l7(new Uint32Array([768,879,1,1155,1161,1,1425,1469,1,1471,1473,2,1474,1476,2,1477,1479,2,1552,1562,1,1611,1631,1,1648,1750,102,1751,1756,1,1759,1764,1,1767,1768,1,1770,1773,1,1809,1840,31,1841,1866,1,1958,1968,1,2027,2035,1,2045,2070,25,2071,2073,1,2075,2083,1,2085,2087,1,2089,2093,1,2137,2139,1,2199,2207,1,2250,2273,1,2275,2307,1,2362,2364,1,2366,2383,1,2385,2391,1,2402,2403,1,2433,2435,1,2492,2494,2,2495,2500,1,2503,2504,1,2507,2509,1,2519,2530,11,2531,2558,27,2561,2563,1,2620,2622,2,2623,2626,1,2631,2632,1,2635,2637,1,2641,2672,31,2673,2677,4,2689,2691,1,2748,2750,2,2751,2757,1,2759,2761,1,2763,2765,1,2786,2787,1,2810,2815,1,2817,2819,1,2876,2878,2,2879,2884,1,2887,2888,1,2891,2893,1,2901,2903,1,2914,2915,1,2946,3006,60,3007,3010,1,3014,3016,1,3018,3021,1,3031,3072,41,3073,3076,1,3132,3134,2,3135,3140,1,3142,3144,1,3146,3149,1,3157,3158,1,3170,3171,1,3201,3203,1,3260,3262,2,3263,3268,1,3270,3272,1,3274,3277,1,3285,3286,1,3298,3299,1,3315,3328,13,3329,3331,1,3387,3388,1,3390,3396,1,3398,3400,1,3402,3405,1,3415,3426,11,3427,3457,30,3458,3459,1,3530,3535,5,3536,3540,1,3542,3544,2,3545,3551,1,3570,3571,1,3633,3636,3,3637,3642,1,3655,3662,1,3761,3764,3,3765,3772,1,3784,3790,1,3864,3865,1,3893,3897,2,3902,3903,1,3953,3972,1,3974,3975,1,3981,3991,1,3993,4028,1,4038,4139,101,4140,4158,1,4182,4185,1,4190,4192,1,4194,4196,1,4199,4205,1,4209,4212,1,4226,4237,1,4239,4250,11,4251,4253,1,4957,4959,1,5906,5909,1,5938,5940,1,5970,5971,1,6002,6003,1,6068,6099,1,6109,6155,46,6156,6157,1,6159,6277,118,6278,6313,35,6432,6443,1,6448,6459,1,6679,6683,1,6741,6750,1,6752,6780,1,6783,6832,49,6833,6862,1,6912,6916,1,6964,6980,1,7019,7027,1,7040,7042,1,7073,7085,1,7142,7155,1,7204,7223,1,7376,7378,1,7380,7400,1,7405,7412,7,7415,7417,1,7616,7679,1,8400,8432,1,11503,11505,1,11647,11744,97,11745,11775,1,12330,12335,1,12441,12442,1,42607,42610,1,42612,42621,1,42654,42655,1,42736,42737,1,43010,43014,4,43019,43043,24,43044,43047,1,43052,43136,84,43137,43188,51,43189,43205,1,43232,43249,1,43263,43302,39,43303,43309,1,43335,43347,1,43392,43395,1,43443,43456,1,43493,43561,68,43562,43574,1,43587,43596,9,43597,43643,46,43644,43645,1,43696,43698,2,43699,43700,1,43703,43704,1,43710,43711,1,43713,43755,42,43756,43759,1,43765,43766,1,44003,44010,1,44012,44013,1,64286,65024,738,65025,65039,1,65056,65071,1,66045,66272,227,66422,66426,1,68097,68099,1,68101,68102,1,68108,68111,1,68152,68154,1,68159,68325,166,68326,68900,574,68901,68903,1,68969,68973,1,69291,69292,1,69372,69375,1,69446,69456,1,69506,69509,1,69632,69634,1,69688,69702,1,69744,69747,3,69748,69759,11,69760,69762,1,69808,69818,1,69826,69888,62,69889,69890,1,69927,69940,1,69957,69958,1,70003,70016,13,70017,70018,1,70067,70080,1,70089,70092,1,70094,70095,1,70188,70199,1,70206,70209,3,70367,70378,1,70400,70403,1,70459,70460,1,70462,70468,1,70471,70472,1,70475,70477,1,70487,70498,11,70499,70502,3,70503,70508,1,70512,70516,1,70584,70592,1,70594,70597,3,70599,70602,1,70604,70608,1,70610,70625,15,70626,70709,83,70710,70726,1,70750,70832,82,70833,70851,1,71087,71093,1,71096,71104,1,71132,71133,1,71216,71232,1,71339,71351,1,71453,71467,1,71724,71738,1,71984,71989,1,71991,71992,1,71995,71998,1,72e3,72002,2,72003,72145,142,72146,72151,1,72154,72160,1,72164,72193,29,72194,72202,1,72243,72249,1,72251,72254,1,72263,72273,10,72274,72283,1,72330,72345,1,72751,72758,1,72760,72767,1,72850,72871,1,72873,72886,1,73009,73014,1,73018,73020,2,73021,73023,2,73024,73029,1,73031,73098,67,73099,73102,1,73104,73105,1,73107,73111,1,73459,73462,1,73472,73473,1,73475,73524,49,73525,73530,1,73534,73538,1,73562,78912,5350,78919,78933,1,90398,90415,1,92912,92916,1,92976,92982,1,94031,94033,2,94034,94087,1,94095,94098,1,94180,94192,12,94193,113821,19628,113822,118528,4706,118529,118573,1,118576,118598,1,119141,119145,1,119149,119154,1,119163,119170,1,119173,119179,1,119210,119213,1,119362,119364,1,121344,121398,1,121403,121452,1,121461,121476,15,121499,121503,1,121505,121519,1,122880,122886,1,122888,122904,1,122907,122913,1,122915,122916,1,122918,122922,1,123023,123184,161,123185,123190,1,123566,123628,62,123629,123631,1,124140,124143,1,124398,124399,1,125136,125142,1,125252,125258,1,917760,917999,1]));static foldM=new l7(new Uint32Array([921,953,32,8126,8126,1]));static Mc=new l7(new Uint32Array([2307,2363,56,2366,2368,1,2377,2380,1,2382,2383,1,2434,2435,1,2494,2496,1,2503,2504,1,2507,2508,1,2519,2563,44,2622,2624,1,2691,2750,59,2751,2752,1,2761,2763,2,2764,2818,54,2819,2878,59,2880,2887,7,2888,2891,3,2892,2903,11,3006,3007,1,3009,3010,1,3014,3016,1,3018,3020,1,3031,3073,42,3074,3075,1,3137,3140,1,3202,3203,1,3262,3264,2,3265,3268,1,3271,3272,1,3274,3275,1,3285,3286,1,3315,3330,15,3331,3390,59,3391,3392,1,3398,3400,1,3402,3404,1,3415,3458,43,3459,3535,76,3536,3537,1,3544,3551,1,3570,3571,1,3902,3903,1,3967,4139,172,4140,4145,5,4152,4155,3,4156,4182,26,4183,4194,11,4195,4196,1,4199,4205,1,4227,4228,1,4231,4236,1,4239,4250,11,4251,4252,1,5909,5940,31,6070,6078,8,6079,6085,1,6087,6088,1,6435,6438,1,6441,6443,1,6448,6449,1,6451,6456,1,6681,6682,1,6741,6743,2,6753,6755,2,6756,6765,9,6766,6770,1,6916,6965,49,6971,6973,2,6974,6977,1,6979,6980,1,7042,7073,31,7078,7079,1,7082,7143,61,7146,7148,1,7150,7154,4,7155,7204,49,7205,7211,1,7220,7221,1,7393,7415,22,12334,12335,1,43043,43044,1,43047,43136,89,43137,43188,51,43189,43203,1,43346,43347,1,43395,43444,49,43445,43450,5,43451,43454,3,43455,43456,1,43567,43568,1,43571,43572,1,43597,43643,46,43645,43755,110,43758,43759,1,43765,44003,238,44004,44006,2,44007,44009,2,44010,44012,2,69632,69634,2,69762,69808,46,69809,69810,1,69815,69816,1,69932,69957,25,69958,70018,60,70067,70069,1,70079,70080,1,70094,70188,94,70189,70190,1,70194,70195,1,70197,70368,171,70369,70370,1,70402,70403,1,70462,70463,1,70465,70468,1,70471,70472,1,70475,70477,1,70487,70498,11,70499,70584,85,70585,70586,1,70594,70597,3,70599,70602,1,70604,70605,1,70607,70709,102,70710,70711,1,70720,70721,1,70725,70832,107,70833,70834,1,70841,70843,2,70844,70846,1,70849,71087,238,71088,71089,1,71096,71099,1,71102,71216,114,71217,71218,1,71227,71228,1,71230,71340,110,71342,71343,1,71350,71454,104,71456,71457,1,71462,71724,262,71725,71726,1,71736,71984,248,71985,71989,1,71991,71992,1,71997,72e3,3,72002,72145,143,72146,72147,1,72156,72159,1,72164,72249,85,72279,72280,1,72343,72751,408,72766,72873,107,72881,72884,3,73098,73102,1,73107,73108,1,73110,73461,351,73462,73475,13,73524,73525,1,73534,73535,1,73537,90410,16873,90411,90412,1,94033,94087,1,94192,94193,1,119141,119142,1,119149,119154,1]));static Me=new l7(new Uint32Array([1160,1161,1,6846,8413,1567,8414,8416,1,8418,8420,1,42608,42610,1]));static Mn=new l7(new Uint32Array([768,879,1,1155,1159,1,1425,1469,1,1471,1473,2,1474,1476,2,1477,1479,2,1552,1562,1,1611,1631,1,1648,1750,102,1751,1756,1,1759,1764,1,1767,1768,1,1770,1773,1,1809,1840,31,1841,1866,1,1958,1968,1,2027,2035,1,2045,2070,25,2071,2073,1,2075,2083,1,2085,2087,1,2089,2093,1,2137,2139,1,2199,2207,1,2250,2273,1,2275,2306,1,2362,2364,2,2369,2376,1,2381,2385,4,2386,2391,1,2402,2403,1,2433,2492,59,2497,2500,1,2509,2530,21,2531,2558,27,2561,2562,1,2620,2625,5,2626,2631,5,2632,2635,3,2636,2637,1,2641,2672,31,2673,2677,4,2689,2690,1,2748,2753,5,2754,2757,1,2759,2760,1,2765,2786,21,2787,2810,23,2811,2815,1,2817,2876,59,2879,2881,2,2882,2884,1,2893,2901,8,2902,2914,12,2915,2946,31,3008,3021,13,3072,3076,4,3132,3134,2,3135,3136,1,3142,3144,1,3146,3149,1,3157,3158,1,3170,3171,1,3201,3260,59,3263,3270,7,3276,3277,1,3298,3299,1,3328,3329,1,3387,3388,1,3393,3396,1,3405,3426,21,3427,3457,30,3530,3538,8,3539,3540,1,3542,3633,91,3636,3642,1,3655,3662,1,3761,3764,3,3765,3772,1,3784,3790,1,3864,3865,1,3893,3897,2,3953,3966,1,3968,3972,1,3974,3975,1,3981,3991,1,3993,4028,1,4038,4141,103,4142,4144,1,4146,4151,1,4153,4154,1,4157,4158,1,4184,4185,1,4190,4192,1,4209,4212,1,4226,4229,3,4230,4237,7,4253,4957,704,4958,4959,1,5906,5908,1,5938,5939,1,5970,5971,1,6002,6003,1,6068,6069,1,6071,6077,1,6086,6089,3,6090,6099,1,6109,6155,46,6156,6157,1,6159,6277,118,6278,6313,35,6432,6434,1,6439,6440,1,6450,6457,7,6458,6459,1,6679,6680,1,6683,6742,59,6744,6750,1,6752,6754,2,6757,6764,1,6771,6780,1,6783,6832,49,6833,6845,1,6847,6862,1,6912,6915,1,6964,6966,2,6967,6970,1,6972,6978,6,7019,7027,1,7040,7041,1,7074,7077,1,7080,7081,1,7083,7085,1,7142,7144,2,7145,7149,4,7151,7153,1,7212,7219,1,7222,7223,1,7376,7378,1,7380,7392,1,7394,7400,1,7405,7412,7,7416,7417,1,7616,7679,1,8400,8412,1,8417,8421,4,8422,8432,1,11503,11505,1,11647,11744,97,11745,11775,1,12330,12333,1,12441,12442,1,42607,42612,5,42613,42621,1,42654,42655,1,42736,42737,1,43010,43014,4,43019,43045,26,43046,43052,6,43204,43205,1,43232,43249,1,43263,43302,39,43303,43309,1,43335,43345,1,43392,43394,1,43443,43446,3,43447,43449,1,43452,43453,1,43493,43561,68,43562,43566,1,43569,43570,1,43573,43574,1,43587,43596,9,43644,43696,52,43698,43700,1,43703,43704,1,43710,43711,1,43713,43756,43,43757,43766,9,44005,44008,3,44013,64286,20273,65024,65039,1,65056,65071,1,66045,66272,227,66422,66426,1,68097,68099,1,68101,68102,1,68108,68111,1,68152,68154,1,68159,68325,166,68326,68900,574,68901,68903,1,68969,68973,1,69291,69292,1,69372,69375,1,69446,69456,1,69506,69509,1,69633,69688,55,69689,69702,1,69744,69747,3,69748,69759,11,69760,69761,1,69811,69814,1,69817,69818,1,69826,69888,62,69889,69890,1,69927,69931,1,69933,69940,1,70003,70016,13,70017,70070,53,70071,70078,1,70089,70092,1,70095,70191,96,70192,70193,1,70196,70198,2,70199,70206,7,70209,70367,158,70371,70378,1,70400,70401,1,70459,70460,1,70464,70502,38,70503,70508,1,70512,70516,1,70587,70592,1,70606,70610,2,70625,70626,1,70712,70719,1,70722,70724,1,70726,70750,24,70835,70840,1,70842,70847,5,70848,70850,2,70851,71090,239,71091,71093,1,71100,71101,1,71103,71104,1,71132,71133,1,71219,71226,1,71229,71231,2,71232,71339,107,71341,71344,3,71345,71349,1,71351,71453,102,71455,71458,3,71459,71461,1,71463,71467,1,71727,71735,1,71737,71738,1,71995,71996,1,71998,72003,5,72148,72151,1,72154,72155,1,72160,72193,33,72194,72202,1,72243,72248,1,72251,72254,1,72263,72273,10,72274,72278,1,72281,72283,1,72330,72342,1,72344,72345,1,72752,72758,1,72760,72765,1,72767,72850,83,72851,72871,1,72874,72880,1,72882,72883,1,72885,72886,1,73009,73014,1,73018,73020,2,73021,73023,2,73024,73029,1,73031,73104,73,73105,73109,4,73111,73459,348,73460,73472,12,73473,73526,53,73527,73530,1,73536,73538,2,73562,78912,5350,78919,78933,1,90398,90409,1,90413,90415,1,92912,92916,1,92976,92982,1,94031,94095,64,94096,94098,1,94180,113821,19641,113822,118528,4706,118529,118573,1,118576,118598,1,119143,119145,1,119163,119170,1,119173,119179,1,119210,119213,1,119362,119364,1,121344,121398,1,121403,121452,1,121461,121476,15,121499,121503,1,121505,121519,1,122880,122886,1,122888,122904,1,122907,122913,1,122915,122916,1,122918,122922,1,123023,123184,161,123185,123190,1,123566,123628,62,123629,123631,1,124140,124143,1,124398,124399,1,125136,125142,1,125252,125258,1,917760,917999,1]));static foldMn=new l7(new Uint32Array([921,953,32,8126,8126,1]));static N=new l7(new Uint32Array([48,57,1,178,179,1,185,188,3,189,190,1,1632,1641,1,1776,1785,1,1984,1993,1,2406,2415,1,2534,2543,1,2548,2553,1,2662,2671,1,2790,2799,1,2918,2927,1,2930,2935,1,3046,3058,1,3174,3183,1,3192,3198,1,3302,3311,1,3416,3422,1,3430,3448,1,3558,3567,1,3664,3673,1,3792,3801,1,3872,3891,1,4160,4169,1,4240,4249,1,4969,4988,1,5870,5872,1,6112,6121,1,6128,6137,1,6160,6169,1,6470,6479,1,6608,6618,1,6784,6793,1,6800,6809,1,6992,7001,1,7088,7097,1,7232,7241,1,7248,7257,1,8304,8308,4,8309,8313,1,8320,8329,1,8528,8578,1,8581,8585,1,9312,9371,1,9450,9471,1,10102,10131,1,11517,12295,778,12321,12329,1,12344,12346,1,12690,12693,1,12832,12841,1,12872,12879,1,12881,12895,1,12928,12937,1,12977,12991,1,42528,42537,1,42726,42735,1,43056,43061,1,43216,43225,1,43264,43273,1,43472,43481,1,43504,43513,1,43600,43609,1,44016,44025,1,65296,65305,1,65799,65843,1,65856,65912,1,65930,65931,1,66273,66299,1,66336,66339,1,66369,66378,9,66513,66517,1,66720,66729,1,67672,67679,1,67705,67711,1,67751,67759,1,67835,67839,1,67862,67867,1,68028,68029,1,68032,68047,1,68050,68095,1,68160,68168,1,68221,68222,1,68253,68255,1,68331,68335,1,68440,68447,1,68472,68479,1,68521,68527,1,68858,68863,1,68912,68921,1,68928,68937,1,69216,69246,1,69405,69414,1,69457,69460,1,69573,69579,1,69714,69743,1,69872,69881,1,69942,69951,1,70096,70105,1,70113,70132,1,70384,70393,1,70736,70745,1,70864,70873,1,71248,71257,1,71360,71369,1,71376,71395,1,71472,71483,1,71904,71922,1,72016,72025,1,72688,72697,1,72784,72812,1,73040,73049,1,73120,73129,1,73552,73561,1,73664,73684,1,74752,74862,1,90416,90425,1,92768,92777,1,92864,92873,1,93008,93017,1,93019,93025,1,93552,93561,1,93824,93846,1,118e3,118009,1,119488,119507,1,119520,119539,1,119648,119672,1,120782,120831,1,123200,123209,1,123632,123641,1,124144,124153,1,124401,124410,1,125127,125135,1,125264,125273,1,126065,126123,1,126125,126127,1,126129,126132,1,126209,126253,1,126255,126269,1,127232,127244,1,130032,130041,1]));static Nd=new l7(new Uint32Array([48,57,1,1632,1641,1,1776,1785,1,1984,1993,1,2406,2415,1,2534,2543,1,2662,2671,1,2790,2799,1,2918,2927,1,3046,3055,1,3174,3183,1,3302,3311,1,3430,3439,1,3558,3567,1,3664,3673,1,3792,3801,1,3872,3881,1,4160,4169,1,4240,4249,1,6112,6121,1,6160,6169,1,6470,6479,1,6608,6617,1,6784,6793,1,6800,6809,1,6992,7001,1,7088,7097,1,7232,7241,1,7248,7257,1,42528,42537,1,43216,43225,1,43264,43273,1,43472,43481,1,43504,43513,1,43600,43609,1,44016,44025,1,65296,65305,1,66720,66729,1,68912,68921,1,68928,68937,1,69734,69743,1,69872,69881,1,69942,69951,1,70096,70105,1,70384,70393,1,70736,70745,1,70864,70873,1,71248,71257,1,71360,71369,1,71376,71395,1,71472,71481,1,71904,71913,1,72016,72025,1,72688,72697,1,72784,72793,1,73040,73049,1,73120,73129,1,73552,73561,1,90416,90425,1,92768,92777,1,92864,92873,1,93008,93017,1,93552,93561,1,118e3,118009,1,120782,120831,1,123200,123209,1,123632,123641,1,124144,124153,1,124401,124410,1,125264,125273,1,130032,130041,1]));static Nl=new l7(new Uint32Array([5870,5872,1,8544,8578,1,8581,8584,1,12295,12321,26,12322,12329,1,12344,12346,1,42726,42735,1,65856,65908,1,66369,66378,9,66513,66517,1,74752,74862,1]));static No=new l7(new Uint32Array([178,179,1,185,188,3,189,190,1,2548,2553,1,2930,2935,1,3056,3058,1,3192,3198,1,3416,3422,1,3440,3448,1,3882,3891,1,4969,4988,1,6128,6137,1,6618,8304,1686,8308,8313,1,8320,8329,1,8528,8543,1,8585,9312,727,9313,9371,1,9450,9471,1,10102,10131,1,11517,12690,1173,12691,12693,1,12832,12841,1,12872,12879,1,12881,12895,1,12928,12937,1,12977,12991,1,43056,43061,1,65799,65843,1,65909,65912,1,65930,65931,1,66273,66299,1,66336,66339,1,67672,67679,1,67705,67711,1,67751,67759,1,67835,67839,1,67862,67867,1,68028,68029,1,68032,68047,1,68050,68095,1,68160,68168,1,68221,68222,1,68253,68255,1,68331,68335,1,68440,68447,1,68472,68479,1,68521,68527,1,68858,68863,1,69216,69246,1,69405,69414,1,69457,69460,1,69573,69579,1,69714,69733,1,70113,70132,1,71482,71483,1,71914,71922,1,72794,72812,1,73664,73684,1,93019,93025,1,93824,93846,1,119488,119507,1,119520,119539,1,119648,119672,1,125127,125135,1,126065,126123,1,126125,126127,1,126129,126132,1,126209,126253,1,126255,126269,1,127232,127244,1]));static P=new l7(new Uint32Array([33,35,1,37,42,1,44,47,1,58,59,1,63,64,1,91,93,1,95,123,28,125,161,36,167,171,4,182,183,1,187,191,4,894,903,9,1370,1375,1,1417,1418,1,1470,1472,2,1475,1478,3,1523,1524,1,1545,1546,1,1548,1549,1,1563,1565,2,1566,1567,1,1642,1645,1,1748,1792,44,1793,1805,1,2039,2041,1,2096,2110,1,2142,2404,262,2405,2416,11,2557,2678,121,2800,3191,391,3204,3572,368,3663,3674,11,3675,3844,169,3845,3858,1,3860,3898,38,3899,3901,1,3973,4048,75,4049,4052,1,4057,4058,1,4170,4175,1,4347,4960,613,4961,4968,1,5120,5742,622,5787,5788,1,5867,5869,1,5941,5942,1,6100,6102,1,6104,6106,1,6144,6154,1,6468,6469,1,6686,6687,1,6816,6822,1,6824,6829,1,6990,6991,1,7002,7008,1,7037,7039,1,7164,7167,1,7227,7231,1,7294,7295,1,7360,7367,1,7379,8208,829,8209,8231,1,8240,8259,1,8261,8273,1,8275,8286,1,8317,8318,1,8333,8334,1,8968,8971,1,9001,9002,1,10088,10101,1,10181,10182,1,10214,10223,1,10627,10648,1,10712,10715,1,10748,10749,1,11513,11516,1,11518,11519,1,11632,11776,144,11777,11822,1,11824,11855,1,11858,11869,1,12289,12291,1,12296,12305,1,12308,12319,1,12336,12349,13,12448,12539,91,42238,42239,1,42509,42511,1,42611,42622,11,42738,42743,1,43124,43127,1,43214,43215,1,43256,43258,1,43260,43310,50,43311,43359,48,43457,43469,1,43486,43487,1,43612,43615,1,43742,43743,1,43760,43761,1,44011,64830,20819,64831,65040,209,65041,65049,1,65072,65106,1,65108,65121,1,65123,65128,5,65130,65131,1,65281,65283,1,65285,65290,1,65292,65295,1,65306,65307,1,65311,65312,1,65339,65341,1,65343,65371,28,65373,65375,2,65376,65381,1,65792,65794,1,66463,66512,49,66927,67671,744,67871,67903,32,68176,68184,1,68223,68336,113,68337,68342,1,68409,68415,1,68505,68508,1,68974,69293,319,69461,69465,1,69510,69513,1,69703,69709,1,69819,69820,1,69822,69825,1,69952,69955,1,70004,70005,1,70085,70088,1,70093,70107,14,70109,70111,1,70200,70205,1,70313,70612,299,70613,70615,2,70616,70731,115,70732,70735,1,70746,70747,1,70749,70854,105,71105,71127,1,71233,71235,1,71264,71276,1,71353,71484,131,71485,71486,1,71739,72004,265,72005,72006,1,72162,72255,93,72256,72262,1,72346,72348,1,72350,72354,1,72448,72457,1,72673,72769,96,72770,72773,1,72816,72817,1,73463,73464,1,73539,73551,1,73727,74864,1137,74865,74868,1,77809,77810,1,92782,92783,1,92917,92983,66,92984,92987,1,92996,93549,553,93550,93551,1,93847,93850,1,94178,113823,19645,121479,121483,1,124415,125278,863,125279,125279,1]));static Pc=new l7(new Uint32Array([95,8255,8160,8256,8276,20,65075,65076,1,65101,65103,1,65343,65343,1]));static Pd=new l7(new Uint32Array([45,1418,1373,1470,5120,3650,6150,8208,2058,8209,8213,1,11799,11802,3,11834,11835,1,11840,11869,29,12316,12336,20,12448,65073,52625,65074,65112,38,65123,65293,170,68974,69293,319]));static Pe=new l7(new Uint32Array([41,93,52,125,3899,3774,3901,5788,1887,8262,8318,56,8334,8969,635,8971,9002,31,10089,10101,2,10182,10215,33,10217,10223,2,10628,10648,2,10713,10715,2,10749,11811,1062,11813,11817,2,11862,11868,2,12297,12305,2,12309,12315,2,12318,12319,1,64830,65048,218,65078,65092,2,65096,65114,18,65116,65118,2,65289,65341,52,65373,65379,3]));static Pf=new l7(new Uint32Array([187,8217,8030,8221,8250,29,11779,11781,2,11786,11789,3,11805,11809,4]));static Pi=new l7(new Uint32Array([171,8216,8045,8219,8220,1,8223,8249,26,11778,11780,2,11785,11788,3,11804,11808,4]));static Po=new l7(new Uint32Array([33,35,1,37,39,1,42,46,2,47,58,11,59,63,4,64,92,28,161,167,6,182,183,1,191,894,703,903,1370,467,1371,1375,1,1417,1472,55,1475,1478,3,1523,1524,1,1545,1546,1,1548,1549,1,1563,1565,2,1566,1567,1,1642,1645,1,1748,1792,44,1793,1805,1,2039,2041,1,2096,2110,1,2142,2404,262,2405,2416,11,2557,2678,121,2800,3191,391,3204,3572,368,3663,3674,11,3675,3844,169,3845,3858,1,3860,3973,113,4048,4052,1,4057,4058,1,4170,4175,1,4347,4960,613,4961,4968,1,5742,5867,125,5868,5869,1,5941,5942,1,6100,6102,1,6104,6106,1,6144,6149,1,6151,6154,1,6468,6469,1,6686,6687,1,6816,6822,1,6824,6829,1,6990,6991,1,7002,7008,1,7037,7039,1,7164,7167,1,7227,7231,1,7294,7295,1,7360,7367,1,7379,8214,835,8215,8224,9,8225,8231,1,8240,8248,1,8251,8254,1,8257,8259,1,8263,8273,1,8275,8277,2,8278,8286,1,11513,11516,1,11518,11519,1,11632,11776,144,11777,11782,5,11783,11784,1,11787,11790,3,11791,11798,1,11800,11801,1,11803,11806,3,11807,11818,11,11819,11822,1,11824,11833,1,11836,11839,1,11841,11843,2,11844,11855,1,11858,11860,1,12289,12291,1,12349,12539,190,42238,42239,1,42509,42511,1,42611,42622,11,42738,42743,1,43124,43127,1,43214,43215,1,43256,43258,1,43260,43310,50,43311,43359,48,43457,43469,1,43486,43487,1,43612,43615,1,43742,43743,1,43760,43761,1,44011,65040,21029,65041,65046,1,65049,65072,23,65093,65094,1,65097,65100,1,65104,65106,1,65108,65111,1,65119,65121,1,65128,65130,2,65131,65281,150,65282,65283,1,65285,65287,1,65290,65294,2,65295,65306,11,65307,65311,4,65312,65340,28,65377,65380,3,65381,65792,411,65793,65794,1,66463,66512,49,66927,67671,744,67871,67903,32,68176,68184,1,68223,68336,113,68337,68342,1,68409,68415,1,68505,68508,1,69461,69465,1,69510,69513,1,69703,69709,1,69819,69820,1,69822,69825,1,69952,69955,1,70004,70005,1,70085,70088,1,70093,70107,14,70109,70111,1,70200,70205,1,70313,70612,299,70613,70615,2,70616,70731,115,70732,70735,1,70746,70747,1,70749,70854,105,71105,71127,1,71233,71235,1,71264,71276,1,71353,71484,131,71485,71486,1,71739,72004,265,72005,72006,1,72162,72255,93,72256,72262,1,72346,72348,1,72350,72354,1,72448,72457,1,72673,72769,96,72770,72773,1,72816,72817,1,73463,73464,1,73539,73551,1,73727,74864,1137,74865,74868,1,77809,77810,1,92782,92783,1,92917,92983,66,92984,92987,1,92996,93549,553,93550,93551,1,93847,93850,1,94178,113823,19645,121479,121483,1,124415,125278,863,125279,125279,1]));static Ps=new l7(new Uint32Array([40,91,51,123,3898,3775,3900,5787,1887,8218,8222,4,8261,8317,56,8333,8968,635,8970,9001,31,10088,10100,2,10181,10214,33,10216,10222,2,10627,10647,2,10712,10714,2,10748,11810,1062,11812,11816,2,11842,11861,19,11863,11867,2,12296,12304,2,12308,12314,2,12317,64831,52514,65047,65077,30,65079,65091,2,65095,65113,18,65115,65117,2,65288,65339,51,65371,65375,4,65378,65378,1]));static S=new l7(new Uint32Array([36,43,7,60,62,1,94,96,2,124,126,2,162,166,1,168,169,1,172,174,2,175,177,1,180,184,4,215,247,32,706,709,1,722,735,1,741,747,1,749,751,2,752,767,1,885,900,15,901,1014,113,1154,1421,267,1422,1423,1,1542,1544,1,1547,1550,3,1551,1758,207,1769,1789,20,1790,2038,248,2046,2047,1,2184,2546,362,2547,2554,7,2555,2801,246,2928,3059,131,3060,3066,1,3199,3407,208,3449,3647,198,3841,3843,1,3859,3861,2,3862,3863,1,3866,3871,1,3892,3896,2,4030,4037,1,4039,4044,1,4046,4047,1,4053,4056,1,4254,4255,1,5008,5017,1,5741,6107,366,6464,6622,158,6623,6655,1,7009,7018,1,7028,7036,1,8125,8127,2,8128,8129,1,8141,8143,1,8157,8159,1,8173,8175,1,8189,8190,1,8260,8274,14,8314,8316,1,8330,8332,1,8352,8384,1,8448,8449,1,8451,8454,1,8456,8457,1,8468,8470,2,8471,8472,1,8478,8483,1,8485,8489,2,8494,8506,12,8507,8512,5,8513,8516,1,8522,8525,1,8527,8586,59,8587,8592,5,8593,8967,1,8972,9e3,1,9003,9257,1,9280,9290,1,9372,9449,1,9472,10087,1,10132,10180,1,10183,10213,1,10224,10626,1,10649,10711,1,10716,10747,1,10750,11123,1,11126,11157,1,11159,11263,1,11493,11498,1,11856,11857,1,11904,11929,1,11931,12019,1,12032,12245,1,12272,12287,1,12292,12306,14,12307,12320,13,12342,12343,1,12350,12351,1,12443,12444,1,12688,12689,1,12694,12703,1,12736,12773,1,12783,12800,17,12801,12830,1,12842,12871,1,12880,12896,16,12897,12927,1,12938,12976,1,12992,13311,1,19904,19967,1,42128,42182,1,42752,42774,1,42784,42785,1,42889,42890,1,43048,43051,1,43062,43065,1,43639,43641,1,43867,43882,15,43883,64297,20414,64434,64450,1,64832,64847,1,64975,65020,45,65021,65023,1,65122,65124,2,65125,65126,1,65129,65284,155,65291,65308,17,65309,65310,1,65342,65344,2,65372,65374,2,65504,65510,1,65512,65518,1,65532,65533,1,65847,65855,1,65913,65929,1,65932,65934,1,65936,65948,1,65952,66e3,48,66001,66044,1,67703,67704,1,68296,69006,710,69007,71487,2480,73685,73713,1,92988,92991,1,92997,113820,20823,117760,117999,1,118016,118451,1,118608,118723,1,118784,119029,1,119040,119078,1,119081,119140,1,119146,119148,1,119171,119172,1,119180,119209,1,119214,119274,1,119296,119361,1,119365,119552,187,119553,119638,1,120513,120539,26,120571,120597,26,120629,120655,26,120687,120713,26,120745,120771,26,120832,121343,1,121399,121402,1,121453,121460,1,121462,121475,1,121477,121478,1,123215,123647,432,126124,126128,4,126254,126704,450,126705,126976,271,126977,127019,1,127024,127123,1,127136,127150,1,127153,127167,1,127169,127183,1,127185,127221,1,127245,127405,1,127462,127490,1,127504,127547,1,127552,127560,1,127568,127569,1,127584,127589,1,127744,128727,1,128732,128748,1,128752,128764,1,128768,128886,1,128891,128985,1,128992,129003,1,129008,129024,16,129025,129035,1,129040,129095,1,129104,129113,1,129120,129159,1,129168,129197,1,129200,129211,1,129216,129217,1,129280,129619,1,129632,129645,1,129648,129660,1,129664,129673,1,129679,129734,1,129742,129756,1,129759,129769,1,129776,129784,1,129792,129938,1,129940,130031,1]));static Sc=new l7(new Uint32Array([36,162,126,163,165,1,1423,1547,124,2046,2047,1,2546,2547,1,2555,2801,246,3065,3647,582,6107,8352,2245,8353,8384,1,43064,65020,21956,65129,65284,155,65504,65505,1,65509,65510,1,73693,73696,1,123647,126128,2481]));static Sk=new l7(new Uint32Array([94,96,2,168,175,7,180,184,4,706,709,1,722,735,1,741,747,1,749,751,2,752,767,1,885,900,15,901,2184,1283,8125,8127,2,8128,8129,1,8141,8143,1,8157,8159,1,8173,8175,1,8189,8190,1,12443,12444,1,42752,42774,1,42784,42785,1,42889,42890,1,43867,43882,15,43883,64434,20551,64435,64450,1,65342,65344,2,65507,127995,62488,127996,127999,1]));static Sm=new l7(new Uint32Array([43,60,17,61,62,1,124,126,2,172,177,5,215,247,32,1014,1542,528,1543,1544,1,8260,8274,14,8314,8316,1,8330,8332,1,8472,8512,40,8513,8516,1,8523,8592,69,8593,8596,1,8602,8603,1,8608,8614,3,8622,8654,32,8655,8658,3,8660,8692,32,8693,8959,1,8992,8993,1,9084,9115,31,9116,9139,1,9180,9185,1,9655,9665,10,9720,9727,1,9839,10176,337,10177,10180,1,10183,10213,1,10224,10239,1,10496,10626,1,10649,10711,1,10716,10747,1,10750,11007,1,11056,11076,1,11079,11084,1,64297,65122,825,65124,65126,1,65291,65308,17,65309,65310,1,65372,65374,2,65506,65513,7,65514,65516,1,69006,69007,1,120513,120539,26,120571,120597,26,120629,120655,26,120687,120713,26,120745,120771,26,126704,126705,1]));static So=new l7(new Uint32Array([166,169,3,174,176,2,1154,1421,267,1422,1550,128,1551,1758,207,1769,1789,20,1790,2038,248,2554,2928,374,3059,3064,1,3066,3199,133,3407,3449,42,3841,3843,1,3859,3861,2,3862,3863,1,3866,3871,1,3892,3896,2,4030,4037,1,4039,4044,1,4046,4047,1,4053,4056,1,4254,4255,1,5008,5017,1,5741,6464,723,6622,6655,1,7009,7018,1,7028,7036,1,8448,8449,1,8451,8454,1,8456,8457,1,8468,8470,2,8471,8478,7,8479,8483,1,8485,8489,2,8494,8506,12,8507,8522,15,8524,8525,1,8527,8586,59,8587,8597,10,8598,8601,1,8604,8607,1,8609,8610,1,8612,8613,1,8615,8621,1,8623,8653,1,8656,8657,1,8659,8661,2,8662,8691,1,8960,8967,1,8972,8991,1,8994,9e3,1,9003,9083,1,9085,9114,1,9140,9179,1,9186,9257,1,9280,9290,1,9372,9449,1,9472,9654,1,9656,9664,1,9666,9719,1,9728,9838,1,9840,10087,1,10132,10175,1,10240,10495,1,11008,11055,1,11077,11078,1,11085,11123,1,11126,11157,1,11159,11263,1,11493,11498,1,11856,11857,1,11904,11929,1,11931,12019,1,12032,12245,1,12272,12287,1,12292,12306,14,12307,12320,13,12342,12343,1,12350,12351,1,12688,12689,1,12694,12703,1,12736,12773,1,12783,12800,17,12801,12830,1,12842,12871,1,12880,12896,16,12897,12927,1,12938,12976,1,12992,13311,1,19904,19967,1,42128,42182,1,43048,43051,1,43062,43063,1,43065,43639,574,43640,43641,1,64832,64847,1,64975,65021,46,65022,65023,1,65508,65512,4,65517,65518,1,65532,65533,1,65847,65855,1,65913,65929,1,65932,65934,1,65936,65948,1,65952,66e3,48,66001,66044,1,67703,67704,1,68296,71487,3191,73685,73692,1,73697,73713,1,92988,92991,1,92997,113820,20823,117760,117999,1,118016,118451,1,118608,118723,1,118784,119029,1,119040,119078,1,119081,119140,1,119146,119148,1,119171,119172,1,119180,119209,1,119214,119274,1,119296,119361,1,119365,119552,187,119553,119638,1,120832,121343,1,121399,121402,1,121453,121460,1,121462,121475,1,121477,121478,1,123215,126124,2909,126254,126976,722,126977,127019,1,127024,127123,1,127136,127150,1,127153,127167,1,127169,127183,1,127185,127221,1,127245,127405,1,127462,127490,1,127504,127547,1,127552,127560,1,127568,127569,1,127584,127589,1,127744,127994,1,128e3,128727,1,128732,128748,1,128752,128764,1,128768,128886,1,128891,128985,1,128992,129003,1,129008,129024,16,129025,129035,1,129040,129095,1,129104,129113,1,129120,129159,1,129168,129197,1,129200,129211,1,129216,129217,1,129280,129619,1,129632,129645,1,129648,129660,1,129664,129673,1,129679,129734,1,129742,129756,1,129759,129769,1,129776,129784,1,129792,129938,1,129940,130031,1]));static Z=new l7(new Uint32Array([32,160,128,5760,8192,2432,8193,8202,1,8232,8233,1,8239,8287,48,12288,12288,1]));static Zl=new l7(new Uint32Array([8232,8232,1]));static Zp=new l7(new Uint32Array([8233,8233,1]));static Zs=new l7(new Uint32Array([32,160,128,5760,8192,2432,8193,8202,1,8239,8287,48,12288,12288,1]));static Adlam=new l7(new Uint32Array([125184,125259,1,125264,125273,1,125278,125279,1]));static Ahom=new l7(new Uint32Array([71424,71450,1,71453,71467,1,71472,71494,1]));static Anatolian_Hieroglyphs=new l7(new Uint32Array([82944,83526,1]));static Arabic=new l7(new Uint32Array([1536,1540,1,1542,1547,1,1549,1562,1,1564,1566,1,1568,1599,1,1601,1610,1,1622,1647,1,1649,1756,1,1758,1791,1,1872,1919,1,2160,2190,1,2192,2193,1,2199,2273,1,2275,2303,1,64336,64450,1,64467,64829,1,64832,64911,1,64914,64967,1,64975,65008,33,65009,65023,1,65136,65140,1,65142,65276,1,69216,69246,1,69314,69316,1,69372,69375,1,126464,126467,1,126469,126495,1,126497,126498,1,126500,126503,3,126505,126514,1,126516,126519,1,126521,126523,2,126530,126535,5,126537,126541,2,126542,126543,1,126545,126546,1,126548,126551,3,126553,126561,2,126562,126564,2,126567,126570,1,126572,126578,1,126580,126583,1,126585,126588,1,126590,126592,2,126593,126601,1,126603,126619,1,126625,126627,1,126629,126633,1,126635,126651,1,126704,126705,1]));static Armenian=new l7(new Uint32Array([1329,1366,1,1369,1418,1,1421,1423,1,64275,64279,1]));static Avestan=new l7(new Uint32Array([68352,68405,1,68409,68415,1]));static Balinese=new l7(new Uint32Array([6912,6988,1,6990,7039,1]));static Bamum=new l7(new Uint32Array([42656,42743,1,92160,92728,1]));static Bassa_Vah=new l7(new Uint32Array([92880,92909,1,92912,92917,1]));static Batak=new l7(new Uint32Array([7104,7155,1,7164,7167,1]));static Bengali=new l7(new Uint32Array([2432,2435,1,2437,2444,1,2447,2448,1,2451,2472,1,2474,2480,1,2482,2486,4,2487,2489,1,2492,2500,1,2503,2504,1,2507,2510,1,2519,2524,5,2525,2527,2,2528,2531,1,2534,2558,1]));static Bhaiksuki=new l7(new Uint32Array([72704,72712,1,72714,72758,1,72760,72773,1,72784,72812,1]));static Bopomofo=new l7(new Uint32Array([746,747,1,12549,12591,1,12704,12735,1]));static Brahmi=new l7(new Uint32Array([69632,69709,1,69714,69749,1,69759,69759,1]));static Braille=new l7(new Uint32Array([10240,10495,1]));static Buginese=new l7(new Uint32Array([6656,6683,1,6686,6687,1]));static Buhid=new l7(new Uint32Array([5952,5971,1]));static Canadian_Aboriginal=new l7(new Uint32Array([5120,5759,1,6320,6389,1,72368,72383,1]));static Carian=new l7(new Uint32Array([66208,66256,1]));static Caucasian_Albanian=new l7(new Uint32Array([66864,66915,1,66927,66927,1]));static Chakma=new l7(new Uint32Array([69888,69940,1,69942,69959,1]));static Cham=new l7(new Uint32Array([43520,43574,1,43584,43597,1,43600,43609,1,43612,43615,1]));static Cherokee=new l7(new Uint32Array([5024,5109,1,5112,5117,1,43888,43967,1]));static Chorasmian=new l7(new Uint32Array([69552,69579,1]));static Common=new l7(new Uint32Array([0,64,1,91,96,1,123,169,1,171,185,1,187,191,1,215,247,32,697,735,1,741,745,1,748,767,1,884,894,10,901,903,2,1541,1548,7,1563,1567,4,1600,1757,157,2274,2404,130,2405,3647,1242,4053,4056,1,4347,5867,1520,5868,5869,1,5941,5942,1,6146,6147,1,6149,7379,1230,7393,7401,8,7402,7404,1,7406,7411,1,7413,7415,1,7418,8192,774,8193,8203,1,8206,8292,1,8294,8304,1,8308,8318,1,8320,8334,1,8352,8384,1,8448,8485,1,8487,8489,1,8492,8497,1,8499,8525,1,8527,8543,1,8585,8587,1,8592,9257,1,9280,9290,1,9312,10239,1,10496,11123,1,11126,11157,1,11159,11263,1,11776,11869,1,12272,12292,1,12294,12296,2,12297,12320,1,12336,12343,1,12348,12351,1,12443,12444,1,12448,12539,91,12540,12688,148,12689,12703,1,12736,12773,1,12783,12832,49,12833,12895,1,12927,13007,1,13055,13144,89,13145,13311,1,19904,19967,1,42752,42785,1,42888,42890,1,43056,43065,1,43310,43471,161,43867,43882,15,43883,64830,20947,64831,65040,209,65041,65049,1,65072,65106,1,65108,65126,1,65128,65131,1,65279,65281,2,65282,65312,1,65339,65344,1,65371,65381,1,65392,65438,46,65439,65504,65,65505,65510,1,65512,65518,1,65529,65533,1,65792,65794,1,65799,65843,1,65847,65855,1,65936,65948,1,66e3,66044,1,66273,66299,1,113824,113827,1,117760,118009,1,118016,118451,1,118608,118723,1,118784,119029,1,119040,119078,1,119081,119142,1,119146,119162,1,119171,119172,1,119180,119209,1,119214,119274,1,119488,119507,1,119520,119539,1,119552,119638,1,119648,119672,1,119808,119892,1,119894,119964,1,119966,119967,1,119970,119973,3,119974,119977,3,119978,119980,1,119982,119993,1,119995,119997,2,119998,120003,1,120005,120069,1,120071,120074,1,120077,120084,1,120086,120092,1,120094,120121,1,120123,120126,1,120128,120132,1,120134,120138,4,120139,120144,1,120146,120485,1,120488,120779,1,120782,120831,1,126065,126132,1,126209,126269,1,126976,127019,1,127024,127123,1,127136,127150,1,127153,127167,1,127169,127183,1,127185,127221,1,127232,127405,1,127462,127487,1,127489,127490,1,127504,127547,1,127552,127560,1,127568,127569,1,127584,127589,1,127744,128727,1,128732,128748,1,128752,128764,1,128768,128886,1,128891,128985,1,128992,129003,1,129008,129024,16,129025,129035,1,129040,129095,1,129104,129113,1,129120,129159,1,129168,129197,1,129200,129211,1,129216,129217,1,129280,129619,1,129632,129645,1,129648,129660,1,129664,129673,1,129679,129734,1,129742,129756,1,129759,129769,1,129776,129784,1,129792,129938,1,129940,130041,1,917505,917536,31,917537,917631,1]));static foldCommon=new l7(new Uint32Array([924,956,32]));static Coptic=new l7(new Uint32Array([994,1007,1,11392,11507,1,11513,11519,1]));static Cuneiform=new l7(new Uint32Array([73728,74649,1,74752,74862,1,74864,74868,1,74880,75075,1]));static Cypriot=new l7(new Uint32Array([67584,67589,1,67592,67594,2,67595,67637,1,67639,67640,1,67644,67647,3]));static Cypro_Minoan=new l7(new Uint32Array([77712,77810,1]));static Cyrillic=new l7(new Uint32Array([1024,1156,1,1159,1327,1,7296,7306,1,7467,7544,77,11744,11775,1,42560,42655,1,65070,65071,1,122928,122989,1,123023,123023,1]));static Deseret=new l7(new Uint32Array([66560,66639,1]));static Devanagari=new l7(new Uint32Array([2304,2384,1,2389,2403,1,2406,2431,1,43232,43263,1,72448,72457,1]));static Dives_Akuru=new l7(new Uint32Array([71936,71942,1,71945,71948,3,71949,71955,1,71957,71958,1,71960,71989,1,71991,71992,1,71995,72006,1,72016,72025,1]));static Dogra=new l7(new Uint32Array([71680,71739,1]));static Duployan=new l7(new Uint32Array([113664,113770,1,113776,113788,1,113792,113800,1,113808,113817,1,113820,113823,1]));static Egyptian_Hieroglyphs=new l7(new Uint32Array([77824,78933,1,78944,82938,1]));static Elbasan=new l7(new Uint32Array([66816,66855,1]));static Elymaic=new l7(new Uint32Array([69600,69622,1]));static Ethiopic=new l7(new Uint32Array([4608,4680,1,4682,4685,1,4688,4694,1,4696,4698,2,4699,4701,1,4704,4744,1,4746,4749,1,4752,4784,1,4786,4789,1,4792,4798,1,4800,4802,2,4803,4805,1,4808,4822,1,4824,4880,1,4882,4885,1,4888,4954,1,4957,4988,1,4992,5017,1,11648,11670,1,11680,11686,1,11688,11694,1,11696,11702,1,11704,11710,1,11712,11718,1,11720,11726,1,11728,11734,1,11736,11742,1,43777,43782,1,43785,43790,1,43793,43798,1,43808,43814,1,43816,43822,1,124896,124902,1,124904,124907,1,124909,124910,1,124912,124926,1]));static Garay=new l7(new Uint32Array([68928,68965,1,68969,68997,1,69006,69007,1]));static Georgian=new l7(new Uint32Array([4256,4293,1,4295,4301,6,4304,4346,1,4348,4351,1,7312,7354,1,7357,7359,1,11520,11557,1,11559,11565,6]));static Glagolitic=new l7(new Uint32Array([11264,11359,1,122880,122886,1,122888,122904,1,122907,122913,1,122915,122916,1,122918,122922,1]));static Gothic=new l7(new Uint32Array([66352,66378,1]));static Grantha=new l7(new Uint32Array([70400,70403,1,70405,70412,1,70415,70416,1,70419,70440,1,70442,70448,1,70450,70451,1,70453,70457,1,70460,70468,1,70471,70472,1,70475,70477,1,70480,70487,7,70493,70499,1,70502,70508,1,70512,70516,1]));static Greek=new l7(new Uint32Array([880,883,1,885,887,1,890,893,1,895,900,5,902,904,2,905,906,1,908,910,2,911,929,1,931,993,1,1008,1023,1,7462,7466,1,7517,7521,1,7526,7530,1,7615,7936,321,7937,7957,1,7960,7965,1,7968,8005,1,8008,8013,1,8016,8023,1,8025,8031,2,8032,8061,1,8064,8116,1,8118,8132,1,8134,8147,1,8150,8155,1,8157,8175,1,8178,8180,1,8182,8190,1,8486,43877,35391,65856,65934,1,65952,119296,53344,119297,119365,1]));static foldGreek=new l7(new Uint32Array([181,837,656]));static Gujarati=new l7(new Uint32Array([2689,2691,1,2693,2701,1,2703,2705,1,2707,2728,1,2730,2736,1,2738,2739,1,2741,2745,1,2748,2757,1,2759,2761,1,2763,2765,1,2768,2784,16,2785,2787,1,2790,2801,1,2809,2815,1]));static Gunjala_Gondi=new l7(new Uint32Array([73056,73061,1,73063,73064,1,73066,73102,1,73104,73105,1,73107,73112,1,73120,73129,1]));static Gurmukhi=new l7(new Uint32Array([2561,2563,1,2565,2570,1,2575,2576,1,2579,2600,1,2602,2608,1,2610,2611,1,2613,2614,1,2616,2617,1,2620,2622,2,2623,2626,1,2631,2632,1,2635,2637,1,2641,2649,8,2650,2652,1,2654,2662,8,2663,2678,1]));static Gurung_Khema=new l7(new Uint32Array([90368,90425,1]));static Han=new l7(new Uint32Array([11904,11929,1,11931,12019,1,12032,12245,1,12293,12295,2,12321,12329,1,12344,12347,1,13312,19903,1,19968,40959,1,63744,64109,1,64112,64217,1,94178,94179,1,94192,94193,1,131072,173791,1,173824,177977,1,177984,178205,1,178208,183969,1,183984,191456,1,191472,192093,1,194560,195101,1,196608,201546,1,201552,205743,1]));static Hangul=new l7(new Uint32Array([4352,4607,1,12334,12335,1,12593,12686,1,12800,12830,1,12896,12926,1,43360,43388,1,44032,55203,1,55216,55238,1,55243,55291,1,65440,65470,1,65474,65479,1,65482,65487,1,65490,65495,1,65498,65500,1]));static Hanifi_Rohingya=new l7(new Uint32Array([68864,68903,1,68912,68921,1]));static Hanunoo=new l7(new Uint32Array([5920,5940,1]));static Hatran=new l7(new Uint32Array([67808,67826,1,67828,67829,1,67835,67839,1]));static Hebrew=new l7(new Uint32Array([1425,1479,1,1488,1514,1,1519,1524,1,64285,64310,1,64312,64316,1,64318,64320,2,64321,64323,2,64324,64326,2,64327,64335,1]));static Hiragana=new l7(new Uint32Array([12353,12438,1,12445,12447,1,110593,110879,1,110898,110928,30,110929,110930,1,127488,127488,1]));static Imperial_Aramaic=new l7(new Uint32Array([67648,67669,1,67671,67679,1]));static Inherited=new l7(new Uint32Array([768,879,1,1157,1158,1,1611,1621,1,1648,2385,737,2386,2388,1,6832,6862,1,7376,7378,1,7380,7392,1,7394,7400,1,7405,7412,7,7416,7417,1,7616,7679,1,8204,8205,1,8400,8432,1,12330,12333,1,12441,12442,1,65024,65039,1,65056,65069,1,66045,66272,227,70459,118528,48069,118529,118573,1,118576,118598,1,119143,119145,1,119163,119170,1,119173,119179,1,119210,119213,1,917760,917999,1]));static foldInherited=new l7(new Uint32Array([921,953,32,8126,8126,1]));static Inscriptional_Pahlavi=new l7(new Uint32Array([68448,68466,1,68472,68479,1]));static Inscriptional_Parthian=new l7(new Uint32Array([68416,68437,1,68440,68447,1]));static Javanese=new l7(new Uint32Array([43392,43469,1,43472,43481,1,43486,43487,1]));static Kaithi=new l7(new Uint32Array([69760,69826,1,69837,69837,1]));static Kannada=new l7(new Uint32Array([3200,3212,1,3214,3216,1,3218,3240,1,3242,3251,1,3253,3257,1,3260,3268,1,3270,3272,1,3274,3277,1,3285,3286,1,3293,3294,1,3296,3299,1,3302,3311,1,3313,3315,1]));static Katakana=new l7(new Uint32Array([12449,12538,1,12541,12543,1,12784,12799,1,13008,13054,1,13056,13143,1,65382,65391,1,65393,65437,1,110576,110579,1,110581,110587,1,110589,110590,1,110592,110880,288,110881,110882,1,110933,110948,15,110949,110951,1]));static Kawi=new l7(new Uint32Array([73472,73488,1,73490,73530,1,73534,73562,1]));static Kayah_Li=new l7(new Uint32Array([43264,43309,1,43311,43311,1]));static Kharoshthi=new l7(new Uint32Array([68096,68099,1,68101,68102,1,68108,68115,1,68117,68119,1,68121,68149,1,68152,68154,1,68159,68168,1,68176,68184,1]));static Khitan_Small_Script=new l7(new Uint32Array([94180,101120,6940,101121,101589,1,101631,101631,1]));static Khmer=new l7(new Uint32Array([6016,6109,1,6112,6121,1,6128,6137,1,6624,6655,1]));static Khojki=new l7(new Uint32Array([70144,70161,1,70163,70209,1]));static Khudawadi=new l7(new Uint32Array([70320,70378,1,70384,70393,1]));static Kirat_Rai=new l7(new Uint32Array([93504,93561,1]));static Lao=new l7(new Uint32Array([3713,3714,1,3716,3718,2,3719,3722,1,3724,3747,1,3749,3751,2,3752,3773,1,3776,3780,1,3782,3784,2,3785,3790,1,3792,3801,1,3804,3807,1]));static Latin=new l7(new Uint32Array([65,90,1,97,122,1,170,186,16,192,214,1,216,246,1,248,696,1,736,740,1,7424,7461,1,7468,7516,1,7522,7525,1,7531,7543,1,7545,7614,1,7680,7935,1,8305,8319,14,8336,8348,1,8490,8491,1,8498,8526,28,8544,8584,1,11360,11391,1,42786,42887,1,42891,42957,1,42960,42961,1,42963,42965,2,42966,42972,1,42994,43007,1,43824,43866,1,43868,43876,1,43878,43881,1,64256,64262,1,65313,65338,1,65345,65370,1,67456,67461,1,67463,67504,1,67506,67514,1,122624,122654,1,122661,122666,1]));static Lepcha=new l7(new Uint32Array([7168,7223,1,7227,7241,1,7245,7247,1]));static Limbu=new l7(new Uint32Array([6400,6430,1,6432,6443,1,6448,6459,1,6464,6468,4,6469,6479,1]));static Linear_A=new l7(new Uint32Array([67072,67382,1,67392,67413,1,67424,67431,1]));static Linear_B=new l7(new Uint32Array([65536,65547,1,65549,65574,1,65576,65594,1,65596,65597,1,65599,65613,1,65616,65629,1,65664,65786,1]));static Lisu=new l7(new Uint32Array([42192,42239,1,73648,73648,1]));static Lycian=new l7(new Uint32Array([66176,66204,1]));static Lydian=new l7(new Uint32Array([67872,67897,1,67903,67903,1]));static Mahajani=new l7(new Uint32Array([69968,70006,1]));static Makasar=new l7(new Uint32Array([73440,73464,1]));static Malayalam=new l7(new Uint32Array([3328,3340,1,3342,3344,1,3346,3396,1,3398,3400,1,3402,3407,1,3412,3427,1,3430,3455,1]));static Mandaic=new l7(new Uint32Array([2112,2139,1,2142,2142,1]));static Manichaean=new l7(new Uint32Array([68288,68326,1,68331,68342,1]));static Marchen=new l7(new Uint32Array([72816,72847,1,72850,72871,1,72873,72886,1]));static Masaram_Gondi=new l7(new Uint32Array([72960,72966,1,72968,72969,1,72971,73014,1,73018,73020,2,73021,73023,2,73024,73031,1,73040,73049,1]));static Medefaidrin=new l7(new Uint32Array([93760,93850,1]));static Meetei_Mayek=new l7(new Uint32Array([43744,43766,1,43968,44013,1,44016,44025,1]));static Mende_Kikakui=new l7(new Uint32Array([124928,125124,1,125127,125142,1]));static Meroitic_Cursive=new l7(new Uint32Array([68e3,68023,1,68028,68047,1,68050,68095,1]));static Meroitic_Hieroglyphs=new l7(new Uint32Array([67968,67999,1]));static Miao=new l7(new Uint32Array([93952,94026,1,94031,94087,1,94095,94111,1]));static Modi=new l7(new Uint32Array([71168,71236,1,71248,71257,1]));static Mongolian=new l7(new Uint32Array([6144,6145,1,6148,6150,2,6151,6169,1,6176,6264,1,6272,6314,1,71264,71276,1]));static Mro=new l7(new Uint32Array([92736,92766,1,92768,92777,1,92782,92783,1]));static Multani=new l7(new Uint32Array([70272,70278,1,70280,70282,2,70283,70285,1,70287,70301,1,70303,70313,1]));static Myanmar=new l7(new Uint32Array([4096,4255,1,43488,43518,1,43616,43647,1,71376,71395,1]));static Nabataean=new l7(new Uint32Array([67712,67742,1,67751,67759,1]));static Nag_Mundari=new l7(new Uint32Array([124112,124153,1]));static Nandinagari=new l7(new Uint32Array([72096,72103,1,72106,72151,1,72154,72164,1]));static New_Tai_Lue=new l7(new Uint32Array([6528,6571,1,6576,6601,1,6608,6618,1,6622,6623,1]));static Newa=new l7(new Uint32Array([70656,70747,1,70749,70753,1]));static Nko=new l7(new Uint32Array([1984,2042,1,2045,2047,1]));static Nushu=new l7(new Uint32Array([94177,110960,16783,110961,111355,1]));static Nyiakeng_Puachue_Hmong=new l7(new Uint32Array([123136,123180,1,123184,123197,1,123200,123209,1,123214,123215,1]));static Ogham=new l7(new Uint32Array([5760,5788,1]));static Ol_Chiki=new l7(new Uint32Array([7248,7295,1]));static Ol_Onal=new l7(new Uint32Array([124368,124410,1,124415,124415,1]));static Old_Hungarian=new l7(new Uint32Array([68736,68786,1,68800,68850,1,68858,68863,1]));static Old_Italic=new l7(new Uint32Array([66304,66339,1,66349,66351,1]));static Old_North_Arabian=new l7(new Uint32Array([68224,68255,1]));static Old_Permic=new l7(new Uint32Array([66384,66426,1]));static Old_Persian=new l7(new Uint32Array([66464,66499,1,66504,66517,1]));static Old_Sogdian=new l7(new Uint32Array([69376,69415,1]));static Old_South_Arabian=new l7(new Uint32Array([68192,68223,1]));static Old_Turkic=new l7(new Uint32Array([68608,68680,1]));static Old_Uyghur=new l7(new Uint32Array([69488,69513,1]));static Oriya=new l7(new Uint32Array([2817,2819,1,2821,2828,1,2831,2832,1,2835,2856,1,2858,2864,1,2866,2867,1,2869,2873,1,2876,2884,1,2887,2888,1,2891,2893,1,2901,2903,1,2908,2909,1,2911,2915,1,2918,2935,1]));static Osage=new l7(new Uint32Array([66736,66771,1,66776,66811,1]));static Osmanya=new l7(new Uint32Array([66688,66717,1,66720,66729,1]));static Pahawh_Hmong=new l7(new Uint32Array([92928,92997,1,93008,93017,1,93019,93025,1,93027,93047,1,93053,93071,1]));static Palmyrene=new l7(new Uint32Array([67680,67711,1]));static Pau_Cin_Hau=new l7(new Uint32Array([72384,72440,1]));static Phags_Pa=new l7(new Uint32Array([43072,43127,1]));static Phoenician=new l7(new Uint32Array([67840,67867,1,67871,67871,1]));static Psalter_Pahlavi=new l7(new Uint32Array([68480,68497,1,68505,68508,1,68521,68527,1]));static Rejang=new l7(new Uint32Array([43312,43347,1,43359,43359,1]));static Runic=new l7(new Uint32Array([5792,5866,1,5870,5880,1]));static Samaritan=new l7(new Uint32Array([2048,2093,1,2096,2110,1]));static Saurashtra=new l7(new Uint32Array([43136,43205,1,43214,43225,1]));static Sharada=new l7(new Uint32Array([70016,70111,1]));static Shavian=new l7(new Uint32Array([66640,66687,1]));static Siddham=new l7(new Uint32Array([71040,71093,1,71096,71133,1]));static SignWriting=new l7(new Uint32Array([120832,121483,1,121499,121503,1,121505,121519,1]));static Sinhala=new l7(new Uint32Array([3457,3459,1,3461,3478,1,3482,3505,1,3507,3515,1,3517,3520,3,3521,3526,1,3530,3535,5,3536,3540,1,3542,3544,2,3545,3551,1,3558,3567,1,3570,3572,1,70113,70132,1]));static Sogdian=new l7(new Uint32Array([69424,69465,1]));static Sora_Sompeng=new l7(new Uint32Array([69840,69864,1,69872,69881,1]));static Soyombo=new l7(new Uint32Array([72272,72354,1]));static Sundanese=new l7(new Uint32Array([7040,7103,1,7360,7367,1]));static Sunuwar=new l7(new Uint32Array([72640,72673,1,72688,72697,1]));static Syloti_Nagri=new l7(new Uint32Array([43008,43052,1]));static Syriac=new l7(new Uint32Array([1792,1805,1,1807,1866,1,1869,1871,1,2144,2154,1]));static Tagalog=new l7(new Uint32Array([5888,5909,1,5919,5919,1]));static Tagbanwa=new l7(new Uint32Array([5984,5996,1,5998,6e3,1,6002,6003,1]));static Tai_Le=new l7(new Uint32Array([6480,6509,1,6512,6516,1]));static Tai_Tham=new l7(new Uint32Array([6688,6750,1,6752,6780,1,6783,6793,1,6800,6809,1,6816,6829,1]));static Tai_Viet=new l7(new Uint32Array([43648,43714,1,43739,43743,1]));static Takri=new l7(new Uint32Array([71296,71353,1,71360,71369,1]));static Tamil=new l7(new Uint32Array([2946,2947,1,2949,2954,1,2958,2960,1,2962,2965,1,2969,2970,1,2972,2974,2,2975,2979,4,2980,2984,4,2985,2986,1,2990,3001,1,3006,3010,1,3014,3016,1,3018,3021,1,3024,3031,7,3046,3066,1,73664,73713,1,73727,73727,1]));static Tangsa=new l7(new Uint32Array([92784,92862,1,92864,92873,1]));static Tangut=new l7(new Uint32Array([94176,94208,32,94209,100343,1,100352,101119,1,101632,101640,1]));static Telugu=new l7(new Uint32Array([3072,3084,1,3086,3088,1,3090,3112,1,3114,3129,1,3132,3140,1,3142,3144,1,3146,3149,1,3157,3158,1,3160,3162,1,3165,3168,3,3169,3171,1,3174,3183,1,3191,3199,1]));static Thaana=new l7(new Uint32Array([1920,1969,1]));static Thai=new l7(new Uint32Array([3585,3642,1,3648,3675,1]));static Tibetan=new l7(new Uint32Array([3840,3911,1,3913,3948,1,3953,3991,1,3993,4028,1,4030,4044,1,4046,4052,1,4057,4058,1]));static Tifinagh=new l7(new Uint32Array([11568,11623,1,11631,11632,1,11647,11647,1]));static Tirhuta=new l7(new Uint32Array([70784,70855,1,70864,70873,1]));static Todhri=new l7(new Uint32Array([67008,67059,1]));static Toto=new l7(new Uint32Array([123536,123566,1]));static Tulu_Tigalari=new l7(new Uint32Array([70528,70537,1,70539,70542,3,70544,70581,1,70583,70592,1,70594,70597,3,70599,70602,1,70604,70613,1,70615,70616,1,70625,70626,1]));static Ugaritic=new l7(new Uint32Array([66432,66461,1,66463,66463,1]));static Vai=new l7(new Uint32Array([42240,42539,1]));static Vithkuqi=new l7(new Uint32Array([66928,66938,1,66940,66954,1,66956,66962,1,66964,66965,1,66967,66977,1,66979,66993,1,66995,67001,1,67003,67004,1]));static Wancho=new l7(new Uint32Array([123584,123641,1,123647,123647,1]));static Warang_Citi=new l7(new Uint32Array([71840,71922,1,71935,71935,1]));static Yezidi=new l7(new Uint32Array([69248,69289,1,69291,69293,1,69296,69297,1]));static Yi=new l7(new Uint32Array([40960,42124,1,42128,42182,1]));static Zanabazar_Square=new l7(new Uint32Array([72192,72263,1]));static CATEGORIES=new Map([["C",i3.C],["Cc",i3.Cc],["Cf",i3.Cf],["Co",i3.Co],["Cs",i3.Cs],["L",i3.L],["Ll",i3.Ll],["Lm",i3.Lm],["Lo",i3.Lo],["Lt",i3.Lt],["Lu",i3.Lu],["M",i3.M],["Mc",i3.Mc],["Me",i3.Me],["Mn",i3.Mn],["N",i3.N],["Nd",i3.Nd],["Nl",i3.Nl],["No",i3.No],["P",i3.P],["Pc",i3.Pc],["Pd",i3.Pd],["Pe",i3.Pe],["Pf",i3.Pf],["Pi",i3.Pi],["Po",i3.Po],["Ps",i3.Ps],["S",i3.S],["Sc",i3.Sc],["Sk",i3.Sk],["Sm",i3.Sm],["So",i3.So],["Z",i3.Z],["Zl",i3.Zl],["Zp",i3.Zp],["Zs",i3.Zs]]);static SCRIPTS=new Map([["Adlam",i3.Adlam],["Ahom",i3.Ahom],["Anatolian_Hieroglyphs",i3.Anatolian_Hieroglyphs],["Arabic",i3.Arabic],["Armenian",i3.Armenian],["Avestan",i3.Avestan],["Balinese",i3.Balinese],["Bamum",i3.Bamum],["Bassa_Vah",i3.Bassa_Vah],["Batak",i3.Batak],["Bengali",i3.Bengali],["Bhaiksuki",i3.Bhaiksuki],["Bopomofo",i3.Bopomofo],["Brahmi",i3.Brahmi],["Braille",i3.Braille],["Buginese",i3.Buginese],["Buhid",i3.Buhid],["Canadian_Aboriginal",i3.Canadian_Aboriginal],["Carian",i3.Carian],["Caucasian_Albanian",i3.Caucasian_Albanian],["Chakma",i3.Chakma],["Cham",i3.Cham],["Cherokee",i3.Cherokee],["Chorasmian",i3.Chorasmian],["Common",i3.Common],["Coptic",i3.Coptic],["Cuneiform",i3.Cuneiform],["Cypriot",i3.Cypriot],["Cypro_Minoan",i3.Cypro_Minoan],["Cyrillic",i3.Cyrillic],["Deseret",i3.Deseret],["Devanagari",i3.Devanagari],["Dives_Akuru",i3.Dives_Akuru],["Dogra",i3.Dogra],["Duployan",i3.Duployan],["Egyptian_Hieroglyphs",i3.Egyptian_Hieroglyphs],["Elbasan",i3.Elbasan],["Elymaic",i3.Elymaic],["Ethiopic",i3.Ethiopic],["Garay",i3.Garay],["Georgian",i3.Georgian],["Glagolitic",i3.Glagolitic],["Gothic",i3.Gothic],["Grantha",i3.Grantha],["Greek",i3.Greek],["Gujarati",i3.Gujarati],["Gunjala_Gondi",i3.Gunjala_Gondi],["Gurmukhi",i3.Gurmukhi],["Gurung_Khema",i3.Gurung_Khema],["Han",i3.Han],["Hangul",i3.Hangul],["Hanifi_Rohingya",i3.Hanifi_Rohingya],["Hanunoo",i3.Hanunoo],["Hatran",i3.Hatran],["Hebrew",i3.Hebrew],["Hiragana",i3.Hiragana],["Imperial_Aramaic",i3.Imperial_Aramaic],["Inherited",i3.Inherited],["Inscriptional_Pahlavi",i3.Inscriptional_Pahlavi],["Inscriptional_Parthian",i3.Inscriptional_Parthian],["Javanese",i3.Javanese],["Kaithi",i3.Kaithi],["Kannada",i3.Kannada],["Katakana",i3.Katakana],["Kawi",i3.Kawi],["Kayah_Li",i3.Kayah_Li],["Kharoshthi",i3.Kharoshthi],["Khitan_Small_Script",i3.Khitan_Small_Script],["Khmer",i3.Khmer],["Khojki",i3.Khojki],["Khudawadi",i3.Khudawadi],["Kirat_Rai",i3.Kirat_Rai],["Lao",i3.Lao],["Latin",i3.Latin],["Lepcha",i3.Lepcha],["Limbu",i3.Limbu],["Linear_A",i3.Linear_A],["Linear_B",i3.Linear_B],["Lisu",i3.Lisu],["Lycian",i3.Lycian],["Lydian",i3.Lydian],["Mahajani",i3.Mahajani],["Makasar",i3.Makasar],["Malayalam",i3.Malayalam],["Mandaic",i3.Mandaic],["Manichaean",i3.Manichaean],["Marchen",i3.Marchen],["Masaram_Gondi",i3.Masaram_Gondi],["Medefaidrin",i3.Medefaidrin],["Meetei_Mayek",i3.Meetei_Mayek],["Mende_Kikakui",i3.Mende_Kikakui],["Meroitic_Cursive",i3.Meroitic_Cursive],["Meroitic_Hieroglyphs",i3.Meroitic_Hieroglyphs],["Miao",i3.Miao],["Modi",i3.Modi],["Mongolian",i3.Mongolian],["Mro",i3.Mro],["Multani",i3.Multani],["Myanmar",i3.Myanmar],["Nabataean",i3.Nabataean],["Nag_Mundari",i3.Nag_Mundari],["Nandinagari",i3.Nandinagari],["New_Tai_Lue",i3.New_Tai_Lue],["Newa",i3.Newa],["Nko",i3.Nko],["Nushu",i3.Nushu],["Nyiakeng_Puachue_Hmong",i3.Nyiakeng_Puachue_Hmong],["Ogham",i3.Ogham],["Ol_Chiki",i3.Ol_Chiki],["Ol_Onal",i3.Ol_Onal],["Old_Hungarian",i3.Old_Hungarian],["Old_Italic",i3.Old_Italic],["Old_North_Arabian",i3.Old_North_Arabian],["Old_Permic",i3.Old_Permic],["Old_Persian",i3.Old_Persian],["Old_Sogdian",i3.Old_Sogdian],["Old_South_Arabian",i3.Old_South_Arabian],["Old_Turkic",i3.Old_Turkic],["Old_Uyghur",i3.Old_Uyghur],["Oriya",i3.Oriya],["Osage",i3.Osage],["Osmanya",i3.Osmanya],["Pahawh_Hmong",i3.Pahawh_Hmong],["Palmyrene",i3.Palmyrene],["Pau_Cin_Hau",i3.Pau_Cin_Hau],["Phags_Pa",i3.Phags_Pa],["Phoenician",i3.Phoenician],["Psalter_Pahlavi",i3.Psalter_Pahlavi],["Rejang",i3.Rejang],["Runic",i3.Runic],["Samaritan",i3.Samaritan],["Saurashtra",i3.Saurashtra],["Sharada",i3.Sharada],["Shavian",i3.Shavian],["Siddham",i3.Siddham],["SignWriting",i3.SignWriting],["Sinhala",i3.Sinhala],["Sogdian",i3.Sogdian],["Sora_Sompeng",i3.Sora_Sompeng],["Soyombo",i3.Soyombo],["Sundanese",i3.Sundanese],["Sunuwar",i3.Sunuwar],["Syloti_Nagri",i3.Syloti_Nagri],["Syriac",i3.Syriac],["Tagalog",i3.Tagalog],["Tagbanwa",i3.Tagbanwa],["Tai_Le",i3.Tai_Le],["Tai_Tham",i3.Tai_Tham],["Tai_Viet",i3.Tai_Viet],["Takri",i3.Takri],["Tamil",i3.Tamil],["Tangsa",i3.Tangsa],["Tangut",i3.Tangut],["Telugu",i3.Telugu],["Thaana",i3.Thaana],["Thai",i3.Thai],["Tibetan",i3.Tibetan],["Tifinagh",i3.Tifinagh],["Tirhuta",i3.Tirhuta],["Todhri",i3.Todhri],["Toto",i3.Toto],["Tulu_Tigalari",i3.Tulu_Tigalari],["Ugaritic",i3.Ugaritic],["Vai",i3.Vai],["Vithkuqi",i3.Vithkuqi],["Wancho",i3.Wancho],["Warang_Citi",i3.Warang_Citi],["Yezidi",i3.Yezidi],["Yi",i3.Yi],["Zanabazar_Square",i3.Zanabazar_Square]]);static FOLD_CATEGORIES=new Map([["L",i3.foldL],["Ll",i3.foldLl],["Lt",i3.foldLt],["Lu",i3.foldLu],["M",i3.foldM],["Mn",i3.foldMn]]);static FOLD_SCRIPT=new Map([["Common",i3.foldCommon],["Greek",i3.foldGreek],["Inherited",i3.foldInherited]]);static Print=new l7(new Uint32Array([33,126,1,161,172,1,174,887,1,890,895,1,900,906,1,908,910,2,911,929,1,931,1327,1,1329,1366,1,1369,1418,1,1421,1423,1,1425,1479,1,1488,1514,1,1519,1524,1,1542,1563,1,1565,1756,1,1758,1805,1,1808,1866,1,1869,1969,1,1984,2042,1,2045,2093,1,2096,2110,1,2112,2139,1,2142,2144,2,2145,2154,1,2160,2190,1,2199,2273,1,2275,2435,1,2437,2444,1,2447,2448,1,2451,2472,1,2474,2480,1,2482,2486,4,2487,2489,1,2492,2500,1,2503,2504,1,2507,2510,1,2519,2524,5,2525,2527,2,2528,2531,1,2534,2558,1,2561,2563,1,2565,2570,1,2575,2576,1,2579,2600,1,2602,2608,1,2610,2611,1,2613,2614,1,2616,2617,1,2620,2622,2,2623,2626,1,2631,2632,1,2635,2637,1,2641,2649,8,2650,2652,1,2654,2662,8,2663,2678,1,2689,2691,1,2693,2701,1,2703,2705,1,2707,2728,1,2730,2736,1,2738,2739,1,2741,2745,1,2748,2757,1,2759,2761,1,2763,2765,1,2768,2784,16,2785,2787,1,2790,2801,1,2809,2815,1,2817,2819,1,2821,2828,1,2831,2832,1,2835,2856,1,2858,2864,1,2866,2867,1,2869,2873,1,2876,2884,1,2887,2888,1,2891,2893,1,2901,2903,1,2908,2909,1,2911,2915,1,2918,2935,1,2946,2947,1,2949,2954,1,2958,2960,1,2962,2965,1,2969,2970,1,2972,2974,2,2975,2979,4,2980,2984,4,2985,2986,1,2990,3001,1,3006,3010,1,3014,3016,1,3018,3021,1,3024,3031,7,3046,3066,1,3072,3084,1,3086,3088,1,3090,3112,1,3114,3129,1,3132,3140,1,3142,3144,1,3146,3149,1,3157,3158,1,3160,3162,1,3165,3168,3,3169,3171,1,3174,3183,1,3191,3212,1,3214,3216,1,3218,3240,1,3242,3251,1,3253,3257,1,3260,3268,1,3270,3272,1,3274,3277,1,3285,3286,1,3293,3294,1,3296,3299,1,3302,3311,1,3313,3315,1,3328,3340,1,3342,3344,1,3346,3396,1,3398,3400,1,3402,3407,1,3412,3427,1,3430,3455,1,3457,3459,1,3461,3478,1,3482,3505,1,3507,3515,1,3517,3520,3,3521,3526,1,3530,3535,5,3536,3540,1,3542,3544,2,3545,3551,1,3558,3567,1,3570,3572,1,3585,3642,1,3647,3675,1,3713,3714,1,3716,3718,2,3719,3722,1,3724,3747,1,3749,3751,2,3752,3773,1,3776,3780,1,3782,3784,2,3785,3790,1,3792,3801,1,3804,3807,1,3840,3911,1,3913,3948,1,3953,3991,1,3993,4028,1,4030,4044,1,4046,4058,1,4096,4293,1,4295,4301,6,4304,4680,1,4682,4685,1,4688,4694,1,4696,4698,2,4699,4701,1,4704,4744,1,4746,4749,1,4752,4784,1,4786,4789,1,4792,4798,1,4800,4802,2,4803,4805,1,4808,4822,1,4824,4880,1,4882,4885,1,4888,4954,1,4957,4988,1,4992,5017,1,5024,5109,1,5112,5117,1,5120,5759,1,5761,5788,1,5792,5880,1,5888,5909,1,5919,5942,1,5952,5971,1,5984,5996,1,5998,6e3,1,6002,6003,1,6016,6109,1,6112,6121,1,6128,6137,1,6144,6157,1,6159,6169,1,6176,6264,1,6272,6314,1,6320,6389,1,6400,6430,1,6432,6443,1,6448,6459,1,6464,6468,4,6469,6509,1,6512,6516,1,6528,6571,1,6576,6601,1,6608,6618,1,6622,6683,1,6686,6750,1,6752,6780,1,6783,6793,1,6800,6809,1,6816,6829,1,6832,6862,1,6912,6988,1,6990,7155,1,7164,7223,1,7227,7241,1,7245,7306,1,7312,7354,1,7357,7367,1,7376,7418,1,7424,7957,1,7960,7965,1,7968,8005,1,8008,8013,1,8016,8023,1,8025,8031,2,8032,8061,1,8064,8116,1,8118,8132,1,8134,8147,1,8150,8155,1,8157,8175,1,8178,8180,1,8182,8190,1,8208,8231,1,8240,8286,1,8304,8305,1,8308,8334,1,8336,8348,1,8352,8384,1,8400,8432,1,8448,8587,1,8592,9257,1,9280,9290,1,9312,11123,1,11126,11157,1,11159,11507,1,11513,11557,1,11559,11565,6,11568,11623,1,11631,11632,1,11647,11670,1,11680,11686,1,11688,11694,1,11696,11702,1,11704,11710,1,11712,11718,1,11720,11726,1,11728,11734,1,11736,11742,1,11744,11869,1,11904,11929,1,11931,12019,1,12032,12245,1,12272,12287,1,12289,12351,1,12353,12438,1,12441,12543,1,12549,12591,1,12593,12686,1,12688,12773,1,12783,12830,1,12832,42124,1,42128,42182,1,42192,42539,1,42560,42743,1,42752,42957,1,42960,42961,1,42963,42965,2,42966,42972,1,42994,43052,1,43056,43065,1,43072,43127,1,43136,43205,1,43214,43225,1,43232,43347,1,43359,43388,1,43392,43469,1,43471,43481,1,43486,43518,1,43520,43574,1,43584,43597,1,43600,43609,1,43612,43714,1,43739,43766,1,43777,43782,1,43785,43790,1,43793,43798,1,43808,43814,1,43816,43822,1,43824,43883,1,43888,44013,1,44016,44025,1,44032,55203,1,55216,55238,1,55243,55291,1,63744,64109,1,64112,64217,1,64256,64262,1,64275,64279,1,64285,64310,1,64312,64316,1,64318,64320,2,64321,64323,2,64324,64326,2,64327,64450,1,64467,64911,1,64914,64967,1,64975,65008,33,65009,65049,1,65056,65106,1,65108,65126,1,65128,65131,1,65136,65140,1,65142,65276,1,65281,65470,1,65474,65479,1,65482,65487,1,65490,65495,1,65498,65500,1,65504,65510,1,65512,65518,1,65532,65533,1,65536,65547,1,65549,65574,1,65576,65594,1,65596,65597,1,65599,65613,1,65616,65629,1,65664,65786,1,65792,65794,1,65799,65843,1,65847,65934,1,65936,65948,1,65952,66e3,48,66001,66045,1,66176,66204,1,66208,66256,1,66272,66299,1,66304,66339,1,66349,66378,1,66384,66426,1,66432,66461,1,66463,66499,1,66504,66517,1,66560,66717,1,66720,66729,1,66736,66771,1,66776,66811,1,66816,66855,1,66864,66915,1,66927,66938,1,66940,66954,1,66956,66962,1,66964,66965,1,66967,66977,1,66979,66993,1,66995,67001,1,67003,67004,1,67008,67059,1,67072,67382,1,67392,67413,1,67424,67431,1,67456,67461,1,67463,67504,1,67506,67514,1,67584,67589,1,67592,67594,2,67595,67637,1,67639,67640,1,67644,67647,3,67648,67669,1,67671,67742,1,67751,67759,1,67808,67826,1,67828,67829,1,67835,67867,1,67871,67897,1,67903,67968,65,67969,68023,1,68028,68047,1,68050,68099,1,68101,68102,1,68108,68115,1,68117,68119,1,68121,68149,1,68152,68154,1,68159,68168,1,68176,68184,1,68192,68255,1,68288,68326,1,68331,68342,1,68352,68405,1,68409,68437,1,68440,68466,1,68472,68497,1,68505,68508,1,68521,68527,1,68608,68680,1,68736,68786,1,68800,68850,1,68858,68903,1,68912,68921,1,68928,68965,1,68969,68997,1,69006,69007,1,69216,69246,1,69248,69289,1,69291,69293,1,69296,69297,1,69314,69316,1,69372,69415,1,69424,69465,1,69488,69513,1,69552,69579,1,69600,69622,1,69632,69709,1,69714,69749,1,69759,69820,1,69822,69826,1,69840,69864,1,69872,69881,1,69888,69940,1,69942,69959,1,69968,70006,1,70016,70111,1,70113,70132,1,70144,70161,1,70163,70209,1,70272,70278,1,70280,70282,2,70283,70285,1,70287,70301,1,70303,70313,1,70320,70378,1,70384,70393,1,70400,70403,1,70405,70412,1,70415,70416,1,70419,70440,1,70442,70448,1,70450,70451,1,70453,70457,1,70459,70468,1,70471,70472,1,70475,70477,1,70480,70487,7,70493,70499,1,70502,70508,1,70512,70516,1,70528,70537,1,70539,70542,3,70544,70581,1,70583,70592,1,70594,70597,3,70599,70602,1,70604,70613,1,70615,70616,1,70625,70626,1,70656,70747,1,70749,70753,1,70784,70855,1,70864,70873,1,71040,71093,1,71096,71133,1,71168,71236,1,71248,71257,1,71264,71276,1,71296,71353,1,71360,71369,1,71376,71395,1,71424,71450,1,71453,71467,1,71472,71494,1,71680,71739,1,71840,71922,1,71935,71942,1,71945,71948,3,71949,71955,1,71957,71958,1,71960,71989,1,71991,71992,1,71995,72006,1,72016,72025,1,72096,72103,1,72106,72151,1,72154,72164,1,72192,72263,1,72272,72354,1,72368,72440,1,72448,72457,1,72640,72673,1,72688,72697,1,72704,72712,1,72714,72758,1,72760,72773,1,72784,72812,1,72816,72847,1,72850,72871,1,72873,72886,1,72960,72966,1,72968,72969,1,72971,73014,1,73018,73020,2,73021,73023,2,73024,73031,1,73040,73049,1,73056,73061,1,73063,73064,1,73066,73102,1,73104,73105,1,73107,73112,1,73120,73129,1,73440,73464,1,73472,73488,1,73490,73530,1,73534,73562,1,73648,73664,16,73665,73713,1,73727,74649,1,74752,74862,1,74864,74868,1,74880,75075,1,77712,77810,1,77824,78895,1,78912,78933,1,78944,82938,1,82944,83526,1,90368,90425,1,92160,92728,1,92736,92766,1,92768,92777,1,92782,92862,1,92864,92873,1,92880,92909,1,92912,92917,1,92928,92997,1,93008,93017,1,93019,93025,1,93027,93047,1,93053,93071,1,93504,93561,1,93760,93850,1,93952,94026,1,94031,94087,1,94095,94111,1,94176,94180,1,94192,94193,1,94208,100343,1,100352,101589,1,101631,101640,1,110576,110579,1,110581,110587,1,110589,110590,1,110592,110882,1,110898,110928,30,110929,110930,1,110933,110948,15,110949,110951,1,110960,111355,1,113664,113770,1,113776,113788,1,113792,113800,1,113808,113817,1,113820,113823,1,117760,118009,1,118016,118451,1,118528,118573,1,118576,118598,1,118608,118723,1,118784,119029,1,119040,119078,1,119081,119154,1,119163,119274,1,119296,119365,1,119488,119507,1,119520,119539,1,119552,119638,1,119648,119672,1,119808,119892,1,119894,119964,1,119966,119967,1,119970,119973,3,119974,119977,3,119978,119980,1,119982,119993,1,119995,119997,2,119998,120003,1,120005,120069,1,120071,120074,1,120077,120084,1,120086,120092,1,120094,120121,1,120123,120126,1,120128,120132,1,120134,120138,4,120139,120144,1,120146,120485,1,120488,120779,1,120782,121483,1,121499,121503,1,121505,121519,1,122624,122654,1,122661,122666,1,122880,122886,1,122888,122904,1,122907,122913,1,122915,122916,1,122918,122922,1,122928,122989,1,123023,123136,113,123137,123180,1,123184,123197,1,123200,123209,1,123214,123215,1,123536,123566,1,123584,123641,1,123647,124112,465,124113,124153,1,124368,124410,1,124415,124896,481,124897,124902,1,124904,124907,1,124909,124910,1,124912,124926,1,124928,125124,1,125127,125142,1,125184,125259,1,125264,125273,1,125278,125279,1,126065,126132,1,126209,126269,1,126464,126467,1,126469,126495,1,126497,126498,1,126500,126503,3,126505,126514,1,126516,126519,1,126521,126523,2,126530,126535,5,126537,126541,2,126542,126543,1,126545,126546,1,126548,126551,3,126553,126561,2,126562,126564,2,126567,126570,1,126572,126578,1,126580,126583,1,126585,126588,1,126590,126592,2,126593,126601,1,126603,126619,1,126625,126627,1,126629,126633,1,126635,126651,1,126704,126705,1,126976,127019,1,127024,127123,1,127136,127150,1,127153,127167,1,127169,127183,1,127185,127221,1,127232,127405,1,127462,127490,1,127504,127547,1,127552,127560,1,127568,127569,1,127584,127589,1,127744,128727,1,128732,128748,1,128752,128764,1,128768,128886,1,128891,128985,1,128992,129003,1,129008,129024,16,129025,129035,1,129040,129095,1,129104,129113,1,129120,129159,1,129168,129197,1,129200,129211,1,129216,129217,1,129280,129619,1,129632,129645,1,129648,129660,1,129664,129673,1,129679,129734,1,129742,129756,1,129759,129769,1,129776,129784,1,129792,129938,1,129940,130041,1,131072,173791,1,173824,177977,1,177984,178205,1,178208,183969,1,183984,191456,1,191472,192093,1,194560,195101,1,196608,201546,1,201552,205743,1,917760,917999,1]))},E3=class{static MAX_RUNE=1114111;static MAX_ASCII=127;static MAX_LATIN1=255;static MAX_BMP=65535;static MIN_FOLD=65;static MAX_FOLD=125251;static is32(t8,e8){let s10=0,n10=t8.length;for(;s10<n10;){let r7=s10+Math.floor((n10-s10)/2),a14=t8.getLo(r7),o13=t8.getHi(r7);if(a14<=e8&&e8<=o13){let h18=t8.getStride(r7);return(e8-a14)%h18===0}e8<a14?n10=r7:s10=r7+1}return!1}static is(t8,e8){if(e8<=this.MAX_LATIN1){for(let s10=0;s10<t8.length;s10++){let n10=t8.getHi(s10);if(e8>n10)continue;let r7=t8.getLo(s10);if(e8<r7)return!1;let a14=t8.getStride(s10);return(e8-r7)%a14===0}return!1}return t8.length>0&&e8>=t8.getLo(0)&&this.is32(t8,e8)}static isUpper(t8){if(t8<=this.MAX_LATIN1){let e8=String.fromCodePoint(t8);return e8.toUpperCase()===e8&&e8.toLowerCase()!==e8}return this.is(x4.Upper,t8)}static isPrint(t8){return t8<=this.MAX_LATIN1?t8>=32&&t8<this.MAX_ASCII||t8>=161&&t8!==173:this.is(x4.Print,t8)}static simpleFold(t8){if(x4.CASE_ORBIT.has(t8))return x4.CASE_ORBIT.get(t8);let e8=u6.toLowerCase(t8);return e8!==t8?e8:u6.toUpperCase(t8)}static equalsIgnoreCase(t8,e8){if(t8<0||e8<0||t8===e8)return!0;if(t8<=this.MAX_ASCII&&e8<=this.MAX_ASCII)return u6.CODES.get("A")<=t8&&t8<=u6.CODES.get("Z")&&(t8|=32),u6.CODES.get("A")<=e8&&e8<=u6.CODES.get("Z")&&(e8|=32),t8===e8;for(let s10=this.simpleFold(t8);s10!==t8;s10=this.simpleFold(s10))if(s10===e8)return!0;return!1}},C3=class{static METACHARACTERS="\\.+*?()|[]{}^$";static EMPTY_BEGIN_LINE=1;static EMPTY_END_LINE=2;static EMPTY_BEGIN_TEXT=4;static EMPTY_END_TEXT=8;static EMPTY_WORD_BOUNDARY=16;static EMPTY_NO_WORD_BOUNDARY=32;static EMPTY_ALL=-1;static emptyInts(){return[]}static isalnum(t8){return u6.CODES.get("0")<=t8&&t8<=u6.CODES.get("9")||u6.CODES.get("a")<=t8&&t8<=u6.CODES.get("z")||u6.CODES.get("A")<=t8&&t8<=u6.CODES.get("Z")}static unhex(t8){return u6.CODES.get("0")<=t8&&t8<=u6.CODES.get("9")?t8-u6.CODES.get("0"):u6.CODES.get("a")<=t8&&t8<=u6.CODES.get("f")?t8-u6.CODES.get("a")+10:u6.CODES.get("A")<=t8&&t8<=u6.CODES.get("F")?t8-u6.CODES.get("A")+10:-1}static escapeRune(t8){let e8="";if(E3.isPrint(t8))this.METACHARACTERS.indexOf(String.fromCodePoint(t8))>=0&&(e8+="\\"),e8+=String.fromCodePoint(t8);else switch(t8){case u6.CODES.get('"'):e8+='\\"';break;case u6.CODES.get("\\"):e8+="\\\\";break;case u6.CODES.get(" "):e8+="\\t";break;case u6.CODES.get(`
15
15
  `):e8+="\\n";break;case u6.CODES.get("\r"):e8+="\\r";break;case u6.CODES.get("\b"):e8+="\\b";break;case u6.CODES.get("\f"):e8+="\\f";break;default:{let s10=t8.toString(16);t8<256?(e8+="\\x",s10.length===1&&(e8+="0"),e8+=s10):e8+=`\\x{${s10}}`;break}}return e8}static stringToRunes(t8){return String(t8).split("").map(e8=>e8.codePointAt(0))}static runeToString(t8){return String.fromCodePoint(t8)}static isWordRune(t8){return u6.CODES.get("a")<=t8&&t8<=u6.CODES.get("z")||u6.CODES.get("A")<=t8&&t8<=u6.CODES.get("Z")||u6.CODES.get("0")<=t8&&t8<=u6.CODES.get("9")||t8===u6.CODES.get("_")}static emptyOpContext(t8,e8){let s10=0;return t8<0&&(s10|=this.EMPTY_BEGIN_TEXT|this.EMPTY_BEGIN_LINE),t8===u6.CODES.get(`
16
16
  `)&&(s10|=this.EMPTY_BEGIN_LINE),e8<0&&(s10|=this.EMPTY_END_TEXT|this.EMPTY_END_LINE),e8===u6.CODES.get(`
@@ -28,10 +28,10 @@ This is a defense-in-depth measure and indicates a bug in just-bash. Please repo
28
28
  `)+1&&t8.runes[3]===E3.MAX_RUNE&&(t8.runes=[],t8.op=c5.Op.ANY_CHAR_NOT_NL))}collapse(t8,e8){if(t8.length===1)return t8[0];let s10=0;for(let o13 of t8)s10+=o13.op===e8?o13.subs.length:1;let n10=new Array(s10).fill(null),r7=0;for(let o13 of t8)o13.op===e8?(n10.splice(r7,o13.subs.length,...o13.subs),r7+=o13.subs.length,this.reuse(o13)):n10[r7++]=o13;let a14=this.newRegexp(e8);if(a14.subs=n10,e8===c5.Op.ALTERNATE&&(a14.subs=this.factor(a14.subs),a14.subs.length===1)){let o13=a14;a14=a14.subs[0],this.reuse(o13)}return a14}factor(t8){if(t8.length<2)return t8;let e8=0,s10=t8.length,n10=0,r7=null,a14=0,o13=0,h18=0;for(let f15=0;f15<=s10;f15++){let A13=null,S15=0,O18=0;if(f15<s10){let m16=t8[e8+f15];if(m16.op===c5.Op.CONCAT&&m16.subs.length>0&&(m16=m16.subs[0]),m16.op===c5.Op.LITERAL&&(A13=m16.runes,S15=m16.runes.length,O18=m16.flags&g2.FOLD_CASE),O18===o13){let R21=0;for(;R21<a14&&R21<S15&&r7[R21]===A13[R21];)R21++;if(R21>0){a14=R21;continue}}}if(f15!==h18)if(f15===h18+1)t8[n10++]=t8[e8+h18];else{let m16=this.newRegexp(c5.Op.LITERAL);m16.flags=o13,m16.runes=r7.slice(0,a14);for(let M20=h18;M20<f15;M20++)t8[e8+M20]=this.removeLeadingString(t8[e8+M20],a14),this.checkLimits(t8[e8+M20]);let R21=this.collapse(t8.slice(e8+h18,e8+f15),c5.Op.ALTERNATE),b23=this.newRegexp(c5.Op.CONCAT);b23.subs=[m16,R21],t8[n10++]=b23}h18=f15,r7=A13,a14=S15,o13=O18}s10=n10,e8=0,h18=0,n10=0;let p16=null;for(let f15=0;f15<=s10;f15++){let A13=null;if(!(f15<s10&&(A13=i12.leadingRegexp(t8[e8+f15]),p16!==null&&p16.equals(A13)&&(i12.isCharClass(p16)||p16.op===c5.Op.REPEAT&&p16.min===p16.max&&i12.isCharClass(p16.subs[0]))))){if(f15!==h18)if(f15===h18+1)t8[n10++]=t8[e8+h18];else{let S15=p16;for(let R21=h18;R21<f15;R21++){let b23=R21!==h18;t8[e8+R21]=this.removeLeadingRegexp(t8[e8+R21],b23),this.checkLimits(t8[e8+R21])}let O18=this.collapse(t8.slice(e8+h18,e8+f15),c5.Op.ALTERNATE),m16=this.newRegexp(c5.Op.CONCAT);m16.subs=[S15,O18],t8[n10++]=m16}h18=f15,p16=A13}}s10=n10,e8=0,h18=0,n10=0;for(let f15=0;f15<=s10;f15++)if(!(f15<s10&&i12.isCharClass(t8[e8+f15]))){if(f15!==h18)if(f15===h18+1)t8[n10++]=t8[e8+h18];else{let A13=h18;for(let O18=h18+1;O18<f15;O18++){let m16=t8[e8+A13],R21=t8[e8+O18];(m16.op<R21.op||m16.op===R21.op&&(m16.runes!==null?m16.runes.length:0)<(R21.runes!==null?R21.runes.length:0))&&(A13=O18)}let S15=t8[e8+h18];t8[e8+h18]=t8[e8+A13],t8[e8+A13]=S15;for(let O18=h18+1;O18<f15;O18++)i12.mergeCharClass(t8[e8+h18],t8[e8+O18]),this.reuse(t8[e8+O18]);this.cleanAlt(t8[e8+h18]),t8[n10++]=t8[e8+h18]}f15<s10&&(t8[n10++]=t8[e8+f15]),h18=f15+1}s10=n10,e8=0,h18=0,n10=0;for(let f15=0;f15<s10;++f15)f15+1<s10&&t8[e8+f15].op===c5.Op.EMPTY_MATCH&&t8[e8+f15+1].op===c5.Op.EMPTY_MATCH||(t8[n10++]=t8[e8+f15]);return s10=n10,e8=0,t8.slice(e8,s10)}removeLeadingString(t8,e8){if(t8.op===c5.Op.CONCAT&&t8.subs.length>0){let s10=this.removeLeadingString(t8.subs[0],e8);if(t8.subs[0]=s10,s10.op===c5.Op.EMPTY_MATCH)switch(this.reuse(s10),t8.subs.length){case 0:case 1:t8.op=c5.Op.EMPTY_MATCH,t8.subs=null;break;case 2:{let n10=t8;t8=t8.subs[1],this.reuse(n10);break}default:t8.subs=t8.subs.slice(1,t8.subs.length);break}return t8}return t8.op===c5.Op.LITERAL&&(t8.runes=t8.runes.slice(e8,t8.runes.length),t8.runes.length===0&&(t8.op=c5.Op.EMPTY_MATCH)),t8}removeLeadingRegexp(t8,e8){if(t8.op===c5.Op.CONCAT&&t8.subs.length>0){switch(e8&&this.reuse(t8.subs[0]),t8.subs=t8.subs.slice(1,t8.subs.length),t8.subs.length){case 0:{t8.op=c5.Op.EMPTY_MATCH,t8.subs=c5.emptySubs();break}case 1:{let s10=t8;t8=t8.subs[0],this.reuse(s10);break}}return t8}return e8&&this.reuse(t8),this.newRegexp(c5.Op.EMPTY_MATCH)}parseInternal(){if((this.flags&g2.LITERAL)!==0)return i12.literalRegexp(this.wholeRegexp,this.flags);let t8=-1,e8=-1,s10=-1,n10=new s1(this.wholeRegexp);for(;n10.more();){let a14=-1;t:switch(n10.peek()){case u6.CODES.get("("):if((this.flags&g2.PERL_X)!==0&&n10.lookingAt("(?")){this.parsePerlFlags(n10);break}this.op(c5.Op.LEFT_PAREN).cap=++this.numCap,n10.skip(1);break;case u6.CODES.get("|"):this.parseVerticalBar(),n10.skip(1);break;case u6.CODES.get(")"):this.parseRightParen(),n10.skip(1);break;case u6.CODES.get("^"):(this.flags&g2.ONE_LINE)!==0?this.op(c5.Op.BEGIN_TEXT):this.op(c5.Op.BEGIN_LINE),n10.skip(1);break;case u6.CODES.get("$"):(this.flags&g2.ONE_LINE)!==0?this.op(c5.Op.END_TEXT).flags|=g2.WAS_DOLLAR:this.op(c5.Op.END_LINE),n10.skip(1);break;case u6.CODES.get("."):(this.flags&g2.DOT_NL)!==0?this.op(c5.Op.ANY_CHAR):this.op(c5.Op.ANY_CHAR_NOT_NL),n10.skip(1);break;case u6.CODES.get("["):this.parseClass(n10);break;case u6.CODES.get("*"):case u6.CODES.get("+"):case u6.CODES.get("?"):{a14=n10.pos();let o13=null;switch(n10.pop()){case u6.CODES.get("*"):o13=c5.Op.STAR;break;case u6.CODES.get("+"):o13=c5.Op.PLUS;break;case u6.CODES.get("?"):o13=c5.Op.QUEST;break}this.repeat(o13,e8,s10,a14,n10,t8);break}case u6.CODES.get("{"):{a14=n10.pos();let o13=i12.parseRepeat(n10);if(o13<0){n10.rewindTo(a14),this.literal(n10.pop());break}e8=o13>>16,s10=(o13&E3.MAX_BMP)<<16>>16,this.repeat(c5.Op.REPEAT,e8,s10,a14,n10,t8);break}case u6.CODES.get("\\"):{let o13=n10.pos();if(n10.skip(1),(this.flags&g2.PERL_X)!==0&&n10.more())switch(n10.pop()){case u6.CODES.get("A"):this.op(c5.Op.BEGIN_TEXT);break t;case u6.CODES.get("b"):this.op(c5.Op.WORD_BOUNDARY);break t;case u6.CODES.get("B"):this.op(c5.Op.NO_WORD_BOUNDARY);break t;case u6.CODES.get("C"):throw new T4(i12.ERR_INVALID_ESCAPE,"\\C");case u6.CODES.get("Q"):{let A13=n10.rest(),S15=A13.indexOf("\\E");S15>=0&&(A13=A13.substring(0,S15)),n10.skipString(A13),n10.skipString("\\E");let O18=0;for(;O18<A13.length;){let m16=A13.codePointAt(O18);this.literal(m16),O18+=C3.charCount(m16)}break t}case u6.CODES.get("z"):this.op(c5.Op.END_TEXT);break t;default:n10.rewindTo(o13);break}let h18=this.newRegexp(c5.Op.CHAR_CLASS);if(h18.flags=this.flags,n10.lookingAt("\\p")||n10.lookingAt("\\P")){let f15=new L2;if(this.parseUnicodeClass(n10,f15)){h18.runes=f15.toArray(),this.push(h18);break t}}let p16=new L2;if(this.parsePerlClassEscape(n10,p16)){h18.runes=p16.toArray(),this.push(h18);break t}n10.rewindTo(o13),this.reuse(h18),this.literal(i12.parseEscape(n10));break}default:this.literal(n10.pop());break}t8=a14}if(this.concat(),this.swapVerticalBar()&&this.pop(),this.alternate(),this.stack.length!==1)throw new T4(i12.ERR_MISSING_PAREN,this.wholeRegexp);return this.stack[0].namedGroups=this.namedGroups,this.stack[0]}parsePerlFlags(t8){let e8=t8.pos(),s10=t8.rest();if(s10.startsWith("(?P<")||s10.startsWith("(?<")){let o13=s10.charAt(2)==="P"?4:3,h18=s10.indexOf(">");if(h18<0)throw new T4(i12.ERR_INVALID_NAMED_CAPTURE,s10);let p16=s10.substring(o13,h18);if(t8.skipString(p16),t8.skip(o13+1),!i12.isValidCaptureName(p16))throw new T4(i12.ERR_INVALID_NAMED_CAPTURE,s10.substring(0,h18+1));let f15=this.op(c5.Op.LEFT_PAREN);if(f15.cap=++this.numCap,this.namedGroups[p16])throw new T4(i12.ERR_DUPLICATE_NAMED_CAPTURE,p16);this.namedGroups[p16]=this.numCap,f15.name=p16;return}t8.skip(2);let n10=this.flags,r7=1,a14=!1;t:for(;t8.more();){let o13=t8.pop();switch(o13){case u6.CODES.get("i"):n10|=g2.FOLD_CASE,a14=!0;break;case u6.CODES.get("m"):n10&=-17,a14=!0;break;case u6.CODES.get("s"):n10|=g2.DOT_NL,a14=!0;break;case u6.CODES.get("U"):n10|=g2.NON_GREEDY,a14=!0;break;case u6.CODES.get("-"):if(r7<0)break t;r7=-1,n10=~n10,a14=!1;break;case u6.CODES.get(":"):case u6.CODES.get(")"):if(r7<0){if(!a14)break t;n10=~n10}o13===u6.CODES.get(":")&&this.op(c5.Op.LEFT_PAREN),this.flags=n10;return;default:break t}}throw new T4(i12.ERR_INVALID_PERL_OP,t8.from(e8))}parseVerticalBar(){this.concat(),this.swapVerticalBar()||this.op(c5.Op.VERTICAL_BAR)}swapVerticalBar(){let t8=this.stack.length;if(t8>=3&&this.stack[t8-2].op===c5.Op.VERTICAL_BAR&&i12.isCharClass(this.stack[t8-1])&&i12.isCharClass(this.stack[t8-3])){let e8=this.stack[t8-1],s10=this.stack[t8-3];if(e8.op>s10.op){let n10=s10;s10=e8,e8=n10,this.stack[t8-3]=s10}return i12.mergeCharClass(s10,e8),this.reuse(e8),this.pop(),!0}if(t8>=2){let e8=this.stack[t8-1],s10=this.stack[t8-2];if(s10.op===c5.Op.VERTICAL_BAR)return t8>=3&&this.cleanAlt(this.stack[t8-3]),this.stack[t8-2]=e8,this.stack[t8-1]=s10,!0}return!1}parseRightParen(){if(this.concat(),this.swapVerticalBar()&&this.pop(),this.alternate(),this.stack.length<2)throw new T4(i12.ERR_UNEXPECTED_PAREN,this.wholeRegexp);let e8=this.pop(),s10=this.pop();if(s10.op!==c5.Op.LEFT_PAREN)throw new T4(i12.ERR_UNEXPECTED_PAREN,this.wholeRegexp);this.flags=s10.flags,s10.cap===0?this.push(e8):(s10.op=c5.Op.CAPTURE,s10.subs=[e8],this.push(s10))}parsePerlClassEscape(t8,e8){let s10=t8.pos();if((this.flags&g2.PERL_X)===0||!t8.more()||t8.pop()!==u6.CODES.get("\\")||!t8.more())return!1;t8.pop();let n10=t8.from(s10),r7=p1.has(n10)?p1.get(n10):null;return r7===null?!1:(e8.appendGroup(r7,(this.flags&g2.FOLD_CASE)!==0),!0)}parseNamedClass(t8,e8){let s10=t8.rest(),n10=s10.indexOf(":]");if(n10<0)return!1;let r7=s10.substring(0,n10+2);t8.skipString(r7);let a14=b1.has(r7)?b1.get(r7):null;if(a14===null)throw new T4(i12.ERR_INVALID_CHAR_RANGE,r7);return e8.appendGroup(a14,(this.flags&g2.FOLD_CASE)!==0),!0}parseUnicodeClass(t8,e8){let s10=t8.pos();if((this.flags&g2.UNICODE_GROUPS)===0||!t8.lookingAt("\\p")&&!t8.lookingAt("\\P"))return!1;t8.skip(1);let n10=1,r7=t8.pop();if(r7===u6.CODES.get("P")&&(n10=-1),!t8.more())throw t8.rewindTo(s10),new T4(i12.ERR_INVALID_CHAR_RANGE,t8.rest());r7=t8.pop();let a14;if(r7!==u6.CODES.get("{"))a14=C3.runeToString(r7);else{let f15=t8.rest(),A13=f15.indexOf("}");if(A13<0)throw t8.rewindTo(s10),new T4(i12.ERR_INVALID_CHAR_RANGE,t8.rest());a14=f15.substring(0,A13),t8.skipString(a14),t8.skip(1)}a14.length!==0&&a14.codePointAt(0)===u6.CODES.get("^")&&(n10=0-n10,a14=a14.substring(1));let o13=i12.unicodeTable(a14);if(o13===null)throw new T4(i12.ERR_INVALID_CHAR_RANGE,t8.from(s10));let h18=o13.first,p16=o13.second;if((this.flags&g2.FOLD_CASE)===0||p16===null)e8.appendTableWithSign(h18,n10);else{let f15=new L2().appendTable(h18).appendTable(p16).cleanClass().toArray();e8.appendClassWithSign(f15,n10)}return!0}parseClass(t8){let e8=t8.pos();t8.skip(1);let s10=this.newRegexp(c5.Op.CHAR_CLASS);s10.flags=this.flags;let n10=new L2,r7=1;t8.more()&&t8.lookingAt("^")&&(r7=-1,t8.skip(1),(this.flags&g2.CLASS_NL)===0&&n10.appendRange(u6.CODES.get(`
29
29
  `),u6.CODES.get(`
30
30
  `)));let a14=!0;for(;!t8.more()||t8.peek()!==u6.CODES.get("]")||a14;){if(t8.more()&&t8.lookingAt("-")&&(this.flags&g2.PERL_X)===0&&!a14){let f15=t8.rest();if(f15==="-"||!f15.startsWith("-]"))throw t8.rewindTo(e8),new T4(i12.ERR_INVALID_CHAR_RANGE,t8.rest())}a14=!1;let o13=t8.pos();if(t8.lookingAt("[:")){if(this.parseNamedClass(t8,n10))continue;t8.rewindTo(o13)}if(this.parseUnicodeClass(t8,n10)||this.parsePerlClassEscape(t8,n10))continue;t8.rewindTo(o13);let h18=i12.parseClassChar(t8,e8),p16=h18;if(t8.more()&&t8.lookingAt("-")){if(t8.skip(1),t8.more()&&t8.lookingAt("]"))t8.skip(-1);else if(p16=i12.parseClassChar(t8,e8),p16<h18)throw new T4(i12.ERR_INVALID_CHAR_RANGE,t8.from(o13))}(this.flags&g2.FOLD_CASE)===0?n10.appendRange(h18,p16):n10.appendFoldedRange(h18,p16)}t8.skip(1),n10.cleanClass(),r7<0&&n10.negateClass(),s10.runes=n10.toArray(),this.push(s10)}},i1=class{constructor(t8){this.value=t8}get(){return this.value}set(t8){this.value=t8}compareAndSet(t8,e8){return this.value===t8?(this.value=e8,!0):!1}},r1=class i13{static initTest(t8){let e8=i13.compile(t8),s10=new i13(e8.expr,e8.prog,e8.numSubexp,e8.longest);return s10.cond=e8.cond,s10.prefix=e8.prefix,s10.prefixUTF8=e8.prefixUTF8,s10.prefixComplete=e8.prefixComplete,s10.prefixRune=e8.prefixRune,s10}static compile(t8){return i13.compileImpl(t8,g2.PERL,!1)}static compilePOSIX(t8){return i13.compileImpl(t8,g2.POSIX,!0)}static compileImpl(t8,e8,s10){let n10=n1.parse(t8,e8),r7=n10.maxCap();n10=e1.simplify(n10);let a14=t1.compileRegexp(n10),o13=new i13(t8,a14,r7,s10),[h18,p16]=a14.prefix();return o13.prefixComplete=h18,o13.prefix=p16,o13.prefixUTF8=C3.stringToUtf8ByteArray(o13.prefix),o13.prefix.length>0&&(o13.prefixRune=o13.prefix.codePointAt(0)),o13.namedGroups=n10.namedGroups,o13}static match(t8,e8){return i13.compile(t8).match(e8)}constructor(t8,e8,s10=0,n10=0){this.expr=t8,this.prog=e8,this.numSubexp=s10,this.longest=n10,this.cond=e8.startCond(),this.prefix=null,this.prefixUTF8=null,this.prefixComplete=!1,this.prefixRune=0,this.pooled=new i1,this.dfa=new Q(e8)}executeEngine(t8,e8,s10,n10){if(n10>0)return this.doExecuteNFA(t8,e8,s10,n10);let r7=this.dfa.match(t8,e8,s10);return r7!==null?r7?[]:null:this.doExecuteNFA(t8,e8,s10,n10)}numberOfCapturingGroups(){return this.numSubexp}numberOfInstructions(){return this.prog.numInst()}get(){let t8;do t8=this.pooled.get();while(t8&&!this.pooled.compareAndSet(t8,t8.next));return t8}reset(){this.pooled.set(null)}put(t8,e8){let s10=this.pooled.get();do s10=this.pooled.get(),!e8&&s10&&(t8=H2.fromMachine(t8),e8=!0),t8.next!==s10&&(t8.next=s10);while(!this.pooled.compareAndSet(s10,t8))}toString(){return this.expr}doExecuteNFA(t8,e8,s10,n10){let r7=this.get(),a14=!1;r7?r7.next!==null&&(r7=H2.fromMachine(r7),a14=!0):(r7=H2.fromRE2(this),a14=!0),r7.init(n10);let o13=r7.match(t8,e8,s10)?r7.submatches():null;return this.put(r7,a14),o13}match(t8){return this.executeEngine(N2.fromUTF16(t8),0,g2.UNANCHORED,0)!==null}matchWithGroup(t8,e8,s10,n10,r7){return t8 instanceof _3||(t8=P2.utf16(t8)),this.matchMachineInput(t8,e8,s10,n10,r7)}matchMachineInput(t8,e8,s10,n10,r7){if(e8>s10)return[!1,null];let a14=t8.isUTF16Encoding()?N2.fromUTF16(t8.asCharSequence(),0,s10):N2.fromUTF8(t8.asBytes(),0,s10),o13=this.executeEngine(a14,e8,n10,2*r7);return o13===null?[!1,null]:[!0,o13]}matchUTF8(t8){return this.executeEngine(N2.fromUTF8(t8),0,g2.UNANCHORED,0)!==null}replaceAll(t8,e8){return this.replaceAllFunc(t8,()=>e8,2*t8.length+1)}replaceFirst(t8,e8){return this.replaceAllFunc(t8,()=>e8,1)}replaceAllFunc(t8,e8,s10){let n10=0,r7=0,a14="",o13=N2.fromUTF16(t8),h18=0;for(;r7<=t8.length;){let p16=this.executeEngine(o13,r7,g2.UNANCHORED,2);if(p16===null||p16.length===0)break;a14+=t8.substring(n10,p16[0]),(p16[1]>n10||p16[0]===0)&&(a14+=e8(t8.substring(p16[0],p16[1])),h18++),n10=p16[1];let f15=o13.step(r7)&7;if(r7+f15>p16[1]?r7+=f15:r7+1>p16[1]?r7++:r7=p16[1],h18>=s10)break}return a14+=t8.substring(n10),a14}pad(t8){if(t8===null)return null;let e8=(1+this.numSubexp)*2;if(t8.length<e8){let s10=new Array(e8).fill(-1);for(let n10=0;n10<t8.length;n10++)s10[n10]=t8[n10];t8=s10}return t8}allMatches(t8,e8,s10=n10=>n10){let n10=[],r7=t8.endPos();e8<0&&(e8=r7+1);let a14=0,o13=0,h18=-1;for(;o13<e8&&a14<=r7;){let p16=this.executeEngine(t8,a14,g2.UNANCHORED,this.prog.numCap);if(p16===null||p16.length===0)break;let f15=!0;if(p16[1]===a14){p16[0]===h18&&(f15=!1);let A13=t8.step(a14);A13<0?a14=r7+1:a14+=A13&7}else a14=p16[1];h18=p16[1],f15&&(n10.push(s10(this.pad(p16))),o13++)}return n10}findUTF8(t8){let e8=this.executeEngine(N2.fromUTF8(t8),0,g2.UNANCHORED,2);return e8===null?null:t8.slice(e8[0],e8[1])}findUTF8Index(t8){let e8=this.executeEngine(N2.fromUTF8(t8),0,g2.UNANCHORED,2);return e8===null?null:e8.slice(0,2)}find(t8){let e8=this.executeEngine(N2.fromUTF16(t8),0,g2.UNANCHORED,2);return e8===null?"":t8.substring(e8[0],e8[1])}findIndex(t8){return this.executeEngine(N2.fromUTF16(t8),0,g2.UNANCHORED,2)}findUTF8Submatch(t8){let e8=this.executeEngine(N2.fromUTF8(t8),0,g2.UNANCHORED,this.prog.numCap);if(e8===null)return null;let s10=new Array(1+this.numSubexp).fill(null);for(let n10=0;n10<s10.length;n10++)2*n10<e8.length&&e8[2*n10]>=0&&(s10[n10]=t8.slice(e8[2*n10],e8[2*n10+1]));return s10}findUTF8SubmatchIndex(t8){return this.pad(this.executeEngine(N2.fromUTF8(t8),0,g2.UNANCHORED,this.prog.numCap))}findSubmatch(t8){let e8=this.executeEngine(N2.fromUTF16(t8),0,g2.UNANCHORED,this.prog.numCap);if(e8===null)return null;let s10=new Array(1+this.numSubexp).fill(null);for(let n10=0;n10<s10.length;n10++)2*n10<e8.length&&e8[2*n10]>=0&&(s10[n10]=t8.substring(e8[2*n10],e8[2*n10+1]));return s10}findSubmatchIndex(t8){return this.pad(this.executeEngine(N2.fromUTF16(t8),0,g2.UNANCHORED,this.prog.numCap))}findAllUTF8(t8,e8){let s10=this.allMatches(N2.fromUTF8(t8),e8,n10=>t8.slice(n10[0],n10[1]));return s10.length===0?null:s10}findAllUTF8Index(t8,e8){let s10=this.allMatches(N2.fromUTF8(t8),e8,n10=>n10.slice(0,2));return s10.length===0?null:s10}findAll(t8,e8){let s10=this.allMatches(N2.fromUTF16(t8),e8,n10=>t8.substring(n10[0],n10[1]));return s10.length===0?null:s10}findAllIndex(t8,e8){let s10=this.allMatches(N2.fromUTF16(t8),e8,n10=>n10.slice(0,2));return s10.length===0?null:s10}findAllUTF8Submatch(t8,e8){let s10=this.allMatches(N2.fromUTF8(t8),e8,n10=>{let r7=new Array(n10.length/2|0).fill(null);for(let a14=0;a14<r7.length;a14++)n10[2*a14]>=0&&(r7[a14]=t8.slice(n10[2*a14],n10[2*a14+1]));return r7});return s10.length===0?null:s10}findAllUTF8SubmatchIndex(t8,e8){let s10=this.allMatches(N2.fromUTF8(t8),e8);return s10.length===0?null:s10}findAllSubmatch(t8,e8){let s10=this.allMatches(N2.fromUTF16(t8),e8,n10=>{let r7=new Array(n10.length/2|0).fill(null);for(let a14=0;a14<r7.length;a14++)n10[2*a14]>=0&&(r7[a14]=t8.substring(n10[2*a14],n10[2*a14+1]));return r7});return s10.length===0?null:s10}findAllSubmatchIndex(t8,e8){let s10=this.allMatches(N2.fromUTF16(t8),e8);return s10.length===0?null:s10}},a1=class i14{static isUpperCaseAlpha(t8){return"A"<=t8&&t8<="Z"}static isHexadecimal(t8){return"0"<=t8&&t8<="9"||"A"<=t8&&t8<="F"||"a"<=t8&&t8<="f"}static getUtf8CharSize(t8){let e8=t8.charCodeAt(0);return e8<128?1:e8<2048?2:e8<65536?3:4}static translate(t8){if(typeof t8!="string")return t8;let e8="",s10=!1,n10=t8.length;n10===0&&(e8="(?:)",s10=!0);let r7=0;for(;r7<n10;){let a14=t8[r7];if(a14==="\\"){if(r7+1<n10)switch(a14=t8[r7+1],a14){case"\\":{e8+="\\\\",r7+=2;continue}case"c":{if(r7+2<n10){let h18=t8[r7+2];if(i14.isUpperCaseAlpha(h18)){e8+="\\x",e8+=(h18.charCodeAt(0)-64>>4).toString(16).toUpperCase(),e8+=(h18.charCodeAt(0)-64&15).toString(16).toUpperCase(),r7+=3,s10=!0;continue}}e8+="\\c",r7+=2;continue}case"u":{if(r7+2<n10){let h18=t8[r7+2];if(i14.isHexadecimal(h18)){e8+="\\x{"+h18,r7+=3;for(let p16=0;p16<3&&r7<n10&&(h18=t8[r7],!!i14.isHexadecimal(h18));++r7,++p16)e8+=h18;e8+="}",s10=!0;continue}else if(h18==="{"){e8+="\\x",r7+=2,s10=!0;continue}}e8+="\\u",r7+=2;continue}default:{e8+="\\";let h18=i14.getUtf8CharSize(a14);e8+=t8.substring(r7+1,r7+1+h18),r7+=h18+1;continue}}}else if(a14==="/"){e8+="\\/",r7+=1,s10=!0;continue}else if(a14==="("&&r7+2<n10&&t8[r7+1]==="?"&&t8[r7+2]==="<"&&(r7+3>=n10||t8[r7+3]!=="="&&t8[r7+3]!=="!")){e8+="(?P<",r7+=3,s10=!0;continue}let o13=i14.getUtf8CharSize(a14);e8+=t8.substring(r7,r7+o13),r7+=o13}return s10?e8:t8}},y2=class i15{static CASE_INSENSITIVE=1;static DOTALL=2;static MULTILINE=4;static DISABLE_UNICODE_GROUPS=8;static LONGEST_MATCH=16;static quote(t8){return C3.quoteMeta(t8)}static translateRegExp(t8){return a1.translate(t8)}static compile(t8,e8=0){let s10=t8;if((e8&i15.CASE_INSENSITIVE)!==0&&(s10=`(?i)${s10}`),(e8&i15.DOTALL)!==0&&(s10=`(?s)${s10}`),(e8&i15.MULTILINE)!==0&&(s10=`(?m)${s10}`),(e8&~(i15.MULTILINE|i15.DOTALL|i15.CASE_INSENSITIVE|i15.DISABLE_UNICODE_GROUPS|i15.LONGEST_MATCH))!==0)throw new q("Flags should only be a combination of MULTILINE, DOTALL, CASE_INSENSITIVE, DISABLE_UNICODE_GROUPS, LONGEST_MATCH");let n10=g2.PERL;(e8&i15.DISABLE_UNICODE_GROUPS)!==0&&(n10&=-129);let r7=new i15(t8,e8);return r7.re2Input=r1.compileImpl(s10,n10,(e8&i15.LONGEST_MATCH)!==0),r7}static matches(t8,e8){return i15.compile(t8).testExact(e8)}static initTest(t8,e8,s10){if(t8==null)throw new Error("pattern is null");if(s10==null)throw new Error("re2 is null");let n10=new i15(t8,e8);return n10.re2Input=s10,n10}constructor(t8,e8){this.patternInput=t8,this.flagsInput=e8}reset(){this.re2Input.reset()}flags(){return this.flagsInput}pattern(){return this.patternInput}re2(){return this.re2Input}matches(t8){return this.testExact(t8)}matcher(t8){return Array.isArray(t8)&&(t8=P2.utf8(t8)),new W(this,t8)}test(t8){return Array.isArray(t8)?this.re2Input.matchUTF8(t8):this.re2Input.match(t8)}testExact(t8){let e8=Array.isArray(t8)?N2.fromUTF8(t8):N2.fromUTF16(t8);return this.re2Input.executeEngine(e8,0,g2.ANCHOR_BOTH,0)!==null}split(t8,e8=0){let s10=this.matcher(t8),n10=[],r7=0,a14=0;for(;s10.find();){if(a14===0&&s10.end()===0){a14=s10.end();continue}if(e8>0&&n10.length===e8-1)break;if(a14===s10.start()){if(e8===0){r7+=1,a14=s10.end();continue}}else for(;r7>0;)n10.push(""),r7-=1;n10.push(s10.substring(a14,s10.start())),a14=s10.end()}if(e8===0&&a14!==s10.inputLength()){for(;r7>0;)n10.push(""),r7-=1;n10.push(s10.substring(a14,s10.inputLength()))}return(e8!==0||n10.length===0)&&n10.push(s10.substring(a14,s10.inputLength())),n10}toString(){return this.patternInput}programSize(){return this.re2Input.numberOfInstructions()}groupCount(){return this.re2Input.numberOfCapturingGroups()}namedGroups(){return this.re2Input.namedGroups}equals(t8){return this===t8?!0:t8===null||this.constructor!==t8.constructor?!1:this.flagsInput===t8.flagsInput&&this.patternInput===t8.patternInput}},_1=1e6,D1=64*1024*1024;k1=256,M1=1024,F3=new Map;v3=class{_re2;_pattern;_flags;_global;_ignoreCase;_multiline;_lastIndex=0;_nativeRegex=null;_matcher=null;_matcherInput=null;maxResults;maxOutputBytes;signal;assertResultCount(t8){if(this.signal?.aborted)throw new Error("regular expression aborted");if(t8>this.maxResults)throw new f2(`regular expression result limit exceeded (${this.maxResults})`,"array_elements")}expandReplacement(t8,e8){let s10=new u5(this.maxOutputBytes,"regular expression replacement"),n10=this._re2.groupCount(),r7=this._re2.namedGroups();for(let a14=0;a14<e8.length;a14++){let o13=e8[a14];if(o13==="\\"&&a14+1<e8.length){s10.append(e8[++a14]);continue}if(o13!=="$"||a14+1>=e8.length){s10.append(o13);continue}if(e8[a14+1]==="{"){let h18=e8.indexOf("}",a14+2);if(h18!==-1){let p16=e8.slice(a14+2,h18),f15=r7?.[p16];if(f15!==void 0){s10.append(t8.group(f15)??""),a14=h18;continue}}}if(/\d/.test(e8[a14+1])){let h18=a14+1,p16=0;for(;h18<e8.length&&/\d/.test(e8[h18]);){let f15=p16*10+Number(e8[h18]);if(f15>n10)break;p16=f15,h18++}s10.append(t8.group(p16)??""),a14=h18-1;continue}s10.append(o13)}return s10.build()}acquireMatcher(t8){return this._matcher===null?(this._matcher=this._re2.matcher(t8),this._matcherInput=t8,this._matcher):(this._matcherInput!==t8&&(this._matcher.matcherInput.charSequence=t8,this._matcherInput=t8),this._matcher.reset(),this._matcher)}constructor(t8,e8="",s10={}){if(this._pattern=t8,this._flags=e8,this._global=e8.includes("g"),this._ignoreCase=e8.includes("i"),this._multiline=e8.includes("m"),this.maxResults=s10.maxResults??_1,this.maxOutputBytes=s10.maxOutputBytes??D1,this.signal=s10.signal,!Number.isSafeInteger(this.maxResults)||this.maxResults<0||!Number.isSafeInteger(this.maxOutputBytes)||this.maxOutputBytes<0)throw new Error("invalid regular expression limits");try{this._re2=H1(t8,e8)}catch(n10){if(n10 instanceof T4){let r7=n10.message||"",a14="";throw r7.includes("(?=")||r7.includes("(?!")||r7.includes("(?<")||r7.includes("(?<!")||t8.includes("(?=")||t8.includes("(?!")||t8.includes("(?<=")||t8.includes("(?<!")?a14=" Lookahead (?=, ?!) and lookbehind (?<=, ?<!) assertions are not supported in this environment because the regex engine uses RE2 for ReDoS protection. RE2 guarantees linear-time matching but cannot support these features.":(r7.includes("backreference")||/\\[1-9]/.test(t8))&&(a14=" Backreferences (\\1, \\2, etc.) are not supported in this environment because the regex engine uses RE2 for ReDoS protection. RE2 guarantees linear-time matching but cannot support backreferences."),new SyntaxError(`Invalid regular expression: /${t8}/: ${r7}${a14}`)}throw n10}}test(t8){return this._global&&(this._lastIndex=0),this.acquireMatcher(t8).find()}exec(t8){let e8=this.acquireMatcher(t8),s10=this._global?this._lastIndex:0;if(!e8.find(s10))return this._global&&(this._lastIndex=0),null;let n10=this._re2.groupCount(),r7=[];r7.push(e8.group(0)??"");for(let h18=1;h18<=n10;h18++){let p16=e8.group(h18);r7.push(p16)}let a14=r7;a14.index=e8.start(0),a14.input=t8;let o13=this._re2.namedGroups();if(o13&&Object.keys(o13).length>0){let h18=Object.create(null);for(let[p16,f15]of Object.entries(o13)){let A13=e8.group(f15);A13!==null&&(h18[p16]=A13)}a14.groups=h18}return this._global&&(this._lastIndex=e8.end(0),e8.start(0)===e8.end(0)&&this._lastIndex++),a14}match(t8){if(this._global&&(this._lastIndex=0),!this._global)return this.exec(t8);let e8=[],s10=this.acquireMatcher(t8),n10=0;for(;s10.find(n10);){let r7=s10.group(0)??"";if(this.assertResultCount(e8.length+1),e8.push(r7),n10=s10.end(0),s10.start(0)===s10.end(0)&&n10++,n10>t8.length)break}return e8.length>0?e8:null}replace(t8,e8){if(this._global&&(this._lastIndex=0),typeof e8=="string"){let f15=this._re2.matcher(t8),A13=new u5(this.maxOutputBytes,"regular expression replacement"),S15=0,O18=0,m16=0;for(;f15.find(O18);){this.assertResultCount(++m16);let R21=f15.start(0),b23=f15.end(0);if(A13.append(t8.slice(S15,R21)),A13.append(this.expandReplacement(f15,e8)),S15=b23,O18=b23>R21?b23:b23+1,!this._global||O18>t8.length)break}return A13.append(t8.slice(S15)),A13.build()}let s10=new u5(this.maxOutputBytes,"regular expression replacement"),n10=this._re2.matcher(t8),r7=0,a14=0,o13=0,h18=this._re2.groupCount(),p16=this._re2.namedGroups();for(;n10.find(a14);){this.assertResultCount(++o13),s10.append(t8.slice(r7,n10.start(0)));let f15=[],A13=n10.group(0)??"";for(let m16=1;m16<=h18;m16++)f15.push(n10.group(m16));if(f15.push(n10.start(0)),f15.push(t8),p16&&Object.keys(p16).length>0){let m16=Object.create(null);for(let[R21,b23]of Object.entries(p16))m16[R21]=n10.group(b23)??"";f15.push(m16)}let S15=n10.start(0),O18=n10.end(0);if(s10.append(e8(A13,...f15)),r7=O18,a14=r7,S15===O18&&a14++,!this._global||a14>t8.length)break}return s10.append(t8.slice(r7)),s10.build()}split(t8,e8){if(e8===0)return[];let s10=e8===void 0||e8<0?this.maxResults:Math.min(e8,this.maxResults),n10=[],r7=this._re2.matcher(t8),a14=0,o13=0;for(;n10.length<s10&&r7.find(o13);)this.assertResultCount(n10.length+1),n10.push(t8.slice(a14,r7.start(0))),a14=r7.end(0),o13=r7.end(0)>r7.start(0)?r7.end(0):r7.end(0)+1;return n10.length<s10&&n10.push(t8.slice(a14)),n10}search(t8){let e8=this.acquireMatcher(t8);return e8.find()?e8.start(0):-1}*matchAll(t8){if(!this._global)throw new Error("matchAll requires global flag");this._lastIndex=0;let e8=this._re2.matcher(t8),s10=this._re2.groupCount(),n10=this._re2.namedGroups(),r7=0,a14=0;for(;e8.find(r7);){this.assertResultCount(++a14);let o13=[];o13.push(e8.group(0)??"");for(let p16=1;p16<=s10;p16++)o13.push(e8.group(p16));let h18=o13;if(h18.index=e8.start(0),h18.input=t8,n10&&Object.keys(n10).length>0){let p16=Object.create(null);for(let[f15,A13]of Object.entries(n10)){let S15=e8.group(A13);S15!==null&&(p16[f15]=S15)}h18.groups=p16}if(yield h18,r7=e8.end(0),e8.start(0)===e8.end(0)&&r7++,r7>t8.length)break}}get native(){if(!this._nativeRegex)try{this._nativeRegex=new RegExp(this._pattern,this._flags)}catch{this._nativeRegex=new RegExp("",this._flags),Object.defineProperty(this._nativeRegex,"source",{value:this._pattern,writable:!1})}return this._nativeRegex}get source(){return this._pattern}get flags(){return this._flags}get global(){return this._global}get ignoreCase(){return this._ignoreCase}get multiline(){return this._multiline}get lastIndex(){return this._lastIndex}set lastIndex(t8){this._lastIndex=t8}};l1=class{_regex;constructor(t8){this._regex=t8}test(t8){return this._regex.global&&(this._regex.lastIndex=0),this._regex.test(t8)}exec(t8){return this._regex.exec(t8)}match(t8){return this._regex.global&&(this._regex.lastIndex=0),t8.match(this._regex)}replace(t8,e8){return this._regex.global&&(this._regex.lastIndex=0),t8.replace(this._regex,e8)}split(t8,e8){return t8.split(this._regex,e8)}search(t8){return t8.search(this._regex)}*matchAll(t8){if(!this._regex.global)throw new Error("matchAll requires global flag");this._regex.lastIndex=0;let e8=this._regex.exec(t8);for(;e8!==null;)yield e8,e8[0].length===0&&this._regex.lastIndex++,e8=this._regex.exec(t8)}get native(){return this._regex}get source(){return this._regex.source}get flags(){return this._regex.flags}get global(){return this._regex.global}get ignoreCase(){return this._regex.ignoreCase}get multiline(){return this._regex.multiline}get lastIndex(){return this._regex.lastIndex}set lastIndex(t8){this._regex.lastIndex=t8}};}});import{createRequire as createRequire14}from"node:module";function h4(t8,a14,n10){let e8=n10==="width"?Math.abs(t8):t8;if(!Number.isFinite(t8)||!Number.isSafeInteger(t8)||e8<0||e8>a14)throw new f2(`format ${n10} limit exceeded (${a14} bytes)`,"string_length")}function b6(t8,a14,n10,e8=f5){h4(a14,e8,"width"),n10!==-1&&h4(n10,e8,"precision");let s10=t8;n10>=0&&s10.length>n10&&(s10=s10.slice(0,n10));let l12=Math.abs(a14);if(l12>s10.length){if(x(s10)+l12-s10.length>e8)throw new f2(`formatted value size limit exceeded (${e8} bytes)`,"string_length");a14<0?s10=s10.padEnd(l12," "):s10=s10.padStart(l12," ")}if(x(s10)>e8)throw new f2(`formatted value size limit exceeded (${e8} bytes)`,"string_length");return s10}function p4(t8,a14,n10=f5){let e8=a14,s10=0,l12=-1,i22=!1;for(e8<t8.length&&t8[e8]==="-"&&(i22=!0,e8++);e8<t8.length&&/\d/.test(t8[e8]);)s10=s10*10+parseInt(t8[e8],10),e8++;if(e8<t8.length&&t8[e8]===".")for(e8++,l12=0;e8<t8.length&&/\d/.test(t8[e8]);)l12=l12*10+parseInt(t8[e8],10),e8++;return i22&&s10>0&&(s10=-s10),h4(s10,n10,"width"),l12!==-1&&h4(l12,n10,"precision"),[s10,l12,e8-a14]}function u7(t8,a14=f5){if(x(t8)>a14)throw new f2(`escaped string size limit exceeded (${a14} bytes)`,"string_length");let n10="",e8=0;for(;e8<t8.length;)if(t8[e8]==="\\"&&e8+1<t8.length)switch(t8[e8+1]){case"n":n10+=`
31
- `,e8+=2;break;case"t":n10+=" ",e8+=2;break;case"r":n10+="\r",e8+=2;break;case"\\":n10+="\\",e8+=2;break;case"a":n10+="\x07",e8+=2;break;case"b":n10+="\b",e8+=2;break;case"f":n10+="\f",e8+=2;break;case"v":n10+="\v",e8+=2;break;case"e":case"E":n10+="\x1B",e8+=2;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":{let l12="",i22=e8+1;for(;i22<t8.length&&i22<e8+4&&/[0-7]/.test(t8[i22]);)l12+=t8[i22],i22++;n10+=String.fromCharCode(parseInt(l12,8)),e8=i22;break}case"x":{let l12=[],i22=e8;for(;i22+3<t8.length&&t8[i22]==="\\"&&t8[i22+1]==="x"&&/[0-9a-fA-F]{2}/.test(t8.slice(i22+2,i22+4));)l12.push(parseInt(t8.slice(i22+2,i22+4),16)),i22+=4;if(l12.length>0){try{let o13=new TextDecoder("utf-8",{fatal:!0});n10+=o13.decode(new Uint8Array(l12))}catch{for(let o13 of l12)n10+=String.fromCharCode(o13)}e8=i22}else n10+=t8[e8],e8++;break}case"u":{let l12="",i22=e8+2;for(;i22<t8.length&&i22<e8+6&&/[0-9a-fA-F]/.test(t8[i22]);)l12+=t8[i22],i22++;l12?(n10+=String.fromCodePoint(parseInt(l12,16)),e8=i22):(n10+="\\u",e8+=2);break}case"U":{let l12="",i22=e8+2;for(;i22<t8.length&&i22<e8+10&&/[0-9a-fA-F]/.test(t8[i22]);)l12+=t8[i22],i22++;l12?(n10+=String.fromCodePoint(parseInt(l12,16)),e8=i22):(n10+="\\U",e8+=2);break}default:n10+=t8[e8],e8++}else n10+=t8[e8],e8++;return n10}var require15,f5,init_chunk_6D3WD6YU=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-6D3WD6YU.js"(){init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();require15=createRequire14(import.meta.url),f5=10*1024*1024}});import{createRequire as createRequire15}from"node:module";var require16,init_chunk_STHBFACM=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-STHBFACM.js"(){require16=createRequire15(import.meta.url)}});import{createRequire as createRequire16}from"node:module";async function a6(c18,e8,r7){if(!c18.createExclusive)throw new t2(e8,r7.directory?"mkdir":"open");await c18.createExclusive(e8,r7)}var require17,t2,init_chunk_RK2WBVP4=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-RK2WBVP4.js"(){require17=createRequire16(import.meta.url),t2=class extends Error{code="ENOSYS";constructor(e8,r7){super(`ENOSYS: filesystem cannot create entries atomically, ${r7} '${e8}'`),this.name="ExclusiveCreateUnsupportedError"}}}});import{createRequire as createRequire17}from"node:module";function o3(n10){if(!n10||n10==="/")return"/";let t8=n10.endsWith("/")&&n10!=="/"?n10.slice(0,-1):n10;t8.startsWith("/")||(t8=`/${t8}`);let r7=t8.split("/").filter(i22=>i22&&i22!=="."),e8=[];for(let i22 of r7)i22===".."?e8.pop():e8.push(i22);return`/${e8.join("/")}`||"/"}function l8(n10,t8){let r7=o3(n10),e8=o3(t8);return e8===r7||r7==="/"||e8.startsWith(`${r7}/`)}function u8(n10,t8){if(n10.includes("\0"))throw new Error(`ENOENT: path contains null byte, ${t8} '${n10}'`)}function s4(n10){let t8=o3(n10);if(t8==="/")return"/";let r7=t8.lastIndexOf("/");return r7===0?"/":t8.slice(0,r7)}function f6(n10,t8){if(t8.startsWith("/"))return o3(t8);let r7=n10==="/"?`/${t8}`:`${n10}/${t8}`;return o3(r7)}function c6(n10,t8){return n10==="/"?`/${t8}`:`${n10}/${t8}`}function a7(n10,t8){if(t8.startsWith("/"))return o3(t8);let r7=s4(n10);return o3(c6(r7,t8))}var require18,init_chunk_YUSFCOM7=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-YUSFCOM7.js"(){require18=createRequire17(import.meta.url)}});import{createRequire as createRequire18}from"node:module";function n4(e8){return e8 instanceof Error?e8.message:String(e8)}var require19,init_chunk_W5DWRFSU=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-W5DWRFSU.js"(){require19=createRequire18(import.meta.url)}});import{createRequire as createRequire19}from"node:module";function a8(r7,s10,t8){if(!r7)return r7;let e8=r7.replace(/\n\s+at\s.*/g,"");return t8&&(e8=e8.replace(/\bfile:\/\/\/?[^\s'",)}\]:]+/g,"<path>")),e8=e8.replace(s10?/(?:\/(?:Users|home|private|var|opt|Library|System|usr|etc|tmp|nix|snap|workspace|root|srv|mnt|app))\b[^\s'",)}\]:]*/g:/(?:\/(?:Users|home|private|var|opt|Library|System|usr|etc|tmp|nix|snap))\b[^\s'",)}\]:]*/g,"<path>"),e8=e8.replace(/node:internal\/[^\s'",)}\]:]+/g,"<internal>"),e8=e8.replace(/[A-Z]:\\[^\s'",)}\]:]+/g,"<path>"),t8&&(e8=e8.replace(/\\\\[^\s\\]+\\[^\s'",)}\]:]+/g,"<path>")),e8}function n5(r7){return a8(r7,!1,!1)}var require20,init_chunk_FOCWZZDE=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-FOCWZZDE.js"(){require20=createRequire19(import.meta.url)}});import{createRequire as createRequire20}from"node:module";var require21,g3,f7,h5,i16,j3,k3,m3,n6,l9,o4,init_chunk_NCUTH6QL=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-NCUTH6QL.js"(){require21=createRequire20(import.meta.url),g3=Object.create,f7=Object.defineProperty,h5=Object.getOwnPropertyDescriptor,i16=Object.getOwnPropertyNames,j3=Object.getPrototypeOf,k3=Object.prototype.hasOwnProperty,m3=(a14=>typeof require21<"u"?require21:typeof Proxy<"u"?new Proxy(a14,{get:(b23,c18)=>(typeof require21<"u"?require21:b23)[c18]}):a14)(function(a14){if(typeof require21<"u")return require21.apply(this,arguments);throw Error('Dynamic require of "'+a14+'" is not supported')}),n6=(a14,b23)=>()=>(b23||a14((b23={exports:{}}).exports,b23),b23.exports),l9=(a14,b23,c18,e8)=>{if(b23&&typeof b23=="object"||typeof b23=="function")for(let d11 of i16(b23))!k3.call(a14,d11)&&d11!==c18&&f7(a14,d11,{get:()=>b23[d11],enumerable:!(e8=h5(b23,d11))||e8.enumerable});return a14},o4=(a14,b23,c18)=>(c18=a14!=null?g3(j3(a14)):{},l9(b23||!a14||!a14.__esModule?f7(c18,"default",{value:a14,enumerable:!0}):c18,a14))}});import{createRequire as createRequire21}from"node:module";function n7(r7){let s10="",e8=0;for(;e8<r7.length;)if(r7[e8]==="\\"){if(e8+1>=r7.length){s10+="\\";break}let o13=r7[e8+1];switch(o13){case"\\":s10+="\\",e8+=2;break;case"n":s10+=`
32
- `,e8+=2;break;case"t":s10+=" ",e8+=2;break;case"r":s10+="\r",e8+=2;break;case"a":s10+="\x07",e8+=2;break;case"b":s10+="\b",e8+=2;break;case"f":s10+="\f",e8+=2;break;case"v":s10+="\v",e8+=2;break;case"e":case"E":s10+="\x1B",e8+=2;break;case"c":return{output:s10,stop:!0};case"0":{let a14="",t8=e8+2;for(;t8<r7.length&&t8<e8+5&&/[0-7]/.test(r7[t8]);)a14+=r7[t8],t8++;if(a14.length===0)s10+="\0";else{let l12=parseInt(a14,8)%256;s10+=String.fromCharCode(l12)}e8=t8;break}case"x":{let a14="",t8=e8+2;for(;t8<r7.length&&t8<e8+4&&/[0-9a-fA-F]/.test(r7[t8]);)a14+=r7[t8],t8++;if(a14.length===0)s10+="\\x",e8+=2;else{let l12=parseInt(a14,16);s10+=String.fromCharCode(l12),e8=t8}break}case"u":{let a14="",t8=e8+2;for(;t8<r7.length&&t8<e8+6&&/[0-9a-fA-F]/.test(r7[t8]);)a14+=r7[t8],t8++;if(a14.length===0)s10+="\\u",e8+=2;else{let l12=parseInt(a14,16);s10+=String.fromCodePoint(l12),e8=t8}break}case"U":{let a14="",t8=e8+2;for(;t8<r7.length&&t8<e8+10&&/[0-9a-fA-F]/.test(r7[t8]);)a14+=r7[t8],t8++;if(a14.length===0)s10+="\\U",e8+=2;else{let l12=parseInt(a14,16);try{s10+=String.fromCodePoint(l12)}catch{s10+=`\\U${a14}`}e8=t8}break}default:s10+=`\\${o13}`,e8+=2}}else s10+=r7[e8],e8++;return{output:s10,stop:!1}}var require22,c7,f8,init_chunk_AGH5UJJI=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-AGH5UJJI.js"(){require22=createRequire21(import.meta.url);c7={name:"echo",async execute(r7,s10){let e8=!1,o13=s10.xpgEcho??!1,a14=0;for(;a14<r7.length;){let l12=r7[a14];if(l12==="-n")e8=!0,a14++;else if(l12==="-e")o13=!0,a14++;else if(l12==="-E")o13=!1,a14++;else if(l12==="-ne"||l12==="-en")e8=!0,o13=!0,a14++;else break}let t8=r7.slice(a14).join(" ");if(o13){let l12=n7(t8);if(t8=l12.output,l12.stop)return{stdout:t8,stderr:"",exitCode:0,internalStdinConsumed:0}}return e8||(t8+=`
33
- `),{stdout:t8,stderr:"",exitCode:0,internalStdinConsumed:0}}},f8={name:"echo",flags:[{flag:"-n",type:"boolean"},{flag:"-e",type:"boolean"},{flag:"-E",type:"boolean"}],stdinType:"none",needsArgs:!0}}});var echo_PLLZYM2L_exports={};__export(echo_PLLZYM2L_exports,{echoCommand:()=>c7,flagsForFuzzing:()=>f8});import{createRequire as createRequire22}from"node:module";var require23,init_echo_PLLZYM2L=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/echo-PLLZYM2L.js"(){init_chunk_AGH5UJJI();init_chunk_NCUTH6QL();require23=createRequire22(import.meta.url)}});import{createRequire as createRequire23}from"node:module";function B3(e8,t8,n10){if(!Number.isSafeInteger(t8)||t8<0||t8>e8.limits.maxInputBytes)throw new f2(`${n10}: input size limit exceeded (${e8.limits.maxInputBytes} bytes)`,"string_length");e8.executionScope?.consumeInput(t8,n10)}async function y3(e8,t8,n10){let{cmdName:o13,allowStdinMarker:u15=!0,stopOnError:s10=!1,batchSize:f15=100}=n10;if(t8.length===0)return{files:[{filename:"",content:e8.stdin}],stderr:"",exitCode:0};let a14=[],c18="",l12=0;for(let i22=0;i22<t8.length;i22+=f15){let h18=t8.slice(i22,i22+f15),E19=await Promise.all(h18.map(async r7=>{if(u15&&r7==="-")return{filename:"-",content:e8.stdin,error:null};try{let w15=e8.fs.resolvePath(e8.cwd,r7),x23=await B(e8.fs,w15);return{filename:r7,content:x23,error:null}}catch{return{filename:r7,content:b,error:`${o13}: ${r7}: No such file or directory
34
- `}}}));for(let r7 of E19)if(r7.error){if(c18+=r7.error,l12=1,s10)return{files:a14,stderr:c18,exitCode:l12}}else a14.push({filename:r7.filename,content:r7.content})}return{files:a14,stderr:c18,exitCode:l12}}async function F4(e8,t8,n10){let o13=await y3(e8,t8,{...n10,stopOnError:!0});return o13.exitCode!==0?{ok:!1,error:{stdout:"",stderr:o13.stderr,exitCode:o13.exitCode}}:{ok:!0,content:o13.files.map(s10=>s10.content).join("")}}var require24,init_chunk_CHHWTPDH=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-CHHWTPDH.js"(){init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();require24=createRequire23(import.meta.url)}});import{createRequire as createRequire24}from"node:module";function e2(o13){if(o13 instanceof f2||o13 instanceof $||o13 instanceof d3)throw o13}var require25,init_chunk_U7UNEMLJ=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-U7UNEMLJ.js"(){init_chunk_CBM6J4AL();init_chunk_EFORKKSH();require25=createRequire24(import.meta.url)}});import{createRequire as createRequire25}from"node:module";function s5(t8){let e8=`${t8.name} - ${t8.summary}
31
+ `,e8+=2;break;case"t":n10+=" ",e8+=2;break;case"r":n10+="\r",e8+=2;break;case"\\":n10+="\\",e8+=2;break;case"a":n10+="\x07",e8+=2;break;case"b":n10+="\b",e8+=2;break;case"f":n10+="\f",e8+=2;break;case"v":n10+="\v",e8+=2;break;case"e":case"E":n10+="\x1B",e8+=2;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":{let l12="",i22=e8+1;for(;i22<t8.length&&i22<e8+4&&/[0-7]/.test(t8[i22]);)l12+=t8[i22],i22++;n10+=String.fromCharCode(parseInt(l12,8)),e8=i22;break}case"x":{let l12=[],i22=e8;for(;i22+3<t8.length&&t8[i22]==="\\"&&t8[i22+1]==="x"&&/[0-9a-fA-F]{2}/.test(t8.slice(i22+2,i22+4));)l12.push(parseInt(t8.slice(i22+2,i22+4),16)),i22+=4;if(l12.length>0){try{let o13=new TextDecoder("utf-8",{fatal:!0});n10+=o13.decode(new Uint8Array(l12))}catch{for(let o13 of l12)n10+=String.fromCharCode(o13)}e8=i22}else n10+=t8[e8],e8++;break}case"u":{let l12="",i22=e8+2;for(;i22<t8.length&&i22<e8+6&&/[0-9a-fA-F]/.test(t8[i22]);)l12+=t8[i22],i22++;l12?(n10+=String.fromCodePoint(parseInt(l12,16)),e8=i22):(n10+="\\u",e8+=2);break}case"U":{let l12="",i22=e8+2;for(;i22<t8.length&&i22<e8+10&&/[0-9a-fA-F]/.test(t8[i22]);)l12+=t8[i22],i22++;l12?(n10+=String.fromCodePoint(parseInt(l12,16)),e8=i22):(n10+="\\U",e8+=2);break}default:n10+=t8[e8],e8++}else n10+=t8[e8],e8++;return n10}var require15,f5,init_chunk_6D3WD6YU=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-6D3WD6YU.js"(){init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();require15=createRequire14(import.meta.url),f5=10*1024*1024}});import{createRequire as createRequire15}from"node:module";var require16,init_chunk_STHBFACM=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-STHBFACM.js"(){require16=createRequire15(import.meta.url)}});import{createRequire as createRequire16}from"node:module";async function a6(c18,e8,r7){if(!c18.createExclusive)throw new t2(e8,r7.directory?"mkdir":"open");await c18.createExclusive(e8,r7)}var require17,t2,init_chunk_RK2WBVP4=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-RK2WBVP4.js"(){require17=createRequire16(import.meta.url),t2=class extends Error{code="ENOSYS";constructor(e8,r7){super(`ENOSYS: filesystem cannot create entries atomically, ${r7} '${e8}'`),this.name="ExclusiveCreateUnsupportedError"}}}});import{createRequire as createRequire17}from"node:module";function o3(n10){if(!n10||n10==="/")return"/";let t8=n10.endsWith("/")&&n10!=="/"?n10.slice(0,-1):n10;t8.startsWith("/")||(t8=`/${t8}`);let r7=t8.split("/").filter(i22=>i22&&i22!=="."),e8=[];for(let i22 of r7)i22===".."?e8.pop():e8.push(i22);return`/${e8.join("/")}`||"/"}function l8(n10,t8){let r7=o3(n10),e8=o3(t8);return e8===r7||r7==="/"||e8.startsWith(`${r7}/`)}function u8(n10,t8){if(n10.includes("\0"))throw new Error(`ENOENT: path contains null byte, ${t8} '${n10}'`)}function s4(n10){let t8=o3(n10);if(t8==="/")return"/";let r7=t8.lastIndexOf("/");return r7===0?"/":t8.slice(0,r7)}function f6(n10,t8){if(t8.startsWith("/"))return o3(t8);let r7=n10==="/"?`/${t8}`:`${n10}/${t8}`;return o3(r7)}function c6(n10,t8){return n10==="/"?`/${t8}`:`${n10}/${t8}`}function a7(n10,t8){if(t8.startsWith("/"))return o3(t8);let r7=s4(n10);return o3(c6(r7,t8))}var require18,init_chunk_YUSFCOM7=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-YUSFCOM7.js"(){require18=createRequire17(import.meta.url)}});import{createRequire as createRequire18}from"node:module";function n4(e8){return e8 instanceof Error?e8.message:String(e8)}var require19,init_chunk_W5DWRFSU=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-W5DWRFSU.js"(){require19=createRequire18(import.meta.url)}});import{createRequire as createRequire19}from"node:module";function a8(r7,s10,t8){if(!r7)return r7;let e8=r7.replace(/\n\s+at\s.*/g,"");return t8&&(e8=e8.replace(/\bfile:\/\/\/?[^\s'",)}\]:]+/g,"<path>")),e8=e8.replace(s10?/(?:\/(?:Users|home|private|var|opt|Library|System|usr|etc|tmp|nix|snap|workspace|root|srv|mnt|app))\b[^\s'",)}\]:]*/g:/(?:\/(?:Users|home|private|var|opt|Library|System|usr|etc|tmp|nix|snap))\b[^\s'",)}\]:]*/g,"<path>"),e8=e8.replace(/node:internal\/[^\s'",)}\]:]+/g,"<internal>"),e8=e8.replace(/[A-Z]:\\[^\s'",)}\]:]+/g,"<path>"),t8&&(e8=e8.replace(/\\\\[^\s\\]+\\[^\s'",)}\]:]+/g,"<path>")),e8}function n5(r7){return a8(r7,!1,!1)}var require20,init_chunk_FOCWZZDE=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-FOCWZZDE.js"(){require20=createRequire19(import.meta.url)}});import{createRequire as createRequire20}from"node:module";var require21,g3,f7,h5,i16,j3,k3,m3,n6,l9,o4,init_chunk_NCUTH6QL=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-NCUTH6QL.js"(){require21=createRequire20(import.meta.url),g3=Object.create,f7=Object.defineProperty,h5=Object.getOwnPropertyDescriptor,i16=Object.getOwnPropertyNames,j3=Object.getPrototypeOf,k3=Object.prototype.hasOwnProperty,m3=(a14=>typeof require21<"u"?require21:typeof Proxy<"u"?new Proxy(a14,{get:(b23,c18)=>(typeof require21<"u"?require21:b23)[c18]}):a14)(function(a14){if(typeof require21<"u")return require21.apply(this,arguments);throw Error('Dynamic require of "'+a14+'" is not supported')}),n6=(a14,b23)=>()=>(b23||a14((b23={exports:{}}).exports,b23),b23.exports),l9=(a14,b23,c18,e8)=>{if(b23&&typeof b23=="object"||typeof b23=="function")for(let d11 of i16(b23))!k3.call(a14,d11)&&d11!==c18&&f7(a14,d11,{get:()=>b23[d11],enumerable:!(e8=h5(b23,d11))||e8.enumerable});return a14},o4=(a14,b23,c18)=>(c18=a14!=null?g3(j3(a14)):{},l9(b23||!a14||!a14.__esModule?f7(c18,"default",{value:a14,enumerable:!0}):c18,a14))}});import{createRequire as createRequire21}from"node:module";function n7(r7){let s10="",e8=0;for(;e8<r7.length;)if(r7[e8]==="\\"){if(e8+1>=r7.length){s10+="\\";break}let o13=r7[e8+1];switch(o13){case"\\":s10+="\\",e8+=2;break;case"n":s10+=`
32
+ `,e8+=2;break;case"t":s10+=" ",e8+=2;break;case"r":s10+="\r",e8+=2;break;case"a":s10+="\x07",e8+=2;break;case"b":s10+="\b",e8+=2;break;case"f":s10+="\f",e8+=2;break;case"v":s10+="\v",e8+=2;break;case"e":case"E":s10+="\x1B",e8+=2;break;case"c":return{output:s10,stop:!0};case"0":{let a14="",t8=e8+2;for(;t8<r7.length&&t8<e8+5&&/[0-7]/.test(r7[t8]);)a14+=r7[t8],t8++;if(a14.length===0)s10+="\0";else{let l12=parseInt(a14,8)%256;s10+=String.fromCharCode(l12)}e8=t8;break}case"x":{let a14="",t8=e8+2;for(;t8<r7.length&&t8<e8+4&&/[0-9a-fA-F]/.test(r7[t8]);)a14+=r7[t8],t8++;if(a14.length===0)s10+="\\x",e8+=2;else{let l12=parseInt(a14,16);s10+=String.fromCharCode(l12),e8=t8}break}case"u":{let a14="",t8=e8+2;for(;t8<r7.length&&t8<e8+6&&/[0-9a-fA-F]/.test(r7[t8]);)a14+=r7[t8],t8++;if(a14.length===0)s10+="\\u",e8+=2;else{let l12=parseInt(a14,16);s10+=String.fromCodePoint(l12),e8=t8}break}case"U":{let a14="",t8=e8+2;for(;t8<r7.length&&t8<e8+10&&/[0-9a-fA-F]/.test(r7[t8]);)a14+=r7[t8],t8++;if(a14.length===0)s10+="\\U",e8+=2;else{let l12=parseInt(a14,16);try{s10+=String.fromCodePoint(l12)}catch{s10+=`\\U${a14}`}e8=t8}break}default:s10+=`\\${o13}`,e8+=2}}else s10+=r7[e8],e8++;return{output:s10,stop:!1}}var require22,c7,f8,init_chunk_AGH5UJJI=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-AGH5UJJI.js"(){require22=createRequire21(import.meta.url);c7={name:"echo",async execute(r7,s10){let e8=!1,o13=s10.xpgEcho??!1,a14=0;for(;a14<r7.length;){let l12=r7[a14];if(l12==="-n")e8=!0,a14++;else if(l12==="-e")o13=!0,a14++;else if(l12==="-E")o13=!1,a14++;else if(l12==="-ne"||l12==="-en")e8=!0,o13=!0,a14++;else break}let t8=r7.slice(a14).join(" ");if(o13){let l12=n7(t8);if(t8=l12.output,l12.stop)return{stdout:t8,stderr:"",exitCode:0,internalStdinConsumed:0}}return e8||(t8+=`
33
+ `),{stdout:t8,stderr:"",exitCode:0,internalStdinConsumed:0}}},f8={name:"echo",flags:[{flag:"-n",type:"boolean"},{flag:"-e",type:"boolean"},{flag:"-E",type:"boolean"}],stdinType:"none",needsArgs:!0}}});var echo_PLLZYM2L_exports={};__export(echo_PLLZYM2L_exports,{echoCommand:()=>c7,flagsForFuzzing:()=>f8});import{createRequire as createRequire22}from"node:module";var require23,init_echo_PLLZYM2L=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/echo-PLLZYM2L.js"(){init_chunk_AGH5UJJI();init_chunk_NCUTH6QL();require23=createRequire22(import.meta.url)}});import{createRequire as createRequire23}from"node:module";function B3(e8,t8,n10){if(!Number.isSafeInteger(t8)||t8<0||t8>e8.limits.maxInputBytes)throw new f2(`${n10}: input size limit exceeded (${e8.limits.maxInputBytes} bytes)`,"string_length");e8.executionScope?.consumeInput(t8,n10)}async function y3(e8,t8,n10){let{cmdName:o13,allowStdinMarker:u15=!0,stopOnError:s10=!1,batchSize:f15=100}=n10;if(t8.length===0)return{files:[{filename:"",content:e8.stdin}],stderr:"",exitCode:0};let a14=[],c18="",l12=0;for(let i22=0;i22<t8.length;i22+=f15){let h18=t8.slice(i22,i22+f15),E19=await Promise.all(h18.map(async r7=>{if(u15&&r7==="-")return{filename:"-",content:e8.stdin,error:null};try{let w15=e8.fs.resolvePath(e8.cwd,r7),x23=await B(e8.fs,w15);return{filename:r7,content:x23,error:null}}catch{return{filename:r7,content:b,error:`${o13}: ${r7}: No such file or directory
34
+ `}}}));for(let r7 of E19)if(r7.error){if(c18+=r7.error,l12=1,s10)return{files:a14,stderr:c18,exitCode:l12}}else a14.push({filename:r7.filename,content:r7.content})}return{files:a14,stderr:c18,exitCode:l12}}async function F4(e8,t8,n10){let o13=await y3(e8,t8,{...n10,stopOnError:!0});return o13.exitCode!==0?{ok:!1,error:{stdout:"",stderr:o13.stderr,exitCode:o13.exitCode}}:{ok:!0,content:o13.files.map(s10=>s10.content).join("")}}var require24,init_chunk_CHHWTPDH=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-CHHWTPDH.js"(){init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();require24=createRequire23(import.meta.url)}});import{createRequire as createRequire24}from"node:module";function e2(o13){if(o13 instanceof f2||o13 instanceof $||o13 instanceof d3)throw o13}var require25,init_chunk_U7UNEMLJ=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-U7UNEMLJ.js"(){init_chunk_CBM6J4AL();init_chunk_EFORKKSH();require25=createRequire24(import.meta.url)}});import{createRequire as createRequire25}from"node:module";function s5(t8){let e8=`${t8.name} - ${t8.summary}
35
35
 
36
36
  `;if(e8+=`Usage: ${t8.usage}
37
37
  `,t8.description){if(e8+=`
@@ -52,14 +52,14 @@ Notes:
52
52
  `;for(let n10 of t8.notes)e8+=` ${n10}
53
53
  `}return{stdout:e8,stderr:"",exitCode:0}}function o5(t8){return t8.includes("--help")}function r5(t8,e8){return{stdout:"",stderr:e8.startsWith("--")?`${t8}: unrecognized option '${e8}'
54
54
  `:`${t8}: invalid option -- '${e8.replace(/^-/,"")}'
55
- `,exitCode:1}}var require26,init_chunk_QAYAQNCG=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-QAYAQNCG.js"(){require26=createRequire25(import.meta.url)}});import{createRequire as createRequire26}from"node:module";function x5(a14,i22,d11){let g13=new Map,h18=new Map;for(let[t8,e8]of Object.entries(d11)){let n10={name:t8,type:e8.type};e8.short&&g13.set(e8.short,n10),e8.long&&h18.set(e8.long,n10)}let s10=Object.create(null);for(let[t8,e8]of Object.entries(d11))e8.default!==void 0?s10[t8]=e8.default:e8.type==="boolean"&&(s10[t8]=!1);let b23=[],k19=!1;for(let t8=0;t8<i22.length;t8++){let e8=i22[t8];if(k19||!e8.startsWith("-")||e8==="-"){b23.push(e8);continue}if(e8==="--"){k19=!0;continue}if(e8.startsWith("--")){let n10=e8.indexOf("="),o13,r7;n10!==-1?(o13=e8.slice(2,n10),r7=e8.slice(n10+1)):o13=e8.slice(2);let l12=h18.get(o13);if(!l12)return{ok:!1,error:r5(a14,e8)};let{name:f15,type:u15}=l12;if(u15==="boolean")s10[f15]=!0;else{if(r7===void 0){if(t8+1>=i22.length)return{ok:!1,error:{stdout:"",stderr:`${a14}: option '--${o13}' requires an argument
55
+ `,exitCode:1}}var require26,init_chunk_QAYAQNCG=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-QAYAQNCG.js"(){require26=createRequire25(import.meta.url)}});import{createRequire as createRequire26}from"node:module";function x5(a14,i22,d11){let g13=new Map,h18=new Map;for(let[t8,e8]of Object.entries(d11)){let n10={name:t8,type:e8.type};e8.short&&g13.set(e8.short,n10),e8.long&&h18.set(e8.long,n10)}let s10=Object.create(null);for(let[t8,e8]of Object.entries(d11))e8.default!==void 0?s10[t8]=e8.default:e8.type==="boolean"&&(s10[t8]=!1);let b23=[],k19=!1;for(let t8=0;t8<i22.length;t8++){let e8=i22[t8];if(k19||!e8.startsWith("-")||e8==="-"){b23.push(e8);continue}if(e8==="--"){k19=!0;continue}if(e8.startsWith("--")){let n10=e8.indexOf("="),o13,r7;n10!==-1?(o13=e8.slice(2,n10),r7=e8.slice(n10+1)):o13=e8.slice(2);let l12=h18.get(o13);if(!l12)return{ok:!1,error:r5(a14,e8)};let{name:f15,type:u15}=l12;if(u15==="boolean")s10[f15]=!0;else{if(r7===void 0){if(t8+1>=i22.length)return{ok:!1,error:{stdout:"",stderr:`${a14}: option '--${o13}' requires an argument
56
56
  `,exitCode:1}};r7=i22[++t8]}s10[f15]=u15==="number"?parseInt(r7,10):r7}}else{let n10=e8.slice(1);for(let o13=0;o13<n10.length;o13++){let r7=n10[o13],l12=g13.get(r7);if(!l12)return{ok:!1,error:r5(a14,`-${r7}`)};let{name:f15,type:u15}=l12;if(u15==="boolean")s10[f15]=!0;else{let c18;if(o13+1<n10.length)c18=n10.slice(o13+1);else if(t8+1<i22.length)c18=i22[++t8];else return{ok:!1,error:{stdout:"",stderr:`${a14}: option requires an argument -- '${r7}'
57
- `,exitCode:1}};s10[f15]=u15==="number"?parseInt(c18,10):c18;break}}}}return{ok:!0,result:{flags:s10,positional:b23}}}var require27,init_chunk_QIQMJJZ4=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-QIQMJJZ4.js"(){init_chunk_QAYAQNCG();require27=createRequire26(import.meta.url)}});import{createRequire as createRequire27}from"node:module";function S2(n10){if(n10>=32){if(n10<127)return String.fromCharCode(n10);if(n10===127)return"^?";let t8=n10-128;return t8>=32?t8===127?"M-^?":`M-${String.fromCharCode(t8)}`:`M-^${String.fromCharCode(t8+64)}`}return`^${String.fromCharCode(n10+64)}`}function M2(n10,t8,r7){if(!t8.showNonprinting&&!t8.showTabs)return n10;let e8="",a14=o13=>{if(o13.length>r7-e8.length)throw new f2("cat: output size limit exceeded","output_size");e8+=o13};for(let o13=0;o13<n10.length;o13++){let i22=n10.charCodeAt(o13);i22===9?a14(t8.showTabs?"^I":" "):t8.showNonprinting?a14(S2(i22)):a14(n10[o13])}return e8}function _4(n10,t8,r7,e8){let a14=1;for(let s10=0;s10<n10.length;s10++)if(n10.charCodeAt(s10)===10&&a14++,a14>e8)throw new f2(`cat: array element limit exceeded (${e8})`,"array_elements");let o13=n10.split(`
57
+ `,exitCode:1}};s10[f15]=u15==="number"?parseInt(c18,10):c18;break}}}}return{ok:!0,result:{flags:s10,positional:b23}}}var require27,init_chunk_QIQMJJZ4=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-QIQMJJZ4.js"(){init_chunk_QAYAQNCG();require27=createRequire26(import.meta.url)}});import{createRequire as createRequire27}from"node:module";function S2(n10){if(n10>=32){if(n10<127)return String.fromCharCode(n10);if(n10===127)return"^?";let t8=n10-128;return t8>=32?t8===127?"M-^?":`M-${String.fromCharCode(t8)}`:`M-^${String.fromCharCode(t8+64)}`}return`^${String.fromCharCode(n10+64)}`}function M2(n10,t8,r7){if(!t8.showNonprinting&&!t8.showTabs)return n10;let e8="",a14=o13=>{if(o13.length>r7-e8.length)throw new f2("cat: output size limit exceeded","output_size");e8+=o13};for(let o13=0;o13<n10.length;o13++){let i22=n10.charCodeAt(o13);i22===9?a14(t8.showTabs?"^I":" "):t8.showNonprinting?a14(S2(i22)):a14(n10[o13])}return e8}function _4(n10,t8,r7,e8){let a14=1;for(let s10=0;s10<n10.length;s10++)if(n10.charCodeAt(s10)===10&&a14++,a14>e8)throw new f2(`cat: array element limit exceeded (${e8})`,"array_elements");let o13=n10.split(`
58
58
  `),i22="",c18=1,l12=!1,f15=s10=>{if(s10.length>r7-i22.length)throw new f2(`cat: output size limit exceeded (${r7} bytes)`,"output_size");i22+=s10};for(let s10=0;s10<o13.length;s10++){let m16=s10===o13.length-1,b23=!m16,u15=o13[s10];if(m16&&u15==="")break;let g13=u15==="";if(t8.squeeze&&g13&&l12)continue;l12=g13;let h18="";(t8.numberAll||t8.numberNonblank&&!g13)&&(h18=`${String(c18).padStart(6," ")} `,c18++);let d11=r7-i22.length-h18.length;if(d11<0)throw new f2(`cat: output size limit exceeded (${r7} bytes)`,"output_size");f15(h18+M2(u15,t8,d11)),b23&&f15(t8.showEnds?`$
59
59
  `:`
60
- `)}return i22}var require28,B4,I4,K2,Q2,init_chunk_MHDZERK4=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-MHDZERK4.js"(){init_chunk_CHHWTPDH();init_chunk_U7UNEMLJ();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();require28=createRequire27(import.meta.url),B4={name:"cat",summary:"concatenate files and print on the standard output",usage:"cat [OPTION]... [FILE]...",options:["-A, --show-all equivalent to -vET","-b, --number-nonblank number nonempty output lines, overrides -n","-e equivalent to -vE","-E, --show-ends display $ at end of each line","-n, --number number all output lines","-s, --squeeze-blank suppress repeated empty output lines","-t equivalent to -vT","-T, --show-tabs display TAB characters as ^I","-u (ignored)","-v, --show-nonprinting use ^ and M- notation, except for LFD and TAB"," --help display this help and exit"]},I4={number:{short:"n",long:"number",type:"boolean"},numberNonblank:{short:"b",long:"number-nonblank",type:"boolean"},showEnds:{short:"E",long:"show-ends",type:"boolean"},showTabs:{short:"T",long:"show-tabs",type:"boolean"},showNonprinting:{short:"v",long:"show-nonprinting",type:"boolean"},showAll:{short:"A",long:"show-all",type:"boolean"},squeeze:{short:"s",long:"squeeze-blank",type:"boolean"},vE:{short:"e",type:"boolean"},vT:{short:"t",type:"boolean"},ignored:{short:"u",type:"boolean"}},K2={name:"cat",async execute(n10,t8){if(o5(n10))return s5(B4);let r7=x5("cat",n10,I4);if(!r7.ok)return r7.error;let e8=r7.result.flags,a14=e8.showEnds||e8.showAll||e8.vE,o13=e8.showTabs||e8.showAll||e8.vT,i22=e8.showNonprinting||e8.showAll||e8.vE||e8.vT,c18=e8.squeeze,l12=e8.numberNonblank,f15=e8.number&&!l12,s10={numberAll:f15,numberNonblank:l12,showEnds:a14,showTabs:o13,showNonprinting:i22,squeeze:c18},m16=r7.result.positional,b23=t8.limits.maxStringLength,u15=Math.min(b23,t8.limits.maxOutputSize),g13=m16.length===0?["-"]:m16,h18="",d11=0,C18=0,E19,w15=a14||o13||i22||c18||f15||l12,v13="";for(let y14 of g13)try{let T19=y14==="-"?t8.stdin:await B(t8.fs,t8.fs.resolvePath(t8.cwd,y14)),A13=T19,z16=A13.length,N16=Math.min(w15?b23:u15,t8.limits.maxInputBytes);if(z16>N16-C18)throw new f2(`cat: ${w15?"input":"output"} size limit exceeded (${N16} bytes)`,w15?"string_length":"output_size");y14!=="-"&&B3(t8,z16,"cat"),C18+=z16,v13+=A13}catch(T19){e2(T19),h18+=`cat: ${y14}: No such file or directory
61
- `,d11=1}return w15?E19=_4(v13,s10,u15,t8.limits.maxArrayElements):E19=v13,{stdout:E19,stderr:h18,exitCode:d11,stdoutEncoding:"binary"}}};Q2={name:"cat",flags:[{flag:"-n",type:"boolean"},{flag:"-A",type:"boolean"},{flag:"-b",type:"boolean"},{flag:"-s",type:"boolean"},{flag:"-v",type:"boolean"},{flag:"-e",type:"boolean"},{flag:"-t",type:"boolean"}],stdinType:"text",needsFiles:!0}}});var cat_54BXBS6X_exports={};__export(cat_54BXBS6X_exports,{catCommand:()=>K2,flagsForFuzzing:()=>Q2});import{createRequire as createRequire28}from"node:module";var require29,init_cat_54BXBS6X=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/cat-54BXBS6X.js"(){init_chunk_MHDZERK4();init_chunk_CHHWTPDH();init_chunk_U7UNEMLJ();init_chunk_CBM6J4AL();init_chunk_STHBFACM();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require29=createRequire28(import.meta.url)}});import{createRequire as createRequire29}from"node:module";function O2(n10,e8,u15,r7={}){let t8=new Date(e8*1e3),a14=M3(t8,u15),c18="",s10=0,o13=0,i22=0,y14=new Map,h18=d11=>{let m16=x(d11);if(r7.maxOutputBytes!==void 0&&m16>r7.maxOutputBytes-s10)throw new f2(`strftime: output size limit exceeded (${r7.maxOutputBytes} bytes)`,"output_size");c18+=d11,s10+=m16};for(;o13<n10.length;){if(i22++,r7.maxOperations!==void 0&&i22>r7.maxOperations)throw new f2(`strftime: iteration limit exceeded (${r7.maxOperations})`,"iterations");if(n10[o13]==="%"&&o13+1<n10.length){let d11=n10[o13+1],m16;y14.has(d11)?m16=y14.get(d11)??null:(m16=w2(t8,a14,d11,u15),y14.set(d11,m16)),m16!==null?(h18(m16),o13+=2):(h18(n10[o13]),o13++)}else h18(n10[o13]),o13++}return c18}function M3(n10,e8){let u15={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",hour12:!1,timeZone:e8};try{let t8=new Intl.DateTimeFormat("en-US",u15).formatToParts(n10),a14=i22=>t8.find(y14=>y14.type===i22)?.value??"",c18=new Map([["Sun",0],["Mon",1],["Tue",2],["Wed",3],["Thu",4],["Fri",5],["Sat",6]]),s10=a14("weekday"),o13=(i22,y14)=>{let h18=Number.parseInt(i22,10);return Number.isNaN(h18)?y14:h18};return{year:o13(a14("year"),n10.getFullYear()),month:o13(a14("month"),n10.getMonth()+1),day:o13(a14("day"),n10.getDate()),hour:o13(a14("hour"),n10.getHours())%24,minute:o13(a14("minute"),n10.getMinutes()),second:o13(a14("second"),n10.getSeconds()),weekday:c18.get(s10)??n10.getDay()}}catch{return{year:n10.getFullYear(),month:n10.getMonth()+1,day:n10.getDate(),hour:n10.getHours(),minute:n10.getMinutes(),second:n10.getSeconds(),weekday:n10.getDay()}}}function w2(n10,e8,u15,r7){let t8=(o13,i22=2)=>String(o13).padStart(i22,"0"),a14=$4(e8.year,e8.month,e8.day),c18=l10(e8.year,e8.month,e8.day,e8.weekday,0),s10=l10(e8.year,e8.month,e8.day,e8.weekday,1);switch(u15){case"a":return["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][e8.weekday];case"A":return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][e8.weekday];case"b":case"h":return["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][e8.month-1];case"B":return["January","February","March","April","May","June","July","August","September","October","November","December"][e8.month-1];case"c":return`${["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][e8.weekday]} ${["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][e8.month-1]} ${String(e8.day).padStart(2," ")} ${t8(e8.hour)}:${t8(e8.minute)}:${t8(e8.second)} ${e8.year}`;case"C":return t8(Math.floor(e8.year/100));case"d":return t8(e8.day);case"D":return`${t8(e8.month)}/${t8(e8.day)}/${t8(e8.year%100)}`;case"e":return String(e8.day).padStart(2," ");case"F":return`${e8.year}-${t8(e8.month)}-${t8(e8.day)}`;case"g":return t8(S3(e8.year,e8.month,e8.day)%100);case"G":return String(S3(e8.year,e8.month,e8.day));case"H":return t8(e8.hour);case"I":return t8(e8.hour%12||12);case"j":return String(a14).padStart(3,"0");case"k":return String(e8.hour).padStart(2," ");case"l":return String(e8.hour%12||12).padStart(2," ");case"m":return t8(e8.month);case"M":return t8(e8.minute);case"n":return`
62
- `;case"N":return"000000000";case"p":return e8.hour<12?"AM":"PM";case"P":return e8.hour<12?"am":"pm";case"r":return`${t8(e8.hour%12||12)}:${t8(e8.minute)}:${t8(e8.second)} ${e8.hour<12?"AM":"PM"}`;case"R":return`${t8(e8.hour)}:${t8(e8.minute)}`;case"s":return String(Math.floor(n10.getTime()/1e3));case"S":return t8(e8.second);case"t":return" ";case"T":return`${t8(e8.hour)}:${t8(e8.minute)}:${t8(e8.second)}`;case"u":return String(e8.weekday===0?7:e8.weekday);case"U":return t8(c18);case"V":return t8(k4(e8.year,e8.month,e8.day));case"w":return String(e8.weekday);case"W":return t8(s10);case"x":return`${t8(e8.month)}/${t8(e8.day)}/${t8(e8.year%100)}`;case"X":return`${t8(e8.hour)}:${t8(e8.minute)}:${t8(e8.second)}`;case"y":return t8(e8.year%100);case"Y":return String(e8.year);case"z":return D3(n10,r7);case"Z":return T5(n10,r7);case"%":return"%";default:return null}}function D3(n10,e8){if(!e8){let c18=-n10.getTimezoneOffset(),s10=c18>=0?"+":"-",o13=Math.floor(Math.abs(c18)/60),i22=Math.abs(c18)%60;return`${s10}${String(o13).padStart(2,"0")}${String(i22).padStart(2,"0")}`}try{let o13=new Intl.DateTimeFormat("en-US",{timeZone:e8,timeZoneName:"longOffset"}).formatToParts(n10).find(i22=>i22.type==="timeZoneName");if(o13){let i22=o13.value.match(/GMT([+-])(\d{2}):(\d{2})/);if(i22)return`${i22[1]}${i22[2]}${i22[3]}`;if(o13.value==="GMT"||o13.value==="UTC")return"+0000"}}catch{}let u15=-n10.getTimezoneOffset(),r7=u15>=0?"+":"-",t8=Math.floor(Math.abs(u15)/60),a14=Math.abs(u15)%60;return`${r7}${String(t8).padStart(2,"0")}${String(a14).padStart(2,"0")}`}function T5(n10,e8){try{return new Intl.DateTimeFormat("en-US",{timeZone:e8,timeZoneName:"short"}).formatToParts(n10).find(a14=>a14.type==="timeZoneName")?.value??"UTC"}catch{return"UTC"}}function $4(n10,e8,u15){let r7=[31,28,31,30,31,30,31,31,30,31,30,31];(n10%4===0&&n10%100!==0||n10%400===0)&&(r7[1]=29);let a14=u15;for(let c18=0;c18<e8-1;c18++)a14+=r7[c18];return a14}function l10(n10,e8,u15,r7,t8){let a14=$4(n10,e8,u15),c18=new Date(n10,0,1).getDay(),s10=1+(7+t8-c18)%7,o13=a14-s10;return o13<0?0:Math.floor(o13/7)+1}function k4(n10,e8,u15){let r7=new Date(n10,e8-1,u15,12,0,0);r7.setDate(r7.getDate()+3-(r7.getDay()+6)%7);let t8=new Date(r7.getFullYear(),0,4);t8.setDate(t8.getDate()+3-(t8.getDay()+6)%7);let a14=r7.getTime()-t8.getTime();return 1+Math.round(a14/(10080*60*1e3))}function S3(n10,e8,u15){let r7=new Date(n10,e8-1,u15,12,0,0);return r7.setDate(r7.getDate()+3-(r7.getDay()+6)%7),r7.getFullYear()}var require30,init_chunk_UHHCL65P=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-UHHCL65P.js"(){init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();require30=createRequire29(import.meta.url)}});var require_sprintf=__commonJS({"../../../node_modules/.pnpm/sprintf-js@1.1.3/node_modules/sprintf-js/src/sprintf.js"(exports){(function(){"use strict";var re9={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function sprintf(key){return sprintf_format(sprintf_parse(key),arguments)}function vsprintf(fmt,argv){return sprintf.apply(null,[fmt].concat(argv||[]))}function sprintf_format(parse_tree,argv){var cursor=1,tree_length=parse_tree.length,arg,output="",i22,k19,ph2,pad,pad_character,pad_length,is_positive,sign;for(i22=0;i22<tree_length;i22++)if(typeof parse_tree[i22]=="string")output+=parse_tree[i22];else if(typeof parse_tree[i22]=="object"){if(ph2=parse_tree[i22],ph2.keys)for(arg=argv[cursor],k19=0;k19<ph2.keys.length;k19++){if(arg==null)throw new Error(sprintf('[sprintf] Cannot access property "%s" of undefined value "%s"',ph2.keys[k19],ph2.keys[k19-1]));arg=arg[ph2.keys[k19]]}else ph2.param_no?arg=argv[ph2.param_no]:arg=argv[cursor++];if(re9.not_type.test(ph2.type)&&re9.not_primitive.test(ph2.type)&&arg instanceof Function&&(arg=arg()),re9.numeric_arg.test(ph2.type)&&typeof arg!="number"&&isNaN(arg))throw new TypeError(sprintf("[sprintf] expecting number but found %T",arg));switch(re9.number.test(ph2.type)&&(is_positive=arg>=0),ph2.type){case"b":arg=parseInt(arg,10).toString(2);break;case"c":arg=String.fromCharCode(parseInt(arg,10));break;case"d":case"i":arg=parseInt(arg,10);break;case"j":arg=JSON.stringify(arg,null,ph2.width?parseInt(ph2.width):0);break;case"e":arg=ph2.precision?parseFloat(arg).toExponential(ph2.precision):parseFloat(arg).toExponential();break;case"f":arg=ph2.precision?parseFloat(arg).toFixed(ph2.precision):parseFloat(arg);break;case"g":arg=ph2.precision?String(Number(arg.toPrecision(ph2.precision))):parseFloat(arg);break;case"o":arg=(parseInt(arg,10)>>>0).toString(8);break;case"s":arg=String(arg),arg=ph2.precision?arg.substring(0,ph2.precision):arg;break;case"t":arg=String(!!arg),arg=ph2.precision?arg.substring(0,ph2.precision):arg;break;case"T":arg=Object.prototype.toString.call(arg).slice(8,-1).toLowerCase(),arg=ph2.precision?arg.substring(0,ph2.precision):arg;break;case"u":arg=parseInt(arg,10)>>>0;break;case"v":arg=arg.valueOf(),arg=ph2.precision?arg.substring(0,ph2.precision):arg;break;case"x":arg=(parseInt(arg,10)>>>0).toString(16);break;case"X":arg=(parseInt(arg,10)>>>0).toString(16).toUpperCase();break}re9.json.test(ph2.type)?output+=arg:(re9.number.test(ph2.type)&&(!is_positive||ph2.sign)?(sign=is_positive?"+":"-",arg=arg.toString().replace(re9.sign,"")):sign="",pad_character=ph2.pad_char?ph2.pad_char==="0"?"0":ph2.pad_char.charAt(1):" ",pad_length=ph2.width-(sign+arg).length,pad=ph2.width&&pad_length>0?pad_character.repeat(pad_length):"",output+=ph2.align?sign+arg+pad:pad_character==="0"?sign+pad+arg:pad+sign+arg)}return output}var sprintf_cache=Object.create(null);function sprintf_parse(fmt){if(sprintf_cache[fmt])return sprintf_cache[fmt];for(var _fmt=fmt,match,parse_tree=[],arg_names=0;_fmt;){if((match=re9.text.exec(_fmt))!==null)parse_tree.push(match[0]);else if((match=re9.modulo.exec(_fmt))!==null)parse_tree.push("%");else if((match=re9.placeholder.exec(_fmt))!==null){if(match[2]){arg_names|=1;var field_list=[],replacement_field=match[2],field_match=[];if((field_match=re9.key.exec(replacement_field))!==null)for(field_list.push(field_match[1]);(replacement_field=replacement_field.substring(field_match[0].length))!=="";)if((field_match=re9.key_access.exec(replacement_field))!==null)field_list.push(field_match[1]);else if((field_match=re9.index_access.exec(replacement_field))!==null)field_list.push(field_match[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");match[2]=field_list}else arg_names|=2;if(arg_names===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");parse_tree.push({placeholder:match[0],param_no:match[1],keys:match[2],sign:match[3],pad_char:match[4],align:match[5],width:match[6],precision:match[7],type:match[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");_fmt=_fmt.substring(match[0].length)}return sprintf_cache[fmt]=parse_tree}typeof exports<"u"&&(exports.sprintf=sprintf,exports.vsprintf=vsprintf),typeof window<"u"&&(window.sprintf=sprintf,window.vsprintf=vsprintf,typeof define=="function"&&define.amd&&define(function(){return{sprintf,vsprintf}}))})()}});import{createRequire as createRequire30}from"node:module";function X2(e8){let l12="",n10=0;for(;n10<e8.length;){let r7=e8[n10];if(r7<128){l12+=String.fromCharCode(r7),n10++;continue}if((r7&224)===192){if(n10+1<e8.length&&(e8[n10+1]&192)===128&&r7>=194){let o13=(r7&31)<<6|e8[n10+1]&63;l12+=String.fromCharCode(o13),n10+=2;continue}l12+=String.fromCharCode(r7),n10++;continue}if((r7&240)===224){if(n10+2<e8.length&&(e8[n10+1]&192)===128&&(e8[n10+2]&192)===128){if(r7===224&&e8[n10+1]<160){l12+=String.fromCharCode(r7),n10++;continue}let o13=(r7&15)<<12|(e8[n10+1]&63)<<6|e8[n10+2]&63;if(o13>=55296&&o13<=57343){l12+=String.fromCharCode(r7),n10++;continue}l12+=String.fromCharCode(o13),n10+=3;continue}l12+=String.fromCharCode(r7),n10++;continue}if((r7&248)===240&&r7<=244){if(n10+3<e8.length&&(e8[n10+1]&192)===128&&(e8[n10+2]&192)===128&&(e8[n10+3]&192)===128){if(r7===240&&e8[n10+1]<144){l12+=String.fromCharCode(r7),n10++;continue}let o13=(r7&7)<<18|(e8[n10+1]&63)<<12|(e8[n10+2]&63)<<6|e8[n10+3]&63;if(o13>1114111){l12+=String.fromCharCode(r7),n10++;continue}l12+=String.fromCodePoint(o13),n10+=4;continue}l12+=String.fromCharCode(r7),n10++;continue}l12+=String.fromCharCode(r7),n10++}return l12}function D4(e8,l12,n10,r7,o13=10*1024*1024){let i22="",t8=0,s10=0,a14=!1,f15="",c18=0,x23=p16=>{let d11=x(p16);if(d11>o13-c18)throw new f2(`printf: output size limit exceeded (${o13} bytes)`,"string_length");i22+=p16,c18+=d11};for(;t8<e8.length;)if(e8[t8]==="%"&&t8+1<e8.length){let p16=t8;if(t8++,e8[t8]==="%"){x23("%"),t8++;continue}let d11=e8.slice(p16).match(/^%(-?\d*)(?:\.(\d+))?\(([^)]*)\)T/);if(d11){let u15=d11[1]?parseInt(d11[1],10):0,F24=d11[2]?parseInt(d11[2],10):-1;h4(u15,o13,"width"),F24!==-1&&h4(F24,o13,"precision");let H20=d11[3],L21=d11[0],A13=l12[n10+s10]||"";s10++;let M20;A13===""||A13==="-1"||A13==="-2"?M20=Math.floor(Date.now()/1e3):M20=parseInt(A13,10)||0;let _13=O2(H20,M20,r7,{maxOperations:o13-c18,maxOutputBytes:o13-c18});_13=b6(_13,u15,F24,o13-c18),x23(_13),t8=p16+L21.length;continue}for(;t8<e8.length&&"+-0 #'".includes(e8[t8]);)t8++;let g13=!1;if(e8[t8]==="*")g13=!0,t8++;else for(;t8<e8.length&&/\d/.test(e8[t8]);)t8++;let v13=!1;if(e8[t8]===".")if(t8++,e8[t8]==="*")v13=!0,t8++;else for(;t8<e8.length&&/\d/.test(e8[t8]);)t8++;t8<e8.length&&"hlL".includes(e8[t8])&&t8++;let C18=e8[t8]||"";t8++;let m16=e8.slice(p16,t8);if(g13){let u15=parseInt(l12[n10+s10]||"0",10);h4(u15,o13-c18,"width"),s10++,m16=m16.replace("*",String(u15))}if(v13){let u15=parseInt(l12[n10+s10]||"0",10);u15>=0?h4(u15,o13-c18,"precision"):Number.isSafeInteger(u15)||h4(u15,o13-c18,"precision"),s10++,m16=m16.replace(".*",`.${u15}`)}J2(m16,o13-c18);let I22=l12[n10+s10]||"";s10++;let{value:q11,parseError:R21,parseErrMsg:W12,stopped:U12}=Q3(m16,C18,I22,o13-c18);if(x23(q11),R21&&(a14=!0,W12&&(f15=W12)),U12)return{result:i22,argsConsumed:s10,error:a14,errMsg:f15,stopped:!0}}else x23(e8[t8]),t8++;return{result:i22,argsConsumed:s10,error:a14,errMsg:f15,stopped:!1}}function Q3(e8,l12,n10,r7){let o13=!1,i22="";switch(l12){case"d":case"i":{let t8=z2(n10);return o13=h6,o13&&(i22=`printf: ${n10}: invalid number
60
+ `)}return i22}var require28,B4,I4,K2,Q2,init_chunk_MHDZERK4=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-MHDZERK4.js"(){init_chunk_CHHWTPDH();init_chunk_U7UNEMLJ();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();require28=createRequire27(import.meta.url),B4={name:"cat",summary:"concatenate files and print on the standard output",usage:"cat [OPTION]... [FILE]...",options:["-A, --show-all equivalent to -vET","-b, --number-nonblank number nonempty output lines, overrides -n","-e equivalent to -vE","-E, --show-ends display $ at end of each line","-n, --number number all output lines","-s, --squeeze-blank suppress repeated empty output lines","-t equivalent to -vT","-T, --show-tabs display TAB characters as ^I","-u (ignored)","-v, --show-nonprinting use ^ and M- notation, except for LFD and TAB"," --help display this help and exit"]},I4={number:{short:"n",long:"number",type:"boolean"},numberNonblank:{short:"b",long:"number-nonblank",type:"boolean"},showEnds:{short:"E",long:"show-ends",type:"boolean"},showTabs:{short:"T",long:"show-tabs",type:"boolean"},showNonprinting:{short:"v",long:"show-nonprinting",type:"boolean"},showAll:{short:"A",long:"show-all",type:"boolean"},squeeze:{short:"s",long:"squeeze-blank",type:"boolean"},vE:{short:"e",type:"boolean"},vT:{short:"t",type:"boolean"},ignored:{short:"u",type:"boolean"}},K2={name:"cat",async execute(n10,t8){if(o5(n10))return s5(B4);let r7=x5("cat",n10,I4);if(!r7.ok)return r7.error;let e8=r7.result.flags,a14=e8.showEnds||e8.showAll||e8.vE,o13=e8.showTabs||e8.showAll||e8.vT,i22=e8.showNonprinting||e8.showAll||e8.vE||e8.vT,c18=e8.squeeze,l12=e8.numberNonblank,f15=e8.number&&!l12,s10={numberAll:f15,numberNonblank:l12,showEnds:a14,showTabs:o13,showNonprinting:i22,squeeze:c18},m16=r7.result.positional,b23=t8.limits.maxStringLength,u15=Math.min(b23,t8.limits.maxOutputSize),g13=m16.length===0?["-"]:m16,h18="",d11=0,C18=0,E19,w15=a14||o13||i22||c18||f15||l12,v13="";for(let y14 of g13)try{let T19=y14==="-"?t8.stdin:await B(t8.fs,t8.fs.resolvePath(t8.cwd,y14)),A13=T19,z16=A13.length,N16=Math.min(w15?b23:u15,t8.limits.maxInputBytes);if(z16>N16-C18)throw new f2(`cat: ${w15?"input":"output"} size limit exceeded (${N16} bytes)`,w15?"string_length":"output_size");y14!=="-"&&B3(t8,z16,"cat"),C18+=z16,v13+=A13}catch(T19){e2(T19),h18+=`cat: ${y14}: No such file or directory
61
+ `,d11=1}return w15?E19=_4(v13,s10,u15,t8.limits.maxArrayElements):E19=v13,{stdout:E19,stderr:h18,exitCode:d11,stdoutEncoding:"binary"}}};Q2={name:"cat",flags:[{flag:"-n",type:"boolean"},{flag:"-A",type:"boolean"},{flag:"-b",type:"boolean"},{flag:"-s",type:"boolean"},{flag:"-v",type:"boolean"},{flag:"-e",type:"boolean"},{flag:"-t",type:"boolean"}],stdinType:"text",needsFiles:!0}}});var cat_54BXBS6X_exports={};__export(cat_54BXBS6X_exports,{catCommand:()=>K2,flagsForFuzzing:()=>Q2});import{createRequire as createRequire28}from"node:module";var require29,init_cat_54BXBS6X=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/cat-54BXBS6X.js"(){init_chunk_MHDZERK4();init_chunk_CHHWTPDH();init_chunk_U7UNEMLJ();init_chunk_CBM6J4AL();init_chunk_STHBFACM();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require29=createRequire28(import.meta.url)}});import{createRequire as createRequire29}from"node:module";function O2(n10,e8,u15,r7={}){let t8=new Date(e8*1e3),a14=M3(t8,u15),c18="",s10=0,o13=0,i22=0,y14=new Map,h18=d11=>{let m16=x(d11);if(r7.maxOutputBytes!==void 0&&m16>r7.maxOutputBytes-s10)throw new f2(`strftime: output size limit exceeded (${r7.maxOutputBytes} bytes)`,"output_size");c18+=d11,s10+=m16};for(;o13<n10.length;){if(i22++,r7.maxOperations!==void 0&&i22>r7.maxOperations)throw new f2(`strftime: iteration limit exceeded (${r7.maxOperations})`,"iterations");if(n10[o13]==="%"&&o13+1<n10.length){let d11=n10[o13+1],m16;y14.has(d11)?m16=y14.get(d11)??null:(m16=w2(t8,a14,d11,u15),y14.set(d11,m16)),m16!==null?(h18(m16),o13+=2):(h18(n10[o13]),o13++)}else h18(n10[o13]),o13++}return c18}function M3(n10,e8){let u15={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",hour12:!1,timeZone:e8};try{let t8=new Intl.DateTimeFormat("en-US",u15).formatToParts(n10),a14=i22=>t8.find(y14=>y14.type===i22)?.value??"",c18=new Map([["Sun",0],["Mon",1],["Tue",2],["Wed",3],["Thu",4],["Fri",5],["Sat",6]]),s10=a14("weekday"),o13=(i22,y14)=>{let h18=Number.parseInt(i22,10);return Number.isNaN(h18)?y14:h18};return{year:o13(a14("year"),n10.getFullYear()),month:o13(a14("month"),n10.getMonth()+1),day:o13(a14("day"),n10.getDate()),hour:o13(a14("hour"),n10.getHours())%24,minute:o13(a14("minute"),n10.getMinutes()),second:o13(a14("second"),n10.getSeconds()),weekday:c18.get(s10)??n10.getDay()}}catch{return{year:n10.getFullYear(),month:n10.getMonth()+1,day:n10.getDate(),hour:n10.getHours(),minute:n10.getMinutes(),second:n10.getSeconds(),weekday:n10.getDay()}}}function w2(n10,e8,u15,r7){let t8=(o13,i22=2)=>String(o13).padStart(i22,"0"),a14=$4(e8.year,e8.month,e8.day),c18=l10(e8.year,e8.month,e8.day,e8.weekday,0),s10=l10(e8.year,e8.month,e8.day,e8.weekday,1);switch(u15){case"a":return["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][e8.weekday];case"A":return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][e8.weekday];case"b":case"h":return["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][e8.month-1];case"B":return["January","February","March","April","May","June","July","August","September","October","November","December"][e8.month-1];case"c":return`${["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][e8.weekday]} ${["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][e8.month-1]} ${String(e8.day).padStart(2," ")} ${t8(e8.hour)}:${t8(e8.minute)}:${t8(e8.second)} ${e8.year}`;case"C":return t8(Math.floor(e8.year/100));case"d":return t8(e8.day);case"D":return`${t8(e8.month)}/${t8(e8.day)}/${t8(e8.year%100)}`;case"e":return String(e8.day).padStart(2," ");case"F":return`${e8.year}-${t8(e8.month)}-${t8(e8.day)}`;case"g":return t8(S3(e8.year,e8.month,e8.day)%100);case"G":return String(S3(e8.year,e8.month,e8.day));case"H":return t8(e8.hour);case"I":return t8(e8.hour%12||12);case"j":return String(a14).padStart(3,"0");case"k":return String(e8.hour).padStart(2," ");case"l":return String(e8.hour%12||12).padStart(2," ");case"m":return t8(e8.month);case"M":return t8(e8.minute);case"n":return`
62
+ `;case"N":return"000000000";case"p":return e8.hour<12?"AM":"PM";case"P":return e8.hour<12?"am":"pm";case"r":return`${t8(e8.hour%12||12)}:${t8(e8.minute)}:${t8(e8.second)} ${e8.hour<12?"AM":"PM"}`;case"R":return`${t8(e8.hour)}:${t8(e8.minute)}`;case"s":return String(Math.floor(n10.getTime()/1e3));case"S":return t8(e8.second);case"t":return" ";case"T":return`${t8(e8.hour)}:${t8(e8.minute)}:${t8(e8.second)}`;case"u":return String(e8.weekday===0?7:e8.weekday);case"U":return t8(c18);case"V":return t8(k4(e8.year,e8.month,e8.day));case"w":return String(e8.weekday);case"W":return t8(s10);case"x":return`${t8(e8.month)}/${t8(e8.day)}/${t8(e8.year%100)}`;case"X":return`${t8(e8.hour)}:${t8(e8.minute)}:${t8(e8.second)}`;case"y":return t8(e8.year%100);case"Y":return String(e8.year);case"z":return D3(n10,r7);case"Z":return T5(n10,r7);case"%":return"%";default:return null}}function D3(n10,e8){if(!e8){let c18=-n10.getTimezoneOffset(),s10=c18>=0?"+":"-",o13=Math.floor(Math.abs(c18)/60),i22=Math.abs(c18)%60;return`${s10}${String(o13).padStart(2,"0")}${String(i22).padStart(2,"0")}`}try{let o13=new Intl.DateTimeFormat("en-US",{timeZone:e8,timeZoneName:"longOffset"}).formatToParts(n10).find(i22=>i22.type==="timeZoneName");if(o13){let i22=o13.value.match(/GMT([+-])(\d{2}):(\d{2})/);if(i22)return`${i22[1]}${i22[2]}${i22[3]}`;if(o13.value==="GMT"||o13.value==="UTC")return"+0000"}}catch{}let u15=-n10.getTimezoneOffset(),r7=u15>=0?"+":"-",t8=Math.floor(Math.abs(u15)/60),a14=Math.abs(u15)%60;return`${r7}${String(t8).padStart(2,"0")}${String(a14).padStart(2,"0")}`}function T5(n10,e8){try{return new Intl.DateTimeFormat("en-US",{timeZone:e8,timeZoneName:"short"}).formatToParts(n10).find(a14=>a14.type==="timeZoneName")?.value??"UTC"}catch{return"UTC"}}function $4(n10,e8,u15){let r7=[31,28,31,30,31,30,31,31,30,31,30,31];(n10%4===0&&n10%100!==0||n10%400===0)&&(r7[1]=29);let a14=u15;for(let c18=0;c18<e8-1;c18++)a14+=r7[c18];return a14}function l10(n10,e8,u15,r7,t8){let a14=$4(n10,e8,u15),c18=new Date(n10,0,1).getDay(),s10=1+(7+t8-c18)%7,o13=a14-s10;return o13<0?0:Math.floor(o13/7)+1}function k4(n10,e8,u15){let r7=new Date(n10,e8-1,u15,12,0,0);r7.setDate(r7.getDate()+3-(r7.getDay()+6)%7);let t8=new Date(r7.getFullYear(),0,4);t8.setDate(t8.getDate()+3-(t8.getDay()+6)%7);let a14=r7.getTime()-t8.getTime();return 1+Math.round(a14/(10080*60*1e3))}function S3(n10,e8,u15){let r7=new Date(n10,e8-1,u15,12,0,0);return r7.setDate(r7.getDate()+3-(r7.getDay()+6)%7),r7.getFullYear()}var require30,init_chunk_UHHCL65P=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-UHHCL65P.js"(){init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();require30=createRequire29(import.meta.url)}});var require_sprintf=__commonJS({"../../../node_modules/.pnpm/sprintf-js@1.1.3/node_modules/sprintf-js/src/sprintf.js"(exports){(function(){"use strict";var re9={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function sprintf(key){return sprintf_format(sprintf_parse(key),arguments)}function vsprintf(fmt,argv){return sprintf.apply(null,[fmt].concat(argv||[]))}function sprintf_format(parse_tree,argv){var cursor=1,tree_length=parse_tree.length,arg,output="",i22,k19,ph2,pad,pad_character,pad_length,is_positive,sign;for(i22=0;i22<tree_length;i22++)if(typeof parse_tree[i22]=="string")output+=parse_tree[i22];else if(typeof parse_tree[i22]=="object"){if(ph2=parse_tree[i22],ph2.keys)for(arg=argv[cursor],k19=0;k19<ph2.keys.length;k19++){if(arg==null)throw new Error(sprintf('[sprintf] Cannot access property "%s" of undefined value "%s"',ph2.keys[k19],ph2.keys[k19-1]));arg=arg[ph2.keys[k19]]}else ph2.param_no?arg=argv[ph2.param_no]:arg=argv[cursor++];if(re9.not_type.test(ph2.type)&&re9.not_primitive.test(ph2.type)&&arg instanceof Function&&(arg=arg()),re9.numeric_arg.test(ph2.type)&&typeof arg!="number"&&isNaN(arg))throw new TypeError(sprintf("[sprintf] expecting number but found %T",arg));switch(re9.number.test(ph2.type)&&(is_positive=arg>=0),ph2.type){case"b":arg=parseInt(arg,10).toString(2);break;case"c":arg=String.fromCharCode(parseInt(arg,10));break;case"d":case"i":arg=parseInt(arg,10);break;case"j":arg=JSON.stringify(arg,null,ph2.width?parseInt(ph2.width):0);break;case"e":arg=ph2.precision?parseFloat(arg).toExponential(ph2.precision):parseFloat(arg).toExponential();break;case"f":arg=ph2.precision?parseFloat(arg).toFixed(ph2.precision):parseFloat(arg);break;case"g":arg=ph2.precision?String(Number(arg.toPrecision(ph2.precision))):parseFloat(arg);break;case"o":arg=(parseInt(arg,10)>>>0).toString(8);break;case"s":arg=String(arg),arg=ph2.precision?arg.substring(0,ph2.precision):arg;break;case"t":arg=String(!!arg),arg=ph2.precision?arg.substring(0,ph2.precision):arg;break;case"T":arg=Object.prototype.toString.call(arg).slice(8,-1).toLowerCase(),arg=ph2.precision?arg.substring(0,ph2.precision):arg;break;case"u":arg=parseInt(arg,10)>>>0;break;case"v":arg=arg.valueOf(),arg=ph2.precision?arg.substring(0,ph2.precision):arg;break;case"x":arg=(parseInt(arg,10)>>>0).toString(16);break;case"X":arg=(parseInt(arg,10)>>>0).toString(16).toUpperCase();break}re9.json.test(ph2.type)?output+=arg:(re9.number.test(ph2.type)&&(!is_positive||ph2.sign)?(sign=is_positive?"+":"-",arg=arg.toString().replace(re9.sign,"")):sign="",pad_character=ph2.pad_char?ph2.pad_char==="0"?"0":ph2.pad_char.charAt(1):" ",pad_length=ph2.width-(sign+arg).length,pad=ph2.width&&pad_length>0?pad_character.repeat(pad_length):"",output+=ph2.align?sign+arg+pad:pad_character==="0"?sign+pad+arg:pad+sign+arg)}return output}var sprintf_cache=Object.create(null);function sprintf_parse(fmt){if(sprintf_cache[fmt])return sprintf_cache[fmt];for(var _fmt=fmt,match,parse_tree=[],arg_names=0;_fmt;){if((match=re9.text.exec(_fmt))!==null)parse_tree.push(match[0]);else if((match=re9.modulo.exec(_fmt))!==null)parse_tree.push("%");else if((match=re9.placeholder.exec(_fmt))!==null){if(match[2]){arg_names|=1;var field_list=[],replacement_field=match[2],field_match=[];if((field_match=re9.key.exec(replacement_field))!==null)for(field_list.push(field_match[1]);(replacement_field=replacement_field.substring(field_match[0].length))!=="";)if((field_match=re9.key_access.exec(replacement_field))!==null)field_list.push(field_match[1]);else if((field_match=re9.index_access.exec(replacement_field))!==null)field_list.push(field_match[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");match[2]=field_list}else arg_names|=2;if(arg_names===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");parse_tree.push({placeholder:match[0],param_no:match[1],keys:match[2],sign:match[3],pad_char:match[4],align:match[5],width:match[6],precision:match[7],type:match[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");_fmt=_fmt.substring(match[0].length)}return sprintf_cache[fmt]=parse_tree}typeof exports<"u"&&(exports.sprintf=sprintf,exports.vsprintf=vsprintf),typeof window<"u"&&(window.sprintf=sprintf,window.vsprintf=vsprintf,typeof define=="function"&&define.amd&&define(function(){return{sprintf,vsprintf}}))})()}});import{createRequire as createRequire30}from"node:module";function X2(e8){let l12="",n10=0;for(;n10<e8.length;){let r7=e8[n10];if(r7<128){l12+=String.fromCharCode(r7),n10++;continue}if((r7&224)===192){if(n10+1<e8.length&&(e8[n10+1]&192)===128&&r7>=194){let o13=(r7&31)<<6|e8[n10+1]&63;l12+=String.fromCharCode(o13),n10+=2;continue}l12+=String.fromCharCode(r7),n10++;continue}if((r7&240)===224){if(n10+2<e8.length&&(e8[n10+1]&192)===128&&(e8[n10+2]&192)===128){if(r7===224&&e8[n10+1]<160){l12+=String.fromCharCode(r7),n10++;continue}let o13=(r7&15)<<12|(e8[n10+1]&63)<<6|e8[n10+2]&63;if(o13>=55296&&o13<=57343){l12+=String.fromCharCode(r7),n10++;continue}l12+=String.fromCharCode(o13),n10+=3;continue}l12+=String.fromCharCode(r7),n10++;continue}if((r7&248)===240&&r7<=244){if(n10+3<e8.length&&(e8[n10+1]&192)===128&&(e8[n10+2]&192)===128&&(e8[n10+3]&192)===128){if(r7===240&&e8[n10+1]<144){l12+=String.fromCharCode(r7),n10++;continue}let o13=(r7&7)<<18|(e8[n10+1]&63)<<12|(e8[n10+2]&63)<<6|e8[n10+3]&63;if(o13>1114111){l12+=String.fromCharCode(r7),n10++;continue}l12+=String.fromCodePoint(o13),n10+=4;continue}l12+=String.fromCharCode(r7),n10++;continue}l12+=String.fromCharCode(r7),n10++}return l12}function D4(e8,l12,n10,r7,o13=10*1024*1024){let i22="",t8=0,s10=0,a14=!1,f15="",c18=0,x23=p16=>{let d11=x(p16);if(d11>o13-c18)throw new f2(`printf: output size limit exceeded (${o13} bytes)`,"string_length");i22+=p16,c18+=d11};for(;t8<e8.length;)if(e8[t8]==="%"&&t8+1<e8.length){let p16=t8;if(t8++,e8[t8]==="%"){x23("%"),t8++;continue}let d11=e8.slice(p16).match(/^%(-?\d*)(?:\.(\d+))?\(([^)]*)\)T/);if(d11){let u15=d11[1]?parseInt(d11[1],10):0,F24=d11[2]?parseInt(d11[2],10):-1;h4(u15,o13,"width"),F24!==-1&&h4(F24,o13,"precision");let H20=d11[3],L21=d11[0],A13=l12[n10+s10]||"";s10++;let M20;A13===""||A13==="-1"||A13==="-2"?M20=Math.floor(Date.now()/1e3):M20=parseInt(A13,10)||0;let _13=O2(H20,M20,r7,{maxOperations:o13-c18,maxOutputBytes:o13-c18});_13=b6(_13,u15,F24,o13-c18),x23(_13),t8=p16+L21.length;continue}for(;t8<e8.length&&"+-0 #'".includes(e8[t8]);)t8++;let g13=!1;if(e8[t8]==="*")g13=!0,t8++;else for(;t8<e8.length&&/\d/.test(e8[t8]);)t8++;let v13=!1;if(e8[t8]===".")if(t8++,e8[t8]==="*")v13=!0,t8++;else for(;t8<e8.length&&/\d/.test(e8[t8]);)t8++;t8<e8.length&&"hlL".includes(e8[t8])&&t8++;let C18=e8[t8]||"";t8++;let m16=e8.slice(p16,t8);if(g13){let u15=parseInt(l12[n10+s10]||"0",10);h4(u15,o13-c18,"width"),s10++,m16=m16.replace("*",String(u15))}if(v13){let u15=parseInt(l12[n10+s10]||"0",10);u15>=0?h4(u15,o13-c18,"precision"):Number.isSafeInteger(u15)||h4(u15,o13-c18,"precision"),s10++,m16=m16.replace(".*",`.${u15}`)}J2(m16,o13-c18);let I22=l12[n10+s10]||"";s10++;let{value:q11,parseError:R21,parseErrMsg:W12,stopped:U12}=Q3(m16,C18,I22,o13-c18);if(x23(q11),R21&&(a14=!0,W12&&(f15=W12)),U12)return{result:i22,argsConsumed:s10,error:a14,errMsg:f15,stopped:!0}}else x23(e8[t8]),t8++;return{result:i22,argsConsumed:s10,error:a14,errMsg:f15,stopped:!1}}function Q3(e8,l12,n10,r7){let o13=!1,i22="";switch(l12){case"d":case"i":{let t8=z2(n10);return o13=h6,o13&&(i22=`printf: ${n10}: invalid number
63
63
  `),{value:P3(e8,t8),parseError:o13,parseErrMsg:i22}}case"o":{let t8=z2(n10);return o13=h6,o13&&(i22=`printf: ${n10}: invalid number
64
64
  `),{value:K3(e8,t8),parseError:o13,parseErrMsg:i22}}case"u":{let t8=z2(n10);o13=h6,o13&&(i22=`printf: ${n10}: invalid number
65
65
  `);let s10=t8<0?t8>>>0:t8;return{value:P3(e8.replace("u","d"),s10),parseError:o13,parseErrMsg:i22}}case"x":case"X":{let t8=z2(n10);return o13=h6,o13&&(i22=`printf: ${n10}: invalid number
@@ -67,12 +67,12 @@ Notes:
67
67
  `}}}}function J2(e8,l12){let n10=e8.match(/^%[-+0 #' ]*(\d*)(?:\.(\d*))?/);if(!n10)return;let r7=n10[1]?Number(n10[1]):0,o13=n10[2]!==void 0?Number(n10[2]):-1;h4(r7,l12,"width"),o13!==-1&&h4(o13,l12,"precision")}function z2(e8){h6=!1;let l12=e8.trimStart(),n10=l12!==l12.trimEnd();if(e8=l12.trimEnd(),e8.startsWith("'")&&e8.length>=2||e8.startsWith('"')&&e8.length>=2)return e8.charCodeAt(1);if(e8.startsWith("\\'")&&e8.length>=3||e8.startsWith('\\"')&&e8.length>=3)return e8.charCodeAt(2);if(e8.startsWith("+")&&(e8=e8.slice(1)),e8.startsWith("0x")||e8.startsWith("0X")){let r7=parseInt(e8,16);return Number.isNaN(r7)?(h6=!0,0):(n10&&(h6=!0),r7)}if(e8.startsWith("0")&&e8.length>1&&/^-?0[0-7]+$/.test(e8))return n10&&(h6=!0),parseInt(e8,8)||0;if(/^\d+#/.test(e8)){h6=!0;let r7=e8.match(/^(\d+)#/);return r7?parseInt(r7[1],10):0}if(e8!==""&&!/^-?\d+$/.test(e8)){h6=!0;let r7=parseInt(e8,10);return Number.isNaN(r7)?0:r7}return n10&&(h6=!0),parseInt(e8,10)||0}function P3(e8,l12){let n10=e8.match(/^%([- +#0']*)(\d*)(\.(\d*))?[diu]$/);if(!n10)return(0,import_sprintf_js.sprintf)(e8.replace(/\.\d*/,""),l12);let r7=n10[1]||"",o13=n10[2]?parseInt(n10[2],10):0,i22=n10[3]!==void 0?n10[4]?parseInt(n10[4],10):0:-1,t8=l12<0,s10=Math.abs(l12),a14=String(s10);i22>=0&&(a14=a14.padStart(i22,"0"));let f15="";t8?f15="-":r7.includes("+")?f15="+":r7.includes(" ")&&(f15=" ");let c18=f15+a14;return o13>c18.length&&(r7.includes("-")?c18=c18.padEnd(o13," "):r7.includes("0")&&i22<0?c18=f15+a14.padStart(o13-f15.length,"0"):c18=c18.padStart(o13," ")),c18}function K3(e8,l12){let n10=e8.match(/^%([- +#0']*)(\d*)(\.(\d*))?o$/);if(!n10)return(0,import_sprintf_js.sprintf)(e8,l12);let r7=n10[1]||"",o13=n10[2]?parseInt(n10[2],10):0,i22=n10[3]!==void 0?n10[4]?parseInt(n10[4],10):0:-1,t8=Math.abs(l12).toString(8);i22>=0&&(t8=t8.padStart(i22,"0")),r7.includes("#")&&!t8.startsWith("0")&&(t8=`0${t8}`);let s10=t8;return o13>s10.length&&(r7.includes("-")?s10=s10.padEnd(o13," "):r7.includes("0")&&i22<0?s10=s10.padStart(o13,"0"):s10=s10.padStart(o13," ")),s10}function Y2(e8,l12){let n10=e8.includes("X"),r7=e8.match(/^%([- +#0']*)(\d*)(\.(\d*))?[xX]$/);if(!r7)return(0,import_sprintf_js.sprintf)(e8,l12);let o13=r7[1]||"",i22=r7[2]?parseInt(r7[2],10):0,t8=r7[3]!==void 0?r7[4]?parseInt(r7[4],10):0:-1,s10=Math.abs(l12).toString(16);n10&&(s10=s10.toUpperCase()),t8>=0&&(s10=s10.padStart(t8,"0"));let a14="";o13.includes("#")&&l12!==0&&(a14=n10?"0X":"0x");let f15=a14+s10;return i22>f15.length&&(o13.includes("-")?f15=f15.padEnd(i22," "):o13.includes("0")&&t8<0?f15=a14+s10.padStart(i22-a14.length,"0"):f15=f15.padStart(i22," ")),f15}function y4(e8,l12){if(e8===""){if(l12<2)throw new f2(`printf: output size limit exceeded (${l12} bytes)`,"string_length");return"''"}if(/^[a-zA-Z0-9_./-]+$/.test(e8)){if(x(e8)>l12)throw new f2(`printf: output size limit exceeded (${l12} bytes)`,"string_length");return e8}let n10=/[\x00-\x1f\x7f-\xff]/.test(e8),r7=n10?3:0;for(let i22 of e8){let t8=i22.charCodeAt(0);if(n10?i22==="'"||i22==="\\"||i22===`
68
68
  `||i22===" "||i22==="\r"||i22==="\x07"||i22==="\b"||i22==="\f"||i22==="\v"||i22==="\x1B"||i22==='"'?r7+=2:t8<32||t8>=127&&t8<=255?r7+=4:r7+=x(i22):r7+=x(i22)+(" |&;<>()$`\\\"'*?[#~=%!{}".includes(i22)?1:0),r7>l12)throw new f2(`printf: output size limit exceeded (${l12} bytes)`,"string_length")}if(n10){let i22="$'";for(let t8 of e8){let s10=t8.charCodeAt(0);t8==="'"?i22+="\\'":t8==="\\"?i22+="\\\\":t8===`
69
69
  `?i22+="\\n":t8===" "?i22+="\\t":t8==="\r"?i22+="\\r":t8==="\x07"?i22+="\\a":t8==="\b"?i22+="\\b":t8==="\f"?i22+="\\f":t8==="\v"?i22+="\\v":t8==="\x1B"?i22+="\\E":s10<32||s10>=127&&s10<=255?i22+=`\\${s10.toString(8).padStart(3,"0")}`:t8==='"'?i22+='\\"':i22+=t8}return i22+="'",i22}let o13="";for(let i22 of e8)" |&;<>()$`\\\"'*?[#~=%!{}".includes(i22)?o13+=`\\${i22}`:o13+=i22;return o13}function B5(e8,l12,n10){let r7=e8.match(/^%(-?)(\d*)(\.(\d*))?s$/);if(!r7)return(0,import_sprintf_js.sprintf)(e8.replace(/0+(?=\d)/,""),l12);let o13=r7[1]==="-",i22=r7[2]?parseInt(r7[2],10):0,t8=r7[3]!==void 0?r7[4]?parseInt(r7[4],10):0:-1,s10=o13?-i22:i22;return b6(l12,s10,t8,n10)}function O3(e8,l12,n10){let r7=y4(l12,n10),o13=e8.match(/^%(-?)(\d*)q$/);if(!o13)return r7;let i22=o13[1]==="-",t8=o13[2]?parseInt(o13[2],10):0;return b6(r7,i22?-t8:t8,-1,n10)}function ee(e8,l12,n10){let r7=e8.match(/^%([- +#0']*)(\d*)(\.(\d*))?[eEfFgG]$/);if(!r7)return(0,import_sprintf_js.sprintf)(e8,n10);let o13=r7[1]||"",i22=r7[2]?parseInt(r7[2],10):0,t8=r7[3]!==void 0?r7[4]?parseInt(r7[4],10):0:6,s10,a14=l12.toLowerCase();if(a14==="e"?(s10=n10.toExponential(t8),s10=s10.replace(/e([+-])(\d)$/,"e$10$2"),l12==="E"&&(s10=s10.toUpperCase())):a14==="f"?(s10=n10.toFixed(t8),o13.includes("#")&&t8===0&&!s10.includes(".")&&(s10+=".")):a14==="g"?(s10=n10.toPrecision(t8||1),o13.includes("#")||(s10=s10.replace(/\.?0+$/,""),s10=s10.replace(/\.?0+e/,"e")),s10=s10.replace(/e([+-])(\d)$/,"e$10$2"),l12==="G"&&(s10=s10.toUpperCase())):s10=n10.toString(),n10>=0&&(o13.includes("+")?s10=`+${s10}`:o13.includes(" ")&&(s10=` ${s10}`)),i22>s10.length)if(o13.includes("-"))s10=s10.padEnd(i22," ");else if(o13.includes("0")){let f15=s10.match(/^[+ -]/)?.[0]||"",c18=f15?s10.slice(1):s10;s10=f15+c18.padStart(i22-f15.length,"0")}else s10=s10.padStart(i22," ");return s10}function te(e8,l12){if(x(e8)>l12)throw new f2(`printf: output size limit exceeded (${l12} bytes)`,"string_length");let n10="",r7=0;for(;r7<e8.length;)if(e8[r7]==="\\"&&r7+1<e8.length)switch(e8[r7+1]){case"n":n10+=`
70
- `,r7+=2;break;case"t":n10+=" ",r7+=2;break;case"r":n10+="\r",r7+=2;break;case"\\":n10+="\\",r7+=2;break;case"a":n10+="\x07",r7+=2;break;case"b":n10+="\b",r7+=2;break;case"f":n10+="\f",r7+=2;break;case"v":n10+="\v",r7+=2;break;case"c":return{value:n10,stopped:!0};case"x":{let i22=[],t8=r7;for(;t8+1<e8.length&&e8[t8]==="\\"&&e8[t8+1]==="x";){let s10="",a14=t8+2;for(;a14<e8.length&&a14<t8+4&&/[0-9a-fA-F]/.test(e8[a14]);)s10+=e8[a14],a14++;if(s10)i22.push(parseInt(s10,16)),t8=a14;else break}i22.length>0?(n10+=X2(i22),r7=t8):(n10+="\\x",r7+=2);break}case"u":{let i22="",t8=r7+2;for(;t8<e8.length&&t8<r7+6&&/[0-9a-fA-F]/.test(e8[t8]);)i22+=e8[t8],t8++;i22?(n10+=String.fromCodePoint(parseInt(i22,16)),r7=t8):(n10+="\\u",r7+=2);break}case"0":{let i22="",t8=r7+2;for(;t8<e8.length&&t8<r7+5&&/[0-7]/.test(e8[t8]);)i22+=e8[t8],t8++;i22?n10+=String.fromCharCode(parseInt(i22,8)):n10+="\0",r7=t8;break}case"1":case"2":case"3":case"4":case"5":case"6":case"7":{let i22="",t8=r7+1;for(;t8<e8.length&&t8<r7+4&&/[0-7]/.test(e8[t8]);)i22+=e8[t8],t8++;n10+=String.fromCharCode(parseInt(i22,8)),r7=t8;break}default:n10+=e8[r7],r7++}else n10+=e8[r7],r7++;return{value:n10,stopped:!1}}var import_sprintf_js,require31,G3,ae,h6,fe,init_chunk_4AKAIZPW=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-4AKAIZPW.js"(){init_chunk_UHHCL65P();init_chunk_6D3WD6YU();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_W5DWRFSU();init_chunk_QAYAQNCG();import_sprintf_js=__toESM(require_sprintf(),1),require31=createRequire30(import.meta.url);G3={name:"printf",summary:"format and print data",usage:"printf [-v var] FORMAT [ARGUMENT...]",options:[" -v var assign the output to shell variable VAR rather than display it"," --help display this help and exit"],notes:["FORMAT controls the output like in C printf.","Escape sequences: \\n (newline), \\t (tab), \\\\ (backslash)","Format specifiers: %s (string), %d (integer), %f (float), %x (hex), %o (octal), %% (literal %)","Width and precision: %10s (width 10), %.2f (2 decimal places), %010d (zero-padded)","Flags: %- (left-justify), %+ (show sign), %0 (zero-pad)"]},ae={name:"printf",async execute(e8,l12){if(o5(e8))return s5(G3);if(e8.length===0)return{stdout:"",stderr:`printf: usage: printf format [arguments]
70
+ `,r7+=2;break;case"t":n10+=" ",r7+=2;break;case"r":n10+="\r",r7+=2;break;case"\\":n10+="\\",r7+=2;break;case"a":n10+="\x07",r7+=2;break;case"b":n10+="\b",r7+=2;break;case"f":n10+="\f",r7+=2;break;case"v":n10+="\v",r7+=2;break;case"c":return{value:n10,stopped:!0};case"x":{let i22=[],t8=r7;for(;t8+1<e8.length&&e8[t8]==="\\"&&e8[t8+1]==="x";){let s10="",a14=t8+2;for(;a14<e8.length&&a14<t8+4&&/[0-9a-fA-F]/.test(e8[a14]);)s10+=e8[a14],a14++;if(s10)i22.push(parseInt(s10,16)),t8=a14;else break}i22.length>0?(n10+=X2(i22),r7=t8):(n10+="\\x",r7+=2);break}case"u":{let i22="",t8=r7+2;for(;t8<e8.length&&t8<r7+6&&/[0-9a-fA-F]/.test(e8[t8]);)i22+=e8[t8],t8++;i22?(n10+=String.fromCodePoint(parseInt(i22,16)),r7=t8):(n10+="\\u",r7+=2);break}case"0":{let i22="",t8=r7+2;for(;t8<e8.length&&t8<r7+5&&/[0-7]/.test(e8[t8]);)i22+=e8[t8],t8++;i22?n10+=String.fromCharCode(parseInt(i22,8)):n10+="\0",r7=t8;break}case"1":case"2":case"3":case"4":case"5":case"6":case"7":{let i22="",t8=r7+1;for(;t8<e8.length&&t8<r7+4&&/[0-7]/.test(e8[t8]);)i22+=e8[t8],t8++;n10+=String.fromCharCode(parseInt(i22,8)),r7=t8;break}default:n10+=e8[r7],r7++}else n10+=e8[r7],r7++;return{value:n10,stopped:!1}}var import_sprintf_js,require31,G3,ae,h6,fe,init_chunk_4AKAIZPW=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-4AKAIZPW.js"(){init_chunk_UHHCL65P();init_chunk_6D3WD6YU();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_W5DWRFSU();init_chunk_QAYAQNCG();import_sprintf_js=__toESM(require_sprintf(),1),require31=createRequire30(import.meta.url);G3={name:"printf",summary:"format and print data",usage:"printf [-v var] FORMAT [ARGUMENT...]",options:[" -v var assign the output to shell variable VAR rather than display it"," --help display this help and exit"],notes:["FORMAT controls the output like in C printf.","Escape sequences: \\n (newline), \\t (tab), \\\\ (backslash)","Format specifiers: %s (string), %d (integer), %f (float), %x (hex), %o (octal), %% (literal %)","Width and precision: %10s (width 10), %.2f (2 decimal places), %010d (zero-padded)","Flags: %- (left-justify), %+ (show sign), %0 (zero-pad)"]},ae={name:"printf",async execute(e8,l12){if(o5(e8))return s5(G3);if(e8.length===0)return{stdout:"",stderr:`printf: usage: printf format [arguments]
71
71
  `,exitCode:2,internalStdinConsumed:0};let n10=null,r7=0;for(;r7<e8.length;){let t8=e8[r7];if(t8==="--"){r7++;break}if(t8==="-v"){if(r7+1>=e8.length)return{stdout:"",stderr:`printf: -v: option requires an argument
72
72
  `,exitCode:1,internalStdinConsumed:0};if(n10=e8[r7+1],!/^[a-zA-Z_][a-zA-Z0-9_]*(?:\[[^\]\n]+\])?$/.test(n10)||/[;\r\\]/.test(n10)||n10.includes(".."))return{stdout:"",stderr:`printf: \`${n10}': not a valid identifier
73
73
  `,exitCode:2,internalStdinConsumed:0};r7+=2}else{if(t8.startsWith("-")&&t8!=="-")break;break}}if(r7>=e8.length)return{stdout:"",stderr:`printf: usage: printf format [arguments]
74
74
  `,exitCode:1,internalStdinConsumed:0};let o13=e8[r7],i22=e8.slice(r7+1);try{let t8=Math.min(l12.limits.maxStringLength,l12.limits.maxOutputSize),s10=u7(o13,t8),a14="",f15=0,c18=0,x23=!1,p16="",d11=l12.env.get("TZ");do{let{result:g13,argsConsumed:v13,error:C18,errMsg:b23,stopped:m16}=D4(s10,i22,c18,d11,t8-f15),I22=x(g13);if(I22>t8-f15)throw new f2(`printf: output size limit exceeded (${t8} bytes)`,"string_length");if(a14+=g13,f15+=I22,c18+=v13,C18&&(x23=!0,b23&&(p16=b23)),m16)break}while(c18<i22.length&&c18>0);if(c18===0&&i22.length>0,n10){let g13=n10.match(/^([a-zA-Z_][a-zA-Z0-9_]*)\[(['"]?)(.+?)\2\]$/);if(g13){let v13=g13[1],C18=g13[3];if(C18=C18.replace(/\$([a-zA-Z_][a-zA-Z0-9_]*)/g,(b23,m16)=>l12.env.get(m16)??""),l12.assignShellVariable)await l12.assignShellVariable(v13,a14,C18);else throw new Error("printf -v array assignment requires an interpreter assignment gateway")}else if(l12.assignShellVariable)await l12.assignShellVariable(n10,a14);else{if(!/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(n10))throw new Error(`${n10}: not a valid identifier`);l12.env.set(n10,a14)}return{stdout:"",stderr:p16,exitCode:x23?1:0,internalStdinConsumed:0}}return{stdout:a14,stderr:p16,exitCode:x23?1:0,internalStdinConsumed:0}}catch(t8){if(t8 instanceof f2||typeof t8=="object"&&t8!==null&&"name"in t8&&t8.name==="ExitError")throw t8;return{stdout:"",stderr:`printf: ${n4(t8)}
75
- `,exitCode:1,internalStdinConsumed:0}}}};h6=!1;fe={name:"printf",flags:[{flag:"-v",type:"value",valueHint:"string"}],stdinType:"none",needsArgs:!0}}});var printf_V42QCPHL_exports={};__export(printf_V42QCPHL_exports,{flagsForFuzzing:()=>fe,printfCommand:()=>ae});import{createRequire as createRequire31}from"node:module";var require32,init_printf_V42QCPHL=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/printf-V42QCPHL.js"(){init_chunk_4AKAIZPW();init_chunk_UHHCL65P();init_chunk_6D3WD6YU();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_W5DWRFSU();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require32=createRequire31(import.meta.url)}});import{createRequire as createRequire32}from"node:module";function b7(e8){if(e8.identity!==void 0)return`identity:${e8.identity}`;if(e8.dev!==void 0&&e8.ino!==void 0)return`inode:${String(e8.dev)}:${String(e8.ino)}`}function P4(e8){let t8=e8 instanceof Error?e8.message:String(e8);return t8.includes("ENOENT")||t8.includes("no such file")}async function f9(e8,t8,r7){let n10=o3(t8),s10;try{s10=await e8.stat(n10)}catch(a14){if(!P4(a14))return{existence:"unknown"}}if(s10!==void 0){let a14=b7(s10);try{return{existence:"existing",canonicalPath:o3(await e8.realpath(n10)),stableIdentity:a14}}catch{return a14===void 0?{existence:"unknown"}:{existence:"existing",stableIdentity:a14}}}let i22=[],o13=n10;for(;;){r7?.checkpoint();let a14=s4(o13);if(a14===o13)return{existence:"unknown"};i22.unshift(o13.slice(a14==="/"?1:a14.length+1)),o13=a14;try{let c18=o3(await e8.realpath(o13));return{existence:"missing",canonicalPath:i22.reduce((h18,d11)=>c6(h18,d11),c18)}}catch(c18){if(!P4(c18))return{existence:"missing"}}}}async function T6(e8,t8,r7){let[n10,s10]=await Promise.all([f9(e8,t8),f9(e8,r7)]);return n10.existence==="unknown"||s10.existence==="unknown"?"unknown":n10.existence==="missing"||s10.existence==="missing"?n10.existence!==s10.existence?"different":n10.canonicalPath!==void 0&&n10.canonicalPath===s10.canonicalPath?"same":"unknown":n10.stableIdentity!==void 0&&s10.stableIdentity!==void 0?n10.stableIdentity===s10.stableIdentity?"same":"different":n10.canonicalPath!==void 0&&n10.canonicalPath===s10.canonicalPath?"same":"unknown"}async function z3(e8,t8,r7,n10){let[s10,i22]=await Promise.all([f9(e8,t8,n10),f9(e8,r7,n10)]);return s10.existence!=="existing"||s10.canonicalPath===void 0||i22.existence==="unknown"||i22.canonicalPath===void 0?"unknown":l8(s10.canonicalPath,i22.canonicalPath)?"inside":"outside"}async function D5(e8,t8){let r7=e8.budget??new x6(e8),n10=[{kind:"enter",path:o3(e8.root),depth:0}],s10=new Set;for(;n10.length>0;){r7.checkpoint(0);let i22=n10.pop();if(!i22)break;if(i22.kind==="leave"){e8.includeLeave&&await t8({path:i22.path,depth:i22.depth,stat:i22.stat,isSymlink:i22.isSymlink,phase:"leave"}),i22.identity&&s10.delete(i22.identity);continue}r7.visit(i22.depth);let o13=await e8.fs.lstat(i22.path),a14=o13.isSymbolicLink,c18=a14&&e8.symlinks==="follow"?await e8.fs.stat(i22.path):o13;if(await t8({path:i22.path,depth:i22.depth,stat:c18,isSymlink:a14,phase:"enter"}),!c18.isDirectory||a14&&e8.symlinks!=="follow")continue;let h18=b7(c18)??await e8.fs.realpath(i22.path).then(o3).catch(()=>{});if(h18!==void 0){if(s10.has(h18))throw new w3(e8.site,i22.path,"symbolic-link directory cycle detected");s10.add(h18)}n10.push({kind:"leave",path:i22.path,depth:i22.depth,stat:c18,isSymlink:a14,identity:h18});let d11=await e8.fs.readdir(i22.path);r7.checkpoint(),d11.sort((p16,$22)=>p16.localeCompare($22));for(let p16=d11.length-1;p16>=0;p16--)n10.push({kind:"enter",path:c6(i22.path,d11[p16]),depth:i22.depth+1})}}var require33,w3,x6,init_chunk_2WBUTDF5=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-2WBUTDF5.js"(){init_chunk_YUSFCOM7();init_chunk_EFORKKSH();init_chunk_FOCWZZDE();require33=createRequire32(import.meta.url),w3=class extends Error{operation;virtualPath;name="FileSystemPolicyError";constructor(t8,r7,n10){super(`${t8}: ${n5(n10)}`),this.operation=t8,this.virtualPath=r7}};x6=class{options;entries=0;discoveredEntries=1;work=0;constructor(t8){this.options=t8}checkpoint(t8=1){if(this.options.signal?.aborted)throw new $;if(this.options.executionScope?.throwIfAborted(this.options.site),!Number.isSafeInteger(t8)||t8<0||t8>this.options.limits.maxTraversalWork-this.work)throw new f2(`${this.options.site}: ${this.options.label??"filesystem traversal work"} limit exceeded (${this.options.limits.maxTraversalWork})`,"iterations");this.work+=t8,this.options.executionScope?.consumeWork(t8,`${this.options.site} filesystem traversal`)}visit(t8){if(this.checkpoint(),t8>this.options.limits.maxTraversalDepth)throw new f2(`${this.options.site}: ${this.options.label??"filesystem traversal"} depth limit exceeded (${this.options.limits.maxTraversalDepth})`,"recursion");if(++this.entries>this.options.limits.maxTraversalEntries)throw new f2(`${this.options.site}: ${this.options.label??"filesystem traversal"} entry limit exceeded (${this.options.limits.maxTraversalEntries})`,"iterations")}reserve(t8){if(!Number.isSafeInteger(t8)||t8<0||t8>this.options.limits.maxTraversalEntries-this.discoveredEntries)throw new f2(`${this.options.site}: ${this.options.label??"filesystem traversal"} entry limit exceeded (${this.options.limits.maxTraversalEntries})`,"iterations");this.discoveredEntries+=t8}discover(t8){this.reserve(t8),this.checkpoint(t8)}}}});import{createRequire as createRequire33}from"node:module";function h7(s10,t8,e8){if(x(e8)>s10.limits.maxOutputSize-x(t8))throw new f2(`ls: output size limit exceeded (${s10.limits.maxOutputSize} bytes)`,"output_size");return t8+e8}function tt(s10,t8){if(t8>s10.limits.maxArrayElements)throw new f2(`ls: array element limit exceeded (${s10.limits.maxArrayElements})`,"array_elements")}function ot(s10,t8,e8){tt(s10,e8),t8.reserve(e8)}function x7(s10,t8){let e8=new u5(s10.limits.maxOutputSize,"ls");for(let l12=0;l12<t8.length;l12++)l12>0&&e8.append(`
75
+ `,exitCode:1,internalStdinConsumed:0}}}};h6=!1;fe={name:"printf",flags:[{flag:"-v",type:"value",valueHint:"string"}],stdinType:"none",needsArgs:!0}}});var printf_V42QCPHL_exports={};__export(printf_V42QCPHL_exports,{flagsForFuzzing:()=>fe,printfCommand:()=>ae});import{createRequire as createRequire31}from"node:module";var require32,init_printf_V42QCPHL=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/printf-V42QCPHL.js"(){init_chunk_4AKAIZPW();init_chunk_UHHCL65P();init_chunk_6D3WD6YU();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_W5DWRFSU();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require32=createRequire31(import.meta.url)}});import{createRequire as createRequire32}from"node:module";function b7(e8){if(e8.identity!==void 0)return`identity:${e8.identity}`;if(e8.dev!==void 0&&e8.ino!==void 0)return`inode:${String(e8.dev)}:${String(e8.ino)}`}function P4(e8){let t8=e8 instanceof Error?e8.message:String(e8);return t8.includes("ENOENT")||t8.includes("no such file")}async function f9(e8,t8,r7){let n10=o3(t8),s10;try{s10=await e8.stat(n10)}catch(a14){if(!P4(a14))return{existence:"unknown"}}if(s10!==void 0){let a14=b7(s10);try{return{existence:"existing",canonicalPath:o3(await e8.realpath(n10)),stableIdentity:a14}}catch{return a14===void 0?{existence:"unknown"}:{existence:"existing",stableIdentity:a14}}}let i22=[],o13=n10;for(;;){r7?.checkpoint();let a14=s4(o13);if(a14===o13)return{existence:"unknown"};i22.unshift(o13.slice(a14==="/"?1:a14.length+1)),o13=a14;try{let c18=o3(await e8.realpath(o13));return{existence:"missing",canonicalPath:i22.reduce((h18,d11)=>c6(h18,d11),c18)}}catch(c18){if(!P4(c18))return{existence:"missing"}}}}async function T6(e8,t8,r7){let[n10,s10]=await Promise.all([f9(e8,t8),f9(e8,r7)]);return n10.existence==="unknown"||s10.existence==="unknown"?"unknown":n10.existence==="missing"||s10.existence==="missing"?n10.existence!==s10.existence?"different":n10.canonicalPath!==void 0&&n10.canonicalPath===s10.canonicalPath?"same":"unknown":n10.stableIdentity!==void 0&&s10.stableIdentity!==void 0?n10.stableIdentity===s10.stableIdentity?"same":"different":n10.canonicalPath!==void 0&&n10.canonicalPath===s10.canonicalPath?"same":"unknown"}async function z3(e8,t8,r7,n10){let[s10,i22]=await Promise.all([f9(e8,t8,n10),f9(e8,r7,n10)]);return s10.existence!=="existing"||s10.canonicalPath===void 0||i22.existence==="unknown"||i22.canonicalPath===void 0?"unknown":l8(s10.canonicalPath,i22.canonicalPath)?"inside":"outside"}async function D5(e8,t8){let r7=e8.budget??new x6(e8),n10=[{kind:"enter",path:o3(e8.root),depth:0}],s10=new Set;for(;n10.length>0;){r7.checkpoint(0);let i22=n10.pop();if(!i22)break;if(i22.kind==="leave"){e8.includeLeave&&await t8({path:i22.path,depth:i22.depth,stat:i22.stat,isSymlink:i22.isSymlink,phase:"leave"}),i22.identity&&s10.delete(i22.identity);continue}r7.visit(i22.depth);let o13=await e8.fs.lstat(i22.path),a14=o13.isSymbolicLink,c18=a14&&e8.symlinks==="follow"?await e8.fs.stat(i22.path):o13;if(await t8({path:i22.path,depth:i22.depth,stat:c18,isSymlink:a14,phase:"enter"}),!c18.isDirectory||a14&&e8.symlinks!=="follow")continue;let h18=b7(c18)??await e8.fs.realpath(i22.path).then(o3).catch(()=>{});if(h18!==void 0){if(s10.has(h18))throw new w3(e8.site,i22.path,"symbolic-link directory cycle detected");s10.add(h18)}n10.push({kind:"leave",path:i22.path,depth:i22.depth,stat:c18,isSymlink:a14,identity:h18});let d11=await e8.fs.readdir(i22.path);r7.checkpoint(),d11.sort((p16,$22)=>p16.localeCompare($22));for(let p16=d11.length-1;p16>=0;p16--)n10.push({kind:"enter",path:c6(i22.path,d11[p16]),depth:i22.depth+1})}}var require33,w3,x6,init_chunk_2WBUTDF5=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-2WBUTDF5.js"(){init_chunk_YUSFCOM7();init_chunk_EFORKKSH();init_chunk_FOCWZZDE();require33=createRequire32(import.meta.url),w3=class extends Error{operation;virtualPath;name="FileSystemPolicyError";constructor(t8,r7,n10){super(`${t8}: ${n5(n10)}`),this.operation=t8,this.virtualPath=r7}};x6=class{options;entries=0;discoveredEntries=1;work=0;constructor(t8){this.options=t8}checkpoint(t8=1){if(this.options.signal?.aborted)throw new $;if(this.options.executionScope?.throwIfAborted(this.options.site),!Number.isSafeInteger(t8)||t8<0||t8>this.options.limits.maxTraversalWork-this.work)throw new f2(`${this.options.site}: ${this.options.label??"filesystem traversal work"} limit exceeded (${this.options.limits.maxTraversalWork})`,"iterations");this.work+=t8,this.options.executionScope?.consumeWork(t8,`${this.options.site} filesystem traversal`)}visit(t8){if(this.checkpoint(),t8>this.options.limits.maxTraversalDepth)throw new f2(`${this.options.site}: ${this.options.label??"filesystem traversal"} depth limit exceeded (${this.options.limits.maxTraversalDepth})`,"recursion");if(++this.entries>this.options.limits.maxTraversalEntries)throw new f2(`${this.options.site}: ${this.options.label??"filesystem traversal"} entry limit exceeded (${this.options.limits.maxTraversalEntries})`,"iterations")}reserve(t8){if(!Number.isSafeInteger(t8)||t8<0||t8>this.options.limits.maxTraversalEntries-this.discoveredEntries)throw new f2(`${this.options.site}: ${this.options.label??"filesystem traversal"} entry limit exceeded (${this.options.limits.maxTraversalEntries})`,"iterations");this.discoveredEntries+=t8}discover(t8){this.reserve(t8),this.checkpoint(t8)}}}});import{createRequire as createRequire33}from"node:module";function h7(s10,t8,e8){if(x(e8)>s10.limits.maxOutputSize-x(t8))throw new f2(`ls: output size limit exceeded (${s10.limits.maxOutputSize} bytes)`,"output_size");return t8+e8}function tt(s10,t8){if(t8>s10.limits.maxArrayElements)throw new f2(`ls: array element limit exceeded (${s10.limits.maxArrayElements})`,"array_elements")}function ot(s10,t8,e8){tt(s10,e8),t8.reserve(e8)}function x7(s10,t8){let e8=new u5(s10.limits.maxOutputSize,"ls");for(let l12=0;l12<t8.length;l12++)l12>0&&e8.append(`
76
76
  `),e8.append(t8[l12]);return t8.length>0&&e8.append(`
77
77
  `),e8.build()}function j4(s10){if(s10<1024)return String(s10);if(s10<1024*1024){let e8=s10/1024;return e8<10?`${e8.toFixed(1)}K`:`${Math.round(e8)}K`}if(s10<1024*1024*1024){let e8=s10/1048576;return e8<10?`${e8.toFixed(1)}M`:`${Math.round(e8)}M`}let t8=s10/(1024*1024*1024);return t8<10?`${t8.toFixed(1)}G`:`${Math.round(t8)}G`}function B6(s10){let e8=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][s10.getMonth()],l12=String(s10.getDate()).padStart(2," "),m16=new Date,g13=new Date(m16.getTime()-4320*60*60*1e3);if(s10>g13){let D18=String(s10.getHours()).padStart(2,"0"),u15=String(s10.getMinutes()).padStart(2,"0");return`${e8} ${l12} ${D18}:${u15}`}let b23=s10.getFullYear();return`${e8} ${l12} ${b23}`}function H3(s10){return s10.isDirectory?"/":s10.isSymbolicLink?"@":(s10.mode&73)!==0?"*":""}function lt(s10,t8,e8){if(!t8&&!e8)return"name";if(t8!==e8)return t8?"size":"time";let l12="name";for(let m16 of s10){if(m16==="--")break;if(!(!m16.startsWith("-")||m16.startsWith("--")))for(let g13 of m16.slice(1))g13==="S"?l12="size":g13==="t"&&(l12="time")}return l12}async function K4(s10,t8,e8,l12,m16){return await U2(s10,g13=>t8.fs.resolvePath(t8.cwd,g13),t8,e8,l12,m16)}async function U2(s10,t8,e8,l12,m16,g13){let b23=[...s10];if(l12==="name")b23.sort();else{g13?.checkpoint(b23.length);let D18=new Map;for(let u15 of b23)try{let w15=await e8.fs.lstat(t8(u15));D18.set(u15,l12==="size"?w15.size??0:(w15.mtime??new Date(0)).getTime())}catch{D18.set(u15,0)}b23.sort((u15,w15)=>{let P17=(D18.get(w15)??0)-(D18.get(u15)??0);return P17!==0?P17:u15<w15?-1:u15>w15?1:0})}return m16&&b23.reverse(),b23}async function et(s10,t8,e8,l12,m16,g13,b23,D18=!1,u15=!1,w15="name",P17=!1,R21=!1,z16=new x6({limits:t8.limits,signal:t8.signal,executionScope:t8.executionScope,site:"ls"}),$22=0,E19=new Set,C18=!1){let O18=e8||l12,d11=t8.fs.resolvePath(t8.cwd,s10);try{C18||z16.visit($22);let p16=await t8.fs.stat(d11);if(!p16.isDirectory){let c18=P17?H3(await t8.fs.lstat(d11)):"";if(m16){let S15=p16.size??0,y14=u15?j4(S15).padStart(5):String(S15).padStart(5),f15=p16.mtime??new Date(0),o13=B6(f15);return{stdout:`-rw-r--r-- 1 user user ${y14} ${o13} ${s10}${c18}
78
78
  `,stderr:"",exitCode:0}}return{stdout:`${s10}${c18}
@@ -84,44 +84,44 @@ Notes:
84
84
  `}}catch{return{name:a14,line:`-rw-r--r-- 1 user user 0 Jan 1 00:00 ${a14}
85
85
  `}}}));y14.push(...r7)}let f15=new Map(S15.map((o13,F24)=>[o13,F24]));y14.sort((o13,F24)=>(f15.get(o13.name)??0)-(f15.get(F24.name)??0));for(let{line:o13}of y14)i22=h7(t8,i22,o13)}else if(P17){let c18=[],S15=n10.filter(f15=>f15!=="."&&f15!==".."),y14=n10.filter(f15=>f15==="."||f15==="..");for(let f15 of y14)c18.push(`${f15}/`);for(let f15=0;f15<S15.length;f15+=100){let o13=S15.slice(f15,f15+100),F24=await Promise.all(o13.map(async r7=>{let a14=d11==="/"?`/${r7}`:`${d11}/${r7}`;try{let M20=await t8.fs.lstat(a14);return`${r7}${H3(M20)}`}catch{return r7}}));c18.push(...F24)}i22=h7(t8,i22,x7(t8,c18))}else i22=h7(t8,i22,x7(t8,n10));if(g13){let c18=n10.filter(r7=>r7!=="."&&r7!==".."),S15=new Set(c18),y14=[];if(t8.fs.readdirWithFileTypes){let r7=await t8.fs.readdirWithFileTypes(d11);z16.checkpoint(),tt(t8,r7.length),y14=r7.filter(a14=>a14.isDirectory&&S15.has(a14.name)).map(a14=>({name:a14.name,isDirectory:!0}))}else for(let r7=0;r7<c18.length;r7+=100){let a14=c18.slice(r7,r7+100),M20=await Promise.all(a14.map(async A13=>{let J13=d11==="/"?`/${A13}`:`${d11}/${A13}`;try{let _13=await t8.fs.stat(J13);return{name:A13,isDirectory:_13.isDirectory}}catch{return{name:A13,isDirectory:!1}}}));y14.push(...M20.filter(A13=>A13.isDirectory))}let f15=await U2(y14.map(r7=>r7.name),r7=>d11==="/"?`/${r7}`:`${d11}/${r7}`,t8,w15,D18,z16),o13=new Map(f15.map((r7,a14)=>[r7,a14]));y14.sort((r7,a14)=>(o13.get(r7.name)??0)-(o13.get(a14.name)??0));let F24=[];for(let r7 of y14){let a14=s10==="."?`./${r7.name}`:`${s10}/${r7.name}`,M20=await et(a14,t8,e8,l12,m16,g13,!1,D18,u15,w15,P17,!0,z16,$22+1,N16);F24.push({name:r7.name,result:M20})}F24.sort((r7,a14)=>(o13.get(r7.name)??0)-(o13.get(a14.name)??0));for(let{result:r7}of F24)i22=h7(t8,i22,`
86
86
  `),i22=h7(t8,i22,r7.stdout),v13=h7(t8,v13,r7.stderr),r7.exitCode!==0&&(L21=r7.exitCode)}return{stdout:i22,stderr:v13,exitCode:L21}}catch(p16){if(p16 instanceof f2||p16 instanceof $)throw p16;return{stdout:"",stderr:`ls: ${s10}: No such file or directory
87
- `,exitCode:2}}}var require34,it,at,gt,yt,init_chunk_5BMPT6SF=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-5BMPT6SF.js"(){init_chunk_DIWMSSQY();init_chunk_2WBUTDF5();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();require34=createRequire33(import.meta.url);it={name:"ls",summary:"list directory contents",usage:"ls [OPTION]... [FILE]...",options:["-a, --all do not ignore entries starting with .","-A, --almost-all do not list . and ..","-d, --directory list directories themselves, not their contents","-F, --classify append indicator (one of */=>@) to entries","-h, --human-readable with -l, print sizes like 1K 234M 2G etc.","-l use a long listing format","-r, --reverse reverse order while sorting","-R, --recursive list subdirectories recursively","-S sort by file size, largest first","-t sort by time, newest first","-1 list one file per line"," --help display this help and exit"]},at={showAll:{short:"a",long:"all",type:"boolean"},showAlmostAll:{short:"A",long:"almost-all",type:"boolean"},longFormat:{short:"l",type:"boolean"},humanReadable:{short:"h",long:"human-readable",type:"boolean"},recursive:{short:"R",long:"recursive",type:"boolean"},reverse:{short:"r",long:"reverse",type:"boolean"},sortBySize:{short:"S",type:"boolean"},classifyFiles:{short:"F",long:"classify",type:"boolean"},directoryOnly:{short:"d",long:"directory",type:"boolean"},sortByTime:{short:"t",type:"boolean"},onePerLine:{short:"1",type:"boolean"}},gt={name:"ls",async execute(s10,t8){if(o5(s10))return s5(it);let e8=x5("ls",s10,at);if(!e8.ok)return e8.error;let l12=e8.result.flags.showAll,m16=e8.result.flags.showAlmostAll,g13=e8.result.flags.longFormat,b23=e8.result.flags.humanReadable,D18=e8.result.flags.recursive,u15=e8.result.flags.reverse,w15=e8.result.flags.classifyFiles,P17=e8.result.flags.directoryOnly,R21=lt(s10,e8.result.flags.sortBySize,e8.result.flags.sortByTime);e8.result.flags.onePerLine;let z16=e8.result.positional;z16.length===0&&z16.push(".");let $22="",E19="",C18=0,O18=new x6({limits:t8.limits,signal:t8.signal,executionScope:t8.executionScope,site:"ls"});if(P17){for(let n10 of await K4(z16,t8,R21,u15,O18)){O18.visit(0);let i22=t8.fs.resolvePath(t8.cwd,n10);try{let v13=await t8.fs.stat(i22);if(g13){let L21=v13.isDirectory?"drwxr-xr-x":"-rw-r--r--",c18=w15?H3(await t8.fs.lstat(i22)):"",S15=v13.size??0,y14=b23?j4(S15).padStart(5):String(S15).padStart(5),f15=v13.mtime??new Date(0),o13=B6(f15);$22=h7(t8,$22,`${L21} 1 user user ${y14} ${o13} ${n10}${c18}
87
+ `,exitCode:2}}}var require34,it,at,gt,yt,init_chunk_5BMPT6SF=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-5BMPT6SF.js"(){init_chunk_DIWMSSQY();init_chunk_2WBUTDF5();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();require34=createRequire33(import.meta.url);it={name:"ls",summary:"list directory contents",usage:"ls [OPTION]... [FILE]...",options:["-a, --all do not ignore entries starting with .","-A, --almost-all do not list . and ..","-d, --directory list directories themselves, not their contents","-F, --classify append indicator (one of */=>@) to entries","-h, --human-readable with -l, print sizes like 1K 234M 2G etc.","-l use a long listing format","-r, --reverse reverse order while sorting","-R, --recursive list subdirectories recursively","-S sort by file size, largest first","-t sort by time, newest first","-1 list one file per line"," --help display this help and exit"]},at={showAll:{short:"a",long:"all",type:"boolean"},showAlmostAll:{short:"A",long:"almost-all",type:"boolean"},longFormat:{short:"l",type:"boolean"},humanReadable:{short:"h",long:"human-readable",type:"boolean"},recursive:{short:"R",long:"recursive",type:"boolean"},reverse:{short:"r",long:"reverse",type:"boolean"},sortBySize:{short:"S",type:"boolean"},classifyFiles:{short:"F",long:"classify",type:"boolean"},directoryOnly:{short:"d",long:"directory",type:"boolean"},sortByTime:{short:"t",type:"boolean"},onePerLine:{short:"1",type:"boolean"}},gt={name:"ls",async execute(s10,t8){if(o5(s10))return s5(it);let e8=x5("ls",s10,at);if(!e8.ok)return e8.error;let l12=e8.result.flags.showAll,m16=e8.result.flags.showAlmostAll,g13=e8.result.flags.longFormat,b23=e8.result.flags.humanReadable,D18=e8.result.flags.recursive,u15=e8.result.flags.reverse,w15=e8.result.flags.classifyFiles,P17=e8.result.flags.directoryOnly,R21=lt(s10,e8.result.flags.sortBySize,e8.result.flags.sortByTime);e8.result.flags.onePerLine;let z16=e8.result.positional;z16.length===0&&z16.push(".");let $22="",E19="",C18=0,O18=new x6({limits:t8.limits,signal:t8.signal,executionScope:t8.executionScope,site:"ls"});if(P17){for(let n10 of await K4(z16,t8,R21,u15,O18)){O18.visit(0);let i22=t8.fs.resolvePath(t8.cwd,n10);try{let v13=await t8.fs.stat(i22);if(g13){let L21=v13.isDirectory?"drwxr-xr-x":"-rw-r--r--",c18=w15?H3(await t8.fs.lstat(i22)):"",S15=v13.size??0,y14=b23?j4(S15).padStart(5):String(S15).padStart(5),f15=v13.mtime??new Date(0),o13=B6(f15);$22=h7(t8,$22,`${L21} 1 user user ${y14} ${o13} ${n10}${c18}
88
88
  `)}else{let L21=w15?H3(await t8.fs.lstat(i22)):"";$22=h7(t8,$22,`${n10}${L21}
89
89
  `)}}catch{E19=h7(t8,E19,`ls: cannot access '${n10}': No such file or directory
90
90
  `),C18=2}}return{stdout:$22,stderr:E19,exitCode:C18}}let d11=[],p16=[];for(let n10 of z16){O18.visit(0);try{(await t8.fs.stat(t8.fs.resolvePath(t8.cwd,n10))).isDirectory?(p16.length>0&&O18.reserve(1),p16.push(n10)):d11.push(n10)}catch{E19=h7(t8,E19,`ls: ${n10}: No such file or directory
91
91
  `),C18=2}}let k19=async(n10,i22)=>{let v13=await et(n10,t8,l12,m16,g13,D18,i22,u15,b23,R21,w15,!1,O18,0,new Set,!0);$22=h7(t8,$22,v13.stdout),E19=h7(t8,E19,v13.stderr),v13.exitCode!==0&&(C18=v13.exitCode)};for(let n10 of await K4(d11,t8,R21,u15,O18))await k19(n10,!1);let N16=z16.length>1;for(let n10 of await K4(p16,t8,R21,u15,O18))$22&&($22=h7(t8,$22,`
92
- `)),await k19(n10,N16);return{stdout:$22,stderr:E19,exitCode:C18}}};yt={name:"ls",flags:[{flag:"-a",type:"boolean"},{flag:"-A",type:"boolean"},{flag:"-l",type:"boolean"},{flag:"-h",type:"boolean"},{flag:"-R",type:"boolean"},{flag:"-r",type:"boolean"},{flag:"-S",type:"boolean"},{flag:"-F",type:"boolean"},{flag:"-d",type:"boolean"},{flag:"-t",type:"boolean"},{flag:"-1",type:"boolean"}],needsFiles:!0}}});var ls_MQTYWW4T_exports={};__export(ls_MQTYWW4T_exports,{flagsForFuzzing:()=>yt,lsCommand:()=>gt});import{createRequire as createRequire34}from"node:module";var require35,init_ls_MQTYWW4T=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/ls-MQTYWW4T.js"(){init_chunk_5BMPT6SF();init_chunk_DIWMSSQY();init_chunk_STHBFACM();init_chunk_2WBUTDF5();init_chunk_YUSFCOM7();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_FOCWZZDE();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require35=createRequire34(import.meta.url)}});import{createRequire as createRequire35}from"node:module";var require36,p5,b8,h8,init_chunk_SQX6WQXB=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-SQX6WQXB.js"(){init_chunk_W5DWRFSU();init_chunk_FOCWZZDE();init_chunk_QIQMJJZ4();require36=createRequire35(import.meta.url),p5={recursive:{short:"p",long:"parents",type:"boolean"},verbose:{short:"v",long:"verbose",type:"boolean"}},b8={name:"mkdir",async execute(m16,t8){let e8=x5("mkdir",m16,p5);if(!e8.ok)return e8.error;let u15=e8.result.flags.recursive,g13=e8.result.flags.verbose,n10=e8.result.positional;if(n10.length===0)return{stdout:"",stderr:`mkdir: missing operand
92
+ `)),await k19(n10,N16);return{stdout:$22,stderr:E19,exitCode:C18}}};yt={name:"ls",flags:[{flag:"-a",type:"boolean"},{flag:"-A",type:"boolean"},{flag:"-l",type:"boolean"},{flag:"-h",type:"boolean"},{flag:"-R",type:"boolean"},{flag:"-r",type:"boolean"},{flag:"-S",type:"boolean"},{flag:"-F",type:"boolean"},{flag:"-d",type:"boolean"},{flag:"-t",type:"boolean"},{flag:"-1",type:"boolean"}],needsFiles:!0}}});var ls_MQTYWW4T_exports={};__export(ls_MQTYWW4T_exports,{flagsForFuzzing:()=>yt,lsCommand:()=>gt});import{createRequire as createRequire34}from"node:module";var require35,init_ls_MQTYWW4T=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/ls-MQTYWW4T.js"(){init_chunk_5BMPT6SF();init_chunk_DIWMSSQY();init_chunk_STHBFACM();init_chunk_2WBUTDF5();init_chunk_YUSFCOM7();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_FOCWZZDE();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require35=createRequire34(import.meta.url)}});import{createRequire as createRequire35}from"node:module";var require36,p5,b8,h8,init_chunk_SQX6WQXB=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-SQX6WQXB.js"(){init_chunk_W5DWRFSU();init_chunk_FOCWZZDE();init_chunk_QIQMJJZ4();require36=createRequire35(import.meta.url),p5={recursive:{short:"p",long:"parents",type:"boolean"},verbose:{short:"v",long:"verbose",type:"boolean"}},b8={name:"mkdir",async execute(m16,t8){let e8=x5("mkdir",m16,p5);if(!e8.ok)return e8.error;let u15=e8.result.flags.recursive,g13=e8.result.flags.verbose,n10=e8.result.positional;if(n10.length===0)return{stdout:"",stderr:`mkdir: missing operand
93
93
  `,exitCode:1};let a14="",o13="",c18=0;for(let r7 of n10)try{let i22=t8.fs.resolvePath(t8.cwd,r7);await t8.fs.mkdir(i22,{recursive:u15}),g13&&(a14+=`mkdir: created directory '${r7}'
94
94
  `)}catch(i22){let s10=n4(i22);s10.includes("ENOENT")||s10.includes("no such file")?o13+=`mkdir: cannot create directory '${r7}': No such file or directory
95
95
  `:s10.includes("EEXIST")||s10.includes("already exists")?o13+=`mkdir: cannot create directory '${r7}': File exists
96
96
  `:o13+=`mkdir: cannot create directory '${r7}': ${n5(s10)}
97
- `,c18=1}return{stdout:a14,stderr:o13,exitCode:c18}}},h8={name:"mkdir",flags:[{flag:"-p",type:"boolean"},{flag:"-v",type:"boolean"}],needsArgs:!0}}});var mkdir_4A5W3RXH_exports={};__export(mkdir_4A5W3RXH_exports,{flagsForFuzzing:()=>h8,mkdirCommand:()=>b8});import{createRequire as createRequire36}from"node:module";var require37,init_mkdir_4A5W3RXH=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/mkdir-4A5W3RXH.js"(){init_chunk_SQX6WQXB();init_chunk_W5DWRFSU();init_chunk_FOCWZZDE();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require37=createRequire36(import.meta.url)}});import{createRequire as createRequire37}from"node:module";function b9(e8,r7){let n10=!1,o13=!1;for(let t8 of e8){if(o13||n10){r7(t8,!1),n10=!1;continue}if(t8==="--"){o13=!0,r7(t8,!1);continue}if(!t8.startsWith("-")||t8==="-"){r7(t8,!1);continue}(t8==="--suffix"||t8==="--tmpdir"||/^-[a-z]*p$/.test(t8))&&(n10=t8!=="--tmpdir"),r7(t8,!0)}}function S4(e8){let r7=new Set,n10=new Set,o13=new Set;for(let i22 of Object.values($6))i22.long&&r7.add(i22.long),i22.short&&(n10.add(i22.short),i22.type!=="boolean"&&o13.add(i22.short));let t8=null,s10=!1;return b9(e8,(i22,l12)=>{if(!(s10||t8||!l12)){if(i22.startsWith("--")){let a14=i22.indexOf("="),u15=a14===-1?i22.slice(2):i22.slice(2,a14);u15==="help"||u15==="version"?t8=a14===-1?u15:`no-arg:${u15}`:r7.has(u15)||(s10=!0);return}for(let a14 of i22.slice(1)){if(a14==="h"){t8="help";return}if(!n10.has(a14)){s10=!0;return}if(o13.has(a14))return}}}),t8}function q2(e8){let r7=[];return b9(e8,(n10,o13)=>{r7.push(o13&&n10==="--tmpdir"?"--tmpdir=":n10)}),r7}function W2(e8){let r7=new Uint8Array(Math.min(e8,N3)),n10="";for(;n10.length<e8;){crypto.getRandomValues(r7);for(let o13 of r7)if(!(o13>=F5)&&(n10+=X3[o13%X3.length],n10.length===e8))break}return n10}function _5(e8,r7){return e8.endsWith("/")?`${e8}${r7}`:`${e8}/${r7}`}function c8(e8){return{stdout:"",stderr:`mktemp: ${e8}
98
- `,exitCode:1}}function H4(e8,r7){let n10=e8,o13=r7??"";if(r7===void 0){let s10=e8.lastIndexOf("X");s10!==-1&&(n10=e8.slice(0,s10+1),o13=e8.slice(s10+1))}else if(!e8.endsWith("X"))return c8(`with --suffix, template '${e8}' must end in X`);if(o13.includes("/"))return c8(`invalid suffix '${o13}', contains directory separator`);let t8=0;for(;t8<n10.length&&n10[n10.length-1-t8]==="X";)t8++;return t8<I5?c8(`too few X's in template '${e8}'`):{stem:n10,xCount:t8,suffix:o13}}function k5(e8,r7){return e8?.code===r7?!0:n4(e8).startsWith(`${r7}:`)}async function z4(e8,r7){try{return await e8.fs.lstat(r7),!0}catch(n10){if(k5(n10,"ENOENT"))return!1;throw n10}}function V3(e8){return typeof e8=="object"&&e8!==null&&"exitCode"in e8}var require38,v4,D6,I5,R2,X3,F5,O4,C4,L3,$6,N3,Y3,G4,init_chunk_3HDTNUL3=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-3HDTNUL3.js"(){init_chunk_RK2WBVP4();init_chunk_W5DWRFSU();init_chunk_FOCWZZDE();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();require38=createRequire37(import.meta.url),v4=`mktemp (just-bash) 9.4
97
+ `,c18=1}return{stdout:a14,stderr:o13,exitCode:c18}}},h8={name:"mkdir",flags:[{flag:"-p",type:"boolean"},{flag:"-v",type:"boolean"}],needsArgs:!0}}});var mkdir_4A5W3RXH_exports={};__export(mkdir_4A5W3RXH_exports,{flagsForFuzzing:()=>h8,mkdirCommand:()=>b8});import{createRequire as createRequire36}from"node:module";var require37,init_mkdir_4A5W3RXH=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/mkdir-4A5W3RXH.js"(){init_chunk_SQX6WQXB();init_chunk_W5DWRFSU();init_chunk_FOCWZZDE();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require37=createRequire36(import.meta.url)}});import{createRequire as createRequire37}from"node:module";function b9(e8,r7){let n10=!1,o13=!1;for(let t8 of e8){if(o13||n10){r7(t8,!1),n10=!1;continue}if(t8==="--"){o13=!0,r7(t8,!1);continue}if(!t8.startsWith("-")||t8==="-"){r7(t8,!1);continue}(t8==="--suffix"||t8==="--tmpdir"||/^-[a-z]*p$/.test(t8))&&(n10=t8!=="--tmpdir"),r7(t8,!0)}}function S4(e8){let r7=new Set,n10=new Set,o13=new Set;for(let i22 of Object.values($6))i22.long&&r7.add(i22.long),i22.short&&(n10.add(i22.short),i22.type!=="boolean"&&o13.add(i22.short));let t8=null,s10=!1;return b9(e8,(i22,l12)=>{if(!(s10||t8||!l12)){if(i22.startsWith("--")){let a14=i22.indexOf("="),u15=a14===-1?i22.slice(2):i22.slice(2,a14);u15==="help"||u15==="version"?t8=a14===-1?u15:`no-arg:${u15}`:r7.has(u15)||(s10=!0);return}for(let a14 of i22.slice(1)){if(a14==="h"){t8="help";return}if(!n10.has(a14)){s10=!0;return}if(o13.has(a14))return}}}),t8}function q2(e8){let r7=[];return b9(e8,(n10,o13)=>{r7.push(o13&&n10==="--tmpdir"?"--tmpdir=":n10)}),r7}function W2(e8){let r7=new Uint8Array(Math.min(e8,N3)),n10="";for(;n10.length<e8;){crypto.getRandomValues(r7);for(let o13 of r7)if(!(o13>=F5)&&(n10+=X3[o13%X3.length],n10.length===e8))break}return n10}function _5(e8,r7){return e8.endsWith("/")?`${e8}${r7}`:`${e8}/${r7}`}function c8(e8){return{stdout:"",stderr:`mktemp: ${e8}
98
+ `,exitCode:1}}function H4(e8,r7){let n10=e8,o13=r7??"";if(r7===void 0){let s10=e8.lastIndexOf("X");s10!==-1&&(n10=e8.slice(0,s10+1),o13=e8.slice(s10+1))}else if(!e8.endsWith("X"))return c8(`with --suffix, template '${e8}' must end in X`);if(o13.includes("/"))return c8(`invalid suffix '${o13}', contains directory separator`);let t8=0;for(;t8<n10.length&&n10[n10.length-1-t8]==="X";)t8++;return t8<I5?c8(`too few X's in template '${e8}'`):{stem:n10,xCount:t8,suffix:o13}}function k5(e8,r7){return e8?.code===r7?!0:n4(e8).startsWith(`${r7}:`)}async function z4(e8,r7){try{return await e8.fs.lstat(r7),!0}catch(n10){if(k5(n10,"ENOENT"))return!1;throw n10}}function V3(e8){return typeof e8=="object"&&e8!==null&&"exitCode"in e8}var require38,v4,D6,I5,R2,X3,F5,O4,C4,L3,$6,N3,Y3,G4,init_chunk_3HDTNUL3=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-3HDTNUL3.js"(){init_chunk_RK2WBVP4();init_chunk_W5DWRFSU();init_chunk_FOCWZZDE();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();require38=createRequire37(import.meta.url),v4=`mktemp (just-bash) 9.4
99
99
  `,D6="tmp.XXXXXXXXXX",I5=3,R2=100,X3="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",F5=256-256%X3.length,O4=384,C4=448,L3={name:"mktemp",summary:"create a temporary file or directory and print its name",usage:"mktemp [OPTION]... [TEMPLATE]",description:["Create a uniquely named temporary file (or directory with -d) and write","its name to standard output. TEMPLATE must end in at least three 'X's,","which are replaced with random characters; it defaults to tmp.XXXXXXXXXX.","Without -p/-t/--tmpdir a bare TEMPLATE is relative to the current","directory, while the default template is placed in $TMPDIR (or /tmp).","Files are created with mode 0600 and directories with mode 0700."],options:["-d, --directory create a directory, not a file","-u, --dry-run do not create anything, merely print a name","-q, --quiet suppress diagnostics about creation failure"," --suffix=SUFF append SUFF to TEMPLATE (must not contain a slash)","-p DIR, --tmpdir[=DIR] interpret TEMPLATE relative to DIR"," (defaults to $TMPDIR, or /tmp when unset)","-t interpret TEMPLATE as a single file name"," component, relative to the temporary directory","-h, --help display this help and exit"," --version output version information and exit"],examples:["mktemp","mktemp -d","mktemp /tmp/build-XXXXXX","mktemp --suffix=.txt fileXXXXXX"]},$6={directory:{short:"d",long:"directory",type:"boolean"},dryRun:{short:"u",long:"dry-run",type:"boolean"},quiet:{short:"q",long:"quiet",type:"boolean"},tmpdir:{short:"p",long:"tmpdir",type:"string"},legacyT:{short:"t",type:"boolean"},suffix:{long:"suffix",type:"string"}};N3=65536;Y3={name:"mktemp",async execute(e8,r7){let n10=S4(e8);if(n10==="help")return s5(L3);if(n10==="version")return{stdout:v4,stderr:"",exitCode:0};if(n10?.startsWith("no-arg:"))return c8(`option '--${n10.slice(7)}' doesn't allow an argument`);let o13=x5("mktemp",q2(e8),$6);if(!o13.ok)return o13.error;let{flags:t8,positional:s10}=o13.result;if(s10.length>1)return c8("too many templates");let i22=s10.length===1?s10[0]:D6,l12=H4(i22,t8.suffix);if(V3(l12))return l12;let a14=r7.env.get("TMPDIR"),u15=a14||"/tmp",d11=null;if(t8.legacyT){if(i22.includes("/"))return c8(`invalid template, '${i22}', contains directory separator`);d11=a14||(t8.tmpdir?t8.tmpdir:"/tmp")}else if(t8.tmpdir!==void 0||s10.length===0){if(i22.startsWith("/"))return c8(`invalid template, '${i22}'; with --tmpdir, it may not be absolute`);d11=t8.tmpdir?t8.tmpdir:u15}let A13=t8.directory?"directory":"file",p16=d11===null?l12.stem:_5(d11,l12.stem),P17=p16.slice(0,p16.length-l12.xCount),m16=f15=>({stdout:"",stderr:t8.quiet?"":`mktemp: failed to create ${A13} via template '${i22}': ${f15}
100
100
  `,exitCode:1});if(!t8.dryRun){let f15=p16.lastIndexOf("/"),h18=r7.fs.resolvePath(r7.cwd,f15===-1?".":p16.slice(0,f15)||"/");try{if(!(await r7.fs.stat(h18)).isDirectory)return m16("Not a directory")}catch{return m16("No such file or directory")}}for(let f15=0;f15<R2;f15++){let h18=`${P17}${W2(l12.xCount)}${l12.suffix}`,y14=r7.fs.resolvePath(r7.cwd,h18);try{if(t8.dryRun){if(await z4(r7,y14))continue}else await a6(r7.fs,y14,{mode:t8.directory?C4:O4,directory:t8.directory})}catch(T19){if(k5(T19,"EEXIST"))continue;return m16(n5(n4(T19)))}return{stdout:`${h18}
101
- `,stderr:"",exitCode:0}}return m16("File exists")}},G4={name:"mktemp",flags:[{flag:"-d",type:"boolean"},{flag:"-u",type:"boolean"},{flag:"-q",type:"boolean"},{flag:"-t",type:"boolean"},{flag:"-p",type:"value",valueHint:"path"},{flag:"--suffix",type:"value",valueHint:"string"}],needsArgs:!1}}});var mktemp_XKIE5N3X_exports={};__export(mktemp_XKIE5N3X_exports,{flagsForFuzzing:()=>G4,mktempCommand:()=>Y3});import{createRequire as createRequire38}from"node:module";var require39,init_mktemp_XKIE5N3X=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/mktemp-XKIE5N3X.js"(){init_chunk_3HDTNUL3();init_chunk_RK2WBVP4();init_chunk_W5DWRFSU();init_chunk_FOCWZZDE();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require39=createRequire38(import.meta.url)}});import{createRequire as createRequire39}from"node:module";async function h9(r7,t8,e8,n10,a14){let o13="",s10="",u15=r7.fs.resolvePath(r7.cwd,t8),l12=await x8(r7,u15,t8,n10);if(o13+=l12.stdout,s10+=l12.stderr,l12.exitCode!==0)return{stdout:o13,stderr:s10,exitCode:l12.exitCode};if(e8){let c18=u15,i22=t8;for(;;){a14.visit(0);let f15=b10(c18),m16=b10(i22);if(f15===c18||f15==="/"||f15==="."||m16==="."||m16==="")break;let p16=await x8(r7,f15,m16,n10);if(o13+=p16.stdout,p16.exitCode!==0)break;c18=f15,i22=m16}}return{stdout:o13,stderr:s10,exitCode:0}}async function x8(r7,t8,e8,n10){try{if(!await r7.fs.exists(t8))return{stdout:"",stderr:`rmdir: failed to remove '${e8}': No such file or directory
101
+ `,stderr:"",exitCode:0}}return m16("File exists")}},G4={name:"mktemp",flags:[{flag:"-d",type:"boolean"},{flag:"-u",type:"boolean"},{flag:"-q",type:"boolean"},{flag:"-t",type:"boolean"},{flag:"-p",type:"value",valueHint:"path"},{flag:"--suffix",type:"value",valueHint:"string"}],needsArgs:!1}}});var mktemp_XKIE5N3X_exports={};__export(mktemp_XKIE5N3X_exports,{flagsForFuzzing:()=>G4,mktempCommand:()=>Y3});import{createRequire as createRequire38}from"node:module";var require39,init_mktemp_XKIE5N3X=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/mktemp-XKIE5N3X.js"(){init_chunk_3HDTNUL3();init_chunk_RK2WBVP4();init_chunk_W5DWRFSU();init_chunk_FOCWZZDE();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require39=createRequire38(import.meta.url)}});import{createRequire as createRequire39}from"node:module";async function h9(r7,t8,e8,n10,a14){let o13="",s10="",u15=r7.fs.resolvePath(r7.cwd,t8),l12=await x8(r7,u15,t8,n10);if(o13+=l12.stdout,s10+=l12.stderr,l12.exitCode!==0)return{stdout:o13,stderr:s10,exitCode:l12.exitCode};if(e8){let c18=u15,i22=t8;for(;;){a14.visit(0);let f15=b10(c18),m16=b10(i22);if(f15===c18||f15==="/"||f15==="."||m16==="."||m16==="")break;let p16=await x8(r7,f15,m16,n10);if(o13+=p16.stdout,p16.exitCode!==0)break;c18=f15,i22=m16}}return{stdout:o13,stderr:s10,exitCode:0}}async function x8(r7,t8,e8,n10){try{if(!await r7.fs.exists(t8))return{stdout:"",stderr:`rmdir: failed to remove '${e8}': No such file or directory
102
102
  `,exitCode:1};if(!(await r7.fs.stat(t8)).isDirectory)return{stdout:"",stderr:`rmdir: failed to remove '${e8}': Not a directory
103
103
  `,exitCode:1};if((await r7.fs.readdir(t8)).length>0)return{stdout:"",stderr:`rmdir: failed to remove '${e8}': Directory not empty
104
104
  `,exitCode:1};await r7.fs.rm(t8,{recursive:!1,force:!1});let d11="";return n10&&(d11=`rmdir: removing directory, '${e8}'
105
105
  `),{stdout:d11,stderr:"",exitCode:0}}catch(a14){let o13=n4(a14);return{stdout:"",stderr:`rmdir: failed to remove '${e8}': ${o13}
106
- `,exitCode:1}}}function b10(r7){let t8=r7.replace(/\/+$/,""),e8=t8.lastIndexOf("/");return e8===-1?".":e8===0?"/":t8.substring(0,e8)}var require40,y5,w4,O5,S5,init_chunk_YZH7FUSY=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-YZH7FUSY.js"(){init_chunk_2WBUTDF5();init_chunk_W5DWRFSU();init_chunk_QIQMJJZ4();require40=createRequire39(import.meta.url),y5=`Usage: rmdir [-pv] DIRECTORY...
106
+ `,exitCode:1}}}function b10(r7){let t8=r7.replace(/\/+$/,""),e8=t8.lastIndexOf("/");return e8===-1?".":e8===0?"/":t8.substring(0,e8)}var require40,y5,w4,O5,S5,init_chunk_YZH7FUSY=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-YZH7FUSY.js"(){init_chunk_2WBUTDF5();init_chunk_W5DWRFSU();init_chunk_QIQMJJZ4();require40=createRequire39(import.meta.url),y5=`Usage: rmdir [-pv] DIRECTORY...
107
107
  Remove empty directories.
108
108
 
109
109
  Options:
110
110
  -p, --parents Remove DIRECTORY and its ancestors
111
111
  -v, --verbose Output a diagnostic for every directory processed`,w4={parents:{short:"p",long:"parents",type:"boolean"},verbose:{short:"v",long:"verbose",type:"boolean"},help:{long:"help",type:"boolean"}},O5={name:"rmdir",async execute(r7,t8){let e8=x5("rmdir",r7,w4);if(!e8.ok)return e8.error;if(e8.result.flags.help)return{stdout:`${y5}
112
112
  `,stderr:"",exitCode:0};let n10=e8.result.flags.parents,a14=e8.result.flags.verbose,o13=e8.result.positional;if(o13.length===0)return{stdout:"",stderr:`rmdir: missing operand
113
- `,exitCode:1};let s10="",d11="",u15=0,l12=new x6({limits:t8.limits,signal:t8.signal,executionScope:t8.executionScope,site:"rmdir",label:"parent traversal"});for(let c18 of o13){let i22=await h9(t8,c18,n10,a14,l12);s10+=i22.stdout,d11+=i22.stderr,i22.exitCode!==0&&(u15=i22.exitCode)}return{stdout:s10,stderr:d11,exitCode:u15}}};S5={name:"rmdir",flags:[{flag:"-p",type:"boolean"},{flag:"-v",type:"boolean"}],needsArgs:!0}}});var rmdir_OGSEXEF4_exports={};__export(rmdir_OGSEXEF4_exports,{flagsForFuzzing:()=>S5,rmdirCommand:()=>O5});import{createRequire as createRequire40}from"node:module";var require41,init_rmdir_OGSEXEF4=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/rmdir-OGSEXEF4.js"(){init_chunk_YZH7FUSY();init_chunk_2WBUTDF5();init_chunk_YUSFCOM7();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_W5DWRFSU();init_chunk_FOCWZZDE();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require41=createRequire40(import.meta.url)}});import{createRequire as createRequire41}from"node:module";function h10(s10){let a14=s10.replace(/\//g,"-"),r7=new Date(a14);if(!Number.isNaN(r7.getTime()))return r7;let i22=a14.match(/^(\d{4})-(\d{2})-(\d{2})$/);if(i22){let[,o13,l12,f15]=i22;if(r7=new Date(Number.parseInt(o13,10),Number.parseInt(l12,10)-1,Number.parseInt(f15,10)),!Number.isNaN(r7.getTime()))return r7}let u15=a14.match(/^(\d{4})-(\d{2})-(\d{2})\s+(\d{2}):(\d{2}):(\d{2})$/);if(u15){let[,o13,l12,f15,t8,e8,d11]=u15;if(r7=new Date(Number.parseInt(o13,10),Number.parseInt(l12,10)-1,Number.parseInt(f15,10),Number.parseInt(t8,10),Number.parseInt(e8,10),Number.parseInt(d11,10)),!Number.isNaN(r7.getTime()))return r7}return null}var require42,N4,b11,init_chunk_FZRQOL3C=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-FZRQOL3C.js"(){init_chunk_W5DWRFSU();init_chunk_QAYAQNCG();require42=createRequire41(import.meta.url);N4={name:"touch",async execute(s10,a14){let r7=[],i22=null,u15=!1;for(let t8=0;t8<s10.length;t8++){let e8=s10[t8];if(e8==="--"){r7.push(...s10.slice(t8+1));break}else if(e8==="-d"||e8==="--date"){if(t8+1>=s10.length)return{stdout:"",stderr:`touch: option requires an argument -- 'd'
113
+ `,exitCode:1};let s10="",d11="",u15=0,l12=new x6({limits:t8.limits,signal:t8.signal,executionScope:t8.executionScope,site:"rmdir",label:"parent traversal"});for(let c18 of o13){let i22=await h9(t8,c18,n10,a14,l12);s10+=i22.stdout,d11+=i22.stderr,i22.exitCode!==0&&(u15=i22.exitCode)}return{stdout:s10,stderr:d11,exitCode:u15}}};S5={name:"rmdir",flags:[{flag:"-p",type:"boolean"},{flag:"-v",type:"boolean"}],needsArgs:!0}}});var rmdir_OGSEXEF4_exports={};__export(rmdir_OGSEXEF4_exports,{flagsForFuzzing:()=>S5,rmdirCommand:()=>O5});import{createRequire as createRequire40}from"node:module";var require41,init_rmdir_OGSEXEF4=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/rmdir-OGSEXEF4.js"(){init_chunk_YZH7FUSY();init_chunk_2WBUTDF5();init_chunk_YUSFCOM7();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_W5DWRFSU();init_chunk_FOCWZZDE();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require41=createRequire40(import.meta.url)}});import{createRequire as createRequire41}from"node:module";function h10(s10){let a14=s10.replace(/\//g,"-"),r7=new Date(a14);if(!Number.isNaN(r7.getTime()))return r7;let i22=a14.match(/^(\d{4})-(\d{2})-(\d{2})$/);if(i22){let[,o13,l12,f15]=i22;if(r7=new Date(Number.parseInt(o13,10),Number.parseInt(l12,10)-1,Number.parseInt(f15,10)),!Number.isNaN(r7.getTime()))return r7}let u15=a14.match(/^(\d{4})-(\d{2})-(\d{2})\s+(\d{2}):(\d{2}):(\d{2})$/);if(u15){let[,o13,l12,f15,t8,e8,d11]=u15;if(r7=new Date(Number.parseInt(o13,10),Number.parseInt(l12,10)-1,Number.parseInt(f15,10),Number.parseInt(t8,10),Number.parseInt(e8,10),Number.parseInt(d11,10)),!Number.isNaN(r7.getTime()))return r7}return null}var require42,N4,b11,init_chunk_FZRQOL3C=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-FZRQOL3C.js"(){init_chunk_W5DWRFSU();init_chunk_QAYAQNCG();require42=createRequire41(import.meta.url);N4={name:"touch",async execute(s10,a14){let r7=[],i22=null,u15=!1;for(let t8=0;t8<s10.length;t8++){let e8=s10[t8];if(e8==="--"){r7.push(...s10.slice(t8+1));break}else if(e8==="-d"||e8==="--date"){if(t8+1>=s10.length)return{stdout:"",stderr:`touch: option requires an argument -- 'd'
114
114
  `,exitCode:1};i22=s10[++t8]}else if(e8.startsWith("--date="))i22=e8.slice(7);else if(e8==="-c"||e8==="--no-create")u15=!0;else if(e8==="-a"||e8==="-m"||e8==="-r"||e8==="-t")(e8==="-r"||e8==="-t")&&t8++;else{if(e8.startsWith("--"))return r5("touch",e8);if(e8.startsWith("-")&&e8.length>1){let d11=!1;for(let n10 of e8.slice(1))if(n10==="c")u15=!0;else if(!(n10==="a"||n10==="m"))if(n10==="d"){if(t8+1>=s10.length)return{stdout:"",stderr:`touch: option requires an argument -- 'd'
115
115
  `,exitCode:1};i22=s10[++t8],d11=!0;break}else if(n10==="r"||n10==="t"){t8++,d11=!0;break}else return r5("touch",`-${n10}`);if(d11)continue}else r7.push(e8)}}if(r7.length===0)return{stdout:"",stderr:`touch: missing file operand
116
116
  `,exitCode:1};let o13=null;if(i22!==null&&(o13=h10(i22),o13===null))return{stdout:"",stderr:`touch: invalid date format '${i22}'
117
117
  `,exitCode:1};let l12="",f15=0;for(let t8 of r7)try{let e8=a14.fs.resolvePath(a14.cwd,t8);if(!await a14.fs.exists(e8)){if(u15)continue;await a14.fs.writeFile(e8,"")}let n10=o13??new Date;await a14.fs.utimes(e8,n10,n10)}catch(e8){l12+=`touch: cannot touch '${t8}': ${n4(e8)}
118
- `,f15=1}return{stdout:"",stderr:l12,exitCode:f15}}},b11={name:"touch",flags:[{flag:"-c",type:"boolean"},{flag:"-a",type:"boolean"},{flag:"-m",type:"boolean"},{flag:"-d",type:"value",valueHint:"string"}],needsArgs:!0}}});var touch_W4DF6Z4T_exports={};__export(touch_W4DF6Z4T_exports,{flagsForFuzzing:()=>b11,touchCommand:()=>N4});import{createRequire as createRequire42}from"node:module";var require43,init_touch_W4DF6Z4T=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/touch-W4DF6Z4T.js"(){init_chunk_FZRQOL3C();init_chunk_W5DWRFSU();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require43=createRequire42(import.meta.url)}});import{createRequire as createRequire43}from"node:module";var require44,v5,E4,$7,init_chunk_N6W6FM4N=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-N6W6FM4N.js"(){init_chunk_W5DWRFSU();init_chunk_FOCWZZDE();init_chunk_QIQMJJZ4();require44=createRequire43(import.meta.url),v5={recursive:{short:"r",long:"recursive",type:"boolean"},recursiveUpper:{short:"R",type:"boolean"},force:{short:"f",long:"force",type:"boolean"},verbose:{short:"v",long:"verbose",type:"boolean"}},E4={name:"rm",async execute(g13,s10){let e8=x5("rm",g13,v5);if(!e8.ok)return e8.error;let i22=e8.result.flags.recursive||e8.result.flags.recursiveUpper,a14=e8.result.flags.force,d11=e8.result.flags.verbose,c18=e8.result.positional;if(c18.length===0)return a14?{stdout:"",stderr:"",exitCode:0}:{stdout:"",stderr:`rm: missing operand
118
+ `,f15=1}return{stdout:"",stderr:l12,exitCode:f15}}},b11={name:"touch",flags:[{flag:"-c",type:"boolean"},{flag:"-a",type:"boolean"},{flag:"-m",type:"boolean"},{flag:"-d",type:"value",valueHint:"string"}],needsArgs:!0}}});var touch_W4DF6Z4T_exports={};__export(touch_W4DF6Z4T_exports,{flagsForFuzzing:()=>b11,touchCommand:()=>N4});import{createRequire as createRequire42}from"node:module";var require43,init_touch_W4DF6Z4T=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/touch-W4DF6Z4T.js"(){init_chunk_FZRQOL3C();init_chunk_W5DWRFSU();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require43=createRequire42(import.meta.url)}});import{createRequire as createRequire43}from"node:module";var require44,v5,E4,$7,init_chunk_N6W6FM4N=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-N6W6FM4N.js"(){init_chunk_W5DWRFSU();init_chunk_FOCWZZDE();init_chunk_QIQMJJZ4();require44=createRequire43(import.meta.url),v5={recursive:{short:"r",long:"recursive",type:"boolean"},recursiveUpper:{short:"R",type:"boolean"},force:{short:"f",long:"force",type:"boolean"},verbose:{short:"v",long:"verbose",type:"boolean"}},E4={name:"rm",async execute(g13,s10){let e8=x5("rm",g13,v5);if(!e8.ok)return e8.error;let i22=e8.result.flags.recursive||e8.result.flags.recursiveUpper,a14=e8.result.flags.force,d11=e8.result.flags.verbose,c18=e8.result.positional;if(c18.length===0)return a14?{stdout:"",stderr:"",exitCode:0}:{stdout:"",stderr:`rm: missing operand
119
119
  `,exitCode:1};let f15="",t8="",l12=0;for(let r7 of c18)try{let n10=s10.fs.resolvePath(s10.cwd,r7);if((await s10.fs.stat(n10)).isDirectory&&!i22){t8+=`rm: cannot remove '${r7}': Is a directory
120
120
  `,l12=1;continue}await s10.fs.rm(n10,{recursive:i22,force:a14}),d11&&(f15+=`removed '${r7}'
121
121
  `)}catch(n10){if(!a14){let o13=n4(n10);o13.includes("ENOENT")||o13.includes("no such file")?t8+=`rm: cannot remove '${r7}': No such file or directory
122
122
  `:o13.includes("ENOTEMPTY")||o13.includes("not empty")?t8+=`rm: cannot remove '${r7}': Directory not empty
123
123
  `:t8+=`rm: cannot remove '${r7}': ${n5(o13)}
124
- `,l12=1}}return{stdout:f15,stderr:t8,exitCode:l12}}},$7={name:"rm",flags:[{flag:"-r",type:"boolean"},{flag:"-R",type:"boolean"},{flag:"-f",type:"boolean"},{flag:"-v",type:"boolean"}],needsArgs:!0}}});var rm_3XUUYAXQ_exports={};__export(rm_3XUUYAXQ_exports,{flagsForFuzzing:()=>$7,rmCommand:()=>E4});import{createRequire as createRequire44}from"node:module";var require45,init_rm_3XUUYAXQ=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/rm-3XUUYAXQ.js"(){init_chunk_N6W6FM4N();init_chunk_W5DWRFSU();init_chunk_FOCWZZDE();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require45=createRequire44(import.meta.url)}});import{createRequire as createRequire45}from"node:module";var require46,R3,H5,j5,q3,init_chunk_H42OAUJL=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-H42OAUJL.js"(){init_chunk_2WBUTDF5();init_chunk_YUSFCOM7();init_chunk_EFORKKSH();init_chunk_W5DWRFSU();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();require46=createRequire45(import.meta.url),R3={name:"cp",summary:"copy files and directories",usage:"cp [OPTION]... SOURCE... DEST",options:["-r, -R, --recursive copy directories recursively","-n, --no-clobber do not overwrite an existing file","-p, --preserve preserve file attributes","-v, --verbose explain what is being done"," --help display this help and exit"]},H5={recursive:{short:"r",long:"recursive",type:"boolean"},recursiveUpper:{short:"R",type:"boolean"},noClobber:{short:"n",long:"no-clobber",type:"boolean"},preserve:{short:"p",long:"preserve",type:"boolean"},verbose:{short:"v",long:"verbose",type:"boolean"}},j5={name:"cp",async execute(u15,e8){if(o5(u15))return s5(R3);let s10=x5("cp",u15,H5);if(!s10.ok)return s10.error;let d11=s10.result.flags.recursive||s10.result.flags.recursiveUpper,k19=s10.result.flags.noClobber,A13=s10.result.flags.preserve,N16=s10.result.flags.verbose,p16=s10.result.positional;if(p16.length<2)return{stdout:"",stderr:`cp: missing destination file operand
124
+ `,l12=1}}return{stdout:f15,stderr:t8,exitCode:l12}}},$7={name:"rm",flags:[{flag:"-r",type:"boolean"},{flag:"-R",type:"boolean"},{flag:"-f",type:"boolean"},{flag:"-v",type:"boolean"}],needsArgs:!0}}});var rm_3XUUYAXQ_exports={};__export(rm_3XUUYAXQ_exports,{flagsForFuzzing:()=>$7,rmCommand:()=>E4});import{createRequire as createRequire44}from"node:module";var require45,init_rm_3XUUYAXQ=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/rm-3XUUYAXQ.js"(){init_chunk_N6W6FM4N();init_chunk_W5DWRFSU();init_chunk_FOCWZZDE();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require45=createRequire44(import.meta.url)}});import{createRequire as createRequire45}from"node:module";var require46,R3,H5,j5,q3,init_chunk_H42OAUJL=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-H42OAUJL.js"(){init_chunk_2WBUTDF5();init_chunk_YUSFCOM7();init_chunk_EFORKKSH();init_chunk_W5DWRFSU();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();require46=createRequire45(import.meta.url),R3={name:"cp",summary:"copy files and directories",usage:"cp [OPTION]... SOURCE... DEST",options:["-r, -R, --recursive copy directories recursively","-n, --no-clobber do not overwrite an existing file","-p, --preserve preserve file attributes","-v, --verbose explain what is being done"," --help display this help and exit"]},H5={recursive:{short:"r",long:"recursive",type:"boolean"},recursiveUpper:{short:"R",type:"boolean"},noClobber:{short:"n",long:"no-clobber",type:"boolean"},preserve:{short:"p",long:"preserve",type:"boolean"},verbose:{short:"v",long:"verbose",type:"boolean"}},j5={name:"cp",async execute(u15,e8){if(o5(u15))return s5(R3);let s10=x5("cp",u15,H5);if(!s10.ok)return s10.error;let d11=s10.result.flags.recursive||s10.result.flags.recursiveUpper,k19=s10.result.flags.noClobber,A13=s10.result.flags.preserve,N16=s10.result.flags.verbose,p16=s10.result.positional;if(p16.length<2)return{stdout:"",stderr:`cp: missing destination file operand
125
125
  `,exitCode:1};let g13=p16.pop()??"",m16=p16,l12=e8.fs.resolvePath(e8.cwd,g13),y14="",n10="",i22=0,h18=new x6({limits:e8.limits,signal:e8.signal,executionScope:e8.executionScope,site:"cp"}),f15=!1;try{f15=(await e8.fs.stat(l12)).isDirectory}catch{}if(m16.length>1&&!f15)return{stdout:"",stderr:`cp: target '${g13}' is not a directory
126
126
  `,exitCode:1};for(let t8 of m16)try{let o13=e8.fs.resolvePath(e8.cwd,t8),a14=await e8.fs.stat(o13),r7=l12;if(f15){let c18=t8.split("/").pop()||t8;r7=l12==="/"?`/${c18}`:`${l12}/${c18}`}if(a14.isDirectory&&!d11){n10+=`cp: -r not specified; omitting directory '${t8}'
127
127
  `,i22=1;continue}if(a14.isDirectory){let c18=await z3(e8.fs,o13,r7,h18);if(l8(o13,r7)||c18==="inside"){n10+=`cp: cannot copy '${t8}' into itself, '${r7}'
@@ -131,7 +131,7 @@ Options:
131
131
  `,i22=1;continue}a14.isDirectory&&await D5({fs:e8.fs,root:o13,limits:e8.limits,signal:e8.signal,executionScope:e8.executionScope,site:"cp",symlinks:"never",budget:h18},()=>{}),await e8.fs.cp(o13,r7,{recursive:d11}),N16&&(y14+=`'${t8}' -> '${r7}'
132
132
  `)}catch(o13){if(o13 instanceof f2||o13 instanceof $)throw o13;let a14=n4(o13);a14.includes("ENOENT")||a14.includes("no such file")?n10+=`cp: cannot stat '${t8}': No such file or directory
133
133
  `:n10+=`cp: cannot copy '${t8}': ${a14}
134
- `,i22=1}return{stdout:y14,stderr:n10,exitCode:i22}}},q3={name:"cp",flags:[{flag:"-r",type:"boolean"},{flag:"-R",type:"boolean"},{flag:"-n",type:"boolean"},{flag:"-p",type:"boolean"},{flag:"-v",type:"boolean"}],needsArgs:!0,minArgs:2}}});var cp_LTFB4EUA_exports={};__export(cp_LTFB4EUA_exports,{cpCommand:()=>j5,flagsForFuzzing:()=>q3});import{createRequire as createRequire46}from"node:module";var require47,init_cp_LTFB4EUA=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/cp-LTFB4EUA.js"(){init_chunk_H42OAUJL();init_chunk_2WBUTDF5();init_chunk_YUSFCOM7();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_W5DWRFSU();init_chunk_FOCWZZDE();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require47=createRequire46(import.meta.url)}});import{createRequire as createRequire47}from"node:module";var require48,A2,H6,U3,j6,init_chunk_VGCXKMXN=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-VGCXKMXN.js"(){init_chunk_2WBUTDF5();init_chunk_YUSFCOM7();init_chunk_EFORKKSH();init_chunk_W5DWRFSU();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();require48=createRequire47(import.meta.url),A2={name:"mv",summary:"move (rename) files",usage:"mv [OPTION]... SOURCE... DEST",options:["-f, --force do not prompt before overwriting","-n, --no-clobber do not overwrite an existing file","-v, --verbose explain what is being done"," --help display this help and exit"]},H6={force:{short:"f",long:"force",type:"boolean"},noClobber:{short:"n",long:"no-clobber",type:"boolean"},verbose:{short:"v",long:"verbose",type:"boolean"}},U3={name:"mv",async execute(p16,e8){if(o5(p16))return s5(A2);let r7=x5("mv",p16,H6);if(!r7.ok)return r7.error;let u15=r7.result.flags.force,v13=r7.result.flags.noClobber,k19=r7.result.flags.verbose,d11=r7.result.positional;if(v13&&(u15=!1),d11.length<2)return{stdout:"",stderr:`mv: missing destination file operand
134
+ `,i22=1}return{stdout:y14,stderr:n10,exitCode:i22}}},q3={name:"cp",flags:[{flag:"-r",type:"boolean"},{flag:"-R",type:"boolean"},{flag:"-n",type:"boolean"},{flag:"-p",type:"boolean"},{flag:"-v",type:"boolean"}],needsArgs:!0,minArgs:2}}});var cp_LTFB4EUA_exports={};__export(cp_LTFB4EUA_exports,{cpCommand:()=>j5,flagsForFuzzing:()=>q3});import{createRequire as createRequire46}from"node:module";var require47,init_cp_LTFB4EUA=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/cp-LTFB4EUA.js"(){init_chunk_H42OAUJL();init_chunk_2WBUTDF5();init_chunk_YUSFCOM7();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_W5DWRFSU();init_chunk_FOCWZZDE();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require47=createRequire46(import.meta.url)}});import{createRequire as createRequire47}from"node:module";var require48,A2,H6,U3,j6,init_chunk_VGCXKMXN=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-VGCXKMXN.js"(){init_chunk_2WBUTDF5();init_chunk_YUSFCOM7();init_chunk_EFORKKSH();init_chunk_W5DWRFSU();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();require48=createRequire47(import.meta.url),A2={name:"mv",summary:"move (rename) files",usage:"mv [OPTION]... SOURCE... DEST",options:["-f, --force do not prompt before overwriting","-n, --no-clobber do not overwrite an existing file","-v, --verbose explain what is being done"," --help display this help and exit"]},H6={force:{short:"f",long:"force",type:"boolean"},noClobber:{short:"n",long:"no-clobber",type:"boolean"},verbose:{short:"v",long:"verbose",type:"boolean"}},U3={name:"mv",async execute(p16,e8){if(o5(p16))return s5(A2);let r7=x5("mv",p16,H6);if(!r7.ok)return r7.error;let u15=r7.result.flags.force,v13=r7.result.flags.noClobber,k19=r7.result.flags.verbose,d11=r7.result.positional;if(v13&&(u15=!1),d11.length<2)return{stdout:"",stderr:`mv: missing destination file operand
135
135
  `,exitCode:1};let f15=d11.pop()??"",g13=d11,c18=e8.fs.resolvePath(e8.cwd,f15),h18="",i22="",l12=0,b23=new x6({limits:e8.limits,signal:e8.signal,executionScope:e8.executionScope,site:"mv"}),m16=!1;try{m16=(await e8.fs.stat(c18)).isDirectory}catch{}if(g13.length>1&&!m16)return{stdout:"",stderr:`mv: target '${f15}' is not a directory
136
136
  `,exitCode:1};for(let t8 of g13)try{let o13=e8.fs.resolvePath(e8.cwd,t8),a14=await e8.fs.stat(o13),n10=c18;if(m16){let s10=t8.split("/").pop()||t8;n10=c18==="/"?`/${s10}`:`${c18}/${s10}`}if(a14.isDirectory){let s10=await z3(e8.fs,o13,n10,b23);if(l8(o13,n10)||s10==="inside"){i22+=`mv: cannot move '${t8}' into itself, '${n10}'
137
137
  `,l12=1;continue}if(s10==="unknown"){i22+=`mv: cannot safely determine whether '${n10}' is inside '${t8}'
@@ -139,7 +139,7 @@ Options:
139
139
  `,l12=1;continue}if(a14.isDirectory&&await D5({fs:e8.fs,root:o13,limits:e8.limits,signal:e8.signal,executionScope:e8.executionScope,site:"mv",symlinks:"never",budget:b23},()=>{}),await e8.fs.mv(o13,n10),k19){let s10=m16?`${f15}/${t8.split("/").pop()||t8}`:f15;h18+=`renamed '${t8}' -> '${s10}'
140
140
  `}}catch(o13){if(o13 instanceof f2||o13 instanceof $)throw o13;let a14=n4(o13);a14.includes("ENOENT")||a14.includes("no such file")?i22+=`mv: cannot stat '${t8}': No such file or directory
141
141
  `:i22+=`mv: cannot move '${t8}': ${a14}
142
- `,l12=1}return{stdout:h18,stderr:i22,exitCode:l12}}},j6={name:"mv",flags:[{flag:"-f",type:"boolean"},{flag:"-n",type:"boolean"},{flag:"-v",type:"boolean"}],needsArgs:!0,minArgs:2}}});var mv_ZPIATQJL_exports={};__export(mv_ZPIATQJL_exports,{flagsForFuzzing:()=>j6,mvCommand:()=>U3});import{createRequire as createRequire48}from"node:module";var require49,init_mv_ZPIATQJL=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/mv-ZPIATQJL.js"(){init_chunk_VGCXKMXN();init_chunk_2WBUTDF5();init_chunk_YUSFCOM7();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_W5DWRFSU();init_chunk_FOCWZZDE();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require49=createRequire48(import.meta.url)}});import{createRequire as createRequire49}from"node:module";var require50,y6,v6,$8,init_chunk_W2Z6LYL6=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-W2Z6LYL6.js"(){init_chunk_FOCWZZDE();init_chunk_QAYAQNCG();require50=createRequire49(import.meta.url),y6={name:"ln",summary:"make links between files",usage:"ln [OPTIONS] TARGET LINK_NAME",options:["-s create a symbolic link instead of a hard link","-f remove existing destination files","-n treat LINK_NAME as a normal file if it is a symbolic link to a directory","-v print name of each linked file"," --help display this help and exit"]},v6={name:"ln",async execute(n10,s10){if(o5(n10))return s5(y6);let i22=!1,f15=!1,d11=!1,t8=0;for(;t8<n10.length&&n10[t8].startsWith("-");){let e8=n10[t8];if(e8==="-s"||e8==="--symbolic")i22=!0,t8++;else if(e8==="-f"||e8==="--force")f15=!0,t8++;else if(e8==="-v"||e8==="--verbose")d11=!0,t8++;else if(e8==="-n"||e8==="--no-dereference")t8++;else if(/^-[sfvn]+$/.test(e8))e8.includes("s")&&(i22=!0),e8.includes("f")&&(f15=!0),e8.includes("v")&&(d11=!0),t8++;else if(e8==="--"){t8++;break}else return r5("ln",e8)}let r7=n10.slice(t8);if(r7.length<2)return{stdout:"",stderr:`ln: missing file operand
142
+ `,l12=1}return{stdout:h18,stderr:i22,exitCode:l12}}},j6={name:"mv",flags:[{flag:"-f",type:"boolean"},{flag:"-n",type:"boolean"},{flag:"-v",type:"boolean"}],needsArgs:!0,minArgs:2}}});var mv_ZPIATQJL_exports={};__export(mv_ZPIATQJL_exports,{flagsForFuzzing:()=>j6,mvCommand:()=>U3});import{createRequire as createRequire48}from"node:module";var require49,init_mv_ZPIATQJL=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/mv-ZPIATQJL.js"(){init_chunk_VGCXKMXN();init_chunk_2WBUTDF5();init_chunk_YUSFCOM7();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_W5DWRFSU();init_chunk_FOCWZZDE();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require49=createRequire48(import.meta.url)}});import{createRequire as createRequire49}from"node:module";var require50,y6,v6,$8,init_chunk_W2Z6LYL6=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-W2Z6LYL6.js"(){init_chunk_FOCWZZDE();init_chunk_QAYAQNCG();require50=createRequire49(import.meta.url),y6={name:"ln",summary:"make links between files",usage:"ln [OPTIONS] TARGET LINK_NAME",options:["-s create a symbolic link instead of a hard link","-f remove existing destination files","-n treat LINK_NAME as a normal file if it is a symbolic link to a directory","-v print name of each linked file"," --help display this help and exit"]},v6={name:"ln",async execute(n10,s10){if(o5(n10))return s5(y6);let i22=!1,f15=!1,d11=!1,t8=0;for(;t8<n10.length&&n10[t8].startsWith("-");){let e8=n10[t8];if(e8==="-s"||e8==="--symbolic")i22=!0,t8++;else if(e8==="-f"||e8==="--force")f15=!0,t8++;else if(e8==="-v"||e8==="--verbose")d11=!0,t8++;else if(e8==="-n"||e8==="--no-dereference")t8++;else if(/^-[sfvn]+$/.test(e8))e8.includes("s")&&(i22=!0),e8.includes("f")&&(f15=!0),e8.includes("v")&&(d11=!0),t8++;else if(e8==="--"){t8++;break}else return r5("ln",e8)}let r7=n10.slice(t8);if(r7.length<2)return{stdout:"",stderr:`ln: missing file operand
143
143
  `,exitCode:1};if(r7.length>2)return{stdout:"",stderr:`ln: extra operand '${r7[2]}'
144
144
  `,exitCode:1};let l12=r7[0],o13=r7[1],a14=s10.fs.resolvePath(s10.cwd,o13);if(await s10.fs.exists(a14))if(f15)try{await s10.fs.rm(a14,{force:!0})}catch{return{stdout:"",stderr:`ln: cannot remove '${o13}': Permission denied
145
145
  `,exitCode:1}}else return{stdout:"",stderr:`ln: failed to create ${i22?"symbolic ":""}link '${o13}': File exists
@@ -148,18 +148,18 @@ Options:
148
148
  `:`ln: '${l12}': hard link not allowed for directory
149
149
  `,exitCode:1}:{stdout:"",stderr:`ln: ${n5(u15.message)}
150
150
  `,exitCode:1}}let c18="";return d11&&(c18=`'${o13}' -> '${l12}'
151
- `),{stdout:c18,stderr:"",exitCode:0}}},$8={name:"ln",flags:[{flag:"-s",type:"boolean"},{flag:"-f",type:"boolean"},{flag:"-n",type:"boolean"},{flag:"-v",type:"boolean"}],needsArgs:!0,minArgs:2}}});var ln_OPY2ZVGQ_exports={};__export(ln_OPY2ZVGQ_exports,{flagsForFuzzing:()=>$8,lnCommand:()=>v6});import{createRequire as createRequire50}from"node:module";var require51,init_ln_OPY2ZVGQ=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/ln-OPY2ZVGQ.js"(){init_chunk_W2Z6LYL6();init_chunk_FOCWZZDE();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require51=createRequire50(import.meta.url)}});import{createRequire as createRequire51}from"node:module";async function I6(e8,a14,i22,f15,n10,r7){let d11=new x6({limits:e8.limits,signal:e8.signal,executionScope:e8.executionScope,site:"chmod"});await D5({fs:e8.fs,root:a14,symlinks:"never",budget:d11,limits:e8.limits,signal:e8.signal,executionScope:e8.executionScope,site:"chmod"},async o13=>{if(o13.depth===0||o13.phase!=="enter")return;let s10=i22!==void 0?i22:f15!==void 0?p6(f15,o13.stat.mode):420;await e8.fs.chmod(o13.path,s10),n10&&r7.append(`mode of '${o13.path}' changed to ${s10.toString(8).padStart(4,"0")}
152
- `)})}function p6(e8,a14=420){if(/^[0-7]+$/.test(e8))return parseInt(e8,8);let i22=a14&4095,f15=e8.split(",");for(let n10 of f15){let r7=n10.match(/^([ugoa]*)([+\-=])([rwxXst]*)$/);if(!r7)throw new Error(`Invalid mode: ${e8}`);let d11=r7[1]||"a",o13=r7[2],s10=r7[3];(d11==="a"||d11==="")&&(d11="ugo");let u15=0;s10.includes("r")&&(u15|=4),s10.includes("w")&&(u15|=2),(s10.includes("x")||s10.includes("X"))&&(u15|=1);let l12=0;s10.includes("s")&&(d11.includes("u")&&(l12|=2048),d11.includes("g")&&(l12|=1024)),s10.includes("t")&&(l12|=512);for(let c18 of d11){let t8=0;c18==="u"?t8=6:c18==="g"?t8=3:c18==="o"&&(t8=0);let m16=u15<<t8;o13==="+"?i22|=m16:o13==="-"?i22&=~m16:o13==="="&&(i22&=~(7<<t8),c18==="u"&&(i22&=-2049),c18==="g"&&(i22&=-1025),c18==="o"&&(i22&=-513),i22|=m16)}o13==="+"?i22|=l12:o13==="-"?i22&=~l12:o13==="="&&(s10.includes("s")&&(d11.includes("u")&&(i22|=l12&2048),d11.includes("g")&&(i22|=l12&1024)),s10.includes("t")&&(i22|=l12&512))}return i22}var require52,E5,O6,k6,init_chunk_T4INBNHX=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-T4INBNHX.js"(){init_chunk_U7UNEMLJ();init_chunk_DIWMSSQY();init_chunk_2WBUTDF5();init_chunk_QAYAQNCG();require52=createRequire51(import.meta.url),E5={name:"chmod",summary:"change file mode bits",usage:"chmod [OPTIONS] MODE FILE...",options:["-R change files recursively","-v output a diagnostic for every file processed"," --help display this help and exit"]},O6={name:"chmod",async execute(e8,a14){if(o5(e8))return s5(E5);if(e8.length<2)return{stdout:"",stderr:`chmod: missing operand
151
+ `),{stdout:c18,stderr:"",exitCode:0}}},$8={name:"ln",flags:[{flag:"-s",type:"boolean"},{flag:"-f",type:"boolean"},{flag:"-n",type:"boolean"},{flag:"-v",type:"boolean"}],needsArgs:!0,minArgs:2}}});var ln_OPY2ZVGQ_exports={};__export(ln_OPY2ZVGQ_exports,{flagsForFuzzing:()=>$8,lnCommand:()=>v6});import{createRequire as createRequire50}from"node:module";var require51,init_ln_OPY2ZVGQ=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/ln-OPY2ZVGQ.js"(){init_chunk_W2Z6LYL6();init_chunk_FOCWZZDE();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require51=createRequire50(import.meta.url)}});import{createRequire as createRequire51}from"node:module";async function I6(e8,a14,i22,f15,n10,r7){let d11=new x6({limits:e8.limits,signal:e8.signal,executionScope:e8.executionScope,site:"chmod"});await D5({fs:e8.fs,root:a14,symlinks:"never",budget:d11,limits:e8.limits,signal:e8.signal,executionScope:e8.executionScope,site:"chmod"},async o13=>{if(o13.depth===0||o13.phase!=="enter")return;let s10=i22!==void 0?i22:f15!==void 0?p6(f15,o13.stat.mode):420;await e8.fs.chmod(o13.path,s10),n10&&r7.append(`mode of '${o13.path}' changed to ${s10.toString(8).padStart(4,"0")}
152
+ `)})}function p6(e8,a14=420){if(/^[0-7]+$/.test(e8))return parseInt(e8,8);let i22=a14&4095,f15=e8.split(",");for(let n10 of f15){let r7=n10.match(/^([ugoa]*)([+\-=])([rwxXst]*)$/);if(!r7)throw new Error(`Invalid mode: ${e8}`);let d11=r7[1]||"a",o13=r7[2],s10=r7[3];(d11==="a"||d11==="")&&(d11="ugo");let u15=0;s10.includes("r")&&(u15|=4),s10.includes("w")&&(u15|=2),(s10.includes("x")||s10.includes("X"))&&(u15|=1);let l12=0;s10.includes("s")&&(d11.includes("u")&&(l12|=2048),d11.includes("g")&&(l12|=1024)),s10.includes("t")&&(l12|=512);for(let c18 of d11){let t8=0;c18==="u"?t8=6:c18==="g"?t8=3:c18==="o"&&(t8=0);let m16=u15<<t8;o13==="+"?i22|=m16:o13==="-"?i22&=~m16:o13==="="&&(i22&=~(7<<t8),c18==="u"&&(i22&=-2049),c18==="g"&&(i22&=-1025),c18==="o"&&(i22&=-513),i22|=m16)}o13==="+"?i22|=l12:o13==="-"?i22&=~l12:o13==="="&&(s10.includes("s")&&(d11.includes("u")&&(i22|=l12&2048),d11.includes("g")&&(i22|=l12&1024)),s10.includes("t")&&(i22|=l12&512))}return i22}var require52,E5,O6,k6,init_chunk_T4INBNHX=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-T4INBNHX.js"(){init_chunk_U7UNEMLJ();init_chunk_DIWMSSQY();init_chunk_2WBUTDF5();init_chunk_QAYAQNCG();require52=createRequire51(import.meta.url),E5={name:"chmod",summary:"change file mode bits",usage:"chmod [OPTIONS] MODE FILE...",options:["-R change files recursively","-v output a diagnostic for every file processed"," --help display this help and exit"]},O6={name:"chmod",async execute(e8,a14){if(o5(e8))return s5(E5);if(e8.length<2)return{stdout:"",stderr:`chmod: missing operand
153
153
  `,exitCode:1};let i22=!1,f15=!1,n10=0;for(;n10<e8.length&&e8[n10].startsWith("-");){let t8=e8[n10];if(t8==="-R"||t8==="--recursive")i22=!0,n10++;else if(t8==="-v"||t8==="--verbose")f15=!0,n10++;else if(t8==="--"){n10++;break}else{if(/^[+-]?[rwxugo]+/.test(t8)||/^\d+$/.test(t8))break;if(/^-[Rv]+$/.test(t8)){t8.includes("R")&&(i22=!0),t8.includes("v")&&(f15=!0),n10++;continue}return r5("chmod",t8)}}if(e8.length-n10<2)return{stdout:"",stderr:`chmod: missing operand
154
154
  `,exitCode:1};let r7=e8[n10],d11=e8.slice(n10+1),o13=/^[0-7]+$/.test(r7),s10;if(o13)s10=parseInt(r7,8);else try{p6(r7,420)}catch{return{stdout:"",stderr:`chmod: invalid mode: '${r7}'
155
155
  `,exitCode:1}}let u15=new u5(Math.min(a14.limits.maxOutputSize,a14.limits.maxStringLength),"chmod"),l12="",c18=!1;for(let t8 of d11){let m16=a14.fs.resolvePath(a14.cwd,t8);try{let h18;if(o13&&s10!==void 0)h18=s10;else{let g13=await a14.fs.stat(m16);h18=p6(r7,g13.mode)}await a14.fs.chmod(m16,h18),f15&&u15.append(`mode of '${t8}' changed to ${h18.toString(8).padStart(4,"0")}
156
156
  `),i22&&(await a14.fs.stat(m16)).isDirectory&&await I6(a14,m16,o13?s10:void 0,o13?void 0:r7,f15,u15)}catch(h18){e2(h18),l12+=`chmod: cannot access '${t8}': No such file or directory
157
- `,c18=!0}}return{stdout:u15.build(),stderr:l12,exitCode:c18?1:0}}};k6={name:"chmod",flags:[{flag:"-R",type:"boolean"},{flag:"-v",type:"boolean"}],needsArgs:!0,minArgs:2}}});var chmod_4OPV4QKK_exports={};__export(chmod_4OPV4QKK_exports,{chmodCommand:()=>O6,flagsForFuzzing:()=>k6});import{createRequire as createRequire52}from"node:module";var require53,init_chmod_4OPV4QKK=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chmod-4OPV4QKK.js"(){init_chunk_T4INBNHX();init_chunk_U7UNEMLJ();init_chunk_CBM6J4AL();init_chunk_DIWMSSQY();init_chunk_2WBUTDF5();init_chunk_YUSFCOM7();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_FOCWZZDE();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require53=createRequire52(import.meta.url)}});import{createRequire as createRequire53}from"node:module";var require54,o6,f10,init_chunk_SHKOQWO4=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-SHKOQWO4.js"(){require54=createRequire53(import.meta.url),o6={name:"pwd",async execute(l12,a14){let t8=!1;for(let e8 of l12)if(e8==="-P")t8=!0;else if(e8==="-L")t8=!1;else{if(e8==="--")break;e8.startsWith("-")}let s10=a14.cwd;if(t8)try{s10=await a14.fs.realpath(a14.cwd)}catch{}return{stdout:`${s10}
158
- `,stderr:"",exitCode:0}}},f10={name:"pwd",flags:[{flag:"-P",type:"boolean"},{flag:"-L",type:"boolean"}]}}});var pwd_76BPYV5F_exports={};__export(pwd_76BPYV5F_exports,{flagsForFuzzing:()=>f10,pwdCommand:()=>o6});import{createRequire as createRequire54}from"node:module";var require55,init_pwd_76BPYV5F=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/pwd-76BPYV5F.js"(){init_chunk_SHKOQWO4();init_chunk_NCUTH6QL();require55=createRequire54(import.meta.url)}});import{createRequire as createRequire55}from"node:module";var require56,w5,x9,F6,init_chunk_M4LDT7V7=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-M4LDT7V7.js"(){init_chunk_2WBUTDF5();init_chunk_EFORKKSH();init_chunk_QAYAQNCG();require56=createRequire55(import.meta.url),w5={name:"readlink",summary:"print resolved symbolic links or canonical file names",usage:"readlink [OPTIONS] FILE...",options:["-f canonicalize by following every symlink in every component of the given name recursively"," --help display this help and exit"]},x9={name:"readlink",async execute(r7,n10){if(o5(r7))return s5(w5);let l12=!1,t8=0;for(;t8<r7.length&&r7[t8].startsWith("-");){let i22=r7[t8];if(i22==="-f"||i22==="--canonicalize")l12=!0,t8++;else if(i22==="--"){t8++;break}else return r5("readlink",i22)}let c18=r7.slice(t8);if(c18.length===0)return{stdout:"",stderr:`readlink: missing operand
157
+ `,c18=!0}}return{stdout:u15.build(),stderr:l12,exitCode:c18?1:0}}};k6={name:"chmod",flags:[{flag:"-R",type:"boolean"},{flag:"-v",type:"boolean"}],needsArgs:!0,minArgs:2}}});var chmod_4OPV4QKK_exports={};__export(chmod_4OPV4QKK_exports,{chmodCommand:()=>O6,flagsForFuzzing:()=>k6});import{createRequire as createRequire52}from"node:module";var require53,init_chmod_4OPV4QKK=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chmod-4OPV4QKK.js"(){init_chunk_T4INBNHX();init_chunk_U7UNEMLJ();init_chunk_CBM6J4AL();init_chunk_DIWMSSQY();init_chunk_2WBUTDF5();init_chunk_YUSFCOM7();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_FOCWZZDE();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require53=createRequire52(import.meta.url)}});import{createRequire as createRequire53}from"node:module";var require54,o6,f10,init_chunk_SHKOQWO4=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-SHKOQWO4.js"(){require54=createRequire53(import.meta.url),o6={name:"pwd",async execute(l12,a14){let t8=!1;for(let e8 of l12)if(e8==="-P")t8=!0;else if(e8==="-L")t8=!1;else{if(e8==="--")break;e8.startsWith("-")}let s10=a14.cwd;if(t8)try{s10=await a14.fs.realpath(a14.cwd)}catch{}return{stdout:`${s10}
158
+ `,stderr:"",exitCode:0}}},f10={name:"pwd",flags:[{flag:"-P",type:"boolean"},{flag:"-L",type:"boolean"}]}}});var pwd_76BPYV5F_exports={};__export(pwd_76BPYV5F_exports,{flagsForFuzzing:()=>f10,pwdCommand:()=>o6});import{createRequire as createRequire54}from"node:module";var require55,init_pwd_76BPYV5F=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/pwd-76BPYV5F.js"(){init_chunk_SHKOQWO4();init_chunk_NCUTH6QL();require55=createRequire54(import.meta.url)}});import{createRequire as createRequire55}from"node:module";var require56,w5,x9,F6,init_chunk_M4LDT7V7=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-M4LDT7V7.js"(){init_chunk_2WBUTDF5();init_chunk_EFORKKSH();init_chunk_QAYAQNCG();require56=createRequire55(import.meta.url),w5={name:"readlink",summary:"print resolved symbolic links or canonical file names",usage:"readlink [OPTIONS] FILE...",options:["-f canonicalize by following every symlink in every component of the given name recursively"," --help display this help and exit"]},x9={name:"readlink",async execute(r7,n10){if(o5(r7))return s5(w5);let l12=!1,t8=0;for(;t8<r7.length&&r7[t8].startsWith("-");){let i22=r7[t8];if(i22==="-f"||i22==="--canonicalize")l12=!0,t8++;else if(i22==="--"){t8++;break}else return r5("readlink",i22)}let c18=r7.slice(t8);if(c18.length===0)return{stdout:"",stderr:`readlink: missing operand
159
159
  `,exitCode:1};let a14="",d11=!1,y14=new x6({limits:n10.limits,signal:n10.signal,executionScope:n10.executionScope,site:"readlink",label:"symlink traversal"});for(let i22 of c18){let s10=n10.fs.resolvePath(n10.cwd,i22);try{if(l12){let e8=s10,o13=new Set;for(;y14.visit(o13.size),!o13.has(e8);){o13.add(e8);try{let f15=await n10.fs.readlink(e8);if(f15.startsWith("/"))e8=f15;else{let b23=e8.substring(0,e8.lastIndexOf("/"))||"/";e8=n10.fs.resolvePath(b23,f15)}}catch{break}}a14+=`${e8}
160
160
  `}else{let e8=await n10.fs.readlink(s10);a14+=`${e8}
161
161
  `}}catch(e8){if(e8 instanceof f2||e8 instanceof $)throw e8;l12?a14+=`${s10}
162
- `:d11=!0}}return{stdout:a14,stderr:"",exitCode:d11?1:0}}},F6={name:"readlink",flags:[{flag:"-f",type:"boolean"},{flag:"-e",type:"boolean"}],needsArgs:!0}}});var readlink_YNNS6F7K_exports={};__export(readlink_YNNS6F7K_exports,{flagsForFuzzing:()=>F6,readlinkCommand:()=>x9});import{createRequire as createRequire56}from"node:module";var require57,init_readlink_YNNS6F7K=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/readlink-YNNS6F7K.js"(){init_chunk_M4LDT7V7();init_chunk_2WBUTDF5();init_chunk_YUSFCOM7();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_FOCWZZDE();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require57=createRequire56(import.meta.url)}});import{createRequire as createRequire57}from"node:module";function A3(e8,s10){let i22=10,r7=null,u15=!1,n10=!1,l12=!1,f15=[];for(let o13=0;o13<e8.length;o13++){let t8=e8[o13];if(t8==="-n"&&o13+1<e8.length){let a14=e8[++o13];s10==="tail"&&a14.startsWith("+")?(l12=!0,i22=parseInt(a14.slice(1),10)):i22=parseInt(a14,10)}else if(s10==="tail"&&t8.startsWith("-n+"))l12=!0,i22=parseInt(t8.slice(3),10);else if(t8.startsWith("-n"))i22=parseInt(t8.slice(2),10);else if(t8==="-c"&&o13+1<e8.length)r7=parseInt(e8[++o13],10);else if(t8.startsWith("-c"))r7=parseInt(t8.slice(2),10);else if(t8.startsWith("--bytes="))r7=parseInt(t8.slice(8),10);else if(t8.startsWith("--lines="))i22=parseInt(t8.slice(8),10);else if(t8==="-q"||t8==="--quiet"||t8==="--silent")u15=!0;else if(t8==="-v"||t8==="--verbose")n10=!0;else if(t8.match(/^-\d+$/))i22=parseInt(t8.slice(1),10);else{if(t8.startsWith("--"))return{ok:!1,error:r5(s10,t8)};if(t8.startsWith("-")&&t8!=="-")return{ok:!1,error:r5(s10,t8)};f15.push(t8)}}return r7!==null&&(Number.isNaN(r7)||r7<0)?{ok:!1,error:{stdout:"",stderr:`${s10}: invalid number of bytes
162
+ `:d11=!0}}return{stdout:a14,stderr:"",exitCode:d11?1:0}}},F6={name:"readlink",flags:[{flag:"-f",type:"boolean"},{flag:"-e",type:"boolean"}],needsArgs:!0}}});var readlink_YNNS6F7K_exports={};__export(readlink_YNNS6F7K_exports,{flagsForFuzzing:()=>F6,readlinkCommand:()=>x9});import{createRequire as createRequire56}from"node:module";var require57,init_readlink_YNNS6F7K=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/readlink-YNNS6F7K.js"(){init_chunk_M4LDT7V7();init_chunk_2WBUTDF5();init_chunk_YUSFCOM7();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_FOCWZZDE();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require57=createRequire56(import.meta.url)}});import{createRequire as createRequire57}from"node:module";function A3(e8,s10){let i22=10,r7=null,u15=!1,n10=!1,l12=!1,f15=[];for(let o13=0;o13<e8.length;o13++){let t8=e8[o13];if(t8==="-n"&&o13+1<e8.length){let a14=e8[++o13];s10==="tail"&&a14.startsWith("+")?(l12=!0,i22=parseInt(a14.slice(1),10)):i22=parseInt(a14,10)}else if(s10==="tail"&&t8.startsWith("-n+"))l12=!0,i22=parseInt(t8.slice(3),10);else if(t8.startsWith("-n"))i22=parseInt(t8.slice(2),10);else if(t8==="-c"&&o13+1<e8.length)r7=parseInt(e8[++o13],10);else if(t8.startsWith("-c"))r7=parseInt(t8.slice(2),10);else if(t8.startsWith("--bytes="))r7=parseInt(t8.slice(8),10);else if(t8.startsWith("--lines="))i22=parseInt(t8.slice(8),10);else if(t8==="-q"||t8==="--quiet"||t8==="--silent")u15=!0;else if(t8==="-v"||t8==="--verbose")n10=!0;else if(t8.match(/^-\d+$/))i22=parseInt(t8.slice(1),10);else{if(t8.startsWith("--"))return{ok:!1,error:r5(s10,t8)};if(t8.startsWith("-")&&t8!=="-")return{ok:!1,error:r5(s10,t8)};f15.push(t8)}}return r7!==null&&(Number.isNaN(r7)||r7<0)?{ok:!1,error:{stdout:"",stderr:`${s10}: invalid number of bytes
163
163
  `,exitCode:1}}:Number.isNaN(i22)||i22<0?{ok:!1,error:{stdout:"",stderr:`${s10}: invalid number of lines
164
164
  `,exitCode:1}}:{ok:!0,options:{lines:i22,bytes:r7,quiet:u15,verbose:n10,files:f15,fromLine:l12}}}async function F7(e8,s10,i22,r7){let{quiet:u15,verbose:n10,files:l12}=s10;if(l12.length>e8.limits.maxArrayElements)throw new f2(`${i22}: file operand limit exceeded (${e8.limits.maxArrayElements})`,"array_elements");if(l12.length===0)return{stdout:r7(e8.stdin),stderr:"",exitCode:0,stdoutEncoding:"binary"};let f15=Math.min(e8.limits.maxOutputSize,e8.limits.maxStringLength),o13=new u5(f15,i22),t8=new u5(f15,i22),a14=0,g13=0,B17=n10||!u15&&l12.length>1,x23=0;for(let m16=0;m16<l12.length;m16++){let c18=l12[m16];try{let p16=e8.fs.resolvePath(e8.cwd,c18);if((await e8.fs.stat(p16)).size>e8.limits.maxInputBytes-g13)throw new f2(`${i22}: aggregate input size limit exceeded (${e8.limits.maxInputBytes} bytes)`,"string_length");let d11=await B(e8.fs,p16);if(d11.length>e8.limits.maxInputBytes-g13)throw new f2(`${i22}: aggregate input size limit exceeded (${e8.limits.maxInputBytes} bytes)`,"string_length");g13+=d11.length,e8.executionScope?.consumeInput(d11.length,i22),B17&&(x23>0&&o13.append(`
165
165
  `),o13.append(l2(`==> ${c18} <==
@@ -168,18 +168,18 @@ Options:
168
168
  `,r7);if(l12===-1)return e8;u15++,r7=l12+1}return r7>0?e8.slice(0,r7):""}function O7(e8,s10,i22,r7){if(i22!==null)return i22===0?"":e8.slice(-i22);let u15=e8.length;if(u15===0)return"";if(r7){let f15=0,o13=1;for(;f15<u15&&o13<s10;){let t8=e8.indexOf(`
169
169
  `,f15);if(t8===-1)return"";o13++,f15=t8+1}return e8.slice(f15)}if(s10===0)return"";let n10=u15-1;e8[n10]===`
170
170
  `&&n10--;let l12=0;for(;n10>=0&&l12<s10;){if(e8[n10]===`
171
- `&&(l12++,l12===s10)){n10++;break}n10--}return n10<0&&(n10=0),e8.slice(n10)}var require58,init_chunk_CGI6V2HW=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-CGI6V2HW.js"(){init_chunk_U7UNEMLJ();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();require58=createRequire57(import.meta.url)}});import{createRequire as createRequire58}from"node:module";var require59,f11,m4,g4,init_chunk_HIQEVPXM=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-HIQEVPXM.js"(){init_chunk_CGI6V2HW();init_chunk_QAYAQNCG();require59=createRequire58(import.meta.url),f11={name:"head",summary:"output the first part of files",usage:"head [OPTION]... [FILE]...",options:["-c, --bytes=NUM print the first NUM bytes","-n, --lines=NUM print the first NUM lines (default 10)","-q, --quiet never print headers giving file names","-v, --verbose always print headers giving file names"," --help display this help and exit"]},m4={name:"head",async execute(t8,l12){if(o5(t8))return s5(f11);let e8=A3(t8,"head");if(!e8.ok)return e8.error;let{lines:o13,bytes:p16}=e8.options;return F7(l12,e8.options,"head",d11=>H7(d11,o13,p16))}},g4={name:"head",flags:[{flag:"-n",type:"value",valueHint:"number"},{flag:"-c",type:"value",valueHint:"number"},{flag:"-q",type:"boolean"},{flag:"-v",type:"boolean"}],stdinType:"text",needsFiles:!0}}});var head_J6RVJFRS_exports={};__export(head_J6RVJFRS_exports,{flagsForFuzzing:()=>g4,headCommand:()=>m4});import{createRequire as createRequire59}from"node:module";var require60,init_head_J6RVJFRS=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/head-J6RVJFRS.js"(){init_chunk_HIQEVPXM();init_chunk_CGI6V2HW();init_chunk_U7UNEMLJ();init_chunk_CBM6J4AL();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require60=createRequire59(import.meta.url)}});import{createRequire as createRequire60}from"node:module";var require61,m5,d6,c9,init_chunk_72JHTO7E=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-72JHTO7E.js"(){init_chunk_CGI6V2HW();init_chunk_QAYAQNCG();require61=createRequire60(import.meta.url),m5={name:"tail",summary:"output the last part of files",usage:"tail [OPTION]... [FILE]...",options:["-c, --bytes=NUM print the last NUM bytes","-n, --lines=NUM print the last NUM lines (default 10)","-n +NUM print starting from line NUM","-q, --quiet never print headers giving file names","-v, --verbose always print headers giving file names"," --help display this help and exit"]},d6={name:"tail",async execute(t8,r7){if(o5(t8))return s5(m5);let e8=A3(t8,"tail");if(!e8.ok)return e8.error;let{lines:o13,bytes:p16,fromLine:f15}=e8.options;return F7(r7,e8.options,"tail",u15=>O7(u15,o13,p16,f15??!1))}},c9={name:"tail",flags:[{flag:"-n",type:"value",valueHint:"number"},{flag:"-c",type:"value",valueHint:"number"},{flag:"-q",type:"boolean"},{flag:"-v",type:"boolean"}],stdinType:"text",needsFiles:!0}}});var tail_UGFWX3YY_exports={};__export(tail_UGFWX3YY_exports,{flagsForFuzzing:()=>c9,tailCommand:()=>d6});import{createRequire as createRequire61}from"node:module";var require62,init_tail_UGFWX3YY=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/tail-UGFWX3YY.js"(){init_chunk_72JHTO7E();init_chunk_CGI6V2HW();init_chunk_U7UNEMLJ();init_chunk_CBM6J4AL();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require62=createRequire61(import.meta.url)}});import{createRequire as createRequire62}from"node:module";function C5(a14,f15){let s10=a14,o13=s10.length,n10=f15?Array.from(a2(a14)).length:o13,l12=0,e8=0,t8=!1;for(let c18=0;c18<o13;c18++){let i22=s10[c18];i22===`
172
- `?(l12++,t8&&(e8++,t8=!1)):i22===" "||i22===" "||i22==="\r"?t8&&(e8++,t8=!1):t8=!0}return t8&&e8++,{lines:l12,words:e8,third:n10}}function x10(a14,f15,s10,o13,n10,l12){let e8=[];f15&&e8.push(String(a14.lines).padStart(l12)),s10&&e8.push(String(a14.words).padStart(l12)),o13&&e8.push(String(a14.third).padStart(l12));let t8=e8.join(" ");return n10&&(t8+=` ${n10}`),t8}var require63,H8,O8,N5,j7,init_chunk_P5BOIHWV=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-P5BOIHWV.js"(){init_chunk_CHHWTPDH();init_chunk_GN6CQ3J4();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();require63=createRequire62(import.meta.url),H8={name:"wc",summary:"print newline, word, and byte counts for each file",usage:"wc [OPTION]... [FILE]...",options:["-c, --bytes print the byte counts","-m, --chars print the character counts","-l, --lines print the newline counts","-w, --words print the word counts"," --help display this help and exit"]},O8={lines:{short:"l",long:"lines",type:"boolean"},words:{short:"w",long:"words",type:"boolean"},bytes:{short:"c",long:"bytes",type:"boolean"},chars:{short:"m",long:"chars",type:"boolean"}},N5={name:"wc",async execute(a14,f15){if(o5(a14))return s5(H8);let s10=x5("wc",a14,O8);if(!s10.ok)return s10.error;let{lines:o13,words:n10}=s10.result.flags,l12=s10.result.flags.bytes,e8=s10.result.flags.chars,t8=s10.result.positional;!o13&&!n10&&!l12&&!e8&&(o13=n10=l12=!0);let c18=l12||e8,i22=await y3(f15,t8,{cmdName:"wc",stopOnError:!1});if(t8.length===0){let r7=C5(i22.files[0].content,e8);return{stdout:`${x10(r7,o13,n10,c18,"",0)}
171
+ `&&(l12++,l12===s10)){n10++;break}n10--}return n10<0&&(n10=0),e8.slice(n10)}var require58,init_chunk_CGI6V2HW=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-CGI6V2HW.js"(){init_chunk_U7UNEMLJ();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();require58=createRequire57(import.meta.url)}});import{createRequire as createRequire58}from"node:module";var require59,f11,m4,g4,init_chunk_HIQEVPXM=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-HIQEVPXM.js"(){init_chunk_CGI6V2HW();init_chunk_QAYAQNCG();require59=createRequire58(import.meta.url),f11={name:"head",summary:"output the first part of files",usage:"head [OPTION]... [FILE]...",options:["-c, --bytes=NUM print the first NUM bytes","-n, --lines=NUM print the first NUM lines (default 10)","-q, --quiet never print headers giving file names","-v, --verbose always print headers giving file names"," --help display this help and exit"]},m4={name:"head",async execute(t8,l12){if(o5(t8))return s5(f11);let e8=A3(t8,"head");if(!e8.ok)return e8.error;let{lines:o13,bytes:p16}=e8.options;return F7(l12,e8.options,"head",d11=>H7(d11,o13,p16))}},g4={name:"head",flags:[{flag:"-n",type:"value",valueHint:"number"},{flag:"-c",type:"value",valueHint:"number"},{flag:"-q",type:"boolean"},{flag:"-v",type:"boolean"}],stdinType:"text",needsFiles:!0}}});var head_J6RVJFRS_exports={};__export(head_J6RVJFRS_exports,{flagsForFuzzing:()=>g4,headCommand:()=>m4});import{createRequire as createRequire59}from"node:module";var require60,init_head_J6RVJFRS=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/head-J6RVJFRS.js"(){init_chunk_HIQEVPXM();init_chunk_CGI6V2HW();init_chunk_U7UNEMLJ();init_chunk_CBM6J4AL();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require60=createRequire59(import.meta.url)}});import{createRequire as createRequire60}from"node:module";var require61,m5,d6,c9,init_chunk_72JHTO7E=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-72JHTO7E.js"(){init_chunk_CGI6V2HW();init_chunk_QAYAQNCG();require61=createRequire60(import.meta.url),m5={name:"tail",summary:"output the last part of files",usage:"tail [OPTION]... [FILE]...",options:["-c, --bytes=NUM print the last NUM bytes","-n, --lines=NUM print the last NUM lines (default 10)","-n +NUM print starting from line NUM","-q, --quiet never print headers giving file names","-v, --verbose always print headers giving file names"," --help display this help and exit"]},d6={name:"tail",async execute(t8,r7){if(o5(t8))return s5(m5);let e8=A3(t8,"tail");if(!e8.ok)return e8.error;let{lines:o13,bytes:p16,fromLine:f15}=e8.options;return F7(r7,e8.options,"tail",u15=>O7(u15,o13,p16,f15??!1))}},c9={name:"tail",flags:[{flag:"-n",type:"value",valueHint:"number"},{flag:"-c",type:"value",valueHint:"number"},{flag:"-q",type:"boolean"},{flag:"-v",type:"boolean"}],stdinType:"text",needsFiles:!0}}});var tail_UGFWX3YY_exports={};__export(tail_UGFWX3YY_exports,{flagsForFuzzing:()=>c9,tailCommand:()=>d6});import{createRequire as createRequire61}from"node:module";var require62,init_tail_UGFWX3YY=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/tail-UGFWX3YY.js"(){init_chunk_72JHTO7E();init_chunk_CGI6V2HW();init_chunk_U7UNEMLJ();init_chunk_CBM6J4AL();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require62=createRequire61(import.meta.url)}});import{createRequire as createRequire62}from"node:module";function C5(a14,f15){let s10=a14,o13=s10.length,n10=f15?Array.from(a2(a14)).length:o13,l12=0,e8=0,t8=!1;for(let c18=0;c18<o13;c18++){let i22=s10[c18];i22===`
172
+ `?(l12++,t8&&(e8++,t8=!1)):i22===" "||i22===" "||i22==="\r"?t8&&(e8++,t8=!1):t8=!0}return t8&&e8++,{lines:l12,words:e8,third:n10}}function x10(a14,f15,s10,o13,n10,l12){let e8=[];f15&&e8.push(String(a14.lines).padStart(l12)),s10&&e8.push(String(a14.words).padStart(l12)),o13&&e8.push(String(a14.third).padStart(l12));let t8=e8.join(" ");return n10&&(t8+=` ${n10}`),t8}var require63,H8,O8,N5,j7,init_chunk_P5BOIHWV=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-P5BOIHWV.js"(){init_chunk_CHHWTPDH();init_chunk_GN6CQ3J4();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();require63=createRequire62(import.meta.url),H8={name:"wc",summary:"print newline, word, and byte counts for each file",usage:"wc [OPTION]... [FILE]...",options:["-c, --bytes print the byte counts","-m, --chars print the character counts","-l, --lines print the newline counts","-w, --words print the word counts"," --help display this help and exit"]},O8={lines:{short:"l",long:"lines",type:"boolean"},words:{short:"w",long:"words",type:"boolean"},bytes:{short:"c",long:"bytes",type:"boolean"},chars:{short:"m",long:"chars",type:"boolean"}},N5={name:"wc",async execute(a14,f15){if(o5(a14))return s5(H8);let s10=x5("wc",a14,O8);if(!s10.ok)return s10.error;let{lines:o13,words:n10}=s10.result.flags,l12=s10.result.flags.bytes,e8=s10.result.flags.chars,t8=s10.result.positional;!o13&&!n10&&!l12&&!e8&&(o13=n10=l12=!0);let c18=l12||e8,i22=await y3(f15,t8,{cmdName:"wc",stopOnError:!1});if(t8.length===0){let r7=C5(i22.files[0].content,e8);return{stdout:`${x10(r7,o13,n10,c18,"",0)}
173
173
  `,stderr:"",exitCode:0}}let d11=[],m16=0,g13=0,u15=0;for(let{filename:r7,content:y14}of i22.files){let p16=C5(y14,e8);m16+=p16.lines,g13+=p16.words,u15+=p16.third,d11.push({filename:r7,stats:p16})}let L21=t8.length>1?m16:Math.max(...d11.map(r7=>r7.stats.lines)),$22=t8.length>1?g13:Math.max(...d11.map(r7=>r7.stats.words)),B17=t8.length>1?u15:Math.max(...d11.map(r7=>r7.stats.third)),h18=t8.length>1?3:0;o13&&(h18=Math.max(h18,String(L21).length)),n10&&(h18=Math.max(h18,String($22).length)),c18&&(h18=Math.max(h18,String(B17).length));let w15="";for(let{filename:r7,stats:y14}of d11)w15+=`${x10(y14,o13,n10,c18,r7,h18)}
174
174
  `;return t8.length>1&&(w15+=`${x10({lines:m16,words:g13,third:u15},o13,n10,c18,"total",h18)}
175
- `),{stdout:w15,stderr:i22.stderr,exitCode:i22.exitCode}}};j7={name:"wc",flags:[{flag:"-l",type:"boolean"},{flag:"-w",type:"boolean"},{flag:"-c",type:"boolean"},{flag:"-m",type:"boolean"}],stdinType:"text",needsFiles:!0}}});var wc_RUR7HE5O_exports={};__export(wc_RUR7HE5O_exports,{flagsForFuzzing:()=>j7,wcCommand:()=>N5});import{createRequire as createRequire63}from"node:module";var require64,init_wc_RUR7HE5O=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/wc-RUR7HE5O.js"(){init_chunk_P5BOIHWV();init_chunk_CHHWTPDH();init_chunk_STHBFACM();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require64=createRequire63(import.meta.url)}});import{createRequire as createRequire64}from"node:module";function x11(r7,o13){let t8=o13?"d":"-",n10=[r7&256?"r":"-",r7&128?"w":"-",r7&64?"x":"-",r7&32?"r":"-",r7&16?"w":"-",r7&8?"x":"-",r7&4?"r":"-",r7&2?"w":"-",r7&1?"x":"-"];return t8+n10.join("")}var require65,init_chunk_TDD4NFYE=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-TDD4NFYE.js"(){require65=createRequire64(import.meta.url)}});import{createRequire as createRequire65}from"node:module";var require66,M4,E6,I7,P5,init_chunk_R6ZGLVXI=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-R6ZGLVXI.js"(){init_chunk_TDD4NFYE();init_chunk_U7UNEMLJ();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();require66=createRequire65(import.meta.url),M4={name:"stat",summary:"display file or file system status",usage:"stat [OPTION]... FILE...",options:["-c FORMAT use the specified FORMAT instead of the default"," --help display this help and exit"]},E6={format:{short:"c",type:"string"}},I7={name:"stat",async execute(l12,s10){if(o5(l12))return s5(M4);let o13=x5("stat",l12,E6);if(!o13.ok)return o13.error;let m16=o13.result.flags.format??null,u15=o13.result.positional;if(u15.length===0)return{stdout:"",stderr:`stat: missing operand
175
+ `),{stdout:w15,stderr:i22.stderr,exitCode:i22.exitCode}}};j7={name:"wc",flags:[{flag:"-l",type:"boolean"},{flag:"-w",type:"boolean"},{flag:"-c",type:"boolean"},{flag:"-m",type:"boolean"}],stdinType:"text",needsFiles:!0}}});var wc_RUR7HE5O_exports={};__export(wc_RUR7HE5O_exports,{flagsForFuzzing:()=>j7,wcCommand:()=>N5});import{createRequire as createRequire63}from"node:module";var require64,init_wc_RUR7HE5O=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/wc-RUR7HE5O.js"(){init_chunk_P5BOIHWV();init_chunk_CHHWTPDH();init_chunk_STHBFACM();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require64=createRequire63(import.meta.url)}});import{createRequire as createRequire64}from"node:module";function x11(r7,o13){let t8=o13?"d":"-",n10=[r7&256?"r":"-",r7&128?"w":"-",r7&64?"x":"-",r7&32?"r":"-",r7&16?"w":"-",r7&8?"x":"-",r7&4?"r":"-",r7&2?"w":"-",r7&1?"x":"-"];return t8+n10.join("")}var require65,init_chunk_TDD4NFYE=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-TDD4NFYE.js"(){require65=createRequire64(import.meta.url)}});import{createRequire as createRequire65}from"node:module";var require66,M4,E6,I7,P5,init_chunk_R6ZGLVXI=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-R6ZGLVXI.js"(){init_chunk_TDD4NFYE();init_chunk_U7UNEMLJ();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();require66=createRequire65(import.meta.url),M4={name:"stat",summary:"display file or file system status",usage:"stat [OPTION]... FILE...",options:["-c FORMAT use the specified FORMAT instead of the default"," --help display this help and exit"]},E6={format:{short:"c",type:"string"}},I7={name:"stat",async execute(l12,s10){if(o5(l12))return s5(M4);let o13=x5("stat",l12,E6);if(!o13.ok)return o13.error;let m16=o13.result.flags.format??null,u15=o13.result.positional;if(u15.length===0)return{stdout:"",stderr:`stat: missing operand
176
176
  `,exitCode:1};let c18="",f15="",p16=!1,d11=0,g13=Math.min(s10.limits.maxOutputSize,s10.limits.maxStringLength),h18=e8=>{let r7=x(e8);if(r7>g13-d11)throw new f2(`stat: output size limit exceeded (${g13} bytes)`,"output_size");c18+=e8,d11+=r7};for(let e8 of u15){let r7=s10.fs.resolvePath(s10.cwd,e8);try{let t8=await s10.fs.stat(r7);if(m16){let a14=t8.mode.toString(8),i22=x11(t8.mode,t8.isDirectory),w15=new Map([["%n",e8],["%N",`'${e8}'`],["%s",String(t8.size)],["%F",t8.isDirectory?"directory":"regular file"],["%a",a14],["%A",i22],["%u","1000"],["%U","user"],["%g","1000"],["%G","group"]]),A13=m16.replace(/%[nNsFaAuUgG]/g,y14=>w15.get(y14)??y14);h18(`${A13}
177
177
  `)}else{let a14=t8.mode.toString(8).padStart(4,"0"),i22=x11(t8.mode,t8.isDirectory);h18(` File: ${e8}
178
178
  Size: ${t8.size} Blocks: ${Math.ceil(t8.size/512)}
179
179
  Access: (${a14}/${i22})
180
180
  Modify: ${t8.mtime.toISOString()}
181
181
  `)}}catch(t8){e2(t8),f15+=`stat: cannot stat '${e8}': No such file or directory
182
- `,p16=!0}}return{stdout:c18,stderr:f15,exitCode:p16?1:0}}},P5={name:"stat",flags:[{flag:"-c",type:"value",valueHint:"format"},{flag:"-L",type:"boolean"}],needsArgs:!0}}});var stat_YLVJ4L67_exports={};__export(stat_YLVJ4L67_exports,{flagsForFuzzing:()=>P5,statCommand:()=>I7});import{createRequire as createRequire66}from"node:module";var require67,init_stat_YLVJ4L67=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/stat-YLVJ4L67.js"(){init_chunk_R6ZGLVXI();init_chunk_TDD4NFYE();init_chunk_U7UNEMLJ();init_chunk_CBM6J4AL();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require67=createRequire66(import.meta.url)}});import{createRequire as createRequire67}from"node:module";function u9(l12,c18,t8){let s10=typeof t8=="boolean"?{ignoreCase:t8}:t8??{},e8=c18;s10.stripQuotes&&(e8.startsWith('"')&&e8.endsWith('"')||e8.startsWith("'")&&e8.endsWith("'"))&&(e8=e8.slice(1,-1));let i22=s10.ignoreCase?`i:${e8}`:e8,n10=o7.get(i22);if(!n10){if(n10=a9(e8,s10.ignoreCase),o7.size>=g5){let f15=o7.keys().next().value;f15!==void 0&&o7.delete(f15)}o7.set(i22,n10)}return n10.test(l12)}function a9(l12,c18){let t8="^";for(let s10=0;s10<l12.length;s10++){let e8=l12[s10];if(e8==="*")t8+=".*";else if(e8==="?")t8+=".";else if(e8==="["){let i22=s10+1;for(;i22<l12.length&&l12[i22]!=="]";)i22++;t8+=l12.slice(s10,i22+1),s10=i22}else e8==="."||e8==="+"||e8==="^"||e8==="$"||e8==="{"||e8==="}"||e8==="("||e8===")"||e8==="|"||e8==="\\"?t8+=`\\${e8}`:t8+=e8}return t8+="$",G1(t8,c18?"i":"")}var require68,g5,o7,init_chunk_OB46N7Q7=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-OB46N7Q7.js"(){init_chunk_7GA3QWJJ();require68=createRequire67(import.meta.url),g5=2048,o7=new Map}});import{createRequire as createRequire68}from"node:module";function X4(t8,n10){let e8=t8.ignoreCase?n10.toLowerCase():n10,i22=t8.needles;for(let s10=0;s10<i22.length;s10++)if(e8.indexOf(i22[s10])!==-1)return!0;return!1}function ee2(t8,n10){return t8.replace(/\$(&|\d+|<([^>]+)>)/g,(e8,i22,s10)=>{if(i22==="&")return n10[0];if(s10!==void 0)return n10.groups?.[s10]??"";let o13=parseInt(i22,10);return n10[o13]??""})}function ne(t8,n10,e8={}){let{invertMatch:i22=!1,showLineNumbers:s10=!1,countOnly:o13=!1,countMatches:c18=!1,filename:h18="",onlyMatching:L21=!1,beforeContext:F24=0,afterContext:O18=0,maxCount:A13=0,contextSeparator:q11="--",showColumn:Z10=!1,vimgrep:H20=!1,showByteOffset:W12=!1,replace:E19=null,passthru:K11=!1,multiline:Q12=!1,kResetGroup:S15,preFilter:R21,maxWork:N16,maxMatches:g13,signal:U12}=e8;if(Q12)return ie(t8,n10,{invertMatch:i22,showLineNumbers:s10,countOnly:o13,countMatches:c18,filename:h18,onlyMatching:L21,beforeContext:F24,afterContext:O18,maxCount:A13,contextSeparator:q11,showColumn:Z10,showByteOffset:W12,replace:E19,kResetGroup:S15,preFilter:R21,maxWork:N16,maxMatches:g13,signal:U12});let _13=0,C18=(l12=1)=>{if(U12?.aborted)throw new $;if(_13+=l12,N16!==void 0&&_13>N16)throw new f2(`search: matching work limit exceeded (${N16})`,"iterations")},b23=(l12,a14)=>{if(g13!==void 0&&l12.length>=g13)throw new f2(`search: result limit exceeded (${g13})`,"array_elements");l12.push(a14)},j21=1;for(let l12=0;l12<t8.length;l12++)if((l12&1023)===0&&C18(),t8.charCodeAt(l12)===10&&(j21++,g13!==void 0&&j21>g13))throw new f2(`search: line limit exceeded (${g13})`,"array_elements");let P17=t8.split(`
182
+ `,p16=!0}}return{stdout:c18,stderr:f15,exitCode:p16?1:0}}},P5={name:"stat",flags:[{flag:"-c",type:"value",valueHint:"format"},{flag:"-L",type:"boolean"}],needsArgs:!0}}});var stat_YLVJ4L67_exports={};__export(stat_YLVJ4L67_exports,{flagsForFuzzing:()=>P5,statCommand:()=>I7});import{createRequire as createRequire66}from"node:module";var require67,init_stat_YLVJ4L67=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/stat-YLVJ4L67.js"(){init_chunk_R6ZGLVXI();init_chunk_TDD4NFYE();init_chunk_U7UNEMLJ();init_chunk_CBM6J4AL();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require67=createRequire66(import.meta.url)}});import{createRequire as createRequire67}from"node:module";function u9(l12,c18,t8){let s10=typeof t8=="boolean"?{ignoreCase:t8}:t8??{},e8=c18;s10.stripQuotes&&(e8.startsWith('"')&&e8.endsWith('"')||e8.startsWith("'")&&e8.endsWith("'"))&&(e8=e8.slice(1,-1));let i22=s10.ignoreCase?`i:${e8}`:e8,n10=o7.get(i22);if(!n10){if(n10=a9(e8,s10.ignoreCase),o7.size>=g5){let f15=o7.keys().next().value;f15!==void 0&&o7.delete(f15)}o7.set(i22,n10)}return n10.test(l12)}function a9(l12,c18){let t8="^";for(let s10=0;s10<l12.length;s10++){let e8=l12[s10];if(e8==="*")t8+=".*";else if(e8==="?")t8+=".";else if(e8==="["){let i22=s10+1;for(;i22<l12.length&&l12[i22]!=="]";)i22++;t8+=l12.slice(s10,i22+1),s10=i22}else e8==="."||e8==="+"||e8==="^"||e8==="$"||e8==="{"||e8==="}"||e8==="("||e8===")"||e8==="|"||e8==="\\"?t8+=`\\${e8}`:t8+=e8}return t8+="$",G1(t8,c18?"i":"")}var require68,g5,o7,init_chunk_OB46N7Q7=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-OB46N7Q7.js"(){init_chunk_7GA3QWJJ();require68=createRequire67(import.meta.url),g5=2048,o7=new Map}});import{createRequire as createRequire68}from"node:module";function X4(t8,n10){let e8=t8.ignoreCase?n10.toLowerCase():n10,i22=t8.needles;for(let s10=0;s10<i22.length;s10++)if(e8.indexOf(i22[s10])!==-1)return!0;return!1}function ee2(t8,n10){return t8.replace(/\$(&|\d+|<([^>]+)>)/g,(e8,i22,s10)=>{if(i22==="&")return n10[0];if(s10!==void 0)return n10.groups?.[s10]??"";let o13=parseInt(i22,10);return n10[o13]??""})}function ne(t8,n10,e8={}){let{invertMatch:i22=!1,showLineNumbers:s10=!1,countOnly:o13=!1,countMatches:c18=!1,filename:h18="",onlyMatching:L21=!1,beforeContext:F24=0,afterContext:O18=0,maxCount:A13=0,contextSeparator:q11="--",showColumn:Z10=!1,vimgrep:H20=!1,showByteOffset:W12=!1,replace:E19=null,passthru:K11=!1,multiline:Q12=!1,kResetGroup:S15,preFilter:R21,maxWork:N16,maxMatches:g13,signal:U12}=e8;if(Q12)return ie(t8,n10,{invertMatch:i22,showLineNumbers:s10,countOnly:o13,countMatches:c18,filename:h18,onlyMatching:L21,beforeContext:F24,afterContext:O18,maxCount:A13,contextSeparator:q11,showColumn:Z10,showByteOffset:W12,replace:E19,kResetGroup:S15,preFilter:R21,maxWork:N16,maxMatches:g13,signal:U12});let _13=0,C18=(l12=1)=>{if(U12?.aborted)throw new $;if(_13+=l12,N16!==void 0&&_13>N16)throw new f2(`search: matching work limit exceeded (${N16})`,"iterations")},b23=(l12,a14)=>{if(g13!==void 0&&l12.length>=g13)throw new f2(`search: result limit exceeded (${g13})`,"array_elements");l12.push(a14)},j21=1;for(let l12=0;l12<t8.length;l12++)if((l12&1023)===0&&C18(),t8.charCodeAt(l12)===10&&(j21++,g13!==void 0&&j21>g13))throw new f2(`search: line limit exceeded (${g13})`,"array_elements");let P17=t8.split(`
183
183
  `),y14=P17.length,k19=y14>0&&P17[y14-1]===""?y14-1:y14;if(o13||c18){let l12=0,a14=(c18||L21)&&!i22;for(let r7=0;r7<k19;r7++){C18();let u15=P17[r7];if(!(R21&&!i22&&!X4(R21,u15)))if(n10.lastIndex=0,a14)for(let x23=n10.exec(u15);x23!==null;x23=n10.exec(u15))C18(),l12++,x23[0].length===0&&n10.lastIndex++;else n10.test(u15)!==i22&&l12++}return{output:`${h18?`${h18}:${l12}`:String(l12)}
184
184
  `,matched:l12>0,matchCount:l12}}if(F24===0&&O18===0&&!K11){let l12=[],a14=!1,d11=0,r7=0;for(let u15=0;u15<k19&&(C18(),!(A13>0&&d11>=A13));u15++){let x23=P17[u15],I22=null;if(R21&&!X4(R21,x23)||(n10.lastIndex=0,I22=n10.exec(x23)),I22!==null!==i22)if(a14=!0,d11++,L21)for(let w15=I22;w15!==null;w15=n10.exec(x23)){C18();let z16=S15!==void 0?w15[S15]??"":w15[0],B17=E19!==null?ee2(E19,w15):z16,p16=h18?`${h18}:`:"";W12&&(p16+=`${r7+w15.index}:`),s10&&(p16+=`${u15+1}:`),Z10&&(p16+=`${w15.index+1}:`),b23(l12,p16+B17),w15[0].length===0&&n10.lastIndex++}else if(H20)for(let w15=I22;w15!==null;w15=n10.exec(x23)){C18();let z16=h18?`${h18}:`:"";W12&&(z16+=`${r7+w15.index}:`),s10&&(z16+=`${u15+1}:`),Z10&&(z16+=`${w15.index+1}:`),b23(l12,z16+x23),w15[0].length===0&&n10.lastIndex++}else{let w15=I22?I22.index+1:1,z16=x23;E19!==null&&(n10.lastIndex=0,z16=n10.replace(x23,(...p16)=>{if(p16[0].length===0)return"";let D18=p16,J13=p16[p16.length-1];return typeof J13=="object"&&J13!==null?(D18.groups=J13,D18.input=p16[p16.length-2],D18.index=p16[p16.length-3]):(D18.input=p16[p16.length-1],D18.index=p16[p16.length-2]),ee2(E19,D18)}));let B17=h18?`${h18}:`:"";W12&&(B17+=`${r7+(I22?I22.index:0)}:`),s10&&(B17+=`${u15+1}:`),Z10&&(B17+=`${w15}:`),b23(l12,B17+z16)}r7+=x23.length+1}return{output:l12.length>0?`${l12.join(`
185
185
  `)}
@@ -196,9 +196,9 @@ Modify: ${t8.mtime.toISOString()}
196
196
  `:"",matched:m16.length>0,matchCount:m16.length}}if(y14.length===0)return{output:"",matched:!1,matchCount:0};let k19=new Set,M20=-1,v13=[];for(let f15 of y14){g13();let m16=Math.max(0,f15.startLine-F24),$22=Math.min(b23-1,f15.endLine+O18);M20>=0&&m16>M20+1&&v13.push(q11);for(let l12=m16;l12<f15.startLine;l12++)if(g13(),!k19.has(l12)){k19.add(l12),M20=l12;let a14=_13[l12];s10&&(a14=`${l12+1}-${a14}`),h18&&(a14=`${h18}-${a14}`),v13.push(a14)}if(L21){let l12=W12!==null?W12:f15.matchText,a14=h18?`${h18}:`:"";H20&&(a14+=`${f15.byteOffset}:`),s10&&(a14+=`${f15.startLine+1}:`),Z10&&(a14+=`${f15.column}:`),v13.push(a14+l12);for(let d11=f15.startLine;d11<=f15.endLine;d11++)g13(),k19.add(d11),M20=d11}else for(let l12=f15.startLine;l12<=f15.endLine&&l12<b23;l12++)if(g13(),!k19.has(l12)){k19.add(l12),M20=l12;let a14=_13[l12];W12!==null&&l12===f15.startLine&&(n10.lastIndex=0,a14=n10.replace(a14,W12));let d11=h18?`${h18}:`:"";H20&&l12===f15.startLine&&(d11+=`${f15.byteOffset}:`),s10&&(d11+=`${l12+1}:`),Z10&&l12===f15.startLine&&(d11+=`${f15.column}:`),v13.push(d11+a14)}for(let l12=f15.endLine+1;l12<=$22;l12++)if(g13(),!k19.has(l12)){k19.add(l12),M20=l12;let a14=_13[l12];s10&&(a14=`${l12+1}-${a14}`),h18&&(a14=`${h18}-${a14}`),v13.push(a14)}}return{output:v13.length>0?`${v13.join(`
197
197
  `)}
198
198
  `:"",matched:!0,matchCount:y14.length}}function te2(t8){let n10="",e8=0;for(;e8<t8.length;){if(t8.slice(e8,e8+7)==="[[:<:]]"){n10+="\\b",e8+=7;continue}if(t8.slice(e8,e8+7)==="[[:>:]]"){n10+="\\b",e8+=7;continue}if(t8[e8]==="["){let i22="[";for(e8++,e8<t8.length&&(t8[e8]==="^"||t8[e8]==="!")&&(i22+="^",e8++),e8<t8.length&&t8[e8]==="]"&&(i22+="\\]",e8++);e8<t8.length&&t8[e8]!=="]";){if(t8[e8]==="["&&e8+1<t8.length&&t8[e8+1]===":"){let s10=t8.indexOf(":]",e8+2);if(s10!==-1){let o13=t8.slice(e8+2,s10),c18=le.get(o13);if(c18){i22+=c18,e8=s10+2;continue}}}if(t8[e8]==="\\"&&e8+1<t8.length){i22+=t8[e8]+t8[e8+1],e8+=2;continue}i22+=t8[e8],e8++}e8<t8.length&&t8[e8]==="]"&&(i22+="]",e8++),n10+=i22;continue}if(t8[e8]==="\\"&&e8+1<t8.length){n10+=t8[e8]+t8[e8+1],e8+=2;continue}n10+=t8[e8],e8++}return n10}function se(t8,n10){let e8,i22;switch(n10.mode){case"fixed":e8=t8.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");break;case"extended":case"perl":{if(e8=te2(t8),e8=e8.replace(/\(\?P<([^>]+)>/g,"(?<$1>"),n10.mode==="perl"){e8=ue(e8),e8=he(e8),e8=ae2(e8);let h18=$e(e8);e8=h18.pattern,i22=h18.kResetGroup}break}default:e8=te2(t8),e8=Ce(e8);break}n10.wholeWord&&(e8=`\\b(?:${e8})\\b`),n10.lineRegexp&&(e8=`^(?:${e8})$`);let s10=/\\u\{[0-9A-Fa-f]+\}/.test(e8),o13="g"+(n10.ignoreCase?"i":"")+(n10.multiline?"m":"")+(n10.multilineDotall?"s":"")+(s10?"u":""),c18=oe(e8,n10.ignoreCase??!1);return{regex:G1(e8,o13),kResetGroup:i22,preFilter:c18??void 0}}function oe(t8,n10){let e8=t8;if(e8.startsWith("\\b(?:")&&e8.endsWith(")\\b")?e8=e8.slice(5,e8.length-3):e8.startsWith("\\b")&&e8.endsWith("\\b")&&e8.length>=4&&(e8=e8.slice(2,e8.length-2)),e8.length===0)return null;let i22=fe2(e8);if(i22===null)return null;let s10=[];for(let o13 of i22){let c18=ce(o13);if(c18===null||c18.length===0)return null;s10.push(c18)}return s10.length===0?null:{needles:n10?s10.map(o13=>o13.toLowerCase()):s10,ignoreCase:n10}}function fe2(t8){let n10=[],e8=0,i22=!1,s10=0;for(let o13=0;o13<t8.length;o13++){let c18=t8[o13];if(c18==="\\"){o13++;continue}if(i22){c18==="]"&&(i22=!1);continue}if(c18==="[")i22=!0;else if(c18==="(")e8++;else if(c18===")"){if(e8--,e8<0)return null}else c18==="|"&&e8===0&&(n10.push(t8.slice(s10,o13)),s10=o13+1)}return e8!==0||i22?null:(n10.push(t8.slice(s10)),n10)}function ce(t8){let n10=t8;if(n10.startsWith("^")&&(n10=n10.slice(1)),n10.endsWith("$")){let i22=0;for(let s10=n10.length-2;s10>=0&&n10[s10]==="\\";s10--)i22++;i22%2===0&&(n10=n10.slice(0,-1))}if(n10.length===0)return null;let e8="";for(let i22=0;i22<n10.length;i22++){let s10=n10[i22];if(s10==="\\"){let o13=n10[i22+1];if(o13===void 0||/[dDwWsSbBAZzGQE0-9ckpPNXRxuU]/.test(o13))return null;o13==="n"?e8+=`
199
- `:o13==="t"?e8+=" ":o13==="r"?e8+="\r":o13==="f"?e8+="\f":o13==="v"?e8+="\v":e8+=o13,i22++;continue}if(/[.*+?^${}()|[\]]/.test(s10))return null;e8+=s10}return e8}function ue(t8){let n10="",e8=0;for(;e8<t8.length;)if(t8[e8]==="\\"&&e8+1<t8.length&&t8[e8+1]==="Q"){e8+=2;let i22="";for(;e8<t8.length;){if(t8[e8]==="\\"&&e8+1<t8.length&&t8[e8+1]==="E"){e8+=2;break}i22+=t8[e8],e8++}n10+=i22.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}else n10+=t8[e8],e8++;return n10}function he(t8){return t8.replace(/\\x\{([0-9A-Fa-f]+)\}/g,"\\u{$1}")}function ae2(t8){let n10="",e8=0;for(;e8<t8.length;){if(t8[e8]==="("&&e8+1<t8.length&&t8[e8+1]==="?"){let i22=t8.slice(e8).match(/^\(\?([imsx]*)(-[imsx]*)?(:|$|\))/);if(i22){let s10=i22[1]||"",o13=i22[2]||"",c18=i22[3];if(c18===":"){let h18=e8+i22[0].length-1,L21=re(t8,e8);if(L21!==-1){let F24=t8.slice(h18+1,L21),O18=de(F24,s10,o13);n10+=`(?:${O18})`,e8=L21+1;continue}}else if(c18===")"||c18===""){e8+=i22[0].length;continue}}}n10+=t8[e8],e8++}return n10}function re(t8,n10){let e8=0,i22=n10;for(;i22<t8.length;){if(t8[i22]==="\\"){i22+=2;continue}if(t8[i22]==="["){for(i22++;i22<t8.length&&t8[i22]!=="]";)t8[i22]==="\\"&&i22++,i22++;i22++;continue}if(t8[i22]==="(")e8++;else if(t8[i22]===")"&&(e8--,e8===0))return i22;i22++}return-1}function de(t8,n10,e8){let i22=t8;return n10.includes("i")&&(i22=me(i22)),i22}function me(t8){let n10="",e8=0;for(;e8<t8.length;){let i22=t8[e8];if(i22==="\\"){e8+1<t8.length?(n10+=i22+t8[e8+1],e8+=2):(n10+=i22,e8++);continue}if(i22==="["){n10+=i22,e8++,e8<t8.length&&t8[e8]==="^"&&(n10+=t8[e8],e8++);let s10=[];for(;e8<t8.length&&t8[e8]!=="]";)if(t8[e8]==="\\")s10.push(t8[e8]),e8++,e8<t8.length&&(s10.push(t8[e8]),e8++);else if(t8[e8]==="-"&&s10.length>0&&e8+1<t8.length&&t8[e8+1]!=="]"){let o13=s10[s10.length-1],c18=t8[e8+1];s10.push("-"),s10.push(c18),/[a-z]/.test(o13)&&/[a-z]/.test(c18)?(s10.push(o13.toUpperCase()),s10.push("-"),s10.push(c18.toUpperCase())):/[A-Z]/.test(o13)&&/[A-Z]/.test(c18)&&(s10.push(o13.toLowerCase()),s10.push("-"),s10.push(c18.toLowerCase())),e8+=2}else{let o13=t8[e8];if(s10.push(o13),/[a-zA-Z]/.test(o13)){let c18=o13===o13.toLowerCase()?o13.toUpperCase():o13.toLowerCase();s10.includes(c18)||s10.push(c18)}e8++}n10+=s10.join(""),e8<t8.length&&(n10+=t8[e8],e8++);continue}if(/[a-zA-Z]/.test(i22)){let s10=i22.toLowerCase(),o13=i22.toUpperCase();n10+=`[${o13}${s10}]`}else n10+=i22;e8++}return n10}function $e(t8){let n10=ge(t8);if(n10===-1)return{pattern:t8};let e8=t8.slice(0,n10),i22=t8.slice(n10+2),s10=xe(e8);return{pattern:`(?:${e8})(${i22})`,kResetGroup:s10+1}}function ge(t8){let n10=0;for(;n10<t8.length-1;)if(t8[n10]==="\\"){if(t8[n10+1]==="K"){let e8=0,i22=n10-1;for(;i22>=0&&t8[i22]==="\\";)e8++,i22--;if(e8%2===0)return n10}n10+=2}else n10++;return-1}function xe(t8){let n10=0,e8=0;for(;e8<t8.length;){if(t8[e8]==="\\"){e8+=2;continue}if(t8[e8]==="["){for(e8++;e8<t8.length&&t8[e8]!=="]";)t8[e8]==="\\"&&e8++,e8++;e8++;continue}if(t8[e8]==="(")if(e8+1<t8.length&&t8[e8+1]==="?"){if(e8+2<t8.length){let i22=t8[e8+2];if(i22===":"||i22==="="||i22==="!"){e8++;continue}if(i22==="<"&&e8+3<t8.length){let s10=t8[e8+3];if(s10==="="||s10==="!"){e8++;continue}n10++,e8++;continue}}}else n10++;e8++}return n10}function we(t8){let n10=t8.replace(/\$\{0\}|\$0(?![0-9])/g,"$$&");return n10=n10.replace(/\$\{([^0-9}][^}]*)\}/g,"$$<$1>"),n10=n10.replace(/\$([a-zA-Z_][a-zA-Z0-9_]*)(?![>0-9])/g,"$$<$1>"),n10}function Ce(t8){let n10="",e8=0,i22=!0,s10=0;for(;e8<t8.length;){let o13=t8[e8];if(o13==="["){for(n10+=o13,e8++,e8<t8.length&&(t8[e8]==="^"||t8[e8]==="!")&&(n10+=t8[e8],e8++),e8<t8.length&&t8[e8]==="]"&&(n10+=t8[e8],e8++);e8<t8.length&&t8[e8]!=="]";)t8[e8]==="\\"&&e8+1<t8.length?(n10+=t8[e8]+t8[e8+1],e8+=2):(n10+=t8[e8],e8++);e8<t8.length&&t8[e8]==="]"&&(n10+=t8[e8],e8++),i22=!1;continue}if(o13==="\\"&&e8+1<t8.length){let c18=t8[e8+1];if(c18==="|"){n10+="|",e8+=2,i22=!0;continue}if(c18==="("){n10+="(",e8+=2,s10++,i22=!0;continue}if(c18===")"){n10+=")",e8+=2,s10=Math.max(0,s10-1),i22=!1;continue}if(c18==="{"){let L21=t8.slice(e8).match(/^\\{(\d+)(,(\d*)?)?\\}/);if(L21){let F24=L21[1],O18=L21[2]!==void 0,A13=L21[3]||"";O18?n10+=`{${F24},${A13}}`:n10+=`{${F24}}`,e8+=L21[0].length,i22=!1;continue}n10+="\\{",e8+=2,i22=!1;continue}if(c18==="}"){n10+="\\}",e8+=2,i22=!1;continue}n10+=o13+c18,e8+=2,i22=!1;continue}if(o13==="*"&&i22){n10+="\\*",e8++;continue}if(o13==="^"){if(i22){n10+="^",e8++;continue}n10+="\\^",e8++;continue}if(o13==="$"){let c18=e8===t8.length-1,h18=e8+2<t8.length&&t8[e8+1]==="\\"&&t8[e8+2]===")";c18||h18?n10+="$":n10+="\\$",e8++,i22=!1;continue}o13==="+"||o13==="?"||o13==="|"||o13==="("||o13===")"||o13==="{"||o13==="}"?n10+=`\\${o13}`:n10+=o13,e8++,i22=!1}return n10}var require69,le,init_chunk_DIRWTBKE=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-DIRWTBKE.js"(){init_chunk_7GA3QWJJ();init_chunk_EFORKKSH();require69=createRequire68(import.meta.url);le=new Map([["alpha","a-zA-Z"],["digit","0-9"],["alnum","a-zA-Z0-9"],["lower","a-z"],["upper","A-Z"],["xdigit","0-9A-Fa-f"],["space"," \\t\\n\\r\\f\\v"],["blank"," \\t"],["punct","!-/:-@\\[-`{-~"],["graph","!-~"],["print"," -~"],["cntrl","\\x00-\\x1F\\x7F"],["ascii","\\x00-\\x7F"],["word","a-zA-Z0-9_"]])}});import{createRequire as createRequire69}from"node:module";function he2(t8){let e8=t8.limits.maxLoopIterations,i22=t8.limits.maxArrayElements;return Math.max(e8,Math.min(i22,e8*10))}function F8(t8){if(++t8.operations>t8.maxOperations)throw new f2(`grep: glob operation limit exceeded (${t8.maxOperations})`,"glob_operations")}function U4(t8){if(t8.results>=t8.maxResults)throw new f2(`grep: array element limit exceeded (${t8.maxResults})`,"array_elements");t8.results++}function we2(t8){return t8.split(`
199
+ `:o13==="t"?e8+=" ":o13==="r"?e8+="\r":o13==="f"?e8+="\f":o13==="v"?e8+="\v":e8+=o13,i22++;continue}if(/[.*+?^${}()|[\]]/.test(s10))return null;e8+=s10}return e8}function ue(t8){let n10="",e8=0;for(;e8<t8.length;)if(t8[e8]==="\\"&&e8+1<t8.length&&t8[e8+1]==="Q"){e8+=2;let i22="";for(;e8<t8.length;){if(t8[e8]==="\\"&&e8+1<t8.length&&t8[e8+1]==="E"){e8+=2;break}i22+=t8[e8],e8++}n10+=i22.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}else n10+=t8[e8],e8++;return n10}function he(t8){return t8.replace(/\\x\{([0-9A-Fa-f]+)\}/g,"\\u{$1}")}function ae2(t8){let n10="",e8=0;for(;e8<t8.length;){if(t8[e8]==="("&&e8+1<t8.length&&t8[e8+1]==="?"){let i22=t8.slice(e8).match(/^\(\?([imsx]*)(-[imsx]*)?(:|$|\))/);if(i22){let s10=i22[1]||"",o13=i22[2]||"",c18=i22[3];if(c18===":"){let h18=e8+i22[0].length-1,L21=re(t8,e8);if(L21!==-1){let F24=t8.slice(h18+1,L21),O18=de(F24,s10,o13);n10+=`(?:${O18})`,e8=L21+1;continue}}else if(c18===")"||c18===""){e8+=i22[0].length;continue}}}n10+=t8[e8],e8++}return n10}function re(t8,n10){let e8=0,i22=n10;for(;i22<t8.length;){if(t8[i22]==="\\"){i22+=2;continue}if(t8[i22]==="["){for(i22++;i22<t8.length&&t8[i22]!=="]";)t8[i22]==="\\"&&i22++,i22++;i22++;continue}if(t8[i22]==="(")e8++;else if(t8[i22]===")"&&(e8--,e8===0))return i22;i22++}return-1}function de(t8,n10,e8){let i22=t8;return n10.includes("i")&&(i22=me(i22)),i22}function me(t8){let n10="",e8=0;for(;e8<t8.length;){let i22=t8[e8];if(i22==="\\"){e8+1<t8.length?(n10+=i22+t8[e8+1],e8+=2):(n10+=i22,e8++);continue}if(i22==="["){n10+=i22,e8++,e8<t8.length&&t8[e8]==="^"&&(n10+=t8[e8],e8++);let s10=[];for(;e8<t8.length&&t8[e8]!=="]";)if(t8[e8]==="\\")s10.push(t8[e8]),e8++,e8<t8.length&&(s10.push(t8[e8]),e8++);else if(t8[e8]==="-"&&s10.length>0&&e8+1<t8.length&&t8[e8+1]!=="]"){let o13=s10[s10.length-1],c18=t8[e8+1];s10.push("-"),s10.push(c18),/[a-z]/.test(o13)&&/[a-z]/.test(c18)?(s10.push(o13.toUpperCase()),s10.push("-"),s10.push(c18.toUpperCase())):/[A-Z]/.test(o13)&&/[A-Z]/.test(c18)&&(s10.push(o13.toLowerCase()),s10.push("-"),s10.push(c18.toLowerCase())),e8+=2}else{let o13=t8[e8];if(s10.push(o13),/[a-zA-Z]/.test(o13)){let c18=o13===o13.toLowerCase()?o13.toUpperCase():o13.toLowerCase();s10.includes(c18)||s10.push(c18)}e8++}n10+=s10.join(""),e8<t8.length&&(n10+=t8[e8],e8++);continue}if(/[a-zA-Z]/.test(i22)){let s10=i22.toLowerCase(),o13=i22.toUpperCase();n10+=`[${o13}${s10}]`}else n10+=i22;e8++}return n10}function $e(t8){let n10=ge(t8);if(n10===-1)return{pattern:t8};let e8=t8.slice(0,n10),i22=t8.slice(n10+2),s10=xe(e8);return{pattern:`(?:${e8})(${i22})`,kResetGroup:s10+1}}function ge(t8){let n10=0;for(;n10<t8.length-1;)if(t8[n10]==="\\"){if(t8[n10+1]==="K"){let e8=0,i22=n10-1;for(;i22>=0&&t8[i22]==="\\";)e8++,i22--;if(e8%2===0)return n10}n10+=2}else n10++;return-1}function xe(t8){let n10=0,e8=0;for(;e8<t8.length;){if(t8[e8]==="\\"){e8+=2;continue}if(t8[e8]==="["){for(e8++;e8<t8.length&&t8[e8]!=="]";)t8[e8]==="\\"&&e8++,e8++;e8++;continue}if(t8[e8]==="(")if(e8+1<t8.length&&t8[e8+1]==="?"){if(e8+2<t8.length){let i22=t8[e8+2];if(i22===":"||i22==="="||i22==="!"){e8++;continue}if(i22==="<"&&e8+3<t8.length){let s10=t8[e8+3];if(s10==="="||s10==="!"){e8++;continue}n10++,e8++;continue}}}else n10++;e8++}return n10}function we(t8){let n10=t8.replace(/\$\{0\}|\$0(?![0-9])/g,"$$&");return n10=n10.replace(/\$\{([^0-9}][^}]*)\}/g,"$$<$1>"),n10=n10.replace(/\$([a-zA-Z_][a-zA-Z0-9_]*)(?![>0-9])/g,"$$<$1>"),n10}function Ce(t8){let n10="",e8=0,i22=!0,s10=0;for(;e8<t8.length;){let o13=t8[e8];if(o13==="["){for(n10+=o13,e8++,e8<t8.length&&(t8[e8]==="^"||t8[e8]==="!")&&(n10+=t8[e8],e8++),e8<t8.length&&t8[e8]==="]"&&(n10+=t8[e8],e8++);e8<t8.length&&t8[e8]!=="]";)t8[e8]==="\\"&&e8+1<t8.length?(n10+=t8[e8]+t8[e8+1],e8+=2):(n10+=t8[e8],e8++);e8<t8.length&&t8[e8]==="]"&&(n10+=t8[e8],e8++),i22=!1;continue}if(o13==="\\"&&e8+1<t8.length){let c18=t8[e8+1];if(c18==="|"){n10+="|",e8+=2,i22=!0;continue}if(c18==="("){n10+="(",e8+=2,s10++,i22=!0;continue}if(c18===")"){n10+=")",e8+=2,s10=Math.max(0,s10-1),i22=!1;continue}if(c18==="{"){let L21=t8.slice(e8).match(/^\\{(\d+)(,(\d*)?)?\\}/);if(L21){let F24=L21[1],O18=L21[2]!==void 0,A13=L21[3]||"";O18?n10+=`{${F24},${A13}}`:n10+=`{${F24}}`,e8+=L21[0].length,i22=!1;continue}n10+="\\{",e8+=2,i22=!1;continue}if(c18==="}"){n10+="\\}",e8+=2,i22=!1;continue}n10+=o13+c18,e8+=2,i22=!1;continue}if(o13==="*"&&i22){n10+="\\*",e8++;continue}if(o13==="^"){if(i22){n10+="^",e8++;continue}n10+="\\^",e8++;continue}if(o13==="$"){let c18=e8===t8.length-1,h18=e8+2<t8.length&&t8[e8+1]==="\\"&&t8[e8+2]===")";c18||h18?n10+="$":n10+="\\$",e8++,i22=!1;continue}o13==="+"||o13==="?"||o13==="|"||o13==="("||o13===")"||o13==="{"||o13==="}"?n10+=`\\${o13}`:n10+=o13,e8++,i22=!1}return n10}var require69,le,init_chunk_DIRWTBKE=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-DIRWTBKE.js"(){init_chunk_7GA3QWJJ();init_chunk_EFORKKSH();require69=createRequire68(import.meta.url);le=new Map([["alpha","a-zA-Z"],["digit","0-9"],["alnum","a-zA-Z0-9"],["lower","a-z"],["upper","A-Z"],["xdigit","0-9A-Fa-f"],["space"," \\t\\n\\r\\f\\v"],["blank"," \\t"],["punct","!-/:-@\\[-`{-~"],["graph","!-~"],["print"," -~"],["cntrl","\\x00-\\x1F\\x7F"],["ascii","\\x00-\\x7F"],["word","a-zA-Z0-9_"]])}});import{createRequire as createRequire69}from"node:module";function he2(t8){let e8=t8.limits.maxLoopIterations,i22=t8.limits.maxArrayElements;return Math.max(e8,Math.min(i22,e8*10))}function F8(t8){if(++t8.operations>t8.maxOperations)throw new f2(`grep: glob operation limit exceeded (${t8.maxOperations})`,"glob_operations")}function U4(t8){if(t8.results>=t8.maxResults)throw new f2(`grep: array element limit exceeded (${t8.maxResults})`,"array_elements");t8.results++}function we2(t8){return t8.split(`
200
200
  `)}function Fe(t8){if(t8==="")return[];let e8=t8.split(`
201
- `);return e8[e8.length-1]===""&&e8.pop(),e8}function ve(t8,e8){return t8.length===1?{pattern:t8[0],mode:e8}:e8==="fixed"?{pattern:t8.map(i22=>`(?:${i22.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")})`).join("|"),mode:"extended"}:e8==="basic"?{pattern:t8.join("\\|"),mode:e8}:{pattern:t8.map(i22=>`(?:${i22})`).join("|"),mode:e8}}async function ge2(t8,e8,i22,g13,f15,m16=0){if(m16>=de2)return;let c18=i22.fs.resolvePath(i22.cwd,t8);try{if(F8(f15),!(await i22.fs.stat(c18)).isDirectory){let a14=t8.split("/").pop()||"";if(e8){let h18=e8.replace(/^\//,"");u9(a14,h18,{stripQuotes:!0})&&(U4(f15),g13.push(t8))}return}F8(f15);let l12=await i22.fs.readdir(c18);for(let a14 of l12){let h18=t8==="."?a14:`${t8}/${a14}`,v13=i22.fs.resolvePath(i22.cwd,h18);if(F8(f15),(await i22.fs.stat(v13)).isDirectory)await ge2(h18,e8,i22,g13,f15,m16+1);else if(e8){let y14=e8.replace(/^\//,"");u9(a14,y14,{stripQuotes:!0})&&(U4(f15),g13.push(h18))}}}catch(u15){e2(u15)}}async function Ee(t8,e8,i22){let g13=[],f15=t8.lastIndexOf("/"),m16,c18;if(f15===-1?(m16=e8.cwd,c18=t8):(m16=t8.slice(0,f15)||"/",c18=t8.slice(f15+1)),t8.includes("**")){let l12=[],a14=t8.split("**"),h18=a14[0].replace(/\/$/,"")||".",v13=a14[1]||"";return await ge2(h18,v13,e8,l12,i22),l12.map($22=>({path:$22}))}let u15=e8.fs.resolvePath(e8.cwd,m16);try{if(e8.fs.readdirWithFileTypes){F8(i22);let l12=await e8.fs.readdirWithFileTypes(u15);for(let a14 of l12)if(F8(i22),u9(a14.name,c18,{stripQuotes:!0})){let h18=f15===-1?a14.name:`${m16}/${a14.name}`;U4(i22),g13.push({path:h18,isFile:a14.isFile})}}else{F8(i22);let l12=await e8.fs.readdir(u15);for(let a14 of l12)if(F8(i22),u9(a14,c18,{stripQuotes:!0})){let h18=f15===-1?a14:`${m16}/${a14}`;U4(i22),g13.push({path:h18})}}}catch(l12){e2(l12)}return g13.sort((l12,a14)=>l12.path.localeCompare(a14.path))}async function j8(t8,e8,i22=[],g13=[],f15=[],m16,c18={operations:0,results:0,maxOperations:e8.limits.maxGlobOperations,maxResults:e8.limits.maxArrayElements},u15=[],l12=0){if(l12>=de2)return u15;let a14=e8.fs.resolvePath(e8.cwd,t8);try{let h18,v13;if(m16!==void 0)h18=m16,v13=!m16;else{F8(c18);let y14=await e8.fs.stat(a14);h18=y14.isFile,v13=y14.isDirectory}if(h18){let y14=t8.split("/").pop()||t8;return g13.length>0&&g13.some(x23=>u9(y14,x23,{stripQuotes:!0}))||i22.length>0&&!i22.some(x23=>u9(y14,x23,{stripQuotes:!0}))||(U4(c18),u15.push({path:t8,isFile:!0})),u15}if(!v13)return u15;let $22=t8.split("/").pop()||t8;if(f15.length>0&&f15.some(y14=>u9($22,y14,{stripQuotes:!0})))return u15;if(e8.fs.readdirWithFileTypes){F8(c18);let y14=await e8.fs.readdirWithFileTypes(a14);for(let x23 of y14){if(F8(c18),x23.name.startsWith("."))continue;let M20=t8==="."?x23.name:`${t8}/${x23.name}`;await j8(M20,e8,i22,g13,f15,x23.isFile,c18,u15,l12+1)}}else{F8(c18);let y14=await e8.fs.readdir(a14);for(let x23 of y14){if(F8(c18),x23.startsWith("."))continue;let M20=t8==="."?x23:`${t8}/${x23}`;await j8(M20,e8,i22,g13,f15,void 0,c18,u15,l12+1)}}}catch(h18){e2(h18)}return u15}var require70,ye,xe2,Ce2,me2,de2,We,Le,Ie,Oe,Se,init_chunk_EGTVQWAP=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-EGTVQWAP.js"(){init_chunk_OB46N7Q7();init_chunk_DIRWTBKE();init_chunk_U7UNEMLJ();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();require70=createRequire69(import.meta.url),ye="(standard input)";xe2="[^\\s\\S]";Ce2={name:"grep",summary:"print lines that match patterns",usage:"grep [OPTION]... PATTERN [FILE]...",description:["Search for PATTERN in each FILE.","With no FILE, or when FILE is -, read standard input."],options:["-E, --extended-regexp PATTERN is an extended regular expression","-P, --perl-regexp PATTERN is a Perl regular expression","-F, --fixed-strings PATTERN is a set of newline-separated strings","-i, --ignore-case ignore case distinctions","-v, --invert-match select non-matching lines","-w, --word-regexp match only whole words","-x, --line-regexp match only whole lines","-c, --count print only a count of matching lines","-l, --files-with-matches print only names of files with matches","-L, --files-without-match print names of files with no matches","-m NUM, --max-count=NUM stop after NUM matches","-n, --line-number print line number with output lines","-h, --no-filename suppress the file name prefix on output","-o, --only-matching show only nonempty parts of lines that match","-q, --quiet, --silent suppress all normal output","-r, -R, --recursive search directories recursively","-A NUM print NUM lines of trailing context","-B NUM print NUM lines of leading context","-C NUM print NUM lines of context","-e PATTERN use PATTERN for matching","-f FILE, --file=FILE obtain patterns from FILE, one per line"," --include=GLOB search only files matching GLOB"," --exclude=GLOB skip files matching GLOB"," --exclude-dir=DIR skip directories matching DIR"," --help display this help and exit"]},me2={name:"grep",async execute(t8,e8){let i22=!1,g13=!1,f15=!1,m16=!1,c18=!1,u15=!1,l12=!1,a14=!1,h18=!1,v13=!1,$22=!1,y14=!1,x23=!1,M20=!1,_13=!1,O18=0,N16=0,W12=0,S15=[],B17=[],V10=[],w15=[],b23=[],X12=[],G14=!0;for(let s10=0;s10<t8.length;s10++){let r7=t8[s10];if(G14&&r7==="--"){G14=!1;continue}if(G14&&r7==="--help")return s5(Ce2);if(G14&&r7.startsWith("-")&&r7!=="-"){if(r7==="-e"&&s10+1<t8.length){w15.push(t8[++s10]);continue}if(r7.startsWith("--file=")){b23.push(r7.slice(7));continue}if(r7.startsWith("--include=")){S15.push(r7.slice(10));continue}if(r7.startsWith("--exclude=")){B17.push(r7.slice(10));continue}if(r7.startsWith("--exclude-dir=")){V10.push(r7.slice(14));continue}if(r7.startsWith("--max-count=")){O18=parseInt(r7.slice(12),10);continue}let C18=r7.match(/^-m(\d+)$/);if(C18){O18=parseInt(C18[1],10);continue}if(r7==="-m"&&s10+1<t8.length){O18=parseInt(t8[++s10],10);continue}let o13=r7.match(/^-([ABC])(\d+)$/);if(o13){let p16=parseInt(o13[2],10);o13[1]==="A"?W12=p16:o13[1]==="B"?N16=p16:o13[1]==="C"&&(N16=p16,W12=p16);continue}if((r7==="-A"||r7==="-B"||r7==="-C")&&s10+1<t8.length){let p16=parseInt(t8[++s10],10);r7==="-A"?W12=p16:r7==="-B"?N16=p16:(N16=p16,W12=p16);continue}let d11=r7.startsWith("--")?[r7]:r7.slice(1).split("");for(let p16=0;p16<d11.length;p16++){let n10=d11[p16];if(n10==="f"||n10==="--file"){let q11=n10==="f"?d11.slice(p16+1).join(""):"";if(q11.length>0)b23.push(q11);else if(s10+1<t8.length)b23.push(t8[++s10]);else return{stdout:"",stderr:n10==="f"?`grep: option requires an argument -- 'f'
201
+ `);return e8[e8.length-1]===""&&e8.pop(),e8}function ve(t8,e8){return t8.length===1?{pattern:t8[0],mode:e8}:e8==="fixed"?{pattern:t8.map(i22=>`(?:${i22.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")})`).join("|"),mode:"extended"}:e8==="basic"?{pattern:t8.join("\\|"),mode:e8}:{pattern:t8.map(i22=>`(?:${i22})`).join("|"),mode:e8}}async function ge2(t8,e8,i22,g13,f15,m16=0){if(m16>=de2)return;let c18=i22.fs.resolvePath(i22.cwd,t8);try{if(F8(f15),!(await i22.fs.stat(c18)).isDirectory){let a14=t8.split("/").pop()||"";if(e8){let h18=e8.replace(/^\//,"");u9(a14,h18,{stripQuotes:!0})&&(U4(f15),g13.push(t8))}return}F8(f15);let l12=await i22.fs.readdir(c18);for(let a14 of l12){let h18=t8==="."?a14:`${t8}/${a14}`,v13=i22.fs.resolvePath(i22.cwd,h18);if(F8(f15),(await i22.fs.stat(v13)).isDirectory)await ge2(h18,e8,i22,g13,f15,m16+1);else if(e8){let y14=e8.replace(/^\//,"");u9(a14,y14,{stripQuotes:!0})&&(U4(f15),g13.push(h18))}}}catch(u15){e2(u15)}}async function Ee(t8,e8,i22){let g13=[],f15=t8.lastIndexOf("/"),m16,c18;if(f15===-1?(m16=e8.cwd,c18=t8):(m16=t8.slice(0,f15)||"/",c18=t8.slice(f15+1)),t8.includes("**")){let l12=[],a14=t8.split("**"),h18=a14[0].replace(/\/$/,"")||".",v13=a14[1]||"";return await ge2(h18,v13,e8,l12,i22),l12.map($22=>({path:$22}))}let u15=e8.fs.resolvePath(e8.cwd,m16);try{if(e8.fs.readdirWithFileTypes){F8(i22);let l12=await e8.fs.readdirWithFileTypes(u15);for(let a14 of l12)if(F8(i22),u9(a14.name,c18,{stripQuotes:!0})){let h18=f15===-1?a14.name:`${m16}/${a14.name}`;U4(i22),g13.push({path:h18,isFile:a14.isFile})}}else{F8(i22);let l12=await e8.fs.readdir(u15);for(let a14 of l12)if(F8(i22),u9(a14,c18,{stripQuotes:!0})){let h18=f15===-1?a14:`${m16}/${a14}`;U4(i22),g13.push({path:h18})}}}catch(l12){e2(l12)}return g13.sort((l12,a14)=>l12.path.localeCompare(a14.path))}async function j8(t8,e8,i22=[],g13=[],f15=[],m16,c18={operations:0,results:0,maxOperations:e8.limits.maxGlobOperations,maxResults:e8.limits.maxArrayElements},u15=[],l12=0){if(l12>=de2)return u15;let a14=e8.fs.resolvePath(e8.cwd,t8);try{let h18,v13;if(m16!==void 0)h18=m16,v13=!m16;else{F8(c18);let y14=await e8.fs.stat(a14);h18=y14.isFile,v13=y14.isDirectory}if(h18){let y14=t8.split("/").pop()||t8;return g13.length>0&&g13.some(x23=>u9(y14,x23,{stripQuotes:!0}))||i22.length>0&&!i22.some(x23=>u9(y14,x23,{stripQuotes:!0}))||(U4(c18),u15.push({path:t8,isFile:!0})),u15}if(!v13)return u15;let $22=t8.split("/").pop()||t8;if(f15.length>0&&f15.some(y14=>u9($22,y14,{stripQuotes:!0})))return u15;if(e8.fs.readdirWithFileTypes){F8(c18);let y14=await e8.fs.readdirWithFileTypes(a14);for(let x23 of y14){if(F8(c18),x23.name.startsWith("."))continue;let M20=t8==="."?x23.name:`${t8}/${x23.name}`;await j8(M20,e8,i22,g13,f15,x23.isFile,c18,u15,l12+1)}}else{F8(c18);let y14=await e8.fs.readdir(a14);for(let x23 of y14){if(F8(c18),x23.startsWith("."))continue;let M20=t8==="."?x23:`${t8}/${x23}`;await j8(M20,e8,i22,g13,f15,void 0,c18,u15,l12+1)}}}catch(h18){e2(h18)}return u15}var require70,ye,xe2,Ce2,me2,de2,We,Le,Ie,Oe,Se,init_chunk_EGTVQWAP=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-EGTVQWAP.js"(){init_chunk_OB46N7Q7();init_chunk_DIRWTBKE();init_chunk_U7UNEMLJ();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();require70=createRequire69(import.meta.url),ye="(standard input)";xe2="[^\\s\\S]";Ce2={name:"grep",summary:"print lines that match patterns",usage:"grep [OPTION]... PATTERN [FILE]...",description:["Search for PATTERN in each FILE.","With no FILE, or when FILE is -, read standard input."],options:["-E, --extended-regexp PATTERN is an extended regular expression","-P, --perl-regexp PATTERN is a Perl regular expression","-F, --fixed-strings PATTERN is a set of newline-separated strings","-i, --ignore-case ignore case distinctions","-v, --invert-match select non-matching lines","-w, --word-regexp match only whole words","-x, --line-regexp match only whole lines","-c, --count print only a count of matching lines","-l, --files-with-matches print only names of files with matches","-L, --files-without-match print names of files with no matches","-m NUM, --max-count=NUM stop after NUM matches","-n, --line-number print line number with output lines","-h, --no-filename suppress the file name prefix on output","-o, --only-matching show only nonempty parts of lines that match","-q, --quiet, --silent suppress all normal output","-r, -R, --recursive search directories recursively","-A NUM print NUM lines of trailing context","-B NUM print NUM lines of leading context","-C NUM print NUM lines of context","-e PATTERN use PATTERN for matching","-f FILE, --file=FILE obtain patterns from FILE, one per line"," --include=GLOB search only files matching GLOB"," --exclude=GLOB skip files matching GLOB"," --exclude-dir=DIR skip directories matching DIR"," --help display this help and exit"]},me2={name:"grep",async execute(t8,e8){let i22=!1,g13=!1,f15=!1,m16=!1,c18=!1,u15=!1,l12=!1,a14=!1,h18=!1,v13=!1,$22=!1,y14=!1,x23=!1,M20=!1,_13=!1,O18=0,N16=0,W12=0,S15=[],B17=[],V10=[],w15=[],b23=[],X12=[],G14=!0;for(let s10=0;s10<t8.length;s10++){let r7=t8[s10];if(G14&&r7==="--"){G14=!1;continue}if(G14&&r7==="--help")return s5(Ce2);if(G14&&r7.startsWith("-")&&r7!=="-"){if(r7==="-e"&&s10+1<t8.length){w15.push(t8[++s10]);continue}if(r7.startsWith("--file=")){b23.push(r7.slice(7));continue}if(r7.startsWith("--include=")){S15.push(r7.slice(10));continue}if(r7.startsWith("--exclude=")){B17.push(r7.slice(10));continue}if(r7.startsWith("--exclude-dir=")){V10.push(r7.slice(14));continue}if(r7.startsWith("--max-count=")){O18=parseInt(r7.slice(12),10);continue}let C18=r7.match(/^-m(\d+)$/);if(C18){O18=parseInt(C18[1],10);continue}if(r7==="-m"&&s10+1<t8.length){O18=parseInt(t8[++s10],10);continue}let o13=r7.match(/^-([ABC])(\d+)$/);if(o13){let p16=parseInt(o13[2],10);o13[1]==="A"?W12=p16:o13[1]==="B"?N16=p16:o13[1]==="C"&&(N16=p16,W12=p16);continue}if((r7==="-A"||r7==="-B"||r7==="-C")&&s10+1<t8.length){let p16=parseInt(t8[++s10],10);r7==="-A"?W12=p16:r7==="-B"?N16=p16:(N16=p16,W12=p16);continue}let d11=r7.startsWith("--")?[r7]:r7.slice(1).split("");for(let p16=0;p16<d11.length;p16++){let n10=d11[p16];if(n10==="f"||n10==="--file"){let q11=n10==="f"?d11.slice(p16+1).join(""):"";if(q11.length>0)b23.push(q11);else if(s10+1<t8.length)b23.push(t8[++s10]);else return{stdout:"",stderr:n10==="f"?`grep: option requires an argument -- 'f'
202
202
  `:`grep: option '--file' requires an argument
203
203
  `,exitCode:2};break}if(n10==="i"||n10==="--ignore-case")i22=!0;else if(n10==="n"||n10==="--line-number")g13=!0;else if(n10==="v"||n10==="--invert-match")f15=!0;else if(n10==="c"||n10==="--count")m16=!0;else if(n10==="l"||n10==="--files-with-matches")c18=!0;else if(n10==="L"||n10==="--files-without-match")u15=!0;else if(n10==="r"||n10==="R"||n10==="--recursive")l12=!0;else if(n10==="w"||n10==="--word-regexp")a14=!0;else if(n10==="x"||n10==="--line-regexp")h18=!0;else if(n10==="E"||n10==="--extended-regexp")v13=!0;else if(n10==="P"||n10==="--perl-regexp")$22=!0;else if(n10==="F"||n10==="--fixed-strings")y14=!0;else if(n10==="o"||n10==="--only-matching")x23=!0;else if(n10==="h"||n10==="--no-filename")M20=!0;else if(n10==="q"||n10==="--quiet"||n10==="--silent")_13=!0;else{if(n10.startsWith("--"))return r5("grep",n10);if(n10.length===1)return r5("grep",`-${n10}`)}}}else X12.push(r7)}if(w15.length===0&&b23.length===0){let s10=X12.shift();if(s10===void 0)return{stdout:"",stderr:`grep: missing pattern
204
204
  `,exitCode:2};w15.push(s10)}w15=w15.flatMap(we2);let Z10=!1;for(let s10 of b23){let r7;if(s10==="")return{stdout:"",stderr:`grep: : No such file or directory
@@ -214,7 +214,7 @@ Modify: ${t8.mtime.toISOString()}
214
214
  `,matched:!1,matchCount:0}}}return{file:d11,result:{output:"",matched:!1,matchCount:0}}}}let q11=ne(n10,K11,{invertMatch:f15,showLineNumbers:g13,countOnly:m16,filename:ue9?d11:"",onlyMatching:x23,beforeContext:N16,afterContext:W12,maxCount:O18,kResetGroup:Y11,preFilter:L21,maxWork:he2(e8),maxMatches:e8.limits.maxArrayElements,signal:e8.signal});return{file:d11,result:q11}}catch(n10){return e2(n10),{error:`grep: ${d11}: No such file or directory
215
215
  `}}}));for(let o13 of C18){if(o13===null)continue;if("error"in o13&&o13.error){ie8+=o13.error,o13.error.includes("Is a directory")||(ae11=!0);continue}if(!("file"in o13)||!o13.result)continue;let{file:d11,result:p16}=o13;if(p16.matched){if(oe8=!0,_13)return{stdout:"",stderr:"",exitCode:0};c18?H20+=`${d11}
216
216
  `:u15||(H20+=p16.output)}else u15?H20+=`${d11}
217
- `:m16&&!c18&&(H20+=p16.output)}}let k19;return ae11?k19=2:k19=oe8?0:1,_13?{stdout:"",stderr:"",exitCode:k19}:{stdout:H20,stderr:ie8,exitCode:k19}}},de2=256;We={name:"fgrep",async execute(t8,e8){return me2.execute(["-F",...t8],e8)}},Le={name:"egrep",async execute(t8,e8){return me2.execute(["-E",...t8],e8)}},Ie={name:"grep",flags:[{flag:"-E",type:"boolean"},{flag:"-F",type:"boolean"},{flag:"-P",type:"boolean"},{flag:"-i",type:"boolean"},{flag:"-v",type:"boolean"},{flag:"-w",type:"boolean"},{flag:"-x",type:"boolean"},{flag:"-c",type:"boolean"},{flag:"-l",type:"boolean"},{flag:"-L",type:"boolean"},{flag:"-n",type:"boolean"},{flag:"-h",type:"boolean"},{flag:"-o",type:"boolean"},{flag:"-q",type:"boolean"},{flag:"-r",type:"boolean"},{flag:"-m",type:"value",valueHint:"number"},{flag:"-A",type:"value",valueHint:"number"},{flag:"-B",type:"value",valueHint:"number"},{flag:"-C",type:"value",valueHint:"number"},{flag:"-e",type:"value",valueHint:"pattern"},{flag:"-f",type:"value",valueHint:"path"}],stdinType:"text",needsArgs:!0},Oe={name:"fgrep",flags:[],stdinType:"text",needsArgs:!0},Se={name:"egrep",flags:[],stdinType:"text",needsArgs:!0}}});var grep_OZCR76FT_exports={};__export(grep_OZCR76FT_exports,{egrepCommand:()=>Le,egrepFlagsForFuzzing:()=>Se,fgrepCommand:()=>We,fgrepFlagsForFuzzing:()=>Oe,flagsForFuzzing:()=>Ie,grepCommand:()=>me2});import{createRequire as createRequire70}from"node:module";var require71,init_grep_OZCR76FT=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/grep-OZCR76FT.js"(){init_chunk_EGTVQWAP();init_chunk_OB46N7Q7();init_chunk_DIRWTBKE();init_chunk_7GA3QWJJ();init_chunk_U7UNEMLJ();init_chunk_CBM6J4AL();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require71=createRequire70(import.meta.url)}});import{createRequire as createRequire71}from"node:module";function O9(e8,n10){if(Array.isArray(e8))throw new TypeError(`${n10}: expected object, got array`);if(Object.getPrototypeOf(e8)!==null)throw new TypeError(`${n10}: expected null-prototype object, got prototypal object`)}function b12(e8){return!m6.has(e8)}function A4(e8,n10,p16){O9(e8,"safeSet"),b12(n10)&&(e8[n10]=p16)}function j9(e8,n10){return O9(e8,"safeHasOwn"),Object.hasOwn(e8,n10)}function D7(e8,n10={}){let p16=n10.maxDepth??2e3,o13=n10.maxElements??1e6,_13=new WeakMap,i22=n10.elementBudget??{used:0};if(!Number.isSafeInteger(i22.used)||i22.used<0||i22.used>o13)throw new f2(`query input element limit exceeded (${o13})`,"array_elements");let x23=()=>{if(++i22.used>o13)throw new f2(`query input element limit exceeded (${o13})`,"array_elements")},y14=(t8,r7,c18)=>{if(t8===null||typeof t8!="object"||t8 instanceof Date)return t8;let l12=_13.get(t8);if(l12!==void 0)return l12;if(r7>p16)throw new f2(`query depth limit exceeded (${p16})`,"recursion");let a14=Array.isArray(t8)?[]:Object.create(null);return _13.set(t8,a14),c18.push({source:t8,target:a14,depth:r7}),a14},f15=[],h18=y14(e8,0,f15);for(;f15.length>0;){let t8=f15.pop();if(!t8)break;let{source:r7,target:c18,depth:l12}=t8;if(Array.isArray(r7)&&Array.isArray(c18)){if(r7.length>o13-i22.used)throw new f2(`query input element limit exceeded (${o13})`,"array_elements");c18.length=r7.length;for(let s10=r7.length-1;s10>=0;s10--)x23(),c18[s10]=y14(r7[s10],l12+1,f15);continue}let a14=r7,w15=c18,d11=Object.keys(a14);if(d11.length>o13-i22.used)throw new f2(`query input element limit exceeded (${o13})`,"array_elements");for(let s10=0;s10<d11.length;s10++){x23();let g13=d11[s10];w15[g13]=y14(a14[g13],l12+1,f15)}}return h18}function k7(e8){return e8!==null&&typeof e8=="object"&&!Array.isArray(e8)?e8:null}function P6(e8){return Object.assign(Object.create(null),e8)}function $9(e8){return Object.assign(Object.create(null),e8)}function G5(...e8){return Object.assign(Object.create(null),...e8)}var require72,m6,E7,init_chunk_FIMO5HLX=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-FIMO5HLX.js"(){init_chunk_EFORKKSH();require72=createRequire71(import.meta.url),m6=new Set(["__proto__","constructor","prototype"]),E7=new Set([...m6,"__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}});import{createRequire as createRequire72}from"node:module";import{gunzipSync as ve2}from"node:zlib";function Q4(){let e8=[];for(let[t8,s10]of Object.entries(X5).sort()){let n10=[];for(let r7 of s10.extensions)n10.push(`*${r7}`);for(let r7 of s10.globs)n10.push(r7);e8.push(`${t8}: ${n10.join(", ")}`)}return`${e8.join(`
217
+ `:m16&&!c18&&(H20+=p16.output)}}let k19;return ae11?k19=2:k19=oe8?0:1,_13?{stdout:"",stderr:"",exitCode:k19}:{stdout:H20,stderr:ie8,exitCode:k19}}},de2=256;We={name:"fgrep",async execute(t8,e8){return me2.execute(["-F",...t8],e8)}},Le={name:"egrep",async execute(t8,e8){return me2.execute(["-E",...t8],e8)}},Ie={name:"grep",flags:[{flag:"-E",type:"boolean"},{flag:"-F",type:"boolean"},{flag:"-P",type:"boolean"},{flag:"-i",type:"boolean"},{flag:"-v",type:"boolean"},{flag:"-w",type:"boolean"},{flag:"-x",type:"boolean"},{flag:"-c",type:"boolean"},{flag:"-l",type:"boolean"},{flag:"-L",type:"boolean"},{flag:"-n",type:"boolean"},{flag:"-h",type:"boolean"},{flag:"-o",type:"boolean"},{flag:"-q",type:"boolean"},{flag:"-r",type:"boolean"},{flag:"-m",type:"value",valueHint:"number"},{flag:"-A",type:"value",valueHint:"number"},{flag:"-B",type:"value",valueHint:"number"},{flag:"-C",type:"value",valueHint:"number"},{flag:"-e",type:"value",valueHint:"pattern"},{flag:"-f",type:"value",valueHint:"path"}],stdinType:"text",needsArgs:!0},Oe={name:"fgrep",flags:[],stdinType:"text",needsArgs:!0},Se={name:"egrep",flags:[],stdinType:"text",needsArgs:!0}}});var grep_OZCR76FT_exports={};__export(grep_OZCR76FT_exports,{egrepCommand:()=>Le,egrepFlagsForFuzzing:()=>Se,fgrepCommand:()=>We,fgrepFlagsForFuzzing:()=>Oe,flagsForFuzzing:()=>Ie,grepCommand:()=>me2});import{createRequire as createRequire70}from"node:module";var require71,init_grep_OZCR76FT=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/grep-OZCR76FT.js"(){init_chunk_EGTVQWAP();init_chunk_OB46N7Q7();init_chunk_DIRWTBKE();init_chunk_7GA3QWJJ();init_chunk_U7UNEMLJ();init_chunk_CBM6J4AL();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require71=createRequire70(import.meta.url)}});import{createRequire as createRequire71}from"node:module";function O9(e8,n10){if(Array.isArray(e8))throw new TypeError(`${n10}: expected object, got array`);if(Object.getPrototypeOf(e8)!==null)throw new TypeError(`${n10}: expected null-prototype object, got prototypal object`)}function b12(e8){return!m6.has(e8)}function A4(e8,n10,p16){O9(e8,"safeSet"),b12(n10)&&(e8[n10]=p16)}function j9(e8,n10){return O9(e8,"safeHasOwn"),Object.hasOwn(e8,n10)}function D7(e8,n10={}){let p16=n10.maxDepth??2e3,o13=n10.maxElements??1e6,_13=new WeakMap,i22=n10.elementBudget??{used:0};if(!Number.isSafeInteger(i22.used)||i22.used<0||i22.used>o13)throw new f2(`query input element limit exceeded (${o13})`,"array_elements");let x23=()=>{if(++i22.used>o13)throw new f2(`query input element limit exceeded (${o13})`,"array_elements")},y14=(t8,r7,c18)=>{if(t8===null||typeof t8!="object"||t8 instanceof Date)return t8;let l12=_13.get(t8);if(l12!==void 0)return l12;if(r7>p16)throw new f2(`query depth limit exceeded (${p16})`,"recursion");let a14=Array.isArray(t8)?[]:Object.create(null);return _13.set(t8,a14),c18.push({source:t8,target:a14,depth:r7}),a14},f15=[],h18=y14(e8,0,f15);for(;f15.length>0;){let t8=f15.pop();if(!t8)break;let{source:r7,target:c18,depth:l12}=t8;if(Array.isArray(r7)&&Array.isArray(c18)){if(r7.length>o13-i22.used)throw new f2(`query input element limit exceeded (${o13})`,"array_elements");c18.length=r7.length;for(let s10=r7.length-1;s10>=0;s10--)x23(),c18[s10]=y14(r7[s10],l12+1,f15);continue}let a14=r7,w15=c18,d11=Object.keys(a14);if(d11.length>o13-i22.used)throw new f2(`query input element limit exceeded (${o13})`,"array_elements");for(let s10=0;s10<d11.length;s10++){x23();let g13=d11[s10];w15[g13]=y14(a14[g13],l12+1,f15)}}return h18}function k7(e8){return e8!==null&&typeof e8=="object"&&!Array.isArray(e8)?e8:null}function P6(e8){return Object.assign(Object.create(null),e8)}function $9(e8){return Object.assign(Object.create(null),e8)}function G5(...e8){return Object.assign(Object.create(null),...e8)}var require72,m6,E7,init_chunk_FIMO5HLX=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-FIMO5HLX.js"(){init_chunk_EFORKKSH();require72=createRequire71(import.meta.url),m6=new Set(["__proto__","constructor","prototype"]),E7=new Set([...m6,"__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}});import{createRequire as createRequire72}from"node:module";import{gunzipSync as ve2}from"node:zlib";function Q4(){let e8=[];for(let[t8,s10]of Object.entries(X5).sort()){let n10=[];for(let r7 of s10.extensions)n10.push(`*${r7}`);for(let r7 of s10.globs)n10.push(r7);e8.push(`${t8}: ${n10.join(", ")}`)}return`${e8.join(`
218
218
  `)}
219
219
  `}function ee3(){return{ignoreCase:!1,caseSensitive:!1,smartCase:!0,fixedStrings:!1,wordRegexp:!1,lineRegexp:!1,invertMatch:!1,multiline:!1,multilineDotall:!1,patterns:[],patternFiles:[],count:!1,countMatches:!1,files:!1,filesWithMatches:!1,filesWithoutMatch:!1,stats:!1,onlyMatching:!1,maxCount:0,lineNumber:!0,noFilename:!1,withFilename:!1,nullSeparator:!1,byteOffset:!1,column:!1,vimgrep:!1,replace:null,afterContext:0,beforeContext:0,contextSeparator:"--",quiet:!1,heading:!1,passthru:!1,includeZero:!1,sort:"path",json:!1,globs:[],iglobs:[],globCaseInsensitive:!1,types:[],typesNot:[],typeAdd:[],typeClear:[],hidden:!1,noIgnore:!1,noIgnoreDot:!1,noIgnoreVcs:!1,ignoreFiles:[],maxDepth:256,maxFilesize:512*1024*1024,followSymlinks:!1,searchZip:!1,searchBinary:!1,preprocessor:null,preprocessorGlobs:[]}}function ue2(e8){let t8=e8.match(/^(\d+)([KMG])?$/i);if(!t8)return 0;let s10=parseInt(t8[1],10);switch((t8[2]||"").toUpperCase()){case"K":return s10*1024;case"M":return s10*1024*1024;case"G":return s10*1024*1024*1024;default:return s10}}function fe3(e8){return/^\d+[KMG]?$/i.test(e8)?null:{stdout:"",stderr:`rg: invalid --max-filesize value: ${e8}
220
220
  `,exitCode:1}}function he3(e8,t8){return!/^\d+$/.test(t8)||!Number.isSafeInteger(Number(t8))?{stdout:"",stderr:`rg: invalid --${e8} value: ${t8}
@@ -235,7 +235,7 @@ Modify: ${t8.mtime.toISOString()}
235
235
  `)}
236
236
  `);let S15=n10.quiet&&!n10.json?"":o13;if(n10.stats&&!n10.json){let u15=["",`${f15} matches`,`${f15} matched lines`,`${h18} files contained matches`,`${t8.length} files searched`,`${m16} bytes searched`].join(`
237
237
  `);S15+=`${u15}
238
- `}let b23;return n10.filesWithoutMatch?b23=o13.length>0?0:1:b23=a14?0:1,{stdout:S15,stderr:"",exitCode:b23}}var require73,X5,A5,se2,ge3,me3,j10,E8,Be,lt2,ot2,init_chunk_EXXOLIVE=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-EXXOLIVE.js"(){init_chunk_FIMO5HLX();init_chunk_DIRWTBKE();init_chunk_L2UW7DWF();init_chunk_7GA3QWJJ();init_chunk_U7UNEMLJ();init_chunk_DIWMSSQY();init_chunk_2WBUTDF5();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();require73=createRequire72(import.meta.url),X5=P6({js:{extensions:[".js",".mjs",".cjs",".jsx"],globs:[]},ts:{extensions:[".ts",".tsx",".mts",".cts"],globs:[]},html:{extensions:[".html",".htm",".xhtml"],globs:[]},css:{extensions:[".css",".scss",".sass",".less"],globs:[]},json:{extensions:[".json",".jsonc",".json5"],globs:[]},xml:{extensions:[".xml",".xsl",".xslt"],globs:[]},c:{extensions:[".c",".h"],globs:[]},cpp:{extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx",".h"],globs:[]},rust:{extensions:[".rs"],globs:[]},go:{extensions:[".go"],globs:[]},zig:{extensions:[".zig"],globs:[]},java:{extensions:[".java"],globs:[]},kotlin:{extensions:[".kt",".kts"],globs:[]},scala:{extensions:[".scala",".sc"],globs:[]},clojure:{extensions:[".clj",".cljc",".cljs",".edn"],globs:[]},py:{extensions:[".py",".pyi",".pyw"],globs:[]},rb:{extensions:[".rb",".rake",".gemspec"],globs:["Rakefile","Gemfile"]},php:{extensions:[".php",".phtml",".php3",".php4",".php5"],globs:[]},perl:{extensions:[".pl",".pm",".pod",".t"],globs:[]},lua:{extensions:[".lua"],globs:[]},sh:{extensions:[".sh",".bash",".zsh",".fish"],globs:[".bashrc",".zshrc",".profile"]},bat:{extensions:[".bat",".cmd"],globs:[]},ps:{extensions:[".ps1",".psm1",".psd1"],globs:[]},yaml:{extensions:[".yaml",".yml"],globs:[]},toml:{extensions:[".toml"],globs:["Cargo.toml","pyproject.toml"]},ini:{extensions:[".ini",".cfg",".conf"],globs:[]},csv:{extensions:[".csv",".tsv"],globs:[]},md:{extensions:[".md",".mdx",".markdown",".mdown",".mkd"],globs:[]},markdown:{extensions:[".md",".mdx",".markdown",".mdown",".mkd"],globs:[]},rst:{extensions:[".rst"],globs:[]},txt:{extensions:[".txt",".text"],globs:[]},tex:{extensions:[".tex",".ltx",".sty",".cls"],globs:[]},sql:{extensions:[".sql"],globs:[]},graphql:{extensions:[".graphql",".gql"],globs:[]},proto:{extensions:[".proto"],globs:[]},make:{extensions:[".mk",".mak"],globs:["Makefile","GNUmakefile","makefile"]},docker:{extensions:[],globs:["Dockerfile","Dockerfile.*","*.dockerfile"]},tf:{extensions:[".tf",".tfvars"],globs:[]}}),A5=class{types;constructor(){this.types=new Map(Object.entries(X5).map(([t8,s10])=>[t8,{extensions:[...s10.extensions],globs:[...s10.globs]}]))}addType(t8){let s10=t8.indexOf(":");if(s10===-1)return;let n10=t8.slice(0,s10),r7=t8.slice(s10+1);if(r7.startsWith("include:")){let i22=r7.slice(8),l12=this.types.get(i22);if(l12){let o13=this.types.get(n10)||{extensions:[],globs:[]};o13.extensions.push(...l12.extensions),o13.globs.push(...l12.globs),this.types.set(n10,o13)}}else{let i22=this.types.get(n10)||{extensions:[],globs:[]};if(r7.startsWith("*.")&&!r7.slice(2).includes("*")){let l12=r7.slice(1);i22.extensions.includes(l12)||i22.extensions.push(l12)}else i22.globs.includes(r7)||i22.globs.push(r7);this.types.set(n10,i22)}}clearType(t8){let s10=this.types.get(t8);s10&&(s10.extensions=[],s10.globs=[])}getType(t8){return this.types.get(t8)}getAllTypes(){return this.types}matchesType(t8,s10){let n10=t8.toLowerCase();for(let r7 of s10){if(r7==="all"){if(this.matchesAnyType(t8))return!0;continue}let i22=this.types.get(r7);if(i22){for(let l12 of i22.extensions)if(n10.endsWith(l12))return!0;for(let l12 of i22.globs)if(l12.includes("*")){let o13=l12.replace(/\./g,"\\.").replace(/\*/g,".*");if(G1(`^${o13}$`,"i").test(t8))return!0}else if(n10===l12.toLowerCase())return!0}}return!1}matchesAnyType(t8){let s10=t8.toLowerCase();for(let n10 of this.types.values()){for(let r7 of n10.extensions)if(s10.endsWith(r7))return!0;for(let r7 of n10.globs)if(r7.includes("*")){let i22=r7.replace(/\./g,"\\.").replace(/\*/g,".*");if(G1(`^${i22}$`,"i").test(t8))return!0}else if(s10===r7.toLowerCase())return!0}return!1}};se2=[{short:"g",long:"glob",target:"globs",multi:!0},{long:"iglob",target:"iglobs",multi:!0},{short:"t",long:"type",target:"types",multi:!0,validate:te3},{short:"T",long:"type-not",target:"typesNot",multi:!0,validate:te3},{long:"type-add",target:"typeAdd",multi:!0},{long:"type-clear",target:"typeClear",multi:!0},{short:"m",long:"max-count",target:"maxCount",parse:parseInt},{short:"e",long:"regexp",target:"patterns",multi:!0},{short:"f",long:"file",target:"patternFiles",multi:!0},{short:"r",long:"replace",target:"replace"},{short:"d",long:"max-depth",target:"maxDepth",parse:e8=>Number(e8),validate:e8=>he3("max-depth",e8)},{long:"max-filesize",target:"maxFilesize",parse:ue2,validate:fe3},{long:"context-separator",target:"contextSeparator"},{short:"j",long:"threads",ignored:!0},{long:"ignore-file",target:"ignoreFiles",multi:!0},{long:"pre",target:"preprocessor"},{long:"pre-glob",target:"preprocessorGlobs",multi:!0}],ge3=new Map([["i",e8=>{e8.ignoreCase=!0,e8.caseSensitive=!1,e8.smartCase=!1}],["--ignore-case",e8=>{e8.ignoreCase=!0,e8.caseSensitive=!1,e8.smartCase=!1}],["s",e8=>{e8.caseSensitive=!0,e8.ignoreCase=!1,e8.smartCase=!1}],["--case-sensitive",e8=>{e8.caseSensitive=!0,e8.ignoreCase=!1,e8.smartCase=!1}],["S",e8=>{e8.smartCase=!0,e8.ignoreCase=!1,e8.caseSensitive=!1}],["--smart-case",e8=>{e8.smartCase=!0,e8.ignoreCase=!1,e8.caseSensitive=!1}],["F",e8=>{e8.fixedStrings=!0}],["--fixed-strings",e8=>{e8.fixedStrings=!0}],["w",e8=>{e8.wordRegexp=!0}],["--word-regexp",e8=>{e8.wordRegexp=!0}],["x",e8=>{e8.lineRegexp=!0}],["--line-regexp",e8=>{e8.lineRegexp=!0}],["v",e8=>{e8.invertMatch=!0}],["--invert-match",e8=>{e8.invertMatch=!0}],["U",e8=>{e8.multiline=!0}],["--multiline",e8=>{e8.multiline=!0}],["--multiline-dotall",e8=>{e8.multilineDotall=!0,e8.multiline=!0}],["c",e8=>{e8.count=!0}],["--count",e8=>{e8.count=!0}],["--count-matches",e8=>{e8.countMatches=!0}],["l",e8=>{e8.filesWithMatches=!0}],["--files",e8=>{e8.files=!0}],["--files-with-matches",e8=>{e8.filesWithMatches=!0}],["--files-without-match",e8=>{e8.filesWithoutMatch=!0}],["--stats",e8=>{e8.stats=!0}],["o",e8=>{e8.onlyMatching=!0}],["--only-matching",e8=>{e8.onlyMatching=!0}],["q",e8=>{e8.quiet=!0}],["--quiet",e8=>{e8.quiet=!0}],["N",e8=>{e8.lineNumber=!1}],["--no-line-number",e8=>{e8.lineNumber=!1}],["H",e8=>{e8.withFilename=!0}],["--with-filename",e8=>{e8.withFilename=!0}],["I",e8=>{e8.noFilename=!0}],["--no-filename",e8=>{e8.noFilename=!0}],["0",e8=>{e8.nullSeparator=!0}],["--null",e8=>{e8.nullSeparator=!0}],["b",e8=>{e8.byteOffset=!0}],["--byte-offset",e8=>{e8.byteOffset=!0}],["--column",e8=>{e8.column=!0,e8.lineNumber=!0}],["--no-column",e8=>{e8.column=!1}],["--vimgrep",e8=>{e8.vimgrep=!0,e8.column=!0,e8.lineNumber=!0}],["--json",e8=>{e8.json=!0}],["--hidden",e8=>{e8.hidden=!0}],["--no-ignore",e8=>{e8.noIgnore=!0}],["--no-ignore-dot",e8=>{e8.noIgnoreDot=!0}],["--no-ignore-vcs",e8=>{e8.noIgnoreVcs=!0}],["L",e8=>{e8.followSymlinks=!0}],["--follow",e8=>{e8.followSymlinks=!0}],["z",e8=>{e8.searchZip=!0}],["--search-zip",e8=>{e8.searchZip=!0}],["a",e8=>{e8.searchBinary=!0}],["--text",e8=>{e8.searchBinary=!0}],["--heading",e8=>{e8.heading=!0}],["--passthru",e8=>{e8.passthru=!0}],["--include-zero",e8=>{e8.includeZero=!0}],["--glob-case-insensitive",e8=>{e8.globCaseInsensitive=!0}]]),me3=new Set(["n","--line-number"]);j10=class{patterns=[];basePath;constructor(t8="/"){this.basePath=t8}parse(t8){let s10=t8.split(`
238
+ `}let b23;return n10.filesWithoutMatch?b23=o13.length>0?0:1:b23=a14?0:1,{stdout:S15,stderr:"",exitCode:b23}}var require73,X5,A5,se2,ge3,me3,j10,E8,Be,lt2,ot2,init_chunk_EXXOLIVE=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-EXXOLIVE.js"(){init_chunk_FIMO5HLX();init_chunk_DIRWTBKE();init_chunk_L2UW7DWF();init_chunk_7GA3QWJJ();init_chunk_U7UNEMLJ();init_chunk_DIWMSSQY();init_chunk_2WBUTDF5();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();require73=createRequire72(import.meta.url),X5=P6({js:{extensions:[".js",".mjs",".cjs",".jsx"],globs:[]},ts:{extensions:[".ts",".tsx",".mts",".cts"],globs:[]},html:{extensions:[".html",".htm",".xhtml"],globs:[]},css:{extensions:[".css",".scss",".sass",".less"],globs:[]},json:{extensions:[".json",".jsonc",".json5"],globs:[]},xml:{extensions:[".xml",".xsl",".xslt"],globs:[]},c:{extensions:[".c",".h"],globs:[]},cpp:{extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx",".h"],globs:[]},rust:{extensions:[".rs"],globs:[]},go:{extensions:[".go"],globs:[]},zig:{extensions:[".zig"],globs:[]},java:{extensions:[".java"],globs:[]},kotlin:{extensions:[".kt",".kts"],globs:[]},scala:{extensions:[".scala",".sc"],globs:[]},clojure:{extensions:[".clj",".cljc",".cljs",".edn"],globs:[]},py:{extensions:[".py",".pyi",".pyw"],globs:[]},rb:{extensions:[".rb",".rake",".gemspec"],globs:["Rakefile","Gemfile"]},php:{extensions:[".php",".phtml",".php3",".php4",".php5"],globs:[]},perl:{extensions:[".pl",".pm",".pod",".t"],globs:[]},lua:{extensions:[".lua"],globs:[]},sh:{extensions:[".sh",".bash",".zsh",".fish"],globs:[".bashrc",".zshrc",".profile"]},bat:{extensions:[".bat",".cmd"],globs:[]},ps:{extensions:[".ps1",".psm1",".psd1"],globs:[]},yaml:{extensions:[".yaml",".yml"],globs:[]},toml:{extensions:[".toml"],globs:["Cargo.toml","pyproject.toml"]},ini:{extensions:[".ini",".cfg",".conf"],globs:[]},csv:{extensions:[".csv",".tsv"],globs:[]},md:{extensions:[".md",".mdx",".markdown",".mdown",".mkd"],globs:[]},markdown:{extensions:[".md",".mdx",".markdown",".mdown",".mkd"],globs:[]},rst:{extensions:[".rst"],globs:[]},txt:{extensions:[".txt",".text"],globs:[]},tex:{extensions:[".tex",".ltx",".sty",".cls"],globs:[]},sql:{extensions:[".sql"],globs:[]},graphql:{extensions:[".graphql",".gql"],globs:[]},proto:{extensions:[".proto"],globs:[]},make:{extensions:[".mk",".mak"],globs:["Makefile","GNUmakefile","makefile"]},docker:{extensions:[],globs:["Dockerfile","Dockerfile.*","*.dockerfile"]},tf:{extensions:[".tf",".tfvars"],globs:[]}}),A5=class{types;constructor(){this.types=new Map(Object.entries(X5).map(([t8,s10])=>[t8,{extensions:[...s10.extensions],globs:[...s10.globs]}]))}addType(t8){let s10=t8.indexOf(":");if(s10===-1)return;let n10=t8.slice(0,s10),r7=t8.slice(s10+1);if(r7.startsWith("include:")){let i22=r7.slice(8),l12=this.types.get(i22);if(l12){let o13=this.types.get(n10)||{extensions:[],globs:[]};o13.extensions.push(...l12.extensions),o13.globs.push(...l12.globs),this.types.set(n10,o13)}}else{let i22=this.types.get(n10)||{extensions:[],globs:[]};if(r7.startsWith("*.")&&!r7.slice(2).includes("*")){let l12=r7.slice(1);i22.extensions.includes(l12)||i22.extensions.push(l12)}else i22.globs.includes(r7)||i22.globs.push(r7);this.types.set(n10,i22)}}clearType(t8){let s10=this.types.get(t8);s10&&(s10.extensions=[],s10.globs=[])}getType(t8){return this.types.get(t8)}getAllTypes(){return this.types}matchesType(t8,s10){let n10=t8.toLowerCase();for(let r7 of s10){if(r7==="all"){if(this.matchesAnyType(t8))return!0;continue}let i22=this.types.get(r7);if(i22){for(let l12 of i22.extensions)if(n10.endsWith(l12))return!0;for(let l12 of i22.globs)if(l12.includes("*")){let o13=l12.replace(/\./g,"\\.").replace(/\*/g,".*");if(G1(`^${o13}$`,"i").test(t8))return!0}else if(n10===l12.toLowerCase())return!0}}return!1}matchesAnyType(t8){let s10=t8.toLowerCase();for(let n10 of this.types.values()){for(let r7 of n10.extensions)if(s10.endsWith(r7))return!0;for(let r7 of n10.globs)if(r7.includes("*")){let i22=r7.replace(/\./g,"\\.").replace(/\*/g,".*");if(G1(`^${i22}$`,"i").test(t8))return!0}else if(s10===r7.toLowerCase())return!0}return!1}};se2=[{short:"g",long:"glob",target:"globs",multi:!0},{long:"iglob",target:"iglobs",multi:!0},{short:"t",long:"type",target:"types",multi:!0,validate:te3},{short:"T",long:"type-not",target:"typesNot",multi:!0,validate:te3},{long:"type-add",target:"typeAdd",multi:!0},{long:"type-clear",target:"typeClear",multi:!0},{short:"m",long:"max-count",target:"maxCount",parse:parseInt},{short:"e",long:"regexp",target:"patterns",multi:!0},{short:"f",long:"file",target:"patternFiles",multi:!0},{short:"r",long:"replace",target:"replace"},{short:"d",long:"max-depth",target:"maxDepth",parse:e8=>Number(e8),validate:e8=>he3("max-depth",e8)},{long:"max-filesize",target:"maxFilesize",parse:ue2,validate:fe3},{long:"context-separator",target:"contextSeparator"},{short:"j",long:"threads",ignored:!0},{long:"ignore-file",target:"ignoreFiles",multi:!0},{long:"pre",target:"preprocessor"},{long:"pre-glob",target:"preprocessorGlobs",multi:!0}],ge3=new Map([["i",e8=>{e8.ignoreCase=!0,e8.caseSensitive=!1,e8.smartCase=!1}],["--ignore-case",e8=>{e8.ignoreCase=!0,e8.caseSensitive=!1,e8.smartCase=!1}],["s",e8=>{e8.caseSensitive=!0,e8.ignoreCase=!1,e8.smartCase=!1}],["--case-sensitive",e8=>{e8.caseSensitive=!0,e8.ignoreCase=!1,e8.smartCase=!1}],["S",e8=>{e8.smartCase=!0,e8.ignoreCase=!1,e8.caseSensitive=!1}],["--smart-case",e8=>{e8.smartCase=!0,e8.ignoreCase=!1,e8.caseSensitive=!1}],["F",e8=>{e8.fixedStrings=!0}],["--fixed-strings",e8=>{e8.fixedStrings=!0}],["w",e8=>{e8.wordRegexp=!0}],["--word-regexp",e8=>{e8.wordRegexp=!0}],["x",e8=>{e8.lineRegexp=!0}],["--line-regexp",e8=>{e8.lineRegexp=!0}],["v",e8=>{e8.invertMatch=!0}],["--invert-match",e8=>{e8.invertMatch=!0}],["U",e8=>{e8.multiline=!0}],["--multiline",e8=>{e8.multiline=!0}],["--multiline-dotall",e8=>{e8.multilineDotall=!0,e8.multiline=!0}],["c",e8=>{e8.count=!0}],["--count",e8=>{e8.count=!0}],["--count-matches",e8=>{e8.countMatches=!0}],["l",e8=>{e8.filesWithMatches=!0}],["--files",e8=>{e8.files=!0}],["--files-with-matches",e8=>{e8.filesWithMatches=!0}],["--files-without-match",e8=>{e8.filesWithoutMatch=!0}],["--stats",e8=>{e8.stats=!0}],["o",e8=>{e8.onlyMatching=!0}],["--only-matching",e8=>{e8.onlyMatching=!0}],["q",e8=>{e8.quiet=!0}],["--quiet",e8=>{e8.quiet=!0}],["N",e8=>{e8.lineNumber=!1}],["--no-line-number",e8=>{e8.lineNumber=!1}],["H",e8=>{e8.withFilename=!0}],["--with-filename",e8=>{e8.withFilename=!0}],["I",e8=>{e8.noFilename=!0}],["--no-filename",e8=>{e8.noFilename=!0}],["0",e8=>{e8.nullSeparator=!0}],["--null",e8=>{e8.nullSeparator=!0}],["b",e8=>{e8.byteOffset=!0}],["--byte-offset",e8=>{e8.byteOffset=!0}],["--column",e8=>{e8.column=!0,e8.lineNumber=!0}],["--no-column",e8=>{e8.column=!1}],["--vimgrep",e8=>{e8.vimgrep=!0,e8.column=!0,e8.lineNumber=!0}],["--json",e8=>{e8.json=!0}],["--hidden",e8=>{e8.hidden=!0}],["--no-ignore",e8=>{e8.noIgnore=!0}],["--no-ignore-dot",e8=>{e8.noIgnoreDot=!0}],["--no-ignore-vcs",e8=>{e8.noIgnoreVcs=!0}],["L",e8=>{e8.followSymlinks=!0}],["--follow",e8=>{e8.followSymlinks=!0}],["z",e8=>{e8.searchZip=!0}],["--search-zip",e8=>{e8.searchZip=!0}],["a",e8=>{e8.searchBinary=!0}],["--text",e8=>{e8.searchBinary=!0}],["--heading",e8=>{e8.heading=!0}],["--passthru",e8=>{e8.passthru=!0}],["--include-zero",e8=>{e8.includeZero=!0}],["--glob-case-insensitive",e8=>{e8.globCaseInsensitive=!0}]]),me3=new Set(["n","--line-number"]);j10=class{patterns=[];basePath;constructor(t8="/"){this.basePath=t8}parse(t8){let s10=t8.split(`
239
239
  `);for(let n10 of s10){let r7=n10.replace(/\s+$/,"");if(!r7||r7.startsWith("#"))continue;let i22=!1;r7.startsWith("!")&&(i22=!0,r7=r7.slice(1));let l12=!1;r7.endsWith("/")&&(l12=!0,r7=r7.slice(0,-1));let o13=!1;r7.startsWith("/")?(o13=!0,r7=r7.slice(1)):r7.includes("/")&&!r7.startsWith("**/")&&(o13=!0);let a14=this.patternToRegex(r7,o13);this.patterns.push({pattern:n10,regex:a14,negated:i22,directoryOnly:l12,rooted:o13})}}patternToRegex(t8,s10){let n10="";s10?n10="^":n10="(?:^|/)";let r7=0;for(;r7<t8.length;){let i22=t8[r7];if(i22==="*")t8[r7+1]==="*"?t8[r7+2]==="/"?(n10+="(?:.*/)?",r7+=3):(r7+2>=t8.length,n10+=".*",r7+=2):(n10+="[^/]*",r7++);else if(i22==="?")n10+="[^/]",r7++;else if(i22==="["){let l12=r7+1;for(l12<t8.length&&t8[l12]==="!"&&l12++,l12<t8.length&&t8[l12]==="]"&&l12++;l12<t8.length&&t8[l12]!=="]";)l12++;if(l12<t8.length){let o13=t8.slice(r7,l12+1);o13.startsWith("[!")&&(o13=`[^${o13.slice(2)}`),n10+=o13,r7=l12+1}else n10+="\\[",r7++}else i22==="/"?(n10+="/",r7++):(n10+=i22.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),r7++)}return n10+="(?:/.*)?$",G1(n10)}matches(t8,s10){let n10=t8.replace(/^\.\//,"");n10=n10.replace(/^\//,"");let r7=!1;for(let i22 of this.patterns)i22.directoryOnly&&!s10||i22.regex.test(n10)&&(r7=!i22.negated);return r7}isWhitelisted(t8,s10){let n10=t8.replace(/^\.\//,"");n10=n10.replace(/^\//,"");for(let r7 of this.patterns)if(!(r7.directoryOnly&&!s10)&&r7.negated&&r7.regex.test(n10))return!0;return!1}getBasePath(){return this.basePath}},E8=class{parsers=[];fs;skipDotIgnore;skipVcsIgnore;loadedDirs=new Set;constructor(t8,s10,n10=!1,r7=!1){this.fs=t8,this.skipDotIgnore=n10,this.skipVcsIgnore=r7}async load(t8){let s10=[],n10=t8;for(;;){s10.unshift(n10);let i22=this.fs.resolvePath(n10,"..");if(i22===n10)break;n10=i22}let r7=[];this.skipVcsIgnore||r7.push(".gitignore"),this.skipDotIgnore||r7.push(".rgignore",".ignore");for(let i22 of s10){this.loadedDirs.add(i22);for(let l12 of r7){let o13=this.fs.resolvePath(i22,l12);try{let a14=await this.fs.readFile(o13),c18=new j10(i22);c18.parse(a14),this.parsers.push(c18)}catch{}}}}async loadForDirectory(t8){if(this.loadedDirs.has(t8))return;this.loadedDirs.add(t8);let s10=[];this.skipVcsIgnore||s10.push(".gitignore"),this.skipDotIgnore||s10.push(".rgignore",".ignore");for(let n10 of s10){let r7=this.fs.resolvePath(t8,n10);try{let i22=await this.fs.readFile(r7),l12=new j10(t8);l12.parse(i22),this.parsers.push(l12)}catch{}}}addPatternsFromContent(t8,s10){let n10=new j10(s10);n10.parse(t8),this.parsers.push(n10)}matches(t8,s10){for(let n10 of this.parsers){let r7=n10.getBasePath();if(!t8.startsWith(r7))continue;let i22=t8.slice(r7.length).replace(/^\//,"");if(n10.matches(i22,s10))return!0}return!1}isWhitelisted(t8,s10){for(let n10 of this.parsers){let r7=n10.getBasePath();if(!t8.startsWith(r7))continue;let i22=t8.slice(r7.length).replace(/^\//,"");if(n10.isWhitelisted(i22,s10))return!0}return!1}static isCommonIgnored(t8){return new Set(["node_modules",".git",".svn",".hg","__pycache__",".pytest_cache",".mypy_cache","venv",".venv",".next",".nuxt",".cargo"]).has(t8)}};Be={name:"rg",summary:"recursively search for a pattern",usage:"rg [OPTIONS] PATTERN [PATH ...]",description:`rg (ripgrep) recursively searches directories for a regex pattern.
240
240
  Unlike grep, rg is recursive by default and respects .gitignore files.
241
241
 
@@ -247,7 +247,7 @@ EXAMPLES:
247
247
  rg -t js foo Search only JavaScript files
248
248
  rg -g '*.ts' foo Search files matching glob
249
249
  rg --hidden foo Include hidden files
250
- rg -l foo List files with matches only`,options:["-e, --regexp PATTERN search for PATTERN (can be used multiple times)","-f, --file FILE read patterns from FILE, one per line","-i, --ignore-case case-insensitive search","-s, --case-sensitive case-sensitive search (overrides smart-case)","-S, --smart-case smart case (default: case-insensitive unless pattern has uppercase)","-F, --fixed-strings treat pattern as literal string","-w, --word-regexp match whole words only","-x, --line-regexp match whole lines only","-v, --invert-match select non-matching lines","-r, --replace TEXT replace matches with TEXT","-c, --count print count of matching lines per file"," --count-matches print count of individual matches per file","-l, --files-with-matches print only file names with matches"," --files-without-match print file names without matches"," --files list files that would be searched","-o, --only-matching print only matching parts","-m, --max-count NUM stop after NUM matches per file","-q, --quiet suppress output, exit 0 on match"," --stats print search statistics","-n, --line-number print line numbers (default: on)","-N, --no-line-number do not print line numbers","-I, --no-filename suppress the prefixing of file names","-0, --null use NUL as filename separator","-b, --byte-offset show byte offset of each match"," --column show column number of first match"," --vimgrep show results in vimgrep format"," --json show results in JSON Lines format","-A NUM print NUM lines after each match","-B NUM print NUM lines before each match","-C NUM print NUM lines before and after each match"," --context-separator SEP separator for context groups (default: --)","-U, --multiline match patterns across lines","-z, --search-zip search in compressed files (gzip only)","-g, --glob GLOB include files matching GLOB","-t, --type TYPE only search files of TYPE (e.g., js, py, ts)","-T, --type-not TYPE exclude files of TYPE","-L, --follow follow symbolic links","-u, --unrestricted reduce filtering (-u: no ignore, -uu: +hidden, -uuu: +binary)","-a, --text search binary files as text"," --hidden search hidden files and directories"," --no-ignore don't respect .gitignore/.ignore files","-d, --max-depth NUM maximum search depth"," --sort TYPE sort files (path, none)"," --heading show file path above matches"," --passthru print all lines (non-matches use - separator)"," --include-zero include files with 0 matches in count output"," --type-list list all available file types"," --help display this help and exit"]},lt2={name:"rg",async execute(e8,t8){if(o5(e8))return s5(Be);if(e8.includes("--type-list"))return{stdout:Q4(),stderr:"",exitCode:0};let s10=ne2(e8);return s10.success?le2({ctx:t8,options:s10.options,paths:s10.paths,explicitLineNumbers:s10.explicitLineNumbers}):s10.error}},ot2={name:"rg",flags:[{flag:"-i",type:"boolean"},{flag:"-s",type:"boolean"},{flag:"-S",type:"boolean"},{flag:"-F",type:"boolean"},{flag:"-w",type:"boolean"},{flag:"-x",type:"boolean"},{flag:"-v",type:"boolean"},{flag:"-c",type:"boolean"},{flag:"-l",type:"boolean"},{flag:"-o",type:"boolean"},{flag:"-n",type:"boolean"},{flag:"-N",type:"boolean"},{flag:"--hidden",type:"boolean"},{flag:"--no-ignore",type:"boolean"},{flag:"-m",type:"value",valueHint:"number"},{flag:"-A",type:"value",valueHint:"number"},{flag:"-B",type:"value",valueHint:"number"},{flag:"-C",type:"value",valueHint:"number"},{flag:"-g",type:"value",valueHint:"pattern"},{flag:"-t",type:"value",valueHint:"string"},{flag:"-T",type:"value",valueHint:"string"}],needsArgs:!0}}});var rg_F4SX2PHI_exports={};__export(rg_F4SX2PHI_exports,{flagsForFuzzing:()=>ot2,rgCommand:()=>lt2});import{createRequire as createRequire73}from"node:module";var require74,init_rg_F4SX2PHI=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/rg-F4SX2PHI.js"(){init_chunk_EXXOLIVE();init_chunk_FIMO5HLX();init_chunk_DIRWTBKE();init_chunk_L2UW7DWF();init_chunk_7GA3QWJJ();init_chunk_U7UNEMLJ();init_chunk_CBM6J4AL();init_chunk_DIWMSSQY();init_chunk_2WBUTDF5();init_chunk_YUSFCOM7();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_FOCWZZDE();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require74=createRequire73(import.meta.url)}});import{createRequire as createRequire74}from"node:module";function V4(i22){let e8="",t8=0,n10=!1;for(;t8<i22.length;){if(i22[t8]==="["&&!n10){if(i22[t8+1]==="["&&i22[t8+2]===":"){let s10=i22.indexOf(":]]",t8+3);if(s10!==-1){let a14=i22.slice(t8+3,s10),r7=H9.get(a14);if(r7){e8+=`[${r7}]`,t8=s10+3;continue}}}if(i22[t8+1]==="^"&&i22[t8+2]==="["&&i22[t8+3]===":"){let s10=i22.indexOf(":]]",t8+4);if(s10!==-1){let a14=i22.slice(t8+4,s10),r7=H9.get(a14);if(r7){e8+=`[^${r7}]`,t8=s10+3;continue}}}e8+="[",t8++,n10=!0,t8<i22.length&&i22[t8]==="^"&&(e8+="^",t8++),t8<i22.length&&i22[t8]==="]"&&(e8+="\\]",t8++);continue}if(n10){if(i22[t8]==="]"){e8+="]",t8++,n10=!1;continue}if(i22[t8]==="["&&i22[t8+1]===":"){let s10=i22.indexOf(":]",t8+2);if(s10!==-1){let a14=i22.slice(t8+2,s10),r7=H9.get(a14);if(r7){e8+=r7,t8=s10+2;continue}}}if(i22[t8]==="\\"&&t8+1<i22.length){e8+=i22[t8]+i22[t8+1],t8+=2;continue}e8+=i22[t8],t8++;continue}if(i22[t8]==="\\"&&t8+1<i22.length){let s10=i22[t8+1];if(s10==="+"||s10==="?"||s10==="|"){e8+=s10,t8+=2;continue}if(s10==="("||s10===")"){e8+=s10,t8+=2;continue}if(s10==="{"||s10==="}"){e8+=s10,t8+=2;continue}if(s10==="t"){e8+=" ",t8+=2;continue}if(s10==="n"){e8+=`
250
+ rg -l foo List files with matches only`,options:["-e, --regexp PATTERN search for PATTERN (can be used multiple times)","-f, --file FILE read patterns from FILE, one per line","-i, --ignore-case case-insensitive search","-s, --case-sensitive case-sensitive search (overrides smart-case)","-S, --smart-case smart case (default: case-insensitive unless pattern has uppercase)","-F, --fixed-strings treat pattern as literal string","-w, --word-regexp match whole words only","-x, --line-regexp match whole lines only","-v, --invert-match select non-matching lines","-r, --replace TEXT replace matches with TEXT","-c, --count print count of matching lines per file"," --count-matches print count of individual matches per file","-l, --files-with-matches print only file names with matches"," --files-without-match print file names without matches"," --files list files that would be searched","-o, --only-matching print only matching parts","-m, --max-count NUM stop after NUM matches per file","-q, --quiet suppress output, exit 0 on match"," --stats print search statistics","-n, --line-number print line numbers (default: on)","-N, --no-line-number do not print line numbers","-I, --no-filename suppress the prefixing of file names","-0, --null use NUL as filename separator","-b, --byte-offset show byte offset of each match"," --column show column number of first match"," --vimgrep show results in vimgrep format"," --json show results in JSON Lines format","-A NUM print NUM lines after each match","-B NUM print NUM lines before each match","-C NUM print NUM lines before and after each match"," --context-separator SEP separator for context groups (default: --)","-U, --multiline match patterns across lines","-z, --search-zip search in compressed files (gzip only)","-g, --glob GLOB include files matching GLOB","-t, --type TYPE only search files of TYPE (e.g., js, py, ts)","-T, --type-not TYPE exclude files of TYPE","-L, --follow follow symbolic links","-u, --unrestricted reduce filtering (-u: no ignore, -uu: +hidden, -uuu: +binary)","-a, --text search binary files as text"," --hidden search hidden files and directories"," --no-ignore don't respect .gitignore/.ignore files","-d, --max-depth NUM maximum search depth"," --sort TYPE sort files (path, none)"," --heading show file path above matches"," --passthru print all lines (non-matches use - separator)"," --include-zero include files with 0 matches in count output"," --type-list list all available file types"," --help display this help and exit"]},lt2={name:"rg",async execute(e8,t8){if(o5(e8))return s5(Be);if(e8.includes("--type-list"))return{stdout:Q4(),stderr:"",exitCode:0};let s10=ne2(e8);return s10.success?le2({ctx:t8,options:s10.options,paths:s10.paths,explicitLineNumbers:s10.explicitLineNumbers}):s10.error}},ot2={name:"rg",flags:[{flag:"-i",type:"boolean"},{flag:"-s",type:"boolean"},{flag:"-S",type:"boolean"},{flag:"-F",type:"boolean"},{flag:"-w",type:"boolean"},{flag:"-x",type:"boolean"},{flag:"-v",type:"boolean"},{flag:"-c",type:"boolean"},{flag:"-l",type:"boolean"},{flag:"-o",type:"boolean"},{flag:"-n",type:"boolean"},{flag:"-N",type:"boolean"},{flag:"--hidden",type:"boolean"},{flag:"--no-ignore",type:"boolean"},{flag:"-m",type:"value",valueHint:"number"},{flag:"-A",type:"value",valueHint:"number"},{flag:"-B",type:"value",valueHint:"number"},{flag:"-C",type:"value",valueHint:"number"},{flag:"-g",type:"value",valueHint:"pattern"},{flag:"-t",type:"value",valueHint:"string"},{flag:"-T",type:"value",valueHint:"string"}],needsArgs:!0}}});var rg_F4SX2PHI_exports={};__export(rg_F4SX2PHI_exports,{flagsForFuzzing:()=>ot2,rgCommand:()=>lt2});import{createRequire as createRequire73}from"node:module";var require74,init_rg_F4SX2PHI=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/rg-F4SX2PHI.js"(){init_chunk_EXXOLIVE();init_chunk_FIMO5HLX();init_chunk_DIRWTBKE();init_chunk_L2UW7DWF();init_chunk_7GA3QWJJ();init_chunk_U7UNEMLJ();init_chunk_CBM6J4AL();init_chunk_DIWMSSQY();init_chunk_2WBUTDF5();init_chunk_YUSFCOM7();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_FOCWZZDE();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require74=createRequire73(import.meta.url)}});import{createRequire as createRequire74}from"node:module";function V4(i22){let e8="",t8=0,n10=!1;for(;t8<i22.length;){if(i22[t8]==="["&&!n10){if(i22[t8+1]==="["&&i22[t8+2]===":"){let s10=i22.indexOf(":]]",t8+3);if(s10!==-1){let a14=i22.slice(t8+3,s10),r7=H9.get(a14);if(r7){e8+=`[${r7}]`,t8=s10+3;continue}}}if(i22[t8+1]==="^"&&i22[t8+2]==="["&&i22[t8+3]===":"){let s10=i22.indexOf(":]]",t8+4);if(s10!==-1){let a14=i22.slice(t8+4,s10),r7=H9.get(a14);if(r7){e8+=`[^${r7}]`,t8=s10+3;continue}}}e8+="[",t8++,n10=!0,t8<i22.length&&i22[t8]==="^"&&(e8+="^",t8++),t8<i22.length&&i22[t8]==="]"&&(e8+="\\]",t8++);continue}if(n10){if(i22[t8]==="]"){e8+="]",t8++,n10=!1;continue}if(i22[t8]==="["&&i22[t8+1]===":"){let s10=i22.indexOf(":]",t8+2);if(s10!==-1){let a14=i22.slice(t8+2,s10),r7=H9.get(a14);if(r7){e8+=r7,t8=s10+2;continue}}}if(i22[t8]==="\\"&&t8+1<i22.length){e8+=i22[t8]+i22[t8+1],t8+=2;continue}e8+=i22[t8],t8++;continue}if(i22[t8]==="\\"&&t8+1<i22.length){let s10=i22[t8+1];if(s10==="+"||s10==="?"||s10==="|"){e8+=s10,t8+=2;continue}if(s10==="("||s10===")"){e8+=s10,t8+=2;continue}if(s10==="{"||s10==="}"){e8+=s10,t8+=2;continue}if(s10==="t"){e8+=" ",t8+=2;continue}if(s10==="n"){e8+=`
251
251
  `,t8+=2;continue}if(s10==="r"){e8+="\r",t8+=2;continue}e8+=i22[t8]+s10,t8+=2;continue}if(i22[t8]==="+"||i22[t8]==="?"||i22[t8]==="|"||i22[t8]==="("||i22[t8]===")"){e8+=`\\${i22[t8]}`,t8++;continue}if(i22[t8]==="^"&&!(e8===""||e8.endsWith("("))){e8+="\\^",t8++;continue}if(i22[t8]==="$"){let s10=t8===i22.length-1,a14=t8+2<i22.length&&i22[t8+1]==="\\"&&i22[t8+2]===")";if(!s10&&!a14){e8+="\\$",t8++;continue}}e8+=i22[t8],t8++}return e8}function X6(i22){let e8="",t8=!1;for(let n10=0;n10<i22.length;n10++)i22[n10]==="["&&!t8?(t8=!0,e8+="[",n10++,n10<i22.length&&i22[n10]==="^"&&(e8+="^",n10++),n10<i22.length&&i22[n10]==="]"&&(e8+="]",n10++),n10--):i22[n10]==="]"&&t8?(t8=!1,e8+="]"):!t8&&i22[n10]==="{"&&i22[n10+1]===","?(e8+="{0,",n10++):e8+=i22[n10];return e8}function se3(i22){let e8="";for(let t8=0;t8<i22.length;t8++){let n10=i22[t8],s10=n10.charCodeAt(0);n10==="\\"?e8+="\\\\":n10===" "?e8+="\\t":n10===`
252
252
  `?e8+=`$
253
253
  `:n10==="\r"?e8+="\\r":n10==="\x07"?e8+="\\a":n10==="\b"?e8+="\\b":n10==="\f"?e8+="\\f":n10==="\v"?e8+="\\v":s10<32||s10>=127?e8+=`\\${s10.toString(8).padStart(3,"0")}`:e8+=n10}return`${e8}$`}function ae4(i22,e8,t8){return{patternSpace:"",holdSpace:"",lineNumber:0,totalLines:i22,deleted:!1,printed:!1,quit:!1,quitSilent:!1,exitCode:void 0,errorMessage:void 0,appendBuffer:[],substitutionMade:!1,lineNumberOutput:[],nCommandOutput:[],restartCycle:!1,inDRestartedCycle:!1,currentFilename:e8,pendingFileReads:[],pendingFileWrites:[],rangeStates:t8||new Map,linesConsumedInCycle:0}}function ge4(i22){return typeof i22=="object"&&"first"in i22&&"step"in i22}function be2(i22){return typeof i22=="object"&&"offset"in i22}function L4(i22,e8,t8,n10,s10){if(i22==="$")return e8===t8;if(typeof i22=="number")return e8===i22;if(ge4(i22)){let{first:a14,step:r7}=i22;return r7===0?e8===a14:(e8-a14)%r7===0&&e8>=a14}if(typeof i22=="object"&&"pattern"in i22)try{let a14=i22.pattern;a14===""&&s10?.lastPattern?a14=s10.lastPattern:a14!==""&&s10&&(s10.lastPattern=a14);let r7=X6(V4(a14));return G1(r7).test(n10)}catch{return!1}return!1}function G6(i22){let e8=t8=>t8===void 0?"undefined":t8==="$"?"$":typeof t8=="number"?String(t8):"pattern"in t8?`/${t8.pattern}/`:"first"in t8?`${t8.first}~${t8.step}`:"unknown";return`${e8(i22.start)},${e8(i22.end)}`}function Ee2(i22,e8,t8,n10,s10,a14){if(!i22||!i22.start&&!i22.end)return!0;let r7=i22.start,u15=i22.end;if(r7!==void 0&&u15===void 0)return L4(r7,e8,t8,n10,a14);if(r7!==void 0&&u15!==void 0){let o13=typeof r7=="object"&&"pattern"in r7,h18=typeof u15=="object"&&"pattern"in u15,p16=be2(u15);if(p16&&s10){let m16=G6(i22),d11=s10.get(m16);if(d11||(d11={active:!1},s10.set(m16,d11)),d11.active){let E19=d11.startLine||e8;return e8>=E19+u15.offset&&(d11.active=!1,s10.set(m16,d11)),!0}else return L4(r7,e8,t8,n10,a14)?(d11.active=!0,d11.startLine=e8,s10.set(m16,d11),u15.offset===0&&(d11.active=!1,s10.set(m16,d11)),!0):!1}if(!o13&&!h18&&!p16){let m16=typeof r7=="number"?r7:r7==="$"?t8:1,d11=typeof u15=="number"?u15:t8;if(m16<=d11)return e8>=m16&&e8<=d11;if(s10){let E19=G6(i22),l12=s10.get(E19);return l12||(l12={active:!1},s10.set(E19,l12)),!l12.completed&&e8>=m16?(l12.completed=!0,s10.set(E19,l12),!0):!1}return!1}if(s10){let m16=G6(i22),d11=s10.get(m16);if(d11||(d11={active:!1},s10.set(m16,d11)),d11.active)return L4(u15,e8,t8,n10,a14)&&(d11.active=!1,typeof r7=="number"&&(d11.completed=!0),s10.set(m16,d11)),!0;{if(d11.completed)return!1;let E19=!1;return typeof r7=="number"?E19=e8>=r7:E19=L4(r7,e8,t8,n10,a14),E19?(d11.active=!0,d11.startLine=e8,s10.set(m16,d11),L4(u15,e8,t8,n10,a14)&&(d11.active=!1,typeof r7=="number"&&(d11.completed=!0),s10.set(m16,d11)),!0):!1}}return L4(r7,e8,t8,n10,a14)}return!0}function O10(i22,e8,t8,n10,s10,a14){let r7=Ee2(i22,e8,t8,n10,s10,a14);return i22?.negated?!r7:r7}function ve3(i22,e8,t8,n10){let s10="",a14=0,r7=!1;for(;a14<=i22.length;){e8.lastIndex=a14;let u15=e8.exec(i22);if(!u15){s10+=i22.slice(a14);break}if(u15.index!==a14){s10+=i22.slice(a14,u15.index),a14=u15.index,r7=!1;continue}let o13=u15[0],h18=u15.slice(1);if(r7&&o13.length===0){if(a14<i22.length)s10+=i22[a14],a14++;else break;r7=!1;continue}if(s10+=n10(o13,h18),r7=!1,o13.length===0)if(a14<i22.length)s10+=i22[a14],a14++;else break;else a14+=o13.length,r7=!0}return s10}function j11(i22,e8,t8){let n10="",s10=0;for(;s10<i22.length;){if(i22[s10]==="\\"&&s10+1<i22.length){let a14=i22[s10+1];if(a14==="&"){n10+="&",s10+=2;continue}if(a14==="n"){n10+=`
@@ -272,7 +272,7 @@ ${p16}`}else a14.push(p16)}let r7=a14.join(`
272
272
  `),$22=!0):g13.changedText!==void 0&&(v13(`${g13.changedText}
273
273
  `),$22=!0);for(let C18 of q11)v13(`${C18}
274
274
  `);if(f15=(de11||$22)&&q11.length===0,g13.quit||g13.quitSilent){if(g13.exitCode!==void 0&&(l12=g13.exitCode),g13.errorMessage)return{output:"",exitCode:l12||1,errorMessage:g13.errorMessage};break}}if(r7&&u15)for(let[R21,g13]of D18)try{await p16("flush pending file writes",()=>r7.writeFile(R21,g13))}catch(F24){if(F24 instanceof d3)throw F24}return!k19&&f15&&E19.endsWith(`
275
- `)&&(E19=E19.slice(0,-1)),{output:E19,exitCode:l12}}var require75,H9,me4,c10,M5,K5,Re,He,Ve,init_chunk_W5J5ADJF=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-W5J5ADJF.js"(){init_chunk_CHWP6GRK();init_chunk_7GA3QWJJ();init_chunk_CBM6J4AL();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_FOCWZZDE();init_chunk_QAYAQNCG();require75=createRequire74(import.meta.url),H9=new Map([["alnum","a-zA-Z0-9"],["alpha","a-zA-Z"],["ascii","\\x00-\\x7F"],["blank"," \\t"],["cntrl","\\x00-\\x1F\\x7F"],["digit","0-9"],["graph","!-~"],["lower","a-z"],["print"," -~"],["punct","!-/:-@\\[-`{-~"],["space"," \\t\\n\\r\\f\\v"],["upper","A-Z"],["word","a-zA-Z0-9_"],["xdigit","0-9A-Fa-f"]]);me4=1e4;(function(i22){i22.NUMBER="NUMBER",i22.DOLLAR="DOLLAR",i22.PATTERN="PATTERN",i22.STEP="STEP",i22.RELATIVE_OFFSET="RELATIVE_OFFSET",i22.LBRACE="LBRACE",i22.RBRACE="RBRACE",i22.SEMICOLON="SEMICOLON",i22.NEWLINE="NEWLINE",i22.COMMA="COMMA",i22.NEGATION="NEGATION",i22.COMMAND="COMMAND",i22.SUBSTITUTE="SUBSTITUTE",i22.TRANSLITERATE="TRANSLITERATE",i22.LABEL_DEF="LABEL_DEF",i22.BRANCH="BRANCH",i22.BRANCH_ON_SUBST="BRANCH_ON_SUBST",i22.BRANCH_ON_NO_SUBST="BRANCH_ON_NO_SUBST",i22.TEXT_CMD="TEXT_CMD",i22.FILE_READ="FILE_READ",i22.FILE_READ_LINE="FILE_READ_LINE",i22.FILE_WRITE="FILE_WRITE",i22.FILE_WRITE_LINE="FILE_WRITE_LINE",i22.EXECUTE="EXECUTE",i22.VERSION="VERSION",i22.EOF="EOF",i22.ERROR="ERROR"})(c10||(c10={}));M5=class{maxInputLength;maxTokens;input;pos=0;line=1;column=1;constructor(e8,t8=1024*1024,n10=1e5){this.maxInputLength=t8,this.maxTokens=n10,this.input=e8}tokenize(){if(this.input.length>this.maxInputLength)throw new f2(`sed: script size limit exceeded (${this.maxInputLength} bytes)`,"string_length");let e8=[];for(;this.pos<this.input.length;){let t8=this.nextToken();if(t8){if(e8.length>=this.maxTokens-1)throw new f2(`sed: token limit exceeded (${this.maxTokens})`,"array_elements");e8.push(t8)}}return e8.push(this.makeToken(c10.EOF,"")),e8}makeToken(e8,t8,n10){return{type:e8,value:t8,line:this.line,column:this.column,...n10}}peek(e8=0){return this.input[this.pos+e8]||""}advance(){let e8=this.input[this.pos++]||"";return e8===`
275
+ `)&&(E19=E19.slice(0,-1)),{output:E19,exitCode:l12}}var require75,H9,me4,c10,M5,K5,Re,He,Ve,init_chunk_W5J5ADJF=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-W5J5ADJF.js"(){init_chunk_CHWP6GRK();init_chunk_7GA3QWJJ();init_chunk_CBM6J4AL();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_FOCWZZDE();init_chunk_QAYAQNCG();require75=createRequire74(import.meta.url),H9=new Map([["alnum","a-zA-Z0-9"],["alpha","a-zA-Z"],["ascii","\\x00-\\x7F"],["blank"," \\t"],["cntrl","\\x00-\\x1F\\x7F"],["digit","0-9"],["graph","!-~"],["lower","a-z"],["print"," -~"],["punct","!-/:-@\\[-`{-~"],["space"," \\t\\n\\r\\f\\v"],["upper","A-Z"],["word","a-zA-Z0-9_"],["xdigit","0-9A-Fa-f"]]);me4=1e4;(function(i22){i22.NUMBER="NUMBER",i22.DOLLAR="DOLLAR",i22.PATTERN="PATTERN",i22.STEP="STEP",i22.RELATIVE_OFFSET="RELATIVE_OFFSET",i22.LBRACE="LBRACE",i22.RBRACE="RBRACE",i22.SEMICOLON="SEMICOLON",i22.NEWLINE="NEWLINE",i22.COMMA="COMMA",i22.NEGATION="NEGATION",i22.COMMAND="COMMAND",i22.SUBSTITUTE="SUBSTITUTE",i22.TRANSLITERATE="TRANSLITERATE",i22.LABEL_DEF="LABEL_DEF",i22.BRANCH="BRANCH",i22.BRANCH_ON_SUBST="BRANCH_ON_SUBST",i22.BRANCH_ON_NO_SUBST="BRANCH_ON_NO_SUBST",i22.TEXT_CMD="TEXT_CMD",i22.FILE_READ="FILE_READ",i22.FILE_READ_LINE="FILE_READ_LINE",i22.FILE_WRITE="FILE_WRITE",i22.FILE_WRITE_LINE="FILE_WRITE_LINE",i22.EXECUTE="EXECUTE",i22.VERSION="VERSION",i22.EOF="EOF",i22.ERROR="ERROR"})(c10||(c10={}));M5=class{maxInputLength;maxTokens;input;pos=0;line=1;column=1;constructor(e8,t8=1024*1024,n10=1e5){this.maxInputLength=t8,this.maxTokens=n10,this.input=e8}tokenize(){if(this.input.length>this.maxInputLength)throw new f2(`sed: script size limit exceeded (${this.maxInputLength} bytes)`,"string_length");let e8=[];for(;this.pos<this.input.length;){let t8=this.nextToken();if(t8){if(e8.length>=this.maxTokens-1)throw new f2(`sed: token limit exceeded (${this.maxTokens})`,"array_elements");e8.push(t8)}}return e8.push(this.makeToken(c10.EOF,"")),e8}makeToken(e8,t8,n10){return{type:e8,value:t8,line:this.line,column:this.column,...n10}}peek(e8=0){return this.input[this.pos+e8]||""}advance(){let e8=this.input[this.pos++]||"";return e8===`
276
276
  `?(this.line++,this.column=1):this.column++,e8}readEscapedString(e8){let t8="";for(;this.pos<this.input.length&&this.peek()!==e8;)if(this.peek()==="\\"){this.advance();let n10=this.advance();n10==="n"?t8+=`
277
277
  `:n10==="t"?t8+=" ":t8+=n10}else{if(this.peek()===`
278
278
  `)return null;t8+=this.advance()}return t8}skipWhitespace(){for(;this.pos<this.input.length;){let e8=this.peek();if(e8===" "||e8===" "||e8==="\r")this.advance();else if(e8==="#")for(;this.pos<this.input.length&&this.peek()!==`
@@ -345,13 +345,13 @@ Addresses:
345
345
  `)&&(d11+=`
346
346
  `),d11+=f15}try{let l12=await t8("final processing",()=>Q5(d11,h18,m16,{limits:e8.limits,filename:o13.length===1?o13[0]:void 0,fs:e8.fs,cwd:e8.cwd,coverage:e8.coverage,requireDefenseContext:e8.requireDefenseContext}));return{stdout:l12.output,stderr:l12.errorMessage?`${l12.errorMessage}
347
347
  `:"",exitCode:l12.exitCode??0}}catch(l12){if(l12 instanceof d3)throw l12;if(l12 instanceof f2)return{stdout:"",stderr:`sed: ${n5(l12.message)}
348
- `,exitCode:f2.EXIT_CODE};throw l12}}},Ve={name:"sed",flags:[{flag:"-n",type:"boolean"},{flag:"-i",type:"boolean"},{flag:"-E",type:"boolean"},{flag:"-r",type:"boolean"},{flag:"-e",type:"value",valueHint:"string"}],stdinType:"text",needsArgs:!0}}});var sed_MBB5SXGD_exports={};__export(sed_MBB5SXGD_exports,{flagsForFuzzing:()=>Ve,sedCommand:()=>He});import{createRequire as createRequire75}from"node:module";var require76,init_sed_MBB5SXGD=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/sed-MBB5SXGD.js"(){init_chunk_W5J5ADJF();init_chunk_CHWP6GRK();init_chunk_7GA3QWJJ();init_chunk_CBM6J4AL();init_chunk_6D3WD6YU();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_FOCWZZDE();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require76=createRequire75(import.meta.url)}});import{createRequire as createRequire76}from"node:module";function fe4(e8={}){let{fieldSep:t8=Ye,maxIterations:n10=Qe,maxRecursionDepth:r7=Ze,maxOutputSize:s10=0,maxArrayElements:a14=1e5,fs:o13,cwd:l12,exec:c18,coverage:u15,requireDefenseContext:f15}=e8;return{FS:" ",OFS:" ",ORS:`
348
+ `,exitCode:f2.EXIT_CODE};throw l12}}},Ve={name:"sed",flags:[{flag:"-n",type:"boolean"},{flag:"-i",type:"boolean"},{flag:"-E",type:"boolean"},{flag:"-r",type:"boolean"},{flag:"-e",type:"value",valueHint:"string"}],stdinType:"text",needsArgs:!0}}});var sed_MBB5SXGD_exports={};__export(sed_MBB5SXGD_exports,{flagsForFuzzing:()=>Ve,sedCommand:()=>He});import{createRequire as createRequire75}from"node:module";var require76,init_sed_MBB5SXGD=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/sed-MBB5SXGD.js"(){init_chunk_W5J5ADJF();init_chunk_CHWP6GRK();init_chunk_7GA3QWJJ();init_chunk_CBM6J4AL();init_chunk_6D3WD6YU();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_FOCWZZDE();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require76=createRequire75(import.meta.url)}});import{createRequire as createRequire76}from"node:module";function fe4(e8={}){let{fieldSep:t8=Ye,maxIterations:n10=Qe,maxRecursionDepth:r7=Ze,maxOutputSize:s10=0,maxArrayElements:a14=1e5,fs:o13,cwd:l12,exec:c18,coverage:u15,requireDefenseContext:f15}=e8;return{FS:" ",OFS:" ",ORS:`
349
349
  `,OFMT:"%.6g",NR:0,NF:0,FNR:0,FILENAME:"",RSTART:0,RLENGTH:-1,SUBSEP:"",fields:[],line:"",vars:Object.create(null),arrays:Object.create(null),arrayAliases:new Map,ARGC:0,ARGV:Object.create(null),ENVIRON:Object.create(null),functions:new Map,getlineCommandStreams:new Map,getlineFileStreams:new Map,fieldSep:t8,maxIterations:n10,maxRecursionDepth:r7,maxOutputSize:s10,maxArrayElements:a14,arrayElementCount:0,recordsProcessed:0,currentRecursionDepth:0,exitCode:0,shouldExit:!1,shouldNext:!1,shouldNextFile:!1,loopBreak:!1,loopContinue:!1,hasReturn:!1,inEndBlock:!1,output:"",openedFiles:new Set,fs:o13,cwd:l12,exec:c18,coverage:u15,requireDefenseContext:f15}}function ke3(e8,t8,n10){switch(n10){case"+":return e8+t8;case"-":return e8-t8;case"*":return e8*t8;case"/":return t8!==0?e8/t8:0;case"%":return t8!==0?e8%t8:0;case"^":case"**":return e8**t8;default:return 0}}function F10(e8){if(typeof e8=="number")return e8;let t8=parseFloat(e8);return Number.isNaN(t8)?0:t8}function L5(e8){return typeof e8=="string"?e8:(Number.isInteger(e8),String(e8))}function Ee3(e8){return new u5(e8,"awk string",()=>new f2(`string size limit exceeded (${e8} bytes)`,"string_length"))}function _6(e8){return e8.maxOutputSize>0?e8.maxOutputSize:be3}function te4(e8,t8,n10,r7,s10){let a14=Ee3(s10),o13=0,l12=0,c18=0;for(let u15 of t8.matchAll(e8)){let f15=u15.index??0;l12++,a14.append(e8.slice(o13,f15)),n10(l12)?(a14.append(r7(u15)),c18++):a14.append(u15[0]),o13=f15+u15[0].length}return a14.append(e8.slice(o13)),{value:a14.build(),replacements:c18}}async function ne3(e8,t8){if(e8.type==="regex")return e8.pattern;let n10=L5(await t8.evalExpr(e8));return n10.startsWith("/")&&n10.endsWith("/")&&(n10=n10.slice(1,-1)),n10}async function Oe2(e8,t8){return e8?e8.type==="variable"?e8.name:e8.type==="field"?`$${Math.floor(F10(await t8.evalExpr(e8.index)))}`:"$0":"$0"}function Le3(e8,t8){if(e8==="$0")return t8.line;if(e8.startsWith("$")){let n10=parseInt(e8.slice(1),10)-1;return t8.fields[n10]||""}return L5(t8.vars[e8]??"")}function Te(e8,t8,n10){if(e8==="$0")n10.line=t8,n10.fields=n10.FS===" "?t8.trim().split(/\s+/).filter(Boolean):n10.fieldSep.split(t8),n10.NF=n10.fields.length;else if(e8.startsWith("$")){let r7=parseInt(e8.slice(1),10)-1;for(;n10.fields.length<=r7;)n10.fields.push("");n10.fields[r7]=t8,n10.NF=n10.fields.length,n10.line=n10.fields.join(n10.OFS)}else n10.vars[e8]=t8}async function Je(e8,t8,n10){return e8.length===0?t8.line.length:L5(await n10.evalExpr(e8[0])).length}async function et2(e8,t8,n10){if(e8.length<2)return"";let r7=L5(await n10.evalExpr(e8[0])),s10=Math.floor(F10(await n10.evalExpr(e8[1])))-1;if(e8.length>=3){let a14=Math.floor(F10(await n10.evalExpr(e8[2])));return r7.substr(Math.max(0,s10),a14)}return r7.substr(Math.max(0,s10))}async function tt2(e8,t8,n10){if(e8.length<2)return 0;let r7=L5(await n10.evalExpr(e8[0])),s10=L5(await n10.evalExpr(e8[1])),a14=r7.indexOf(s10);return a14===-1?0:a14+1}async function nt(e8,t8,n10){if(e8.length<2)return 0;let r7=L5(await n10.evalExpr(e8[0])),s10=e8[1];if(s10.type!=="variable")return 0;let a14=s10.name,o13=t8.FS;if(e8.length>=3){let f15=e8[2];if(f15.type==="regex")o13=G1(f15.pattern);else{let k19=L5(await n10.evalExpr(f15));o13=k19===" "?G1("\\s+"):k19}}else t8.FS===" "&&(o13=G1("\\s+"));let l12=Object.keys(t8.arrays[a14]??{}).length,c18=t8.maxArrayElements-t8.arrayElementCount+l12,u15=typeof o13=="string"?r7.split(o13,c18+1):o13.split(r7,c18+1);if(u15.length>c18)throw new f2(`array element limit exceeded (${t8.maxArrayElements})`,"array_elements");t8.arrays[a14]=Object.create(null);for(let f15=0;f15<u15.length;f15++)t8.arrays[a14][String(f15+1)]=u15[f15];return t8.arrayElementCount+=u15.length-l12,u15.length}async function it2(e8,t8,n10){if(e8.length<2)return 0;let r7=await ne3(e8[0],n10),s10=L5(await n10.evalExpr(e8[1])),a14=await Oe2(e8[2],n10),o13=Le3(a14,t8);try{let l12=G1(r7,"g"),c18=te4(o13,l12,u15=>u15===1,u15=>Pe(s10,u15[0],_6(t8)),_6(t8));return Te(a14,c18.value,t8),c18.replacements}catch(l12){return e2(l12),0}}async function rt(e8,t8,n10){if(e8.length<2)return 0;let r7=await ne3(e8[0],n10),s10=L5(await n10.evalExpr(e8[1])),a14=await Oe2(e8[2],n10),o13=Le3(a14,t8);try{let l12=G1(r7,"g"),c18=te4(o13,l12,()=>!0,u15=>Pe(s10,u15[0],_6(t8)),_6(t8));return Te(a14,c18.value,t8),c18.replacements}catch(l12){return e2(l12),0}}function Pe(e8,t8,n10){let r7=Ee3(n10),s10=0;for(;s10<e8.length;)if(e8[s10]==="\\"&&s10+1<e8.length){let a14=e8[s10+1];a14==="&"?(r7.append("&"),s10+=2):a14==="\\"?(r7.append("\\"),s10+=2):(r7.append(e8[s10+1]),s10+=2)}else e8[s10]==="&"?(r7.append(t8),s10++):(r7.append(e8[s10]),s10++);return r7.build()}async function st(e8,t8,n10){if(e8.length<2)return t8.RSTART=0,t8.RLENGTH=-1,0;let r7=L5(await n10.evalExpr(e8[0])),s10=await ne3(e8[1],n10);try{let o13=G1(s10).exec(r7);if(o13)return t8.RSTART=o13.index+1,t8.RLENGTH=o13[0].length,t8.RSTART}catch{}return t8.RSTART=0,t8.RLENGTH=-1,0}async function at2(e8,t8,n10){if(e8.length<3)return"";let r7=await ne3(e8[0],n10),s10=L5(await n10.evalExpr(e8[1])),a14=L5(await n10.evalExpr(e8[2])),o13=e8.length>=4?L5(await n10.evalExpr(e8[3])):t8.line;try{let l12=a14.toLowerCase()==="g",c18=l12?0:parseInt(a14,10)||1;if(l12){let u15=G1(r7,"g");return te4(o13,u15,()=>!0,f15=>Ce5(s10,f15[0],f15.slice(1),_6(t8)),_6(t8)).value}else{let u15=G1(r7,"g");return te4(o13,u15,f15=>f15===c18,f15=>Ce5(s10,f15[0],f15.slice(1),_6(t8)),_6(t8)).value}}catch(l12){return e2(l12),o13}}function Ce5(e8,t8,n10,r7){let s10=Ee3(r7),a14=0;for(;a14<e8.length;)if(e8[a14]==="\\"&&a14+1<e8.length){let o13=e8[a14+1];if(o13==="&")s10.append("&"),a14+=2;else if(o13==="0")s10.append(t8),a14+=2;else if(o13>="1"&&o13<="9"){let l12=parseInt(o13,10)-1;s10.append(n10[l12]||""),a14+=2}else o13==="n"?(s10.append(`
350
350
  `),a14+=2):o13==="t"?(s10.append(" "),a14+=2):(s10.append(o13),a14+=2)}else e8[a14]==="&"?(s10.append(t8),a14++):(s10.append(e8[a14]),a14++);return s10.build()}async function ot3(e8,t8,n10){return e8.length===0?"":L5(await n10.evalExpr(e8[0])).toLowerCase()}async function lt3(e8,t8,n10){return e8.length===0?"":L5(await n10.evalExpr(e8[0])).toUpperCase()}async function ut(e8,t8,n10){if(e8.length===0)return"";let r7=L5(await n10.evalExpr(e8[0])),s10=[];for(let a14=1;a14<e8.length;a14++)s10.push(await n10.evalExpr(e8[a14]));return ie3(r7,s10,_6(t8))}async function ct(e8,t8,n10){return e8.length===0?0:Math.floor(F10(await n10.evalExpr(e8[0])))}async function ht(e8,t8,n10){return e8.length===0?0:Math.sqrt(F10(await n10.evalExpr(e8[0])))}async function pt(e8,t8,n10){return e8.length===0?0:Math.sin(F10(await n10.evalExpr(e8[0])))}async function ft(e8,t8,n10){return e8.length===0?0:Math.cos(F10(await n10.evalExpr(e8[0])))}async function dt(e8,t8,n10){let r7=e8.length>0?F10(await n10.evalExpr(e8[0])):0,s10=e8.length>1?F10(await n10.evalExpr(e8[1])):0;return Math.atan2(r7,s10)}async function Et(e8,t8,n10){return e8.length===0?0:Math.log(F10(await n10.evalExpr(e8[0])))}async function mt(e8,t8,n10){return e8.length===0?1:Math.exp(F10(await n10.evalExpr(e8[0])))}function Nt(e8,t8,n10){return t8.random?t8.random():Math.random()}async function yt2(e8,t8,n10){let r7=e8.length>0?F10(await n10.evalExpr(e8[0])):Date.now();return t8.vars._srand_seed=r7,r7}function wt(e8,t8){return()=>{throw new Error(`${e8}() is not supported - ${t8}`)}}function de4(e8){return()=>{throw new Error(`function '${e8}()' is not implemented`)}}function ie3(e8,t8,n10=be3){let r7=0,s10="",a14=0,o13=0,l12=Math.min(gt2,n10),c18=u15=>{let f15=x(u15);if(f15>n10-a14)throw new f2(`formatted string size limit exceeded (${n10} bytes)`,"string_length");s10+=u15,a14+=f15};for(;o13<e8.length;)if(e8[o13]==="%"&&o13+1<e8.length){let u15=o13+1,f15="",k19="",C18="",A13,T19=u15;for(;u15<e8.length&&/\d/.test(e8[u15]);)u15++;u15>T19&&e8[u15]==="$"?(A13=parseInt(e8.substring(T19,u15),10)-1,u15++):u15=T19;let he8=()=>{if(u15<e8.length){if(u15+1<e8.length&&(e8[u15]==="h"&&e8[u15+1]==="h"||e8[u15]==="l"&&e8[u15+1]==="l")){u15+=2;return}/[lzjh]/.test(e8[u15])&&u15++}};for(;u15<e8.length&&/[-+ #0]/.test(e8[u15]);)f15+=e8[u15++];if(e8[u15]==="*"){let p16=t8[r7++],N16=p16!==void 0?Math.floor(Number(p16)):0;if(!Number.isFinite(N16)||!Number.isSafeInteger(N16))throw new f2(`printf width limit exceeded (${l12} bytes)`,"string_length");N16<0?(f15+="-",k19=String(-N16)):k19=String(N16),u15++}else for(;u15<e8.length&&/\d/.test(e8[u15]);)k19+=e8[u15++];if(k19&&parseInt(k19,10)>l12)throw new f2(`printf width limit exceeded (${l12} bytes)`,"string_length");if(e8[u15]==="."){if(u15++,e8[u15]==="*"){let p16=t8[r7++],N16=p16!==void 0?Math.floor(Number(p16)):0;if(!Number.isFinite(N16)||!Number.isSafeInteger(N16))throw new f2(`printf precision limit exceeded (${l12} bytes)`,"string_length");C18=N16<0?"":String(N16),u15++}else for(;u15<e8.length&&/\d/.test(e8[u15]);)C18+=e8[u15++];if(C18&&parseInt(C18,10)>l12)throw new f2(`printf precision limit exceeded (${l12} bytes)`,"string_length")}he8();let W12=e8[u15],y14=t8[A13!==void 0?A13:r7];switch(W12){case"s":{let p16=y14!==void 0?String(y14):"";if(C18&&(p16=p16.substring(0,parseInt(C18,10))),k19){let N16=parseInt(k19,10);f15.includes("-")?p16=p16.padEnd(N16):p16=p16.padStart(N16)}c18(p16),A13===void 0&&r7++;break}case"d":case"i":{let p16=y14!==void 0?Math.floor(Number(y14)):0;Number.isNaN(p16)&&(p16=0);let N16=p16<0,g13=Math.abs(p16).toString();if(C18){let x23=parseInt(C18,10);g13=g13.padStart(x23,"0")}let d11="";N16?d11="-":f15.includes("+")?d11="+":f15.includes(" ")&&(d11=" ");let I22=d11+g13;if(k19){let x23=parseInt(k19,10);f15.includes("-")?I22=I22.padEnd(x23):f15.includes("0")&&!C18?I22=d11+g13.padStart(x23-d11.length,"0"):I22=I22.padStart(x23)}c18(I22),A13===void 0&&r7++;break}case"f":{let p16=y14!==void 0?Number(y14):0;Number.isNaN(p16)&&(p16=0);let N16=C18?parseInt(C18,10):6;if(N16>100)throw new f2("printf floating-point precision limit exceeded (100 digits)","string_length");let g13=p16.toFixed(N16);if(k19){let d11=parseInt(k19,10);f15.includes("-")?g13=g13.padEnd(d11):g13=g13.padStart(d11)}c18(g13),A13===void 0&&r7++;break}case"e":case"E":{let p16=y14!==void 0?Number(y14):0;Number.isNaN(p16)&&(p16=0);let N16=C18?parseInt(C18,10):6;if(N16>100)throw new f2("printf floating-point precision limit exceeded (100 digits)","string_length");let g13=p16.toExponential(N16);if(W12==="E"&&(g13=g13.toUpperCase()),k19){let d11=parseInt(k19,10);f15.includes("-")?g13=g13.padEnd(d11):g13=g13.padStart(d11)}c18(g13),A13===void 0&&r7++;break}case"g":case"G":{let p16=y14!==void 0?Number(y14):0;Number.isNaN(p16)&&(p16=0);let N16=C18?parseInt(C18,10):6;if(N16>100)throw new f2("printf floating-point precision limit exceeded (100 digits)","string_length");let g13=p16!==0?Math.floor(Math.log10(Math.abs(p16))):0,d11;if(p16===0?d11="0":g13<-4||g13>=N16?(d11=p16.toExponential(N16-1),W12==="G"&&(d11=d11.toUpperCase())):d11=p16.toPrecision(N16),d11.includes(".")&&(d11=d11.replace(/\.?0+$/,"").replace(/\.?0+e/,"e")),d11.includes("e")&&(d11=d11.replace(/\.?0+e/,"e")),k19){let I22=parseInt(k19,10);f15.includes("-")?d11=d11.padEnd(I22):d11=d11.padStart(I22)}c18(d11),A13===void 0&&r7++;break}case"x":case"X":{let p16=y14!==void 0?Math.floor(Number(y14)):0;Number.isNaN(p16)&&(p16=0);let N16=Math.abs(p16).toString(16);if(W12==="X"&&(N16=N16.toUpperCase()),C18){let I22=parseInt(C18,10);N16=N16.padStart(I22,"0")}let g13=p16<0?"-":"",d11=g13+N16;if(k19){let I22=parseInt(k19,10);f15.includes("-")?d11=d11.padEnd(I22):f15.includes("0")&&!C18?d11=g13+N16.padStart(I22-g13.length,"0"):d11=d11.padStart(I22)}c18(d11),A13===void 0&&r7++;break}case"o":{let p16=y14!==void 0?Math.floor(Number(y14)):0;Number.isNaN(p16)&&(p16=0);let N16=Math.abs(p16).toString(8);if(C18){let I22=parseInt(C18,10);N16=N16.padStart(I22,"0")}let g13=p16<0?"-":"",d11=g13+N16;if(k19){let I22=parseInt(k19,10);f15.includes("-")?d11=d11.padEnd(I22):f15.includes("0")&&!C18?d11=g13+N16.padStart(I22-g13.length,"0"):d11=d11.padStart(I22)}c18(d11),A13===void 0&&r7++;break}case"c":{c18(typeof y14=="number"?String.fromCharCode(y14):String(y14??"").charAt(0)||""),A13===void 0&&r7++;break}case"%":c18("%");break;default:c18(e8.substring(o13,u15+1))}o13=u15+1}else if(e8[o13]==="\\"&&o13+1<e8.length){let u15=e8[o13+1];switch(u15){case"n":c18(`
351
351
  `);break;case"t":c18(" ");break;case"r":c18("\r");break;case"\\":c18("\\");break;default:c18(u15)}o13+=2}else c18(e8[o13++]);return s10}function P7(e8){return typeof e8=="number"?e8!==0:!(e8===""||e8==="0")}function b13(e8){if(typeof e8=="number")return e8;let t8=parseFloat(e8);return Number.isNaN(t8)?0:t8}function v7(e8){return typeof e8=="string"?e8:(Number.isInteger(e8),String(e8))}function me5(e8){if(typeof e8=="number")return!0;let t8=String(e8).trim();return t8===""?!1:!Number.isNaN(Number(t8))}function Z3(e8,t8){try{return G1(e8).test(t8)}catch{return!1}}function Fe3(e8,t8){return t8===""?[]:e8.FS===" "?t8.trim().split(/\s+/).filter(Boolean):e8.fieldSep.split(t8)}function re4(e8,t8){return t8===0?e8.line:t8<0||t8>e8.fields.length?"":e8.fields[t8-1]??""}function Ne2(e8,t8,n10){if(t8===0)e8.line=v7(n10),e8.fields=Fe3(e8,e8.line),e8.NF=e8.fields.length;else if(t8>0){for(;e8.fields.length<t8;)e8.fields.push("");e8.fields[t8-1]=v7(n10),e8.NF=e8.fields.length,e8.line=e8.fields.join(e8.OFS)}}function K6(e8,t8){e8.line=t8,e8.fields=Fe3(e8,t8),e8.NF=e8.fields.length}function De(e8,t8){if(e8.FS=t8,t8===" ")e8.fieldSep=new l1(/\s+/);else try{e8.fieldSep=G1(t8)}catch{e8.fieldSep=G1(t8.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))}}function se4(e8,t8){switch(t8){case"FS":return e8.FS;case"OFS":return e8.OFS;case"ORS":return e8.ORS;case"OFMT":return e8.OFMT;case"NR":return e8.NR;case"NF":return e8.NF;case"FNR":return e8.FNR;case"FILENAME":return e8.FILENAME;case"RSTART":return e8.RSTART;case"RLENGTH":return e8.RLENGTH;case"SUBSEP":return e8.SUBSEP;case"ARGC":return e8.ARGC}return e8.vars[t8]??""}function j12(e8,t8,n10){switch(t8){case"FS":De(e8,v7(n10));return;case"OFS":e8.OFS=v7(n10);return;case"ORS":e8.ORS=v7(n10);return;case"OFMT":e8.OFMT=v7(n10);return;case"NR":e8.NR=Math.floor(b13(n10));return;case"NF":{let r7=Math.floor(b13(n10));if(r7<e8.NF)e8.fields=e8.fields.slice(0,r7),e8.line=e8.fields.join(e8.OFS);else if(r7>e8.NF){for(;e8.fields.length<r7;)e8.fields.push("");e8.line=e8.fields.join(e8.OFS)}e8.NF=r7;return}case"FNR":e8.FNR=Math.floor(b13(n10));return;case"FILENAME":e8.FILENAME=v7(n10);return;case"RSTART":e8.RSTART=Math.floor(b13(n10));return;case"RLENGTH":e8.RLENGTH=Math.floor(b13(n10));return;case"SUBSEP":e8.SUBSEP=v7(n10);return}e8.vars[t8]=n10}function Y4(e8,t8){let n10=t8,r7=new Set,s10=e8.arrayAliases.get(n10);for(;s10!==void 0&&!r7.has(n10);)r7.add(n10),n10=s10,s10=e8.arrayAliases.get(n10);return n10}function ae5(e8,t8,n10){if(t8==="ARGV")return e8.ARGV[n10]??"";if(t8==="ENVIRON")return e8.ENVIRON[n10]??"";let r7=Y4(e8,t8);return e8.arrays[r7]?.[n10]??""}function ye3(e8,t8,n10,r7){let s10=Y4(e8,t8);if(e8.arrays[s10]||(e8.arrays[s10]=Object.create(null)),!(n10 in e8.arrays[s10])){if(e8.arrayElementCount>=e8.maxArrayElements)throw new f2(`array element limit exceeded (${e8.maxArrayElements})`,"array_elements");e8.arrayElementCount++}e8.arrays[s10][n10]=r7}function xe5(e8,t8,n10){if(t8==="ARGV")return e8.ARGV[n10]!==void 0;if(t8==="ENVIRON")return e8.ENVIRON[n10]!==void 0;let r7=Y4(e8,t8);return e8.arrays[r7]?.[n10]!==void 0}function _e(e8,t8,n10){let r7=Y4(e8,t8);e8.arrays[r7]&&(n10 in e8.arrays[r7]&&e8.arrayElementCount--,delete e8.arrays[r7][n10])}function Ge(e8,t8){let n10=Y4(e8,t8);e8.arrayElementCount-=Object.keys(e8.arrays[n10]??{}).length,delete e8.arrays[n10]}function Ue(e8){Be2=e8}function M6(e8,t8){a5(e8.requireDefenseContext,"awk",t8)}function R5(e8,t8,n10){return x3(e8.requireDefenseContext,"awk",t8,n10)}async function E9(e8,t8){switch(M6(e8,"expression evaluation"),e8.coverage?.hit(`awk:expr:${t8.type}`),t8.type){case"number":return t8.value;case"string":return t8.value;case"regex":return Z3(t8.pattern,e8.line)?1:0;case"field":return St(e8,t8);case"variable":return se4(e8,t8.name);case"array_access":return Rt(e8,t8);case"binary":return At(e8,t8);case"unary":return kt(e8,t8);case"ternary":return P7(await R5(e8,"ternary condition evaluation",()=>E9(e8,t8.condition)))?await R5(e8,"ternary consequent evaluation",()=>E9(e8,t8.consequent)):await R5(e8,"ternary alternate evaluation",()=>E9(e8,t8.alternate));case"call":return Ct(e8,t8.name,t8.args);case"assignment":return Ot(e8,t8);case"pre_increment":return Lt(e8,t8.operand);case"pre_decrement":return Tt(e8,t8.operand);case"post_increment":return Pt(e8,t8.operand);case"post_decrement":return Mt(e8,t8.operand);case"in":return Ft(e8,t8.key,t8.array);case"getline":return Dt(e8,t8.variable,t8.file,t8.command);case"tuple":return Gt(e8,t8.elements);default:return""}}async function St(e8,t8){M6(e8,"field reference evaluation");let n10=Math.floor(b13(await R5(e8,"field index evaluation",()=>E9(e8,t8.index))));return re4(e8,n10)}async function Rt(e8,t8){M6(e8,"array access evaluation");let n10=v7(await R5(e8,"array key evaluation",()=>E9(e8,t8.key)));return ae5(e8,t8.array,n10)}async function At(e8,t8){M6(e8,"binary expression evaluation");let n10=t8.operator;if(n10==="||")return P7(await R5(e8,"logical-or left evaluation",()=>E9(e8,t8.left)))||P7(await R5(e8,"logical-or right evaluation",()=>E9(e8,t8.right)))?1:0;if(n10==="&&")return P7(await R5(e8,"logical-and left evaluation",()=>E9(e8,t8.left)))&&P7(await R5(e8,"logical-and right evaluation",()=>E9(e8,t8.right)))?1:0;if(n10==="~"){let l12=await R5(e8,"regex left evaluation",()=>E9(e8,t8.left));t8.right.type==="regex"&&e8.coverage?.hit("awk:expr:regex");let c18=t8.right.type==="regex"?t8.right.pattern:v7(await R5(e8,"regex right evaluation",()=>E9(e8,t8.right)));try{return G1(c18).test(v7(l12))?1:0}catch{return 0}}if(n10==="!~"){let l12=await R5(e8,"negated-regex left evaluation",()=>E9(e8,t8.left));t8.right.type==="regex"&&e8.coverage?.hit("awk:expr:regex");let c18=t8.right.type==="regex"?t8.right.pattern:v7(await R5(e8,"negated-regex right evaluation",()=>E9(e8,t8.right)));try{return G1(c18).test(v7(l12))?0:1}catch{return 1}}let r7=await R5(e8,"binary left evaluation",()=>E9(e8,t8.left)),s10=await R5(e8,"binary right evaluation",()=>E9(e8,t8.right));if(n10===" "){let l12=v7(r7)+v7(s10);if(e8.maxOutputSize>0&&l12.length>e8.maxOutputSize)throw new f2(`awk: string concatenation size limit exceeded (${e8.maxOutputSize} bytes)`,"string_length",e8.output);return l12}if(vt(n10))return It(r7,s10,n10);let a14=b13(r7),o13=b13(s10);return ke3(a14,o13,n10)}function vt(e8){return["<","<=",">",">=","==","!="].includes(e8)}function It(e8,t8,n10){let r7=me5(e8),s10=me5(t8);if(r7&&s10){let l12=b13(e8),c18=b13(t8);switch(n10){case"<":return l12<c18?1:0;case"<=":return l12<=c18?1:0;case">":return l12>c18?1:0;case">=":return l12>=c18?1:0;case"==":return l12===c18?1:0;case"!=":return l12!==c18?1:0}}let a14=v7(e8),o13=v7(t8);switch(n10){case"<":return a14<o13?1:0;case"<=":return a14<=o13?1:0;case">":return a14>o13?1:0;case">=":return a14>=o13?1:0;case"==":return a14===o13?1:0;case"!=":return a14!==o13?1:0}return 0}async function kt(e8,t8){M6(e8,"unary expression evaluation");let n10=await R5(e8,"unary operand evaluation",()=>E9(e8,t8.operand));switch(t8.operator){case"!":return P7(n10)?0:1;case"-":return-b13(n10);case"+":return+b13(n10);default:return n10}}async function Ct(e8,t8,n10){M6(e8,"function call evaluation");let r7=Me2.get(t8);if(r7)return r7(n10,e8,{evalExpr:a14=>E9(e8,a14)});let s10=e8.functions.get(t8);return s10?bt(e8,s10,n10):""}async function bt(e8,t8,n10){if(M6(e8,"user function call"),e8.currentRecursionDepth++,e8.currentRecursionDepth>e8.maxRecursionDepth)throw e8.currentRecursionDepth--,new f2(`awk: recursion depth exceeded maximum (${e8.maxRecursionDepth})`,"recursion",e8.output);let r7=Object.create(null);for(let l12 of t8.params)r7[l12]=e8.vars[l12];let s10=[];for(let l12=0;l12<t8.params.length;l12++){let c18=t8.params[l12];if(l12<n10.length){let u15=n10[l12];u15.type==="variable"&&(e8.arrayAliases.set(c18,u15.name),s10.push(c18));let f15=await R5(e8,"user function argument evaluation",()=>E9(e8,u15));e8.vars[c18]=f15}else e8.vars[c18]=""}e8.hasReturn=!1,e8.returnValue=void 0;let a14=Be2;a14&&await R5(e8,"user function body execution",()=>a14(e8,t8.body.statements));let o13=e8.returnValue??"";for(let l12 of t8.params)r7[l12]!==void 0?e8.vars[l12]=r7[l12]:delete e8.vars[l12];for(let l12 of s10)e8.arrayAliases.delete(l12);return e8.hasReturn=!1,e8.returnValue=void 0,e8.currentRecursionDepth--,o13}async function Ot(e8,t8){M6(e8,"assignment evaluation");let n10=await R5(e8,"assignment value evaluation",()=>E9(e8,t8.value)),r7=t8.target,s10=t8.operator,a14;if(s10==="=")a14=n10;else{let o13;if(r7.type==="field"){let u15=Math.floor(b13(await R5(e8,"assignment field index",()=>E9(e8,r7.index))));o13=re4(e8,u15)}else if(r7.type==="variable")o13=se4(e8,r7.name);else{let u15=v7(await R5(e8,"assignment array key",()=>E9(e8,r7.key)));o13=ae5(e8,r7.array,u15)}let l12=b13(o13),c18=b13(n10);switch(s10){case"+=":a14=l12+c18;break;case"-=":a14=l12-c18;break;case"*=":a14=l12*c18;break;case"/=":a14=c18!==0?l12/c18:0;break;case"%=":a14=c18!==0?l12%c18:0;break;case"^=":a14=l12**c18;break;default:a14=n10}}if(r7.type==="field"){let o13=Math.floor(b13(await R5(e8,"assignment target field index",()=>E9(e8,r7.index))));Ne2(e8,o13,a14)}else if(r7.type==="variable")j12(e8,r7.name,a14);else{let o13=v7(await R5(e8,"assignment target array key",()=>E9(e8,r7.key)));ye3(e8,r7.array,o13,a14)}return a14}async function oe4(e8,t8,n10,r7){M6(e8,"inc/dec evaluation");let s10;if(t8.type==="field"){let a14=Math.floor(b13(await R5(e8,"inc/dec field index",()=>E9(e8,t8.index))));s10=b13(re4(e8,a14)),Ne2(e8,a14,s10+n10)}else if(t8.type==="variable")s10=b13(se4(e8,t8.name)),j12(e8,t8.name,s10+n10);else{let a14=v7(await R5(e8,"inc/dec array key",()=>E9(e8,t8.key)));s10=b13(ae5(e8,t8.array,a14)),ye3(e8,t8.array,a14,s10+n10)}return r7?s10+n10:s10}async function Lt(e8,t8){return oe4(e8,t8,1,!0)}async function Tt(e8,t8){return oe4(e8,t8,-1,!0)}async function Pt(e8,t8){return oe4(e8,t8,1,!1)}async function Mt(e8,t8){return oe4(e8,t8,-1,!1)}async function Ft(e8,t8,n10){M6(e8,"in-expression evaluation");let r7;if(t8.type==="tuple"){e8.coverage?.hit("awk:expr:tuple");let s10=[];for(let a14 of t8.elements)s10.push(v7(await R5(e8,"tuple key element evaluation",()=>E9(e8,a14))));r7=s10.join(e8.SUBSEP)}else r7=v7(await R5(e8,"in-expression key evaluation",()=>E9(e8,t8)));return xe5(e8,n10,r7)?1:0}async function Dt(e8,t8,n10,r7){if(M6(e8,"getline evaluation"),r7)return xt(e8,t8,r7);if(n10)return _t(e8,t8,n10);if(!e8.lines||e8.lineIndex===void 0)return-1;let s10=e8.lineIndex+1;if(s10>=e8.lines.length)return 0;let a14=e8.lines[s10];return t8?j12(e8,t8,a14):K6(e8,a14),e8.NR++,e8.lineIndex=s10,1}async function xt(e8,t8,n10){let r7=e8.exec;if(!r7)return-1;M6(e8,"getline command source");let s10=v7(await R5(e8,"getline command expression",()=>E9(e8,n10))),a14=e8.getlineCommandStreams.get(s10);if(!a14)try{let c18=await R5(e8,"getline command exec",()=>r7(s10)),f15=a2(c18.stdout).split(`
352
352
  `);f15.length>0&&f15[f15.length-1]===""&&f15.pop(),a14={lines:f15,index:-1},e8.getlineCommandStreams.set(s10,a14)}catch(c18){if(c18 instanceof d3)throw c18;return-1}let o13=a14.index+1;if(o13>=a14.lines.length)return 0;let l12=a14.lines[o13];return a14.index=o13,t8?j12(e8,t8,l12):K6(e8,l12),1}async function _t(e8,t8,n10){let r7=e8.fs;if(!r7||!e8.cwd)return-1;M6(e8,"getline file source");let s10=v7(await R5(e8,"getline filename evaluation",()=>E9(e8,n10)));if(s10==="/dev/null")return 0;let a14=r7.resolvePath(e8.cwd,s10),o13=e8.getlineFileStreams.get(a14);if(!o13)try{let f15=(await R5(e8,"getline file read",()=>r7.readFile(a14))).split(`
353
353
  `);f15.length>0&&f15[f15.length-1]===""&&f15.pop(),o13={lines:f15,index:-1},e8.getlineFileStreams.set(a14,o13)}catch(u15){if(u15 instanceof d3)throw u15;return-1}let l12=o13.index+1;if(l12>=o13.lines.length)return 0;let c18=o13.lines[l12];return o13.index=l12,t8?j12(e8,t8,c18):K6(e8,c18),1}async function Gt(e8,t8){if(M6(e8,"tuple evaluation"),t8.length===0)return"";for(let n10=0;n10<t8.length-1;n10++)await R5(e8,"tuple intermediate element",()=>E9(e8,t8[n10]));return R5(e8,"tuple final element",()=>E9(e8,t8[t8.length-1]))}function we4(e8){if(e8.maxOutputSize>0&&e8.output.length>e8.maxOutputSize)throw new f2(`awk: output size limit exceeded (${e8.maxOutputSize} bytes)`,"string_length",e8.output)}function D8(e8,t8){a5(e8.requireDefenseContext,"awk",t8)}function S6(e8,t8,n10){return x3(e8.requireDefenseContext,"awk",t8,n10)}async function q4(e8,t8){D8(e8,"block execution");for(let n10 of t8)if(await S6(e8,"statement execution",()=>H10(e8,n10)),Bt(e8))break}function Bt(e8){return e8.shouldExit||e8.shouldNext||e8.shouldNextFile||e8.loopBreak||e8.loopContinue||e8.hasReturn}async function H10(e8,t8){switch(D8(e8,"single statement execution"),e8.coverage?.hit(`awk:stmt:${t8.type}`),t8.type){case"block":await S6(e8,"nested block statement",()=>q4(e8,t8.statements));break;case"expr_stmt":await S6(e8,"expression statement",()=>E9(e8,t8.expression));break;case"print":await S6(e8,"print statement",()=>Ut(e8,t8.args,t8.output));break;case"printf":await S6(e8,"printf statement",()=>$t(e8,t8.format,t8.args,t8.output));break;case"if":await S6(e8,"if statement",()=>Ht(e8,t8));break;case"while":await S6(e8,"while statement",()=>Wt(e8,t8));break;case"do_while":await S6(e8,"do-while statement",()=>Vt(e8,t8));break;case"for":await S6(e8,"for statement",()=>zt(e8,t8));break;case"for_in":await S6(e8,"for-in statement",()=>Xt(e8,t8));break;case"break":e8.loopBreak=!0;break;case"continue":e8.loopContinue=!0;break;case"next":e8.shouldNext=!0;break;case"nextfile":e8.shouldNextFile=!0;break;case"exit":e8.shouldExit=!0;{let n10=t8.code;e8.exitCode=n10?Math.floor(b13(await S6(e8,"exit code expression",()=>E9(e8,n10)))):0}break;case"return":e8.hasReturn=!0;{let n10=t8.value;e8.returnValue=n10?await S6(e8,"return expression",()=>E9(e8,n10)):""}break;case"delete":await S6(e8,"delete statement",()=>Kt(e8,t8.target));break}}async function Ut(e8,t8,n10){D8(e8,"print execution");let r7=[];for(let a14 of t8){let o13=await S6(e8,"print argument evaluation",()=>E9(e8,a14));typeof o13=="number"?Number.isInteger(o13)&&Math.abs(o13)<Number.MAX_SAFE_INTEGER?r7.push(String(o13)):r7.push(ie3(e8.OFMT,[o13],e8.maxOutputSize||void 0)):r7.push(v7(o13))}let s10=r7.join(e8.OFS)+e8.ORS;n10?await S6(e8,"print redirection write",()=>$e3(e8,n10.redirect,n10.file,s10)):(e8.output+=s10,we4(e8))}async function $t(e8,t8,n10,r7){D8(e8,"printf execution");let s10=v7(await S6(e8,"printf format evaluation",()=>E9(e8,t8))),a14=[];for(let c18 of n10)a14.push(await S6(e8,"printf argument evaluation",()=>E9(e8,c18)));let o13=e8.maxOutputSize>0?Math.max(0,e8.maxOutputSize-x(e8.output)):void 0,l12=ie3(s10,a14,o13);r7?await S6(e8,"printf redirection write",()=>$e3(e8,r7.redirect,r7.file,l12)):(e8.output+=l12,we4(e8))}async function $e3(e8,t8,n10,r7){D8(e8,"file write execution");let s10=e8.fs;if(!s10||!e8.cwd){e8.output+=r7,we4(e8);return}let a14=v7(await S6(e8,"redirection filename evaluation",()=>E9(e8,n10))),o13=s10.resolvePath(e8.cwd,a14);t8===">"?e8.openedFiles.has(o13)?await S6(e8,"redirection append write",()=>s10.appendFile(o13,r7)):(await S6(e8,"redirection overwrite write",()=>s10.writeFile(o13,r7)),e8.openedFiles.add(o13)):(e8.openedFiles.has(o13)||e8.openedFiles.add(o13),await S6(e8,"redirection append mode write",()=>s10.appendFile(o13,r7)))}async function Ht(e8,t8){if(D8(e8,"if execution"),P7(await S6(e8,"if condition evaluation",()=>E9(e8,t8.condition))))await S6(e8,"if consequent execution",()=>H10(e8,t8.consequent));else if(t8.alternate){let n10=t8.alternate;await S6(e8,"if alternate execution",()=>H10(e8,n10))}}async function Wt(e8,t8){D8(e8,"while execution");let n10=0;for(;P7(await S6(e8,"while condition evaluation",()=>E9(e8,t8.condition)));){if(n10++,n10>e8.maxIterations)throw new f2(`awk: while loop exceeded maximum iterations (${e8.maxIterations})`,"iterations",e8.output);if(e8.loopContinue=!1,await S6(e8,"while body execution",()=>H10(e8,t8.body)),e8.loopBreak){e8.loopBreak=!1;break}if(e8.shouldExit||e8.shouldNext||e8.hasReturn)break}}async function Vt(e8,t8){D8(e8,"do-while execution");let n10=0;do{if(n10++,n10>e8.maxIterations)throw new f2(`awk: do-while loop exceeded maximum iterations (${e8.maxIterations})`,"iterations",e8.output);if(e8.loopContinue=!1,await S6(e8,"do-while body execution",()=>H10(e8,t8.body)),e8.loopBreak){e8.loopBreak=!1;break}if(e8.shouldExit||e8.shouldNext||e8.hasReturn)break}while(P7(await S6(e8,"do-while condition evaluation",()=>E9(e8,t8.condition))))}async function zt(e8,t8){D8(e8,"for execution");let n10=t8.init,r7=t8.condition,s10=t8.update;n10&&await S6(e8,"for init evaluation",()=>E9(e8,n10));let a14=0;for(;!r7||P7(await S6(e8,"for condition evaluation",()=>E9(e8,r7)));){if(a14++,a14>e8.maxIterations)throw new f2(`awk: for loop exceeded maximum iterations (${e8.maxIterations})`,"iterations",e8.output);if(e8.loopContinue=!1,await S6(e8,"for body execution",()=>H10(e8,t8.body)),e8.loopBreak){e8.loopBreak=!1;break}if(e8.shouldExit||e8.shouldNext||e8.hasReturn)break;s10&&await S6(e8,"for update evaluation",()=>E9(e8,s10))}}async function Xt(e8,t8){D8(e8,"for-in execution");let n10=e8.arrays[t8.array];if(n10)for(let r7 of Object.keys(n10)){if(e8.vars[t8.variable]=r7,e8.loopContinue=!1,await S6(e8,"for-in body execution",()=>H10(e8,t8.body)),e8.loopBreak){e8.loopBreak=!1;break}if(e8.shouldExit||e8.shouldNext||e8.hasReturn)break}}async function Kt(e8,t8){if(D8(e8,"delete execution"),t8.type==="array_access"){let n10=v7(await S6(e8,"delete key evaluation",()=>E9(e8,t8.key)));_e(e8,t8.array,n10)}else t8.type==="variable"&&Ge(e8,t8.name)}function qt(e8){return e8.replace(/\[\[:space:\]\]/g,"[ \\t\\n\\r\\f\\v]").replace(/\[\[:blank:\]\]/g,"[ \\t]").replace(/\[\[:alpha:\]\]/g,"[a-zA-Z]").replace(/\[\[:digit:\]\]/g,"[0-9]").replace(/\[\[:alnum:\]\]/g,"[a-zA-Z0-9]").replace(/\[\[:upper:\]\]/g,"[A-Z]").replace(/\[\[:lower:\]\]/g,"[a-z]").replace(/\[\[:punct:\]\]/g,"[!\"#$%&'()*+,\\-./:;<=>?@\\[\\]\\\\^_`{|}~]").replace(/\[\[:xdigit:\]\]/g,"[0-9A-Fa-f]").replace(/\[\[:graph:\]\]/g,"[!-~]").replace(/\[\[:print:\]\]/g,"[ -~]").replace(/\[\[:cntrl:\]\]/g,"[\\x00-\\x1f\\x7f]")}function Xe(e8){e8.expect(h11.PRINT);let t8=[];if(e8.check(h11.NEWLINE)||e8.check(h11.SEMICOLON)||e8.check(h11.RBRACE)||e8.check(h11.PIPE)||e8.check(h11.GT)||e8.check(h11.APPEND))t8.push({type:"field",index:{type:"number",value:0}});else for(e8.assertArrayLength(t8.length),t8.push(ue3(e8));e8.check(h11.COMMA);)e8.advance(),e8.assertArrayLength(t8.length),t8.push(ue3(e8));let n10;return e8.check(h11.GT)?(e8.advance(),n10={redirect:">",file:e8.parsePrimary()}):e8.check(h11.APPEND)&&(e8.advance(),n10={redirect:">>",file:e8.parsePrimary()}),{type:"print",args:t8,output:n10}}function ue3(e8){return Zt(e8)?ge5(e8,!0):ge5(e8,!1)}function ge5(e8,t8){let n10=t8?e8.parseTernary():Yt(e8);if(e8.match(h11.ASSIGN,h11.PLUS_ASSIGN,h11.MINUS_ASSIGN,h11.STAR_ASSIGN,h11.SLASH_ASSIGN,h11.PERCENT_ASSIGN,h11.CARET_ASSIGN)){let r7=e8.advance(),s10=e8.withDepth(()=>ge5(e8,t8));if(n10.type!=="variable"&&n10.type!=="field"&&n10.type!=="array_access")throw new Error("Invalid assignment target");return{type:"assignment",operator:new Map([["=","="],["+=","+="],["-=","-="],["*=","*="],["/=","/="],["%=","%="],["^=","^="]]).get(r7.value)??"=",target:n10,value:s10}}return n10}function Zt(e8){let t8=0,n10=e8.pos;for(;n10<e8.tokens.length;){e8.useOperation();let r7=e8.tokens[n10];if(r7.type===h11.LPAREN&&t8++,r7.type===h11.RPAREN&&t8--,r7.type===h11.QUESTION&&t8===0)return!0;if(r7.type===h11.NEWLINE||r7.type===h11.SEMICOLON||r7.type===h11.RBRACE||r7.type===h11.COMMA||r7.type===h11.PIPE)return!1;n10++}return!1}function Yt(e8){let t8=He2(e8);for(;e8.check(h11.OR);){e8.advance();let n10=He2(e8);t8={type:"binary",operator:"||",left:t8,right:n10}}return t8}function He2(e8){let t8=We3(e8);for(;e8.check(h11.AND);){e8.advance();let n10=We3(e8);t8={type:"binary",operator:"&&",left:t8,right:n10}}return t8}function We3(e8){let t8=Jt(e8);if(e8.check(h11.IN)){e8.advance();let n10=String(e8.expect(h11.IDENT).value);return{type:"in",key:t8,array:n10}}return t8}function Jt(e8){let t8=Ve2(e8);for(;en(e8)&&!tn(e8);){let n10=Ve2(e8);t8={type:"binary",operator:" ",left:t8,right:n10}}return t8}function Ve2(e8){let t8=ze(e8);for(;e8.match(h11.MATCH,h11.NOT_MATCH);){let n10=e8.advance().type===h11.MATCH?"~":"!~",r7=ze(e8);t8={type:"binary",operator:n10,left:t8,right:r7}}return t8}function ze(e8){let t8=e8.parseAddSub();for(;e8.match(h11.LT,h11.LE,h11.GE,h11.EQ,h11.NE);){let n10=e8.advance(),r7=e8.parseAddSub();t8={type:"binary",operator:new Map([["<","<"],["<=","<="],[">=",">="],["==","=="],["!=","!="]]).get(n10.value)??"==",left:t8,right:r7}}return t8}function en(e8){return e8.match(h11.NUMBER,h11.STRING,h11.IDENT,h11.DOLLAR,h11.LPAREN,h11.NOT,h11.MINUS,h11.PLUS,h11.INCREMENT,h11.DECREMENT)}function tn(e8){return e8.match(h11.AND,h11.OR,h11.QUESTION,h11.ASSIGN,h11.PLUS_ASSIGN,h11.MINUS_ASSIGN,h11.STAR_ASSIGN,h11.SLASH_ASSIGN,h11.PERCENT_ASSIGN,h11.CARET_ASSIGN,h11.COMMA,h11.SEMICOLON,h11.NEWLINE,h11.RBRACE,h11.RPAREN,h11.RBRACKET,h11.COLON,h11.PIPE,h11.APPEND,h11.GT,h11.IN)}function Ke(e8){e8.expect(h11.PRINTF);let t8=e8.check(h11.LPAREN);t8&&(e8.advance(),e8.skipNewlines());let n10=t8?e8.parseExpression():ue3(e8),r7=[];for(;e8.check(h11.COMMA);)e8.advance(),t8&&e8.skipNewlines(),e8.assertArrayLength(r7.length),r7.push(t8?e8.parseExpression():ue3(e8));t8&&(e8.skipNewlines(),e8.expect(h11.RPAREN));let s10;return e8.check(h11.GT)?(e8.advance(),s10={redirect:">",file:e8.parsePrimary()}):e8.check(h11.APPEND)&&(e8.advance(),s10={redirect:">>",file:e8.parsePrimary()}),{type:"printf",format:n10,args:r7,output:s10}}function Se3(e8){return e8.replace(/\\t/g," ").replace(/\\n/g,`
354
- `).replace(/\\r/g,"\r").replace(/\\b/g,"\b").replace(/\\f/g,"\f").replace(/\\a/g,"\x07").replace(/\\v/g,"\v").replace(/\\\\/g,"\\")}function je(e8){if(e8===" ")return G1("\\s+");if(/[[\](){}.*+?^$|\\]/.test(e8))try{return G1(e8)}catch{return G1(qe(e8))}return G1(qe(e8))}function qe(e8){return e8.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var require77,Qe,Ze,Ye,be3,gt2,Me2,Be2,J3,i17,jt,Qt,le4,h11,ce4,nn,mi,Ni,init_chunk_4IMUNIUJ=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-4IMUNIUJ.js"(){init_chunk_DLL7UR66();init_chunk_CHWP6GRK();init_chunk_7GA3QWJJ();init_chunk_U7UNEMLJ();init_chunk_CBM6J4AL();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();require77=createRequire76(import.meta.url),Qe=1e4,Ze=100,Ye=new l1(/\s+/);be3=10*1024*1024;gt2=1e4;Me2=new Map([["length",Je],["substr",et2],["index",tt2],["split",nt],["sub",it2],["gsub",rt],["match",st],["gensub",at2],["tolower",ot3],["toupper",lt3],["sprintf",ut],["int",ct],["sqrt",ht],["sin",pt],["cos",ft],["atan2",dt],["log",Et],["exp",mt],["rand",Nt],["srand",yt2],["system",wt("system","shell execution not allowed in sandboxed environment")],["close",()=>0],["fflush",()=>0],["systime",de4("systime")],["mktime",de4("mktime")],["strftime",de4("strftime")]]);Be2=null;Ue(q4);J3=class{ctx;program=null;rangeStates=[];constructor(t8){this.ctx=t8}assertDefenseContext(t8){a5(this.ctx.requireDefenseContext,"awk",t8)}withDefenseContext(t8,n10){return x3(this.ctx.requireDefenseContext,"awk",t8,n10)}execute(t8){this.assertDefenseContext("program initialization"),this.program=t8,this.ctx.output="";for(let n10 of t8.functions)this.ctx.functions.set(n10.name,n10);this.rangeStates=t8.rules.map(()=>!1)}async executeBegin(){if(this.assertDefenseContext("BEGIN execution entry"),!!this.program){for(let t8 of this.program.rules)if(t8.pattern?.type==="begin"&&(await this.withDefenseContext("BEGIN block execution",()=>q4(this.ctx,t8.action.statements)),this.ctx.shouldExit))break}}async executeLine(t8){if(this.assertDefenseContext("line execution entry"),!(!this.program||this.ctx.shouldExit)){if(this.ctx.recordsProcessed++,this.ctx.recordsProcessed>this.ctx.maxIterations)throw new f2(`record limit exceeded (${this.ctx.maxIterations})`,"iterations");K6(this.ctx,t8),this.ctx.NR++,this.ctx.FNR++,this.ctx.shouldNext=!1;for(let n10=0;n10<this.program.rules.length&&!(this.ctx.shouldExit||this.ctx.shouldNext||this.ctx.shouldNextFile);n10++){let r7=this.program.rules[n10];r7.pattern?.type==="begin"||r7.pattern?.type==="end"||await this.withDefenseContext("rule match",()=>this.matchesRule(r7,n10))&&await this.withDefenseContext("rule block execution",()=>q4(this.ctx,r7.action.statements))}}}async executeEnd(){if(this.assertDefenseContext("END execution entry"),!!this.program&&!this.ctx.inEndBlock){this.ctx.inEndBlock=!0,this.ctx.shouldExit=!1;for(let t8 of this.program.rules)if(t8.pattern?.type==="end"&&(await this.withDefenseContext("END block execution",()=>q4(this.ctx,t8.action.statements)),this.ctx.shouldExit))break;this.ctx.inEndBlock=!1}}getOutput(){return this.ctx.output}getExitCode(){return this.ctx.exitCode}getContext(){return this.ctx}async matchesRule(t8,n10){this.assertDefenseContext("rule matching");let r7=t8.pattern;if(!r7)return!0;switch(r7.type){case"begin":case"end":return!1;case"regex_pattern":return Z3(r7.pattern,this.ctx.line);case"expr_pattern":return P7(await this.withDefenseContext("expression pattern evaluation",()=>E9(this.ctx,r7.expression)));case"range":{let s10=await this.withDefenseContext("range start pattern",()=>this.matchPattern(r7.start)),a14=await this.withDefenseContext("range end pattern",()=>this.matchPattern(r7.end));return this.rangeStates[n10]?(a14&&(this.rangeStates[n10]=!1),!0):s10?(this.rangeStates[n10]=!0,a14&&(this.rangeStates[n10]=!1),!0):!1}default:return!1}}async matchPattern(t8){switch(this.assertDefenseContext("pattern matching"),t8.type){case"regex_pattern":return Z3(t8.pattern,this.ctx.line);case"expr_pattern":return P7(await this.withDefenseContext("nested expression pattern",()=>E9(this.ctx,t8.expression)));default:return!1}}};(function(e8){e8.NUMBER="NUMBER",e8.STRING="STRING",e8.REGEX="REGEX",e8.IDENT="IDENT",e8.BEGIN="BEGIN",e8.END="END",e8.IF="IF",e8.ELSE="ELSE",e8.WHILE="WHILE",e8.DO="DO",e8.FOR="FOR",e8.IN="IN",e8.BREAK="BREAK",e8.CONTINUE="CONTINUE",e8.NEXT="NEXT",e8.NEXTFILE="NEXTFILE",e8.EXIT="EXIT",e8.RETURN="RETURN",e8.DELETE="DELETE",e8.FUNCTION="FUNCTION",e8.PRINT="PRINT",e8.PRINTF="PRINTF",e8.GETLINE="GETLINE",e8.PLUS="PLUS",e8.MINUS="MINUS",e8.STAR="STAR",e8.SLASH="SLASH",e8.PERCENT="PERCENT",e8.CARET="CARET",e8.EQ="EQ",e8.NE="NE",e8.LT="LT",e8.GT="GT",e8.LE="LE",e8.GE="GE",e8.MATCH="MATCH",e8.NOT_MATCH="NOT_MATCH",e8.AND="AND",e8.OR="OR",e8.NOT="NOT",e8.ASSIGN="ASSIGN",e8.PLUS_ASSIGN="PLUS_ASSIGN",e8.MINUS_ASSIGN="MINUS_ASSIGN",e8.STAR_ASSIGN="STAR_ASSIGN",e8.SLASH_ASSIGN="SLASH_ASSIGN",e8.PERCENT_ASSIGN="PERCENT_ASSIGN",e8.CARET_ASSIGN="CARET_ASSIGN",e8.INCREMENT="INCREMENT",e8.DECREMENT="DECREMENT",e8.QUESTION="QUESTION",e8.COLON="COLON",e8.COMMA="COMMA",e8.SEMICOLON="SEMICOLON",e8.NEWLINE="NEWLINE",e8.LPAREN="LPAREN",e8.RPAREN="RPAREN",e8.LBRACE="LBRACE",e8.RBRACE="RBRACE",e8.LBRACKET="LBRACKET",e8.RBRACKET="RBRACKET",e8.DOLLAR="DOLLAR",e8.APPEND="APPEND",e8.PIPE="PIPE",e8.EOF="EOF"})(i17||(i17={}));jt=new Map([["BEGIN",i17.BEGIN],["END",i17.END],["if",i17.IF],["else",i17.ELSE],["while",i17.WHILE],["do",i17.DO],["for",i17.FOR],["in",i17.IN],["break",i17.BREAK],["continue",i17.CONTINUE],["next",i17.NEXT],["nextfile",i17.NEXTFILE],["exit",i17.EXIT],["return",i17.RETURN],["delete",i17.DELETE],["function",i17.FUNCTION],["print",i17.PRINT],["printf",i17.PRINTF],["getline",i17.GETLINE]]);Qt=new Set([i17.COMMA,i17.LBRACE,i17.AND,i17.OR,i17.QUESTION,i17.COLON,i17.DO,i17.ELSE,i17.IF,i17.WHILE]),le4=class{maxTokens;input;pos=0;line=1;column=1;lastTokenType=null;constructor(t8,n10=1e5){this.maxTokens=n10,this.input=t8}tokenize(){let t8=[];for(;this.pos<this.input.length;){let n10=this.nextToken();if(n10){if(t8.length>=this.maxTokens)throw new f2(`awk: token limit exceeded (${this.maxTokens})`,"array_elements");t8.push(n10),this.lastTokenType=n10.type}}if(t8.length>=this.maxTokens)throw new f2(`awk: token limit exceeded (${this.maxTokens})`,"array_elements");return t8.push(this.makeToken(i17.EOF,"")),t8}makeToken(t8,n10){return{type:t8,value:n10,line:this.line,column:this.column}}peek(t8=0){return this.input[this.pos+t8]||""}advance(){let t8=this.input[this.pos++]||"";return t8===`
354
+ `).replace(/\\r/g,"\r").replace(/\\b/g,"\b").replace(/\\f/g,"\f").replace(/\\a/g,"\x07").replace(/\\v/g,"\v").replace(/\\\\/g,"\\")}function je(e8){if(e8===" ")return G1("\\s+");if(/[[\](){}.*+?^$|\\]/.test(e8))try{return G1(e8)}catch{return G1(qe(e8))}return G1(qe(e8))}function qe(e8){return e8.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var require77,Qe,Ze,Ye,be3,gt2,Me2,Be2,J3,i17,jt,Qt,le4,h11,ce4,nn,mi,Ni,init_chunk_4IMUNIUJ=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-4IMUNIUJ.js"(){init_chunk_DLL7UR66();init_chunk_CHWP6GRK();init_chunk_7GA3QWJJ();init_chunk_U7UNEMLJ();init_chunk_CBM6J4AL();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();require77=createRequire76(import.meta.url),Qe=1e4,Ze=100,Ye=new l1(/\s+/);be3=10*1024*1024;gt2=1e4;Me2=new Map([["length",Je],["substr",et2],["index",tt2],["split",nt],["sub",it2],["gsub",rt],["match",st],["gensub",at2],["tolower",ot3],["toupper",lt3],["sprintf",ut],["int",ct],["sqrt",ht],["sin",pt],["cos",ft],["atan2",dt],["log",Et],["exp",mt],["rand",Nt],["srand",yt2],["system",wt("system","shell execution not allowed in sandboxed environment")],["close",()=>0],["fflush",()=>0],["systime",de4("systime")],["mktime",de4("mktime")],["strftime",de4("strftime")]]);Be2=null;Ue(q4);J3=class{ctx;program=null;rangeStates=[];constructor(t8){this.ctx=t8}assertDefenseContext(t8){a5(this.ctx.requireDefenseContext,"awk",t8)}withDefenseContext(t8,n10){return x3(this.ctx.requireDefenseContext,"awk",t8,n10)}execute(t8){this.assertDefenseContext("program initialization"),this.program=t8,this.ctx.output="";for(let n10 of t8.functions)this.ctx.functions.set(n10.name,n10);this.rangeStates=t8.rules.map(()=>!1)}async executeBegin(){if(this.assertDefenseContext("BEGIN execution entry"),!!this.program){for(let t8 of this.program.rules)if(t8.pattern?.type==="begin"&&(await this.withDefenseContext("BEGIN block execution",()=>q4(this.ctx,t8.action.statements)),this.ctx.shouldExit))break}}async executeLine(t8){if(this.assertDefenseContext("line execution entry"),!(!this.program||this.ctx.shouldExit)){if(this.ctx.recordsProcessed++,this.ctx.recordsProcessed>this.ctx.maxIterations)throw new f2(`record limit exceeded (${this.ctx.maxIterations})`,"iterations");K6(this.ctx,t8),this.ctx.NR++,this.ctx.FNR++,this.ctx.shouldNext=!1;for(let n10=0;n10<this.program.rules.length&&!(this.ctx.shouldExit||this.ctx.shouldNext||this.ctx.shouldNextFile);n10++){let r7=this.program.rules[n10];r7.pattern?.type==="begin"||r7.pattern?.type==="end"||await this.withDefenseContext("rule match",()=>this.matchesRule(r7,n10))&&await this.withDefenseContext("rule block execution",()=>q4(this.ctx,r7.action.statements))}}}async executeEnd(){if(this.assertDefenseContext("END execution entry"),!!this.program&&!this.ctx.inEndBlock){this.ctx.inEndBlock=!0,this.ctx.shouldExit=!1;for(let t8 of this.program.rules)if(t8.pattern?.type==="end"&&(await this.withDefenseContext("END block execution",()=>q4(this.ctx,t8.action.statements)),this.ctx.shouldExit))break;this.ctx.inEndBlock=!1}}getOutput(){return this.ctx.output}getExitCode(){return this.ctx.exitCode}getContext(){return this.ctx}async matchesRule(t8,n10){this.assertDefenseContext("rule matching");let r7=t8.pattern;if(!r7)return!0;switch(r7.type){case"begin":case"end":return!1;case"regex_pattern":return Z3(r7.pattern,this.ctx.line);case"expr_pattern":return P7(await this.withDefenseContext("expression pattern evaluation",()=>E9(this.ctx,r7.expression)));case"range":{let s10=await this.withDefenseContext("range start pattern",()=>this.matchPattern(r7.start)),a14=await this.withDefenseContext("range end pattern",()=>this.matchPattern(r7.end));return this.rangeStates[n10]?(a14&&(this.rangeStates[n10]=!1),!0):s10?(this.rangeStates[n10]=!0,a14&&(this.rangeStates[n10]=!1),!0):!1}default:return!1}}async matchPattern(t8){switch(this.assertDefenseContext("pattern matching"),t8.type){case"regex_pattern":return Z3(t8.pattern,this.ctx.line);case"expr_pattern":return P7(await this.withDefenseContext("nested expression pattern",()=>E9(this.ctx,t8.expression)));default:return!1}}};(function(e8){e8.NUMBER="NUMBER",e8.STRING="STRING",e8.REGEX="REGEX",e8.IDENT="IDENT",e8.BEGIN="BEGIN",e8.END="END",e8.IF="IF",e8.ELSE="ELSE",e8.WHILE="WHILE",e8.DO="DO",e8.FOR="FOR",e8.IN="IN",e8.BREAK="BREAK",e8.CONTINUE="CONTINUE",e8.NEXT="NEXT",e8.NEXTFILE="NEXTFILE",e8.EXIT="EXIT",e8.RETURN="RETURN",e8.DELETE="DELETE",e8.FUNCTION="FUNCTION",e8.PRINT="PRINT",e8.PRINTF="PRINTF",e8.GETLINE="GETLINE",e8.PLUS="PLUS",e8.MINUS="MINUS",e8.STAR="STAR",e8.SLASH="SLASH",e8.PERCENT="PERCENT",e8.CARET="CARET",e8.EQ="EQ",e8.NE="NE",e8.LT="LT",e8.GT="GT",e8.LE="LE",e8.GE="GE",e8.MATCH="MATCH",e8.NOT_MATCH="NOT_MATCH",e8.AND="AND",e8.OR="OR",e8.NOT="NOT",e8.ASSIGN="ASSIGN",e8.PLUS_ASSIGN="PLUS_ASSIGN",e8.MINUS_ASSIGN="MINUS_ASSIGN",e8.STAR_ASSIGN="STAR_ASSIGN",e8.SLASH_ASSIGN="SLASH_ASSIGN",e8.PERCENT_ASSIGN="PERCENT_ASSIGN",e8.CARET_ASSIGN="CARET_ASSIGN",e8.INCREMENT="INCREMENT",e8.DECREMENT="DECREMENT",e8.QUESTION="QUESTION",e8.COLON="COLON",e8.COMMA="COMMA",e8.SEMICOLON="SEMICOLON",e8.NEWLINE="NEWLINE",e8.LPAREN="LPAREN",e8.RPAREN="RPAREN",e8.LBRACE="LBRACE",e8.RBRACE="RBRACE",e8.LBRACKET="LBRACKET",e8.RBRACKET="RBRACKET",e8.DOLLAR="DOLLAR",e8.APPEND="APPEND",e8.PIPE="PIPE",e8.EOF="EOF"})(i17||(i17={}));jt=new Map([["BEGIN",i17.BEGIN],["END",i17.END],["if",i17.IF],["else",i17.ELSE],["while",i17.WHILE],["do",i17.DO],["for",i17.FOR],["in",i17.IN],["break",i17.BREAK],["continue",i17.CONTINUE],["next",i17.NEXT],["nextfile",i17.NEXTFILE],["exit",i17.EXIT],["return",i17.RETURN],["delete",i17.DELETE],["function",i17.FUNCTION],["print",i17.PRINT],["printf",i17.PRINTF],["getline",i17.GETLINE]]);Qt=new Set([i17.COMMA,i17.LBRACE,i17.AND,i17.OR,i17.QUESTION,i17.COLON,i17.DO,i17.ELSE,i17.IF,i17.WHILE]),le4=class{maxTokens;input;pos=0;line=1;column=1;lastTokenType=null;constructor(t8,n10=1e5){this.maxTokens=n10,this.input=t8}tokenize(){let t8=[];for(;this.pos<this.input.length;){let n10=this.nextToken();if(n10){if(t8.length>=this.maxTokens)throw new f2(`awk: token limit exceeded (${this.maxTokens})`,"array_elements");t8.push(n10),this.lastTokenType=n10.type}}if(t8.length>=this.maxTokens)throw new f2(`awk: token limit exceeded (${this.maxTokens})`,"array_elements");return t8.push(this.makeToken(i17.EOF,"")),t8}makeToken(t8,n10){return{type:t8,value:n10,line:this.line,column:this.column}}peek(t8=0){return this.input[this.pos+t8]||""}advance(){let t8=this.input[this.pos++]||"";return t8===`
355
355
  `?(this.line++,this.column=1):this.column++,t8}skipWhitespace(){for(;this.pos<this.input.length;){let t8=this.peek();if(t8===" "||t8===" "||t8==="\r")this.advance();else if(t8==="\\")if(this.peek(1)===`
356
356
  `)this.advance(),this.advance();else break;else if(t8==="#")for(;this.pos<this.input.length&&this.peek()!==`
357
357
  `;)this.advance();else break}}nextToken(){for(this.skipWhitespace();this.peek()===`
@@ -364,7 +364,7 @@ Addresses:
364
364
  `,exitCode:1}}let k19={readFile:t8.fs.readFile.bind(t8.fs),writeFile:t8.fs.writeFile.bind(t8.fs),appendFile:async(m16,y14)=>{try{let p16=await n10("appendFile read",()=>t8.fs.readFile(m16));await n10("appendFile write",()=>t8.fs.writeFile(m16,p16+y14))}catch(p16){if(p16 instanceof d3)throw p16;await n10("appendFile create",()=>t8.fs.writeFile(m16,y14))}},resolvePath:t8.fs.resolvePath.bind(t8.fs)},C18=t8.exec,A13=fe4({fieldSep:r7,maxIterations:t8.limits.maxAwkIterations,maxOutputSize:Math.min(t8.limits.maxStringLength,t8.limits.maxOutputSize),maxArrayElements:t8.limits.maxArrayElements,fs:k19,cwd:t8.cwd,exec:C18?m16=>n10("command pipe exec",()=>C18(m16,{cwd:t8.cwd,signal:t8.signal})):void 0,coverage:t8.coverage,requireDefenseContext:t8.requireDefenseContext});A13.FS=s10,A13.vars=Object.assign(Object.create(null),a14),A13.ARGC=c18.length+1,A13.ARGV=Object.create(null),A13.ARGV[0]="awk";for(let m16=0;m16<c18.length;m16++)A13.ARGV[String(m16+1)]=c18[m16];A13.ENVIRON=r3(t8.env);let T19=new J3(A13);T19.execute(f15);let he8=f15.rules.some(m16=>m16.pattern?.type!=="begin"&&m16.pattern?.type!=="end"),W12=f15.rules.some(m16=>m16.pattern?.type==="end");try{if(await n10("BEGIN execution",()=>T19.executeBegin()),A13.shouldExit)return await n10("END execution after BEGIN exit",()=>T19.executeEnd()),{stdout:T19.getOutput(),stderr:"",exitCode:T19.getExitCode()};if(!he8&&!W12)return{stdout:T19.getOutput(),stderr:"",exitCode:T19.getExitCode()};let m16=Math.min(t8.limits.maxInputBytes,t8.limits.maxStringLength),y14=t8.limits.maxArrayElements,p16=0,N16=async(g13,d11)=>{let I22=x(d11);if(I22>m16-p16)throw new f2(`aggregate input size limit exceeded (${m16} bytes)`,"string_length");p16+=I22;let x23=d11.length>0?1:0;for(let Q12=0;Q12<d11.length;Q12++)if(d11.charCodeAt(Q12)===10&&x23++,x23>y14+1)throw new f2(`record array limit exceeded (${y14})`,"array_elements");let G14=d11.split(`
365
365
  `);if(G14.length>0&&G14[G14.length-1]===""&&G14.pop(),G14.length>y14)throw new f2(`record array limit exceeded (${y14})`,"array_elements");for(A13.FILENAME=g13,A13.FNR=0,A13.lines=G14,A13.lineIndex=-1,A13.shouldNextFile=!1;A13.lineIndex<G14.length-1;){A13.lineIndex++;let Q12=A13.lineIndex;if(await n10("line execution",()=>T19.executeLine(G14[Q12])),A13.shouldExit||A13.shouldNextFile)break}};if(c18.length>0)for(let g13 of c18){let d11;try{let I22=t8.fs.resolvePath(t8.cwd,g13);if((await n10("input file stat",()=>t8.fs.stat(I22))).size>m16-p16)throw new f2(`aggregate input size limit exceeded (${m16} bytes)`,"string_length");d11=await n10("input file read",()=>t8.fs.readFile(I22))}catch(I22){if(I22 instanceof d3||I22 instanceof f2)throw I22;return{stdout:"",stderr:`awk: ${g13}: No such file or directory
366
366
  `,exitCode:1}}if(await n10("input processing",()=>N16(g13,d11)),A13.shouldExit)break}else await n10("stdin processing",()=>N16("",a2(t8.stdin)));return await n10("END execution",()=>T19.executeEnd()),{stdout:T19.getOutput(),stderr:"",exitCode:T19.getExitCode()}}catch(m16){if(m16 instanceof d3)throw m16;let y14=m16 instanceof Error?m16.message:String(m16),p16=m16 instanceof f2?f2.EXIT_CODE:2;return{stdout:T19.getOutput(),stderr:`awk: ${y14}
367
- `,exitCode:p16}}}};Ni={name:"awk",flags:[{flag:"-F",type:"value",valueHint:"delimiter"},{flag:"-v",type:"value",valueHint:"string"}],stdinType:"text",needsArgs:!0}}});var awk2_V7KYQWCD_exports={};__export(awk2_V7KYQWCD_exports,{awkCommand2:()=>mi,flagsForFuzzing:()=>Ni});import{createRequire as createRequire77}from"node:module";var require78,init_awk2_V7KYQWCD=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/awk2-V7KYQWCD.js"(){init_chunk_4IMUNIUJ();init_chunk_DLL7UR66();init_chunk_CHWP6GRK();init_chunk_7GA3QWJJ();init_chunk_U7UNEMLJ();init_chunk_CBM6J4AL();init_chunk_6D3WD6YU();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require78=createRequire77(import.meta.url)}});import{createRequire as createRequire78}from"node:module";function x12(u15){let r7=u15.trim(),e8=r7.match(/^([+-]?\d*\.?\d+)\s*([kmgtpeKMGTPE])?[iI]?[bB]?$/);if(!e8){let n10=parseFloat(r7);return Number.isNaN(n10)?0:n10}let l12=parseFloat(e8[1]),s10=(e8[2]||"").toLowerCase(),i22=P8.get(s10)??1;return l12*i22}function M7(u15){let r7=u15.trim().toLowerCase().slice(0,3);return D9.get(r7)??0}function q5(u15,r7){let e8=u15.split(/(\d+)/),l12=r7.split(/(\d+)/),s10=Math.max(e8.length,l12.length);for(let i22=0;i22<s10;i22++){let n10=e8[i22]||"",d11=l12[i22]||"",o13=/^\d+$/.test(n10)?parseInt(n10,10):null,c18=/^\d+$/.test(d11)?parseInt(d11,10):null;if(o13!==null&&c18!==null){if(o13!==c18)return o13-c18}else if(n10!==d11)return n10.localeCompare(d11)}return 0}function L6(u15){return u15.replace(/[^a-zA-Z0-9\s]/g,"")}function v8(u15,r7,e8){let l12=e8!==null?e8:/\s+/,s10=u15.split(l12),i22=r7.startField-1;if(i22>=s10.length)return"";if(r7.endField===void 0){let o13=s10[i22]||"";return r7.startChar!==void 0&&(o13=o13.slice(r7.startChar-1)),r7.ignoreLeading&&(o13=o13.trimStart()),o13}let n10=Math.min(r7.endField-1,s10.length-1),d11="";for(let o13=i22;o13<=n10&&o13<s10.length;o13++){let c18=s10[o13]||"";if(o13===i22&&r7.startChar!==void 0&&(c18=c18.slice(r7.startChar-1)),o13===n10&&r7.endChar!==void 0){let t8=o13===i22&&r7.startChar!==void 0?r7.endChar-r7.startChar+1:r7.endChar;c18=c18.slice(0,t8)}o13>i22&&(d11+=e8||" "),d11+=c18}return r7.ignoreLeading&&(d11=d11.trimStart()),d11}function I8(u15,r7,e8){let l12=u15,s10=r7;if(e8.dictionaryOrder&&(l12=L6(l12),s10=L6(s10)),e8.ignoreCase&&(l12=l12.toLowerCase(),s10=s10.toLowerCase()),e8.monthSort){let i22=M7(l12),n10=M7(s10);return i22-n10}if(e8.humanNumeric){let i22=x12(l12),n10=x12(s10);return i22-n10}if(e8.versionSort)return q5(l12,s10);if(e8.numeric){let i22=parseFloat(l12)||0,n10=parseFloat(s10)||0;return i22-n10}return l12.localeCompare(s10)}function B7(u15){let{keys:r7,fieldDelimiter:e8,numeric:l12,ignoreCase:s10,reverse:i22,humanNumeric:n10,versionSort:d11,dictionaryOrder:o13,monthSort:c18,ignoreLeadingBlanks:t8,stable:a14}=u15;return(f15,C18)=>{let g13=f15,b23=C18;if(t8&&(g13=g13.trimStart(),b23=b23.trimStart()),r7.length===0){let h18=I8(g13,b23,{numeric:l12,ignoreCase:s10,humanNumeric:n10,versionSort:d11,dictionaryOrder:o13,monthSort:c18});if(h18!==0)return i22?-h18:h18;if(!a14){let p16=f15.localeCompare(C18);return i22?-p16:p16}return 0}for(let m16 of r7){let h18=v8(g13,m16,e8),p16=v8(b23,m16,e8);m16.ignoreLeading&&(h18=h18.trimStart(),p16=p16.trimStart());let V10={numeric:m16.numeric??l12,ignoreCase:m16.ignoreCase??s10,humanNumeric:m16.humanNumeric??n10,versionSort:m16.versionSort??d11,dictionaryOrder:m16.dictionaryOrder??o13,monthSort:m16.monthSort??c18},A13=m16.reverse??i22,S15=I8(h18,p16,V10);if(S15!==0)return A13?-S15:S15}if(!a14){let m16=f15.localeCompare(C18);return i22?-m16:m16}return 0}}function E10(u15,r7){if(r7.keys.length===0){if(r7.ignoreCase){let s10=new Set;return u15.filter(i22=>{let n10=i22.toLowerCase();return s10.has(n10)?!1:(s10.add(n10),!0)})}return[...new Set(u15)]}let e8=r7.keys[0],l12=new Set;return u15.filter(s10=>{let i22=v8(s10,e8,r7.fieldDelimiter);return(e8.ignoreCase??r7.ignoreCase)&&(i22=i22.toLowerCase()),l12.has(i22)?!1:(l12.add(i22),!0)})}function y7(u15){let r7={startField:1},e8="",l12=u15,s10=l12.match(/([bdfhMnrV]+)$/);s10&&(e8=s10[1],l12=l12.slice(0,-e8.length)),e8.includes("n")&&(r7.numeric=!0),e8.includes("r")&&(r7.reverse=!0),e8.includes("f")&&(r7.ignoreCase=!0),e8.includes("b")&&(r7.ignoreLeading=!0),e8.includes("h")&&(r7.humanNumeric=!0),e8.includes("V")&&(r7.versionSort=!0),e8.includes("d")&&(r7.dictionaryOrder=!0),e8.includes("M")&&(r7.monthSort=!0);let i22=l12.split(",");if(i22.length===0||i22[0]==="")return null;let n10=i22[0].split("."),d11=parseInt(n10[0],10);if(Number.isNaN(d11)||d11<1)return null;if(r7.startField=d11,n10.length>1&&n10[1]){let o13=parseInt(n10[1],10);!Number.isNaN(o13)&&o13>=1&&(r7.startChar=o13)}if(i22.length>1&&i22[1]){let o13=i22[1],c18=o13.match(/([bdfhMnrV]+)$/);if(c18){let a14=c18[1];a14.includes("n")&&(r7.numeric=!0),a14.includes("r")&&(r7.reverse=!0),a14.includes("f")&&(r7.ignoreCase=!0),a14.includes("b")&&(r7.ignoreLeading=!0),a14.includes("h")&&(r7.humanNumeric=!0),a14.includes("V")&&(r7.versionSort=!0),a14.includes("d")&&(r7.dictionaryOrder=!0),a14.includes("M")&&(r7.monthSort=!0),o13=o13.slice(0,-a14.length)}let t8=o13.split(".");if(t8[0]){let a14=parseInt(t8[0],10);if(!Number.isNaN(a14)&&a14>=1&&(r7.endField=a14),t8.length>1&&t8[1]){let f15=parseInt(t8[1],10);!Number.isNaN(f15)&&f15>=1&&(r7.endChar=f15)}}}return r7}var require79,P8,D9,H11,R6,Y5,init_chunk_6R4OQQWP=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-6R4OQQWP.js"(){init_chunk_CHHWTPDH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();require79=createRequire78(import.meta.url),P8=new Map([["",1],["k",1024],["m",1048576],["g",1073741824],["t",1099511627776],["p",0x4000000000000],["e",1152921504606847e3]]),D9=new Map([["jan",1],["feb",2],["mar",3],["apr",4],["may",5],["jun",6],["jul",7],["aug",8],["sep",9],["oct",10],["nov",11],["dec",12]]);H11={name:"sort",summary:"sort lines of text files",usage:"sort [OPTION]... [FILE]...",options:["-b, --ignore-leading-blanks ignore leading blanks","-d, --dictionary-order consider only blanks and alphanumeric characters","-f, --ignore-case fold lower case to upper case characters","-h, --human-numeric-sort compare human readable numbers (e.g., 2K 1G)","-M, --month-sort compare (unknown) < 'JAN' < ... < 'DEC'","-n, --numeric-sort compare according to string numerical value","-r, --reverse reverse the result of comparisons","-V, --version-sort natural sort of (version) numbers within text","-c, --check check for sorted input; do not sort","-o, --output=FILE write result to FILE instead of stdout","-s, --stable stabilize sort by disabling last-resort comparison","-u, --unique output only unique lines","-k, --key=KEYDEF sort via a key; KEYDEF gives location and type","-t, --field-separator=SEP use SEP as field separator"," --help display this help and exit"],description:`KEYDEF is F[.C][OPTS][,F[.C][OPTS]]
367
+ `,exitCode:p16}}}};Ni={name:"awk",flags:[{flag:"-F",type:"value",valueHint:"delimiter"},{flag:"-v",type:"value",valueHint:"string"}],stdinType:"text",needsArgs:!0}}});var awk2_V7KYQWCD_exports={};__export(awk2_V7KYQWCD_exports,{awkCommand2:()=>mi,flagsForFuzzing:()=>Ni});import{createRequire as createRequire77}from"node:module";var require78,init_awk2_V7KYQWCD=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/awk2-V7KYQWCD.js"(){init_chunk_4IMUNIUJ();init_chunk_DLL7UR66();init_chunk_CHWP6GRK();init_chunk_7GA3QWJJ();init_chunk_U7UNEMLJ();init_chunk_CBM6J4AL();init_chunk_6D3WD6YU();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require78=createRequire77(import.meta.url)}});import{createRequire as createRequire78}from"node:module";function x12(u15){let r7=u15.trim(),e8=r7.match(/^([+-]?\d*\.?\d+)\s*([kmgtpeKMGTPE])?[iI]?[bB]?$/);if(!e8){let n10=parseFloat(r7);return Number.isNaN(n10)?0:n10}let l12=parseFloat(e8[1]),s10=(e8[2]||"").toLowerCase(),i22=P8.get(s10)??1;return l12*i22}function M7(u15){let r7=u15.trim().toLowerCase().slice(0,3);return D9.get(r7)??0}function q5(u15,r7){let e8=u15.split(/(\d+)/),l12=r7.split(/(\d+)/),s10=Math.max(e8.length,l12.length);for(let i22=0;i22<s10;i22++){let n10=e8[i22]||"",d11=l12[i22]||"",o13=/^\d+$/.test(n10)?parseInt(n10,10):null,c18=/^\d+$/.test(d11)?parseInt(d11,10):null;if(o13!==null&&c18!==null){if(o13!==c18)return o13-c18}else if(n10!==d11)return n10.localeCompare(d11)}return 0}function L6(u15){return u15.replace(/[^a-zA-Z0-9\s]/g,"")}function v8(u15,r7,e8){let l12=e8!==null?e8:/\s+/,s10=u15.split(l12),i22=r7.startField-1;if(i22>=s10.length)return"";if(r7.endField===void 0){let o13=s10[i22]||"";return r7.startChar!==void 0&&(o13=o13.slice(r7.startChar-1)),r7.ignoreLeading&&(o13=o13.trimStart()),o13}let n10=Math.min(r7.endField-1,s10.length-1),d11="";for(let o13=i22;o13<=n10&&o13<s10.length;o13++){let c18=s10[o13]||"";if(o13===i22&&r7.startChar!==void 0&&(c18=c18.slice(r7.startChar-1)),o13===n10&&r7.endChar!==void 0){let t8=o13===i22&&r7.startChar!==void 0?r7.endChar-r7.startChar+1:r7.endChar;c18=c18.slice(0,t8)}o13>i22&&(d11+=e8||" "),d11+=c18}return r7.ignoreLeading&&(d11=d11.trimStart()),d11}function I8(u15,r7,e8){let l12=u15,s10=r7;if(e8.dictionaryOrder&&(l12=L6(l12),s10=L6(s10)),e8.ignoreCase&&(l12=l12.toLowerCase(),s10=s10.toLowerCase()),e8.monthSort){let i22=M7(l12),n10=M7(s10);return i22-n10}if(e8.humanNumeric){let i22=x12(l12),n10=x12(s10);return i22-n10}if(e8.versionSort)return q5(l12,s10);if(e8.numeric){let i22=parseFloat(l12)||0,n10=parseFloat(s10)||0;return i22-n10}return l12.localeCompare(s10)}function B7(u15){let{keys:r7,fieldDelimiter:e8,numeric:l12,ignoreCase:s10,reverse:i22,humanNumeric:n10,versionSort:d11,dictionaryOrder:o13,monthSort:c18,ignoreLeadingBlanks:t8,stable:a14}=u15;return(f15,C18)=>{let g13=f15,b23=C18;if(t8&&(g13=g13.trimStart(),b23=b23.trimStart()),r7.length===0){let h18=I8(g13,b23,{numeric:l12,ignoreCase:s10,humanNumeric:n10,versionSort:d11,dictionaryOrder:o13,monthSort:c18});if(h18!==0)return i22?-h18:h18;if(!a14){let p16=f15.localeCompare(C18);return i22?-p16:p16}return 0}for(let m16 of r7){let h18=v8(g13,m16,e8),p16=v8(b23,m16,e8);m16.ignoreLeading&&(h18=h18.trimStart(),p16=p16.trimStart());let V10={numeric:m16.numeric??l12,ignoreCase:m16.ignoreCase??s10,humanNumeric:m16.humanNumeric??n10,versionSort:m16.versionSort??d11,dictionaryOrder:m16.dictionaryOrder??o13,monthSort:m16.monthSort??c18},A13=m16.reverse??i22,S15=I8(h18,p16,V10);if(S15!==0)return A13?-S15:S15}if(!a14){let m16=f15.localeCompare(C18);return i22?-m16:m16}return 0}}function E10(u15,r7){if(r7.keys.length===0){if(r7.ignoreCase){let s10=new Set;return u15.filter(i22=>{let n10=i22.toLowerCase();return s10.has(n10)?!1:(s10.add(n10),!0)})}return[...new Set(u15)]}let e8=r7.keys[0],l12=new Set;return u15.filter(s10=>{let i22=v8(s10,e8,r7.fieldDelimiter);return(e8.ignoreCase??r7.ignoreCase)&&(i22=i22.toLowerCase()),l12.has(i22)?!1:(l12.add(i22),!0)})}function y7(u15){let r7={startField:1},e8="",l12=u15,s10=l12.match(/([bdfhMnrV]+)$/);s10&&(e8=s10[1],l12=l12.slice(0,-e8.length)),e8.includes("n")&&(r7.numeric=!0),e8.includes("r")&&(r7.reverse=!0),e8.includes("f")&&(r7.ignoreCase=!0),e8.includes("b")&&(r7.ignoreLeading=!0),e8.includes("h")&&(r7.humanNumeric=!0),e8.includes("V")&&(r7.versionSort=!0),e8.includes("d")&&(r7.dictionaryOrder=!0),e8.includes("M")&&(r7.monthSort=!0);let i22=l12.split(",");if(i22.length===0||i22[0]==="")return null;let n10=i22[0].split("."),d11=parseInt(n10[0],10);if(Number.isNaN(d11)||d11<1)return null;if(r7.startField=d11,n10.length>1&&n10[1]){let o13=parseInt(n10[1],10);!Number.isNaN(o13)&&o13>=1&&(r7.startChar=o13)}if(i22.length>1&&i22[1]){let o13=i22[1],c18=o13.match(/([bdfhMnrV]+)$/);if(c18){let a14=c18[1];a14.includes("n")&&(r7.numeric=!0),a14.includes("r")&&(r7.reverse=!0),a14.includes("f")&&(r7.ignoreCase=!0),a14.includes("b")&&(r7.ignoreLeading=!0),a14.includes("h")&&(r7.humanNumeric=!0),a14.includes("V")&&(r7.versionSort=!0),a14.includes("d")&&(r7.dictionaryOrder=!0),a14.includes("M")&&(r7.monthSort=!0),o13=o13.slice(0,-a14.length)}let t8=o13.split(".");if(t8[0]){let a14=parseInt(t8[0],10);if(!Number.isNaN(a14)&&a14>=1&&(r7.endField=a14),t8.length>1&&t8[1]){let f15=parseInt(t8[1],10);!Number.isNaN(f15)&&f15>=1&&(r7.endChar=f15)}}}return r7}var require79,P8,D9,H11,R6,Y5,init_chunk_6R4OQQWP=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-6R4OQQWP.js"(){init_chunk_CHHWTPDH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();require79=createRequire78(import.meta.url),P8=new Map([["",1],["k",1024],["m",1048576],["g",1073741824],["t",1099511627776],["p",0x4000000000000],["e",1152921504606847e3]]),D9=new Map([["jan",1],["feb",2],["mar",3],["apr",4],["may",5],["jun",6],["jul",7],["aug",8],["sep",9],["oct",10],["nov",11],["dec",12]]);H11={name:"sort",summary:"sort lines of text files",usage:"sort [OPTION]... [FILE]...",options:["-b, --ignore-leading-blanks ignore leading blanks","-d, --dictionary-order consider only blanks and alphanumeric characters","-f, --ignore-case fold lower case to upper case characters","-h, --human-numeric-sort compare human readable numbers (e.g., 2K 1G)","-M, --month-sort compare (unknown) < 'JAN' < ... < 'DEC'","-n, --numeric-sort compare according to string numerical value","-r, --reverse reverse the result of comparisons","-V, --version-sort natural sort of (version) numbers within text","-c, --check check for sorted input; do not sort","-o, --output=FILE write result to FILE instead of stdout","-s, --stable stabilize sort by disabling last-resort comparison","-u, --unique output only unique lines","-k, --key=KEYDEF sort via a key; KEYDEF gives location and type","-t, --field-separator=SEP use SEP as field separator"," --help display this help and exit"],description:`KEYDEF is F[.C][OPTS][,F[.C][OPTS]]
368
368
  F is a field number (1-indexed)
369
369
  C is a character position within the field (1-indexed)
370
370
  OPTS can be: b d f h M n r V (per-key modifiers)
@@ -378,10 +378,10 @@ Examples:
378
378
  `);n10.length>0&&n10[n10.length-1]===""&&n10.pop();let d11=B7(e8);if(e8.checkOnly){let c18=l12.length>0?l12[0]:"-";for(let t8=1;t8<n10.length;t8++)if(d11(n10[t8-1],n10[t8])>0)return{stdout:"",stderr:`sort: ${c18}:${t8+1}: disorder: ${n10[t8]}
379
379
  `,exitCode:1};return{stdout:"",stderr:"",exitCode:0}}n10.sort(d11),e8.unique&&(n10=E10(n10,e8));let o13=n10.length>0?`${n10.join(`
380
380
  `)}
381
- `:"";if(e8.outputFile){let c18=r7.fs.resolvePath(r7.cwd,e8.outputFile);return await r7.fs.writeFile(c18,o13),{stdout:"",stderr:"",exitCode:0}}return{stdout:o13,stderr:"",exitCode:0}}},Y5={name:"sort",flags:[{flag:"-r",type:"boolean"},{flag:"-n",type:"boolean"},{flag:"-u",type:"boolean"},{flag:"-f",type:"boolean"},{flag:"-h",type:"boolean"},{flag:"-V",type:"boolean"},{flag:"-d",type:"boolean"},{flag:"-M",type:"boolean"},{flag:"-b",type:"boolean"},{flag:"-s",type:"boolean"},{flag:"-c",type:"boolean"},{flag:"-k",type:"value",valueHint:"string"},{flag:"-t",type:"value",valueHint:"delimiter"},{flag:"-o",type:"value",valueHint:"path"}],stdinType:"text",needsFiles:!0}}});var sort_PV2NEQHF_exports={};__export(sort_PV2NEQHF_exports,{flagsForFuzzing:()=>Y5,sortCommand:()=>R6});import{createRequire as createRequire79}from"node:module";var require80,init_sort_PV2NEQHF=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/sort-PV2NEQHF.js"(){init_chunk_6R4OQQWP();init_chunk_CHHWTPDH();init_chunk_STHBFACM();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require80=createRequire79(import.meta.url)}});import{createRequire as createRequire80}from"node:module";var require81,T7,w6,$10,k8,init_chunk_B3NGH6KE=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-B3NGH6KE.js"(){init_chunk_CHHWTPDH();init_chunk_GN6CQ3J4();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();require81=createRequire80(import.meta.url),T7={name:"uniq",summary:"report or omit repeated lines",usage:"uniq [OPTION]... [INPUT [OUTPUT]]",options:["-c, --count prefix lines by the number of occurrences","-d, --repeated only print duplicate lines","-i, --ignore-case ignore case when comparing","-u, --unique only print unique lines"," --help display this help and exit"]},w6={count:{short:"c",long:"count",type:"boolean"},duplicatesOnly:{short:"d",long:"repeated",type:"boolean"},uniqueOnly:{short:"u",long:"unique",type:"boolean"},ignoreCase:{short:"i",long:"ignore-case",type:"boolean"}},$10={name:"uniq",async execute(p16,h18){if(o5(p16))return s5(T7);let o13=x5("uniq",p16,w6);if(!o13.ok)return o13.error;let{count:q11,duplicatesOnly:b23,uniqueOnly:C18,ignoreCase:a14}=o13.result.flags,x23=o13.result.positional,r7=await F4(h18,x23,{cmdName:"uniq"});if(!r7.ok)return r7.error;let t8=(a14?a2(r7.content):r7.content).split(`
381
+ `:"";if(e8.outputFile){let c18=r7.fs.resolvePath(r7.cwd,e8.outputFile);return await r7.fs.writeFile(c18,o13),{stdout:"",stderr:"",exitCode:0}}return{stdout:o13,stderr:"",exitCode:0}}},Y5={name:"sort",flags:[{flag:"-r",type:"boolean"},{flag:"-n",type:"boolean"},{flag:"-u",type:"boolean"},{flag:"-f",type:"boolean"},{flag:"-h",type:"boolean"},{flag:"-V",type:"boolean"},{flag:"-d",type:"boolean"},{flag:"-M",type:"boolean"},{flag:"-b",type:"boolean"},{flag:"-s",type:"boolean"},{flag:"-c",type:"boolean"},{flag:"-k",type:"value",valueHint:"string"},{flag:"-t",type:"value",valueHint:"delimiter"},{flag:"-o",type:"value",valueHint:"path"}],stdinType:"text",needsFiles:!0}}});var sort_PV2NEQHF_exports={};__export(sort_PV2NEQHF_exports,{flagsForFuzzing:()=>Y5,sortCommand:()=>R6});import{createRequire as createRequire79}from"node:module";var require80,init_sort_PV2NEQHF=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/sort-PV2NEQHF.js"(){init_chunk_6R4OQQWP();init_chunk_CHHWTPDH();init_chunk_STHBFACM();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require80=createRequire79(import.meta.url)}});import{createRequire as createRequire80}from"node:module";var require81,T7,w6,$10,k8,init_chunk_B3NGH6KE=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-B3NGH6KE.js"(){init_chunk_CHHWTPDH();init_chunk_GN6CQ3J4();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();require81=createRequire80(import.meta.url),T7={name:"uniq",summary:"report or omit repeated lines",usage:"uniq [OPTION]... [INPUT [OUTPUT]]",options:["-c, --count prefix lines by the number of occurrences","-d, --repeated only print duplicate lines","-i, --ignore-case ignore case when comparing","-u, --unique only print unique lines"," --help display this help and exit"]},w6={count:{short:"c",long:"count",type:"boolean"},duplicatesOnly:{short:"d",long:"repeated",type:"boolean"},uniqueOnly:{short:"u",long:"unique",type:"boolean"},ignoreCase:{short:"i",long:"ignore-case",type:"boolean"}},$10={name:"uniq",async execute(p16,h18){if(o5(p16))return s5(T7);let o13=x5("uniq",p16,w6);if(!o13.ok)return o13.error;let{count:q11,duplicatesOnly:b23,uniqueOnly:C18,ignoreCase:a14}=o13.result.flags,x23=o13.result.positional,r7=await F4(h18,x23,{cmdName:"uniq"});if(!r7.ok)return r7.error;let t8=(a14?a2(r7.content):r7.content).split(`
382
382
  `);if(t8.length>0&&t8[t8.length-1]===""&&t8.pop(),t8.length===0)return{stdout:"",stderr:"",exitCode:0};let n10=[],i22=t8[0],s10=1,O18=(e8,u15)=>a14?e8.toLowerCase()===u15.toLowerCase():e8===u15;for(let e8=1;e8<t8.length;e8++)O18(t8[e8],i22)?s10++:(n10.push({line:i22,count:s10}),i22=t8[e8],s10=1);n10.push({line:i22,count:s10});let c18=n10;b23?c18=n10.filter(e8=>e8.count>1):C18&&(c18=n10.filter(e8=>e8.count===1));let l12="";for(let{line:e8,count:u15}of c18)q11?l12+=`${String(u15).padStart(4)} ${e8}
383
383
  `:l12+=`${e8}
384
- `;return a14?{stdout:l12,stderr:"",exitCode:0}:{stdout:l12,stderr:"",exitCode:0,stdoutKind:"bytes",stdoutEncoding:"binary"}}},k8={name:"uniq",flags:[{flag:"-c",type:"boolean"},{flag:"-d",type:"boolean"},{flag:"-u",type:"boolean"},{flag:"-i",type:"boolean"}],stdinType:"text",needsFiles:!0}}});var uniq_OVOW532K_exports={};__export(uniq_OVOW532K_exports,{flagsForFuzzing:()=>k8,uniqCommand:()=>$10});import{createRequire as createRequire81}from"node:module";var require82,init_uniq_OVOW532K=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/uniq-OVOW532K.js"(){init_chunk_B3NGH6KE();init_chunk_CHHWTPDH();init_chunk_STHBFACM();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require82=createRequire81(import.meta.url)}});import{createRequire as createRequire82}from"node:module";var require83,b14,E11,L7,init_chunk_6WGIZV3E=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-6WGIZV3E.js"(){init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();require83=createRequire82(import.meta.url),b14={name:"comm",summary:"compare two sorted files line by line",usage:"comm [OPTION]... FILE1 FILE2",options:["-1 suppress column 1 (lines unique to FILE1)","-2 suppress column 2 (lines unique to FILE2)","-3 suppress column 3 (lines that appear in both files)"," --help display this help and exit"]},E11={name:"comm",async execute(m16,a14){if(o5(m16))return s5(b14);let r7=!1,l12=!1,f15=!1,i22=[];for(let e8 of m16)if(e8==="-1")r7=!0;else if(e8==="-2")l12=!0;else if(e8==="-3")f15=!0;else if(e8==="-12"||e8==="-21")r7=!0,l12=!0;else if(e8==="-13"||e8==="-31")r7=!0,f15=!0;else if(e8==="-23"||e8==="-32")l12=!0,f15=!0;else if(e8==="-123"||e8==="-132"||e8==="-213"||e8==="-231"||e8==="-312"||e8==="-321")r7=!0,l12=!0,f15=!0;else{if(e8.startsWith("-")&&e8!=="-")return r5("comm",e8);i22.push(e8)}if(i22.length!==2)return{stdout:"",stderr:`comm: missing operand
384
+ `;return a14?{stdout:l12,stderr:"",exitCode:0}:{stdout:l12,stderr:"",exitCode:0,stdoutKind:"bytes",stdoutEncoding:"binary"}}},k8={name:"uniq",flags:[{flag:"-c",type:"boolean"},{flag:"-d",type:"boolean"},{flag:"-u",type:"boolean"},{flag:"-i",type:"boolean"}],stdinType:"text",needsFiles:!0}}});var uniq_OVOW532K_exports={};__export(uniq_OVOW532K_exports,{flagsForFuzzing:()=>k8,uniqCommand:()=>$10});import{createRequire as createRequire81}from"node:module";var require82,init_uniq_OVOW532K=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/uniq-OVOW532K.js"(){init_chunk_B3NGH6KE();init_chunk_CHHWTPDH();init_chunk_STHBFACM();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require82=createRequire81(import.meta.url)}});import{createRequire as createRequire82}from"node:module";var require83,b14,E11,L7,init_chunk_6WGIZV3E=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-6WGIZV3E.js"(){init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();require83=createRequire82(import.meta.url),b14={name:"comm",summary:"compare two sorted files line by line",usage:"comm [OPTION]... FILE1 FILE2",options:["-1 suppress column 1 (lines unique to FILE1)","-2 suppress column 2 (lines unique to FILE2)","-3 suppress column 3 (lines that appear in both files)"," --help display this help and exit"]},E11={name:"comm",async execute(m16,a14){if(o5(m16))return s5(b14);let r7=!1,l12=!1,f15=!1,i22=[];for(let e8 of m16)if(e8==="-1")r7=!0;else if(e8==="-2")l12=!0;else if(e8==="-3")f15=!0;else if(e8==="-12"||e8==="-21")r7=!0,l12=!0;else if(e8==="-13"||e8==="-31")r7=!0,f15=!0;else if(e8==="-23"||e8==="-32")l12=!0,f15=!0;else if(e8==="-123"||e8==="-132"||e8==="-213"||e8==="-231"||e8==="-312"||e8==="-321")r7=!0,l12=!0,f15=!0;else{if(e8.startsWith("-")&&e8!=="-")return r5("comm",e8);i22.push(e8)}if(i22.length!==2)return{stdout:"",stderr:`comm: missing operand
385
385
  Try 'comm --help' for more information.
386
386
  `,exitCode:1};let p16=async e8=>{if(e8==="-")return a2(a14.stdin);try{let x23=a14.fs.resolvePath(a14.cwd,e8);return await a14.fs.readFile(x23)}catch{return null}},c18=await p16(i22[0]);if(c18===null)return{stdout:"",stderr:`comm: ${i22[0]}: No such file or directory
387
387
  `,exitCode:1};let d11=await p16(i22[1]);if(d11===null)return{stdout:"",stderr:`comm: ${i22[1]}: No such file or directory
@@ -392,18 +392,18 @@ Try 'comm --help' for more information.
392
392
  `),n10++):t8[n10]<s10[o13]?(r7||(u15+=`${t8[n10]}
393
393
  `),n10++):t8[n10]>s10[o13]?(l12||(u15+=`${h18}${s10[o13]}
394
394
  `),o13++):(f15||(u15+=`${w15}${t8[n10]}
395
- `),n10++,o13++);return{stdout:u15,stderr:"",exitCode:0}}},L7={name:"comm",flags:[{flag:"-1",type:"boolean"},{flag:"-2",type:"boolean"},{flag:"-3",type:"boolean"}],needsArgs:!0,minArgs:2}}});var comm_DTWKU2MC_exports={};__export(comm_DTWKU2MC_exports,{commCommand:()=>E11,flagsForFuzzing:()=>L7});import{createRequire as createRequire83}from"node:module";var require84,init_comm_DTWKU2MC=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/comm-DTWKU2MC.js"(){init_chunk_6WGIZV3E();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require84=createRequire83(import.meta.url)}});import{createRequire as createRequire84}from"node:module";function M8(r7,o13){let l12=[],a14=r7.split(",");if(a14.length>o13)throw new f2(`cut: range count limit exceeded (${o13})`,"array_elements");for(let s10 of a14)if(s10.includes("-")){let[i22,u15]=s10.split("-"),t8=i22?Number(i22):1,f15=u15?Number(u15):null;if(!Number.isSafeInteger(t8)||t8<1||f15!==null&&(!Number.isSafeInteger(f15)||f15<t8))throw new f2("cut: invalid range","array_elements");l12.push({start:t8,end:f15})}else{let i22=Number(s10);if(!Number.isSafeInteger(i22)||i22<1)throw new f2("cut: invalid range","array_elements");l12.push({start:i22,end:i22})}return l12}function B8(r7,o13){let l12=[],a14=new Set;for(let s10 of o13){let i22=s10.start-1,u15=s10.end===null?r7.length:s10.end;for(let t8=i22;t8<u15&&t8<r7.length;t8++)t8>=0&&!a14.has(t8)&&(a14.add(t8),l12.push(r7[t8]))}return l12}var require85,k9,R7,$11,init_chunk_DPZVOEUP=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-DPZVOEUP.js"(){init_chunk_CHHWTPDH();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();require85=createRequire84(import.meta.url),k9={name:"cut",summary:"remove sections from each line of files",usage:"cut [OPTION]... [FILE]...",options:["-c LIST select only these characters","-d DELIM use DELIM instead of TAB for field delimiter","-f LIST select only these fields","-s, --only-delimited do not print lines without delimiters"," --help display this help and exit"]};R7={name:"cut",async execute(r7,o13){if(o5(r7))return s5(k9);let l12=" ",a14=null,s10=null,i22=!1,u15=[];for(let n10=0;n10<r7.length;n10++){let e8=r7[n10];if(e8==="-d")l12=r7[++n10]||" ";else if(e8.startsWith("-d"))l12=e8.slice(2);else if(e8==="-f")a14=r7[++n10];else if(e8.startsWith("-f"))a14=e8.slice(2);else if(e8==="-c")s10=r7[++n10];else if(e8.startsWith("-c"))s10=e8.slice(2);else if(e8==="-s"||e8==="--only-delimited")i22=!0;else{if(e8.startsWith("--"))return r5("cut",e8);if(e8.startsWith("-")){let d11=!1;for(let c18 of e8.slice(1))if(c18==="s")i22=!0;else if(!"dfc".includes(c18)){d11=!0;break}if(d11)return r5("cut",e8)}else u15.push(e8)}}if(!a14&&!s10)return{stdout:"",stderr:`cut: you must specify a list of bytes, characters, or fields
395
+ `),n10++,o13++);return{stdout:u15,stderr:"",exitCode:0}}},L7={name:"comm",flags:[{flag:"-1",type:"boolean"},{flag:"-2",type:"boolean"},{flag:"-3",type:"boolean"}],needsArgs:!0,minArgs:2}}});var comm_DTWKU2MC_exports={};__export(comm_DTWKU2MC_exports,{commCommand:()=>E11,flagsForFuzzing:()=>L7});import{createRequire as createRequire83}from"node:module";var require84,init_comm_DTWKU2MC=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/comm-DTWKU2MC.js"(){init_chunk_6WGIZV3E();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require84=createRequire83(import.meta.url)}});import{createRequire as createRequire84}from"node:module";function M8(r7,o13){let l12=[],a14=r7.split(",");if(a14.length>o13)throw new f2(`cut: range count limit exceeded (${o13})`,"array_elements");for(let s10 of a14)if(s10.includes("-")){let[i22,u15]=s10.split("-"),t8=i22?Number(i22):1,f15=u15?Number(u15):null;if(!Number.isSafeInteger(t8)||t8<1||f15!==null&&(!Number.isSafeInteger(f15)||f15<t8))throw new f2("cut: invalid range","array_elements");l12.push({start:t8,end:f15})}else{let i22=Number(s10);if(!Number.isSafeInteger(i22)||i22<1)throw new f2("cut: invalid range","array_elements");l12.push({start:i22,end:i22})}return l12}function B8(r7,o13){let l12=[],a14=new Set;for(let s10 of o13){let i22=s10.start-1,u15=s10.end===null?r7.length:s10.end;for(let t8=i22;t8<u15&&t8<r7.length;t8++)t8>=0&&!a14.has(t8)&&(a14.add(t8),l12.push(r7[t8]))}return l12}var require85,k9,R7,$11,init_chunk_DPZVOEUP=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-DPZVOEUP.js"(){init_chunk_CHHWTPDH();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();require85=createRequire84(import.meta.url),k9={name:"cut",summary:"remove sections from each line of files",usage:"cut [OPTION]... [FILE]...",options:["-c LIST select only these characters","-d DELIM use DELIM instead of TAB for field delimiter","-f LIST select only these fields","-s, --only-delimited do not print lines without delimiters"," --help display this help and exit"]};R7={name:"cut",async execute(r7,o13){if(o5(r7))return s5(k9);let l12=" ",a14=null,s10=null,i22=!1,u15=[];for(let n10=0;n10<r7.length;n10++){let e8=r7[n10];if(e8==="-d")l12=r7[++n10]||" ";else if(e8.startsWith("-d"))l12=e8.slice(2);else if(e8==="-f")a14=r7[++n10];else if(e8.startsWith("-f"))a14=e8.slice(2);else if(e8==="-c")s10=r7[++n10];else if(e8.startsWith("-c"))s10=e8.slice(2);else if(e8==="-s"||e8==="--only-delimited")i22=!0;else{if(e8.startsWith("--"))return r5("cut",e8);if(e8.startsWith("-")){let d11=!1;for(let c18 of e8.slice(1))if(c18==="s")i22=!0;else if(!"dfc".includes(c18)){d11=!0;break}if(d11)return r5("cut",e8)}else u15.push(e8)}}if(!a14&&!s10)return{stdout:"",stderr:`cut: you must specify a list of bytes, characters, or fields
396
396
  `,exitCode:1};let t8=await F4(o13,u15,{cmdName:"cut"});if(!t8.ok)return t8.error;let m16=(s10?a2(t8.content):t8.content).split(`
397
397
  `);m16.length>0&&m16[m16.length-1]===""&&m16.pop();let x23=M8(a14||s10||"1",o13.limits.maxArrayElements),g13=new u5(Math.min(o13.limits.maxOutputSize,o13.limits.maxStringLength),"cut"),S15=0,I22=n10=>{if(!Number.isSafeInteger(n10)||n10<0||n10>o13.limits.maxLoopIterations-S15)throw new f2(`cut: range expansion limit exceeded (${o13.limits.maxLoopIterations})`,"iterations");S15+=n10,o13.executionScope?.consumeWork(n10,"cut range expansion")};for(let n10 of m16)if(s10){let e8=Array.from(n10),d11=[];for(let c18 of x23){let y14=c18.start-1,w15=c18.end===null?e8.length:c18.end;I22(Math.max(0,Math.min(w15,e8.length)-y14));for(let p16=y14;p16<w15&&p16<e8.length;p16++)p16>=0&&d11.push(e8[p16])}g13.append(`${d11.join("")}
398
398
  `)}else{if(i22&&!n10.includes(l12))continue;let e8=n10.split(l12);for(let c18 of x23){let y14=c18.start-1,w15=c18.end===null?e8.length:c18.end;I22(Math.max(0,Math.min(w15,e8.length)-y14))}let d11=B8(e8,x23);g13.append(`${d11.join(l12)}
399
- `)}return s10?{stdout:g13.build(),stderr:"",exitCode:0}:{stdout:g13.build(),stderr:"",exitCode:0,stdoutKind:"bytes",stdoutEncoding:"binary"}}},$11={name:"cut",flags:[{flag:"-d",type:"value",valueHint:"delimiter"},{flag:"-f",type:"value",valueHint:"string"},{flag:"-c",type:"value",valueHint:"string"},{flag:"-s",type:"boolean"}],stdinType:"text",needsFiles:!0}}});var cut_IRSHL3BB_exports={};__export(cut_IRSHL3BB_exports,{cutCommand:()=>R7,flagsForFuzzing:()=>$11});import{createRequire as createRequire85}from"node:module";var require86,init_cut_IRSHL3BB=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/cut-IRSHL3BB.js"(){init_chunk_DPZVOEUP();init_chunk_CHHWTPDH();init_chunk_DIWMSSQY();init_chunk_STHBFACM();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require86=createRequire85(import.meta.url)}});import{createRequire as createRequire86}from"node:module";function b15(n10,e8){if(n10.length===0)return"";if(n10.length===1)return n10[0];if(e8.length===0)return n10.join("");let l12=n10[0];for(let r7=1;r7<n10.length;r7++){let h18=(r7-1)%e8.length;l12+=e8[h18]+n10[r7]}return l12}var require87,$12,C6,M9,O11,init_chunk_UK2K3DHN=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-UK2K3DHN.js"(){init_chunk_U7UNEMLJ();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();require87=createRequire86(import.meta.url),$12={name:"paste",summary:"merge lines of files",usage:"paste [OPTION]... [FILE]...",description:["Write lines consisting of the sequentially corresponding lines from","each FILE, separated by TABs, to standard output.","","With no FILE, or when FILE is -, read standard input."],options:["-d, --delimiters=LIST reuse characters from LIST instead of TABs","-s, --serial paste one file at a time instead of in parallel"," --help display this help and exit"],examples:["paste file1 file2 Merge file1 and file2 side by side","paste -d, file1 file2 Use comma as delimiter","paste -s file1 Paste all lines of file1 on one line","paste - - < file Paste pairs of lines from file"]},C6={delimiter:{short:"d",long:"delimiters",type:"string",default:" "},serial:{short:"s",long:"serial",type:"boolean"}},M9={name:"paste",async execute(n10,e8){if(o5(n10))return s5($12);let l12=x5("paste",n10,C6);if(!l12.ok)return l12.error;let r7=l12.result.flags.delimiter,h18=l12.result.flags.serial,p16=l12.result.positional;if(p16.length>e8.limits.maxArrayElements)throw new f2(`paste: file operand limit exceeded (${e8.limits.maxArrayElements})`,"array_elements");if(x(r7)>e8.limits.maxStringLength)throw new f2(`paste: delimiter size limit exceeded (${e8.limits.maxStringLength} bytes)`,"string_length");if(p16.length===0)return{stdout:"",stderr:`usage: paste [-s] [-d delimiters] file ...
399
+ `)}return s10?{stdout:g13.build(),stderr:"",exitCode:0}:{stdout:g13.build(),stderr:"",exitCode:0,stdoutKind:"bytes",stdoutEncoding:"binary"}}},$11={name:"cut",flags:[{flag:"-d",type:"value",valueHint:"delimiter"},{flag:"-f",type:"value",valueHint:"string"},{flag:"-c",type:"value",valueHint:"string"},{flag:"-s",type:"boolean"}],stdinType:"text",needsFiles:!0}}});var cut_IRSHL3BB_exports={};__export(cut_IRSHL3BB_exports,{cutCommand:()=>R7,flagsForFuzzing:()=>$11});import{createRequire as createRequire85}from"node:module";var require86,init_cut_IRSHL3BB=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/cut-IRSHL3BB.js"(){init_chunk_DPZVOEUP();init_chunk_CHHWTPDH();init_chunk_DIWMSSQY();init_chunk_STHBFACM();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require86=createRequire85(import.meta.url)}});import{createRequire as createRequire86}from"node:module";function b15(n10,e8){if(n10.length===0)return"";if(n10.length===1)return n10[0];if(e8.length===0)return n10.join("");let l12=n10[0];for(let r7=1;r7<n10.length;r7++){let h18=(r7-1)%e8.length;l12+=e8[h18]+n10[r7]}return l12}var require87,$12,C6,M9,O11,init_chunk_UK2K3DHN=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-UK2K3DHN.js"(){init_chunk_U7UNEMLJ();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();require87=createRequire86(import.meta.url),$12={name:"paste",summary:"merge lines of files",usage:"paste [OPTION]... [FILE]...",description:["Write lines consisting of the sequentially corresponding lines from","each FILE, separated by TABs, to standard output.","","With no FILE, or when FILE is -, read standard input."],options:["-d, --delimiters=LIST reuse characters from LIST instead of TABs","-s, --serial paste one file at a time instead of in parallel"," --help display this help and exit"],examples:["paste file1 file2 Merge file1 and file2 side by side","paste -d, file1 file2 Use comma as delimiter","paste -s file1 Paste all lines of file1 on one line","paste - - < file Paste pairs of lines from file"]},C6={delimiter:{short:"d",long:"delimiters",type:"string",default:" "},serial:{short:"s",long:"serial",type:"boolean"}},M9={name:"paste",async execute(n10,e8){if(o5(n10))return s5($12);let l12=x5("paste",n10,C6);if(!l12.ok)return l12.error;let r7=l12.result.flags.delimiter,h18=l12.result.flags.serial,p16=l12.result.positional;if(p16.length>e8.limits.maxArrayElements)throw new f2(`paste: file operand limit exceeded (${e8.limits.maxArrayElements})`,"array_elements");if(x(r7)>e8.limits.maxStringLength)throw new f2(`paste: delimiter size limit exceeded (${e8.limits.maxStringLength} bytes)`,"string_length");if(p16.length===0)return{stdout:"",stderr:`usage: paste [-s] [-d delimiters] file ...
400
400
  `,exitCode:1};let g13=a2(e8.stdin),o13=g13?g13.split(`
401
401
  `):[""];o13.length>0&&o13[o13.length-1]===""&&o13.pop();let A13=p16.filter(t8=>t8==="-").length,f15=[],y14=0,x23=x(g13),L21=t8=>{if(t8.length>e8.limits.maxArrayElements-y14)throw new f2(`paste: line limit exceeded (${e8.limits.maxArrayElements})`,"array_elements");y14+=t8.length,e8.executionScope?.consumeWork(t8.length,"paste lines")},w15=0;for(let t8 of p16)if(t8==="-"){let i22=[];for(let s10=w15;s10<o13.length;s10+=A13)i22.push(o13[s10]);L21(i22),f15.push(i22),w15++}else{let i22=e8.fs.resolvePath(e8.cwd,t8);try{let s10=await e8.fs.readFile(i22),d11=x(s10);if(d11>e8.limits.maxInputBytes-x23)throw new f2(`paste: aggregate input size limit exceeded (${e8.limits.maxInputBytes} bytes)`,"string_length");x23+=d11,e8.executionScope?.consumeInput(d11,"paste");let a14=s10.split(`
402
402
  `);a14.length>0&&a14[a14.length-1]===""&&a14.pop(),L21(a14),f15.push(a14)}catch(s10){return e2(s10),{stdout:"",stderr:`paste: ${t8}: No such file or directory
403
403
  `,exitCode:1}}}let c18=new u5(Math.min(e8.limits.maxOutputSize,e8.limits.maxStringLength),"paste");if(h18)for(let t8 of f15)t8&&c18.append(`${b15(t8,r7)}
404
404
  `);else{let t8=0;for(let i22 of f15)t8=Math.max(t8,i22?.length??0);for(let i22=0;i22<t8;i22++){let s10=[];for(let d11 of f15)s10.push(d11?.[i22]??"");c18.append(`${b15(s10,r7)}
405
- `)}}return{stdout:c18.build(),stderr:"",exitCode:0}}};O11={name:"paste",flags:[{flag:"-d",type:"value",valueHint:"delimiter"},{flag:"-s",type:"boolean"}],stdinType:"text",needsFiles:!0}}});var paste_U57ZU47S_exports={};__export(paste_U57ZU47S_exports,{flagsForFuzzing:()=>O11,pasteCommand:()=>M9});import{createRequire as createRequire87}from"node:module";var require88,init_paste_U57ZU47S=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/paste-U57ZU47S.js"(){init_chunk_UK2K3DHN();init_chunk_U7UNEMLJ();init_chunk_CBM6J4AL();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require88=createRequire87(import.meta.url)}});import{createRequire as createRequire88}from"node:module";function F11(o13,n10,c18,u15){let g13="",t8=0,a14=e8=>{if(e8.length>n10-g13.length)throw new f2(`tr: expanded SET exceeds string length limit (${n10})`,"string_length");g13+=e8},h18=(e8=1)=>{if(e8>c18-u15.iterations)throw new f2(`tr: SET expansion iteration limit exceeded (${c18})`,"iterations");u15.iterations+=e8};for(;t8<o13.length;){if(h18(),o13[t8]==="["&&o13[t8+1]===":"){let e8=!1;for(let[l12,d11]of $13)if(o13.slice(t8).startsWith(l12)){a14(d11),t8+=l12.length,e8=!0;break}if(e8)continue}if(o13[t8]==="\\"&&t8+1<o13.length){let e8=o13[t8+1];a14(e8==="n"?`
406
- `:e8==="t"?" ":e8==="r"?"\r":e8),t8+=2;continue}if(t8+2<o13.length&&o13[t8+1]==="-"){let e8=o13.charCodeAt(t8),l12=o13.charCodeAt(t8+2),d11=l12>=e8?l12-e8+1:0;if(h18(d11),d11>n10-g13.length)throw new f2(`tr: expanded SET exceeds string length limit (${n10})`,"string_length");for(let m16=e8;m16<=l12;m16++)g13+=String.fromCharCode(m16);t8+=3;continue}a14(o13[t8]),t8++}return g13}var require89,L8,$13,k10,v9,W3,init_chunk_7M672HB6=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-7M672HB6.js"(){init_chunk_U7UNEMLJ();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_FOCWZZDE();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();require89=createRequire88(import.meta.url),L8={name:"tr",summary:"translate or delete characters",usage:"tr [OPTION]... SET1 [SET2]",options:["-c, -C, --complement use the complement of SET1","-d, --delete delete characters in SET1","-s, --squeeze-repeats squeeze repeated characters"," --help display this help and exit"],description:`SET syntax:
405
+ `)}}return{stdout:c18.build(),stderr:"",exitCode:0}}};O11={name:"paste",flags:[{flag:"-d",type:"value",valueHint:"delimiter"},{flag:"-s",type:"boolean"}],stdinType:"text",needsFiles:!0}}});var paste_U57ZU47S_exports={};__export(paste_U57ZU47S_exports,{flagsForFuzzing:()=>O11,pasteCommand:()=>M9});import{createRequire as createRequire87}from"node:module";var require88,init_paste_U57ZU47S=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/paste-U57ZU47S.js"(){init_chunk_UK2K3DHN();init_chunk_U7UNEMLJ();init_chunk_CBM6J4AL();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require88=createRequire87(import.meta.url)}});import{createRequire as createRequire88}from"node:module";function F11(o13,n10,c18,u15){let g13="",t8=0,a14=e8=>{if(e8.length>n10-g13.length)throw new f2(`tr: expanded SET exceeds string length limit (${n10})`,"string_length");g13+=e8},h18=(e8=1)=>{if(e8>c18-u15.iterations)throw new f2(`tr: SET expansion iteration limit exceeded (${c18})`,"iterations");u15.iterations+=e8};for(;t8<o13.length;){if(h18(),o13[t8]==="["&&o13[t8+1]===":"){let e8=!1;for(let[l12,d11]of $13)if(o13.slice(t8).startsWith(l12)){a14(d11),t8+=l12.length,e8=!0;break}if(e8)continue}if(o13[t8]==="\\"&&t8+1<o13.length){let e8=o13[t8+1];a14(e8==="n"?`
406
+ `:e8==="t"?" ":e8==="r"?"\r":e8),t8+=2;continue}if(t8+2<o13.length&&o13[t8+1]==="-"){let e8=o13.charCodeAt(t8),l12=o13.charCodeAt(t8+2),d11=l12>=e8?l12-e8+1:0;if(h18(d11),d11>n10-g13.length)throw new f2(`tr: expanded SET exceeds string length limit (${n10})`,"string_length");for(let m16=e8;m16<=l12;m16++)g13+=String.fromCharCode(m16);t8+=3;continue}a14(o13[t8]),t8++}return g13}var require89,L8,$13,k10,v9,W3,init_chunk_7M672HB6=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-7M672HB6.js"(){init_chunk_U7UNEMLJ();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_FOCWZZDE();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();require89=createRequire88(import.meta.url),L8={name:"tr",summary:"translate or delete characters",usage:"tr [OPTION]... SET1 [SET2]",options:["-c, -C, --complement use the complement of SET1","-d, --delete delete characters in SET1","-s, --squeeze-repeats squeeze repeated characters"," --help display this help and exit"],description:`SET syntax:
407
407
  a-z character range
408
408
  [:alnum:] all letters and digits
409
409
  [:alpha:] all letters
@@ -421,16 +421,16 @@ Try 'comm --help' for more information.
421
421
  \r\f\v`],["[:upper:]","ABCDEFGHIJKLMNOPQRSTUVWXYZ"],["[:xdigit:]","0123456789ABCDEFabcdef"]]);k10={complement:{short:"c",long:"complement",type:"boolean"},complementUpper:{short:"C",type:"boolean"},delete:{short:"d",long:"delete",type:"boolean"},squeeze:{short:"s",long:"squeeze-repeats",type:"boolean"}},v9={name:"tr",async execute(o13,n10){if(o5(o13))return s5(L8);let c18=x5("tr",o13,k10);if(!c18.ok)return c18.error;let u15=c18.result.flags.complement||c18.result.flags.complementUpper,g13=c18.result.flags.delete,t8=c18.result.flags.squeeze,a14=c18.result.positional;if(a14.length<1)return{stdout:"",stderr:`tr: missing operand
422
422
  `,exitCode:1};if(!g13&&!t8&&a14.length<2)return{stdout:"",stderr:`tr: missing operand after SET1
423
423
  `,exitCode:1};let h18,e8,l12=Math.min(n10.limits.maxInputBytes,n10.limits.maxStringLength),d11=n10.limits.maxLoopIterations,m16=n10.limits.maxArrayElements,S15=Math.min(n10.limits.maxOutputSize,n10.limits.maxStringLength);try{let r7={iterations:0};h18=F11(a14[0],l12,d11,r7),e8=a14.length>1?F11(a14[1],l12,d11,r7):""}catch(r7){return e2(r7),{stdout:"",stderr:`${n5(r7.message)}
424
- `,exitCode:1}}if(n10.stdin.length>l12)throw new f2(`tr: input size limit exceeded (${l12} bytes)`,"string_length");let y14=a2(n10.stdin);if(h18.length>m16||e8.length>m16)throw new f2(`tr: array element limit exceeded (${m16})`,"array_elements");let w15=new Set(h18),I22=new Set(e8),C18=r7=>{let s10=w15.has(r7);return u15?!s10:s10},E19="",b23=0,x23=r7=>{let s10=x(r7);if(s10>S15-b23)throw new f2(`tr: output size limit exceeded (${S15} bytes)`,"output_size");E19+=r7,b23+=s10};if(g13)for(let r7 of y14)C18(r7)||x23(r7);else if(t8&&a14.length===1){let r7="";for(let s10 of y14)C18(s10)&&s10===r7||(x23(s10),r7=s10)}else{let r7="",s10=p16=>{t8&&I22.has(p16)&&p16===r7||(x23(p16),r7=p16)};if(u15){let p16=e8.length>0?e8[e8.length-1]:"";for(let i22 of y14)w15.has(i22)?s10(i22):s10(p16)}else{let p16=new Map;for(let i22=0;i22<h18.length;i22++){let O18=i22<e8.length?e8[i22]:e8[e8.length-1];p16.set(h18[i22],O18)}for(let i22 of y14)s10(p16.get(i22)??i22)}}return{stdout:E19,stderr:"",exitCode:0}}},W3={name:"tr",flags:[{flag:"-c",type:"boolean"},{flag:"-C",type:"boolean"},{flag:"-d",type:"boolean"},{flag:"-s",type:"boolean"}],stdinType:"text",needsArgs:!0}}});var tr_4NGL47UU_exports={};__export(tr_4NGL47UU_exports,{flagsForFuzzing:()=>W3,trCommand:()=>v9});import{createRequire as createRequire89}from"node:module";var require90,init_tr_4NGL47UU=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/tr-4NGL47UU.js"(){init_chunk_7M672HB6();init_chunk_U7UNEMLJ();init_chunk_CBM6J4AL();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_FOCWZZDE();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require90=createRequire89(import.meta.url)}});import{createRequire as createRequire90}from"node:module";function p7(r7){return Array.from(r7).reverse().join("")}var require91,u10,g6,y8,init_chunk_LVDUF74R=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-LVDUF74R.js"(){init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();require91=createRequire90(import.meta.url),u10={name:"rev",summary:"reverse lines characterwise",usage:"rev [file ...]",description:"Copies the specified files to standard output, reversing the order of characters in every line. If no files are specified, standard input is read.",examples:["echo 'hello' | rev # Output: olleh","rev file.txt # Reverse each line in file"]};g6={name:"rev",execute:async(r7,s10)=>{if(o5(r7))return s5(u10);let o13=[];for(let e8 of r7)if(e8==="--"){let t8=r7.indexOf(e8);o13.push(...r7.slice(t8+1));break}else{if(e8.startsWith("-")&&e8!=="-")return r5("rev",e8);o13.push(e8)}let n10="",l12=e8=>{let t8=e8.split(`
424
+ `,exitCode:1}}if(n10.stdin.length>l12)throw new f2(`tr: input size limit exceeded (${l12} bytes)`,"string_length");let y14=a2(n10.stdin);if(h18.length>m16||e8.length>m16)throw new f2(`tr: array element limit exceeded (${m16})`,"array_elements");let w15=new Set(h18),I22=new Set(e8),C18=r7=>{let s10=w15.has(r7);return u15?!s10:s10},E19="",b23=0,x23=r7=>{let s10=x(r7);if(s10>S15-b23)throw new f2(`tr: output size limit exceeded (${S15} bytes)`,"output_size");E19+=r7,b23+=s10};if(g13)for(let r7 of y14)C18(r7)||x23(r7);else if(t8&&a14.length===1){let r7="";for(let s10 of y14)C18(s10)&&s10===r7||(x23(s10),r7=s10)}else{let r7="",s10=p16=>{t8&&I22.has(p16)&&p16===r7||(x23(p16),r7=p16)};if(u15){let p16=e8.length>0?e8[e8.length-1]:"";for(let i22 of y14)w15.has(i22)?s10(i22):s10(p16)}else{let p16=new Map;for(let i22=0;i22<h18.length;i22++){let O18=i22<e8.length?e8[i22]:e8[e8.length-1];p16.set(h18[i22],O18)}for(let i22 of y14)s10(p16.get(i22)??i22)}}return{stdout:E19,stderr:"",exitCode:0}}},W3={name:"tr",flags:[{flag:"-c",type:"boolean"},{flag:"-C",type:"boolean"},{flag:"-d",type:"boolean"},{flag:"-s",type:"boolean"}],stdinType:"text",needsArgs:!0}}});var tr_4NGL47UU_exports={};__export(tr_4NGL47UU_exports,{flagsForFuzzing:()=>W3,trCommand:()=>v9});import{createRequire as createRequire89}from"node:module";var require90,init_tr_4NGL47UU=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/tr-4NGL47UU.js"(){init_chunk_7M672HB6();init_chunk_U7UNEMLJ();init_chunk_CBM6J4AL();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_FOCWZZDE();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require90=createRequire89(import.meta.url)}});import{createRequire as createRequire90}from"node:module";function p7(r7){return Array.from(r7).reverse().join("")}var require91,u10,g6,y8,init_chunk_LVDUF74R=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-LVDUF74R.js"(){init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();require91=createRequire90(import.meta.url),u10={name:"rev",summary:"reverse lines characterwise",usage:"rev [file ...]",description:"Copies the specified files to standard output, reversing the order of characters in every line. If no files are specified, standard input is read.",examples:["echo 'hello' | rev # Output: olleh","rev file.txt # Reverse each line in file"]};g6={name:"rev",execute:async(r7,s10)=>{if(o5(r7))return s5(u10);let o13=[];for(let e8 of r7)if(e8==="--"){let t8=r7.indexOf(e8);o13.push(...r7.slice(t8+1));break}else{if(e8.startsWith("-")&&e8!=="-")return r5("rev",e8);o13.push(e8)}let n10="",l12=e8=>{let t8=e8.split(`
425
425
  `),i22=e8.endsWith(`
426
426
  `)&&t8[t8.length-1]==="";return i22&&t8.pop(),t8.map(p7).join(`
427
427
  `)+(i22?`
428
428
  `:"")};if(o13.length===0){let e8=a2(s10.stdin)??"";n10=l12(e8)}else for(let e8 of o13)if(e8==="-"){let t8=a2(s10.stdin)??"";n10+=l12(t8)}else{let t8=s10.fs.resolvePath(s10.cwd,e8),i22=await s10.fs.readFile(t8);if(i22===null)return{exitCode:1,stdout:n10,stderr:`rev: ${e8}: No such file or directory
429
- `};n10+=l12(i22)}return{exitCode:0,stdout:n10,stderr:""}}},y8={name:"rev",flags:[],stdinType:"text",needsFiles:!0}}});var rev_EPOS3MFH_exports={};__export(rev_EPOS3MFH_exports,{flagsForFuzzing:()=>y8,rev:()=>g6});import{createRequire as createRequire91}from"node:module";var require92,init_rev_EPOS3MFH=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/rev-EPOS3MFH.js"(){init_chunk_LVDUF74R();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require92=createRequire91(import.meta.url)}});import{createRequire as createRequire92}from"node:module";function $14(i22,r7,s10){let l12=String(i22);switch(r7){case"ln":return l12.padEnd(s10);case"rn":return l12.padStart(s10);case"rz":return l12.padStart(s10,"0");default:return r7}}function S7(i22,r7){switch(r7){case"a":return!0;case"t":return i22.trim().length>0;case"n":return!1;default:return r7}}function w7(i22,r7,s10,l12){if(i22==="")return{output:"",nextNumber:s10};let o13=i22.split(`
429
+ `};n10+=l12(i22)}return{exitCode:0,stdout:n10,stderr:""}}},y8={name:"rev",flags:[],stdinType:"text",needsFiles:!0}}});var rev_EPOS3MFH_exports={};__export(rev_EPOS3MFH_exports,{flagsForFuzzing:()=>y8,rev:()=>g6});import{createRequire as createRequire91}from"node:module";var require92,init_rev_EPOS3MFH=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/rev-EPOS3MFH.js"(){init_chunk_LVDUF74R();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require92=createRequire91(import.meta.url)}});import{createRequire as createRequire92}from"node:module";function $14(i22,r7,s10){let l12=String(i22);switch(r7){case"ln":return l12.padEnd(s10);case"rn":return l12.padStart(s10);case"rz":return l12.padStart(s10,"0");default:return r7}}function S7(i22,r7){switch(r7){case"a":return!0;case"t":return i22.trim().length>0;case"n":return!1;default:return r7}}function w7(i22,r7,s10,l12){if(i22==="")return{output:"",nextNumber:s10};let o13=i22.split(`
430
430
  `),d11=[],t8=0,u15=s10,f15=i22.endsWith(`
431
431
  `)&&o13[o13.length-1]==="";f15&&o13.pop();for(let n10 of o13){let e8=d11.length>0?1:0,m16=x(r7.separator)+x(n10);if(S7(n10,r7.bodyStyle)){let a14=Math.max(String(u15).length,r7.width)+m16+e8;if(a14>l12-t8)throw new f2(`nl: output size limit exceeded (${l12} bytes)`,"output_size");let b23=`${$14(u15,r7.numberFormat,r7.width)}${r7.separator}${n10}`;d11.push(b23),t8+=a14,u15+=r7.increment}else{let a14=r7.width+m16+e8;if(a14>l12-t8)throw new f2(`nl: output size limit exceeded (${l12} bytes)`,"output_size");let b23=`${" ".repeat(r7.width)}${r7.separator}${n10}`;d11.push(b23),t8+=a14}}if(f15&&t8+1>l12)throw new f2(`nl: output size limit exceeded (${l12} bytes)`,"output_size");return{output:d11.join(`
432
432
  `)+(f15?`
433
- `:""),nextNumber:u15}}var require93,x13,I9,L9,init_chunk_5VCAQBXL=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-5VCAQBXL.js"(){init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();require93=createRequire92(import.meta.url),x13={name:"nl",summary:"number lines of files",usage:"nl [OPTION]... [FILE]...",description:"Write each FILE to standard output, with line numbers added. If no FILE is specified, standard input is read.",options:["-b STYLE Body numbering style: a (all), t (non-empty), n (none)","-n FORMAT Number format: ln (left), rn (right), rz (right zeros)","-w WIDTH Number width (default: 6)","-s SEP Separator after number (default: TAB)","-v START Starting line number (default: 1)","-i INCR Line number increment (default: 1)"],examples:["nl file.txt # Number non-empty lines","nl -ba file.txt # Number all lines","nl -n rz -w 3 file.txt # Right-justified with zeros","nl -s ': ' file.txt # Use ': ' as separator"]};I9={name:"nl",execute:async(i22,r7)=>{if(o5(i22))return s5(x13);let s10={bodyStyle:"t",numberFormat:"rn",width:6,separator:" ",startNumber:1,increment:1},l12=[],o13=Math.min(r7.limits.maxStringLength,r7.limits.maxOutputSize),d11=o13,t8=0;for(;t8<i22.length;){let n10=i22[t8];if(n10==="-b"&&t8+1<i22.length){let e8=i22[t8+1];if(e8!=="a"&&e8!=="t"&&e8!=="n")return{exitCode:1,stdout:"",stderr:`nl: invalid body numbering style: '${e8}'
433
+ `:""),nextNumber:u15}}var require93,x13,I9,L9,init_chunk_5VCAQBXL=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-5VCAQBXL.js"(){init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();require93=createRequire92(import.meta.url),x13={name:"nl",summary:"number lines of files",usage:"nl [OPTION]... [FILE]...",description:"Write each FILE to standard output, with line numbers added. If no FILE is specified, standard input is read.",options:["-b STYLE Body numbering style: a (all), t (non-empty), n (none)","-n FORMAT Number format: ln (left), rn (right), rz (right zeros)","-w WIDTH Number width (default: 6)","-s SEP Separator after number (default: TAB)","-v START Starting line number (default: 1)","-i INCR Line number increment (default: 1)"],examples:["nl file.txt # Number non-empty lines","nl -ba file.txt # Number all lines","nl -n rz -w 3 file.txt # Right-justified with zeros","nl -s ': ' file.txt # Use ': ' as separator"]};I9={name:"nl",execute:async(i22,r7)=>{if(o5(i22))return s5(x13);let s10={bodyStyle:"t",numberFormat:"rn",width:6,separator:" ",startNumber:1,increment:1},l12=[],o13=Math.min(r7.limits.maxStringLength,r7.limits.maxOutputSize),d11=o13,t8=0;for(;t8<i22.length;){let n10=i22[t8];if(n10==="-b"&&t8+1<i22.length){let e8=i22[t8+1];if(e8!=="a"&&e8!=="t"&&e8!=="n")return{exitCode:1,stdout:"",stderr:`nl: invalid body numbering style: '${e8}'
434
434
  `};s10.bodyStyle=e8,t8+=2}else if(n10.startsWith("-b")){let e8=n10.slice(2);if(e8!=="a"&&e8!=="t"&&e8!=="n")return{exitCode:1,stdout:"",stderr:`nl: invalid body numbering style: '${e8}'
435
435
  `};s10.bodyStyle=e8,t8++}else if(n10==="-n"&&t8+1<i22.length){let e8=i22[t8+1];if(e8!=="ln"&&e8!=="rn"&&e8!=="rz")return{exitCode:1,stdout:"",stderr:`nl: invalid line numbering format: '${e8}'
436
436
  `};s10.numberFormat=e8,t8+=2}else if(n10.startsWith("-n")){let e8=n10.slice(2);if(e8!=="ln"&&e8!=="rn"&&e8!=="rz")return{exitCode:1,stdout:"",stderr:`nl: invalid line numbering format: '${e8}'
@@ -441,35 +441,35 @@ Try 'comm --help' for more information.
441
441
  `};s10.startNumber=e8,t8++}else if(n10==="-i"&&t8+1<i22.length){let e8=parseInt(i22[t8+1],10);if(Number.isNaN(e8))return{exitCode:1,stdout:"",stderr:`nl: invalid line number increment: '${i22[t8+1]}'
442
442
  `};s10.increment=e8,t8+=2}else if(n10.startsWith("-i")){let e8=parseInt(n10.slice(2),10);if(Number.isNaN(e8))return{exitCode:1,stdout:"",stderr:`nl: invalid line number increment: '${n10.slice(2)}'
443
443
  `};s10.increment=e8,t8++}else if(n10==="--"){l12.push(...i22.slice(t8+1));break}else{if(n10.startsWith("-")&&n10!=="-")return r5("nl",n10);l12.push(n10),t8++}}let u15="",f15=s10.startNumber;if(l12.length===0){let n10=a2(r7.stdin)??"";u15=w7(n10,s10,f15,d11).output}else for(let n10 of l12){let e8=r7.fs.resolvePath(r7.cwd,n10),m16=await r7.fs.readFile(e8);if(m16===null)return{exitCode:1,stdout:u15,stderr:`nl: ${n10}: No such file or directory
444
- `};let a14=w7(m16,s10,f15,d11-x(u15));u15+=a14.output,f15=a14.nextNumber}return{exitCode:0,stdout:u15,stderr:""}}},L9={name:"nl",flags:[{flag:"-b",type:"value",valueHint:"string"},{flag:"-n",type:"value",valueHint:"string"},{flag:"-w",type:"value",valueHint:"number"},{flag:"-s",type:"value",valueHint:"string"},{flag:"-v",type:"value",valueHint:"number"},{flag:"-i",type:"value",valueHint:"number"}],stdinType:"text",needsFiles:!0}}});var nl_RFXH2GNX_exports={};__export(nl_RFXH2GNX_exports,{flagsForFuzzing:()=>L9,nl:()=>I9});import{createRequire as createRequire93}from"node:module";var require94,init_nl_RFXH2GNX=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/nl-RFXH2GNX.js"(){init_chunk_5VCAQBXL();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require94=createRequire93(import.meta.url)}});import{createRequire as createRequire94}from"node:module";function y9(s10,r7,n10){return n10?x(s10):s10===" "?8-r7%8:s10==="\b"?-1:1}function N6(s10,r7){if(s10.length===0)return s10;let{width:n10,breakAtSpaces:u15,countBytes:i22}=r7,l12=[],e8="",t8=0,o13=-1,f15=0;for(let a14 of s10){let d11=y9(a14,t8,i22);t8+d11>n10&&e8.length>0?u15&&o13>=0?(l12.push(e8.slice(0,o13+1)),e8=e8.slice(o13+1)+a14,t8=t8-f15-1+d11,o13=-1,f15=0):(l12.push(e8),e8=a14,t8=d11,o13=-1,f15=0):(e8+=a14,t8+=d11,(a14===" "||a14===" ")&&(o13=e8.length-1,f15=t8-d11))}return e8.length>0&&l12.push(e8),l12.join(`
444
+ `};let a14=w7(m16,s10,f15,d11-x(u15));u15+=a14.output,f15=a14.nextNumber}return{exitCode:0,stdout:u15,stderr:""}}},L9={name:"nl",flags:[{flag:"-b",type:"value",valueHint:"string"},{flag:"-n",type:"value",valueHint:"string"},{flag:"-w",type:"value",valueHint:"number"},{flag:"-s",type:"value",valueHint:"string"},{flag:"-v",type:"value",valueHint:"number"},{flag:"-i",type:"value",valueHint:"number"}],stdinType:"text",needsFiles:!0}}});var nl_RFXH2GNX_exports={};__export(nl_RFXH2GNX_exports,{flagsForFuzzing:()=>L9,nl:()=>I9});import{createRequire as createRequire93}from"node:module";var require94,init_nl_RFXH2GNX=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/nl-RFXH2GNX.js"(){init_chunk_5VCAQBXL();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require94=createRequire93(import.meta.url)}});import{createRequire as createRequire94}from"node:module";function y9(s10,r7,n10){return n10?x(s10):s10===" "?8-r7%8:s10==="\b"?-1:1}function N6(s10,r7){if(s10.length===0)return s10;let{width:n10,breakAtSpaces:u15,countBytes:i22}=r7,l12=[],e8="",t8=0,o13=-1,f15=0;for(let a14 of s10){let d11=y9(a14,t8,i22);t8+d11>n10&&e8.length>0?u15&&o13>=0?(l12.push(e8.slice(0,o13+1)),e8=e8.slice(o13+1)+a14,t8=t8-f15-1+d11,o13=-1,f15=0):(l12.push(e8),e8=a14,t8=d11,o13=-1,f15=0):(e8+=a14,t8+=d11,(a14===" "||a14===" ")&&(o13=e8.length-1,f15=t8-d11))}return e8.length>0&&l12.push(e8),l12.join(`
445
445
  `)}function m7(s10,r7){if(s10==="")return"";let n10=s10.split(`
446
446
  `),u15=s10.endsWith(`
447
447
  `)&&n10[n10.length-1]==="";return u15&&n10.pop(),n10.map(l12=>N6(l12,r7)).join(`
448
448
  `)+(u15?`
449
- `:"")}var require95,g7,x14,C7,init_chunk_Y62SXZKJ=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-Y62SXZKJ.js"(){init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();require95=createRequire94(import.meta.url),g7={name:"fold",summary:"wrap each input line to fit in specified width",usage:"fold [OPTION]... [FILE]...",description:"Wrap input lines in each FILE, writing to standard output. If no FILE is specified, standard input is read.",options:["-w WIDTH Use WIDTH columns instead of 80","-s Break at spaces","-b Count bytes rather than columns"],examples:["fold -w 40 file.txt # Wrap at 40 columns","fold -sw 40 file.txt # Word wrap at 40 columns","echo 'long line' | fold -w 5 # Force wrap at 5"]};x14={name:"fold",execute:async(s10,r7)=>{if(o5(s10))return s5(g7);let n10={width:80,breakAtSpaces:!1,countBytes:!1},u15=[],i22=0;for(;i22<s10.length;){let e8=s10[i22];if(e8==="-w"&&i22+1<s10.length){let t8=parseInt(s10[i22+1],10);if(Number.isNaN(t8)||t8<1)return{exitCode:1,stdout:"",stderr:`fold: invalid number of columns: '${s10[i22+1]}'
449
+ `:"")}var require95,g7,x14,C7,init_chunk_Y62SXZKJ=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-Y62SXZKJ.js"(){init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();require95=createRequire94(import.meta.url),g7={name:"fold",summary:"wrap each input line to fit in specified width",usage:"fold [OPTION]... [FILE]...",description:"Wrap input lines in each FILE, writing to standard output. If no FILE is specified, standard input is read.",options:["-w WIDTH Use WIDTH columns instead of 80","-s Break at spaces","-b Count bytes rather than columns"],examples:["fold -w 40 file.txt # Wrap at 40 columns","fold -sw 40 file.txt # Word wrap at 40 columns","echo 'long line' | fold -w 5 # Force wrap at 5"]};x14={name:"fold",execute:async(s10,r7)=>{if(o5(s10))return s5(g7);let n10={width:80,breakAtSpaces:!1,countBytes:!1},u15=[],i22=0;for(;i22<s10.length;){let e8=s10[i22];if(e8==="-w"&&i22+1<s10.length){let t8=parseInt(s10[i22+1],10);if(Number.isNaN(t8)||t8<1)return{exitCode:1,stdout:"",stderr:`fold: invalid number of columns: '${s10[i22+1]}'
450
450
  `};n10.width=t8,i22+=2}else if(e8.startsWith("-w")&&e8.length>2){let t8=parseInt(e8.slice(2),10);if(Number.isNaN(t8)||t8<1)return{exitCode:1,stdout:"",stderr:`fold: invalid number of columns: '${e8.slice(2)}'
451
451
  `};n10.width=t8,i22++}else if(e8==="-s")n10.breakAtSpaces=!0,i22++;else if(e8==="-b")n10.countBytes=!0,i22++;else if(e8==="-bs"||e8==="-sb")n10.breakAtSpaces=!0,n10.countBytes=!0,i22++;else if(e8.match(/^-[sb]+w\d+$/)){e8.includes("s")&&(n10.breakAtSpaces=!0),e8.includes("b")&&(n10.countBytes=!0);let t8=e8.replace(/^-[sb]+w/,""),o13=parseInt(t8,10);if(Number.isNaN(o13)||o13<1)return{exitCode:1,stdout:"",stderr:`fold: invalid number of columns: '${t8}'
452
452
  `};n10.width=o13,i22++}else if(e8.match(/^-[sb]+w$/)&&i22+1<s10.length){e8.includes("s")&&(n10.breakAtSpaces=!0),e8.includes("b")&&(n10.countBytes=!0);let t8=parseInt(s10[i22+1],10);if(Number.isNaN(t8)||t8<1)return{exitCode:1,stdout:"",stderr:`fold: invalid number of columns: '${s10[i22+1]}'
453
453
  `};n10.width=t8,i22+=2}else if(e8==="--"){u15.push(...s10.slice(i22+1));break}else if(e8.startsWith("-")&&e8!=="-"){let t8=e8.slice(1),o13=!1;for(let f15 of t8)if(f15==="s")n10.breakAtSpaces=!0;else if(f15==="b")n10.countBytes=!0;else{o13=!0;break}if(o13)return r5("fold",e8);i22++}else u15.push(e8),i22++}let l12="";if(u15.length===0){let e8=a2(r7.stdin)??"";l12=m7(e8,n10)}else for(let e8 of u15){let t8=r7.fs.resolvePath(r7.cwd,e8),o13=await r7.fs.readFile(t8);if(o13===null)return{exitCode:1,stdout:l12,stderr:`fold: ${e8}: No such file or directory
454
- `};l12+=m7(o13,n10)}return{exitCode:0,stdout:l12,stderr:""}}},C7={name:"fold",flags:[{flag:"-w",type:"value",valueHint:"number"},{flag:"-s",type:"boolean"},{flag:"-b",type:"boolean"}],stdinType:"text",needsFiles:!0}}});var fold_QJBPHRFJ_exports={};__export(fold_QJBPHRFJ_exports,{flagsForFuzzing:()=>C7,fold:()=>x14});import{createRequire as createRequire95}from"node:module";var require96,init_fold_QJBPHRFJ=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/fold-QJBPHRFJ.js"(){init_chunk_Y62SXZKJ();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require96=createRequire95(import.meta.url)}});import{createRequire as createRequire96}from"node:module";function c11(s10,i22,t8){let a14=s10.split(",").map(o13=>o13.trim());if(a14.length>t8)return null;let l12=[];for(let o13 of a14){let n10=/^\d+$/.test(o13)?Number(o13):NaN;if(!Number.isSafeInteger(n10)||n10<1||n10>i22)return null;l12.push(n10)}for(let o13=1;o13<l12.length;o13++)if(l12[o13]<=l12[o13-1])return null;return l12}function z6(s10,i22){if(i22.length===1){let t8=i22[0];return t8-s10%t8}for(let t8 of i22)if(t8>s10)return t8-s10;if(i22.length>=2){let t8=i22[i22.length-1]-i22[i22.length-2],a14=i22[i22.length-1],l12=Math.floor((s10-a14)/t8)+1;return a14+l12*t8-s10}return 1}function y10(s10,i22,t8){let{tabStops:a14,leadingOnly:l12}=i22,o13="",n10=0,p16=!0,e8=0;for(let r7 of s10)if(r7===" ")if(l12&&!p16){if(e8+1>t8)throw new f2(`expand: output size limit exceeded (${t8} bytes)`,"output_size");o13+=r7,e8++,n10++}else{let d11=z6(n10,a14);if(d11>t8-e8)throw new f2(`expand: output size limit exceeded (${t8} bytes)`,"output_size");o13+=" ".repeat(d11),e8+=d11,n10+=d11}else{r7!==" "&&r7!==" "&&(p16=!1);let d11=x(r7);if(d11>t8-e8)throw new f2(`expand: output size limit exceeded (${t8} bytes)`,"output_size");o13+=r7,e8+=d11,n10++}return o13}function b16(s10,i22,t8){if(s10==="")return"";let a14=s10.split(`
454
+ `};l12+=m7(o13,n10)}return{exitCode:0,stdout:l12,stderr:""}}},C7={name:"fold",flags:[{flag:"-w",type:"value",valueHint:"number"},{flag:"-s",type:"boolean"},{flag:"-b",type:"boolean"}],stdinType:"text",needsFiles:!0}}});var fold_QJBPHRFJ_exports={};__export(fold_QJBPHRFJ_exports,{flagsForFuzzing:()=>C7,fold:()=>x14});import{createRequire as createRequire95}from"node:module";var require96,init_fold_QJBPHRFJ=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/fold-QJBPHRFJ.js"(){init_chunk_Y62SXZKJ();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require96=createRequire95(import.meta.url)}});import{createRequire as createRequire96}from"node:module";function c11(s10,i22,t8){let a14=s10.split(",").map(o13=>o13.trim());if(a14.length>t8)return null;let l12=[];for(let o13 of a14){let n10=/^\d+$/.test(o13)?Number(o13):NaN;if(!Number.isSafeInteger(n10)||n10<1||n10>i22)return null;l12.push(n10)}for(let o13=1;o13<l12.length;o13++)if(l12[o13]<=l12[o13-1])return null;return l12}function z6(s10,i22){if(i22.length===1){let t8=i22[0];return t8-s10%t8}for(let t8 of i22)if(t8>s10)return t8-s10;if(i22.length>=2){let t8=i22[i22.length-1]-i22[i22.length-2],a14=i22[i22.length-1],l12=Math.floor((s10-a14)/t8)+1;return a14+l12*t8-s10}return 1}function y10(s10,i22,t8){let{tabStops:a14,leadingOnly:l12}=i22,o13="",n10=0,p16=!0,e8=0;for(let r7 of s10)if(r7===" ")if(l12&&!p16){if(e8+1>t8)throw new f2(`expand: output size limit exceeded (${t8} bytes)`,"output_size");o13+=r7,e8++,n10++}else{let d11=z6(n10,a14);if(d11>t8-e8)throw new f2(`expand: output size limit exceeded (${t8} bytes)`,"output_size");o13+=" ".repeat(d11),e8+=d11,n10+=d11}else{r7!==" "&&r7!==" "&&(p16=!1);let d11=x(r7);if(d11>t8-e8)throw new f2(`expand: output size limit exceeded (${t8} bytes)`,"output_size");o13+=r7,e8+=d11,n10++}return o13}function b16(s10,i22,t8){if(s10==="")return"";let a14=s10.split(`
455
455
  `),l12=s10.endsWith(`
456
456
  `)&&a14[a14.length-1]==="";l12&&a14.pop();let o13=[],n10=0;for(let p16 of a14){let e8=o13.length>0?1:0,r7=y10(p16,i22,t8-n10-e8);n10+=e8+x(r7),o13.push(r7)}if(l12&&n10+1>t8)throw new f2(`expand: output size limit exceeded (${t8} bytes)`,"output_size");return o13.join(`
457
457
  `)+(l12?`
458
- `:"")}var require97,w8,N7,T8,init_chunk_PPDMRIJ7=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-PPDMRIJ7.js"(){init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();require97=createRequire96(import.meta.url),w8={name:"expand",summary:"convert tabs to spaces",usage:"expand [OPTION]... [FILE]...",description:"Convert TABs in each FILE to spaces, writing to standard output. If no FILE is specified, standard input is read.",options:["-t N Use N spaces per tab (default: 8)","-t LIST Use comma-separated list of tab stops","-i Only convert leading tabs on each line"],examples:["expand file.txt # Convert all tabs to 8 spaces","expand -t 4 file.txt # Use 4-space tabs","expand -t 4,8,12 file.txt # Custom tab stops"]};N7={name:"expand",execute:async(s10,i22)=>{if(o5(s10))return s5(w8);let t8={tabStops:[8],leadingOnly:!1},a14=[],l12=Math.min(i22.limits.maxStringLength,i22.limits.maxOutputSize),o13=i22.limits.maxArrayElements,n10=0;for(;n10<s10.length;){let e8=s10[n10];if(e8==="-t"&&n10+1<s10.length){let r7=c11(s10[n10+1],l12,o13);if(!r7)return{exitCode:1,stdout:"",stderr:`expand: invalid tab size: '${s10[n10+1]}'
458
+ `:"")}var require97,w8,N7,T8,init_chunk_PPDMRIJ7=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-PPDMRIJ7.js"(){init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();require97=createRequire96(import.meta.url),w8={name:"expand",summary:"convert tabs to spaces",usage:"expand [OPTION]... [FILE]...",description:"Convert TABs in each FILE to spaces, writing to standard output. If no FILE is specified, standard input is read.",options:["-t N Use N spaces per tab (default: 8)","-t LIST Use comma-separated list of tab stops","-i Only convert leading tabs on each line"],examples:["expand file.txt # Convert all tabs to 8 spaces","expand -t 4 file.txt # Use 4-space tabs","expand -t 4,8,12 file.txt # Custom tab stops"]};N7={name:"expand",execute:async(s10,i22)=>{if(o5(s10))return s5(w8);let t8={tabStops:[8],leadingOnly:!1},a14=[],l12=Math.min(i22.limits.maxStringLength,i22.limits.maxOutputSize),o13=i22.limits.maxArrayElements,n10=0;for(;n10<s10.length;){let e8=s10[n10];if(e8==="-t"&&n10+1<s10.length){let r7=c11(s10[n10+1],l12,o13);if(!r7)return{exitCode:1,stdout:"",stderr:`expand: invalid tab size: '${s10[n10+1]}'
459
459
  `};t8.tabStops=r7,n10+=2}else if(e8.startsWith("-t")&&e8.length>2){let r7=c11(e8.slice(2),l12,o13);if(!r7)return{exitCode:1,stdout:"",stderr:`expand: invalid tab size: '${e8.slice(2)}'
460
460
  `};t8.tabStops=r7,n10++}else if(e8==="--tabs"&&n10+1<s10.length){let r7=c11(s10[n10+1],l12,o13);if(!r7)return{exitCode:1,stdout:"",stderr:`expand: invalid tab size: '${s10[n10+1]}'
461
461
  `};t8.tabStops=r7,n10+=2}else if(e8.startsWith("--tabs=")){let r7=c11(e8.slice(7),l12,o13);if(!r7)return{exitCode:1,stdout:"",stderr:`expand: invalid tab size: '${e8.slice(7)}'
462
462
  `};t8.tabStops=r7,n10++}else if(e8==="-i"||e8==="--initial")t8.leadingOnly=!0,n10++;else if(e8==="--"){a14.push(...s10.slice(n10+1));break}else{if(e8.startsWith("-")&&e8!=="-")return r5("expand",e8);a14.push(e8),n10++}}let p16="";if(a14.length===0){let e8=a2(i22.stdin)??"";p16=b16(e8,t8,l12)}else for(let e8 of a14){let r7=i22.fs.resolvePath(i22.cwd,e8),d11=await i22.fs.readFile(r7);if(d11===null)return{exitCode:1,stdout:p16,stderr:`expand: ${e8}: No such file or directory
463
- `};p16+=b16(d11,t8,l12-x(p16))}return{exitCode:0,stdout:p16,stderr:""}}},T8={name:"expand",flags:[{flag:"-t",type:"value",valueHint:"number"},{flag:"-i",type:"boolean"}],stdinType:"text",needsFiles:!0}}});var expand_2BPPGGSM_exports={};__export(expand_2BPPGGSM_exports,{expand:()=>N7,flagsForFuzzing:()=>T8});import{createRequire as createRequire97}from"node:module";var require98,init_expand_2BPPGGSM=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/expand-2BPPGGSM.js"(){init_chunk_PPDMRIJ7();init_chunk_6D3WD6YU();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require98=createRequire97(import.meta.url)}});import{createRequire as createRequire98}from"node:module";function f12(s10){let i22=s10.split(",").map(o13=>o13.trim()),e8=[];for(let o13 of i22){let n10=parseInt(o13,10);if(Number.isNaN(n10)||n10<1)return null;e8.push(n10)}for(let o13=1;o13<e8.length;o13++)if(e8[o13]<=e8[o13-1])return null;return e8}function C8(s10,i22){if(i22.length===1){let e8=i22[0];return s10+(e8-s10%e8)}for(let e8 of i22)if(e8>s10)return e8;if(i22.length>=2){let e8=i22[i22.length-1]-i22[i22.length-2],o13=i22[i22.length-1],n10=Math.floor((s10-o13)/e8)+1;return o13+n10*e8}return-1}function N8(s10,i22){let{tabStops:e8,allBlanks:o13}=i22,n10="",a14=0,t8="",l12=0,u15=!0,d11=()=>{if(t8.length===0)return;let r7=l12+t8.length;if(!o13&&!u15){n10+=t8,t8="";return}let p16=l12,c18="";for(;p16<r7;){let h18=C8(p16,e8);if(h18<=r7&&h18>p16)c18+=" ",p16=h18;else break}let x23=r7-p16;x23>0&&(c18+=" ".repeat(x23)),n10+=c18,t8=""};for(let r7 of s10)r7===" "?(t8.length===0&&(l12=a14),t8+=r7,a14++):r7===" "?(d11(),n10+=r7,a14=C8(a14,e8)):(d11(),n10+=r7,a14++,u15=!1);return d11(),n10}function k11(s10,i22){if(s10==="")return"";let e8=s10.split(`
463
+ `};p16+=b16(d11,t8,l12-x(p16))}return{exitCode:0,stdout:p16,stderr:""}}},T8={name:"expand",flags:[{flag:"-t",type:"value",valueHint:"number"},{flag:"-i",type:"boolean"}],stdinType:"text",needsFiles:!0}}});var expand_2BPPGGSM_exports={};__export(expand_2BPPGGSM_exports,{expand:()=>N7,flagsForFuzzing:()=>T8});import{createRequire as createRequire97}from"node:module";var require98,init_expand_2BPPGGSM=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/expand-2BPPGGSM.js"(){init_chunk_PPDMRIJ7();init_chunk_6D3WD6YU();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require98=createRequire97(import.meta.url)}});import{createRequire as createRequire98}from"node:module";function f12(s10){let i22=s10.split(",").map(o13=>o13.trim()),e8=[];for(let o13 of i22){let n10=parseInt(o13,10);if(Number.isNaN(n10)||n10<1)return null;e8.push(n10)}for(let o13=1;o13<e8.length;o13++)if(e8[o13]<=e8[o13-1])return null;return e8}function C8(s10,i22){if(i22.length===1){let e8=i22[0];return s10+(e8-s10%e8)}for(let e8 of i22)if(e8>s10)return e8;if(i22.length>=2){let e8=i22[i22.length-1]-i22[i22.length-2],o13=i22[i22.length-1],n10=Math.floor((s10-o13)/e8)+1;return o13+n10*e8}return-1}function N8(s10,i22){let{tabStops:e8,allBlanks:o13}=i22,n10="",a14=0,t8="",l12=0,u15=!0,d11=()=>{if(t8.length===0)return;let r7=l12+t8.length;if(!o13&&!u15){n10+=t8,t8="";return}let p16=l12,c18="";for(;p16<r7;){let h18=C8(p16,e8);if(h18<=r7&&h18>p16)c18+=" ",p16=h18;else break}let x23=r7-p16;x23>0&&(c18+=" ".repeat(x23)),n10+=c18,t8=""};for(let r7 of s10)r7===" "?(t8.length===0&&(l12=a14),t8+=r7,a14++):r7===" "?(d11(),n10+=r7,a14=C8(a14,e8)):(d11(),n10+=r7,a14++,u15=!1);return d11(),n10}function k11(s10,i22){if(s10==="")return"";let e8=s10.split(`
464
464
  `),o13=s10.endsWith(`
465
465
  `)&&e8[e8.length-1]==="";return o13&&e8.pop(),e8.map(a14=>N8(a14,i22)).join(`
466
466
  `)+(o13?`
467
- `:"")}var require99,L10,I10,T9,init_chunk_2VWG4LDT=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-2VWG4LDT.js"(){init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();require99=createRequire98(import.meta.url),L10={name:"unexpand",summary:"convert spaces to tabs",usage:"unexpand [OPTION]... [FILE]...",description:"Convert blanks in each FILE to TABs, writing to standard output. If no FILE is specified, standard input is read.",options:["-t N Use N spaces per tab (default: 8)","-t LIST Use comma-separated list of tab stops","-a Convert all sequences of blanks (not just leading)"],examples:["unexpand file.txt # Convert leading spaces to tabs","unexpand -a file.txt # Convert all space sequences","unexpand -t 4 file.txt # Use 4-space tabs"]};I10={name:"unexpand",execute:async(s10,i22)=>{if(o5(s10))return s5(L10);let e8={tabStops:[8],allBlanks:!1},o13=[],n10=0;for(;n10<s10.length;){let t8=s10[n10];if(t8==="-t"&&n10+1<s10.length){let l12=f12(s10[n10+1]);if(!l12)return{exitCode:1,stdout:"",stderr:`unexpand: invalid tab size: '${s10[n10+1]}'
467
+ `:"")}var require99,L10,I10,T9,init_chunk_2VWG4LDT=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-2VWG4LDT.js"(){init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();require99=createRequire98(import.meta.url),L10={name:"unexpand",summary:"convert spaces to tabs",usage:"unexpand [OPTION]... [FILE]...",description:"Convert blanks in each FILE to TABs, writing to standard output. If no FILE is specified, standard input is read.",options:["-t N Use N spaces per tab (default: 8)","-t LIST Use comma-separated list of tab stops","-a Convert all sequences of blanks (not just leading)"],examples:["unexpand file.txt # Convert leading spaces to tabs","unexpand -a file.txt # Convert all space sequences","unexpand -t 4 file.txt # Use 4-space tabs"]};I10={name:"unexpand",execute:async(s10,i22)=>{if(o5(s10))return s5(L10);let e8={tabStops:[8],allBlanks:!1},o13=[],n10=0;for(;n10<s10.length;){let t8=s10[n10];if(t8==="-t"&&n10+1<s10.length){let l12=f12(s10[n10+1]);if(!l12)return{exitCode:1,stdout:"",stderr:`unexpand: invalid tab size: '${s10[n10+1]}'
468
468
  `};e8.tabStops=l12,n10+=2}else if(t8.startsWith("-t")&&t8.length>2){let l12=f12(t8.slice(2));if(!l12)return{exitCode:1,stdout:"",stderr:`unexpand: invalid tab size: '${t8.slice(2)}'
469
469
  `};e8.tabStops=l12,n10++}else if(t8==="--tabs"&&n10+1<s10.length){let l12=f12(s10[n10+1]);if(!l12)return{exitCode:1,stdout:"",stderr:`unexpand: invalid tab size: '${s10[n10+1]}'
470
470
  `};e8.tabStops=l12,n10+=2}else if(t8.startsWith("--tabs=")){let l12=f12(t8.slice(7));if(!l12)return{exitCode:1,stdout:"",stderr:`unexpand: invalid tab size: '${t8.slice(7)}'
471
471
  `};e8.tabStops=l12,n10++}else if(t8==="-a"||t8==="--all")e8.allBlanks=!0,n10++;else if(t8==="--"){o13.push(...s10.slice(n10+1));break}else{if(t8.startsWith("-")&&t8!=="-")return r5("unexpand",t8);o13.push(t8),n10++}}let a14="";if(o13.length===0){let t8=a2(i22.stdin)??"";a14=k11(t8,e8)}else for(let t8 of o13){let l12=i22.fs.resolvePath(i22.cwd,t8),u15=await i22.fs.readFile(l12);if(u15===null)return{exitCode:1,stdout:a14,stderr:`unexpand: ${t8}: No such file or directory
472
- `};a14+=k11(u15,e8)}return{exitCode:0,stdout:a14,stderr:""}}},T9={name:"unexpand",flags:[{flag:"-t",type:"value",valueHint:"number"},{flag:"-a",type:"boolean"}],stdinType:"text",needsFiles:!0}}});var unexpand_YD5BWFH4_exports={};__export(unexpand_YD5BWFH4_exports,{flagsForFuzzing:()=>T9,unexpand:()=>I10});import{createRequire as createRequire99}from"node:module";var require100,init_unexpand_YD5BWFH4=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/unexpand-YD5BWFH4.js"(){init_chunk_2VWG4LDT();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require100=createRequire99(import.meta.url)}});import{createRequire as createRequire100}from"node:module";function N9(i22){return i22>=32&&i22<=126||i22===9}function S8(i22,s10){if(s10===null)return"";switch(s10){case"o":return`${i22.toString(8).padStart(7," ")} `;case"x":return`${i22.toString(16).padStart(7," ")} `;case"d":return`${i22.toString(10).padStart(7," ")} `;default:return s10}}function $15(i22,s10,n10,f15=!1,r7){let u15=[],a14=0,l12=0,t8=typeof i22=="string"&&!f15?new TextEncoder().encode(i22):i22;if(t8.length>n10.maxStringLength-n10.inputBytes)throw new f2(`strings: aggregate input size limit exceeded (${n10.maxStringLength} bytes)`,"string_length");n10.inputBytes+=t8.length;let e8=new TextDecoder,g13=(o13,c18)=>typeof t8=="string"?t8.slice(o13,c18):e8.decode(t8.subarray(o13,c18)),h18=o13=>{if(++n10.iterations>n10.maxIterations)throw new f2(`strings: iteration limit exceeded (${n10.maxIterations})`,"iterations");if(n10.resultCount>=n10.maxArrayElements)throw new f2(`strings: array element limit exceeded (${n10.maxArrayElements})`,"array_elements");let c18=o13.length+1;if(c18>n10.maxOutputSize-n10.outputBytes)throw new f2(`strings: output size limit exceeded (${n10.maxOutputSize} bytes)`,"output_size");u15.push(o13),n10.resultCount++,n10.outputBytes+=c18};for(let o13=0;o13<t8.length;o13++){if((o13&4095)===0&&r7?.aborted)throw new $;let c18=typeof t8=="string"?t8.charCodeAt(o13)&255:t8[o13];if(N9(c18)){if(a14===0&&(l12=o13),a14>=n10.maxStringLength)throw new f2(`strings: string length limit exceeded (${n10.maxStringLength} bytes)`,"string_length");a14++}else{if(a14>=s10.minLength){let w15=S8(l12,s10.offsetFormat);h18(`${w15}${g13(l12,o13)}`)}a14=0}}if(a14>=s10.minLength){let o13=S8(l12,s10.offsetFormat);h18(`${o13}${g13(l12,t8.length)}`)}return u15}var require101,L11,E12,F12,init_chunk_AFFAMSJT=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-AFFAMSJT.js"(){init_chunk_EFORKKSH();init_chunk_QAYAQNCG();require101=createRequire100(import.meta.url),L11={name:"strings",summary:"print the sequences of printable characters in files",usage:"strings [OPTION]... [FILE]...",description:"For each FILE, print the printable character sequences that are at least MIN characters long. If no FILE is specified, standard input is read.",options:["-n MIN Print sequences of at least MIN characters (default: 4)","-t FORMAT Print offset before each string (o=octal, x=hex, d=decimal)","-a Scan the entire file (default behavior)","-e ENCODING Select character encoding (s=7-bit, S=8-bit)"],examples:["strings file.bin # Extract strings (min 4 chars)","strings -n 8 file.bin # Extract strings (min 8 chars)","strings -t x file.bin # Show hex offset","echo 'hello' | strings # Read from stdin"]};E12={name:"strings",execute:async(i22,s10)=>{if(o5(i22))return s5(L11);let n10={minLength:4,offsetFormat:null},f15=[],r7=0;for(;r7<i22.length;){let t8=i22[r7];if(t8==="-n"&&r7+1<i22.length){let e8=Number.parseInt(i22[r7+1],10);if(Number.isNaN(e8)||e8<1)return{exitCode:1,stdout:"",stderr:`strings: invalid minimum string length: '${i22[r7+1]}'
472
+ `};a14+=k11(u15,e8)}return{exitCode:0,stdout:a14,stderr:""}}},T9={name:"unexpand",flags:[{flag:"-t",type:"value",valueHint:"number"},{flag:"-a",type:"boolean"}],stdinType:"text",needsFiles:!0}}});var unexpand_YD5BWFH4_exports={};__export(unexpand_YD5BWFH4_exports,{flagsForFuzzing:()=>T9,unexpand:()=>I10});import{createRequire as createRequire99}from"node:module";var require100,init_unexpand_YD5BWFH4=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/unexpand-YD5BWFH4.js"(){init_chunk_2VWG4LDT();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require100=createRequire99(import.meta.url)}});import{createRequire as createRequire100}from"node:module";function N9(i22){return i22>=32&&i22<=126||i22===9}function S8(i22,s10){if(s10===null)return"";switch(s10){case"o":return`${i22.toString(8).padStart(7," ")} `;case"x":return`${i22.toString(16).padStart(7," ")} `;case"d":return`${i22.toString(10).padStart(7," ")} `;default:return s10}}function $15(i22,s10,n10,f15=!1,r7){let u15=[],a14=0,l12=0,t8=typeof i22=="string"&&!f15?new TextEncoder().encode(i22):i22;if(t8.length>n10.maxStringLength-n10.inputBytes)throw new f2(`strings: aggregate input size limit exceeded (${n10.maxStringLength} bytes)`,"string_length");n10.inputBytes+=t8.length;let e8=new TextDecoder,g13=(o13,c18)=>typeof t8=="string"?t8.slice(o13,c18):e8.decode(t8.subarray(o13,c18)),h18=o13=>{if(++n10.iterations>n10.maxIterations)throw new f2(`strings: iteration limit exceeded (${n10.maxIterations})`,"iterations");if(n10.resultCount>=n10.maxArrayElements)throw new f2(`strings: array element limit exceeded (${n10.maxArrayElements})`,"array_elements");let c18=o13.length+1;if(c18>n10.maxOutputSize-n10.outputBytes)throw new f2(`strings: output size limit exceeded (${n10.maxOutputSize} bytes)`,"output_size");u15.push(o13),n10.resultCount++,n10.outputBytes+=c18};for(let o13=0;o13<t8.length;o13++){if((o13&4095)===0&&r7?.aborted)throw new $;let c18=typeof t8=="string"?t8.charCodeAt(o13)&255:t8[o13];if(N9(c18)){if(a14===0&&(l12=o13),a14>=n10.maxStringLength)throw new f2(`strings: string length limit exceeded (${n10.maxStringLength} bytes)`,"string_length");a14++}else{if(a14>=s10.minLength){let w15=S8(l12,s10.offsetFormat);h18(`${w15}${g13(l12,o13)}`)}a14=0}}if(a14>=s10.minLength){let o13=S8(l12,s10.offsetFormat);h18(`${o13}${g13(l12,t8.length)}`)}return u15}var require101,L11,E12,F12,init_chunk_AFFAMSJT=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-AFFAMSJT.js"(){init_chunk_EFORKKSH();init_chunk_QAYAQNCG();require101=createRequire100(import.meta.url),L11={name:"strings",summary:"print the sequences of printable characters in files",usage:"strings [OPTION]... [FILE]...",description:"For each FILE, print the printable character sequences that are at least MIN characters long. If no FILE is specified, standard input is read.",options:["-n MIN Print sequences of at least MIN characters (default: 4)","-t FORMAT Print offset before each string (o=octal, x=hex, d=decimal)","-a Scan the entire file (default behavior)","-e ENCODING Select character encoding (s=7-bit, S=8-bit)"],examples:["strings file.bin # Extract strings (min 4 chars)","strings -n 8 file.bin # Extract strings (min 8 chars)","strings -t x file.bin # Show hex offset","echo 'hello' | strings # Read from stdin"]};E12={name:"strings",execute:async(i22,s10)=>{if(o5(i22))return s5(L11);let n10={minLength:4,offsetFormat:null},f15=[],r7=0;for(;r7<i22.length;){let t8=i22[r7];if(t8==="-n"&&r7+1<i22.length){let e8=Number.parseInt(i22[r7+1],10);if(Number.isNaN(e8)||e8<1)return{exitCode:1,stdout:"",stderr:`strings: invalid minimum string length: '${i22[r7+1]}'
473
473
  `};n10.minLength=e8,r7+=2}else if(t8.match(/^-n\d+$/)){let e8=Number.parseInt(t8.slice(2),10);if(Number.isNaN(e8)||e8<1)return{exitCode:1,stdout:"",stderr:`strings: invalid minimum string length: '${t8.slice(2)}'
474
474
  `};n10.minLength=e8,r7++}else if(t8.match(/^-\d+$/)){let e8=Number.parseInt(t8.slice(1),10);if(Number.isNaN(e8)||e8<1)return{exitCode:1,stdout:"",stderr:`strings: invalid minimum string length: '${t8.slice(1)}'
475
475
  `};n10.minLength=e8,r7++}else if(t8==="-t"&&r7+1<i22.length){let e8=i22[r7+1];if(e8!=="o"&&e8!=="x"&&e8!=="d")return{exitCode:1,stdout:"",stderr:`strings: invalid radix: '${e8}'
@@ -481,7 +481,7 @@ Try 'comm --help' for more information.
481
481
  `:""}else for(let t8 of f15){let e8;if(t8==="-")e8=l12();else{let h18=s10.fs.resolvePath(s10.cwd,t8);try{e8=await s10.fs.readFileBuffer(h18)}catch{return{exitCode:1,stdout:u15,stderr:`strings: ${t8}: No such file or directory
482
482
  `}}}let g13=$15(e8,n10,a14,typeof e8=="string",s10.signal);g13.length>0&&(u15+=`${g13.join(`
483
483
  `)}
484
- `)}return{exitCode:0,stdout:u15,stderr:""}}},F12={name:"strings",flags:[{flag:"-n",type:"value",valueHint:"number"},{flag:"-t",type:"value",valueHint:"string"},{flag:"-a",type:"boolean"},{flag:"-e",type:"value",valueHint:"string"}],stdinType:"text",needsFiles:!0}}});var strings_WTD7Q2EF_exports={};__export(strings_WTD7Q2EF_exports,{flagsForFuzzing:()=>F12,strings:()=>E12});import{createRequire as createRequire101}from"node:module";var require102,init_strings_WTD7Q2EF=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/strings-WTD7Q2EF.js"(){init_chunk_AFFAMSJT();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require102=createRequire101(import.meta.url)}});import{createRequire as createRequire102}from"node:module";function U5(e8){return Uint8Array.from(e8,t8=>t8.charCodeAt(0))}function N10(e8){let t8=e8.match(/^(\d+)([KMGTPEZY]?)([B]?)$/i);if(!t8)return null;let i22=Number(t8[1]);if(!Number.isSafeInteger(i22)||i22<1)return null;let u15=(t8[2]||"").toUpperCase(),a14=new Map([["",1],["K",1024],["M",1024*1024],["G",1024*1024*1024],["T",1024*1024*1024*1024],["P",1024*1024*1024*1024*1024]]).get(u15);return a14===void 0||i22>Math.floor(Number.MAX_SAFE_INTEGER/a14)?null:i22*a14}function x15(e8){if(!/^[0-9]+$/.test(e8))return null;let t8=Number(e8);return Number.isSafeInteger(t8)&&t8>=1?t8:null}function H12(e8,t8,i22){if(t8)return e8.toString().padStart(i22,"0");let u15="abcdefghijklmnopqrstuvwxyz",n10=new Array(i22),a14=e8;for(let o13=i22-1;o13>=0;o13--)n10[o13]=u15[a14%26],a14=Math.floor(a14/26);return n10.join("")}function B9(e8,t8){let i22=[],u15=0,n10=0;for(let a14=0;a14<e8.length;a14++)e8[a14]===10&&(n10++,n10===t8&&(i22.push(e8.subarray(u15,a14+1)),u15=a14+1,n10=0));return u15<e8.length&&i22.push(e8.subarray(u15)),i22}function T10(e8,t8){let i22=[];for(let u15=0;u15<e8.length;u15+=t8)i22.push(e8.subarray(u15,u15+t8));return i22}function X7(e8,t8){let i22=[],u15=Math.ceil(e8.length/t8);for(let n10=0;n10<t8;n10++){let a14=n10*u15,o13=Math.min(a14+u15,e8.length);a14<o13&&i22.push(e8.subarray(a14,o13))}return i22}function z7(e8,t8){let i22=e8?10**t8:26**t8;return Number.isSafeInteger(i22)?i22:Number.MAX_SAFE_INTEGER}function G7(e8){if(e8.existence!=="unknown")return e8.existence==="existing"?e8.stableIdentity:e8.canonicalPath===void 0?void 0:`missing:${e8.canonicalPath}`}function I11(e8,t8){return e8.existence!==t8.existence||e8.existence==="unknown"||t8.existence==="unknown"?!1:e8.existence==="missing"&&t8.existence==="missing"?e8.canonicalPath===t8.canonicalPath:e8.existence==="existing"&&t8.existence==="existing"?e8.stableIdentity!==void 0&&e8.stableIdentity===t8.stableIdentity:!1}async function M10(e8,t8,i22){let u15=t8.lastIndexOf("/"),n10=u15<=0?"/":t8.slice(0,u15),a14=t8.slice(u15+1);for(let o13=0;o13<100;o13++){let d11=_7++,c18=e8.fs.resolvePath(n10,`.${a14}.just-bash-split-${i22}-${d11}`),p16=await f9(e8.fs,c18);if(p16.existence==="missing")return c18;if(p16.existence==="unknown")break}throw new Error("unable to allocate transaction path")}var require103,A6,S9,_7,Z4,Y6,init_chunk_5QWGR2WA=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-5QWGR2WA.js"(){init_chunk_U7UNEMLJ();init_chunk_2WBUTDF5();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();require103=createRequire102(import.meta.url),A6={name:"split",summary:"split a file into pieces",usage:"split [OPTION]... [FILE [PREFIX]]",description:"Output pieces of FILE to PREFIXaa, PREFIXab, ...; default size is 1000 lines, and default PREFIX is 'x'.",options:["-l N Put N lines per output file","-b SIZE Put SIZE bytes per output file (K, M, G suffixes)","-n CHUNKS Split into CHUNKS equal-sized files","-d Use numeric suffixes (00, 01, ...) instead of alphabetic","-a LENGTH Use suffixes of length LENGTH (default: 2)","--additional-suffix=SUFFIX Append SUFFIX to file names"],examples:["split -l 100 file.txt # Split into 100-line chunks","split -b 1M file.bin # Split into 1MB chunks","split -n 5 file.txt # Split into 5 equal parts","split -d file.txt part_ # part_00, part_01, ...","split -a 3 -d file.txt x # x000, x001, ..."]},S9=1e5,_7=0;Z4={name:"split",execute:async(e8,t8)=>{if(o5(e8))return s5(A6);let i22={mode:"lines",lines:1e3,bytes:0,chunks:0,useNumericSuffix:!1,suffixLength:2,additionalSuffix:""},u15=[],n10=0;for(;n10<e8.length;){let s10=e8[n10];if(s10==="-l"&&n10+1<e8.length){let l12=x15(e8[n10+1]);if(l12===null)return{exitCode:1,stdout:"",stderr:`split: invalid number of lines: '${e8[n10+1]}'
484
+ `)}return{exitCode:0,stdout:u15,stderr:""}}},F12={name:"strings",flags:[{flag:"-n",type:"value",valueHint:"number"},{flag:"-t",type:"value",valueHint:"string"},{flag:"-a",type:"boolean"},{flag:"-e",type:"value",valueHint:"string"}],stdinType:"text",needsFiles:!0}}});var strings_WTD7Q2EF_exports={};__export(strings_WTD7Q2EF_exports,{flagsForFuzzing:()=>F12,strings:()=>E12});import{createRequire as createRequire101}from"node:module";var require102,init_strings_WTD7Q2EF=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/strings-WTD7Q2EF.js"(){init_chunk_AFFAMSJT();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require102=createRequire101(import.meta.url)}});import{createRequire as createRequire102}from"node:module";function U5(e8){return Uint8Array.from(e8,t8=>t8.charCodeAt(0))}function N10(e8){let t8=e8.match(/^(\d+)([KMGTPEZY]?)([B]?)$/i);if(!t8)return null;let i22=Number(t8[1]);if(!Number.isSafeInteger(i22)||i22<1)return null;let u15=(t8[2]||"").toUpperCase(),a14=new Map([["",1],["K",1024],["M",1024*1024],["G",1024*1024*1024],["T",1024*1024*1024*1024],["P",1024*1024*1024*1024*1024]]).get(u15);return a14===void 0||i22>Math.floor(Number.MAX_SAFE_INTEGER/a14)?null:i22*a14}function x15(e8){if(!/^[0-9]+$/.test(e8))return null;let t8=Number(e8);return Number.isSafeInteger(t8)&&t8>=1?t8:null}function H12(e8,t8,i22){if(t8)return e8.toString().padStart(i22,"0");let u15="abcdefghijklmnopqrstuvwxyz",n10=new Array(i22),a14=e8;for(let o13=i22-1;o13>=0;o13--)n10[o13]=u15[a14%26],a14=Math.floor(a14/26);return n10.join("")}function B9(e8,t8){let i22=[],u15=0,n10=0;for(let a14=0;a14<e8.length;a14++)e8[a14]===10&&(n10++,n10===t8&&(i22.push(e8.subarray(u15,a14+1)),u15=a14+1,n10=0));return u15<e8.length&&i22.push(e8.subarray(u15)),i22}function T10(e8,t8){let i22=[];for(let u15=0;u15<e8.length;u15+=t8)i22.push(e8.subarray(u15,u15+t8));return i22}function X7(e8,t8){let i22=[],u15=Math.ceil(e8.length/t8);for(let n10=0;n10<t8;n10++){let a14=n10*u15,o13=Math.min(a14+u15,e8.length);a14<o13&&i22.push(e8.subarray(a14,o13))}return i22}function z7(e8,t8){let i22=e8?10**t8:26**t8;return Number.isSafeInteger(i22)?i22:Number.MAX_SAFE_INTEGER}function G7(e8){if(e8.existence!=="unknown")return e8.existence==="existing"?e8.stableIdentity:e8.canonicalPath===void 0?void 0:`missing:${e8.canonicalPath}`}function I11(e8,t8){return e8.existence!==t8.existence||e8.existence==="unknown"||t8.existence==="unknown"?!1:e8.existence==="missing"&&t8.existence==="missing"?e8.canonicalPath===t8.canonicalPath:e8.existence==="existing"&&t8.existence==="existing"?e8.stableIdentity!==void 0&&e8.stableIdentity===t8.stableIdentity:!1}async function M10(e8,t8,i22){let u15=t8.lastIndexOf("/"),n10=u15<=0?"/":t8.slice(0,u15),a14=t8.slice(u15+1);for(let o13=0;o13<100;o13++){let d11=_7++,c18=e8.fs.resolvePath(n10,`.${a14}.just-bash-split-${i22}-${d11}`),p16=await f9(e8.fs,c18);if(p16.existence==="missing")return c18;if(p16.existence==="unknown")break}throw new Error("unable to allocate transaction path")}var require103,A6,S9,_7,Z4,Y6,init_chunk_5QWGR2WA=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-5QWGR2WA.js"(){init_chunk_U7UNEMLJ();init_chunk_2WBUTDF5();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();require103=createRequire102(import.meta.url),A6={name:"split",summary:"split a file into pieces",usage:"split [OPTION]... [FILE [PREFIX]]",description:"Output pieces of FILE to PREFIXaa, PREFIXab, ...; default size is 1000 lines, and default PREFIX is 'x'.",options:["-l N Put N lines per output file","-b SIZE Put SIZE bytes per output file (K, M, G suffixes)","-n CHUNKS Split into CHUNKS equal-sized files","-d Use numeric suffixes (00, 01, ...) instead of alphabetic","-a LENGTH Use suffixes of length LENGTH (default: 2)","--additional-suffix=SUFFIX Append SUFFIX to file names"],examples:["split -l 100 file.txt # Split into 100-line chunks","split -b 1M file.bin # Split into 1MB chunks","split -n 5 file.txt # Split into 5 equal parts","split -d file.txt part_ # part_00, part_01, ...","split -a 3 -d file.txt x # x000, x001, ..."]},S9=1e5,_7=0;Z4={name:"split",execute:async(e8,t8)=>{if(o5(e8))return s5(A6);let i22={mode:"lines",lines:1e3,bytes:0,chunks:0,useNumericSuffix:!1,suffixLength:2,additionalSuffix:""},u15=[],n10=0;for(;n10<e8.length;){let s10=e8[n10];if(s10==="-l"&&n10+1<e8.length){let l12=x15(e8[n10+1]);if(l12===null)return{exitCode:1,stdout:"",stderr:`split: invalid number of lines: '${e8[n10+1]}'
485
485
  `};i22.mode="lines",i22.lines=l12,n10+=2}else if(s10.match(/^-l\d+$/)){let l12=x15(s10.slice(2));if(l12===null)return{exitCode:1,stdout:"",stderr:`split: invalid number of lines: '${s10.slice(2)}'
486
486
  `};i22.mode="lines",i22.lines=l12,n10++}else if(s10==="-b"&&n10+1<e8.length){let l12=N10(e8[n10+1]);if(l12===null)return{exitCode:1,stdout:"",stderr:`split: invalid number of bytes: '${e8[n10+1]}'
487
487
  `};i22.mode="bytes",i22.bytes=l12,n10+=2}else if(s10.match(/^-b.+$/)){let l12=N10(s10.slice(2));if(l12===null)return{exitCode:1,stdout:"",stderr:`split: invalid number of bytes: '${s10.slice(2)}'
@@ -500,14 +500,14 @@ Try 'comm --help' for more information.
500
500
  `};if(w15!==void 0&&P17.has(w15))return{exitCode:1,stdout:"",stderr:`split: duplicate output file '${b23}'
501
501
  `};if(f15!==null&&(f15.existence==="existing"&&g13.existence==="existing"&&f15.stableIdentity!==void 0&&f15.stableIdentity===g13.stableIdentity||f15.canonicalPath!==void 0&&f15.canonicalPath===g13.canonicalPath))return{exitCode:1,stdout:"",stderr:`split: output file '${b23}' would overwrite input
502
502
  `};w15!==void 0&&P17.add(w15),m16.push({path:v13,displayName:b23,content:s10[r7],initialIdentity:g13,stagePath:"",committed:!1})}try{for(let r7 of m16)r7.stagePath=await M10(t8,r7.path,"stage"),await t8.fs.writeFile(r7.stagePath,r7.content);if(c18!==null&&f15!==null&&!I11(f15,await f9(t8.fs,c18)))throw new Error("input identity changed during split");for(let r7 of m16){let y14=await f9(t8.fs,r7.path);if(!I11(r7.initialIdentity,y14))throw new Error("output identity changed during split");if(f15?.existence==="existing"&&y14.existence==="existing"&&f15.stableIdentity===y14.stableIdentity)throw new Error("output aliases input")}for(let r7 of m16){if(!I11(r7.initialIdentity,await f9(t8.fs,r7.path)))throw new Error("output identity changed during split");r7.initialIdentity.existence==="existing"&&(r7.backupPath=await M10(t8,r7.path,"backup"),await t8.fs.mv(r7.path,r7.backupPath)),await t8.fs.mv(r7.stagePath,r7.path),r7.committed=!0}for(let r7 of m16)r7.backupPath&&(await t8.fs.rm(r7.backupPath,{force:!0,recursive:!0}).catch(()=>{}),r7.backupPath=void 0)}catch{for(let r7 of[...m16].reverse())r7.committed&&await t8.fs.rm(r7.path,{force:!0,recursive:!0}).catch(()=>{}),r7.backupPath&&await t8.fs.mv(r7.backupPath,r7.path).catch(()=>{}),r7.stagePath&&await t8.fs.rm(r7.stagePath,{force:!0,recursive:!0}).catch(()=>{});return{exitCode:1,stdout:"",stderr:`split: failed to write output
503
- `}}return{exitCode:0,stdout:"",stderr:""}}finally{p16?.release()}}},Y6={name:"split",flags:[{flag:"-l",type:"value",valueHint:"number"},{flag:"-b",type:"value",valueHint:"string"},{flag:"-n",type:"value",valueHint:"number"},{flag:"-d",type:"boolean"},{flag:"-a",type:"value",valueHint:"number"}],needsFiles:!0}}});var split_6R2TSQY6_exports={};__export(split_6R2TSQY6_exports,{flagsForFuzzing:()=>Y6,split:()=>Z4});import{createRequire as createRequire103}from"node:module";var require104,init_split_6R2TSQY6=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/split-6R2TSQY6.js"(){init_chunk_5QWGR2WA();init_chunk_U7UNEMLJ();init_chunk_CBM6J4AL();init_chunk_2WBUTDF5();init_chunk_YUSFCOM7();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_FOCWZZDE();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require104=createRequire103(import.meta.url)}});import{createRequire as createRequire104}from"node:module";function $16(t8,e8,i22,l12){return e8?i22?t8.split(e8,l12):t8.split(e8,l12).filter(n10=>n10.length>0):i22?t8.split(/[ \t]/,l12):t8.split(/[ \t]+/,l12).filter(n10=>n10.length>0)}function T11(t8){let e8=[];for(let i22 of t8)for(let l12=0;l12<i22.length;l12++){let n10=i22[l12].length;(e8[l12]===void 0||n10>e8[l12])&&(e8[l12]=n10)}return e8}function W4(t8,e8,i22){if(t8.length===0)return"";let l12=T11(t8),n10=new u5(i22,"column",void 0,1);for(let c18=0;c18<t8.length;c18++){let r7=t8[c18];c18>0&&n10.append(`
503
+ `}}return{exitCode:0,stdout:"",stderr:""}}finally{p16?.release()}}},Y6={name:"split",flags:[{flag:"-l",type:"value",valueHint:"number"},{flag:"-b",type:"value",valueHint:"string"},{flag:"-n",type:"value",valueHint:"number"},{flag:"-d",type:"boolean"},{flag:"-a",type:"value",valueHint:"number"}],needsFiles:!0}}});var split_6R2TSQY6_exports={};__export(split_6R2TSQY6_exports,{flagsForFuzzing:()=>Y6,split:()=>Z4});import{createRequire as createRequire103}from"node:module";var require104,init_split_6R2TSQY6=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/split-6R2TSQY6.js"(){init_chunk_5QWGR2WA();init_chunk_U7UNEMLJ();init_chunk_CBM6J4AL();init_chunk_2WBUTDF5();init_chunk_YUSFCOM7();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_FOCWZZDE();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require104=createRequire103(import.meta.url)}});import{createRequire as createRequire104}from"node:module";function $16(t8,e8,i22,l12){return e8?i22?t8.split(e8,l12):t8.split(e8,l12).filter(n10=>n10.length>0):i22?t8.split(/[ \t]/,l12):t8.split(/[ \t]+/,l12).filter(n10=>n10.length>0)}function T11(t8){let e8=[];for(let i22 of t8)for(let l12=0;l12<i22.length;l12++){let n10=i22[l12].length;(e8[l12]===void 0||n10>e8[l12])&&(e8[l12]=n10)}return e8}function W4(t8,e8,i22){if(t8.length===0)return"";let l12=T11(t8),n10=new u5(i22,"column",void 0,1);for(let c18=0;c18<t8.length;c18++){let r7=t8[c18];c18>0&&n10.append(`
504
504
  `);for(let o13=0;o13<r7.length;o13++)o13>0&&n10.append(e8),n10.append(r7[o13]),o13<r7.length-1&&n10.repeat(" ",l12[o13]-r7[o13].length)}return n10.build()}function z8(t8,e8,i22,l12){if(t8.length===0)return"";let n10=0;for(let s10 of t8)n10=Math.max(n10,s10.length);let c18=i22.length,r7=n10+c18,o13=Math.max(1,Math.floor((e8+c18)/r7)),b23=Math.ceil(t8.length/o13),d11=new u5(l12,"column",void 0,1);for(let s10=0;s10<b23;s10++){s10>0&&d11.append(`
505
- `);let u15=!1;for(let h18=0;h18<o13;h18++){let a14=h18*b23+s10;a14<t8.length&&(h18===o13-1||(h18+1)*b23+s10>=t8.length?(u15&&d11.append(i22),d11.append(t8[a14])):(u15&&d11.append(i22),d11.append(t8[a14]),d11.repeat(" ",n10-t8[a14].length)),u15=!0)}}return d11.build()}var require105,H13,M11,R8,j13,init_chunk_VDJ53ESK=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-VDJ53ESK.js"(){init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();require105=createRequire104(import.meta.url),H13={name:"column",summary:"columnate lists",usage:"column [OPTION]... [FILE]...",description:"Format input into multiple columns. By default, fills rows first. Use -t to create a table based on whitespace-delimited input.",options:["-t Create a table (determine columns from input)","-s SEP Input field delimiter (default: whitespace)","-o SEP Output field delimiter (default: two spaces)","-c WIDTH Output width for fill mode (default: 80)","-n Don't merge multiple adjacent delimiters"],examples:["ls | column # Fill columns with ls output","cat data | column -t # Format as table","column -t -s ',' file # Format CSV as table","column -c 40 file # Fill 40-char wide columns"]},M11={table:{short:"t",long:"table",type:"boolean"},separator:{short:"s",type:"string"},outputSep:{short:"o",type:"string"},width:{short:"c",type:"number",default:80},noMerge:{short:"n",type:"boolean"}};R8={name:"column",execute:async(t8,e8)=>{if(o5(t8))return s5(H13);let i22=x5("column",t8,M11);if(!i22.ok)return i22.error;let{table:l12,separator:n10,outputSep:c18,width:r7,noMerge:o13}=i22.result.flags,b23=i22.result.positional,d11=c18??" ",s10=Math.min(e8.limits.maxInputBytes,e8.limits.maxStringLength),u15=e8.limits.maxArrayElements,h18=Math.min(e8.limits.maxStringLength,e8.limits.maxOutputSize);if(!Number.isFinite(r7)||!Number.isSafeInteger(r7)||r7<=0||r7>10*1024*1024)return{exitCode:1,stdout:"",stderr:`column: invalid width: ${r7}
505
+ `);let u15=!1;for(let h18=0;h18<o13;h18++){let a14=h18*b23+s10;a14<t8.length&&(h18===o13-1||(h18+1)*b23+s10>=t8.length?(u15&&d11.append(i22),d11.append(t8[a14])):(u15&&d11.append(i22),d11.append(t8[a14]),d11.repeat(" ",n10-t8[a14].length)),u15=!0)}}return d11.build()}var require105,H13,M11,R8,j13,init_chunk_VDJ53ESK=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-VDJ53ESK.js"(){init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();require105=createRequire104(import.meta.url),H13={name:"column",summary:"columnate lists",usage:"column [OPTION]... [FILE]...",description:"Format input into multiple columns. By default, fills rows first. Use -t to create a table based on whitespace-delimited input.",options:["-t Create a table (determine columns from input)","-s SEP Input field delimiter (default: whitespace)","-o SEP Output field delimiter (default: two spaces)","-c WIDTH Output width for fill mode (default: 80)","-n Don't merge multiple adjacent delimiters"],examples:["ls | column # Fill columns with ls output","cat data | column -t # Format as table","column -t -s ',' file # Format CSV as table","column -c 40 file # Fill 40-char wide columns"]},M11={table:{short:"t",long:"table",type:"boolean"},separator:{short:"s",type:"string"},outputSep:{short:"o",type:"string"},width:{short:"c",type:"number",default:80},noMerge:{short:"n",type:"boolean"}};R8={name:"column",execute:async(t8,e8)=>{if(o5(t8))return s5(H13);let i22=x5("column",t8,M11);if(!i22.ok)return i22.error;let{table:l12,separator:n10,outputSep:c18,width:r7,noMerge:o13}=i22.result.flags,b23=i22.result.positional,d11=c18??" ",s10=Math.min(e8.limits.maxInputBytes,e8.limits.maxStringLength),u15=e8.limits.maxArrayElements,h18=Math.min(e8.limits.maxStringLength,e8.limits.maxOutputSize);if(!Number.isFinite(r7)||!Number.isSafeInteger(r7)||r7<=0||r7>10*1024*1024)return{exitCode:1,stdout:"",stderr:`column: invalid width: ${r7}
506
506
  `};let a14;if(b23.length===0)a14=a2(e8.stdin)??"";else{let f15=[],m16=0;for(let g13 of b23)if(g13==="-"){let p16=a2(e8.stdin)??"";if(m16+=x(p16),m16>s10)throw new f2(`column: input size limit exceeded (${s10} bytes)`,"string_length");f15.push(p16)}else{let p16=e8.fs.resolvePath(e8.cwd,g13),w15=await e8.fs.readFile(p16);if(w15===null)return{exitCode:1,stdout:"",stderr:`column: ${g13}: No such file or directory
507
507
  `};if(m16+=x(w15),m16>s10)throw new f2(`column: input size limit exceeded (${s10} bytes)`,"string_length");f15.push(w15)}a14=f15.join("")}if(x(a14)>s10)throw new f2(`column: input size limit exceeded (${s10} bytes)`,"string_length");if(a14===""||a14.trim()==="")return{exitCode:0,stdout:"",stderr:""};let x23=a14.split(`
508
508
  `,u15+1);if(x23.length>u15)throw new f2(`column: field limit exceeded (${u15})`,"array_elements");a14.endsWith(`
509
509
  `)&&x23[x23.length-1]===""&&x23.pop();let S15=x23.filter(f15=>f15.trim().length>0),F24;if(l12){let f15=[],m16=0;for(let g13 of S15){let p16=u15-m16,w15=$16(g13,n10,o13,p16+1);if(m16+=w15.length,m16>u15)throw new f2(`column: field limit exceeded (${u15})`,"array_elements");f15.push(w15)}F24=W4(f15,d11,h18)}else{let f15=[];for(let m16 of S15){let g13=u15-f15.length,p16=$16(m16,n10,o13,g13+1);if(p16.length>g13)throw new f2(`column: field limit exceeded (${u15})`,"array_elements");for(let w15 of p16)f15.push(w15)}F24=z8(f15,r7,d11,h18)}return F24.length>0&&(F24+=`
510
- `),{exitCode:0,stdout:F24,stderr:""}}},j13={name:"column",flags:[{flag:"-t",type:"boolean"},{flag:"-s",type:"value",valueHint:"delimiter"},{flag:"-o",type:"value",valueHint:"string"},{flag:"-c",type:"value",valueHint:"number"},{flag:"-n",type:"boolean"}],stdinType:"text",needsFiles:!0}}});var column_F5JDBRV6_exports={};__export(column_F5JDBRV6_exports,{column:()=>R8,flagsForFuzzing:()=>j13});import{createRequire as createRequire105}from"node:module";var require106,init_column_F5JDBRV6=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/column-F5JDBRV6.js"(){init_chunk_VDJ53ESK();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require106=createRequire105(import.meta.url)}});import{createRequire as createRequire106}from"node:module";function A7(i22,l12){return l12?i22.split(l12):i22.split(/[ \t]+/).filter(n10=>n10.length>0)}function B10(i22,l12,n10,a14){let t8=A7(i22,l12),r7=t8[n10-1]??"";return a14&&(r7=r7.toLowerCase()),{fields:t8,joinKey:r7,original:i22}}function I12(i22,l12,n10){let a14=n10.separator??" ";if(n10.outputFormat){let s10=[];for(let{file:c18,field:d11}of n10.outputFormat){let f15=c18===1?i22:l12;f15&&d11===0?s10.push(f15.joinKey):f15&&f15.fields[d11-1]!==void 0?s10.push(f15.fields[d11-1]):s10.push(n10.emptyString)}return s10.join(a14)}let t8=[],r7=i22?.joinKey??l12?.joinKey??"";if(t8.push(r7),i22)for(let s10=0;s10<i22.fields.length;s10++)s10!==n10.field1-1&&t8.push(i22.fields[s10]);if(l12)for(let s10=0;s10<l12.fields.length;s10++)s10!==n10.field2-1&&t8.push(l12.fields[s10]);return t8.join(a14)}function z9(i22){let l12=i22.split(","),n10=[];for(let a14 of l12){let t8=a14.trim().match(/^(\d+)\.(\d+)$/);if(!t8)return null;let r7=Number.parseInt(t8[1],10),s10=Number.parseInt(t8[2],10);if(r7!==1&&r7!==2)return null;n10.push({file:r7,field:s10})}return n10}var require107,O12,_8,P9,init_chunk_B5Z5HTFY=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-B5Z5HTFY.js"(){init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();require107=createRequire106(import.meta.url),O12={name:"join",summary:"join lines of two files on a common field",usage:"join [OPTION]... FILE1 FILE2",description:"For each pair of input lines with identical join fields, write a line to standard output. The default join field is the first, delimited by blanks.",options:["-1 FIELD Join on this FIELD of file 1 (default: 1)","-2 FIELD Join on this FIELD of file 2 (default: 1)","-t CHAR Use CHAR as input and output field separator","-a FILENUM Also print unpairable lines from file FILENUM (1 or 2)","-v FILENUM Like -a but only output unpairable lines","-e STRING Replace missing fields with STRING","-o FORMAT Output format (comma-separated list of FILENUM.FIELD)","-i Ignore case when comparing fields"],examples:["join file1 file2 # Join on first field","join -1 2 -2 1 file1 file2 # Join file1 col 2 with file2 col 1","join -t ',' file1.csv file2.csv # Join CSV files","join -a 1 file1 file2 # Left outer join"]};_8={name:"join",execute:async(i22,l12)=>{if(o5(i22))return s5(O12);let n10={field1:1,field2:1,separator:null,printUnpairable:new Set,onlyUnpairable:new Set,emptyString:"",outputFormat:null,ignoreCase:!1},a14=[],t8=0;for(;t8<i22.length;){let e8=i22[t8];if(e8==="-1"&&t8+1<i22.length){let o13=Number.parseInt(i22[t8+1],10);if(Number.isNaN(o13)||o13<1)return{exitCode:1,stdout:"",stderr:`join: invalid field number: '${i22[t8+1]}'
510
+ `),{exitCode:0,stdout:F24,stderr:""}}},j13={name:"column",flags:[{flag:"-t",type:"boolean"},{flag:"-s",type:"value",valueHint:"delimiter"},{flag:"-o",type:"value",valueHint:"string"},{flag:"-c",type:"value",valueHint:"number"},{flag:"-n",type:"boolean"}],stdinType:"text",needsFiles:!0}}});var column_F5JDBRV6_exports={};__export(column_F5JDBRV6_exports,{column:()=>R8,flagsForFuzzing:()=>j13});import{createRequire as createRequire105}from"node:module";var require106,init_column_F5JDBRV6=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/column-F5JDBRV6.js"(){init_chunk_VDJ53ESK();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require106=createRequire105(import.meta.url)}});import{createRequire as createRequire106}from"node:module";function A7(i22,l12){return l12?i22.split(l12):i22.split(/[ \t]+/).filter(n10=>n10.length>0)}function B10(i22,l12,n10,a14){let t8=A7(i22,l12),r7=t8[n10-1]??"";return a14&&(r7=r7.toLowerCase()),{fields:t8,joinKey:r7,original:i22}}function I12(i22,l12,n10){let a14=n10.separator??" ";if(n10.outputFormat){let s10=[];for(let{file:c18,field:d11}of n10.outputFormat){let f15=c18===1?i22:l12;f15&&d11===0?s10.push(f15.joinKey):f15&&f15.fields[d11-1]!==void 0?s10.push(f15.fields[d11-1]):s10.push(n10.emptyString)}return s10.join(a14)}let t8=[],r7=i22?.joinKey??l12?.joinKey??"";if(t8.push(r7),i22)for(let s10=0;s10<i22.fields.length;s10++)s10!==n10.field1-1&&t8.push(i22.fields[s10]);if(l12)for(let s10=0;s10<l12.fields.length;s10++)s10!==n10.field2-1&&t8.push(l12.fields[s10]);return t8.join(a14)}function z9(i22){let l12=i22.split(","),n10=[];for(let a14 of l12){let t8=a14.trim().match(/^(\d+)\.(\d+)$/);if(!t8)return null;let r7=Number.parseInt(t8[1],10),s10=Number.parseInt(t8[2],10);if(r7!==1&&r7!==2)return null;n10.push({file:r7,field:s10})}return n10}var require107,O12,_8,P9,init_chunk_B5Z5HTFY=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-B5Z5HTFY.js"(){init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();require107=createRequire106(import.meta.url),O12={name:"join",summary:"join lines of two files on a common field",usage:"join [OPTION]... FILE1 FILE2",description:"For each pair of input lines with identical join fields, write a line to standard output. The default join field is the first, delimited by blanks.",options:["-1 FIELD Join on this FIELD of file 1 (default: 1)","-2 FIELD Join on this FIELD of file 2 (default: 1)","-t CHAR Use CHAR as input and output field separator","-a FILENUM Also print unpairable lines from file FILENUM (1 or 2)","-v FILENUM Like -a but only output unpairable lines","-e STRING Replace missing fields with STRING","-o FORMAT Output format (comma-separated list of FILENUM.FIELD)","-i Ignore case when comparing fields"],examples:["join file1 file2 # Join on first field","join -1 2 -2 1 file1 file2 # Join file1 col 2 with file2 col 1","join -t ',' file1.csv file2.csv # Join CSV files","join -a 1 file1 file2 # Left outer join"]};_8={name:"join",execute:async(i22,l12)=>{if(o5(i22))return s5(O12);let n10={field1:1,field2:1,separator:null,printUnpairable:new Set,onlyUnpairable:new Set,emptyString:"",outputFormat:null,ignoreCase:!1},a14=[],t8=0;for(;t8<i22.length;){let e8=i22[t8];if(e8==="-1"&&t8+1<i22.length){let o13=Number.parseInt(i22[t8+1],10);if(Number.isNaN(o13)||o13<1)return{exitCode:1,stdout:"",stderr:`join: invalid field number: '${i22[t8+1]}'
511
511
  `};n10.field1=o13,t8+=2}else if(e8==="-2"&&t8+1<i22.length){let o13=Number.parseInt(i22[t8+1],10);if(Number.isNaN(o13)||o13<1)return{exitCode:1,stdout:"",stderr:`join: invalid field number: '${i22[t8+1]}'
512
512
  `};n10.field2=o13,t8+=2}else if((e8==="-t"||e8==="--field-separator")&&t8+1<i22.length)n10.separator=i22[t8+1],t8+=2;else if(e8.startsWith("-t")&&e8.length>2)n10.separator=e8.slice(2),t8++;else if(e8==="-a"&&t8+1<i22.length){let o13=Number.parseInt(i22[t8+1],10);if(o13!==1&&o13!==2)return{exitCode:1,stdout:"",stderr:`join: invalid file number: '${i22[t8+1]}'
513
513
  `};n10.printUnpairable.add(o13),t8+=2}else if(e8.match(/^-a[12]$/))n10.printUnpairable.add(Number.parseInt(e8[2],10)),t8++;else if(e8==="-v"&&t8+1<i22.length){let o13=Number.parseInt(i22[t8+1],10);if(o13!==1&&o13!==2)return{exitCode:1,stdout:"",stderr:`join: invalid file number: '${i22[t8+1]}'
@@ -519,14 +519,14 @@ Try 'comm --help' for more information.
519
519
  `);return e8.endsWith(`
520
520
  `)&&g13[g13.length-1]===""&&g13.pop(),g13.filter(p16=>p16.length>0).map(p16=>B10(p16,n10.separator,o13,n10.ignoreCase))},K11=w15(r7[0],n10.field1),L21=w15(r7[1],n10.field2),y14=new Map;for(let e8 of L21){let o13=y14.get(e8.joinKey);o13?o13.push(e8):y14.set(e8.joinKey,[e8])}let h18=[],F24=0,j21=e8=>{if(H20(),h18.length>=s10)throw new f2(`join: array element limit exceeded (${s10})`,"array_elements");let o13=x(e8)+1;if(o13>f15-F24)throw new f2(`join: output size limit exceeded (${f15} bytes)`,"output_size");h18.push(e8),F24+=o13},N16=new Set;for(let e8 of K11){let o13=y14.get(e8.joinKey);if(o13&&o13.length>0){if(N16.add(e8.joinKey),n10.onlyUnpairable.size===0)for(let u15 of o13)j21(I12(e8,u15,n10))}else(n10.printUnpairable.has(1)||n10.onlyUnpairable.has(1))&&j21(I12(e8,null,n10))}if(n10.printUnpairable.has(2)||n10.onlyUnpairable.has(2))for(let e8 of L21)N16.has(e8.joinKey)||j21(I12(null,e8,n10));return{exitCode:0,stdout:l2(h18.length>0?`${h18.join(`
521
521
  `)}
522
- `:""),stderr:"",stdoutEncoding:"binary"}}},P9={name:"join",flags:[{flag:"-1",type:"value",valueHint:"number"},{flag:"-2",type:"value",valueHint:"number"},{flag:"-t",type:"value",valueHint:"delimiter"},{flag:"-a",type:"value",valueHint:"number"},{flag:"-v",type:"value",valueHint:"number"},{flag:"-e",type:"value",valueHint:"string"},{flag:"-o",type:"value",valueHint:"format"},{flag:"-i",type:"boolean"}],needsArgs:!0,minArgs:2}}});var join_KQ4Z5OD4_exports={};__export(join_KQ4Z5OD4_exports,{flagsForFuzzing:()=>P9,join:()=>_8});import{createRequire as createRequire107}from"node:module";var require108,init_join_KQ4Z5OD4=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/join-KQ4Z5OD4.js"(){init_chunk_B5Z5HTFY();init_chunk_6D3WD6YU();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require108=createRequire107(import.meta.url)}});import{createRequire as createRequire108}from"node:module";var require109,m8,u11,w9,b17,init_chunk_LSLPJOYM=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-LSLPJOYM.js"(){init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();require109=createRequire108(import.meta.url),m8={name:"tee",summary:"read from stdin and write to stdout and files",usage:"tee [OPTION]... [FILE]...",options:["-a, --append append to the given FILEs, do not overwrite"," --help display this help and exit"]},u11={append:{short:"a",long:"append",type:"boolean"}},w9={name:"tee",async execute(r7,e8){if(o5(r7))return s5(m8);let t8=x5("tee",r7,u11);if(!t8.ok)return t8.error;let{append:f15}=t8.result.flags,c18=t8.result.positional,o13=e8.stdin,s10="",a14=0;for(let i22 of c18)try{let n10=e8.fs.resolvePath(e8.cwd,i22);f15?await e8.fs.appendFile(n10,o13,"binary"):await e8.fs.writeFile(n10,o13,"binary")}catch{s10+=`tee: ${i22}: No such file or directory
523
- `,a14=1}return{stdout:o13,stderr:s10,exitCode:a14,stdoutEncoding:"binary"}}},b17={name:"tee",flags:[{flag:"-a",type:"boolean"}],stdinType:"text",needsArgs:!0}}});var tee_OOWSWHRQ_exports={};__export(tee_OOWSWHRQ_exports,{flagsForFuzzing:()=>b17,teeCommand:()=>w9});import{createRequire as createRequire109}from"node:module";var require110,init_tee_OOWSWHRQ=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/tee-OOWSWHRQ.js"(){init_chunk_LSLPJOYM();init_chunk_GN6CQ3J4();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require110=createRequire109(import.meta.url)}});import{createRequire as createRequire110}from"node:module";function R9(e8,t8){switch(e8.type){case"name":{let n10=e8.pattern,s10=n10.match(/^\*(\.[a-zA-Z0-9]+)$/);if(s10){let a14=s10[1],l12=t8.name;if(e8.ignoreCase){if(!l12.toLowerCase().endsWith(a14.toLowerCase()))return{matches:!1,pruned:!1,printed:!1}}else if(!l12.endsWith(a14))return{matches:!1,pruned:!1,printed:!1};return{matches:!0,pruned:!1,printed:!1}}return{matches:u9(t8.name,n10,e8.ignoreCase),pruned:!1,printed:!1}}case"path":{let n10=e8.pattern,s10=t8.relativePath,a14=n10.split("/");for(let d11=0;d11<a14.length-1;d11++){let r7=a14[d11];if(r7&&r7!=="."&&r7!==".."&&!r7.includes("*")&&!r7.includes("?")&&!r7.includes("[")){let i22=`/${r7}/`;if(e8.ignoreCase){if(!s10.toLowerCase().includes(i22.toLowerCase()))return{matches:!1,pruned:!1,printed:!1}}else if(!s10.includes(i22))return{matches:!1,pruned:!1,printed:!1}}}let l12=n10.match(/\*(\.[a-zA-Z0-9]+)$/);if(l12){let d11=l12[1];if(e8.ignoreCase){if(!s10.toLowerCase().endsWith(d11.toLowerCase()))return{matches:!1,pruned:!1,printed:!1}}else if(!s10.endsWith(d11))return{matches:!1,pruned:!1,printed:!1}}return{matches:u9(s10,n10,e8.ignoreCase),pruned:!1,printed:!1}}case"regex":try{let n10=e8.ignoreCase?"i":"";return{matches:G1(e8.pattern,n10).test(t8.relativePath),pruned:!1,printed:!1}}catch{return{matches:!1,pruned:!1,printed:!1}}case"type":return e8.fileType==="f"?{matches:t8.isFile,pruned:!1,printed:!1}:e8.fileType==="d"?{matches:t8.isDirectory,pruned:!1,printed:!1}:{matches:!1,pruned:!1,printed:!1};case"empty":return{matches:t8.isEmpty,pruned:!1,printed:!1};case"mtime":{let s10=(Date.now()-t8.mtime)/864e5,a14;return e8.comparison==="more"?a14=s10>e8.days:e8.comparison==="less"?a14=s10<e8.days:a14=Math.floor(s10)===e8.days,{matches:a14,pruned:!1,printed:!1}}case"newer":{let n10=t8.newerRefTimes.get(e8.refPath);return n10===void 0?{matches:!1,pruned:!1,printed:!1}:{matches:t8.mtime>n10,pruned:!1,printed:!1}}case"size":{let n10=e8.value;switch(e8.unit){case"c":n10=e8.value;break;case"k":n10=e8.value*1024;break;case"M":n10=e8.value*1024*1024;break;case"G":n10=e8.value*1024*1024*1024;break;case"b":n10=e8.value*512;break}let s10;return e8.comparison==="more"?s10=t8.size>n10:e8.comparison==="less"?s10=t8.size<n10:e8.unit==="b"?s10=Math.ceil(t8.size/512)===e8.value:s10=t8.size===n10,{matches:s10,pruned:!1,printed:!1}}case"perm":{let n10=t8.mode&511,s10=e8.mode&511,a14;return e8.matchType==="exact"?a14=n10===s10:e8.matchType==="all"?a14=(n10&s10)===s10:a14=(n10&s10)!==0,{matches:a14,pruned:!1,printed:!1}}case"prune":return{matches:!0,pruned:!0,printed:!1};case"action":return{matches:!0,pruned:!1,printed:!1,actions:[e8.action]};case"not":{let n10=R9(e8.expr,t8);return{matches:!n10.matches,pruned:n10.pruned,printed:!1,actions:n10.actions}}case"and":{let n10=R9(e8.left,t8);if(!n10.matches)return{matches:!1,pruned:n10.pruned,printed:!1,actions:n10.actions};let s10=R9(e8.right,t8);return{matches:s10.matches,pruned:n10.pruned||s10.pruned,printed:n10.printed||s10.printed,actions:[...n10.actions??[],...s10.actions??[]]}}case"or":{let n10=R9(e8.left,t8);if(n10.matches)return n10;let s10=R9(e8.right,t8);return{matches:s10.matches,pruned:n10.pruned||s10.pruned,printed:s10.printed,actions:[...n10.actions??[],...s10.actions??[]]}}}}function _9(e8){if(!e8)return!1;switch(e8.type){case"name":case"path":case"regex":case"type":case"prune":return!1;case"action":return!1;case"empty":case"mtime":case"newer":case"size":case"perm":return!0;case"not":return _9(e8.expr);case"and":case"or":return _9(e8.left)||_9(e8.right)}}function j14(e8){if(!e8)return!1;switch(e8.type){case"empty":return!0;case"not":return j14(e8.expr);case"and":case"or":return j14(e8.left)||j14(e8.right);default:return!1}}function Se4(e8){let t8=[],n10=s10=>{s10&&(s10.type==="newer"?t8.push(s10.refPath):s10.type==="not"?n10(s10.expr):(s10.type==="and"||s10.type==="or")&&(n10(s10.left),n10(s10.right)))};return n10(e8),t8}function J4(e8){if(!e8)return!0;switch(e8.type){case"name":case"path":case"regex":case"type":case"prune":return!0;case"action":return!1;case"empty":case"mtime":case"newer":case"size":case"perm":return!1;case"not":return J4(e8.expr);case"and":case"or":return J4(e8.left)&&J4(e8.right)}}function B11(e8,t8,n10,s10,a14){switch(e8.type){case"name":{let l12=e8.pattern,d11=l12.match(/^\*(\.[a-zA-Z0-9]+)$/);if(d11){let r7=d11[1];if(e8.ignoreCase){if(!t8.toLowerCase().endsWith(r7.toLowerCase()))return{matches:!1,pruned:!1,printed:!1}}else if(!t8.endsWith(r7))return{matches:!1,pruned:!1,printed:!1};return{matches:!0,pruned:!1,printed:!1}}return{matches:u9(t8,l12,e8.ignoreCase),pruned:!1,printed:!1}}case"path":{let l12=e8.pattern,d11=l12.split("/");for(let i22=0;i22<d11.length-1;i22++){let o13=d11[i22];if(o13&&o13!=="."&&o13!==".."&&!o13.includes("*")&&!o13.includes("?")&&!o13.includes("[")){let u15=`/${o13}/`;if(e8.ignoreCase){if(!n10.toLowerCase().includes(u15.toLowerCase()))return{matches:!1,pruned:!1,printed:!1}}else if(!n10.includes(u15))return{matches:!1,pruned:!1,printed:!1}}}let r7=l12.match(/\*(\.[a-zA-Z0-9]+)$/);if(r7){let i22=r7[1];if(e8.ignoreCase){if(!n10.toLowerCase().endsWith(i22.toLowerCase()))return{matches:!1,pruned:!1,printed:!1}}else if(!n10.endsWith(i22))return{matches:!1,pruned:!1,printed:!1}}return{matches:u9(n10,l12,e8.ignoreCase),pruned:!1,printed:!1}}case"regex":try{let l12=e8.ignoreCase?"i":"";return{matches:G1(e8.pattern,l12).test(n10),pruned:!1,printed:!1}}catch{return{matches:!1,pruned:!1,printed:!1}}case"type":return e8.fileType==="f"?{matches:s10,pruned:!1,printed:!1}:e8.fileType==="d"?{matches:a14,pruned:!1,printed:!1}:{matches:!1,pruned:!1,printed:!1};case"prune":return{matches:!0,pruned:!0,printed:!1};case"action":return{matches:!0,pruned:!1,printed:!1,actions:[e8.action]};case"not":{let l12=B11(e8.expr,t8,n10,s10,a14);return{matches:!l12.matches,pruned:l12.pruned,printed:!1,actions:l12.actions}}case"and":{let l12=B11(e8.left,t8,n10,s10,a14);if(!l12.matches)return{matches:!1,pruned:l12.pruned,printed:!1,actions:l12.actions};let d11=B11(e8.right,t8,n10,s10,a14);return{matches:d11.matches,pruned:l12.pruned||d11.pruned,printed:l12.printed||d11.printed,actions:[...l12.actions??[],...d11.actions??[]]}}case"or":{let l12=B11(e8.left,t8,n10,s10,a14);if(l12.matches)return l12;let d11=B11(e8.right,t8,n10,s10,a14);return{matches:d11.matches,pruned:l12.pruned||d11.pruned,printed:d11.printed,actions:[...l12.actions??[],...d11.actions??[]]}}default:return{matches:!1,pruned:!1,printed:!1}}}function U6(e8){if(!e8)return!1;switch(e8.type){case"prune":return!0;case"not":return U6(e8.expr);case"and":case"or":return U6(e8.left)||U6(e8.right);default:return!1}}function L12(e8){switch(e8.type){case"name":case"path":case"regex":case"type":case"prune":return!0;case"action":return!1;case"empty":case"mtime":case"newer":case"size":case"perm":return!1;case"not":return L12(e8.expr);case"and":case"or":return L12(e8.left)&&L12(e8.right)}}function Ce6(e8,t8){if(!e8||!t8.isDirectory)return{shouldPrune:!1};if(!L12(e8))return ce5(e8,t8);let n10={name:t8.name,relativePath:t8.relativePath,isFile:t8.isFile,isDirectory:t8.isDirectory,isEmpty:!1,mtime:0,size:0,mode:0,newerRefTimes:new Map};return{shouldPrune:R9(e8,n10).pruned}}function ce5(e8,t8){switch(e8.type){case"or":{if(L12(e8.left)){let n10={name:t8.name,relativePath:t8.relativePath,isFile:t8.isFile,isDirectory:t8.isDirectory,isEmpty:!1,mtime:0,size:0,mode:0,newerRefTimes:new Map};if(R9(e8.left,n10).pruned)return{shouldPrune:!0}}return ce5(e8.right,t8)}case"and":{if(L12(e8.left)&&L12(e8.right)){let n10={name:t8.name,relativePath:t8.relativePath,isFile:t8.isFile,isDirectory:t8.isDirectory,isEmpty:!1,mtime:0,size:0,mode:0,newerRefTimes:new Map};return{shouldPrune:R9(e8,n10).pruned}}if(L12(e8.left)){let n10={name:t8.name,relativePath:t8.relativePath,isFile:t8.isFile,isDirectory:t8.isDirectory,isEmpty:!1,mtime:0,size:0,mode:0,newerRefTimes:new Map};return R9(e8.left,n10).matches?ce5(e8.right,t8):{shouldPrune:!1}}return{shouldPrune:!1}}case"not":return{shouldPrune:!1};default:return{shouldPrune:!1}}}function Ee4(e8,t8){let n10=[],s10=t8,a14=r7=>({expr:null,pathIndex:s10,error:`find: missing argument to \`${r7}'
522
+ `:""),stderr:"",stdoutEncoding:"binary"}}},P9={name:"join",flags:[{flag:"-1",type:"value",valueHint:"number"},{flag:"-2",type:"value",valueHint:"number"},{flag:"-t",type:"value",valueHint:"delimiter"},{flag:"-a",type:"value",valueHint:"number"},{flag:"-v",type:"value",valueHint:"number"},{flag:"-e",type:"value",valueHint:"string"},{flag:"-o",type:"value",valueHint:"format"},{flag:"-i",type:"boolean"}],needsArgs:!0,minArgs:2}}});var join_KQ4Z5OD4_exports={};__export(join_KQ4Z5OD4_exports,{flagsForFuzzing:()=>P9,join:()=>_8});import{createRequire as createRequire107}from"node:module";var require108,init_join_KQ4Z5OD4=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/join-KQ4Z5OD4.js"(){init_chunk_B5Z5HTFY();init_chunk_6D3WD6YU();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require108=createRequire107(import.meta.url)}});import{createRequire as createRequire108}from"node:module";var require109,m8,u11,w9,b17,init_chunk_LSLPJOYM=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-LSLPJOYM.js"(){init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();require109=createRequire108(import.meta.url),m8={name:"tee",summary:"read from stdin and write to stdout and files",usage:"tee [OPTION]... [FILE]...",options:["-a, --append append to the given FILEs, do not overwrite"," --help display this help and exit"]},u11={append:{short:"a",long:"append",type:"boolean"}},w9={name:"tee",async execute(r7,e8){if(o5(r7))return s5(m8);let t8=x5("tee",r7,u11);if(!t8.ok)return t8.error;let{append:f15}=t8.result.flags,c18=t8.result.positional,o13=e8.stdin,s10="",a14=0;for(let i22 of c18)try{let n10=e8.fs.resolvePath(e8.cwd,i22);f15?await e8.fs.appendFile(n10,o13,"binary"):await e8.fs.writeFile(n10,o13,"binary")}catch{s10+=`tee: ${i22}: No such file or directory
523
+ `,a14=1}return{stdout:o13,stderr:s10,exitCode:a14,stdoutEncoding:"binary"}}},b17={name:"tee",flags:[{flag:"-a",type:"boolean"}],stdinType:"text",needsArgs:!0}}});var tee_OOWSWHRQ_exports={};__export(tee_OOWSWHRQ_exports,{flagsForFuzzing:()=>b17,teeCommand:()=>w9});import{createRequire as createRequire109}from"node:module";var require110,init_tee_OOWSWHRQ=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/tee-OOWSWHRQ.js"(){init_chunk_LSLPJOYM();init_chunk_GN6CQ3J4();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require110=createRequire109(import.meta.url)}});import{createRequire as createRequire110}from"node:module";function R9(e8,t8){switch(e8.type){case"name":{let n10=e8.pattern,s10=n10.match(/^\*(\.[a-zA-Z0-9]+)$/);if(s10){let a14=s10[1],l12=t8.name;if(e8.ignoreCase){if(!l12.toLowerCase().endsWith(a14.toLowerCase()))return{matches:!1,pruned:!1,printed:!1}}else if(!l12.endsWith(a14))return{matches:!1,pruned:!1,printed:!1};return{matches:!0,pruned:!1,printed:!1}}return{matches:u9(t8.name,n10,e8.ignoreCase),pruned:!1,printed:!1}}case"path":{let n10=e8.pattern,s10=t8.relativePath,a14=n10.split("/");for(let d11=0;d11<a14.length-1;d11++){let r7=a14[d11];if(r7&&r7!=="."&&r7!==".."&&!r7.includes("*")&&!r7.includes("?")&&!r7.includes("[")){let i22=`/${r7}/`;if(e8.ignoreCase){if(!s10.toLowerCase().includes(i22.toLowerCase()))return{matches:!1,pruned:!1,printed:!1}}else if(!s10.includes(i22))return{matches:!1,pruned:!1,printed:!1}}}let l12=n10.match(/\*(\.[a-zA-Z0-9]+)$/);if(l12){let d11=l12[1];if(e8.ignoreCase){if(!s10.toLowerCase().endsWith(d11.toLowerCase()))return{matches:!1,pruned:!1,printed:!1}}else if(!s10.endsWith(d11))return{matches:!1,pruned:!1,printed:!1}}return{matches:u9(s10,n10,e8.ignoreCase),pruned:!1,printed:!1}}case"regex":try{let n10=e8.ignoreCase?"i":"";return{matches:G1(e8.pattern,n10).test(t8.relativePath),pruned:!1,printed:!1}}catch{return{matches:!1,pruned:!1,printed:!1}}case"type":return e8.fileType==="f"?{matches:t8.isFile,pruned:!1,printed:!1}:e8.fileType==="d"?{matches:t8.isDirectory,pruned:!1,printed:!1}:{matches:!1,pruned:!1,printed:!1};case"empty":return{matches:t8.isEmpty,pruned:!1,printed:!1};case"mtime":{let s10=(Date.now()-t8.mtime)/864e5,a14;return e8.comparison==="more"?a14=s10>e8.days:e8.comparison==="less"?a14=s10<e8.days:a14=Math.floor(s10)===e8.days,{matches:a14,pruned:!1,printed:!1}}case"newer":{let n10=t8.newerRefTimes.get(e8.refPath);return n10===void 0?{matches:!1,pruned:!1,printed:!1}:{matches:t8.mtime>n10,pruned:!1,printed:!1}}case"size":{let n10=e8.value;switch(e8.unit){case"c":n10=e8.value;break;case"k":n10=e8.value*1024;break;case"M":n10=e8.value*1024*1024;break;case"G":n10=e8.value*1024*1024*1024;break;case"b":n10=e8.value*512;break}let s10;return e8.comparison==="more"?s10=t8.size>n10:e8.comparison==="less"?s10=t8.size<n10:e8.unit==="b"?s10=Math.ceil(t8.size/512)===e8.value:s10=t8.size===n10,{matches:s10,pruned:!1,printed:!1}}case"perm":{let n10=t8.mode&511,s10=e8.mode&511,a14;return e8.matchType==="exact"?a14=n10===s10:e8.matchType==="all"?a14=(n10&s10)===s10:a14=(n10&s10)!==0,{matches:a14,pruned:!1,printed:!1}}case"prune":return{matches:!0,pruned:!0,printed:!1};case"action":return{matches:!0,pruned:!1,printed:!1,actions:[e8.action]};case"not":{let n10=R9(e8.expr,t8);return{matches:!n10.matches,pruned:n10.pruned,printed:!1,actions:n10.actions}}case"and":{let n10=R9(e8.left,t8);if(!n10.matches)return{matches:!1,pruned:n10.pruned,printed:!1,actions:n10.actions};let s10=R9(e8.right,t8);return{matches:s10.matches,pruned:n10.pruned||s10.pruned,printed:n10.printed||s10.printed,actions:[...n10.actions??[],...s10.actions??[]]}}case"or":{let n10=R9(e8.left,t8);if(n10.matches)return n10;let s10=R9(e8.right,t8);return{matches:s10.matches,pruned:n10.pruned||s10.pruned,printed:s10.printed,actions:[...n10.actions??[],...s10.actions??[]]}}}}function _9(e8){if(!e8)return!1;switch(e8.type){case"name":case"path":case"regex":case"type":case"prune":return!1;case"action":return!1;case"empty":case"mtime":case"newer":case"size":case"perm":return!0;case"not":return _9(e8.expr);case"and":case"or":return _9(e8.left)||_9(e8.right)}}function j14(e8){if(!e8)return!1;switch(e8.type){case"empty":return!0;case"not":return j14(e8.expr);case"and":case"or":return j14(e8.left)||j14(e8.right);default:return!1}}function Se4(e8){let t8=[],n10=s10=>{s10&&(s10.type==="newer"?t8.push(s10.refPath):s10.type==="not"?n10(s10.expr):(s10.type==="and"||s10.type==="or")&&(n10(s10.left),n10(s10.right)))};return n10(e8),t8}function J4(e8){if(!e8)return!0;switch(e8.type){case"name":case"path":case"regex":case"type":case"prune":return!0;case"action":return!1;case"empty":case"mtime":case"newer":case"size":case"perm":return!1;case"not":return J4(e8.expr);case"and":case"or":return J4(e8.left)&&J4(e8.right)}}function B11(e8,t8,n10,s10,a14){switch(e8.type){case"name":{let l12=e8.pattern,d11=l12.match(/^\*(\.[a-zA-Z0-9]+)$/);if(d11){let r7=d11[1];if(e8.ignoreCase){if(!t8.toLowerCase().endsWith(r7.toLowerCase()))return{matches:!1,pruned:!1,printed:!1}}else if(!t8.endsWith(r7))return{matches:!1,pruned:!1,printed:!1};return{matches:!0,pruned:!1,printed:!1}}return{matches:u9(t8,l12,e8.ignoreCase),pruned:!1,printed:!1}}case"path":{let l12=e8.pattern,d11=l12.split("/");for(let i22=0;i22<d11.length-1;i22++){let o13=d11[i22];if(o13&&o13!=="."&&o13!==".."&&!o13.includes("*")&&!o13.includes("?")&&!o13.includes("[")){let u15=`/${o13}/`;if(e8.ignoreCase){if(!n10.toLowerCase().includes(u15.toLowerCase()))return{matches:!1,pruned:!1,printed:!1}}else if(!n10.includes(u15))return{matches:!1,pruned:!1,printed:!1}}}let r7=l12.match(/\*(\.[a-zA-Z0-9]+)$/);if(r7){let i22=r7[1];if(e8.ignoreCase){if(!n10.toLowerCase().endsWith(i22.toLowerCase()))return{matches:!1,pruned:!1,printed:!1}}else if(!n10.endsWith(i22))return{matches:!1,pruned:!1,printed:!1}}return{matches:u9(n10,l12,e8.ignoreCase),pruned:!1,printed:!1}}case"regex":try{let l12=e8.ignoreCase?"i":"";return{matches:G1(e8.pattern,l12).test(n10),pruned:!1,printed:!1}}catch{return{matches:!1,pruned:!1,printed:!1}}case"type":return e8.fileType==="f"?{matches:s10,pruned:!1,printed:!1}:e8.fileType==="d"?{matches:a14,pruned:!1,printed:!1}:{matches:!1,pruned:!1,printed:!1};case"prune":return{matches:!0,pruned:!0,printed:!1};case"action":return{matches:!0,pruned:!1,printed:!1,actions:[e8.action]};case"not":{let l12=B11(e8.expr,t8,n10,s10,a14);return{matches:!l12.matches,pruned:l12.pruned,printed:!1,actions:l12.actions}}case"and":{let l12=B11(e8.left,t8,n10,s10,a14);if(!l12.matches)return{matches:!1,pruned:l12.pruned,printed:!1,actions:l12.actions};let d11=B11(e8.right,t8,n10,s10,a14);return{matches:d11.matches,pruned:l12.pruned||d11.pruned,printed:l12.printed||d11.printed,actions:[...l12.actions??[],...d11.actions??[]]}}case"or":{let l12=B11(e8.left,t8,n10,s10,a14);if(l12.matches)return l12;let d11=B11(e8.right,t8,n10,s10,a14);return{matches:d11.matches,pruned:l12.pruned||d11.pruned,printed:d11.printed,actions:[...l12.actions??[],...d11.actions??[]]}}default:return{matches:!1,pruned:!1,printed:!1}}}function U6(e8){if(!e8)return!1;switch(e8.type){case"prune":return!0;case"not":return U6(e8.expr);case"and":case"or":return U6(e8.left)||U6(e8.right);default:return!1}}function L12(e8){switch(e8.type){case"name":case"path":case"regex":case"type":case"prune":return!0;case"action":return!1;case"empty":case"mtime":case"newer":case"size":case"perm":return!1;case"not":return L12(e8.expr);case"and":case"or":return L12(e8.left)&&L12(e8.right)}}function Ce6(e8,t8){if(!e8||!t8.isDirectory)return{shouldPrune:!1};if(!L12(e8))return ce5(e8,t8);let n10={name:t8.name,relativePath:t8.relativePath,isFile:t8.isFile,isDirectory:t8.isDirectory,isEmpty:!1,mtime:0,size:0,mode:0,newerRefTimes:new Map};return{shouldPrune:R9(e8,n10).pruned}}function ce5(e8,t8){switch(e8.type){case"or":{if(L12(e8.left)){let n10={name:t8.name,relativePath:t8.relativePath,isFile:t8.isFile,isDirectory:t8.isDirectory,isEmpty:!1,mtime:0,size:0,mode:0,newerRefTimes:new Map};if(R9(e8.left,n10).pruned)return{shouldPrune:!0}}return ce5(e8.right,t8)}case"and":{if(L12(e8.left)&&L12(e8.right)){let n10={name:t8.name,relativePath:t8.relativePath,isFile:t8.isFile,isDirectory:t8.isDirectory,isEmpty:!1,mtime:0,size:0,mode:0,newerRefTimes:new Map};return{shouldPrune:R9(e8,n10).pruned}}if(L12(e8.left)){let n10={name:t8.name,relativePath:t8.relativePath,isFile:t8.isFile,isDirectory:t8.isDirectory,isEmpty:!1,mtime:0,size:0,mode:0,newerRefTimes:new Map};return R9(e8.left,n10).matches?ce5(e8.right,t8):{shouldPrune:!1}}return{shouldPrune:!1}}case"not":return{shouldPrune:!1};default:return{shouldPrune:!1}}}function Ee4(e8,t8){let n10=[],s10=t8,a14=r7=>({expr:null,pathIndex:s10,error:`find: missing argument to \`${r7}'
524
524
  `}),l12=(r7,i22)=>({expr:null,pathIndex:s10,error:`find: invalid argument \`${i22}' to \`${r7}'
525
525
  `});for(;s10<e8.length;){let r7=e8[s10];if(r7==="("||r7==="\\("){n10.push({type:"lparen"}),s10++;continue}if(r7===")"||r7==="\\)"){n10.push({type:"rparen"}),s10++;continue}if(r7==="-name"){if(s10+1>=e8.length)return a14(r7);n10.push({type:"expr",expr:{type:"name",pattern:e8[++s10]}})}else if(r7==="-iname"){if(s10+1>=e8.length)return a14(r7);n10.push({type:"expr",expr:{type:"name",pattern:e8[++s10],ignoreCase:!0}})}else if(r7==="-path"){if(s10+1>=e8.length)return a14(r7);n10.push({type:"expr",expr:{type:"path",pattern:e8[++s10]}})}else if(r7==="-ipath"){if(s10+1>=e8.length)return a14(r7);n10.push({type:"expr",expr:{type:"path",pattern:e8[++s10],ignoreCase:!0}})}else if(r7==="-regex"){if(s10+1>=e8.length)return a14(r7);n10.push({type:"expr",expr:{type:"regex",pattern:e8[++s10]}})}else if(r7==="-iregex"){if(s10+1>=e8.length)return a14(r7);n10.push({type:"expr",expr:{type:"regex",pattern:e8[++s10],ignoreCase:!0}})}else if(r7==="-type"){if(s10+1>=e8.length)return a14(r7);let i22=e8[++s10];if(i22==="f"||i22==="d")n10.push({type:"expr",expr:{type:"type",fileType:i22}});else return{expr:null,pathIndex:s10,error:`find: Unknown argument to -type: ${i22}
526
526
  `}}else if(r7==="-empty")n10.push({type:"expr",expr:{type:"empty"}});else if(r7==="-mtime"){if(s10+1>=e8.length)return a14(r7);let i22=e8[++s10],o13="exact",u15=i22;if(i22.startsWith("+")?(o13="more",u15=i22.slice(1)):i22.startsWith("-")&&(o13="less",u15=i22.slice(1)),!/^\d+$/.test(u15))return l12(r7,i22);let N16=Number(u15);if(!Number.isSafeInteger(N16))return l12(r7,i22);n10.push({type:"expr",expr:{type:"mtime",days:N16,comparison:o13}})}else if(r7==="-newer"){if(s10+1>=e8.length)return a14(r7);let i22=e8[++s10];n10.push({type:"expr",expr:{type:"newer",refPath:i22}})}else if(r7==="-size"){if(s10+1>=e8.length)return a14(r7);let i22=e8[++s10],o13="exact",u15=i22;i22.startsWith("+")?(o13="more",u15=i22.slice(1)):i22.startsWith("-")&&(o13="less",u15=i22.slice(1));let N16=u15.match(/^(\d+)([ckMGb])?$/);if(!N16)return l12(r7,i22);let F24=Number(N16[1]);if(!Number.isSafeInteger(F24))return l12(r7,i22);let M20=N16[2]||"b",V10=M20==="G"?1024**3:M20==="M"?1024**2:M20==="k"?1024:M20==="b"?512:1;if(!Number.isSafeInteger(F24*V10))return l12(r7,i22);n10.push({type:"expr",expr:{type:"size",value:F24,unit:M20,comparison:o13}})}else if(r7==="-perm"){if(s10+1>=e8.length)return a14(r7);let i22=e8[++s10],o13="exact",u15=i22;if(i22.startsWith("-")?(o13="all",u15=i22.slice(1)):i22.startsWith("/")&&(o13="any",u15=i22.slice(1)),!/^[0-7]{1,4}$/.test(u15))return l12(r7,i22);let N16=Number.parseInt(u15,8);n10.push({type:"expr",expr:{type:"perm",mode:N16,matchType:o13}})}else if(r7==="-prune")n10.push({type:"expr",expr:{type:"prune"}});else if(r7==="-not"||r7==="!")n10.push({type:"not"});else if(r7==="-o"||r7==="-or")n10.push({type:"op",op:"or"});else if(r7==="-a"||r7==="-and")n10.push({type:"op",op:"and"});else if(r7==="-maxdepth"||r7==="-mindepth"){if(s10+1>=e8.length)return a14(r7);s10++}else if(r7!=="-depth")if(r7==="-exec"){let i22=[];for(s10++;s10<e8.length&&e8[s10]!==";"&&e8[s10]!=="+";)i22.push(e8[s10]),s10++;if(s10>=e8.length)return{expr:null,pathIndex:s10,error:"find: missing argument to `-exec'\n"};if(i22.length===0)return a14("-exec");let o13=e8[s10]==="+";if(o13&&(i22.at(-1)!=="{}"||i22.filter(u15=>u15==="{}").length!==1))return l12("-exec","+");n10.push({type:"expr",expr:{type:"action",action:{type:"exec",command:i22,batchMode:o13}}})}else if(r7==="-print")n10.push({type:"expr",expr:{type:"action",action:{type:"print"}}});else if(r7==="-print0")n10.push({type:"expr",expr:{type:"action",action:{type:"print0"}}});else if(r7==="-printf"){if(s10+1>=e8.length)return a14(r7);let i22=e8[++s10];n10.push({type:"expr",expr:{type:"action",action:{type:"printf",format:i22}}})}else if(r7==="-delete")n10.push({type:"expr",expr:{type:"action",action:{type:"delete"}}});else return r7.startsWith("-")?{expr:null,pathIndex:s10,error:`find: unknown predicate '${r7}'
527
527
  `}:{expr:null,pathIndex:s10,error:`find: paths must precede expression: \`${r7}'
528
528
  `};s10++}if(n10.length===0)return{expr:null,pathIndex:s10};let d11=Ne3(n10);return d11.error?{expr:null,pathIndex:s10,error:d11.error}:{expr:d11.expr,pathIndex:s10}}function Ne3(e8){let t8=0,n10;function s10(){let i22=a14();if(!i22)return null;for(;t8<e8.length;){let o13=e8[t8];if(o13.type==="op"&&o13.op==="or"){t8++;let u15=a14();if(!u15)return n10="find: expected an expression after `-o'\n",null;i22={type:"or",left:i22,right:u15}}else break}return i22}function a14(){let i22=l12();if(!i22)return null;for(;t8<e8.length;){let o13=e8[t8];if(o13.type==="op"&&o13.op==="and"){t8++;let u15=l12();if(!u15)return n10="find: expected an expression after `-a'\n",null;i22={type:"and",left:i22,right:u15}}else if(o13.type==="expr"||o13.type==="not"||o13.type==="lparen"){let u15=l12();if(!u15)return i22;i22={type:"and",left:i22,right:u15}}else break}return i22}function l12(){if(t8<e8.length&&e8[t8].type==="not"){t8++;let i22=l12();return i22?{type:"not",expr:i22}:(n10="find: expected an expression after `!'\n",null)}return d11()}function d11(){if(t8>=e8.length)return null;let i22=e8[t8];if(i22.type==="lparen"){t8++;let o13=s10();return!o13||t8>=e8.length||e8[t8].type!=="rparen"?(n10="find: missing closing `)'\n",null):(t8++,o13)}return i22.type==="expr"?(t8++,i22.expr):(i22.type,null)}let r7=s10();return!n10&&t8<e8.length&&(n10=e8[t8].type==="rparen"?"find: unexpected `)'\n":`find: invalid expression
529
- `),!n10&&r7&&ee4(r7)&&(n10="find: refusing to evaluate `-delete' under negation\n"),{expr:n10?null:r7,error:n10}}function ee4(e8,t8=!1){return e8.type==="action"?t8&&e8.action.type==="delete":e8.type==="not"?ee4(e8.expr,!t8):e8.type==="and"||e8.type==="or"?ee4(e8.left,t8)||ee4(e8.right,t8):!1}function Re2(){return{readdirCalls:0,readdirTime:0,statCalls:0,statTime:0,evalCalls:0,evalTime:0,nodeCount:0,batchCount:0,batchTime:0,earlyPrunes:0}}function Fe4(e8,t8,n10){e8({category:"find",name:"summary",durationMs:n10,details:{readdirCalls:t8.readdirCalls,readdirTimeMs:t8.readdirTime,statCalls:t8.statCalls,statTimeMs:t8.statTime,evalCalls:t8.evalCalls,evalTimeMs:t8.evalTime,nodeCount:t8.nodeCount,batchCount:t8.batchCount,batchTimeMs:t8.batchTime,earlyPrunes:t8.earlyPrunes,otherTimeMs:n10-t8.readdirTime-t8.statTime-t8.evalTime-t8.batchTime}})}function te5(e8){return e8?e8.type==="action"?[e8.action]:e8.type==="not"?te5(e8.expr):e8.type==="and"||e8.type==="or"?[...te5(e8.left),...te5(e8.right)]:[]:[]}function Ae(e8,t8){let n10=u7(e8),s10="",a14=0;for(;a14<n10.length;)if(n10[a14]==="%"&&a14+1<n10.length){if(a14++,n10[a14]==="%"){s10+="%",a14++;continue}let[l12,d11,r7]=p4(n10,a14);if(a14+=r7,a14>=n10.length){s10+="%";break}let i22=n10[a14],o13;switch(i22){case"f":o13=t8.name,a14++;break;case"h":{let u15=t8.path.lastIndexOf("/");o13=u15>0?t8.path.slice(0,u15):".",a14++;break}case"p":o13=t8.path,a14++;break;case"P":{let u15=t8.startingPoint;t8.path===u15?o13="":t8.path.startsWith(`${u15}/`)?o13=t8.path.slice(u15.length+1):u15==="."&&t8.path.startsWith("./")?o13=t8.path.slice(2):o13=t8.path,a14++;break}case"s":o13=String(t8.size),a14++;break;case"d":o13=String(t8.depth),a14++;break;case"m":o13=(t8.mode&511).toString(8),a14++;break;case"M":o13=x11(t8.mode,t8.isDirectory),a14++;break;case"t":{let u15=new Date(t8.mtime);o13=Oe3(u15),a14++;break}case"T":{if(a14+1<n10.length){let u15=n10[a14+1],N16=new Date(t8.mtime);o13=Be3(N16,u15),a14+=2}else o13="%T",a14++;break}default:s10+=`%${l12!==0||d11!==-1?`${l12}.${d11}`:""}${i22}`,a14++;continue}s10+=b6(o13,l12,d11)}else s10+=n10[a14],a14++;return s10}function Oe3(e8){let t8=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],n10=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],s10=t8[e8.getDay()],a14=n10[e8.getMonth()],l12=String(e8.getDate()).padStart(2," "),d11=String(e8.getHours()).padStart(2,"0"),r7=String(e8.getMinutes()).padStart(2,"0"),i22=String(e8.getSeconds()).padStart(2,"0"),o13=e8.getFullYear();return`${s10} ${a14} ${l12} ${d11}:${r7}:${i22} ${o13}`}function Le4(e8){let t8=typeof e8=="object"&&e8!==null&&"code"in e8&&typeof e8.code=="string"?e8.code:e8 instanceof Error?/^(E[A-Z]+)\b/.exec(e8.message)?.[1]:void 0;return t8===void 0?null:We4.get(t8)??null}function Be3(e8,t8){switch(t8){case"@":return String(e8.getTime()/1e3);case"Y":return String(e8.getFullYear());case"m":return String(e8.getMonth()+1).padStart(2,"0");case"d":return String(e8.getDate()).padStart(2,"0");case"H":return String(e8.getHours()).padStart(2,"0");case"M":return String(e8.getMinutes()).padStart(2,"0");case"S":return String(e8.getSeconds()).padStart(2,"0");case"T":return`${String(e8.getHours()).padStart(2,"0")}:${String(e8.getMinutes()).padStart(2,"0")}:${String(e8.getSeconds()).padStart(2,"0")}`;case"F":return`${e8.getFullYear()}-${String(e8.getMonth()+1).padStart(2,"0")}-${String(e8.getDate()).padStart(2,"0")}`;default:return`%T${t8}`}}var require111,ve4,ze2,nt2,We4,st2,init_chunk_YUFU7O6I=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-YUFU7O6I.js"(){init_chunk_TDD4NFYE();init_chunk_OB46N7Q7();init_chunk_J2OBOJ64();init_chunk_L2UW7DWF();init_chunk_7GA3QWJJ();init_chunk_6D3WD6YU();init_chunk_2WBUTDF5();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();require111=createRequire110(import.meta.url);ve4=500;ze2={name:"find",summary:"search for files in a directory hierarchy",usage:"find [path...] [expression]",options:["-name PATTERN file name matches shell pattern PATTERN","-iname PATTERN like -name but case insensitive","-path PATTERN file path matches shell pattern PATTERN","-ipath PATTERN like -path but case insensitive","-regex PATTERN file path matches regular expression PATTERN","-iregex PATTERN like -regex but case insensitive","-type TYPE file is of type: f (regular file), d (directory)","-empty file is empty or directory is empty","-mtime N file's data was modified N*24 hours ago","-newer FILE file was modified more recently than FILE","-size N[ckMGb] file uses N units of space (c=bytes, k=KB, M=MB, G=GB, b=512B blocks)","-perm MODE file's permission bits are exactly MODE (octal)","-perm -MODE all permission bits MODE are set","-perm /MODE any permission bits MODE are set","-maxdepth LEVELS descend at most LEVELS directories","-mindepth LEVELS do not apply tests at levels less than LEVELS","-depth process directory contents before directory itself","-prune do not descend into this directory","-not, ! negate the following expression","-a, -and logical AND (default)","-o, -or logical OR","-exec CMD {} ; execute CMD on each file ({} is replaced by filename)","-exec CMD {} + execute CMD with multiple files at once","-print print the full file name (default action)","-print0 print the full file name followed by a null character","-printf FORMAT print FORMAT with directives: %f %h %p %P %s %d %m %M %t","-delete delete found files/directories"," --help display this help and exit"]},nt2={name:"find",async execute(e8,t8){if(o5(e8))return s5(ze2);let n10=[],s10=null,a14=null,l12=!1,d11=e8.length;for(let c18=0;c18<e8.length;c18++){let f15=e8[c18];if(f15.startsWith("-")||f15==="("||f15==="\\("||f15===")"||f15==="\\)"||f15==="!"){d11=c18;break}n10.push(f15)}n10.length===0&&n10.push(".");for(let c18=d11;c18<e8.length;c18++){let f15=e8[c18];if(f15==="-exec")for(c18++;c18<e8.length&&e8[c18]!==";"&&e8[c18]!=="+";)c18++;else if(f15==="-maxdepth"||f15==="-mindepth"){let p16=e8[c18+1];if(p16===void 0||!/^\d+$/.test(p16))return{stdout:"",stderr:p16===void 0?`find: missing argument to \`${f15}'
529
+ `),!n10&&r7&&ee4(r7)&&(n10="find: refusing to evaluate `-delete' under negation\n"),{expr:n10?null:r7,error:n10}}function ee4(e8,t8=!1){return e8.type==="action"?t8&&e8.action.type==="delete":e8.type==="not"?ee4(e8.expr,!t8):e8.type==="and"||e8.type==="or"?ee4(e8.left,t8)||ee4(e8.right,t8):!1}function Re2(){return{readdirCalls:0,readdirTime:0,statCalls:0,statTime:0,evalCalls:0,evalTime:0,nodeCount:0,batchCount:0,batchTime:0,earlyPrunes:0}}function Fe4(e8,t8,n10){e8({category:"find",name:"summary",durationMs:n10,details:{readdirCalls:t8.readdirCalls,readdirTimeMs:t8.readdirTime,statCalls:t8.statCalls,statTimeMs:t8.statTime,evalCalls:t8.evalCalls,evalTimeMs:t8.evalTime,nodeCount:t8.nodeCount,batchCount:t8.batchCount,batchTimeMs:t8.batchTime,earlyPrunes:t8.earlyPrunes,otherTimeMs:n10-t8.readdirTime-t8.statTime-t8.evalTime-t8.batchTime}})}function te5(e8){return e8?e8.type==="action"?[e8.action]:e8.type==="not"?te5(e8.expr):e8.type==="and"||e8.type==="or"?[...te5(e8.left),...te5(e8.right)]:[]:[]}function Ae(e8,t8){let n10=u7(e8),s10="",a14=0;for(;a14<n10.length;)if(n10[a14]==="%"&&a14+1<n10.length){if(a14++,n10[a14]==="%"){s10+="%",a14++;continue}let[l12,d11,r7]=p4(n10,a14);if(a14+=r7,a14>=n10.length){s10+="%";break}let i22=n10[a14],o13;switch(i22){case"f":o13=t8.name,a14++;break;case"h":{let u15=t8.path.lastIndexOf("/");o13=u15>0?t8.path.slice(0,u15):".",a14++;break}case"p":o13=t8.path,a14++;break;case"P":{let u15=t8.startingPoint;t8.path===u15?o13="":t8.path.startsWith(`${u15}/`)?o13=t8.path.slice(u15.length+1):u15==="."&&t8.path.startsWith("./")?o13=t8.path.slice(2):o13=t8.path,a14++;break}case"s":o13=String(t8.size),a14++;break;case"d":o13=String(t8.depth),a14++;break;case"m":o13=(t8.mode&511).toString(8),a14++;break;case"M":o13=x11(t8.mode,t8.isDirectory),a14++;break;case"t":{let u15=new Date(t8.mtime);o13=Oe3(u15),a14++;break}case"T":{if(a14+1<n10.length){let u15=n10[a14+1],N16=new Date(t8.mtime);o13=Be3(N16,u15),a14+=2}else o13="%T",a14++;break}default:s10+=`%${l12!==0||d11!==-1?`${l12}.${d11}`:""}${i22}`,a14++;continue}s10+=b6(o13,l12,d11)}else s10+=n10[a14],a14++;return s10}function Oe3(e8){let t8=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],n10=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],s10=t8[e8.getDay()],a14=n10[e8.getMonth()],l12=String(e8.getDate()).padStart(2," "),d11=String(e8.getHours()).padStart(2,"0"),r7=String(e8.getMinutes()).padStart(2,"0"),i22=String(e8.getSeconds()).padStart(2,"0"),o13=e8.getFullYear();return`${s10} ${a14} ${l12} ${d11}:${r7}:${i22} ${o13}`}function Le4(e8){let t8=typeof e8=="object"&&e8!==null&&"code"in e8&&typeof e8.code=="string"?e8.code:e8 instanceof Error?/^(E[A-Z]+)\b/.exec(e8.message)?.[1]:void 0;return t8===void 0?null:We4.get(t8)??null}function Be3(e8,t8){switch(t8){case"@":return String(e8.getTime()/1e3);case"Y":return String(e8.getFullYear());case"m":return String(e8.getMonth()+1).padStart(2,"0");case"d":return String(e8.getDate()).padStart(2,"0");case"H":return String(e8.getHours()).padStart(2,"0");case"M":return String(e8.getMinutes()).padStart(2,"0");case"S":return String(e8.getSeconds()).padStart(2,"0");case"T":return`${String(e8.getHours()).padStart(2,"0")}:${String(e8.getMinutes()).padStart(2,"0")}:${String(e8.getSeconds()).padStart(2,"0")}`;case"F":return`${e8.getFullYear()}-${String(e8.getMonth()+1).padStart(2,"0")}-${String(e8.getDate()).padStart(2,"0")}`;default:return`%T${t8}`}}var require111,ve4,ze2,nt2,We4,st2,init_chunk_YUFU7O6I=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-YUFU7O6I.js"(){init_chunk_TDD4NFYE();init_chunk_OB46N7Q7();init_chunk_J2OBOJ64();init_chunk_L2UW7DWF();init_chunk_7GA3QWJJ();init_chunk_6D3WD6YU();init_chunk_2WBUTDF5();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();require111=createRequire110(import.meta.url);ve4=500;ze2={name:"find",summary:"search for files in a directory hierarchy",usage:"find [path...] [expression]",options:["-name PATTERN file name matches shell pattern PATTERN","-iname PATTERN like -name but case insensitive","-path PATTERN file path matches shell pattern PATTERN","-ipath PATTERN like -path but case insensitive","-regex PATTERN file path matches regular expression PATTERN","-iregex PATTERN like -regex but case insensitive","-type TYPE file is of type: f (regular file), d (directory)","-empty file is empty or directory is empty","-mtime N file's data was modified N*24 hours ago","-newer FILE file was modified more recently than FILE","-size N[ckMGb] file uses N units of space (c=bytes, k=KB, M=MB, G=GB, b=512B blocks)","-perm MODE file's permission bits are exactly MODE (octal)","-perm -MODE all permission bits MODE are set","-perm /MODE any permission bits MODE are set","-maxdepth LEVELS descend at most LEVELS directories","-mindepth LEVELS do not apply tests at levels less than LEVELS","-depth process directory contents before directory itself","-prune do not descend into this directory","-not, ! negate the following expression","-a, -and logical AND (default)","-o, -or logical OR","-exec CMD {} ; execute CMD on each file ({} is replaced by filename)","-exec CMD {} + execute CMD with multiple files at once","-print print the full file name (default action)","-print0 print the full file name followed by a null character","-printf FORMAT print FORMAT with directives: %f %h %p %P %s %d %m %M %t","-delete delete found files/directories"," --help display this help and exit"]},nt2={name:"find",async execute(e8,t8){if(o5(e8))return s5(ze2);let n10=[],s10=null,a14=null,l12=!1,d11=e8.length;for(let c18=0;c18<e8.length;c18++){let f15=e8[c18];if(f15.startsWith("-")||f15==="("||f15==="\\("||f15===")"||f15==="\\)"||f15==="!"){d11=c18;break}n10.push(f15)}n10.length===0&&n10.push(".");for(let c18=d11;c18<e8.length;c18++){let f15=e8[c18];if(f15==="-exec")for(c18++;c18<e8.length&&e8[c18]!==";"&&e8[c18]!=="+";)c18++;else if(f15==="-maxdepth"||f15==="-mindepth"){let p16=e8[c18+1];if(p16===void 0||!/^\d+$/.test(p16))return{stdout:"",stderr:p16===void 0?`find: missing argument to \`${f15}'
530
530
  `:`find: invalid argument \`${p16}' to \`${f15}'
531
531
  `,exitCode:1};let v13=Number(p16);if(!Number.isSafeInteger(v13))return{stdout:"",stderr:`find: invalid argument \`${p16}' to \`${f15}'
532
532
  `,exitCode:1};f15==="-maxdepth"?s10=v13:a14=v13,c18++}else f15==="-depth"&&(l12=!0)}let{expr:r7,error:i22}=Ee4(e8,d11);if(i22)return{stdout:"",stderr:i22,exitCode:1};let o13=te5(r7),u15=o13.length>0;o13.some(c18=>c18.type==="delete")&&(l12=!0);let N16=[],F24=0,M20=t8.executionScope?new h3(t8.executionScope,"find"):void 0,V10=[],fe8=[],Q12=0,O18=new x6({limits:t8.limits,signal:t8.signal,executionScope:t8.executionScope,site:"find"}),G14=c18=>{if(M20)M20.append("stdout",c18);else{let f15=x(c18);if(f15>t8.limits.maxOutputSize-Q12)throw new f2(`find: output size limit exceeded (${t8.limits.maxOutputSize} bytes)`,"output_size");c18&&V10.push(c18),Q12+=f15}},q11=c18=>{if(M20)M20.append("stderr",c18);else{let f15=x(c18);if(f15>t8.limits.maxOutputSize-Q12)throw new f2(`find: output size limit exceeded (${t8.limits.maxOutputSize} bytes)`,"output_size");c18&&fe8.push(c18),Q12+=f15}},De7=Se4(r7),ne9=new Map;for(let c18 of De7){let f15=t8.fs.resolvePath(t8.cwd,c18);try{let p16=await t8.fs.stat(f15);ne9.set(c18,p16.mtime?.getTime()??Date.now())}catch{}}let Me6=o13.some(c18=>{if(c18.type!=="printf")return!1;let f15=c18.format.replace(/%%/g,"");return/%[-+]?[0-9]*\.?[0-9]*(s|m|M|t|T)/.test(f15)}),Pe6=_9(r7)||Me6,xe12=j14(r7),ue9=U6(r7),$e7=J4(r7),Ie7=typeof t8.fs.readdirWithFileTypes=="function";for(let c18 of n10){let z16=function(h18){let y14={path:h18.relativePath,name:h18.name,size:h18.stat?.size??0,mtime:h18.stat?.mtime?.getTime()??Date.now(),mode:h18.stat?.mode??420,isDirectory:h18.isDirectory,depth:h18.depth,startingPoint:c18},C18=h18.unreadable===void 0?[]:[{action:{type:"diagnostic",message:`find: ${h18.relativePath}: ${h18.unreadable}
@@ -534,14 +534,14 @@ Try 'comm --help' for more information.
534
534
  `),F24=1;continue}let p16=Re2(),v13=Date.now();async function P17(h18){let{path:y14,depth:C18,typeInfo:I22}=h18;if(O18.visit(C18),p16.nodeCount++,C18>(s10??t8.limits.maxTraversalDepth))return null;let x23,g13,m16;if(I22&&!Pe6)x23=I22.isFile,g13=I22.isDirectory;else{try{let W12=Date.now();m16=await t8.fs.lstat(y14),p16.statCalls++,p16.statTime+=Date.now()-W12}catch{return null}if(!m16)return null;x23=m16.isFile,g13=m16.isDirectory}let b23;y14===f15?b23=c18.split("/").pop()||c18:b23=y14.split("/").pop()||"";let w15=y14===f15?c18:c18==="."?`./${y14.slice(f15==="/"?f15.length:f15.length+1)}`:c18+y14.slice(f15.length),T19=[],S15=null,E19=null,$22=!1;g13&&ue9&&!l12&&($22=Ce6(r7,{name:b23,relativePath:w15,isFile:x23,isDirectory:g13}).shouldPrune,$22&&p16.earlyPrunes++);let H20=!(C18>=(s10??t8.limits.maxTraversalDepth))&&!$22,K11=(H20||xe12)&&!$22,X12;if(g13&&K11){let W12=Date.now();try{Ie7&&t8.fs.readdirWithFileTypes?S15=await t8.fs.readdirWithFileTypes(y14):E19=await t8.fs.readdir(y14)}catch(D18){let A13=Le4(D18);if(A13===null)throw D18;X12=A13,p16.readdirCalls++,p16.readdirTime+=Date.now()-W12}if(S15!==null){O18.checkpoint(),O18.discover(S15.length),E19=[];for(let D18 of S15)E19.push(D18.name);if(p16.readdirCalls++,p16.readdirTime+=Date.now()-W12,H20)for(let D18=0;D18<S15.length;D18++){let A13=S15[D18];T19.push({path:y14==="/"?`/${A13.name}`:`${y14}/${A13.name}`,depth:C18+1,typeInfo:{isFile:A13.isFile,isDirectory:A13.isDirectory},resultIndex:D18})}}else if(E19!==null&&(O18.checkpoint(),O18.discover(E19.length),p16.readdirCalls++,p16.readdirTime+=Date.now()-W12,H20))for(let D18=0;D18<E19.length;D18++){let A13=E19[D18];T19.push({path:y14==="/"?`/${A13}`:`${y14}/${A13}`,depth:C18+1,resultIndex:D18})}}let Y11=x23?(m16?.size??0)===0:E19!==null&&E19.length===0,re9=$22;if(!l12&&r7!==null&&!$22&&ue9){let W12=Date.now(),D18={name:b23,relativePath:w15,isFile:x23,isDirectory:g13,isEmpty:Y11,mtime:m16?.mtime?.getTime()??Date.now(),size:m16?.size??0,mode:m16?.mode??420,newerRefTimes:ne9};re9=R9(r7,D18).pruned,p16.evalCalls++,p16.evalTime+=Date.now()-W12}return{relativePath:w15,name:b23,isFile:x23,isDirectory:g13,isEmpty:Y11,stat:m16,depth:C18,children:re9?[]:T19,pruned:re9,unreadable:X12}}async function ke10(){let h18={effects:[]};if(l12){let y14=[],C18=[{item:{path:f15,depth:0,resultIndex:0},parentIndex:-1,childOrderInParent:0}],I22=new Map,x23=0;for(;x23<C18.length;){let g13=Date.now(),m16=Math.min(C18.length,x23+ve4),b23=C18.slice(x23,m16);x23=m16;let w15=await Promise.all(b23.map(T19=>P17(T19.item)));p16.batchCount++,p16.batchTime+=Date.now()-g13;for(let T19=0;T19<b23.length;T19++){let S15=w15[T19],E19=b23[T19];if(!S15)continue;let $22=y14.length;if(E19.parentIndex>=0){let k19=I22.get(E19.parentIndex)||[];k19.push($22),I22.set(E19.parentIndex,k19)}y14.push({node:S15,parentIndex:E19.parentIndex,childIndices:[]});for(let k19=0;k19<S15.children.length;k19++)C18.push({item:S15.children[k19],parentIndex:$22,childOrderInParent:k19})}}for(let[g13,m16]of I22)g13>=0&&g13<y14.length&&(y14[g13].childIndices=m16);if(y14.length>0){let g13=[{index:0,visited:!1}];for(;g13.length>0;){O18.checkpoint();let m16=g13.pop();if(!m16)break;let b23=y14[m16.index];if(b23){if(m16.visited){for(let w15 of z16(b23.node))h18.effects.push(w15);continue}g13.push({index:m16.index,visited:!0});for(let w15=b23.childIndices.length-1;w15>=0;w15--)g13.push({index:b23.childIndices[w15],visited:!1})}}}}else{let y14=new Map,C18=0,I22=[{item:{path:f15,depth:0,resultIndex:0},orderIndex:C18++}],x23=new Map,g13=0;for(;g13<I22.length;){let b23=Date.now(),w15=Math.min(I22.length,g13+ve4),T19=I22.slice(g13,w15);g13=w15;let S15=await Promise.all(T19.map(async({item:E19,orderIndex:$22})=>{let k19=await P17(E19);return k19?{node:k19,orderIndex:$22}:null}));p16.batchCount++,p16.batchTime+=Date.now()-b23;for(let E19 of S15){if(!E19)continue;let{node:$22,orderIndex:k19}=E19,H20=z16($22);if(H20.length>0&&y14.set(k19,H20),$22.children.length>0){let K11=[];for(let X12 of $22.children){let Y11=C18++;K11.push(Y11),I22.push({item:X12,orderIndex:Y11})}x23.set(k19,K11)}}}let m16=[0];for(;m16.length>0;){O18.checkpoint();let b23=m16.pop();if(b23===void 0)break;let w15=y14.get(b23);if(w15)for(let S15 of w15)h18.effects.push(S15);let T19=x23.get(b23);if(T19)for(let S15=T19.length-1;S15>=0;S15--)m16.push(T19[S15])}}return h18}let pe7=await ke10();for(let h18 of pe7.effects)N16.push(h18);if(t8.trace){let h18=Date.now()-v13;Fe4(t8.trace,p16,h18),t8.trace({category:"find",name:"searchPath",durationMs:h18,details:{path:c18,resultsFound:pe7.effects.filter(y14=>y14.action.type!=="diagnostic").length}})}}let se11=new Map;for(let c18 of N16){let{action:f15,path:p16}=c18;switch(f15.type){case"diagnostic":q11(f15.message),F24=1;break;case"print":G14(`${p16}
535
535
  `);break;case"print0":G14(`${p16}\0`);break;case"printf":G14(Ae(f15.format,c18.printfData));break;case"delete":{let v13=t8.fs.resolvePath(t8.cwd,p16);try{await t8.fs.rm(v13,{recursive:!1})}catch(P17){let z16=P17 instanceof Error?P17.message:String(P17);q11(`find: cannot delete '${p16}': ${z16}
536
536
  `),F24=1}break}case"exec":{if(!t8.exec)return{stdout:"",stderr:`find: -exec not supported in this context
537
- `,exitCode:1};if(f15.batchMode){let z16=se11.get(f15)??[];z16.push(p16),se11.set(f15,z16);break}let v13=f15.command.map(z16=>z16==="{}"?p16:z16),P17=await t8.exec(r2([v13[0]]),{cwd:t8.cwd,signal:t8.signal,args:v13.slice(1)});M20?M20.appendResult(P17):(G14(P17.stdout),q11(P17.stderr)),P17.exitCode!==0&&(F24=P17.exitCode);break}}}for(let[c18,f15]of se11){if(c18.type!=="exec"||!t8.exec||f15.length===0)continue;let p16=[];for(let P17 of c18.command)P17==="{}"?p16.push(...f15):p16.push(P17);let v13=await t8.exec(r2([p16[0]]),{cwd:t8.cwd,signal:t8.signal,args:p16.slice(1)});M20?M20.appendResult(v13):(G14(v13.stdout),q11(v13.stderr)),v13.exitCode!==0&&(F24=v13.exitCode)}return M20?.build(F24)??{stdout:V10.join(""),stderr:fe8.join(""),exitCode:F24}}};We4=new Map([["EACCES","Permission denied"],["EIO","Input/output error"],["ELOOP","Too many levels of symbolic links"],["ENAMETOOLONG","File name too long"],["ENOENT","No such file or directory"],["ENOTDIR","Not a directory"],["EPERM","Permission denied"]]);st2={name:"find",flags:[{flag:"-name",type:"value",valueHint:"pattern"},{flag:"-iname",type:"value",valueHint:"pattern"},{flag:"-type",type:"value",valueHint:"string"},{flag:"-maxdepth",type:"value",valueHint:"number"},{flag:"-mindepth",type:"value",valueHint:"number"},{flag:"-empty",type:"boolean"},{flag:"-print",type:"boolean"},{flag:"-print0",type:"boolean"}],needsFiles:!0}}});var find_JTXDH3MR_exports={};__export(find_JTXDH3MR_exports,{findCommand:()=>nt2,flagsForFuzzing:()=>st2});import{createRequire as createRequire111}from"node:module";var require112,init_find_JTXDH3MR=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/find-JTXDH3MR.js"(){init_chunk_YUFU7O6I();init_chunk_TDD4NFYE();init_chunk_OB46N7Q7();init_chunk_J2OBOJ64();init_chunk_L2UW7DWF();init_chunk_7GA3QWJJ();init_chunk_6D3WD6YU();init_chunk_DIWMSSQY();init_chunk_2WBUTDF5();init_chunk_YUSFCOM7();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_FOCWZZDE();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require112=createRequire111(import.meta.url)}});import{createRequire as createRequire112}from"node:module";var require113,p8,c12,h12,init_chunk_ZDPFA4L3=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-ZDPFA4L3.js"(){init_chunk_QAYAQNCG();require113=createRequire112(import.meta.url),p8={name:"basename",summary:"strip directory and suffix from filenames",usage:`basename NAME [SUFFIX]
537
+ `,exitCode:1};if(f15.batchMode){let z16=se11.get(f15)??[];z16.push(p16),se11.set(f15,z16);break}let v13=f15.command.map(z16=>z16==="{}"?p16:z16),P17=await t8.exec(r2([v13[0]]),{cwd:t8.cwd,signal:t8.signal,args:v13.slice(1)});M20?M20.appendResult(P17):(G14(P17.stdout),q11(P17.stderr)),P17.exitCode!==0&&(F24=P17.exitCode);break}}}for(let[c18,f15]of se11){if(c18.type!=="exec"||!t8.exec||f15.length===0)continue;let p16=[];for(let P17 of c18.command)P17==="{}"?p16.push(...f15):p16.push(P17);let v13=await t8.exec(r2([p16[0]]),{cwd:t8.cwd,signal:t8.signal,args:p16.slice(1)});M20?M20.appendResult(v13):(G14(v13.stdout),q11(v13.stderr)),v13.exitCode!==0&&(F24=v13.exitCode)}return M20?.build(F24)??{stdout:V10.join(""),stderr:fe8.join(""),exitCode:F24}}};We4=new Map([["EACCES","Permission denied"],["EIO","Input/output error"],["ELOOP","Too many levels of symbolic links"],["ENAMETOOLONG","File name too long"],["ENOENT","No such file or directory"],["ENOTDIR","Not a directory"],["EPERM","Permission denied"]]);st2={name:"find",flags:[{flag:"-name",type:"value",valueHint:"pattern"},{flag:"-iname",type:"value",valueHint:"pattern"},{flag:"-type",type:"value",valueHint:"string"},{flag:"-maxdepth",type:"value",valueHint:"number"},{flag:"-mindepth",type:"value",valueHint:"number"},{flag:"-empty",type:"boolean"},{flag:"-print",type:"boolean"},{flag:"-print0",type:"boolean"}],needsFiles:!0}}});var find_JTXDH3MR_exports={};__export(find_JTXDH3MR_exports,{findCommand:()=>nt2,flagsForFuzzing:()=>st2});import{createRequire as createRequire111}from"node:module";var require112,init_find_JTXDH3MR=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/find-JTXDH3MR.js"(){init_chunk_YUFU7O6I();init_chunk_TDD4NFYE();init_chunk_OB46N7Q7();init_chunk_J2OBOJ64();init_chunk_L2UW7DWF();init_chunk_7GA3QWJJ();init_chunk_6D3WD6YU();init_chunk_DIWMSSQY();init_chunk_2WBUTDF5();init_chunk_YUSFCOM7();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_FOCWZZDE();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require112=createRequire111(import.meta.url)}});import{createRequire as createRequire112}from"node:module";var require113,p8,c12,h12,init_chunk_ZDPFA4L3=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-ZDPFA4L3.js"(){init_chunk_QAYAQNCG();require113=createRequire112(import.meta.url),p8={name:"basename",summary:"strip directory and suffix from filenames",usage:`basename NAME [SUFFIX]
538
538
  basename OPTION... NAME...`,options:["-a, --multiple support multiple arguments","-s, --suffix=SUFFIX remove a trailing SUFFIX"," --help display this help and exit"]},c12={name:"basename",async execute(n10,u15){if(o5(n10))return s5(p8);let l12=!1,s10="",a14=[];for(let t8=0;t8<n10.length;t8++){let e8=n10[t8];e8==="-a"||e8==="--multiple"?l12=!0:e8==="-s"&&t8+1<n10.length?(s10=n10[++t8],l12=!0):e8.startsWith("--suffix=")?(s10=e8.slice(9),l12=!0):e8.startsWith("-")||a14.push(e8)}if(a14.length===0)return{stdout:"",stderr:`basename: missing operand
539
539
  `,exitCode:1};!l12&&a14.length>=2&&(s10=a14.pop()??"");let o13=[];for(let t8 of a14){let e8=t8.replace(/\/+$/,""),i22=e8.split("/").pop()||e8;s10&&i22.endsWith(s10)&&(i22=i22.slice(0,-s10.length)),o13.push(i22)}return{stdout:`${o13.join(`
540
540
  `)}
541
- `,stderr:"",exitCode:0}}},h12={name:"basename",flags:[{flag:"-a",type:"boolean"},{flag:"-s",type:"value",valueHint:"string"}],needsArgs:!0}}});var basename_SJZQ5W65_exports={};__export(basename_SJZQ5W65_exports,{basenameCommand:()=>c12,flagsForFuzzing:()=>h12});import{createRequire as createRequire113}from"node:module";var require114,init_basename_SJZQ5W65=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/basename-SJZQ5W65.js"(){init_chunk_ZDPFA4L3();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require114=createRequire113(import.meta.url)}});import{createRequire as createRequire114}from"node:module";var require115,m9,p9,c13,init_chunk_FX4RBUYU=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-FX4RBUYU.js"(){init_chunk_QAYAQNCG();require115=createRequire114(import.meta.url),m9={name:"dirname",summary:"strip last component from file name",usage:"dirname [OPTION] NAME...",options:[" --help display this help and exit"]},p9={name:"dirname",async execute(t8,l12){if(o5(t8))return s5(m9);let r7=t8.filter(n10=>!n10.startsWith("-"));if(r7.length===0)return{stdout:"",stderr:`dirname: missing operand
541
+ `,stderr:"",exitCode:0}}},h12={name:"basename",flags:[{flag:"-a",type:"boolean"},{flag:"-s",type:"value",valueHint:"string"}],needsArgs:!0}}});var basename_SJZQ5W65_exports={};__export(basename_SJZQ5W65_exports,{basenameCommand:()=>c12,flagsForFuzzing:()=>h12});import{createRequire as createRequire113}from"node:module";var require114,init_basename_SJZQ5W65=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/basename-SJZQ5W65.js"(){init_chunk_ZDPFA4L3();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require114=createRequire113(import.meta.url)}});import{createRequire as createRequire114}from"node:module";var require115,m9,p9,c13,init_chunk_FX4RBUYU=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-FX4RBUYU.js"(){init_chunk_QAYAQNCG();require115=createRequire114(import.meta.url),m9={name:"dirname",summary:"strip last component from file name",usage:"dirname [OPTION] NAME...",options:[" --help display this help and exit"]},p9={name:"dirname",async execute(t8,l12){if(o5(t8))return s5(m9);let r7=t8.filter(n10=>!n10.startsWith("-"));if(r7.length===0)return{stdout:"",stderr:`dirname: missing operand
542
542
  `,exitCode:1};let e8=[];for(let n10 of r7){let a14=n10.replace(/\/+$/,""),s10=a14.lastIndexOf("/");s10===-1?e8.push("."):s10===0?e8.push("/"):e8.push(a14.slice(0,s10))}return{stdout:`${e8.join(`
543
543
  `)}
544
- `,stderr:"",exitCode:0}}},c13={name:"dirname",flags:[],needsArgs:!0}}});var dirname_Z2ZMOOW2_exports={};__export(dirname_Z2ZMOOW2_exports,{dirnameCommand:()=>p9,flagsForFuzzing:()=>c13});import{createRequire as createRequire115}from"node:module";var require116,init_dirname_Z2ZMOOW2=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/dirname-Z2ZMOOW2.js"(){init_chunk_FX4RBUYU();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require116=createRequire115(import.meta.url)}});import{createRequire as createRequire116}from"node:module";async function T12(i22,o13,s10,f15,d11){let e8={output:"",stderr:"",dirCount:0,fileCount:0},l12=i22.fs.resolvePath(i22.cwd,o13);try{if(!(await i22.fs.stat(l12)).isDirectory)return e8.output=`${o13}
544
+ `,stderr:"",exitCode:0}}},c13={name:"dirname",flags:[],needsArgs:!0}}});var dirname_Z2ZMOOW2_exports={};__export(dirname_Z2ZMOOW2_exports,{dirnameCommand:()=>p9,flagsForFuzzing:()=>c13});import{createRequire as createRequire115}from"node:module";var require116,init_dirname_Z2ZMOOW2=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/dirname-Z2ZMOOW2.js"(){init_chunk_FX4RBUYU();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require116=createRequire115(import.meta.url)}});import{createRequire as createRequire116}from"node:module";async function T12(i22,o13,s10,f15,d11){let e8={output:"",stderr:"",dirCount:0,fileCount:0},l12=i22.fs.resolvePath(i22.cwd,o13);try{if(!(await i22.fs.stat(l12)).isDirectory)return e8.output=`${o13}
545
545
  `,e8.fileCount=1,e8}catch{return e8.stderr=`tree: ${o13}: No such file or directory
546
546
  `,e8}if(e8.output=`${o13}
547
547
  `,s10.maxDepth!==null&&d11>=s10.maxDepth)return e8;try{let a14=[];if(i22.fs.readdirWithFileTypes)a14=(await i22.fs.readdirWithFileTypes(l12)).map(r7=>({name:r7.name,isDirectory:r7.isDirectory}));else{let t8=await i22.fs.readdir(l12);for(let r7=0;r7<t8.length;r7+=100){let m16=t8.slice(r7,r7+100),u15=await Promise.all(m16.map(async c18=>{let y14=l12==="/"?`/${c18}`:`${l12}/${c18}`;try{let h18=await i22.fs.stat(y14);return{name:c18,isDirectory:h18.isDirectory}}catch{return null}}));a14.push(...u15.filter(c18=>c18!==null))}}let n10=a14.filter(t8=>!(!s10.showHidden&&t8.name.startsWith(".")||s10.directoriesOnly&&!t8.isDirectory));n10.sort((t8,r7)=>t8.name.localeCompare(r7.name));for(let t8=0;t8<n10.length;t8++){let r7=n10[t8],m16=l12==="/"?`/${r7.name}`:`${l12}/${r7.name}`,u15=t8===n10.length-1,c18=u15?"`-- ":"|-- ",y14=f15+(u15?" ":"| ");if(r7.isDirectory){e8.dirCount++;let h18=s10.fullPath?m16:r7.name;if(e8.output+=`${f15+c18+h18}
@@ -549,39 +549,39 @@ basename OPTION... NAME...`,options:["-a, --multiple support multiple argument
549
549
  `}}}catch{e8.stderr=`tree: ${o13}: Permission denied
550
550
  `}return e8}async function w10(i22,o13,s10,f15,d11){let e8={output:"",stderr:"",dirCount:0,fileCount:0};if(s10.maxDepth!==null&&d11>=s10.maxDepth)return e8;try{let l12=[];if(i22.fs.readdirWithFileTypes)l12=(await i22.fs.readdirWithFileTypes(o13)).map(t8=>({name:t8.name,isDirectory:t8.isDirectory}));else{let n10=await i22.fs.readdir(o13);for(let t8=0;t8<n10.length;t8+=100){let r7=n10.slice(t8,t8+100),m16=await Promise.all(r7.map(async u15=>{let c18=o13==="/"?`/${u15}`:`${o13}/${u15}`;try{let y14=await i22.fs.stat(c18);return{name:u15,isDirectory:y14.isDirectory}}catch{return null}}));l12.push(...m16.filter(u15=>u15!==null))}}let a14=l12.filter(n10=>!(!s10.showHidden&&n10.name.startsWith(".")||s10.directoriesOnly&&!n10.isDirectory));a14.sort((n10,t8)=>n10.name.localeCompare(t8.name));for(let n10=0;n10<a14.length;n10++){let t8=a14[n10],r7=o13==="/"?`/${t8.name}`:`${o13}/${t8.name}`,m16=n10===a14.length-1,u15=m16?"`-- ":"|-- ",c18=f15+(m16?" ":"| ");if(t8.isDirectory){e8.dirCount++;let y14=s10.fullPath?r7:t8.name;e8.output+=`${f15+u15+y14}
551
551
  `;let h18=await w10(i22,r7,s10,c18,d11+1);e8.output+=h18.output,e8.dirCount+=h18.dirCount,e8.fileCount+=h18.fileCount}else{e8.fileCount++;let y14=s10.fullPath?r7:t8.name;e8.output+=`${f15+u15+y14}
552
- `}}}catch{}return e8}var require117,P10,b18,O13,L13,init_chunk_7AISL3XV=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-7AISL3XV.js"(){init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();require117=createRequire116(import.meta.url),P10={name:"tree",summary:"list contents of directories in a tree-like format",usage:"tree [OPTION]... [DIRECTORY]...",options:["-a include hidden files","-d list directories only","-L LEVEL limit depth of directory tree","-f print full path prefix for each file"," --help display this help and exit"]},b18={showHidden:{short:"a",type:"boolean"},directoriesOnly:{short:"d",type:"boolean"},fullPath:{short:"f",type:"boolean"},maxDepth:{short:"L",type:"number"}},O13={name:"tree",async execute(i22,o13){if(o5(i22))return s5(P10);let s10=x5("tree",i22,b18);if(!s10.ok)return s10.error;let f15={showHidden:s10.result.flags.showHidden,directoriesOnly:s10.result.flags.directoriesOnly,maxDepth:s10.result.flags.maxDepth??null,fullPath:s10.result.flags.fullPath},d11=s10.result.positional;d11.length===0&&d11.push(".");let e8="",l12="",a14=0,n10=0;for(let t8 of d11){let r7=await T12(o13,t8,f15,"",0);e8+=r7.output,l12+=r7.stderr,a14+=r7.dirCount,n10+=r7.fileCount}return e8+=`
552
+ `}}}catch{}return e8}var require117,P10,b18,O13,L13,init_chunk_7AISL3XV=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-7AISL3XV.js"(){init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();require117=createRequire116(import.meta.url),P10={name:"tree",summary:"list contents of directories in a tree-like format",usage:"tree [OPTION]... [DIRECTORY]...",options:["-a include hidden files","-d list directories only","-L LEVEL limit depth of directory tree","-f print full path prefix for each file"," --help display this help and exit"]},b18={showHidden:{short:"a",type:"boolean"},directoriesOnly:{short:"d",type:"boolean"},fullPath:{short:"f",type:"boolean"},maxDepth:{short:"L",type:"number"}},O13={name:"tree",async execute(i22,o13){if(o5(i22))return s5(P10);let s10=x5("tree",i22,b18);if(!s10.ok)return s10.error;let f15={showHidden:s10.result.flags.showHidden,directoriesOnly:s10.result.flags.directoriesOnly,maxDepth:s10.result.flags.maxDepth??null,fullPath:s10.result.flags.fullPath},d11=s10.result.positional;d11.length===0&&d11.push(".");let e8="",l12="",a14=0,n10=0;for(let t8 of d11){let r7=await T12(o13,t8,f15,"",0);e8+=r7.output,l12+=r7.stderr,a14+=r7.dirCount,n10+=r7.fileCount}return e8+=`
553
553
  ${a14} director${a14===1?"y":"ies"}`,f15.directoriesOnly||(e8+=`, ${n10} file${n10===1?"":"s"}`),e8+=`
554
- `,{stdout:e8,stderr:l12,exitCode:l12?1:0}}};L13={name:"tree",flags:[{flag:"-a",type:"boolean"},{flag:"-d",type:"boolean"},{flag:"-f",type:"boolean"},{flag:"-L",type:"value",valueHint:"number"}],needsFiles:!0}}});var tree_7OOL2MH6_exports={};__export(tree_7OOL2MH6_exports,{flagsForFuzzing:()=>L13,treeCommand:()=>O13});import{createRequire as createRequire117}from"node:module";var require118,init_tree_7OOL2MH6=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/tree-7OOL2MH6.js"(){init_chunk_7AISL3XV();init_chunk_STHBFACM();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require118=createRequire117(import.meta.url)}});import{createRequire as createRequire118}from"node:module";async function w11(t8,s10,a14,l12,i22){let n10={output:"",totalSize:0,stderr:""},o13=new Map;return await D5({fs:t8.fs,root:s10,limits:t8.limits,signal:t8.signal,executionScope:t8.executionScope,site:"du",symlinks:"never",includeLeave:!0},e8=>{let u15=e8.path.slice(s10.length).replace(/^\//,""),f15=u15?a14==="."?u15:`${a14}/${u15}`:a14,r7=e8.path==="/"?"/":e8.path.slice(0,e8.path.lastIndexOf("/"))||"/";if(e8.phase==="enter"){if(e8.stat.isDirectory){o13.set(e8.path,0);return}o13.set(r7,(o13.get(r7)??0)+e8.stat.size),(l12.allFiles||e8.depth===i22)&&!l12.summarize&&(n10.output+=`${p10(e8.stat.size,l12.humanReadable)} ${f15}
554
+ `,{stdout:e8,stderr:l12,exitCode:l12?1:0}}};L13={name:"tree",flags:[{flag:"-a",type:"boolean"},{flag:"-d",type:"boolean"},{flag:"-f",type:"boolean"},{flag:"-L",type:"value",valueHint:"number"}],needsFiles:!0}}});var tree_7OOL2MH6_exports={};__export(tree_7OOL2MH6_exports,{flagsForFuzzing:()=>L13,treeCommand:()=>O13});import{createRequire as createRequire117}from"node:module";var require118,init_tree_7OOL2MH6=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/tree-7OOL2MH6.js"(){init_chunk_7AISL3XV();init_chunk_STHBFACM();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require118=createRequire117(import.meta.url)}});import{createRequire as createRequire118}from"node:module";async function w11(t8,s10,a14,l12,i22){let n10={output:"",totalSize:0,stderr:""},o13=new Map;return await D5({fs:t8.fs,root:s10,limits:t8.limits,signal:t8.signal,executionScope:t8.executionScope,site:"du",symlinks:"never",includeLeave:!0},e8=>{let u15=e8.path.slice(s10.length).replace(/^\//,""),f15=u15?a14==="."?u15:`${a14}/${u15}`:a14,r7=e8.path==="/"?"/":e8.path.slice(0,e8.path.lastIndexOf("/"))||"/";if(e8.phase==="enter"){if(e8.stat.isDirectory){o13.set(e8.path,0);return}o13.set(r7,(o13.get(r7)??0)+e8.stat.size),(l12.allFiles||e8.depth===i22)&&!l12.summarize&&(n10.output+=`${p10(e8.stat.size,l12.humanReadable)} ${f15}
555
555
  `),e8.depth===i22&&(n10.totalSize=e8.stat.size);return}let m16=o13.get(e8.path)??0;e8.depth>i22?o13.set(r7,(o13.get(r7)??0)+m16):n10.totalSize=m16;let c18=e8.depth-i22;(l12.summarize&&c18===0||!l12.summarize&&(l12.maxDepth===null||c18<=l12.maxDepth))&&(n10.output+=`${p10(m16,l12.humanReadable)} ${f15}
556
- `)}),n10}function p10(t8,s10){return s10?t8<1024?`${t8}`:t8<1024*1024?`${(t8/1024).toFixed(1)}K`:t8<1024*1024*1024?`${(t8/(1024*1024)).toFixed(1)}M`:`${(t8/(1024*1024*1024)).toFixed(1)}G`:String(Math.ceil(t8/1024)||1)}var require119,$17,b19,R10,E13,init_chunk_NRLE7KYI=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-NRLE7KYI.js"(){init_chunk_2WBUTDF5();init_chunk_EFORKKSH();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();require119=createRequire118(import.meta.url),$17={name:"du",summary:"estimate file space usage",usage:"du [OPTION]... [FILE]...",options:["-a write counts for all files, not just directories","-h print sizes in human readable format","-s display only a total for each argument","-c produce a grand total","--max-depth=N print total for directory only if N or fewer levels deep"," --help display this help and exit"]},b19={allFiles:{short:"a",type:"boolean"},humanReadable:{short:"h",type:"boolean"},summarize:{short:"s",type:"boolean"},grandTotal:{short:"c",type:"boolean"},maxDepth:{long:"max-depth",type:"number"}},R10={name:"du",async execute(t8,s10){if(o5(t8))return s5($17);let a14=x5("du",t8,b19);if(!a14.ok)return a14.error;let l12={allFiles:a14.result.flags.allFiles,humanReadable:a14.result.flags.humanReadable,summarize:a14.result.flags.summarize,grandTotal:a14.result.flags.grandTotal,maxDepth:a14.result.flags.maxDepth??null},i22=a14.result.positional;i22.length===0&&i22.push(".");let n10="",o13="",e8=0;for(let u15 of i22){let f15=s10.fs.resolvePath(s10.cwd,u15);try{await s10.fs.stat(f15);let r7=await w11(s10,f15,u15,l12,0);n10+=r7.output,e8+=r7.totalSize,o13+=r7.stderr}catch(r7){if(r7 instanceof f2||r7 instanceof $)throw r7;o13+=`du: cannot access '${u15}': No such file or directory
556
+ `)}),n10}function p10(t8,s10){return s10?t8<1024?`${t8}`:t8<1024*1024?`${(t8/1024).toFixed(1)}K`:t8<1024*1024*1024?`${(t8/(1024*1024)).toFixed(1)}M`:`${(t8/(1024*1024*1024)).toFixed(1)}G`:String(Math.ceil(t8/1024)||1)}var require119,$17,b19,R10,E13,init_chunk_NRLE7KYI=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-NRLE7KYI.js"(){init_chunk_2WBUTDF5();init_chunk_EFORKKSH();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();require119=createRequire118(import.meta.url),$17={name:"du",summary:"estimate file space usage",usage:"du [OPTION]... [FILE]...",options:["-a write counts for all files, not just directories","-h print sizes in human readable format","-s display only a total for each argument","-c produce a grand total","--max-depth=N print total for directory only if N or fewer levels deep"," --help display this help and exit"]},b19={allFiles:{short:"a",type:"boolean"},humanReadable:{short:"h",type:"boolean"},summarize:{short:"s",type:"boolean"},grandTotal:{short:"c",type:"boolean"},maxDepth:{long:"max-depth",type:"number"}},R10={name:"du",async execute(t8,s10){if(o5(t8))return s5($17);let a14=x5("du",t8,b19);if(!a14.ok)return a14.error;let l12={allFiles:a14.result.flags.allFiles,humanReadable:a14.result.flags.humanReadable,summarize:a14.result.flags.summarize,grandTotal:a14.result.flags.grandTotal,maxDepth:a14.result.flags.maxDepth??null},i22=a14.result.positional;i22.length===0&&i22.push(".");let n10="",o13="",e8=0;for(let u15 of i22){let f15=s10.fs.resolvePath(s10.cwd,u15);try{await s10.fs.stat(f15);let r7=await w11(s10,f15,u15,l12,0);n10+=r7.output,e8+=r7.totalSize,o13+=r7.stderr}catch(r7){if(r7 instanceof f2||r7 instanceof $)throw r7;o13+=`du: cannot access '${u15}': No such file or directory
557
557
  `}}return l12.grandTotal&&i22.length>0&&(n10+=`${p10(e8,l12.humanReadable)} total
558
- `),{stdout:n10,stderr:o13,exitCode:o13?1:0}}};E13={name:"du",flags:[{flag:"-a",type:"boolean"},{flag:"-h",type:"boolean"},{flag:"-s",type:"boolean"},{flag:"-c",type:"boolean"},{flag:"--max-depth",type:"value",valueHint:"number"}],needsFiles:!0}}});var du_DOWSRLXR_exports={};__export(du_DOWSRLXR_exports,{duCommand:()=>R10,flagsForFuzzing:()=>E13});import{createRequire as createRequire119}from"node:module";var require120,init_du_DOWSRLXR=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/du-DOWSRLXR.js"(){init_chunk_NRLE7KYI();init_chunk_2WBUTDF5();init_chunk_YUSFCOM7();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_FOCWZZDE();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require120=createRequire119(import.meta.url)}});import{createRequire as createRequire120}from"node:module";var require121,g8,M12,y11,N11,C9,F13,init_chunk_A4R2GWRF=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-A4R2GWRF.js"(){init_chunk_DLL7UR66();init_chunk_QAYAQNCG();require121=createRequire120(import.meta.url),g8={name:"env",summary:"run a program in a modified environment",usage:"env [OPTION]... [NAME=VALUE]... [COMMAND [ARG]...]",options:["-i, --ignore-environment start with an empty environment","-u NAME, --unset=NAME remove NAME from the environment"," --help display this help and exit"]},M12={name:"env",async execute(o13,i22){if(o5(o13))return s5(g8);let a14=!1,r7=[],u15=new Map,t8=-1;for(let n10=0;n10<o13.length;n10++){let e8=o13[n10];if(e8==="-i"||e8==="--ignore-environment")a14=!0;else if(e8==="-u"&&n10+1<o13.length)r7.push(o13[++n10]);else if(e8.startsWith("-u"))r7.push(e8.slice(2));else if(e8.startsWith("--unset="))r7.push(e8.slice(8));else{if(e8.startsWith("--")&&e8!=="--")return r5("env",e8);if(e8.startsWith("-")&&e8!=="-"){for(let l12 of e8.slice(1))if(l12!=="i"&&l12!=="u")return r5("env",`-${l12}`);e8.includes("i")&&(a14=!0)}else if(e8.includes("=")&&t8===-1){let l12=e8.indexOf("="),v13=e8.slice(0,l12),h18=e8.slice(l12+1);u15.set(v13,h18)}else{t8=n10;break}}}let s10;if(a14)s10=new Map(u15);else{s10=new Map(i22.env);for(let n10 of r7)s10.delete(n10);for(let[n10,e8]of u15)s10.set(n10,e8)}if(t8===-1){let n10=[];for(let[e8,l12]of s10)n10.push(`${e8}=${l12}`);return{stdout:n10.join(`
558
+ `),{stdout:n10,stderr:o13,exitCode:o13?1:0}}};E13={name:"du",flags:[{flag:"-a",type:"boolean"},{flag:"-h",type:"boolean"},{flag:"-s",type:"boolean"},{flag:"-c",type:"boolean"},{flag:"--max-depth",type:"value",valueHint:"number"}],needsFiles:!0}}});var du_DOWSRLXR_exports={};__export(du_DOWSRLXR_exports,{duCommand:()=>R10,flagsForFuzzing:()=>E13});import{createRequire as createRequire119}from"node:module";var require120,init_du_DOWSRLXR=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/du-DOWSRLXR.js"(){init_chunk_NRLE7KYI();init_chunk_2WBUTDF5();init_chunk_YUSFCOM7();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_FOCWZZDE();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require120=createRequire119(import.meta.url)}});import{createRequire as createRequire120}from"node:module";var require121,g8,M12,y11,N11,C9,F13,init_chunk_A4R2GWRF=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-A4R2GWRF.js"(){init_chunk_DLL7UR66();init_chunk_QAYAQNCG();require121=createRequire120(import.meta.url),g8={name:"env",summary:"run a program in a modified environment",usage:"env [OPTION]... [NAME=VALUE]... [COMMAND [ARG]...]",options:["-i, --ignore-environment start with an empty environment","-u NAME, --unset=NAME remove NAME from the environment"," --help display this help and exit"]},M12={name:"env",async execute(o13,i22){if(o5(o13))return s5(g8);let a14=!1,r7=[],u15=new Map,t8=-1;for(let n10=0;n10<o13.length;n10++){let e8=o13[n10];if(e8==="-i"||e8==="--ignore-environment")a14=!0;else if(e8==="-u"&&n10+1<o13.length)r7.push(o13[++n10]);else if(e8.startsWith("-u"))r7.push(e8.slice(2));else if(e8.startsWith("--unset="))r7.push(e8.slice(8));else{if(e8.startsWith("--")&&e8!=="--")return r5("env",e8);if(e8.startsWith("-")&&e8!=="-"){for(let l12 of e8.slice(1))if(l12!=="i"&&l12!=="u")return r5("env",`-${l12}`);e8.includes("i")&&(a14=!0)}else if(e8.includes("=")&&t8===-1){let l12=e8.indexOf("="),v13=e8.slice(0,l12),h18=e8.slice(l12+1);u15.set(v13,h18)}else{t8=n10;break}}}let s10;if(a14)s10=new Map(u15);else{s10=new Map(i22.env);for(let n10 of r7)s10.delete(n10);for(let[n10,e8]of u15)s10.set(n10,e8)}if(t8===-1){let n10=[];for(let[e8,l12]of s10)n10.push(`${e8}=${l12}`);return{stdout:n10.join(`
559
559
  `)+(n10.length>0?`
560
560
  `:""),stderr:"",exitCode:0}}if(!i22.exec)return{stdout:"",stderr:`env: command execution not supported in this context
561
561
  `,exitCode:1};let p16=o13.slice(t8);return i22.exec("command",{cwd:i22.cwd,env:r3(s10),replaceEnv:!0,stdin:i22.stdin,stdinKind:"bytes",signal:i22.signal,args:p16})}},y11={name:"printenv",summary:"print all or part of environment",usage:"printenv [OPTION]... [VARIABLE]...",options:[" --help display this help and exit"]},N11={name:"printenv",async execute(o13,i22){if(o5(o13))return s5(y11);let a14=o13.filter(t8=>!t8.startsWith("-"));if(a14.length===0){let t8=[];for(let[s10,p16]of i22.env)t8.push(`${s10}=${p16}`);return{stdout:t8.join(`
562
562
  `)+(t8.length>0?`
563
563
  `:""),stderr:"",exitCode:0}}let r7=[],u15=0;for(let t8 of a14){let s10=i22.env.get(t8);s10!==void 0?r7.push(s10):u15=1}return{stdout:r7.join(`
564
564
  `)+(r7.length>0?`
565
- `:""),stderr:"",exitCode:u15}}},C9={name:"env",flags:[{flag:"-i",type:"boolean"},{flag:"-u",type:"value",valueHint:"string"}]},F13={name:"printenv",flags:[]}}});var env_VUUMB47B_exports={};__export(env_VUUMB47B_exports,{envCommand:()=>M12,flagsForFuzzing:()=>C9,printenvCommand:()=>N11,printenvFlagsForFuzzing:()=>F13});import{createRequire as createRequire121}from"node:module";var require122,init_env_VUUMB47B=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/env-VUUMB47B.js"(){init_chunk_A4R2GWRF();init_chunk_DLL7UR66();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require122=createRequire121(import.meta.url)}});import{createRequire as createRequire122}from"node:module";var require123,d7,o8,m10,c14,p11,h13,init_chunk_FHC24QSK=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-FHC24QSK.js"(){init_chunk_QAYAQNCG();require123=createRequire122(import.meta.url),d7={name:"alias",summary:"define or display aliases",usage:"alias [name[=value] ...]",options:[" --help display this help and exit"]},o8="BASH_ALIAS_",m10={name:"alias",async execute(e8,a14){if(o5(e8))return s5(d7);if(e8.length===0){let s10="";for(let[i22,t8]of a14.env)if(i22.startsWith(o8)){let n10=i22.slice(o8.length);s10+=`alias ${n10}='${t8}'
565
+ `:""),stderr:"",exitCode:u15}}},C9={name:"env",flags:[{flag:"-i",type:"boolean"},{flag:"-u",type:"value",valueHint:"string"}]},F13={name:"printenv",flags:[]}}});var env_VUUMB47B_exports={};__export(env_VUUMB47B_exports,{envCommand:()=>M12,flagsForFuzzing:()=>C9,printenvCommand:()=>N11,printenvFlagsForFuzzing:()=>F13});import{createRequire as createRequire121}from"node:module";var require122,init_env_VUUMB47B=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/env-VUUMB47B.js"(){init_chunk_A4R2GWRF();init_chunk_DLL7UR66();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require122=createRequire121(import.meta.url)}});import{createRequire as createRequire122}from"node:module";var require123,d7,o8,m10,c14,p11,h13,init_chunk_FHC24QSK=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-FHC24QSK.js"(){init_chunk_QAYAQNCG();require123=createRequire122(import.meta.url),d7={name:"alias",summary:"define or display aliases",usage:"alias [name[=value] ...]",options:[" --help display this help and exit"]},o8="BASH_ALIAS_",m10={name:"alias",async execute(e8,a14){if(o5(e8))return s5(d7);if(e8.length===0){let s10="";for(let[i22,t8]of a14.env)if(i22.startsWith(o8)){let n10=i22.slice(o8.length);s10+=`alias ${n10}='${t8}'
566
566
  `}return{stdout:s10,stderr:"",exitCode:0}}let l12=e8[0]==="--"?e8.slice(1):e8;for(let s10 of l12){let i22=s10.indexOf("=");if(i22===-1){let t8=o8+s10;return a14.env.get(t8)?{stdout:`alias ${s10}='${a14.env.get(t8)}'
567
567
  `,stderr:"",exitCode:0}:{stdout:"",stderr:`alias: ${s10}: not found
568
568
  `,exitCode:1}}else{let t8=s10.slice(0,i22),n10=s10.slice(i22+1);(n10.startsWith("'")&&n10.endsWith("'")||n10.startsWith('"')&&n10.endsWith('"'))&&(n10=n10.slice(1,-1)),a14.env.set(o8+t8,n10)}}return{stdout:"",stderr:"",exitCode:0}}},c14={name:"unalias",async execute(e8,a14){if(o5(e8))return s5({name:"unalias",summary:"remove alias definitions",usage:"unalias name [name ...]",options:["-a remove all aliases"," --help display this help and exit"]});if(e8.length===0)return{stdout:"",stderr:`unalias: usage: unalias [-a] name [name ...]
569
569
  `,exitCode:1};if(e8[0]==="-a"){for(let t8 of a14.env.keys())t8.startsWith(o8)&&a14.env.delete(t8);return{stdout:"",stderr:"",exitCode:0}}let l12=e8[0]==="--"?e8.slice(1):e8,s10=!1,i22="";for(let t8 of l12){let n10=o8+t8;a14.env.get(n10)?a14.env.delete(n10):(i22+=`unalias: ${t8}: not found
570
- `,s10=!0)}return{stdout:"",stderr:i22,exitCode:s10?1:0}}},p11={name:"alias",flags:[]},h13={name:"unalias",flags:[{flag:"-a",type:"boolean"}]}}});var alias_T5TO5GWK_exports={};__export(alias_T5TO5GWK_exports,{aliasCommand:()=>m10,flagsForFuzzing:()=>p11,unaliasCommand:()=>c14,unaliasFlagsForFuzzing:()=>h13});import{createRequire as createRequire123}from"node:module";var require124,init_alias_T5TO5GWK=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/alias-T5TO5GWK.js"(){init_chunk_FHC24QSK();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require124=createRequire123(import.meta.url)}});import{createRequire as createRequire124}from"node:module";var require125,p12,h14,m11,u12,init_chunk_UIJUTQPH=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-UIJUTQPH.js"(){init_chunk_QAYAQNCG();require125=createRequire124(import.meta.url),p12={name:"history",summary:"display command history",usage:"history [n]",options:["-c clear the history list"," --help display this help and exit"]},h14="BASH_HISTORY",m11={name:"history",async execute(e8,s10){if(o5(e8))return s5(p12);let a14=s10.env.get(h14)||"[]",t8;try{t8=JSON.parse(a14)}catch{t8=[]}if(e8[0]==="-c")return s10.env.set(h14,"[]"),{stdout:"",stderr:"",exitCode:0};let n10=t8.length;e8[0]&&/^\d+$/.test(e8[0])&&(n10=Math.min(parseInt(e8[0],10),t8.length));let c18=t8.length-n10,r7="";for(let o13=c18;o13<t8.length;o13++){let y14=(o13+1).toString().padStart(5," ");r7+=`${y14} ${t8[o13]}
571
- `}return{stdout:r7,stderr:"",exitCode:0}}},u12={name:"history",flags:[{flag:"-c",type:"boolean"}]}}});var history_3N762S3K_exports={};__export(history_3N762S3K_exports,{flagsForFuzzing:()=>u12,historyCommand:()=>m11});import{createRequire as createRequire125}from"node:module";var require126,init_history_3N762S3K=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/history-3N762S3K.js"(){init_chunk_UIJUTQPH();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require126=createRequire125(import.meta.url)}});import{createRequire as createRequire126}from"node:module";function U7(r7,i22,u15){if(i22.length===0)throw new Error("xargs: delimiter must not be empty");let d11=[],o13=0;for(;o13<=r7.length;){let a14=r7.indexOf(i22,o13),x23=r7.slice(o13,a14===-1?r7.length:a14);if(x23.length>0){if(d11.length>=u15)throw new f2(`xargs: array element limit exceeded (${u15})`,"array_elements");d11.push(x23)}if(a14===-1)break;o13=a14+i22.length}return d11}function F14(r7,i22){let u15=[],d11=-1;for(let o13=0;o13<=r7.length;o13++){let a14=o13===r7.length||/\s/.test(r7[o13]);if(!a14&&d11===-1&&(d11=o13),a14&&d11!==-1){if(u15.length>=i22)throw new f2(`xargs: array element limit exceeded (${i22})`,"array_elements");u15.push(r7.slice(d11,o13)),d11=-1}}return u15}var require127,D10,Y7,Z5,init_chunk_EQQGPAXI=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-EQQGPAXI.js"(){init_chunk_J2OBOJ64();init_chunk_L2UW7DWF();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();require127=createRequire126(import.meta.url),D10={name:"xargs",summary:"build and execute command lines from standard input",usage:"xargs [OPTION]... [COMMAND [INITIAL-ARGS]]",options:["-I REPLACE replace occurrences of REPLACE with input","-d DELIM use DELIM as input delimiter (e.g., -d '\\n' for newline)","-n NUM use at most NUM arguments per command line","-P NUM run at most NUM processes at a time","-0, --null items are separated by null, not whitespace","-t, --verbose print commands before executing","-r, --no-run-if-empty do not run command if input is empty"," --help display this help and exit"]};Y7={name:"xargs",async execute(r7,i22){if(o5(r7))return s5(D10);let u15=null,d11=null,o13=null,a14=null,x23=!1,L21=!1,N16=!1,f15=0;for(let e8=0;e8<r7.length;e8++){let t8=r7[e8];if(t8==="-I"&&e8+1<r7.length)u15=r7[++e8],f15=e8+1;else if(t8==="-d"&&e8+1<r7.length)d11=r7[++e8].replace(/\\n/g,`
570
+ `,s10=!0)}return{stdout:"",stderr:i22,exitCode:s10?1:0}}},p11={name:"alias",flags:[]},h13={name:"unalias",flags:[{flag:"-a",type:"boolean"}]}}});var alias_T5TO5GWK_exports={};__export(alias_T5TO5GWK_exports,{aliasCommand:()=>m10,flagsForFuzzing:()=>p11,unaliasCommand:()=>c14,unaliasFlagsForFuzzing:()=>h13});import{createRequire as createRequire123}from"node:module";var require124,init_alias_T5TO5GWK=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/alias-T5TO5GWK.js"(){init_chunk_FHC24QSK();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require124=createRequire123(import.meta.url)}});import{createRequire as createRequire124}from"node:module";var require125,p12,h14,m11,u12,init_chunk_UIJUTQPH=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-UIJUTQPH.js"(){init_chunk_QAYAQNCG();require125=createRequire124(import.meta.url),p12={name:"history",summary:"display command history",usage:"history [n]",options:["-c clear the history list"," --help display this help and exit"]},h14="BASH_HISTORY",m11={name:"history",async execute(e8,s10){if(o5(e8))return s5(p12);let a14=s10.env.get(h14)||"[]",t8;try{t8=JSON.parse(a14)}catch{t8=[]}if(e8[0]==="-c")return s10.env.set(h14,"[]"),{stdout:"",stderr:"",exitCode:0};let n10=t8.length;e8[0]&&/^\d+$/.test(e8[0])&&(n10=Math.min(parseInt(e8[0],10),t8.length));let c18=t8.length-n10,r7="";for(let o13=c18;o13<t8.length;o13++){let y14=(o13+1).toString().padStart(5," ");r7+=`${y14} ${t8[o13]}
571
+ `}return{stdout:r7,stderr:"",exitCode:0}}},u12={name:"history",flags:[{flag:"-c",type:"boolean"}]}}});var history_3N762S3K_exports={};__export(history_3N762S3K_exports,{flagsForFuzzing:()=>u12,historyCommand:()=>m11});import{createRequire as createRequire125}from"node:module";var require126,init_history_3N762S3K=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/history-3N762S3K.js"(){init_chunk_UIJUTQPH();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require126=createRequire125(import.meta.url)}});import{createRequire as createRequire126}from"node:module";function U7(r7,i22,u15){if(i22.length===0)throw new Error("xargs: delimiter must not be empty");let d11=[],o13=0;for(;o13<=r7.length;){let a14=r7.indexOf(i22,o13),x23=r7.slice(o13,a14===-1?r7.length:a14);if(x23.length>0){if(d11.length>=u15)throw new f2(`xargs: array element limit exceeded (${u15})`,"array_elements");d11.push(x23)}if(a14===-1)break;o13=a14+i22.length}return d11}function F14(r7,i22){let u15=[],d11=-1;for(let o13=0;o13<=r7.length;o13++){let a14=o13===r7.length||/\s/.test(r7[o13]);if(!a14&&d11===-1&&(d11=o13),a14&&d11!==-1){if(u15.length>=i22)throw new f2(`xargs: array element limit exceeded (${i22})`,"array_elements");u15.push(r7.slice(d11,o13)),d11=-1}}return u15}var require127,D10,Y7,Z5,init_chunk_EQQGPAXI=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-EQQGPAXI.js"(){init_chunk_J2OBOJ64();init_chunk_L2UW7DWF();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();require127=createRequire126(import.meta.url),D10={name:"xargs",summary:"build and execute command lines from standard input",usage:"xargs [OPTION]... [COMMAND [INITIAL-ARGS]]",options:["-I REPLACE replace occurrences of REPLACE with input","-d DELIM use DELIM as input delimiter (e.g., -d '\\n' for newline)","-n NUM use at most NUM arguments per command line","-P NUM run at most NUM processes at a time","-0, --null items are separated by null, not whitespace","-t, --verbose print commands before executing","-r, --no-run-if-empty do not run command if input is empty"," --help display this help and exit"]};Y7={name:"xargs",async execute(r7,i22){if(o5(r7))return s5(D10);let u15=null,d11=null,o13=null,a14=null,x23=!1,L21=!1,N16=!1,f15=0;for(let e8=0;e8<r7.length;e8++){let t8=r7[e8];if(t8==="-I"&&e8+1<r7.length)u15=r7[++e8],f15=e8+1;else if(t8==="-d"&&e8+1<r7.length)d11=r7[++e8].replace(/\\n/g,`
572
572
  `).replace(/\\t/g," ").replace(/\\r/g,"\r").replace(/\\0/g,"\0").replace(/\\\\/g,"\\"),f15=e8+1;else if(t8==="-n"&&e8+1<r7.length){let n10=r7[++e8],s10=Number(n10);if(!/^\d+$/.test(n10)||!Number.isSafeInteger(s10)||s10<1)return{stdout:"",stderr:`xargs: invalid number for -n: '${n10}'
573
573
  `,exitCode:1};o13=s10,f15=e8+1}else if(t8==="-P"&&e8+1<r7.length){let n10=r7[++e8],s10=Number(n10);if(!/^\d+$/.test(n10)||!Number.isSafeInteger(s10))return{stdout:"",stderr:`xargs: invalid number for -P: '${n10}'
574
574
  `,exitCode:1};a14=s10,f15=e8+1}else if(t8==="-0"||t8==="--null")x23=!0,f15=e8+1;else if(t8==="-t"||t8==="--verbose")L21=!0,f15=e8+1;else if(t8==="-r"||t8==="--no-run-if-empty")N16=!0,f15=e8+1;else{if(t8.startsWith("--"))return r5("xargs",t8);if(t8.startsWith("-")&&t8.length>1){for(let n10 of t8.slice(1))if(!"0tr".includes(n10))return r5("xargs",`-${n10}`);t8.includes("0")&&(x23=!0),t8.includes("t")&&(L21=!0),t8.includes("r")&&(N16=!0),f15=e8+1}else if(!t8.startsWith("-")){f15=e8;break}}}let g13=r7.slice(f15);g13.length===0&&g13.push("echo");let C18=a2(i22.stdin),y14=Math.min(i22.limits.maxInputBytes,i22.limits.maxStringLength),c18=i22.limits.maxArrayElements,w15=i22.limits.maxLoopIterations,E19=i22.limits.maxOutputSize;if(x(C18)>y14)throw new f2(`xargs: input size limit exceeded (${y14} bytes)`,"string_length");if(a14!==null&&a14>c18)throw new f2(`xargs: array element limit exceeded (${c18})`,"array_elements");let m16;if(x23)m16=U7(C18,"\0",c18);else if(d11!==null){let e8=C18.replace(/\n$/,"");try{m16=U7(e8,d11,c18)}catch(t8){if(t8 instanceof f2)throw t8;return{stdout:"",stderr:`xargs: delimiter must not be empty
575
575
  `,exitCode:1}}}else m16=F14(C18,c18);if(m16.length===0)return N16?{stdout:"",stderr:"",exitCode:0}:{stdout:"",stderr:"",exitCode:0};let _13=[],S15=[],b23=0,v13=0,W12=0,$22=i22.executionScope?new h3(i22.executionScope,"xargs"):void 0,M20=e8=>{if($22){$22.appendResult(e8);return}let t8=x(e8.stdout)+x(e8.stderr);if(t8>E19-v13)throw new f2(`xargs: output size limit exceeded (${E19} bytes)`,"output_size");e8.stdout&&_13.push(e8.stdout),e8.stderr&&S15.push(e8.stderr),v13+=t8},j21=e8=>{if($22){$22.append("stderr",e8);return}let t8=x(e8);if(t8>E19-v13)throw new f2(`xargs: output size limit exceeded (${E19} bytes)`,"output_size");e8&&S15.push(e8),v13+=t8},O18=e8=>/[\s"'\\$`!*?[\]{}();&|<>#]/.test(e8)?`"${e8.replace(/([\\"`$])/g,"\\$1")}"`:e8,A13=async e8=>{if(++W12>w15)throw new f2(`xargs: iteration limit exceeded (${w15})`,"iterations");if(e8.length>c18)throw new f2(`xargs: array element limit exceeded (${c18})`,"array_elements");for(let n10 of e8)if(x(n10)>y14)throw new f2(`xargs: string length limit exceeded (${y14} bytes)`,"string_length");if(L21){let n10=e8.map(O18).join(" ");j21(`${n10}
576
576
  `)}return i22.exec?i22.exec(r2([e8[0]]),{cwd:i22.cwd,signal:i22.signal,args:e8.slice(1)}):{stdout:`${e8.map(O18).join(" ")}
577
577
  `,stderr:"",exitCode:0}},z16=async e8=>{if(a14!==null&&a14>1)for(let t8=0;t8<e8.length;t8+=a14){let n10=e8.slice(t8,t8+a14),s10=await Promise.all(n10.map(A13));for(let h18 of s10)M20(h18),h18.exitCode!==0&&(b23=h18.exitCode)}else for(let t8 of e8){let n10=await A13(t8);M20(n10),n10.exitCode!==0&&(b23=n10.exitCode)}};if(u15!==null){if(m16.length>w15)throw new f2(`xargs: iteration limit exceeded (${w15})`,"iterations");if(u15.length===0)return{stdout:"",stderr:`xargs: replacement string must not be empty
578
- `,exitCode:1};if(g13.length>0&&m16.length>Math.floor(c18/g13.length))throw new f2(`xargs: array element limit exceeded (${c18})`,"array_elements");let e8=(n10,s10)=>{let h18=0,I22=0;for(;I22=n10.indexOf(u15,I22),I22!==-1;)h18++,I22+=u15.length;if(x(n10)+h18*(x(s10)-x(u15))>y14)throw new f2(`xargs: string length limit exceeded (${y14} bytes)`,"string_length");return n10.replaceAll(u15,s10)},t8=m16.map(n10=>g13.map(s10=>e8(s10,n10)));await z16(t8)}else if(o13!==null){let e8=[],t8=Math.ceil(m16.length/o13);if(t8>Math.min(c18,w15))throw new f2(`xargs: iteration limit exceeded (${w15})`,"iterations");if(m16.length+t8*g13.length>c18)throw new f2(`xargs: array element limit exceeded (${c18})`,"array_elements");for(let s10=0;s10<m16.length;s10+=o13){let h18=m16.slice(s10,s10+o13);e8.push([...g13,...h18])}await z16(e8)}else{let e8=[...g13,...m16],t8=await A13(e8);M20(t8),b23=t8.exitCode}return $22?.build(b23)??{stdout:_13.join(""),stderr:S15.join(""),exitCode:b23}}},Z5={name:"xargs",flags:[{flag:"-I",type:"value",valueHint:"string"},{flag:"-d",type:"value",valueHint:"delimiter"},{flag:"-n",type:"value",valueHint:"number"},{flag:"-0",type:"boolean"},{flag:"-t",type:"boolean"},{flag:"-r",type:"boolean"}],stdinType:"text"}}});var xargs_L7TJHOJT_exports={};__export(xargs_L7TJHOJT_exports,{flagsForFuzzing:()=>Z5,xargsCommand:()=>Y7});import{createRequire as createRequire127}from"node:module";var require128,init_xargs_L7TJHOJT=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/xargs-L7TJHOJT.js"(){init_chunk_EQQGPAXI();init_chunk_J2OBOJ64();init_chunk_L2UW7DWF();init_chunk_6D3WD6YU();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require128=createRequire127(import.meta.url)}});import{createRequire as createRequire128}from"node:module";var require129,e3,t3,s6,r6,init_chunk_HDRAUQK2=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-HDRAUQK2.js"(){require129=createRequire128(import.meta.url),e3={name:"true",async execute(){return{stdout:"",stderr:"",exitCode:0}}},t3={name:"false",async execute(){return{stdout:"",stderr:"",exitCode:1}}},s6={name:"true",flags:[]},r6={name:"false",flags:[]}}});var true_QUBPEGGU_exports={};__export(true_QUBPEGGU_exports,{falseCommand:()=>t3,falseFlagsForFuzzing:()=>r6,flagsForFuzzing:()=>s6,trueCommand:()=>e3});import{createRequire as createRequire129}from"node:module";var require130,init_true_QUBPEGGU=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/true-QUBPEGGU.js"(){init_chunk_HDRAUQK2();init_chunk_NCUTH6QL();require130=createRequire129(import.meta.url)}});import{createRequire as createRequire130}from"node:module";var require131,y12,x16,w12,init_chunk_GLAFXDZC=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-GLAFXDZC.js"(){init_chunk_DIWMSSQY();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();require131=createRequire130(import.meta.url),y12={name:"yes",summary:"output a string repeatedly",usage:"yes [STRING]...",description:["Repeatedly output a line with all specified STRING(s), or 'y'."],options:[" --help display this help and exit"],notes:["Real yes writes until its reader goes away. Pipelines here are not","streaming \u2014 a stage runs to completion before the next one starts \u2014 so","yes stops on its own after executionLimits.maxLoopIterations lines, or","earlier if the repeated line would exceed the output size limit.","`yes | head -3` therefore behaves as expected; an unbounded consumer","sees a finite stream."]},x16={name:"yes",async execute(m16,s10){let t8=[],i22=!1;for(let e8 of m16){if(i22){t8.push(e8);continue}if(e8==="--"){i22=!0;continue}if(e8==="--help")return s5(y12);if(e8.startsWith("--"))return r5("yes",e8);if(e8.startsWith("-")&&e8!=="-")return r5("yes",`-${e8[1]}`);t8.push(e8)}let n10=Math.min(s10.limits.maxStringLength,s10.limits.maxOutputSize),a14=t8.length>0?`${b5(t8," ",n10,"yes")}
578
+ `,exitCode:1};if(g13.length>0&&m16.length>Math.floor(c18/g13.length))throw new f2(`xargs: array element limit exceeded (${c18})`,"array_elements");let e8=(n10,s10)=>{let h18=0,I22=0;for(;I22=n10.indexOf(u15,I22),I22!==-1;)h18++,I22+=u15.length;if(x(n10)+h18*(x(s10)-x(u15))>y14)throw new f2(`xargs: string length limit exceeded (${y14} bytes)`,"string_length");return n10.replaceAll(u15,s10)},t8=m16.map(n10=>g13.map(s10=>e8(s10,n10)));await z16(t8)}else if(o13!==null){let e8=[],t8=Math.ceil(m16.length/o13);if(t8>Math.min(c18,w15))throw new f2(`xargs: iteration limit exceeded (${w15})`,"iterations");if(m16.length+t8*g13.length>c18)throw new f2(`xargs: array element limit exceeded (${c18})`,"array_elements");for(let s10=0;s10<m16.length;s10+=o13){let h18=m16.slice(s10,s10+o13);e8.push([...g13,...h18])}await z16(e8)}else{let e8=[...g13,...m16],t8=await A13(e8);M20(t8),b23=t8.exitCode}return $22?.build(b23)??{stdout:_13.join(""),stderr:S15.join(""),exitCode:b23}}},Z5={name:"xargs",flags:[{flag:"-I",type:"value",valueHint:"string"},{flag:"-d",type:"value",valueHint:"delimiter"},{flag:"-n",type:"value",valueHint:"number"},{flag:"-0",type:"boolean"},{flag:"-t",type:"boolean"},{flag:"-r",type:"boolean"}],stdinType:"text"}}});var xargs_L7TJHOJT_exports={};__export(xargs_L7TJHOJT_exports,{flagsForFuzzing:()=>Z5,xargsCommand:()=>Y7});import{createRequire as createRequire127}from"node:module";var require128,init_xargs_L7TJHOJT=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/xargs-L7TJHOJT.js"(){init_chunk_EQQGPAXI();init_chunk_J2OBOJ64();init_chunk_L2UW7DWF();init_chunk_6D3WD6YU();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require128=createRequire127(import.meta.url)}});import{createRequire as createRequire128}from"node:module";var require129,e3,t3,s6,r6,init_chunk_HDRAUQK2=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-HDRAUQK2.js"(){require129=createRequire128(import.meta.url),e3={name:"true",async execute(){return{stdout:"",stderr:"",exitCode:0}}},t3={name:"false",async execute(){return{stdout:"",stderr:"",exitCode:1}}},s6={name:"true",flags:[]},r6={name:"false",flags:[]}}});var true_QUBPEGGU_exports={};__export(true_QUBPEGGU_exports,{falseCommand:()=>t3,falseFlagsForFuzzing:()=>r6,flagsForFuzzing:()=>s6,trueCommand:()=>e3});import{createRequire as createRequire129}from"node:module";var require130,init_true_QUBPEGGU=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/true-QUBPEGGU.js"(){init_chunk_HDRAUQK2();init_chunk_NCUTH6QL();require130=createRequire129(import.meta.url)}});import{createRequire as createRequire130}from"node:module";var require131,y12,x16,w12,init_chunk_GLAFXDZC=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-GLAFXDZC.js"(){init_chunk_DIWMSSQY();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();require131=createRequire130(import.meta.url),y12={name:"yes",summary:"output a string repeatedly",usage:"yes [STRING]...",description:["Repeatedly output a line with all specified STRING(s), or 'y'."],options:[" --help display this help and exit"],notes:["Real yes writes until its reader goes away. Pipelines here are not","streaming \u2014 a stage runs to completion before the next one starts \u2014 so","yes stops on its own after executionLimits.maxLoopIterations lines, or","earlier if the repeated line would exceed the output size limit.","`yes | head -3` therefore behaves as expected; an unbounded consumer","sees a finite stream."]},x16={name:"yes",async execute(m16,s10){let t8=[],i22=!1;for(let e8 of m16){if(i22){t8.push(e8);continue}if(e8==="--"){i22=!0;continue}if(e8==="--help")return s5(y12);if(e8.startsWith("--"))return r5("yes",e8);if(e8.startsWith("-")&&e8!=="-")return r5("yes",`-${e8[1]}`);t8.push(e8)}let n10=Math.min(s10.limits.maxStringLength,s10.limits.maxOutputSize),a14=t8.length>0?`${b5(t8," ",n10,"yes")}
579
579
  `:`y
580
- `,d11=Math.floor(n10/x(a14)),h18=Math.min(s10.limits.maxLoopIterations,Math.max(1,d11));return{stdout:m2(a14,h18,n10,"yes"),stderr:"",exitCode:0}}},w12={name:"yes",flags:[]}}});var yes_I7SAR7XX_exports={};__export(yes_I7SAR7XX_exports,{flagsForFuzzing:()=>w12,yesCommand:()=>x16});import{createRequire as createRequire131}from"node:module";var require132,init_yes_I7SAR7XX=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/yes-I7SAR7XX.js"(){init_chunk_GLAFXDZC();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require132=createRequire131(import.meta.url)}});import{createRequire as createRequire132}from"node:module";var require133,t4,s7,o9,init_chunk_7EUWTCWK=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-7EUWTCWK.js"(){init_chunk_QAYAQNCG();require133=createRequire132(import.meta.url),t4={name:"clear",summary:"clear the terminal screen",usage:"clear [OPTIONS]",options:[" --help display this help and exit"]},s7={name:"clear",async execute(r7,c18){return o5(r7)?s5(t4):{stdout:"\x1B[2J\x1B[H",stderr:"",exitCode:0}}},o9={name:"clear",flags:[]}}});var clear_KPIUNI6K_exports={};__export(clear_KPIUNI6K_exports,{clearCommand:()=>s7,flagsForFuzzing:()=>o9});import{createRequire as createRequire133}from"node:module";var require134,init_clear_KPIUNI6K=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/clear-KPIUNI6K.js"(){init_chunk_7EUWTCWK();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require134=createRequire133(import.meta.url)}});import{createRequire as createRequire134}from"node:module";async function c15(t8,e8,o13,i22){if(!i22.exec)return{stdout:"",stderr:`bash: internal error: exec function not available
580
+ `,d11=Math.floor(n10/x(a14)),h18=Math.min(s10.limits.maxLoopIterations,Math.max(1,d11));return{stdout:m2(a14,h18,n10,"yes"),stderr:"",exitCode:0}}},w12={name:"yes",flags:[]}}});var yes_I7SAR7XX_exports={};__export(yes_I7SAR7XX_exports,{flagsForFuzzing:()=>w12,yesCommand:()=>x16});import{createRequire as createRequire131}from"node:module";var require132,init_yes_I7SAR7XX=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/yes-I7SAR7XX.js"(){init_chunk_GLAFXDZC();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require132=createRequire131(import.meta.url)}});import{createRequire as createRequire132}from"node:module";var require133,t4,s7,o9,init_chunk_7EUWTCWK=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-7EUWTCWK.js"(){init_chunk_QAYAQNCG();require133=createRequire132(import.meta.url),t4={name:"clear",summary:"clear the terminal screen",usage:"clear [OPTIONS]",options:[" --help display this help and exit"]},s7={name:"clear",async execute(r7,c18){return o5(r7)?s5(t4):{stdout:"\x1B[2J\x1B[H",stderr:"",exitCode:0}}},o9={name:"clear",flags:[]}}});var clear_KPIUNI6K_exports={};__export(clear_KPIUNI6K_exports,{clearCommand:()=>s7,flagsForFuzzing:()=>o9});import{createRequire as createRequire133}from"node:module";var require134,init_clear_KPIUNI6K=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/clear-KPIUNI6K.js"(){init_chunk_7EUWTCWK();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require134=createRequire133(import.meta.url)}});import{createRequire as createRequire134}from"node:module";async function c15(t8,e8,o13,i22){if(!i22.exec)return{stdout:"",stderr:`bash: internal error: exec function not available
581
581
  `,exitCode:1};let s10=c3(i22.exportedEnv||{},{0:e8,"#":String(o13.length),"@":o13.join(" "),"*":o13.join(" ")});o13.forEach((a14,p16)=>{s10[String(p16+1)]=a14});let n10=t8;if(n10.startsWith("#!")){let a14=n10.indexOf(`
582
- `);a14!==-1&&(n10=n10.slice(a14+1))}let r7=i22.execWithInheritedStdin;return r7?await r7(n10,{env:s10,cwd:i22.cwd,signal:i22.signal}):await i22.exec(n10,{env:s10,cwd:i22.cwd,stdin:i22.stdin,stdinKind:"bytes",signal:i22.signal})}var require135,m12,g9,v10,F15,P11,init_chunk_EJFBIRMD=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-EJFBIRMD.js"(){init_chunk_DLL7UR66();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();require135=createRequire134(import.meta.url),m12={name:"bash",summary:"execute shell commands or scripts",usage:"bash [OPTIONS] [SCRIPT_FILE] [ARGUMENTS...]",options:["-c COMMAND execute COMMAND string"," --help display this help and exit"],notes:["Without -c, reads and executes commands from SCRIPT_FILE.","Arguments are passed as $1, $2, etc. to the script.",'$0 is set to the script name (or "bash" with -c).']},g9={name:"bash",async execute(t8,e8){if(o5(t8))return s5(m12);if(t8[0]==="-c"&&t8.length>=2){let s10=t8[1],n10=t8[2]||"bash",r7=t8.slice(3);return c15(s10,n10,r7,e8)}if(t8.length===0){let s10=a2(e8.stdin);return s10.trim()?c15(s10,"bash",[],e8):{stdout:"",stderr:"",exitCode:0}}let o13=t8[0],i22=t8.slice(1);try{let s10=e8.fs.resolvePath(e8.cwd,o13),n10=await e8.fs.readFile(s10);return c15(n10,o13,i22,e8)}catch{return{stdout:"",stderr:`bash: ${o13}: No such file or directory
582
+ `);a14!==-1&&(n10=n10.slice(a14+1))}let r7=i22.execWithInheritedStdin;return r7?await r7(n10,{env:s10,cwd:i22.cwd,signal:i22.signal}):await i22.exec(n10,{env:s10,cwd:i22.cwd,stdin:i22.stdin,stdinKind:"bytes",signal:i22.signal})}var require135,m12,g9,v10,F15,P11,init_chunk_EJFBIRMD=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-EJFBIRMD.js"(){init_chunk_DLL7UR66();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();require135=createRequire134(import.meta.url),m12={name:"bash",summary:"execute shell commands or scripts",usage:"bash [OPTIONS] [SCRIPT_FILE] [ARGUMENTS...]",options:["-c COMMAND execute COMMAND string"," --help display this help and exit"],notes:["Without -c, reads and executes commands from SCRIPT_FILE.","Arguments are passed as $1, $2, etc. to the script.",'$0 is set to the script name (or "bash" with -c).']},g9={name:"bash",async execute(t8,e8){if(o5(t8))return s5(m12);if(t8[0]==="-c"&&t8.length>=2){let s10=t8[1],n10=t8[2]||"bash",r7=t8.slice(3);return c15(s10,n10,r7,e8)}if(t8.length===0){let s10=a2(e8.stdin);return s10.trim()?c15(s10,"bash",[],e8):{stdout:"",stderr:"",exitCode:0}}let o13=t8[0],i22=t8.slice(1);try{let s10=e8.fs.resolvePath(e8.cwd,o13),n10=await e8.fs.readFile(s10);return c15(n10,o13,i22,e8)}catch{return{stdout:"",stderr:`bash: ${o13}: No such file or directory
583
583
  `,exitCode:127}}}},v10={name:"sh",async execute(t8,e8){if(o5(t8))return s5({...m12,name:"sh",summary:"execute shell commands or scripts (POSIX shell)"});if(t8[0]==="-c"&&t8.length>=2){let s10=t8[1],n10=t8[2]||"sh",r7=t8.slice(3);return c15(s10,n10,r7,e8)}if(t8.length===0){let s10=a2(e8.stdin);return s10.trim()?c15(s10,"sh",[],e8):{stdout:"",stderr:"",exitCode:0}}let o13=t8[0],i22=t8.slice(1);try{let s10=e8.fs.resolvePath(e8.cwd,o13),n10=await e8.fs.readFile(s10);return c15(n10,o13,i22,e8)}catch{return{stdout:"",stderr:`sh: ${o13}: No such file or directory
584
- `,exitCode:127}}}};F15={name:"bash",flags:[{flag:"-c",type:"value",valueHint:"string"}],stdinType:"text"},P11={name:"sh",flags:[{flag:"-c",type:"value",valueHint:"string"}],stdinType:"text"}}});var bash_HIEWVHJ2_exports={};__export(bash_HIEWVHJ2_exports,{bashCommand:()=>g9,flagsForFuzzing:()=>F15,shCommand:()=>v10,shFlagsForFuzzing:()=>P11});import{createRequire as createRequire135}from"node:module";var require136,init_bash_HIEWVHJ2=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/bash-HIEWVHJ2.js"(){init_chunk_EJFBIRMD();init_chunk_DLL7UR66();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require136=createRequire135(import.meta.url)}});import{createRequire as createRequire136}from"node:module";function I13(e8){return e8!==!1&&e8!==null}function J5(e8,n10){return JSON.stringify(e8)===JSON.stringify(n10)}function Y8(e8,n10){return typeof e8=="number"&&typeof n10=="number"?e8-n10:typeof e8=="string"&&typeof n10=="string"?e8.localeCompare(n10):0}function je2(e8,n10,t8={}){let r7=t8.maxDepth??2e3,s10=$9(e8),o13=[{target:s10,source:n10,depth:0}];for(;o13.length>0;){let p16=o13.pop();if(!p16)break;if(p16.depth>r7)throw new f2(`query depth limit exceeded (${r7})`,"recursion");for(let u15 of Object.keys(p16.source)){if(t8.visit?.(),!b12(u15))continue;let f15=j9(p16.target,u15)?k7(p16.target[u15]):null,i22=k7(p16.source[u15]);if(f15&&i22){let c18=$9(f15);A4(p16.target,u15,c18),o13.push({target:c18,source:i22,depth:p16.depth+1})}else A4(p16.target,u15,p16.source[u15])}}return s10}function B12(e8,n10=3e3){if(e8===null||typeof e8!="object")return 0;if(n10<=1)return n10;let t8=(i22,c18)=>({value:i22,keys:Array.isArray(i22)?void 0:Object.keys(i22),nextChild:0,pathDepth:c18,maxChildDepth:0}),r7=i22=>i22.keys!==void 0?i22.keys.length:i22.value.length,s10=i22=>{if(i22.keys){let c18=i22.keys[i22.nextChild++];return i22.value[c18]}return i22.value[i22.nextChild++]},o13=new WeakMap,p16=new WeakMap,u15=e8,f15=[t8(u15,1)];for(o13.set(u15,"visiting");f15.length>0;){let i22=f15[f15.length-1];if(i22.nextChild<r7(i22)){let a14=s10(i22);if(a14===null||typeof a14!="object")continue;let l12=o13.get(a14);if(l12==="visiting")return n10;if(l12==="done"){let b23=p16.get(a14)??0;if(i22.pathDepth+b23>=n10)return n10;i22.maxChildDepth=Math.max(i22.maxChildDepth,b23);continue}let y14=i22.pathDepth+1;if(y14>=n10)return n10;let m16=a14;o13.set(a14,"visiting"),f15.push(t8(m16,y14));continue}let c18=i22.maxChildDepth+1;p16.set(i22.value,c18),o13.set(i22.value,"done"),f15.pop();let h18=f15.at(-1);if(h18)h18.maxChildDepth=Math.max(h18.maxChildDepth,c18);else return c18}return 0}function Z6(e8,n10){let t8=u15=>u15===null?0:typeof u15=="boolean"?1:typeof u15=="number"?2:typeof u15=="string"?3:Array.isArray(u15)?4:typeof u15=="object"?5:6,r7=t8(e8),s10=t8(n10);if(r7!==s10)return r7-s10;if(typeof e8=="number"&&typeof n10=="number")return e8-n10;if(typeof e8=="string"&&typeof n10=="string")return e8.localeCompare(n10);if(typeof e8=="boolean"&&typeof n10=="boolean")return(e8?1:0)-(n10?1:0);if(Array.isArray(e8)&&Array.isArray(n10)){for(let u15=0;u15<Math.min(e8.length,n10.length);u15++){let f15=Z6(e8[u15],n10[u15]);if(f15!==0)return f15}return e8.length-n10.length}let o13=k7(e8),p16=k7(n10);if(o13&&p16){let u15=Object.keys(o13).sort(),f15=Object.keys(p16).sort();for(let i22=0;i22<Math.min(u15.length,f15.length);i22++){let c18=u15[i22].localeCompare(f15[i22]);if(c18!==0)return c18}if(u15.length!==f15.length)return u15.length-f15.length;for(let i22 of u15){let c18=Z6(o13[i22],p16[i22]);if(c18!==0)return c18}}return 0}function v11(e8,n10){if(J5(e8,n10))return!0;if(typeof e8=="string"&&typeof n10=="string")return e8.includes(n10);if(Array.isArray(e8)&&Array.isArray(n10))return n10.every(s10=>e8.some(o13=>v11(o13,s10)));let t8=k7(e8),r7=k7(n10);return t8&&r7?Object.keys(r7).every(s10=>j9(t8,s10)&&v11(t8[s10],r7[s10])):!1}function z10(e8,n10,t8=1){let r7=e8.limits.maxArrayElements;if(t8<0||n10>r7-t8)throw new f2(`query result element limit exceeded (${r7})`,"array_elements")}function pe2(e8,n10,t8,r7,s10,o13,p16,u15,f15,i22){switch(n10){case"sort":return Array.isArray(e8)?[[...e8].sort(p16)]:[null];case"sort_by":return!Array.isArray(e8)||t8.length===0?[null]:[[...e8].sort((h18,a14)=>{let l12=s10(h18,t8[0],r7)[0],y14=s10(a14,t8[0],r7)[0];return p16(l12,y14)})];case"bsearch":{if(!Array.isArray(e8)){let h18=e8===null?"null":typeof e8=="object"?"object":typeof e8;throw new Error(`${h18} (${JSON.stringify(e8)}) cannot be searched from`)}return t8.length===0?[null]:s10(e8,t8[0],r7).map(h18=>{let a14=0,l12=e8.length;for(;a14<l12;){let y14=a14+l12>>>1;p16(e8[y14],h18)<0?a14=y14+1:l12=y14}return a14<e8.length&&p16(e8[a14],h18)===0?a14:-a14-1})}case"unique_by":{if(!Array.isArray(e8)||t8.length===0)return[null];let c18=new Map;for(let a14 of e8){let l12=s10(a14,t8[0],r7)[0],y14=JSON.stringify(l12);c18.has(y14)||c18.set(y14,{item:a14,key:l12})}let h18=[...c18.values()];return h18.sort((a14,l12)=>p16(a14.key,l12.key)),[h18.map(a14=>a14.item)]}case"group_by":{if(!Array.isArray(e8)||t8.length===0)return[null];let c18=new Map;for(let h18 of e8){let a14=JSON.stringify(s10(h18,t8[0],r7)[0]);c18.has(a14)||c18.set(a14,[]),c18.get(a14)?.push(h18)}return[[...c18.values()]]}case"max":return Array.isArray(e8)&&e8.length>0?[e8.reduce((c18,h18)=>p16(c18,h18)>0?c18:h18)]:[null];case"max_by":return!Array.isArray(e8)||e8.length===0||t8.length===0?[null]:[e8.reduce((c18,h18)=>{let a14=s10(c18,t8[0],r7)[0],l12=s10(h18,t8[0],r7)[0];return p16(a14,l12)>0?c18:h18})];case"min":return Array.isArray(e8)&&e8.length>0?[e8.reduce((c18,h18)=>p16(c18,h18)<0?c18:h18)]:[null];case"min_by":return!Array.isArray(e8)||e8.length===0||t8.length===0?[null]:[e8.reduce((c18,h18)=>{let a14=s10(c18,t8[0],r7)[0],l12=s10(h18,t8[0],r7)[0];return p16(a14,l12)<0?c18:h18})];case"add":{let c18=h18=>{let a14=h18.filter(l12=>l12!==null);return a14.length===0?null:a14.every(l12=>typeof l12=="number")?a14.reduce((l12,y14)=>l12+y14,0):a14.every(l12=>typeof l12=="string")?a14.join(""):a14.every(l12=>Array.isArray(l12))?a14.flat():a14.every(l12=>l12&&typeof l12=="object"&&!Array.isArray(l12))?c3(...a14):null};if(t8.length>=1){let h18=s10(e8,t8[0],r7);return[c18(h18)]}return Array.isArray(e8)?[c18(e8)]:[null]}case"any":{if(t8.length>=2){try{let c18=o13(e8,t8[0],r7);for(let h18 of c18)if(s10(h18,t8[1],r7).some(u15))return[!0]}catch(c18){if(c18 instanceof i22)throw c18}return[!1]}return t8.length===1?Array.isArray(e8)?[e8.some(c18=>u15(s10(c18,t8[0],r7)[0]))]:[!1]:Array.isArray(e8)?[e8.some(u15)]:[!1]}case"all":{if(t8.length>=2){try{let c18=o13(e8,t8[0],r7);for(let h18 of c18)if(!s10(h18,t8[1],r7).some(u15))return[!1]}catch(c18){if(c18 instanceof i22)throw c18}return[!0]}return t8.length===1?Array.isArray(e8)?[e8.every(c18=>u15(s10(c18,t8[0],r7)[0]))]:[!0]:Array.isArray(e8)?[e8.every(u15)]:[!0]}case"select":return t8.length===0?[e8]:s10(e8,t8[0],r7).some(u15)?[e8]:[];case"map":{if(t8.length===0||!Array.isArray(e8))return[null];z10(r7,0,e8.length);let c18=[];for(let h18 of e8){let a14=s10(h18,t8[0],r7);z10(r7,c18.length,a14.length);for(let l12 of a14)c18.push(l12)}return[c18]}case"map_values":{if(t8.length===0)return[null];if(Array.isArray(e8)){z10(r7,0,e8.length);let c18=[];for(let h18 of e8){let a14=s10(h18,t8[0],r7);z10(r7,c18.length,a14.length);for(let l12 of a14)c18.push(l12)}return[c18]}if(e8&&typeof e8=="object"){let c18=Object.create(null),h18=Object.keys(e8);z10(r7,0,h18.length);for(let a14 of h18){if(!b12(a14))continue;let l12=e8[a14],y14=s10(l12,t8[0],r7);y14.length>0&&A4(c18,a14,y14[0])}return[c18]}return[null]}case"has":{if(t8.length===0)return[!1];let h18=s10(e8,t8[0],r7)[0];return Array.isArray(e8)&&typeof h18=="number"?[h18>=0&&h18<e8.length]:e8&&typeof e8=="object"&&typeof h18=="string"?[Object.hasOwn(e8,h18)]:[!1]}case"in":{if(t8.length===0)return[!1];let h18=s10(e8,t8[0],r7)[0];return Array.isArray(h18)&&typeof e8=="number"?[e8>=0&&e8<h18.length]:h18&&typeof h18=="object"&&typeof e8=="string"?[Object.hasOwn(h18,e8)]:[!1]}case"contains":{if(t8.length===0)return[!1];let c18=s10(e8,t8[0],r7);return[f15(e8,c18[0])]}case"inside":{if(t8.length===0)return[!1];let c18=s10(e8,t8[0],r7);return[f15(c18[0],e8)]}default:return null}}function he4(e8,n10,t8,r7,s10,o13,p16,u15){switch(n10){case"first":if(t8.length>0)try{let f15=o13(e8,t8[0],r7);return f15.length>0?[f15[0]]:[]}catch(f15){if(f15 instanceof u15)throw f15;return[]}return Array.isArray(e8)&&e8.length>0?[e8[0]]:[null];case"last":if(t8.length>0){let f15=s10(e8,t8[0],r7);return f15.length>0?[f15[f15.length-1]]:[]}return Array.isArray(e8)&&e8.length>0?[e8[e8.length-1]]:[null];case"nth":{if(t8.length<1)return[null];let f15=s10(e8,t8[0],r7);if(t8.length>1){for(let c18 of f15)if(c18<0)throw new Error("nth doesn't support negative indices");let i22;try{i22=o13(e8,t8[1],r7)}catch(c18){if(c18 instanceof u15)throw c18;i22=[]}return f15.flatMap(c18=>{let h18=c18;return h18<i22.length?[i22[h18]]:[]})}return Array.isArray(e8)?f15.flatMap(i22=>{let c18=i22;if(c18<0)throw new Error("nth doesn't support negative indices");return c18<e8.length?[e8[c18]]:[null]}):[null]}case"range":{if(t8.length===0)return[];let f15=r7.limits.maxArrayElements,i22=(y14,m16)=>{if(y14.length>=f15)throw new u15(`query result element limit exceeded (${f15})`,"array_elements");y14.push(m16)},c18=s10(e8,t8[0],r7);if(t8.length===1){let y14=[];for(let m16 of c18){let b23=m16;for(let A13=0;A13<b23;A13++)i22(y14,A13)}return y14}let h18=s10(e8,t8[1],r7);if(t8.length===2){let y14=[];for(let m16 of c18)for(let b23 of h18){let A13=m16,w15=b23;for(let N16=A13;N16<w15;N16++)i22(y14,N16)}return y14}let a14=s10(e8,t8[2],r7),l12=[];for(let y14 of c18)for(let m16 of h18)for(let b23 of a14){let A13=y14,w15=m16,N16=b23;if(N16!==0)if(N16>0)for(let O18=A13;O18<w15;O18+=N16)i22(l12,O18);else for(let O18=A13;O18>w15;O18+=N16)i22(l12,O18)}return l12}case"limit":return t8.length<2?[]:s10(e8,t8[0],r7).flatMap(i22=>{let c18=i22;if(c18<0)throw new Error("limit doesn't support negative count");if(c18===0)return[];let h18;try{h18=o13(e8,t8[1],r7)}catch(a14){if(a14 instanceof u15)throw a14;h18=[]}return h18.slice(0,c18)});case"isempty":{if(t8.length<1)return[!0];try{return[o13(e8,t8[0],r7).length===0]}catch(f15){if(f15 instanceof u15)throw f15;return[!0]}}case"isvalid":{if(t8.length<1)return[!0];try{return[s10(e8,t8[0],r7).length>0]}catch(f15){if(f15 instanceof u15)throw f15;return[!1]}}case"skip":return t8.length<2?[]:s10(e8,t8[0],r7).flatMap(i22=>{let c18=i22;if(c18<0)throw new Error("skip doesn't support negative count");return s10(e8,t8[1],r7).slice(c18)});case"until":{if(t8.length<2)return[e8];let f15=e8,i22=r7.limits.maxIterations;for(let c18=0;c18<i22;c18++){if(s10(f15,t8[0],r7).some(p16))return[f15];let a14=s10(f15,t8[1],r7);if(a14.length===0)return[f15];f15=a14[0]}throw new u15(`jq until: too many iterations (${i22}), increase executionLimits.maxJqIterations`,"iterations")}case"while":{if(t8.length<2)return[e8];let f15=[],i22=e8,c18=r7.limits.maxIterations;for(let h18=0;h18<c18&&s10(i22,t8[0],r7).some(p16);h18++){f15.push(i22);let l12=s10(i22,t8[1],r7);if(l12.length===0)break;i22=l12[0]}if(f15.length>=c18)throw new u15(`jq while: too many iterations (${c18}), increase executionLimits.maxJqIterations`,"iterations");return f15}case"repeat":{if(t8.length===0)return[e8];let f15=[],i22=e8,c18=r7.limits.maxIterations;for(let h18=0;h18<c18;h18++){f15.push(i22);let a14=s10(i22,t8[0],r7);if(a14.length===0)break;i22=a14[0]}if(f15.length>=c18)throw new u15(`jq repeat: too many iterations (${c18}), increase executionLimits.maxJqIterations`,"iterations");return f15}default:return null}}function ae6(e8,n10){if(!Number.isFinite(e8)||Math.abs(e8)>864e10)throw new Error(`${n10} timestamp is outside the supported range`);return new Date(e8*1e3)}function $e4(e8){let n10=e8.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})Z$/);if(!n10)return null;let[,t8,r7,s10,o13,p16,u15]=n10.map(Number),f15=Date.UTC(t8,r7-1,s10,o13,p16,u15);if(!Number.isFinite(f15))return null;let i22=new Date(f15);return i22.getUTCFullYear()!==t8||i22.getUTCMonth()!==r7-1||i22.getUTCDate()!==s10||i22.getUTCHours()!==o13||i22.getUTCMinutes()!==p16||i22.getUTCSeconds()!==u15?null:i22}function le5(e8,n10,t8,r7,s10){switch(n10){case"now":return[Date.now()/1e3];case"gmtime":{if(typeof e8!="number")return[null];let o13=ae6(e8,"gmtime"),p16=o13.getUTCFullYear(),u15=o13.getUTCMonth(),f15=o13.getUTCDate(),i22=o13.getUTCHours(),c18=o13.getUTCMinutes(),h18=o13.getUTCSeconds(),a14=o13.getUTCDay(),l12=Date.UTC(p16,0,1),y14=Math.floor((o13.getTime()-l12)/(1440*60*1e3));return[[p16,u15,f15,i22,c18,h18,a14,y14]]}case"mktime":{if(!Array.isArray(e8))throw new Error("mktime requires parsed datetime inputs");let[o13,p16,u15,f15=0,i22=0,c18=0]=e8;if(typeof o13!="number"||typeof p16!="number")throw new Error("mktime requires parsed datetime inputs");let h18=Date.UTC(o13,p16,u15??1,f15??0,i22??0,c18??0);return[Math.floor(h18/1e3)]}case"strftime":{if(t8.length===0)return[null];let p16=s10(e8,t8[0],r7)[0];if(typeof p16!="string")throw new Error("strftime/1 requires a string format");let u15;if(typeof e8=="number")u15=ae6(e8,"strftime");else if(Array.isArray(e8)){let[a14,l12,y14,m16=0,b23=0,A13=0]=e8;if(typeof a14!="number"||typeof l12!="number")throw new Error("strftime/1 requires parsed datetime inputs");u15=new Date(Date.UTC(a14,l12,y14??1,m16??0,b23??0,A13??0))}else throw new Error("strftime/1 requires parsed datetime inputs");let f15=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],i22=["January","February","March","April","May","June","July","August","September","October","November","December"],c18=(a14,l12=2)=>String(a14).padStart(l12,"0");return[p16.replace(/%Y/g,String(u15.getUTCFullYear())).replace(/%m/g,c18(u15.getUTCMonth()+1)).replace(/%d/g,c18(u15.getUTCDate())).replace(/%H/g,c18(u15.getUTCHours())).replace(/%M/g,c18(u15.getUTCMinutes())).replace(/%S/g,c18(u15.getUTCSeconds())).replace(/%A/g,f15[u15.getUTCDay()]).replace(/%B/g,i22[u15.getUTCMonth()]).replace(/%Z/g,"UTC").replace(/%%/g,"%")]}case"strptime":{if(t8.length===0)return[null];if(typeof e8!="string")throw new Error("strptime/1 requires a string input");let p16=s10(e8,t8[0],r7)[0];if(typeof p16!="string")throw new Error("strptime/1 requires a string format");if(p16!==Pe2)throw new Error(`strptime format is not supported: ${p16}`);let u15=$e4(e8);if(u15){let f15=u15.getUTCFullYear(),i22=u15.getUTCMonth(),c18=u15.getUTCDate(),h18=u15.getUTCHours(),a14=u15.getUTCMinutes(),l12=u15.getUTCSeconds(),y14=u15.getUTCDay(),m16=Date.UTC(f15,0,1),b23=Math.floor((u15.getTime()-m16)/(1440*60*1e3));return[[f15,i22,c18,h18,a14,l12,y14,b23]]}throw new Error(`Cannot parse date: ${e8}`)}case"fromdate":{if(typeof e8!="string")throw new Error("fromdate requires a string input");let o13=$e4(e8);if(!o13)throw new Error(`date "${e8}" does not match format "${Pe2}"`);return[Math.floor(o13.getTime()/1e3)]}case"todate":{if(typeof e8!="number")throw new Error("todate requires a number input");return[ae6(e8,"todate").toISOString().replace(/\.\d{3}Z$/,"Z")]}default:return null}}function Xe2(e8){let n10=[];for(let r7=0;r7<e8.length;r7+=32768){let s10=Math.min(r7+32768,e8.length),o13="";for(let p16=r7;p16<s10;p16++)o13+=String.fromCharCode(e8[p16]);n10.push(o13)}return n10.join("")}function Ge2(e8){let n10=new Uint8Array(e8.length);for(let t8=0;t8<e8.length;t8++)n10[t8]=e8.charCodeAt(t8);return n10}function ye4(e8,n10,t8){switch(n10){case"@base64":if(typeof e8=="string"){if(typeof Buffer<"u")return[Buffer.from(e8,"utf-8").toString("base64")];let r7=new TextEncoder().encode(e8);return[btoa(Xe2(r7))]}return[null];case"@base64d":if(typeof e8=="string"){if(typeof Buffer<"u")return[Buffer.from(e8,"base64").toString("utf-8")];let r7=Ge2(atob(e8));return[new TextDecoder("utf-8",{fatal:!1}).decode(r7)]}return[null];case"@uri":return typeof e8=="string"?[encodeURIComponent(e8).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")]:[null];case"@urid":return typeof e8=="string"?[decodeURIComponent(e8)]:[null];case"@csv":return Array.isArray(e8)?[e8.map(s10=>{if(s10===null)return"";if(typeof s10=="boolean")return s10?"true":"false";if(typeof s10=="number")return String(s10);let o13=String(s10);return o13.includes(",")||o13.includes('"')||o13.includes(`
584
+ `,exitCode:127}}}};F15={name:"bash",flags:[{flag:"-c",type:"value",valueHint:"string"}],stdinType:"text"},P11={name:"sh",flags:[{flag:"-c",type:"value",valueHint:"string"}],stdinType:"text"}}});var bash_HIEWVHJ2_exports={};__export(bash_HIEWVHJ2_exports,{bashCommand:()=>g9,flagsForFuzzing:()=>F15,shCommand:()=>v10,shFlagsForFuzzing:()=>P11});import{createRequire as createRequire135}from"node:module";var require136,init_bash_HIEWVHJ2=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/bash-HIEWVHJ2.js"(){init_chunk_EJFBIRMD();init_chunk_DLL7UR66();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require136=createRequire135(import.meta.url)}});import{createRequire as createRequire136}from"node:module";function I13(e8){return e8!==!1&&e8!==null}function J5(e8,n10){return JSON.stringify(e8)===JSON.stringify(n10)}function Y8(e8,n10){return typeof e8=="number"&&typeof n10=="number"?e8-n10:typeof e8=="string"&&typeof n10=="string"?e8.localeCompare(n10):0}function je2(e8,n10,t8={}){let r7=t8.maxDepth??2e3,s10=$9(e8),o13=[{target:s10,source:n10,depth:0}];for(;o13.length>0;){let p16=o13.pop();if(!p16)break;if(p16.depth>r7)throw new f2(`query depth limit exceeded (${r7})`,"recursion");for(let u15 of Object.keys(p16.source)){if(t8.visit?.(),!b12(u15))continue;let f15=j9(p16.target,u15)?k7(p16.target[u15]):null,i22=k7(p16.source[u15]);if(f15&&i22){let c18=$9(f15);A4(p16.target,u15,c18),o13.push({target:c18,source:i22,depth:p16.depth+1})}else A4(p16.target,u15,p16.source[u15])}}return s10}function B12(e8,n10=3e3){if(e8===null||typeof e8!="object")return 0;if(n10<=1)return n10;let t8=(i22,c18)=>({value:i22,keys:Array.isArray(i22)?void 0:Object.keys(i22),nextChild:0,pathDepth:c18,maxChildDepth:0}),r7=i22=>i22.keys!==void 0?i22.keys.length:i22.value.length,s10=i22=>{if(i22.keys){let c18=i22.keys[i22.nextChild++];return i22.value[c18]}return i22.value[i22.nextChild++]},o13=new WeakMap,p16=new WeakMap,u15=e8,f15=[t8(u15,1)];for(o13.set(u15,"visiting");f15.length>0;){let i22=f15[f15.length-1];if(i22.nextChild<r7(i22)){let a14=s10(i22);if(a14===null||typeof a14!="object")continue;let l12=o13.get(a14);if(l12==="visiting")return n10;if(l12==="done"){let b23=p16.get(a14)??0;if(i22.pathDepth+b23>=n10)return n10;i22.maxChildDepth=Math.max(i22.maxChildDepth,b23);continue}let y14=i22.pathDepth+1;if(y14>=n10)return n10;let m16=a14;o13.set(a14,"visiting"),f15.push(t8(m16,y14));continue}let c18=i22.maxChildDepth+1;p16.set(i22.value,c18),o13.set(i22.value,"done"),f15.pop();let h18=f15.at(-1);if(h18)h18.maxChildDepth=Math.max(h18.maxChildDepth,c18);else return c18}return 0}function Z6(e8,n10){let t8=u15=>u15===null?0:typeof u15=="boolean"?1:typeof u15=="number"?2:typeof u15=="string"?3:Array.isArray(u15)?4:typeof u15=="object"?5:6,r7=t8(e8),s10=t8(n10);if(r7!==s10)return r7-s10;if(typeof e8=="number"&&typeof n10=="number")return e8-n10;if(typeof e8=="string"&&typeof n10=="string")return e8.localeCompare(n10);if(typeof e8=="boolean"&&typeof n10=="boolean")return(e8?1:0)-(n10?1:0);if(Array.isArray(e8)&&Array.isArray(n10)){for(let u15=0;u15<Math.min(e8.length,n10.length);u15++){let f15=Z6(e8[u15],n10[u15]);if(f15!==0)return f15}return e8.length-n10.length}let o13=k7(e8),p16=k7(n10);if(o13&&p16){let u15=Object.keys(o13).sort(),f15=Object.keys(p16).sort();for(let i22=0;i22<Math.min(u15.length,f15.length);i22++){let c18=u15[i22].localeCompare(f15[i22]);if(c18!==0)return c18}if(u15.length!==f15.length)return u15.length-f15.length;for(let i22 of u15){let c18=Z6(o13[i22],p16[i22]);if(c18!==0)return c18}}return 0}function v11(e8,n10){if(J5(e8,n10))return!0;if(typeof e8=="string"&&typeof n10=="string")return e8.includes(n10);if(Array.isArray(e8)&&Array.isArray(n10))return n10.every(s10=>e8.some(o13=>v11(o13,s10)));let t8=k7(e8),r7=k7(n10);return t8&&r7?Object.keys(r7).every(s10=>j9(t8,s10)&&v11(t8[s10],r7[s10])):!1}function z10(e8,n10,t8=1){let r7=e8.limits.maxArrayElements;if(t8<0||n10>r7-t8)throw new f2(`query result element limit exceeded (${r7})`,"array_elements")}function pe2(e8,n10,t8,r7,s10,o13,p16,u15,f15,i22){switch(n10){case"sort":return Array.isArray(e8)?[[...e8].sort(p16)]:[null];case"sort_by":return!Array.isArray(e8)||t8.length===0?[null]:[[...e8].sort((h18,a14)=>{let l12=s10(h18,t8[0],r7)[0],y14=s10(a14,t8[0],r7)[0];return p16(l12,y14)})];case"bsearch":{if(!Array.isArray(e8)){let h18=e8===null?"null":typeof e8=="object"?"object":typeof e8;throw new Error(`${h18} (${JSON.stringify(e8)}) cannot be searched from`)}return t8.length===0?[null]:s10(e8,t8[0],r7).map(h18=>{let a14=0,l12=e8.length;for(;a14<l12;){let y14=a14+l12>>>1;p16(e8[y14],h18)<0?a14=y14+1:l12=y14}return a14<e8.length&&p16(e8[a14],h18)===0?a14:-a14-1})}case"unique_by":{if(!Array.isArray(e8)||t8.length===0)return[null];let c18=new Map;for(let a14 of e8){let l12=s10(a14,t8[0],r7)[0],y14=JSON.stringify(l12);c18.has(y14)||c18.set(y14,{item:a14,key:l12})}let h18=[...c18.values()];return h18.sort((a14,l12)=>p16(a14.key,l12.key)),[h18.map(a14=>a14.item)]}case"group_by":{if(!Array.isArray(e8)||t8.length===0)return[null];let c18=new Map;for(let h18 of e8){let a14=JSON.stringify(s10(h18,t8[0],r7)[0]);c18.has(a14)||c18.set(a14,[]),c18.get(a14)?.push(h18)}return[[...c18.values()]]}case"max":return Array.isArray(e8)&&e8.length>0?[e8.reduce((c18,h18)=>p16(c18,h18)>0?c18:h18)]:[null];case"max_by":return!Array.isArray(e8)||e8.length===0||t8.length===0?[null]:[e8.reduce((c18,h18)=>{let a14=s10(c18,t8[0],r7)[0],l12=s10(h18,t8[0],r7)[0];return p16(a14,l12)>0?c18:h18})];case"min":return Array.isArray(e8)&&e8.length>0?[e8.reduce((c18,h18)=>p16(c18,h18)<0?c18:h18)]:[null];case"min_by":return!Array.isArray(e8)||e8.length===0||t8.length===0?[null]:[e8.reduce((c18,h18)=>{let a14=s10(c18,t8[0],r7)[0],l12=s10(h18,t8[0],r7)[0];return p16(a14,l12)<0?c18:h18})];case"add":{let c18=h18=>{let a14=h18.filter(l12=>l12!==null);return a14.length===0?null:a14.every(l12=>typeof l12=="number")?a14.reduce((l12,y14)=>l12+y14,0):a14.every(l12=>typeof l12=="string")?a14.join(""):a14.every(l12=>Array.isArray(l12))?a14.flat():a14.every(l12=>l12&&typeof l12=="object"&&!Array.isArray(l12))?c3(...a14):null};if(t8.length>=1){let h18=s10(e8,t8[0],r7);return[c18(h18)]}return Array.isArray(e8)?[c18(e8)]:[null]}case"any":{if(t8.length>=2){try{let c18=o13(e8,t8[0],r7);for(let h18 of c18)if(s10(h18,t8[1],r7).some(u15))return[!0]}catch(c18){if(c18 instanceof i22)throw c18}return[!1]}return t8.length===1?Array.isArray(e8)?[e8.some(c18=>u15(s10(c18,t8[0],r7)[0]))]:[!1]:Array.isArray(e8)?[e8.some(u15)]:[!1]}case"all":{if(t8.length>=2){try{let c18=o13(e8,t8[0],r7);for(let h18 of c18)if(!s10(h18,t8[1],r7).some(u15))return[!1]}catch(c18){if(c18 instanceof i22)throw c18}return[!0]}return t8.length===1?Array.isArray(e8)?[e8.every(c18=>u15(s10(c18,t8[0],r7)[0]))]:[!0]:Array.isArray(e8)?[e8.every(u15)]:[!0]}case"select":return t8.length===0?[e8]:s10(e8,t8[0],r7).some(u15)?[e8]:[];case"map":{if(t8.length===0||!Array.isArray(e8))return[null];z10(r7,0,e8.length);let c18=[];for(let h18 of e8){let a14=s10(h18,t8[0],r7);z10(r7,c18.length,a14.length);for(let l12 of a14)c18.push(l12)}return[c18]}case"map_values":{if(t8.length===0)return[null];if(Array.isArray(e8)){z10(r7,0,e8.length);let c18=[];for(let h18 of e8){let a14=s10(h18,t8[0],r7);z10(r7,c18.length,a14.length);for(let l12 of a14)c18.push(l12)}return[c18]}if(e8&&typeof e8=="object"){let c18=Object.create(null),h18=Object.keys(e8);z10(r7,0,h18.length);for(let a14 of h18){if(!b12(a14))continue;let l12=e8[a14],y14=s10(l12,t8[0],r7);y14.length>0&&A4(c18,a14,y14[0])}return[c18]}return[null]}case"has":{if(t8.length===0)return[!1];let h18=s10(e8,t8[0],r7)[0];return Array.isArray(e8)&&typeof h18=="number"?[h18>=0&&h18<e8.length]:e8&&typeof e8=="object"&&typeof h18=="string"?[Object.hasOwn(e8,h18)]:[!1]}case"in":{if(t8.length===0)return[!1];let h18=s10(e8,t8[0],r7)[0];return Array.isArray(h18)&&typeof e8=="number"?[e8>=0&&e8<h18.length]:h18&&typeof h18=="object"&&typeof e8=="string"?[Object.hasOwn(h18,e8)]:[!1]}case"contains":{if(t8.length===0)return[!1];let c18=s10(e8,t8[0],r7);return[f15(e8,c18[0])]}case"inside":{if(t8.length===0)return[!1];let c18=s10(e8,t8[0],r7);return[f15(c18[0],e8)]}default:return null}}function he4(e8,n10,t8,r7,s10,o13,p16,u15){switch(n10){case"first":if(t8.length>0)try{let f15=o13(e8,t8[0],r7);return f15.length>0?[f15[0]]:[]}catch(f15){if(f15 instanceof u15)throw f15;return[]}return Array.isArray(e8)&&e8.length>0?[e8[0]]:[null];case"last":if(t8.length>0){let f15=s10(e8,t8[0],r7);return f15.length>0?[f15[f15.length-1]]:[]}return Array.isArray(e8)&&e8.length>0?[e8[e8.length-1]]:[null];case"nth":{if(t8.length<1)return[null];let f15=s10(e8,t8[0],r7);if(t8.length>1){for(let c18 of f15)if(c18<0)throw new Error("nth doesn't support negative indices");let i22;try{i22=o13(e8,t8[1],r7)}catch(c18){if(c18 instanceof u15)throw c18;i22=[]}return f15.flatMap(c18=>{let h18=c18;return h18<i22.length?[i22[h18]]:[]})}return Array.isArray(e8)?f15.flatMap(i22=>{let c18=i22;if(c18<0)throw new Error("nth doesn't support negative indices");return c18<e8.length?[e8[c18]]:[null]}):[null]}case"range":{if(t8.length===0)return[];let f15=r7.limits.maxArrayElements,i22=(y14,m16)=>{if(y14.length>=f15)throw new u15(`query result element limit exceeded (${f15})`,"array_elements");y14.push(m16)},c18=s10(e8,t8[0],r7);if(t8.length===1){let y14=[];for(let m16 of c18){let b23=m16;for(let A13=0;A13<b23;A13++)i22(y14,A13)}return y14}let h18=s10(e8,t8[1],r7);if(t8.length===2){let y14=[];for(let m16 of c18)for(let b23 of h18){let A13=m16,w15=b23;for(let N16=A13;N16<w15;N16++)i22(y14,N16)}return y14}let a14=s10(e8,t8[2],r7),l12=[];for(let y14 of c18)for(let m16 of h18)for(let b23 of a14){let A13=y14,w15=m16,N16=b23;if(N16!==0)if(N16>0)for(let O18=A13;O18<w15;O18+=N16)i22(l12,O18);else for(let O18=A13;O18>w15;O18+=N16)i22(l12,O18)}return l12}case"limit":return t8.length<2?[]:s10(e8,t8[0],r7).flatMap(i22=>{let c18=i22;if(c18<0)throw new Error("limit doesn't support negative count");if(c18===0)return[];let h18;try{h18=o13(e8,t8[1],r7)}catch(a14){if(a14 instanceof u15)throw a14;h18=[]}return h18.slice(0,c18)});case"isempty":{if(t8.length<1)return[!0];try{return[o13(e8,t8[0],r7).length===0]}catch(f15){if(f15 instanceof u15)throw f15;return[!0]}}case"isvalid":{if(t8.length<1)return[!0];try{return[s10(e8,t8[0],r7).length>0]}catch(f15){if(f15 instanceof u15)throw f15;return[!1]}}case"skip":return t8.length<2?[]:s10(e8,t8[0],r7).flatMap(i22=>{let c18=i22;if(c18<0)throw new Error("skip doesn't support negative count");return s10(e8,t8[1],r7).slice(c18)});case"until":{if(t8.length<2)return[e8];let f15=e8,i22=r7.limits.maxIterations;for(let c18=0;c18<i22;c18++){if(s10(f15,t8[0],r7).some(p16))return[f15];let a14=s10(f15,t8[1],r7);if(a14.length===0)return[f15];f15=a14[0]}throw new u15(`jq until: too many iterations (${i22}), increase executionLimits.maxJqIterations`,"iterations")}case"while":{if(t8.length<2)return[e8];let f15=[],i22=e8,c18=r7.limits.maxIterations;for(let h18=0;h18<c18&&s10(i22,t8[0],r7).some(p16);h18++){f15.push(i22);let l12=s10(i22,t8[1],r7);if(l12.length===0)break;i22=l12[0]}if(f15.length>=c18)throw new u15(`jq while: too many iterations (${c18}), increase executionLimits.maxJqIterations`,"iterations");return f15}case"repeat":{if(t8.length===0)return[e8];let f15=[],i22=e8,c18=r7.limits.maxIterations;for(let h18=0;h18<c18;h18++){f15.push(i22);let a14=s10(i22,t8[0],r7);if(a14.length===0)break;i22=a14[0]}if(f15.length>=c18)throw new u15(`jq repeat: too many iterations (${c18}), increase executionLimits.maxJqIterations`,"iterations");return f15}default:return null}}function ae6(e8,n10){if(!Number.isFinite(e8)||Math.abs(e8)>864e10)throw new Error(`${n10} timestamp is outside the supported range`);return new Date(e8*1e3)}function $e4(e8){let n10=e8.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})Z$/);if(!n10)return null;let[,t8,r7,s10,o13,p16,u15]=n10.map(Number),f15=Date.UTC(t8,r7-1,s10,o13,p16,u15);if(!Number.isFinite(f15))return null;let i22=new Date(f15);return i22.getUTCFullYear()!==t8||i22.getUTCMonth()!==r7-1||i22.getUTCDate()!==s10||i22.getUTCHours()!==o13||i22.getUTCMinutes()!==p16||i22.getUTCSeconds()!==u15?null:i22}function le5(e8,n10,t8,r7,s10){switch(n10){case"now":return[Date.now()/1e3];case"gmtime":{if(typeof e8!="number")return[null];let o13=ae6(e8,"gmtime"),p16=o13.getUTCFullYear(),u15=o13.getUTCMonth(),f15=o13.getUTCDate(),i22=o13.getUTCHours(),c18=o13.getUTCMinutes(),h18=o13.getUTCSeconds(),a14=o13.getUTCDay(),l12=Date.UTC(p16,0,1),y14=Math.floor((o13.getTime()-l12)/(1440*60*1e3));return[[p16,u15,f15,i22,c18,h18,a14,y14]]}case"mktime":{if(!Array.isArray(e8))throw new Error("mktime requires parsed datetime inputs");let[o13,p16,u15,f15=0,i22=0,c18=0]=e8;if(typeof o13!="number"||typeof p16!="number")throw new Error("mktime requires parsed datetime inputs");let h18=Date.UTC(o13,p16,u15??1,f15??0,i22??0,c18??0);return[Math.floor(h18/1e3)]}case"strftime":{if(t8.length===0)return[null];let p16=s10(e8,t8[0],r7)[0];if(typeof p16!="string")throw new Error("strftime/1 requires a string format");let u15;if(typeof e8=="number")u15=ae6(e8,"strftime");else if(Array.isArray(e8)){let[a14,l12,y14,m16=0,b23=0,A13=0]=e8;if(typeof a14!="number"||typeof l12!="number")throw new Error("strftime/1 requires parsed datetime inputs");u15=new Date(Date.UTC(a14,l12,y14??1,m16??0,b23??0,A13??0))}else throw new Error("strftime/1 requires parsed datetime inputs");let f15=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],i22=["January","February","March","April","May","June","July","August","September","October","November","December"],c18=(a14,l12=2)=>String(a14).padStart(l12,"0");return[p16.replace(/%Y/g,String(u15.getUTCFullYear())).replace(/%m/g,c18(u15.getUTCMonth()+1)).replace(/%d/g,c18(u15.getUTCDate())).replace(/%H/g,c18(u15.getUTCHours())).replace(/%M/g,c18(u15.getUTCMinutes())).replace(/%S/g,c18(u15.getUTCSeconds())).replace(/%A/g,f15[u15.getUTCDay()]).replace(/%B/g,i22[u15.getUTCMonth()]).replace(/%Z/g,"UTC").replace(/%%/g,"%")]}case"strptime":{if(t8.length===0)return[null];if(typeof e8!="string")throw new Error("strptime/1 requires a string input");let p16=s10(e8,t8[0],r7)[0];if(typeof p16!="string")throw new Error("strptime/1 requires a string format");if(p16!==Pe2)throw new Error(`strptime format is not supported: ${p16}`);let u15=$e4(e8);if(u15){let f15=u15.getUTCFullYear(),i22=u15.getUTCMonth(),c18=u15.getUTCDate(),h18=u15.getUTCHours(),a14=u15.getUTCMinutes(),l12=u15.getUTCSeconds(),y14=u15.getUTCDay(),m16=Date.UTC(f15,0,1),b23=Math.floor((u15.getTime()-m16)/(1440*60*1e3));return[[f15,i22,c18,h18,a14,l12,y14,b23]]}throw new Error(`Cannot parse date: ${e8}`)}case"fromdate":{if(typeof e8!="string")throw new Error("fromdate requires a string input");let o13=$e4(e8);if(!o13)throw new Error(`date "${e8}" does not match format "${Pe2}"`);return[Math.floor(o13.getTime()/1e3)]}case"todate":{if(typeof e8!="number")throw new Error("todate requires a number input");return[ae6(e8,"todate").toISOString().replace(/\.\d{3}Z$/,"Z")]}default:return null}}function Xe2(e8){let n10=[];for(let r7=0;r7<e8.length;r7+=32768){let s10=Math.min(r7+32768,e8.length),o13="";for(let p16=r7;p16<s10;p16++)o13+=String.fromCharCode(e8[p16]);n10.push(o13)}return n10.join("")}function Ge2(e8){let n10=new Uint8Array(e8.length);for(let t8=0;t8<e8.length;t8++)n10[t8]=e8.charCodeAt(t8);return n10}function ye4(e8,n10,t8){switch(n10){case"@base64":if(typeof e8=="string"){if(typeof Buffer<"u")return[Buffer.from(e8,"utf-8").toString("base64")];let r7=new TextEncoder().encode(e8);return[btoa(Xe2(r7))]}return[null];case"@base64d":if(typeof e8=="string"){if(typeof Buffer<"u")return[Buffer.from(e8,"base64").toString("utf-8")];let r7=Ge2(atob(e8));return[new TextDecoder("utf-8",{fatal:!1}).decode(r7)]}return[null];case"@uri":return typeof e8=="string"?[encodeURIComponent(e8).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")]:[null];case"@urid":return typeof e8=="string"?[decodeURIComponent(e8)]:[null];case"@csv":return Array.isArray(e8)?[e8.map(s10=>{if(s10===null)return"";if(typeof s10=="boolean")return s10?"true":"false";if(typeof s10=="number")return String(s10);let o13=String(s10);return o13.includes(",")||o13.includes('"')||o13.includes(`
585
585
  `)||o13.includes("\r")?`"${o13.replace(/"/g,'""')}"`:o13}).join(",")]:[null];case"@tsv":return Array.isArray(e8)?[e8.map(r7=>String(r7??"").replace(/\t/g,"\\t").replace(/\n/g,"\\n")).join(" ")]:[null];case"@json":{let r7=t8??We5;return B12(e8,r7+1)>r7?[null]:[JSON.stringify(e8)]}case"@html":return typeof e8=="string"?[e8.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&apos;").replace(/"/g,"&quot;")]:[null];case"@sh":return typeof e8=="string"?[`'${e8.replace(/'/g,"'\\''")}'`]:[null];case"@text":return typeof e8=="string"?[e8]:e8==null?[""]:[String(e8)];default:return null}}function me6(e8,n10,t8,r7,s10,o13){switch(n10){case"index":return t8.length===0?[null]:s10(e8,t8[0],r7).map(u15=>{if(typeof e8=="string"&&typeof u15=="string"){if(u15===""&&e8==="")return null;let f15=e8.indexOf(u15);return f15>=0?f15:null}if(Array.isArray(e8)){if(Array.isArray(u15)){for(let i22=0;i22<=e8.length-u15.length;i22++){let c18=!0;for(let h18=0;h18<u15.length;h18++)if(!o13(e8[i22+h18],u15[h18])){c18=!1;break}if(c18)return i22}return null}let f15=e8.findIndex(i22=>o13(i22,u15));return f15>=0?f15:null}return null});case"rindex":return t8.length===0?[null]:s10(e8,t8[0],r7).map(u15=>{if(typeof e8=="string"&&typeof u15=="string"){let f15=e8.lastIndexOf(u15);return f15>=0?f15:null}if(Array.isArray(e8)){if(Array.isArray(u15)){for(let f15=e8.length-u15.length;f15>=0;f15--){let i22=!0;for(let c18=0;c18<u15.length;c18++)if(!o13(e8[f15+c18],u15[c18])){i22=!1;break}if(i22)return f15}return null}for(let f15=e8.length-1;f15>=0;f15--)if(o13(e8[f15],u15))return f15;return null}return null});case"indices":return t8.length===0?[[]]:s10(e8,t8[0],r7).map(u15=>{let f15=[];if(typeof e8=="string"&&typeof u15=="string"){let i22=e8.indexOf(u15);for(;i22!==-1;)f15.push(i22),i22=e8.indexOf(u15,i22+1)}else if(Array.isArray(e8))if(Array.isArray(u15)){let i22=u15.length;if(i22===0)for(let c18=0;c18<=e8.length;c18++)f15.push(c18);else for(let c18=0;c18<=e8.length-i22;c18++){let h18=!0;for(let a14=0;a14<i22;a14++)if(!o13(e8[c18+a14],u15[a14])){h18=!1;break}h18&&f15.push(c18)}}else for(let i22=0;i22<e8.length;i22++)o13(e8[i22],u15)&&f15.push(i22);return f15});default:return null}}function de5(e8,n10,t8,r7,s10){switch(n10){case"fabs":case"abs":return typeof e8=="number"?[Math.abs(e8)]:typeof e8=="string"?[e8]:[null];case"exp10":return typeof e8=="number"?[10**e8]:[null];case"exp2":return typeof e8=="number"?[2**e8]:[null];case"pow":{if(t8.length<2)return[null];let o13=s10(e8,t8[0],r7),p16=s10(e8,t8[1],r7),u15=o13[0],f15=p16[0];return typeof u15!="number"||typeof f15!="number"?[null]:[u15**f15]}case"atan2":{if(t8.length<2)return[null];let o13=s10(e8,t8[0],r7),p16=s10(e8,t8[1],r7),u15=o13[0],f15=p16[0];return typeof u15!="number"||typeof f15!="number"?[null]:[Math.atan2(u15,f15)]}case"hypot":{if(typeof e8!="number"||t8.length===0)return[null];let o13=s10(e8,t8[0],r7)[0];return[Math.hypot(e8,o13)]}case"fma":{if(typeof e8!="number"||t8.length<2)return[null];let o13=s10(e8,t8[0],r7)[0],p16=s10(e8,t8[1],r7)[0];return[e8*o13+p16]}case"copysign":{if(typeof e8!="number"||t8.length===0)return[null];let o13=s10(e8,t8[0],r7)[0];return[Math.sign(o13)*Math.abs(e8)]}case"drem":case"remainder":{if(typeof e8!="number"||t8.length===0)return[null];let o13=s10(e8,t8[0],r7)[0];return[e8-Math.round(e8/o13)*o13]}case"fdim":{if(typeof e8!="number"||t8.length===0)return[null];let o13=s10(e8,t8[0],r7)[0];return[Math.max(0,e8-o13)]}case"fmax":{if(typeof e8!="number"||t8.length===0)return[null];let o13=s10(e8,t8[0],r7)[0];return[Math.max(e8,o13)]}case"fmin":{if(typeof e8!="number"||t8.length===0)return[null];let o13=s10(e8,t8[0],r7)[0];return[Math.min(e8,o13)]}case"ldexp":{if(typeof e8!="number"||t8.length===0)return[null];let o13=s10(e8,t8[0],r7)[0];return[e8*2**o13]}case"scalbn":case"scalbln":{if(typeof e8!="number"||t8.length===0)return[null];let o13=s10(e8,t8[0],r7)[0];return[e8*2**o13]}case"nearbyint":return typeof e8=="number"?[Math.round(e8)]:[null];case"logb":return typeof e8=="number"?[Math.floor(Math.log2(Math.abs(e8)))]:[null];case"significand":if(typeof e8=="number"){let o13=Math.floor(Math.log2(Math.abs(e8)));return[e8/2**o13]}return[null];case"frexp":if(typeof e8=="number"){if(e8===0)return[[0,0]];let o13=Math.floor(Math.log2(Math.abs(e8)))+1;return[[e8/2**o13,o13]]}return[null];case"modf":if(typeof e8=="number"){let o13=Math.trunc(e8);return[[e8-o13,o13]]}return[null];default:return null}}function V5(e8){let n10=e8.limits.maxIterations;return{maxDepth:e8.limits.maxDepth,maxResults:e8.limits.maxArrayElements,maxIterations:n10}}function H14(e8){throw new f2(e8,"array_elements")}function ge6(e8,n10){let t8=1;for(let r7 of e8){if(!Number.isSafeInteger(r7)||r7<0)throw new Error("combinations requires finite array lengths");r7!==0&&t8>Math.floor(n10/r7)&&H14(`query combination limit exceeded (${n10})`),t8*=r7}return t8}function be4(e8,n10,t8,r7,s10,o13,p16,u15){switch(n10){case"recurse":{let f15=[],i22=V5(r7),c18=t8.length>=2?t8[1]:null,h18=[{value:e8,depth:0}],a14=0;for(;h18.length>0;){let l12=h18.pop();if(!l12)break;if(++a14>i22.maxIterations)throw new f2(`query iteration limit exceeded (${i22.maxIterations})`,"iterations");if(l12.depth>i22.maxDepth)throw new f2(`query depth limit exceeded (${i22.maxDepth})`,"recursion");if(c18&&!s10(l12.value,c18,r7).some(o13))continue;f15.length>=i22.maxResults&&H14(`query result element limit exceeded (${i22.maxResults})`),f15.push(l12.value);let y14=[];t8.length===0?Array.isArray(l12.value)?y14=l12.value:l12.value&&typeof l12.value=="object"&&(y14=Object.keys(l12.value).map(m16=>l12.value[m16])):y14=s10(l12.value,t8[0],r7).filter(m16=>m16!=null),h18.length>i22.maxResults-y14.length&&H14(`query traversal queue limit exceeded (${i22.maxResults})`);for(let m16=y14.length-1;m16>=0;m16--)h18.push({value:y14[m16],depth:l12.depth+1})}return f15}case"recurse_down":return u15(e8,"recurse",t8,r7);case"walk":{if(t8.length===0)return[e8];let f15=V5(r7),i22=new WeakSet,c18=new WeakMap,h18=[{value:e8,depth:0,expanded:!1}],a14=e8,l12=0;for(;h18.length>0;){let y14=h18.pop();if(!y14)break;if(++l12>f15.maxIterations)throw new f2(`query iteration limit exceeded (${f15.maxIterations})`,"iterations");if(y14.depth>f15.maxDepth)throw new f2(`query depth limit exceeded (${f15.maxDepth})`,"recursion");let m16=y14.value!==null&&typeof y14.value=="object"?y14.value:null;if(!y14.expanded&&m16){if(i22.has(m16))continue;i22.add(m16),h18.push({...y14,expanded:!0});let w15=k7(y14.value),N16=Array.isArray(y14.value)?y14.value:Object.keys(w15??{}).map(O18=>w15?.[O18]);h18.length>f15.maxResults-N16.length&&H14(`query traversal queue limit exceeded (${f15.maxResults})`);for(let O18=N16.length-1;O18>=0;O18--)h18.push({value:N16[O18],depth:y14.depth+1,expanded:!1});continue}let b23=y14.value;if(Array.isArray(y14.value))b23=y14.value.map(w15=>w15!==null&&typeof w15=="object"?c18.get(w15)??w15:w15);else if(m16){let w15=Object.create(null),N16=k7(y14.value);for(let O18 of Object.keys(N16??{})){if(!b12(O18))continue;let $22=N16?.[O18];A4(w15,O18,$22!==null&&typeof $22=="object"?c18.get($22)??$22:$22)}b23=w15}let A13=s10(b23,t8[0],r7)[0];m16&&c18.set(m16,A13),y14.depth===0&&(a14=A13)}return[a14]}case"transpose":{if(!Array.isArray(e8))return[null];if(e8.length===0)return[[]];let f15=V5(r7),i22=0;for(let h18 of e8)Array.isArray(h18)&&(i22=Math.max(i22,h18.length));ge6([e8.length,i22],f15.maxResults);let c18=[];for(let h18=0;h18<i22;h18++)c18.push(e8.map(a14=>Array.isArray(a14)?a14[h18]:null));return[c18]}case"combinations":{if(t8.length>0){let y14=s10(e8,t8[0],r7)[0];if(!Array.isArray(e8))return[];if(!Number.isFinite(y14)||!Number.isSafeInteger(y14)||y14<0)throw new Error("combinations length must be a finite non-negative integer");let m16=V5(r7);if(y14>m16.maxDepth||y14>m16.maxResults)throw new f2(`query depth limit exceeded (${m16.maxDepth})`,"recursion");if(y14===0)return m16.maxResults<1&&H14("query combination limit exceeded (0)"),[[]];let b23=ge6(Array.from({length:y14},()=>e8.length),m16.maxResults);if(b23===0)return[];let A13=[],w15=new Array(y14).fill(0);for(let N16=0;N16<b23;N16++){A13.push(w15.map(O18=>e8[O18]));for(let O18=y14-1;O18>=0&&(w15[O18]++,!(w15[O18]<e8.length));O18--)w15[O18]=0}return A13}if(!Array.isArray(e8))return[];if(e8.length===0)return V5(r7).maxResults<1&&H14("query combination limit exceeded (0)"),[[]];for(let l12 of e8)if(!Array.isArray(l12))return[];let f15=V5(r7),i22=e8;if(i22.length>f15.maxDepth)throw new f2(`query depth limit exceeded (${f15.maxDepth})`,"recursion");let c18=ge6(i22.map(l12=>l12.length),f15.maxResults);if(c18===0)return[];let h18=[],a14=new Array(i22.length).fill(0);for(let l12=0;l12<c18;l12++){h18.push(a14.map((y14,m16)=>i22[m16][y14]));for(let y14=i22.length-1;y14>=0&&(a14[y14]++,!(a14[y14]<i22[y14].length));y14--)a14[y14]=0}return h18}case"parent":{if(r7.root===void 0||r7.currentPath===void 0)return[];let f15=r7.currentPath;if(f15.length===0)return[];let i22=t8.length>0?s10(e8,t8[0],r7)[0]:1;if(i22>=0){if(i22>f15.length)return[];let c18=f15.slice(0,f15.length-i22);return[p16(r7.root,c18)]}else{let c18=-i22-1;if(c18>=f15.length)return[e8];let h18=f15.slice(0,c18);return[p16(r7.root,h18)]}}case"parents":{if(r7.root===void 0||r7.currentPath===void 0)return[[]];let f15=r7.currentPath,i22=[];for(let c18=f15.length-1;c18>=0;c18--)i22.push(p16(r7.root,f15.slice(0,c18)));return[i22]}case"root":return r7.root!==void 0?[r7.root]:[];default:return null}}function R11(e8){return e8.limits.maxArrayElements}function Ae2(e8,n10){let t8=Object.create(null);return A4(t8,"key",e8),A4(t8,"value",n10),t8}function ee5(e8,n10){let t8=R11(e8);if(n10>=t8)throw new f2(`query result element limit exceeded (${t8})`,"array_elements")}function Ze2(e8,n10){let t8=n10.limits.maxDepth??we5;if(e8.length>t8)throw new f2(`query depth limit exceeded (${t8})`,"recursion");let r7=n10.limits.maxArrayElements;for(let s10 of e8)if(typeof s10=="number"){if(!Number.isSafeInteger(s10)||s10<0||s10>=r7)throw new f2(`query array index limit exceeded (${r7})`,"array_elements")}else if(typeof s10!="string")throw new Error("stream path components must be strings or integers")}function Ee5(e8,n10,t8,r7,s10){switch(n10){case"keys":return Array.isArray(e8)?[e8.map((o13,p16)=>p16)]:e8&&typeof e8=="object"?[Object.keys(e8).sort()]:[null];case"keys_unsorted":return Array.isArray(e8)?[e8.map((o13,p16)=>p16)]:e8&&typeof e8=="object"?[Object.keys(e8)]:[null];case"length":return typeof e8=="string"?[e8.length]:Array.isArray(e8)?[e8.length]:e8&&typeof e8=="object"?[Object.keys(e8).length]:e8===null?[0]:typeof e8=="number"?[Math.abs(e8)]:[null];case"utf8bytelength":{if(typeof e8=="string")return[x(e8)];let o13=e8===null?"null":Array.isArray(e8)?"array":typeof e8,p16=o13==="array"||o13==="object"?JSON.stringify(e8):String(e8);throw new Error(`${o13} (${p16}) only strings have UTF-8 byte length`)}case"to_entries":{if(Array.isArray(e8)){if(e8.length>R11(r7))throw new f2(`query result element limit exceeded (${R11(r7)})`,"array_elements");return[e8.map((p16,u15)=>Ae2(u15,p16))]}let o13=k7(e8);if(o13){let p16=Object.keys(o13);if(p16.length>R11(r7))throw new f2(`query result element limit exceeded (${R11(r7)})`,"array_elements");return[p16.map(u15=>Ae2(u15,o13[u15]))]}return[null]}case"from_entries":if(Array.isArray(e8)){let o13=Object.create(null);for(let p16 of e8){let u15=k7(p16);if(u15){let f15=u15.key??u15.Key??u15.name??u15.Name??u15.k,i22=u15.value??u15.Value??u15.v;if(f15!==void 0){let c18=String(f15);b12(c18)&&A4(o13,c18,i22)}}}return[o13]}return[null];case"with_entries":{if(t8.length===0)return[e8];let o13=k7(e8);if(o13){let p16=Object.keys(o13);if(p16.length>R11(r7))throw new f2(`query result element limit exceeded (${R11(r7)})`,"array_elements");let u15=[];for(let i22 of p16){let c18=Ae2(i22,o13[i22]),h18=s10(c18,t8[0],r7);if(u15.length>R11(r7)-h18.length)throw new f2(`query result element limit exceeded (${R11(r7)})`,"array_elements");for(let a14 of h18)u15.push(a14)}let f15=Object.create(null);for(let i22 of u15){let c18=k7(i22);if(c18){let h18=c18.key??c18.name??c18.k,a14=c18.value??c18.v;if(h18!==void 0){let l12=String(h18);b12(l12)&&A4(f15,l12,a14)}}}return[f15]}return[null]}case"reverse":return Array.isArray(e8)?[[...e8].reverse()]:typeof e8=="string"?[e8.split("").reverse().join("")]:[null];case"flatten":return Array.isArray(e8)?(t8.length>0?s10(e8,t8[0],r7):[Number.POSITIVE_INFINITY]).map(p16=>{let u15=p16;if(u15<0)throw new Error("flatten depth must not be negative");return e8.flat(u15)}):[null];case"unique":if(Array.isArray(e8)){let o13=new Set,p16=[];for(let u15 of e8){let f15=JSON.stringify(u15);o13.has(f15)||(o13.add(f15),p16.push(u15))}return[p16]}return[null];case"tojson":case"tojsonstream":{let o13=r7.limits.maxDepth??we5;return B12(e8,o13+1)>o13?[null]:[JSON.stringify(e8)]}case"fromjson":{if(typeof e8=="string"){let o13=e8.trim().toLowerCase();if(o13==="nan")return[Number.NaN];if(o13==="inf"||o13==="infinity")return[Number.POSITIVE_INFINITY];if(o13==="-inf"||o13==="-infinity")return[Number.NEGATIVE_INFINITY];try{return[D7(JSON.parse(e8),{maxDepth:r7.limits.maxDepth,maxElements:r7.limits.maxArrayElements})]}catch(p16){throw p16 instanceof f2?p16:new Error(`Invalid JSON: ${e8}`)}}return[e8]}case"tostring":return typeof e8=="string"?[e8]:[JSON.stringify(e8)];case"tonumber":if(typeof e8=="number")return[e8];if(typeof e8=="string"){let o13=e8.trim()===""?Number.NaN:Number(e8);if(Number.isNaN(o13))throw new Error(`${JSON.stringify(e8)} cannot be parsed as a number`);return[o13]}throw new Error(`${typeof e8} cannot be parsed as a number`);case"toboolean":{if(typeof e8=="boolean")return[e8];if(typeof e8=="string"){if(e8==="true")return[!0];if(e8==="false")return[!1];throw new Error(`string (${JSON.stringify(e8)}) cannot be parsed as a boolean`)}let o13=e8===null?"null":Array.isArray(e8)?"array":typeof e8,p16=o13==="array"||o13==="object"?JSON.stringify(e8):String(e8);throw new Error(`${o13} (${p16}) cannot be parsed as a boolean`)}case"tostream":{let o13=[],p16=r7.limits.maxDepth??we5,u15=[{value:e8,path:[]}],f15=new WeakSet,i22=0;for(;u15.length>0;){let c18=u15.pop();if(!c18)break;if(++i22>r7.limits.maxIterations)throw new f2(`query iteration limit exceeded (${r7.limits.maxIterations})`,"iterations");if(c18.path.length>p16)throw new f2(`query depth limit exceeded (${p16})`,"recursion");let h18=c18.value;if(h18===null||typeof h18!="object")ee5(r7,o13.length),o13.push([c18.path,h18]);else if(Array.isArray(h18)){if(f15.has(h18))throw new f2("cyclic value cannot be converted to a stream","recursion");if(f15.add(h18),h18.length===0)ee5(r7,o13.length),o13.push([c18.path,[]]);else{if(u15.length>R11(r7)-h18.length)throw new f2(`query traversal queue limit exceeded (${R11(r7)})`,"array_elements");for(let a14=h18.length-1;a14>=0;a14--)u15.push({value:h18[a14],path:[...c18.path,a14]})}}else{if(f15.has(h18))throw new f2("cyclic value cannot be converted to a stream","recursion");f15.add(h18);let a14=Object.keys(h18);if(a14.length===0)ee5(r7,o13.length),o13.push([c18.path,Object.create(null)]);else{if(u15.length>R11(r7)-a14.length)throw new f2(`query traversal queue limit exceeded (${R11(r7)})`,"array_elements");for(let l12=a14.length-1;l12>=0;l12--){let y14=a14[l12];u15.push({value:h18[y14],path:[...c18.path,y14]})}}}}return ee5(r7,o13.length),o13.push([[]]),o13}case"fromstream":{if(t8.length===0)return[e8];let o13=s10(e8,t8[0],r7);if(o13.length>R11(r7))throw new f2(`query stream item limit exceeded (${R11(r7)})`,"array_elements");let p16=null,u15=0;for(let f15 of o13){if(!Array.isArray(f15)||f15.length===1&&Array.isArray(f15[0])&&f15[0].length===0||f15.length!==2)continue;let[i22,c18]=f15;if(!Array.isArray(i22))continue;if(Ze2(i22,r7),i22.length===0){p16=c18;continue}p16===null&&(p16=typeof i22[0]=="number"?[]:Object.create(null));let h18=p16;for(let l12=0;l12<i22.length-1;l12++){let y14=i22[l12],m16=i22[l12+1];if(Array.isArray(h18)&&typeof y14=="number"){let b23=y14+1-h18.length;if(b23>r7.limits.maxIterations-u15)throw new f2(`query iteration limit exceeded (${r7.limits.maxIterations})`,"iterations");for(u15+=Math.max(0,b23);h18.length<=y14;)h18.push(null);h18[y14]===null&&(h18[y14]=typeof m16=="number"?[]:Object.create(null)),h18=h18[y14]}else{let b23=k7(h18);if(b23){let A13=String(y14);if(!b12(A13))continue;(b23[A13]===null||b23[A13]===void 0)&&A4(b23,A13,typeof m16=="number"?[]:Object.create(null)),h18=b23[A13]}}}let a14=i22[i22.length-1];if(Array.isArray(h18)&&typeof a14=="number"){let l12=a14+1-h18.length;if(l12>r7.limits.maxIterations-u15)throw new f2(`query iteration limit exceeded (${r7.limits.maxIterations})`,"iterations");for(u15+=Math.max(0,l12);h18.length<=a14;)h18.push(null);h18[a14]=c18}else{let l12=k7(h18);if(l12){let y14=String(a14);b12(y14)&&A4(l12,y14,c18)}}}return[p16]}case"truncate_stream":{let o13=typeof e8=="number"?Math.floor(e8):0;if(t8.length===0)return[];let p16=[],u15=s10(e8,t8[0],r7);for(let f15 of u15)if(Array.isArray(f15)){if(f15.length===1&&Array.isArray(f15[0])){let i22=f15[0];i22.length>o13&&p16.push([i22.slice(o13)]);continue}if(f15.length===2&&Array.isArray(f15[0])){let i22=f15[0],c18=f15[1];i22.length>o13&&p16.push([i22.slice(o13),c18])}}return p16}default:return null}}function Le5(e8,n10){if(!Array.isArray(e8))throw new Error("path must be an array");let t8=n10.limits.maxDepth;if(e8.length>t8)throw new f2(`query depth limit exceeded (${t8})`,"recursion");let r7=n10.limits.maxArrayElements,s10=0;for(let o13 of e8)if(typeof o13=="number"){if(!Number.isSafeInteger(o13)||o13<0||o13>=r7)throw new f2(`query array index limit exceeded (${r7})`,"array_elements");let p16=o13+1;if(s10>r7-p16)throw new f2(`query cumulative array allocation limit exceeded (${r7})`,"array_elements");s10+=p16}else if(typeof o13!="string")throw new Error("path components must be strings or integers");return T13(n10,s10+e8.length),e8}function _e2(e8,n10,t8){let r7=[],s10=[{value:e8,path:[],isRoot:!0}];for(;s10.length>0;){let o13=s10.pop();if(!o13)break;if(T13(n10),o13.path.length>n10.limits.maxDepth)throw new f2(`query depth limit exceeded (${n10.limits.maxDepth})`,"recursion");if(!(o13.value!==null&&typeof o13.value=="object")){(t8||!o13.isRoot)&&(D11(n10,r7.length),r7.push(o13.path));continue}!t8&&!o13.isRoot&&(D11(n10,r7.length),r7.push(o13.path));let u15=Array.isArray(o13.value)?o13.value.map((f15,i22)=>[i22,f15]):Object.keys(o13.value).map(f15=>[f15,o13.value[f15]]);D11(n10,r7.length,s10.length+u15.length);for(let f15=u15.length-1;f15>=0;f15--){let[i22,c18]=u15[f15],h18=[...o13.path,i22];s10.push({value:c18,path:h18,isRoot:!1})}}return r7}function ke4(e8,n10,t8,r7,s10,o13,p16,u15,f15,i22){switch(n10){case"getpath":{if(t8.length===0)return[null];let c18=s10(e8,t8[0],r7),h18=[];for(let a14 of c18){let l12=a14,y14=e8;for(let m16 of l12){if(y14==null){y14=null;break}if(Array.isArray(y14)&&typeof m16=="number")y14=y14[m16];else if(typeof m16=="string"){let b23=k7(y14);if(!b23||!Object.hasOwn(b23,m16)){y14=null;break}y14=b23[m16]}else{y14=null;break}}h18.push(y14)}return h18}case"setpath":{if(t8.length<2)return[null];let c18=s10(e8,t8[0],r7),h18=Le5(c18[0],r7),l12=s10(e8,t8[1],r7)[0];return[p16(e8,h18,l12)]}case"delpaths":{if(t8.length===0)return[e8];let h18=s10(e8,t8[0],r7)[0],a14=e8;for(let l12 of h18.sort((y14,m16)=>m16.length-y14.length))a14=u15(a14,l12);return[a14]}case"path":{if(t8.length===0)return[[]];let c18=[];return i22(e8,t8[0],r7,[],c18),c18}case"del":return t8.length===0?[e8]:[f15(e8,t8[0],r7)];case"pick":{if(t8.length===0)return[null];let c18=[];for(let a14 of t8)i22(e8,a14,r7,[],c18);let h18=null;for(let a14 of c18){for(let y14 of a14)if(typeof y14=="number"&&y14<0)throw new Error("Out of bounds negative array index");Le5(a14,r7);let l12=e8;for(let y14 of a14){if(l12==null)break;if(Array.isArray(l12)&&typeof y14=="number")l12=l12[y14];else if(typeof y14=="string"){let m16=k7(l12);if(!m16||!Object.hasOwn(m16,y14)){l12=null;break}l12=m16[y14]}else{l12=null;break}}h18=p16(h18,a14,l12)}return[h18]}case"paths":{let c18=_e2(e8,r7,!1);return t8.length>0?c18.filter(h18=>{let a14=e8;for(let y14 of h18)if(Array.isArray(a14)&&typeof y14=="number")a14=a14[y14];else if(typeof y14=="string"){let m16=k7(a14);if(!m16||!Object.hasOwn(m16,y14))return!1;a14=m16[y14]}else return!1;return s10(a14,t8[0],r7).some(o13)}):c18}case"leaf_paths":return _e2(e8,r7,!0);default:return null}}function Se5(e8,n10,t8,r7,s10,o13){switch(n10){case"IN":{if(t8.length===0)return[!1];if(t8.length===1){let i22=s10(e8,t8[0],r7);for(let c18 of i22)if(o13(e8,c18))return[!0];return[!1]}let p16=s10(e8,t8[0],r7),u15=s10(e8,t8[1],r7),f15=new Set(u15.map(i22=>JSON.stringify(i22)));for(let i22 of p16)if(f15.has(JSON.stringify(i22)))return[!0];return[!1]}case"INDEX":{if(t8.length===0)return[Object.create(null)];if(t8.length===1){let f15=s10(e8,t8[0],r7),i22=Object.create(null);for(let c18 of f15){let h18=String(c18);b12(h18)&&A4(i22,h18,c18)}return[i22]}if(t8.length===2){let f15=s10(e8,t8[0],r7),i22=Object.create(null);for(let c18 of f15){let h18=s10(c18,t8[1],r7);if(h18.length>0){let a14=String(h18[0]);b12(a14)&&A4(i22,a14,c18)}}return[i22]}let p16=s10(e8,t8[0],r7),u15=Object.create(null);for(let f15 of p16){let i22=s10(f15,t8[1],r7),c18=s10(f15,t8[2],r7);if(i22.length>0&&c18.length>0){let h18=String(i22[0]);b12(h18)&&A4(u15,h18,c18[0])}}return[u15]}case"JOIN":{if(t8.length<2)return[null];let p16=k7(s10(e8,t8[0],r7)[0]);if(!p16)return[null];if(!Array.isArray(e8))return[null];let u15=[];for(let f15 of e8){let i22=s10(f15,t8[1],r7),c18=i22.length>0?String(i22[0]):"",h18=j9(p16,c18)?p16[c18]:null;u15.push([f15,h18])}return[u15]}default:return null}}function Ue2(e8){return e8.limits.maxArrayElements}function Be4(e8){return Math.min(e8.limits.maxStringLength,e8.limits.maxOutputSize)}function U8(e8,n10){let t8=Ue2(e8);if(!Number.isSafeInteger(n10)||n10<0||n10>t8)throw new f2(`query result element limit exceeded (${t8})`,"array_elements")}function ve5(e8,n10,t8){if(e8==="")return n10===""?0:1;if(n10==="")return e8.length;let r7=1,s10=0;for(;;){let o13=e8.indexOf(n10,s10);if(o13<0||(r7++,r7>t8))return r7;s10=o13+n10.length}}function Oe4(e8,n10,t8,r7,s10){switch(n10){case"join":{if(!Array.isArray(e8))return[null];let o13=t8.length>0?s10(e8,t8[0],r7):[""];for(let p16 of e8)if(Array.isArray(p16)||p16!==null&&typeof p16=="object")throw new Error("cannot join: contains arrays or objects");return U8(r7,o13.length),o13.map(p16=>{let u15=String(p16),f15=0;for(let i22=0;i22<e8.length;i22++){let c18=e8[i22]===null?"":typeof e8[i22]=="string"?e8[i22]:String(e8[i22]);if(f15+=x(c18),i22>0&&(f15+=x(u15)),f15>Be4(r7))throw new f2(`query string size limit exceeded (${Be4(r7)} bytes)`,"string_length")}return e8.map(i22=>i22===null?"":typeof i22=="string"?i22:String(i22)).join(u15)})}case"split":{if(typeof e8!="string"||t8.length===0)return[null];let o13=s10(e8,t8[0],r7),p16=String(o13[0]);return U8(r7,ve5(e8,p16,Ue2(r7))),[e8.split(p16)]}case"splits":{if(typeof e8!="string"||t8.length===0)return[];let o13=s10(e8,t8[0],r7),p16=String(o13[0]);try{let u15=t8.length>1?String(s10(e8,t8[1],r7)[0]):"g",f15=G1(p16,u15.includes("g")?u15:`${u15}g`),i22=1;for(let h18 of f15.matchAll(e8))i22+=Math.max(1,h18.length),U8(r7,i22);let c18=f15.split(e8);return U8(r7,c18.length),c18}catch(u15){if(u15 instanceof f2)throw u15;return[]}}case"scan":{if(typeof e8!="string"||t8.length===0)return[];let o13=s10(e8,t8[0],r7),p16=String(o13[0]);try{let u15=t8.length>1?String(s10(e8,t8[1],r7)[0]):"",f15=G1(p16,u15.includes("g")?u15:`${u15}g`),i22=[];for(let c18 of f15.matchAll(e8))U8(r7,i22.length+1),c18.length>1?(U8(r7,c18.length-1),i22.push(c18.slice(1))):i22.push(c18[0]);return i22}catch(u15){if(u15 instanceof f2)throw u15;return[]}}case"test":{if(typeof e8!="string"||t8.length===0)return[!1];let o13=s10(e8,t8[0],r7),p16=String(o13[0]);try{let u15=t8.length>1?String(s10(e8,t8[1],r7)[0]):"";return[G1(p16,u15).test(e8)]}catch{return[!1]}}case"match":{if(typeof e8!="string"||t8.length===0)return[null];let o13=s10(e8,t8[0],r7),p16=String(o13[0]);try{let u15=t8.length>1?String(s10(e8,t8[1],r7)[0]):"",i22=G1(p16,`${u15}d`).exec(e8);if(!i22)return[];let c18=i22.indices;return[{offset:i22.index,length:i22[0].length,string:i22[0],captures:i22.slice(1).map((h18,a14)=>({offset:c18?.[a14+1]?.[0]??null,length:h18?.length??0,string:h18??"",name:null}))}]}catch{return[null]}}case"capture":{if(typeof e8!="string"||t8.length===0)return[null];let o13=s10(e8,t8[0],r7),p16=String(o13[0]);try{let u15=t8.length>1?String(s10(e8,t8[1],r7)[0]):"",i22=G1(p16,u15).match(e8);return!i22||!i22.groups?[Object.create(null)]:[i22.groups]}catch{return[null]}}case"sub":{if(typeof e8!="string"||t8.length<2)return[null];let o13=s10(e8,t8[0],r7),p16=s10(e8,t8[1],r7),u15=String(o13[0]),f15=String(p16[0]);try{let i22=t8.length>2?String(s10(e8,t8[2],r7)[0]):"";return[G1(u15,i22).replace(e8,f15)]}catch{return[e8]}}case"gsub":{if(typeof e8!="string"||t8.length<2)return[null];let o13=s10(e8,t8[0],r7),p16=s10(e8,t8[1],r7),u15=String(o13[0]),f15=String(p16[0]);try{let i22=t8.length>2?String(s10(e8,t8[2],r7)[0]):"g",c18=i22.includes("g")?i22:`${i22}g`;return[G1(u15,c18).replace(e8,f15)]}catch{return[e8]}}case"ascii_downcase":return typeof e8=="string"?[e8.replace(/[A-Z]/g,o13=>String.fromCharCode(o13.charCodeAt(0)+32))]:[null];case"ascii_upcase":return typeof e8=="string"?[e8.replace(/[a-z]/g,o13=>String.fromCharCode(o13.charCodeAt(0)-32))]:[null];case"ltrimstr":{if(typeof e8!="string"||t8.length===0)return[e8];let o13=s10(e8,t8[0],r7),p16=String(o13[0]);return[e8.startsWith(p16)?e8.slice(p16.length):e8]}case"rtrimstr":{if(typeof e8!="string"||t8.length===0)return[e8];let o13=s10(e8,t8[0],r7),p16=String(o13[0]);return p16===""?[e8]:[e8.endsWith(p16)?e8.slice(0,-p16.length):e8]}case"trimstr":{if(typeof e8!="string"||t8.length===0)return[e8];let o13=s10(e8,t8[0],r7),p16=String(o13[0]);if(p16==="")return[e8];let u15=e8;return u15.startsWith(p16)&&(u15=u15.slice(p16.length)),u15.endsWith(p16)&&(u15=u15.slice(0,-p16.length)),[u15]}case"trim":if(typeof e8=="string")return[e8.trim()];throw new Error("trim input must be a string");case"ltrim":if(typeof e8=="string")return[e8.trimStart()];throw new Error("trim input must be a string");case"rtrim":if(typeof e8=="string")return[e8.trimEnd()];throw new Error("trim input must be a string");case"startswith":{if(typeof e8!="string"||t8.length===0)return[!1];let o13=s10(e8,t8[0],r7);return[e8.startsWith(String(o13[0]))]}case"endswith":{if(typeof e8!="string"||t8.length===0)return[!1];let o13=s10(e8,t8[0],r7);return[e8.endsWith(String(o13[0]))]}case"ascii":return typeof e8=="string"&&e8.length>0?[e8.charCodeAt(0)]:[null];case"explode":if(typeof e8=="string"){let o13=0;for(let p16 of e8)o13++,U8(r7,o13);return[Array.from(e8).map(p16=>p16.codePointAt(0))]}return[null];case"implode":if(!Array.isArray(e8))throw new Error("implode input must be an array");return[e8.map(u15=>{if(typeof u15=="string")throw new Error(`string (${JSON.stringify(u15)}) can't be imploded, unicode codepoint needs to be numeric`);if(typeof u15!="number"||Number.isNaN(u15))throw new Error("number (null) can't be imploded, unicode codepoint needs to be numeric");let f15=Math.trunc(u15);return f15<0||f15>1114111||f15>=55296&&f15<=57343?String.fromCodePoint(65533):String.fromCodePoint(f15)}).join("")];default:return null}}function Ne4(e8,n10){switch(n10){case"type":return e8===null?["null"]:Array.isArray(e8)?["array"]:typeof e8=="boolean"?["boolean"]:typeof e8=="number"?["number"]:typeof e8=="string"?["string"]:typeof e8=="object"?["object"]:["null"];case"infinite":return[Number.POSITIVE_INFINITY];case"nan":return[Number.NaN];case"isinfinite":return[typeof e8=="number"&&!Number.isFinite(e8)];case"isnan":return[typeof e8=="number"&&Number.isNaN(e8)];case"isnormal":return[typeof e8=="number"&&Number.isFinite(e8)&&e8!==0];case"isfinite":return[typeof e8=="number"&&Number.isFinite(e8)];case"numbers":return typeof e8=="number"?[e8]:[];case"strings":return typeof e8=="string"?[e8]:[];case"booleans":return typeof e8=="boolean"?[e8]:[];case"nulls":return e8===null?[e8]:[];case"arrays":return Array.isArray(e8)?[e8]:[];case"objects":return e8&&typeof e8=="object"&&!Array.isArray(e8)?[e8]:[];case"iterables":return Array.isArray(e8)||e8&&typeof e8=="object"&&!Array.isArray(e8)?[e8]:[];case"scalars":return!Array.isArray(e8)&&!(e8&&typeof e8=="object")?[e8]:[];case"values":return e8===null?[]:[e8];case"not":return e8===!1||e8===null?[!0]:[!1];case"null":return[null];case"true":return[!0];case"false":return[!1];case"empty":return[];default:return null}}function te6(e8,n10,t8){if(n10.length===0)return t8;let[r7,...s10]=n10;if(typeof r7=="number"){if(e8&&typeof e8=="object"&&!Array.isArray(e8))throw new Error("Cannot index object with number");if(r7>536870911)throw new Error("Array index too large");if(r7<0)throw new Error("Out of bounds negative array index");let i22=Array.isArray(e8)?[...e8]:[];for(;i22.length<=r7;)i22.push(null);return i22[r7]=te6(i22[r7],s10,t8),i22}if(Array.isArray(e8))throw new Error("Cannot index array with string");if(!b12(r7))return e8??Object.create(null);let o13=k7(e8),p16=o13?$9(o13):Object.create(null),u15=Object.hasOwn(p16,r7)?p16[r7]:void 0;return A4(p16,r7,te6(u15,s10,t8)),p16}function re5(e8,n10){if(n10.length===0)return null;if(n10.length===1){let s10=n10[0];if(Array.isArray(e8)&&typeof s10=="number"){let o13=[...e8];return o13.splice(s10,1),o13}if(e8&&typeof e8=="object"&&!Array.isArray(e8)){let o13=String(s10);if(!b12(o13))return e8;let p16=$9(e8);return delete p16[o13],p16}return e8}let[t8,...r7]=n10;if(Array.isArray(e8)&&typeof t8=="number"){let s10=[...e8];return s10[t8]=re5(s10[t8],r7),s10}if(e8&&typeof e8=="object"&&!Array.isArray(e8)){let s10=String(t8);if(!b12(s10))return e8;let o13=$9(e8);return Object.hasOwn(o13,s10)&&A4(o13,s10,re5(o13[s10],r7)),o13}return e8}function F16(e8,n10){return new f2(e8,n10)}function T13(e8,n10=1){if(!Number.isSafeInteger(n10)||n10<0||e8.budget.operations>e8.limits.maxIterations-n10)throw F16(`query evaluation: too many iterations (${e8.limits.maxIterations})`,"iterations");e8.budget.operations+=n10}function D11(e8,n10,t8=1){let r7=e8.limits.maxArrayElements;if(!Number.isSafeInteger(n10)||!Number.isSafeInteger(t8)||n10<0||t8<0||n10>r7-t8)throw F16(`query result element limit exceeded (${r7})`,"array_elements")}function q6(e8,n10,t8){D11(e8,n10.length,t8.length);for(let r7 of t8)n10.push(r7)}function M13(e8,n10,t8){let r7=[];for(let s10 of n10){T13(e8);let o13=t8(s10);q6(e8,r7,o13)}return r7}function rt2(e8){let n10=new Map;if(e8?.namedArgs)for(let[t8,r7]of e8.namedArgs)n10.set(`$${t8}`,r7);return{vars:n10,limits:{maxIterations:e8?.limits?.maxIterations??et3,maxDepth:e8?.limits?.maxDepth??Je2,maxStringLength:e8?.limits?.maxStringLength??qe2,maxOutputSize:e8?.limits?.maxOutputSize??qe2,maxArrayElements:e8?.limits?.maxArrayElements??1e5},env:e8?.env,namedArgs:e8?.namedArgs,positionalArgs:e8?.positionalArgs,coverage:e8?.coverage,requireDefenseContext:e8?.requireDefenseContext,defenseContextChecked:!1,budget:e8?.budget??{operations:0,callDepth:0}}}function se5(e8,n10,t8){let r7=new Map(e8.vars);return r7.set(n10,t8),{vars:r7,limits:e8.limits,env:e8.env,namedArgs:e8.namedArgs,positionalArgs:e8.positionalArgs,requireDefenseContext:e8.requireDefenseContext,defenseContextChecked:e8.defenseContextChecked,root:e8.root,currentPath:e8.currentPath,funcs:e8.funcs,labels:e8.labels,coverage:e8.coverage,budget:e8.budget}}function W5(e8,n10,t8){switch(n10.type){case"var":return se5(e8,n10.name,t8);case"array":{if(!Array.isArray(t8))return null;let r7=e8;for(let s10=0;s10<n10.elements.length;s10++){let o13=n10.elements[s10],p16=s10<t8.length?t8[s10]:null,u15=W5(r7,o13,p16);if(u15===null)return null;r7=u15}return r7}case"object":{let r7=k7(t8);if(!r7)return null;let s10=e8;for(let o13 of n10.fields){let p16;if(typeof o13.key=="string")p16=o13.key;else{let i22=d8(t8,o13.key,e8);if(i22.length===0)return null;p16=String(i22[0])}let u15=j9(r7,p16)?r7[p16]:null;o13.keyVar&&(s10=se5(s10,o13.keyVar,u15));let f15=W5(s10,o13.pattern,u15);if(f15===null)return null;s10=f15}return s10}}}function nt3(e8,n10){let t8=e8;for(let r7 of n10)if(t8&&typeof t8=="object")if(Array.isArray(t8))if(typeof r7=="number")t8=t8[r7];else return;else{let s10=k7(t8);if(s10&&typeof r7=="string"&&Object.hasOwn(s10,r7))t8=s10[r7];else return}else return;return t8}function P12(e8){if(e8.type==="Identity")return[];if(e8.type==="Field"){let n10=e8.base?P12(e8.base):[];return n10===null?null:[...n10,e8.name]}if(e8.type==="Index"&&e8.index.type==="Literal"){let n10=e8.base?P12(e8.base):[];if(n10===null)return null;let t8=e8.index.value;return typeof t8=="number"||typeof t8=="string"?[...n10,t8]:null}if(e8.type==="Pipe"){let n10=P12(e8.left);return n10===null?null:Ce7(n10,e8.right)}if(e8.type==="Call"){if(e8.name==="parent"||e8.name==="root")return null;if(e8.name==="first"&&e8.args.length===0)return[0];if(e8.name==="last"&&e8.args.length===0)return[-1]}return null}function Ce7(e8,n10){if(n10.type==="Call"){if(n10.name==="parent"){let t8=1;if(n10.args.length>0&&n10.args[0].type==="Literal"){let r7=n10.args[0].value;typeof r7=="number"&&(t8=r7)}if(t8>=0)return e8.slice(0,Math.max(0,e8.length-t8));{let r7=-t8-1;return e8.slice(0,Math.min(r7,e8.length))}}if(n10.name==="root")return[]}if(n10.type==="Field"){let t8=P12(n10);if(t8!==null)return[...e8,...t8]}if(n10.type==="Index"&&n10.index.type==="Literal"){let t8=P12(n10);if(t8!==null)return[...e8,...t8]}if(n10.type==="Pipe"){let t8=Ce7(e8,n10.left);return t8===null?null:Ce7(t8,n10.right)}return n10.type==="Identity"?e8:null}function Fe5(e8,n10,t8){if(n10.type==="Comma"){let r7=[];try{let s10=d8(e8,n10.left,t8);q6(t8,r7,s10)}catch(s10){if(s10 instanceof f2)throw s10;if(r7.length>0)return r7;throw new Error("evaluation failed")}try{let s10=d8(e8,n10.right,t8);q6(t8,r7,s10)}catch(s10){if(s10 instanceof f2)throw s10;return r7}return r7}return d8(e8,n10,t8)}function d8(e8,n10,t8){let r7=t8&&"vars"in t8?t8:rt2(t8);if(r7.defenseContextChecked||(a5(r7.requireDefenseContext,"query-engine","evaluation"),r7={...r7,defenseContextChecked:!0}),r7.root===void 0&&(r7={...r7,root:e8,currentPath:[]}),T13(r7),r7.budget.callDepth++,r7.budget.callDepth>r7.limits.maxDepth)throw r7.budget.callDepth--,F16(`query depth limit exceeded (${r7.limits.maxDepth})`,"recursion");try{let s10=it3(e8,n10,r7);return D11(r7,0,s10.length),s10}finally{r7.budget.callDepth--}}function it3(e8,n10,t8){switch(t8.coverage?.hit(`jq:node:${n10.type}`),n10.type){case"Identity":return[e8];case"Field":{let r7=n10.base?d8(e8,n10.base,t8):[e8];return M13(t8,r7,s10=>{let o13=k7(s10);if(o13){if(!Object.hasOwn(o13,n10.name))return[null];let u15=o13[n10.name];return[u15===void 0?null:u15]}if(s10===null)return[null];let p16=Array.isArray(s10)?"array":typeof s10;throw new Error(`Cannot index ${p16} with string "${n10.name}"`)})}case"Index":{let r7=n10.base?d8(e8,n10.base,t8):[e8];return M13(t8,r7,s10=>{let o13=d8(s10,n10.index,t8);return M13(t8,o13,p16=>{if(typeof p16=="number"&&Array.isArray(s10)){if(Number.isNaN(p16))return[null];let u15=Math.trunc(p16),f15=u15<0?s10.length+u15:u15;return f15>=0&&f15<s10.length?[s10[f15]]:[null]}if(typeof p16=="string"){let u15=k7(s10);return!u15||!Object.hasOwn(u15,p16)?[null]:[u15[p16]]}return[null]})})}case"Slice":{let r7=n10.base?d8(e8,n10.base,t8):[e8];return M13(t8,r7,s10=>{if(s10===null)return[null];if(!Array.isArray(s10)&&typeof s10!="string")throw new Error(`Cannot slice ${typeof s10} (${JSON.stringify(s10)})`);let o13=s10.length,p16=n10.start?d8(e8,n10.start,t8):[0],u15=n10.end?d8(e8,n10.end,t8):[o13];return D11(t8,0,p16.length*u15.length),M13(t8,p16,f15=>u15.map(i22=>{let c18=f15,h18=i22,a14=Number.isNaN(c18)?0:Number.isInteger(c18)?c18:Math.floor(c18),l12=Number.isNaN(h18)?o13:Number.isInteger(h18)?h18:Math.ceil(h18),y14=Ke2(a14,o13),m16=Ke2(l12,o13);return Array.isArray(s10),s10.slice(y14,m16)}))})}case"Iterate":{let r7=n10.base?d8(e8,n10.base,t8):[e8];return M13(t8,r7,s10=>Array.isArray(s10)?s10:s10&&typeof s10=="object"?Object.values(s10):[])}case"Pipe":{let r7=d8(e8,n10.left,t8),s10=P12(n10.left),o13=[];for(let p16 of r7)try{if(s10!==null){let u15={...t8,currentPath:[...t8.currentPath??[],...s10]},f15=d8(p16,n10.right,u15);q6(t8,o13,f15)}else{let u15=d8(p16,n10.right,t8);q6(t8,o13,u15)}}catch(u15){throw u15 instanceof Q6?u15.withPrependedResults(o13):u15}return o13}case"Comma":{let r7=d8(e8,n10.left,t8),s10=d8(e8,n10.right,t8);return D11(t8,r7.length,s10.length),[...r7,...s10]}case"Literal":return[n10.value];case"Array":return n10.elements?[d8(e8,n10.elements,t8)]:[[]];case"Object":{let r7=[Object.create(null)];for(let s10 of n10.entries){let o13=typeof s10.key=="string"?[s10.key]:d8(e8,s10.key,t8),p16=d8(e8,s10.value,t8),u15=[],f15=o13.filter(h18=>typeof h18=="string"&&b12(h18)).length,i22=f15+(o13.length-f15),c18=r7.length*i22*p16.length;D11(t8,0,c18);for(let h18 of r7)for(let a14 of o13){if(typeof a14!="string"){let l12=a14===null?"null":Array.isArray(a14)?"array":typeof a14;throw new Error(`Cannot use ${l12} (${JSON.stringify(a14)}) as object key`)}if(!b12(a14)){for(let l12 of p16)u15.push($9(h18));continue}for(let l12 of p16){let y14=$9(h18);A4(y14,a14,l12),u15.push(y14)}}r7.length=0,q6(t8,r7,u15)}return r7}case"Paren":return d8(e8,n10.expr,t8);case"BinaryOp":return ft2(e8,n10.op,n10.left,n10.right,t8);case"UnaryOp":return d8(e8,n10.operand,t8).map(s10=>{if(n10.op==="-"){if(typeof s10=="number")return-s10;if(typeof s10=="string"){let o13=p16=>p16.length>5?`"${p16.slice(0,3)}...`:JSON.stringify(p16);throw new Error(`string (${o13(s10)}) cannot be negated`)}return null}return n10.op==="not"?!I13(s10):null});case"Cond":{let r7=d8(e8,n10.cond,t8);return M13(t8,r7,s10=>{if(I13(s10))return d8(e8,n10.then,t8);for(let o13 of n10.elifs)if(d8(e8,o13.cond,t8).some(I13))return d8(e8,o13.then,t8);return n10.else?d8(e8,n10.else,t8):[e8]})}case"Try":try{return d8(e8,n10.body,t8)}catch(r7){if(r7 instanceof f2)throw r7;if(n10.catch){let s10=r7 instanceof ie4?r7.value:r7 instanceof Error?r7.message:String(r7);return d8(s10,n10.catch,t8)}return[]}case"Call":return Ve3(e8,n10.name,n10.args,t8);case"VarBind":{let r7=d8(e8,n10.value,t8);return M13(t8,r7,s10=>{let o13=null,p16=[];if(n10.pattern?p16.push(n10.pattern):n10.name&&p16.push({type:"var",name:n10.name}),n10.alternatives)for(let u15 of n10.alternatives)p16.push(u15);for(let u15 of p16)if(o13=W5(t8,u15,s10),o13!==null)break;return o13===null?[]:d8(e8,n10.body,o13)})}case"VarRef":{if(n10.name==="$ENV")return[t8.env?r3(t8.env):Object.create(null)];if(n10.name==="$ARGS"){let s10=Object.create(null);if(t8.namedArgs)for(let[p16,u15]of t8.namedArgs)Object.defineProperty(s10,p16,{value:u15,enumerable:!0,writable:!0,configurable:!0});let o13=Object.create(null);return o13.positional=t8.positionalArgs?[...t8.positionalArgs]:[],o13.named=s10,[o13]}let r7=t8.vars.get(n10.name);return r7!==void 0?[r7]:[null]}case"Recurse":{let r7=[],s10=new WeakSet,o13=[{val:e8,depth:0}];for(;o13.length>0;){let p16=o13.pop();if(!p16)break;let{val:u15,depth:f15}=p16;if(T13(t8),f15>t8.limits.maxDepth)throw F16(`query depth limit exceeded (${t8.limits.maxDepth})`,"recursion");if(u15&&typeof u15=="object"){if(s10.has(u15))continue;s10.add(u15)}if(D11(t8,r7.length),r7.push(u15),Array.isArray(u15))for(let i22=u15.length-1;i22>=0;i22--)o13.push({val:u15[i22],depth:f15+1});else if(u15&&typeof u15=="object"){let i22=Object.keys(u15);for(let c18=i22.length-1;c18>=0;c18--)o13.push({val:u15[i22[c18]],depth:f15+1})}}return r7}case"Optional":try{return d8(e8,n10.expr,t8)}catch(r7){if(r7 instanceof f2)throw r7;return[]}case"StringInterp":{let r7=new u5(t8.limits.maxStringLength,"query string interpolation",()=>new f2(`string size limit exceeded (${t8.limits.maxStringLength} bytes)`,"string_length"));for(let s10 of n10.parts){if(typeof s10=="string"){r7.append(s10);continue}let o13=d8(e8,s10,t8);for(let p16 of o13){if(T13(t8),B12(p16,t8.limits.maxDepth+1)>t8.limits.maxDepth)throw F16(`query depth limit exceeded (${t8.limits.maxDepth})`,"recursion");r7.append(typeof p16=="string"?p16:JSON.stringify(p16))}}return[r7.build()]}case"UpdateOp":return[st3(e8,n10.path,n10.op,n10.value,t8)];case"Reduce":{let r7=d8(e8,n10.expr,t8),s10=d8(e8,n10.init,t8)[0],o13=t8.limits.maxDepth??Je2;for(let p16 of r7){let u15;if(n10.pattern){if(u15=W5(t8,n10.pattern,p16),u15===null)continue}else u15=se5(t8,n10.varName,p16);if(s10=d8(s10,n10.update,u15)[0],B12(s10,o13+1)>o13)return[null]}return[s10]}case"Foreach":{let r7=d8(e8,n10.expr,t8),s10=d8(e8,n10.init,t8)[0],o13=[];for(let p16 of r7)try{let u15;if(n10.pattern){if(u15=W5(t8,n10.pattern,p16),u15===null)continue}else u15=se5(t8,n10.varName,p16);if(s10=d8(s10,n10.update,u15)[0],n10.extract){let f15=d8(s10,n10.extract,u15);q6(t8,o13,f15)}else D11(t8,o13.length),o13.push(s10)}catch(u15){throw u15 instanceof Q6?u15.withPrependedResults(o13):u15}return o13}case"Label":try{return d8(e8,n10.body,{...t8,labels:new Set([...t8.labels??[],n10.name])})}catch(r7){if(r7 instanceof Q6&&r7.label===n10.name)return r7.partialResults;throw r7}case"Break":throw new Q6(n10.name);case"Def":{let r7=new Map(t8.funcs??[]),s10=`${n10.name}/${n10.params.length}`;r7.set(s10,{params:n10.params,body:n10.funcBody,closure:new Map(t8.funcs??[])});let o13={...t8,funcs:r7};return d8(e8,n10.body,o13)}default:{let r7=n10;throw new Error(`Unknown AST node type: ${r7.type}`)}}}function Ke2(e8,n10){return e8<0?Math.max(0,n10+e8):Math.min(e8,n10)}function st3(e8,n10,t8,r7,s10){function o13(f15,i22){switch(t8){case"=":return i22;case"|=":return d8(f15,r7,s10)[0]??null;case"+=":return typeof f15=="number"&&typeof i22=="number"||typeof f15=="string"&&typeof i22=="string"?f15+i22:Array.isArray(f15)&&Array.isArray(i22)?(D11(s10,f15.length,i22.length),[...f15,...i22]):f15&&i22&&typeof f15=="object"&&typeof i22=="object"?G5(f15,i22):i22;case"-=":return typeof f15=="number"&&typeof i22=="number"?f15-i22:f15;case"*=":return typeof f15=="number"&&typeof i22=="number"?f15*i22:f15;case"/=":return typeof f15=="number"&&typeof i22=="number"?f15/i22:f15;case"%=":return typeof f15=="number"&&typeof i22=="number"?f15%i22:f15;case"//=":return f15===null||f15===!1?i22:f15;default:return i22}}function p16(f15,i22,c18){switch(i22.type){case"Identity":return c18(f15);case"Field":{if(!b12(i22.name))return f15;if(i22.base)return p16(f15,i22.base,h18=>{if(h18&&typeof h18=="object"&&!Array.isArray(h18)){let a14=$9(h18),l12=Object.hasOwn(a14,i22.name)?a14[i22.name]:void 0;return A4(a14,i22.name,c18(l12)),a14}return h18});if(f15&&typeof f15=="object"&&!Array.isArray(f15)){let h18=$9(f15),a14=Object.hasOwn(h18,i22.name)?h18[i22.name]:void 0;return A4(h18,i22.name,c18(a14)),h18}return f15}case"Index":{let a14=d8(e8,i22.index,s10)[0];if(typeof a14=="number"&&Number.isNaN(a14))throw new Error("Cannot set array element at NaN index");if(typeof a14=="number"&&!Number.isFinite(a14))throw new Error("array index must be finite");if(typeof a14=="number"&&!Number.isInteger(a14)&&(a14=Math.trunc(a14)),i22.base)return p16(f15,i22.base,l12=>{if(typeof a14=="number"&&Array.isArray(l12)){let y14=[...l12],m16=a14<0?y14.length+a14:a14;if(m16>=0){D11(s10,0,m16+1),y14.length<=m16&&(y14.length=m16+1);for(let b23=l12.length;b23<m16;b23++)y14[b23]=null;y14[m16]=c18(y14[m16])}return y14}if(typeof a14=="string"&&l12&&typeof l12=="object"&&!Array.isArray(l12)){if(!b12(a14))return l12;let y14=$9(l12),m16=Object.hasOwn(y14,a14)?y14[a14]:void 0;return A4(y14,a14,c18(m16)),y14}return l12});if(typeof a14=="number"){if(!Number.isSafeInteger(a14)||a14>536870911)throw new Error("Array index too large");if(a14<0&&(!f15||!Array.isArray(f15)))throw new Error("Out of bounds negative array index");if(Array.isArray(f15)){let y14=[...f15],m16=a14<0?y14.length+a14:a14;if(m16>=0){D11(s10,0,m16+1),y14.length<=m16&&(y14.length=m16+1);for(let b23=f15.length;b23<m16;b23++)y14[b23]=null;y14[m16]=c18(y14[m16])}return y14}if(f15==null){D11(s10,0,a14+1);let y14=new Array(a14+1).fill(null);return y14[a14]=c18(null),y14}return f15}if(typeof a14=="string"&&f15&&typeof f15=="object"&&!Array.isArray(f15)){if(!b12(a14))return f15;let l12=$9(f15),y14=Object.hasOwn(l12,a14)?l12[a14]:void 0;return A4(l12,a14,c18(y14)),l12}return f15}case"Iterate":{let h18=a14=>{if(Array.isArray(a14)){D11(s10,0,a14.length);let l12=[];for(let y14 of a14)T13(s10),l12.push(c18(y14));return l12}if(a14&&typeof a14=="object"){let l12=Object.create(null);for(let[y14,m16]of Object.entries(a14))b12(y14)&&A4(l12,y14,c18(m16));return l12}return a14};return i22.base?p16(f15,i22.base,h18):h18(f15)}case"Pipe":{let h18=p16(f15,i22.left,a14=>a14);return p16(h18,i22.right,c18)}default:return c18(f15)}}return p16(e8,n10,f15=>{if(t8==="|=")return o13(f15,f15);let i22=d8(e8,r7,s10);return o13(f15,i22[0]??null)})}function ot4(e8,n10,t8){function r7(o13,p16,u15){switch(p16.type){case"Identity":return u15;case"Field":{if(!b12(p16.name))return o13;if(p16.base){let f15=d8(o13,p16.base,t8)[0],i22=r7(f15,{type:"Field",name:p16.name},u15);return r7(o13,p16.base,i22)}if(o13&&typeof o13=="object"&&!Array.isArray(o13)){let f15=$9(o13);return A4(f15,p16.name,u15),f15}return o13}case"Index":{if(p16.base){let c18=d8(o13,p16.base,t8)[0],h18=r7(c18,{type:"Index",index:p16.index},u15);return r7(o13,p16.base,h18)}let i22=d8(e8,p16.index,t8)[0];if(typeof i22=="number"&&Array.isArray(o13)){let c18=[...o13],h18=i22<0?c18.length+i22:i22;return h18>=0&&h18<c18.length&&(c18[h18]=u15),c18}if(typeof i22=="string"&&o13&&typeof o13=="object"&&!Array.isArray(o13)){if(!b12(i22))return o13;let c18=$9(o13);return A4(c18,i22,u15),c18}return o13}default:return o13}}function s10(o13,p16){switch(p16.type){case"Identity":return null;case"Field":{if(!b12(p16.name))return o13;if(p16.base){let f15=d8(o13,p16.base,t8)[0];if(f15==null)return o13;let i22=s10(f15,{type:"Field",name:p16.name});return r7(o13,p16.base,i22)}if(o13&&typeof o13=="object"&&!Array.isArray(o13)){if(!b12(p16.name))return o13;let f15=$9(o13);return delete f15[p16.name],f15}return o13}case"Index":{if(p16.base){let c18=d8(o13,p16.base,t8)[0];if(c18==null)return o13;let h18=s10(c18,{type:"Index",index:p16.index});return r7(o13,p16.base,h18)}let i22=d8(e8,p16.index,t8)[0];if(typeof i22=="number"&&Array.isArray(o13)){let c18=[...o13],h18=i22<0?c18.length+i22:i22;return h18>=0&&h18<c18.length&&c18.splice(h18,1),c18}if(typeof i22=="string"&&o13&&typeof o13=="object"&&!Array.isArray(o13)){if(!b12(i22))return o13;let c18=$9(o13);return delete c18[i22],c18}return o13}case"Iterate":return Array.isArray(o13)?[]:o13&&typeof o13=="object"?Object.create(null):o13;case"Pipe":{let c18=function(l12,y14,m16){switch(y14.type){case"Identity":return m16;case"Field":{if(!b12(y14.name))return l12;if(l12&&typeof l12=="object"&&!Array.isArray(l12)){let b23=$9(l12);return A4(b23,y14.name,m16),b23}return l12}case"Index":{let A13=d8(e8,y14.index,t8)[0];if(typeof A13=="number"&&Array.isArray(l12)){let w15=[...l12],N16=A13<0?w15.length+A13:A13;return N16>=0&&N16<w15.length&&(w15[N16]=m16),w15}if(typeof A13=="string"&&l12&&typeof l12=="object"&&!Array.isArray(l12)){if(!b12(A13))return l12;let w15=$9(l12);return A4(w15,A13,m16),w15}return l12}case"Pipe":{let b23=d8(l12,y14.left,t8)[0],A13=c18(b23,y14.right,m16);return c18(l12,y14.left,A13)}default:return l12}};var u15=c18;let f15=p16.left,i22=p16.right,h18=d8(o13,f15,t8)[0];if(h18==null)return o13;let a14=s10(h18,i22);return c18(o13,f15,a14)}default:return o13}}return s10(e8,n10)}function ft2(e8,n10,t8,r7,s10){if(n10==="and"){let f15=d8(e8,t8,s10);return M13(s10,f15,i22=>{if(!I13(i22))return[!1];let c18=d8(e8,r7,s10);return M13(s10,c18,h18=>[I13(h18)])})}if(n10==="or"){let f15=d8(e8,t8,s10);return M13(s10,f15,i22=>{if(I13(i22))return[!0];let c18=d8(e8,r7,s10);return M13(s10,c18,h18=>[I13(h18)])})}if(n10==="//"){let i22=d8(e8,t8,s10).filter(c18=>c18!=null&&c18!==!1);return i22.length>0?i22:d8(e8,r7,s10)}let o13=d8(e8,t8,s10),p16=d8(e8,r7,s10),u15=o13.length*p16.length;return D11(s10,0,u15),T13(s10,u15),o13.flatMap(f15=>p16.map(i22=>{switch(n10){case"+":if(f15===null)return i22;if(i22===null)return f15;if(typeof f15=="number"&&typeof i22=="number")return f15+i22;if(typeof f15=="string"&&typeof i22=="string"){let c18=s10.limits.maxStringLength;if(x(f15)+x(i22)>c18)throw new f2(`string size limit exceeded (${c18} bytes)`,"string_length");return f15+i22}return Array.isArray(f15)&&Array.isArray(i22)?(D11(s10,f15.length,i22.length),[...f15,...i22]):f15&&i22&&typeof f15=="object"&&typeof i22=="object"&&!Array.isArray(f15)&&!Array.isArray(i22)?G5(f15,i22):null;case"-":if(typeof f15=="number"&&typeof i22=="number")return f15-i22;if(Array.isArray(f15)&&Array.isArray(i22)){let c18=new Set(i22.map(h18=>JSON.stringify(h18)));return f15.filter(h18=>!c18.has(JSON.stringify(h18)))}if(typeof f15=="string"&&typeof i22=="string"){let c18=h18=>h18.length>10?`"${h18.slice(0,10)}...`:JSON.stringify(h18);throw new Error(`string (${c18(f15)}) and string (${c18(i22)}) cannot be subtracted`)}return null;case"*":if(typeof f15=="number"&&typeof i22=="number")return f15*i22;if(typeof f15=="string"&&typeof i22=="number"){if(!Number.isFinite(i22))throw new Error(`invalid string repetition count: ${i22}`);let c18=Math.trunc(i22);if(c18<0)return null;let h18=x(f15),a14=s10.limits.maxStringLength;if(h18>0&&c18>Math.floor(a14/h18))throw new f2(`string size limit exceeded (${a14} bytes)`,"string_length");return f15.repeat(c18)}{let c18=k7(f15),h18=k7(i22);if(c18&&h18)return je2(c18,h18,{maxDepth:s10.limits.maxDepth,visit:()=>T13(s10)})}return null;case"/":if(typeof f15=="number"&&typeof i22=="number"){if(i22===0)throw new Error(`number (${f15}) and number (${i22}) cannot be divided because the divisor is zero`);return f15/i22}return typeof f15=="string"&&typeof i22=="string"?f15.split(i22):null;case"%":if(typeof f15=="number"&&typeof i22=="number"){if(i22===0)throw new Error(`number (${f15}) and number (${i22}) cannot be divided (remainder) because the divisor is zero`);return!Number.isFinite(f15)&&!Number.isNaN(f15)?!Number.isFinite(i22)&&!Number.isNaN(i22)&&f15<0&&i22>0?-1:0:f15%i22}return null;case"==":return J5(f15,i22);case"!=":return!J5(f15,i22);case"<":return Y8(f15,i22)<0;case"<=":return Y8(f15,i22)<=0;case">":return Y8(f15,i22)>0;case">=":return Y8(f15,i22)>=0;default:return null}}))}function Ve3(e8,n10,t8,r7){let s10=tt3.get(n10);if(s10)return typeof e8=="number"?[s10(e8)]:[null];let o13=de5(e8,n10,t8,r7,d8);if(o13!==null)return o13;let p16=Oe4(e8,n10,t8,r7,d8);if(p16!==null)return p16;let u15=le5(e8,n10,t8,r7,d8);if(u15!==null)return u15;let f15=ye4(e8,n10,r7.limits.maxDepth);if(f15!==null)return f15;let i22=Ne4(e8,n10);if(i22!==null)return i22;let c18=Ee5(e8,n10,t8,r7,d8);if(c18!==null)return c18;let h18=pe2(e8,n10,t8,r7,d8,Fe5,Z6,I13,v11,f2);if(h18!==null)return h18;let a14=ke4(e8,n10,t8,r7,d8,I13,te6,re5,ot4,ne4);if(a14!==null)return a14;let l12=me6(e8,n10,t8,r7,d8,J5);if(l12!==null)return l12;let y14=he4(e8,n10,t8,r7,d8,Fe5,I13,f2);if(y14!==null)return y14;let m16=be4(e8,n10,t8,r7,d8,I13,nt3,Ve3);if(m16!==null)return m16;let b23=Se5(e8,n10,t8,r7,d8,J5);if(b23!==null)return b23;switch(n10){case"builtins":return[["add/0","all/0","all/1","all/2","any/0","any/1","any/2","arrays/0","ascii/0","ascii_downcase/0","ascii_upcase/0","booleans/0","bsearch/1","builtins/0","combinations/0","combinations/1","contains/1","debug/0","del/1","delpaths/1","empty/0","env/0","error/0","error/1","explode/0","first/0","first/1","flatten/0","flatten/1","floor/0","from_entries/0","fromdate/0","fromjson/0","getpath/1","gmtime/0","group_by/1","gsub/2","gsub/3","has/1","implode/0","IN/1","IN/2","INDEX/1","INDEX/2","index/1","indices/1","infinite/0","inside/1","isempty/1","isnan/0","isnormal/0","isvalid/1","iterables/0","join/1","keys/0","keys_unsorted/0","last/0","last/1","length/0","limit/2","ltrimstr/1","map/1","map_values/1","match/1","match/2","max/0","max_by/1","min/0","min_by/1","mktime/0","modulemeta/1","nan/0","not/0","nth/1","nth/2","null/0","nulls/0","numbers/0","objects/0","path/1","paths/0","paths/1","pick/1","range/1","range/2","range/3","recurse/0","recurse/1","recurse_down/0","repeat/1","reverse/0","rindex/1","rtrimstr/1","scalars/0","scan/1","scan/2","select/1","setpath/2","skip/2","sort/0","sort_by/1","split/1","splits/1","splits/2","sqrt/0","startswith/1","strftime/1","strings/0","strptime/1","sub/2","sub/3","test/1","test/2","to_entries/0","toboolean/0","todate/0","tojson/0","tostream/0","fromstream/1","truncate_stream/1","tonumber/0","tostring/0","transpose/0","trim/0","ltrim/0","rtrim/0","type/0","unique/0","unique_by/1","until/2","utf8bytelength/0","values/0","walk/1","while/2","with_entries/1"]];case"error":{let A13=t8.length>0?d8(e8,t8[0],r7)[0]:e8;throw new ie4(A13)}case"env":return[r7.env?r3(r7.env):Object.create(null)];case"debug":return[e8];case"input_line_number":return[1];default:{let A13=`${n10}/${t8.length}`,w15=r7.funcs?.get(A13);if(w15){let N16=w15.closure??r7.funcs??new Map,O18=new Map(N16);O18.set(A13,w15);for(let X12=0;X12<w15.params.length;X12++){let ze7=w15.params[X12],Te6=t8[X12];if(Te6){let L21=d8(e8,Te6,r7),K11;if(L21.length===0)K11={type:"Call",name:"empty",args:[]};else if(L21.length===1)K11={type:"Literal",value:L21[0]};else{K11={type:"Literal",value:L21[L21.length-1]};for(let fe8=L21.length-2;fe8>=0;fe8--)K11={type:"Comma",left:{type:"Literal",value:L21[fe8]},right:K11}}O18.set(`${ze7}/0`,{params:[],body:K11})}}let $22={...r7,funcs:O18};return d8(e8,w15.body,$22)}throw new Error(`Unknown function: ${n10}`)}}}function ne4(e8,n10,t8,r7,s10){if(T13(t8),r7.length>t8.limits.maxDepth)throw F16(`query depth limit exceeded (${t8.limits.maxDepth})`,"recursion");let o13=f15=>{if(f15.length>t8.limits.maxDepth)throw F16(`query depth limit exceeded (${t8.limits.maxDepth})`,"recursion");D11(t8,s10.length),s10.push(f15)};if(n10.type==="Comma"){let f15=n10;ne4(e8,f15.left,t8,r7,s10),ne4(e8,f15.right,t8,r7,s10);return}let p16=P12(n10);if(p16!==null){o13([...r7,...p16]);return}if(n10.type==="Iterate"){if(Array.isArray(e8))for(let f15=0;f15<e8.length;f15++)T13(t8),o13([...r7,f15]);else if(e8&&typeof e8=="object")for(let f15 of Object.keys(e8))T13(t8),o13([...r7,f15]);return}if(n10.type==="Recurse"){let f15=[{value:e8,path:[]}];for(;f15.length>0;){let i22=f15.pop();if(!i22)break;if(T13(t8),o13([...r7,...i22.path]),i22.value&&typeof i22.value=="object"){let c18=Array.isArray(i22.value)?i22.value.map((h18,a14)=>[a14,h18]):Object.keys(i22.value).map(h18=>[h18,i22.value[h18]]);D11(t8,0,f15.length+c18.length);for(let h18=c18.length-1;h18>=0;h18--){let[a14,l12]=c18[h18];f15.push({value:l12,path:[...i22.path,a14]})}}}return}if(n10.type==="Pipe"){let f15=P12(n10.left);if(f15!==null){let i22=d8(e8,n10.left,t8);for(let c18 of i22)ne4(c18,n10.right,t8,[...r7,...f15],s10);return}}d8(e8,n10,t8).length>0&&o13(r7)}function Qe2(e8){let n10=[],t8=0,r7=(i22=0)=>e8[t8+i22],s10=()=>e8[t8++],o13=()=>t8>=e8.length,p16=i22=>i22>="0"&&i22<="9",u15=i22=>i22>="a"&&i22<="z"||i22>="A"&&i22<="Z"||i22==="_",f15=i22=>u15(i22)||p16(i22);for(;!o13();){let i22=t8,c18=s10();if(!(c18===" "||c18===" "||c18===`
586
586
  `||c18==="\r")){if(c18==="#"){for(;!o13()&&r7()!==`
587
587
  `;)s10();continue}if(c18==="."&&r7()==="."){s10(),n10.push({type:"DOTDOT",pos:i22});continue}if(c18==="="&&r7()==="="){s10(),n10.push({type:"EQ",pos:i22});continue}if(c18==="!"&&r7()==="="){s10(),n10.push({type:"NE",pos:i22});continue}if(c18==="<"&&r7()==="="){s10(),n10.push({type:"LE",pos:i22});continue}if(c18===">"&&r7()==="="){s10(),n10.push({type:"GE",pos:i22});continue}if(c18==="/"&&r7()==="/"){s10(),r7()==="="?(s10(),n10.push({type:"UPDATE_ALT",pos:i22})):n10.push({type:"ALT",pos:i22});continue}if(c18==="+"&&r7()==="="){s10(),n10.push({type:"UPDATE_ADD",pos:i22});continue}if(c18==="-"&&r7()==="="){s10(),n10.push({type:"UPDATE_SUB",pos:i22});continue}if(c18==="*"&&r7()==="="){s10(),n10.push({type:"UPDATE_MUL",pos:i22});continue}if(c18==="/"&&r7()==="="){s10(),n10.push({type:"UPDATE_DIV",pos:i22});continue}if(c18==="%"&&r7()==="="){s10(),n10.push({type:"UPDATE_MOD",pos:i22});continue}if(c18==="="&&r7()!=="="){n10.push({type:"ASSIGN",pos:i22});continue}if(c18==="."){n10.push({type:"DOT",pos:i22});continue}if(c18==="|"){r7()==="="?(s10(),n10.push({type:"UPDATE_PIPE",pos:i22})):n10.push({type:"PIPE",pos:i22});continue}if(c18===","){n10.push({type:"COMMA",pos:i22});continue}if(c18===":"){n10.push({type:"COLON",pos:i22});continue}if(c18===";"){n10.push({type:"SEMICOLON",pos:i22});continue}if(c18==="("){n10.push({type:"LPAREN",pos:i22});continue}if(c18===")"){n10.push({type:"RPAREN",pos:i22});continue}if(c18==="["){n10.push({type:"LBRACKET",pos:i22});continue}if(c18==="]"){n10.push({type:"RBRACKET",pos:i22});continue}if(c18==="{"){n10.push({type:"LBRACE",pos:i22});continue}if(c18==="}"){n10.push({type:"RBRACE",pos:i22});continue}if(c18==="?"){n10.push({type:"QUESTION",pos:i22});continue}if(c18==="+"){n10.push({type:"PLUS",pos:i22});continue}if(c18==="-"){n10.push({type:"MINUS",pos:i22});continue}if(c18==="*"){n10.push({type:"STAR",pos:i22});continue}if(c18==="/"){n10.push({type:"SLASH",pos:i22});continue}if(c18==="%"){n10.push({type:"PERCENT",pos:i22});continue}if(c18==="<"){n10.push({type:"LT",pos:i22});continue}if(c18===">"){n10.push({type:"GT",pos:i22});continue}if(p16(c18)){let h18=c18;for(;!o13()&&(p16(r7())||r7()==="."||r7()==="e"||r7()==="E");)(r7()==="e"||r7()==="E")&&(e8[t8+1]==="+"||e8[t8+1]==="-")&&(h18+=s10()),h18+=s10();n10.push({type:"NUMBER",value:Number(h18),pos:i22});continue}if(c18==='"'){let h18="",a14=0;for(;!o13();){let l12=r7();if(a14===0&&l12==='"')break;if(a14===0&&l12==="\\"){if(s10(),o13())break;let y14=s10();switch(y14){case"n":h18+=`
@@ -591,21 +591,21 @@ ${a14} director${a14===1?"y":"ies"}`,f15.directoriesOnly||(e8+=`, ${n10} file${n
591
591
  `).repeat(p16,r7),e8.append("]");return}let u15=Object.keys(n10);t8.sortKeys&&(u15=u15.sort()),e8.append("{");for(let f15=0;f15<u15.length;f15++){let i22=u15[f15];e8.append(s10?f15===0?"":",":f15===0?`
592
592
  `:`,
593
593
  `),s10||e8.repeat(p16,r7+1),Ye2(e8,i22),e8.append(s10?":":": "),Re3(e8,n10[i22],t8,r7+1)}!s10&&u15.length>0&&e8.append(`
594
- `).repeat(p16,r7),e8.append("}")}function Ye2(e8,n10){e8.append('"');let t8=0;for(let r7=0;r7<n10.length;r7++){let s10=n10.charCodeAt(r7),o13="";s10===34?o13='\\"':s10===92?o13="\\\\":s10===8?o13="\\b":s10===9?o13="\\t":s10===10?o13="\\n":s10===12?o13="\\f":s10===13?o13="\\r":s10<32&&(o13=`\\u${s10.toString(16).padStart(4,"0")}`),o13&&(e8.append(n10.slice(t8,r7)).append(o13),t8=r7+1)}e8.append(n10.slice(t8)).append('"')}var require137,Pe2,We5,we5,Q6,ie4,et3,qe2,Je2,tt3,He3,oe5,De2,init_chunk_H53EPEGD=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-H53EPEGD.js"(){init_chunk_FIMO5HLX();init_chunk_DLL7UR66();init_chunk_CHWP6GRK();init_chunk_7GA3QWJJ();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();require137=createRequire136(import.meta.url);Pe2="%Y-%m-%dT%H:%M:%SZ";We5=2e3;we5=2e3;Q6=class e4 extends Error{label;partialResults;constructor(n10,t8=[]){super(`break ${n10}`),this.label=n10,this.partialResults=t8,this.name="BreakError"}withPrependedResults(n10){return new e4(this.label,[...n10,...this.partialResults])}},ie4=class extends Error{value;constructor(n10){super(typeof n10=="string"?n10:JSON.stringify(n10)),this.value=n10,this.name="JqError"}},et3=1e4,qe2=10*1024*1024,Je2=2e3,tt3=new Map([["floor",Math.floor],["ceil",Math.ceil],["round",Math.round],["sqrt",Math.sqrt],["log",Math.log],["log10",Math.log10],["log2",Math.log2],["exp",Math.exp],["sin",Math.sin],["cos",Math.cos],["tan",Math.tan],["asin",Math.asin],["acos",Math.acos],["atan",Math.atan],["sinh",Math.sinh],["cosh",Math.cosh],["tanh",Math.tanh],["asinh",Math.asinh],["acosh",Math.acosh],["atanh",Math.atanh],["cbrt",Math.cbrt],["expm1",Math.expm1],["log1p",Math.log1p],["trunc",Math.trunc]]);He3=new Map([["and","AND"],["or","OR"],["not","NOT"],["if","IF"],["then","THEN"],["elif","ELIF"],["else","ELSE"],["end","END"],["as","AS"],["try","TRY"],["catch","CATCH"],["true","TRUE"],["false","FALSE"],["null","NULL"],["reduce","REDUCE"],["foreach","FOREACH"],["label","LABEL"],["break","BREAK"],["def","DEF"]]),oe5=new Set(He3.values());De2=class e5{maxDepth;tokens;pos=0;depth;constructor(n10,t8,r7=0){this.maxDepth=t8,this.tokens=n10,this.depth=r7}peek(n10=0){return this.tokens[this.pos+n10]??{type:"EOF",pos:-1}}advance(){return this.tokens[this.pos++]}check(n10){return this.peek().type===n10}match(...n10){for(let t8 of n10)if(this.check(t8))return this.advance();return null}expect(n10,t8){if(!this.check(n10))throw new Error(`${t8} at position ${this.peek().pos}, got ${this.peek().type}`);return this.advance()}withDepth(n10){if(this.depth++,this.depth>this.maxDepth)throw this.depth--,new Error(`query parse depth limit exceeded (${this.maxDepth})`);try{return n10()}finally{this.depth--}}isFieldNameAfterDot(n10=0){let t8=this.peek(n10),r7=this.peek(n10+1);return r7.type==="STRING"?!0:r7.type==="IDENT"||oe5.has(r7.type)?r7.pos===t8.pos+1:!1}isIdentLike(){let n10=this.peek().type;return n10==="IDENT"||oe5.has(n10)}consumeFieldNameAfterDot(n10){let t8=this.peek();return t8.type==="STRING"?this.advance().value:(t8.type==="IDENT"||oe5.has(t8.type))&&t8.pos===n10.pos+1?this.advance().value:null}parse(){let n10=this.parseExpr();if(!this.check("EOF"))throw new Error(`Unexpected token ${this.peek().type} at position ${this.peek().pos}`);return n10}parseExpr(){if(this.depth++,this.depth>this.maxDepth)throw this.depth--,new Error(`query parse depth limit exceeded (${this.maxDepth})`);try{return this.parsePipe()}finally{this.depth--}}parsePattern(){if(this.depth++,this.depth>this.maxDepth)throw this.depth--,new Error(`query parse depth limit exceeded (${this.maxDepth})`);try{return this.parsePatternInner()}finally{this.depth--}}parsePatternInner(){if(this.match("LBRACKET")){let r7=[];if(!this.check("RBRACKET"))for(r7.push(this.parsePattern());this.match("COMMA")&&!this.check("RBRACKET");)r7.push(this.parsePattern());return this.expect("RBRACKET","Expected ']' after array pattern"),{type:"array",elements:r7}}if(this.match("LBRACE")){let r7=[];if(!this.check("RBRACE"))for(r7.push(this.parsePatternField());this.match("COMMA")&&!this.check("RBRACE");)r7.push(this.parsePatternField());return this.expect("RBRACE","Expected '}' after object pattern"),{type:"object",fields:r7}}let n10=this.expect("IDENT","Expected variable name in pattern"),t8=n10.value;if(!t8.startsWith("$"))throw new Error(`Variable name must start with $ at position ${n10.pos}`);return{type:"var",name:t8}}parsePatternField(){if(this.match("LPAREN")){let t8=this.parseExpr();this.expect("RPAREN","Expected ')' after computed key"),this.expect("COLON","Expected ':' after computed key");let r7=this.parsePattern();return{key:t8,pattern:r7}}let n10=this.peek();if(n10.type==="IDENT"||oe5.has(n10.type)){let t8=n10.value;if(t8.startsWith("$")){if(this.advance(),this.match("COLON")){let r7=this.parsePattern();return{key:t8.slice(1),pattern:r7,keyVar:t8}}return{key:t8.slice(1),pattern:{type:"var",name:t8}}}if(this.advance(),this.match("COLON")){let r7=this.parsePattern();return{key:t8,pattern:r7}}return{key:t8,pattern:{type:"var",name:`$${t8}`}}}throw new Error(`Expected field name in object pattern at position ${n10.pos}`)}parsePipe(){let n10=this.parseComma();for(;this.match("PIPE");){let t8=this.parseComma();n10={type:"Pipe",left:n10,right:t8}}return n10}parseComma(){let n10=this.parseVarBind();for(;this.match("COMMA");){let t8=this.parseVarBind();n10={type:"Comma",left:n10,right:t8}}return n10}parseVarBind(){let n10=this.parseUpdate();if(this.match("AS")){let t8=this.parsePattern(),r7=[];for(;this.check("QUESTION")&&this.peekAhead(1)?.type==="ALT";)this.advance(),this.advance(),r7.push(this.parsePattern());this.expect("PIPE","Expected '|' after variable binding");let s10=this.parseExpr();return t8.type==="var"&&r7.length===0?{type:"VarBind",name:t8.name,value:n10,body:s10}:{type:"VarBind",name:t8.type==="var"?t8.name:"",value:n10,body:s10,pattern:t8.type!=="var"?t8:void 0,alternatives:r7.length>0?r7:void 0}}return n10}peekAhead(n10){let t8=this.pos+n10;return t8<this.tokens.length?this.tokens[t8]:void 0}parseUpdate(){let n10=this.parseAlt(),t8=new Map([["ASSIGN","="],["UPDATE_ADD","+="],["UPDATE_SUB","-="],["UPDATE_MUL","*="],["UPDATE_DIV","/="],["UPDATE_MOD","%="],["UPDATE_ALT","//="],["UPDATE_PIPE","|="]]),r7=this.match("ASSIGN","UPDATE_ADD","UPDATE_SUB","UPDATE_MUL","UPDATE_DIV","UPDATE_MOD","UPDATE_ALT","UPDATE_PIPE");if(r7){let s10=this.withDepth(()=>this.parseVarBind()),o13=t8.get(r7.type);if(o13)return{type:"UpdateOp",op:o13,path:n10,value:s10}}return n10}parseAlt(){let n10=this.parseOr();for(;this.match("ALT");){let t8=this.parseOr();n10={type:"BinaryOp",op:"//",left:n10,right:t8}}return n10}parseOr(){let n10=this.parseAnd();for(;this.match("OR");){let t8=this.parseAnd();n10={type:"BinaryOp",op:"or",left:n10,right:t8}}return n10}parseAnd(){let n10=this.parseNot();for(;this.match("AND");){let t8=this.parseNot();n10={type:"BinaryOp",op:"and",left:n10,right:t8}}return n10}parseNot(){return this.parseComparison()}parseComparison(){let n10=this.parseAddSub(),t8=new Map([["EQ","=="],["NE","!="],["LT","<"],["LE","<="],["GT",">"],["GE",">="]]),r7=this.match("EQ","NE","LT","LE","GT","GE");if(r7){let s10=t8.get(r7.type);if(s10){let o13=this.parseAddSub();n10={type:"BinaryOp",op:s10,left:n10,right:o13}}}return n10}parseAddSub(){let n10=this.parseMulDiv();for(;;)if(this.match("PLUS")){let t8=this.parseMulDiv();n10={type:"BinaryOp",op:"+",left:n10,right:t8}}else if(this.match("MINUS")){let t8=this.parseMulDiv();n10={type:"BinaryOp",op:"-",left:n10,right:t8}}else break;return n10}parseMulDiv(){let n10=this.parseUnary();for(;;)if(this.match("STAR")){let t8=this.parseUnary();n10={type:"BinaryOp",op:"*",left:n10,right:t8}}else if(this.match("SLASH")){let t8=this.parseUnary();n10={type:"BinaryOp",op:"/",left:n10,right:t8}}else if(this.match("PERCENT")){let t8=this.parseUnary();n10={type:"BinaryOp",op:"%",left:n10,right:t8}}else break;return n10}parseUnary(){let n10=0;for(;this.match("MINUS");)if(n10++,this.depth+n10>this.maxDepth)throw new Error(`query parse depth limit exceeded (${this.maxDepth})`);let t8=this.parsePostfix();for(;n10-- >0;)t8={type:"UnaryOp",op:"-",operand:t8};return t8}parsePostfix(){let n10=this.parsePrimary();for(;;)if(this.match("QUESTION"))n10={type:"Optional",expr:n10};else if(this.check("DOT")&&this.isFieldNameAfterDot())this.advance(),n10={type:"Field",name:this.advance().value,base:n10};else if(this.check("LBRACKET"))if(this.advance(),this.match("RBRACKET"))n10={type:"Iterate",base:n10};else if(this.check("COLON")){this.advance();let t8=this.check("RBRACKET")?void 0:this.parseExpr();this.expect("RBRACKET","Expected ']'"),n10={type:"Slice",end:t8,base:n10}}else{let t8=this.parseExpr();if(this.match("COLON")){let r7=this.check("RBRACKET")?void 0:this.parseExpr();this.expect("RBRACKET","Expected ']'"),n10={type:"Slice",start:t8,end:r7,base:n10}}else this.expect("RBRACKET","Expected ']'"),n10={type:"Index",index:t8,base:n10}}else break;return n10}parsePrimary(){if(this.match("DOTDOT"))return{type:"Recurse"};if(this.check("DOT")){let n10=this.advance();if(this.check("LBRACKET")){if(this.advance(),this.match("RBRACKET"))return{type:"Iterate"};if(this.check("COLON")){this.advance();let s10=this.check("RBRACKET")?void 0:this.parseExpr();return this.expect("RBRACKET","Expected ']'"),{type:"Slice",end:s10}}let r7=this.parseExpr();if(this.match("COLON")){let s10=this.check("RBRACKET")?void 0:this.parseExpr();return this.expect("RBRACKET","Expected ']'"),{type:"Slice",start:r7,end:s10}}return this.expect("RBRACKET","Expected ']'"),{type:"Index",index:r7}}let t8=this.consumeFieldNameAfterDot(n10);return t8!==null?{type:"Field",name:t8}:{type:"Identity"}}if(this.match("TRUE"))return{type:"Literal",value:!0};if(this.match("FALSE"))return{type:"Literal",value:!1};if(this.match("NULL"))return{type:"Literal",value:null};if(this.check("NUMBER"))return{type:"Literal",value:this.advance().value};if(this.check("STRING")){let t8=this.advance().value;return t8.includes("\\(")?this.parseStringInterpolation(t8):{type:"Literal",value:t8}}if(this.match("LBRACKET")){if(this.match("RBRACKET"))return{type:"Array"};let n10=this.parseExpr();return this.expect("RBRACKET","Expected ']'"),{type:"Array",elements:n10}}if(this.match("LBRACE"))return this.parseObjectConstruction();if(this.match("LPAREN")){let n10=this.parseExpr();return this.expect("RPAREN","Expected ')'"),{type:"Paren",expr:n10}}if(this.match("IF"))return this.parseIf();if(this.match("TRY")){let n10=this.withDepth(()=>this.parsePostfix()),t8;return this.match("CATCH")&&(t8=this.withDepth(()=>this.parsePostfix())),{type:"Try",body:n10,catch:t8}}if(this.match("REDUCE")){let n10=this.parseAddSub();this.expect("AS","Expected 'as' after reduce expression");let t8=this.parsePattern();this.expect("LPAREN","Expected '(' after variable");let r7=this.parseExpr();this.expect("SEMICOLON","Expected ';' after init expression");let s10=this.parseExpr();this.expect("RPAREN","Expected ')' after update expression");let o13=t8.type==="var"?t8.name:"";return{type:"Reduce",expr:n10,varName:o13,init:r7,update:s10,pattern:t8.type!=="var"?t8:void 0}}if(this.match("FOREACH")){let n10=this.parseAddSub();this.expect("AS","Expected 'as' after foreach expression");let t8=this.parsePattern();this.expect("LPAREN","Expected '(' after variable");let r7=this.parseExpr();this.expect("SEMICOLON","Expected ';' after init expression");let s10=this.parseExpr(),o13;this.match("SEMICOLON")&&(o13=this.parseExpr()),this.expect("RPAREN","Expected ')' after expressions");let p16=t8.type==="var"?t8.name:"";return{type:"Foreach",expr:n10,varName:p16,init:r7,update:s10,extract:o13,pattern:t8.type!=="var"?t8:void 0}}if(this.match("LABEL")){let n10=this.expect("IDENT","Expected label name (e.g., $out)"),t8=n10.value;if(!t8.startsWith("$"))throw new Error(`Label name must start with $ at position ${n10.pos}`);this.expect("PIPE","Expected '|' after label name");let r7=this.parseExpr();return{type:"Label",name:t8,body:r7}}if(this.match("BREAK")){let n10=this.expect("IDENT","Expected label name to break to"),t8=n10.value;if(!t8.startsWith("$"))throw new Error(`Break label must start with $ at position ${n10.pos}`);return{type:"Break",name:t8}}if(this.match("DEF")){let t8=this.expect("IDENT","Expected function name after def").value,r7=[];if(this.match("LPAREN")){if(!this.check("RPAREN")){let p16=this.expect("IDENT","Expected parameter name");for(r7.push(p16.value);this.match("SEMICOLON");){let u15=this.expect("IDENT","Expected parameter name");r7.push(u15.value)}}this.expect("RPAREN","Expected ')' after parameters")}this.expect("COLON","Expected ':' after function name");let s10=this.parseExpr();this.expect("SEMICOLON","Expected ';' after function body");let o13=this.parseExpr();return{type:"Def",name:t8,params:r7,funcBody:s10,body:o13}}if(this.match("NOT"))return{type:"Call",name:"not",args:[]};if(this.check("IDENT")){let t8=this.advance().value;if(t8.startsWith("$"))return{type:"VarRef",name:t8};if(this.match("LPAREN")){let r7=[];if(!this.check("RPAREN"))for(r7.push(this.parseExpr());this.match("SEMICOLON");)r7.push(this.parseExpr());return this.expect("RPAREN","Expected ')'"),{type:"Call",name:t8,args:r7}}return{type:"Call",name:t8,args:[]}}throw new Error(`Unexpected token ${this.peek().type} at position ${this.peek().pos}`)}parseObjectConstruction(){if(this.depth++,this.depth>this.maxDepth)throw this.depth--,new Error(`query parse depth limit exceeded (${this.maxDepth})`);try{return this.parseObjectConstructionInner()}finally{this.depth--}}parseObjectConstructionInner(){let n10=[];if(!this.check("RBRACE"))do{let t8,r7;if(this.match("LPAREN"))t8=this.parseExpr(),this.expect("RPAREN","Expected ')'"),this.expect("COLON","Expected ':'"),r7=this.parseObjectValue();else if(this.isIdentLike()){let s10=this.advance().value;this.match("COLON")?(t8=s10,r7=this.parseObjectValue()):(t8=s10,r7={type:"Field",name:s10})}else if(this.check("STRING"))t8=this.advance().value,this.expect("COLON","Expected ':'"),r7=this.parseObjectValue();else throw new Error(`Expected object key at position ${this.peek().pos}`);n10.push({key:t8,value:r7})}while(this.match("COMMA"));return this.expect("RBRACE","Expected '}'"),{type:"Object",entries:n10}}parseObjectValue(){let n10=this.parseVarBind();for(;this.match("PIPE");){let t8=this.parseVarBind();n10={type:"Pipe",left:n10,right:t8}}return n10}parseIf(){let n10=this.parseExpr();this.expect("THEN","Expected 'then'");let t8=this.parseExpr(),r7=[];for(;this.match("ELIF");){let o13=this.parseExpr();this.expect("THEN","Expected 'then' after elif");let p16=this.parseExpr();r7.push({cond:o13,then:p16})}let s10;return this.match("ELSE")&&(s10=this.parseExpr()),this.expect("END","Expected 'end'"),{type:"Cond",cond:n10,then:t8,elifs:r7,else:s10}}parseStringInterpolation(n10){let t8=[],r7="",s10=0;for(;s10<n10.length;)if(n10[s10]==="\\"&&n10[s10+1]==="("){r7&&(t8.push(r7),r7=""),s10+=2;let o13=1,p16="";for(;s10<n10.length&&o13>0;){let i22=n10[s10];if(i22==='"'){for(p16+=i22,s10++;s10<n10.length;){let c18=n10[s10];if(c18==="\\"){p16+=c18,s10++,s10<n10.length&&(p16+=n10[s10],s10++);continue}if(p16+=c18,s10++,c18==='"')break}continue}i22==="("?o13++:i22===")"&&o13--,o13>0&&(p16+=i22),s10++}let u15=Qe2(p16),f15=new e5(u15,this.maxDepth,this.depth);t8.push(f15.parse())}else r7+=n10[s10],s10++;return r7&&t8.push(r7),{type:"StringInterp",parts:t8}}}}});import{createRequire as createRequire137}from"node:module";function se6(i22){switch(i22){case"\b":return"\\b";case"\f":return"\\f";case`
594
+ `).repeat(p16,r7),e8.append("}")}function Ye2(e8,n10){e8.append('"');let t8=0;for(let r7=0;r7<n10.length;r7++){let s10=n10.charCodeAt(r7),o13="";s10===34?o13='\\"':s10===92?o13="\\\\":s10===8?o13="\\b":s10===9?o13="\\t":s10===10?o13="\\n":s10===12?o13="\\f":s10===13?o13="\\r":s10<32&&(o13=`\\u${s10.toString(16).padStart(4,"0")}`),o13&&(e8.append(n10.slice(t8,r7)).append(o13),t8=r7+1)}e8.append(n10.slice(t8)).append('"')}var require137,Pe2,We5,we5,Q6,ie4,et3,qe2,Je2,tt3,He3,oe5,De2,init_chunk_H53EPEGD=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-H53EPEGD.js"(){init_chunk_FIMO5HLX();init_chunk_DLL7UR66();init_chunk_CHWP6GRK();init_chunk_7GA3QWJJ();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();require137=createRequire136(import.meta.url);Pe2="%Y-%m-%dT%H:%M:%SZ";We5=2e3;we5=2e3;Q6=class e4 extends Error{label;partialResults;constructor(n10,t8=[]){super(`break ${n10}`),this.label=n10,this.partialResults=t8,this.name="BreakError"}withPrependedResults(n10){return new e4(this.label,[...n10,...this.partialResults])}},ie4=class extends Error{value;constructor(n10){super(typeof n10=="string"?n10:JSON.stringify(n10)),this.value=n10,this.name="JqError"}},et3=1e4,qe2=10*1024*1024,Je2=2e3,tt3=new Map([["floor",Math.floor],["ceil",Math.ceil],["round",Math.round],["sqrt",Math.sqrt],["log",Math.log],["log10",Math.log10],["log2",Math.log2],["exp",Math.exp],["sin",Math.sin],["cos",Math.cos],["tan",Math.tan],["asin",Math.asin],["acos",Math.acos],["atan",Math.atan],["sinh",Math.sinh],["cosh",Math.cosh],["tanh",Math.tanh],["asinh",Math.asinh],["acosh",Math.acosh],["atanh",Math.atanh],["cbrt",Math.cbrt],["expm1",Math.expm1],["log1p",Math.log1p],["trunc",Math.trunc]]);He3=new Map([["and","AND"],["or","OR"],["not","NOT"],["if","IF"],["then","THEN"],["elif","ELIF"],["else","ELSE"],["end","END"],["as","AS"],["try","TRY"],["catch","CATCH"],["true","TRUE"],["false","FALSE"],["null","NULL"],["reduce","REDUCE"],["foreach","FOREACH"],["label","LABEL"],["break","BREAK"],["def","DEF"]]),oe5=new Set(He3.values());De2=class e5{maxDepth;tokens;pos=0;depth;constructor(n10,t8,r7=0){this.maxDepth=t8,this.tokens=n10,this.depth=r7}peek(n10=0){return this.tokens[this.pos+n10]??{type:"EOF",pos:-1}}advance(){return this.tokens[this.pos++]}check(n10){return this.peek().type===n10}match(...n10){for(let t8 of n10)if(this.check(t8))return this.advance();return null}expect(n10,t8){if(!this.check(n10))throw new Error(`${t8} at position ${this.peek().pos}, got ${this.peek().type}`);return this.advance()}withDepth(n10){if(this.depth++,this.depth>this.maxDepth)throw this.depth--,new Error(`query parse depth limit exceeded (${this.maxDepth})`);try{return n10()}finally{this.depth--}}isFieldNameAfterDot(n10=0){let t8=this.peek(n10),r7=this.peek(n10+1);return r7.type==="STRING"?!0:r7.type==="IDENT"||oe5.has(r7.type)?r7.pos===t8.pos+1:!1}isIdentLike(){let n10=this.peek().type;return n10==="IDENT"||oe5.has(n10)}consumeFieldNameAfterDot(n10){let t8=this.peek();return t8.type==="STRING"?this.advance().value:(t8.type==="IDENT"||oe5.has(t8.type))&&t8.pos===n10.pos+1?this.advance().value:null}parse(){let n10=this.parseExpr();if(!this.check("EOF"))throw new Error(`Unexpected token ${this.peek().type} at position ${this.peek().pos}`);return n10}parseExpr(){if(this.depth++,this.depth>this.maxDepth)throw this.depth--,new Error(`query parse depth limit exceeded (${this.maxDepth})`);try{return this.parsePipe()}finally{this.depth--}}parsePattern(){if(this.depth++,this.depth>this.maxDepth)throw this.depth--,new Error(`query parse depth limit exceeded (${this.maxDepth})`);try{return this.parsePatternInner()}finally{this.depth--}}parsePatternInner(){if(this.match("LBRACKET")){let r7=[];if(!this.check("RBRACKET"))for(r7.push(this.parsePattern());this.match("COMMA")&&!this.check("RBRACKET");)r7.push(this.parsePattern());return this.expect("RBRACKET","Expected ']' after array pattern"),{type:"array",elements:r7}}if(this.match("LBRACE")){let r7=[];if(!this.check("RBRACE"))for(r7.push(this.parsePatternField());this.match("COMMA")&&!this.check("RBRACE");)r7.push(this.parsePatternField());return this.expect("RBRACE","Expected '}' after object pattern"),{type:"object",fields:r7}}let n10=this.expect("IDENT","Expected variable name in pattern"),t8=n10.value;if(!t8.startsWith("$"))throw new Error(`Variable name must start with $ at position ${n10.pos}`);return{type:"var",name:t8}}parsePatternField(){if(this.match("LPAREN")){let t8=this.parseExpr();this.expect("RPAREN","Expected ')' after computed key"),this.expect("COLON","Expected ':' after computed key");let r7=this.parsePattern();return{key:t8,pattern:r7}}let n10=this.peek();if(n10.type==="IDENT"||oe5.has(n10.type)){let t8=n10.value;if(t8.startsWith("$")){if(this.advance(),this.match("COLON")){let r7=this.parsePattern();return{key:t8.slice(1),pattern:r7,keyVar:t8}}return{key:t8.slice(1),pattern:{type:"var",name:t8}}}if(this.advance(),this.match("COLON")){let r7=this.parsePattern();return{key:t8,pattern:r7}}return{key:t8,pattern:{type:"var",name:`$${t8}`}}}throw new Error(`Expected field name in object pattern at position ${n10.pos}`)}parsePipe(){let n10=this.parseComma();for(;this.match("PIPE");){let t8=this.parseComma();n10={type:"Pipe",left:n10,right:t8}}return n10}parseComma(){let n10=this.parseVarBind();for(;this.match("COMMA");){let t8=this.parseVarBind();n10={type:"Comma",left:n10,right:t8}}return n10}parseVarBind(){let n10=this.parseUpdate();if(this.match("AS")){let t8=this.parsePattern(),r7=[];for(;this.check("QUESTION")&&this.peekAhead(1)?.type==="ALT";)this.advance(),this.advance(),r7.push(this.parsePattern());this.expect("PIPE","Expected '|' after variable binding");let s10=this.parseExpr();return t8.type==="var"&&r7.length===0?{type:"VarBind",name:t8.name,value:n10,body:s10}:{type:"VarBind",name:t8.type==="var"?t8.name:"",value:n10,body:s10,pattern:t8.type!=="var"?t8:void 0,alternatives:r7.length>0?r7:void 0}}return n10}peekAhead(n10){let t8=this.pos+n10;return t8<this.tokens.length?this.tokens[t8]:void 0}parseUpdate(){let n10=this.parseAlt(),t8=new Map([["ASSIGN","="],["UPDATE_ADD","+="],["UPDATE_SUB","-="],["UPDATE_MUL","*="],["UPDATE_DIV","/="],["UPDATE_MOD","%="],["UPDATE_ALT","//="],["UPDATE_PIPE","|="]]),r7=this.match("ASSIGN","UPDATE_ADD","UPDATE_SUB","UPDATE_MUL","UPDATE_DIV","UPDATE_MOD","UPDATE_ALT","UPDATE_PIPE");if(r7){let s10=this.withDepth(()=>this.parseVarBind()),o13=t8.get(r7.type);if(o13)return{type:"UpdateOp",op:o13,path:n10,value:s10}}return n10}parseAlt(){let n10=this.parseOr();for(;this.match("ALT");){let t8=this.parseOr();n10={type:"BinaryOp",op:"//",left:n10,right:t8}}return n10}parseOr(){let n10=this.parseAnd();for(;this.match("OR");){let t8=this.parseAnd();n10={type:"BinaryOp",op:"or",left:n10,right:t8}}return n10}parseAnd(){let n10=this.parseNot();for(;this.match("AND");){let t8=this.parseNot();n10={type:"BinaryOp",op:"and",left:n10,right:t8}}return n10}parseNot(){return this.parseComparison()}parseComparison(){let n10=this.parseAddSub(),t8=new Map([["EQ","=="],["NE","!="],["LT","<"],["LE","<="],["GT",">"],["GE",">="]]),r7=this.match("EQ","NE","LT","LE","GT","GE");if(r7){let s10=t8.get(r7.type);if(s10){let o13=this.parseAddSub();n10={type:"BinaryOp",op:s10,left:n10,right:o13}}}return n10}parseAddSub(){let n10=this.parseMulDiv();for(;;)if(this.match("PLUS")){let t8=this.parseMulDiv();n10={type:"BinaryOp",op:"+",left:n10,right:t8}}else if(this.match("MINUS")){let t8=this.parseMulDiv();n10={type:"BinaryOp",op:"-",left:n10,right:t8}}else break;return n10}parseMulDiv(){let n10=this.parseUnary();for(;;)if(this.match("STAR")){let t8=this.parseUnary();n10={type:"BinaryOp",op:"*",left:n10,right:t8}}else if(this.match("SLASH")){let t8=this.parseUnary();n10={type:"BinaryOp",op:"/",left:n10,right:t8}}else if(this.match("PERCENT")){let t8=this.parseUnary();n10={type:"BinaryOp",op:"%",left:n10,right:t8}}else break;return n10}parseUnary(){let n10=0;for(;this.match("MINUS");)if(n10++,this.depth+n10>this.maxDepth)throw new Error(`query parse depth limit exceeded (${this.maxDepth})`);let t8=this.parsePostfix();for(;n10-- >0;)t8={type:"UnaryOp",op:"-",operand:t8};return t8}parsePostfix(){let n10=this.parsePrimary();for(;;)if(this.match("QUESTION"))n10={type:"Optional",expr:n10};else if(this.check("DOT")&&this.isFieldNameAfterDot())this.advance(),n10={type:"Field",name:this.advance().value,base:n10};else if(this.check("LBRACKET"))if(this.advance(),this.match("RBRACKET"))n10={type:"Iterate",base:n10};else if(this.check("COLON")){this.advance();let t8=this.check("RBRACKET")?void 0:this.parseExpr();this.expect("RBRACKET","Expected ']'"),n10={type:"Slice",end:t8,base:n10}}else{let t8=this.parseExpr();if(this.match("COLON")){let r7=this.check("RBRACKET")?void 0:this.parseExpr();this.expect("RBRACKET","Expected ']'"),n10={type:"Slice",start:t8,end:r7,base:n10}}else this.expect("RBRACKET","Expected ']'"),n10={type:"Index",index:t8,base:n10}}else break;return n10}parsePrimary(){if(this.match("DOTDOT"))return{type:"Recurse"};if(this.check("DOT")){let n10=this.advance();if(this.check("LBRACKET")){if(this.advance(),this.match("RBRACKET"))return{type:"Iterate"};if(this.check("COLON")){this.advance();let s10=this.check("RBRACKET")?void 0:this.parseExpr();return this.expect("RBRACKET","Expected ']'"),{type:"Slice",end:s10}}let r7=this.parseExpr();if(this.match("COLON")){let s10=this.check("RBRACKET")?void 0:this.parseExpr();return this.expect("RBRACKET","Expected ']'"),{type:"Slice",start:r7,end:s10}}return this.expect("RBRACKET","Expected ']'"),{type:"Index",index:r7}}let t8=this.consumeFieldNameAfterDot(n10);return t8!==null?{type:"Field",name:t8}:{type:"Identity"}}if(this.match("TRUE"))return{type:"Literal",value:!0};if(this.match("FALSE"))return{type:"Literal",value:!1};if(this.match("NULL"))return{type:"Literal",value:null};if(this.check("NUMBER"))return{type:"Literal",value:this.advance().value};if(this.check("STRING")){let t8=this.advance().value;return t8.includes("\\(")?this.parseStringInterpolation(t8):{type:"Literal",value:t8}}if(this.match("LBRACKET")){if(this.match("RBRACKET"))return{type:"Array"};let n10=this.parseExpr();return this.expect("RBRACKET","Expected ']'"),{type:"Array",elements:n10}}if(this.match("LBRACE"))return this.parseObjectConstruction();if(this.match("LPAREN")){let n10=this.parseExpr();return this.expect("RPAREN","Expected ')'"),{type:"Paren",expr:n10}}if(this.match("IF"))return this.parseIf();if(this.match("TRY")){let n10=this.withDepth(()=>this.parsePostfix()),t8;return this.match("CATCH")&&(t8=this.withDepth(()=>this.parsePostfix())),{type:"Try",body:n10,catch:t8}}if(this.match("REDUCE")){let n10=this.parseAddSub();this.expect("AS","Expected 'as' after reduce expression");let t8=this.parsePattern();this.expect("LPAREN","Expected '(' after variable");let r7=this.parseExpr();this.expect("SEMICOLON","Expected ';' after init expression");let s10=this.parseExpr();this.expect("RPAREN","Expected ')' after update expression");let o13=t8.type==="var"?t8.name:"";return{type:"Reduce",expr:n10,varName:o13,init:r7,update:s10,pattern:t8.type!=="var"?t8:void 0}}if(this.match("FOREACH")){let n10=this.parseAddSub();this.expect("AS","Expected 'as' after foreach expression");let t8=this.parsePattern();this.expect("LPAREN","Expected '(' after variable");let r7=this.parseExpr();this.expect("SEMICOLON","Expected ';' after init expression");let s10=this.parseExpr(),o13;this.match("SEMICOLON")&&(o13=this.parseExpr()),this.expect("RPAREN","Expected ')' after expressions");let p16=t8.type==="var"?t8.name:"";return{type:"Foreach",expr:n10,varName:p16,init:r7,update:s10,extract:o13,pattern:t8.type!=="var"?t8:void 0}}if(this.match("LABEL")){let n10=this.expect("IDENT","Expected label name (e.g., $out)"),t8=n10.value;if(!t8.startsWith("$"))throw new Error(`Label name must start with $ at position ${n10.pos}`);this.expect("PIPE","Expected '|' after label name");let r7=this.parseExpr();return{type:"Label",name:t8,body:r7}}if(this.match("BREAK")){let n10=this.expect("IDENT","Expected label name to break to"),t8=n10.value;if(!t8.startsWith("$"))throw new Error(`Break label must start with $ at position ${n10.pos}`);return{type:"Break",name:t8}}if(this.match("DEF")){let t8=this.expect("IDENT","Expected function name after def").value,r7=[];if(this.match("LPAREN")){if(!this.check("RPAREN")){let p16=this.expect("IDENT","Expected parameter name");for(r7.push(p16.value);this.match("SEMICOLON");){let u15=this.expect("IDENT","Expected parameter name");r7.push(u15.value)}}this.expect("RPAREN","Expected ')' after parameters")}this.expect("COLON","Expected ':' after function name");let s10=this.parseExpr();this.expect("SEMICOLON","Expected ';' after function body");let o13=this.parseExpr();return{type:"Def",name:t8,params:r7,funcBody:s10,body:o13}}if(this.match("NOT"))return{type:"Call",name:"not",args:[]};if(this.check("IDENT")){let t8=this.advance().value;if(t8.startsWith("$"))return{type:"VarRef",name:t8};if(this.match("LPAREN")){let r7=[];if(!this.check("RPAREN"))for(r7.push(this.parseExpr());this.match("SEMICOLON");)r7.push(this.parseExpr());return this.expect("RPAREN","Expected ')'"),{type:"Call",name:t8,args:r7}}return{type:"Call",name:t8,args:[]}}throw new Error(`Unexpected token ${this.peek().type} at position ${this.peek().pos}`)}parseObjectConstruction(){if(this.depth++,this.depth>this.maxDepth)throw this.depth--,new Error(`query parse depth limit exceeded (${this.maxDepth})`);try{return this.parseObjectConstructionInner()}finally{this.depth--}}parseObjectConstructionInner(){let n10=[];if(!this.check("RBRACE"))do{let t8,r7;if(this.match("LPAREN"))t8=this.parseExpr(),this.expect("RPAREN","Expected ')'"),this.expect("COLON","Expected ':'"),r7=this.parseObjectValue();else if(this.isIdentLike()){let s10=this.advance().value;this.match("COLON")?(t8=s10,r7=this.parseObjectValue()):(t8=s10,r7={type:"Field",name:s10})}else if(this.check("STRING"))t8=this.advance().value,this.expect("COLON","Expected ':'"),r7=this.parseObjectValue();else throw new Error(`Expected object key at position ${this.peek().pos}`);n10.push({key:t8,value:r7})}while(this.match("COMMA"));return this.expect("RBRACE","Expected '}'"),{type:"Object",entries:n10}}parseObjectValue(){let n10=this.parseVarBind();for(;this.match("PIPE");){let t8=this.parseVarBind();n10={type:"Pipe",left:n10,right:t8}}return n10}parseIf(){let n10=this.parseExpr();this.expect("THEN","Expected 'then'");let t8=this.parseExpr(),r7=[];for(;this.match("ELIF");){let o13=this.parseExpr();this.expect("THEN","Expected 'then' after elif");let p16=this.parseExpr();r7.push({cond:o13,then:p16})}let s10;return this.match("ELSE")&&(s10=this.parseExpr()),this.expect("END","Expected 'end'"),{type:"Cond",cond:n10,then:t8,elifs:r7,else:s10}}parseStringInterpolation(n10){let t8=[],r7="",s10=0;for(;s10<n10.length;)if(n10[s10]==="\\"&&n10[s10+1]==="("){r7&&(t8.push(r7),r7=""),s10+=2;let o13=1,p16="";for(;s10<n10.length&&o13>0;){let i22=n10[s10];if(i22==='"'){for(p16+=i22,s10++;s10<n10.length;){let c18=n10[s10];if(c18==="\\"){p16+=c18,s10++,s10<n10.length&&(p16+=n10[s10],s10++);continue}if(p16+=c18,s10++,c18==='"')break}continue}i22==="("?o13++:i22===")"&&o13--,o13>0&&(p16+=i22),s10++}let u15=Qe2(p16),f15=new e5(u15,this.maxDepth,this.depth);t8.push(f15.parse())}else r7+=n10[s10],s10++;return r7&&t8.push(r7),{type:"StringInterp",parts:t8}}}}});import{createRequire as createRequire137}from"node:module";function se6(i22){switch(i22){case"\b":return"\\b";case"\f":return"\\f";case`
595
595
  `:return"\\n";case"\r":return"\\r";case" ":return"\\t";default:return`\\u${i22.charCodeAt(0).toString(16).padStart(4,"0")}`}}function ne5(i22){let t8="",d11=!1,m16=!1;for(let s10=0;s10<i22.length;s10++){let a14=i22[s10];if(m16){t8+=a14,m16=!1;continue}if(a14==="\\"){t8+=a14,m16=!0;continue}if(a14==='"'){t8+=a14,d11=!d11;continue}if(d11&&a14.charCodeAt(0)<=31){t8+=se6(a14);continue}t8+=a14}return t8}function R12(i22,t8,d11){return JSON.parse(ne5(i22.slice(t8,d11)))}function J6(i22,t8){let d11=[],m16=x23=>{if(d11.length>=t8.maxElements)throw new f2(`query result element limit exceeded (${t8.maxElements})`,"array_elements");d11.push(x23)},s10=0,a14=i22.length;for(;s10<a14;){for(;s10<a14&&/\s/.test(i22[s10]);)s10++;if(s10>=a14)break;let x23=s10,p16=i22[s10];if(p16==="{"||p16==="["){let u15=[p16==="{"?"}":"]"],h18=!1,E19=!1;for(s10++;s10<a14&&u15.length>0;){let g13=i22[s10];if(E19)E19=!1;else if(g13==="\\")E19=!0;else if(g13==='"')h18=!h18;else if(!h18){if(g13==="{"||g13==="["){if(u15.push(g13==="{"?"}":"]"),u15.length>t8.maxDepth)throw new f2(`query depth limit exceeded (${t8.maxDepth})`,"recursion")}else if((g13==="}"||g13==="]")&&u15.pop()!==g13)throw new Error(`Mismatched JSON delimiter at position ${s10}`)}s10++}if(u15.length!==0)throw new Error(`Unexpected end of JSON input at position ${s10} (unclosed ${p16})`);m16(D7(R12(i22,x23,s10),{maxDepth:t8.maxDepth,maxElements:t8.maxElements}))}else if(p16==='"'){let u15=!1;for(s10++;s10<a14;){let h18=i22[s10];if(u15)u15=!1;else if(h18==="\\")u15=!0;else if(h18==='"'){s10++;break}s10++}m16(D7(R12(i22,x23,s10),t8))}else if(p16==="-"||p16>="0"&&p16<="9"){for(;s10<a14&&/[\d.eE+-]/.test(i22[s10]);)s10++;m16(D7(R12(i22,x23,s10),t8))}else if(i22.slice(s10,s10+4)==="true")m16(!0),s10+=4;else if(i22.slice(s10,s10+5)==="false")m16(!1),s10+=5;else if(i22.slice(s10,s10+4)==="null")m16(null),s10+=4;else{let u15=i22.slice(s10,s10+10);throw new Error(`Invalid JSON at position ${x23}: unexpected '${u15.split(/\s/)[0]}'`)}}return d11}function S10(i22){return{stdout:"",stderr:`jq: ${i22}
596
- `,exitCode:2}}var require138,re6,we6,ye5,init_chunk_D5ZJISRS=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-D5ZJISRS.js"(){init_chunk_H53EPEGD();init_chunk_FIMO5HLX();init_chunk_CHWP6GRK();init_chunk_CHHWTPDH();init_chunk_CBM6J4AL();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_FOCWZZDE();init_chunk_QAYAQNCG();require138=createRequire137(import.meta.url);re6={name:"jq",summary:"command-line JSON processor",usage:"jq [OPTIONS] FILTER [FILE...]",options:["-R, --raw-input read each line as string instead of JSON","-r, --raw-output output strings without quotes","-c, --compact-output compact instead of pretty-printed output","-e, --exit-status set exit status based on output","-s, --slurp read entire input into array","-n, --null-input don't read any input","-j, --join-output don't print newlines after each output","-a, --ascii force ASCII output","-S, --sort-keys sort object keys","-C, --color colorize output (ignored)","-M, --monochrome monochrome output (ignored)"," --tab use tabs for indentation"," --arg NAME VALUE bind $NAME to the string VALUE"," --argjson NAME JSON bind $NAME to the JSON-decoded value JSON"," --rawfile NAME FILE bind $NAME to the raw contents of FILE"," --slurpfile NAME FILE bind $NAME to the array of JSON values in FILE"," --args remaining arguments are string positional args ($ARGS.positional)"," --jsonargs remaining arguments are JSON positional args ($ARGS.positional)"," --help display this help and exit"]},we6={name:"jq",async execute(i22,t8){a5(t8.requireDefenseContext,"jq","execution entry");let d11=(r7,e8)=>x3(t8.requireDefenseContext,"jq",r7,e8);if(o5(i22))return s5(re6);let m16=!1,s10=!1,a14=!1,x23=!1,p16=!1,u15=!1,h18=!1,E19=!1,g13=!1,V10=".",_13=!1,A13="none",N16=[],$22=new Map,k19=[],q11=[],v13={maxDepth:t8.limits.maxQueryDepth,maxElements:t8.limits.maxQueryElements};for(let r7=0;r7<i22.length;r7++){let e8=i22[r7];if(e8==="-R"||e8==="--raw-input")s10=!0;else if(e8==="-r"||e8==="--raw-output")m16=!0;else if(e8==="-c"||e8==="--compact-output")a14=!0;else if(e8==="-e"||e8==="--exit-status")x23=!0;else if(e8==="-s"||e8==="--slurp")p16=!0;else if(e8==="-n"||e8==="--null-input")u15=!0;else if(e8==="-j"||e8==="--join-output")h18=!0;else if(!(e8==="-a"||e8==="--ascii")){if(e8==="-S"||e8==="--sort-keys")E19=!0;else if(!(e8==="-C"||e8==="--color")&&!(e8==="-M"||e8==="--monochrome"))if(e8==="--tab")g13=!0;else if(e8==="--arg"){let n10=i22[r7+1],l12=i22[r7+2];if(n10===void 0||l12===void 0)return S10("--arg takes two parameters (e.g. --arg varname value)");$22.set(n10,l12),r7+=2}else if(e8==="--argjson"){let n10=i22[r7+1],l12=i22[r7+2];if(n10===void 0||l12===void 0)return S10("--argjson takes two parameters (e.g. --argjson varname text)");let y14;try{y14=J6(l12.trim(),v13)}catch{return S10("invalid JSON text passed to --argjson")}if(y14.length!==1)return S10("invalid JSON text passed to --argjson");$22.set(n10,y14[0]),r7+=2}else if(e8==="--rawfile"){let n10=i22[r7+1],l12=i22[r7+2];if(n10===void 0||l12===void 0)return S10("--rawfile takes two parameters (e.g. --rawfile varname filename)");q11.push({name:n10,file:l12,mode:"raw"}),r7+=2}else if(e8==="--slurpfile"){let n10=i22[r7+1],l12=i22[r7+2];if(n10===void 0||l12===void 0)return S10("--slurpfile takes two parameters (e.g. --slurpfile varname filename)");q11.push({name:n10,file:l12,mode:"slurp"}),r7+=2}else if(e8==="--args")A13="args";else if(e8==="--jsonargs")A13="jsonargs";else if(e8==="-")N16.push("-");else{if(e8.startsWith("--"))return r5("jq",e8);if(e8.startsWith("-")){for(let n10 of e8.slice(1))if(n10==="R")s10=!0;else if(n10==="r")m16=!0;else if(n10==="c")a14=!0;else if(n10==="e")x23=!0;else if(n10==="s")p16=!0;else if(n10==="n")u15=!0;else if(n10==="j")h18=!0;else if(n10!=="a"){if(n10==="S")E19=!0;else if(n10!=="C"&&n10!=="M")return r5("jq",`-${n10}`)}}else if(!_13)V10=e8,_13=!0;else if(A13==="args")k19.push(e8);else if(A13==="jsonargs"){let n10;try{n10=J6(e8.trim(),v13)}catch{return S10("invalid JSON text passed to --jsonargs")}if(n10.length!==1)return S10("invalid JSON text passed to --jsonargs");k19.push(n10[0])}else N16.push(e8)}}}if(q11.length>0){let r7=await d11("arg file read",()=>y3(t8,q11.map(e8=>e8.file),{cmdName:"jq",stopOnError:!0}));if(r7.exitCode!==0)return{stdout:"",stderr:r7.stderr,exitCode:2};for(let e8=0;e8<q11.length;e8++){let{name:n10,mode:l12}=q11[e8],y14=a2(r7.files[e8].content);if(l12==="raw")$22.set(n10,y14);else{let b23=y14.trim();try{$22.set(n10,b23?J6(b23,v13):[])}catch{return S10("invalid JSON text passed to --slurpfile")}}}}let D18=[];if(!u15)if(N16.length===0||N16.length===1&&N16[0]==="-")D18.push({source:"stdin",content:a2(t8.stdin)});else{let r7=await d11("file read",()=>y3(t8,N16,{cmdName:"jq",stopOnError:!0}));if(r7.exitCode!==0)return{stdout:"",stderr:r7.stderr,exitCode:2};D18=r7.files.map(e8=>({source:e8.filename||"stdin",content:a2(e8.content)}))}try{let r7=hr(V10,{maxDepth:t8.limits.maxQueryDepth,maxTokens:t8.limits.maxQueryTokens,maxSourceLength:t8.limits.maxStringLength}),e8=[],n10={limits:t8.limits?{maxIterations:t8.limits.maxJqIterations,maxStringLength:t8.limits.maxStringLength,maxOutputSize:t8.limits.maxOutputSize,maxArrayElements:t8.limits.maxQueryElements,maxDepth:t8.limits.maxQueryDepth}:void 0,env:t8.env,namedArgs:$22,positionalArgs:k19,coverage:t8.coverage,requireDefenseContext:t8.requireDefenseContext,budget:{operations:0,callDepth:0}},l12=(o13,f15)=>{if(f15.length>t8.limits.maxQueryElements-o13.length)throw new f2(`query result element limit exceeded (${t8.limits.maxQueryElements})`,"array_elements");for(let c18 of f15)o13.push(c18)};if(u15)e8=d8(null,r7,n10);else if(s10&&p16){let o13=D18.map(({content:f15})=>f15).join("");e8=d8(o13,r7,n10)}else if(s10){let o13="";for(let{content:f15}of D18){let c18=o13+f15,w15=0,O18=c18.indexOf(`
596
+ `,exitCode:2}}var require138,re6,we6,ye5,init_chunk_D5ZJISRS=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-D5ZJISRS.js"(){init_chunk_H53EPEGD();init_chunk_FIMO5HLX();init_chunk_CHWP6GRK();init_chunk_CHHWTPDH();init_chunk_CBM6J4AL();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_FOCWZZDE();init_chunk_QAYAQNCG();require138=createRequire137(import.meta.url);re6={name:"jq",summary:"command-line JSON processor",usage:"jq [OPTIONS] FILTER [FILE...]",options:["-R, --raw-input read each line as string instead of JSON","-r, --raw-output output strings without quotes","-c, --compact-output compact instead of pretty-printed output","-e, --exit-status set exit status based on output","-s, --slurp read entire input into array","-n, --null-input don't read any input","-j, --join-output don't print newlines after each output","-a, --ascii force ASCII output","-S, --sort-keys sort object keys","-C, --color colorize output (ignored)","-M, --monochrome monochrome output (ignored)"," --tab use tabs for indentation"," --arg NAME VALUE bind $NAME to the string VALUE"," --argjson NAME JSON bind $NAME to the JSON-decoded value JSON"," --rawfile NAME FILE bind $NAME to the raw contents of FILE"," --slurpfile NAME FILE bind $NAME to the array of JSON values in FILE"," --args remaining arguments are string positional args ($ARGS.positional)"," --jsonargs remaining arguments are JSON positional args ($ARGS.positional)"," --help display this help and exit"]},we6={name:"jq",async execute(i22,t8){a5(t8.requireDefenseContext,"jq","execution entry");let d11=(r7,e8)=>x3(t8.requireDefenseContext,"jq",r7,e8);if(o5(i22))return s5(re6);let m16=!1,s10=!1,a14=!1,x23=!1,p16=!1,u15=!1,h18=!1,E19=!1,g13=!1,V10=".",_13=!1,A13="none",N16=[],$22=new Map,k19=[],q11=[],v13={maxDepth:t8.limits.maxQueryDepth,maxElements:t8.limits.maxQueryElements};for(let r7=0;r7<i22.length;r7++){let e8=i22[r7];if(e8==="-R"||e8==="--raw-input")s10=!0;else if(e8==="-r"||e8==="--raw-output")m16=!0;else if(e8==="-c"||e8==="--compact-output")a14=!0;else if(e8==="-e"||e8==="--exit-status")x23=!0;else if(e8==="-s"||e8==="--slurp")p16=!0;else if(e8==="-n"||e8==="--null-input")u15=!0;else if(e8==="-j"||e8==="--join-output")h18=!0;else if(!(e8==="-a"||e8==="--ascii")){if(e8==="-S"||e8==="--sort-keys")E19=!0;else if(!(e8==="-C"||e8==="--color")&&!(e8==="-M"||e8==="--monochrome"))if(e8==="--tab")g13=!0;else if(e8==="--arg"){let n10=i22[r7+1],l12=i22[r7+2];if(n10===void 0||l12===void 0)return S10("--arg takes two parameters (e.g. --arg varname value)");$22.set(n10,l12),r7+=2}else if(e8==="--argjson"){let n10=i22[r7+1],l12=i22[r7+2];if(n10===void 0||l12===void 0)return S10("--argjson takes two parameters (e.g. --argjson varname text)");let y14;try{y14=J6(l12.trim(),v13)}catch{return S10("invalid JSON text passed to --argjson")}if(y14.length!==1)return S10("invalid JSON text passed to --argjson");$22.set(n10,y14[0]),r7+=2}else if(e8==="--rawfile"){let n10=i22[r7+1],l12=i22[r7+2];if(n10===void 0||l12===void 0)return S10("--rawfile takes two parameters (e.g. --rawfile varname filename)");q11.push({name:n10,file:l12,mode:"raw"}),r7+=2}else if(e8==="--slurpfile"){let n10=i22[r7+1],l12=i22[r7+2];if(n10===void 0||l12===void 0)return S10("--slurpfile takes two parameters (e.g. --slurpfile varname filename)");q11.push({name:n10,file:l12,mode:"slurp"}),r7+=2}else if(e8==="--args")A13="args";else if(e8==="--jsonargs")A13="jsonargs";else if(e8==="-")N16.push("-");else{if(e8.startsWith("--"))return r5("jq",e8);if(e8.startsWith("-")){for(let n10 of e8.slice(1))if(n10==="R")s10=!0;else if(n10==="r")m16=!0;else if(n10==="c")a14=!0;else if(n10==="e")x23=!0;else if(n10==="s")p16=!0;else if(n10==="n")u15=!0;else if(n10==="j")h18=!0;else if(n10!=="a"){if(n10==="S")E19=!0;else if(n10!=="C"&&n10!=="M")return r5("jq",`-${n10}`)}}else if(!_13)V10=e8,_13=!0;else if(A13==="args")k19.push(e8);else if(A13==="jsonargs"){let n10;try{n10=J6(e8.trim(),v13)}catch{return S10("invalid JSON text passed to --jsonargs")}if(n10.length!==1)return S10("invalid JSON text passed to --jsonargs");k19.push(n10[0])}else N16.push(e8)}}}if(q11.length>0){let r7=await d11("arg file read",()=>y3(t8,q11.map(e8=>e8.file),{cmdName:"jq",stopOnError:!0}));if(r7.exitCode!==0)return{stdout:"",stderr:r7.stderr,exitCode:2};for(let e8=0;e8<q11.length;e8++){let{name:n10,mode:l12}=q11[e8],y14=a2(r7.files[e8].content);if(l12==="raw")$22.set(n10,y14);else{let b23=y14.trim();try{$22.set(n10,b23?J6(b23,v13):[])}catch{return S10("invalid JSON text passed to --slurpfile")}}}}let D18=[];if(!u15)if(N16.length===0||N16.length===1&&N16[0]==="-")D18.push({source:"stdin",content:a2(t8.stdin)});else{let r7=await d11("file read",()=>y3(t8,N16,{cmdName:"jq",stopOnError:!0}));if(r7.exitCode!==0)return{stdout:"",stderr:r7.stderr,exitCode:2};D18=r7.files.map(e8=>({source:e8.filename||"stdin",content:a2(e8.content)}))}try{let r7=hr(V10,{maxDepth:t8.limits.maxQueryDepth,maxTokens:t8.limits.maxQueryTokens,maxSourceLength:t8.limits.maxStringLength}),e8=[],n10={limits:t8.limits?{maxIterations:t8.limits.maxJqIterations,maxStringLength:t8.limits.maxStringLength,maxOutputSize:t8.limits.maxOutputSize,maxArrayElements:t8.limits.maxQueryElements,maxDepth:t8.limits.maxQueryDepth}:void 0,env:t8.env,namedArgs:$22,positionalArgs:k19,coverage:t8.coverage,requireDefenseContext:t8.requireDefenseContext,budget:{operations:0,callDepth:0}},l12=(o13,f15)=>{if(f15.length>t8.limits.maxQueryElements-o13.length)throw new f2(`query result element limit exceeded (${t8.limits.maxQueryElements})`,"array_elements");for(let c18 of f15)o13.push(c18)};if(u15)e8=d8(null,r7,n10);else if(s10&&p16){let o13=D18.map(({content:f15})=>f15).join("");e8=d8(o13,r7,n10)}else if(s10){let o13="";for(let{content:f15}of D18){let c18=o13+f15,w15=0,O18=c18.indexOf(`
597
597
  `,w15);for(;O18!==-1;)l12(e8,d8(c18.slice(w15,O18),r7,n10)),w15=O18+1,O18=c18.indexOf(`
598
598
  `,w15);o13=c18.slice(w15)}o13!==""&&l12(e8,d8(o13,r7,n10))}else if(p16){let o13=[];for(let{content:f15}of D18){let c18=f15.trim();c18&&l12(o13,J6(c18,v13))}e8=d8(o13,r7,n10)}else for(let{content:o13}of D18){let f15=o13.trim();if(!f15)continue;let c18=J6(f15,v13);for(let w15 of c18)l12(e8,d8(w15,r7,n10))}let y14=h18?"":`
599
599
  `,b23=Math.min(t8.limits.maxStringLength,t8.limits.maxOutputSize),I22=[],z16=0;for(let o13 of e8){let f15=I22.length>0?y14.length:0,c18=h18?0:1,w15=b23-z16-f15-c18;if(w15<0)throw new f2(`output size limit exceeded (${b23} bytes)`,"string_length");if(B12(o13,t8.limits.maxQueryDepth+1)>t8.limits.maxQueryDepth)throw new f2(`query depth limit exceeded (${t8.limits.maxQueryDepth})`,"recursion");let O18=br(o13,w15,{compact:a14,raw:m16,sortKeys:E19,useTab:g13,limitKind:"string_length"}),U12=x(O18);if(z16+f15+U12+c18>b23)throw new f2(`output size limit exceeded (${b23} bytes)`,"string_length");z16+=f15+U12,I22.push(O18)}let Q12=I22.join(y14),te10=x23&&(e8.length===0||e8.every(o13=>o13==null||o13===!1))?1:0;return{stdout:Q12?h18?Q12:`${Q12}
600
600
  `:"",stderr:"",exitCode:te10}}catch(r7){if(r7 instanceof d3)throw r7;if(r7 instanceof f2)return{stdout:"",stderr:`jq: ${n5(r7.message)}
601
601
  `,exitCode:f2.EXIT_CODE};let e8=n5(r7.message);return e8.includes("Unknown function")?{stdout:"",stderr:`jq: error: ${e8}
602
602
  `,exitCode:3}:{stdout:"",stderr:`jq: parse error: ${e8}
603
- `,exitCode:5}}}},ye5={name:"jq",flags:[{flag:"-R",type:"boolean"},{flag:"-r",type:"boolean"},{flag:"-c",type:"boolean"},{flag:"-e",type:"boolean"},{flag:"-s",type:"boolean"},{flag:"-n",type:"boolean"},{flag:"-j",type:"boolean"},{flag:"-S",type:"boolean"},{flag:"--tab",type:"boolean"}],stdinType:"json",needsArgs:!0}}});var jq_FCG2IUBK_exports={};__export(jq_FCG2IUBK_exports,{flagsForFuzzing:()=>ye5,jqCommand:()=>we6});import{createRequire as createRequire138}from"node:module";var require139,init_jq_FCG2IUBK=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/jq-FCG2IUBK.js"(){init_chunk_D5ZJISRS();init_chunk_H53EPEGD();init_chunk_FIMO5HLX();init_chunk_DLL7UR66();init_chunk_CHWP6GRK();init_chunk_7GA3QWJJ();init_chunk_CHHWTPDH();init_chunk_CBM6J4AL();init_chunk_6D3WD6YU();init_chunk_DIWMSSQY();init_chunk_STHBFACM();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_FOCWZZDE();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require139=createRequire138(import.meta.url)}});import{createRequire as createRequire139}from"node:module";function a10(t8,e8,u15,i22){if(t8>e8)throw new f2(`base64: ${u15} limit exceeded (${e8} bytes)`,i22)}function k12(t8){let e8=[];for(let i22=0;i22<t8.length;i22+=32768)e8.push(String.fromCharCode(...t8.subarray(i22,i22+32768)));return e8.join("")}function B13(t8){if(t8.length===0)return 0;let e8=t8.endsWith("==")?2:t8.endsWith("=")?1:0;return Math.max(0,Math.ceil(t8.length/4)*3-e8)}async function x17(t8,e8,u15){let i22=Math.min(t8.limits.maxInputBytes,t8.limits.maxStringLength),o13=t8.stdin;if(e8.length===0||e8.length===1&&e8[0]==="-")return a10(o13.length,i22,"input size","string_length"),{ok:!0,data:Uint8Array.from(o13,n10=>n10.charCodeAt(0))};let c18=[],s10=0;for(let n10 of e8){if(n10==="-"){a10(s10+o13.length,i22,"input size","string_length"),c18.push(Uint8Array.from(o13,r7=>r7.charCodeAt(0))),s10+=o13.length;continue}try{let r7=t8.fs.resolvePath(t8.cwd,n10),l12=await t8.fs.stat(r7);a10(s10+l12.size,i22,"input size","string_length");let f15=await t8.fs.readFileBuffer(r7);a10(s10+f15.length,i22,"input size","string_length"),B3(t8,f15.length,u15),c18.push(f15),s10+=f15.length}catch(r7){return e2(r7),{ok:!1,error:{stdout:"",stderr:`${u15}: ${n10}: No such file or directory
604
- `,exitCode:1}}}}let d11=new Uint8Array(s10),h18=0;for(let n10 of c18)d11.set(n10,h18),h18+=n10.length;return{ok:!0,data:d11}}var require140,E14,F17,T14,W6,init_chunk_65LVAUWW=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-65LVAUWW.js"(){init_chunk_CHHWTPDH();init_chunk_U7UNEMLJ();init_chunk_EFORKKSH();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();require140=createRequire139(import.meta.url),E14={name:"base64",summary:"base64 encode/decode data and print to standard output",usage:"base64 [OPTION]... [FILE]",options:["-d, --decode decode data","-w, --wrap=COLS wrap encoded lines after COLS character (default 76, 0 to disable)"," --help display this help and exit"]},F17={decode:{short:"d",long:"decode",type:"boolean"},wrap:{short:"w",long:"wrap",type:"number",default:76}};T14={name:"base64",async execute(t8,e8){if(o5(t8))return s5(E14);let u15=x5("base64",t8,F17);if(!u15.ok)return u15.error;let i22=u15.result.flags.decode,o13=u15.result.flags.wrap,c18=u15.result.positional;if(!Number.isSafeInteger(o13)||o13<0)return{stdout:"",stderr:`base64: invalid wrap size
603
+ `,exitCode:5}}}},ye5={name:"jq",flags:[{flag:"-R",type:"boolean"},{flag:"-r",type:"boolean"},{flag:"-c",type:"boolean"},{flag:"-e",type:"boolean"},{flag:"-s",type:"boolean"},{flag:"-n",type:"boolean"},{flag:"-j",type:"boolean"},{flag:"-S",type:"boolean"},{flag:"--tab",type:"boolean"}],stdinType:"json",needsArgs:!0}}});var jq_FCG2IUBK_exports={};__export(jq_FCG2IUBK_exports,{flagsForFuzzing:()=>ye5,jqCommand:()=>we6});import{createRequire as createRequire138}from"node:module";var require139,init_jq_FCG2IUBK=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/jq-FCG2IUBK.js"(){init_chunk_D5ZJISRS();init_chunk_H53EPEGD();init_chunk_FIMO5HLX();init_chunk_DLL7UR66();init_chunk_CHWP6GRK();init_chunk_7GA3QWJJ();init_chunk_CHHWTPDH();init_chunk_CBM6J4AL();init_chunk_6D3WD6YU();init_chunk_DIWMSSQY();init_chunk_STHBFACM();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_FOCWZZDE();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require139=createRequire138(import.meta.url)}});import{createRequire as createRequire139}from"node:module";function a10(t8,e8,u15,i22){if(t8>e8)throw new f2(`base64: ${u15} limit exceeded (${e8} bytes)`,i22)}function k12(t8){let e8=[];for(let i22=0;i22<t8.length;i22+=32768)e8.push(String.fromCharCode(...t8.subarray(i22,i22+32768)));return e8.join("")}function B13(t8){if(t8.length===0)return 0;let e8=t8.endsWith("==")?2:t8.endsWith("=")?1:0;return Math.max(0,Math.ceil(t8.length/4)*3-e8)}async function x17(t8,e8,u15){let i22=Math.min(t8.limits.maxInputBytes,t8.limits.maxStringLength),o13=t8.stdin;if(e8.length===0||e8.length===1&&e8[0]==="-")return a10(o13.length,i22,"input size","string_length"),{ok:!0,data:Uint8Array.from(o13,n10=>n10.charCodeAt(0))};let c18=[],s10=0;for(let n10 of e8){if(n10==="-"){a10(s10+o13.length,i22,"input size","string_length"),c18.push(Uint8Array.from(o13,r7=>r7.charCodeAt(0))),s10+=o13.length;continue}try{let r7=t8.fs.resolvePath(t8.cwd,n10),l12=await t8.fs.stat(r7);a10(s10+l12.size,i22,"input size","string_length");let f15=await t8.fs.readFileBuffer(r7);a10(s10+f15.length,i22,"input size","string_length"),B3(t8,f15.length,u15),c18.push(f15),s10+=f15.length}catch(r7){return e2(r7),{ok:!1,error:{stdout:"",stderr:`${u15}: ${n10}: No such file or directory
604
+ `,exitCode:1}}}}let d11=new Uint8Array(s10),h18=0;for(let n10 of c18)d11.set(n10,h18),h18+=n10.length;return{ok:!0,data:d11}}var require140,E14,F17,T14,W6,init_chunk_65LVAUWW=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-65LVAUWW.js"(){init_chunk_CHHWTPDH();init_chunk_U7UNEMLJ();init_chunk_EFORKKSH();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();require140=createRequire139(import.meta.url),E14={name:"base64",summary:"base64 encode/decode data and print to standard output",usage:"base64 [OPTION]... [FILE]",options:["-d, --decode decode data","-w, --wrap=COLS wrap encoded lines after COLS character (default 76, 0 to disable)"," --help display this help and exit"]},F17={decode:{short:"d",long:"decode",type:"boolean"},wrap:{short:"w",long:"wrap",type:"number",default:76}};T14={name:"base64",async execute(t8,e8){if(o5(t8))return s5(E14);let u15=x5("base64",t8,F17);if(!u15.ok)return u15.error;let i22=u15.result.flags.decode,o13=u15.result.flags.wrap,c18=u15.result.positional;if(!Number.isSafeInteger(o13)||o13<0)return{stdout:"",stderr:`base64: invalid wrap size
605
605
  `,exitCode:1};try{if(i22){let r7=await x17(e8,c18,"base64");if(!r7.ok)return r7.error;if(typeof Buffer<"u"){let y14=Buffer.from(r7.data).toString("utf8").replace(/\s/g,""),z16=B13(y14);a10(z16,e8.limits.maxStringLength,"decoded size","string_length"),a10(z16,e8.limits.maxOutputSize,"output size","output_size");let w15=Buffer.from(y14,"base64");return a10(w15.length,e8.limits.maxOutputSize,"output size","output_size"),{stdout:w15.toString("latin1"),stderr:"",exitCode:0,stdoutEncoding:"binary"}}let f15=k12(r7.data).replace(/\s/g,""),m16=B13(f15);a10(m16,e8.limits.maxStringLength,"decoded size","string_length"),a10(m16,e8.limits.maxOutputSize,"output size","output_size");let b23=atob(f15);return a10(b23.length,e8.limits.maxOutputSize,"output size","output_size"),{stdout:b23,stderr:"",exitCode:0,stdoutEncoding:"binary"}}let s10=await x17(e8,c18,"base64");if(!s10.ok)return s10.error;let d11=Math.ceil(s10.data.length/3)*4,h18=o13>0&&d11>0?Math.ceil(d11/o13):0;if(h18>e8.limits.maxArrayElements)throw new f2(`base64: wrapped line limit exceeded (${e8.limits.maxArrayElements})`,"array_elements");a10(d11,e8.limits.maxStringLength,"encoded size","string_length"),a10(d11+h18,e8.limits.maxOutputSize,"output size","output_size");let n10;if(typeof Buffer<"u"?n10=Buffer.from(s10.data).toString("base64"):n10=btoa(k12(s10.data)),o13>0){let r7=[];for(let l12=0;l12<n10.length;l12+=o13)r7.push(n10.slice(l12,l12+o13));n10=r7.join(`
606
606
  `)+(n10.length>0?`
607
607
  `:"")}return{stdout:n10,stderr:"",exitCode:0}}catch(s10){return e2(s10),{stdout:"",stderr:`base64: invalid input
608
- `,exitCode:1}}}},W6={name:"base64",flags:[{flag:"-d",type:"boolean"},{flag:"-w",type:"value",valueHint:"number"}],stdinType:"text",needsFiles:!0}}});var base64_QPSYZAAJ_exports={};__export(base64_QPSYZAAJ_exports,{base64Command:()=>T14,flagsForFuzzing:()=>W6});import{createRequire as createRequire140}from"node:module";var require141,init_base64_QPSYZAAJ=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/base64-QPSYZAAJ.js"(){init_chunk_65LVAUWW();init_chunk_CHHWTPDH();init_chunk_U7UNEMLJ();init_chunk_CBM6J4AL();init_chunk_STHBFACM();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require141=createRequire140(import.meta.url)}});var Diff,init_base=__esm({"../../../node_modules/.pnpm/diff@8.0.4/node_modules/diff/libesm/diff/base.js"(){Diff=class{diff(oldStr,newStr,options={}){let callback;typeof options=="function"?(callback=options,options={}):"callback"in options&&(callback=options.callback);let oldString=this.castInput(oldStr,options),newString=this.castInput(newStr,options),oldTokens=this.removeEmpty(this.tokenize(oldString,options)),newTokens=this.removeEmpty(this.tokenize(newString,options));return this.diffWithOptionsObj(oldTokens,newTokens,options,callback)}diffWithOptionsObj(oldTokens,newTokens,options,callback){var _a2;let done=value=>{if(value=this.postProcess(value,options),callback){setTimeout(function(){callback(value)},0);return}else return value},newLen=newTokens.length,oldLen=oldTokens.length,editLength=1,maxEditLength=newLen+oldLen;options.maxEditLength!=null&&(maxEditLength=Math.min(maxEditLength,options.maxEditLength));let maxExecutionTime=(_a2=options.timeout)!==null&&_a2!==void 0?_a2:1/0,abortAfterTimestamp=Date.now()+maxExecutionTime,bestPath=[{oldPos:-1,lastComponent:void 0}],newPos=this.extractCommon(bestPath[0],newTokens,oldTokens,0,options);if(bestPath[0].oldPos+1>=oldLen&&newPos+1>=newLen)return done(this.buildValues(bestPath[0].lastComponent,newTokens,oldTokens));let minDiagonalToConsider=-1/0,maxDiagonalToConsider=1/0,execEditLength=()=>{for(let diagonalPath=Math.max(minDiagonalToConsider,-editLength);diagonalPath<=Math.min(maxDiagonalToConsider,editLength);diagonalPath+=2){let basePath,removePath=bestPath[diagonalPath-1],addPath=bestPath[diagonalPath+1];removePath&&(bestPath[diagonalPath-1]=void 0);let canAdd=!1;if(addPath){let addPathNewPos=addPath.oldPos-diagonalPath;canAdd=addPath&&0<=addPathNewPos&&addPathNewPos<newLen}let canRemove=removePath&&removePath.oldPos+1<oldLen;if(!canAdd&&!canRemove){bestPath[diagonalPath]=void 0;continue}if(!canRemove||canAdd&&removePath.oldPos<addPath.oldPos?basePath=this.addToPath(addPath,!0,!1,0,options):basePath=this.addToPath(removePath,!1,!0,1,options),newPos=this.extractCommon(basePath,newTokens,oldTokens,diagonalPath,options),basePath.oldPos+1>=oldLen&&newPos+1>=newLen)return done(this.buildValues(basePath.lastComponent,newTokens,oldTokens))||!0;bestPath[diagonalPath]=basePath,basePath.oldPos+1>=oldLen&&(maxDiagonalToConsider=Math.min(maxDiagonalToConsider,diagonalPath-1)),newPos+1>=newLen&&(minDiagonalToConsider=Math.max(minDiagonalToConsider,diagonalPath+1))}editLength++};if(callback)(function exec(){setTimeout(function(){if(editLength>maxEditLength||Date.now()>abortAfterTimestamp)return callback(void 0);execEditLength()||exec()},0)})();else for(;editLength<=maxEditLength&&Date.now()<=abortAfterTimestamp;){let ret=execEditLength();if(ret)return ret}}addToPath(path,added,removed,oldPosInc,options){let last=path.lastComponent;return last&&!options.oneChangePerToken&&last.added===added&&last.removed===removed?{oldPos:path.oldPos+oldPosInc,lastComponent:{count:last.count+1,added,removed,previousComponent:last.previousComponent}}:{oldPos:path.oldPos+oldPosInc,lastComponent:{count:1,added,removed,previousComponent:last}}}extractCommon(basePath,newTokens,oldTokens,diagonalPath,options){let newLen=newTokens.length,oldLen=oldTokens.length,oldPos=basePath.oldPos,newPos=oldPos-diagonalPath,commonCount=0;for(;newPos+1<newLen&&oldPos+1<oldLen&&this.equals(oldTokens[oldPos+1],newTokens[newPos+1],options);)newPos++,oldPos++,commonCount++,options.oneChangePerToken&&(basePath.lastComponent={count:1,previousComponent:basePath.lastComponent,added:!1,removed:!1});return commonCount&&!options.oneChangePerToken&&(basePath.lastComponent={count:commonCount,previousComponent:basePath.lastComponent,added:!1,removed:!1}),basePath.oldPos=oldPos,newPos}equals(left,right,options){return options.comparator?options.comparator(left,right):left===right||!!options.ignoreCase&&left.toLowerCase()===right.toLowerCase()}removeEmpty(array){let ret=[];for(let i22=0;i22<array.length;i22++)array[i22]&&ret.push(array[i22]);return ret}castInput(value,options){return value}tokenize(value,options){return Array.from(value)}join(chars){return chars.join("")}postProcess(changeObjects,options){return changeObjects}get useLongestToken(){return!1}buildValues(lastComponent,newTokens,oldTokens){let components=[],nextComponent;for(;lastComponent;)components.push(lastComponent),nextComponent=lastComponent.previousComponent,delete lastComponent.previousComponent,lastComponent=nextComponent;components.reverse();let componentLen=components.length,componentPos=0,newPos=0,oldPos=0;for(;componentPos<componentLen;componentPos++){let component=components[componentPos];if(component.removed)component.value=this.join(oldTokens.slice(oldPos,oldPos+component.count)),oldPos+=component.count;else{if(!component.added&&this.useLongestToken){let value=newTokens.slice(newPos,newPos+component.count);value=value.map(function(value2,i22){let oldValue=oldTokens[oldPos+i22];return oldValue.length>value2.length?oldValue:value2}),component.value=this.join(value)}else component.value=this.join(newTokens.slice(newPos,newPos+component.count));newPos+=component.count,component.added||(oldPos+=component.count)}}return components}}}});function diffArrays(oldArr,newArr,options){return arrayDiff.diff(oldArr,newArr,options)}var ArrayDiff,arrayDiff,init_array=__esm({"../../../node_modules/.pnpm/diff@8.0.4/node_modules/diff/libesm/diff/array.js"(){init_base();ArrayDiff=class extends Diff{tokenize(value){return value.slice()}join(value){return value}removeEmpty(value){return value}},arrayDiff=new ArrayDiff}});var init_libesm=__esm({"../../../node_modules/.pnpm/diff@8.0.4/node_modules/diff/libesm/index.js"(){init_array()}});import{createRequire as createRequire141}from"node:module";function x18(o13){if(o13==="")return{lines:[],noEol:!1};let n10=!o13.endsWith(`
608
+ `,exitCode:1}}}},W6={name:"base64",flags:[{flag:"-d",type:"boolean"},{flag:"-w",type:"value",valueHint:"number"}],stdinType:"text",needsFiles:!0}}});var base64_QPSYZAAJ_exports={};__export(base64_QPSYZAAJ_exports,{base64Command:()=>T14,flagsForFuzzing:()=>W6});import{createRequire as createRequire140}from"node:module";var require141,init_base64_QPSYZAAJ=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/base64-QPSYZAAJ.js"(){init_chunk_65LVAUWW();init_chunk_CHHWTPDH();init_chunk_U7UNEMLJ();init_chunk_CBM6J4AL();init_chunk_STHBFACM();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require141=createRequire140(import.meta.url)}});var Diff,init_base=__esm({"../../../node_modules/.pnpm/diff@8.0.4/node_modules/diff/libesm/diff/base.js"(){Diff=class{diff(oldStr,newStr,options={}){let callback;typeof options=="function"?(callback=options,options={}):"callback"in options&&(callback=options.callback);let oldString=this.castInput(oldStr,options),newString=this.castInput(newStr,options),oldTokens=this.removeEmpty(this.tokenize(oldString,options)),newTokens=this.removeEmpty(this.tokenize(newString,options));return this.diffWithOptionsObj(oldTokens,newTokens,options,callback)}diffWithOptionsObj(oldTokens,newTokens,options,callback){var _a2;let done=value=>{if(value=this.postProcess(value,options),callback){setTimeout(function(){callback(value)},0);return}else return value},newLen=newTokens.length,oldLen=oldTokens.length,editLength=1,maxEditLength=newLen+oldLen;options.maxEditLength!=null&&(maxEditLength=Math.min(maxEditLength,options.maxEditLength));let maxExecutionTime=(_a2=options.timeout)!==null&&_a2!==void 0?_a2:1/0,abortAfterTimestamp=Date.now()+maxExecutionTime,bestPath=[{oldPos:-1,lastComponent:void 0}],newPos=this.extractCommon(bestPath[0],newTokens,oldTokens,0,options);if(bestPath[0].oldPos+1>=oldLen&&newPos+1>=newLen)return done(this.buildValues(bestPath[0].lastComponent,newTokens,oldTokens));let minDiagonalToConsider=-1/0,maxDiagonalToConsider=1/0,execEditLength=()=>{for(let diagonalPath=Math.max(minDiagonalToConsider,-editLength);diagonalPath<=Math.min(maxDiagonalToConsider,editLength);diagonalPath+=2){let basePath,removePath=bestPath[diagonalPath-1],addPath=bestPath[diagonalPath+1];removePath&&(bestPath[diagonalPath-1]=void 0);let canAdd=!1;if(addPath){let addPathNewPos=addPath.oldPos-diagonalPath;canAdd=addPath&&0<=addPathNewPos&&addPathNewPos<newLen}let canRemove=removePath&&removePath.oldPos+1<oldLen;if(!canAdd&&!canRemove){bestPath[diagonalPath]=void 0;continue}if(!canRemove||canAdd&&removePath.oldPos<addPath.oldPos?basePath=this.addToPath(addPath,!0,!1,0,options):basePath=this.addToPath(removePath,!1,!0,1,options),newPos=this.extractCommon(basePath,newTokens,oldTokens,diagonalPath,options),basePath.oldPos+1>=oldLen&&newPos+1>=newLen)return done(this.buildValues(basePath.lastComponent,newTokens,oldTokens))||!0;bestPath[diagonalPath]=basePath,basePath.oldPos+1>=oldLen&&(maxDiagonalToConsider=Math.min(maxDiagonalToConsider,diagonalPath-1)),newPos+1>=newLen&&(minDiagonalToConsider=Math.max(minDiagonalToConsider,diagonalPath+1))}editLength++};if(callback)(function exec(){setTimeout(function(){if(editLength>maxEditLength||Date.now()>abortAfterTimestamp)return callback(void 0);execEditLength()||exec()},0)})();else for(;editLength<=maxEditLength&&Date.now()<=abortAfterTimestamp;){let ret=execEditLength();if(ret)return ret}}addToPath(path,added,removed,oldPosInc,options){let last=path.lastComponent;return last&&!options.oneChangePerToken&&last.added===added&&last.removed===removed?{oldPos:path.oldPos+oldPosInc,lastComponent:{count:last.count+1,added,removed,previousComponent:last.previousComponent}}:{oldPos:path.oldPos+oldPosInc,lastComponent:{count:1,added,removed,previousComponent:last}}}extractCommon(basePath,newTokens,oldTokens,diagonalPath,options){let newLen=newTokens.length,oldLen=oldTokens.length,oldPos=basePath.oldPos,newPos=oldPos-diagonalPath,commonCount=0;for(;newPos+1<newLen&&oldPos+1<oldLen&&this.equals(oldTokens[oldPos+1],newTokens[newPos+1],options);)newPos++,oldPos++,commonCount++,options.oneChangePerToken&&(basePath.lastComponent={count:1,previousComponent:basePath.lastComponent,added:!1,removed:!1});return commonCount&&!options.oneChangePerToken&&(basePath.lastComponent={count:commonCount,previousComponent:basePath.lastComponent,added:!1,removed:!1}),basePath.oldPos=oldPos,newPos}equals(left,right,options){return options.comparator?options.comparator(left,right):left===right||!!options.ignoreCase&&left.toLowerCase()===right.toLowerCase()}removeEmpty(array){let ret=[];for(let i22=0;i22<array.length;i22++)array[i22]&&ret.push(array[i22]);return ret}castInput(value,options){return value}tokenize(value,options){return Array.from(value)}join(chars){return chars.join("")}postProcess(changeObjects,options){return changeObjects}get useLongestToken(){return!1}buildValues(lastComponent,newTokens,oldTokens){let components=[],nextComponent;for(;lastComponent;)components.push(lastComponent),nextComponent=lastComponent.previousComponent,delete lastComponent.previousComponent,lastComponent=nextComponent;components.reverse();let componentLen=components.length,componentPos=0,newPos=0,oldPos=0;for(;componentPos<componentLen;componentPos++){let component=components[componentPos];if(component.removed)component.value=this.join(oldTokens.slice(oldPos,oldPos+component.count)),oldPos+=component.count;else{if(!component.added&&this.useLongestToken){let value=newTokens.slice(newPos,newPos+component.count);value=value.map(function(value2,i22){let oldValue=oldTokens[oldPos+i22];return oldValue.length>value2.length?oldValue:value2}),component.value=this.join(value)}else component.value=this.join(newTokens.slice(newPos,newPos+component.count));newPos+=component.count,component.added||(oldPos+=component.count)}}return components}}}});function diffArrays(oldArr,newArr,options){return arrayDiff.diff(oldArr,newArr,options)}var ArrayDiff,arrayDiff,init_array=__esm({"../../../node_modules/.pnpm/diff@8.0.4/node_modules/diff/libesm/diff/array.js"(){init_base();ArrayDiff=class extends Diff{tokenize(value){return value.slice()}join(value){return value}removeEmpty(value){return value}},arrayDiff=new ArrayDiff}});var init_libesm=__esm({"../../../node_modules/.pnpm/diff@8.0.4/node_modules/diff/libesm/index.js"(){init_array()}});import{createRequire as createRequire141}from"node:module";function x18(o13){if(o13==="")return{lines:[],noEol:!1};let n10=!o13.endsWith(`
609
609
  `),t8=o13.split(`
610
610
  `);return n10||t8.pop(),{lines:t8,noEol:n10}}function N12(o13,n10){let t8=o13.lines.length-1;return o13.lines.map((e8,i22)=>{let s10=i22===t8&&o13.noEol?e8:`${e8}
611
611
  `;return n10?s10.toLowerCase():s10})}function D12(o13,n10,t8){let e8=diffArrays(N12(o13,t8),N12(n10,t8)),i22=[],s10=0,f15=0,l12=0;for(;l12<e8.length;){let r7=e8[l12];if(!r7.added&&!r7.removed){s10+=r7.count??r7.value.length,f15+=r7.count??r7.value.length,l12++;continue}let u15={oldStart:s10,oldCount:0,newStart:f15,newCount:0};for(;l12<e8.length&&(e8[l12].added||e8[l12].removed);){let a14=e8[l12].count??e8[l12].value.length;e8[l12].removed?(u15.oldCount+=a14,s10+=a14):(u15.newCount+=a14,f15+=a14),l12++}i22.push(u15)}return i22}function C10(o13){if(!/[\s"\u0000-\u001f\u007f]/.test(o13))return o13;let n10='"';for(let t8 of o13)t8==='"'||t8==="\\"?n10+=`\\${t8}`:t8===" "?n10+="\\t":t8===`
@@ -620,7 +620,7 @@ ${a14} director${a14===1?"y":"ies"}`,f15.directoriesOnly||(e8+=`, ${n10} file${n
620
620
  `];for(let l12 of j15(i22,s10)){let r7=q7(l12,t8,e8,s10);f15.push(`***************
621
621
  `),f15.push(`*** ${I14(r7.oldFrom,r7.oldTo)} ****
622
622
  `),A8(f15,t8,l12,r7.oldFrom,r7.oldTo,!0),f15.push(`--- ${I14(r7.newFrom,r7.newTo)} ----
623
- `),A8(f15,e8,l12,r7.newFrom,r7.newTo,!1)}return f15.join("")}var require142,z11,b20,P13,R13,G8,J7,init_chunk_B6OSJB22=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-B6OSJB22.js"(){init_chunk_GN6CQ3J4();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_libesm();require142=createRequire141(import.meta.url),z11=`\
623
+ `),A8(f15,e8,l12,r7.newFrom,r7.newTo,!1)}return f15.join("")}var require142,z11,b20,P13,R13,G8,J7,init_chunk_B6OSJB22=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-B6OSJB22.js"(){init_chunk_GN6CQ3J4();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_libesm();require142=createRequire141(import.meta.url),z11=`\
624
624
  `,b20=3;P13={name:"diff",summary:"compare files line by line",usage:"diff [OPTION]... FILE1 FILE2",options:[" --normal output a normal diff (default)","-u, --unified output a unified diff","-c, --context output a context diff","-q, --brief report only whether files differ","-s, --report-identical-files report when files are the same","-i, --ignore-case ignore case differences"," --version output version information and exit"," --help display this help and exit"]},R13={normal:{long:"normal",type:"boolean"},unified:{short:"u",long:"unified",type:"boolean"},context:{short:"c",long:"context",type:"boolean"},brief:{short:"q",long:"brief",type:"boolean"},reportSame:{short:"s",long:"report-identical-files",type:"boolean"},ignoreCase:{short:"i",long:"ignore-case",type:"boolean"},version:{long:"version",type:"boolean"}},G8={name:"diff",async execute(o13,n10){if(o5(o13))return s5(P13);let t8=x5("diff",o13,R13);if(!t8.ok)return t8.error;let e8=t8.result.flags;if(e8.version)return{stdout:`diff (just-bash)
625
625
  `,stderr:"",exitCode:0};if(Number(e8.normal)+Number(e8.unified)+Number(e8.context)>1)return{stdout:"",stderr:`diff: conflicting output style options
626
626
  diff: Try 'diff --help' for more information.
@@ -629,9 +629,9 @@ diff: Try 'diff --help' for more information.
629
629
  `,exitCode:2}}try{a14=c18==="-"?a2(n10.stdin):await n10.fs.readFile(n10.fs.resolvePath(n10.cwd,c18))}catch{return{stdout:"",stderr:`diff: ${c18}: No such file or directory
630
630
  `,exitCode:2}}let w15=u15,$22=a14;if(l12&&(w15=w15.toLowerCase(),$22=$22.toLowerCase()),w15===$22)return f15?{stdout:`Files ${d11} and ${c18} are identical
631
631
  `,stderr:"",exitCode:0}:{stdout:"",stderr:"",exitCode:0};if(s10)return{stdout:`Files ${d11} and ${c18} differ
632
- `,stderr:"",exitCode:1};let h18=x18(u15),g13=x18(a14),y14=D12(h18,g13,l12),m16;return e8.unified?m16=H15(d11,c18,h18,g13,y14,b20):e8.context?m16=M14(d11,c18,h18,g13,y14,b20):m16=U9(h18,g13,y14),{stdout:m16,stderr:"",exitCode:1}}},J7={name:"diff",flags:[{flag:"--normal",type:"boolean"},{flag:"-u",type:"boolean"},{flag:"-c",type:"boolean"},{flag:"-q",type:"boolean"},{flag:"-s",type:"boolean"},{flag:"-i",type:"boolean"}],needsArgs:!0,minArgs:2}}});var diff_VDB6RXHO_exports={};__export(diff_VDB6RXHO_exports,{diffCommand:()=>G8,flagsForFuzzing:()=>J7});import{createRequire as createRequire142}from"node:module";var require143,init_diff_VDB6RXHO=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/diff-VDB6RXHO.js"(){init_chunk_B6OSJB22();init_chunk_GN6CQ3J4();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require143=createRequire142(import.meta.url)}});import{createRequire as createRequire143}from"node:module";function N13(e8){try{return new Intl.DateTimeFormat(void 0,{timeZone:e8}),!0}catch{return!1}}function S11(e8,a14){let i22=new Intl.DateTimeFormat("en-US",{timeZone:a14,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).formatToParts(e8),t8=o13=>i22.find(l12=>l12.type===o13)?.value??"00",r7=Number.parseInt(t8("hour"),10)%24,s10=new Date(`${t8("year")}-${t8("month")}-${t8("day")}T${String(r7).padStart(2,"0")}:${t8("minute")}:${t8("second")}Z`);return Number.isNaN(s10.getTime())?null:s10}function I15(e8,a14){let i22=e8.match(/^(\d{4})-(\d{2})-(\d{2})(?:[T ](\d{2}):(\d{2})(?::(\d{2}))?)?$/);if(!i22)return null;let[,t8,r7,s10,o13="00",l12="00",c18="00"]=i22,p16=new Date(`${t8}-${r7}-${s10}T${o13}:${l12}:${c18}Z`);if(Number.isNaN(p16.getTime()))return null;try{let u15=p16;for(let d11=0;d11<3;d11++){let f15=S11(u15,a14);if(f15===null)return null;let m16=f15.getTime()-p16.getTime();if(m16===0)return u15;u15=new Date(u15.getTime()-m16)}return u15}catch{return null}}function b21(e8,a14){if(e8.startsWith("@")){let r7=e8.slice(1);if(!/^-?\d+$/.test(r7))return null;let s10=Number(r7);if(!Number.isSafeInteger(s10))return null;let o13=new Date(s10*1e3);return Number.isNaN(o13.getTime())?null:o13}let i22=e8.toLowerCase().trim();if(i22==="now"||i22==="today")return new Date;if(i22==="yesterday")return new Date(Date.now()-864e5);if(i22==="tomorrow")return new Date(Date.now()+864e5);if(a14&&!/Z$/i.test(e8)&&!/[+-]\d{2}:?\d{2}$/.test(e8)){let r7=I15(e8,a14);if(r7)return r7}let t8=new Date(e8);return Number.isNaN(t8.getTime())?null:t8}var require144,$18,x19,z12,init_chunk_5ATEFZLC=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-5ATEFZLC.js"(){init_chunk_UHHCL65P();init_chunk_QAYAQNCG();require144=createRequire143(import.meta.url),$18={name:"date",summary:"display the current time in the given FORMAT",usage:"date [OPTION]... [+FORMAT]",options:["-d, --date=STRING display time described by STRING, not 'now'","-u, --utc print Coordinated Universal Time (UTC)","-I, --iso-8601 output date/time in ISO 8601 format","-R, --rfc-email output RFC 5322 date format"," --help display this help and exit"]};x19={name:"date",async execute(e8,a14){if(o5(e8))return s5($18);let i22=!1,t8=null,r7=null,s10=!1,o13=!1;for(let m16=0;m16<e8.length;m16++){let n10=e8[m16];if(n10==="-u"||n10==="--utc")i22=!0;else if(n10==="-d"||n10==="--date")t8=e8[++m16]??"";else if(n10.startsWith("--date="))t8=n10.slice(7);else if(n10==="-I"||n10==="--iso-8601")s10=!0;else if(n10==="-R"||n10==="--rfc-email")o13=!0;else if(n10.startsWith("+"))r7=n10.slice(1);else{if(n10.startsWith("--"))return r5("date",n10);if(n10.startsWith("-"))for(let T19 of n10.slice(1))if(T19==="u")i22=!0;else if(T19==="I")s10=!0;else if(T19==="R")o13=!0;else return r5("date",`-${T19}`)}}let l12=a14.env.get("TZ");l12&&!N13(l12)&&(l12=void 0);let c18=i22?"UTC":l12??"UTC",p16=t8!==null?b21(t8,l12):new Date;if(!p16)return{stdout:"",stderr:`date: invalid date '${t8}'
632
+ `,stderr:"",exitCode:1};let h18=x18(u15),g13=x18(a14),y14=D12(h18,g13,l12),m16;return e8.unified?m16=H15(d11,c18,h18,g13,y14,b20):e8.context?m16=M14(d11,c18,h18,g13,y14,b20):m16=U9(h18,g13,y14),{stdout:m16,stderr:"",exitCode:1}}},J7={name:"diff",flags:[{flag:"--normal",type:"boolean"},{flag:"-u",type:"boolean"},{flag:"-c",type:"boolean"},{flag:"-q",type:"boolean"},{flag:"-s",type:"boolean"},{flag:"-i",type:"boolean"}],needsArgs:!0,minArgs:2}}});var diff_VDB6RXHO_exports={};__export(diff_VDB6RXHO_exports,{diffCommand:()=>G8,flagsForFuzzing:()=>J7});import{createRequire as createRequire142}from"node:module";var require143,init_diff_VDB6RXHO=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/diff-VDB6RXHO.js"(){init_chunk_B6OSJB22();init_chunk_GN6CQ3J4();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require143=createRequire142(import.meta.url)}});import{createRequire as createRequire143}from"node:module";function N13(e8){try{return new Intl.DateTimeFormat(void 0,{timeZone:e8}),!0}catch{return!1}}function S11(e8,a14){let i22=new Intl.DateTimeFormat("en-US",{timeZone:a14,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).formatToParts(e8),t8=o13=>i22.find(l12=>l12.type===o13)?.value??"00",r7=Number.parseInt(t8("hour"),10)%24,s10=new Date(`${t8("year")}-${t8("month")}-${t8("day")}T${String(r7).padStart(2,"0")}:${t8("minute")}:${t8("second")}Z`);return Number.isNaN(s10.getTime())?null:s10}function I15(e8,a14){let i22=e8.match(/^(\d{4})-(\d{2})-(\d{2})(?:[T ](\d{2}):(\d{2})(?::(\d{2}))?)?$/);if(!i22)return null;let[,t8,r7,s10,o13="00",l12="00",c18="00"]=i22,p16=new Date(`${t8}-${r7}-${s10}T${o13}:${l12}:${c18}Z`);if(Number.isNaN(p16.getTime()))return null;try{let u15=p16;for(let d11=0;d11<3;d11++){let f15=S11(u15,a14);if(f15===null)return null;let m16=f15.getTime()-p16.getTime();if(m16===0)return u15;u15=new Date(u15.getTime()-m16)}return u15}catch{return null}}function b21(e8,a14){if(e8.startsWith("@")){let r7=e8.slice(1);if(!/^-?\d+$/.test(r7))return null;let s10=Number(r7);if(!Number.isSafeInteger(s10))return null;let o13=new Date(s10*1e3);return Number.isNaN(o13.getTime())?null:o13}let i22=e8.toLowerCase().trim();if(i22==="now"||i22==="today")return new Date;if(i22==="yesterday")return new Date(Date.now()-864e5);if(i22==="tomorrow")return new Date(Date.now()+864e5);if(a14&&!/Z$/i.test(e8)&&!/[+-]\d{2}:?\d{2}$/.test(e8)){let r7=I15(e8,a14);if(r7)return r7}let t8=new Date(e8);return Number.isNaN(t8.getTime())?null:t8}var require144,$18,x19,z12,init_chunk_5ATEFZLC=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-5ATEFZLC.js"(){init_chunk_UHHCL65P();init_chunk_QAYAQNCG();require144=createRequire143(import.meta.url),$18={name:"date",summary:"display the current time in the given FORMAT",usage:"date [OPTION]... [+FORMAT]",options:["-d, --date=STRING display time described by STRING, not 'now'","-u, --utc print Coordinated Universal Time (UTC)","-I, --iso-8601 output date/time in ISO 8601 format","-R, --rfc-email output RFC 5322 date format"," --help display this help and exit"]};x19={name:"date",async execute(e8,a14){if(o5(e8))return s5($18);let i22=!1,t8=null,r7=null,s10=!1,o13=!1;for(let m16=0;m16<e8.length;m16++){let n10=e8[m16];if(n10==="-u"||n10==="--utc")i22=!0;else if(n10==="-d"||n10==="--date")t8=e8[++m16]??"";else if(n10.startsWith("--date="))t8=n10.slice(7);else if(n10==="-I"||n10==="--iso-8601")s10=!0;else if(n10==="-R"||n10==="--rfc-email")o13=!0;else if(n10.startsWith("+"))r7=n10.slice(1);else{if(n10.startsWith("--"))return r5("date",n10);if(n10.startsWith("-"))for(let T19 of n10.slice(1))if(T19==="u")i22=!0;else if(T19==="I")s10=!0;else if(T19==="R")o13=!0;else return r5("date",`-${T19}`)}}let l12=a14.env.get("TZ");l12&&!N13(l12)&&(l12=void 0);let c18=i22?"UTC":l12??"UTC",p16=t8!==null?b21(t8,l12):new Date;if(!p16)return{stdout:"",stderr:`date: invalid date '${t8}'
633
633
  `,exitCode:1};let u15=Math.floor(p16.getTime()/1e3),d11,f15={maxOperations:a14.limits.maxLoopIterations,maxOutputBytes:Math.min(a14.limits.maxStringLength,a14.limits.maxOutputSize)-1};return r7?d11=O2(r7,u15,c18,f15):s10?d11=O2("%Y-%m-%dT%H:%M:%S%z",u15,c18,f15):o13?d11=O2("%a, %d %b %Y %H:%M:%S %z",u15,c18,f15):d11=O2("%a %b %e %H:%M:%S %Z %Y",u15,c18,f15),{stdout:`${d11}
634
- `,stderr:"",exitCode:0}}},z12={name:"date",flags:[{flag:"-d",type:"value",valueHint:"string"},{flag:"-u",type:"boolean"},{flag:"-I",type:"boolean"},{flag:"-R",type:"boolean"}]}}});var date_FN2DXAEE_exports={};__export(date_FN2DXAEE_exports,{dateCommand:()=>x19,flagsForFuzzing:()=>z12});import{createRequire as createRequire144}from"node:module";var require145,init_date_FN2DXAEE=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/date-FN2DXAEE.js"(){init_chunk_5ATEFZLC();init_chunk_UHHCL65P();init_chunk_6D3WD6YU();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require145=createRequire144(import.meta.url)}});import{createRequire as createRequire145}from"node:module";function n8(e8){let r7=e8.match(/^(\d+\.?\d*)(s|m|h|d)?$/);if(!r7)return null;let t8=parseFloat(r7[1]);switch(r7[2]||"s"){case"s":return t8*1e3;case"m":return t8*60*1e3;case"h":return t8*60*60*1e3;case"d":return t8*24*60*60*1e3;default:return null}}var require146,init_chunk_SX2HC7SO=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-SX2HC7SO.js"(){require146=createRequire145(import.meta.url)}});import{createRequire as createRequire146}from"node:module";var require147,f13,u13,y13,E16,init_chunk_4GEHRJMD=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-4GEHRJMD.js"(){init_chunk_SX2HC7SO();init_chunk_43OP7DFL();init_chunk_QAYAQNCG();require147=createRequire146(import.meta.url),f13={name:"sleep",summary:"delay for a specified amount of time",usage:"sleep NUMBER[SUFFIX]",description:`Pause for NUMBER seconds. SUFFIX may be:
634
+ `,stderr:"",exitCode:0}}},z12={name:"date",flags:[{flag:"-d",type:"value",valueHint:"string"},{flag:"-u",type:"boolean"},{flag:"-I",type:"boolean"},{flag:"-R",type:"boolean"}]}}});var date_FN2DXAEE_exports={};__export(date_FN2DXAEE_exports,{dateCommand:()=>x19,flagsForFuzzing:()=>z12});import{createRequire as createRequire144}from"node:module";var require145,init_date_FN2DXAEE=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/date-FN2DXAEE.js"(){init_chunk_5ATEFZLC();init_chunk_UHHCL65P();init_chunk_6D3WD6YU();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require145=createRequire144(import.meta.url)}});import{createRequire as createRequire145}from"node:module";function n8(e8){let r7=e8.match(/^(\d+\.?\d*)(s|m|h|d)?$/);if(!r7)return null;let t8=parseFloat(r7[1]);switch(r7[2]||"s"){case"s":return t8*1e3;case"m":return t8*60*1e3;case"h":return t8*60*60*1e3;case"d":return t8*24*60*60*1e3;default:return null}}var require146,init_chunk_SX2HC7SO=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-SX2HC7SO.js"(){require146=createRequire145(import.meta.url)}});import{createRequire as createRequire146}from"node:module";var require147,f13,u13,y13,E16,init_chunk_4GEHRJMD=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-4GEHRJMD.js"(){init_chunk_SX2HC7SO();init_chunk_43OP7DFL();init_chunk_QAYAQNCG();require147=createRequire146(import.meta.url),f13={name:"sleep",summary:"delay for a specified amount of time",usage:"sleep NUMBER[SUFFIX]",description:`Pause for NUMBER seconds. SUFFIX may be:
635
635
  s - seconds (default)
636
636
  m - minutes
637
637
  h - hours
@@ -639,7 +639,7 @@ diff: Try 'diff --help' for more information.
639
639
 
640
640
  NUMBER may be a decimal number.`,options:[" --help display this help and exit"]},u13=36e5,y13={name:"sleep",async execute(r7,e8){if(o5(r7))return s5(f13);if(r7.length===0)return{stdout:"",stderr:`sleep: missing operand
641
641
  `,exitCode:1};let o13=0;for(let s10 of r7){let t8=n8(s10);if(t8===null)return{stdout:"",stderr:`sleep: invalid time interval '${s10}'
642
- `,exitCode:1};o13+=t8}if(o13>u13&&(o13=u13),e8.signal?.aborted)return{stdout:"",stderr:"",exitCode:0};if(e8.sleep){let s10=Promise.resolve(e8.sleep(o13));if(e8.signal){let t8,i22=new Promise(a14=>{t8=a14,e8.signal?.addEventListener("abort",t8,{once:!0}),e8.signal?.aborted&&a14()});try{await Promise.race([s10,i22])}finally{t8&&e8.signal.removeEventListener("abort",t8)}}else await s10}else e8.signal?await new Promise(s10=>{let t8=()=>{d4(i22),s10()},i22=b4(()=>{e8.signal?.removeEventListener("abort",t8),s10()},o13);e8.signal?.addEventListener("abort",t8,{once:!0})}):await new Promise(s10=>b4(s10,o13));return{stdout:"",stderr:"",exitCode:0}}},E16={name:"sleep",flags:[],needsArgs:!0}}});var sleep_3QNP3BGR_exports={};__export(sleep_3QNP3BGR_exports,{flagsForFuzzing:()=>E16,sleepCommand:()=>y13});import{createRequire as createRequire147}from"node:module";var require148,init_sleep_3QNP3BGR=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/sleep-3QNP3BGR.js"(){init_chunk_4GEHRJMD();init_chunk_SX2HC7SO();init_chunk_43OP7DFL();init_chunk_CBM6J4AL();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require148=createRequire147(import.meta.url)}});import{createRequire as createRequire148}from"node:module";var require149,x20,R14,L15,init_chunk_3KWM4FFA=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-3KWM4FFA.js"(){init_chunk_SX2HC7SO();init_chunk_SRB6FXRH();init_chunk_43OP7DFL();init_chunk_L2UW7DWF();init_chunk_QAYAQNCG();require149=createRequire148(import.meta.url),x20={name:"timeout",summary:"run a command with a time limit",usage:"timeout [OPTION] DURATION COMMAND [ARG]...",description:`Start COMMAND, and kill it if still running after DURATION.
642
+ `,exitCode:1};o13+=t8}if(o13>u13&&(o13=u13),e8.signal?.aborted)return{stdout:"",stderr:"",exitCode:0};if(e8.sleep){let s10=Promise.resolve(e8.sleep(o13));if(e8.signal){let t8,i22=new Promise(a14=>{t8=a14,e8.signal?.addEventListener("abort",t8,{once:!0}),e8.signal?.aborted&&a14()});try{await Promise.race([s10,i22])}finally{t8&&e8.signal.removeEventListener("abort",t8)}}else await s10}else e8.signal?await new Promise(s10=>{let t8=()=>{d4(i22),s10()},i22=b4(()=>{e8.signal?.removeEventListener("abort",t8),s10()},o13);e8.signal?.addEventListener("abort",t8,{once:!0})}):await new Promise(s10=>b4(s10,o13));return{stdout:"",stderr:"",exitCode:0}}},E16={name:"sleep",flags:[],needsArgs:!0}}});var sleep_3QNP3BGR_exports={};__export(sleep_3QNP3BGR_exports,{flagsForFuzzing:()=>E16,sleepCommand:()=>y13});import{createRequire as createRequire147}from"node:module";var require148,init_sleep_3QNP3BGR=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/sleep-3QNP3BGR.js"(){init_chunk_4GEHRJMD();init_chunk_SX2HC7SO();init_chunk_43OP7DFL();init_chunk_CBM6J4AL();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require148=createRequire147(import.meta.url)}});import{createRequire as createRequire148}from"node:module";var require149,x20,R14,L15,init_chunk_3KWM4FFA=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-3KWM4FFA.js"(){init_chunk_SX2HC7SO();init_chunk_SRB6FXRH();init_chunk_43OP7DFL();init_chunk_L2UW7DWF();init_chunk_QAYAQNCG();require149=createRequire148(import.meta.url),x20={name:"timeout",summary:"run a command with a time limit",usage:"timeout [OPTION] DURATION COMMAND [ARG]...",description:`Start COMMAND, and kill it if still running after DURATION.
643
643
 
644
644
  DURATION is a number with optional suffix:
645
645
  s - seconds (default)
@@ -649,7 +649,7 @@ DURATION is a number with optional suffix:
649
649
  `,exitCode:1};let f15=a14[0],g13=n8(f15);if(g13===null)return{stdout:"",stderr:`timeout: invalid time interval '${f15}'
650
650
  `,exitCode:1};let l12=a14.slice(1);if(l12.length===0)return{stdout:"",stderr:`timeout: missing operand
651
651
  `,exitCode:1};if(!s10.exec)return{stdout:"",stderr:`timeout: exec not available
652
- `,exitCode:1};let c18=new AbortController,r7=l4(s10.signal,c18.signal),u15,o13;try{let e8=new Promise(m16=>{o13=()=>m16({timedOut:!0}),r7.signal?.addEventListener("abort",o13,{once:!0}),u15=b4(()=>{c18.abort()},g13)}),t8=s10.exec(r2([l12[0]]),{cwd:s10.cwd,signal:r7.signal,stdin:s10.stdin,stdinKind:"bytes",args:l12.slice(1)}).then(m16=>({timedOut:!1,result:m16})),p16=await Promise.race([e8,t8]);return p16.timedOut?(await t8.catch(()=>{}),{stdout:"",stderr:"",exitCode:124}):p16.result}finally{u15!==void 0&&d4(u15),o13&&r7.signal?.removeEventListener("abort",o13),r7.cleanup()}}},L15={name:"timeout",flags:[{flag:"-k",type:"value",valueHint:"string"},{flag:"-s",type:"value",valueHint:"string"},{flag:"--preserve-status",type:"boolean"},{flag:"--foreground",type:"boolean"}],needsArgs:!0,minArgs:2}}});var timeout_ZHCL5KTP_exports={};__export(timeout_ZHCL5KTP_exports,{flagsForFuzzing:()=>L15,timeoutCommand:()=>R14});import{createRequire as createRequire149}from"node:module";var require150,init_timeout_ZHCL5KTP=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/timeout-ZHCL5KTP.js"(){init_chunk_3KWM4FFA();init_chunk_SX2HC7SO();init_chunk_SRB6FXRH();init_chunk_43OP7DFL();init_chunk_L2UW7DWF();init_chunk_CBM6J4AL();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require150=createRequire149(import.meta.url)}});import{createRequire as createRequire150}from"node:module";function F18(r7){let s10=Math.floor(r7/3600),a14=Math.floor(r7%3600/60),o13=r7%60;return s10>0?`${s10}:${a14.toString().padStart(2,"0")}:${o13.toFixed(2).padStart(5,"0")}`:`${a14}:${o13.toFixed(2).padStart(5,"0")}`}var require151,T15,k13,init_chunk_VWUMR4IC=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-VWUMR4IC.js"(){init_chunk_XZ34OGNM();init_chunk_L2UW7DWF();init_chunk_DLL7UR66();init_chunk_FOCWZZDE();require151=createRequire150(import.meta.url),T15={name:"time",async execute(r7,s10){let a14="%e %M",o13=null,u15=!1,c18=!1,t8=0;for(;t8<r7.length;){let e8=r7[t8];if(e8==="-f"||e8==="--format"){if(t8++,t8>=r7.length)return{stdout:"",stderr:`time: missing argument to '-f'
652
+ `,exitCode:1};let c18=new AbortController,r7=l4(s10.signal,c18.signal),u15,o13;try{let e8=new Promise(m16=>{o13=()=>m16({timedOut:!0}),r7.signal?.addEventListener("abort",o13,{once:!0}),u15=b4(()=>{c18.abort()},g13)}),t8=s10.exec(r2([l12[0]]),{cwd:s10.cwd,signal:r7.signal,stdin:s10.stdin,stdinKind:"bytes",args:l12.slice(1)}).then(m16=>({timedOut:!1,result:m16})),p16=await Promise.race([e8,t8]);return p16.timedOut?(await t8.catch(()=>{}),{stdout:"",stderr:"",exitCode:124}):p16.result}finally{u15!==void 0&&d4(u15),o13&&r7.signal?.removeEventListener("abort",o13),r7.cleanup()}}},L15={name:"timeout",flags:[{flag:"-k",type:"value",valueHint:"string"},{flag:"-s",type:"value",valueHint:"string"},{flag:"--preserve-status",type:"boolean"},{flag:"--foreground",type:"boolean"}],needsArgs:!0,minArgs:2}}});var timeout_ZHCL5KTP_exports={};__export(timeout_ZHCL5KTP_exports,{flagsForFuzzing:()=>L15,timeoutCommand:()=>R14});import{createRequire as createRequire149}from"node:module";var require150,init_timeout_ZHCL5KTP=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/timeout-ZHCL5KTP.js"(){init_chunk_3KWM4FFA();init_chunk_SX2HC7SO();init_chunk_SRB6FXRH();init_chunk_43OP7DFL();init_chunk_L2UW7DWF();init_chunk_CBM6J4AL();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require150=createRequire149(import.meta.url)}});import{createRequire as createRequire150}from"node:module";function F18(r7){let s10=Math.floor(r7/3600),a14=Math.floor(r7%3600/60),o13=r7%60;return s10>0?`${s10}:${a14.toString().padStart(2,"0")}:${o13.toFixed(2).padStart(5,"0")}`:`${a14}:${o13.toFixed(2).padStart(5,"0")}`}var require151,T15,k13,init_chunk_VWUMR4IC=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-VWUMR4IC.js"(){init_chunk_XZ34OGNM();init_chunk_L2UW7DWF();init_chunk_DLL7UR66();init_chunk_FOCWZZDE();require151=createRequire150(import.meta.url),T15={name:"time",async execute(r7,s10){let a14="%e %M",o13=null,u15=!1,c18=!1,t8=0;for(;t8<r7.length;){let e8=r7[t8];if(e8==="-f"||e8==="--format"){if(t8++,t8>=r7.length)return{stdout:"",stderr:`time: missing argument to '-f'
653
653
  `,exitCode:1};a14=r7[t8],t8++}else if(e8==="-o"||e8==="--output"){if(t8++,t8>=r7.length)return{stdout:"",stderr:`time: missing argument to '-o'
654
654
  `,exitCode:1};o13=r7[t8],t8++}else if(e8==="-a"||e8==="--append")u15=!0,t8++;else if(e8==="-v"||e8==="--verbose")a14=`Command being timed: %C
655
655
  Elapsed (wall clock) time: %e seconds
@@ -661,24 +661,24 @@ sys 0.00
661
661
  `:(n10=a14.replace(/%e/g,m16.toFixed(2)).replace(/%E/g,F18(m16)).replace(/%M/g,"0").replace(/%S/g,"0.00").replace(/%U/g,"0.00").replace(/%P/g,"0%").replace(/%C/g,C18),n10.endsWith(`
662
662
  `)||(n10+=`
663
663
  `)),o13)try{let e8=s10.fs.resolvePath(s10.cwd,o13);if(u15&&await s10.fs.exists(e8)){let d11=await s10.fs.readFile(e8);await s10.fs.writeFile(e8,d11+n10)}else await s10.fs.writeFile(e8,n10)}catch(e8){let d11=n5(e8.message);return{stdout:i22.stdout,stderr:i22.stderr+`time: cannot write to '${o13}': ${d11}
664
- `,exitCode:i22.exitCode}}else i22={...i22,stderr:i22.stderr+n10};return i22}};k13={name:"time",flags:[{flag:"-p",type:"boolean"}],needsArgs:!0}}});var time_N6J6DC6C_exports={};__export(time_N6J6DC6C_exports,{flagsForFuzzing:()=>k13,timeCommand:()=>T15});import{createRequire as createRequire151}from"node:module";var require152,init_time_N6J6DC6C=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/time-N6J6DC6C.js"(){init_chunk_VWUMR4IC();init_chunk_XZ34OGNM();init_chunk_L2UW7DWF();init_chunk_DLL7UR66();init_chunk_GN6CQ3J4();init_chunk_FOCWZZDE();init_chunk_NCUTH6QL();require152=createRequire151(import.meta.url)}});import{createRequire as createRequire152}from"node:module";var require153,k14,A9,init_chunk_RIIUVFUS=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-RIIUVFUS.js"(){init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();require153=createRequire152(import.meta.url),k14={name:"seq",async execute(r7,p16){let m16=`
664
+ `,exitCode:i22.exitCode}}else i22={...i22,stderr:i22.stderr+n10};return i22}};k13={name:"time",flags:[{flag:"-p",type:"boolean"}],needsArgs:!0}}});var time_N6J6DC6C_exports={};__export(time_N6J6DC6C_exports,{flagsForFuzzing:()=>k13,timeCommand:()=>T15});import{createRequire as createRequire151}from"node:module";var require152,init_time_N6J6DC6C=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/time-N6J6DC6C.js"(){init_chunk_VWUMR4IC();init_chunk_XZ34OGNM();init_chunk_L2UW7DWF();init_chunk_DLL7UR66();init_chunk_GN6CQ3J4();init_chunk_FOCWZZDE();init_chunk_NCUTH6QL();require152=createRequire151(import.meta.url)}});import{createRequire as createRequire152}from"node:module";var require153,k14,A9,init_chunk_RIIUVFUS=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-RIIUVFUS.js"(){init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();require153=createRequire152(import.meta.url),k14={name:"seq",async execute(r7,p16){let m16=`
665
665
  `,x23=!1,i22=[],e8=0;for(;e8<r7.length;){let t8=r7[e8];if(t8==="-s"&&e8+1<r7.length){m16=r7[e8+1],e8+=2;continue}if(t8==="-w"){x23=!0,e8++;continue}if(t8==="--"){e8++;break}if(t8.startsWith("-")&&t8!=="-"){if(t8.startsWith("-s")&&t8.length>2){m16=t8.slice(2),e8++;continue}if((t8==="-ws"||t8==="-sw")&&(x23=!0,e8+1<r7.length)){m16=r7[e8+1],e8+=2;continue}}i22.push(t8),e8++}for(;e8<r7.length;)i22.push(r7[e8]),e8++;if(i22.length===0)return{stdout:"",stderr:`seq: missing operand
666
666
  `,exitCode:1};let d11=1,a14=1,l12;if(i22.length===1?l12=parseFloat(i22[0]):i22.length===2?(d11=parseFloat(i22[0]),l12=parseFloat(i22[1])):(d11=parseFloat(i22[0]),a14=parseFloat(i22[1]),l12=parseFloat(i22[2])),!Number.isFinite(d11)||!Number.isFinite(a14)||!Number.isFinite(l12))return{stdout:"",stderr:`seq: invalid floating point argument: '${i22.find(o13=>!Number.isFinite(parseFloat(o13)))}'
667
667
  `,exitCode:1};if(a14===0)return{stdout:"",stderr:`seq: invalid Zero increment value: '0'
668
668
  `,exitCode:1};let s10=[],q11=t8=>{let o13=String(t8),F24=o13.indexOf(".");return F24===-1?0:o13.length-F24-1},h18=Math.max(q11(d11),q11(a14),q11(l12)),w15=Math.min(p16.limits.maxLoopIterations,p16.limits.maxArrayElements),c18=Math.min(p16.limits.maxOutputSize,p16.limits.maxStringLength),z16=x(m16),b23=0,v13=0,M20=t8=>{if(v13>=w15)throw new f2(`seq: iteration limit exceeded (${w15})`,"iterations");let o13=f4(f4(b23,s10.length>0?z16:0,"seq"),f4(x(t8),1,"seq"),"seq");if(o13>c18)throw new f2(`seq: output size limit exceeded (${c18} bytes)`,"output_size");b23=o13-1,s10.push(t8),v13++};if(a14>0)for(let t8=d11;t8<=l12+1e-10;t8+=a14)M20(h18>0?t8.toFixed(h18):String(Math.round(t8)));else for(let t8=d11;t8>=l12-1e-10;t8+=a14)M20(h18>0?t8.toFixed(h18):String(Math.round(t8)));if(x23&&s10.length>0){let t8=0;for(let n10 of s10)t8=Math.max(t8,n10.startsWith("-")?n10.length-1:n10.length);let o13=s10.reduce((n10,f15)=>f4(n10,t8+(f15.startsWith("-")?1:0),"seq"),0);if(f4(f4(o13,p3(z16,Math.max(0,s10.length-1),"seq"),"seq"),1,"seq")>c18)throw new f2(`seq: output size limit exceeded (${c18} bytes)`,"output_size");for(let n10=0;n10<s10.length;n10++){let f15=s10[n10].startsWith("-"),B17=(f15?s10[n10].slice(1):s10[n10]).padStart(t8,"0");s10[n10]=f15?`-${B17}`:B17}}let S15=b5(s10,m16,c18-1,"seq");return{stdout:S15?`${S15}
669
- `:"",stderr:"",exitCode:0}}},A9={name:"seq",flags:[{flag:"-s",type:"value",valueHint:"string"},{flag:"-w",type:"boolean"}],needsArgs:!0}}});var seq_IN77HD3S_exports={};__export(seq_IN77HD3S_exports,{flagsForFuzzing:()=>A9,seqCommand:()=>k14});import{createRequire as createRequire153}from"node:module";var require154,init_seq_IN77HD3S=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/seq-IN77HD3S.js"(){init_chunk_RIIUVFUS();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_NCUTH6QL();require154=createRequire153(import.meta.url)}});import{createRequire as createRequire154}from"node:module";function S12(i22,a14){if(i22.length===1)return i22[0];let t8=0;function f15(){let e8=h18();for(;t8<i22.length&&i22[t8]==="|";){t8++;let r7=h18();if(e8!=="0"&&e8!=="")return e8;e8=r7}return e8}function h18(){let e8=g13();for(;t8<i22.length&&i22[t8]==="&";){t8++;let r7=g13();(e8==="0"||e8===""||r7==="0"||r7==="")&&(e8="0")}return e8}function g13(){let e8=p16();for(;t8<i22.length;){let r7=i22[t8];if(["=","!=","<",">","<=",">="].includes(r7)){t8++;let s10=p16(),o13=parseInt(e8,10),n10=parseInt(s10,10),l12=!Number.isNaN(o13)&&!Number.isNaN(n10),c18;r7==="="?c18=l12?o13===n10:e8===s10:r7==="!="?c18=l12?o13!==n10:e8!==s10:r7==="<"?c18=l12?o13<n10:e8<s10:r7===">"?c18=l12?o13>n10:e8>s10:r7==="<="?c18=l12?o13<=n10:e8<=s10:c18=l12?o13>=n10:e8>=s10,e8=c18?"1":"0"}else break}return e8}function p16(){let e8=N16();for(;t8<i22.length;){let r7=i22[t8];if(r7==="+"||r7==="-"){t8++;let s10=N16(),o13=parseInt(e8,10),n10=parseInt(s10,10);if(Number.isNaN(o13)||Number.isNaN(n10))throw new Error("non-integer argument");e8=String(r7==="+"?o13+n10:o13-n10)}else break}return e8}function N16(){let e8=d11();for(;t8<i22.length;){let r7=i22[t8];if(r7==="*"||r7==="/"||r7==="%"){t8++;let s10=d11(),o13=parseInt(e8,10),n10=parseInt(s10,10);if(Number.isNaN(o13)||Number.isNaN(n10))throw new Error("non-integer argument");if((r7==="/"||r7==="%")&&n10===0)throw new Error("division by zero");r7==="*"?e8=String(o13*n10):r7==="/"?e8=String(Math.trunc(o13/n10)):e8=String(o13%n10)}else break}return e8}function d11(){let e8=u15();for(;t8<i22.length&&i22[t8]===":";){t8++;let r7=u15(),o13=G1(`^${r7}`).match(e8);o13?e8=o13[1]!==void 0?o13[1]:String(o13[0].length):e8="0"}return e8}function u15(){if(t8>=i22.length)throw new Error("syntax error");let e8=i22[t8];if(e8==="match"){t8++;let r7=u15(),s10=u15(),n10=G1(s10).match(r7);return n10?n10[1]!==void 0?n10[1]:String(n10[0].length):"0"}if(e8==="substr"){t8++;let r7=u15(),s10=parseInt(u15(),10),o13=parseInt(u15(),10);if(Number.isNaN(s10)||Number.isNaN(o13))throw new Error("non-integer argument");return r7.substring(s10-1,s10-1+o13)}if(e8==="index"){t8++;let r7=u15(),s10=u15();a14(s10.length+r7.length);let o13=new Set;for(let n10=0;n10<s10.length;n10++)o13.add(s10[n10]);for(let n10=0;n10<r7.length;n10++)if(o13.has(r7[n10]))return String(n10+1);return"0"}if(e8==="length"){t8++;let r7=u15();return String(r7.length)}if(e8==="("){t8++;let r7=f15();if(t8>=i22.length||i22[t8]!==")")throw new Error("syntax error");return t8++,r7}return t8++,e8}let b23=f15();if(t8!==i22.length)throw new Error("syntax error");return b23}var require155,k15,C11,init_chunk_TUQG2YRH=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-TUQG2YRH.js"(){init_chunk_7GA3QWJJ();init_chunk_U7UNEMLJ();init_chunk_FOCWZZDE();require155=createRequire154(import.meta.url),k15={name:"expr",async execute(i22,a14){if(i22.length===0)return{stdout:"",stderr:`expr: missing operand
669
+ `:"",stderr:"",exitCode:0}}},A9={name:"seq",flags:[{flag:"-s",type:"value",valueHint:"string"},{flag:"-w",type:"boolean"}],needsArgs:!0}}});var seq_IN77HD3S_exports={};__export(seq_IN77HD3S_exports,{flagsForFuzzing:()=>A9,seqCommand:()=>k14});import{createRequire as createRequire153}from"node:module";var require154,init_seq_IN77HD3S=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/seq-IN77HD3S.js"(){init_chunk_RIIUVFUS();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_NCUTH6QL();require154=createRequire153(import.meta.url)}});import{createRequire as createRequire154}from"node:module";function S12(i22,a14){if(i22.length===1)return i22[0];let t8=0;function f15(){let e8=h18();for(;t8<i22.length&&i22[t8]==="|";){t8++;let r7=h18();if(e8!=="0"&&e8!=="")return e8;e8=r7}return e8}function h18(){let e8=g13();for(;t8<i22.length&&i22[t8]==="&";){t8++;let r7=g13();(e8==="0"||e8===""||r7==="0"||r7==="")&&(e8="0")}return e8}function g13(){let e8=p16();for(;t8<i22.length;){let r7=i22[t8];if(["=","!=","<",">","<=",">="].includes(r7)){t8++;let s10=p16(),o13=parseInt(e8,10),n10=parseInt(s10,10),l12=!Number.isNaN(o13)&&!Number.isNaN(n10),c18;r7==="="?c18=l12?o13===n10:e8===s10:r7==="!="?c18=l12?o13!==n10:e8!==s10:r7==="<"?c18=l12?o13<n10:e8<s10:r7===">"?c18=l12?o13>n10:e8>s10:r7==="<="?c18=l12?o13<=n10:e8<=s10:c18=l12?o13>=n10:e8>=s10,e8=c18?"1":"0"}else break}return e8}function p16(){let e8=N16();for(;t8<i22.length;){let r7=i22[t8];if(r7==="+"||r7==="-"){t8++;let s10=N16(),o13=parseInt(e8,10),n10=parseInt(s10,10);if(Number.isNaN(o13)||Number.isNaN(n10))throw new Error("non-integer argument");e8=String(r7==="+"?o13+n10:o13-n10)}else break}return e8}function N16(){let e8=d11();for(;t8<i22.length;){let r7=i22[t8];if(r7==="*"||r7==="/"||r7==="%"){t8++;let s10=d11(),o13=parseInt(e8,10),n10=parseInt(s10,10);if(Number.isNaN(o13)||Number.isNaN(n10))throw new Error("non-integer argument");if((r7==="/"||r7==="%")&&n10===0)throw new Error("division by zero");r7==="*"?e8=String(o13*n10):r7==="/"?e8=String(Math.trunc(o13/n10)):e8=String(o13%n10)}else break}return e8}function d11(){let e8=u15();for(;t8<i22.length&&i22[t8]===":";){t8++;let r7=u15(),o13=G1(`^${r7}`).match(e8);o13?e8=o13[1]!==void 0?o13[1]:String(o13[0].length):e8="0"}return e8}function u15(){if(t8>=i22.length)throw new Error("syntax error");let e8=i22[t8];if(e8==="match"){t8++;let r7=u15(),s10=u15(),n10=G1(s10).match(r7);return n10?n10[1]!==void 0?n10[1]:String(n10[0].length):"0"}if(e8==="substr"){t8++;let r7=u15(),s10=parseInt(u15(),10),o13=parseInt(u15(),10);if(Number.isNaN(s10)||Number.isNaN(o13))throw new Error("non-integer argument");return r7.substring(s10-1,s10-1+o13)}if(e8==="index"){t8++;let r7=u15(),s10=u15();a14(s10.length+r7.length);let o13=new Set;for(let n10=0;n10<s10.length;n10++)o13.add(s10[n10]);for(let n10=0;n10<r7.length;n10++)if(o13.has(r7[n10]))return String(n10+1);return"0"}if(e8==="length"){t8++;let r7=u15();return String(r7.length)}if(e8==="("){t8++;let r7=f15();if(t8>=i22.length||i22[t8]!==")")throw new Error("syntax error");return t8++,r7}return t8++,e8}let b23=f15();if(t8!==i22.length)throw new Error("syntax error");return b23}var require155,k15,C11,init_chunk_TUQG2YRH=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-TUQG2YRH.js"(){init_chunk_7GA3QWJJ();init_chunk_U7UNEMLJ();init_chunk_FOCWZZDE();require155=createRequire154(import.meta.url),k15={name:"expr",async execute(i22,a14){if(i22.length===0)return{stdout:"",stderr:`expr: missing operand
670
670
  `,exitCode:2};try{let t8=S12(i22,h18=>a14.executionScope?.consumeWork(h18,"expr index")),f15=t8==="0"||t8===""?1:0;return{stdout:`${t8}
671
671
  `,stderr:"",exitCode:f15}}catch(t8){return e2(t8),{stdout:"",stderr:`expr: ${n5(t8.message)}
672
- `,exitCode:2}}}};C11={name:"expr",flags:[],needsArgs:!0}}});var expr_GZ4DABKB_exports={};__export(expr_GZ4DABKB_exports,{exprCommand:()=>k15,flagsForFuzzing:()=>C11});import{createRequire as createRequire155}from"node:module";var require156,init_expr_GZ4DABKB=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/expr-GZ4DABKB.js"(){init_chunk_TUQG2YRH();init_chunk_7GA3QWJJ();init_chunk_U7UNEMLJ();init_chunk_CBM6J4AL();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_FOCWZZDE();init_chunk_NCUTH6QL();require156=createRequire155(import.meta.url)}});import{createRequire as createRequire156}from"node:module";function D13(n10){function h18(r7,u15){return r7<<u15|r7>>>32-u15}let g13=new Uint32Array([3614090360,3905402710,606105819,3250441966,4118548399,1200080426,2821735955,4249261313,1770035416,2336552879,4294925233,2304563134,1804603682,4254626195,2792965006,1236535329,4129170786,3225465664,643717713,3921069994,3593408605,38016083,3634488961,3889429448,568446438,3275163606,4107603335,1163531501,2850285829,4243563512,1735328473,2368359562,4294588738,2272392833,1839030562,4259657740,2763975236,1272893353,4139469664,3200236656,681279174,3936430074,3572445317,76029189,3654602809,3873151461,530742520,3299628645,4096336452,1126891415,2878612391,4237533241,1700485571,2399980690,4293915773,2240044497,1873313359,4264355552,2734768916,1309151649,4149444226,3174756917,718787259,3951481745]),A13=[7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21],b23=n10.length*8,c18=(n10.length%64<56?56:120)-n10.length%64,s10=new Uint8Array(n10.length+c18+8);s10.set(n10),s10[n10.length]=128;let d11=new DataView(s10.buffer);d11.setUint32(s10.length-8,b23>>>0,!0),d11.setUint32(s10.length-4,Math.floor(b23/4294967296),!0);let w15=1732584193,l12=4023233417,p16=2562383102,e8=271733878;for(let r7=0;r7<s10.length;r7+=64){let u15=new Uint32Array(16);for(let t8=0;t8<16;t8++)u15[t8]=d11.getUint32(r7+t8*4,!0);let m16=w15,a14=l12,x23=p16,o13=e8;for(let t8=0;t8<64;t8++){let i22,y14;t8<16?(i22=a14&x23|~a14&o13,y14=t8):t8<32?(i22=o13&a14|~o13&x23,y14=(5*t8+1)%16):t8<48?(i22=a14^x23^o13,y14=(3*t8+5)%16):(i22=x23^(a14|~o13),y14=7*t8%16),i22=i22+m16+g13[t8]+u15[y14]>>>0,m16=o13,o13=x23,x23=a14,a14=a14+h18(i22,A13[t8])>>>0}w15=w15+m16>>>0,l12=l12+a14>>>0,p16=p16+x23>>>0,e8=e8+o13>>>0}let f15=new Uint8Array(16);return new DataView(f15.buffer).setUint32(0,w15,!0),new DataView(f15.buffer).setUint32(4,l12,!0),new DataView(f15.buffer).setUint32(8,p16,!0),new DataView(f15.buffer).setUint32(12,e8,!0),Array.from(f15).map(r7=>r7.toString(16).padStart(2,"0")).join("")}async function C12(n10,h18){if(n10==="md5")return D13(h18);let g13=L16.get(n10);if(!g13)throw new Error(`Unknown algorithm: ${n10}`);let A13=await globalThis.crypto.subtle.digest(g13,new Uint8Array(h18).buffer);return Array.from(new Uint8Array(A13)).map(b23=>b23.toString(16).padStart(2,"0")).join("")}function I16(n10,h18,g13){let A13={name:n10,summary:g13,usage:`${n10} [OPTION]... [FILE]...`,options:["-c, --check read checksums from FILEs and check them"," --help display this help and exit"]};return{name:n10,async execute(b23,c18){if(o5(b23))return s5(A13);let s10=!1,d11=[];for(let e8 of b23)if(e8==="-c"||e8==="--check")s10=!0;else if(!(e8==="-b"||e8==="-t"||e8==="--binary"||e8==="--text")){if(e8.startsWith("-")&&e8!=="-")return r5(n10,e8);d11.push(e8)}d11.length===0&&d11.push("-");let w15=async e8=>{if(e8==="-")return Uint8Array.from(c18.stdin,f15=>f15.charCodeAt(0));try{return await c18.fs.readFileBuffer(c18.fs.resolvePath(c18.cwd,e8))}catch{return null}};if(s10){let e8=0,f15="";for(let r7 of d11){let u15=r7==="-"?a2(c18.stdin):await c18.fs.readFile(c18.fs.resolvePath(c18.cwd,r7)).catch(()=>null);if(u15===null)return{stdout:"",stderr:`${n10}: ${r7}: No such file or directory
672
+ `,exitCode:2}}}};C11={name:"expr",flags:[],needsArgs:!0}}});var expr_GZ4DABKB_exports={};__export(expr_GZ4DABKB_exports,{exprCommand:()=>k15,flagsForFuzzing:()=>C11});import{createRequire as createRequire155}from"node:module";var require156,init_expr_GZ4DABKB=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/expr-GZ4DABKB.js"(){init_chunk_TUQG2YRH();init_chunk_7GA3QWJJ();init_chunk_U7UNEMLJ();init_chunk_CBM6J4AL();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_FOCWZZDE();init_chunk_NCUTH6QL();require156=createRequire155(import.meta.url)}});import{createRequire as createRequire156}from"node:module";function D13(n10){function h18(r7,u15){return r7<<u15|r7>>>32-u15}let g13=new Uint32Array([3614090360,3905402710,606105819,3250441966,4118548399,1200080426,2821735955,4249261313,1770035416,2336552879,4294925233,2304563134,1804603682,4254626195,2792965006,1236535329,4129170786,3225465664,643717713,3921069994,3593408605,38016083,3634488961,3889429448,568446438,3275163606,4107603335,1163531501,2850285829,4243563512,1735328473,2368359562,4294588738,2272392833,1839030562,4259657740,2763975236,1272893353,4139469664,3200236656,681279174,3936430074,3572445317,76029189,3654602809,3873151461,530742520,3299628645,4096336452,1126891415,2878612391,4237533241,1700485571,2399980690,4293915773,2240044497,1873313359,4264355552,2734768916,1309151649,4149444226,3174756917,718787259,3951481745]),A13=[7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21],b23=n10.length*8,c18=(n10.length%64<56?56:120)-n10.length%64,s10=new Uint8Array(n10.length+c18+8);s10.set(n10),s10[n10.length]=128;let d11=new DataView(s10.buffer);d11.setUint32(s10.length-8,b23>>>0,!0),d11.setUint32(s10.length-4,Math.floor(b23/4294967296),!0);let w15=1732584193,l12=4023233417,p16=2562383102,e8=271733878;for(let r7=0;r7<s10.length;r7+=64){let u15=new Uint32Array(16);for(let t8=0;t8<16;t8++)u15[t8]=d11.getUint32(r7+t8*4,!0);let m16=w15,a14=l12,x23=p16,o13=e8;for(let t8=0;t8<64;t8++){let i22,y14;t8<16?(i22=a14&x23|~a14&o13,y14=t8):t8<32?(i22=o13&a14|~o13&x23,y14=(5*t8+1)%16):t8<48?(i22=a14^x23^o13,y14=(3*t8+5)%16):(i22=x23^(a14|~o13),y14=7*t8%16),i22=i22+m16+g13[t8]+u15[y14]>>>0,m16=o13,o13=x23,x23=a14,a14=a14+h18(i22,A13[t8])>>>0}w15=w15+m16>>>0,l12=l12+a14>>>0,p16=p16+x23>>>0,e8=e8+o13>>>0}let f15=new Uint8Array(16);return new DataView(f15.buffer).setUint32(0,w15,!0),new DataView(f15.buffer).setUint32(4,l12,!0),new DataView(f15.buffer).setUint32(8,p16,!0),new DataView(f15.buffer).setUint32(12,e8,!0),Array.from(f15).map(r7=>r7.toString(16).padStart(2,"0")).join("")}async function C12(n10,h18){if(n10==="md5")return D13(h18);let g13=L16.get(n10);if(!g13)throw new Error(`Unknown algorithm: ${n10}`);let A13=await globalThis.crypto.subtle.digest(g13,new Uint8Array(h18).buffer);return Array.from(new Uint8Array(A13)).map(b23=>b23.toString(16).padStart(2,"0")).join("")}function I16(n10,h18,g13){let A13={name:n10,summary:g13,usage:`${n10} [OPTION]... [FILE]...`,options:["-c, --check read checksums from FILEs and check them"," --help display this help and exit"]};return{name:n10,async execute(b23,c18){if(o5(b23))return s5(A13);let s10=!1,d11=[];for(let e8 of b23)if(e8==="-c"||e8==="--check")s10=!0;else if(!(e8==="-b"||e8==="-t"||e8==="--binary"||e8==="--text")){if(e8.startsWith("-")&&e8!=="-")return r5(n10,e8);d11.push(e8)}d11.length===0&&d11.push("-");let w15=async e8=>{if(e8==="-")return Uint8Array.from(c18.stdin,f15=>f15.charCodeAt(0));try{return await c18.fs.readFileBuffer(c18.fs.resolvePath(c18.cwd,e8))}catch{return null}};if(s10){let e8=0,f15="";for(let r7 of d11){let u15=r7==="-"?a2(c18.stdin):await c18.fs.readFile(c18.fs.resolvePath(c18.cwd,r7)).catch(()=>null);if(u15===null)return{stdout:"",stderr:`${n10}: ${r7}: No such file or directory
673
673
  `,exitCode:1};for(let m16 of u15.split(`
674
674
  `)){let a14=m16.match(/^([a-fA-F0-9]+)\s+[* ]?(.+)$/);if(!a14)continue;let[,x23,o13]=a14,t8=await w15(o13);if(t8===null){f15+=`${o13}: FAILED open or read
675
675
  `,e8++;continue}let i22=await C12(h18,t8)===x23.toLowerCase();f15+=`${o13}: ${i22?"OK":"FAILED"}
676
676
  `,i22||e8++}}return e8>0&&(f15+=`${n10}: WARNING: ${e8} computed checksum${e8>1?"s":""} did NOT match
677
677
  `),{stdout:f15,stderr:"",exitCode:e8>0?1:0}}let l12="",p16=0;for(let e8 of d11){let f15=await w15(e8);if(f15===null){l12+=`${n10}: ${e8}: No such file or directory
678
678
  `,p16=1;continue}l12+=`${await C12(h18,f15)} ${e8}
679
- `}return{stdout:l12,stderr:"",exitCode:p16}}}}var require157,L16,init_chunk_2KNTH3KH=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-2KNTH3KH.js"(){init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();require157=createRequire156(import.meta.url),L16=new Map([["sha1","SHA-1"],["sha256","SHA-256"]])}});import{createRequire as createRequire157}from"node:module";var require158,s8,o10,init_chunk_ANCQ4SCV=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-ANCQ4SCV.js"(){init_chunk_2KNTH3KH();require158=createRequire157(import.meta.url),s8=I16("md5sum","md5","compute MD5 message digest"),o10={name:"md5sum",flags:[{flag:"-c",type:"boolean"}],needsFiles:!0}}});var md5sum_JEDX55KS_exports={};__export(md5sum_JEDX55KS_exports,{flagsForFuzzing:()=>o10,md5sumCommand:()=>s8});import{createRequire as createRequire158}from"node:module";var require159,init_md5sum_JEDX55KS=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/md5sum-JEDX55KS.js"(){init_chunk_ANCQ4SCV();init_chunk_2KNTH3KH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require159=createRequire158(import.meta.url)}});import{createRequire as createRequire159}from"node:module";var require160,a11,m13,init_chunk_FT6ODGOU=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-FT6ODGOU.js"(){init_chunk_2KNTH3KH();require160=createRequire159(import.meta.url),a11=I16("sha1sum","sha1","compute SHA1 message digest"),m13={name:"sha1sum",flags:[{flag:"-c",type:"boolean"}],needsFiles:!0}}});var sha1sum_BLPZJ6MP_exports={};__export(sha1sum_BLPZJ6MP_exports,{flagsForFuzzing:()=>m13,sha1sumCommand:()=>a11});import{createRequire as createRequire160}from"node:module";var require161,init_sha1sum_BLPZJ6MP=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/sha1sum-BLPZJ6MP.js"(){init_chunk_FT6ODGOU();init_chunk_2KNTH3KH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require161=createRequire160(import.meta.url)}});import{createRequire as createRequire161}from"node:module";var require162,a12,m14,init_chunk_OQ7C4FYO=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-OQ7C4FYO.js"(){init_chunk_2KNTH3KH();require162=createRequire161(import.meta.url),a12=I16("sha256sum","sha256","compute SHA256 message digest"),m14={name:"sha256sum",flags:[{flag:"-c",type:"boolean"}],needsFiles:!0}}});var sha256sum_VJZ4PHQ4_exports={};__export(sha256sum_VJZ4PHQ4_exports,{flagsForFuzzing:()=>m14,sha256sumCommand:()=>a12});import{createRequire as createRequire162}from"node:module";var require163,init_sha256sum_VJZ4PHQ4=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/sha256sum-VJZ4PHQ4.js"(){init_chunk_OQ7C4FYO();init_chunk_2KNTH3KH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require163=createRequire162(import.meta.url)}});import{createRequire as createRequire163}from"node:module";import{open as Nt2}from"node:fs/promises";function we7(i22){try{let e8=i22.getReader({mode:"byob"});return e8 instanceof ReadableStreamDefaultReader?new Z7(e8):new Q7(e8)}catch(e8){if(e8 instanceof TypeError)return new Z7(i22.getReader());throw e8}}function je3(i22,e8){let t8=we7(i22),r7=e8??{},n10=r7.onClose;return r7.onClose=async()=>{if(await t8.close(),n10)return n10()},new oe6(t8,r7)}function _e3(i22,e8){return new se7(i22,e8)}function $e5(i22,e8){return new ae7(i22,e8)}function $t2(){if(!(typeof globalThis.TextDecoder>"u"))return ce6??(ce6=new globalThis.TextDecoder("utf-8"))}function Ze3(i22,e8="utf-8"){switch(e8.toLowerCase()){case"utf-8":case"utf8":{let t8=$t2();return t8?t8.decode(i22):Gt2(i22)}case"utf-16le":return Zt2(i22);case"us-ascii":case"ascii":return Vt2(i22);case"latin1":case"iso-8859-1":return qt2(i22);case"windows-1252":return Ht2(i22);default:throw new RangeError(`Encoding '${e8}' not supported`)}}function ke5(i22,e8){e8.length!==0&&(i22.push(String.fromCharCode.apply(null,e8)),e8.length=0)}function g10(i22,e8,t8){e8.push(t8),e8.length>=q8&&ke5(i22,e8)}function Wt2(i22,e8,t8){if(t8<=65535){g10(i22,e8,t8);return}t8-=65536,g10(i22,e8,55296+(t8>>10)),g10(i22,e8,56320+(t8&1023))}function Gt2(i22){let e8=[],t8=[],r7=0;for(i22.length>=3&&i22[0]===239&&i22[1]===187&&i22[2]===191&&(r7=3);r7<i22.length;){let n10=i22[r7];if(n10<=127){g10(e8,t8,n10),r7++;continue}if(n10<194||n10>244){g10(e8,t8,B14),r7++;continue}if(n10<=223){if(r7+1>=i22.length){g10(e8,t8,B14),r7++;continue}let c18=i22[r7+1];if((c18&192)!==128){g10(e8,t8,B14),r7++;continue}let p16=(n10&31)<<6|c18&63;g10(e8,t8,p16),r7+=2;continue}if(n10<=239){if(r7+2>=i22.length){g10(e8,t8,B14),r7++;continue}let c18=i22[r7+1],p16=i22[r7+2];if(!((c18&192)===128&&(p16&192)===128&&!(n10===224&&c18<160)&&!(n10===237&&c18>=160))){g10(e8,t8,B14),r7++;continue}let d11=(n10&15)<<12|(c18&63)<<6|p16&63;g10(e8,t8,d11),r7+=3;continue}if(r7+3>=i22.length){g10(e8,t8,B14),r7++;continue}let o13=i22[r7+1],s10=i22[r7+2],f15=i22[r7+3];if(!((o13&192)===128&&(s10&192)===128&&(f15&192)===128&&!(n10===240&&o13<144)&&!(n10===244&&o13>143))){g10(e8,t8,B14),r7++;continue}let a14=(n10&7)<<18|(o13&63)<<12|(s10&63)<<6|f15&63;Wt2(e8,t8,a14),r7+=4}return ke5(e8,t8),e8.join("")}function Zt2(i22){let e8=[],t8=[],r7=i22.length,n10=0;for(;n10+1<r7;){let o13=i22[n10]|i22[n10+1]<<8;if(n10+=2,o13>=55296&&o13<=56319){if(n10+1<r7){let s10=i22[n10]|i22[n10+1]<<8;s10>=56320&&s10<=57343?(g10(e8,t8,o13),g10(e8,t8,s10),n10+=2):g10(e8,t8,B14)}else g10(e8,t8,B14);continue}if(o13>=56320&&o13<=57343){g10(e8,t8,B14);continue}g10(e8,t8,o13)}return n10<r7&&g10(e8,t8,B14),ke5(e8,t8),e8.join("")}function Vt2(i22){let e8=[];for(let t8=0;t8<i22.length;t8+=q8){let r7=Math.min(i22.length,t8+q8),n10=new Array(r7-t8);for(let o13=t8,s10=0;o13<r7;o13++,s10++)n10[s10]=i22[o13]&127;e8.push(String.fromCharCode.apply(null,n10))}return e8.join("")}function qt2(i22){let e8=[];for(let t8=0;t8<i22.length;t8+=q8){let r7=Math.min(i22.length,t8+q8),n10=new Array(r7-t8);for(let o13=t8,s10=0;o13<r7;o13++,s10++)n10[s10]=i22[o13];e8.push(String.fromCharCode.apply(null,n10))}return e8.join("")}function Ht2(i22){let e8=[],t8="";for(let r7=0;r7<i22.length;r7++){let n10=i22[r7],o13=n10>=128&&n10<=159?Ge3[n10]:void 0;t8+=o13??String.fromCharCode(n10),t8.length>=q8&&(e8.push(t8),t8="")}return t8&&e8.push(t8),e8.join("")}function S13(i22){return new DataView(i22.buffer,i22.byteOffset)}function ut2(i22){let e8=new Uint8Array(x21.len);return x21.put(e8,0,i22),e8}function yi(i22,e8){let t8=i22.length,r7=e8.length;if(r7>t8)return-1;for(let n10=0;n10<=t8-r7;n10++){let o13=!0;for(let s10=0;s10<r7;s10++)if(i22[n10+s10]!==e8[s10]){o13=!1;break}if(o13)return n10}return-1}function ki(i22){let e8=i22.reduce((n10,o13)=>n10+o13.length,0),t8=new Uint8Array(e8),r7=0;for(let n10 of i22)t8.set(n10,r7),r7+=n10.length;return t8}function Ae3(i22){let{byteLength:e8}=i22;if(e8===6)return i22.getUint16(0)*2**32+i22.getUint32(2);if(e8===5)return i22.getUint8(0)*2**32+i22.getUint32(1);if(e8===4)return i22.getUint32(0);if(e8===3)return i22.getUint8(0)*2**16+i22.getUint16(1);if(e8===2)return i22.getUint16(0);if(e8===1)return i22.getUint8(0)}function lt4(i22,e8){if(e8==="utf-16le"){let t8=[];for(let r7=0;r7<i22.length;r7++){let n10=i22.charCodeAt(r7);t8.push(n10&255,n10>>8&255)}return t8}if(e8==="utf-16be"){let t8=[];for(let r7=0;r7<i22.length;r7++){let n10=i22.charCodeAt(r7);t8.push(n10>>8&255,n10&255)}return t8}return[...i22].map(t8=>t8.charCodeAt(0))}function dt2(i22,e8=0){let t8=Number.parseInt(new F19(6).get(i22,148).replace(/\0.*$/,"").trim(),8);if(Number.isNaN(t8))return!1;let r7=256;for(let n10=e8;n10<e8+148;n10++)r7+=i22[n10];for(let n10=e8+156;n10<e8+512;n10++)r7+=i22[n10];return t8===r7}function Mi(i22){let e8=i22?.streamReader;if(e8?.constructor?.name!=="WebStreamByobReader")return i22;let{reader:t8}=e8,r7=async()=>{await t8.cancel(),t8.releaseLock()};return e8.close=r7,e8.abort=async()=>{e8.interrupted=!0,await r7()},i22}function Oe5(i22,e8,t8){if(!Number.isFinite(i22)||i22<0||i22>e8)throw new M15(`${t8} has invalid size ${i22} (maximum ${e8} bytes)`);return i22}async function R15(i22,e8,{maximumLength:t8=A10,reason:r7="skip"}={}){let n10=Oe5(e8,t8,r7);await i22.ignore(n10)}async function Be5(i22,e8,t8,{maximumLength:r7=e8.length,reason:n10="read"}={}){let o13=t8?.length??e8.length,s10=Oe5(o13,r7,n10);return i22.readBuffer(e8,{...t8,length:s10})}async function Li(i22,{maximumLength:e8=z13}={}){let n10=new ReadableStream({start(a14){a14.enqueue(i22),a14.close()}}).pipeThrough(new DecompressionStream("deflate-raw")).getReader(),o13=[],s10=0;try{for(;;){let{done:a14,value:c18}=await n10.read();if(a14)break;if(s10+=c18.length,s10>e8)throw await n10.cancel(),new Error(`ZIP entry decompressed data exceeds ${e8} bytes`);o13.push(c18)}}finally{n10.releaseLock()}let f15=new Uint8Array(s10),m16=0;for(let a14 of o13)f15.set(a14,m16),m16+=a14.length;return f15}function Ri(i22,e8){if(i22.length<de6)return-1;let t8=i22.length-de6;for(let r7=0;r7<=t8;r7++)if(x21.get(i22,r7)===Bt2&&x21.get(i22,r7+8)===e8+r7)return r7;return-1}function Pi(i22){return(i22.codePointAt(0)&32)!==0}function Ni2(i22,e8){let t8=new Uint8Array(e8),r7=0;for(let n10 of i22)t8.set(n10,r7),r7+=n10.length;return t8}async function ji(i22,{shouldBuffer:e8,maximumLength:t8=z13}={}){let{syncBuffer:r7}=i22,{length:n10}=r7,o13=[],s10=0;for(;;){let f15=await i22.tokenizer.peekBuffer(r7,{mayBeLess:!0}),m16=Ri(r7.subarray(0,f15),s10),a14=m16>=0?0:f15===n10?Math.min(Ui,f15-1):0,c18=m16>=0?m16:f15-a14;if(c18===0)break;if(s10+=c18,s10>t8)throw new Error(`ZIP entry compressed data exceeds ${t8} bytes`);if(e8){let p16=new Uint8Array(c18);await i22.tokenizer.readBuffer(p16),o13.push(p16)}else await i22.tokenizer.ignore(c18);if(m16>=0)break}if(C13(i22.tokenizer)||(i22.knownSizeDescriptorScannedBytes+=s10),!!e8)return Ni2(o13,s10)}function _i(i22,e8){return C13(i22.tokenizer)?Math.max(0,A10-(i22.tokenizer.position-e8)):Math.max(0,z13-i22.knownSizeDescriptorScannedBytes)}async function $i(i22,e8,{shouldBuffer:t8,maximumDescriptorLength:r7=z13}={}){if(e8.dataDescriptor&&e8.compressedSize===0)return ji(i22,{shouldBuffer:t8,maximumLength:r7});if(!t8){await R15(i22.tokenizer,e8.compressedSize,{maximumLength:C13(i22.tokenizer)?z13:i22.tokenizer.fileInfo.size,reason:"ZIP entry compressed data"});return}let n10=Hi(i22.tokenizer);if(!Number.isFinite(e8.compressedSize)||e8.compressedSize<0||e8.compressedSize>n10)throw new Error(`ZIP entry compressed data exceeds ${n10} bytes`);let o13=new Uint8Array(e8.compressedSize);return await i22.tokenizer.readBuffer(o13),o13}function Wi(i22,e8){let t8=i22.getReader(),r7=0,n10=!1,o13=!1,s10=async f15=>{n10||o13||(o13=!0,await t8.cancel(f15))};return new ReadableStream({async pull(f15){if(r7>=e8){f15.close(),await s10();return}let{done:m16,value:a14}=await t8.read();if(m16||!a14){n10=!0,f15.close();return}let c18=e8-r7;if(a14.length>c18){f15.enqueue(a14.subarray(0,c18)),r7+=c18,f15.close(),await s10();return}f15.enqueue(a14),r7+=a14.length},async cancel(f15){await s10(f15)}})}async function ze3(i22,e8){return new De3(e8).fromBuffer(i22)}function vt2(i22){switch(i22=i22.toLowerCase(),i22){case"application/epub+zip":return{ext:"epub",mime:i22};case"application/vnd.oasis.opendocument.text":return{ext:"odt",mime:i22};case"application/vnd.oasis.opendocument.text-template":return{ext:"ott",mime:i22};case"application/vnd.oasis.opendocument.spreadsheet":return{ext:"ods",mime:i22};case"application/vnd.oasis.opendocument.spreadsheet-template":return{ext:"ots",mime:i22};case"application/vnd.oasis.opendocument.presentation":return{ext:"odp",mime:i22};case"application/vnd.oasis.opendocument.presentation-template":return{ext:"otp",mime:i22};case"application/vnd.oasis.opendocument.graphics":return{ext:"odg",mime:i22};case"application/vnd.oasis.opendocument.graphics-template":return{ext:"otg",mime:i22};case"application/vnd.openxmlformats-officedocument.presentationml.slideshow":return{ext:"ppsx",mime:i22};case"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":return{ext:"xlsx",mime:i22};case"application/vnd.ms-excel.sheet.macroenabled":return{ext:"xlsm",mime:"application/vnd.ms-excel.sheet.macroenabled.12"};case"application/vnd.openxmlformats-officedocument.spreadsheetml.template":return{ext:"xltx",mime:i22};case"application/vnd.ms-excel.template.macroenabled":return{ext:"xltm",mime:"application/vnd.ms-excel.template.macroenabled.12"};case"application/vnd.ms-powerpoint.slideshow.macroenabled":return{ext:"ppsm",mime:"application/vnd.ms-powerpoint.slideshow.macroenabled.12"};case"application/vnd.openxmlformats-officedocument.wordprocessingml.document":return{ext:"docx",mime:i22};case"application/vnd.ms-word.document.macroenabled":return{ext:"docm",mime:"application/vnd.ms-word.document.macroenabled.12"};case"application/vnd.openxmlformats-officedocument.wordprocessingml.template":return{ext:"dotx",mime:i22};case"application/vnd.ms-word.template.macroenabledtemplate":return{ext:"dotm",mime:"application/vnd.ms-word.template.macroenabled.12"};case"application/vnd.openxmlformats-officedocument.presentationml.template":return{ext:"potx",mime:i22};case"application/vnd.ms-powerpoint.template.macroenabled":return{ext:"potm",mime:"application/vnd.ms-powerpoint.template.macroenabled.12"};case"application/vnd.openxmlformats-officedocument.presentationml.presentation":return{ext:"pptx",mime:i22};case"application/vnd.ms-powerpoint.presentation.macroenabled":return{ext:"pptm",mime:"application/vnd.ms-powerpoint.presentation.macroenabled.12"};case"application/vnd.ms-visio.drawing":return{ext:"vsdx",mime:"application/vnd.visio"};case"application/vnd.ms-package.3dmanufacturing-3dmodel+xml":return{ext:"3mf",mime:"model/3mf"};default:}}function O14(i22,e8,t8){t8={offset:0,...t8};for(let[r7,n10]of e8.entries())if(t8.mask){if(n10!==(t8.mask[r7]&i22[r7+t8.offset]))return!1}else if(n10!==i22[r7+t8.offset])return!1;return!0}function Gi(i22){return Number.isFinite(i22)?Math.max(1,Math.trunc(i22)):K7}function Zi(i22,e8,t8){return t8===void 0?i22.read(e8):(t8.throwIfAborted(),new Promise((r7,n10)=>{let o13=()=>{t8.removeEventListener("abort",s10)},s10=()=>{let f15=t8.reason;o13(),(async()=>{try{await i22.cancel(f15)}catch{}})(),n10(f15)};t8.addEventListener("abort",s10,{once:!0}),(async()=>{try{let f15=await i22.read(e8);o13(),r7(f15)}catch(f15){o13(),n10(f15)}})()}))}function Vi(i22){return Number.isFinite(i22)?Math.max(0,Math.min(bi,Math.trunc(i22))):0}function qi(i22){return Number.isFinite(i22)?Math.max(0,i22):Number.MAX_SAFE_INTEGER}function C13(i22){let e8=i22.fileInfo.size;return!Number.isFinite(e8)||e8===Number.MAX_SAFE_INTEGER}function ee6(i22,e8,t8){return C13(i22)&&i22.position-e8>t8}function Hi(i22){let e8=i22.fileInfo.size,t8=Number.isFinite(e8)?Math.max(0,e8-i22.position):Number.MAX_SAFE_INTEGER;return Math.min(t8,Ci)}function Ji(i22){if(i22 instanceof l11||i22 instanceof M15)return!0;if(!(i22 instanceof Error))return!1;if(Di.has(i22.message)||zi.has(i22.code))return!0;for(let e8 of Oi)if(i22.message.startsWith(e8))return!0;return!1}function At2(i22,e8=z13){let t8=[i22.compressedSize,i22.uncompressedSize];for(let r7 of t8)if(!Number.isFinite(r7)||r7<0||r7>e8)return!1;return!0}function Xi(){return{hasContentTypesEntry:!1,hasParsedContentTypesEntry:!1,isParsingContentTypes:!1,hasUnparseableContentTypes:!1,hasWordDirectory:!1,hasPresentationDirectory:!1,hasSpreadsheetDirectory:!1,hasThreeDimensionalModelEntry:!1}}function Qi(i22,e8){e8.startsWith("word/")&&(i22.hasWordDirectory=!0),e8.startsWith("ppt/")&&(i22.hasPresentationDirectory=!0),e8.startsWith("xl/")&&(i22.hasSpreadsheetDirectory=!0),e8.startsWith("3D/")&&e8.endsWith(".model")&&(i22.hasThreeDimensionalModelEntry=!0)}function It2(i22){if(!(!i22.hasContentTypesEntry||i22.hasUnparseableContentTypes||i22.isParsingContentTypes||i22.hasParsedContentTypesEntry)){if(i22.hasWordDirectory)return{ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"};if(i22.hasPresentationDirectory)return{ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"};if(i22.hasSpreadsheetDirectory)return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"};if(i22.hasThreeDimensionalModelEntry)return{ext:"3mf",mime:"model/3mf"}}}function Yi(i22){let e8=i22.indexOf('.main+xml"');if(e8===-1){let n10="application/vnd.ms-package.3dmanufacturing-3dmodel+xml";return i22.includes(`ContentType="${n10}"`)?n10:void 0}let t8=i22.slice(0,e8),r7=t8.lastIndexOf('"');return t8.slice(r7+1)}function Dt2(i22,e8){let t8=rr.get(i22);if(t8)return t8;let[r7,n10]=e8.split("/"),o13=n10?.split("+")[0]?.replace(/-/g," ")||i22;switch(r7){case"image":return`${o13.toUpperCase()} image data`;case"audio":return`${o13.toUpperCase()} audio`;case"video":return`${o13.toUpperCase()} video`;case"font":return`${o13} font`;case"model":return`${o13} 3D model`;case"application":return n10?.includes("zip")||n10?.includes("compressed")?`${o13} archive data`:n10?.includes("executable")?`${o13} executable`:`${i22.toUpperCase()} data`;default:return`${i22.toUpperCase()} data`}}function nr(i22){let e8=i22.split("/").pop()||i22;if(e8.startsWith(".")&&!e8.includes(".",1))return e8;let t8=e8.lastIndexOf(".");return t8===-1||t8===0?"":e8.slice(t8).toLowerCase()}function or(i22,e8){if(i22.startsWith("#!")){let a14=i22.split(`
679
+ `}return{stdout:l12,stderr:"",exitCode:p16}}}}var require157,L16,init_chunk_2KNTH3KH=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-2KNTH3KH.js"(){init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();require157=createRequire156(import.meta.url),L16=new Map([["sha1","SHA-1"],["sha256","SHA-256"]])}});import{createRequire as createRequire157}from"node:module";var require158,s8,o10,init_chunk_ANCQ4SCV=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-ANCQ4SCV.js"(){init_chunk_2KNTH3KH();require158=createRequire157(import.meta.url),s8=I16("md5sum","md5","compute MD5 message digest"),o10={name:"md5sum",flags:[{flag:"-c",type:"boolean"}],needsFiles:!0}}});var md5sum_JEDX55KS_exports={};__export(md5sum_JEDX55KS_exports,{flagsForFuzzing:()=>o10,md5sumCommand:()=>s8});import{createRequire as createRequire158}from"node:module";var require159,init_md5sum_JEDX55KS=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/md5sum-JEDX55KS.js"(){init_chunk_ANCQ4SCV();init_chunk_2KNTH3KH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require159=createRequire158(import.meta.url)}});import{createRequire as createRequire159}from"node:module";var require160,a11,m13,init_chunk_FT6ODGOU=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-FT6ODGOU.js"(){init_chunk_2KNTH3KH();require160=createRequire159(import.meta.url),a11=I16("sha1sum","sha1","compute SHA1 message digest"),m13={name:"sha1sum",flags:[{flag:"-c",type:"boolean"}],needsFiles:!0}}});var sha1sum_BLPZJ6MP_exports={};__export(sha1sum_BLPZJ6MP_exports,{flagsForFuzzing:()=>m13,sha1sumCommand:()=>a11});import{createRequire as createRequire160}from"node:module";var require161,init_sha1sum_BLPZJ6MP=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/sha1sum-BLPZJ6MP.js"(){init_chunk_FT6ODGOU();init_chunk_2KNTH3KH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require161=createRequire160(import.meta.url)}});import{createRequire as createRequire161}from"node:module";var require162,a12,m14,init_chunk_OQ7C4FYO=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-OQ7C4FYO.js"(){init_chunk_2KNTH3KH();require162=createRequire161(import.meta.url),a12=I16("sha256sum","sha256","compute SHA256 message digest"),m14={name:"sha256sum",flags:[{flag:"-c",type:"boolean"}],needsFiles:!0}}});var sha256sum_VJZ4PHQ4_exports={};__export(sha256sum_VJZ4PHQ4_exports,{flagsForFuzzing:()=>m14,sha256sumCommand:()=>a12});import{createRequire as createRequire162}from"node:module";var require163,init_sha256sum_VJZ4PHQ4=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/sha256sum-VJZ4PHQ4.js"(){init_chunk_OQ7C4FYO();init_chunk_2KNTH3KH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require163=createRequire162(import.meta.url)}});import{createRequire as createRequire163}from"node:module";import{open as Nt2}from"node:fs/promises";function we7(i22){try{let e8=i22.getReader({mode:"byob"});return e8 instanceof ReadableStreamDefaultReader?new Z7(e8):new Q7(e8)}catch(e8){if(e8 instanceof TypeError)return new Z7(i22.getReader());throw e8}}function je3(i22,e8){let t8=we7(i22),r7=e8??{},n10=r7.onClose;return r7.onClose=async()=>{if(await t8.close(),n10)return n10()},new oe6(t8,r7)}function _e3(i22,e8){return new se7(i22,e8)}function $e5(i22,e8){return new ae7(i22,e8)}function $t2(){if(!(typeof globalThis.TextDecoder>"u"))return ce6??(ce6=new globalThis.TextDecoder("utf-8"))}function Ze3(i22,e8="utf-8"){switch(e8.toLowerCase()){case"utf-8":case"utf8":{let t8=$t2();return t8?t8.decode(i22):Gt2(i22)}case"utf-16le":return Zt2(i22);case"us-ascii":case"ascii":return Vt2(i22);case"latin1":case"iso-8859-1":return qt2(i22);case"windows-1252":return Ht2(i22);default:throw new RangeError(`Encoding '${e8}' not supported`)}}function ke5(i22,e8){e8.length!==0&&(i22.push(String.fromCharCode.apply(null,e8)),e8.length=0)}function g10(i22,e8,t8){e8.push(t8),e8.length>=q8&&ke5(i22,e8)}function Wt2(i22,e8,t8){if(t8<=65535){g10(i22,e8,t8);return}t8-=65536,g10(i22,e8,55296+(t8>>10)),g10(i22,e8,56320+(t8&1023))}function Gt2(i22){let e8=[],t8=[],r7=0;for(i22.length>=3&&i22[0]===239&&i22[1]===187&&i22[2]===191&&(r7=3);r7<i22.length;){let n10=i22[r7];if(n10<=127){g10(e8,t8,n10),r7++;continue}if(n10<194||n10>244){g10(e8,t8,B14),r7++;continue}if(n10<=223){if(r7+1>=i22.length){g10(e8,t8,B14),r7++;continue}let c18=i22[r7+1];if((c18&192)!==128){g10(e8,t8,B14),r7++;continue}let p16=(n10&31)<<6|c18&63;g10(e8,t8,p16),r7+=2;continue}if(n10<=239){if(r7+2>=i22.length){g10(e8,t8,B14),r7++;continue}let c18=i22[r7+1],p16=i22[r7+2];if(!((c18&192)===128&&(p16&192)===128&&!(n10===224&&c18<160)&&!(n10===237&&c18>=160))){g10(e8,t8,B14),r7++;continue}let d11=(n10&15)<<12|(c18&63)<<6|p16&63;g10(e8,t8,d11),r7+=3;continue}if(r7+3>=i22.length){g10(e8,t8,B14),r7++;continue}let o13=i22[r7+1],s10=i22[r7+2],f15=i22[r7+3];if(!((o13&192)===128&&(s10&192)===128&&(f15&192)===128&&!(n10===240&&o13<144)&&!(n10===244&&o13>143))){g10(e8,t8,B14),r7++;continue}let a14=(n10&7)<<18|(o13&63)<<12|(s10&63)<<6|f15&63;Wt2(e8,t8,a14),r7+=4}return ke5(e8,t8),e8.join("")}function Zt2(i22){let e8=[],t8=[],r7=i22.length,n10=0;for(;n10+1<r7;){let o13=i22[n10]|i22[n10+1]<<8;if(n10+=2,o13>=55296&&o13<=56319){if(n10+1<r7){let s10=i22[n10]|i22[n10+1]<<8;s10>=56320&&s10<=57343?(g10(e8,t8,o13),g10(e8,t8,s10),n10+=2):g10(e8,t8,B14)}else g10(e8,t8,B14);continue}if(o13>=56320&&o13<=57343){g10(e8,t8,B14);continue}g10(e8,t8,o13)}return n10<r7&&g10(e8,t8,B14),ke5(e8,t8),e8.join("")}function Vt2(i22){let e8=[];for(let t8=0;t8<i22.length;t8+=q8){let r7=Math.min(i22.length,t8+q8),n10=new Array(r7-t8);for(let o13=t8,s10=0;o13<r7;o13++,s10++)n10[s10]=i22[o13]&127;e8.push(String.fromCharCode.apply(null,n10))}return e8.join("")}function qt2(i22){let e8=[];for(let t8=0;t8<i22.length;t8+=q8){let r7=Math.min(i22.length,t8+q8),n10=new Array(r7-t8);for(let o13=t8,s10=0;o13<r7;o13++,s10++)n10[s10]=i22[o13];e8.push(String.fromCharCode.apply(null,n10))}return e8.join("")}function Ht2(i22){let e8=[],t8="";for(let r7=0;r7<i22.length;r7++){let n10=i22[r7],o13=n10>=128&&n10<=159?Ge3[n10]:void 0;t8+=o13??String.fromCharCode(n10),t8.length>=q8&&(e8.push(t8),t8="")}return t8&&e8.push(t8),e8.join("")}function S13(i22){return new DataView(i22.buffer,i22.byteOffset)}function ut2(i22){let e8=new Uint8Array(x21.len);return x21.put(e8,0,i22),e8}function yi(i22,e8){let t8=i22.length,r7=e8.length;if(r7>t8)return-1;for(let n10=0;n10<=t8-r7;n10++){let o13=!0;for(let s10=0;s10<r7;s10++)if(i22[n10+s10]!==e8[s10]){o13=!1;break}if(o13)return n10}return-1}function ki(i22){let e8=i22.reduce((n10,o13)=>n10+o13.length,0),t8=new Uint8Array(e8),r7=0;for(let n10 of i22)t8.set(n10,r7),r7+=n10.length;return t8}function Ae3(i22){let{byteLength:e8}=i22;if(e8===6)return i22.getUint16(0)*2**32+i22.getUint32(2);if(e8===5)return i22.getUint8(0)*2**32+i22.getUint32(1);if(e8===4)return i22.getUint32(0);if(e8===3)return i22.getUint8(0)*2**16+i22.getUint16(1);if(e8===2)return i22.getUint16(0);if(e8===1)return i22.getUint8(0)}function lt4(i22,e8){if(e8==="utf-16le"){let t8=[];for(let r7=0;r7<i22.length;r7++){let n10=i22.charCodeAt(r7);t8.push(n10&255,n10>>8&255)}return t8}if(e8==="utf-16be"){let t8=[];for(let r7=0;r7<i22.length;r7++){let n10=i22.charCodeAt(r7);t8.push(n10>>8&255,n10&255)}return t8}return[...i22].map(t8=>t8.charCodeAt(0))}function dt2(i22,e8=0){let t8=Number.parseInt(new F19(6).get(i22,148).replace(/\0.*$/,"").trim(),8);if(Number.isNaN(t8))return!1;let r7=256;for(let n10=e8;n10<e8+148;n10++)r7+=i22[n10];for(let n10=e8+156;n10<e8+512;n10++)r7+=i22[n10];return t8===r7}function Mi(i22){let e8=i22?.streamReader;if(e8?.constructor?.name!=="WebStreamByobReader")return i22;let{reader:t8}=e8,r7=async()=>{await t8.cancel(),t8.releaseLock()};return e8.close=r7,e8.abort=async()=>{e8.interrupted=!0,await r7()},i22}function Oe5(i22,e8,t8){if(!Number.isFinite(i22)||i22<0||i22>e8)throw new M15(`${t8} has invalid size ${i22} (maximum ${e8} bytes)`);return i22}async function R15(i22,e8,{maximumLength:t8=A10,reason:r7="skip"}={}){let n10=Oe5(e8,t8,r7);await i22.ignore(n10)}async function Be5(i22,e8,t8,{maximumLength:r7=e8.length,reason:n10="read"}={}){let o13=t8?.length??e8.length,s10=Oe5(o13,r7,n10);return i22.readBuffer(e8,{...t8,length:s10})}async function Li(i22,{maximumLength:e8=z13}={}){let n10=new ReadableStream({start(a14){a14.enqueue(i22),a14.close()}}).pipeThrough(new DecompressionStream("deflate-raw")).getReader(),o13=[],s10=0;try{for(;;){let{done:a14,value:c18}=await n10.read();if(a14)break;if(s10+=c18.length,s10>e8)throw await n10.cancel(),new Error(`ZIP entry decompressed data exceeds ${e8} bytes`);o13.push(c18)}}finally{n10.releaseLock()}let f15=new Uint8Array(s10),m16=0;for(let a14 of o13)f15.set(a14,m16),m16+=a14.length;return f15}function Ri(i22,e8){if(i22.length<de6)return-1;let t8=i22.length-de6;for(let r7=0;r7<=t8;r7++)if(x21.get(i22,r7)===Bt2&&x21.get(i22,r7+8)===e8+r7)return r7;return-1}function Pi(i22){return(i22.codePointAt(0)&32)!==0}function Ni2(i22,e8){let t8=new Uint8Array(e8),r7=0;for(let n10 of i22)t8.set(n10,r7),r7+=n10.length;return t8}async function ji(i22,{shouldBuffer:e8,maximumLength:t8=z13}={}){let{syncBuffer:r7}=i22,{length:n10}=r7,o13=[],s10=0;for(;;){let f15=await i22.tokenizer.peekBuffer(r7,{mayBeLess:!0}),m16=Ri(r7.subarray(0,f15),s10),a14=m16>=0?0:f15===n10?Math.min(Ui,f15-1):0,c18=m16>=0?m16:f15-a14;if(c18===0)break;if(s10+=c18,s10>t8)throw new Error(`ZIP entry compressed data exceeds ${t8} bytes`);if(e8){let p16=new Uint8Array(c18);await i22.tokenizer.readBuffer(p16),o13.push(p16)}else await i22.tokenizer.ignore(c18);if(m16>=0)break}if(C13(i22.tokenizer)||(i22.knownSizeDescriptorScannedBytes+=s10),!!e8)return Ni2(o13,s10)}function _i(i22,e8){return C13(i22.tokenizer)?Math.max(0,A10-(i22.tokenizer.position-e8)):Math.max(0,z13-i22.knownSizeDescriptorScannedBytes)}async function $i(i22,e8,{shouldBuffer:t8,maximumDescriptorLength:r7=z13}={}){if(e8.dataDescriptor&&e8.compressedSize===0)return ji(i22,{shouldBuffer:t8,maximumLength:r7});if(!t8){await R15(i22.tokenizer,e8.compressedSize,{maximumLength:C13(i22.tokenizer)?z13:i22.tokenizer.fileInfo.size,reason:"ZIP entry compressed data"});return}let n10=Hi(i22.tokenizer);if(!Number.isFinite(e8.compressedSize)||e8.compressedSize<0||e8.compressedSize>n10)throw new Error(`ZIP entry compressed data exceeds ${n10} bytes`);let o13=new Uint8Array(e8.compressedSize);return await i22.tokenizer.readBuffer(o13),o13}function Wi(i22,e8){let t8=i22.getReader(),r7=0,n10=!1,o13=!1,s10=async f15=>{n10||o13||(o13=!0,await t8.cancel(f15))};return new ReadableStream({async pull(f15){if(r7>=e8){f15.close(),await s10();return}let{done:m16,value:a14}=await t8.read();if(m16||!a14){n10=!0,f15.close();return}let c18=e8-r7;if(a14.length>c18){f15.enqueue(a14.subarray(0,c18)),r7+=c18,f15.close(),await s10();return}f15.enqueue(a14),r7+=a14.length},async cancel(f15){await s10(f15)}})}async function ze3(i22,e8){return new De3(e8).fromBuffer(i22)}function vt2(i22){switch(i22=i22.toLowerCase(),i22){case"application/epub+zip":return{ext:"epub",mime:i22};case"application/vnd.oasis.opendocument.text":return{ext:"odt",mime:i22};case"application/vnd.oasis.opendocument.text-template":return{ext:"ott",mime:i22};case"application/vnd.oasis.opendocument.spreadsheet":return{ext:"ods",mime:i22};case"application/vnd.oasis.opendocument.spreadsheet-template":return{ext:"ots",mime:i22};case"application/vnd.oasis.opendocument.presentation":return{ext:"odp",mime:i22};case"application/vnd.oasis.opendocument.presentation-template":return{ext:"otp",mime:i22};case"application/vnd.oasis.opendocument.graphics":return{ext:"odg",mime:i22};case"application/vnd.oasis.opendocument.graphics-template":return{ext:"otg",mime:i22};case"application/vnd.openxmlformats-officedocument.presentationml.slideshow":return{ext:"ppsx",mime:i22};case"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":return{ext:"xlsx",mime:i22};case"application/vnd.ms-excel.sheet.macroenabled":return{ext:"xlsm",mime:"application/vnd.ms-excel.sheet.macroenabled.12"};case"application/vnd.openxmlformats-officedocument.spreadsheetml.template":return{ext:"xltx",mime:i22};case"application/vnd.ms-excel.template.macroenabled":return{ext:"xltm",mime:"application/vnd.ms-excel.template.macroenabled.12"};case"application/vnd.ms-powerpoint.slideshow.macroenabled":return{ext:"ppsm",mime:"application/vnd.ms-powerpoint.slideshow.macroenabled.12"};case"application/vnd.openxmlformats-officedocument.wordprocessingml.document":return{ext:"docx",mime:i22};case"application/vnd.ms-word.document.macroenabled":return{ext:"docm",mime:"application/vnd.ms-word.document.macroenabled.12"};case"application/vnd.openxmlformats-officedocument.wordprocessingml.template":return{ext:"dotx",mime:i22};case"application/vnd.ms-word.template.macroenabledtemplate":return{ext:"dotm",mime:"application/vnd.ms-word.template.macroenabled.12"};case"application/vnd.openxmlformats-officedocument.presentationml.template":return{ext:"potx",mime:i22};case"application/vnd.ms-powerpoint.template.macroenabled":return{ext:"potm",mime:"application/vnd.ms-powerpoint.template.macroenabled.12"};case"application/vnd.openxmlformats-officedocument.presentationml.presentation":return{ext:"pptx",mime:i22};case"application/vnd.ms-powerpoint.presentation.macroenabled":return{ext:"pptm",mime:"application/vnd.ms-powerpoint.presentation.macroenabled.12"};case"application/vnd.ms-visio.drawing":return{ext:"vsdx",mime:"application/vnd.visio"};case"application/vnd.ms-package.3dmanufacturing-3dmodel+xml":return{ext:"3mf",mime:"model/3mf"};default:}}function O14(i22,e8,t8){t8={offset:0,...t8};for(let[r7,n10]of e8.entries())if(t8.mask){if(n10!==(t8.mask[r7]&i22[r7+t8.offset]))return!1}else if(n10!==i22[r7+t8.offset])return!1;return!0}function Gi(i22){return Number.isFinite(i22)?Math.max(1,Math.trunc(i22)):K7}function Zi(i22,e8,t8){return t8===void 0?i22.read(e8):(t8.throwIfAborted(),new Promise((r7,n10)=>{let o13=()=>{t8.removeEventListener("abort",s10)},s10=()=>{let f15=t8.reason;o13(),(async()=>{try{await i22.cancel(f15)}catch{}})(),n10(f15)};t8.addEventListener("abort",s10,{once:!0}),(async()=>{try{let f15=await i22.read(e8);o13(),r7(f15)}catch(f15){o13(),n10(f15)}})()}))}function Vi(i22){return Number.isFinite(i22)?Math.max(0,Math.min(bi,Math.trunc(i22))):0}function qi(i22){return Number.isFinite(i22)?Math.max(0,i22):Number.MAX_SAFE_INTEGER}function C13(i22){let e8=i22.fileInfo.size;return!Number.isFinite(e8)||e8===Number.MAX_SAFE_INTEGER}function ee6(i22,e8,t8){return C13(i22)&&i22.position-e8>t8}function Hi(i22){let e8=i22.fileInfo.size,t8=Number.isFinite(e8)?Math.max(0,e8-i22.position):Number.MAX_SAFE_INTEGER;return Math.min(t8,Ci)}function Ji(i22){if(i22 instanceof l11||i22 instanceof M15)return!0;if(!(i22 instanceof Error))return!1;if(Di.has(i22.message)||zi.has(i22.code))return!0;for(let e8 of Oi)if(i22.message.startsWith(e8))return!0;return!1}function At2(i22,e8=z13){let t8=[i22.compressedSize,i22.uncompressedSize];for(let r7 of t8)if(!Number.isFinite(r7)||r7<0||r7>e8)return!1;return!0}function Xi(){return{hasContentTypesEntry:!1,hasParsedContentTypesEntry:!1,isParsingContentTypes:!1,hasUnparseableContentTypes:!1,hasWordDirectory:!1,hasPresentationDirectory:!1,hasSpreadsheetDirectory:!1,hasThreeDimensionalModelEntry:!1}}function Qi(i22,e8){e8.startsWith("word/")&&(i22.hasWordDirectory=!0),e8.startsWith("ppt/")&&(i22.hasPresentationDirectory=!0),e8.startsWith("xl/")&&(i22.hasSpreadsheetDirectory=!0),e8.startsWith("3D/")&&e8.endsWith(".model")&&(i22.hasThreeDimensionalModelEntry=!0)}function It2(i22){if(!(!i22.hasContentTypesEntry||i22.hasUnparseableContentTypes||i22.isParsingContentTypes||i22.hasParsedContentTypesEntry)){if(i22.hasWordDirectory)return{ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"};if(i22.hasPresentationDirectory)return{ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"};if(i22.hasSpreadsheetDirectory)return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"};if(i22.hasThreeDimensionalModelEntry)return{ext:"3mf",mime:"model/3mf"}}}function Yi(i22){let e8=i22.indexOf('.main+xml"');if(e8===-1){let n10="application/vnd.ms-package.3dmanufacturing-3dmodel+xml";return i22.includes(`ContentType="${n10}"`)?n10:void 0}let t8=i22.slice(0,e8),r7=t8.lastIndexOf('"');return t8.slice(r7+1)}function Dt2(i22,e8){let t8=rr.get(i22);if(t8)return t8;let[r7,n10]=e8.split("/"),o13=n10?.split("+")[0]?.replace(/-/g," ")||i22;switch(r7){case"image":return`${o13.toUpperCase()} image data`;case"audio":return`${o13.toUpperCase()} audio`;case"video":return`${o13.toUpperCase()} video`;case"font":return`${o13} font`;case"model":return`${o13} 3D model`;case"application":return n10?.includes("zip")||n10?.includes("compressed")?`${o13} archive data`:n10?.includes("executable")?`${o13} executable`:`${i22.toUpperCase()} data`;default:return`${i22.toUpperCase()} data`}}function nr(i22){let e8=i22.split("/").pop()||i22;if(e8.startsWith(".")&&!e8.includes(".",1))return e8;let t8=e8.lastIndexOf(".");return t8===-1||t8===0?"":e8.slice(t8).toLowerCase()}function or(i22,e8){if(i22.startsWith("#!")){let a14=i22.split(`
680
680
  `)[0];return a14.includes("python")?{description:"Python script, ASCII text executable",mime:"text/x-python"}:a14.includes("node")||a14.includes("bun")||a14.includes("deno")?{description:"JavaScript script, ASCII text executable",mime:"text/javascript"}:a14.includes("bash")?{description:"Bourne-Again shell script, ASCII text executable",mime:"text/x-shellscript"}:a14.includes("sh")?{description:"POSIX shell script, ASCII text executable",mime:"text/x-shellscript"}:a14.includes("ruby")?{description:"Ruby script, ASCII text executable",mime:"text/x-ruby"}:a14.includes("perl")?{description:"Perl script, ASCII text executable",mime:"text/x-perl"}:{description:"script, ASCII text executable",mime:"text/plain"}}let t8=i22.trimStart();if(t8.startsWith("<?xml"))return{description:"XML document",mime:"application/xml"};if(t8.startsWith("<!DOCTYPE html")||t8.toLowerCase().startsWith("<html"))return{description:"HTML document",mime:"text/html"};let r7=i22.includes(`\r
681
- `),n10=i22.includes("\r")&&!r7,o13="";r7?o13=", with CRLF line terminators":n10&&(o13=", with CR line terminators");let s10=nr(e8),f15=s10?ir.get(s10):void 0;if(f15)return f15.mime.startsWith("text/")&&o13?{description:`${f15.description}${o13}`,mime:f15.mime}:f15;let m16=!1;for(let a14=0;a14<Math.min(i22.length,8192);a14++)if(i22.charCodeAt(a14)>127){m16=!0;break}return m16?{description:`UTF-8 Unicode text${o13}`,mime:"text/plain; charset=utf-8"}:{description:`ASCII text${o13}`,mime:"text/plain"}}function ar(i22){return sr.every((e8,t8)=>i22[t8]===e8)}async function cr(i22,e8){if(e8.length===0)return{description:"empty",mime:"inode/x-empty"};if(ar(e8))return{description:Dt2("gz","application/gzip"),mime:"application/gzip"};let t8=await ze3(e8);if(t8)return{description:Dt2(t8.ext,t8.mime),mime:t8.mime};let r7=new TextDecoder("utf-8",{fatal:!1}).decode(e8);return or(r7,i22)}var require164,We6,Qe3,Ce8,Ke3,tt4,nt4,st4,at3,Lt2,l11,N14,j16,ne6,Q7,Z7,I17,Rt2,oe6,se7,ae7,V6,sn,Ve4,Ge3,_t2,ce6,q8,B14,qe3,h15,_10,x21,be5,He4,Je3,F19,mt2,W7,Te2,ct2,ft3,pt2,D14,ve6,wi,le6,G9,Y9,Tn,vn,An,xt2,ht2,gt3,K7,bi,z13,wt2,Ci,A10,xe6,yt3,Si,Fi,kt2,Ie3,bt2,Ct2,Ei,Ti,vi,Ai,Ii,St2,Ft2,Et2,Bi,Tt2,Di,Oi,zi,M15,Bt2,de6,Ui,De3,Ki,er,tr,ir,rr,sr,qn,Hn,init_chunk_Y32R7EZP=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-Y32R7EZP.js"(){init_chunk_U7UNEMLJ();init_chunk_DIWMSSQY();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require164=createRequire163(import.meta.url),We6=n6(ye9=>{ye9.read=function(i22,e8,t8,r7,n10){var o13,s10,f15=n10*8-r7-1,m16=(1<<f15)-1,a14=m16>>1,c18=-7,p16=t8?n10-1:0,u15=t8?-1:1,d11=i22[e8+p16];for(p16+=u15,o13=d11&(1<<-c18)-1,d11>>=-c18,c18+=f15;c18>0;o13=o13*256+i22[e8+p16],p16+=u15,c18-=8);for(s10=o13&(1<<-c18)-1,o13>>=-c18,c18+=r7;c18>0;s10=s10*256+i22[e8+p16],p16+=u15,c18-=8);if(o13===0)o13=1-a14;else{if(o13===m16)return s10?NaN:(d11?-1:1)*(1/0);s10=s10+Math.pow(2,r7),o13=o13-a14}return(d11?-1:1)*s10*Math.pow(2,o13-r7)},ye9.write=function(i22,e8,t8,r7,n10,o13){var s10,f15,m16,a14=o13*8-n10-1,c18=(1<<a14)-1,p16=c18>>1,u15=n10===23?Math.pow(2,-24)-Math.pow(2,-77):0,d11=r7?0:o13-1,b23=r7?1:-1,w15=e8<0||e8===0&&1/e8<0?1:0;for(e8=Math.abs(e8),isNaN(e8)||e8===1/0?(f15=isNaN(e8)?1:0,s10=c18):(s10=Math.floor(Math.log(e8)/Math.LN2),e8*(m16=Math.pow(2,-s10))<1&&(s10--,m16*=2),s10+p16>=1?e8+=u15/m16:e8+=u15*Math.pow(2,1-p16),e8*m16>=2&&(s10++,m16/=2),s10+p16>=c18?(f15=0,s10=c18):s10+p16>=1?(f15=(e8*m16-1)*Math.pow(2,n10),s10=s10+p16):(f15=e8*Math.pow(2,p16-1)*Math.pow(2,n10),s10=0));n10>=8;i22[t8+d11]=f15&255,d11+=b23,f15/=256,n10-=8);for(s10=s10<<n10|f15,a14+=n10;a14>0;i22[t8+d11]=s10&255,d11+=b23,s10/=256,a14-=8);i22[t8+d11-b23]|=w15*128}}),Qe3=n6((un2,Xe5)=>{var H20=1e3,J13=H20*60,X12=J13*60,$22=X12*24,Xt5=$22*7,Qt4=$22*365.25;Xe5.exports=function(i22,e8){e8=e8||{};var t8=typeof i22;if(t8==="string"&&i22.length>0)return Yt5(i22);if(t8==="number"&&isFinite(i22))return e8.long?ei(i22):Kt5(i22);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(i22))};function Yt5(i22){if(i22=String(i22),!(i22.length>100)){var e8=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i22);if(e8){var t8=parseFloat(e8[1]),r7=(e8[2]||"ms").toLowerCase();switch(r7){case"years":case"year":case"yrs":case"yr":case"y":return t8*Qt4;case"weeks":case"week":case"w":return t8*Xt5;case"days":case"day":case"d":return t8*$22;case"hours":case"hour":case"hrs":case"hr":case"h":return t8*X12;case"minutes":case"minute":case"mins":case"min":case"m":return t8*J13;case"seconds":case"second":case"secs":case"sec":case"s":return t8*H20;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t8;default:return}}}}function Kt5(i22){var e8=Math.abs(i22);return e8>=$22?Math.round(i22/$22)+"d":e8>=X12?Math.round(i22/X12)+"h":e8>=J13?Math.round(i22/J13)+"m":e8>=H20?Math.round(i22/H20)+"s":i22+"ms"}function ei(i22){var e8=Math.abs(i22);return e8>=$22?fe8(i22,e8,$22,"day"):e8>=X12?fe8(i22,e8,X12,"hour"):e8>=J13?fe8(i22,e8,J13,"minute"):e8>=H20?fe8(i22,e8,H20,"second"):i22+" ms"}function fe8(i22,e8,t8,r7){var n10=e8>=t8*1.5;return Math.round(i22/t8)+" "+r7+(n10?"s":"")}}),Ce8=n6((ln2,Ye4)=>{function ti2(i22){t8.debug=t8,t8.default=t8,t8.coerce=m16,t8.disable=s10,t8.enable=n10,t8.enabled=f15,t8.humanize=Qe3(),t8.destroy=a14,Object.keys(i22).forEach(c18=>{t8[c18]=i22[c18]}),t8.names=[],t8.skips=[],t8.formatters={};function e8(c18){let p16=0;for(let u15=0;u15<c18.length;u15++)p16=(p16<<5)-p16+c18.charCodeAt(u15),p16|=0;return t8.colors[Math.abs(p16)%t8.colors.length]}t8.selectColor=e8;function t8(c18){let p16,u15=null,d11,b23;function w15(...T19){if(!w15.enabled)return;let P17=w15,te10=Number(new Date),Ot5=te10-(p16||te10);P17.diff=Ot5,P17.prev=p16,P17.curr=te10,p16=te10,T19[0]=t8.coerce(T19[0]),typeof T19[0]!="string"&&T19.unshift("%O");let ie8=0;T19[0]=T19[0].replace(/%([a-zA-Z%])/g,(he8,zt4)=>{if(he8==="%%")return"%";ie8++;let Me6=t8.formatters[zt4];if(typeof Me6=="function"){let Mt4=T19[ie8];he8=Me6.call(P17,Mt4),T19.splice(ie8,1),ie8--}return he8}),t8.formatArgs.call(P17,T19),(P17.log||t8.log).apply(P17,T19)}return w15.namespace=c18,w15.useColors=t8.useColors(),w15.color=t8.selectColor(c18),w15.extend=r7,w15.destroy=t8.destroy,Object.defineProperty(w15,"enabled",{enumerable:!0,configurable:!1,get:()=>u15!==null?u15:(d11!==t8.namespaces&&(d11=t8.namespaces,b23=t8.enabled(c18)),b23),set:T19=>{u15=T19}}),typeof t8.init=="function"&&t8.init(w15),w15}function r7(c18,p16){let u15=t8(this.namespace+(typeof p16>"u"?":":p16)+c18);return u15.log=this.log,u15}function n10(c18){t8.save(c18),t8.namespaces=c18,t8.names=[],t8.skips=[];let p16=(typeof c18=="string"?c18:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let u15 of p16)u15[0]==="-"?t8.skips.push(u15.slice(1)):t8.names.push(u15)}function o13(c18,p16){let u15=0,d11=0,b23=-1,w15=0;for(;u15<c18.length;)if(d11<p16.length&&(p16[d11]===c18[u15]||p16[d11]==="*"))p16[d11]==="*"?(b23=d11,w15=u15,d11++):(u15++,d11++);else if(b23!==-1)d11=b23+1,w15++,u15=w15;else return!1;for(;d11<p16.length&&p16[d11]==="*";)d11++;return d11===p16.length}function s10(){let c18=[...t8.names,...t8.skips.map(p16=>"-"+p16)].join(",");return t8.enable(""),c18}function f15(c18){for(let p16 of t8.skips)if(o13(c18,p16))return!1;for(let p16 of t8.names)if(o13(c18,p16))return!0;return!1}function m16(c18){return c18 instanceof Error?c18.stack||c18.message:c18}function a14(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return t8.enable(t8.load()),t8}Ye4.exports=ti2}),Ke3=n6((E19,pe7)=>{E19.formatArgs=ri2,E19.save=ni2,E19.load=oi2,E19.useColors=ii2,E19.storage=si2(),E19.destroy=(()=>{let i22=!1;return()=>{i22||(i22=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),E19.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function ii2(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let i22;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(i22=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(i22[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function ri2(i22){if(i22[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+i22[0]+(this.useColors?"%c ":" ")+"+"+pe7.exports.humanize(this.diff),!this.useColors)return;let e8="color: "+this.color;i22.splice(1,0,e8,"color: inherit");let t8=0,r7=0;i22[0].replace(/%[a-zA-Z%]/g,n10=>{n10!=="%%"&&(t8++,n10==="%c"&&(r7=t8))}),i22.splice(r7,0,e8)}E19.log=console.debug||console.log||(()=>{});function ni2(i22){try{i22?E19.storage.setItem("debug",i22):E19.storage.removeItem("debug")}catch{}}function oi2(){let i22;try{i22=E19.storage.getItem("debug")||E19.storage.getItem("DEBUG")}catch{}return!i22&&typeof process<"u"&&"env"in process&&(i22=process.env.DEBUG),i22}function si2(){try{return localStorage}catch{}}pe7.exports=Ce8()(E19);var{formatters:ai2}=pe7.exports;ai2.j=function(i22){try{return JSON.stringify(i22)}catch(e8){return"[UnexpectedJSONParseError]: "+e8.message}}}),tt4=n6((dn2,et7)=>{"use strict";et7.exports=(i22,e8=process.argv)=>{let t8=i22.startsWith("-")?"":i22.length===1?"-":"--",r7=e8.indexOf(t8+i22),n10=e8.indexOf("--");return r7!==-1&&(n10===-1||r7<n10)}}),nt4=n6((xn2,rt7)=>{"use strict";var ci3=m3("os"),it7=m3("tty"),v13=tt4(),{env:y14}=process,U12;v13("no-color")||v13("no-colors")||v13("color=false")||v13("color=never")?U12=0:(v13("color")||v13("colors")||v13("color=true")||v13("color=always"))&&(U12=1),"FORCE_COLOR"in y14&&(y14.FORCE_COLOR==="true"?U12=1:y14.FORCE_COLOR==="false"?U12=0:U12=y14.FORCE_COLOR.length===0?1:Math.min(parseInt(y14.FORCE_COLOR,10),3));function Se8(i22){return i22===0?!1:{level:i22,hasBasic:!0,has256:i22>=2,has16m:i22>=3}}function Fe11(i22,e8){if(U12===0)return 0;if(v13("color=16m")||v13("color=full")||v13("color=truecolor"))return 3;if(v13("color=256"))return 2;if(i22&&!e8&&U12===void 0)return 0;let t8=U12||0;if(y14.TERM==="dumb")return t8;if(process.platform==="win32"){let r7=ci3.release().split(".");return Number(r7[0])>=10&&Number(r7[2])>=10586?Number(r7[2])>=14931?3:2:1}if("CI"in y14)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(r7=>r7 in y14)||y14.CI_NAME==="codeship"?1:t8;if("TEAMCITY_VERSION"in y14)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(y14.TEAMCITY_VERSION)?1:0;if(y14.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in y14){let r7=parseInt((y14.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(y14.TERM_PROGRAM){case"iTerm.app":return r7>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(y14.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(y14.TERM)||"COLORTERM"in y14?1:t8}function fi3(i22){let e8=Fe11(i22,i22&&i22.isTTY);return Se8(e8)}rt7.exports={supportsColor:fi3,stdout:Se8(Fe11(!0,it7.isatty(1))),stderr:Se8(Fe11(!0,it7.isatty(2)))}}),st4=n6((k19,ue9)=>{var pi3=m3("tty"),me10=m3("util");k19.init=gi3,k19.log=di3,k19.formatArgs=ui3,k19.save=xi2,k19.load=hi3,k19.useColors=mi4,k19.destroy=me10.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),k19.colors=[6,2,3,4,5,1];try{let i22=nt4();i22&&(i22.stderr||i22).level>=2&&(k19.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}k19.inspectOpts=Object.keys(process.env).filter(i22=>/^debug_/i.test(i22)).reduce((i22,e8)=>{let t8=e8.substring(6).toLowerCase().replace(/_([a-z])/g,(n10,o13)=>o13.toUpperCase()),r7=process.env[e8];return/^(yes|on|true|enabled)$/i.test(r7)?r7=!0:/^(no|off|false|disabled)$/i.test(r7)?r7=!1:r7==="null"?r7=null:r7=Number(r7),i22[t8]=r7,i22},{});function mi4(){return"colors"in k19.inspectOpts?!!k19.inspectOpts.colors:pi3.isatty(process.stderr.fd)}function ui3(i22){let{namespace:e8,useColors:t8}=this;if(t8){let r7=this.color,n10="\x1B[3"+(r7<8?r7:"8;5;"+r7),o13=` ${n10};1m${e8} \x1B[0m`;i22[0]=o13+i22[0].split(`
681
+ `),n10=i22.includes("\r")&&!r7,o13="";r7?o13=", with CRLF line terminators":n10&&(o13=", with CR line terminators");let s10=nr(e8),f15=s10?ir.get(s10):void 0;if(f15)return f15.mime.startsWith("text/")&&o13?{description:`${f15.description}${o13}`,mime:f15.mime}:f15;let m16=!1;for(let a14=0;a14<Math.min(i22.length,8192);a14++)if(i22.charCodeAt(a14)>127){m16=!0;break}return m16?{description:`UTF-8 Unicode text${o13}`,mime:"text/plain; charset=utf-8"}:{description:`ASCII text${o13}`,mime:"text/plain"}}function ar(i22){return sr.every((e8,t8)=>i22[t8]===e8)}async function cr(i22,e8){if(e8.length===0)return{description:"empty",mime:"inode/x-empty"};if(ar(e8))return{description:Dt2("gz","application/gzip"),mime:"application/gzip"};let t8=await ze3(e8);if(t8)return{description:Dt2(t8.ext,t8.mime),mime:t8.mime};let r7=new TextDecoder("utf-8",{fatal:!1}).decode(e8);return or(r7,i22)}var require164,We6,Qe3,Ce8,Ke3,tt4,nt4,st4,at3,Lt2,l11,N14,j16,ne6,Q7,Z7,I17,Rt2,oe6,se7,ae7,V6,sn,Ve4,Ge3,_t2,ce6,q8,B14,qe3,h15,_10,x21,be5,He4,Je3,F19,mt2,W7,Te2,ct2,ft3,pt2,D14,ve6,wi,le6,G9,Y9,Tn,vn,An,xt2,ht2,gt3,K7,bi,z13,wt2,Ci,A10,xe6,yt3,Si,Fi,kt2,Ie3,bt2,Ct2,Ei,Ti,vi,Ai,Ii,St2,Ft2,Et2,Bi,Tt2,Di,Oi,zi,M15,Bt2,de6,Ui,De3,Ki,er,tr,ir,rr,sr,qn,Hn,init_chunk_Y32R7EZP=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-Y32R7EZP.js"(){init_chunk_U7UNEMLJ();init_chunk_DIWMSSQY();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require164=createRequire163(import.meta.url),We6=n6(ye9=>{ye9.read=function(i22,e8,t8,r7,n10){var o13,s10,f15=n10*8-r7-1,m16=(1<<f15)-1,a14=m16>>1,c18=-7,p16=t8?n10-1:0,u15=t8?-1:1,d11=i22[e8+p16];for(p16+=u15,o13=d11&(1<<-c18)-1,d11>>=-c18,c18+=f15;c18>0;o13=o13*256+i22[e8+p16],p16+=u15,c18-=8);for(s10=o13&(1<<-c18)-1,o13>>=-c18,c18+=r7;c18>0;s10=s10*256+i22[e8+p16],p16+=u15,c18-=8);if(o13===0)o13=1-a14;else{if(o13===m16)return s10?NaN:(d11?-1:1)*(1/0);s10=s10+Math.pow(2,r7),o13=o13-a14}return(d11?-1:1)*s10*Math.pow(2,o13-r7)},ye9.write=function(i22,e8,t8,r7,n10,o13){var s10,f15,m16,a14=o13*8-n10-1,c18=(1<<a14)-1,p16=c18>>1,u15=n10===23?Math.pow(2,-24)-Math.pow(2,-77):0,d11=r7?0:o13-1,b23=r7?1:-1,w15=e8<0||e8===0&&1/e8<0?1:0;for(e8=Math.abs(e8),isNaN(e8)||e8===1/0?(f15=isNaN(e8)?1:0,s10=c18):(s10=Math.floor(Math.log(e8)/Math.LN2),e8*(m16=Math.pow(2,-s10))<1&&(s10--,m16*=2),s10+p16>=1?e8+=u15/m16:e8+=u15*Math.pow(2,1-p16),e8*m16>=2&&(s10++,m16/=2),s10+p16>=c18?(f15=0,s10=c18):s10+p16>=1?(f15=(e8*m16-1)*Math.pow(2,n10),s10=s10+p16):(f15=e8*Math.pow(2,p16-1)*Math.pow(2,n10),s10=0));n10>=8;i22[t8+d11]=f15&255,d11+=b23,f15/=256,n10-=8);for(s10=s10<<n10|f15,a14+=n10;a14>0;i22[t8+d11]=s10&255,d11+=b23,s10/=256,a14-=8);i22[t8+d11-b23]|=w15*128}}),Qe3=n6((un2,Xe5)=>{var H20=1e3,J13=H20*60,X12=J13*60,$22=X12*24,Xt5=$22*7,Qt4=$22*365.25;Xe5.exports=function(i22,e8){e8=e8||{};var t8=typeof i22;if(t8==="string"&&i22.length>0)return Yt5(i22);if(t8==="number"&&isFinite(i22))return e8.long?ei(i22):Kt5(i22);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(i22))};function Yt5(i22){if(i22=String(i22),!(i22.length>100)){var e8=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i22);if(e8){var t8=parseFloat(e8[1]),r7=(e8[2]||"ms").toLowerCase();switch(r7){case"years":case"year":case"yrs":case"yr":case"y":return t8*Qt4;case"weeks":case"week":case"w":return t8*Xt5;case"days":case"day":case"d":return t8*$22;case"hours":case"hour":case"hrs":case"hr":case"h":return t8*X12;case"minutes":case"minute":case"mins":case"min":case"m":return t8*J13;case"seconds":case"second":case"secs":case"sec":case"s":return t8*H20;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t8;default:return}}}}function Kt5(i22){var e8=Math.abs(i22);return e8>=$22?Math.round(i22/$22)+"d":e8>=X12?Math.round(i22/X12)+"h":e8>=J13?Math.round(i22/J13)+"m":e8>=H20?Math.round(i22/H20)+"s":i22+"ms"}function ei(i22){var e8=Math.abs(i22);return e8>=$22?fe8(i22,e8,$22,"day"):e8>=X12?fe8(i22,e8,X12,"hour"):e8>=J13?fe8(i22,e8,J13,"minute"):e8>=H20?fe8(i22,e8,H20,"second"):i22+" ms"}function fe8(i22,e8,t8,r7){var n10=e8>=t8*1.5;return Math.round(i22/t8)+" "+r7+(n10?"s":"")}}),Ce8=n6((ln2,Ye4)=>{function ti2(i22){t8.debug=t8,t8.default=t8,t8.coerce=m16,t8.disable=s10,t8.enable=n10,t8.enabled=f15,t8.humanize=Qe3(),t8.destroy=a14,Object.keys(i22).forEach(c18=>{t8[c18]=i22[c18]}),t8.names=[],t8.skips=[],t8.formatters={};function e8(c18){let p16=0;for(let u15=0;u15<c18.length;u15++)p16=(p16<<5)-p16+c18.charCodeAt(u15),p16|=0;return t8.colors[Math.abs(p16)%t8.colors.length]}t8.selectColor=e8;function t8(c18){let p16,u15=null,d11,b23;function w15(...T19){if(!w15.enabled)return;let P17=w15,te10=Number(new Date),Ot5=te10-(p16||te10);P17.diff=Ot5,P17.prev=p16,P17.curr=te10,p16=te10,T19[0]=t8.coerce(T19[0]),typeof T19[0]!="string"&&T19.unshift("%O");let ie8=0;T19[0]=T19[0].replace(/%([a-zA-Z%])/g,(he8,zt4)=>{if(he8==="%%")return"%";ie8++;let Me6=t8.formatters[zt4];if(typeof Me6=="function"){let Mt4=T19[ie8];he8=Me6.call(P17,Mt4),T19.splice(ie8,1),ie8--}return he8}),t8.formatArgs.call(P17,T19),(P17.log||t8.log).apply(P17,T19)}return w15.namespace=c18,w15.useColors=t8.useColors(),w15.color=t8.selectColor(c18),w15.extend=r7,w15.destroy=t8.destroy,Object.defineProperty(w15,"enabled",{enumerable:!0,configurable:!1,get:()=>u15!==null?u15:(d11!==t8.namespaces&&(d11=t8.namespaces,b23=t8.enabled(c18)),b23),set:T19=>{u15=T19}}),typeof t8.init=="function"&&t8.init(w15),w15}function r7(c18,p16){let u15=t8(this.namespace+(typeof p16>"u"?":":p16)+c18);return u15.log=this.log,u15}function n10(c18){t8.save(c18),t8.namespaces=c18,t8.names=[],t8.skips=[];let p16=(typeof c18=="string"?c18:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let u15 of p16)u15[0]==="-"?t8.skips.push(u15.slice(1)):t8.names.push(u15)}function o13(c18,p16){let u15=0,d11=0,b23=-1,w15=0;for(;u15<c18.length;)if(d11<p16.length&&(p16[d11]===c18[u15]||p16[d11]==="*"))p16[d11]==="*"?(b23=d11,w15=u15,d11++):(u15++,d11++);else if(b23!==-1)d11=b23+1,w15++,u15=w15;else return!1;for(;d11<p16.length&&p16[d11]==="*";)d11++;return d11===p16.length}function s10(){let c18=[...t8.names,...t8.skips.map(p16=>"-"+p16)].join(",");return t8.enable(""),c18}function f15(c18){for(let p16 of t8.skips)if(o13(c18,p16))return!1;for(let p16 of t8.names)if(o13(c18,p16))return!0;return!1}function m16(c18){return c18 instanceof Error?c18.stack||c18.message:c18}function a14(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return t8.enable(t8.load()),t8}Ye4.exports=ti2}),Ke3=n6((E19,pe7)=>{E19.formatArgs=ri2,E19.save=ni2,E19.load=oi2,E19.useColors=ii2,E19.storage=si2(),E19.destroy=(()=>{let i22=!1;return()=>{i22||(i22=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),E19.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function ii2(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let i22;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(i22=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(i22[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function ri2(i22){if(i22[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+i22[0]+(this.useColors?"%c ":" ")+"+"+pe7.exports.humanize(this.diff),!this.useColors)return;let e8="color: "+this.color;i22.splice(1,0,e8,"color: inherit");let t8=0,r7=0;i22[0].replace(/%[a-zA-Z%]/g,n10=>{n10!=="%%"&&(t8++,n10==="%c"&&(r7=t8))}),i22.splice(r7,0,e8)}E19.log=console.debug||console.log||(()=>{});function ni2(i22){try{i22?E19.storage.setItem("debug",i22):E19.storage.removeItem("debug")}catch{}}function oi2(){let i22;try{i22=E19.storage.getItem("debug")||E19.storage.getItem("DEBUG")}catch{}return!i22&&typeof process<"u"&&"env"in process&&(i22=process.env.DEBUG),i22}function si2(){try{return localStorage}catch{}}pe7.exports=Ce8()(E19);var{formatters:ai2}=pe7.exports;ai2.j=function(i22){try{return JSON.stringify(i22)}catch(e8){return"[UnexpectedJSONParseError]: "+e8.message}}}),tt4=n6((dn2,et7)=>{"use strict";et7.exports=(i22,e8=process.argv)=>{let t8=i22.startsWith("-")?"":i22.length===1?"-":"--",r7=e8.indexOf(t8+i22),n10=e8.indexOf("--");return r7!==-1&&(n10===-1||r7<n10)}}),nt4=n6((xn2,rt7)=>{"use strict";var ci3=m3("os"),it7=m3("tty"),v13=tt4(),{env:y14}=process,U12;v13("no-color")||v13("no-colors")||v13("color=false")||v13("color=never")?U12=0:(v13("color")||v13("colors")||v13("color=true")||v13("color=always"))&&(U12=1),"FORCE_COLOR"in y14&&(y14.FORCE_COLOR==="true"?U12=1:y14.FORCE_COLOR==="false"?U12=0:U12=y14.FORCE_COLOR.length===0?1:Math.min(parseInt(y14.FORCE_COLOR,10),3));function Se8(i22){return i22===0?!1:{level:i22,hasBasic:!0,has256:i22>=2,has16m:i22>=3}}function Fe11(i22,e8){if(U12===0)return 0;if(v13("color=16m")||v13("color=full")||v13("color=truecolor"))return 3;if(v13("color=256"))return 2;if(i22&&!e8&&U12===void 0)return 0;let t8=U12||0;if(y14.TERM==="dumb")return t8;if(process.platform==="win32"){let r7=ci3.release().split(".");return Number(r7[0])>=10&&Number(r7[2])>=10586?Number(r7[2])>=14931?3:2:1}if("CI"in y14)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(r7=>r7 in y14)||y14.CI_NAME==="codeship"?1:t8;if("TEAMCITY_VERSION"in y14)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(y14.TEAMCITY_VERSION)?1:0;if(y14.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in y14){let r7=parseInt((y14.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(y14.TERM_PROGRAM){case"iTerm.app":return r7>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(y14.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(y14.TERM)||"COLORTERM"in y14?1:t8}function fi3(i22){let e8=Fe11(i22,i22&&i22.isTTY);return Se8(e8)}rt7.exports={supportsColor:fi3,stdout:Se8(Fe11(!0,it7.isatty(1))),stderr:Se8(Fe11(!0,it7.isatty(2)))}}),st4=n6((k19,ue9)=>{var pi3=m3("tty"),me10=m3("util");k19.init=gi3,k19.log=di3,k19.formatArgs=ui3,k19.save=xi2,k19.load=hi3,k19.useColors=mi4,k19.destroy=me10.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),k19.colors=[6,2,3,4,5,1];try{let i22=nt4();i22&&(i22.stderr||i22).level>=2&&(k19.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}k19.inspectOpts=Object.keys(process.env).filter(i22=>/^debug_/i.test(i22)).reduce((i22,e8)=>{let t8=e8.substring(6).toLowerCase().replace(/_([a-z])/g,(n10,o13)=>o13.toUpperCase()),r7=process.env[e8];return/^(yes|on|true|enabled)$/i.test(r7)?r7=!0:/^(no|off|false|disabled)$/i.test(r7)?r7=!1:r7==="null"?r7=null:r7=Number(r7),i22[t8]=r7,i22},{});function mi4(){return"colors"in k19.inspectOpts?!!k19.inspectOpts.colors:pi3.isatty(process.stderr.fd)}function ui3(i22){let{namespace:e8,useColors:t8}=this;if(t8){let r7=this.color,n10="\x1B[3"+(r7<8?r7:"8;5;"+r7),o13=` ${n10};1m${e8} \x1B[0m`;i22[0]=o13+i22[0].split(`
682
682
  `).join(`
683
683
  `+o13),i22.push(n10+"m+"+ue9.exports.humanize(this.diff)+"\x1B[0m")}else i22[0]=li2()+e8+" "+i22[0]}function li2(){return k19.inspectOpts.hideDate?"":new Date().toISOString()+" "}function di3(...i22){return process.stderr.write(me10.formatWithOptions(k19.inspectOpts,...i22)+`
684
684
  `)}function xi2(i22){i22?process.env.DEBUG=i22:delete process.env.DEBUG}function hi3(){return process.env.DEBUG}function gi3(i22){i22.inspectOpts={};let e8=Object.keys(k19.inspectOpts);for(let t8=0;t8<e8.length;t8++)i22.inspectOpts[e8[t8]]=k19.inspectOpts[e8[t8]]}ue9.exports=Ce8()(k19);var{formatters:ot7}=ue9.exports;ot7.o=function(i22){return this.inspectOpts.colors=this.useColors,me10.inspect(i22,this.inspectOpts).split(`
@@ -694,13 +694,13 @@ sys 0.00
694
694
  `:`${m16}: ${d11}
695
695
  `)}catch(a14){e2(a14),s10.append(t8?`cannot open
696
696
  `:`${m16}: cannot open (No such file or directory)
697
- `),f15=1}}return{stdout:s10.build(),stderr:"",exitCode:f15}}},Hn={name:"file",flags:[{flag:"-b",type:"boolean"},{flag:"-i",type:"boolean"},{flag:"-L",type:"boolean"}],needsArgs:!0};}});var file_UI6QJAAU_exports={};__export(file_UI6QJAAU_exports,{fileCommand:()=>qn,flagsForFuzzing:()=>Hn});import{createRequire as createRequire164}from"node:module";var require165,init_file_UI6QJAAU=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/file-UI6QJAAU.js"(){init_chunk_Y32R7EZP();init_chunk_U7UNEMLJ();init_chunk_CBM6J4AL();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require165=createRequire164(import.meta.url)}});var html_to_markdown_7OG5VWYG_exports={};__export(html_to_markdown_7OG5VWYG_exports,{flagsForFuzzing:()=>flagsForFuzzing,htmlToMarkdownCommand:()=>htmlToMarkdownCommand});var unavailable,flagsForFuzzing,htmlToMarkdownCommand,init_html_to_markdown_7OG5VWYG=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/html-to-markdown-7OG5VWYG.js"(){unavailable=name=>({name,async execute(){return{stdout:"",stderr:`${name}: not available in this shell
697
+ `),f15=1}}return{stdout:s10.build(),stderr:"",exitCode:f15}}},Hn={name:"file",flags:[{flag:"-b",type:"boolean"},{flag:"-i",type:"boolean"},{flag:"-L",type:"boolean"}],needsArgs:!0};}});var file_UI6QJAAU_exports={};__export(file_UI6QJAAU_exports,{fileCommand:()=>qn,flagsForFuzzing:()=>Hn});import{createRequire as createRequire164}from"node:module";var require165,init_file_UI6QJAAU=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/file-UI6QJAAU.js"(){init_chunk_Y32R7EZP();init_chunk_U7UNEMLJ();init_chunk_CBM6J4AL();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require165=createRequire164(import.meta.url)}});var html_to_markdown_7OG5VWYG_exports={};__export(html_to_markdown_7OG5VWYG_exports,{flagsForFuzzing:()=>flagsForFuzzing,htmlToMarkdownCommand:()=>htmlToMarkdownCommand});var unavailable,flagsForFuzzing,htmlToMarkdownCommand,init_html_to_markdown_7OG5VWYG=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/html-to-markdown-7OG5VWYG.js"(){unavailable=name=>({name,async execute(){return{stdout:"",stderr:`${name}: not available in this shell
698
698
  `,exitCode:127}}}),flagsForFuzzing=()=>{},htmlToMarkdownCommand=unavailable("html-to-markdown")}});import{createRequire as createRequire165}from"node:module";function m15(n10){let e8=[],s10=new Set(n10);e8.push(`Available commands:
699
699
  `);let t8=[];for(let[a14,l12]of c16){let o13=l12.filter(i22=>s10.has(i22));if(o13.length>0){e8.push(` ${a14}:`),e8.push(` ${o13.join(", ")}
700
700
  `);for(let i22 of o13)s10.delete(i22)}}for(let a14 of s10)t8.push(a14);return t8.length>0&&(e8.push(" Other:"),e8.push(` ${t8.sort().join(", ")}
701
701
  `)),e8.push("Use '<command> --help' for details on a specific command."),`${e8.join(`
702
702
  `)}
703
- `}var require166,c16,h16,p14,init_chunk_NXBUT5V2=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-NXBUT5V2.js"(){init_chunk_L2UW7DWF();require166=createRequire165(import.meta.url),c16=new Map([["File operations",["ls","cat","head","tail","wc","touch","mkdir","mktemp","rm","cp","mv","ln","chmod","stat","readlink"]],["Text processing",["grep","sed","awk","sort","uniq","cut","tr","tee","diff"]],["Search",["find"]],["Navigation & paths",["pwd","basename","dirname","tree","du"]],["Environment & shell",["echo","printf","env","printenv","export","alias","unalias","history","clear","true","false","yes","bash","sh"]],["Data processing",["xargs","jq","base64","date"]],["Network",["curl","html-to-markdown"]]]);h16={name:"help",async execute(n10,e8){if(n10.includes("--help")||n10.includes("-h"))return{stdout:`help - display available commands
703
+ `}var require166,c16,h16,p14,init_chunk_NXBUT5V2=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-NXBUT5V2.js"(){init_chunk_L2UW7DWF();require166=createRequire165(import.meta.url),c16=new Map([["File operations",["ls","cat","head","tail","wc","touch","mkdir","mktemp","rm","cp","mv","ln","chmod","stat","readlink"]],["Text processing",["grep","sed","awk","sort","uniq","cut","tr","tee","diff"]],["Search",["find"]],["Navigation & paths",["pwd","basename","dirname","tree","du"]],["Environment & shell",["echo","printf","env","printenv","export","alias","unalias","history","clear","true","false","yes","bash","sh"]],["Data processing",["xargs","jq","base64","date"]],["Network",["curl","html-to-markdown"]]]);h16={name:"help",async execute(n10,e8){if(n10.includes("--help")||n10.includes("-h"))return{stdout:`help - display available commands
704
704
 
705
705
  Usage: help [command]
706
706
 
@@ -709,20 +709,20 @@ Options:
709
709
 
710
710
  If a command name is provided, shows help for that command.
711
711
  Otherwise, lists all available commands.
712
- `,stderr:"",exitCode:0};if(n10.length>0&&e8.exec){let t8=n10[0];return e8.exec(r2([t8]),{cwd:e8.cwd,signal:e8.signal,args:["--help"]})}let s10=e8.getRegisteredCommands?.()??[];return{stdout:m15(s10),stderr:"",exitCode:0}}},p14={name:"help",flags:[]}}});var help_62M75TSG_exports={};__export(help_62M75TSG_exports,{flagsForFuzzing:()=>p14,helpCommand:()=>h16});import{createRequire as createRequire166}from"node:module";var require167,init_help_62M75TSG=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/help-62M75TSG.js"(){init_chunk_NXBUT5V2();init_chunk_L2UW7DWF();init_chunk_NCUTH6QL();require167=createRequire166(import.meta.url)}});import{createRequire as createRequire167}from"node:module";var require168,g11,w13,A11,v12,init_chunk_2SMD2AUA=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-2SMD2AUA.js"(){init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();require168=createRequire167(import.meta.url),g11={name:"which",summary:"locate a command",usage:"which [-as] program ...",options:["-a List all instances of executables found","-s No output, just return 0 if found, 1 if not","--help display this help and exit"]},w13={showAll:{short:"a",type:"boolean"},silent:{short:"s",type:"boolean"}},A11={name:"which",async execute(s10,e8){if(o5(s10))return s5(g11);let t8=x5("which",s10,w13);if(!t8.ok)return t8.error;let c18=t8.result.flags.showAll,p16=t8.result.flags.silent,o13=t8.result.positional;if(o13.length===0)return{stdout:"",stderr:"",exitCode:1};let d11=(e8.env.get("PATH")||"/usr/bin:/bin").split(":"),n10="",a14=!0;for(let m16 of o13){let l12=!1;for(let r7 of d11){if(!r7)continue;let i22=e8.fs.resolvePath(r7,m16);if(await e8.fs.exists(i22)&&(l12=!0,p16||(n10+=`${i22}
713
- `),!c18))break}l12||(a14=!1)}return{stdout:n10,stderr:"",exitCode:a14?0:1}}},v12={name:"which",flags:[{flag:"-a",type:"boolean"},{flag:"-s",type:"boolean"}],needsArgs:!0}}});var which_UWVKETYW_exports={};__export(which_UWVKETYW_exports,{flagsForFuzzing:()=>v12,whichCommand:()=>A11});import{createRequire as createRequire168}from"node:module";var require169,init_which_UWVKETYW=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/which-UWVKETYW.js"(){init_chunk_2SMD2AUA();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require169=createRequire168(import.meta.url)}});import{createRequire as createRequire169}from"node:module";async function c17(t8,e8){if(t8.length>0&&t8[0]!=="-"){let i22=e8.fs.resolvePath(e8.cwd,t8[0]);try{let s10=(await e8.fs.readFile(i22)).split(`
712
+ `,stderr:"",exitCode:0};if(n10.length>0&&e8.exec){let t8=n10[0];return e8.exec(r2([t8]),{cwd:e8.cwd,signal:e8.signal,args:["--help"]})}let s10=e8.getRegisteredCommands?.()??[];return{stdout:m15(s10),stderr:"",exitCode:0}}},p14={name:"help",flags:[]}}});var help_62M75TSG_exports={};__export(help_62M75TSG_exports,{flagsForFuzzing:()=>p14,helpCommand:()=>h16});import{createRequire as createRequire166}from"node:module";var require167,init_help_62M75TSG=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/help-62M75TSG.js"(){init_chunk_NXBUT5V2();init_chunk_L2UW7DWF();init_chunk_NCUTH6QL();require167=createRequire166(import.meta.url)}});import{createRequire as createRequire167}from"node:module";var require168,g11,w13,A11,v12,init_chunk_2SMD2AUA=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-2SMD2AUA.js"(){init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();require168=createRequire167(import.meta.url),g11={name:"which",summary:"locate a command",usage:"which [-as] program ...",options:["-a List all instances of executables found","-s No output, just return 0 if found, 1 if not","--help display this help and exit"]},w13={showAll:{short:"a",type:"boolean"},silent:{short:"s",type:"boolean"}},A11={name:"which",async execute(s10,e8){if(o5(s10))return s5(g11);let t8=x5("which",s10,w13);if(!t8.ok)return t8.error;let c18=t8.result.flags.showAll,p16=t8.result.flags.silent,o13=t8.result.positional;if(o13.length===0)return{stdout:"",stderr:"",exitCode:1};let d11=(e8.env.get("PATH")||"/usr/bin:/bin").split(":"),n10="",a14=!0;for(let m16 of o13){let l12=!1;for(let r7 of d11){if(!r7)continue;let i22=e8.fs.resolvePath(r7,m16);if(await e8.fs.exists(i22)&&(l12=!0,p16||(n10+=`${i22}
713
+ `),!c18))break}l12||(a14=!1)}return{stdout:n10,stderr:"",exitCode:a14?0:1}}},v12={name:"which",flags:[{flag:"-a",type:"boolean"},{flag:"-s",type:"boolean"}],needsArgs:!0}}});var which_UWVKETYW_exports={};__export(which_UWVKETYW_exports,{flagsForFuzzing:()=>v12,whichCommand:()=>A11});import{createRequire as createRequire168}from"node:module";var require169,init_which_UWVKETYW=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/which-UWVKETYW.js"(){init_chunk_2SMD2AUA();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require169=createRequire168(import.meta.url)}});import{createRequire as createRequire169}from"node:module";async function c17(t8,e8){if(t8.length>0&&t8[0]!=="-"){let i22=e8.fs.resolvePath(e8.cwd,t8[0]);try{let s10=(await e8.fs.readFile(i22)).split(`
714
714
  `);s10[s10.length-1]===""&&s10.pop();let r7=s10.reverse();return{stdout:r7.length>0?`${r7.join(`
715
715
  `)}
716
716
  `:"",stderr:"",exitCode:0}}catch{return{stdout:"",stderr:`tac: ${t8[0]}: No such file or directory
717
717
  `,exitCode:1}}}let n10=e8.stdin.split(`
718
718
  `);n10[n10.length-1]===""&&n10.pop();let o13=n10.reverse();return{stdout:o13.length>0?`${o13.join(`
719
719
  `)}
720
- `:"",stderr:"",exitCode:0,stdoutKind:"bytes"}}var require170,u14,f14,init_chunk_LI6PTSPD=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-LI6PTSPD.js"(){require170=createRequire169(import.meta.url);u14={name:"tac",execute:c17},f14={name:"tac",flags:[],stdinType:"text",needsFiles:!0}}});var tac_YXC4HBTR_exports={};__export(tac_YXC4HBTR_exports,{flagsForFuzzing:()=>f14,tac:()=>u14});import{createRequire as createRequire170}from"node:module";var require171,init_tac_YXC4HBTR=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/tac-YXC4HBTR.js"(){init_chunk_LI6PTSPD();init_chunk_GN6CQ3J4();init_chunk_NCUTH6QL();require171=createRequire170(import.meta.url)}});import{createRequire as createRequire171}from"node:module";async function t5(e8,n10){return{stdout:`localhost
721
- `,stderr:"",exitCode:0}}var require172,o11,s9,init_chunk_SBBYKIYU=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-SBBYKIYU.js"(){require172=createRequire171(import.meta.url);o11={name:"hostname",execute:t5},s9={name:"hostname",flags:[]}}});var hostname_CESD3CQR_exports={};__export(hostname_CESD3CQR_exports,{flagsForFuzzing:()=>s9,hostname:()=>o11});import{createRequire as createRequire172}from"node:module";var require173,init_hostname_CESD3CQR=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/hostname-CESD3CQR.js"(){init_chunk_SBBYKIYU();init_chunk_NCUTH6QL();require173=createRequire172(import.meta.url)}});import{createRequire as createRequire173}from"node:module";async function e6(t8,o13){return{stdout:`user
722
- `,stderr:"",exitCode:0}}var require174,a13,n9,init_chunk_4MZPEZTU=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-4MZPEZTU.js"(){require174=createRequire173(import.meta.url);a13={name:"whoami",execute:e6},n9={name:"whoami",flags:[]}}});var whoami_KR6E7UIR_exports={};__export(whoami_KR6E7UIR_exports,{flagsForFuzzing:()=>n9,whoami:()=>a13});import{createRequire as createRequire174}from"node:module";var require175,init_whoami_KR6E7UIR=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/whoami-KR6E7UIR.js"(){init_chunk_4MZPEZTU();init_chunk_NCUTH6QL();require175=createRequire174(import.meta.url)}});import{createRequire as createRequire175}from"node:module";async function F20(a14,n10){let s10="octal",o13=[],p16=[];for(let t8=0;t8<a14.length;t8++){let e8=a14[t8];if(e8==="-c")o13.push("char");else if(e8==="-An"||e8==="-A"&&a14[t8+1]==="n")s10="none",e8==="-A"&&t8++;else if(e8==="-t"&&a14[t8+1]){let r7=a14[++t8];r7==="x1"?o13.push("hex"):r7==="c"?o13.push("char"):r7.startsWith("o")&&o13.push("octal")}else(!e8.startsWith("-")||e8==="-")&&p16.push(e8)}o13.length===0&&o13.push("octal");let m16=new u5(n10.limits.maxInputBytes,"od input"),A13=p16.length===0?["-"]:p16;for(let t8 of A13){if(t8==="-"){m16.append(n10.stdin);continue}let e8=t8.startsWith("/")?t8:`${n10.cwd}/${t8}`;try{let r7=await B(n10.fs,e8);n10.executionScope?.consumeInput(r7.length,"od"),m16.append(r7)}catch(r7){return e2(r7),{stdout:"",stderr:`od: ${t8}: No such file or directory
720
+ `:"",stderr:"",exitCode:0,stdoutKind:"bytes"}}var require170,u14,f14,init_chunk_LI6PTSPD=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-LI6PTSPD.js"(){require170=createRequire169(import.meta.url);u14={name:"tac",execute:c17},f14={name:"tac",flags:[],stdinType:"text",needsFiles:!0}}});var tac_YXC4HBTR_exports={};__export(tac_YXC4HBTR_exports,{flagsForFuzzing:()=>f14,tac:()=>u14});import{createRequire as createRequire170}from"node:module";var require171,init_tac_YXC4HBTR=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/tac-YXC4HBTR.js"(){init_chunk_LI6PTSPD();init_chunk_GN6CQ3J4();init_chunk_NCUTH6QL();require171=createRequire170(import.meta.url)}});import{createRequire as createRequire171}from"node:module";async function t5(e8,n10){return{stdout:`localhost
721
+ `,stderr:"",exitCode:0}}var require172,o11,s9,init_chunk_SBBYKIYU=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-SBBYKIYU.js"(){require172=createRequire171(import.meta.url);o11={name:"hostname",execute:t5},s9={name:"hostname",flags:[]}}});var hostname_CESD3CQR_exports={};__export(hostname_CESD3CQR_exports,{flagsForFuzzing:()=>s9,hostname:()=>o11});import{createRequire as createRequire172}from"node:module";var require173,init_hostname_CESD3CQR=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/hostname-CESD3CQR.js"(){init_chunk_SBBYKIYU();init_chunk_NCUTH6QL();require173=createRequire172(import.meta.url)}});import{createRequire as createRequire173}from"node:module";async function e6(t8,o13){return{stdout:`user
722
+ `,stderr:"",exitCode:0}}var require174,a13,n9,init_chunk_4MZPEZTU=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-4MZPEZTU.js"(){require174=createRequire173(import.meta.url);a13={name:"whoami",execute:e6},n9={name:"whoami",flags:[]}}});var whoami_KR6E7UIR_exports={};__export(whoami_KR6E7UIR_exports,{flagsForFuzzing:()=>n9,whoami:()=>a13});import{createRequire as createRequire174}from"node:module";var require175,init_whoami_KR6E7UIR=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/whoami-KR6E7UIR.js"(){init_chunk_4MZPEZTU();init_chunk_NCUTH6QL();require175=createRequire174(import.meta.url)}});import{createRequire as createRequire175}from"node:module";async function F20(a14,n10){let s10="octal",o13=[],p16=[];for(let t8=0;t8<a14.length;t8++){let e8=a14[t8];if(e8==="-c")o13.push("char");else if(e8==="-An"||e8==="-A"&&a14[t8+1]==="n")s10="none",e8==="-A"&&t8++;else if(e8==="-t"&&a14[t8+1]){let r7=a14[++t8];r7==="x1"?o13.push("hex"):r7==="c"?o13.push("char"):r7.startsWith("o")&&o13.push("octal")}else(!e8.startsWith("-")||e8==="-")&&p16.push(e8)}o13.length===0&&o13.push("octal");let m16=new u5(n10.limits.maxInputBytes,"od input"),A13=p16.length===0?["-"]:p16;for(let t8 of A13){if(t8==="-"){m16.append(n10.stdin);continue}let e8=t8.startsWith("/")?t8:`${n10.cwd}/${t8}`;try{let r7=await B(n10.fs,e8);n10.executionScope?.consumeInput(r7.length,"od"),m16.append(r7)}catch(r7){return e2(r7),{stdout:"",stderr:`od: ${t8}: No such file or directory
723
723
  `,exitCode:1}}}let C18=o13.includes("char");function $22(t8){return t8===0?" \\0":t8===7?" \\a":t8===8?" \\b":t8===9?" \\t":t8===10?" \\n":t8===11?" \\v":t8===12?" \\f":t8===13?" \\r":t8>=32&&t8<127?` ${String.fromCharCode(t8)}`:` ${t8.toString(8).padStart(3,"0")}`}function B17(t8){return C18?` ${t8.toString(16).padStart(2,"0")}`:` ${t8.toString(16).padStart(2,"0")}`}function w15(t8){return` ${t8.toString(8).padStart(3,"0")}`}let i22=m16.build(),u15=16,d11=new u5(Math.min(n10.limits.maxOutputSize,n10.limits.maxStringLength),"od"),h18=o13.length;if(h18>0&&i22.length>Math.floor(n10.limits.maxLoopIterations/h18))throw new f2(`od: format work limit exceeded (${n10.limits.maxLoopIterations})`,"iterations");n10.executionScope?.consumeWork(i22.length*h18,"od formatting");for(let t8=0;t8<i22.length;t8+=u15)for(let e8=0;e8<o13.length;e8++){let r7=o13[e8],l12;r7==="char"?l12=Array.from(i22.slice(t8,t8+u15),f15=>$22(f15.charCodeAt(0))):r7==="hex"?l12=Array.from(i22.slice(t8,t8+u15),f15=>B17(f15.charCodeAt(0))):l12=Array.from(i22.slice(t8,t8+u15),f15=>w15(f15.charCodeAt(0)));let c18="";e8===0&&s10!=="none"?c18=`${t8.toString(8).padStart(7,"0")} `:(e8>0||s10==="none")&&(c18=s10==="none"?"":" "),d11.append(c18+l12.join("")).append(`
724
724
  `)}return s10!=="none"&&i22.length>0&&d11.append(i22.length.toString(8).padStart(7,"0")).append(`
725
- `),{stdout:d11.build(),stderr:"",exitCode:0}}var require176,H16,W8,init_chunk_XHFP44Y4=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-XHFP44Y4.js"(){init_chunk_U7UNEMLJ();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();require176=createRequire175(import.meta.url);H16={name:"od",execute:F20},W8={name:"od",flags:[{flag:"-c",type:"boolean"},{flag:"-A",type:"value",valueHint:"string"},{flag:"-t",type:"value",valueHint:"string"},{flag:"-N",type:"value",valueHint:"number"}],stdinType:"text",needsFiles:!0}}});var od_LUHOH7CG_exports={};__export(od_LUHOH7CG_exports,{flagsForFuzzing:()=>W8,od:()=>H16});import{createRequire as createRequire176}from"node:module";var require177,init_od_LUHOH7CG=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/od-LUHOH7CG.js"(){init_chunk_XHFP44Y4();init_chunk_U7UNEMLJ();init_chunk_CBM6J4AL();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_NCUTH6QL();require177=createRequire176(import.meta.url)}});import{createRequire as createRequire177}from"node:module";var require178,o12,init_chunk_WZQNMEQW=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-WZQNMEQW.js"(){require178=createRequire177(import.meta.url),o12=class{options;inputBytes=0;outputBytes=0;workBytes=0;label;constructor(t8){this.options=t8,this.label=t8.label??"codec";for(let[i22,e8]of[["maxInputBytes",t8.maxInputBytes],["maxOutputBytes",t8.maxOutputBytes],["maxExpansionRatio",t8.maxExpansionRatio],["ratioGraceBytes",t8.ratioGraceBytes],["maxWorkBytes",t8.maxWorkBytes]])if(e8!==void 0&&(!Number.isSafeInteger(e8)||e8<0))throw new Error(`${this.label}: invalid ${i22}`)}checkpoint(){if(this.options.signal?.aborted)throw new Error(`${this.label}: operation aborted`)}acceptInput(t8){this.checkpoint(),this.inputBytes=this.addWithinLimit(this.inputBytes,t8,this.options.maxInputBytes,"input"),this.chargeWork(t8)}acceptOutput(t8){this.checkpoint();let i22=this.addWithinLimit(this.outputBytes,t8,this.options.maxOutputBytes,"output"),e8=this.options.ratioGraceBytes??1024*1024,s10=this.options.maxExpansionRatio;if(s10!==void 0&&i22>e8&&(this.inputBytes===0||i22>this.inputBytes*s10))throw new Error(`${this.label}: expansion ratio exceeds limit (${s10}:1)`);this.outputBytes=i22,this.chargeWork(t8)}get inputLength(){return this.inputBytes}get outputLength(){return this.outputBytes}chargeWork(t8){let i22=this.options.maxWorkBytes??this.options.maxInputBytes+this.options.maxOutputBytes;this.workBytes=this.addWithinLimit(this.workBytes,t8,i22,"work")}addWithinLimit(t8,i22,e8,s10){if(!Number.isSafeInteger(i22)||i22<0||i22>e8-t8)throw new Error(`${this.label}: ${s10} exceeds limit (${e8} bytes)`);return t8+i22}}}});import{createRequire as createRequire178}from"node:module";import{constants as C14,gunzipSync as _11,gzipSync as A12}from"node:zlib";function I18(e8){return e8.best?C14.Z_BEST_COMPRESSION:e8.level8?8:e8.level7?7:e8.level6?6:e8.level5?5:e8.level4?4:e8.level3?3:e8.level2?2:e8.fast?C14.Z_BEST_SPEED:C14.Z_DEFAULT_COMPRESSION}function k16(e8){if(e8.length<10)return{originalName:null,mtime:null,headerSize:0};if(e8[0]!==31||e8[1]!==139)return{originalName:null,mtime:null,headerSize:0};let t8=e8[3],o13=e8[4]|e8[5]<<8|e8[6]<<16|e8[7]<<24,r7=10;if(t8&4){if(r7+2>e8.length)return{originalName:null,mtime:null,headerSize:0};let n10=e8[r7]|e8[r7+1]<<8;r7+=2+n10}let i22=null;if(t8&8){let n10=r7;for(;r7<e8.length&&e8[r7]!==0;)r7++;r7<e8.length&&(i22=new TextDecoder().decode(e8.slice(n10,r7)),r7++)}if(t8&16){for(;r7<e8.length&&e8[r7]!==0;)r7++;r7++}return t8&2&&(r7+=2),{originalName:i22,mtime:o13>0?new Date(o13*1e3):null,headerSize:r7}}function Z8(e8){return e8.length===0||e8==="."||e8===".."||e8.includes("/")||e8.includes("\\")||/[\0-\x1f\x7f]/.test(e8)?null:e8}function q9(e8){if(e8.length<4)return 0;let t8=e8.length;return e8[t8-4]|e8[t8-3]<<8|e8[t8-2]<<16|e8[t8-1]<<24}function x22(e8){return e8.length>=2&&e8[0]===31&&e8[1]===139}function b22(e8){return Buffer.from(e8).toString("latin1")}function P14(e8){return e8.limits.maxOutputSize}function $19(e8,t8,o13,r7,i22){if(t8<=0)throw new Error("decompressed data exceeds limit (0 bytes)");let n10=new o12({maxInputBytes:o13,maxOutputBytes:t8,maxExpansionRatio:1e4,signal:r7,label:"gzip"});if(n10.acceptInput(e8.length),q9(e8)>t8)throw new Error(`decompressed data exceeds limit (${t8} bytes)`);let a14;try{let u15=Math.min(t8,Math.floor((i22?.executionScope?.remainingLiveBytes??t8*2)/2));if(u15<=0)throw new Error("gzip: live byte limit exceeded");a14=i22?.executionScope?.reserveBytes("gzip output",u15*2,"gzip");let p16=_11(e8,{maxOutputLength:u15});return n10.acceptOutput(p16.length),{data:p16,lease:a14}}catch(u15){throw a14?.release(),u15}}function O15(e8,t8,o13){let r7=new o12({maxInputBytes:o13.limits.maxInputBytes,maxOutputBytes:o13.limits.maxOutputSize,signal:o13.signal,label:"gzip"});r7.acceptInput(e8.length);let i22;try{let n10=Math.min(o13.limits.maxOutputSize,Math.floor((o13.executionScope?.remainingLiveBytes??o13.limits.maxOutputSize*2)/2));if(n10<=0)throw new Error("gzip: live byte limit exceeded");i22=o13.executionScope?.reserveBytes("gzip output",n10*2,"gzip");let s10=A12(e8,{level:t8,maxOutputLength:n10});return r7.acceptOutput(s10.length),{data:s10,lease:i22}}catch(n10){throw i22?.release(),n10}}async function T16(e8,t8,o13){let r7=await e8.fs.stat(t8);if(r7.size>e8.limits.maxInputBytes)throw new f2(`input size limit exceeded (${e8.limits.maxInputBytes} bytes)`,"string_length");let i22=e8.executionScope?.reserveBytes("gzip input",r7.size,o13);try{let n10=await e8.fs.readFileBuffer(t8);if(n10.byteLength>r7.size)throw new f2("gzip: input grew while being read","string_length");return e8.executionScope?.consumeInput(n10.byteLength,o13),{data:n10,lease:i22}}catch(n10){throw i22?.release(),n10}}async function W9(e8,t8,o13){if(t8!=="-"&&t8!=="")return T16(e8,e8.fs.resolvePath(e8.cwd,t8),o13);let r7=e8.stdin,i22=e8.executionScope?.reserveBytes("gzip input",r7.length,o13);try{return{data:Uint8Array.from(r7,n10=>n10.charCodeAt(0)),lease:i22}}catch(n10){throw i22?.release(),n10}}async function M16(e8,t8,o13,r7,i22,n10){let s10=o13.suffix,a14,u15,p16,g13=P14(e8);if(t8==="-"||t8===""){let l12=e8.stdin,d11=e8.executionScope?.reserveBytes("gzip input",l12.length,r7),f15;try{if(p16=Uint8Array.from(l12,c18=>c18.charCodeAt(0)),i22){if(!x22(p16))return o13.quiet?{stdout:"",stderr:"",exitCode:1}:{stdout:"",stderr:`${r7}: stdin: not in gzip format
725
+ `),{stdout:d11.build(),stderr:"",exitCode:0}}var require176,H16,W8,init_chunk_XHFP44Y4=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-XHFP44Y4.js"(){init_chunk_U7UNEMLJ();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();require176=createRequire175(import.meta.url);H16={name:"od",execute:F20},W8={name:"od",flags:[{flag:"-c",type:"boolean"},{flag:"-A",type:"value",valueHint:"string"},{flag:"-t",type:"value",valueHint:"string"},{flag:"-N",type:"value",valueHint:"number"}],stdinType:"text",needsFiles:!0}}});var od_LUHOH7CG_exports={};__export(od_LUHOH7CG_exports,{flagsForFuzzing:()=>W8,od:()=>H16});import{createRequire as createRequire176}from"node:module";var require177,init_od_LUHOH7CG=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/od-LUHOH7CG.js"(){init_chunk_XHFP44Y4();init_chunk_U7UNEMLJ();init_chunk_CBM6J4AL();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_NCUTH6QL();require177=createRequire176(import.meta.url)}});import{createRequire as createRequire177}from"node:module";var require178,o12,init_chunk_WZQNMEQW=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-WZQNMEQW.js"(){require178=createRequire177(import.meta.url),o12=class{options;inputBytes=0;outputBytes=0;workBytes=0;label;constructor(t8){this.options=t8,this.label=t8.label??"codec";for(let[i22,e8]of[["maxInputBytes",t8.maxInputBytes],["maxOutputBytes",t8.maxOutputBytes],["maxExpansionRatio",t8.maxExpansionRatio],["ratioGraceBytes",t8.ratioGraceBytes],["maxWorkBytes",t8.maxWorkBytes]])if(e8!==void 0&&(!Number.isSafeInteger(e8)||e8<0))throw new Error(`${this.label}: invalid ${i22}`)}checkpoint(){if(this.options.signal?.aborted)throw new Error(`${this.label}: operation aborted`)}acceptInput(t8){this.checkpoint(),this.inputBytes=this.addWithinLimit(this.inputBytes,t8,this.options.maxInputBytes,"input"),this.chargeWork(t8)}acceptOutput(t8){this.checkpoint();let i22=this.addWithinLimit(this.outputBytes,t8,this.options.maxOutputBytes,"output"),e8=this.options.ratioGraceBytes??1024*1024,s10=this.options.maxExpansionRatio;if(s10!==void 0&&i22>e8&&(this.inputBytes===0||i22>this.inputBytes*s10))throw new Error(`${this.label}: expansion ratio exceeds limit (${s10}:1)`);this.outputBytes=i22,this.chargeWork(t8)}get inputLength(){return this.inputBytes}get outputLength(){return this.outputBytes}chargeWork(t8){let i22=this.options.maxWorkBytes??this.options.maxInputBytes+this.options.maxOutputBytes;this.workBytes=this.addWithinLimit(this.workBytes,t8,i22,"work")}addWithinLimit(t8,i22,e8,s10){if(!Number.isSafeInteger(i22)||i22<0||i22>e8-t8)throw new Error(`${this.label}: ${s10} exceeds limit (${e8} bytes)`);return t8+i22}}}});import{createRequire as createRequire178}from"node:module";import{constants as C14,gunzipSync as _11,gzipSync as A12}from"node:zlib";function I18(e8){return e8.best?C14.Z_BEST_COMPRESSION:e8.level8?8:e8.level7?7:e8.level6?6:e8.level5?5:e8.level4?4:e8.level3?3:e8.level2?2:e8.fast?C14.Z_BEST_SPEED:C14.Z_DEFAULT_COMPRESSION}function k16(e8){if(e8.length<10)return{originalName:null,mtime:null,headerSize:0};if(e8[0]!==31||e8[1]!==139)return{originalName:null,mtime:null,headerSize:0};let t8=e8[3],o13=e8[4]|e8[5]<<8|e8[6]<<16|e8[7]<<24,r7=10;if(t8&4){if(r7+2>e8.length)return{originalName:null,mtime:null,headerSize:0};let n10=e8[r7]|e8[r7+1]<<8;r7+=2+n10}let i22=null;if(t8&8){let n10=r7;for(;r7<e8.length&&e8[r7]!==0;)r7++;r7<e8.length&&(i22=new TextDecoder().decode(e8.slice(n10,r7)),r7++)}if(t8&16){for(;r7<e8.length&&e8[r7]!==0;)r7++;r7++}return t8&2&&(r7+=2),{originalName:i22,mtime:o13>0?new Date(o13*1e3):null,headerSize:r7}}function Z8(e8){return e8.length===0||e8==="."||e8===".."||e8.includes("/")||e8.includes("\\")||/[\0-\x1f\x7f]/.test(e8)?null:e8}function q9(e8){if(e8.length<4)return 0;let t8=e8.length;return e8[t8-4]|e8[t8-3]<<8|e8[t8-2]<<16|e8[t8-1]<<24}function x22(e8){return e8.length>=2&&e8[0]===31&&e8[1]===139}function b22(e8){return Buffer.from(e8).toString("latin1")}function P14(e8){return e8.limits.maxOutputSize}function $19(e8,t8,o13,r7,i22){if(t8<=0)throw new Error("decompressed data exceeds limit (0 bytes)");let n10=new o12({maxInputBytes:o13,maxOutputBytes:t8,maxExpansionRatio:1e4,signal:r7,label:"gzip"});if(n10.acceptInput(e8.length),q9(e8)>t8)throw new Error(`decompressed data exceeds limit (${t8} bytes)`);let a14;try{let u15=Math.min(t8,Math.floor((i22?.executionScope?.remainingLiveBytes??t8*2)/2));if(u15<=0)throw new Error("gzip: live byte limit exceeded");a14=i22?.executionScope?.reserveBytes("gzip output",u15*2,"gzip");let p16=_11(e8,{maxOutputLength:u15});return n10.acceptOutput(p16.length),{data:p16,lease:a14}}catch(u15){throw a14?.release(),u15}}function O15(e8,t8,o13){let r7=new o12({maxInputBytes:o13.limits.maxInputBytes,maxOutputBytes:o13.limits.maxOutputSize,signal:o13.signal,label:"gzip"});r7.acceptInput(e8.length);let i22;try{let n10=Math.min(o13.limits.maxOutputSize,Math.floor((o13.executionScope?.remainingLiveBytes??o13.limits.maxOutputSize*2)/2));if(n10<=0)throw new Error("gzip: live byte limit exceeded");i22=o13.executionScope?.reserveBytes("gzip output",n10*2,"gzip");let s10=A12(e8,{level:t8,maxOutputLength:n10});return r7.acceptOutput(s10.length),{data:s10,lease:i22}}catch(n10){throw i22?.release(),n10}}async function T16(e8,t8,o13){let r7=await e8.fs.stat(t8);if(r7.size>e8.limits.maxInputBytes)throw new f2(`input size limit exceeded (${e8.limits.maxInputBytes} bytes)`,"string_length");let i22=e8.executionScope?.reserveBytes("gzip input",r7.size,o13);try{let n10=await e8.fs.readFileBuffer(t8);if(n10.byteLength>r7.size)throw new f2("gzip: input grew while being read","string_length");return e8.executionScope?.consumeInput(n10.byteLength,o13),{data:n10,lease:i22}}catch(n10){throw i22?.release(),n10}}async function W9(e8,t8,o13){if(t8!=="-"&&t8!=="")return T16(e8,e8.fs.resolvePath(e8.cwd,t8),o13);let r7=e8.stdin,i22=e8.executionScope?.reserveBytes("gzip input",r7.length,o13);try{return{data:Uint8Array.from(r7,n10=>n10.charCodeAt(0)),lease:i22}}catch(n10){throw i22?.release(),n10}}async function M16(e8,t8,o13,r7,i22,n10){let s10=o13.suffix,a14,u15,p16,g13=P14(e8);if(t8==="-"||t8===""){let l12=e8.stdin,d11=e8.executionScope?.reserveBytes("gzip input",l12.length,r7),f15;try{if(p16=Uint8Array.from(l12,c18=>c18.charCodeAt(0)),i22){if(!x22(p16))return o13.quiet?{stdout:"",stderr:"",exitCode:1}:{stdout:"",stderr:`${r7}: stdin: not in gzip format
726
726
  `,exitCode:1};try{let c18=$19(p16,g13,e8.limits.maxInputBytes,e8.signal,e8);return f15=c18.lease,{stdout:b22(c18.data),stderr:"",exitCode:0}}catch(c18){e2(c18);let U12=c18 instanceof Error?c18.message:"unknown error";return{stdout:"",stderr:`${r7}: stdin: ${U12}
727
727
  `,exitCode:1}}}else{let c18=O15(p16,I18(o13),e8);return f15=c18.lease,{stdout:b22(c18.data),stderr:"",exitCode:0}}}finally{f15?.release(),d11?.release()}}a14=e8.fs.resolvePath(e8.cwd,t8);try{let l12=await e8.fs.stat(a14);if(l12.size>e8.limits.maxInputBytes)return{stdout:"",stderr:`${r7}: ${t8}: input size limit exceeded (${e8.limits.maxInputBytes} bytes)
728
728
  `,exitCode:1};if(l12.isDirectory)return o13.recursive?await K8(e8,a14,o13,r7,i22,n10):o13.quiet?{stdout:"",stderr:"",exitCode:1}:{stdout:"",stderr:`${r7}: ${t8}: is a directory -- ignored
@@ -745,7 +745,7 @@ Otherwise, lists all available commands.
745
745
  `,exitCode:1};try{return $19(i22,P14(e8),e8.limits.maxInputBytes,e8.signal,e8).lease?.release(),o13.verbose?{stdout:"",stderr:`${t8}: OK
746
746
  `,exitCode:0}:{stdout:"",stderr:"",exitCode:0}}catch(s10){e2(s10);let a14=s10 instanceof Error?s10.message:"invalid";return{stdout:"",stderr:`${r7}: ${t8}: ${a14}
747
747
  `,exitCode:1}}}finally{n10?.release()}}async function S14(e8,t8,o13){let r7=o13==="zcat"?R16:o13==="gunzip"?H17:D15;if(o5(e8))return s5(r7);let i22=x5(o13,e8,G10);if(!i22.ok)return i22.error.stderr.includes("unrecognized option"),i22.error;let n10=i22.result.flags,s10=i22.result.positional,a14=o13==="gunzip"||o13==="zcat"||n10.decompress||n10.uncompress,u15=o13==="zcat"||n10.stdout||n10.toStdout;if(n10.list){s10.length===0&&(s10=["-"]);let h18=` compressed uncompressed ratio uncompressed_name
748
- `,l12="",d11=0;for(let f15 of s10){let c18=await j17(t8,f15,n10,o13);h18+=c18.stdout,l12+=c18.stderr,c18.exitCode!==0&&(d11=c18.exitCode)}return{stdout:h18,stderr:l12,exitCode:d11}}if(n10.test){s10.length===0&&(s10=["-"]);let h18="",l12="",d11=0;for(let f15 of s10){let c18=await J8(t8,f15,n10,o13);h18+=c18.stdout,l12+=c18.stderr,c18.exitCode!==0&&(d11=c18.exitCode)}return{stdout:h18,stderr:l12,exitCode:d11}}s10.length===0&&(s10=["-"]);let p16="",g13="",y14=0;for(let h18 of s10){let l12=await M16(t8,h18,n10,o13,a14,u15);p16+=l12.stdout,g13+=l12.stderr,l12.exitCode!==0&&(y14=l12.exitCode)}return{stdout:p16,stderr:g13,exitCode:y14}}var require179,D15,H17,R16,G10,se8,ie5,le7,ue4,ae8,de7,init_chunk_MHZF23KB=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-MHZF23KB.js"(){init_chunk_WZQNMEQW();init_chunk_U7UNEMLJ();init_chunk_DIWMSSQY();init_chunk_2WBUTDF5();init_chunk_EFORKKSH();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();require179=createRequire178(import.meta.url),D15={name:"gzip",summary:"compress or expand files",usage:"gzip [OPTION]... [FILE]...",description:`Compress FILEs (by default, in-place).
748
+ `,l12="",d11=0;for(let f15 of s10){let c18=await j17(t8,f15,n10,o13);h18+=c18.stdout,l12+=c18.stderr,c18.exitCode!==0&&(d11=c18.exitCode)}return{stdout:h18,stderr:l12,exitCode:d11}}if(n10.test){s10.length===0&&(s10=["-"]);let h18="",l12="",d11=0;for(let f15 of s10){let c18=await J8(t8,f15,n10,o13);h18+=c18.stdout,l12+=c18.stderr,c18.exitCode!==0&&(d11=c18.exitCode)}return{stdout:h18,stderr:l12,exitCode:d11}}s10.length===0&&(s10=["-"]);let p16="",g13="",y14=0;for(let h18 of s10){let l12=await M16(t8,h18,n10,o13,a14,u15);p16+=l12.stdout,g13+=l12.stderr,l12.exitCode!==0&&(y14=l12.exitCode)}return{stdout:p16,stderr:g13,exitCode:y14}}var require179,D15,H17,R16,G10,se8,ie5,le7,ue4,ae8,de7,init_chunk_MHZF23KB=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-MHZF23KB.js"(){init_chunk_WZQNMEQW();init_chunk_U7UNEMLJ();init_chunk_DIWMSSQY();init_chunk_2WBUTDF5();init_chunk_EFORKKSH();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();require179=createRequire178(import.meta.url),D15={name:"gzip",summary:"compress or expand files",usage:"gzip [OPTION]... [FILE]...",description:`Compress FILEs (by default, in-place).
749
749
 
750
750
  When no FILE is given, or when FILE is -, read from standard input.
751
751
 
@@ -753,7 +753,7 @@ With -d, decompress instead.`,options:["-c, --stdout write to standard outp
753
753
 
754
754
  When no FILE is given, or when FILE is -, read from standard input.`,options:["-c, --stdout write to standard output, keep original files","-f, --force force overwrite of output file","-k, --keep keep (don't delete) input files","-l, --list list compressed file contents","-n, --no-name do not restore the original name and timestamp","-N, --name restore the original file name and timestamp","-q, --quiet suppress all warnings","-r, --recursive operate recursively on directories","-S, --suffix=SUF use suffix SUF on compressed files (default: .gz)","-t, --test test compressed file integrity","-v, --verbose verbose mode"," --help display this help and exit"]},R16={name:"zcat",summary:"decompress files to stdout",usage:"zcat [OPTION]... [FILE]...",description:`Decompress FILEs to standard output.
755
755
 
756
- When no FILE is given, or when FILE is -, read from standard input.`,options:["-f, --force force; read compressed data even from a terminal","-l, --list list compressed file contents","-q, --quiet suppress all warnings","-S, --suffix=SUF use suffix SUF on compressed files (default: .gz)","-t, --test test compressed file integrity","-v, --verbose verbose mode"," --help display this help and exit"]},G10={stdout:{short:"c",long:"stdout",type:"boolean"},toStdout:{long:"to-stdout",type:"boolean"},decompress:{short:"d",long:"decompress",type:"boolean"},uncompress:{long:"uncompress",type:"boolean"},force:{short:"f",long:"force",type:"boolean"},keep:{short:"k",long:"keep",type:"boolean"},list:{short:"l",long:"list",type:"boolean"},noName:{short:"n",long:"no-name",type:"boolean"},name:{short:"N",long:"name",type:"boolean"},quiet:{short:"q",long:"quiet",type:"boolean"},recursive:{short:"r",long:"recursive",type:"boolean"},suffix:{short:"S",long:"suffix",type:"string",default:".gz"},test:{short:"t",long:"test",type:"boolean"},verbose:{short:"v",long:"verbose",type:"boolean"},fast:{short:"1",long:"fast",type:"boolean"},level2:{short:"2",type:"boolean"},level3:{short:"3",type:"boolean"},level4:{short:"4",type:"boolean"},level5:{short:"5",type:"boolean"},level6:{short:"6",type:"boolean"},level7:{short:"7",type:"boolean"},level8:{short:"8",type:"boolean"},best:{short:"9",long:"best",type:"boolean"}};se8={name:"gzip",async execute(e8,t8){return{...await S14(e8,t8,"gzip"),stdoutEncoding:"binary"}}},ie5={name:"gunzip",async execute(e8,t8){return{...await S14(e8,t8,"gunzip"),stdoutEncoding:"binary"}}},le7={name:"zcat",async execute(e8,t8){return{...await S14(e8,t8,"zcat"),stdoutEncoding:"binary"}}},ue4={name:"gzip",flags:[{flag:"-c",type:"boolean"},{flag:"-d",type:"boolean"},{flag:"-f",type:"boolean"},{flag:"-k",type:"boolean"},{flag:"-l",type:"boolean"},{flag:"-n",type:"boolean"},{flag:"-q",type:"boolean"},{flag:"-r",type:"boolean"},{flag:"-t",type:"boolean"},{flag:"-v",type:"boolean"},{flag:"-1",type:"boolean"},{flag:"-9",type:"boolean"}],stdinType:"binary",needsFiles:!0},ae8={name:"gunzip",flags:[{flag:"-c",type:"boolean"},{flag:"-f",type:"boolean"},{flag:"-k",type:"boolean"},{flag:"-q",type:"boolean"},{flag:"-v",type:"boolean"}],stdinType:"binary",needsFiles:!0},de7={name:"zcat",flags:[{flag:"-f",type:"boolean"},{flag:"-q",type:"boolean"},{flag:"-v",type:"boolean"}],stdinType:"binary",needsFiles:!0}}});var gzip_GQC6CWVL_exports={};__export(gzip_GQC6CWVL_exports,{flagsForFuzzing:()=>ue4,gunzipCommand:()=>ie5,gunzipFlagsForFuzzing:()=>ae8,gzipCommand:()=>se8,zcatCommand:()=>le7,zcatFlagsForFuzzing:()=>de7});import{createRequire as createRequire179}from"node:module";var require180,init_gzip_GQC6CWVL=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/gzip-GQC6CWVL.js"(){init_chunk_MHZF23KB();init_chunk_WZQNMEQW();init_chunk_U7UNEMLJ();init_chunk_CBM6J4AL();init_chunk_DIWMSSQY();init_chunk_2WBUTDF5();init_chunk_YUSFCOM7();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_FOCWZZDE();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require180=createRequire179(import.meta.url)}});var require_bitreader=__commonJS({"../../../node_modules/.pnpm/seek-bzip@2.0.0/node_modules/seek-bzip/lib/bitreader.js"(exports,module){var BITMASK=[0,1,3,7,15,31,63,127,255],BitReader=function(stream){this.stream=stream,this.bitOffset=0,this.curByte=0,this.hasByte=!1};BitReader.prototype._ensureByte=function(){this.hasByte||(this.curByte=this.stream.readByte(),this.hasByte=!0)};BitReader.prototype.read=function(bits){for(var result=0;bits>0;){this._ensureByte();var remaining=8-this.bitOffset;if(bits>=remaining)result<<=remaining,result|=BITMASK[remaining]&this.curByte,this.hasByte=!1,this.bitOffset=0,bits-=remaining;else{result<<=bits;var shift=remaining-bits;result|=(this.curByte&BITMASK[bits]<<shift)>>shift,this.bitOffset+=bits,bits=0}}return result};BitReader.prototype.seek=function(pos){var n_bit=pos%8,n_byte=(pos-n_bit)/8;this.bitOffset=n_bit,this.stream.seek(n_byte),this.hasByte=!1};BitReader.prototype.pi=function(){var buf=new Buffer(6),i22;for(i22=0;i22<buf.length;i22++)buf[i22]=this.read(8);return buf.toString("hex")};module.exports=BitReader}});var require_stream=__commonJS({"../../../node_modules/.pnpm/seek-bzip@2.0.0/node_modules/seek-bzip/lib/stream.js"(exports,module){var Stream=function(){};Stream.prototype.readByte=function(){throw new Error("abstract method readByte() not implemented")};Stream.prototype.read=function(buffer,bufOffset,length){for(var bytesRead=0;bytesRead<length;){var c18=this.readByte();if(c18<0)return bytesRead===0?-1:bytesRead;buffer[bufOffset++]=c18,bytesRead++}return bytesRead};Stream.prototype.seek=function(new_pos){throw new Error("abstract method seek() not implemented")};Stream.prototype.writeByte=function(_byte){throw new Error("abstract method readByte() not implemented")};Stream.prototype.write=function(buffer,bufOffset,length){var i22;for(i22=0;i22<length;i22++)this.writeByte(buffer[bufOffset++]);return length};Stream.prototype.flush=function(){};module.exports=Stream}});var require_crc32=__commonJS({"../../../node_modules/.pnpm/seek-bzip@2.0.0/node_modules/seek-bzip/lib/crc32.js"(exports,module){module.exports=(function(){var crc32Lookup=new Uint32Array([0,79764919,159529838,222504665,319059676,398814059,445009330,507990021,638119352,583659535,797628118,726387553,890018660,835552979,1015980042,944750013,1276238704,1221641927,1167319070,1095957929,1595256236,1540665371,1452775106,1381403509,1780037320,1859660671,1671105958,1733955601,2031960084,2111593891,1889500026,1952343757,2552477408,2632100695,2443283854,2506133561,2334638140,2414271883,2191915858,2254759653,3190512472,3135915759,3081330742,3009969537,2905550212,2850959411,2762807018,2691435357,3560074640,3505614887,3719321342,3648080713,3342211916,3287746299,3467911202,3396681109,4063920168,4143685023,4223187782,4286162673,3779000052,3858754371,3904687514,3967668269,881225847,809987520,1023691545,969234094,662832811,591600412,771767749,717299826,311336399,374308984,453813921,533576470,25881363,88864420,134795389,214552010,2023205639,2086057648,1897238633,1976864222,1804852699,1867694188,1645340341,1724971778,1587496639,1516133128,1461550545,1406951526,1302016099,1230646740,1142491917,1087903418,2896545431,2825181984,2770861561,2716262478,3215044683,3143675388,3055782693,3001194130,2326604591,2389456536,2200899649,2280525302,2578013683,2640855108,2418763421,2498394922,3769900519,3832873040,3912640137,3992402750,4088425275,4151408268,4197601365,4277358050,3334271071,3263032808,3476998961,3422541446,3585640067,3514407732,3694837229,3640369242,1762451694,1842216281,1619975040,1682949687,2047383090,2127137669,1938468188,2001449195,1325665622,1271206113,1183200824,1111960463,1543535498,1489069629,1434599652,1363369299,622672798,568075817,748617968,677256519,907627842,853037301,1067152940,995781531,51762726,131386257,177728840,240578815,269590778,349224269,429104020,491947555,4046411278,4126034873,4172115296,4234965207,3794477266,3874110821,3953728444,4016571915,3609705398,3555108353,3735388376,3664026991,3290680682,3236090077,3449943556,3378572211,3174993278,3120533705,3032266256,2961025959,2923101090,2868635157,2813903052,2742672763,2604032198,2683796849,2461293480,2524268063,2284983834,2364738477,2175806836,2238787779,1569362073,1498123566,1409854455,1355396672,1317987909,1246755826,1192025387,1137557660,2072149281,2135122070,1912620623,1992383480,1753615357,1816598090,1627664531,1707420964,295390185,358241886,404320391,483945776,43990325,106832002,186451547,266083308,932423249,861060070,1041341759,986742920,613929101,542559546,756411363,701822548,3316196985,3244833742,3425377559,3370778784,3601682597,3530312978,3744426955,3689838204,3819031489,3881883254,3928223919,4007849240,4037393693,4100235434,4180117107,4259748804,2310601993,2373574846,2151335527,2231098320,2596047829,2659030626,2470359227,2550115596,2947551409,2876312838,2788305887,2733848168,3165939309,3094707162,3040238851,2985771188]),CRC32=function(){var crc=4294967295;this.getCRC=function(){return~crc>>>0},this.updateCRC=function(value){crc=crc<<8^crc32Lookup[(crc>>>24^value)&255]},this.updateCRCRun=function(value,count){for(;count-- >0;)crc=crc<<8^crc32Lookup[(crc>>>24^value)&255]}};return CRC32})()}});var require_package=__commonJS({"../../../node_modules/.pnpm/seek-bzip@2.0.0/node_modules/seek-bzip/package.json"(exports,module){module.exports={name:"seek-bzip",version:"2.0.0",contributors:["C. Scott Ananian (http://cscott.net)","Eli Skeggs","Kevin Kwok","Rob Landley (http://landley.net)"],description:"a pure-JavaScript Node.JS module for random-access decoding bzip2 data",main:"./lib/index.js",repository:{type:"git",url:"https://github.com/cscott/seek-bzip.git"},license:"MIT",bin:{"seek-bunzip":"./bin/seek-bunzip","seek-table":"./bin/seek-bzip-table"},directories:{test:"test"},dependencies:{commander:"^6.0.0"},devDependencies:{fibers:"^5.0.0",mocha:"^8.1.0"},scripts:{test:"mocha"}}}});var require_lib=__commonJS({"../../../node_modules/.pnpm/seek-bzip@2.0.0/node_modules/seek-bzip/lib/index.js"(exports,module){var BitReader=require_bitreader(),Stream=require_stream(),CRC32=require_crc32(),pjson=require_package(),MAX_HUFCODE_BITS=20,MAX_SYMBOLS=258,SYMBOL_RUNA=0,SYMBOL_RUNB=1,MIN_GROUPS=2,MAX_GROUPS=6,GROUP_SIZE=50,WHOLEPI="314159265359",SQRTPI="177245385090",mtf=function(array,index){var src=array[index],i22;for(i22=index;i22>0;i22--)array[i22]=array[i22-1];return array[0]=src,src},Err={OK:0,LAST_BLOCK:-1,NOT_BZIP_DATA:-2,UNEXPECTED_INPUT_EOF:-3,UNEXPECTED_OUTPUT_EOF:-4,DATA_ERROR:-5,OUT_OF_MEMORY:-6,OBSOLETE_INPUT:-7,END_OF_BLOCK:-8},ErrorMessages={};ErrorMessages[Err.LAST_BLOCK]="Bad file checksum";ErrorMessages[Err.NOT_BZIP_DATA]="Not bzip data";ErrorMessages[Err.UNEXPECTED_INPUT_EOF]="Unexpected input EOF";ErrorMessages[Err.UNEXPECTED_OUTPUT_EOF]="Unexpected output EOF";ErrorMessages[Err.DATA_ERROR]="Data error";ErrorMessages[Err.OUT_OF_MEMORY]="Out of memory";ErrorMessages[Err.OBSOLETE_INPUT]="Obsolete (pre 0.9.5) bzip format not supported.";var _throw=function(status,optDetail){var msg=ErrorMessages[status]||"unknown error";optDetail&&(msg+=": "+optDetail);var e8=new TypeError(msg);throw e8.errorCode=status,e8},Bunzip=function(inputStream,outputStream){this.writePos=this.writeCurrent=this.writeCount=0,this._start_bunzip(inputStream,outputStream)};Bunzip.prototype._init_block=function(){var moreBlocks=this._get_next_block();return moreBlocks?(this.blockCRC=new CRC32,!0):(this.writeCount=-1,!1)};Bunzip.prototype._start_bunzip=function(inputStream,outputStream){var buf=new Buffer(4);(inputStream.read(buf,0,4)!==4||String.fromCharCode(buf[0],buf[1],buf[2])!=="BZh")&&_throw(Err.NOT_BZIP_DATA,"bad magic");var level=buf[3]-48;(level<1||level>9)&&_throw(Err.NOT_BZIP_DATA,"level out of range"),this.reader=new BitReader(inputStream),this.dbufSize=1e5*level,this.nextoutput=0,this.outputStream=outputStream,this.streamCRC=0};Bunzip.prototype._get_next_block=function(){var i22,j21,k19,reader=this.reader,h18=reader.pi();if(h18===SQRTPI)return!1;h18!==WHOLEPI&&_throw(Err.NOT_BZIP_DATA),this.targetBlockCRC=reader.read(32)>>>0,this.streamCRC=(this.targetBlockCRC^(this.streamCRC<<1|this.streamCRC>>>31))>>>0,reader.read(1)&&_throw(Err.OBSOLETE_INPUT);var origPointer=reader.read(24);origPointer>this.dbufSize&&_throw(Err.DATA_ERROR,"initial position out of bounds");var t8=reader.read(16),symToByte=new Buffer(256),symTotal=0;for(i22=0;i22<16;i22++)if(t8&1<<15-i22){var o13=i22*16;for(k19=reader.read(16),j21=0;j21<16;j21++)k19&1<<15-j21&&(symToByte[symTotal++]=o13+j21)}var groupCount=reader.read(3);(groupCount<MIN_GROUPS||groupCount>MAX_GROUPS)&&_throw(Err.DATA_ERROR);var nSelectors=reader.read(15);nSelectors===0&&_throw(Err.DATA_ERROR);var mtfSymbol=new Buffer(256);for(i22=0;i22<groupCount;i22++)mtfSymbol[i22]=i22;var selectors=new Buffer(nSelectors);for(i22=0;i22<nSelectors;i22++){for(j21=0;reader.read(1);j21++)j21>=groupCount&&_throw(Err.DATA_ERROR);selectors[i22]=mtf(mtfSymbol,j21)}var symCount=symTotal+2,groups=[],hufGroup;for(j21=0;j21<groupCount;j21++){var length=new Buffer(symCount),temp=new Uint16Array(MAX_HUFCODE_BITS+1);for(t8=reader.read(5),i22=0;i22<symCount;i22++){for(;(t8<1||t8>MAX_HUFCODE_BITS)&&_throw(Err.DATA_ERROR),!!reader.read(1);)reader.read(1)?t8--:t8++;length[i22]=t8}var minLen,maxLen;for(minLen=maxLen=length[0],i22=1;i22<symCount;i22++)length[i22]>maxLen?maxLen=length[i22]:length[i22]<minLen&&(minLen=length[i22]);hufGroup={},groups.push(hufGroup),hufGroup.permute=new Uint16Array(MAX_SYMBOLS),hufGroup.limit=new Uint32Array(MAX_HUFCODE_BITS+2),hufGroup.base=new Uint32Array(MAX_HUFCODE_BITS+1),hufGroup.minLen=minLen,hufGroup.maxLen=maxLen;var pp2=0;for(i22=minLen;i22<=maxLen;i22++)for(temp[i22]=hufGroup.limit[i22]=0,t8=0;t8<symCount;t8++)length[t8]===i22&&(hufGroup.permute[pp2++]=t8);for(i22=0;i22<symCount;i22++)temp[length[i22]]++;for(pp2=t8=0,i22=minLen;i22<maxLen;i22++)pp2+=temp[i22],hufGroup.limit[i22]=pp2-1,pp2<<=1,t8+=temp[i22],hufGroup.base[i22+1]=pp2-t8;hufGroup.limit[maxLen+1]=Number.MAX_VALUE,hufGroup.limit[maxLen]=pp2+temp[maxLen]-1,hufGroup.base[minLen]=0}var byteCount=new Uint32Array(256);for(i22=0;i22<256;i22++)mtfSymbol[i22]=i22;var runPos=0,dbufCount=0,selector=0,uc3,dbuf=this.dbuf=new Uint32Array(this.dbufSize);for(symCount=0;;){for(symCount--||(symCount=GROUP_SIZE-1,selector>=nSelectors&&_throw(Err.DATA_ERROR),hufGroup=groups[selectors[selector++]]),i22=hufGroup.minLen,j21=reader.read(i22);i22>hufGroup.maxLen&&_throw(Err.DATA_ERROR),!(j21<=hufGroup.limit[i22]);i22++)j21=j21<<1|reader.read(1);j21-=hufGroup.base[i22],(j21<0||j21>=MAX_SYMBOLS)&&_throw(Err.DATA_ERROR);var nextSym=hufGroup.permute[j21];if(nextSym===SYMBOL_RUNA||nextSym===SYMBOL_RUNB){runPos||(runPos=1,t8=0),nextSym===SYMBOL_RUNA?t8+=runPos:t8+=2*runPos,runPos<<=1;continue}if(runPos)for(runPos=0,dbufCount+t8>this.dbufSize&&_throw(Err.DATA_ERROR),uc3=symToByte[mtfSymbol[0]],byteCount[uc3]+=t8;t8--;)dbuf[dbufCount++]=uc3;if(nextSym>symTotal)break;dbufCount>=this.dbufSize&&_throw(Err.DATA_ERROR),i22=nextSym-1,uc3=mtf(mtfSymbol,i22),uc3=symToByte[uc3],byteCount[uc3]++,dbuf[dbufCount++]=uc3}for((origPointer<0||origPointer>=dbufCount)&&_throw(Err.DATA_ERROR),j21=0,i22=0;i22<256;i22++)k19=j21+byteCount[i22],byteCount[i22]=j21,j21=k19;for(i22=0;i22<dbufCount;i22++)uc3=dbuf[i22]&255,dbuf[byteCount[uc3]]|=i22<<8,byteCount[uc3]++;var pos=0,current=0,run=0;return dbufCount&&(pos=dbuf[origPointer],current=pos&255,pos>>=8,run=-1),this.writePos=pos,this.writeCurrent=current,this.writeCount=dbufCount,this.writeRun=run,!0};Bunzip.prototype._read_bunzip=function(outputBuffer,len){var copies,previous,outbyte;if(this.writeCount<0)return 0;for(var gotcount=0,dbuf=this.dbuf,pos=this.writePos,current=this.writeCurrent,dbufCount=this.writeCount,outputsize=this.outputsize,run=this.writeRun;dbufCount;){for(dbufCount--,previous=current,pos=dbuf[pos],current=pos&255,pos>>=8,run++===3?(copies=current,outbyte=previous,current=-1):(copies=1,outbyte=current),this.blockCRC.updateCRCRun(outbyte,copies);copies--;)this.outputStream.writeByte(outbyte),this.nextoutput++;current!=previous&&(run=0)}return this.writeCount=dbufCount,this.blockCRC.getCRC()!==this.targetBlockCRC&&_throw(Err.DATA_ERROR,"Bad block CRC (got "+this.blockCRC.getCRC().toString(16)+" expected "+this.targetBlockCRC.toString(16)+")"),this.nextoutput};var coerceInputStream=function(input){if("readByte"in input)return input;var inputStream=new Stream;return inputStream.pos=0,inputStream.readByte=function(){return input[this.pos++]},inputStream.seek=function(pos){this.pos=pos},inputStream.eof=function(){return this.pos>=input.length},inputStream},coerceOutputStream=function(output){var outputStream=new Stream,resizeOk=!0;if(output)if(typeof output=="number")outputStream.buffer=new Buffer(output),resizeOk=!1;else{if("writeByte"in output)return output;outputStream.buffer=output,resizeOk=!1}else outputStream.buffer=new Buffer(16384);return outputStream.pos=0,outputStream.writeByte=function(_byte){if(resizeOk&&this.pos>=this.buffer.length){var newBuffer=new Buffer(this.buffer.length*2);this.buffer.copy(newBuffer),this.buffer=newBuffer}this.buffer[this.pos++]=_byte},outputStream.getBuffer=function(){if(this.pos!==this.buffer.length){if(!resizeOk)throw new TypeError("outputsize does not match decoded input");var newBuffer=new Buffer(this.pos);this.buffer.copy(newBuffer,0,0,this.pos),this.buffer=newBuffer}return this.buffer},outputStream._coerced=!0,outputStream};Bunzip.Err=Err;Bunzip.decode=function(input,output,multistream){for(var inputStream=coerceInputStream(input),outputStream=coerceOutputStream(output),bz=new Bunzip(inputStream,outputStream);!("eof"in inputStream&&inputStream.eof());)if(bz._init_block())bz._read_bunzip();else{var targetStreamCRC=bz.reader.read(32)>>>0;if(targetStreamCRC!==bz.streamCRC&&_throw(Err.DATA_ERROR,"Bad stream CRC (got "+bz.streamCRC.toString(16)+" expected "+targetStreamCRC.toString(16)+")"),multistream&&"eof"in inputStream&&!inputStream.eof())bz._start_bunzip(inputStream,outputStream);else break}if("getBuffer"in outputStream)return outputStream.getBuffer()};Bunzip.decodeBlock=function(input,pos,output){var inputStream=coerceInputStream(input),outputStream=coerceOutputStream(output),bz=new Bunzip(inputStream,outputStream);bz.reader.seek(pos);var moreBlocks=bz._get_next_block();if(moreBlocks&&(bz.blockCRC=new CRC32,bz.writeCopies=0,bz._read_bunzip()),"getBuffer"in outputStream)return outputStream.getBuffer()};Bunzip.table=function(input,callback,multistream){var inputStream=new Stream;inputStream.delegate=coerceInputStream(input),inputStream.pos=0,inputStream.readByte=function(){return this.pos++,this.delegate.readByte()},inputStream.delegate.eof&&(inputStream.eof=inputStream.delegate.eof.bind(inputStream.delegate));var outputStream=new Stream;outputStream.pos=0,outputStream.writeByte=function(){this.pos++};for(var bz=new Bunzip(inputStream,outputStream),blockSize=bz.dbufSize;!("eof"in inputStream&&inputStream.eof());){var position=inputStream.pos*8+bz.reader.bitOffset;if(bz.reader.hasByte&&(position-=8),bz._init_block()){var start=outputStream.pos;bz._read_bunzip(),callback(position,outputStream.pos-start)}else{var crc=bz.reader.read(32);if(multistream&&"eof"in inputStream&&!inputStream.eof())bz._start_bunzip(inputStream,outputStream),console.assert(bz.dbufSize===blockSize,"shouldn't change block size within multistream file");else break}}};Bunzip.Stream=Stream;Bunzip.version=pjson.version;Bunzip.license=pjson.license;module.exports=Bunzip}});var require_node_liblzma=__commonJS({"unavailable-package:node-liblzma"(){throw new Error("node-liblzma is not available in this shell.")}});var require_zstd=__commonJS({"unavailable-package:@mongodb-js/zstd"(){throw new Error("@mongodb-js/zstd is not available in this shell.")}});import{createRequire as createRequire180}from"node:module";function P15(e8,t8,r7,n10){n10&&I19.encodeInto(n10,e8.subarray(t8,t8+r7))}function j18(e8,t8,r7,n10){if(n10===void 0)return;let i22=n10.toString(8).padStart(r7-1,"0");I19.encodeInto(i22,e8.subarray(t8,t8+r7-1))}function F21(e8,t8,r7){let n10=e8.indexOf(0,t8),i22=n10===-1||n10>t8+r7?t8+r7:n10;return Q8.decode(e8.subarray(t8,i22))}function me7(e8,t8,r7){let n10=0,i22=t8+r7;for(let s10=t8;s10<i22;s10++){let a14=e8[s10];if(a14===0)break;a14!==32&&(n10=n10*8+(a14-48))}return n10}function Y10(e8,t8,r7){if(e8[t8]&128){let n10=0;n10=e8[t8]&127;for(let i22=1;i22<r7;i22++)n10=n10*256+e8[t8+i22];if(!Number.isSafeInteger(n10))throw new Error("TAR number too large");return n10}return me7(e8,t8,r7)}async function Ne5(e8){if(e8==null)return V7;if(e8 instanceof Uint8Array)return e8;if(typeof e8=="string")return I19.encode(e8);if(e8 instanceof ArrayBuffer)return new Uint8Array(e8);if(e8 instanceof Blob)return new Uint8Array(await e8.arrayBuffer());throw new TypeError("Unsupported content type for entry body.")}function he5(e8,t8){let{strip:r7,filter:n10,map:i22}=t8;if(!r7&&!n10&&!i22)return e8;let s10={...e8};if(r7&&r7>0){let o13=Te3(s10.name,r7);if(!o13)return null;if(s10.name=s10.type==="directory"&&!o13.endsWith("/")?`${o13}/`:o13,s10.linkname){let c18=s10.linkname.startsWith("/");if(c18||s10.type==="link"){let l12=Te3(s10.linkname,r7);s10.linkname=c18?`/${l12}`||"/":l12}}}if(n10?.(s10)===!1)return null;let a14=i22?i22(s10):s10;return a14&&(!a14.name||!a14.name.trim()||a14.name==="."||a14.name==="/")?null:a14}function lt5(){let e8=new Array(K9),t8=e8.length-1,r7=0,n10=0,i22=0,s10=o13=>{let c18=e8[r7];o13===c18.length?(e8[r7]=V7,r7=r7+1&t8):e8[r7]=c18.subarray(o13),i22-=o13,i22===0&&e8.length>K9&&(e8=new Array(K9),t8=K9-1,r7=0,n10=0)};function a14(o13,c18){if(c18){let y14=0,d11=Math.min(o13,i22);for(;d11>0;){let m16=e8[r7],p16=Math.min(d11,m16.length),b23=p16===m16.length?m16:m16.subarray(0,p16);if(s10(p16),d11-=p16,y14+=p16,!c18(b23))break}return y14}if(i22<o13)return null;if(o13===0)return V7;let l12=e8[r7];if(l12.length>=o13){let y14=l12.length===o13?l12:l12.subarray(0,o13);return s10(o13),y14}let f15=new Uint8Array(o13),u15=0,h18=o13;for(;h18>0;){let y14=e8[r7],d11=Math.min(h18,y14.length);f15.set(d11===y14.length?y14:y14.subarray(0,d11),u15),u15+=d11,h18-=d11,s10(d11)}return f15}return{push:o13=>{if(o13.length===0)return;let c18=n10+1&t8;if(c18===r7){let l12=e8.length,f15=l12*2,u15=new Array(f15),h18=n10-r7+l12&l12-1;if(r7<n10)for(let y14=0;y14<h18;y14++)u15[y14]=e8[r7+y14];else if(h18>0){let y14=l12-r7;for(let d11=0;d11<y14;d11++)u15[d11]=e8[r7+d11];for(let d11=0;d11<n10;d11++)u15[y14+d11]=e8[d11]}e8=u15,t8=f15-1,r7=0,n10=h18,c18=n10+1&t8}e8[n10]=o13,n10=c18,i22+=o13.length},available:()=>i22,peek:o13=>{if(i22<o13)return null;if(o13===0)return V7;let c18=e8[r7];if(c18.length>=o13)return c18.length===o13?c18:c18.subarray(0,o13);let l12=new Uint8Array(o13),f15=0,u15=r7;for(;f15<o13;){let h18=e8[u15],y14=Math.min(o13-f15,h18.length);y14===h18.length?l12.set(h18,f15):l12.set(h18.subarray(0,y14),f15),f15+=y14,u15=u15+1&t8}return l12},discard:o13=>{if(o13>i22)throw new Error("Too many bytes consumed");if(o13===0)return;let c18=o13;for(;c18>0;){let l12=e8[r7],f15=Math.min(c18,l12.length);s10(f15),c18-=f15}},pull:a14}}function ut3(e8){let t8=me7(e8,148,8),r7=0;for(let n10=0;n10<e8.length;n10++)n10>=148&&n10<156?r7+=de8:r7+=e8[n10];return t8===r7}function dt3(e8){e8.fill(de8,148,156);let t8=0;for(let r7 of e8)t8+=r7;for(let r7=153;r7>=148;r7--)e8[r7]=(t8&7)+ft4,t8>>=3;e8[154]=0,e8[155]=de8}function ht3(e8){let t8={};I19.encode(e8.name).length>100&&Ue3(e8.name)===null&&(t8.path=e8.name),e8.linkname&&I19.encode(e8.linkname).length>100&&(t8.linkpath=e8.linkname),e8.uname&&I19.encode(e8.uname).length>32&&(t8.uname=e8.uname),e8.gname&&I19.encode(e8.gname).length>32&&(t8.gname=e8.gname),e8.uid!=null&&e8.uid>2097151&&(t8.uid=String(e8.uid)),e8.gid!=null&&e8.gid>2097151&&(t8.gid=String(e8.gid)),e8.size!=null&&e8.size>8589934591&&(t8.size=String(e8.size)),e8.pax&&Object.assign(t8,e8.pax);let r7=Object.entries(t8);if(r7.length===0)return null;let n10=I19.encode(r7.map(([i22,s10])=>{let a14=`${i22}=${s10}
756
+ When no FILE is given, or when FILE is -, read from standard input.`,options:["-f, --force force; read compressed data even from a terminal","-l, --list list compressed file contents","-q, --quiet suppress all warnings","-S, --suffix=SUF use suffix SUF on compressed files (default: .gz)","-t, --test test compressed file integrity","-v, --verbose verbose mode"," --help display this help and exit"]},G10={stdout:{short:"c",long:"stdout",type:"boolean"},toStdout:{long:"to-stdout",type:"boolean"},decompress:{short:"d",long:"decompress",type:"boolean"},uncompress:{long:"uncompress",type:"boolean"},force:{short:"f",long:"force",type:"boolean"},keep:{short:"k",long:"keep",type:"boolean"},list:{short:"l",long:"list",type:"boolean"},noName:{short:"n",long:"no-name",type:"boolean"},name:{short:"N",long:"name",type:"boolean"},quiet:{short:"q",long:"quiet",type:"boolean"},recursive:{short:"r",long:"recursive",type:"boolean"},suffix:{short:"S",long:"suffix",type:"string",default:".gz"},test:{short:"t",long:"test",type:"boolean"},verbose:{short:"v",long:"verbose",type:"boolean"},fast:{short:"1",long:"fast",type:"boolean"},level2:{short:"2",type:"boolean"},level3:{short:"3",type:"boolean"},level4:{short:"4",type:"boolean"},level5:{short:"5",type:"boolean"},level6:{short:"6",type:"boolean"},level7:{short:"7",type:"boolean"},level8:{short:"8",type:"boolean"},best:{short:"9",long:"best",type:"boolean"}};se8={name:"gzip",async execute(e8,t8){return{...await S14(e8,t8,"gzip"),stdoutEncoding:"binary"}}},ie5={name:"gunzip",async execute(e8,t8){return{...await S14(e8,t8,"gunzip"),stdoutEncoding:"binary"}}},le7={name:"zcat",async execute(e8,t8){return{...await S14(e8,t8,"zcat"),stdoutEncoding:"binary"}}},ue4={name:"gzip",flags:[{flag:"-c",type:"boolean"},{flag:"-d",type:"boolean"},{flag:"-f",type:"boolean"},{flag:"-k",type:"boolean"},{flag:"-l",type:"boolean"},{flag:"-n",type:"boolean"},{flag:"-q",type:"boolean"},{flag:"-r",type:"boolean"},{flag:"-t",type:"boolean"},{flag:"-v",type:"boolean"},{flag:"-1",type:"boolean"},{flag:"-9",type:"boolean"}],stdinType:"binary",needsFiles:!0},ae8={name:"gunzip",flags:[{flag:"-c",type:"boolean"},{flag:"-f",type:"boolean"},{flag:"-k",type:"boolean"},{flag:"-q",type:"boolean"},{flag:"-v",type:"boolean"}],stdinType:"binary",needsFiles:!0},de7={name:"zcat",flags:[{flag:"-f",type:"boolean"},{flag:"-q",type:"boolean"},{flag:"-v",type:"boolean"}],stdinType:"binary",needsFiles:!0}}});var gzip_GQC6CWVL_exports={};__export(gzip_GQC6CWVL_exports,{flagsForFuzzing:()=>ue4,gunzipCommand:()=>ie5,gunzipFlagsForFuzzing:()=>ae8,gzipCommand:()=>se8,zcatCommand:()=>le7,zcatFlagsForFuzzing:()=>de7});import{createRequire as createRequire179}from"node:module";var require180,init_gzip_GQC6CWVL=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/gzip-GQC6CWVL.js"(){init_chunk_MHZF23KB();init_chunk_WZQNMEQW();init_chunk_U7UNEMLJ();init_chunk_CBM6J4AL();init_chunk_DIWMSSQY();init_chunk_2WBUTDF5();init_chunk_YUSFCOM7();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_FOCWZZDE();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require180=createRequire179(import.meta.url)}});var require_bitreader=__commonJS({"../../../node_modules/.pnpm/seek-bzip@2.0.0/node_modules/seek-bzip/lib/bitreader.js"(exports,module){var BITMASK=[0,1,3,7,15,31,63,127,255],BitReader=function(stream){this.stream=stream,this.bitOffset=0,this.curByte=0,this.hasByte=!1};BitReader.prototype._ensureByte=function(){this.hasByte||(this.curByte=this.stream.readByte(),this.hasByte=!0)};BitReader.prototype.read=function(bits){for(var result=0;bits>0;){this._ensureByte();var remaining=8-this.bitOffset;if(bits>=remaining)result<<=remaining,result|=BITMASK[remaining]&this.curByte,this.hasByte=!1,this.bitOffset=0,bits-=remaining;else{result<<=bits;var shift=remaining-bits;result|=(this.curByte&BITMASK[bits]<<shift)>>shift,this.bitOffset+=bits,bits=0}}return result};BitReader.prototype.seek=function(pos){var n_bit=pos%8,n_byte=(pos-n_bit)/8;this.bitOffset=n_bit,this.stream.seek(n_byte),this.hasByte=!1};BitReader.prototype.pi=function(){var buf=new Buffer(6),i22;for(i22=0;i22<buf.length;i22++)buf[i22]=this.read(8);return buf.toString("hex")};module.exports=BitReader}});var require_stream=__commonJS({"../../../node_modules/.pnpm/seek-bzip@2.0.0/node_modules/seek-bzip/lib/stream.js"(exports,module){var Stream=function(){};Stream.prototype.readByte=function(){throw new Error("abstract method readByte() not implemented")};Stream.prototype.read=function(buffer,bufOffset,length){for(var bytesRead=0;bytesRead<length;){var c18=this.readByte();if(c18<0)return bytesRead===0?-1:bytesRead;buffer[bufOffset++]=c18,bytesRead++}return bytesRead};Stream.prototype.seek=function(new_pos){throw new Error("abstract method seek() not implemented")};Stream.prototype.writeByte=function(_byte){throw new Error("abstract method readByte() not implemented")};Stream.prototype.write=function(buffer,bufOffset,length){var i22;for(i22=0;i22<length;i22++)this.writeByte(buffer[bufOffset++]);return length};Stream.prototype.flush=function(){};module.exports=Stream}});var require_crc32=__commonJS({"../../../node_modules/.pnpm/seek-bzip@2.0.0/node_modules/seek-bzip/lib/crc32.js"(exports,module){module.exports=(function(){var crc32Lookup=new Uint32Array([0,79764919,159529838,222504665,319059676,398814059,445009330,507990021,638119352,583659535,797628118,726387553,890018660,835552979,1015980042,944750013,1276238704,1221641927,1167319070,1095957929,1595256236,1540665371,1452775106,1381403509,1780037320,1859660671,1671105958,1733955601,2031960084,2111593891,1889500026,1952343757,2552477408,2632100695,2443283854,2506133561,2334638140,2414271883,2191915858,2254759653,3190512472,3135915759,3081330742,3009969537,2905550212,2850959411,2762807018,2691435357,3560074640,3505614887,3719321342,3648080713,3342211916,3287746299,3467911202,3396681109,4063920168,4143685023,4223187782,4286162673,3779000052,3858754371,3904687514,3967668269,881225847,809987520,1023691545,969234094,662832811,591600412,771767749,717299826,311336399,374308984,453813921,533576470,25881363,88864420,134795389,214552010,2023205639,2086057648,1897238633,1976864222,1804852699,1867694188,1645340341,1724971778,1587496639,1516133128,1461550545,1406951526,1302016099,1230646740,1142491917,1087903418,2896545431,2825181984,2770861561,2716262478,3215044683,3143675388,3055782693,3001194130,2326604591,2389456536,2200899649,2280525302,2578013683,2640855108,2418763421,2498394922,3769900519,3832873040,3912640137,3992402750,4088425275,4151408268,4197601365,4277358050,3334271071,3263032808,3476998961,3422541446,3585640067,3514407732,3694837229,3640369242,1762451694,1842216281,1619975040,1682949687,2047383090,2127137669,1938468188,2001449195,1325665622,1271206113,1183200824,1111960463,1543535498,1489069629,1434599652,1363369299,622672798,568075817,748617968,677256519,907627842,853037301,1067152940,995781531,51762726,131386257,177728840,240578815,269590778,349224269,429104020,491947555,4046411278,4126034873,4172115296,4234965207,3794477266,3874110821,3953728444,4016571915,3609705398,3555108353,3735388376,3664026991,3290680682,3236090077,3449943556,3378572211,3174993278,3120533705,3032266256,2961025959,2923101090,2868635157,2813903052,2742672763,2604032198,2683796849,2461293480,2524268063,2284983834,2364738477,2175806836,2238787779,1569362073,1498123566,1409854455,1355396672,1317987909,1246755826,1192025387,1137557660,2072149281,2135122070,1912620623,1992383480,1753615357,1816598090,1627664531,1707420964,295390185,358241886,404320391,483945776,43990325,106832002,186451547,266083308,932423249,861060070,1041341759,986742920,613929101,542559546,756411363,701822548,3316196985,3244833742,3425377559,3370778784,3601682597,3530312978,3744426955,3689838204,3819031489,3881883254,3928223919,4007849240,4037393693,4100235434,4180117107,4259748804,2310601993,2373574846,2151335527,2231098320,2596047829,2659030626,2470359227,2550115596,2947551409,2876312838,2788305887,2733848168,3165939309,3094707162,3040238851,2985771188]),CRC32=function(){var crc=4294967295;this.getCRC=function(){return~crc>>>0},this.updateCRC=function(value){crc=crc<<8^crc32Lookup[(crc>>>24^value)&255]},this.updateCRCRun=function(value,count){for(;count-- >0;)crc=crc<<8^crc32Lookup[(crc>>>24^value)&255]}};return CRC32})()}});var require_package=__commonJS({"../../../node_modules/.pnpm/seek-bzip@2.0.0/node_modules/seek-bzip/package.json"(exports,module){module.exports={name:"seek-bzip",version:"2.0.0",contributors:["C. Scott Ananian (http://cscott.net)","Eli Skeggs","Kevin Kwok","Rob Landley (http://landley.net)"],description:"a pure-JavaScript Node.JS module for random-access decoding bzip2 data",main:"./lib/index.js",repository:{type:"git",url:"https://github.com/cscott/seek-bzip.git"},license:"MIT",bin:{"seek-bunzip":"./bin/seek-bunzip","seek-table":"./bin/seek-bzip-table"},directories:{test:"test"},dependencies:{commander:"^6.0.0"},devDependencies:{fibers:"^5.0.0",mocha:"^8.1.0"},scripts:{test:"mocha"}}}});var require_lib=__commonJS({"../../../node_modules/.pnpm/seek-bzip@2.0.0/node_modules/seek-bzip/lib/index.js"(exports,module){var BitReader=require_bitreader(),Stream=require_stream(),CRC32=require_crc32(),pjson=require_package(),MAX_HUFCODE_BITS=20,MAX_SYMBOLS=258,SYMBOL_RUNA=0,SYMBOL_RUNB=1,MIN_GROUPS=2,MAX_GROUPS=6,GROUP_SIZE=50,WHOLEPI="314159265359",SQRTPI="177245385090",mtf=function(array,index){var src=array[index],i22;for(i22=index;i22>0;i22--)array[i22]=array[i22-1];return array[0]=src,src},Err={OK:0,LAST_BLOCK:-1,NOT_BZIP_DATA:-2,UNEXPECTED_INPUT_EOF:-3,UNEXPECTED_OUTPUT_EOF:-4,DATA_ERROR:-5,OUT_OF_MEMORY:-6,OBSOLETE_INPUT:-7,END_OF_BLOCK:-8},ErrorMessages={};ErrorMessages[Err.LAST_BLOCK]="Bad file checksum";ErrorMessages[Err.NOT_BZIP_DATA]="Not bzip data";ErrorMessages[Err.UNEXPECTED_INPUT_EOF]="Unexpected input EOF";ErrorMessages[Err.UNEXPECTED_OUTPUT_EOF]="Unexpected output EOF";ErrorMessages[Err.DATA_ERROR]="Data error";ErrorMessages[Err.OUT_OF_MEMORY]="Out of memory";ErrorMessages[Err.OBSOLETE_INPUT]="Obsolete (pre 0.9.5) bzip format not supported.";var _throw=function(status,optDetail){var msg=ErrorMessages[status]||"unknown error";optDetail&&(msg+=": "+optDetail);var e8=new TypeError(msg);throw e8.errorCode=status,e8},Bunzip=function(inputStream,outputStream){this.writePos=this.writeCurrent=this.writeCount=0,this._start_bunzip(inputStream,outputStream)};Bunzip.prototype._init_block=function(){var moreBlocks=this._get_next_block();return moreBlocks?(this.blockCRC=new CRC32,!0):(this.writeCount=-1,!1)};Bunzip.prototype._start_bunzip=function(inputStream,outputStream){var buf=new Buffer(4);(inputStream.read(buf,0,4)!==4||String.fromCharCode(buf[0],buf[1],buf[2])!=="BZh")&&_throw(Err.NOT_BZIP_DATA,"bad magic");var level=buf[3]-48;(level<1||level>9)&&_throw(Err.NOT_BZIP_DATA,"level out of range"),this.reader=new BitReader(inputStream),this.dbufSize=1e5*level,this.nextoutput=0,this.outputStream=outputStream,this.streamCRC=0};Bunzip.prototype._get_next_block=function(){var i22,j21,k19,reader=this.reader,h18=reader.pi();if(h18===SQRTPI)return!1;h18!==WHOLEPI&&_throw(Err.NOT_BZIP_DATA),this.targetBlockCRC=reader.read(32)>>>0,this.streamCRC=(this.targetBlockCRC^(this.streamCRC<<1|this.streamCRC>>>31))>>>0,reader.read(1)&&_throw(Err.OBSOLETE_INPUT);var origPointer=reader.read(24);origPointer>this.dbufSize&&_throw(Err.DATA_ERROR,"initial position out of bounds");var t8=reader.read(16),symToByte=new Buffer(256),symTotal=0;for(i22=0;i22<16;i22++)if(t8&1<<15-i22){var o13=i22*16;for(k19=reader.read(16),j21=0;j21<16;j21++)k19&1<<15-j21&&(symToByte[symTotal++]=o13+j21)}var groupCount=reader.read(3);(groupCount<MIN_GROUPS||groupCount>MAX_GROUPS)&&_throw(Err.DATA_ERROR);var nSelectors=reader.read(15);nSelectors===0&&_throw(Err.DATA_ERROR);var mtfSymbol=new Buffer(256);for(i22=0;i22<groupCount;i22++)mtfSymbol[i22]=i22;var selectors=new Buffer(nSelectors);for(i22=0;i22<nSelectors;i22++){for(j21=0;reader.read(1);j21++)j21>=groupCount&&_throw(Err.DATA_ERROR);selectors[i22]=mtf(mtfSymbol,j21)}var symCount=symTotal+2,groups=[],hufGroup;for(j21=0;j21<groupCount;j21++){var length=new Buffer(symCount),temp=new Uint16Array(MAX_HUFCODE_BITS+1);for(t8=reader.read(5),i22=0;i22<symCount;i22++){for(;(t8<1||t8>MAX_HUFCODE_BITS)&&_throw(Err.DATA_ERROR),!!reader.read(1);)reader.read(1)?t8--:t8++;length[i22]=t8}var minLen,maxLen;for(minLen=maxLen=length[0],i22=1;i22<symCount;i22++)length[i22]>maxLen?maxLen=length[i22]:length[i22]<minLen&&(minLen=length[i22]);hufGroup={},groups.push(hufGroup),hufGroup.permute=new Uint16Array(MAX_SYMBOLS),hufGroup.limit=new Uint32Array(MAX_HUFCODE_BITS+2),hufGroup.base=new Uint32Array(MAX_HUFCODE_BITS+1),hufGroup.minLen=minLen,hufGroup.maxLen=maxLen;var pp2=0;for(i22=minLen;i22<=maxLen;i22++)for(temp[i22]=hufGroup.limit[i22]=0,t8=0;t8<symCount;t8++)length[t8]===i22&&(hufGroup.permute[pp2++]=t8);for(i22=0;i22<symCount;i22++)temp[length[i22]]++;for(pp2=t8=0,i22=minLen;i22<maxLen;i22++)pp2+=temp[i22],hufGroup.limit[i22]=pp2-1,pp2<<=1,t8+=temp[i22],hufGroup.base[i22+1]=pp2-t8;hufGroup.limit[maxLen+1]=Number.MAX_VALUE,hufGroup.limit[maxLen]=pp2+temp[maxLen]-1,hufGroup.base[minLen]=0}var byteCount=new Uint32Array(256);for(i22=0;i22<256;i22++)mtfSymbol[i22]=i22;var runPos=0,dbufCount=0,selector=0,uc3,dbuf=this.dbuf=new Uint32Array(this.dbufSize);for(symCount=0;;){for(symCount--||(symCount=GROUP_SIZE-1,selector>=nSelectors&&_throw(Err.DATA_ERROR),hufGroup=groups[selectors[selector++]]),i22=hufGroup.minLen,j21=reader.read(i22);i22>hufGroup.maxLen&&_throw(Err.DATA_ERROR),!(j21<=hufGroup.limit[i22]);i22++)j21=j21<<1|reader.read(1);j21-=hufGroup.base[i22],(j21<0||j21>=MAX_SYMBOLS)&&_throw(Err.DATA_ERROR);var nextSym=hufGroup.permute[j21];if(nextSym===SYMBOL_RUNA||nextSym===SYMBOL_RUNB){runPos||(runPos=1,t8=0),nextSym===SYMBOL_RUNA?t8+=runPos:t8+=2*runPos,runPos<<=1;continue}if(runPos)for(runPos=0,dbufCount+t8>this.dbufSize&&_throw(Err.DATA_ERROR),uc3=symToByte[mtfSymbol[0]],byteCount[uc3]+=t8;t8--;)dbuf[dbufCount++]=uc3;if(nextSym>symTotal)break;dbufCount>=this.dbufSize&&_throw(Err.DATA_ERROR),i22=nextSym-1,uc3=mtf(mtfSymbol,i22),uc3=symToByte[uc3],byteCount[uc3]++,dbuf[dbufCount++]=uc3}for((origPointer<0||origPointer>=dbufCount)&&_throw(Err.DATA_ERROR),j21=0,i22=0;i22<256;i22++)k19=j21+byteCount[i22],byteCount[i22]=j21,j21=k19;for(i22=0;i22<dbufCount;i22++)uc3=dbuf[i22]&255,dbuf[byteCount[uc3]]|=i22<<8,byteCount[uc3]++;var pos=0,current=0,run=0;return dbufCount&&(pos=dbuf[origPointer],current=pos&255,pos>>=8,run=-1),this.writePos=pos,this.writeCurrent=current,this.writeCount=dbufCount,this.writeRun=run,!0};Bunzip.prototype._read_bunzip=function(outputBuffer,len){var copies,previous,outbyte;if(this.writeCount<0)return 0;for(var gotcount=0,dbuf=this.dbuf,pos=this.writePos,current=this.writeCurrent,dbufCount=this.writeCount,outputsize=this.outputsize,run=this.writeRun;dbufCount;){for(dbufCount--,previous=current,pos=dbuf[pos],current=pos&255,pos>>=8,run++===3?(copies=current,outbyte=previous,current=-1):(copies=1,outbyte=current),this.blockCRC.updateCRCRun(outbyte,copies);copies--;)this.outputStream.writeByte(outbyte),this.nextoutput++;current!=previous&&(run=0)}return this.writeCount=dbufCount,this.blockCRC.getCRC()!==this.targetBlockCRC&&_throw(Err.DATA_ERROR,"Bad block CRC (got "+this.blockCRC.getCRC().toString(16)+" expected "+this.targetBlockCRC.toString(16)+")"),this.nextoutput};var coerceInputStream=function(input){if("readByte"in input)return input;var inputStream=new Stream;return inputStream.pos=0,inputStream.readByte=function(){return input[this.pos++]},inputStream.seek=function(pos){this.pos=pos},inputStream.eof=function(){return this.pos>=input.length},inputStream},coerceOutputStream=function(output){var outputStream=new Stream,resizeOk=!0;if(output)if(typeof output=="number")outputStream.buffer=new Buffer(output),resizeOk=!1;else{if("writeByte"in output)return output;outputStream.buffer=output,resizeOk=!1}else outputStream.buffer=new Buffer(16384);return outputStream.pos=0,outputStream.writeByte=function(_byte){if(resizeOk&&this.pos>=this.buffer.length){var newBuffer=new Buffer(this.buffer.length*2);this.buffer.copy(newBuffer),this.buffer=newBuffer}this.buffer[this.pos++]=_byte},outputStream.getBuffer=function(){if(this.pos!==this.buffer.length){if(!resizeOk)throw new TypeError("outputsize does not match decoded input");var newBuffer=new Buffer(this.pos);this.buffer.copy(newBuffer,0,0,this.pos),this.buffer=newBuffer}return this.buffer},outputStream._coerced=!0,outputStream};Bunzip.Err=Err;Bunzip.decode=function(input,output,multistream){for(var inputStream=coerceInputStream(input),outputStream=coerceOutputStream(output),bz=new Bunzip(inputStream,outputStream);!("eof"in inputStream&&inputStream.eof());)if(bz._init_block())bz._read_bunzip();else{var targetStreamCRC=bz.reader.read(32)>>>0;if(targetStreamCRC!==bz.streamCRC&&_throw(Err.DATA_ERROR,"Bad stream CRC (got "+bz.streamCRC.toString(16)+" expected "+targetStreamCRC.toString(16)+")"),multistream&&"eof"in inputStream&&!inputStream.eof())bz._start_bunzip(inputStream,outputStream);else break}if("getBuffer"in outputStream)return outputStream.getBuffer()};Bunzip.decodeBlock=function(input,pos,output){var inputStream=coerceInputStream(input),outputStream=coerceOutputStream(output),bz=new Bunzip(inputStream,outputStream);bz.reader.seek(pos);var moreBlocks=bz._get_next_block();if(moreBlocks&&(bz.blockCRC=new CRC32,bz.writeCopies=0,bz._read_bunzip()),"getBuffer"in outputStream)return outputStream.getBuffer()};Bunzip.table=function(input,callback,multistream){var inputStream=new Stream;inputStream.delegate=coerceInputStream(input),inputStream.pos=0,inputStream.readByte=function(){return this.pos++,this.delegate.readByte()},inputStream.delegate.eof&&(inputStream.eof=inputStream.delegate.eof.bind(inputStream.delegate));var outputStream=new Stream;outputStream.pos=0,outputStream.writeByte=function(){this.pos++};for(var bz=new Bunzip(inputStream,outputStream),blockSize=bz.dbufSize;!("eof"in inputStream&&inputStream.eof());){var position=inputStream.pos*8+bz.reader.bitOffset;if(bz.reader.hasByte&&(position-=8),bz._init_block()){var start=outputStream.pos;bz._read_bunzip(),callback(position,outputStream.pos-start)}else{var crc=bz.reader.read(32);if(multistream&&"eof"in inputStream&&!inputStream.eof())bz._start_bunzip(inputStream,outputStream),console.assert(bz.dbufSize===blockSize,"shouldn't change block size within multistream file");else break}}};Bunzip.Stream=Stream;Bunzip.version=pjson.version;Bunzip.license=pjson.license;module.exports=Bunzip}});var require_node_liblzma=__commonJS({"unavailable-package:node-liblzma"(){throw new Error("node-liblzma is not available in this shell.")}});var require_zstd=__commonJS({"unavailable-package:@mongodb-js/zstd"(){throw new Error("@mongodb-js/zstd is not available in this shell.")}});import{createRequire as createRequire180}from"node:module";function P15(e8,t8,r7,n10){n10&&I19.encodeInto(n10,e8.subarray(t8,t8+r7))}function j18(e8,t8,r7,n10){if(n10===void 0)return;let i22=n10.toString(8).padStart(r7-1,"0");I19.encodeInto(i22,e8.subarray(t8,t8+r7-1))}function F21(e8,t8,r7){let n10=e8.indexOf(0,t8),i22=n10===-1||n10>t8+r7?t8+r7:n10;return Q8.decode(e8.subarray(t8,i22))}function me7(e8,t8,r7){let n10=0,i22=t8+r7;for(let s10=t8;s10<i22;s10++){let a14=e8[s10];if(a14===0)break;a14!==32&&(n10=n10*8+(a14-48))}return n10}function Y10(e8,t8,r7){if(e8[t8]&128){let n10=0;n10=e8[t8]&127;for(let i22=1;i22<r7;i22++)n10=n10*256+e8[t8+i22];if(!Number.isSafeInteger(n10))throw new Error("TAR number too large");return n10}return me7(e8,t8,r7)}async function Ne5(e8){if(e8==null)return V7;if(e8 instanceof Uint8Array)return e8;if(typeof e8=="string")return I19.encode(e8);if(e8 instanceof ArrayBuffer)return new Uint8Array(e8);if(e8 instanceof Blob)return new Uint8Array(await e8.arrayBuffer());throw new TypeError("Unsupported content type for entry body.")}function he5(e8,t8){let{strip:r7,filter:n10,map:i22}=t8;if(!r7&&!n10&&!i22)return e8;let s10={...e8};if(r7&&r7>0){let o13=Te3(s10.name,r7);if(!o13)return null;if(s10.name=s10.type==="directory"&&!o13.endsWith("/")?`${o13}/`:o13,s10.linkname){let c18=s10.linkname.startsWith("/");if(c18||s10.type==="link"){let l12=Te3(s10.linkname,r7);s10.linkname=c18?`/${l12}`||"/":l12}}}if(n10?.(s10)===!1)return null;let a14=i22?i22(s10):s10;return a14&&(!a14.name||!a14.name.trim()||a14.name==="."||a14.name==="/")?null:a14}function lt5(){let e8=new Array(K9),t8=e8.length-1,r7=0,n10=0,i22=0,s10=o13=>{let c18=e8[r7];o13===c18.length?(e8[r7]=V7,r7=r7+1&t8):e8[r7]=c18.subarray(o13),i22-=o13,i22===0&&e8.length>K9&&(e8=new Array(K9),t8=K9-1,r7=0,n10=0)};function a14(o13,c18){if(c18){let y14=0,d11=Math.min(o13,i22);for(;d11>0;){let m16=e8[r7],p16=Math.min(d11,m16.length),b23=p16===m16.length?m16:m16.subarray(0,p16);if(s10(p16),d11-=p16,y14+=p16,!c18(b23))break}return y14}if(i22<o13)return null;if(o13===0)return V7;let l12=e8[r7];if(l12.length>=o13){let y14=l12.length===o13?l12:l12.subarray(0,o13);return s10(o13),y14}let f15=new Uint8Array(o13),u15=0,h18=o13;for(;h18>0;){let y14=e8[r7],d11=Math.min(h18,y14.length);f15.set(d11===y14.length?y14:y14.subarray(0,d11),u15),u15+=d11,h18-=d11,s10(d11)}return f15}return{push:o13=>{if(o13.length===0)return;let c18=n10+1&t8;if(c18===r7){let l12=e8.length,f15=l12*2,u15=new Array(f15),h18=n10-r7+l12&l12-1;if(r7<n10)for(let y14=0;y14<h18;y14++)u15[y14]=e8[r7+y14];else if(h18>0){let y14=l12-r7;for(let d11=0;d11<y14;d11++)u15[d11]=e8[r7+d11];for(let d11=0;d11<n10;d11++)u15[y14+d11]=e8[d11]}e8=u15,t8=f15-1,r7=0,n10=h18,c18=n10+1&t8}e8[n10]=o13,n10=c18,i22+=o13.length},available:()=>i22,peek:o13=>{if(i22<o13)return null;if(o13===0)return V7;let c18=e8[r7];if(c18.length>=o13)return c18.length===o13?c18:c18.subarray(0,o13);let l12=new Uint8Array(o13),f15=0,u15=r7;for(;f15<o13;){let h18=e8[u15],y14=Math.min(o13-f15,h18.length);y14===h18.length?l12.set(h18,f15):l12.set(h18.subarray(0,y14),f15),f15+=y14,u15=u15+1&t8}return l12},discard:o13=>{if(o13>i22)throw new Error("Too many bytes consumed");if(o13===0)return;let c18=o13;for(;c18>0;){let l12=e8[r7],f15=Math.min(c18,l12.length);s10(f15),c18-=f15}},pull:a14}}function ut3(e8){let t8=me7(e8,148,8),r7=0;for(let n10=0;n10<e8.length;n10++)n10>=148&&n10<156?r7+=de8:r7+=e8[n10];return t8===r7}function dt3(e8){e8.fill(de8,148,156);let t8=0;for(let r7 of e8)t8+=r7;for(let r7=153;r7>=148;r7--)e8[r7]=(t8&7)+ft4,t8>>=3;e8[154]=0,e8[155]=de8}function ht3(e8){let t8={};I19.encode(e8.name).length>100&&Ue3(e8.name)===null&&(t8.path=e8.name),e8.linkname&&I19.encode(e8.linkname).length>100&&(t8.linkpath=e8.linkname),e8.uname&&I19.encode(e8.uname).length>32&&(t8.uname=e8.uname),e8.gname&&I19.encode(e8.gname).length>32&&(t8.gname=e8.gname),e8.uid!=null&&e8.uid>2097151&&(t8.uid=String(e8.uid)),e8.gid!=null&&e8.gid>2097151&&(t8.gid=String(e8.gid)),e8.size!=null&&e8.size>8589934591&&(t8.size=String(e8.size)),e8.pax&&Object.assign(t8,e8.pax);let r7=Object.entries(t8);if(r7.length===0)return null;let n10=I19.encode(r7.map(([i22,s10])=>{let a14=`${i22}=${s10}
757
757
  `,o13=I19.encode(a14).length+1,c18=o13+String(o13).length;return c18=o13+String(c18).length,`${c18} ${a14}`}).join(""));return{paxHeader:Pe3({name:Q8.decode(I19.encode(`PaxHeader/${e8.name}`).slice(0,100)),size:n10.length,type:"pax-header",mode:420,mtime:e8.mtime,uname:e8.uname,gname:e8.gname,uid:e8.uid,gid:e8.gid}),paxBody:n10}}function Ue3(e8){let t8=I19.encode(e8).length;if(t8<=100||t8>mt3)return null;for(let r7=e8.length-1;r7>0;r7--){if(e8[r7]!=="/")continue;let n10=e8.slice(0,r7),i22=e8.slice(r7+1);if(I19.encode(n10).length<=155&&I19.encode(i22).length<=100)return{prefix:n10,name:i22}}return null}function Pe3(e8){let t8=new Uint8Array(512),r7=M17(e8)?0:e8.size??0,n10=e8.name,i22="";if(!e8.pax?.path){let s10=Ue3(n10);s10&&(n10=s10.name,i22=s10.prefix)}return P15(t8,0,100,n10),j18(t8,100,8,e8.mode??(e8.type==="directory"?493:420)),j18(t8,108,8,e8.uid??0),j18(t8,116,8,e8.gid??0),j18(t8,124,12,r7),j18(t8,136,12,Math.floor((e8.mtime?.getTime()??Date.now())/1e3)),P15(t8,156,1,at4[e8.type??"file"]),P15(t8,157,100,e8.linkname),P15(t8,257,6,"ustar\0"),P15(t8,263,2,"00"),P15(t8,265,32,e8.uname),P15(t8,297,32,e8.gname),P15(t8,345,155,i22),dt3(t8),t8}function pt3(e8,t8){if(t8&&!ut3(e8))throw new Error("Invalid tar header checksum.");let r7=F21(e8,156,1),n10={name:F21(e8,0,100),mode:me7(e8,100,8),uid:Y10(e8,108,8),gid:Y10(e8,116,8),size:Y10(e8,124,12),mtime:new Date(Y10(e8,136,12)*1e3),type:ot5[r7]||"file",linkname:F21(e8,157,100)},i22=F21(e8,257,6);return i22.trim()==="ustar"&&(n10.uname=F21(e8,265,32),n10.gname=F21(e8,297,32)),i22==="ustar"&&(n10.prefix=F21(e8,345,155)),n10}function gt4(e8){let t8=Object.create(null),r7=Object.create(null),n10=!1,i22=0;for(;i22<e8.length;){let s10=e8.indexOf(32,i22);if(s10===-1)break;let a14=parseInt(Q8.decode(e8.subarray(i22,s10)),10);if(!(a14>0))break;let o13=i22+a14,c18=Q8.decode(e8.subarray(s10+1,o13-1)),l12=c18.indexOf("=");if(l12>0){let f15=c18.slice(0,l12),u15=c18.slice(l12+1);if(r7[f15]=u15,n10=!0,Object.hasOwn(Ie4,f15)){let[h18,y14]=Ie4[f15],d11=y14(u15);(typeof d11=="string"||!Number.isNaN(d11))&&(t8[h18]=d11)}}i22=o13}return n10&&(t8.pax=r7),t8}function Oe6(e8,t8){t8.name!==void 0&&(e8.name=t8.name),t8.linkname!==void 0&&(e8.linkname=t8.linkname),t8.size!==void 0&&(e8.size=t8.size),t8.mtime!==void 0&&(e8.mtime=new Date(t8.mtime*1e3)),t8.uid!==void 0&&(e8.uid=t8.uid),t8.gid!==void 0&&(e8.gid=t8.gid),t8.uname!==void 0&&(e8.uname=t8.uname),t8.gname!==void 0&&(e8.gname=t8.gname),t8.pax&&(e8.pax=Object.assign({},e8.pax??{},t8.pax))}function yt4(e8){switch(e8){case"pax-global-header":case"pax-header":return gt4;case"gnu-long-name":return t8=>({name:F21(t8,0,t8.length)});case"gnu-long-link-name":return t8=>({linkname:F21(t8,0,t8.length)});default:return}}function wt3(e8){let t8=Pe3(e8),r7=ht3(e8);if(!r7)return[t8];let n10=-r7.paxBody.length&511,i22=n10>0?[ct3.subarray(0,n10)]:[];return[r7.paxHeader,r7.paxBody,...i22,t8]}function pe3(e8={}){let t8=e8.strict??!1,{available:r7,peek:n10,push:i22,discard:s10,pull:a14}=lt5(),o13=ue5,c18=!1,l12=!1,f15=!1,u15=null,h18={},y14={},d11={isEntryActive:()=>o13===H18,isBodyComplete:()=>!u15||u15.remaining===0,canFinish:()=>!u15||r7()>=u15.remaining+u15.padding,bodyBytes:()=>u15&&u15.remaining>0?Math.min(u15.remaining,r7()):0,write(m16){if(c18)throw new Error("Archive already ended.");i22(m16)},end(){c18=!0},readHeader(){if(o13!==ue5)throw new Error("Cannot read header while an entry is active");if(!l12)for(;!l12;){if(r7()<512){if(c18){if(r7()>0&&t8)throw J9;l12=!0;return}return null}let m16=n10(512);if(Fe6(m16)){if(r7()<512*2){if(c18){if(t8)throw J9;l12=!0;return}return null}if(Fe6(n10(512*2).subarray(512))){s10(512*2),l12=!0,f15=!0;return}if(t8)throw new Error("Invalid tar header.");s10(512);continue}let p16;try{p16=pt3(m16,t8)}catch(z16){if(t8)throw z16;s10(512);continue}let b23=yt4(p16.type);if(b23){if(p16.size>xt3)throw new Error("Tar metadata entry exceeds maximum size.");let z16=p16.size+(-p16.size&511);if(r7()<512+z16){if(c18&&t8)throw J9;return null}s10(512);let C18=b23(a14(z16).subarray(0,p16.size));y14.pax&&(y14={});let A13=p16.type==="pax-global-header"?h18:y14;for(let W12 in C18)A13[W12]=C18[W12];continue}s10(512);let w15=p16;p16.prefix&&(w15.name=`${p16.prefix}/${w15.name}`),Oe6(w15,h18),Oe6(w15,y14);let S15=w15.size;return M17(w15)?(S15=0,w15.size=0):w15.name.endsWith("/")&&w15.type==="file"&&(w15.type=Le6,w15.size=0),y14={},u15={header:w15,remaining:S15,padding:-S15&511},o13=H18,w15}},streamBody(m16){if(o13!==H18||!u15||u15.remaining===0)return 0;let p16=Math.min(u15.remaining,r7());if(p16===0)return 0;let b23=a14(p16,m16);return u15.remaining-=b23,b23},skipPadding(){if(o13!==H18||!u15)return!0;if(u15.remaining>0)throw new Error("Body not fully consumed");return r7()<u15.padding?!1:(s10(u15.padding),u15=null,o13=ue5,!0)},skipEntry(){if(o13!==H18||!u15)return!0;let m16=Math.min(u15.remaining,r7());return m16>0&&(s10(m16),u15.remaining-=m16),u15.remaining>0?!1:d11.skipPadding()},validateEOF(){if(t8){if(!f15)throw J9;if(r7()>0&&a14(r7()).some(m16=>m16!==0))throw new Error("Invalid EOF.")}}};return d11}function Fe6(e8){if(e8.byteOffset%8===0){let t8=new BigUint64Array(e8.buffer,e8.byteOffset,e8.length/8);for(let r7=0;r7<t8.length;r7++)if(t8[r7]!==0n)return!1;return!0}for(let t8=0;t8<e8.length;t8++)if(e8[t8]!==0)return!1;return!0}function Re4(e8,t8,r7){let n10=null,i22=0,s10=!1,a14=o13=>{let c18=new Error(o13);throw t8(c18),c18};return{add(o13){s10&&a14("No new tar entries after finalize."),n10!==null&&a14("Previous entry must be completed before adding a new one");let c18=M17(o13)?0:o13.size;(!Number.isSafeInteger(c18)||c18<0)&&a14("Invalid tar entry size.");try{let l12=wt3({...o13,size:c18});for(let f15 of l12)e8(f15);n10={...o13,size:c18},i22=0}catch(l12){t8(l12)}},write(o13){n10||a14("No active tar entry."),s10&&a14("Cannot write data after finalize.");let c18=i22+o13.length;c18>n10.size&&a14(`"${n10.name}" exceeds given size of ${n10.size} bytes.`);try{i22=c18,e8(o13)}catch(l12){t8(l12)}},endEntry(){n10||a14("No active entry to end."),s10&&a14("Cannot end entry after finalize.");try{i22!==n10.size&&a14(`Size mismatch for "${n10.name}".`);let o13=-n10.size&511;o13>0&&e8(new Uint8Array(o13)),n10=null,i22=0}catch(o13){throw t8(o13),o13}},finalize(){s10&&a14("Archive has already been finalized"),n10!==null&&a14("Cannot finalize while an entry is still active");try{e8(bt3),s10=!0,r7&&r7()}catch(o13){t8(o13)}}}}function De4(){return new CompressionStream("gzip")}function We7(){return new DecompressionStream("gzip")}function zt2(){let e8,t8;return{readable:new ReadableStream({start(r7){e8=r7,t8=Re4(r7.enqueue.bind(r7),r7.error.bind(r7),r7.close.bind(r7))}}),controller:{add(r7){let n10=M17(r7);return t8.add(r7),n10&&t8.endEntry(),new WritableStream({write(i22){t8.write(i22)},close(){n10||t8.endEntry()},abort(i22){e8.error(i22)}})},finalize(){t8.finalize()},error(r7){e8.error(r7)}}}}async function _e4(e8){let t8=[],r7=e8.getReader(),n10=0;try{for(;;){let{done:a14,value:o13}=await r7.read();if(a14)break;t8.push(o13),n10+=o13.length}let i22=new Uint8Array(n10),s10=0;for(let a14 of t8)i22.set(a14,s10),s10+=a14.length;return i22}finally{r7.releaseLock()}}function vt3(e8={}){let t8=pe3(e8),r7=e8.strict??!1,n10=null,i22=null,s10=!1,a14=!1,o13=!1,c18=!1,l12=()=>{try{i22?.close()}catch{}i22=null},f15=d11=>{if(!c18){c18=!0;try{i22?.error(d11)}catch{}i22=null;try{n10.error(d11)}catch{}n10=null}},u15=()=>{if(!c18){c18=!0,l12();try{n10.close()}catch{}n10=null}},h18=()=>{if(r7)throw new Error("Tar archive is truncated.");u15()},y14=()=>{if(!(s10||c18||!n10)){s10=!0;try{for(;;){if(a14){o13&&(t8.validateEOF(),u15());break}if(t8.isEntryActive()){if(o13&&!t8.canFinish()){h18();break}if(i22){if((i22.desiredSize??1)<=0)break;if(t8.streamBody(d11=>(i22.enqueue(d11),(i22.desiredSize??1)>0))===0&&!t8.isBodyComplete()){o13&&h18();break}}else if(!t8.skipEntry()){o13&&h18();break}if(t8.isBodyComplete()&&(l12(),!t8.skipPadding())){o13&&h18();break}}else{if((n10.desiredSize??0)<0)break;let d11=t8.readHeader();if(d11===null){o13&&u15();break}if(d11===void 0){if(o13){t8.validateEOF(),u15();break}a14=!0;break}n10.enqueue({header:d11,body:new ReadableStream({start(m16){d11.size===0?m16.close():i22=m16},pull:y14,cancel(){i22=null,y14()}})})}}}catch(d11){throw f15(d11),d11}finally{s10=!1}}};return{readable:new ReadableStream({start(d11){n10=d11},pull:y14,cancel(d11){d11!==void 0?f15(d11):u15()}},{highWaterMark:2}),writable:new WritableStream({write(d11){try{if(a14&&r7&&d11.some(m16=>m16!==0))throw new Error("Invalid EOF.");t8.write(d11),y14()}catch(m16){throw f15(m16),m16}},close(){try{o13=!0,t8.end(),y14()}catch(d11){throw f15(d11),d11}},abort(d11){f15(d11)}})}}async function je4(e8){let{readable:t8,controller:r7}=zt2();return await(async()=>{for(let n10 of e8){let i22=r7.add(n10.header),s10="body"in n10?n10.body:n10.data;if(!s10){await i22.close();continue}if(s10 instanceof ReadableStream)await s10.pipeTo(i22);else if(s10 instanceof Blob)await s10.stream().pipeTo(i22);else try{let a14=await Ne5(s10);if(a14.length>0){let o13=i22.getWriter();await o13.write(a14),await o13.close()}else await i22.close()}catch{throw new TypeError(`Unsupported content type for entry "${n10.header.name}".`)}}})().then(()=>r7.finalize()).catch(n10=>r7.error(n10)),_e4(t8)}async function He5(e8,t8={}){if(!(e8 instanceof ReadableStream))return kt3(e8 instanceof Uint8Array?e8:new Uint8Array(e8),t8);let r7=[],n10=e8.pipeThrough(vt3(t8));for await(let i22 of n10){let s10;try{s10=he5(i22.header,t8)}catch(a14){throw await i22.body.cancel(),a14}if(s10===null){await Me3(i22.body);continue}M17(s10)?(await Me3(i22.body),r7.push({header:s10})):r7.push({header:s10,data:await _e4(i22.body)})}return r7}function kt3(e8,t8){let r7=pe3(t8),n10=t8.strict??!1,i22=[];for(r7.write(e8),r7.end();;){let s10=r7.readHeader();if(s10===void 0)break;if(s10===null){if(n10)throw new Error("Tar archive is truncated.");break}let a14=he5(s10,t8);if(a14===null){let h18=r7.skipEntry();if(!h18&&n10)throw new Error("Tar archive is truncated.");if(!h18)break;continue}if(M17(a14)){let h18=r7.skipEntry();if(!h18&&n10)throw new Error("Tar archive is truncated.");if(i22.push({header:a14}),!h18)break;continue}let o13=s10.size;if(o13<0||!r7.canFinish()){if(n10)throw new Error("Tar archive is truncated.");o13=r7.bodyBytes()}let c18=new Uint8Array(o13),l12=0;r7.streamBody(h18=>(c18.set(h18,l12),l12+=h18.length,!0));let f15=r7.isBodyComplete(),u15=!0;if(f15&&(u15=r7.skipPadding(),!u15&&n10))throw new Error("Tar archive is truncated.");if(i22.push({header:a14,data:c18}),!f15||!u15)break}return r7.validateEOF(),i22}function At3(e8,t8){return(e8<<8^Ct3[(e8>>>24^t8)&255])>>>0}function Et3(e8){let t8=[],r7=0;for(;r7<e8.length;){let n10=e8[r7],i22=1;for(;r7+i22<e8.length&&e8[r7+i22]===n10&&i22<255;)i22++;i22>=4?(t8.push(n10,n10,n10,n10),t8.push(i22-4),r7+=i22):(t8.push(n10),r7++)}return new Uint8Array(t8)}function St3(e8){let t8=e8.length;if(t8===0)return{transformed:new Uint8Array(0),pointer:0};let r7=Bt3(e8),n10=new Uint8Array(t8),i22=0;for(let s10=0;s10<t8;s10++)r7[s10]===0?(i22=s10,n10[s10]=e8[t8-1]):n10[s10]=e8[r7[s10]-1];return{transformed:n10,pointer:i22}}function Bt3(e8){let t8=e8.length,r7=new Int32Array(t8),n10=new Int32Array(t8);for(let i22=0;i22<t8;i22++)r7[i22]=i22,n10[i22]=e8[i22];for(let i22=1;i22<t8;i22*=2){let s10=n10.slice();r7.sort((a14,o13)=>s10[a14]!==s10[o13]?s10[a14]-s10[o13]:s10[(a14+i22)%t8]-s10[(o13+i22)%t8]),n10[r7[0]]=0;for(let a14=1;a14<t8;a14++)s10[r7[a14]]===s10[r7[a14-1]]&&s10[(r7[a14]+i22)%t8]===s10[(r7[a14-1]+i22)%t8]?n10[r7[a14]]=n10[r7[a14-1]]:n10[r7[a14]]=n10[r7[a14-1]]+1;if(n10[r7[t8-1]]===t8-1)break}return r7}function $t3(e8,t8){let r7=[];for(let a14=0;a14<256;a14++)t8[a14]&&r7.push(a14);let n10=new Array(256).fill(-1);for(let a14=0;a14<r7.length;a14++)n10[r7[a14]]=a14;let i22=new Uint16Array(e8.length),s10=r7.slice();for(let a14=0;a14<e8.length;a14++){let o13=e8[a14],c18=0;for(;s10[c18]!==o13;)c18++;if(i22[a14]=c18,c18>0){let l12=s10[c18];for(let f15=c18;f15>0;f15--)s10[f15]=s10[f15-1];s10[0]=l12}}return{encoded:i22,length:e8.length}}function Tt3(e8,t8,r7){let s10=r7+1,a14=[],o13=0;for(;o13<t8;)if(e8[o13]===0){let l12=0;for(;o13<t8&&e8[o13]===0;)l12++,o13++;let f15=l12;for(;f15>0;)f15--,f15&1?a14.push(1):a14.push(0),f15>>>=1}else a14.push(e8[o13]+1),o13++;a14.push(s10);let c18=new Uint16Array(a14.length);for(let l12=0;l12<a14.length;l12++)c18[l12]=a14[l12];return{symbols:c18,length:a14.length,eob:s10}}function Xe3(e8,t8,r7){if(t8<=1){let l12=new Array(e8.length).fill(0);for(let f15=0;f15<e8.length;f15++)e8[f15]>0&&(l12[f15]=1);return{codeLengths:l12,maxLen:1,minLen:1}}let n10=[];for(let l12=0;l12<e8.length;l12++)e8[l12]>0&&n10.push({freq:e8[l12],symbol:l12,left:null,right:null});if(n10.length===0)return{codeLengths:new Array(e8.length).fill(0),maxLen:0,minLen:0};if(n10.length===1){let l12=new Array(e8.length).fill(0);return l12[n10[0].symbol]=1,{codeLengths:l12,maxLen:1,minLen:1}}for(;n10.length>1;){n10.sort((u15,h18)=>u15.freq-h18.freq);let l12=n10.shift(),f15=n10.shift();n10.push({freq:l12.freq+f15.freq,symbol:-1,left:l12,right:f15})}let i22=new Array(e8.length).fill(0);function s10(l12,f15){if(!l12.left&&!l12.right){i22[l12.symbol]=f15;return}l12.left&&s10(l12.left,f15+1),l12.right&&s10(l12.right,f15+1)}s10(n10[0],0);let a14=!0;for(;a14;){a14=!1;for(let l12=0;l12<i22.length;l12++)i22[l12]>r7&&(i22[l12]=r7,a14=!0);if(a14){let l12=0;for(let f15=0;f15<i22.length;f15++)i22[f15]>0&&(l12+=1/(1<<i22[f15]));if(l12>1)for(let f15=1;f15<r7&&l12>1;f15++)for(let u15=0;u15<i22.length&&l12>1;u15++)i22[u15]===f15&&(i22[u15]++,l12-=1/(1<<f15)-1/(1<<f15+1));a14=!1;for(let f15=0;f15<i22.length;f15++)if(i22[f15]>r7){a14=!0;break}}}let o13=r7,c18=0;for(let l12=0;l12<i22.length;l12++)i22[l12]>0&&(i22[l12]<o13&&(o13=i22[l12]),i22[l12]>c18&&(c18=i22[l12]));return{codeLengths:i22,maxLen:c18,minLen:o13}}function It3(e8,t8){let r7=new Array(t8).fill(0),n10=e8.slice(0,t8),i22=Math.max(...n10,0),s10=new Array(i22+1).fill(0);for(let c18=0;c18<t8;c18++)n10[c18]>0&&s10[n10[c18]]++;let a14=new Array(i22+1).fill(0),o13=0;for(let c18=1;c18<=i22;c18++)o13=o13+s10[c18-1]<<1,a14[c18]=o13;for(let c18=0;c18<t8;c18++)n10[c18]>0&&(r7[c18]=a14[n10[c18]]++);return{codes:r7,lengths:n10}}function Ot2(e8,t8,r7){e8.writeBits(24,3227993),e8.writeBits(24,2511705),e8.writeBits(32,r7),e8.writeBit(0);let n10=Et3(t8),{transformed:i22,pointer:s10}=St3(n10);e8.writeBits(24,s10);let a14=new Array(256).fill(!1);for(let g13=0;g13<i22.length;g13++)a14[i22[g13]]=!0;let o13=new Array(16).fill(!1);for(let g13=0;g13<16;g13++)for(let x23=0;x23<16;x23++)if(a14[g13*16+x23]){o13[g13]=!0;break}for(let g13=0;g13<16;g13++)e8.writeBit(o13[g13]?1:0);for(let g13=0;g13<16;g13++)if(o13[g13])for(let x23=0;x23<16;x23++)e8.writeBit(a14[g13*16+x23]?1:0);let c18=0;for(let g13=0;g13<256;g13++)a14[g13]&&c18++;let{encoded:l12,length:f15}=$t3(i22,a14),{symbols:u15,length:h18}=Tt3(l12,f15,c18),y14=c18+2,d11=50,m16=Math.ceil(h18/d11),p16;h18<200?p16=2:h18<600?p16=3:h18<1200?p16=4:h18<2400?p16=5:p16=6,p16>m16&&(p16=Math.max(2,m16));let b23=[];for(let g13=0;g13<p16;g13++)b23.push(new Array(y14).fill(0));let w15=new Int32Array(m16);for(let g13=0;g13<m16;g13++)w15[g13]=g13%p16;for(let g13=0;g13<m16;g13++){let x23=g13*d11,v13=Math.min(x23+d11,h18),T19=w15[g13];for(let E19=x23;E19<v13;E19++)b23[T19][u15[E19]]++}function S15(g13){for(let x23=0;x23<y14;x23++)g13[x23]<1&&(g13[x23]=1)}let z16=[];for(let g13=0;g13<p16;g13++)S15(b23[g13]),z16.push(Xe3(b23[g13],y14,20));for(let g13=0;g13<4;g13++){for(let x23=0;x23<p16;x23++)b23[x23].fill(0);for(let x23=0;x23<m16;x23++){let v13=x23*d11,T19=Math.min(v13+d11,h18),E19=0,Z10=1/0;for(let U12=0;U12<p16;U12++){let oe8=0;for(let ce9=v13;ce9<T19;ce9++)oe8+=z16[U12].codeLengths[u15[ce9]]||20;oe8<Z10&&(Z10=oe8,E19=U12)}w15[x23]=E19;for(let U12=v13;U12<T19;U12++)b23[E19][u15[U12]]++}for(let x23=0;x23<p16;x23++)S15(b23[x23]),z16[x23]=Xe3(b23[x23],y14,20)}e8.writeBits(3,p16),e8.writeBits(15,m16);let C18=[],A13=[];for(let g13=0;g13<p16;g13++)A13.push(g13);for(let g13=0;g13<m16;g13++){let x23=w15[g13],v13=0;for(;A13[v13]!==x23;)v13++;if(C18.push(v13),v13>0){let T19=A13[v13];for(let E19=v13;E19>0;E19--)A13[E19]=A13[E19-1];A13[0]=T19}}for(let g13=0;g13<m16;g13++){for(let x23=0;x23<C18[g13];x23++)e8.writeBit(1);e8.writeBit(0)}for(let g13=0;g13<p16;g13++){let x23=z16[g13].codeLengths,v13=x23[0];e8.writeBits(5,v13);for(let T19=0;T19<y14;T19++){let E19=x23[T19];for(;v13<E19;)e8.writeBit(1),e8.writeBit(0),v13++;for(;v13>E19;)e8.writeBit(1),e8.writeBit(1),v13--;e8.writeBit(0)}}for(let g13=0;g13<p16;g13++){let{codes:x23,lengths:v13}=It3(z16[g13].codeLengths,y14);z16[g13]=Object.assign(z16[g13],{_codes:x23,_lengths:v13})}let W12=0,G14=0;for(let g13=0;g13<h18;g13++){(G14===0||G14>=d11)&&(g13>0&&W12++,G14=0);let x23=w15[W12],v13=z16[x23],T19=u15[g13],E19=v13._lengths[T19],Z10=v13._codes[T19];E19>0&&e8.writeBits(E19,Z10),G14++}}function Ge4(e8,t8=9,r7=Ft3,n10=Number.MAX_SAFE_INTEGER){if(t8<1||t8>9)throw new Error("Block size level must be 1-9");if(e8.length>r7)throw new Error(`Input too large for bzip2 compression (${e8.length} bytes, max ${r7})`);let i22=t8*1e5,s10=new ge7(n10);s10.writeBits(8,66),s10.writeBits(8,90),s10.writeBits(8,104),s10.writeBits(8,48+t8);let a14=0,o13=0;for(;o13<e8.length;){let c18=Math.min(o13+i22,e8.length),l12=e8.subarray(o13,c18),f15=4294967295;for(let u15=0;u15<l12.length;u15++)f15=At3(f15,l12[u15]);f15=~f15>>>0,a14=(a14<<1|a14>>>31)>>>0,a14=(a14^f15)>>>0,Ot2(s10,l12,f15),o13=c18}return s10.writeBits(24,1536581),s10.writeBits(24,3690640),s10.writeBits(32,a14),s10.finish()}async function Ze4(){if(ee7)return ee7;if(te7)throw te7;try{return ee7=await B2.runTrustedAsync(()=>Promise.resolve().then(()=>__toESM(require_node_liblzma(),1))),ee7}catch{throw te7=new Error("xz compression is not available in this shell"),te7}}async function qe4(){if(re7)return re7;if(ne7)throw ne7;try{return re7=await B2.runTrustedAsync(()=>Promise.resolve().then(()=>__toESM(require_zstd(),1))),re7}catch{throw ne7=new Error("zstd compression is not available in this shell"),ne7}}function X8(e8,t8){let r7=e8??t8;if(!Number.isSafeInteger(r7)||r7<=0)throw new Error("Archive limits must be positive safe integers");return r7}function O16(e8){return{maxArchiveSize:X8(e8?.maxArchiveSize,ye6),maxEntries:X8(e8?.maxEntries,Nt3),maxEntrySize:X8(e8?.maxEntrySize,ye6),maxCompressedSize:X8(e8?.maxCompressedSize,e8?.maxArchiveSize??ye6),maxExpansionRatio:X8(e8?.maxExpansionRatio,1e4),signal:e8?.signal,executionScope:e8?.executionScope,allowTrustedWholeBufferCodecs:e8?.allowTrustedWholeBufferCodecs??!0}}function Ut2(e8,t8){if(e8.length>t8.maxEntries)throw new Error(`Too many archive entries (max ${t8.maxEntries})`);let r7=i22=>{if(!Number.isSafeInteger(i22)||i22<0||i22>t8.maxArchiveSize-n10)throw new Error(`Archive too large (max ${t8.maxArchiveSize} bytes)`);n10+=i22},n10=$20*2;for(let i22 of e8){t8.signal?.throwIfAborted();let s10=i22.isDirectory||i22.isSymlink?0:typeof i22.content=="string"?x(i22.content):i22.content?.length??0;if(s10>t8.maxEntrySize)throw new Error(`Archive entry too large (max ${t8.maxEntrySize} bytes)`);let a14=i22.isDirectory&&!i22.name.endsWith("/")?`${i22.name}/`:i22.name,o13=x(a14),c18=x(i22.linkTarget??"");if(o13>t8.maxArchiveSize||c18>t8.maxArchiveSize)throw new Error(`Archive too large (max ${t8.maxArchiveSize} bytes)`);let l12=0;if(o13>100&&(l12+=o13+64),c18>100&&(l12+=c18+64),!Number.isSafeInteger(l12))throw new Error(`Archive too large (max ${t8.maxArchiveSize} bytes)`);let f15=Math.ceil(s10/$20)*$20;if(r7($20+f15),l12>0){let u15=Math.ceil(l12/$20)*$20;r7($20+u15)}}return n10}function ie6(e8,t8,r7){return e8.executionScope?.reserveBytes(t8,r7,`tar: ${t8}`)}function Pt2(e8){let t8=e8.subarray(124,136);if((t8[0]&128)!==0){let i22=t8[0]&127;for(let s10=1;s10<t8.length;s10++)if(i22=i22*256+t8[s10],!Number.isSafeInteger(i22))return;return i22}let r7=new TextDecoder("ascii").decode(t8).replace(/\0.*$/,"").trim();if(r7==="")return 0;if(!/^[0-7]+$/.test(r7))return;let n10=Number.parseInt(r7,8);return Number.isSafeInteger(n10)?n10:void 0}function Rt3(e8,t8){let r7=0,n10=0;for(;r7+$20<=e8.length;){t8.signal?.throwIfAborted();let i22=e8.subarray(r7,r7+$20);if(i22.every(o13=>o13===0))return;if(n10++,n10>t8.maxEntries)return`Too many entries (max ${t8.maxEntries})`;let s10=Pt2(i22);if(s10===void 0)return"Invalid tar archive format";if(s10>t8.maxEntrySize)return`Archive entry too large (max ${t8.maxEntrySize} bytes)`;let a14=Math.ceil(s10/$20)*$20;if(!Number.isSafeInteger(a14)||(r7+=$20+a14,r7>e8.length))return"Invalid tar archive format"}return r7===e8.length?void 0:"Invalid tar archive format"}function Mt2(e8){let t8="file";e8.isDirectory?t8="directory":e8.isSymlink&&(t8="symlink");let r7=e8.name;e8.isDirectory&&!r7.endsWith("/")&&(r7+="/");let n10;e8.content!==void 0&&(typeof e8.content=="string"?n10=new TextEncoder().encode(e8.content):n10=e8.content);let i22=e8.isDirectory||e8.isSymlink?0:n10?.length??0;return{header:{name:r7,mode:e8.mode??(e8.isDirectory?493:420),uid:e8.uid??0,gid:e8.gid??0,size:i22,mtime:e8.mtime??new Date,type:t8,linkname:e8.linkTarget??"",uname:"user",gname:"user"},body:n10}}async function R17(e8,t8){let r7=O16(t8),n10=Ut2(e8,r7),i22=ie6(r7,"archive construction",n10);try{let s10=e8.map(Mt2),a14=await je4(s10);if(r7.signal?.throwIfAborted(),a14.length>r7.maxArchiveSize)throw new Error(`Archive too large (max ${r7.maxArchiveSize} bytes)`);return a14}finally{i22?.release()}}async function Ye3(e8,t8){let r7=O16(t8),n10=await R17(e8,r7),i22=ie6(r7,"gzip input",n10.byteLength),s10=new o12({maxInputBytes:r7.maxArchiveSize,maxOutputBytes:r7.maxCompressedSize,signal:r7.signal,label:"gzip archive"});s10.acceptInput(n10.length);let c18=new ReadableStream({start(h18){h18.enqueue(n10),h18.close()}}).pipeThrough(De4()).getReader(),l12=[],f15=[],u15=0;try{for(;;){let{done:y14,value:d11}=await c18.read();if(y14)break;try{s10.acceptOutput(d11.length);let m16=ie6(r7,"gzip chunks",d11.byteLength);m16&&f15.push(m16)}catch(m16){throw await c18.cancel(),m16}u15+=d11.length,l12.push(d11)}let h18=ie6(r7,"gzip result",u15);try{let y14=new Uint8Array(u15),d11=0;for(let m16 of l12)y14.set(m16,d11),d11+=m16.length;return y14}finally{h18?.release()}}finally{for(let h18 of f15)h18.release();i22?.release()}}async function L17(e8,t8){let r7=O16(t8);if(e8.length>r7.maxArchiveSize)return{entries:[],error:`Archive too large (max ${r7.maxArchiveSize} bytes)`};if(e8.length<$20||e8.length%$20!==0)return{entries:[],error:"Invalid tar archive format"};let n10=Rt3(e8,r7);if(n10)return{entries:[],error:n10};try{let i22=await He5(e8),s10=[];for(let a14 of i22){if(r7.signal?.throwIfAborted(),s10.length>=r7.maxEntries)return{entries:[],error:`Too many entries (max ${r7.maxEntries})`};let o13=a14.data??new Uint8Array(0);if(a14.header.size>r7.maxEntrySize||o13.length>r7.maxEntrySize)return{entries:[],error:`Archive entry too large (max ${r7.maxEntrySize} bytes)`};let c18="file";switch(a14.header.type){case"directory":c18="directory";break;case"symlink":c18="symlink";break;case"link":c18="hardlink";break;case"file":c18="file";break;default:c18="other"}s10.push({name:a14.header.name,mode:a14.header.mode??420,uid:a14.header.uid??0,gid:a14.header.gid??0,size:a14.header.size,mtime:a14.header.mtime??new Date,type:c18,linkTarget:a14.header.linkname||void 0,content:o13})}return{entries:s10}}catch(i22){let s10=i22 instanceof Error?i22.message:"Unknown error";return{entries:[],error:s10}}}async function we8(e8,t8){let r7=O16(t8);if(e8.length>r7.maxCompressedSize)return{entries:[],error:`Archive too large (max ${r7.maxCompressedSize} bytes)`};try{let n10=new o12({maxInputBytes:r7.maxCompressedSize,maxOutputBytes:r7.maxArchiveSize,maxExpansionRatio:r7.maxExpansionRatio,signal:r7.signal,label:"gzip archive"});n10.acceptInput(e8.length);let a14=new ReadableStream({start(u15){u15.enqueue(e8),u15.close()}}).pipeThrough(We7()).getReader(),o13=[],c18=0;for(;;){let{done:u15,value:h18}=await a14.read();if(u15)break;try{n10.acceptOutput(h18.length)}catch(y14){throw await a14.cancel(),y14}c18+=h18.length,o13.push(h18)}let l12=new Uint8Array(c18),f15=0;for(let u15 of o13)l12.set(u15,f15),f15+=u15.length;return L17(l12,r7)}catch(n10){let i22=n10 instanceof Error?n10.message:"Unknown error";return{entries:[],error:`Decompression failed: ${i22}`}}}function xe7(e8){return e8.length>=2&&e8[0]===31&&e8[1]===139}function be6(e8){return e8.length>=3&&e8[0]===66&&e8[1]===90&&e8[2]===104}function ze4(e8){return e8.length>=6&&e8[0]===253&&e8[1]===55&&e8[2]===122&&e8[3]===88&&e8[4]===90&&e8[5]===0}async function Dt3(e8,t8){let r7=new o12({maxInputBytes:t8.maxCompressedSize,maxOutputBytes:t8.maxArchiveSize,maxExpansionRatio:t8.maxExpansionRatio,signal:t8.signal,label:"bzip2 archive"});r7.acceptInput(e8.length);let n10=Math.min(64*1024,t8.maxArchiveSize),i22=[],s10=Buffer.allocUnsafe(n10),a14=0,o13=0,c18={writeByte(l12){r7.acceptOutput(1),a14===s10.length&&(i22.push(s10),s10=Buffer.allocUnsafe(n10),a14=0),s10[a14++]=l12,o13++}};return import_seek_bzip.default.decode(Buffer.from(e8),c18),a14>0&&i22.push(s10.subarray(0,a14)),new Uint8Array(Buffer.concat(i22,o13))}async function Wt3(e8,t8){let r7=new o12({maxInputBytes:t8.maxArchiveSize,maxOutputBytes:t8.maxCompressedSize,signal:t8.signal,label:"bzip2 archive"});r7.acceptInput(e8.length);let n10=await Ge4(e8,9,t8.maxArchiveSize,t8.maxCompressedSize);return r7.acceptOutput(n10.length),n10}async function _t3(e8){let r7=(await Ze4()).unxzSync(Buffer.from(e8));return new Uint8Array(r7)}async function jt2(e8){let r7=(await Ze4()).xzSync(Buffer.from(e8));return new Uint8Array(r7)}async function Ke4(e8,t8){let r7=O16(t8),n10=await R17(e8,r7);return Wt3(n10,r7)}async function Je4(e8,t8){let r7=O16(t8);if(t8?.allowNativeCodecs===!1||!r7.allowTrustedWholeBufferCodecs)throw new Error("xz compression is disabled by configuration. Enable native and trusted whole-buffer codecs to use it.");let n10=await R17(e8,r7),i22=await jt2(n10);if(r7.signal?.throwIfAborted(),i22.length>r7.maxCompressedSize)throw new Error(`xz archive: output exceeds limit (${r7.maxCompressedSize} bytes)`);return i22}async function ve7(e8,t8){let r7=O16({...t8,maxArchiveSize:t8?.maxDecompressedSize??t8?.maxArchiveSize});if(e8.length>r7.maxCompressedSize)return{entries:[],error:`Archive too large (max ${r7.maxCompressedSize} bytes)`};try{let n10=await Dt3(e8,r7);return L17(n10,r7)}catch(n10){let i22=n10 instanceof Error?n10.message:"Unknown error";return i22===`bzip2 archive: output exceeds limit (${r7.maxArchiveSize} bytes)`?{entries:[],error:`Decompressed archive too large (max ${r7.maxArchiveSize} bytes)`}:{entries:[],error:i22}}}async function ke6(e8,t8){let r7=O16(t8);if(t8?.allowNativeCodecs===!1||!r7.allowTrustedWholeBufferCodecs)return{entries:[],error:"xz decompression is disabled by configuration. Enable native and trusted whole-buffer codecs, or decompress the archive externally before extraction."};if(e8.length>r7.maxCompressedSize)return{entries:[],error:`Archive too large (max ${r7.maxCompressedSize} bytes)`};try{let n10=await _t3(e8);return r7.signal?.throwIfAborted(),n10.length>r7.maxArchiveSize?{entries:[],error:`Trusted xz codec produced data over limit (${r7.maxArchiveSize} bytes)`}:L17(n10,r7)}catch(n10){let i22=n10 instanceof Error?n10.message:"Unknown error";return{entries:[],error:i22}}}function Ce9(e8){return e8.length>=4&&e8[0]===40&&e8[1]===181&&e8[2]===47&&e8[3]===253}async function Ht3(e8){let r7=await(await qe4()).compress(Buffer.from(e8),3);return new Uint8Array(r7)}async function Xt2(e8){let r7=await(await qe4()).decompress(Buffer.from(e8));return new Uint8Array(r7)}async function Ve5(e8,t8){let r7=O16(t8);if(t8?.allowNativeCodecs===!1||!r7.allowTrustedWholeBufferCodecs)throw new Error("zstd compression is disabled by configuration. Enable native and trusted whole-buffer codecs to use it.");let n10=await R17(e8,r7),i22=await Ht3(n10);if(r7.signal?.throwIfAborted(),i22.length>r7.maxCompressedSize)throw new Error(`zstd archive: output exceeds limit (${r7.maxCompressedSize} bytes)`);return i22}async function Ae4(e8,t8){let r7=O16(t8);if(t8?.allowNativeCodecs===!1||!r7.allowTrustedWholeBufferCodecs)return{entries:[],error:"zstd decompression is disabled by configuration. Enable native and trusted whole-buffer codecs, or decompress the archive externally before extraction."};if(e8.length>r7.maxCompressedSize)return{entries:[],error:`Archive too large (max ${r7.maxCompressedSize} bytes)`};try{let n10=await Xt2(e8);return r7.signal?.throwIfAborted(),n10.length>r7.maxArchiveSize?{entries:[],error:`Trusted zstd codec produced data over limit (${r7.maxArchiveSize} bytes)`}:L17(n10,r7)}catch(n10){let i22=n10 instanceof Error?n10.message:"Unknown error";return{entries:[],error:i22}}}function Qe4(e8){let t8=e8.length>0&&e8[0]!==""&&!e8[0].startsWith("-")?Gt3(e8):e8,r7={create:!1,append:!1,update:!1,extract:!1,list:!1,file:"",autoCompress:!1,gzip:!1,bzip2:!1,xz:!1,zstd:!1,verbose:!1,toStdout:!1,keepOldFiles:!1,touch:!1,directory:"",preserve:!1,absoluteNames:!1,strip:0,exclude:[],filesFrom:"",excludeFrom:"",wildcards:!1},n10=[],i22=0;for(;i22<t8.length;){let s10=t8[i22];if(s10.startsWith("-")&&!s10.startsWith("--")&&s10.length>2){if(/^-\d+$/.test(s10)){n10.push(s10),i22++;continue}for(let a14=1;a14<s10.length;a14++){let o13=s10[a14];switch(o13){case"c":r7.create=!0;break;case"r":r7.append=!0;break;case"u":r7.update=!0;break;case"x":r7.extract=!0;break;case"t":r7.list=!0;break;case"a":r7.autoCompress=!0;break;case"z":r7.gzip=!0;break;case"j":r7.bzip2=!0;break;case"J":r7.xz=!0;break;case"v":r7.verbose=!0;break;case"O":r7.toStdout=!0;break;case"k":r7.keepOldFiles=!0;break;case"m":r7.touch=!0;break;case"p":r7.preserve=!0;break;case"P":r7.absoluteNames=!0;break;case"f":if(a14<s10.length-1)r7.file=s10.substring(a14+1),a14=s10.length;else{if(i22++,i22>=t8.length)return{ok:!1,error:{stdout:"",stderr:`tar: option requires an argument -- 'f'
758
758
  `,exitCode:2}};r7.file=t8[i22]}break;case"C":if(a14<s10.length-1)r7.directory=s10.substring(a14+1),a14=s10.length;else{if(i22++,i22>=t8.length)return{ok:!1,error:{stdout:"",stderr:`tar: option requires an argument -- 'C'
759
759
  `,exitCode:2}};r7.directory=t8[i22]}break;case"T":if(a14<s10.length-1)r7.filesFrom=s10.substring(a14+1),a14=s10.length;else{if(i22++,i22>=t8.length)return{ok:!1,error:{stdout:"",stderr:`tar: option requires an argument -- 'T'
@@ -807,7 +807,7 @@ When no FILE is given, or when FILE is -, read from standard input.`,options:["-
807
807
  `,exitCode:2}}}else n10=Uint8Array.from(e8.stdin,f15=>f15.charCodeAt(0));let i22,s10=t8.gzip||xe7(n10),a14=t8.bzip2||be6(n10),o13=t8.xz||ze4(n10),c18=t8.zstd||Ce9(n10);if(s10?i22=await we8(n10,k17(e8)):a14?i22=await ve7(n10,k17(e8)):o13?i22=await ke6(n10,k17(e8)):c18?i22=await Ae4(n10,k17(e8)):i22=await L17(n10,k17(e8)),i22.error)return{stdout:"",stderr:`tar: ${i22.error}
808
808
  `,exitCode:2};let l12="";for(let f15 of i22.entries){if(B15(e8))return N15();let u15=tt5(f15.name,t8.strip);if(!u15)continue;let h18=u15.endsWith("/")?u15.slice(0,-1):u15;if(r7.length>0){let y14;if(t8.wildcards?y14=r7.some(d11=>se9(u15,d11)||se9(h18,d11)||u15.startsWith(`${d11}/`)):y14=r7.some(d11=>u15===d11||u15.startsWith(`${d11}/`)||h18===d11),!y14)continue}if(!Ee6(u15,t8.exclude))if(t8.verbose){let y14=f15.type==="directory",d11=x11(f15.mode,y14),m16=`${f15.uid}/${f15.gid}`,p16=f15.size.toString().padStart(8," "),b23=Yt2(f15.mtime),w15=`${d11} ${m16.padEnd(10)} ${p16} ${b23} ${u15}`;f15.type==="symlink"&&f15.linkTarget&&(w15+=` -> ${f15.linkTarget}`),l12+=`${w15}
809
809
  `}else l12+=`${u15}
810
- `}return{stdout:l12,stderr:"",exitCode:0}}var import_seek_bzip,require181,nt5,it4,st5,Le6,at4,ot5,ct3,V7,I19,Q8,M17,Te3,K9,de8,ft4,mt3,Ie4,ue5,H18,xt3,J9,bt3,Me3,Ct3,ge7,Ft3,ee7,te7,re7,ne7,ye6,$20,Nt3,et4,Zt3,zr,vr,init_chunk_5UTZMNI5=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-5UTZMNI5.js"(){init_chunk_WZQNMEQW();init_chunk_TDD4NFYE();init_chunk_7GA3QWJJ();init_chunk_CBM6J4AL();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();import_seek_bzip=__toESM(require_lib(),1),require181=createRequire180(import.meta.url),nt5="file",it4="link",st5="symlink",Le6="directory",at4={file:"0",link:"1",symlink:"2","character-device":"3","block-device":"4",directory:"5",fifo:"6","pax-header":"x","pax-global-header":"g","gnu-long-name":"L","gnu-long-link-name":"K"},ot5={0:nt5,1:it4,2:st5,3:"character-device",4:"block-device",5:Le6,6:"fifo",x:"pax-header",g:"pax-global-header",L:"gnu-long-name",K:"gnu-long-link-name"},ct3=new Uint8Array(512),V7=new Uint8Array(0),I19=new TextEncoder,Q8=new TextDecoder;M17=e8=>e8.type==="directory"||e8.type==="symlink"||e8.type==="link"||e8.type==="character-device"||e8.type==="block-device"||e8.type==="fifo";Te3=(e8,t8)=>{let r7=e8.split("/").filter(Boolean);return t8>=r7.length?"":r7.slice(t8).join("/")};K9=256;de8=32,ft4=48;mt3=256;Ie4={path:["name",e8=>e8],linkpath:["linkname",e8=>e8],size:["size",e8=>/^\d+$/.test(e8)&&Number.isSafeInteger(+e8)?+e8:NaN],mtime:["mtime",parseFloat],uid:["uid",e8=>parseInt(e8,10)],gid:["gid",e8=>parseInt(e8,10)],uname:["uname",e8=>e8],gname:["gname",e8=>e8]};ue5=0,H18=1,xt3=8*1024*1024,J9=new Error("Tar archive is truncated.");bt3=new Uint8Array(512*2);Me3=e8=>e8.pipeTo(new WritableStream);Ct3=(()=>{let e8=new Uint32Array(256);for(let t8=0;t8<256;t8++){let r7=t8<<24;for(let n10=0;n10<8;n10++)r7=r7&2147483648?r7<<1^79764919:r7<<1;e8[t8]=r7>>>0}return e8})();ge7=class{maxOutputBytes;buffer=[];current=0;bitCount=0;constructor(t8=Number.MAX_SAFE_INTEGER){if(this.maxOutputBytes=t8,!Number.isSafeInteger(t8)||t8<0)throw new Error("Invalid bzip2 output limit")}pushByte(t8){if(this.buffer.length>=this.maxOutputBytes)throw new Error(`bzip2 output exceeds limit (${this.maxOutputBytes} bytes)`);this.buffer.push(t8)}writeBits(t8,r7){for(let n10=t8-1;n10>=0;n10--)this.current=this.current<<1|r7>>>n10&1,this.bitCount++,this.bitCount===8&&(this.pushByte(this.current),this.current=0,this.bitCount=0)}writeBit(t8){this.current=this.current<<1|t8&1,this.bitCount++,this.bitCount===8&&(this.pushByte(this.current),this.current=0,this.bitCount=0)}finish(){return this.bitCount>0&&this.pushByte(this.current<<8-this.bitCount),new Uint8Array(this.buffer)}};Ft3=10*1024*1024;ee7=null,te7=null;re7=null,ne7=null;ye6=1024*1024*1024,$20=512,Nt3=1e6;et4=100;Zt3={name:"tar",summary:"manipulate tape archives",usage:"tar [options] [file...]",description:["Create, extract, or list contents of tar archives.","","One of -c, -r, -u, -x, or -t is required to specify the operation."],options:["-c, --create create a new archive","-r, --append append files to the end of an archive","-u, --update only append files newer than copy in archive","-x, --extract extract files from an archive","-t, --list list contents of an archive","-f, --file=ARCHIVE use archive file ARCHIVE","-a, --auto-compress use archive suffix to determine compression","-z, --gzip filter archive through gzip","-j, --bzip2 filter archive through bzip2","-J, --xz filter archive through xz","--zstd filter archive through zstd","-v, --verbose verbosely list files processed","-O, --to-stdout extract files to standard output","-k, --keep-old-files don't replace existing files when extracting","-m, --touch don't extract file modified time","-C, --directory=DIR change to directory DIR before performing operations","-p, --preserve preserve permissions","-P, --absolute-names do not strip leading '/' or block '..' paths","-T, --files-from=FILE read files to extract/create from FILE","-X, --exclude-from=FILE read exclude patterns from FILE","--strip=N strip N leading path components on extraction","--exclude=PATTERN exclude files matching PATTERN","--wildcards use wildcards for pattern matching"," --help display this help and exit"],examples:["tar -cvf archive.tar file1 file2 Create archive from files","tar -czvf archive.tar.gz dir/ Create gzip-compressed archive","tar -cjvf archive.tar.bz2 dir/ Create bzip2-compressed archive","tar -rf archive.tar newfile.txt Append file to archive","tar -uf archive.tar dir/ Update archive with newer files","tar -xvf archive.tar Extract archive","tar -xvf archive.tar -C /tmp Extract to /tmp","tar -tvf archive.tar List archive contents","tar -xzf archive.tar.gz Extract gzip archive","tar -xf archive.tar file1.txt Extract specific file","tar -xOf archive.tar file.txt Extract file to stdout","tar -xf archive.tar --wildcards '*.txt' Extract matching files"]};zr={name:"tar",async execute(e8,t8){if(B15(t8))return N15();if(o5(e8))return s5(Zt3);let r7=Qe4(e8);if(!r7.ok)return r7.error;let{options:n10,files:i22}=r7,s10=[n10.create,n10.append,n10.update,n10.extract,n10.list].filter(Boolean).length;if(s10===0)return{stdout:"",stderr:`tar: You must specify one of -c, -r, -u, -x, or -t
810
+ `}return{stdout:l12,stderr:"",exitCode:0}}var import_seek_bzip,require181,nt5,it4,st5,Le6,at4,ot5,ct3,V7,I19,Q8,M17,Te3,K9,de8,ft4,mt3,Ie4,ue5,H18,xt3,J9,bt3,Me3,Ct3,ge7,Ft3,ee7,te7,re7,ne7,ye6,$20,Nt3,et4,Zt3,zr,vr,init_chunk_5UTZMNI5=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-5UTZMNI5.js"(){init_chunk_WZQNMEQW();init_chunk_TDD4NFYE();init_chunk_7GA3QWJJ();init_chunk_CBM6J4AL();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();import_seek_bzip=__toESM(require_lib(),1),require181=createRequire180(import.meta.url),nt5="file",it4="link",st5="symlink",Le6="directory",at4={file:"0",link:"1",symlink:"2","character-device":"3","block-device":"4",directory:"5",fifo:"6","pax-header":"x","pax-global-header":"g","gnu-long-name":"L","gnu-long-link-name":"K"},ot5={0:nt5,1:it4,2:st5,3:"character-device",4:"block-device",5:Le6,6:"fifo",x:"pax-header",g:"pax-global-header",L:"gnu-long-name",K:"gnu-long-link-name"},ct3=new Uint8Array(512),V7=new Uint8Array(0),I19=new TextEncoder,Q8=new TextDecoder;M17=e8=>e8.type==="directory"||e8.type==="symlink"||e8.type==="link"||e8.type==="character-device"||e8.type==="block-device"||e8.type==="fifo";Te3=(e8,t8)=>{let r7=e8.split("/").filter(Boolean);return t8>=r7.length?"":r7.slice(t8).join("/")};K9=256;de8=32,ft4=48;mt3=256;Ie4={path:["name",e8=>e8],linkpath:["linkname",e8=>e8],size:["size",e8=>/^\d+$/.test(e8)&&Number.isSafeInteger(+e8)?+e8:NaN],mtime:["mtime",parseFloat],uid:["uid",e8=>parseInt(e8,10)],gid:["gid",e8=>parseInt(e8,10)],uname:["uname",e8=>e8],gname:["gname",e8=>e8]};ue5=0,H18=1,xt3=8*1024*1024,J9=new Error("Tar archive is truncated.");bt3=new Uint8Array(512*2);Me3=e8=>e8.pipeTo(new WritableStream);Ct3=(()=>{let e8=new Uint32Array(256);for(let t8=0;t8<256;t8++){let r7=t8<<24;for(let n10=0;n10<8;n10++)r7=r7&2147483648?r7<<1^79764919:r7<<1;e8[t8]=r7>>>0}return e8})();ge7=class{maxOutputBytes;buffer=[];current=0;bitCount=0;constructor(t8=Number.MAX_SAFE_INTEGER){if(this.maxOutputBytes=t8,!Number.isSafeInteger(t8)||t8<0)throw new Error("Invalid bzip2 output limit")}pushByte(t8){if(this.buffer.length>=this.maxOutputBytes)throw new Error(`bzip2 output exceeds limit (${this.maxOutputBytes} bytes)`);this.buffer.push(t8)}writeBits(t8,r7){for(let n10=t8-1;n10>=0;n10--)this.current=this.current<<1|r7>>>n10&1,this.bitCount++,this.bitCount===8&&(this.pushByte(this.current),this.current=0,this.bitCount=0)}writeBit(t8){this.current=this.current<<1|t8&1,this.bitCount++,this.bitCount===8&&(this.pushByte(this.current),this.current=0,this.bitCount=0)}finish(){return this.bitCount>0&&this.pushByte(this.current<<8-this.bitCount),new Uint8Array(this.buffer)}};Ft3=10*1024*1024;ee7=null,te7=null;re7=null,ne7=null;ye6=1024*1024*1024,$20=512,Nt3=1e6;et4=100;Zt3={name:"tar",summary:"manipulate tape archives",usage:"tar [options] [file...]",description:["Create, extract, or list contents of tar archives.","","One of -c, -r, -u, -x, or -t is required to specify the operation."],options:["-c, --create create a new archive","-r, --append append files to the end of an archive","-u, --update only append files newer than copy in archive","-x, --extract extract files from an archive","-t, --list list contents of an archive","-f, --file=ARCHIVE use archive file ARCHIVE","-a, --auto-compress use archive suffix to determine compression","-z, --gzip filter archive through gzip","-j, --bzip2 filter archive through bzip2","-J, --xz filter archive through xz","--zstd filter archive through zstd","-v, --verbose verbosely list files processed","-O, --to-stdout extract files to standard output","-k, --keep-old-files don't replace existing files when extracting","-m, --touch don't extract file modified time","-C, --directory=DIR change to directory DIR before performing operations","-p, --preserve preserve permissions","-P, --absolute-names do not strip leading '/' or block '..' paths","-T, --files-from=FILE read files to extract/create from FILE","-X, --exclude-from=FILE read exclude patterns from FILE","--strip=N strip N leading path components on extraction","--exclude=PATTERN exclude files matching PATTERN","--wildcards use wildcards for pattern matching"," --help display this help and exit"],examples:["tar -cvf archive.tar file1 file2 Create archive from files","tar -czvf archive.tar.gz dir/ Create gzip-compressed archive","tar -cjvf archive.tar.bz2 dir/ Create bzip2-compressed archive","tar -rf archive.tar newfile.txt Append file to archive","tar -uf archive.tar dir/ Update archive with newer files","tar -xvf archive.tar Extract archive","tar -xvf archive.tar -C /tmp Extract to /tmp","tar -tvf archive.tar List archive contents","tar -xzf archive.tar.gz Extract gzip archive","tar -xf archive.tar file1.txt Extract specific file","tar -xOf archive.tar file.txt Extract file to stdout","tar -xf archive.tar --wildcards '*.txt' Extract matching files"]};zr={name:"tar",async execute(e8,t8){if(B15(t8))return N15();if(o5(e8))return s5(Zt3);let r7=Qe4(e8);if(!r7.ok)return r7.error;let{options:n10,files:i22}=r7,s10=[n10.create,n10.append,n10.update,n10.extract,n10.list].filter(Boolean).length;if(s10===0)return{stdout:"",stderr:`tar: You must specify one of -c, -r, -u, -x, or -t
811
811
  `,exitCode:2};if(s10>1)return{stdout:"",stderr:`tar: You may not specify more than one of -c, -r, -u, -x, or -t
812
812
  `,exitCode:2};if(n10.autoCompress&&n10.file&&n10.create){let c18=n10.file.toLowerCase();c18.endsWith(".tar.gz")||c18.endsWith(".tgz")?n10.gzip=!0:c18.endsWith(".tar.bz2")||c18.endsWith(".tbz2")?n10.bzip2=!0:c18.endsWith(".tar.xz")||c18.endsWith(".txz")?n10.xz=!0:(c18.endsWith(".tar.zst")||c18.endsWith(".tzst"))&&(n10.zstd=!0)}let a14=[n10.gzip,n10.bzip2,n10.xz,n10.zstd].filter(Boolean).length;if(a14>1)return{stdout:"",stderr:`tar: You may not specify more than one compression option
813
813
  `,exitCode:2};if((n10.append||n10.update)&&a14>0)return{stdout:"",stderr:`tar: Cannot append/update compressed archives - decompress first
@@ -815,7 +815,7 @@ When no FILE is given, or when FILE is -, read from standard input.`,options:["-
815
815
  `).map(u15=>u15.trim()).filter(u15=>u15.length>0&&!u15.startsWith("#"));o13=[...i22,...f15]}catch{return{stdout:"",stderr:`tar: ${n10.filesFrom}: Cannot open: No such file or directory
816
816
  `,exitCode:2}}}if(n10.excludeFrom){let c18=t8.fs.resolvePath(t8.cwd,n10.excludeFrom);try{let f15=(await t8.fs.readFile(c18)).split(`
817
817
  `).map(u15=>u15.trim()).filter(u15=>u15.length>0&&!u15.startsWith("#"));n10.exclude.push(...f15)}catch{return{stdout:"",stderr:`tar: ${n10.excludeFrom}: Cannot open: No such file or directory
818
- `,exitCode:2}}}return n10.create?Kt2(t8,n10,o13):n10.append?Jt2(t8,n10,o13):n10.update?Vt3(t8,n10,o13):n10.extract?Qt2(t8,n10,o13):er2(t8,n10,o13)}},vr={name:"tar",flags:[{flag:"-c",type:"boolean"},{flag:"-x",type:"boolean"},{flag:"-t",type:"boolean"},{flag:"-f",type:"value",valueHint:"path"},{flag:"-z",type:"boolean"},{flag:"-j",type:"boolean"},{flag:"-v",type:"boolean"},{flag:"-C",type:"value",valueHint:"path"},{flag:"--strip-components",type:"value",valueHint:"number"},{flag:"--exclude",type:"value",valueHint:"pattern"}],needsArgs:!0}}});var tar_BNHPWTOY_exports={};__export(tar_BNHPWTOY_exports,{flagsForFuzzing:()=>vr,tarCommand:()=>zr});import{createRequire as createRequire181}from"node:module";var require182,init_tar_BNHPWTOY=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/tar-BNHPWTOY.js"(){init_chunk_5UTZMNI5();init_chunk_WZQNMEQW();init_chunk_TDD4NFYE();init_chunk_7GA3QWJJ();init_chunk_CBM6J4AL();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require182=createRequire181(import.meta.url)}});import{createRequire as createRequire182}from"node:module";var require183,xe8,init_chunk_6RK4AAB7=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-6RK4AAB7.js"(){init_chunk_NCUTH6QL();require183=createRequire182(import.meta.url),xe8=n6((le10,pe7)=>{(function(he8,w15){typeof define=="function"&&define.amd?define([],w15):typeof pe7=="object"&&typeof le10<"u"?pe7.exports=w15():he8.Papa=w15()})(le10,function he8(){"use strict";var w15=(function(){return typeof self<"u"?self:typeof window<"u"?window:typeof w15<"u"?w15:{}})();function _e6(){var t8=w15.URL||w15.webkitURL||null,e8=he8.toString();return f15.BLOB_URL||(f15.BLOB_URL=t8.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",e8,")();"],{type:"text/javascript"})))}var Y11=!w15.document&&!!w15.postMessage,ue9=w15.IS_PAPA_WORKER||!1,ne9={},Re8=0,f15={};f15.parse=ge10,f15.unparse=Ee9,f15.RECORD_SEP="",f15.UNIT_SEP="",f15.BYTE_ORDER_MARK="\uFEFF",f15.BAD_DELIMITERS=["\r",`
818
+ `,exitCode:2}}}return n10.create?Kt2(t8,n10,o13):n10.append?Jt2(t8,n10,o13):n10.update?Vt3(t8,n10,o13):n10.extract?Qt2(t8,n10,o13):er2(t8,n10,o13)}},vr={name:"tar",flags:[{flag:"-c",type:"boolean"},{flag:"-x",type:"boolean"},{flag:"-t",type:"boolean"},{flag:"-f",type:"value",valueHint:"path"},{flag:"-z",type:"boolean"},{flag:"-j",type:"boolean"},{flag:"-v",type:"boolean"},{flag:"-C",type:"value",valueHint:"path"},{flag:"--strip-components",type:"value",valueHint:"number"},{flag:"--exclude",type:"value",valueHint:"pattern"}],needsArgs:!0}}});var tar_BNHPWTOY_exports={};__export(tar_BNHPWTOY_exports,{flagsForFuzzing:()=>vr,tarCommand:()=>zr});import{createRequire as createRequire181}from"node:module";var require182,init_tar_BNHPWTOY=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/tar-BNHPWTOY.js"(){init_chunk_5UTZMNI5();init_chunk_WZQNMEQW();init_chunk_TDD4NFYE();init_chunk_7GA3QWJJ();init_chunk_CBM6J4AL();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require182=createRequire181(import.meta.url)}});import{createRequire as createRequire182}from"node:module";var require183,xe8,init_chunk_6RK4AAB7=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-6RK4AAB7.js"(){init_chunk_NCUTH6QL();require183=createRequire182(import.meta.url),xe8=n6((le10,pe7)=>{(function(he8,w15){typeof define=="function"&&define.amd?define([],w15):typeof pe7=="object"&&typeof le10<"u"?pe7.exports=w15():he8.Papa=w15()})(le10,function he8(){"use strict";var w15=(function(){return typeof self<"u"?self:typeof window<"u"?window:typeof w15<"u"?w15:{}})();function _e6(){var t8=w15.URL||w15.webkitURL||null,e8=he8.toString();return f15.BLOB_URL||(f15.BLOB_URL=t8.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",e8,")();"],{type:"text/javascript"})))}var Y11=!w15.document&&!!w15.postMessage,ue9=w15.IS_PAPA_WORKER||!1,ne9={},Re8=0,f15={};f15.parse=ge10,f15.unparse=Ee9,f15.RECORD_SEP="",f15.UNIT_SEP="",f15.BYTE_ORDER_MARK="\uFEFF",f15.BAD_DELIMITERS=["\r",`
819
819
  `,'"',f15.BYTE_ORDER_MARK],f15.WORKERS_SUPPORTED=!Y11&&!!w15.Worker,f15.NODE_STREAM_INPUT=1,f15.LocalChunkSize=1024*1024*10,f15.RemoteChunkSize=1024*1024*5,f15.DefaultDelimiter=",",f15.Parser=fe8,f15.ParserHandle=ce9,f15.NetworkStreamer=V10,f15.FileStreamer=G14,f15.StringStreamer=Q12,f15.ReadableStreamStreamer=ee10,typeof PAPA_BROWSER_CONTEXT>"u"&&(f15.DuplexStreamStreamer=te10),ue9&&(w15.onmessage=be9);function oe8(t8){return t8.charCodeAt(0)===65279?t8.slice(1):t8}function ge10(t8,e8){e8=e8||{};var r7=e8.dynamicTyping||!1;if(g13(r7)&&(e8.dynamicTypingFunction=r7,r7={}),e8.dynamicTyping=r7,e8.transform=g13(e8.transform)?e8.transform:!1,e8.worker&&f15.WORKERS_SUPPORTED){var s10=Ce12();s10.userStep=e8.step,s10.userChunk=e8.chunk,s10.userComplete=e8.complete,s10.userError=e8.error,e8.step=g13(e8.step),e8.chunk=g13(e8.chunk),e8.complete=g13(e8.complete),e8.error=g13(e8.error),delete e8.worker,s10.postMessage({input:t8,config:e8,workerId:s10.id});return}var i22=null;return t8===f15.NODE_STREAM_INPUT&&typeof PAPA_BROWSER_CONTEXT>"u"?(i22=new te10(e8),i22.getStream()):(typeof t8=="string"?(t8=oe8(t8),e8.download?i22=new V10(e8):i22=new Q12(e8)):t8.readable===!0&&g13(t8.read)&&g13(t8.on)?i22=new ee10(e8):(w15.File&&t8 instanceof File||t8 instanceof Object)&&(i22=new G14(e8)),i22.stream(t8))}function Ee9(t8,e8){var r7=!1,s10=!0,i22=",",c18=`\r
820
820
  `,m16='"',h18=m16+m16,_13=!1,x23=null,S15=!1;P17();var d11=new RegExp(re9(m16),"g");if(typeof t8=="string"&&(t8=JSON.parse(t8)),Array.isArray(t8)){if(!t8.length||Array.isArray(t8[0]))return u15(null,t8,_13);if(typeof t8[0]=="object")return u15(x23||Object.keys(t8[0]),t8,_13)}else if(typeof t8=="object")return typeof t8.data=="string"&&(t8.data=JSON.parse(t8.data)),Array.isArray(t8.data)&&(t8.fields||(t8.fields=t8.meta&&t8.meta.fields||x23),t8.fields||(t8.fields=Array.isArray(t8.data[0])?t8.fields:typeof t8.data[0]=="object"?Object.keys(t8.data[0]):[]),!Array.isArray(t8.data[0])&&typeof t8.data[0]!="object"&&(t8.data=[t8.data])),u15(t8.fields||[],t8.data||[],_13);throw new Error("Unable to serialize unrecognized input");function P17(){if(typeof e8=="object"){if(typeof e8.delimiter=="string"&&!f15.BAD_DELIMITERS.filter(function(y14){return e8.delimiter.indexOf(y14)!==-1}).length&&(i22=e8.delimiter),(typeof e8.quotes=="boolean"||typeof e8.quotes=="function"||Array.isArray(e8.quotes))&&(r7=e8.quotes),(typeof e8.skipEmptyLines=="boolean"||typeof e8.skipEmptyLines=="string")&&(_13=e8.skipEmptyLines),typeof e8.newline=="string"&&(c18=e8.newline),typeof e8.quoteChar=="string"&&(m16=e8.quoteChar,h18=m16+m16),typeof e8.header=="boolean"&&(s10=e8.header),Array.isArray(e8.columns)){if(e8.columns.length===0)throw new Error("Option columns is empty");x23=e8.columns}e8.escapeChar!==void 0&&(h18=e8.escapeChar+m16),e8.escapeFormulae instanceof RegExp?S15=e8.escapeFormulae:typeof e8.escapeFormulae=="boolean"&&e8.escapeFormulae&&(S15=/^[=+\-@\t\r].*$/)}}function u15(y14,v13,C18){var A13="";typeof y14=="string"&&(y14=JSON.parse(y14)),typeof v13=="string"&&(v13=JSON.parse(v13));var b23=Array.isArray(y14)&&y14.length>0,D18=!Array.isArray(v13[0]);if(b23&&s10){for(var q11=0;q11<y14.length;q11++)q11>0&&(A13+=i22),A13+=l12(y14[q11],q11);v13.length>0&&(A13+=c18)}for(var k19=0;k19<v13.length;k19++){var N16=b23?y14.length:v13[k19].length,W12=!1,a14=b23?Object.keys(v13[k19]).length===0:v13[k19].length===0;if(C18&&!b23&&(W12=C18==="greedy"?v13[k19].join("").trim()==="":v13[k19].length===1&&v13[k19][0].length===0),C18==="greedy"&&b23){for(var o13=[],p16=0;p16<N16;p16++){var E19=D18?y14[p16]:p16;o13.push(v13[k19][E19])}W12=o13.join("").trim()===""}if(!W12){for(var n10=0;n10<N16;n10++){n10>0&&!a14&&(A13+=i22);var R21=b23&&D18?y14[n10]:n10;A13+=l12(v13[k19][R21],n10)}k19<v13.length-1&&(!C18||N16>0&&!a14)&&(A13+=c18)}}return A13}function l12(y14,v13){if(typeof y14>"u"||y14===null)return"";if(y14.constructor===Date)return isNaN(y14.getTime())?"":y14.toISOString();var C18=!1;S15&&typeof y14=="string"&&S15.test(y14)&&(y14="'"+y14,C18=!0);var A13=y14.toString(),b23=A13.replace(d11,h18);return C18=C18||r7===!0||typeof r7=="function"&&r7(y14,v13)||Array.isArray(r7)&&r7[v13]||J13(b23,f15.BAD_DELIMITERS)||b23.indexOf(i22)>-1||A13.indexOf(m16)>-1||b23.charAt(0)===" "||b23.charAt(b23.length-1)===" ",C18?m16+b23+m16:b23}function J13(y14,v13){for(var C18=0;C18<v13.length;C18++)if(y14.indexOf(v13[C18])>-1)return!0;return!1}}function z16(t8){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},e8.call(this,t8),this.parseChunk=function(r7,s10){let i22=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&i22>0){let S15=this._config.newline;if(!S15){let P17=this._config.quoteChar||'"';S15=this._handle.guessLineEndings(r7,P17)}r7=[...r7.split(S15).slice(i22)].join(S15)}if(this.isFirstChunk&&g13(this._config.beforeFirstChunk)){var c18=this._config.beforeFirstChunk(r7);c18!==void 0&&(r7=c18)}this.isFirstChunk=!1,this._halted=!1;var m16=this._partialLine+r7;this._partialLine="";var h18=this._handle.parse(m16,this._baseIndex,!this._finished);if(this._handle.paused()||this._handle.aborted()){this._halted=!0;return}var _13=h18.meta.cursor;this._finished||(this._partialLine=m16.substring(_13-this._baseIndex),this._baseIndex=_13),h18&&h18.data&&(this._rowCount+=h18.data.length);var x23=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(ue9)w15.postMessage({results:h18,workerId:f15.WORKER_ID,finished:x23});else if(g13(this._config.chunk)&&!s10){if(this._config.chunk(h18,this._handle),this._handle.paused()||this._handle.aborted()){this._halted=!0;return}h18=void 0,this._completeResults=void 0}return!this._config.step&&!this._config.chunk&&(this._completeResults.data=this._completeResults.data.concat(h18.data),this._completeResults.errors=this._completeResults.errors.concat(h18.errors),this._completeResults.meta=h18.meta),!this._completed&&x23&&g13(this._config.complete)&&(!h18||!h18.meta.aborted)&&(this._config.complete(this._completeResults,this._input),this._completed=!0),!x23&&(!h18||!h18.meta.paused)&&this._nextChunk(),h18},this._sendError=function(r7){g13(this._config.error)?this._config.error(r7):ue9&&this._config.error&&w15.postMessage({workerId:f15.WORKER_ID,error:r7,finished:!1})};function e8(r7){var s10=ae11(r7);s10.chunkSize=parseInt(s10.chunkSize),!r7.step&&!r7.chunk&&(s10.chunkSize=null),this._handle=new ce9(s10),this._handle.streamer=this,this._config=s10}}function V10(t8){t8=t8||{},t8.chunkSize||(t8.chunkSize=f15.RemoteChunkSize),z16.call(this,t8);var e8;Y11?this._nextChunk=function(){this._readChunk(),this._chunkLoaded()}:this._nextChunk=function(){this._readChunk()},this.stream=function(s10){this._input=s10,this._nextChunk()},this._readChunk=function(){if(this._finished){this._chunkLoaded();return}if(e8=new XMLHttpRequest,this._config.withCredentials&&(e8.withCredentials=this._config.withCredentials),Y11||(e8.onload=L21(this._chunkLoaded,this),e8.onerror=L21(this._chunkError,this)),e8.open(this._config.downloadRequestBody?"POST":"GET",this._input,!Y11),this._config.downloadRequestHeaders){var s10=this._config.downloadRequestHeaders;for(var i22 in s10)e8.setRequestHeader(i22,s10[i22])}if(this._config.chunkSize){var c18=this._start+this._config.chunkSize-1;e8.setRequestHeader("Range","bytes="+this._start+"-"+c18)}try{e8.send(this._config.downloadRequestBody)}catch(m16){this._chunkError(m16.message)}Y11&&e8.status===0&&this._chunkError()},this._chunkLoaded=function(){if(e8.readyState===4){if(e8.status<200||e8.status>=400){this._chunkError();return}this._start+=this._config.chunkSize?this._config.chunkSize:e8.responseText.length,this._finished=!this._config.chunkSize||this._start>=r7(e8),this.parseChunk(e8.responseText)}},this._chunkError=function(s10){var i22=e8.statusText||s10;this._sendError(new Error(i22))};function r7(s10){var i22=s10.getResponseHeader("Content-Range");return i22===null?-1:parseInt(i22.substring(i22.lastIndexOf("/")+1))}}V10.prototype=Object.create(z16.prototype),V10.prototype.constructor=V10;function G14(t8){t8=t8||{},t8.chunkSize||(t8.chunkSize=f15.LocalChunkSize),z16.call(this,t8);var e8,r7,s10=typeof FileReader<"u";this.stream=function(i22){this._input=i22,r7=i22.slice||i22.webkitSlice||i22.mozSlice,s10?(e8=new FileReader,e8.onload=L21(this._chunkLoaded,this),e8.onerror=L21(this._chunkError,this)):e8=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){!this._finished&&(!this._config.preview||this._rowCount<this._config.preview)&&this._readChunk()},this._readChunk=function(){var i22=this._input;if(this._config.chunkSize){var c18=Math.min(this._start+this._config.chunkSize,this._input.size);i22=r7.call(i22,this._start,c18)}var m16=e8.readAsText(i22,this._config.encoding);s10||this._chunkLoaded({target:{result:m16}})},this._chunkLoaded=function(i22){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(i22.target.result)},this._chunkError=function(){this._sendError(e8.error)}}G14.prototype=Object.create(z16.prototype),G14.prototype.constructor=G14;function Q12(t8){t8=t8||{},z16.call(this,t8);var e8;this.stream=function(r7){return e8=r7,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var r7=this._config.chunkSize,s10;return r7?(s10=e8.substring(0,r7),e8=e8.substring(r7)):(s10=e8,e8=""),this._finished=!e8,this.parseChunk(s10)}}}Q12.prototype=Object.create(Q12.prototype),Q12.prototype.constructor=Q12;function ee10(t8){t8=t8||{},z16.call(this,t8);var e8=[],r7=!0,s10=!1;this.pause=function(){z16.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){z16.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(i22){this._input=i22,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){s10&&e8.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),e8.length?this.parseChunk(e8.shift()):r7=!0},this._streamData=L21(function(i22){try{e8.push(typeof i22=="string"?i22:i22.toString(this._config.encoding)),r7&&(r7=!1,this._checkIsFinished(),this.parseChunk(e8.shift()))}catch(c18){this._streamError(c18)}},this),this._streamError=L21(function(i22){this._streamCleanUp(),this._sendError(i22)},this),this._streamEnd=L21(function(){this._streamCleanUp(),s10=!0,this._streamData("")},this),this._streamCleanUp=L21(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}ee10.prototype=Object.create(z16.prototype),ee10.prototype.constructor=ee10;function te10(t8){var e8=m3("stream").Duplex,r7=ae11(t8),s10=!0,i22=!1,c18=[],m16=null;this._onCsvData=function(h18){var _13=h18.data;!m16.push(_13)&&!this._handle.paused()&&this._handle.pause()},this._onCsvComplete=function(){m16.push(null)},r7.step=L21(this._onCsvData,this),r7.complete=L21(this._onCsvComplete,this),z16.call(this,r7),this._nextChunk=function(){i22&&c18.length===1&&(this._finished=!0),c18.length?c18.shift()():s10=!0},this._addToParseQueue=function(h18,_13){c18.push(L21(function(){if(this.parseChunk(typeof h18=="string"?h18:h18.toString(r7.encoding)),g13(_13))return _13()},this)),s10&&(s10=!1,this._nextChunk())},this._onRead=function(){this._handle.paused()&&this._handle.resume()},this._onWrite=function(h18,_13,x23){this._addToParseQueue(h18,x23)},this._onWriteComplete=function(){i22=!0,this._addToParseQueue("")},this.getStream=function(){return m16},m16=new e8({readableObjectMode:!0,decodeStrings:!1,read:L21(this._onRead,this),write:L21(this._onWrite,this)}),m16.once("finish",L21(this._onWriteComplete,this))}typeof PAPA_BROWSER_CONTEXT>"u"&&(te10.prototype=Object.create(z16.prototype),te10.prototype.constructor=te10);function ce9(t8){var e8=Math.pow(2,53),r7=-e8,s10=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,i22=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,c18=this,m16=0,h18=0,_13,x23,S15=!1,d11=!1,P17,u15=[],l12={data:[],errors:[],meta:{}};if(g13(t8.step)){var J13=t8.step;t8.step=function(a14){if(l12=a14,A13())C18();else{if(C18(),l12.data.length===0)return;m16+=a14.data.length,t8.preview&&m16>t8.preview?x23.abort():(l12.data=l12.data[0],J13(l12,c18))}}}this.parse=function(a14,o13,p16){var E19=t8.quoteChar||'"';if(t8.newline||(t8.newline=this.guessLineEndings(a14,E19)),P17=!1,t8.delimiter)g13(t8.delimiter)&&(t8.delimiter=t8.delimiter(a14),l12.meta.delimiter=t8.delimiter);else{var n10=N16(a14,t8.newline,t8.skipEmptyLines,t8.comments,t8.delimitersToGuess);n10.successful?t8.delimiter=n10.bestDelimiter:(P17=!0,t8.delimiter=f15.DefaultDelimiter),l12.meta.delimiter=t8.delimiter}var R21=ae11(t8);return t8.preview&&t8.header&&R21.preview++,_13=a14,x23=new fe8(R21),l12=x23.parse(_13,o13,p16),C18(),S15?{meta:{paused:!0}}:l12||{meta:{paused:!1}}},this.paused=function(){return S15},this.pause=function(){S15=!0,x23.abort(),_13=g13(t8.chunk)?"":_13.substring(x23.getCharIndex())},this.resume=function(){c18.streamer._halted?(S15=!1,c18.streamer.parseChunk(_13,!0)):setTimeout(c18.resume,3)},this.aborted=function(){return d11},this.abort=function(){d11=!0,x23.abort(),l12.meta.aborted=!0,g13(t8.complete)&&t8.complete(l12),_13=""},this.guessLineEndings=function(a14,o13){a14=a14.substring(0,1024*1024);var p16=new RegExp(re9(o13)+"([^]*?)"+re9(o13),"gm");a14=a14.replace(p16,"");var E19=a14.split("\r"),n10=a14.split(`
821
821
  `),R21=n10.length>1&&n10[0].length<E19[0].length;if(E19.length===1||R21)return`
@@ -843,7 +843,7 @@ ${a14}`:o13||a14}function Pi2(t8,{maxDepth:e8=1e3,numbersAsFloat:s10=!1,strictTe
843
843
  `:n10}function yr(t8){return typeof t8=="string"&&Cm.includes(t8)}function br2(t8){return typeof t8=="string"&&km.includes(t8)}function xm(t8){let e8=t8.lastIndexOf("."),s10=Math.max(t8.lastIndexOf("/"),t8.lastIndexOf("\\"));return e8<=s10+1?"":t8.slice(e8)}function lc(t8){switch(xm(t8).toLowerCase()){case".yaml":case".yml":return"yaml";case".json":return"json";case".xml":return"xml";case".ini":return"ini";case".csv":case".tsv":return"csv";case".toml":return"toml";default:return null}}function Om(t8,e8,s10){return gr.default.parse(t8,{delimiter:e8||void 0,header:s10,dynamicTyping:!0,skipEmptyLines:!0}).data}function Lm(t8,e8){return Array.isArray(t8)||(t8=[t8]),gr.default.unparse(t8,{delimiter:e8||","})}function wr(t8,e8,s10={}){let i22=t8.trim();if(!i22)return null;let n10=r7=>D7(r7,s10);switch(e8.inputFormat){case"yaml":return n10(Mt3.default.parse(i22,{maxAliasCount:100}));case"json":return n10(JSON.parse(i22));case"xml":{let r7=new qe5({ignoreAttributes:!1,attributeNamePrefix:e8.xmlAttributePrefix,textNodeName:e8.xmlContentName,parseAttributeValue:!1,parseTagValue:!1,trimValues:!0,processEntities:!1,tagValueProcessor:(o13,a14)=>a14===""?null:a14});return n10(r7.parse(i22))}case"ini":return n10(Xs.parse(i22));case"csv":return n10(Om(i22,e8.csvDelimiter,e8.csvHeader));case"toml":return n10(Qt3(i22));default:{let r7=e8.inputFormat;throw new Error(`Invalid input format: ${r7}`)}}}function cc(t8,e8={}){let s10=e8.maxElements??1e6,i22=t8.trim()?1:0,n10=0;for(;n10<t8.length;){let l12=t8.indexOf(`
844
844
  `,n10),c18=n10+3,u15=t8[c18];if(n10>0&&t8.startsWith("---",n10)&&(u15===void 0||u15===`
845
845
  `||u15==="\r"||u15===" "||u15===" "||u15==="#")&&(i22++,i22>s10))throw new f2(`query input document limit exceeded (${s10})`,"array_elements");if(l12===-1)break;n10=l12+1}let r7=Mt3.default.parseAllDocuments(t8);if(r7.length>s10)throw new f2(`query input document limit exceeded (${s10})`,"array_elements");let o13={used:r7.length},a14=[];for(let l12 of r7)a14.push(D7(l12.toJS({maxAliasCount:100}),{...e8,elementBudget:o13}));return a14}function uc(t8,e8={}){let s10=t8.trimStart();if(s10.startsWith("---")){let i22=s10.slice(3).match(/\n---(\n|$)/);if(i22&&i22.index!==void 0){let n10=s10.slice(3,i22.index+3),r7=s10.slice(i22.index+3+i22[0].length);return{frontMatter:D7(Mt3.default.parse(n10,{maxAliasCount:100}),e8),content:r7}}}if(s10.startsWith("+++")){let i22=s10.slice(3).match(/\n\+\+\+(\n|$)/);if(i22&&i22.index!==void 0){let n10=s10.slice(3,i22.index+3),r7=s10.slice(i22.index+3+i22[0].length);return{frontMatter:D7(Qt3(n10),e8),content:r7}}}if(s10.startsWith("{{{")){let i22=s10.slice(3).match(/\n}}}(\n|$)/);if(i22&&i22.index!==void 0){let n10=s10.slice(3,i22.index+3),r7=s10.slice(i22.index+3+i22[0].length);return{frontMatter:D7(JSON.parse(n10),e8),content:r7}}}return null}function fc(t8,e8,s10=Number.MAX_SAFE_INTEGER){if(t8===void 0)return"";e8.outputFormat!=="json"&&Im(t8,e8,s10);let i22;switch(e8.outputFormat){case"yaml":i22=Mt3.default.stringify(t8,{indent:e8.indent}).trimEnd();break;case"json":return br(t8,s10,{compact:e8.compact,raw:e8.raw,indent:e8.indent});case"xml":{i22=new ki2({ignoreAttributes:!1,attributeNamePrefix:e8.xmlAttributePrefix,textNodeName:e8.xmlContentName,format:e8.prettyPrint||!e8.compact,indentBy:" ".repeat(e8.indent)}).build(t8);break}case"ini":{if(!t8||typeof t8!="object"||Array.isArray(t8)){i22="";break}i22=Xs.stringify(t8);break}case"csv":i22=Lm(t8,e8.csvDelimiter);break;case"toml":{if(!t8||typeof t8!="object"||Array.isArray(t8)){i22="";break}i22=Pi2(t8);break}default:throw new Error(`Unknown output format: ${e8.outputFormat}`)}return new u5(s10,"yq output",()=>new f2(`output size limit exceeded (${s10} bytes)`,"output_size")).append(i22).build()}function Im(t8,e8,s10){let i22=e8.outputFormat==="yaml"||e8.outputFormat==="toml"?6:2,n10=new WeakSet,r7=[{kind:"value",value:t8,depth:0,labelBytes:0}],o13=0,a14=l12=>{if(!Number.isSafeInteger(l12)||l12<0||l12>s10-o13)throw new f2(`output size limit exceeded (${s10} bytes)`,"output_size");o13+=l12};for(;r7.length>0;){let l12=r7.pop();if(!l12)break;if(l12.kind==="exit"){n10.delete(l12.value);continue}let{value:c18,depth:u15,labelBytes:f15}=l12;if(typeof c18=="string"){a14(f15+u15*e8.indent),a14(x(c18)*(u15===0?1:i22));continue}if(c18===null||typeof c18!="object"){a14(f15+u15*e8.indent+x(String(c18)));continue}if(a14(32+f15+u15*e8.indent),c18 instanceof Date){a14(x(c18.toISOString())*i22);continue}if(n10.has(c18))throw new Error("cyclic value cannot be formatted");if(n10.add(c18),r7.push({kind:"exit",value:c18}),Array.isArray(c18)){for(let g13=c18.length-1;g13>=0;g13--)r7.push({kind:"value",value:c18[g13],depth:u15+1,labelBytes:f15});continue}let d11=c18,h18=Object.keys(d11);for(let g13=h18.length-1;g13>=0;g13--){let p16=h18[g13],m16=x(p16);a14(m16*i22),r7.push({kind:"value",value:d11[p16],depth:u15+1,labelBytes:m16})}}}function dc(t8){if(t8===void 0||!/^\d+$/.test(t8))return null;let e8=Number(t8);return!Number.isSafeInteger(e8)||e8<0||e8>32?null:e8}function hc(t8){return{stdout:"",stderr:`yq: invalid indent '${t8??""}' (expected integer 0..32)
846
- `,exitCode:2}}function _m(t8){let e8={...ac,exitStatus:!1,slurp:!1,nullInput:!1,joinOutput:!1,inplace:!1,frontMatter:!1},s10=!1,i22=".",n10=!1,r7=[];for(let o13=0;o13<t8.length;o13++){let a14=t8[o13];if(a14.startsWith("--input-format=")){let l12=a14.slice(15);if(!yr(l12))return r5("yq",`--input-format=${l12}`);e8.inputFormat=l12,s10=!0}else if(a14.startsWith("--output-format=")){let l12=a14.slice(16);if(!br2(l12))return r5("yq",`--output-format=${l12}`);e8.outputFormat=l12}else if(a14.startsWith("--indent=")){let l12=a14.slice(9),c18=dc(l12);if(c18===null)return hc(l12);e8.indent=c18}else if(a14.startsWith("--xml-attribute-prefix="))e8.xmlAttributePrefix=a14.slice(23);else if(a14.startsWith("--xml-content-name="))e8.xmlContentName=a14.slice(19);else if(a14.startsWith("--csv-delimiter="))e8.csvDelimiter=a14.slice(16);else if(a14==="--csv-header")e8.csvHeader=!0;else if(a14==="--no-csv-header")e8.csvHeader=!1;else if(a14==="-p"||a14==="--input-format"){let l12=t8[++o13];if(!yr(l12))return r5("yq",`${a14} ${l12}`);e8.inputFormat=l12,s10=!0}else if(a14==="-o"||a14==="--output-format"){let l12=t8[++o13];if(!br2(l12))return r5("yq",`${a14} ${l12}`);e8.outputFormat=l12}else if(a14==="-I"||a14==="--indent"){let l12=t8[++o13],c18=dc(l12);if(c18===null)return hc(l12);e8.indent=c18}else if(a14==="-r"||a14==="--raw-output")e8.raw=!0;else if(a14==="-c"||a14==="--compact")e8.compact=!0;else if(a14==="-e"||a14==="--exit-status")e8.exitStatus=!0;else if(a14==="-s"||a14==="--slurp")e8.slurp=!0;else if(a14==="-n"||a14==="--null-input")e8.nullInput=!0;else if(a14==="-j"||a14==="--join-output")e8.joinOutput=!0;else if(a14==="-i"||a14==="--inplace")e8.inplace=!0;else if(a14==="-f"||a14==="--front-matter")e8.frontMatter=!0;else if(a14==="-P"||a14==="--prettyPrint")e8.prettyPrint=!0;else if(a14==="-")r7.push("-");else{if(a14.startsWith("--"))return r5("yq",a14);if(a14.startsWith("-"))for(let l12 of a14.slice(1))if(l12==="r")e8.raw=!0;else if(l12==="c")e8.compact=!0;else if(l12==="e")e8.exitStatus=!0;else if(l12==="s")e8.slurp=!0;else if(l12==="n")e8.nullInput=!0;else if(l12==="j")e8.joinOutput=!0;else if(l12==="i")e8.inplace=!0;else if(l12==="f")e8.frontMatter=!0;else if(l12==="P")e8.prettyPrint=!0;else return r5("yq",`-${l12}`);else n10?r7.push(a14):(i22=a14,n10=!0)}}return{options:e8,filter:i22,files:r7,inputFormatExplicit:s10}}var require184,lo,k18,rt4,Ri2,is,ji2,ne8,ns,ct4,I20,ut4,as,ft5,Do,pt4,mt4,Ho,Xi2,ys,en2,le8,sn2,ue6,Fe7,fe5,Re5,bt4,Ts,an,je5,cn,fn,ba,Na,mn,qs,wn,Ia,qa,Pa,vn2,Cn,ja,Wa,Pn,Qa,Tt4,xt4,Ot3,Vs,Vn,Un,ul,dl,Ve6,yl,wl,Jn,zn,Tl,kl,Ll,_l,er3,jl,Dl,Yl,Hs,ur,dr,pr,nc,oc,Or,mc,gc,yc,ti,He6,jt3,bc,wc,Sc,Ac,si,Je5,ii,Te4,kc,me8,Bt4,ni,$21,Oc,Ce10,Fr,Ic,jr,Dt4,F22,Dr,_c,Vr,Pc,ri,Mc,$c,Ur,Fc,Rc,Kr,oi,Br,Vt4,Xe4,R18,jc,Ut3,Kt3,Yr,Hr,ke7,Bc,Yt3,Gr,Jr,Wr,Ht4,zr2,Vc,Uc,Kc,Yc,Hc,Gc,V8,xe9,ui,X9,Xc,Oe7,Qc,Le7,Zc,fi,eu,Qe5,tu,di,su,hi,U10,iu,pi,nu,mi2,ru,ou,gi,jg,Ze5,mu,yu,Si2,qe5,Ou,Pu,ki2,Xs,gr,T17,Du,tt6,Yu,mo,Mt3,Cm,km,ac,qm,_b,Pb,init_chunk_RCRHDT54=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-RCRHDT54.js"(){init_chunk_6RK4AAB7();init_chunk_H53EPEGD();init_chunk_FIMO5HLX();init_chunk_CHWP6GRK();init_chunk_CBM6J4AL();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_FOCWZZDE();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require184=createRequire183(import.meta.url),lo=n6((Ty,ao2)=>{var{hasOwnProperty:xi2}=Object.prototype,Oi3=(t8,e8={})=>{typeof e8=="string"&&(e8={section:e8}),e8.align=e8.align===!0,e8.newline=e8.newline===!0,e8.sort=e8.sort===!0,e8.whitespace=e8.whitespace===!0||e8.align===!0,e8.platform=e8.platform||typeof process<"u"&&process.platform,e8.bracketedArray=e8.bracketedArray!==!1;let s10=e8.platform==="win32"?`\r
846
+ `,exitCode:2}}function _m(t8){let e8={...ac,exitStatus:!1,slurp:!1,nullInput:!1,joinOutput:!1,inplace:!1,frontMatter:!1},s10=!1,i22=".",n10=!1,r7=[];for(let o13=0;o13<t8.length;o13++){let a14=t8[o13];if(a14.startsWith("--input-format=")){let l12=a14.slice(15);if(!yr(l12))return r5("yq",`--input-format=${l12}`);e8.inputFormat=l12,s10=!0}else if(a14.startsWith("--output-format=")){let l12=a14.slice(16);if(!br2(l12))return r5("yq",`--output-format=${l12}`);e8.outputFormat=l12}else if(a14.startsWith("--indent=")){let l12=a14.slice(9),c18=dc(l12);if(c18===null)return hc(l12);e8.indent=c18}else if(a14.startsWith("--xml-attribute-prefix="))e8.xmlAttributePrefix=a14.slice(23);else if(a14.startsWith("--xml-content-name="))e8.xmlContentName=a14.slice(19);else if(a14.startsWith("--csv-delimiter="))e8.csvDelimiter=a14.slice(16);else if(a14==="--csv-header")e8.csvHeader=!0;else if(a14==="--no-csv-header")e8.csvHeader=!1;else if(a14==="-p"||a14==="--input-format"){let l12=t8[++o13];if(!yr(l12))return r5("yq",`${a14} ${l12}`);e8.inputFormat=l12,s10=!0}else if(a14==="-o"||a14==="--output-format"){let l12=t8[++o13];if(!br2(l12))return r5("yq",`${a14} ${l12}`);e8.outputFormat=l12}else if(a14==="-I"||a14==="--indent"){let l12=t8[++o13],c18=dc(l12);if(c18===null)return hc(l12);e8.indent=c18}else if(a14==="-r"||a14==="--raw-output")e8.raw=!0;else if(a14==="-c"||a14==="--compact")e8.compact=!0;else if(a14==="-e"||a14==="--exit-status")e8.exitStatus=!0;else if(a14==="-s"||a14==="--slurp")e8.slurp=!0;else if(a14==="-n"||a14==="--null-input")e8.nullInput=!0;else if(a14==="-j"||a14==="--join-output")e8.joinOutput=!0;else if(a14==="-i"||a14==="--inplace")e8.inplace=!0;else if(a14==="-f"||a14==="--front-matter")e8.frontMatter=!0;else if(a14==="-P"||a14==="--prettyPrint")e8.prettyPrint=!0;else if(a14==="-")r7.push("-");else{if(a14.startsWith("--"))return r5("yq",a14);if(a14.startsWith("-"))for(let l12 of a14.slice(1))if(l12==="r")e8.raw=!0;else if(l12==="c")e8.compact=!0;else if(l12==="e")e8.exitStatus=!0;else if(l12==="s")e8.slurp=!0;else if(l12==="n")e8.nullInput=!0;else if(l12==="j")e8.joinOutput=!0;else if(l12==="i")e8.inplace=!0;else if(l12==="f")e8.frontMatter=!0;else if(l12==="P")e8.prettyPrint=!0;else return r5("yq",`-${l12}`);else n10?r7.push(a14):(i22=a14,n10=!0)}}return{options:e8,filter:i22,files:r7,inputFormatExplicit:s10}}var require184,lo,k18,rt4,Ri2,is,ji2,ne8,ns,ct4,I20,ut4,as,ft5,Do,pt4,mt4,Ho,Xi2,ys,en2,le8,sn2,ue6,Fe7,fe5,Re5,bt4,Ts,an,je5,cn,fn,ba,Na,mn,qs,wn,Ia,qa,Pa,vn2,Cn,ja,Wa,Pn,Qa,Tt4,xt4,Ot3,Vs,Vn,Un,ul,dl,Ve6,yl,wl,Jn,zn,Tl,kl,Ll,_l,er3,jl,Dl,Yl,Hs,ur,dr,pr,nc,oc,Or,mc,gc,yc,ti,He6,jt3,bc,wc,Sc,Ac,si,Je5,ii,Te4,kc,me8,Bt4,ni,$21,Oc,Ce10,Fr,Ic,jr,Dt4,F22,Dr,_c,Vr,Pc,ri,Mc,$c,Ur,Fc,Rc,Kr,oi,Br,Vt4,Xe4,R18,jc,Ut3,Kt3,Yr,Hr,ke7,Bc,Yt3,Gr,Jr,Wr,Ht4,zr2,Vc,Uc,Kc,Yc,Hc,Gc,V8,xe9,ui,X9,Xc,Oe7,Qc,Le7,Zc,fi,eu,Qe5,tu,di,su,hi,U10,iu,pi,nu,mi2,ru,ou,gi,jg,Ze5,mu,yu,Si2,qe5,Ou,Pu,ki2,Xs,gr,T17,Du,tt6,Yu,mo,Mt3,Cm,km,ac,qm,_b,Pb,init_chunk_RCRHDT54=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-RCRHDT54.js"(){init_chunk_6RK4AAB7();init_chunk_H53EPEGD();init_chunk_FIMO5HLX();init_chunk_CHWP6GRK();init_chunk_CBM6J4AL();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_FOCWZZDE();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require184=createRequire183(import.meta.url),lo=n6((Ty,ao2)=>{var{hasOwnProperty:xi2}=Object.prototype,Oi3=(t8,e8={})=>{typeof e8=="string"&&(e8={section:e8}),e8.align=e8.align===!0,e8.newline=e8.newline===!0,e8.sort=e8.sort===!0,e8.whitespace=e8.whitespace===!0||e8.align===!0,e8.platform=e8.platform||typeof process<"u"&&process.platform,e8.bracketedArray=e8.bracketedArray!==!1;let s10=e8.platform==="win32"?`\r
847
847
  `:`
848
848
  `,i22=e8.whitespace?" = ":"=",n10=[],r7=e8.sort?Object.keys(t8).sort():Object.keys(t8),o13=0;e8.align&&(o13=te10(r7.filter(c18=>t8[c18]===null||Array.isArray(t8[c18])||typeof t8[c18]!="object").map(c18=>Array.isArray(t8[c18])?`${c18}[]`:c18).concat([""]).reduce((c18,u15)=>te10(c18).length>=te10(u15).length?c18:u15)).length);let a14="",l12=e8.bracketedArray?"[]":"";for(let c18 of r7){let u15=t8[c18];if(u15&&Array.isArray(u15))for(let f15 of u15)a14+=te10(`${c18}${l12}`).padEnd(o13," ")+i22+te10(f15)+s10;else u15&&typeof u15=="object"?n10.push(c18):a14+=te10(c18).padEnd(o13," ")+i22+te10(u15)+s10}e8.section&&a14.length&&(a14="["+te10(e8.section)+"]"+(e8.newline?s10+s10:s10)+a14);for(let c18 of n10){let u15=ro2(c18,".").join("\\."),f15=(e8.section?e8.section+".":"")+u15,d11=Oi3(t8[c18],{...e8,section:f15});a14.length&&d11.length&&(a14+=s10),a14+=d11}return a14};function ro2(t8,e8){var s10=0,i22=0,n10=0,r7=[];do if(n10=t8.indexOf(e8,s10),n10!==-1){if(s10=n10+e8.length,n10>0&&t8[n10-1]==="\\")continue;r7.push(t8.slice(i22,n10)),i22=n10+e8.length}while(n10!==-1);return r7.push(t8.slice(i22)),r7}var no2=(t8,e8={})=>{e8.bracketedArray=e8.bracketedArray!==!1;let s10=Object.create(null),i22=s10,n10=null,r7=/^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i,o13=t8.split(/[\r\n]+/g),a14={};for(let c18 of o13){if(!c18||c18.match(/^\s*[;#]/)||c18.match(/^\s*$/))continue;let u15=c18.match(r7);if(!u15)continue;if(u15[1]!==void 0){if(n10=Jt4(u15[1]),n10==="__proto__"){i22=Object.create(null);continue}i22=s10[n10]=s10[n10]||Object.create(null);continue}let f15=Jt4(u15[2]),d11;e8.bracketedArray?d11=f15.length>2&&f15.slice(-2)==="[]":(a14[f15]=(a14?.[f15]||0)+1,d11=a14[f15]>1);let h18=d11&&f15.endsWith("[]")?f15.slice(0,-2):f15;if(h18==="__proto__")continue;let g13=u15[3]?Jt4(u15[4]):!0,p16=g13==="true"||g13==="false"||g13==="null"?JSON.parse(g13):g13;d11&&(xi2.call(i22,h18)?Array.isArray(i22[h18])||(i22[h18]=[i22[h18]]):i22[h18]=[]),Array.isArray(i22[h18])?i22[h18].push(p16):i22[h18]=p16}let l12=[];for(let c18 of Object.keys(s10)){if(!xi2.call(s10,c18)||typeof s10[c18]!="object"||Array.isArray(s10[c18]))continue;let u15=ro2(c18,".");i22=s10;let f15=u15.pop(),d11=f15.replace(/\\\./g,".");for(let h18 of u15)h18!=="__proto__"&&((!xi2.call(i22,h18)||typeof i22[h18]!="object")&&(i22[h18]=Object.create(null)),i22=i22[h18]);i22===s10&&d11===f15||(i22[d11]=s10[c18],l12.push(c18))}for(let c18 of l12)delete s10[c18];return s10},oo2=t8=>t8.startsWith('"')&&t8.endsWith('"')||t8.startsWith("'")&&t8.endsWith("'"),te10=t8=>typeof t8!="string"||t8.match(/[=\r\n]/)||t8.match(/^\[/)||t8.length>1&&oo2(t8)||t8!==t8.trim()?JSON.stringify(t8):t8.split(";").join("\\;").split("#").join("\\#"),Jt4=t8=>{if(t8=(t8||"").trim(),oo2(t8)){t8.charAt(0)==="'"&&(t8=t8.slice(1,-1));try{t8=JSON.parse(t8)}catch{}}else{let e8=!1,s10="";for(let i22=0,n10=t8.length;i22<n10;i22++){let r7=t8.charAt(i22);if(e8)"\\;#".indexOf(r7)!==-1?s10+=r7:s10+="\\"+r7,e8=!1;else{if(";#".indexOf(r7)!==-1)break;r7==="\\"?e8=!0:s10+=r7}}return e8&&(s10+="\\"),s10.trim()}return t8};ao2.exports={parse:no2,decode:no2,stringify:Oi3,encode:Oi3,safe:te10,unsafe:Jt4}}),k18=n6(P17=>{"use strict";var Mi3=Symbol.for("yaml.alias"),bo2=Symbol.for("yaml.document"),Zt4=Symbol.for("yaml.map"),wo2=Symbol.for("yaml.pair"),$i3=Symbol.for("yaml.scalar"),es2=Symbol.for("yaml.seq"),se11=Symbol.for("yaml.node.type"),Qu2=t8=>!!t8&&typeof t8=="object"&&t8[se11]===Mi3,Zu2=t8=>!!t8&&typeof t8=="object"&&t8[se11]===bo2,ef2=t8=>!!t8&&typeof t8=="object"&&t8[se11]===Zt4,tf2=t8=>!!t8&&typeof t8=="object"&&t8[se11]===wo2,So2=t8=>!!t8&&typeof t8=="object"&&t8[se11]===$i3,sf2=t8=>!!t8&&typeof t8=="object"&&t8[se11]===es2;function No2(t8){if(t8&&typeof t8=="object")switch(t8[se11]){case Zt4:case es2:return!0}return!1}function nf2(t8){if(t8&&typeof t8=="object")switch(t8[se11]){case Mi3:case Zt4:case $i3:case es2:return!0}return!1}var rf2=t8=>(So2(t8)||No2(t8))&&!!t8.anchor;P17.ALIAS=Mi3,P17.DOC=bo2,P17.MAP=Zt4,P17.NODE_TYPE=se11,P17.PAIR=wo2,P17.SCALAR=$i3,P17.SEQ=es2,P17.hasAnchor=rf2,P17.isAlias=Qu2,P17.isCollection=No2,P17.isDocument=Zu2,P17.isMap=ef2,P17.isNode=nf2,P17.isPair=tf2,P17.isScalar=So2,P17.isSeq=sf2}),rt4=n6(Fi3=>{"use strict";var _13=k18(),B17=Symbol("break visit"),Ao2=Symbol("skip children"),Z10=Symbol("remove node");function ts2(t8,e8){let s10=Eo2(e8);_13.isDocument(t8)?_e6(null,t8.contents,s10,Object.freeze([t8]))===Z10&&(t8.contents=null):_e6(null,t8,s10,Object.freeze([]))}ts2.BREAK=B17,ts2.SKIP=Ao2,ts2.REMOVE=Z10;function _e6(t8,e8,s10,i22){let n10=vo2(t8,e8,s10,i22);if(_13.isNode(n10)||_13.isPair(n10))return To2(t8,i22,n10),_e6(t8,n10,s10,i22);if(typeof n10!="symbol"){if(_13.isCollection(e8)){i22=Object.freeze(i22.concat(e8));for(let r7=0;r7<e8.items.length;++r7){let o13=_e6(r7,e8.items[r7],s10,i22);if(typeof o13=="number")r7=o13-1;else{if(o13===B17)return B17;o13===Z10&&(e8.items.splice(r7,1),r7-=1)}}}else if(_13.isPair(e8)){i22=Object.freeze(i22.concat(e8));let r7=_e6("key",e8.key,s10,i22);if(r7===B17)return B17;r7===Z10&&(e8.key=null);let o13=_e6("value",e8.value,s10,i22);if(o13===B17)return B17;o13===Z10&&(e8.value=null)}}return n10}async function ss2(t8,e8){let s10=Eo2(e8);_13.isDocument(t8)?await Pe6(null,t8.contents,s10,Object.freeze([t8]))===Z10&&(t8.contents=null):await Pe6(null,t8,s10,Object.freeze([]))}ss2.BREAK=B17,ss2.SKIP=Ao2,ss2.REMOVE=Z10;async function Pe6(t8,e8,s10,i22){let n10=await vo2(t8,e8,s10,i22);if(_13.isNode(n10)||_13.isPair(n10))return To2(t8,i22,n10),Pe6(t8,n10,s10,i22);if(typeof n10!="symbol"){if(_13.isCollection(e8)){i22=Object.freeze(i22.concat(e8));for(let r7=0;r7<e8.items.length;++r7){let o13=await Pe6(r7,e8.items[r7],s10,i22);if(typeof o13=="number")r7=o13-1;else{if(o13===B17)return B17;o13===Z10&&(e8.items.splice(r7,1),r7-=1)}}}else if(_13.isPair(e8)){i22=Object.freeze(i22.concat(e8));let r7=await Pe6("key",e8.key,s10,i22);if(r7===B17)return B17;r7===Z10&&(e8.key=null);let o13=await Pe6("value",e8.value,s10,i22);if(o13===B17)return B17;o13===Z10&&(e8.value=null)}}return n10}function Eo2(t8){return typeof t8=="object"&&(t8.Collection||t8.Node||t8.Value)?Object.assign({Alias:t8.Node,Map:t8.Node,Scalar:t8.Node,Seq:t8.Node},t8.Value&&{Map:t8.Value,Scalar:t8.Value,Seq:t8.Value},t8.Collection&&{Map:t8.Collection,Seq:t8.Collection},t8):t8}function vo2(t8,e8,s10,i22){if(typeof s10=="function")return s10(t8,e8,i22);if(_13.isMap(e8))return s10.Map?.(t8,e8,i22);if(_13.isSeq(e8))return s10.Seq?.(t8,e8,i22);if(_13.isPair(e8))return s10.Pair?.(t8,e8,i22);if(_13.isScalar(e8))return s10.Scalar?.(t8,e8,i22);if(_13.isAlias(e8))return s10.Alias?.(t8,e8,i22)}function To2(t8,e8,s10){let i22=e8[e8.length-1];if(_13.isCollection(i22))i22.items[t8]=s10;else if(_13.isPair(i22))t8==="key"?i22.key=s10:i22.value=s10;else if(_13.isDocument(i22))i22.contents=s10;else{let n10=_13.isAlias(i22)?"alias":"scalar";throw new Error(`Cannot replace node with ${n10} parent`)}}Fi3.visit=ts2,Fi3.visitAsync=ss2}),Ri2=n6(ko2=>{"use strict";var Co2=k18(),of2=rt4(),af2={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},lf2=t8=>t8.replace(/[!,[\]{}]/g,e8=>af2[e8]),ot7=class t8{constructor(e8,s10){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},t8.defaultYaml,e8),this.tags=Object.assign({},t8.defaultTags,s10)}clone(){let e8=new t8(this.yaml,this.tags);return e8.docStart=this.docStart,e8}atDocument(){let e8=new t8(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:t8.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},t8.defaultTags);break}return e8}add(e8,s10){this.atNextDocument&&(this.yaml={explicit:t8.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},t8.defaultTags),this.atNextDocument=!1);let i22=e8.trim().split(/[ \t]+/),n10=i22.shift();switch(n10){case"%TAG":{if(i22.length!==2&&(s10(0,"%TAG directive should contain exactly two parts"),i22.length<2))return!1;let[r7,o13]=i22;return this.tags[r7]=o13,!0}case"%YAML":{if(this.yaml.explicit=!0,i22.length!==1)return s10(0,"%YAML directive should contain exactly one part"),!1;let[r7]=i22;if(r7==="1.1"||r7==="1.2")return this.yaml.version=r7,!0;{let o13=/^\d+\.\d+$/.test(r7);return s10(6,`Unsupported YAML version ${r7}`,o13),!1}}default:return s10(0,`Unknown directive ${n10}`,!0),!1}}tagName(e8,s10){if(e8==="!")return"!";if(e8[0]!=="!")return s10(`Not a valid tag: ${e8}`),null;if(e8[1]==="<"){let o13=e8.slice(2,-1);return o13==="!"||o13==="!!"?(s10(`Verbatim tags aren't resolved, so ${e8} is invalid.`),null):(e8[e8.length-1]!==">"&&s10("Verbatim tags must end with a >"),o13)}let[,i22,n10]=e8.match(/^(.*!)([^!]*)$/s);n10||s10(`The ${e8} tag has no suffix`);let r7=this.tags[i22];if(r7)try{return r7+decodeURIComponent(n10)}catch(o13){return s10(String(o13)),null}return i22==="!"?e8:(s10(`Could not resolve tag: ${e8}`),null)}tagString(e8){for(let[s10,i22]of Object.entries(this.tags))if(e8.startsWith(i22))return s10+lf2(e8.substring(i22.length));return e8[0]==="!"?e8:`!<${e8}>`}toString(e8){let s10=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],i22=Object.entries(this.tags),n10;if(e8&&i22.length>0&&Co2.isNode(e8.contents)){let r7={};of2.visit(e8.contents,(o13,a14)=>{Co2.isNode(a14)&&a14.tag&&(r7[a14.tag]=!0)}),n10=Object.keys(r7)}else n10=[];for(let[r7,o13]of i22)r7==="!!"&&o13==="tag:yaml.org,2002:"||(!e8||n10.some(a14=>a14.startsWith(o13)))&&s10.push(`%TAG ${r7} ${o13}`);return s10.join(`
849
849
  `)}};ot7.defaultYaml={explicit:!1,version:"1.2"},ot7.defaultTags={"!!":"tag:yaml.org,2002:"},ko2.Directives=ot7}),is=n6(at7=>{"use strict";var xo2=k18(),cf2=rt4();function uf2(t8){if(/[\x00-\x19\s,[\]{}]/.test(t8)){let s10=`Anchor must not contain whitespace or control characters: ${JSON.stringify(t8)}`;throw new Error(s10)}return!0}function Oo2(t8){let e8=new Set;return cf2.visit(t8,{Value(s10,i22){i22.anchor&&e8.add(i22.anchor)}}),e8}function Lo2(t8,e8){for(let s10=1;;++s10){let i22=`${t8}${s10}`;if(!e8.has(i22))return i22}}function ff2(t8,e8){let s10=[],i22=new Map,n10=null;return{onAnchor:r7=>{s10.push(r7),n10??(n10=Oo2(t8));let o13=Lo2(e8,n10);return n10.add(o13),o13},setAnchors:()=>{for(let r7 of s10){let o13=i22.get(r7);if(typeof o13=="object"&&o13.anchor&&(xo2.isScalar(o13.node)||xo2.isCollection(o13.node)))o13.node.anchor=o13.anchor;else{let a14=new Error("Failed to resolve repeated object (this should not happen)");throw a14.source=r7,a14}}},sourceObjects:i22}}at7.anchorIsValid=uf2,at7.anchorNames=Oo2,at7.createNodeAnchors=ff2,at7.findNewAnchor=Lo2}),ji2=n6(Io2=>{"use strict";function lt8(t8,e8,s10,i22){if(i22&&typeof i22=="object")if(Array.isArray(i22))for(let n10=0,r7=i22.length;n10<r7;++n10){let o13=i22[n10],a14=lt8(t8,i22,String(n10),o13);a14===void 0?delete i22[n10]:a14!==o13&&(i22[n10]=a14)}else if(i22 instanceof Map)for(let n10 of Array.from(i22.keys())){let r7=i22.get(n10),o13=lt8(t8,i22,n10,r7);o13===void 0?i22.delete(n10):o13!==r7&&i22.set(n10,o13)}else if(i22 instanceof Set)for(let n10 of Array.from(i22)){let r7=lt8(t8,i22,n10,n10);r7===void 0?i22.delete(n10):r7!==n10&&(i22.delete(n10),i22.add(r7))}else for(let[n10,r7]of Object.entries(i22)){let o13=lt8(t8,i22,n10,r7);o13===void 0?delete i22[n10]:o13!==r7&&(i22[n10]=o13)}return t8.call(e8,s10,i22)}Io2.applyReviver=lt8}),ne8=n6(_o2=>{"use strict";var df2=k18();function qo2(t8,e8,s10){if(Array.isArray(t8))return t8.map((i22,n10)=>qo2(i22,String(n10),s10));if(t8&&typeof t8.toJSON=="function"){if(!s10||!df2.hasAnchor(t8))return t8.toJSON(e8,s10);let i22={aliasCount:0,count:1,res:void 0};s10.anchors.set(t8,i22),s10.onCreate=r7=>{i22.res=r7,delete s10.onCreate};let n10=t8.toJSON(e8,s10);return s10.onCreate&&s10.onCreate(n10),n10}return typeof t8=="bigint"&&!s10?.keep?Number(t8):t8}_o2.toJS=qo2}),ns=n6(Mo2=>{"use strict";var hf2=ji2(),Po2=k18(),pf2=ne8(),Bi3=class{constructor(e8){Object.defineProperty(this,Po2.NODE_TYPE,{value:e8})}clone(){let e8=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e8.range=this.range.slice()),e8}toJS(e8,{mapAsMap:s10,maxAliasCount:i22,onAnchor:n10,reviver:r7}={}){if(!Po2.isDocument(e8))throw new TypeError("A document argument is required");let o13={anchors:new Map,doc:e8,keep:!0,mapAsMap:s10===!0,mapKeyWarned:!1,maxAliasCount:typeof i22=="number"?i22:100},a14=pf2.toJS(this,"",o13);if(typeof n10=="function")for(let{count:l12,res:c18}of o13.anchors.values())n10(c18,l12);return typeof r7=="function"?hf2.applyReviver(r7,{"":a14},"",a14):a14}};Mo2.NodeBase=Bi3}),ct4=n6($o2=>{"use strict";var mf2=is(),gf2=rt4(),Me6=k18(),yf2=ns(),bf2=ne8(),Di3=class extends yf2.NodeBase{constructor(e8){super(Me6.ALIAS),this.source=e8,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e8,s10){if(s10?.maxAliasCount===0)throw new ReferenceError("Alias resolution is disabled");let i22;s10?.aliasResolveCache?i22=s10.aliasResolveCache:(i22=[],gf2.visit(e8,{Node:(r7,o13)=>{(Me6.isAlias(o13)||Me6.hasAnchor(o13))&&i22.push(o13)}}),s10&&(s10.aliasResolveCache=i22));let n10;for(let r7 of i22){if(r7===this)break;r7.anchor===this.source&&(n10=r7)}return n10}toJSON(e8,s10){if(!s10)return{source:this.source};let{anchors:i22,doc:n10,maxAliasCount:r7}=s10,o13=this.resolve(n10,s10);if(!o13){let l12=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(l12)}let a14=i22.get(o13);if(a14||(bf2.toJS(o13,null,s10),a14=i22.get(o13)),a14?.res===void 0){let l12="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(l12)}if(r7>=0&&(a14.count+=1,a14.aliasCount===0&&(a14.aliasCount=rs2(n10,o13,i22)),a14.count*a14.aliasCount>r7)){let l12="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(l12)}return a14.res}toString(e8,s10,i22){let n10=`*${this.source}`;if(e8){if(mf2.anchorIsValid(this.source),e8.options.verifyAliasOrder&&!e8.anchors.has(this.source)){let r7=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(r7)}if(e8.implicitKey)return`${n10} `}return n10}};function rs2(t8,e8,s10){if(Me6.isAlias(e8)){let i22=e8.resolve(t8),n10=s10&&i22&&s10.get(i22);return n10?n10.count*n10.aliasCount:0}else if(Me6.isCollection(e8)){let i22=0;for(let n10 of e8.items){let r7=rs2(t8,n10,s10);r7>i22&&(i22=r7)}return i22}else if(Me6.isPair(e8)){let i22=rs2(t8,e8.key,s10),n10=rs2(t8,e8.value,s10);return Math.max(i22,n10)}return 1}$o2.Alias=Di3}),I20=n6(Vi3=>{"use strict";var wf2=k18(),Sf2=ns(),Nf2=ne8(),Af2=t8=>!t8||typeof t8!="function"&&typeof t8!="object",re9=class extends Sf2.NodeBase{constructor(e8){super(wf2.SCALAR),this.value=e8}toJSON(e8,s10){return s10?.keep?this.value:Nf2.toJS(this.value,e8,s10)}toString(){return String(this.value)}};re9.BLOCK_FOLDED="BLOCK_FOLDED",re9.BLOCK_LITERAL="BLOCK_LITERAL",re9.PLAIN="PLAIN",re9.QUOTE_DOUBLE="QUOTE_DOUBLE",re9.QUOTE_SINGLE="QUOTE_SINGLE",Vi3.Scalar=re9,Vi3.isScalarValue=Af2}),ut4=n6(Ro2=>{"use strict";var Ef2=ct4(),ye9=k18(),Fo2=I20(),vf2="tag:yaml.org,2002:";function Tf2(t8,e8,s10){if(e8){let i22=s10.filter(r7=>r7.tag===e8),n10=i22.find(r7=>!r7.format)??i22[0];if(!n10)throw new Error(`Tag ${e8} not found`);return n10}return s10.find(i22=>i22.identify?.(t8)&&!i22.format)}function Cf2(t8,e8,s10){if(ye9.isDocument(t8)&&(t8=t8.contents),ye9.isNode(t8))return t8;if(ye9.isPair(t8)){let f15=s10.schema[ye9.MAP].createNode?.(s10.schema,null,s10);return f15.items.push(t8),f15}(t8 instanceof String||t8 instanceof Number||t8 instanceof Boolean||typeof BigInt<"u"&&t8 instanceof BigInt)&&(t8=t8.valueOf());let{aliasDuplicateObjects:i22,onAnchor:n10,onTagObj:r7,schema:o13,sourceObjects:a14}=s10,l12;if(i22&&t8&&typeof t8=="object"){if(l12=a14.get(t8),l12)return l12.anchor??(l12.anchor=n10(t8)),new Ef2.Alias(l12.anchor);l12={anchor:null,node:null},a14.set(t8,l12)}e8?.startsWith("!!")&&(e8=vf2+e8.slice(2));let c18=Tf2(t8,e8,o13.tags);if(!c18){if(t8&&typeof t8.toJSON=="function"&&(t8=t8.toJSON()),!t8||typeof t8!="object"){let f15=new Fo2.Scalar(t8);return l12&&(l12.node=f15),f15}c18=t8 instanceof Map?o13[ye9.MAP]:Symbol.iterator in Object(t8)?o13[ye9.SEQ]:o13[ye9.MAP]}r7&&(r7(c18),delete s10.onTagObj);let u15=c18?.createNode?c18.createNode(s10.schema,t8,s10):typeof c18?.nodeClass?.from=="function"?c18.nodeClass.from(s10.schema,t8,s10):new Fo2.Scalar(t8);return e8?u15.tag=e8:c18.default||(u15.tag=c18.tag),l12&&(l12.node=u15),u15}Ro2.createNode=Cf2}),as=n6(os2=>{"use strict";var kf2=ut4(),ee10=k18(),xf2=ns();function Ui3(t8,e8,s10){let i22=s10;for(let n10=e8.length-1;n10>=0;--n10){let r7=e8[n10];if(typeof r7=="number"&&Number.isInteger(r7)&&r7>=0){let o13=[];o13[r7]=i22,i22=o13}else i22=new Map([[r7,i22]])}return kf2.createNode(i22,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:t8,sourceObjects:new Map})}var jo2=t8=>t8==null||typeof t8=="object"&&!!t8[Symbol.iterator]().next().done,Ki3=class extends xf2.NodeBase{constructor(e8,s10){super(e8),Object.defineProperty(this,"schema",{value:s10,configurable:!0,enumerable:!1,writable:!0})}clone(e8){let s10=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e8&&(s10.schema=e8),s10.items=s10.items.map(i22=>ee10.isNode(i22)||ee10.isPair(i22)?i22.clone(e8):i22),this.range&&(s10.range=this.range.slice()),s10}addIn(e8,s10){if(jo2(e8))this.add(s10);else{let[i22,...n10]=e8,r7=this.get(i22,!0);if(ee10.isCollection(r7))r7.addIn(n10,s10);else if(r7===void 0&&this.schema)this.set(i22,Ui3(this.schema,n10,s10));else throw new Error(`Expected YAML collection at ${i22}. Remaining path: ${n10}`)}}deleteIn(e8){let[s10,...i22]=e8;if(i22.length===0)return this.delete(s10);let n10=this.get(s10,!0);if(ee10.isCollection(n10))return n10.deleteIn(i22);throw new Error(`Expected YAML collection at ${s10}. Remaining path: ${i22}`)}getIn(e8,s10){let[i22,...n10]=e8,r7=this.get(i22,!0);return n10.length===0?!s10&&ee10.isScalar(r7)?r7.value:r7:ee10.isCollection(r7)?r7.getIn(n10,s10):void 0}hasAllNullValues(e8){return this.items.every(s10=>{if(!ee10.isPair(s10))return!1;let i22=s10.value;return i22==null||e8&&ee10.isScalar(i22)&&i22.value==null&&!i22.commentBefore&&!i22.comment&&!i22.tag})}hasIn(e8){let[s10,...i22]=e8;if(i22.length===0)return this.has(s10);let n10=this.get(s10,!0);return ee10.isCollection(n10)?n10.hasIn(i22):!1}setIn(e8,s10){let[i22,...n10]=e8;if(n10.length===0)this.set(i22,s10);else{let r7=this.get(i22,!0);if(ee10.isCollection(r7))r7.setIn(n10,s10);else if(r7===void 0&&this.schema)this.set(i22,Ui3(this.schema,n10,s10));else throw new Error(`Expected YAML collection at ${i22}. Remaining path: ${n10}`)}}};os2.Collection=Ki3,os2.collectionFromPath=Ui3,os2.isEmptyPath=jo2}),ft5=n6(ls2=>{"use strict";var Of2=t8=>t8.replace(/^(?!$)(?: $)?/gm,"#");function Yi3(t8,e8){return/^\n+$/.test(t8)?t8.substring(1):e8?t8.replace(/^(?! *$)/gm,e8):t8}var Lf2=(t8,e8,s10)=>t8.endsWith(`
@@ -1057,7 +1057,7 @@ EXAMPLES:
1057
1057
  `);let y14=m16.build();if(n10.inplace&&c18)return await s10("in-place write",()=>e8.fs.writeFile(c18,y14)),{stdout:"",stderr:"",exitCode:0};let A13=n10.exitStatus&&(f15.length===0||f15.every(S15=>S15==null||S15===!1))?1:0;return{stdout:y14,stderr:"",exitCode:A13}}catch(u15){if(u15 instanceof d3)throw u15;if(u15 instanceof f2)return{stdout:"",stderr:`yq: ${n5(u15.message)}
1058
1058
  `,exitCode:f2.EXIT_CODE};let f15=n5(u15.message);return f15.includes("Unknown function")?{stdout:"",stderr:`yq: error: ${f15}
1059
1059
  `,exitCode:3}:{stdout:"",stderr:`yq: parse error: ${f15}
1060
- `,exitCode:5}}}},Pb={name:"yq",flags:[{flag:"-r",type:"boolean"},{flag:"-c",type:"boolean"},{flag:"-s",type:"boolean"},{flag:"-i",type:"value",valueHint:"string"},{flag:"-o",type:"value",valueHint:"string"}],stdinType:"text",needsArgs:!0};}});var yq_IOMBQYB2_exports={};__export(yq_IOMBQYB2_exports,{flagsForFuzzing:()=>Pb,yqCommand:()=>_b});import{createRequire as createRequire184}from"node:module";var require185,init_yq_IOMBQYB2=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/yq-IOMBQYB2.js"(){init_chunk_RCRHDT54();init_chunk_6RK4AAB7();init_chunk_H53EPEGD();init_chunk_FIMO5HLX();init_chunk_DLL7UR66();init_chunk_CHWP6GRK();init_chunk_7GA3QWJJ();init_chunk_CBM6J4AL();init_chunk_6D3WD6YU();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_FOCWZZDE();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require185=createRequire184(import.meta.url)}});import{createRequire as createRequire185}from"node:module";function I21(){return Object.create(null)}function j20(n10,t8,i22){n10[t8]=i22}function W10(n10){let t8=I21();for(let i22 of Object.keys(n10)){let r7=n10[i22];(typeof r7=="string"||typeof r7=="number"||typeof r7=="boolean"||r7===null)&&(t8[i22]=r7)}return t8}function z14(n10,t8={}){let i22=t8.maxStringLength??10485760,r7=t8.maxArrayElements??1e5,a14=t8.maxRows??r7,f15=t8.maxCells??1e7;if(x(n10)>i22)throw new f2(`xan: CSV input size limit exceeded (${i22} bytes)`,"string_length");let d11=[],m16=n10.trim(),o13=C15.default.parse(m16,{preview:1,skipEmptyLines:!0}).data[0]??[];if(o13.length>r7)throw new f2(`xan: CSV column limit exceeded (${r7})`,"array_elements");let p16=0,s10;if(C15.default.parse(m16,{header:!0,dynamicTyping:!0,skipEmptyLines:!0,step:(e8,l12)=>{let u15=Object.keys(e8.data);if(d11.length===0&&e8.meta.fields){if(e8.meta.fields.length>r7){s10=new f2(`xan: CSV column limit exceeded (${r7})`,"array_elements"),l12.abort();return}o13=[...e8.meta.fields]}if(d11.length>=a14||u15.length>f15-p16){s10=new f2(d11.length>=a14?`xan: CSV row limit exceeded (${a14})`:`xan: CSV cell limit exceeded (${f15})`,"array_elements"),l12.abort();return}p16+=u15.length,d11.push(W10(e8.data))}}),s10)throw s10;return{headers:o13,data:d11}}function H19(n10,t8={}){let i22=t8.maxStringLength??10485760,r7=t8.maxArrayElements??1e5,a14=t8.maxRows??r7,f15=t8.maxCells??1e7;if(x(n10)>i22)throw new f2(`xan: CSV input size limit exceeded (${i22} bytes)`,"string_length");let d11=[],m16=0,c18;if(C15.default.parse(n10.trim(),{header:!1,dynamicTyping:!1,skipEmptyLines:!0,step:(o13,p16)=>{let s10=o13.data;if(d11.length>=a14||s10.length>r7||s10.length>f15-m16){c18=new f2(d11.length>=a14?`xan: CSV row limit exceeded (${a14})`:s10.length>r7?`xan: CSV column limit exceeded (${r7})`:`xan: CSV cell limit exceeded (${f15})`,"array_elements"),p16.abort();return}m16+=s10.length,d11.push(s10)}}),c18)throw c18;return d11}function P16(n10,t8,i22){return E17(t8.length,n10.length,(r7,a14)=>t8[r7][n10[a14]],i22,n10)}function q10(n10,t8,i22){return E17(t8.length,n10.length,(r7,a14)=>t8[r7][n10[a14]],i22)}function G11(n10,t8,i22){return E17(n10.length,void 0,(r7,a14)=>n10[r7][a14],t8,i22,r7=>n10[r7].length)}function E17(n10,t8,i22,r7,a14,f15=()=>t8??0){let d11=r7?.limits.maxOutputSize??Number.MAX_SAFE_INTEGER,m16=new u5(d11,"xan CSV output",r7?()=>new f2(`xan: output size limit exceeded (${d11} bytes)`,"output_size"):void 0),c18=p16=>{let s10=p16==null?"":String(p16),e8=0;for(let x23=0;x23<s10.length;x23++)s10.charCodeAt(x23)===34&&e8++;let l12=e8>0||s10.includes("\r")||s10.includes(`
1060
+ `,exitCode:5}}}},Pb={name:"yq",flags:[{flag:"-r",type:"boolean"},{flag:"-c",type:"boolean"},{flag:"-s",type:"boolean"},{flag:"-i",type:"value",valueHint:"string"},{flag:"-o",type:"value",valueHint:"string"}],stdinType:"text",needsArgs:!0};}});var yq_IOMBQYB2_exports={};__export(yq_IOMBQYB2_exports,{flagsForFuzzing:()=>Pb,yqCommand:()=>_b});import{createRequire as createRequire184}from"node:module";var require185,init_yq_IOMBQYB2=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/yq-IOMBQYB2.js"(){init_chunk_RCRHDT54();init_chunk_6RK4AAB7();init_chunk_H53EPEGD();init_chunk_FIMO5HLX();init_chunk_DLL7UR66();init_chunk_CHWP6GRK();init_chunk_7GA3QWJJ();init_chunk_CBM6J4AL();init_chunk_6D3WD6YU();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_FOCWZZDE();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require185=createRequire184(import.meta.url)}});import{createRequire as createRequire185}from"node:module";function I21(){return Object.create(null)}function j20(n10,t8,i22){n10[t8]=i22}function W10(n10){let t8=I21();for(let i22 of Object.keys(n10)){let r7=n10[i22];(typeof r7=="string"||typeof r7=="number"||typeof r7=="boolean"||r7===null)&&(t8[i22]=r7)}return t8}function z14(n10,t8={}){let i22=t8.maxStringLength??10485760,r7=t8.maxArrayElements??1e5,a14=t8.maxRows??r7,f15=t8.maxCells??1e7;if(x(n10)>i22)throw new f2(`xan: CSV input size limit exceeded (${i22} bytes)`,"string_length");let d11=[],m16=n10.trim(),o13=C15.default.parse(m16,{preview:1,skipEmptyLines:!0}).data[0]??[];if(o13.length>r7)throw new f2(`xan: CSV column limit exceeded (${r7})`,"array_elements");let p16=0,s10;if(C15.default.parse(m16,{header:!0,dynamicTyping:!0,skipEmptyLines:!0,step:(e8,l12)=>{let u15=Object.keys(e8.data);if(d11.length===0&&e8.meta.fields){if(e8.meta.fields.length>r7){s10=new f2(`xan: CSV column limit exceeded (${r7})`,"array_elements"),l12.abort();return}o13=[...e8.meta.fields]}if(d11.length>=a14||u15.length>f15-p16){s10=new f2(d11.length>=a14?`xan: CSV row limit exceeded (${a14})`:`xan: CSV cell limit exceeded (${f15})`,"array_elements"),l12.abort();return}p16+=u15.length,d11.push(W10(e8.data))}}),s10)throw s10;return{headers:o13,data:d11}}function H19(n10,t8={}){let i22=t8.maxStringLength??10485760,r7=t8.maxArrayElements??1e5,a14=t8.maxRows??r7,f15=t8.maxCells??1e7;if(x(n10)>i22)throw new f2(`xan: CSV input size limit exceeded (${i22} bytes)`,"string_length");let d11=[],m16=0,c18;if(C15.default.parse(n10.trim(),{header:!1,dynamicTyping:!1,skipEmptyLines:!0,step:(o13,p16)=>{let s10=o13.data;if(d11.length>=a14||s10.length>r7||s10.length>f15-m16){c18=new f2(d11.length>=a14?`xan: CSV row limit exceeded (${a14})`:s10.length>r7?`xan: CSV column limit exceeded (${r7})`:`xan: CSV cell limit exceeded (${f15})`,"array_elements"),p16.abort();return}m16+=s10.length,d11.push(s10)}}),c18)throw c18;return d11}function P16(n10,t8,i22){return E17(t8.length,n10.length,(r7,a14)=>t8[r7][n10[a14]],i22,n10)}function q10(n10,t8,i22){return E17(t8.length,n10.length,(r7,a14)=>t8[r7][n10[a14]],i22)}function G11(n10,t8,i22){return E17(n10.length,void 0,(r7,a14)=>n10[r7][a14],t8,i22,r7=>n10[r7].length)}function E17(n10,t8,i22,r7,a14,f15=()=>t8??0){let d11=r7?.limits.maxOutputSize??Number.MAX_SAFE_INTEGER,m16=new u5(d11,"xan CSV output",r7?()=>new f2(`xan: output size limit exceeded (${d11} bytes)`,"output_size"):void 0),c18=p16=>{let s10=p16==null?"":String(p16),e8=0;for(let x23=0;x23<s10.length;x23++)s10.charCodeAt(x23)===34&&e8++;let l12=e8>0||s10.includes("\r")||s10.includes(`
1061
1061
  `)||s10.includes(",")||s10.includes("\uFEFF")||s10.startsWith(" ")||s10.endsWith(" ");m16.reserve(f4(x(s10),f4(e8,l12?2:0,"xan CSV output"),"xan CSV output"));let u15=e8>0?s10.replace(/"/g,'""'):s10;m16.append(l12?`"${u15}"`:u15)},o13=(p16,s10)=>{for(let e8=0;e8<s10;e8++)e8>0&&m16.append(","),c18(i22(p16,e8));m16.append(`
1062
1062
  `)};if(a14){for(let p16=0;p16<a14.length;p16++)p16>0&&m16.append(","),c18(a14[p16]);m16.append(`
1063
1063
  `)}for(let p16=0;p16<n10;p16++)r7?.executionScope?.throwIfAborted("xan CSV output"),o13(p16,t8??f15(p16));return m16.build()}async function R19(n10,t8){let i22=n10.find(d11=>!d11.startsWith("-")),r7;if(!i22||i22==="-")r7=a2(t8.stdin);else try{let d11=t8.fs.resolvePath(t8.cwd,i22);r7=await t8.fs.readFile(d11)}catch(d11){return e2(d11),{headers:[],data:[],error:{stdout:"",stderr:`xan: ${i22}: No such file or directory
@@ -1070,7 +1070,7 @@ EXAMPLES:
1070
1070
  `),o13.append("\u251C");for(let e8=0;e8<c18.length;e8++)e8>0&&o13.append("\u253C"),o13.repeat(p16,c18[e8]+2);o13.append(`\u2524
1071
1071
  `);for(let e8 of m16){o13.append(s10);for(let l12=0;l12<a14.length;l12++){l12>0&&o13.append(s10);let u15=String(e8[a14[l12]]??"");o13.append(` ${u15}`),o13.repeat(" ",c18[l12]-u15.length+1)}o13.append(`${s10}
1072
1072
  `)}o13.append("\u2514");for(let e8=0;e8<c18.length;e8++)e8>0&&o13.append("\u2534"),o13.repeat(p16,c18[e8]+2);return o13.append(`\u2518
1073
- `),{stdout:o13.build(),stderr:"",exitCode:0}}var require186,g12,C15,V9,init_chunk_MDE25PQK=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-MDE25PQK.js"(){init_chunk_6RK4AAB7();init_chunk_U7UNEMLJ();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_NCUTH6QL();require186=createRequire185(import.meta.url),g12=class extends u5{constructor(t8){super(t8,"xan")}},C15=o4(xe8(),1),V9=class{ctx;site;rows=0;cells=0;constructor(t8,i22){this.ctx=t8,this.site=i22}consumeWork(t8=1){this.ctx.executionScope?.consumeWork(t8,this.site)}addRow(t8){this.addRows(1,t8)}addRows(t8,i22){let r7=p3(t8,i22,this.site);if(!Number.isSafeInteger(t8)||t8<0||!Number.isSafeInteger(i22)||i22<0||i22>this.ctx.limits.maxArrayElements||t8>Math.min(this.ctx.limits.maxCsvRows,this.ctx.limits.maxArrayElements)-this.rows||r7>this.ctx.limits.maxCsvCells-this.cells)throw new f2(`${this.site}: derived CSV result limit exceeded`,"array_elements");this.consumeWork(p3(t8,f4(1,i22,this.site),this.site)),this.rows+=t8,this.cells+=r7}}}});var xan_view_S4ZILLPU_exports={};__export(xan_view_S4ZILLPU_exports,{cmdFlatten:()=>D16,cmdView:()=>J11});import{createRequire as createRequire186}from"node:module";var require187,init_xan_view_S4ZILLPU=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/xan-view-S4ZILLPU.js"(){init_chunk_MDE25PQK();init_chunk_6RK4AAB7();init_chunk_U7UNEMLJ();init_chunk_CBM6J4AL();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_NCUTH6QL();require187=createRequire186(import.meta.url)}});import{createRequire as createRequire187}from"node:module";function z15(e8){return{maxSourceLength:e8.limits.maxStringLength,maxTokens:e8.limits.maxQueryTokens,maxAstNodes:e8.limits.maxQueryElements,maxOperations:e8.limits.maxJqIterations,maxDepth:e8.limits.maxQueryDepth}}function X10(e8,t8={}){let n10=[],r7=new G12(e8,{maxSourceLength:t8.maxSourceLength,maxTokens:t8.maxTokens}).tokenize(),o13=0,i22=()=>r7[o13]||{type:"eof",value:"",pos:0},p16=()=>r7[o13++];for(;i22().type!=="eof";){if(i22().type===","&&n10.length>0){p16();continue}let h18=[],m16=0,c18=o13;for(;i22().type!=="eof";){let l12=i22();if((l12.type===","||l12.type==="as")&&m16===0)break;(l12.type==="("||l12.type==="["||l12.type==="{")&&m16++,(l12.type===")"||l12.type==="]"||l12.type==="}")&&m16--,h18.push(p16())}h18.push({type:"eof",value:"",pos:0});let d11=new ee8(h18,t8).parse(),u15;if(i22().type==="as")if(p16(),i22().type==="("){p16();let l12=[];for(;i22().type!==")"&&i22().type!=="eof";)if((i22().type==="ident"||i22().type==="string")&&(l12.push(i22().value),p16()),i22().type===",")p16();else if(i22().type!==")"&&i22().type!=="eof")throw new Error(`Expected tuple alias, got ${i22().type}`);if(i22().type!==")")throw new Error("Expected ')' after tuple alias");p16(),u15=l12}else if(i22().type==="ident"||i22().type==="string")u15=i22().value,p16();else throw new Error(`Expected name after 'as', got ${i22().type}`);else u15=e8.slice(r7[c18].pos,r7[o13-1]?.pos||e8.length).trim(),d11.type==="identifier"&&(u15=d11.name);n10.push({expr:d11,name:u15})}return n10}function B16(e8,t8={}){let s10=new G12(e8,{maxSourceLength:t8.maxSourceLength,maxTokens:t8.maxTokens}).tokenize();return new ee8(s10,t8).parse()}function R20(e8,t8){return t8.length===0?O17(e8,[]):t8.length===1?{type:"Pipe",left:t8[0],right:O17(e8,[])}:{type:"Pipe",left:t8[0],right:O17(e8,t8.slice(1))}}function L19(e8,t8,n10){return{type:"BinaryOp",op:e8,left:t8,right:n10}}function O17(e8,t8){return{type:"Call",name:e8,args:t8}}function st7(e8,t8,n10){let s10=P6({type:"Cond",cond:e8,elifs:[],else:n10||{type:"Literal",value:null}});return s10[mt5]=t8,s10}function M19(e8){return{type:"Pipe",left:e8,right:{type:"Call",name:"tostring",args:[]}}}function U11(e8,t8=!0,n10={}){let s10={nodes:0,operations:0,maxNodes:n10.maxAstNodes??1e5,maxOperations:n10.maxOperations??1e5,maxDepth:n10.maxDepth??100};return rt5(e8,t8,s10,0)}function rt5(e8,t8,n10,s10){if(s10>=n10.maxDepth)throw new f2(`xan: expression conversion depth limit exceeded (${n10.maxDepth})`,"recursion");if(++n10.nodes>n10.maxNodes)throw new f2(`xan: expression conversion AST limit exceeded (${n10.maxNodes})`,"array_elements");if(++n10.operations>n10.maxOperations)throw new f2(`xan: expression conversion operation limit exceeded (${n10.maxOperations})`,"iterations");let r7=o13=>rt5(o13,t8,n10,s10+1);switch(e8.type){case"int":case"float":return{type:"Literal",value:e8.value};case"string":return{type:"Literal",value:e8.value};case"bool":return{type:"Literal",value:e8.value};case"null":return{type:"Literal",value:null};case"underscore":return{type:"Index",base:{type:"Identity"},index:{type:"Literal",value:"_"}};case"identifier":return t8?{type:"Field",name:e8.name}:{type:"VarRef",name:e8.name};case"lambdaBinding":return{type:"VarRef",name:e8.name};case"func":{if(e8.args.length>n10.maxNodes-n10.nodes)throw new f2(`xan: expression conversion AST limit exceeded (${n10.maxNodes})`,"array_elements");let o13=e8.args.map(p16=>r7(p16.expr));if(e8.name==="coalesce"){let p16=Math.max(0,o13.length-1)*7;if(p16>n10.maxNodes-n10.nodes)throw new f2(`xan: expression conversion AST limit exceeded (${n10.maxNodes})`,"array_elements");if(n10.nodes+=p16,n10.operations+=o13.length,n10.operations>n10.maxOperations)throw new f2(`xan: expression conversion operation limit exceeded (${n10.maxOperations})`,"iterations")}let i22=Object.hasOwn(le9,e8.name)?le9[e8.name]:void 0;return typeof i22=="function"?i22(o13):O17(typeof i22=="string"?i22:e8.name,o13)}case"list":return e8.elements.length===0?{type:"Array"}:{type:"Array",elements:e8.elements.reduce((o13,i22,p16)=>{let h18=r7(i22);return p16===0?h18:{type:"Comma",left:o13,right:h18}},null)};case"map":return{type:"Object",entries:e8.entries.map(o13=>({key:o13.key,value:r7(o13.value)}))};case"regex":return{type:"Literal",value:e8.pattern};case"slice":return{type:"Slice",start:e8.start?r7(e8.start):void 0,end:e8.end?r7(e8.end):void 0};case"lambda":return r7(e8.body);case"pipeline":return{type:"Identity"};default:throw new Error(`Unknown moonblade expression type: ${e8.type}`)}}function Q10(e8){return e8<2?0:Math.ceil(e8*Math.log2(e8))}function ue7(e8,t8={}){let n10=t8.maxArrayElements??1e5,s10=t8.maxStringLength??10*1024*1024,r7=t8.maxIterations??1e5,o13=t8.maxDepth??100;if(x(e8)>s10)throw new f2(`xan: aggregation expression length limit exceeded (${s10} bytes)`,"string_length");let i22=[],p16=0,h18=0,m16=()=>{if(t8.consumeWork?.(),++h18>r7)throw new f2(`xan: aggregation parser operation limit exceeded (${r7})`,"iterations")};for(;p16<e8.length;){for(m16();p16<e8.length&&(e8[p16]===" "||e8[p16]===",");)p16++;if(p16>=e8.length)break;let c18=p16;for(;p16<e8.length&&/\w/.test(e8[p16]);)p16++;let a14=e8.slice(c18,p16);for(;p16<e8.length&&e8[p16]===" ";)p16++;if(e8[p16]!=="(")break;p16++;let d11=1,u15=p16;for(;p16<e8.length&&d11>0;){if(m16(),e8[p16]==="("?d11++:e8[p16]===")"&&d11--,d11>o13)throw new f2(`xan: aggregation parser depth limit exceeded (${o13})`,"recursion");d11>0&&p16++}let l12=e8.slice(u15,p16).trim();for(p16++;p16<e8.length&&e8[p16]===" ";)p16++;let f15="";if(e8.slice(p16,p16+3).toLowerCase()==="as "){for(p16+=3;p16<e8.length&&e8[p16]===" ";)p16++;let x23=p16;for(;p16<e8.length&&/\w/.test(e8[p16]);)p16++;f15=e8.slice(x23,p16)}if(f15||(f15=l12?`${a14}(${l12})`:`${a14}()`),i22.length>=n10)throw new f2(`xan: aggregation specification limit exceeded (${n10})`,"array_elements");i22.push({func:a14,expr:l12,alias:f15})}return i22}function ft6(e8){return/^\w+$/.test(e8)}function ht4(e8,t8,n10){let s10=d8(e8,t8,n10);return s10.length>0?s10[0]:null}function ce7(e8,t8,n10={},s10={}){let{func:r7,expr:o13}=t8,i22=s10.maxArrayElements??1e5,p16=s10.maxStringLength??10*1024*1024,h18=s10.maxIterations??1e5,m16={maxSourceLength:p16,maxTokens:i22,maxAstNodes:i22,maxOperations:h18,maxDepth:s10.maxDepth??100};if(e8.length>i22)throw new f2(`xan: aggregation input limit exceeded (${i22})`,"array_elements");if(r7==="count"&&!o13)return e8.length;let c18=ft6(o13),a14=c18?null:U11(B16(o13,m16),!0,m16),d11;if(c18)d11=f15=>f15[o13];else{if(a14===null)throw new Error("xan: missing compiled aggregation expression");d11=f15=>ht4(f15,a14,n10)}if(r7==="all"||r7==="any"){let f15=0;for(let x23 of e8){if(s10.consumeWork?.(),++f15>h18)throw new f2(`xan: aggregation iteration limit exceeded (${h18})`,"iterations");let g13=!!d11(x23);if(r7==="all"&&!g13)return!1;if(r7==="any"&&g13)return!0}return r7==="all"}let u15=[],l12=0;for(let f15 of e8){if(s10.consumeWork?.(),++l12>h18)throw new f2(`xan: aggregation iteration limit exceeded (${h18})`,"iterations");let x23=d11(f15);if(x23!=null){if(u15.length>=i22)throw new f2(`xan: aggregation value limit exceeded (${i22})`,"array_elements");u15.push(x23)}}switch(r7){case"count":{if(c18)return u15.length;let f15=0;for(let x23 of u15)s10.consumeWork?.(),x23&&f15++;return f15}case"sum":{let f15=0;for(let x23 of u15)s10.consumeWork?.(),f15+=typeof x23=="number"?x23:Number.parseFloat(String(x23));return f15}case"mean":case"avg":{let f15=0;for(let x23 of u15)s10.consumeWork?.(),f15+=typeof x23=="number"?x23:Number.parseFloat(String(x23));return u15.length>0?f15/u15.length:0}case"min":{let f15=null;for(let x23 of u15){s10.consumeWork?.();let g13=typeof x23=="number"?x23:Number.parseFloat(String(x23));f15=f15===null?g13:Math.min(f15,g13)}return f15}case"max":{let f15=null;for(let x23 of u15){s10.consumeWork?.();let g13=typeof x23=="number"?x23:Number.parseFloat(String(x23));f15=f15===null?g13:Math.max(f15,g13)}return f15}case"first":return u15.length>0?u15[0]:null;case"last":return u15.length>0?u15[u15.length-1]:null;case"median":{let f15=[];for(let g13 of u15){s10.consumeWork?.();let y14=typeof g13=="number"?g13:Number.parseFloat(String(g13));Number.isNaN(y14)||f15.push(y14)}if(s10.consumeWork?.(Q10(f15.length)),f15.sort((g13,y14)=>g13-y14),f15.length===0)return null;let x23=Math.floor(f15.length/2);return f15.length%2===0?(f15[x23-1]+f15[x23])/2:f15[x23]}case"mode":{let f15=new Map;for(let y14 of u15){s10.consumeWork?.();let w15=String(y14);f15.set(w15,(f15.get(w15)||0)+1)}let x23=0,g13=null;for(let[y14,w15]of f15)s10.consumeWork?.(),w15>x23&&(x23=w15,g13=y14);return g13}case"cardinality":{let f15=new Set;for(let x23 of u15)s10.consumeWork?.(),f15.add(String(x23));return f15.size}case"values":return ot6(u15,!1,p16,s10);case"distinct_values":return ot6(u15,!0,p16,s10);default:return null}}function it6(e8,t8,n10={},s10={}){let r7=I21();for(let o13 of t8)j20(r7,o13.alias,ce7(e8,o13,n10,s10));return r7}function ot6(e8,t8,n10,s10){let r7=[],o13=t8?new Set:null,i22=0;for(let p16 of e8){s10.consumeWork?.();let h18=String(p16);if(o13?.has(h18))continue;o13?.add(h18);let m16=x(h18)+(r7.length>0?1:0);if(m16>n10-i22)throw new f2(`xan: aggregation string limit exceeded (${n10} bytes)`,"string_length");r7.push(h18),i22+=m16}return t8&&(s10.consumeWork?.(Q10(r7.length)),r7.sort()),r7.join("|")}function lt6(e8,t8){return{maxArrayElements:e8.limits.maxArrayElements,maxStringLength:e8.limits.maxStringLength,maxIterations:e8.limits.maxJqIterations,maxDepth:e8.limits.maxQueryDepth,consumeWork:(n10=1)=>t8.consumeWork(n10)}}function at5(e8,t8,n10){let s10=e8.size-(t8&&e8.has("")?1:0);return n10>0?Math.min(s10,n10):s10}async function pe4(e8,t8){let n10="",s10=[];for(let d11 of e8)d11.startsWith("-")||(n10?s10.push(d11):n10=d11);if(!n10)return{stdout:"",stderr:`xan agg: no aggregation expression
1073
+ `),{stdout:o13.build(),stderr:"",exitCode:0}}var require186,g12,C15,V9,init_chunk_MDE25PQK=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-MDE25PQK.js"(){init_chunk_6RK4AAB7();init_chunk_U7UNEMLJ();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_NCUTH6QL();require186=createRequire185(import.meta.url),g12=class extends u5{constructor(t8){super(t8,"xan")}},C15=o4(xe8(),1),V9=class{ctx;site;rows=0;cells=0;constructor(t8,i22){this.ctx=t8,this.site=i22}consumeWork(t8=1){this.ctx.executionScope?.consumeWork(t8,this.site)}addRow(t8){this.addRows(1,t8)}addRows(t8,i22){let r7=p3(t8,i22,this.site);if(!Number.isSafeInteger(t8)||t8<0||!Number.isSafeInteger(i22)||i22<0||i22>this.ctx.limits.maxArrayElements||t8>Math.min(this.ctx.limits.maxCsvRows,this.ctx.limits.maxArrayElements)-this.rows||r7>this.ctx.limits.maxCsvCells-this.cells)throw new f2(`${this.site}: derived CSV result limit exceeded`,"array_elements");this.consumeWork(p3(t8,f4(1,i22,this.site),this.site)),this.rows+=t8,this.cells+=r7}}}});var xan_view_S4ZILLPU_exports={};__export(xan_view_S4ZILLPU_exports,{cmdFlatten:()=>D16,cmdView:()=>J11});import{createRequire as createRequire186}from"node:module";var require187,init_xan_view_S4ZILLPU=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/xan-view-S4ZILLPU.js"(){init_chunk_MDE25PQK();init_chunk_6RK4AAB7();init_chunk_U7UNEMLJ();init_chunk_CBM6J4AL();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_NCUTH6QL();require187=createRequire186(import.meta.url)}});import{createRequire as createRequire187}from"node:module";function z15(e8){return{maxSourceLength:e8.limits.maxStringLength,maxTokens:e8.limits.maxQueryTokens,maxAstNodes:e8.limits.maxQueryElements,maxOperations:e8.limits.maxJqIterations,maxDepth:e8.limits.maxQueryDepth}}function X10(e8,t8={}){let n10=[],r7=new G12(e8,{maxSourceLength:t8.maxSourceLength,maxTokens:t8.maxTokens}).tokenize(),o13=0,i22=()=>r7[o13]||{type:"eof",value:"",pos:0},p16=()=>r7[o13++];for(;i22().type!=="eof";){if(i22().type===","&&n10.length>0){p16();continue}let h18=[],m16=0,c18=o13;for(;i22().type!=="eof";){let l12=i22();if((l12.type===","||l12.type==="as")&&m16===0)break;(l12.type==="("||l12.type==="["||l12.type==="{")&&m16++,(l12.type===")"||l12.type==="]"||l12.type==="}")&&m16--,h18.push(p16())}h18.push({type:"eof",value:"",pos:0});let d11=new ee8(h18,t8).parse(),u15;if(i22().type==="as")if(p16(),i22().type==="("){p16();let l12=[];for(;i22().type!==")"&&i22().type!=="eof";)if((i22().type==="ident"||i22().type==="string")&&(l12.push(i22().value),p16()),i22().type===",")p16();else if(i22().type!==")"&&i22().type!=="eof")throw new Error(`Expected tuple alias, got ${i22().type}`);if(i22().type!==")")throw new Error("Expected ')' after tuple alias");p16(),u15=l12}else if(i22().type==="ident"||i22().type==="string")u15=i22().value,p16();else throw new Error(`Expected name after 'as', got ${i22().type}`);else u15=e8.slice(r7[c18].pos,r7[o13-1]?.pos||e8.length).trim(),d11.type==="identifier"&&(u15=d11.name);n10.push({expr:d11,name:u15})}return n10}function B16(e8,t8={}){let s10=new G12(e8,{maxSourceLength:t8.maxSourceLength,maxTokens:t8.maxTokens}).tokenize();return new ee8(s10,t8).parse()}function R20(e8,t8){return t8.length===0?O17(e8,[]):t8.length===1?{type:"Pipe",left:t8[0],right:O17(e8,[])}:{type:"Pipe",left:t8[0],right:O17(e8,t8.slice(1))}}function L19(e8,t8,n10){return{type:"BinaryOp",op:e8,left:t8,right:n10}}function O17(e8,t8){return{type:"Call",name:e8,args:t8}}function st7(e8,t8,n10){let s10=P6({type:"Cond",cond:e8,elifs:[],else:n10||{type:"Literal",value:null}});return s10[mt5]=t8,s10}function M19(e8){return{type:"Pipe",left:e8,right:{type:"Call",name:"tostring",args:[]}}}function U11(e8,t8=!0,n10={}){let s10={nodes:0,operations:0,maxNodes:n10.maxAstNodes??1e5,maxOperations:n10.maxOperations??1e5,maxDepth:n10.maxDepth??100};return rt5(e8,t8,s10,0)}function rt5(e8,t8,n10,s10){if(s10>=n10.maxDepth)throw new f2(`xan: expression conversion depth limit exceeded (${n10.maxDepth})`,"recursion");if(++n10.nodes>n10.maxNodes)throw new f2(`xan: expression conversion AST limit exceeded (${n10.maxNodes})`,"array_elements");if(++n10.operations>n10.maxOperations)throw new f2(`xan: expression conversion operation limit exceeded (${n10.maxOperations})`,"iterations");let r7=o13=>rt5(o13,t8,n10,s10+1);switch(e8.type){case"int":case"float":return{type:"Literal",value:e8.value};case"string":return{type:"Literal",value:e8.value};case"bool":return{type:"Literal",value:e8.value};case"null":return{type:"Literal",value:null};case"underscore":return{type:"Index",base:{type:"Identity"},index:{type:"Literal",value:"_"}};case"identifier":return t8?{type:"Field",name:e8.name}:{type:"VarRef",name:e8.name};case"lambdaBinding":return{type:"VarRef",name:e8.name};case"func":{if(e8.args.length>n10.maxNodes-n10.nodes)throw new f2(`xan: expression conversion AST limit exceeded (${n10.maxNodes})`,"array_elements");let o13=e8.args.map(p16=>r7(p16.expr));if(e8.name==="coalesce"){let p16=Math.max(0,o13.length-1)*7;if(p16>n10.maxNodes-n10.nodes)throw new f2(`xan: expression conversion AST limit exceeded (${n10.maxNodes})`,"array_elements");if(n10.nodes+=p16,n10.operations+=o13.length,n10.operations>n10.maxOperations)throw new f2(`xan: expression conversion operation limit exceeded (${n10.maxOperations})`,"iterations")}let i22=Object.hasOwn(le9,e8.name)?le9[e8.name]:void 0;return typeof i22=="function"?i22(o13):O17(typeof i22=="string"?i22:e8.name,o13)}case"list":return e8.elements.length===0?{type:"Array"}:{type:"Array",elements:e8.elements.reduce((o13,i22,p16)=>{let h18=r7(i22);return p16===0?h18:{type:"Comma",left:o13,right:h18}},null)};case"map":return{type:"Object",entries:e8.entries.map(o13=>({key:o13.key,value:r7(o13.value)}))};case"regex":return{type:"Literal",value:e8.pattern};case"slice":return{type:"Slice",start:e8.start?r7(e8.start):void 0,end:e8.end?r7(e8.end):void 0};case"lambda":return r7(e8.body);case"pipeline":return{type:"Identity"};default:throw new Error(`Unknown moonblade expression type: ${e8.type}`)}}function Q10(e8){return e8<2?0:Math.ceil(e8*Math.log2(e8))}function ue7(e8,t8={}){let n10=t8.maxArrayElements??1e5,s10=t8.maxStringLength??10*1024*1024,r7=t8.maxIterations??1e5,o13=t8.maxDepth??100;if(x(e8)>s10)throw new f2(`xan: aggregation expression length limit exceeded (${s10} bytes)`,"string_length");let i22=[],p16=0,h18=0,m16=()=>{if(t8.consumeWork?.(),++h18>r7)throw new f2(`xan: aggregation parser operation limit exceeded (${r7})`,"iterations")};for(;p16<e8.length;){for(m16();p16<e8.length&&(e8[p16]===" "||e8[p16]===",");)p16++;if(p16>=e8.length)break;let c18=p16;for(;p16<e8.length&&/\w/.test(e8[p16]);)p16++;let a14=e8.slice(c18,p16);for(;p16<e8.length&&e8[p16]===" ";)p16++;if(e8[p16]!=="(")break;p16++;let d11=1,u15=p16;for(;p16<e8.length&&d11>0;){if(m16(),e8[p16]==="("?d11++:e8[p16]===")"&&d11--,d11>o13)throw new f2(`xan: aggregation parser depth limit exceeded (${o13})`,"recursion");d11>0&&p16++}let l12=e8.slice(u15,p16).trim();for(p16++;p16<e8.length&&e8[p16]===" ";)p16++;let f15="";if(e8.slice(p16,p16+3).toLowerCase()==="as "){for(p16+=3;p16<e8.length&&e8[p16]===" ";)p16++;let x23=p16;for(;p16<e8.length&&/\w/.test(e8[p16]);)p16++;f15=e8.slice(x23,p16)}if(f15||(f15=l12?`${a14}(${l12})`:`${a14}()`),i22.length>=n10)throw new f2(`xan: aggregation specification limit exceeded (${n10})`,"array_elements");i22.push({func:a14,expr:l12,alias:f15})}return i22}function ft6(e8){return/^\w+$/.test(e8)}function ht4(e8,t8,n10){let s10=d8(e8,t8,n10);return s10.length>0?s10[0]:null}function ce7(e8,t8,n10={},s10={}){let{func:r7,expr:o13}=t8,i22=s10.maxArrayElements??1e5,p16=s10.maxStringLength??10*1024*1024,h18=s10.maxIterations??1e5,m16={maxSourceLength:p16,maxTokens:i22,maxAstNodes:i22,maxOperations:h18,maxDepth:s10.maxDepth??100};if(e8.length>i22)throw new f2(`xan: aggregation input limit exceeded (${i22})`,"array_elements");if(r7==="count"&&!o13)return e8.length;let c18=ft6(o13),a14=c18?null:U11(B16(o13,m16),!0,m16),d11;if(c18)d11=f15=>f15[o13];else{if(a14===null)throw new Error("xan: missing compiled aggregation expression");d11=f15=>ht4(f15,a14,n10)}if(r7==="all"||r7==="any"){let f15=0;for(let x23 of e8){if(s10.consumeWork?.(),++f15>h18)throw new f2(`xan: aggregation iteration limit exceeded (${h18})`,"iterations");let g13=!!d11(x23);if(r7==="all"&&!g13)return!1;if(r7==="any"&&g13)return!0}return r7==="all"}let u15=[],l12=0;for(let f15 of e8){if(s10.consumeWork?.(),++l12>h18)throw new f2(`xan: aggregation iteration limit exceeded (${h18})`,"iterations");let x23=d11(f15);if(x23!=null){if(u15.length>=i22)throw new f2(`xan: aggregation value limit exceeded (${i22})`,"array_elements");u15.push(x23)}}switch(r7){case"count":{if(c18)return u15.length;let f15=0;for(let x23 of u15)s10.consumeWork?.(),x23&&f15++;return f15}case"sum":{let f15=0;for(let x23 of u15)s10.consumeWork?.(),f15+=typeof x23=="number"?x23:Number.parseFloat(String(x23));return f15}case"mean":case"avg":{let f15=0;for(let x23 of u15)s10.consumeWork?.(),f15+=typeof x23=="number"?x23:Number.parseFloat(String(x23));return u15.length>0?f15/u15.length:0}case"min":{let f15=null;for(let x23 of u15){s10.consumeWork?.();let g13=typeof x23=="number"?x23:Number.parseFloat(String(x23));f15=f15===null?g13:Math.min(f15,g13)}return f15}case"max":{let f15=null;for(let x23 of u15){s10.consumeWork?.();let g13=typeof x23=="number"?x23:Number.parseFloat(String(x23));f15=f15===null?g13:Math.max(f15,g13)}return f15}case"first":return u15.length>0?u15[0]:null;case"last":return u15.length>0?u15[u15.length-1]:null;case"median":{let f15=[];for(let g13 of u15){s10.consumeWork?.();let y14=typeof g13=="number"?g13:Number.parseFloat(String(g13));Number.isNaN(y14)||f15.push(y14)}if(s10.consumeWork?.(Q10(f15.length)),f15.sort((g13,y14)=>g13-y14),f15.length===0)return null;let x23=Math.floor(f15.length/2);return f15.length%2===0?(f15[x23-1]+f15[x23])/2:f15[x23]}case"mode":{let f15=new Map;for(let y14 of u15){s10.consumeWork?.();let w15=String(y14);f15.set(w15,(f15.get(w15)||0)+1)}let x23=0,g13=null;for(let[y14,w15]of f15)s10.consumeWork?.(),w15>x23&&(x23=w15,g13=y14);return g13}case"cardinality":{let f15=new Set;for(let x23 of u15)s10.consumeWork?.(),f15.add(String(x23));return f15.size}case"values":return ot6(u15,!1,p16,s10);case"distinct_values":return ot6(u15,!0,p16,s10);default:return null}}function it6(e8,t8,n10={},s10={}){let r7=I21();for(let o13 of t8)j20(r7,o13.alias,ce7(e8,o13,n10,s10));return r7}function ot6(e8,t8,n10,s10){let r7=[],o13=t8?new Set:null,i22=0;for(let p16 of e8){s10.consumeWork?.();let h18=String(p16);if(o13?.has(h18))continue;o13?.add(h18);let m16=x(h18)+(r7.length>0?1:0);if(m16>n10-i22)throw new f2(`xan: aggregation string limit exceeded (${n10} bytes)`,"string_length");r7.push(h18),i22+=m16}return t8&&(s10.consumeWork?.(Q10(r7.length)),r7.sort()),r7.join("|")}function lt6(e8,t8){return{maxArrayElements:e8.limits.maxArrayElements,maxStringLength:e8.limits.maxStringLength,maxIterations:e8.limits.maxJqIterations,maxDepth:e8.limits.maxQueryDepth,consumeWork:(n10=1)=>t8.consumeWork(n10)}}function at5(e8,t8,n10){let s10=e8.size-(t8&&e8.has("")?1:0);return n10>0?Math.min(s10,n10):s10}async function pe4(e8,t8){let n10="",s10=[];for(let d11 of e8)d11.startsWith("-")||(n10?s10.push(d11):n10=d11);if(!n10)return{stdout:"",stderr:`xan agg: no aggregation expression
1074
1074
  `,exitCode:1};let{data:r7,error:o13}=await R19(s10,t8);if(o13)return o13;let i22={limits:t8.limits?{maxIterations:t8.limits.maxJqIterations,maxStringLength:t8.limits.maxStringLength}:void 0},p16=new V9(t8,"xan agg"),h18=lt6(t8,p16),m16=ue7(n10,h18),c18=m16.map(d11=>d11.alias);p16.addRow(c18.length);let a14=it6(r7,m16,i22,h18);return{stdout:P16(c18,[a14],t8),stderr:"",exitCode:0}}async function de9(e8,t8){let n10="",s10="",r7=[];for(let x23=0;x23<e8.length;x23++){let g13=e8[x23];g13==="--sorted"||g13.startsWith("-")||(n10?s10?r7.push(g13):s10=g13:n10=g13)}if(!n10||!s10)return{stdout:"",stderr:`xan groupby: usage: xan groupby COLS EXPR [FILE]
1075
1075
  `,exitCode:1};let{data:o13,error:i22}=await R19(r7,t8);if(i22)return i22;let p16={limits:t8.limits?{maxIterations:t8.limits.maxJqIterations,maxStringLength:t8.limits.maxStringLength}:void 0},h18=n10.split(","),m16=new V9(t8,"xan groupby"),c18=lt6(t8,m16),a14=ue7(s10,c18),d11=[...h18,...a14.map(x23=>x23.alias)],u15=[],l12=new Map;for(let x23 of o13){m16.consumeWork(h18.length+1);let g13=JSON.stringify(h18.map(y14=>String(x23[y14])));l12.has(g13)||(m16.addRow(d11.length),l12.set(g13,[]),u15.push(g13)),l12.get(g13)?.push(x23)}let f15=[];for(let x23 of u15){let g13=l12.get(x23);if(!g13)continue;let y14=I21();for(let w15 of h18)j20(y14,w15,g13[0][w15]);for(let w15 of a14)j20(y14,w15.alias,ce7(g13,w15,p16,c18));f15.push(y14)}return{stdout:P16(d11,f15,t8),stderr:"",exitCode:0}}async function me9(e8,t8){let n10=[],s10="",r7=10,o13=!1,i22=[];for(let l12=0;l12<e8.length;l12++){let f15=e8[l12];(f15==="-s"||f15==="--select")&&l12+1<e8.length?n10=e8[++l12].split(","):(f15==="-g"||f15==="--groupby")&&l12+1<e8.length?s10=e8[++l12]:(f15==="-l"||f15==="--limit")&&l12+1<e8.length?r7=Number.parseInt(e8[++l12],10):f15==="--no-extra"?o13=!0:f15==="-A"||f15==="--all"?r7=0:f15.startsWith("-")||i22.push(f15)}let{headers:p16,data:h18,error:m16}=await R19(i22,t8);if(m16)return m16;if(!Number.isSafeInteger(r7)||r7<0)return{stdout:"",stderr:`xan frequency: limit must be a non-negative safe integer
1076
1076
  `,exitCode:1};let c18=new V9(t8,"xan frequency"),a14=n10.length>0?n10:p16.filter(l12=>l12!==s10);s10&&n10.length===0&&(a14=p16.filter(l12=>l12!==s10));let d11=[],u15=s10?["field",s10,"value","count"]:["field","value","count"];if(s10){let l12=new Map;for(let f15 of h18){c18.consumeWork();let x23=String(f15[s10]??"");l12.has(x23)||l12.set(x23,[]),l12.get(x23)?.push(f15)}for(let f15 of a14)for(let[x23,g13]of l12){let y14=new Map;for(let v13 of g13){c18.consumeWork();let I22=v13[f15],S15=I22===""||I22===null||I22===void 0?"":String(I22);y14.set(S15,(y14.get(S15)||0)+1)}c18.addRows(at5(y14,o13,r7),u15.length),c18.consumeWork(Q10(y14.size));let w15=[...y14.entries()].sort((v13,I22)=>I22[1]!==v13[1]?I22[1]-v13[1]:v13[0].localeCompare(I22[0])),A13=0;for(let[v13,I22]of w15){if(o13&&v13==="")continue;if(r7>0&&A13>=r7)break;let S15=I21();j20(S15,"field",f15),j20(S15,s10,x23),j20(S15,"value",v13===""?"<empty>":v13),j20(S15,"count",I22),d11.push(S15),A13++}}}else for(let l12 of a14){let f15=new Map;for(let y14 of h18){c18.consumeWork();let w15=y14[l12],A13=w15===""||w15===null||w15===void 0?"":String(w15);f15.set(A13,(f15.get(A13)||0)+1)}c18.addRows(at5(f15,o13,r7),u15.length),c18.consumeWork(Q10(f15.size));let x23=[...f15.entries()].sort((y14,w15)=>w15[1]!==y14[1]?w15[1]-y14[1]:y14[0].localeCompare(w15[0])),g13=0;for(let[y14,w15]of x23){if(o13&&y14==="")continue;if(r7>0&&g13>=r7)break;let A13=I21();j20(A13,"field",l12),j20(A13,"value",y14===""?"<empty>":y14),j20(A13,"count",w15),d11.push(A13),g13++}}return{stdout:P16(u15,d11,t8),stderr:"",exitCode:0}}async function fe6(e8,t8){let n10=[],s10=[];for(let a14=0;a14<e8.length;a14++){let d11=e8[a14];d11==="-s"&&a14+1<e8.length?n10=e8[++a14].split(","):d11.startsWith("-")||s10.push(d11)}let{headers:r7,data:o13,error:i22}=await R19(s10,t8);if(i22)return i22;let p16=n10.length>0?n10:r7,h18=["field","type","count","min","max","mean"];new V9(t8,"xan stats").addRows(p16.length,h18.length);let c18=[];for(let a14 of p16){let d11=0,u15=0,l12=Number.POSITIVE_INFINITY,f15=Number.NEGATIVE_INFINITY,x23=0;for(let w15 of o13){t8.executionScope?.consumeWork(1,"xan stats rows");let A13=w15[a14];if(A13==null)continue;d11++;let v13=typeof A13=="number"?A13:Number.parseFloat(String(A13));Number.isNaN(v13)||(u15++,l12=Math.min(l12,v13),f15=Math.max(f15,v13),x23+=v13)}let g13=u15===d11&&u15>0,y14=I21();j20(y14,"field",a14),j20(y14,"type",g13?"Number":"String"),j20(y14,"count",d11),j20(y14,"min",g13?l12:""),j20(y14,"max",g13?f15:""),j20(y14,"mean",g13?Math.round(x23/u15*1e10)/1e10:""),c18.push(y14)}return{stdout:P16(h18,c18,t8),stderr:"",exitCode:0}}function ut5(e8,t8={}){let n10=B16(e8,t8);return U11(n10,!0,t8)}function gt5(e8){let n10=e8.replace(/[.+?^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*");return G1(`^${n10}$`)}function te8(e8,t8){let n10=[],s10=new Set;for(let r7 of e8.split(",")){let o13=r7.trim();if(o13.startsWith("!")){let m16=o13.slice(1),c18=te8(m16,t8);for(let a14 of c18)s10.add(a14);continue}if(o13==="*"){for(let m16 of t8)n10.includes(m16)||n10.push(m16);continue}if(o13.includes("*")){let m16=gt5(o13);for(let c18 of t8)m16.test(c18)&&!n10.includes(c18)&&n10.push(c18);continue}let i22=o13.match(/^([^:]*):([^:]*)$/);if(i22&&(i22[1]||i22[2])){let m16=i22[1],c18=i22[2],a14=m16?t8.indexOf(m16):0,d11=c18?t8.indexOf(c18):t8.length-1;if(a14!==-1&&d11!==-1){let u15=a14<=d11?1:-1;for(let l12=a14;u15>0?l12<=d11:l12>=d11;l12+=u15)n10.includes(t8[l12])||n10.push(t8[l12])}continue}let p16=o13.match(/^(\d+)-(\d+)$/);if(p16){let m16=Number.parseInt(p16[1],10),c18=Number.parseInt(p16[2],10);for(let a14=m16;a14<=c18&&a14<t8.length;a14++)n10.push(t8[a14]);continue}let h18=Number.parseInt(o13,10);if(!Number.isNaN(h18)&&h18>=0&&h18<t8.length){n10.push(t8[h18]);continue}t8.includes(o13)&&n10.push(o13)}return s10.size>0?n10.filter(r7=>!s10.has(r7)):n10}async function he6(e8,t8){let n10="",s10=[];for(let m16 of e8)m16.startsWith("-")||(n10?s10.push(m16):n10=m16);if(!n10)return{stdout:"",stderr:`xan select: no columns specified
@@ -1129,7 +1129,7 @@ EXAMPLES:
1129
1129
  `,exitCode:1};i22=o13[0].headers}let m16=[];for(let{headers:c18,data:a14}of o13)for(let d11 of a14){let u15=I21();for(let l12 of i22)j20(u15,l12,c18.includes(l12)?d11[l12]:"");m16.push(u15)}return{stdout:P16(i22,m16,t8),stderr:"",exitCode:0}}async function Be6(e8,t8){let n10="",s10=[],r7=!1,o13=!1,i22=[];for(let u15=0;u15<e8.length;u15++){let l12=e8[u15];(l12==="-s"||l12==="--select")&&u15+1<e8.length?s10=e8[++u15].split(","):l12==="-v"||l12==="--invert"?r7=!0:l12==="-i"||l12==="--ignore-case"?o13=!0:l12==="-r"||l12==="--regex"||l12.startsWith("-")||(n10?i22.push(l12):n10=l12)}if(!n10)return{stdout:"",stderr:`xan search: no pattern specified
1130
1130
  `,exitCode:1};let{headers:p16,data:h18,error:m16}=await R19(i22,t8);if(m16)return m16;let c18=s10.length>0?s10:p16,a14;try{a14=G1(n10,o13?"i":"")}catch{return{stdout:"",stderr:`xan search: invalid regex pattern '${n10}'
1131
1131
  `,exitCode:1}}let d11=h18.filter(u15=>{let l12=c18.some(f15=>{let x23=u15[f15];return x23!=null&&a14.test(String(x23))});return r7?!l12:l12});return{stdout:P16(p16,d11,t8),stderr:"",exitCode:0}}async function He7(e8,t8){let n10="",s10=[];for(let l12 of e8)l12.startsWith("-")||(n10?s10.push(l12):n10=l12);if(!n10)return{stdout:"",stderr:`xan flatmap: no expression specified
1132
- `,exitCode:1};let{headers:r7,data:o13,error:i22}=await R19(s10,t8);if(i22)return i22;let p16=z15(t8),m16=X10(n10,p16).map(({expr:l12,name:f15})=>({alias:typeof f15=="string"?f15:f15[0],ast:U11(l12,!0,p16)})),c18={limits:t8.limits?{maxIterations:t8.limits.maxJqIterations,maxStringLength:t8.limits.maxStringLength}:void 0};if(f4(r7.length,m16.length,"xan flatmap")>t8.limits.maxArrayElements)throw new f2(`xan flatmap: output column limit exceeded (${t8.limits.maxArrayElements})`,"array_elements");let a14=[...r7,...m16.map(l12=>l12.alias)],d11=[],u15=new V9(t8,"xan flatmap");for(let l12 of o13){let f15=[],x23=1;for(let g13 of m16){u15.consumeWork();let y14=d8(l12,g13.ast,c18),w15=y14.length>0&&Array.isArray(y14[0])?y14[0]:y14;if(w15.length>t8.limits.maxArrayElements)throw new f2(`xan flatmap: expression result limit exceeded (${t8.limits.maxArrayElements})`,"array_elements");f15.push(w15),x23=Math.max(x23,w15.length)}for(let g13=0;g13<x23;g13++){u15.addRow(a14.length);let y14=W10(l12);for(let w15=0;w15<m16.length;w15++){let A13=f15[w15][g13]??null;j20(y14,m16[w15].alias,A13)}d11.push(y14)}}return{stdout:P16(a14,d11,t8),stderr:"",exitCode:0}}async function Ke5(e8,t8){let{cmdView:n10}=await Promise.resolve().then(()=>(init_xan_view_S4ZILLPU(),xan_view_S4ZILLPU_exports));return n10(e8,t8)}var require188,G12,D17,ee8,le9,mt5,dt4,St4,pt5,bt5,Jn2,Bn,init_chunk_PPHGMG47=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-PPHGMG47.js"(){init_chunk_MDE25PQK();init_chunk_H53EPEGD();init_chunk_FIMO5HLX();init_chunk_7GA3QWJJ();init_chunk_CHHWTPDH();init_chunk_U7UNEMLJ();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();require188=createRequire187(import.meta.url),G12=class{input;pos=0;tokens=[];maxSourceLength;maxTokens;constructor(t8,n10={}){this.input=t8,this.maxSourceLength=n10.maxSourceLength??1024*1024,this.maxTokens=n10.maxTokens??1e5}tokenize(){if(this.input.length>this.maxSourceLength)throw new f2(`xan: expression length limit exceeded (${this.maxSourceLength})`,"string_length");for(;this.pos<this.input.length&&(this.skipWhitespace(),!(this.pos>=this.input.length));){let t8=this.nextToken();t8&&(this.assertTokenCapacity(),this.tokens.push(t8))}return this.assertTokenCapacity(),this.tokens.push({type:"eof",value:"",pos:this.pos}),this.tokens}assertTokenCapacity(){if(this.tokens.length>=this.maxTokens)throw new f2(`xan: expression token limit exceeded (${this.maxTokens})`,"array_elements")}skipWhitespace(){for(;this.pos<this.input.length;){let t8=this.input[this.pos];if(t8===" "||t8===" "||t8===`
1132
+ `,exitCode:1};let{headers:r7,data:o13,error:i22}=await R19(s10,t8);if(i22)return i22;let p16=z15(t8),m16=X10(n10,p16).map(({expr:l12,name:f15})=>({alias:typeof f15=="string"?f15:f15[0],ast:U11(l12,!0,p16)})),c18={limits:t8.limits?{maxIterations:t8.limits.maxJqIterations,maxStringLength:t8.limits.maxStringLength}:void 0};if(f4(r7.length,m16.length,"xan flatmap")>t8.limits.maxArrayElements)throw new f2(`xan flatmap: output column limit exceeded (${t8.limits.maxArrayElements})`,"array_elements");let a14=[...r7,...m16.map(l12=>l12.alias)],d11=[],u15=new V9(t8,"xan flatmap");for(let l12 of o13){let f15=[],x23=1;for(let g13 of m16){u15.consumeWork();let y14=d8(l12,g13.ast,c18),w15=y14.length>0&&Array.isArray(y14[0])?y14[0]:y14;if(w15.length>t8.limits.maxArrayElements)throw new f2(`xan flatmap: expression result limit exceeded (${t8.limits.maxArrayElements})`,"array_elements");f15.push(w15),x23=Math.max(x23,w15.length)}for(let g13=0;g13<x23;g13++){u15.addRow(a14.length);let y14=W10(l12);for(let w15=0;w15<m16.length;w15++){let A13=f15[w15][g13]??null;j20(y14,m16[w15].alias,A13)}d11.push(y14)}}return{stdout:P16(a14,d11,t8),stderr:"",exitCode:0}}async function Ke5(e8,t8){let{cmdView:n10}=await Promise.resolve().then(()=>(init_xan_view_S4ZILLPU(),xan_view_S4ZILLPU_exports));return n10(e8,t8)}var require188,G12,D17,ee8,le9,mt5,dt4,St4,pt5,bt5,Jn2,Bn,init_chunk_PPHGMG47=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-PPHGMG47.js"(){init_chunk_MDE25PQK();init_chunk_H53EPEGD();init_chunk_FIMO5HLX();init_chunk_7GA3QWJJ();init_chunk_CHHWTPDH();init_chunk_U7UNEMLJ();init_chunk_DIWMSSQY();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();require188=createRequire187(import.meta.url),G12=class{input;pos=0;tokens=[];maxSourceLength;maxTokens;constructor(t8,n10={}){this.input=t8,this.maxSourceLength=n10.maxSourceLength??1024*1024,this.maxTokens=n10.maxTokens??1e5}tokenize(){if(this.input.length>this.maxSourceLength)throw new f2(`xan: expression length limit exceeded (${this.maxSourceLength})`,"string_length");for(;this.pos<this.input.length&&(this.skipWhitespace(),!(this.pos>=this.input.length));){let t8=this.nextToken();t8&&(this.assertTokenCapacity(),this.tokens.push(t8))}return this.assertTokenCapacity(),this.tokens.push({type:"eof",value:"",pos:this.pos}),this.tokens}assertTokenCapacity(){if(this.tokens.length>=this.maxTokens)throw new f2(`xan: expression token limit exceeded (${this.maxTokens})`,"array_elements")}skipWhitespace(){for(;this.pos<this.input.length;){let t8=this.input[this.pos];if(t8===" "||t8===" "||t8===`
1133
1133
  `||t8==="\r")this.pos++;else if(t8==="#")for(;this.pos<this.input.length&&this.input[this.pos]!==`
1134
1134
  `;)this.pos++;else break}}nextToken(){let t8=this.pos,n10=this.input[this.pos];if(n10>="0"&&n10<="9")return this.readNumber();if(n10==='"'||n10==="'"||n10==="`")return this.readString(n10);if(n10==="b"&&this.pos+1<this.input.length){let o13=this.input[this.pos+1];if(o13==='"'||o13==="'"||o13==="`")return this.pos++,this.readString(o13)}if(n10==="/"){let o13=this.tokens[this.tokens.length-1];return o13&&(o13.type==="int"||o13.type==="float"||o13.type==="string"||o13.type==="ident"||o13.type===")"||o13.type==="]")?this.input[this.pos+1]==="/"?(this.pos+=2,{type:"//",value:"//",pos:t8}):(this.pos++,{type:"/",value:"/",pos:t8}):this.readRegex()}if(this.match("not in"))return{type:"not in",value:"not in",pos:t8};if(this.match("=>"))return{type:"=>",value:"=>",pos:t8};if(this.match("**"))return{type:"**",value:"**",pos:t8};if(this.match("++"))return{type:"++",value:"++",pos:t8};if(this.match("//"))return{type:"//",value:"//",pos:t8};if(this.match("=="))return{type:"==",value:"==",pos:t8};if(this.match("!="))return{type:"!=",value:"!=",pos:t8};if(this.match("<="))return{type:"<=",value:"<=",pos:t8};if(this.match(">="))return{type:">=",value:">=",pos:t8};if(this.match("&&"))return{type:"&&",value:"&&",pos:t8};if(this.match("||"))return{type:"||",value:"||",pos:t8};let r7=new Map([["(","("],[")",")"],["[","["],["]","]"],["{","{"],["}","}"],[",",","],[":",":"],[";",";"],["+","+"],["-","-"],["*","*"],["%","%"],["<","<"],[">",">"],["!","!"],[".","."],["|","|"],["=","="]]).get(n10);if(r7!==void 0)return this.pos++,{type:r7,value:n10,pos:t8};if(this.isIdentStart(n10))return this.readIdentifier();throw new Error(`Unexpected character '${n10}' at position ${this.pos}`)}match(t8){if(this.input.slice(this.pos,this.pos+t8.length)===t8){if(/^[a-zA-Z]/.test(t8)){let n10=this.input[this.pos+t8.length];if(n10&&this.isIdentChar(n10))return!1}return this.pos+=t8.length,!0}return!1}isIdentStart(t8){return t8>="a"&&t8<="z"||t8>="A"&&t8<="Z"||t8==="_"}isIdentChar(t8){return this.isIdentStart(t8)||t8>="0"&&t8<="9"}readNumber(){let t8=this.pos,n10=!1,s10=!1;for(;this.pos<this.input.length;){let o13=this.input[this.pos];if(o13>="0"&&o13<="9")this.pos++;else if(o13==="_")this.pos++;else if(o13==="."&&!n10&&!s10)n10=!0,this.pos++;else if((o13==="e"||o13==="E")&&!s10)s10=!0,n10=!0,this.pos++,this.pos<this.input.length&&(this.input[this.pos]==="+"||this.input[this.pos]==="-")&&this.pos++;else break}let r7=this.input.slice(t8,this.pos).replace(/_/g,"");return{type:n10?"float":"int",value:r7,pos:t8}}readString(t8){let n10=this.pos;this.pos++;let s10="";for(;this.pos<this.input.length;){let r7=this.input[this.pos];if(r7===t8)return this.pos++,{type:"string",value:s10,pos:n10};if(r7==="\\"){if(this.pos++,this.pos<this.input.length){let o13=this.input[this.pos];switch(o13){case"n":s10+=`
1135
1135
  `;break;case"r":s10+="\r";break;case"t":s10+=" ";break;case"\\":s10+="\\";break;case'"':s10+='"';break;case"'":s10+="'";break;case"`":s10+="`";break;case"0":s10+="\0";break;default:s10+=o13}this.pos++}}else s10+=r7,this.pos++}throw new Error(`Unterminated string starting at position ${n10}`)}readRegex(){let t8=this.pos;this.pos++;let n10="",s10="";for(;this.pos<this.input.length;){let r7=this.input[this.pos];if(r7==="/"){for(this.pos++;this.pos<this.input.length&&this.input[this.pos]==="i";)s10+=this.input[this.pos],this.pos++;return{type:"regex",value:n10+(s10?`/${s10}`:""),pos:t8}}r7==="\\"?(n10+=r7,this.pos++,this.pos<this.input.length&&(n10+=this.input[this.pos],this.pos++)):(n10+=r7,this.pos++)}throw new Error(`Unterminated regex starting at position ${t8}`)}readIdentifier(){let t8=this.pos;for(;this.pos<this.input.length&&this.isIdentChar(this.input[this.pos]);)this.pos++;let n10=!1;this.pos<this.input.length&&this.input[this.pos]==="?"&&(n10=!0,this.pos++);let s10=this.input.slice(t8,n10?this.pos-1:this.pos);n10&&(s10+="?");let r7=new Map([["true","true"],["false","false"],["null","null"],["and","and"],["or","or"],["eq","eq"],["ne","ne"],["lt","lt"],["le","le"],["gt","gt"],["ge","ge"],["in","in"],["as","as"],["_","_"]]),o13=s10.replace(/\?$/,""),i22=r7.get(o13);return i22!==void 0&&!n10?{type:i22,value:o13,pos:t8}:{type:"ident",value:s10,pos:t8}}};D17={PIPE:1,OR:2,AND:3,EQUALITY:4,COMPARISON:5,ADDITIVE:6,MULTIPLICATIVE:7,POWER:8,UNARY:9,POSTFIX:10},ee8=class{pos=0;tokens;depth=0;operations=0;astNodes=0;limits;constructor(t8,n10={}){this.tokens=t8,this.limits={maxSourceLength:n10.maxSourceLength??1024*1024,maxTokens:n10.maxTokens??1e5,maxDepth:n10.maxDepth??100,maxOperations:n10.maxOperations??1e5,maxAstNodes:n10.maxAstNodes??1e5};let s10=0;for(let r7 of t8)this.useOperation(),r7.type==="("||r7.type==="["||r7.type==="{"?(s10++,s10>this.limits.maxDepth&&this.throwDepthLimit()):(r7.type===")"||r7.type==="]"||r7.type==="}")&&(s10=Math.max(0,s10-1))}parse(){let t8=this.parseExpr(0);if(this.peek().type!=="eof")throw new Error(`Unexpected token: ${this.peek().value}`);return t8}parseExpr(t8){return this.withDepth(()=>this.parseExprInner(t8))}parseExprInner(t8){let n10=this.parsePrefix();for(;;){let s10=this.peek(),r7=this.getInfixPrec(s10.type);if(r7<t8)break;n10=this.parseInfix(n10,r7)}return n10}useOperation(t8=1){if(t8>this.limits.maxOperations-this.operations)throw new f2(`xan: expression parser operation limit exceeded (${this.limits.maxOperations})`,"iterations");this.operations+=t8}withDepth(t8){this.depth>=this.limits.maxDepth&&this.throwDepthLimit(),this.depth++;try{return t8()}finally{this.depth--}}throwDepthLimit(){throw new f2(`xan: expression parser depth limit exceeded (${this.limits.maxDepth})`,"recursion")}addAstNode(){if(this.astNodes>=this.limits.maxAstNodes)throw new f2(`xan: expression AST node limit exceeded (${this.limits.maxAstNodes})`,"array_elements");this.astNodes++}parsePrefix(){let t8=this.peek();switch(t8.type){case"int":return this.advance(),{type:"int",value:Number.parseInt(t8.value,10)};case"float":return this.advance(),{type:"float",value:Number.parseFloat(t8.value)};case"string":return this.advance(),{type:"string",value:t8.value};case"regex":{this.advance();let n10=t8.value.split("/"),s10=n10.length>1?n10[n10.length-1]:"";return{type:"regex",pattern:n10.slice(0,-1).join("/")||t8.value,caseInsensitive:s10.includes("i")}}case"true":return this.advance(),{type:"bool",value:!0};case"false":return this.advance(),{type:"bool",value:!1};case"null":return this.advance(),{type:"null"};case"_":return this.advance(),{type:"underscore"};case"ident":{let n10=t8.value,s10=n10.endsWith("?"),r7=s10?n10.slice(0,-1):n10;if(this.advance(),this.peek().type==="(")return this.parseFunctionCall(r7);if(this.peek().type==="=>"){this.advance();let o13=this.parseExpr(0);return this.bindLambdaArgs({type:"lambda",params:[r7],body:o13},[r7])}return{type:"identifier",name:r7,unsure:s10}}case"(":{this.advance();let n10=this.pos;if(this.peek().type===")"){if(this.advance(),this.peek().type==="=>"){this.advance();let r7=this.parseExpr(0);return{type:"lambda",params:[],body:r7}}throw new Error("Empty parentheses not allowed")}if(this.peek().type==="ident"){let r7=[this.peek().value];this.advance();let o13=!0;for(;this.peek().type===",";)if(this.advance(),this.peek().type==="ident")r7.push(this.peek().value),this.advance();else{o13=!1;break}if(o13&&this.peek().type===")"&&this.peekAt(1).type==="=>"){this.advance(),this.advance();let i22=this.parseExpr(0);return this.bindLambdaArgs({type:"lambda",params:r7,body:i22},r7)}this.pos=n10}let s10=this.parseExpr(0);return this.expect(")"),s10}case"[":return this.parseList();case"{":return this.parseMap();case"-":{this.advance();let n10=this.parseExpr(D17.UNARY);return n10.type==="int"?{type:"int",value:-n10.value}:n10.type==="float"?{type:"float",value:-n10.value}:{type:"func",name:"neg",args:[{expr:n10}]}}case"!":return this.advance(),{type:"func",name:"not",args:[{expr:this.parseExpr(D17.UNARY)}]};default:throw new Error(`Unexpected token: ${t8.type} (${t8.value})`)}}parseFunctionCall(t8){this.expect("(");let n10=[];if(this.peek().type!==")")do{n10.length>0&&this.peek().type===","&&this.advance();let s10;if(this.peek().type==="ident"){let o13=this.peek().value,i22=this.pos+1;i22<this.tokens.length&&this.tokens[i22].type==="="&&(s10=o13,this.advance(),this.advance())}let r7=this.parseExpr(0);n10.push({name:s10,expr:r7})}while(this.peek().type===",");return this.expect(")"),{type:"func",name:t8.toLowerCase(),args:n10}}parseList(){this.expect("[");let t8=[];if(this.peek().type!=="]")do t8.length>0&&this.peek().type===","&&this.advance(),t8.push(this.parseExpr(0));while(this.peek().type===",");return this.expect("]"),{type:"list",elements:t8}}parseMap(){this.expect("{");let t8=[];if(this.peek().type!=="}")do{t8.length>0&&this.peek().type===","&&this.advance();let n10;if(this.peek().type==="ident")n10=this.peek().value,this.advance();else if(this.peek().type==="string")n10=this.peek().value,this.advance();else throw new Error(`Expected map key, got ${this.peek().type}`);this.expect(":");let s10=this.parseExpr(0);t8.push({key:n10,value:s10})}while(this.peek().type===",");return this.expect("}"),{type:"map",entries:t8}}parseInfix(t8,n10){let s10=this.peek(),o13=new Map([["+","add"],["-","sub"],["*","mul"],["/","div"],["//","idiv"],["%","mod"],["**","pow"],["++","concat"],["==","=="],["!=","!="],["<","<"],["<=","<="],[">",">"],[">=",">="],["eq","eq"],["ne","ne"],["lt","lt"],["le","le"],["gt","gt"],["ge","ge"],["&&","and"],["and","and"],["||","or"],["or","or"]]).get(s10.type);if(o13!==void 0){this.advance();let i22=this.parseExpr(n10+(this.isRightAssoc(s10.type)?0:1));return{type:"func",name:o13,args:[{expr:t8},{expr:i22}]}}if(s10.type==="|"){this.advance();let i22=this.parseExpr(n10);return this.handlePipe(t8,i22)}if(s10.type===".")return this.advance(),this.handleDot(t8);if(s10.type==="[")return this.advance(),this.handleIndexing(t8);if(s10.type==="in")return this.advance(),{type:"func",name:"contains",args:[{expr:this.parseExpr(n10+1)},{expr:t8}]};if(s10.type==="not in")return this.advance(),{type:"func",name:"not",args:[{expr:{type:"func",name:"contains",args:[{expr:this.parseExpr(n10+1)},{expr:t8}]}}]};throw new Error(`Unexpected infix token: ${s10.type}`)}handlePipe(t8,n10){if(n10.type==="identifier")return{type:"func",name:n10.name,args:[{expr:t8}]};if(n10.type==="func"){let s10=this.countUnderscores(n10);return s10===0?n10:s10===1?this.fillUnderscore(n10,t8):{type:"pipeline",exprs:[t8,n10]}}return this.countUnderscores(n10)===1?this.fillUnderscore(n10,t8):n10}handleDot(t8){let n10=this.peek();if(n10.type==="ident"){let s10=n10.value;if(this.advance(),this.peek().type==="("){let r7=this.parseFunctionCall(s10);return r7.type==="func"&&r7.args.unshift({expr:t8}),r7}return{type:"func",name:"get",args:[{expr:t8},{expr:{type:"string",value:s10}}]}}if(n10.type==="int"){let s10=Number.parseInt(n10.value,10);return this.advance(),{type:"func",name:"get",args:[{expr:t8},{expr:{type:"int",value:s10}}]}}if(n10.type==="string"){let s10=n10.value;return this.advance(),{type:"func",name:"get",args:[{expr:t8},{expr:{type:"string",value:s10}}]}}throw new Error(`Expected identifier, number, or string after dot, got ${n10.type}`)}handleIndexing(t8){if(this.peek().type===":"){if(this.advance(),this.peek().type==="]")return this.advance(),{type:"func",name:"slice",args:[{expr:t8}]};let s10=this.parseExpr(0);return this.expect("]"),{type:"func",name:"slice",args:[{expr:t8},{expr:{type:"int",value:0}},{expr:s10}]}}let n10=this.parseExpr(0);if(this.peek().type===":"){if(this.advance(),this.peek().type==="]")return this.advance(),{type:"func",name:"slice",args:[{expr:t8},{expr:n10}]};let s10=this.parseExpr(0);return this.expect("]"),{type:"func",name:"slice",args:[{expr:t8},{expr:n10},{expr:s10}]}}return this.expect("]"),{type:"func",name:"get",args:[{expr:t8},{expr:n10}]}}countUnderscores(t8){let n10=[t8],s10=0;for(;n10.length>0;){this.useOperation();let r7=n10.pop();if(!r7)break;if(r7.type==="underscore")s10++;else if(r7.type==="func")for(let o13 of r7.args)n10.push(o13.expr);else if(r7.type==="list")n10.push(...r7.elements);else if(r7.type==="map")for(let o13 of r7.entries)n10.push(o13.value);if(n10.length>this.limits.maxAstNodes)throw new f2(`xan: expression AST node limit exceeded (${this.limits.maxAstNodes})`,"array_elements")}return s10}fillUnderscore(t8,n10){return this.withDepth(()=>this.fillUnderscoreInner(t8,n10))}fillUnderscoreInner(t8,n10){return this.useOperation(),t8.type==="underscore"?n10:t8.type==="func"?{...t8,args:t8.args.map(s10=>({...s10,expr:this.fillUnderscore(s10.expr,n10)}))}:t8.type==="list"?{...t8,elements:t8.elements.map(s10=>this.fillUnderscore(s10,n10))}:t8.type==="map"?{...t8,entries:t8.entries.map(s10=>({...s10,value:this.fillUnderscore(s10.value,n10)}))}:t8}bindLambdaArgs(t8,n10){return{...t8,body:this.bindLambdaArgsInExpr(t8.body,n10)}}bindLambdaArgsInExpr(t8,n10){return this.withDepth(()=>this.bindLambdaArgsInExprInner(t8,n10))}bindLambdaArgsInExprInner(t8,n10){return this.useOperation(),t8.type==="identifier"&&n10.includes(t8.name)?{type:"lambdaBinding",name:t8.name}:t8.type==="func"?{...t8,args:t8.args.map(s10=>({...s10,expr:this.bindLambdaArgsInExpr(s10.expr,n10)}))}:t8.type==="list"?{...t8,elements:t8.elements.map(s10=>this.bindLambdaArgsInExpr(s10,n10))}:t8.type==="map"?{...t8,entries:t8.entries.map(s10=>({...s10,value:this.bindLambdaArgsInExpr(s10.value,n10)}))}:t8}getInfixPrec(t8){switch(t8){case"|":return D17.PIPE;case"||":case"or":return D17.OR;case"&&":case"and":return D17.AND;case"==":case"!=":case"eq":case"ne":return D17.EQUALITY;case"<":case"<=":case">":case">=":case"lt":case"le":case"gt":case"ge":case"in":case"not in":return D17.COMPARISON;case"+":case"-":case"++":return D17.ADDITIVE;case"*":case"/":case"//":case"%":return D17.MULTIPLICATIVE;case"**":return D17.POWER;case".":case"[":return D17.POSTFIX;default:return-1}}isRightAssoc(t8){return t8==="**"}peek(){return this.tokens[this.pos]||{type:"eof",value:"",pos:0}}peekAt(t8){return this.tokens[this.pos+t8]||{type:"eof",value:"",pos:0}}advance(){return this.useOperation(),this.addAstNode(),this.tokens[this.pos++]}expect(t8){let n10=this.peek();if(n10.type!==t8)throw new Error(`Expected ${t8}, got ${n10.type}`);return this.advance()}};le9={add:e8=>L19("+",e8[0],e8[1]),sub:e8=>L19("-",e8[0],e8[1]),mul:e8=>L19("*",e8[0],e8[1]),div:e8=>L19("/",e8[0],e8[1]),mod:e8=>L19("%",e8[0],e8[1]),idiv:e8=>O17("floor",[L19("/",e8[0],e8[1])]),pow:e8=>R20("pow",e8),neg:e8=>({type:"UnaryOp",op:"-",operand:e8[0]}),"==":e8=>L19("==",e8[0],e8[1]),"!=":e8=>L19("!=",e8[0],e8[1]),"<":e8=>L19("<",e8[0],e8[1]),"<=":e8=>L19("<=",e8[0],e8[1]),">":e8=>L19(">",e8[0],e8[1]),">=":e8=>L19(">=",e8[0],e8[1]),eq:e8=>L19("==",M19(e8[0]),M19(e8[1])),ne:e8=>L19("!=",M19(e8[0]),M19(e8[1])),lt:e8=>L19("<",M19(e8[0]),M19(e8[1])),le:e8=>L19("<=",M19(e8[0]),M19(e8[1])),gt:e8=>L19(">",M19(e8[0]),M19(e8[1])),ge:e8=>L19(">=",M19(e8[0]),M19(e8[1])),and:e8=>L19("and",e8[0],e8[1]),or:e8=>L19("or",e8[0],e8[1]),not:e8=>({type:"UnaryOp",op:"not",operand:e8[0]}),len:e8=>R20("length",e8),length:e8=>R20("length",e8),upper:e8=>R20("ascii_upcase",e8),lower:e8=>R20("ascii_downcase",e8),trim:e8=>R20("trim",e8),ltrim:e8=>e8.length===0?O17("ltrimstr",[{type:"Literal",value:" "}]):{type:"Pipe",left:e8[0],right:O17("ltrimstr",[{type:"Literal",value:" "}])},rtrim:e8=>e8.length===0?O17("rtrimstr",[{type:"Literal",value:" "}]):{type:"Pipe",left:e8[0],right:O17("rtrimstr",[{type:"Literal",value:" "}])},split:e8=>R20("split",e8),join:e8=>e8.length===1?O17("join",[{type:"Literal",value:""}]):R20("join",e8),concat:e8=>L19("+",e8[0],e8[1]),startswith:e8=>R20("startswith",e8),endswith:e8=>R20("endswith",e8),contains:e8=>R20("contains",e8),replace:e8=>R20("gsub",e8),substr:e8=>e8.length===2?{type:"Slice",base:e8[0],start:e8[1]}:{type:"Slice",base:e8[0],start:e8[1],end:L19("+",e8[1],e8[2])},abs:e8=>R20("fabs",e8),floor:e8=>R20("floor",e8),ceil:e8=>R20("ceil",e8),round:e8=>R20("round",e8),sqrt:e8=>R20("sqrt",e8),log:e8=>R20("log",e8),log10:e8=>R20("log10",e8),log2:e8=>R20("log2",e8),exp:e8=>R20("exp",e8),sin:e8=>R20("sin",e8),cos:e8=>R20("cos",e8),tan:e8=>R20("tan",e8),asin:e8=>R20("asin",e8),acos:e8=>R20("acos",e8),atan:e8=>R20("atan",e8),min:e8=>R20("min",e8),max:e8=>R20("max",e8),first:e8=>e8.length===0?{type:"Index",index:{type:"Literal",value:0}}:{type:"Index",index:{type:"Literal",value:0},base:e8[0]},last:e8=>e8.length===0?{type:"Index",index:{type:"Literal",value:-1}}:{type:"Index",index:{type:"Literal",value:-1},base:e8[0]},get:e8=>e8.length===1?{type:"Index",index:e8[0]}:{type:"Index",index:e8[1],base:e8[0]},slice:e8=>e8.length===1?{type:"Slice",base:e8[0]}:e8.length===2?{type:"Slice",base:e8[0],start:e8[1]}:{type:"Slice",base:e8[0],start:e8[1],end:e8[2]},keys:"keys",values:"values",entries:e8=>O17("to_entries",e8),from_entries:"from_entries",reverse:"reverse",sort:"sort",sort_by:"sort_by",group_by:"group_by",unique:"unique",unique_by:"unique_by",flatten:"flatten",map:e8=>({type:"Pipe",left:e8[0],right:{type:"Array",elements:e8[1]}}),select:e8=>O17("select",e8),empty:()=>O17("empty",[]),count:()=>O17("length",[]),sum:e8=>e8.length===0?O17("add",[]):{type:"Pipe",left:{type:"Array",elements:e8[0]},right:O17("add",[])},mean:e8=>e8.length===0?{type:"Pipe",left:{type:"Identity"},right:L19("/",O17("add",[]),O17("length",[]))}:{type:"Pipe",left:{type:"Array",elements:e8[0]},right:L19("/",O17("add",[]),O17("length",[]))},avg:e8=>e8.length===0?{type:"Pipe",left:{type:"Identity"},right:L19("/",O17("add",[]),O17("length",[]))}:{type:"Pipe",left:{type:"Array",elements:e8[0]},right:L19("/",O17("add",[]),O17("length",[]))},type:"type",isnull:e8=>e8.length===0?L19("==",{type:"Identity"},{type:"Literal",value:null}):L19("==",e8[0],{type:"Literal",value:null}),isempty:e8=>e8.length===0?L19("==",{type:"Identity"},{type:"Literal",value:""}):L19("==",e8[0],{type:"Literal",value:""}),tonumber:e8=>e8.length===0?O17("tonumber",[]):O17("tonumber",e8),tostring:e8=>e8.length===0?O17("tostring",[]):O17("tostring",e8),if:e8=>st7(e8[0],e8[1],e8[2]),coalesce:e8=>{if(e8.length===0)return{type:"Literal",value:null};if(e8.length===1)return e8[0];let t8=e8[e8.length-1];for(let n10=e8.length-2;n10>=0;n10--){let s10=e8[n10],r7=L19("and",L19("!=",s10,{type:"Literal",value:null}),L19("!=",s10,{type:"Literal",value:""}));t8=st7(r7,s10,t8)}return t8},index:()=>({type:"Field",name:"_row_index"}),now:()=>O17("now",[]),fmt:e8=>O17("tostring",e8),format:e8=>O17("tostring",e8)};Object.setPrototypeOf(le9,null);mt5="then";dt4=new Set(["fuzzy-join","glob","hist","input","parallel","plot","progress","range","scrape","tokenize","union-find"]),St4=new Set(["agg","behead","cat","count","dedup","drop","enum","explode","f","filter","fixlengths","flatmap","flatten","fmt","frequency","freq","from","groupby","head","headers","implode","join","map","merge","partition","pivot","rename","reverse","sample","search","select","shuffle","slice","sort","split","stats","tail","to","top","transform","transpose","view",...dt4]),pt5={name:"xan",summary:"CSV toolkit for data manipulation",usage:"xan <COMMAND> [OPTIONS] [FILE]",description:`xan is a collection of commands for working with CSV data.
@@ -1210,11 +1210,11 @@ EXAMPLES:
1210
1210
  `,exitCode:1};switch(n10){case"headers":return we9(s10,t8);case"count":return ve8(s10,t8);case"head":return Se6(s10,t8);case"tail":return be7(s10,t8);case"slice":return Ce11(s10,t8);case"reverse":return ke8(s10,t8);case"behead":return ze6(s10,t8);case"sample":return qe6(s10,t8);case"select":return he6(s10,t8);case"drop":return ge9(s10,t8);case"rename":return xe10(s10,t8);case"enum":return ye7(s10,t8);case"filter":return $e6(s10,t8);case"search":return Be6(s10,t8);case"sort":return Fe8(s10,t8);case"dedup":return Te5(s10,t8);case"top":return Me4(s10,t8);case"map":return Pe4(s10,t8);case"transform":return De5(s10,t8);case"explode":return _e5(s10,t8);case"implode":return We9(s10,t8);case"flatmap":return He7(s10,t8);case"pivot":return Ve7(s10,t8);case"agg":return pe4(s10,t8);case"groupby":return de9(s10,t8);case"frequency":case"freq":return me9(s10,t8);case"stats":return fe6(s10,t8);case"cat":return Je6(s10,t8);case"join":return je6(s10,t8);case"merge":return Ue4(s10,t8);case"split":return Ae5(s10,t8);case"partition":return Le8(s10,t8);case"to":return Oe8(s10,t8);case"from":return Re6(s10,t8);case"transpose":return Ee7(s10,t8);case"shuffle":return Ie6(s10,t8);case"fixlengths":return Ne6(s10,t8);case"view":return J11(s10,t8);case"flatten":case"f":return D16(s10,t8);case"fmt":return Ke5(s10,t8);default:return St4.has(n10)?{stdout:"",stderr:`xan ${n10}: not yet implemented
1211
1211
  `,exitCode:1}:{stdout:"",stderr:`xan: unknown command '${n10}'
1212
1212
  Run 'xan --help' for usage.
1213
- `,exitCode:1}}}},Bn={name:"xan",flags:[],stdinType:"text",needsArgs:!0}}});var xan_7R3I2DJO_exports={};__export(xan_7R3I2DJO_exports,{flagsForFuzzing:()=>Bn,xanCommand:()=>Jn2});import{createRequire as createRequire188}from"node:module";var require189,init_xan_7R3I2DJO=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/xan-7R3I2DJO.js"(){init_chunk_PPHGMG47();init_chunk_MDE25PQK();init_chunk_6RK4AAB7();init_chunk_H53EPEGD();init_chunk_FIMO5HLX();init_chunk_DLL7UR66();init_chunk_CHWP6GRK();init_chunk_7GA3QWJJ();init_chunk_CHHWTPDH();init_chunk_U7UNEMLJ();init_chunk_CBM6J4AL();init_chunk_6D3WD6YU();init_chunk_DIWMSSQY();init_chunk_STHBFACM();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require189=createRequire188(import.meta.url)}});var sqlite3_7MBPFI6W_exports={};__export(sqlite3_7MBPFI6W_exports,{_internals:()=>_internals,flagsForFuzzing:()=>flagsForFuzzing2,sqlite3Command:()=>sqlite3Command});var unavailable2,_internals,flagsForFuzzing2,sqlite3Command,init_sqlite3_7MBPFI6W=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/sqlite3-7MBPFI6W.js"(){unavailable2=name=>({name,async execute(){return{stdout:"",stderr:`${name}: not available in this shell
1214
- `,exitCode:127}}}),_internals=()=>{},flagsForFuzzing2=()=>{},sqlite3Command=unavailable2("sqlite3")}});var python3_SDFCGIU4_exports={};__export(python3_SDFCGIU4_exports,{_resetExecutionQueue:()=>_resetExecutionQueue,python3Command:()=>python3Command,pythonCommand:()=>pythonCommand});var unavailable3,_resetExecutionQueue,python3Command,pythonCommand,init_python3_SDFCGIU4=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/python3-SDFCGIU4.js"(){unavailable3=name=>({name,async execute(){return{stdout:"",stderr:`${name}: not available in this shell
1215
- `,exitCode:127}}}),_resetExecutionQueue=()=>{},python3Command=unavailable3("python3"),pythonCommand=unavailable3("python")}});var js_exec_NDLXDUBN_exports={};__export(js_exec_NDLXDUBN_exports,{jsExecCommand:()=>jsExecCommand,nodeStubCommand:()=>nodeStubCommand});var unavailable4,jsExecCommand,nodeStubCommand,init_js_exec_NDLXDUBN=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/js-exec-NDLXDUBN.js"(){unavailable4=name=>({name,async execute(){return{stdout:"",stderr:`${name}: not available in this shell
1216
- `,exitCode:127}}}),jsExecCommand=unavailable4("js-exec"),nodeStubCommand=unavailable4("node")}});var curl_XCX2ZQEA_exports={};__export(curl_XCX2ZQEA_exports,{curlCommand:()=>curlCommand});var unavailable5,curlCommand,init_curl_XCX2ZQEA=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/curl-XCX2ZQEA.js"(){unavailable5=name=>({name,async execute(){return{stdout:"",stderr:`${name}: not available in this shell
1217
- `,exitCode:127}}}),curlCommand=unavailable5("curl")}});import{createRequire as createRequire189}from"node:module";var require190,init_chunk_VOQZ5TSL=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-VOQZ5TSL.js"(){init_chunk_43OP7DFL();require190=createRequire189(import.meta.url)}});var require_sql=__commonJS({"unavailable-package:sql.js"(){throw new Error("sql.js is not available in this shell.")}});import{createRequire as createRequire190}from"node:module";var import_sql,require191,Fe9,init_chunk_BM3X75NC=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-BM3X75NC.js"(){init_chunk_VOQZ5TSL();init_chunk_CHWP6GRK();init_chunk_CBM6J4AL();init_chunk_2WBUTDF5();init_chunk_GN6CQ3J4();init_chunk_W5DWRFSU();init_chunk_FOCWZZDE();init_chunk_QAYAQNCG();import_sql=__toESM(require_sql(),1),require191=createRequire190(import.meta.url),Fe9={name:"sqlite3",flags:[],needsArgs:!0}}});var require_turndown=__commonJS({"unavailable-package:turndown"(){throw new Error("turndown is not available in this shell.")}});import{createRequire as createRequire191}from"node:module";var import_turndown,require192,W11,init_chunk_HDOXCDVK=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/chunk-HDOXCDVK.js"(){init_chunk_U7UNEMLJ();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();import_turndown=__toESM(require_turndown(),1),require192=createRequire191(import.meta.url),W11={name:"html-to-markdown",flags:[],stdinType:"text"}}});var flag_coverage_EDO3VM43_exports={};__export(flag_coverage_EDO3VM43_exports,{emitFlagCoverage:()=>ta});import{createRequire as createRequire192}from"node:module";function Dr2(){return Hr2}function ta(r7,o13,Gr3){let a14=Er.get(o13);if(!(!a14||a14.size===0))for(let s10 of Gr3)a14.has(s10)&&r7.hit(`cmd:flag:${o13}:${s10}`)}var require193,Hr2,Er,init_flag_coverage_EDO3VM43=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0/node_modules/just-bash/dist/bundle/chunks/flag-coverage-EDO3VM43.js"(){init_chunk_XHFP44Y4();init_chunk_MHZF23KB();init_chunk_5UTZMNI5();init_chunk_WZQNMEQW();init_chunk_RCRHDT54();init_chunk_PPHGMG47();init_chunk_MDE25PQK();init_chunk_6RK4AAB7();init_chunk_BM3X75NC();init_chunk_VOQZ5TSL();init_chunk_OQ7C4FYO();init_chunk_Y32R7EZP();init_chunk_HDOXCDVK();init_chunk_NXBUT5V2();init_chunk_2SMD2AUA();init_chunk_LI6PTSPD();init_chunk_SBBYKIYU();init_chunk_4MZPEZTU();init_chunk_5ATEFZLC();init_chunk_4GEHRJMD();init_chunk_3KWM4FFA();init_chunk_SX2HC7SO();init_chunk_VWUMR4IC();init_chunk_RIIUVFUS();init_chunk_TUQG2YRH();init_chunk_ANCQ4SCV();init_chunk_FT6ODGOU();init_chunk_2KNTH3KH();init_chunk_EQQGPAXI();init_chunk_HDRAUQK2();init_chunk_GLAFXDZC();init_chunk_7EUWTCWK();init_chunk_EJFBIRMD();init_chunk_D5ZJISRS();init_chunk_H53EPEGD();init_chunk_65LVAUWW();init_chunk_B6OSJB22();init_chunk_YUFU7O6I();init_chunk_ZDPFA4L3();init_chunk_FX4RBUYU();init_chunk_7AISL3XV();init_chunk_NRLE7KYI();init_chunk_A4R2GWRF();init_chunk_FHC24QSK();init_chunk_UIJUTQPH();init_chunk_Y62SXZKJ();init_chunk_PPDMRIJ7();init_chunk_2VWG4LDT();init_chunk_AFFAMSJT();init_chunk_5QWGR2WA();init_chunk_VDJ53ESK();init_chunk_B5Z5HTFY();init_chunk_LSLPJOYM();init_chunk_6R4OQQWP();init_chunk_B3NGH6KE();init_chunk_6WGIZV3E();init_chunk_DPZVOEUP();init_chunk_UK2K3DHN();init_chunk_7M672HB6();init_chunk_LVDUF74R();init_chunk_5VCAQBXL();init_chunk_HIQEVPXM();init_chunk_72JHTO7E();init_chunk_CGI6V2HW();init_chunk_P5BOIHWV();init_chunk_R6ZGLVXI();init_chunk_TDD4NFYE();init_chunk_EGTVQWAP();init_chunk_OB46N7Q7();init_chunk_EXXOLIVE();init_chunk_FIMO5HLX();init_chunk_DIRWTBKE();init_chunk_W5J5ADJF();init_chunk_4IMUNIUJ();init_chunk_FZRQOL3C();init_chunk_N6W6FM4N();init_chunk_H42OAUJL();init_chunk_VGCXKMXN();init_chunk_W2Z6LYL6();init_chunk_T4INBNHX();init_chunk_SHKOQWO4();init_chunk_M4LDT7V7();init_chunk_SRB6FXRH();init_chunk_43OP7DFL();init_chunk_XZ34OGNM();init_chunk_J2OBOJ64();init_chunk_L2UW7DWF();init_chunk_DLL7UR66();init_chunk_CHWP6GRK();init_chunk_7GA3QWJJ();init_chunk_AGH5UJJI();init_chunk_MHDZERK4();init_chunk_CHHWTPDH();init_chunk_U7UNEMLJ();init_chunk_CBM6J4AL();init_chunk_4AKAIZPW();init_chunk_UHHCL65P();init_chunk_6D3WD6YU();init_chunk_5BMPT6SF();init_chunk_DIWMSSQY();init_chunk_STHBFACM();init_chunk_SQX6WQXB();init_chunk_3HDTNUL3();init_chunk_RK2WBVP4();init_chunk_YZH7FUSY();init_chunk_2WBUTDF5();init_chunk_YUSFCOM7();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_W5DWRFSU();init_chunk_FOCWZZDE();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require193=createRequire192(import.meta.url),Hr2=[f8,Q2,fe,yt,h8,G4,S5,b11,$7,q3,j6,$8,k6,f10,F6,g4,c9,j7,P5,Ie,Oe,Se,ot2,Ve,Ni,Y5,k8,L7,$11,O11,W3,y8,L9,C7,T8,T9,F12,Y6,j13,P9,b17,st2,h12,c13,L13,E13,C9,F13,p11,h13,u12,Z5,s6,r6,w12,o9,F15,P11,ye5,W6,J7,z12,E16,L15,k13,A9,C11,o10,m13,m14,Hn,W11,p14,v12,f14,s9,n9,W8,ue4,ae8,de7,vr,Pb,Bn,Fe9];Er=new Map;for(let r7 of Dr2())Er.set(r7.name,new Set(r7.flags.map(o13=>o13.flag)))}});var require_guarded_fetch=__commonJS({"unavailable-package:guarded-fetch"(){throw new Error("guarded-fetch is not available in this shell.")}});import{createRequire as createRequire193}from"node:module";import{createRequire}from"node:module";var require2=createRequire(import.meta.url),u=new TextEncoder,a=new TextDecoder;function o(r7,i22){if(r7 instanceof Uint8Array)return r7;if(i22==="base64")return Uint8Array.from(atob(r7),t8=>t8.charCodeAt(0));if(i22==="hex"){let t8=new Uint8Array(r7.length/2);for(let n10=0;n10<r7.length;n10+=2)t8[n10/2]=parseInt(r7.slice(n10,n10+2),16);return t8}if(i22==="binary"||i22==="latin1"){if(r7.length<=65536)return Uint8Array.from(r7,e8=>e8.charCodeAt(0));let n10=new Uint8Array(r7.length);for(let e8=0;e8<r7.length;e8++)n10[e8]=r7.charCodeAt(e8);return n10}return u.encode(r7)}function h(r7,i22){if(i22==="base64"){if(typeof Buffer<"u")return Buffer.from(r7).toString("base64");let t8=8192,n10="";for(let e8=0;e8<r7.length;e8+=t8){let f15=r7.subarray(e8,e8+t8);n10+=String.fromCharCode(...f15)}return btoa(n10)}if(i22==="hex")return Array.from(r7).map(t8=>t8.toString(16).padStart(2,"0")).join("");if(i22==="binary"||i22==="latin1"){if(typeof Buffer<"u")return Buffer.from(r7).toString(i22);let t8=8192;if(r7.length<=t8)return String.fromCharCode(...r7);let n10="";for(let e8=0;e8<r7.length;e8+=t8){let f15=r7.subarray(e8,e8+t8);n10+=String.fromCharCode(...f15)}return n10}return a.decode(r7)}function l(r7){if(r7!=null)return typeof r7=="string"?r7:r7.encoding??void 0}init_chunk_SRB6FXRH();init_chunk_43OP7DFL();init_chunk_XZ34OGNM();init_chunk_J2OBOJ64();init_chunk_L2UW7DWF();init_chunk_DLL7UR66();init_chunk_CHWP6GRK();init_chunk_7GA3QWJJ();init_chunk_CBM6J4AL();init_chunk_6D3WD6YU();init_chunk_DIWMSSQY();init_chunk_STHBFACM();init_chunk_RK2WBVP4();init_chunk_YUSFCOM7();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_W5DWRFSU();init_chunk_FOCWZZDE();init_chunk_NCUTH6QL();var require194=createRequire193(import.meta.url),En=[{name:"echo",load:async()=>(await Promise.resolve().then(()=>(init_echo_PLLZYM2L(),echo_PLLZYM2L_exports))).echoCommand},{name:"cat",load:async()=>(await Promise.resolve().then(()=>(init_cat_54BXBS6X(),cat_54BXBS6X_exports))).catCommand},{name:"printf",load:async()=>(await Promise.resolve().then(()=>(init_printf_V42QCPHL(),printf_V42QCPHL_exports))).printfCommand},{name:"ls",load:async()=>(await Promise.resolve().then(()=>(init_ls_MQTYWW4T(),ls_MQTYWW4T_exports))).lsCommand},{name:"mkdir",load:async()=>(await Promise.resolve().then(()=>(init_mkdir_4A5W3RXH(),mkdir_4A5W3RXH_exports))).mkdirCommand},{name:"mktemp",load:async()=>(await Promise.resolve().then(()=>(init_mktemp_XKIE5N3X(),mktemp_XKIE5N3X_exports))).mktempCommand},{name:"rmdir",load:async()=>(await Promise.resolve().then(()=>(init_rmdir_OGSEXEF4(),rmdir_OGSEXEF4_exports))).rmdirCommand},{name:"touch",load:async()=>(await Promise.resolve().then(()=>(init_touch_W4DF6Z4T(),touch_W4DF6Z4T_exports))).touchCommand},{name:"rm",load:async()=>(await Promise.resolve().then(()=>(init_rm_3XUUYAXQ(),rm_3XUUYAXQ_exports))).rmCommand},{name:"cp",load:async()=>(await Promise.resolve().then(()=>(init_cp_LTFB4EUA(),cp_LTFB4EUA_exports))).cpCommand},{name:"mv",load:async()=>(await Promise.resolve().then(()=>(init_mv_ZPIATQJL(),mv_ZPIATQJL_exports))).mvCommand},{name:"ln",load:async()=>(await Promise.resolve().then(()=>(init_ln_OPY2ZVGQ(),ln_OPY2ZVGQ_exports))).lnCommand},{name:"chmod",load:async()=>(await Promise.resolve().then(()=>(init_chmod_4OPV4QKK(),chmod_4OPV4QKK_exports))).chmodCommand},{name:"pwd",load:async()=>(await Promise.resolve().then(()=>(init_pwd_76BPYV5F(),pwd_76BPYV5F_exports))).pwdCommand},{name:"readlink",load:async()=>(await Promise.resolve().then(()=>(init_readlink_YNNS6F7K(),readlink_YNNS6F7K_exports))).readlinkCommand},{name:"head",load:async()=>(await Promise.resolve().then(()=>(init_head_J6RVJFRS(),head_J6RVJFRS_exports))).headCommand},{name:"tail",load:async()=>(await Promise.resolve().then(()=>(init_tail_UGFWX3YY(),tail_UGFWX3YY_exports))).tailCommand},{name:"wc",load:async()=>(await Promise.resolve().then(()=>(init_wc_RUR7HE5O(),wc_RUR7HE5O_exports))).wcCommand},{name:"stat",load:async()=>(await Promise.resolve().then(()=>(init_stat_YLVJ4L67(),stat_YLVJ4L67_exports))).statCommand},{name:"grep",load:async()=>(await Promise.resolve().then(()=>(init_grep_OZCR76FT(),grep_OZCR76FT_exports))).grepCommand},{name:"fgrep",load:async()=>(await Promise.resolve().then(()=>(init_grep_OZCR76FT(),grep_OZCR76FT_exports))).fgrepCommand},{name:"egrep",load:async()=>(await Promise.resolve().then(()=>(init_grep_OZCR76FT(),grep_OZCR76FT_exports))).egrepCommand},{name:"rg",load:async()=>(await Promise.resolve().then(()=>(init_rg_F4SX2PHI(),rg_F4SX2PHI_exports))).rgCommand},{name:"sed",load:async()=>(await Promise.resolve().then(()=>(init_sed_MBB5SXGD(),sed_MBB5SXGD_exports))).sedCommand},{name:"awk",load:async()=>(await Promise.resolve().then(()=>(init_awk2_V7KYQWCD(),awk2_V7KYQWCD_exports))).awkCommand2},{name:"sort",load:async()=>(await Promise.resolve().then(()=>(init_sort_PV2NEQHF(),sort_PV2NEQHF_exports))).sortCommand},{name:"uniq",load:async()=>(await Promise.resolve().then(()=>(init_uniq_OVOW532K(),uniq_OVOW532K_exports))).uniqCommand},{name:"comm",load:async()=>(await Promise.resolve().then(()=>(init_comm_DTWKU2MC(),comm_DTWKU2MC_exports))).commCommand},{name:"cut",load:async()=>(await Promise.resolve().then(()=>(init_cut_IRSHL3BB(),cut_IRSHL3BB_exports))).cutCommand},{name:"paste",load:async()=>(await Promise.resolve().then(()=>(init_paste_U57ZU47S(),paste_U57ZU47S_exports))).pasteCommand},{name:"tr",load:async()=>(await Promise.resolve().then(()=>(init_tr_4NGL47UU(),tr_4NGL47UU_exports))).trCommand},{name:"rev",load:async()=>(await Promise.resolve().then(()=>(init_rev_EPOS3MFH(),rev_EPOS3MFH_exports))).rev},{name:"nl",load:async()=>(await Promise.resolve().then(()=>(init_nl_RFXH2GNX(),nl_RFXH2GNX_exports))).nl},{name:"fold",load:async()=>(await Promise.resolve().then(()=>(init_fold_QJBPHRFJ(),fold_QJBPHRFJ_exports))).fold},{name:"expand",load:async()=>(await Promise.resolve().then(()=>(init_expand_2BPPGGSM(),expand_2BPPGGSM_exports))).expand},{name:"unexpand",load:async()=>(await Promise.resolve().then(()=>(init_unexpand_YD5BWFH4(),unexpand_YD5BWFH4_exports))).unexpand},{name:"strings",load:async()=>(await Promise.resolve().then(()=>(init_strings_WTD7Q2EF(),strings_WTD7Q2EF_exports))).strings},{name:"split",load:async()=>(await Promise.resolve().then(()=>(init_split_6R2TSQY6(),split_6R2TSQY6_exports))).split},{name:"column",load:async()=>(await Promise.resolve().then(()=>(init_column_F5JDBRV6(),column_F5JDBRV6_exports))).column},{name:"join",load:async()=>(await Promise.resolve().then(()=>(init_join_KQ4Z5OD4(),join_KQ4Z5OD4_exports))).join},{name:"tee",load:async()=>(await Promise.resolve().then(()=>(init_tee_OOWSWHRQ(),tee_OOWSWHRQ_exports))).teeCommand},{name:"find",load:async()=>(await Promise.resolve().then(()=>(init_find_JTXDH3MR(),find_JTXDH3MR_exports))).findCommand},{name:"basename",load:async()=>(await Promise.resolve().then(()=>(init_basename_SJZQ5W65(),basename_SJZQ5W65_exports))).basenameCommand},{name:"dirname",load:async()=>(await Promise.resolve().then(()=>(init_dirname_Z2ZMOOW2(),dirname_Z2ZMOOW2_exports))).dirnameCommand},{name:"tree",load:async()=>(await Promise.resolve().then(()=>(init_tree_7OOL2MH6(),tree_7OOL2MH6_exports))).treeCommand},{name:"du",load:async()=>(await Promise.resolve().then(()=>(init_du_DOWSRLXR(),du_DOWSRLXR_exports))).duCommand},{name:"env",load:async()=>(await Promise.resolve().then(()=>(init_env_VUUMB47B(),env_VUUMB47B_exports))).envCommand},{name:"printenv",load:async()=>(await Promise.resolve().then(()=>(init_env_VUUMB47B(),env_VUUMB47B_exports))).printenvCommand},{name:"alias",load:async()=>(await Promise.resolve().then(()=>(init_alias_T5TO5GWK(),alias_T5TO5GWK_exports))).aliasCommand},{name:"unalias",load:async()=>(await Promise.resolve().then(()=>(init_alias_T5TO5GWK(),alias_T5TO5GWK_exports))).unaliasCommand},{name:"history",load:async()=>(await Promise.resolve().then(()=>(init_history_3N762S3K(),history_3N762S3K_exports))).historyCommand},{name:"xargs",load:async()=>(await Promise.resolve().then(()=>(init_xargs_L7TJHOJT(),xargs_L7TJHOJT_exports))).xargsCommand},{name:"true",load:async()=>(await Promise.resolve().then(()=>(init_true_QUBPEGGU(),true_QUBPEGGU_exports))).trueCommand},{name:"false",load:async()=>(await Promise.resolve().then(()=>(init_true_QUBPEGGU(),true_QUBPEGGU_exports))).falseCommand},{name:"yes",load:async()=>(await Promise.resolve().then(()=>(init_yes_I7SAR7XX(),yes_I7SAR7XX_exports))).yesCommand},{name:"clear",load:async()=>(await Promise.resolve().then(()=>(init_clear_KPIUNI6K(),clear_KPIUNI6K_exports))).clearCommand},{name:"bash",load:async()=>(await Promise.resolve().then(()=>(init_bash_HIEWVHJ2(),bash_HIEWVHJ2_exports))).bashCommand},{name:"sh",load:async()=>(await Promise.resolve().then(()=>(init_bash_HIEWVHJ2(),bash_HIEWVHJ2_exports))).shCommand},{name:"jq",load:async()=>(await Promise.resolve().then(()=>(init_jq_FCG2IUBK(),jq_FCG2IUBK_exports))).jqCommand},{name:"base64",load:async()=>(await Promise.resolve().then(()=>(init_base64_QPSYZAAJ(),base64_QPSYZAAJ_exports))).base64Command},{name:"diff",load:async()=>(await Promise.resolve().then(()=>(init_diff_VDB6RXHO(),diff_VDB6RXHO_exports))).diffCommand},{name:"date",load:async()=>(await Promise.resolve().then(()=>(init_date_FN2DXAEE(),date_FN2DXAEE_exports))).dateCommand},{name:"sleep",load:async()=>(await Promise.resolve().then(()=>(init_sleep_3QNP3BGR(),sleep_3QNP3BGR_exports))).sleepCommand},{name:"timeout",load:async()=>(await Promise.resolve().then(()=>(init_timeout_ZHCL5KTP(),timeout_ZHCL5KTP_exports))).timeoutCommand},{name:"time",load:async()=>(await Promise.resolve().then(()=>(init_time_N6J6DC6C(),time_N6J6DC6C_exports))).timeCommand},{name:"seq",load:async()=>(await Promise.resolve().then(()=>(init_seq_IN77HD3S(),seq_IN77HD3S_exports))).seqCommand},{name:"expr",load:async()=>(await Promise.resolve().then(()=>(init_expr_GZ4DABKB(),expr_GZ4DABKB_exports))).exprCommand},{name:"md5sum",load:async()=>(await Promise.resolve().then(()=>(init_md5sum_JEDX55KS(),md5sum_JEDX55KS_exports))).md5sumCommand},{name:"sha1sum",load:async()=>(await Promise.resolve().then(()=>(init_sha1sum_BLPZJ6MP(),sha1sum_BLPZJ6MP_exports))).sha1sumCommand},{name:"sha256sum",load:async()=>(await Promise.resolve().then(()=>(init_sha256sum_VJZ4PHQ4(),sha256sum_VJZ4PHQ4_exports))).sha256sumCommand},{name:"file",load:async()=>(await Promise.resolve().then(()=>(init_file_UI6QJAAU(),file_UI6QJAAU_exports))).fileCommand},{name:"html-to-markdown",load:async()=>(await Promise.resolve().then(()=>(init_html_to_markdown_7OG5VWYG(),html_to_markdown_7OG5VWYG_exports))).htmlToMarkdownCommand},{name:"help",load:async()=>(await Promise.resolve().then(()=>(init_help_62M75TSG(),help_62M75TSG_exports))).helpCommand},{name:"which",load:async()=>(await Promise.resolve().then(()=>(init_which_UWVKETYW(),which_UWVKETYW_exports))).whichCommand},{name:"tac",load:async()=>(await Promise.resolve().then(()=>(init_tac_YXC4HBTR(),tac_YXC4HBTR_exports))).tac},{name:"hostname",load:async()=>(await Promise.resolve().then(()=>(init_hostname_CESD3CQR(),hostname_CESD3CQR_exports))).hostname},{name:"whoami",load:async()=>(await Promise.resolve().then(()=>(init_whoami_KR6E7UIR(),whoami_KR6E7UIR_exports))).whoami},{name:"od",load:async()=>(await Promise.resolve().then(()=>(init_od_LUHOH7CG(),od_LUHOH7CG_exports))).od},{name:"gzip",load:async()=>(await Promise.resolve().then(()=>(init_gzip_GQC6CWVL(),gzip_GQC6CWVL_exports))).gzipCommand},{name:"gunzip",load:async()=>(await Promise.resolve().then(()=>(init_gzip_GQC6CWVL(),gzip_GQC6CWVL_exports))).gunzipCommand},{name:"zcat",load:async()=>(await Promise.resolve().then(()=>(init_gzip_GQC6CWVL(),gzip_GQC6CWVL_exports))).zcatCommand}];(typeof __BROWSER__>"u"||!__BROWSER__)&&(En.push({name:"tar",load:async()=>(await Promise.resolve().then(()=>(init_tar_BNHPWTOY(),tar_BNHPWTOY_exports))).tarCommand}),En.push({name:"yq",load:async()=>(await Promise.resolve().then(()=>(init_yq_IOMBQYB2(),yq_IOMBQYB2_exports))).yqCommand}),En.push({name:"xan",load:async()=>(await Promise.resolve().then(()=>(init_xan_7R3I2DJO(),xan_7R3I2DJO_exports))).xanCommand}),En.push({name:"sqlite3",load:async()=>(await Promise.resolve().then(()=>(init_sqlite3_7MBPFI6W(),sqlite3_7MBPFI6W_exports))).sqlite3Command}));var Br2=[];(typeof __BROWSER__>"u"||!__BROWSER__)&&(Br2.push({name:"python3",load:async()=>(await Promise.resolve().then(()=>(init_python3_SDFCGIU4(),python3_SDFCGIU4_exports))).python3Command}),Br2.push({name:"python",load:async()=>(await Promise.resolve().then(()=>(init_python3_SDFCGIU4(),python3_SDFCGIU4_exports))).pythonCommand}));var Wr2=[];(typeof __BROWSER__>"u"||!__BROWSER__)&&(Wr2.push({name:"js-exec",load:async()=>(await Promise.resolve().then(()=>(init_js_exec_NDLXDUBN(),js_exec_NDLXDUBN_exports))).jsExecCommand}),Wr2.push({name:"node",load:async()=>(await Promise.resolve().then(()=>(init_js_exec_NDLXDUBN(),js_exec_NDLXDUBN_exports))).nodeStubCommand}));var Ra=[{name:"curl",load:async()=>(await Promise.resolve().then(()=>(init_curl_XCX2ZQEA(),curl_XCX2ZQEA_exports))).curlCommand}],Na2=new Map;function Vr2(e8){return{name:e8.name,async execute(t8,n10){let r7=Na2.get(e8.name);if(r7||(r7=await B2.runTrustedAsync(()=>c(e8.load(),n10.signal,`bash: ${e8.name} was cancelled before it started
1213
+ `,exitCode:1}}}},Bn={name:"xan",flags:[],stdinType:"text",needsArgs:!0}}});var xan_7R3I2DJO_exports={};__export(xan_7R3I2DJO_exports,{flagsForFuzzing:()=>Bn,xanCommand:()=>Jn2});import{createRequire as createRequire188}from"node:module";var require189,init_xan_7R3I2DJO=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/xan-7R3I2DJO.js"(){init_chunk_PPHGMG47();init_chunk_MDE25PQK();init_chunk_6RK4AAB7();init_chunk_H53EPEGD();init_chunk_FIMO5HLX();init_chunk_DLL7UR66();init_chunk_CHWP6GRK();init_chunk_7GA3QWJJ();init_chunk_CHHWTPDH();init_chunk_U7UNEMLJ();init_chunk_CBM6J4AL();init_chunk_6D3WD6YU();init_chunk_DIWMSSQY();init_chunk_STHBFACM();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require189=createRequire188(import.meta.url)}});var sqlite3_7MBPFI6W_exports={};__export(sqlite3_7MBPFI6W_exports,{_internals:()=>_internals,flagsForFuzzing:()=>flagsForFuzzing2,sqlite3Command:()=>sqlite3Command});var unavailable2,_internals,flagsForFuzzing2,sqlite3Command,init_sqlite3_7MBPFI6W=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/sqlite3-7MBPFI6W.js"(){unavailable2=name=>({name,async execute(){return{stdout:"",stderr:`${name}: not available in this shell
1214
+ `,exitCode:127}}}),_internals=()=>{},flagsForFuzzing2=()=>{},sqlite3Command=unavailable2("sqlite3")}});var python3_SDFCGIU4_exports={};__export(python3_SDFCGIU4_exports,{_resetExecutionQueue:()=>_resetExecutionQueue,python3Command:()=>python3Command,pythonCommand:()=>pythonCommand});var unavailable3,_resetExecutionQueue,python3Command,pythonCommand,init_python3_SDFCGIU4=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/python3-SDFCGIU4.js"(){unavailable3=name=>({name,async execute(){return{stdout:"",stderr:`${name}: not available in this shell
1215
+ `,exitCode:127}}}),_resetExecutionQueue=()=>{},python3Command=unavailable3("python3"),pythonCommand=unavailable3("python")}});var js_exec_NDLXDUBN_exports={};__export(js_exec_NDLXDUBN_exports,{jsExecCommand:()=>jsExecCommand,nodeStubCommand:()=>nodeStubCommand});var unavailable4,jsExecCommand,nodeStubCommand,init_js_exec_NDLXDUBN=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/js-exec-NDLXDUBN.js"(){unavailable4=name=>({name,async execute(){return{stdout:"",stderr:`${name}: not available in this shell
1216
+ `,exitCode:127}}}),jsExecCommand=unavailable4("js-exec"),nodeStubCommand=unavailable4("node")}});var curl_XCX2ZQEA_exports={};__export(curl_XCX2ZQEA_exports,{curlCommand:()=>curlCommand});var unavailable5,curlCommand,init_curl_XCX2ZQEA=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/curl-XCX2ZQEA.js"(){unavailable5=name=>({name,async execute(){return{stdout:"",stderr:`${name}: not available in this shell
1217
+ `,exitCode:127}}}),curlCommand=unavailable5("curl")}});import{createRequire as createRequire189}from"node:module";var require190,init_chunk_VOQZ5TSL=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-VOQZ5TSL.js"(){init_chunk_43OP7DFL();require190=createRequire189(import.meta.url)}});var require_sql=__commonJS({"unavailable-package:sql.js"(){throw new Error("sql.js is not available in this shell.")}});import{createRequire as createRequire190}from"node:module";var import_sql,require191,Fe9,init_chunk_BM3X75NC=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-BM3X75NC.js"(){init_chunk_VOQZ5TSL();init_chunk_CHWP6GRK();init_chunk_CBM6J4AL();init_chunk_2WBUTDF5();init_chunk_GN6CQ3J4();init_chunk_W5DWRFSU();init_chunk_FOCWZZDE();init_chunk_QAYAQNCG();import_sql=__toESM(require_sql(),1),require191=createRequire190(import.meta.url),Fe9={name:"sqlite3",flags:[],needsArgs:!0}}});var require_turndown=__commonJS({"unavailable-package:turndown"(){throw new Error("turndown is not available in this shell.")}});import{createRequire as createRequire191}from"node:module";var import_turndown,require192,W11,init_chunk_HDOXCDVK=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/chunk-HDOXCDVK.js"(){init_chunk_U7UNEMLJ();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_QAYAQNCG();import_turndown=__toESM(require_turndown(),1),require192=createRequire191(import.meta.url),W11={name:"html-to-markdown",flags:[],stdinType:"text"}}});var flag_coverage_EDO3VM43_exports={};__export(flag_coverage_EDO3VM43_exports,{emitFlagCoverage:()=>ta});import{createRequire as createRequire192}from"node:module";function Dr2(){return Hr2}function ta(r7,o13,Gr3){let a14=Er.get(o13);if(!(!a14||a14.size===0))for(let s10 of Gr3)a14.has(s10)&&r7.hit(`cmd:flag:${o13}:${s10}`)}var require193,Hr2,Er,init_flag_coverage_EDO3VM43=__esm({"../../../node_modules/.pnpm/just-bash@3.6.0_supports-color@8.1.1/node_modules/just-bash/dist/bundle/chunks/flag-coverage-EDO3VM43.js"(){init_chunk_XHFP44Y4();init_chunk_MHZF23KB();init_chunk_5UTZMNI5();init_chunk_WZQNMEQW();init_chunk_RCRHDT54();init_chunk_PPHGMG47();init_chunk_MDE25PQK();init_chunk_6RK4AAB7();init_chunk_BM3X75NC();init_chunk_VOQZ5TSL();init_chunk_OQ7C4FYO();init_chunk_Y32R7EZP();init_chunk_HDOXCDVK();init_chunk_NXBUT5V2();init_chunk_2SMD2AUA();init_chunk_LI6PTSPD();init_chunk_SBBYKIYU();init_chunk_4MZPEZTU();init_chunk_5ATEFZLC();init_chunk_4GEHRJMD();init_chunk_3KWM4FFA();init_chunk_SX2HC7SO();init_chunk_VWUMR4IC();init_chunk_RIIUVFUS();init_chunk_TUQG2YRH();init_chunk_ANCQ4SCV();init_chunk_FT6ODGOU();init_chunk_2KNTH3KH();init_chunk_EQQGPAXI();init_chunk_HDRAUQK2();init_chunk_GLAFXDZC();init_chunk_7EUWTCWK();init_chunk_EJFBIRMD();init_chunk_D5ZJISRS();init_chunk_H53EPEGD();init_chunk_65LVAUWW();init_chunk_B6OSJB22();init_chunk_YUFU7O6I();init_chunk_ZDPFA4L3();init_chunk_FX4RBUYU();init_chunk_7AISL3XV();init_chunk_NRLE7KYI();init_chunk_A4R2GWRF();init_chunk_FHC24QSK();init_chunk_UIJUTQPH();init_chunk_Y62SXZKJ();init_chunk_PPDMRIJ7();init_chunk_2VWG4LDT();init_chunk_AFFAMSJT();init_chunk_5QWGR2WA();init_chunk_VDJ53ESK();init_chunk_B5Z5HTFY();init_chunk_LSLPJOYM();init_chunk_6R4OQQWP();init_chunk_B3NGH6KE();init_chunk_6WGIZV3E();init_chunk_DPZVOEUP();init_chunk_UK2K3DHN();init_chunk_7M672HB6();init_chunk_LVDUF74R();init_chunk_5VCAQBXL();init_chunk_HIQEVPXM();init_chunk_72JHTO7E();init_chunk_CGI6V2HW();init_chunk_P5BOIHWV();init_chunk_R6ZGLVXI();init_chunk_TDD4NFYE();init_chunk_EGTVQWAP();init_chunk_OB46N7Q7();init_chunk_EXXOLIVE();init_chunk_FIMO5HLX();init_chunk_DIRWTBKE();init_chunk_W5J5ADJF();init_chunk_4IMUNIUJ();init_chunk_FZRQOL3C();init_chunk_N6W6FM4N();init_chunk_H42OAUJL();init_chunk_VGCXKMXN();init_chunk_W2Z6LYL6();init_chunk_T4INBNHX();init_chunk_SHKOQWO4();init_chunk_M4LDT7V7();init_chunk_SRB6FXRH();init_chunk_43OP7DFL();init_chunk_XZ34OGNM();init_chunk_J2OBOJ64();init_chunk_L2UW7DWF();init_chunk_DLL7UR66();init_chunk_CHWP6GRK();init_chunk_7GA3QWJJ();init_chunk_AGH5UJJI();init_chunk_MHDZERK4();init_chunk_CHHWTPDH();init_chunk_U7UNEMLJ();init_chunk_CBM6J4AL();init_chunk_4AKAIZPW();init_chunk_UHHCL65P();init_chunk_6D3WD6YU();init_chunk_5BMPT6SF();init_chunk_DIWMSSQY();init_chunk_STHBFACM();init_chunk_SQX6WQXB();init_chunk_3HDTNUL3();init_chunk_RK2WBVP4();init_chunk_YZH7FUSY();init_chunk_2WBUTDF5();init_chunk_YUSFCOM7();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_W5DWRFSU();init_chunk_FOCWZZDE();init_chunk_QIQMJJZ4();init_chunk_QAYAQNCG();init_chunk_NCUTH6QL();require193=createRequire192(import.meta.url),Hr2=[f8,Q2,fe,yt,h8,G4,S5,b11,$7,q3,j6,$8,k6,f10,F6,g4,c9,j7,P5,Ie,Oe,Se,ot2,Ve,Ni,Y5,k8,L7,$11,O11,W3,y8,L9,C7,T8,T9,F12,Y6,j13,P9,b17,st2,h12,c13,L13,E13,C9,F13,p11,h13,u12,Z5,s6,r6,w12,o9,F15,P11,ye5,W6,J7,z12,E16,L15,k13,A9,C11,o10,m13,m14,Hn,W11,p14,v12,f14,s9,n9,W8,ue4,ae8,de7,vr,Pb,Bn,Fe9];Er=new Map;for(let r7 of Dr2())Er.set(r7.name,new Set(r7.flags.map(o13=>o13.flag)))}});var require_guarded_fetch=__commonJS({"unavailable-package:guarded-fetch"(){throw new Error("guarded-fetch is not available in this shell.")}});import{createRequire as createRequire193}from"node:module";import{createRequire}from"node:module";var require2=createRequire(import.meta.url),u=new TextEncoder,a=new TextDecoder;function o(r7,i22){if(r7 instanceof Uint8Array)return r7;if(i22==="base64")return Uint8Array.from(atob(r7),t8=>t8.charCodeAt(0));if(i22==="hex"){let t8=new Uint8Array(r7.length/2);for(let n10=0;n10<r7.length;n10+=2)t8[n10/2]=parseInt(r7.slice(n10,n10+2),16);return t8}if(i22==="binary"||i22==="latin1"){if(r7.length<=65536)return Uint8Array.from(r7,e8=>e8.charCodeAt(0));let n10=new Uint8Array(r7.length);for(let e8=0;e8<r7.length;e8++)n10[e8]=r7.charCodeAt(e8);return n10}return u.encode(r7)}function h(r7,i22){if(i22==="base64"){if(typeof Buffer<"u")return Buffer.from(r7).toString("base64");let t8=8192,n10="";for(let e8=0;e8<r7.length;e8+=t8){let f15=r7.subarray(e8,e8+t8);n10+=String.fromCharCode(...f15)}return btoa(n10)}if(i22==="hex")return Array.from(r7).map(t8=>t8.toString(16).padStart(2,"0")).join("");if(i22==="binary"||i22==="latin1"){if(typeof Buffer<"u")return Buffer.from(r7).toString(i22);let t8=8192;if(r7.length<=t8)return String.fromCharCode(...r7);let n10="";for(let e8=0;e8<r7.length;e8+=t8){let f15=r7.subarray(e8,e8+t8);n10+=String.fromCharCode(...f15)}return n10}return a.decode(r7)}function l(r7){if(r7!=null)return typeof r7=="string"?r7:r7.encoding??void 0}init_chunk_SRB6FXRH();init_chunk_43OP7DFL();init_chunk_XZ34OGNM();init_chunk_J2OBOJ64();init_chunk_L2UW7DWF();init_chunk_DLL7UR66();init_chunk_CHWP6GRK();init_chunk_7GA3QWJJ();init_chunk_CBM6J4AL();init_chunk_6D3WD6YU();init_chunk_DIWMSSQY();init_chunk_STHBFACM();init_chunk_RK2WBVP4();init_chunk_YUSFCOM7();init_chunk_EFORKKSH();init_chunk_GN6CQ3J4();init_chunk_W5DWRFSU();init_chunk_FOCWZZDE();init_chunk_NCUTH6QL();var require194=createRequire193(import.meta.url),En=[{name:"echo",load:async()=>(await Promise.resolve().then(()=>(init_echo_PLLZYM2L(),echo_PLLZYM2L_exports))).echoCommand},{name:"cat",load:async()=>(await Promise.resolve().then(()=>(init_cat_54BXBS6X(),cat_54BXBS6X_exports))).catCommand},{name:"printf",load:async()=>(await Promise.resolve().then(()=>(init_printf_V42QCPHL(),printf_V42QCPHL_exports))).printfCommand},{name:"ls",load:async()=>(await Promise.resolve().then(()=>(init_ls_MQTYWW4T(),ls_MQTYWW4T_exports))).lsCommand},{name:"mkdir",load:async()=>(await Promise.resolve().then(()=>(init_mkdir_4A5W3RXH(),mkdir_4A5W3RXH_exports))).mkdirCommand},{name:"mktemp",load:async()=>(await Promise.resolve().then(()=>(init_mktemp_XKIE5N3X(),mktemp_XKIE5N3X_exports))).mktempCommand},{name:"rmdir",load:async()=>(await Promise.resolve().then(()=>(init_rmdir_OGSEXEF4(),rmdir_OGSEXEF4_exports))).rmdirCommand},{name:"touch",load:async()=>(await Promise.resolve().then(()=>(init_touch_W4DF6Z4T(),touch_W4DF6Z4T_exports))).touchCommand},{name:"rm",load:async()=>(await Promise.resolve().then(()=>(init_rm_3XUUYAXQ(),rm_3XUUYAXQ_exports))).rmCommand},{name:"cp",load:async()=>(await Promise.resolve().then(()=>(init_cp_LTFB4EUA(),cp_LTFB4EUA_exports))).cpCommand},{name:"mv",load:async()=>(await Promise.resolve().then(()=>(init_mv_ZPIATQJL(),mv_ZPIATQJL_exports))).mvCommand},{name:"ln",load:async()=>(await Promise.resolve().then(()=>(init_ln_OPY2ZVGQ(),ln_OPY2ZVGQ_exports))).lnCommand},{name:"chmod",load:async()=>(await Promise.resolve().then(()=>(init_chmod_4OPV4QKK(),chmod_4OPV4QKK_exports))).chmodCommand},{name:"pwd",load:async()=>(await Promise.resolve().then(()=>(init_pwd_76BPYV5F(),pwd_76BPYV5F_exports))).pwdCommand},{name:"readlink",load:async()=>(await Promise.resolve().then(()=>(init_readlink_YNNS6F7K(),readlink_YNNS6F7K_exports))).readlinkCommand},{name:"head",load:async()=>(await Promise.resolve().then(()=>(init_head_J6RVJFRS(),head_J6RVJFRS_exports))).headCommand},{name:"tail",load:async()=>(await Promise.resolve().then(()=>(init_tail_UGFWX3YY(),tail_UGFWX3YY_exports))).tailCommand},{name:"wc",load:async()=>(await Promise.resolve().then(()=>(init_wc_RUR7HE5O(),wc_RUR7HE5O_exports))).wcCommand},{name:"stat",load:async()=>(await Promise.resolve().then(()=>(init_stat_YLVJ4L67(),stat_YLVJ4L67_exports))).statCommand},{name:"grep",load:async()=>(await Promise.resolve().then(()=>(init_grep_OZCR76FT(),grep_OZCR76FT_exports))).grepCommand},{name:"fgrep",load:async()=>(await Promise.resolve().then(()=>(init_grep_OZCR76FT(),grep_OZCR76FT_exports))).fgrepCommand},{name:"egrep",load:async()=>(await Promise.resolve().then(()=>(init_grep_OZCR76FT(),grep_OZCR76FT_exports))).egrepCommand},{name:"rg",load:async()=>(await Promise.resolve().then(()=>(init_rg_F4SX2PHI(),rg_F4SX2PHI_exports))).rgCommand},{name:"sed",load:async()=>(await Promise.resolve().then(()=>(init_sed_MBB5SXGD(),sed_MBB5SXGD_exports))).sedCommand},{name:"awk",load:async()=>(await Promise.resolve().then(()=>(init_awk2_V7KYQWCD(),awk2_V7KYQWCD_exports))).awkCommand2},{name:"sort",load:async()=>(await Promise.resolve().then(()=>(init_sort_PV2NEQHF(),sort_PV2NEQHF_exports))).sortCommand},{name:"uniq",load:async()=>(await Promise.resolve().then(()=>(init_uniq_OVOW532K(),uniq_OVOW532K_exports))).uniqCommand},{name:"comm",load:async()=>(await Promise.resolve().then(()=>(init_comm_DTWKU2MC(),comm_DTWKU2MC_exports))).commCommand},{name:"cut",load:async()=>(await Promise.resolve().then(()=>(init_cut_IRSHL3BB(),cut_IRSHL3BB_exports))).cutCommand},{name:"paste",load:async()=>(await Promise.resolve().then(()=>(init_paste_U57ZU47S(),paste_U57ZU47S_exports))).pasteCommand},{name:"tr",load:async()=>(await Promise.resolve().then(()=>(init_tr_4NGL47UU(),tr_4NGL47UU_exports))).trCommand},{name:"rev",load:async()=>(await Promise.resolve().then(()=>(init_rev_EPOS3MFH(),rev_EPOS3MFH_exports))).rev},{name:"nl",load:async()=>(await Promise.resolve().then(()=>(init_nl_RFXH2GNX(),nl_RFXH2GNX_exports))).nl},{name:"fold",load:async()=>(await Promise.resolve().then(()=>(init_fold_QJBPHRFJ(),fold_QJBPHRFJ_exports))).fold},{name:"expand",load:async()=>(await Promise.resolve().then(()=>(init_expand_2BPPGGSM(),expand_2BPPGGSM_exports))).expand},{name:"unexpand",load:async()=>(await Promise.resolve().then(()=>(init_unexpand_YD5BWFH4(),unexpand_YD5BWFH4_exports))).unexpand},{name:"strings",load:async()=>(await Promise.resolve().then(()=>(init_strings_WTD7Q2EF(),strings_WTD7Q2EF_exports))).strings},{name:"split",load:async()=>(await Promise.resolve().then(()=>(init_split_6R2TSQY6(),split_6R2TSQY6_exports))).split},{name:"column",load:async()=>(await Promise.resolve().then(()=>(init_column_F5JDBRV6(),column_F5JDBRV6_exports))).column},{name:"join",load:async()=>(await Promise.resolve().then(()=>(init_join_KQ4Z5OD4(),join_KQ4Z5OD4_exports))).join},{name:"tee",load:async()=>(await Promise.resolve().then(()=>(init_tee_OOWSWHRQ(),tee_OOWSWHRQ_exports))).teeCommand},{name:"find",load:async()=>(await Promise.resolve().then(()=>(init_find_JTXDH3MR(),find_JTXDH3MR_exports))).findCommand},{name:"basename",load:async()=>(await Promise.resolve().then(()=>(init_basename_SJZQ5W65(),basename_SJZQ5W65_exports))).basenameCommand},{name:"dirname",load:async()=>(await Promise.resolve().then(()=>(init_dirname_Z2ZMOOW2(),dirname_Z2ZMOOW2_exports))).dirnameCommand},{name:"tree",load:async()=>(await Promise.resolve().then(()=>(init_tree_7OOL2MH6(),tree_7OOL2MH6_exports))).treeCommand},{name:"du",load:async()=>(await Promise.resolve().then(()=>(init_du_DOWSRLXR(),du_DOWSRLXR_exports))).duCommand},{name:"env",load:async()=>(await Promise.resolve().then(()=>(init_env_VUUMB47B(),env_VUUMB47B_exports))).envCommand},{name:"printenv",load:async()=>(await Promise.resolve().then(()=>(init_env_VUUMB47B(),env_VUUMB47B_exports))).printenvCommand},{name:"alias",load:async()=>(await Promise.resolve().then(()=>(init_alias_T5TO5GWK(),alias_T5TO5GWK_exports))).aliasCommand},{name:"unalias",load:async()=>(await Promise.resolve().then(()=>(init_alias_T5TO5GWK(),alias_T5TO5GWK_exports))).unaliasCommand},{name:"history",load:async()=>(await Promise.resolve().then(()=>(init_history_3N762S3K(),history_3N762S3K_exports))).historyCommand},{name:"xargs",load:async()=>(await Promise.resolve().then(()=>(init_xargs_L7TJHOJT(),xargs_L7TJHOJT_exports))).xargsCommand},{name:"true",load:async()=>(await Promise.resolve().then(()=>(init_true_QUBPEGGU(),true_QUBPEGGU_exports))).trueCommand},{name:"false",load:async()=>(await Promise.resolve().then(()=>(init_true_QUBPEGGU(),true_QUBPEGGU_exports))).falseCommand},{name:"yes",load:async()=>(await Promise.resolve().then(()=>(init_yes_I7SAR7XX(),yes_I7SAR7XX_exports))).yesCommand},{name:"clear",load:async()=>(await Promise.resolve().then(()=>(init_clear_KPIUNI6K(),clear_KPIUNI6K_exports))).clearCommand},{name:"bash",load:async()=>(await Promise.resolve().then(()=>(init_bash_HIEWVHJ2(),bash_HIEWVHJ2_exports))).bashCommand},{name:"sh",load:async()=>(await Promise.resolve().then(()=>(init_bash_HIEWVHJ2(),bash_HIEWVHJ2_exports))).shCommand},{name:"jq",load:async()=>(await Promise.resolve().then(()=>(init_jq_FCG2IUBK(),jq_FCG2IUBK_exports))).jqCommand},{name:"base64",load:async()=>(await Promise.resolve().then(()=>(init_base64_QPSYZAAJ(),base64_QPSYZAAJ_exports))).base64Command},{name:"diff",load:async()=>(await Promise.resolve().then(()=>(init_diff_VDB6RXHO(),diff_VDB6RXHO_exports))).diffCommand},{name:"date",load:async()=>(await Promise.resolve().then(()=>(init_date_FN2DXAEE(),date_FN2DXAEE_exports))).dateCommand},{name:"sleep",load:async()=>(await Promise.resolve().then(()=>(init_sleep_3QNP3BGR(),sleep_3QNP3BGR_exports))).sleepCommand},{name:"timeout",load:async()=>(await Promise.resolve().then(()=>(init_timeout_ZHCL5KTP(),timeout_ZHCL5KTP_exports))).timeoutCommand},{name:"time",load:async()=>(await Promise.resolve().then(()=>(init_time_N6J6DC6C(),time_N6J6DC6C_exports))).timeCommand},{name:"seq",load:async()=>(await Promise.resolve().then(()=>(init_seq_IN77HD3S(),seq_IN77HD3S_exports))).seqCommand},{name:"expr",load:async()=>(await Promise.resolve().then(()=>(init_expr_GZ4DABKB(),expr_GZ4DABKB_exports))).exprCommand},{name:"md5sum",load:async()=>(await Promise.resolve().then(()=>(init_md5sum_JEDX55KS(),md5sum_JEDX55KS_exports))).md5sumCommand},{name:"sha1sum",load:async()=>(await Promise.resolve().then(()=>(init_sha1sum_BLPZJ6MP(),sha1sum_BLPZJ6MP_exports))).sha1sumCommand},{name:"sha256sum",load:async()=>(await Promise.resolve().then(()=>(init_sha256sum_VJZ4PHQ4(),sha256sum_VJZ4PHQ4_exports))).sha256sumCommand},{name:"file",load:async()=>(await Promise.resolve().then(()=>(init_file_UI6QJAAU(),file_UI6QJAAU_exports))).fileCommand},{name:"html-to-markdown",load:async()=>(await Promise.resolve().then(()=>(init_html_to_markdown_7OG5VWYG(),html_to_markdown_7OG5VWYG_exports))).htmlToMarkdownCommand},{name:"help",load:async()=>(await Promise.resolve().then(()=>(init_help_62M75TSG(),help_62M75TSG_exports))).helpCommand},{name:"which",load:async()=>(await Promise.resolve().then(()=>(init_which_UWVKETYW(),which_UWVKETYW_exports))).whichCommand},{name:"tac",load:async()=>(await Promise.resolve().then(()=>(init_tac_YXC4HBTR(),tac_YXC4HBTR_exports))).tac},{name:"hostname",load:async()=>(await Promise.resolve().then(()=>(init_hostname_CESD3CQR(),hostname_CESD3CQR_exports))).hostname},{name:"whoami",load:async()=>(await Promise.resolve().then(()=>(init_whoami_KR6E7UIR(),whoami_KR6E7UIR_exports))).whoami},{name:"od",load:async()=>(await Promise.resolve().then(()=>(init_od_LUHOH7CG(),od_LUHOH7CG_exports))).od},{name:"gzip",load:async()=>(await Promise.resolve().then(()=>(init_gzip_GQC6CWVL(),gzip_GQC6CWVL_exports))).gzipCommand},{name:"gunzip",load:async()=>(await Promise.resolve().then(()=>(init_gzip_GQC6CWVL(),gzip_GQC6CWVL_exports))).gunzipCommand},{name:"zcat",load:async()=>(await Promise.resolve().then(()=>(init_gzip_GQC6CWVL(),gzip_GQC6CWVL_exports))).zcatCommand}];(typeof __BROWSER__>"u"||!__BROWSER__)&&(En.push({name:"tar",load:async()=>(await Promise.resolve().then(()=>(init_tar_BNHPWTOY(),tar_BNHPWTOY_exports))).tarCommand}),En.push({name:"yq",load:async()=>(await Promise.resolve().then(()=>(init_yq_IOMBQYB2(),yq_IOMBQYB2_exports))).yqCommand}),En.push({name:"xan",load:async()=>(await Promise.resolve().then(()=>(init_xan_7R3I2DJO(),xan_7R3I2DJO_exports))).xanCommand}),En.push({name:"sqlite3",load:async()=>(await Promise.resolve().then(()=>(init_sqlite3_7MBPFI6W(),sqlite3_7MBPFI6W_exports))).sqlite3Command}));var Br2=[];(typeof __BROWSER__>"u"||!__BROWSER__)&&(Br2.push({name:"python3",load:async()=>(await Promise.resolve().then(()=>(init_python3_SDFCGIU4(),python3_SDFCGIU4_exports))).python3Command}),Br2.push({name:"python",load:async()=>(await Promise.resolve().then(()=>(init_python3_SDFCGIU4(),python3_SDFCGIU4_exports))).pythonCommand}));var Wr2=[];(typeof __BROWSER__>"u"||!__BROWSER__)&&(Wr2.push({name:"js-exec",load:async()=>(await Promise.resolve().then(()=>(init_js_exec_NDLXDUBN(),js_exec_NDLXDUBN_exports))).jsExecCommand}),Wr2.push({name:"node",load:async()=>(await Promise.resolve().then(()=>(init_js_exec_NDLXDUBN(),js_exec_NDLXDUBN_exports))).nodeStubCommand}));var Ra=[{name:"curl",load:async()=>(await Promise.resolve().then(()=>(init_curl_XCX2ZQEA(),curl_XCX2ZQEA_exports))).curlCommand}],Na2=new Map;function Vr2(e8){return{name:e8.name,async execute(t8,n10){let r7=Na2.get(e8.name);if(r7||(r7=await B2.runTrustedAsync(()=>c(e8.load(),n10.signal,`bash: ${e8.name} was cancelled before it started
1218
1218
  `)),Na2.set(e8.name,r7)),n10.coverage&&(typeof __BROWSER__>"u"||!__BROWSER__)){let{emitFlagCoverage:s10}=await c(Promise.resolve().then(()=>(init_flag_coverage_EDO3VM43(),flag_coverage_EDO3VM43_exports)),n10.signal,`bash: ${e8.name} was cancelled before it started
1219
1219
  `);s10(n10.coverage,e8.name,t8)}return r7.execute(t8,n10)}}}function Jf(){return En.map(e8=>e8.name)}function Oa(e8){return(e8?En.filter(n10=>e8.includes(n10.name)):En).map(Vr2)}function Da(){return Ra.map(Vr2)}function Ia2(){return Br2.map(Vr2)}function _a(){return Wr2.map(Vr2)}var Ta=new WeakMap,La=new WeakSet;function zr3(e8){let t8=Ta.get(e8);return t8===void 0&&(t8=Object.freeze(Object.create(null)),Ta.set(e8,t8),La.add(t8)),t8}function Fa(e8){return La.has(e8)}var Ma={maxSourceBytes:67108864,maxExecDepth:64,maxCallDepth:100,maxCommandCount:1e5,maxLoopIterations:1e5,maxAwkIterations:1e5,maxSedIterations:1e5,maxJqIterations:1e7,maxQueryTokens:1e5,maxQueryDepth:1e3,maxQueryElements:1e6,maxAwkParserTokens:1e5,maxAwkParserDepth:256,maxAwkParserOperations:1e6,maxCsvRows:1e6,maxCsvCells:1e7,maxWorkUnits:1e8,maxTraversalEntries:1e6,maxTraversalDepth:1e3,maxTraversalWork:1e6,maxLiveBytes:536870912,maxInputBytes:536870912,maxFileSystemBytes:1073741824,maxDatabaseBytes:1073741824,maxDatabaseResultBytes:268435456,maxArchiveBytes:1073741824,maxArchiveCompressedBytes:536870912,maxArchiveEntryBytes:536870912,maxArchiveEntries:1e6,maxWorkerMessageBytes:67108864,maxExecutionTimeMs:36e5,maxExtensionCleanupTimeMs:100,maxSqliteTimeoutMs:3e4,maxPythonTimeoutMs:3e4,maxJsTimeoutMs:3e4,maxJsBridgeRequests:1e6,maxGlobOperations:1e6,maxStringLength:67108864,maxArrayElements:1e6,maxHeredocSize:67108864,maxSubstitutionDepth:50,maxBraceExpansionResults:1e5,maxOutputSize:268435456,maxFileDescriptors:4096,maxSourceDepth:100},rd={...Ma,maxSourceBytes:8*1024*1024,maxCommandCount:1e4,maxLoopIterations:1e4,maxAwkIterations:1e4,maxSedIterations:1e4,maxJqIterations:1e4,maxSqliteTimeoutMs:5e3,maxPythonTimeoutMs:1e4,maxJsTimeoutMs:1e4,maxJsBridgeRequests:1e5,maxExtensionCleanupTimeMs:25,maxGlobOperations:1e5,maxStringLength:10*1024*1024,maxArrayElements:1e5,maxHeredocSize:10*1024*1024,maxBraceExpansionResults:1e4,maxOutputSize:10*1024*1024,maxFileDescriptors:1024,maxQueryTokens:25e3,maxQueryDepth:256,maxQueryElements:1e5,maxAwkParserTokens:25e3,maxAwkParserDepth:128,maxAwkParserOperations:1e5,maxCsvRows:1e5,maxCsvCells:1e6,maxWorkUnits:1e5,maxTraversalEntries:1e5,maxTraversalDepth:256,maxTraversalWork:1e5,maxLiveBytes:64*1024*1024,maxInputBytes:32*1024*1024,maxFileSystemBytes:128*1024*1024,maxDatabaseBytes:64*1024*1024,maxDatabaseResultBytes:16*1024*1024,maxArchiveBytes:128*1024*1024,maxArchiveCompressedBytes:64*1024*1024,maxArchiveEntryBytes:64*1024*1024,maxArchiveEntries:1e5,maxWorkerMessageBytes:16*1024*1024,maxExecutionTimeMs:3e4};function Ur2(e8,t8="normal"){if(t8!=="normal"&&t8!=="hardened")throw new RangeError('executionLimitProfile must be "normal" or "hardened"');let n10=t8==="hardened"?rd:Ma;if(!e8)return{...n10};let r7={maxSourceBytes:e8.maxSourceBytes??n10.maxSourceBytes,maxExecDepth:e8.maxExecDepth??n10.maxExecDepth,maxCallDepth:e8.maxCallDepth??n10.maxCallDepth,maxCommandCount:e8.maxCommandCount??n10.maxCommandCount,maxLoopIterations:e8.maxLoopIterations??n10.maxLoopIterations,maxAwkIterations:e8.maxAwkIterations??n10.maxAwkIterations,maxSedIterations:e8.maxSedIterations??n10.maxSedIterations,maxJqIterations:e8.maxJqIterations??n10.maxJqIterations,maxQueryTokens:e8.maxQueryTokens??n10.maxQueryTokens,maxQueryDepth:e8.maxQueryDepth??n10.maxQueryDepth,maxQueryElements:e8.maxQueryElements??n10.maxQueryElements,maxAwkParserTokens:e8.maxAwkParserTokens??n10.maxAwkParserTokens,maxAwkParserDepth:e8.maxAwkParserDepth??n10.maxAwkParserDepth,maxAwkParserOperations:e8.maxAwkParserOperations??n10.maxAwkParserOperations,maxCsvRows:e8.maxCsvRows??n10.maxCsvRows,maxCsvCells:e8.maxCsvCells??n10.maxCsvCells,maxWorkUnits:e8.maxWorkUnits??n10.maxWorkUnits,maxTraversalEntries:e8.maxTraversalEntries??n10.maxTraversalEntries,maxTraversalDepth:e8.maxTraversalDepth??n10.maxTraversalDepth,maxTraversalWork:e8.maxTraversalWork??n10.maxTraversalWork,maxLiveBytes:e8.maxLiveBytes??n10.maxLiveBytes,maxInputBytes:e8.maxInputBytes??n10.maxInputBytes,maxFileSystemBytes:e8.maxFileSystemBytes??n10.maxFileSystemBytes,maxDatabaseBytes:e8.maxDatabaseBytes??n10.maxDatabaseBytes,maxDatabaseResultBytes:e8.maxDatabaseResultBytes??n10.maxDatabaseResultBytes,maxArchiveBytes:e8.maxArchiveBytes??n10.maxArchiveBytes,maxArchiveCompressedBytes:e8.maxArchiveCompressedBytes??n10.maxArchiveCompressedBytes,maxArchiveEntryBytes:e8.maxArchiveEntryBytes??n10.maxArchiveEntryBytes,maxArchiveEntries:e8.maxArchiveEntries??n10.maxArchiveEntries,maxWorkerMessageBytes:e8.maxWorkerMessageBytes??n10.maxWorkerMessageBytes,maxExecutionTimeMs:e8.maxExecutionTimeMs??n10.maxExecutionTimeMs,maxExtensionCleanupTimeMs:e8.maxExtensionCleanupTimeMs??n10.maxExtensionCleanupTimeMs,maxSqliteTimeoutMs:e8.maxSqliteTimeoutMs??n10.maxSqliteTimeoutMs,maxPythonTimeoutMs:e8.maxPythonTimeoutMs??n10.maxPythonTimeoutMs,maxJsTimeoutMs:e8.maxJsTimeoutMs??n10.maxJsTimeoutMs,maxJsBridgeRequests:e8.maxJsBridgeRequests??n10.maxJsBridgeRequests,maxGlobOperations:e8.maxGlobOperations??n10.maxGlobOperations,maxStringLength:e8.maxStringLength??n10.maxStringLength,maxArrayElements:e8.maxArrayElements??n10.maxArrayElements,maxHeredocSize:e8.maxHeredocSize??n10.maxHeredocSize,maxSubstitutionDepth:e8.maxSubstitutionDepth??n10.maxSubstitutionDepth,maxBraceExpansionResults:e8.maxBraceExpansionResults??n10.maxBraceExpansionResults,maxOutputSize:e8.maxOutputSize??n10.maxOutputSize,maxFileDescriptors:e8.maxFileDescriptors??n10.maxFileDescriptors,maxSourceDepth:e8.maxSourceDepth??n10.maxSourceDepth};for(let s10 of Object.keys(r7)){let i22=r7[s10];if(i22!==Number.POSITIVE_INFINITY&&(!Number.isSafeInteger(i22)||i22<0))throw new RangeError(`${s10} must be a non-negative safe integer or positive Infinity`)}return r7}function Ba(e8){return"load"in e8&&typeof e8.load=="function"}function id(e8,t8,n10={}){return{name:e8,trusted:n10.trusted!==!1,execute:t8}}function Wa2(e8){let t8=null,n10=!1,r7=new Set,s10=a14=>{t8=a14;for(let l12 of r7)l12.resolve(a14);r7.clear()},i22=a14=>{n10=!1;for(let l12 of r7)l12.reject(a14);r7.clear()},o13=()=>{n10=!0;let a14;try{a14=Promise.resolve(e8.load())}catch(l12){i22(l12);return}a4.call(a14,s10,i22)};return{name:e8.name,trusted:e8.trusted!==!1,async execute(a14,l12){if(!t8){let u15,f15=new Promise((d11,h18)=>{u15={resolve:d11,reject:h18},r7.add(u15)});n10||o13();try{t8=await c(f15,l12.signal,`bash: ${e8.name} was cancelled before it started
1220
1220
  `)}finally{u15&&r7.delete(u15)}}let c18=t8;if(!c18)throw new Error(`Failed to load command: ${e8.name}`);return c18.execute(a14,l12)}}}var Va=Object.freeze(Object.create(null)),jr2=class{limits;signal;commandCount=0;workUnits=0;liveBytes=0;inputBytes=0;outputBytes=0;countersByKind=new Map;bytesByKind=new Map;depthByKind=new Map;cleanupCallbacks=[];poisoned;closed=!1;startedAt=Date.now();get remainingLiveBytes(){return Math.max(0,this.limits.maxLiveBytes-this.liveBytes)}get outputBytesUsed(){return this.outputBytes}constructor(t8,n10=void 0){this.limits=t8,this.signal=n10}fail(t8){throw this.poisoned??=t8,this.poisoned}poisonAfterAbort(t8){this.poisoned??=t8}assertUsable(){if(this.poisoned)throw this.poisoned;if(this.closed)throw new Error("execution budget is already closed");this.throwIfAborted()}chargeCommand(){return this.consume("commands",1,"execution")}consumeWork(t8=1,n10="execution"){return this.consume("work",t8,n10)}consumeLimited(t8,n10,r7,s10=t8){this.assertUsable();let i22=this.countersByKind.get(t8)??0;return(!Number.isSafeInteger(n10)||n10<0||!Number.isSafeInteger(r7)||r7<0||n10>r7-i22)&&this.fail(new f2(`${s10}: ${t8} work limit exceeded (${r7})`,"iterations")),n10>this.limits.maxWorkUnits-this.workUnits&&this.fail(new f2(`${s10}: aggregate work limit exceeded (${this.limits.maxWorkUnits})`,"iterations")),this.countersByKind.set(t8,i22+n10),this.workUnits+=n10,i22+n10}consumeInput(t8,n10="execution"){return this.assertUsable(),(!Number.isSafeInteger(t8)||t8<0||t8>this.limits.maxInputBytes-this.inputBytes)&&this.fail(new f2(`${n10}: aggregate input size limit exceeded (${this.limits.maxInputBytes} bytes)`,"string_length")),this.inputBytes+=t8,this.inputBytes}consume(t8,n10=1,r7=t8){this.assertUsable();let s10=this.countersByKind.get(t8)??0,i22=t8==="commands"?this.commandCount:this.workUnits,o13=t8==="commands"?this.limits.maxCommandCount:this.limits.maxWorkUnits;(!Number.isSafeInteger(n10)||n10<0||n10>o13-i22)&&this.fail(new f2(t8==="commands"?`too many commands executed (>${o13}), increase executionLimits.maxCommandCount`:`${r7}: ${t8} work limit exceeded (${o13})`,t8==="commands"?"commands":"iterations"));let a14=i22+n10;return t8==="commands"?this.commandCount=a14:this.workUnits=a14,this.countersByKind.set(t8,s10+n10),a14}reserveBytes(t8,n10,r7){this.assertUsable();let s10=typeof t8=="string"?t8:"live",i22=typeof t8=="string"?n10:t8,o13=typeof t8=="string"?r7??s10:n10??"execution";(!Number.isSafeInteger(i22)||i22<0||i22>this.limits.maxLiveBytes-this.liveBytes)&&this.fail(new f2(`${o13}: live byte limit exceeded (${this.limits.maxLiveBytes} bytes)`,"string_length")),this.liveBytes+=i22,this.bytesByKind.set(s10,(this.bytesByKind.get(s10)??0)+i22);let a14=!1;return{release:()=>{if(a14)return;a14=!0,this.liveBytes-=i22;let l12=(this.bytesByKind.get(s10)??i22)-i22;l12<=0?this.bytesByKind.delete(s10):this.bytesByKind.set(s10,l12)}}}appendOutput(t8,n10,r7="execution",s10=0,i22="text"){this.assertUsable();let o13=i22==="bytes"?n10.length:x(n10);(!Number.isSafeInteger(s10)||s10<0||s10>o13)&&this.fail(new f2(`${r7}: invalid ${t8} accounting`,"output_size"));let a14=o13-s10;return a14>this.limits.maxOutputSize-this.outputBytes&&this.fail(new f2(`${r7}: total output size exceeded (>${this.limits.maxOutputSize} bytes), increase executionLimits.maxOutputSize`,"output_size")),this.outputBytes+=a14,o13}accountResult(t8,n10="execution",r7=Number.POSITIVE_INFINITY){let s10=t8.internalOutputAccounting,i22=Math.min(s10?.stdout??0,r7),o13=Math.min(s10?.stderr??0,Math.max(0,r7-i22)),a14=this.appendOutput("stdout",t8.stdout,n10,i22,t8.stdoutKind==="bytes"||t8.stdoutEncoding==="binary"?"bytes":"text"),l12=this.appendOutput("stderr",t8.stderr,n10,o13);return Object.isExtensible(t8)?(t8.internalOutputAccounting={stdout:a14,stderr:l12},t8):a14===0&&l12===0?t8:{...t8,internalOutputAccounting:{stdout:a14,stderr:l12}}}relinquishOutput(t8,n10,r7){this.assertUsable(),r7!==Va&&this.fail(new f2(`${n10}: unauthorized output accounting release`,"output_size")),(!Number.isSafeInteger(t8)||t8<0||t8>this.outputBytes)&&this.fail(new f2(`${n10}: invalid output accounting release`,"output_size")),this.outputBytes-=t8}enterDepth(t8,n10=this.limits.maxCallDepth,r7){this.assertUsable();let s10=typeof n10=="number"?n10:this.limits.maxCallDepth,i22=typeof n10=="string"?n10:r7??t8,o13=this.depthByKind.get(t8)??0;o13>=s10&&this.fail(new f2(`${i22}: maximum depth (${s10}) exceeded`,"recursion")),this.depthByKind.set(t8,o13+1);let a14=!1;return{release:()=>{if(a14)return;a14=!0;let l12=(this.depthByKind.get(t8)??1)-1;l12<=0?this.depthByKind.delete(t8):this.depthByKind.set(t8,l12)}}}throwIfAborted(t8="execution"){this.signal?.aborted&&this.fail(new $("",`bash: ${t8} aborted