@cline/core 0.0.95 → 0.2.0-nightly.1793312794

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 (175) hide show
  1. package/dist/ClineCore.d.ts +6 -1
  2. package/dist/account/rpc.d.ts +3 -1
  3. package/dist/account/types.d.ts +2 -0
  4. package/dist/artifacts/cloud/fetch.d.ts +8 -0
  5. package/dist/artifacts/cloud/publish.d.ts +6 -0
  6. package/dist/artifacts/publish.d.ts +30 -0
  7. package/dist/cline-core/runtime-services.d.ts +4 -2
  8. package/dist/cloud/computer-use-prompt.d.ts +9 -0
  9. package/dist/cloud/controller.d.ts +26 -4
  10. package/dist/cloud/hub-client.d.ts +53 -0
  11. package/dist/cloud/hub-protocol.d.ts +32 -0
  12. package/dist/cloud/index.d.ts +5 -0
  13. package/dist/cloud/index.js +34 -17
  14. package/dist/cloud/types.d.ts +4 -1
  15. package/dist/extensions/context/compaction-shared.d.ts +1 -0
  16. package/dist/extensions/context/compaction.d.ts +7 -0
  17. package/dist/extensions/context/summarize-conversation.d.ts +7 -0
  18. package/dist/extensions/context/summary-generation.d.ts +14 -0
  19. package/dist/extensions/mcp/apps.d.ts +16 -0
  20. package/dist/extensions/mcp/client.d.ts +1 -0
  21. package/dist/extensions/mcp/index.d.ts +5 -1
  22. package/dist/extensions/mcp/manager.d.ts +2 -1
  23. package/dist/extensions/mcp/session-apps.d.ts +28 -0
  24. package/dist/extensions/mcp/types.d.ts +22 -0
  25. package/dist/extensions/plugin/plugin-command-origin.d.ts +8 -0
  26. package/dist/extensions/plugin/plugin-registry.d.ts +1 -0
  27. package/dist/extensions/plugin/plugin-runtime.d.ts +7 -0
  28. package/dist/hub/client/index.d.ts +6 -0
  29. package/dist/hub/client/managed-hub-build-watcher.d.ts +2 -0
  30. package/dist/hub/client/plugin-commands.d.ts +4 -0
  31. package/dist/hub/client/session-client.d.ts +2 -0
  32. package/dist/hub/daemon/entry.js +248 -229
  33. package/dist/hub/daemon/index.d.ts +2 -0
  34. package/dist/hub/index.d.ts +1 -0
  35. package/dist/hub/index.js +238 -219
  36. package/dist/hub/runtime-host/hub-runtime-host.d.ts +6 -0
  37. package/dist/hub/server/cloud-session-service.d.ts +52 -0
  38. package/dist/hub/server/handlers/capability-handlers.d.ts +18 -1
  39. package/dist/hub/server/handlers/context.d.ts +13 -2
  40. package/dist/hub/server/handlers/mcp-apps-handlers.d.ts +5 -0
  41. package/dist/hub/server/handlers/session-handlers.d.ts +4 -0
  42. package/dist/hub/server/hub-server-options.d.ts +3 -0
  43. package/dist/hub/server/hub-server-transport.d.ts +2 -0
  44. package/dist/index.d.ts +10 -5
  45. package/dist/index.js +284 -258
  46. package/dist/plugin-runtime/node_modules/@cline/agents/dist/index.js +76 -0
  47. package/dist/plugin-runtime/node_modules/@cline/agents/package.json +1 -0
  48. package/dist/plugin-runtime/node_modules/@cline/core/dist/ai-sdk-bdvd54cj.js +1 -0
  49. package/dist/plugin-runtime/node_modules/@cline/core/dist/anthropic-d88t4w67.js +1 -0
  50. package/dist/plugin-runtime/node_modules/@cline/core/dist/bedrock-4rh6dw0e.js +1 -0
  51. package/dist/plugin-runtime/node_modules/@cline/core/dist/cline-dex049wz.js +1 -0
  52. package/dist/plugin-runtime/node_modules/@cline/core/dist/cloud/index.js +38 -0
  53. package/dist/plugin-runtime/node_modules/@cline/core/dist/community-adrseffv.js +1 -0
  54. package/dist/plugin-runtime/node_modules/@cline/core/dist/foundation-models-embedding-model-strategy-SAVQFBF4-vf44v1q1.js +1 -0
  55. package/dist/plugin-runtime/node_modules/@cline/core/dist/foundation-models-language-model-strategy-BPQO66W7-np6pavev.js +1 -0
  56. package/dist/plugin-runtime/node_modules/@cline/core/dist/getMachineId-bsd-1xg0n8py.js +1 -0
  57. package/dist/plugin-runtime/node_modules/@cline/core/dist/getMachineId-bsd-2h2811k3.js +1 -0
  58. package/dist/plugin-runtime/node_modules/@cline/core/dist/getMachineId-darwin-918h9zb6.js +2 -0
  59. package/dist/plugin-runtime/node_modules/@cline/core/dist/getMachineId-darwin-9g9qz8kw.js +2 -0
  60. package/dist/plugin-runtime/node_modules/@cline/core/dist/getMachineId-linux-8p52y0t4.js +1 -0
  61. package/dist/plugin-runtime/node_modules/@cline/core/dist/getMachineId-linux-cr4wnstr.js +1 -0
  62. package/dist/plugin-runtime/node_modules/@cline/core/dist/getMachineId-unsupported-aa72jh2v.js +1 -0
  63. package/dist/plugin-runtime/node_modules/@cline/core/dist/getMachineId-unsupported-k2y10eep.js +1 -0
  64. package/dist/plugin-runtime/node_modules/@cline/core/dist/getMachineId-win-1hvm2h6v.js +1 -0
  65. package/dist/plugin-runtime/node_modules/@cline/core/dist/getMachineId-win-7nqbajdc.js +1 -0
  66. package/dist/plugin-runtime/node_modules/@cline/core/dist/google-nqn5r579.js +1 -0
  67. package/dist/plugin-runtime/node_modules/@cline/core/dist/hub/daemon/entry.js +1166 -0
  68. package/dist/plugin-runtime/node_modules/@cline/core/dist/hub/index.js +1153 -0
  69. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-0ahmqye5.js +2 -0
  70. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-1jwj53tz.js +2 -0
  71. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-3qy7846d.js +14 -0
  72. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-418gvd4a.js +2 -0
  73. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-4etvmc8g.js +2 -0
  74. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-4pm9q9we.js +1 -0
  75. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-4tgv599k.js +2 -0
  76. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-5hwscy9s.js +15 -0
  77. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-6dpcn5cw.js +9 -0
  78. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-7ycwqbm0.js +1 -0
  79. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-8qjtgvqw.js +9 -0
  80. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-8zb5grad.js +1210 -0
  81. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-94jdgxt6.js +2 -0
  82. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-9g67p34k.js +2 -0
  83. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-a9d2sjh0.js +85 -0
  84. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-agemt17a.js +3 -0
  85. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-bhf7enwn.js +1 -0
  86. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-bnwxdgvg.js +1 -0
  87. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-brjxtvsh.js +4 -0
  88. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-bvb7f701.js +1 -0
  89. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-bwet95hr.js +2 -0
  90. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-cadyf2yp.js +14 -0
  91. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-cxfnnrmh.js +9 -0
  92. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-cyyvppz9.js +6 -0
  93. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-d4pbedxj.js +137 -0
  94. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-ddwn220p.js +12 -0
  95. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-edf1hmcw.js +62 -0
  96. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-ejyd73x5.js +1 -0
  97. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-f25bf131.js +4 -0
  98. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-f4rfmj6q.js +3 -0
  99. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-fet3kwk6.js +1 -0
  100. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-ffna8yzn.js +121 -0
  101. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-g2y6ptdc.js +213 -0
  102. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-ge184xvn.js +6 -0
  103. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-gevnedsc.js +13 -0
  104. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-hkmarmve.js +190 -0
  105. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-kqacxn3s.js +39 -0
  106. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-m3gtj35r.js +14 -0
  107. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-neczvge6.js +21 -0
  108. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-p5k5hnam.js +75 -0
  109. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-sdvqs19c.js +20 -0
  110. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-t75m2pgm.js +146 -0
  111. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-v4-qqb2kabr.js +1 -0
  112. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-v6mehmme.js +12 -0
  113. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-v80fh3x3.js +16 -0
  114. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-vd605jwp.js +2 -0
  115. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-vryppqt1.js +1 -0
  116. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-w55v4n1n.js +2 -0
  117. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-w9n2kgjk.js +140 -0
  118. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-yjbp9r76.js +142 -0
  119. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-ztb3cjfh.js +3 -0
  120. package/dist/plugin-runtime/node_modules/@cline/core/dist/index.js +1 -0
  121. package/dist/plugin-runtime/node_modules/@cline/core/dist/jiti-static-kj4rdeey.js +473 -0
  122. package/dist/plugin-runtime/node_modules/@cline/core/dist/jiti-y9tt7gmq.js +1 -0
  123. package/dist/plugin-runtime/node_modules/@cline/core/dist/langfuse-stream-telemetry-bg81k3qh.js +1 -0
  124. package/dist/plugin-runtime/node_modules/@cline/core/dist/langfuse-telemetry-tkbfbx5w.js +1 -0
  125. package/dist/plugin-runtime/node_modules/@cline/core/dist/mistral-mkw95amh.js +1 -0
  126. package/dist/plugin-runtime/node_modules/@cline/core/dist/multipart-parser-9z19cm6q.js +2 -0
  127. package/dist/plugin-runtime/node_modules/@cline/core/dist/ollama-sjp09b7p.js +1 -0
  128. package/dist/plugin-runtime/node_modules/@cline/core/dist/openai-1eyn4hw0.js +1 -0
  129. package/dist/plugin-runtime/node_modules/@cline/core/dist/openai-compatible-f99c7syq.js +1 -0
  130. package/dist/plugin-runtime/node_modules/@cline/core/dist/orchestration-embedding-model-strategy-GT27AFII-19936r1a.js +1 -0
  131. package/dist/plugin-runtime/node_modules/@cline/core/dist/orchestration-language-model-strategy-YEQPUCOT-eavx3zc3.js +1 -0
  132. package/dist/plugin-runtime/node_modules/@cline/core/dist/services/feature-flags/posthog.js +2 -0
  133. package/dist/plugin-runtime/node_modules/@cline/core/dist/services/telemetry/index.js +1 -0
  134. package/dist/plugin-runtime/node_modules/@cline/core/dist/token-04d0mwe8.js +1 -0
  135. package/dist/plugin-runtime/node_modules/@cline/core/dist/token-util-mt7pvm61.js +1 -0
  136. package/dist/plugin-runtime/node_modules/@cline/core/dist/vertex-6armtc3s.js +1 -0
  137. package/dist/plugin-runtime/node_modules/@cline/core/package.json +1 -0
  138. package/dist/plugin-runtime/node_modules/@cline/llms/dist/index.browser.js +16 -0
  139. package/dist/plugin-runtime/node_modules/@cline/llms/dist/index.js +1 -0
  140. package/dist/plugin-runtime/node_modules/@cline/llms/package.json +1 -0
  141. package/dist/plugin-runtime/node_modules/@cline/sdk/dist/index.js +1 -0
  142. package/dist/plugin-runtime/node_modules/@cline/sdk/package.json +1 -0
  143. package/dist/plugin-runtime/node_modules/@cline/shared/dist/automation/index.js +57 -0
  144. package/dist/plugin-runtime/node_modules/@cline/shared/dist/db/index.js +127 -0
  145. package/dist/plugin-runtime/node_modules/@cline/shared/dist/index.browser.js +110 -0
  146. package/dist/plugin-runtime/node_modules/@cline/shared/dist/index.js +1 -0
  147. package/dist/plugin-runtime/node_modules/@cline/shared/dist/node.js +1 -0
  148. package/dist/plugin-runtime/node_modules/@cline/shared/dist/remote-config/index.js +68 -0
  149. package/dist/plugin-runtime/node_modules/@cline/shared/dist/storage/index.js +1 -0
  150. package/dist/plugin-runtime/node_modules/@cline/shared/dist/types/index.js +1 -0
  151. package/dist/plugin-runtime/node_modules/@cline/shared/package.json +1 -0
  152. package/dist/plugin-runtime/package.json +1 -0
  153. package/dist/{extensions → plugin-runtime}/plugin-sandbox-bootstrap.js +129 -129
  154. package/dist/remote/remote-environments.d.ts +1 -0
  155. package/dist/runtime/config/agent-runtime-config-builder.d.ts +2 -0
  156. package/dist/runtime/host/local-runtime-host.d.ts +10 -0
  157. package/dist/runtime/host/runtime-host.d.ts +6 -0
  158. package/dist/runtime/orchestration/runtime-oauth-token-manager.d.ts +3 -0
  159. package/dist/runtime/orchestration/session-runtime-orchestrator.d.ts +10 -1
  160. package/dist/runtime/orchestration/session-runtime.d.ts +2 -0
  161. package/dist/runtime/tools/subprocess-sandbox.d.ts +22 -0
  162. package/dist/services/cloud-handoff/git-preparation.d.ts +22 -0
  163. package/dist/services/global-settings.d.ts +6 -0
  164. package/dist/services/llms/cline-recommended-models.d.ts +2 -0
  165. package/dist/services/local-runtime-bootstrap.d.ts +1 -0
  166. package/dist/services/plugin-command-api.d.ts +47 -0
  167. package/dist/services/plugin-commands.d.ts +25 -27
  168. package/dist/services/skills-cli.d.ts +2 -0
  169. package/dist/services/telemetry/core-events.d.ts +26 -0
  170. package/dist/services/telemetry/index.js +1 -1
  171. package/dist/services/telemetry/run-health.d.ts +40 -0
  172. package/dist/services/telemetry/stall-signals.d.ts +12 -0
  173. package/dist/types/config.d.ts +1 -0
  174. package/dist/types/session.d.ts +7 -0
  175. package/package.json +6 -5
@@ -0,0 +1,21 @@
1
+ import{i,c}from"./index-edf1hmcw.js";var Zp=i(function(Ur,Cs){(()=>{var ks={"./node_modules/.pnpm/mlly@1.8.2/node_modules/mlly/dist lazy recursive"(q){function et(ht){return Promise.resolve().then(function(){var _t=Error("Cannot find module '"+ht+"'");throw _t.code="MODULE_NOT_FOUND",_t})}et.keys=()=>[],et.resolve=et,et.id="./node_modules/.pnpm/mlly@1.8.2/node_modules/mlly/dist lazy recursive",q.exports=et},fs(q){q.exports=c("fs")},"node:fs"(q){q.exports=c("node:fs")},"node:module"(q){q.exports=c("node:module")},"node:path"(q){q.exports=c("node:path")},os(q){q.exports=c("os")},path(q){q.exports=c("path")},"./node_modules/.pnpm/get-tsconfig@4.14.0/node_modules/get-tsconfig/dist/index.cjs"(q,et,ht){var _t=Object.defineProperty,S=(o,f)=>_t(o,"name",{value:f,configurable:!0}),D=ht("node:path"),ae=ht("node:fs"),oe=ht("node:module"),_e=ht("./node_modules/.pnpm/resolve-pkg-maps@1.0.0/node_modules/resolve-pkg-maps/dist/index.cjs"),zt=ht("fs"),Ut=ht("os"),dt=ht("path");function J(o){return o.startsWith("\\\\?\\")?o:o.replace(/\\/g,"/")}S(J,"slash");let F=S((o)=>{let f=ae[o];return(v,...u)=>{let E=`${o}:${u.join(":")}`,_=v==null?void 0:v.get(E);return _===void 0&&(_=Reflect.apply(f,ae,u),v==null||v.set(E,_)),_}},"cacheFs"),it=F("existsSync"),vt=F("readFileSync"),L=F("statSync"),V=S((o,f,v)=>{for(;;){let u=D.posix.join(o,f);if(it(v,u))return u;let E=D.dirname(o);if(E===o)return;o=E}},"findUp"),R=/^\.{1,2}(\/.*)?$/,a=S((o)=>{let f=J(o);return R.test(f)?f:`./${f}`},"normalizeRelativePath");function Y(o,f=!1){let v=o.length,u=0,E="",_=0,g=16,w=0,A=0,N=0,K=0,G=0;function st(C,ut){let xt=0,W=0;for(;xt<C;){let T=o.charCodeAt(u);if(T>=48&&T<=57)W=16*W+T-48;else if(T>=65&&T<=70)W=16*W+T-65+10;else{if(!(T>=97&&T<=102))break;W=16*W+T-97+10}u++,xt++}return xt<C&&(W=-1),W}function X(C){u=C,E="",_=0,g=16,G=0}function Z(){let C=u;if(o.charCodeAt(u)===48)u++;else for(u++;u<o.length&&mt(o.charCodeAt(u));)u++;if(u<o.length&&o.charCodeAt(u)===46){if(u++,!(u<o.length&&mt(o.charCodeAt(u))))return G=3,o.substring(C,u);for(u++;u<o.length&&mt(o.charCodeAt(u));)u++}let ut=u;if(u<o.length&&(o.charCodeAt(u)===69||o.charCodeAt(u)===101))if(u++,(u<o.length&&o.charCodeAt(u)===43||o.charCodeAt(u)===45)&&u++,u<o.length&&mt(o.charCodeAt(u))){for(u++;u<o.length&&mt(o.charCodeAt(u));)u++;ut=u}else G=3;return o.substring(C,ut)}function tt(){let C="",ut=u;for(;;){if(u>=v){C+=o.substring(ut,u),G=2;break}let xt=o.charCodeAt(u);if(xt===34){C+=o.substring(ut,u),u++;break}if(xt!==92){if(xt>=0&&xt<=31){if(lt(xt)){C+=o.substring(ut,u),G=2;break}G=6}u++}else{if(C+=o.substring(ut,u),u++,u>=v){G=2;break}switch(o.charCodeAt(u++)){case 34:C+='"';break;case 92:C+="\\";break;case 47:C+="/";break;case 98:C+="\b";break;case 102:C+="\f";break;case 110:C+=`
2
+ `;break;case 114:C+="\r";break;case 116:C+="\t";break;case 117:let W=st(4);W>=0?C+=String.fromCharCode(W):G=4;break;default:G=5}ut=u}}return C}function ot(){if(E="",G=0,_=u,A=w,K=N,u>=v)return _=v,g=17;let C=o.charCodeAt(u);if(nt(C)){do u++,E+=String.fromCharCode(C),C=o.charCodeAt(u);while(nt(C));return g=15}if(lt(C))return u++,E+=String.fromCharCode(C),C===13&&o.charCodeAt(u)===10&&(u++,E+=`
3
+ `),w++,N=u,g=14;switch(C){case 123:return u++,g=1;case 125:return u++,g=2;case 91:return u++,g=3;case 93:return u++,g=4;case 58:return u++,g=6;case 44:return u++,g=5;case 34:return u++,E=tt(),g=10;case 47:let ut=u-1;if(o.charCodeAt(u+1)===47){for(u+=2;u<v&&!lt(o.charCodeAt(u));)u++;return E=o.substring(ut,u),g=12}if(o.charCodeAt(u+1)===42){u+=2;let xt=v-1,W=!1;for(;u<xt;){let T=o.charCodeAt(u);if(T===42&&o.charCodeAt(u+1)===47){u+=2,W=!0;break}u++,lt(T)&&(T===13&&o.charCodeAt(u)===10&&u++,w++,N=u)}return W||(u++,G=1),E=o.substring(ut,u),g=13}return E+=String.fromCharCode(C),u++,g=16;case 45:if(E+=String.fromCharCode(C),u++,u===v||!mt(o.charCodeAt(u)))return g=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return E+=Z(),g=11;default:for(;u<v&&It(C);)u++,C=o.charCodeAt(u);if(_!==u){switch(E=o.substring(_,u),E){case"true":return g=8;case"false":return g=9;case"null":return g=7}return g=16}return E+=String.fromCharCode(C),u++,g=16}}function It(C){if(nt(C)||lt(C))return!1;switch(C){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function Ot(){let C;do C=ot();while(C>=12&&C<=15);return C}return S(st,"scanHexDigits"),S(X,"setPosition"),S(Z,"scanNumber"),S(tt,"scanString"),S(ot,"scanNext"),S(It,"isUnknownContentCharacter"),S(Ot,"scanNextNonTrivia"),{setPosition:X,getPosition:S(()=>u,"getPosition"),scan:f?Ot:ot,getToken:S(()=>g,"getToken"),getTokenValue:S(()=>E,"getTokenValue"),getTokenOffset:S(()=>_,"getTokenOffset"),getTokenLength:S(()=>u-_,"getTokenLength"),getTokenStartLine:S(()=>A,"getTokenStartLine"),getTokenStartCharacter:S(()=>_-K,"getTokenStartCharacter"),getTokenError:S(()=>G,"getTokenError")}}function nt(o){return o===32||o===9}function lt(o){return o===10||o===13}function mt(o){return o>=48&&o<=57}var Rt,d;S(Y,"createScanner"),S(nt,"isWhiteSpace"),S(lt,"isLineBreak"),S(mt,"isDigit"),(d=Rt||(Rt={}))[d.lineFeed=10]="lineFeed",d[d.carriageReturn=13]="carriageReturn",d[d.space=32]="space",d[d._0=48]="_0",d[d._1=49]="_1",d[d._2=50]="_2",d[d._3=51]="_3",d[d._4=52]="_4",d[d._5=53]="_5",d[d._6=54]="_6",d[d._7=55]="_7",d[d._8=56]="_8",d[d._9=57]="_9",d[d.a=97]="a",d[d.b=98]="b",d[d.c=99]="c",d[d.d=100]="d",d[d.e=101]="e",d[d.f=102]="f",d[d.g=103]="g",d[d.h=104]="h",d[d.i=105]="i",d[d.j=106]="j",d[d.k=107]="k",d[d.l=108]="l",d[d.m=109]="m",d[d.n=110]="n",d[d.o=111]="o",d[d.p=112]="p",d[d.q=113]="q",d[d.r=114]="r",d[d.s=115]="s",d[d.t=116]="t",d[d.u=117]="u",d[d.v=118]="v",d[d.w=119]="w",d[d.x=120]="x",d[d.y=121]="y",d[d.z=122]="z",d[d.A=65]="A",d[d.B=66]="B",d[d.C=67]="C",d[d.D=68]="D",d[d.E=69]="E",d[d.F=70]="F",d[d.G=71]="G",d[d.H=72]="H",d[d.I=73]="I",d[d.J=74]="J",d[d.K=75]="K",d[d.L=76]="L",d[d.M=77]="M",d[d.N=78]="N",d[d.O=79]="O",d[d.P=80]="P",d[d.Q=81]="Q",d[d.R=82]="R",d[d.S=83]="S",d[d.T=84]="T",d[d.U=85]="U",d[d.V=86]="V",d[d.W=87]="W",d[d.X=88]="X",d[d.Y=89]="Y",d[d.Z=90]="Z",d[d.asterisk=42]="asterisk",d[d.backslash=92]="backslash",d[d.closeBrace=125]="closeBrace",d[d.closeBracket=93]="closeBracket",d[d.colon=58]="colon",d[d.comma=44]="comma",d[d.dot=46]="dot",d[d.doubleQuote=34]="doubleQuote",d[d.minus=45]="minus",d[d.openBrace=123]="openBrace",d[d.openBracket=91]="openBracket",d[d.plus=43]="plus",d[d.slash=47]="slash",d[d.formFeed=12]="formFeed",d[d.tab=9]="tab",Array(20).fill(0).map((o,f)=>" ".repeat(f));let Mt=200;var ce,Oe,jt;function Ee(o,f=[],v=ce.DEFAULT){let u=null,E=[],_=[];function g(w){Array.isArray(E)?E.push(w):u!==null&&(E[u]=w)}return S(g,"onValue"),be(o,{onObjectBegin:S(()=>{let w={};g(w),_.push(E),E=w,u=null},"onObjectBegin"),onObjectProperty:S((w)=>{u=w},"onObjectProperty"),onObjectEnd:S(()=>{E=_.pop()},"onObjectEnd"),onArrayBegin:S(()=>{let w=[];g(w),_.push(E),E=w,u=null},"onArrayBegin"),onArrayEnd:S(()=>{E=_.pop()},"onArrayEnd"),onLiteralValue:g,onError:S((w,A,N)=>{f.push({error:w,offset:A,length:N})},"onError")},v),E[0]}function be(o,f,v=ce.DEFAULT){let u=Y(o,!1),E=[],_=0;function g(H){return H?()=>_===0&&H(u.getTokenOffset(),u.getTokenLength(),u.getTokenStartLine(),u.getTokenStartCharacter()):()=>!0}function w(H){return H?(ct)=>_===0&&H(ct,u.getTokenOffset(),u.getTokenLength(),u.getTokenStartLine(),u.getTokenStartCharacter()):()=>!0}function A(H){return H?(ct)=>_===0&&H(ct,u.getTokenOffset(),u.getTokenLength(),u.getTokenStartLine(),u.getTokenStartCharacter(),()=>E.slice()):()=>!0}function N(H){return H?()=>{_>0?_++:H(u.getTokenOffset(),u.getTokenLength(),u.getTokenStartLine(),u.getTokenStartCharacter(),()=>E.slice())===!1&&(_=1)}:()=>!0}function K(H){return H?()=>{_>0&&_--,_===0&&H(u.getTokenOffset(),u.getTokenLength(),u.getTokenStartLine(),u.getTokenStartCharacter())}:()=>!0}S(g,"toNoArgVisit"),S(w,"toOneArgVisit"),S(A,"toOneArgVisitWithPath"),S(N,"toBeginVisit"),S(K,"toEndVisit");let G=N(f.onObjectBegin),st=A(f.onObjectProperty),X=K(f.onObjectEnd),Z=N(f.onArrayBegin),tt=K(f.onArrayEnd),ot=A(f.onLiteralValue),It=w(f.onSeparator),Ot=g(f.onComment),C=w(f.onError),ut=v&&v.disallowComments,xt=v&&v.allowTrailingComma;function W(){for(;;){let H=u.scan();switch(u.getTokenError()){case 4:T(14);break;case 5:T(15);break;case 3:T(13);break;case 1:ut||T(11);break;case 2:T(12);break;case 6:T(16)}switch(H){case 12:case 13:ut?T(10):Ot();break;case 16:T(1);break;case 15:case 14:break;default:return H}}}function T(H,ct=[],Xe=[]){if(C(H),ct.length+Xe.length>0){let fe=u.getToken();for(;fe!==17;){if(ct.indexOf(fe)!==-1){W();break}if(Xe.indexOf(fe)!==-1)break;fe=W()}}}function Te(H){let ct=u.getTokenValue();return H?ot(ct):(st(ct),E.push(ct)),W(),!0}function Qe(){switch(u.getToken()){case 11:let H=u.getTokenValue(),ct=Number(H);isNaN(ct)&&(T(2),ct=0),ot(ct);break;case 7:ot(null);break;case 8:ot(!0);break;case 9:ot(!1);break;default:return!1}return W(),!0}function ze(){return u.getToken()!==10?(T(3,[],[2,5]),!1):(Te(!1),u.getToken()===6?(It(":"),W(),Zt()||T(4,[],[2,5])):T(5,[],[2,5]),E.pop(),!0)}function Je(){G(),W();let H=!1;for(;u.getToken()!==2&&u.getToken()!==17;){if(u.getToken()===5){if(H||T(4,[],[]),It(","),W(),u.getToken()===2&&xt)break}else H&&T(6,[],[]);ze()||T(4,[],[2,5]),H=!0}return X(),u.getToken()!==2?T(7,[2],[]):W(),!0}function Ye(){Z(),W();let H=!0,ct=!1;for(;u.getToken()!==4&&u.getToken()!==17;){if(u.getToken()===5){if(ct||T(4,[],[]),It(","),W(),u.getToken()===4&&xt)break}else ct&&T(6,[],[]);H?(E.push(0),H=!1):E[E.length-1]++,Zt()||T(4,[],[4,5]),ct=!0}return tt(),H||E.pop(),u.getToken()!==4?T(8,[4],[]):W(),!0}function Zt(){switch(u.getToken()){case 3:return Ye();case 1:return Je();case 10:return Te(!0);default:return Qe()}}return S(W,"scanNext"),S(T,"handleError"),S(Te,"parseString"),S(Qe,"parseLiteral"),S(ze,"parseProperty"),S(Je,"parseObject"),S(Ye,"parseArray"),S(Zt,"parseValue"),W(),u.getToken()===17?!!v.allowEmptyContent||(T(4,[],[]),!1):Zt()?(u.getToken()!==17&&T(9,[],[]),!0):(T(4,[],[]),!1)}Array(Mt).fill(0).map((o,f)=>`
4
+ `+" ".repeat(f)),Array(Mt).fill(0).map((o,f)=>"\r"+" ".repeat(f)),Array(Mt).fill(0).map((o,f)=>`\r
5
+ `+" ".repeat(f)),Array(Mt).fill(0).map((o,f)=>`
6
+ `+"\t".repeat(f)),Array(Mt).fill(0).map((o,f)=>"\r"+"\t".repeat(f)),Array(Mt).fill(0).map((o,f)=>`\r
7
+ `+"\t".repeat(f)),function(o){o.DEFAULT={allowTrailingComma:!1}}(ce||(ce={})),S(Ee,"parse$1"),S(be,"visit"),function(o){o[o.None=0]="None",o[o.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",o[o.UnexpectedEndOfString=2]="UnexpectedEndOfString",o[o.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",o[o.InvalidUnicode=4]="InvalidUnicode",o[o.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",o[o.InvalidCharacter=6]="InvalidCharacter"}(Oe||(Oe={})),function(o){o[o.OpenBraceToken=1]="OpenBraceToken",o[o.CloseBraceToken=2]="CloseBraceToken",o[o.OpenBracketToken=3]="OpenBracketToken",o[o.CloseBracketToken=4]="CloseBracketToken",o[o.CommaToken=5]="CommaToken",o[o.ColonToken=6]="ColonToken",o[o.NullKeyword=7]="NullKeyword",o[o.TrueKeyword=8]="TrueKeyword",o[o.FalseKeyword=9]="FalseKeyword",o[o.StringLiteral=10]="StringLiteral",o[o.NumericLiteral=11]="NumericLiteral",o[o.LineCommentTrivia=12]="LineCommentTrivia",o[o.BlockCommentTrivia=13]="BlockCommentTrivia",o[o.LineBreakTrivia=14]="LineBreakTrivia",o[o.Trivia=15]="Trivia",o[o.Unknown=16]="Unknown",o[o.EOF=17]="EOF"}(jt||(jt={}));let Pt=Ee;var At;(function(o){o[o.InvalidSymbol=1]="InvalidSymbol",o[o.InvalidNumberFormat=2]="InvalidNumberFormat",o[o.PropertyNameExpected=3]="PropertyNameExpected",o[o.ValueExpected=4]="ValueExpected",o[o.ColonExpected=5]="ColonExpected",o[o.CommaExpected=6]="CommaExpected",o[o.CloseBraceExpected=7]="CloseBraceExpected",o[o.CloseBracketExpected=8]="CloseBracketExpected",o[o.EndOfFileExpected=9]="EndOfFileExpected",o[o.InvalidCommentToken=10]="InvalidCommentToken",o[o.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",o[o.UnexpectedEndOfString=12]="UnexpectedEndOfString",o[o.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",o[o.InvalidUnicode=14]="InvalidUnicode",o[o.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",o[o.InvalidCharacter=16]="InvalidCharacter"})(At||(At={}));let De=S((o,f)=>Pt(vt(f,o,"utf8")),"readJsonc"),Ft=Symbol("implicitBaseUrl"),yt="${configDir}",Ve=S(()=>{let{findPnpApi:o}=oe;return o&&o(process.cwd())},"getPnpApi"),Jt=S((o,f,v,u)=>{let E=`resolveFromPackageJsonPath:${o}:${f}:${v}`;if(u!=null&&u.has(E))return u.get(E);let _=De(o,u);if(!_)return;let g=f||"tsconfig.json";if(!v&&_.exports)try{let[w]=_e.resolveExports(_.exports,f,["require","types"]);g=w}catch{return!1}else!f&&_.tsconfig&&(g=_.tsconfig);return g=D.join(o,"..",g),u==null||u.set(E,g),g},"resolveFromPackageJsonPath"),he="package.json",Ce="tsconfig.json",ci=S((o,f,v)=>{let u=o;if(o===".."&&(u=D.join(u,Ce)),o[0]==="."&&(u=D.resolve(f,u)),D.isAbsolute(u)){if(it(v,u)){if(L(v,u).isFile())return u}else if(!u.endsWith(".json")){let X=`${u}.json`;if(it(v,X))return X}return}let[E,..._]=o.split("/"),g=E[0]==="@"?`${E}/${_.shift()}`:E,w=_.join("/"),A=Ve();if(A){let{resolveRequest:X}=A;try{if(g===o){let Z=X(D.join(g,he),f);if(Z){let tt=Jt(Z,w,!1,v);if(tt&&it(v,tt))return tt}}else{let Z;try{Z=X(o,f,{extensions:[".json"]})}catch{Z=X(D.join(o,Ce),f)}if(Z)return Z}}catch{}}let N=V(D.resolve(f),D.join("node_modules",g),v);if(!N||!L(v,N).isDirectory())return;let K=D.join(N,he);if(it(v,K)){let X=Jt(K,w,!1,v);if(X===!1)return;if(X&&it(v,X)&&L(v,X).isFile())return X}let G=D.join(N,w),st=G.endsWith(".json");if(!st){let X=`${G}.json`;if(it(v,X))return X}if(it(v,G)){if(L(v,G).isDirectory()){let X=D.join(G,he);if(it(v,X)){let tt=Jt(X,"",!0,v);if(tt&&it(v,tt))return tt}let Z=D.join(G,Ce);if(it(v,Z))return Z}else if(st)return G}},"resolveExtendsPath"),le=S((o,f)=>a(D.relative(o,f)),"pathRelative"),pe=["files","include","exclude"],at=S((o,f,v)=>{let u=D.join(f,v);return J(D.relative(o,u))||"./"},"resolveAndRelativize"),wt=S((o,f,v)=>{let u=D.relative(o,f);if(!u)return v;return J(`${u}/${v.startsWith("./")?v.slice(2):v}`)},"prefixPattern"),gt=S((o,f,v,u)=>{let E=ci(o,f,u);if(!E)throw Error(`File '${o}' not found.`);if(v.has(E))throw Error(`Circularity detected while resolving configuration: ${E}`);v.add(E);let _=D.dirname(E),g=Yt(E,u,v);delete g.references;let{compilerOptions:w}=g;if(w){let{baseUrl:A}=w;A&&!A.startsWith(yt)&&(w.baseUrl=at(f,_,A));let{outDir:N}=w;N&&!N.startsWith(yt)&&(w.outDir=at(f,_,N));let{declarationDir:K}=w;K&&!K.startsWith(yt)&&(w.declarationDir=at(f,_,K));let{rootDir:G}=w;G&&!G.startsWith(yt)&&(w.rootDir=at(f,_,G));let{rootDirs:st}=w;st&&(w.rootDirs=st.map((Z)=>Z.startsWith(yt)?Z:at(f,_,Z)));let{typeRoots:X}=w;X&&(w.typeRoots=X.map((Z)=>Z.startsWith(yt)?Z:at(f,_,Z)))}for(let A of pe){let N=g[A];N&&(g[A]=N.map((K)=>K.startsWith(yt)?K:wt(f,_,K)))}return g},"resolveExtends"),Ue=["outDir","declarationDir"],Yt=S((o,f,v=new Set)=>{let u;try{u=De(o,f)||{}}catch{throw Error(`Cannot resolve tsconfig at path: ${o}`)}if(typeof u!="object")throw SyntaxError(`Failed to parse tsconfig at: ${o}`);let E=D.dirname(o);if(u.compilerOptions){let{compilerOptions:_}=u;_.paths&&!_.baseUrl&&(_[Ft]=E)}if(u.extends){let _=Array.isArray(u.extends)?u.extends:[u.extends];delete u.extends;for(let g of _.reverse()){let w=gt(g,E,new Set(v),f),A={...w,...u,compilerOptions:{...w.compilerOptions,...u.compilerOptions}};w.watchOptions&&(A.watchOptions={...w.watchOptions,...u.watchOptions}),u=A}}if(u.compilerOptions){let{compilerOptions:_}=u,g=["baseUrl","rootDir"];for(let w of g){let A=_[w];if(A&&!A.startsWith(yt)){let N=D.resolve(E,A),K=le(E,N);_[w]=K}}for(let w of Ue){let A=_[w];A&&(Array.isArray(u.exclude)||(u.exclude=Ue.map((N)=>_[N]).filter(Boolean)),A.startsWith(yt)||(A=a(A)),_[w]=A)}}else u.compilerOptions={};if(u.include&&(u.include=u.include.map(J)),u.files&&(u.files=u.files.map((_)=>_.startsWith(yt)?_:a(_))),u.watchOptions){let{watchOptions:_}=u;_.excludeDirectories&&(_.excludeDirectories=_.excludeDirectories.map((g)=>J(D.resolve(E,g)))),_.excludeFiles&&(_.excludeFiles=_.excludeFiles.map((g)=>J(D.resolve(E,g)))),_.watchFile&&(_.watchFile=_.watchFile.toLowerCase()),_.watchDirectory&&(_.watchDirectory=_.watchDirectory.toLowerCase()),_.fallbackPolling&&(_.fallbackPolling=_.fallbackPolling.toLowerCase())}return u},"_parseTsconfig"),I=S((o,f)=>{if(o.startsWith(yt))return J(D.join(f,o.slice(12)))},"interpolateConfigDir"),ke=["outDir","declarationDir","outFile","rootDir","baseUrl","tsBuildInfoFile"],hi=S((o)=>{if(o.strict){let f=["noImplicitAny","noImplicitThis","strictNullChecks","strictFunctionTypes","strictBindCallApply","strictPropertyInitialization","strictBuiltinIteratorReturn","alwaysStrict","useUnknownInCatchVariables"];for(let v of f)o[v]===void 0&&(o[v]=!0)}if(o.composite&&(o.declaration!=null||(o.declaration=!0),o.incremental!=null||(o.incremental=!0)),o.target){let f=o.target.toLowerCase();f==="es2015"&&(f="es6"),o.target=f,f==="esnext"&&(o.module!=null||(o.module="es6"),o.useDefineForClassFields!=null||(o.useDefineForClassFields=!0)),(f==="es6"||f==="es2016"||f==="es2017"||f==="es2018"||f==="es2019"||f==="es2020"||f==="es2021"||f==="es2022"||f==="es2023"||f==="es2024")&&(o.module!=null||(o.module="es6")),(f==="es2022"||f==="es2023"||f==="es2024")&&(o.useDefineForClassFields!=null||(o.useDefineForClassFields=!0))}if(o.module){let f=o.module.toLowerCase();if(f==="es2015"&&(f="es6"),o.module=f,(f==="es6"||f==="es2020"||f==="es2022"||f==="esnext"||f==="none"||f==="system"||f==="umd"||f==="amd")&&(o.moduleResolution!=null||(o.moduleResolution="classic")),f==="system"&&(o.allowSyntheticDefaultImports!=null||(o.allowSyntheticDefaultImports=!0)),(f==="node16"||f==="node18"||f==="node20"||f==="nodenext"||f==="preserve")&&(o.esModuleInterop!=null||(o.esModuleInterop=!0),o.allowSyntheticDefaultImports!=null||(o.allowSyntheticDefaultImports=!0)),(f==="node16"||f==="node18"||f==="node20"||f==="nodenext")&&(o.moduleDetection!=null||(o.moduleDetection="force")),f==="node16"&&(o.target!=null||(o.target="es2022"),o.moduleResolution!=null||(o.moduleResolution="node16")),f==="node18"&&(o.target!=null||(o.target="es2022"),o.moduleResolution!=null||(o.moduleResolution="node16")),f==="node20"&&(o.target!=null||(o.target="es2023"),o.moduleResolution!=null||(o.moduleResolution="node16"),o.resolveJsonModule!=null||(o.resolveJsonModule=!0)),f==="nodenext"&&(o.target!=null||(o.target="esnext"),o.moduleResolution!=null||(o.moduleResolution="nodenext"),o.resolveJsonModule!=null||(o.resolveJsonModule=!0)),f==="node16"||f==="node18"||f==="node20"||f==="nodenext"){let v=o.target;(v==="es3"||v==="es2022"||v==="es2023"||v==="es2024"||v==="esnext")&&(o.useDefineForClassFields!=null||(o.useDefineForClassFields=!0))}f==="preserve"&&(o.moduleResolution!=null||(o.moduleResolution="bundler"))}if(o.moduleResolution){let f=o.moduleResolution.toLowerCase();f==="node"&&(f="node10"),o.moduleResolution=f,(f==="node16"||f==="nodenext"||f==="bundler")&&(o.resolvePackageJsonExports!=null||(o.resolvePackageJsonExports=!0),o.resolvePackageJsonImports!=null||(o.resolvePackageJsonImports=!0)),f==="bundler"&&(o.allowSyntheticDefaultImports!=null||(o.allowSyntheticDefaultImports=!0),o.resolveJsonModule!=null||(o.resolveJsonModule=!0))}o.jsx&&(o.jsx=o.jsx.toLowerCase()),o.moduleDetection&&(o.moduleDetection=o.moduleDetection.toLowerCase()),o.importsNotUsedAsValues&&(o.importsNotUsedAsValues=o.importsNotUsedAsValues.toLowerCase()),o.newLine&&(o.newLine=o.newLine.toLowerCase()),o.esModuleInterop&&(o.allowSyntheticDefaultImports!=null||(o.allowSyntheticDefaultImports=!0)),o.verbatimModuleSyntax&&(o.isolatedModules!=null||(o.isolatedModules=!0),o.preserveConstEnums!=null||(o.preserveConstEnums=!0)),o.isolatedModules&&(o.preserveConstEnums!=null||(o.preserveConstEnums=!0)),o.rewriteRelativeImportExtensions&&(o.allowImportingTsExtensions!=null||(o.allowImportingTsExtensions=!0)),o.lib&&(o.lib=o.lib.map((f)=>f.toLowerCase())),o.checkJs&&(o.allowJs!=null||(o.allowJs=!0))},"normalizeCompilerOptions"),Me=S((o,f=new Map)=>{let v=D.resolve(o),u=Yt(v,f),E=D.dirname(v),{compilerOptions:_}=u;if(_){for(let w of ke){let A=_[w];if(A){let N=I(A,E);_[w]=N?le(E,N):A}}for(let w of["rootDirs","typeRoots"]){let A=_[w];A&&(_[w]=A.map((N)=>{let K=I(N,E);return K?le(E,K):a(N)}))}let{paths:g}=_;if(g)for(let w of Object.keys(g))g[w]=g[w].map((A)=>{var N;return(N=I(A,E))!=null?N:A});hi(_)}for(let g of pe){let w=u[g];w&&(u[g]=w.map((A)=>{var N;return(N=I(A,E))!=null?N:A}))}return u},"parseTsconfig");var Xt=Object.defineProperty,qt=S((o,f)=>Xt(o,"name",{value:f,configurable:!0}),"s");let je=qt((o)=>{let f="";for(let v=0;v<o.length;v+=1){let u=o[v],E=u.toUpperCase();f+=u===E?u.toLowerCase():E}return f},"invertCase"),Gt=new Map,Et=qt((o,f)=>{let v=dt.join(o,`.is-fs-case-sensitive-test-${process.pid}`);try{return f.writeFileSync(v,""),!f.existsSync(je(v))}finally{try{f.unlinkSync(v)}catch{}}},"checkDirectoryCaseWithWrite"),St=qt((o,f,v)=>{try{return Et(o,v)}catch(u){if(f===void 0)return Et(Ut.tmpdir(),v);throw u}},"checkDirectoryCaseWithFallback"),rt=qt((o,f=zt,v=!0)=>{let u=o!=null?o:process.cwd();if(v&&Gt.has(u))return Gt.get(u);let E,_=je(u);return E=_!==u&&f.existsSync(u)?!f.existsSync(_):St(u,o,f),v&&Gt.set(u,E),E},"isFsCaseSensitive"),{join:Bt}=D.posix,O={ts:[".ts",".tsx",".d.ts"],cts:[".cts",".d.cts"],mts:[".mts",".d.mts"]},Fe=S((o)=>{let f=[...O.ts],v=[...O.cts],u=[...O.mts];return o!=null&&o.allowJs&&(f.push(".js",".jsx"),v.push(".cjs"),u.push(".mjs")),[...f,...v,...u]},"getSupportedExtensions"),we=S((o)=>{let f=[];if(!o)return f;let{outDir:v,declarationDir:u}=o;return v&&f.push(v),u&&f.push(u),f},"getDefaultExcludeSpec"),Be=S((o)=>o.replaceAll(/[.*+?^${}()|[\]\\]/g,String.raw`\$&`),"escapeForRegexp"),Kt=`(?!(${["node_modules","bower_components","jspm_packages"].join("|")})(/|$))`,Nt=/(?:^|\/)[^.*?]+$/,$e="**/*",Lt="[^/]",$t="[^./]",Se=process.platform==="win32",We=S(({config:o,path:f},v=rt())=>{if("extends"in o)throw Error("tsconfig#extends must be resolved. Use getTsconfig or parseTsconfig to resolve it.");if(!D.isAbsolute(f))throw Error("The tsconfig path must be absolute");Se&&(f=J(f));let u=D.dirname(f),{files:E,include:_,exclude:g,compilerOptions:w}=o,A=S((tt)=>D.isAbsolute(tt)?tt:Bt(u,tt),"resolvePattern"),N=E==null?void 0:E.map(A),K=Fe(w),G=v?"":"i",st=(g||we(w)).map((tt)=>{let ot=A(tt),It=Be(ot).replaceAll(String.raw`\*\*/`,"(.+/)?").replaceAll(String.raw`\*`,`${Lt}*`).replaceAll(String.raw`\?`,Lt);return new RegExp(`^${It}($|/)`,G)}),X=E||_?_:[$e],Z=X?X.map((tt)=>{let ot=A(tt);Nt.test(ot)&&(ot=Bt(ot,$e));let It=Be(ot).replaceAll(String.raw`/\*\*`,`(/${Kt}${$t}${Lt}*)*?`).replaceAll(/(\/)?\\\*/g,(Ot,C)=>{let ut=`(${$t}|(\\.(?!min\\.js$))?)*`;return C?`/${Kt}${$t}${ut}`:ut}).replaceAll(/(\/)?\\\?/g,(Ot,C)=>C?`/${Kt}${Lt}`:Lt);return new RegExp(`^${It}$`,G)}):void 0;return(tt)=>{if(!D.isAbsolute(tt))throw Error("filePath must be absolute");return Se&&(tt=J(tt)),N!=null&&N.includes(tt)||K.some((ot)=>tt.endsWith(ot))&&!st.some((ot)=>ot.test(tt))&&Z&&Z.some((ot)=>ot.test(tt))?o:void 0}},"createFilesMatcher"),ue=S((o,f,v)=>{let u=D.resolve(o),E=J(o);for(;;){let _=V(E,f,v);if(!_)return;let g=D.resolve(_),w=Me(g,v),A={path:J(g),config:w};if(We(A)(u))return A;let N=D.dirname(_),K=D.dirname(N);if(K===N)return;E=K}},"findConfigApplicable"),Ie=S((o=process.cwd(),f="tsconfig.json",v=new Map,u=!1)=>{var E;return u?(E=ue(o,f,v))==null?void 0:E.path:V(J(o),f,v)},"findTsconfig"),li=S((o=process.cwd(),f="tsconfig.json",v=new Map,u=!1)=>{var E;if(!u){let _=Ie(o,f,v);if(!_)return null;return{path:_,config:Me(_,v)}}return(E=ue(o,f,v))!=null?E:null},"getTsconfig"),pi=/\*/g,Ae=S((o,f)=>{let v=o.match(pi);if(v&&v.length>1)throw Error(f)},"assertStarCount"),qe=S((o)=>{if(o.includes("*")){let[f,v]=o.split("*");return{prefix:f,suffix:v}}return o},"parsePattern"),Ge=S(({prefix:o,suffix:f},v)=>v.startsWith(o)&&v.endsWith(f),"isPatternMatch"),Ke=S((o,f,v)=>Object.entries(o).map(([u,E])=>(Ae(u,`Pattern '${u}' can have at most one '*' character.`),{pattern:qe(u),substitutions:E.map((_)=>{if(Ae(_,`Substitution '${_}' in pattern '${u}' can have at most one '*' character.`),!f&&!R.test(_)&&!D.isAbsolute(_))throw Error("Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?");return D.resolve(v,_)})})),"parsePaths"),He=S((o)=>{let{compilerOptions:f}=o.config;if(!f)return null;let{baseUrl:v,paths:u}=f;if(!v&&!u)return null;let E=Ft in f&&f[Ft],_=D.resolve(D.dirname(o.path),v||E||"."),g=u?Ke(u,v,_):[];return(w)=>{if(R.test(w))return[];let A=[];for(let st of g){if(st.pattern===w)return st.substitutions.map(J);typeof st.pattern!="string"&&A.push(st)}let N,K=-1;for(let st of A)Ge(st.pattern,w)&&st.pattern.prefix.length>K&&(K=st.pattern.prefix.length,N=st);if(!N)return v?[J(D.join(_,w))]:[];let G=w.slice(N.pattern.prefix.length,w.length-N.pattern.suffix.length);return N.substitutions.map((st)=>J(st.replace("*",G)))}},"createPathsMatcher");et.createPathsMatcher=He,et.getTsconfig=li},"./node_modules/.pnpm/resolve-pkg-maps@1.0.0/node_modules/resolve-pkg-maps/dist/index.cjs"(q,et){Object.defineProperty(et,"__esModule",{value:!0});let ht=(L)=>L!==null&&typeof L=="object",_t=(L,V)=>Object.assign(Error(`[${L}]: ${V}`),{code:L}),S="ERR_INVALID_PACKAGE_CONFIG",D="ERR_INVALID_PACKAGE_TARGET",ae=/^\d+$/,oe=/^(\.{1,2}|node_modules)$/i,_e=/\/|\\/;var zt,Ut=((zt=Ut||{}).Export="exports",zt.Import="imports",zt);let dt=(L,V,R,a,Y)=>{if(V==null)return[];if(typeof V=="string"){let[nt,...lt]=V.split(_e);if(nt===".."||lt.some((mt)=>oe.test(mt)))throw _t(D,`Invalid "${L}" target "${V}" defined in the package config`);return[Y?V.replace(/\*/g,Y):V]}if(Array.isArray(V))return V.flatMap((nt)=>dt(L,nt,R,a,Y));if(ht(V)){for(let nt of Object.keys(V)){if(ae.test(nt))throw _t(S,"Cannot contain numeric property keys");if(nt==="default"||a.includes(nt))return dt(L,V[nt],R,a,Y)}return[]}throw _t(D,`Invalid "${L}" target "${V}"`)},J="*",F=(L,V)=>{let R=L.indexOf(J),a=V.indexOf(J);return R===a?V.length>L.length:a>R};function it(L,V){if(!V.includes(J)&&L.hasOwnProperty(V))return[V];let R,a;for(let Y of Object.keys(L))if(Y.includes(J)){let[nt,lt,mt]=Y.split(J);if(mt===void 0&&V.startsWith(nt)&&V.endsWith(lt)){let Rt=V.slice(nt.length,-lt.length||void 0);Rt&&(!R||F(R,Y))&&(R=Y,a=Rt)}}return[R,a]}let vt=/^\w+:/;et.resolveExports=(L,V,R)=>{if(!L)throw Error('"exports" is required');V=V===""?".":`./${V}`,(typeof L=="string"||Array.isArray(L)||ht(L)&&((lt)=>Object.keys(lt).reduce((mt,Rt)=>{let d=Rt===""||Rt[0]!==".";if(mt===void 0||mt===d)return d;throw _t(S,'"exports" cannot contain some keys starting with "." and some not')},void 0))(L))&&(L={".":L});let[a,Y]=it(L,V),nt=dt(Ut.Export,L[a],V,R,Y);if(nt.length===0)throw _t("ERR_PACKAGE_PATH_NOT_EXPORTED",V==="."?'No "exports" main defined':`Package subpath '${V}' is not defined by "exports"`);for(let lt of nt)if(!lt.startsWith("./")&&!vt.test(lt))throw _t(D,`Invalid "exports" target "${lt}" defined in the package config`);return nt},et.resolveImports=(L,V,R)=>{if(!L)throw Error('"imports" is required');let[a,Y]=it(L,V),nt=dt(Ut.Import,L[a],V,R,Y);if(nt.length===0)throw _t("ERR_PACKAGE_IMPORT_NOT_DEFINED",`Package import specifier "${V}" is not defined in package`);return nt}}},Ti={};function kt(q){var et=Ti[q];if(et!==void 0)return et.exports;var ht=Ti[q]={exports:{}};return ks[q](ht,ht.exports,kt),ht.exports}kt.n=(q)=>{var et=q&&q.__esModule?()=>q.default:()=>q;return kt.d(et,{a:et}),et},kt.d=(q,et)=>{for(var ht in et)kt.o(et,ht)&&!kt.o(q,ht)&&Object.defineProperty(q,ht,{enumerable:!0,get:et[ht]})},kt.o=(q,et)=>Object.prototype.hasOwnProperty.call(q,et);var Ri={};(()=>{kt.d(Ri,{default:()=>gs});let q=c("node:os");var et=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],ht=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],_t="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",S={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},D="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",ae={5:D,"5module":D+" export import",6:D+" const class extends export import super"},oe=/^in(stanceof)?$/,_e=new RegExp("["+_t+"]"),zt=new RegExp("["+_t+"‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・]");function Ut(t,e){for(var s=65536,r=0;r<e.length;r+=2){if((s+=e[r])>t)return!1;if((s+=e[r+1])>=t)return!0}return!1}function dt(t,e){return t<65?t===36:t<91||(t<97?t===95:t<123||(t<=65535?t>=170&&_e.test(String.fromCharCode(t)):e!==!1&&Ut(t,ht)))}function J(t,e){return t<48?t===36:t<58||!(t<65)&&(t<91||(t<97?t===95:t<123||(t<=65535?t>=170&&zt.test(String.fromCharCode(t)):e!==!1&&(Ut(t,ht)||Ut(t,et)))))}var F=function(t,e){e===void 0&&(e={}),this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop||null,this.updateContext=null};function it(t,e){return new F(t,{beforeExpr:!0,binop:e})}var vt={beforeExpr:!0},L={startsExpr:!0},V={};function R(t,e){return e===void 0&&(e={}),e.keyword=t,V[t]=new F(t,e)}var a={num:new F("num",L),regexp:new F("regexp",L),string:new F("string",L),name:new F("name",L),privateId:new F("privateId",L),eof:new F("eof"),bracketL:new F("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new F("]"),braceL:new F("{",{beforeExpr:!0,startsExpr:!0}),braceR:new F("}"),parenL:new F("(",{beforeExpr:!0,startsExpr:!0}),parenR:new F(")"),comma:new F(",",vt),semi:new F(";",vt),colon:new F(":",vt),dot:new F("."),question:new F("?",vt),questionDot:new F("?."),arrow:new F("=>",vt),template:new F("template"),invalidTemplate:new F("invalidTemplate"),ellipsis:new F("...",vt),backQuote:new F("`",L),dollarBraceL:new F("${",{beforeExpr:!0,startsExpr:!0}),eq:new F("=",{beforeExpr:!0,isAssign:!0}),assign:new F("_=",{beforeExpr:!0,isAssign:!0}),incDec:new F("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new F("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:it("||",1),logicalAND:it("&&",2),bitwiseOR:it("|",3),bitwiseXOR:it("^",4),bitwiseAND:it("&",5),equality:it("==/!=/===/!==",6),relational:it("</>/<=/>=",7),bitShift:it("<</>>/>>>",8),plusMin:new F("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:it("%",10),star:it("*",10),slash:it("/",10),starstar:new F("**",{beforeExpr:!0}),coalesce:it("??",1),_break:R("break"),_case:R("case",vt),_catch:R("catch"),_continue:R("continue"),_debugger:R("debugger"),_default:R("default",vt),_do:R("do",{isLoop:!0,beforeExpr:!0}),_else:R("else",vt),_finally:R("finally"),_for:R("for",{isLoop:!0}),_function:R("function",L),_if:R("if"),_return:R("return",vt),_switch:R("switch"),_throw:R("throw",vt),_try:R("try"),_var:R("var"),_const:R("const"),_while:R("while",{isLoop:!0}),_with:R("with"),_new:R("new",{beforeExpr:!0,startsExpr:!0}),_this:R("this",L),_super:R("super",L),_class:R("class",L),_extends:R("extends",vt),_export:R("export"),_import:R("import",L),_null:R("null",L),_true:R("true",L),_false:R("false",L),_in:R("in",{beforeExpr:!0,binop:7}),_instanceof:R("instanceof",{beforeExpr:!0,binop:7}),_typeof:R("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:R("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:R("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Y=/\r\n?|\n|\u2028|\u2029/,nt=new RegExp(Y.source,"g");function lt(t){return t===10||t===13||t===8232||t===8233}function mt(t,e,s){s===void 0&&(s=t.length);for(var r=e;r<s;r++){var n=t.charCodeAt(r);if(lt(n))return r<s-1&&n===13&&t.charCodeAt(r+1)===10?r+2:r+1}return-1}var Rt=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,d=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Mt=Object.prototype,{hasOwnProperty:ce,toString:Oe}=Mt,jt=Object.hasOwn||function(t,e){return ce.call(t,e)},Ee=Array.isArray||function(t){return Oe.call(t)==="[object Array]"},be=Object.create(null);function Pt(t){return be[t]||(be[t]=new RegExp("^(?:"+t.replace(/ /g,"|")+")$"))}function At(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}var De=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Ft=function(t,e){this.line=t,this.column=e};Ft.prototype.offset=function(t){return new Ft(this.line,this.column+t)};var yt=function(t,e,s){this.start=e,this.end=s,t.sourceFile!==null&&(this.source=t.sourceFile)};function Ve(t,e){for(var s=1,r=0;;){var n=mt(t,r,e);if(n<0)return new Ft(s,e-r);++s,r=n}}var Jt={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},he=!1;function Ce(t){var e={};for(var s in Jt)e[s]=t&&jt(t,s)?t[s]:Jt[s];if(e.ecmaVersion==="latest"?e.ecmaVersion=1e8:e.ecmaVersion==null?(!he&&typeof console=="object"&&console.warn&&(he=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
8
+ Defaulting to 2020, but this will stop working in the future.`)),e.ecmaVersion=11):e.ecmaVersion>=2015&&(e.ecmaVersion-=2009),e.allowReserved==null&&(e.allowReserved=e.ecmaVersion<5),t&&t.allowHashBang!=null||(e.allowHashBang=e.ecmaVersion>=14),Ee(e.onToken)){var r=e.onToken;e.onToken=function(n){return r.push(n)}}if(Ee(e.onComment)&&(e.onComment=function(n,h){return function(l,p,m,y,x,k){var b={type:l?"Block":"Line",value:p,start:m,end:y};n.locations&&(b.loc=new yt(this,x,k)),n.ranges&&(b.range=[m,y]),h.push(b)}}(e,e.onComment)),e.sourceType==="commonjs"&&e.allowAwaitOutsideFunction)throw Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return e}var ci=256,le=259;function pe(t,e){return 2|(t?4:0)|(e?8:0)}var at=function(t,e,s){this.options=t=Ce(t),this.sourceFile=t.sourceFile,this.keywords=Pt(ae[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var r="";t.allowReserved!==!0&&(r=S[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(r+=" await")),this.reservedWords=Pt(r);var n=(r?r+" ":"")+S.strict;this.reservedWordsStrict=Pt(n),this.reservedWordsStrictBind=Pt(n+" "+S.strictBind),this.input=String(e),this.containsEsc=!1,s?(this.pos=s,this.lineStart=this.input.lastIndexOf(`
9
+ `,s-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Y).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=a.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?2:1),this.regexpState=null,this.privateNameStack=[]},wt={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};at.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)},wt.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},wt.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},wt.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},wt.canAwait.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var e=this.scopeStack[t].flags;if(768&e)return!1;if(2&e)return(4&e)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},wt.allowReturn.get=function(){return!!this.inFunction||!!(this.options.allowReturnOutsideFunction&&1&this.currentVarScope().flags)},wt.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0||this.options.allowSuperOutsideMethod},wt.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},wt.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},wt.allowNewDotTarget.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var e=this.scopeStack[t].flags;if(768&e||2&e&&!(16&e))return!0}return!1},wt.allowUsing.get=function(){var t=this.currentScope().flags;return!(1024&t)&&!(!this.inModule&&1&t)},wt.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&ci)>0},at.extend=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var s=this,r=0;r<t.length;r++)s=t[r](s);return s},at.parse=function(t,e){return new this(e,t).parse()},at.parseExpressionAt=function(t,e,s){var r=new this(s,t,e);return r.nextToken(),r.parseExpression()},at.tokenizer=function(t,e){return new this(e,t)},Object.defineProperties(at.prototype,wt);var gt=at.prototype,Ue=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;gt.strictDirective=function(t){if(this.options.ecmaVersion<5)return!1;for(;;){d.lastIndex=t,t+=d.exec(this.input)[0].length;var e=Ue.exec(this.input.slice(t));if(!e)return!1;if((e[1]||e[2])==="use strict"){d.lastIndex=t+e[0].length;var s=d.exec(this.input),r=s.index+s[0].length,n=this.input.charAt(r);return n===";"||n==="}"||Y.test(s[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(n)||n==="!"&&this.input.charAt(r+1)==="=")}t+=e[0].length,d.lastIndex=t,t+=d.exec(this.input)[0].length,this.input[t]===";"&&t++}},gt.eat=function(t){return this.type===t&&(this.next(),!0)},gt.isContextual=function(t){return this.type===a.name&&this.value===t&&!this.containsEsc},gt.eatContextual=function(t){return!!this.isContextual(t)&&(this.next(),!0)},gt.expectContextual=function(t){this.eatContextual(t)||this.unexpected()},gt.canInsertSemicolon=function(){return this.type===a.eof||this.type===a.braceR||Y.test(this.input.slice(this.lastTokEnd,this.start))},gt.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},gt.semicolon=function(){this.eat(a.semi)||this.insertSemicolon()||this.unexpected()},gt.afterTrailingComma=function(t,e){if(this.type===t)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),e||this.next(),!0},gt.expect=function(t){this.eat(t)||this.unexpected()},gt.unexpected=function(t){this.raise(t!=null?t:this.start,"Unexpected token")};var Yt=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};gt.checkPatternErrors=function(t,e){if(t){t.trailingComma>-1&&this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var s=e?t.parenthesizedAssign:t.parenthesizedBind;s>-1&&this.raiseRecoverable(s,e?"Assigning to rvalue":"Parenthesized pattern")}},gt.checkExpressionErrors=function(t,e){if(!t)return!1;var{shorthandAssign:s,doubleProto:r}=t;if(!e)return s>=0||r>=0;s>=0&&this.raise(s,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")},gt.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},gt.isSimpleAssignTarget=function(t){return t.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(t.expression):t.type==="Identifier"||t.type==="MemberExpression"};var I=at.prototype;I.parseTopLevel=function(t){var e=Object.create(null);for(t.body||(t.body=[]);this.type!==a.eof;){var s=this.parseStatement(null,!0,e);t.body.push(s)}if(this.inModule)for(var r=0,n=Object.keys(this.undefinedExports);r<n.length;r+=1){var h=n[r];this.raiseRecoverable(this.undefinedExports[h].start,"Export '"+h+"' is not defined")}return this.adaptDirectivePrologue(t.body),this.next(),t.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(t,"Program")};var ke={kind:"loop"},hi={kind:"switch"};I.isLet=function(t){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;d.lastIndex=this.pos;var e=d.exec(this.input),s=this.pos+e[0].length,r=this.fullCharCodeAt(s);if(r===91||r===92)return!0;if(t)return!1;if(r===123)return!0;if(dt(r)){var n=s;do s+=r<=65535?1:2;while(J(r=this.fullCharCodeAt(s)));if(r===92)return!0;var h=this.input.slice(n,s);if(!oe.test(h))return!0}return!1},I.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;d.lastIndex=this.pos;var t,e=d.exec(this.input),s=this.pos+e[0].length;return!(Y.test(this.input.slice(this.pos,s))||this.input.slice(s,s+8)!=="function"||s+8!==this.input.length&&(J(t=this.fullCharCodeAt(s+8))||t===92))},I.isUsingKeyword=function(t,e){if(this.options.ecmaVersion<17||!this.isContextual(t?"await":"using"))return!1;d.lastIndex=this.pos;var s=d.exec(this.input),r=this.pos+s[0].length;if(Y.test(this.input.slice(this.pos,r)))return!1;if(t){var n,h=r+5;if(this.input.slice(r,h)!=="using"||h===this.input.length||J(n=this.fullCharCodeAt(h))||n===92)return!1;d.lastIndex=h;var l=d.exec(this.input);if(r=h+l[0].length,l&&Y.test(this.input.slice(h,r)))return!1}var p=this.fullCharCodeAt(r);if(!dt(p)&&p!==92)return!1;var m=r;do r+=p<=65535?1:2;while(J(p=this.fullCharCodeAt(r)));if(p===92)return!0;var y=this.input.slice(m,r);return!(oe.test(y)||e&&y==="of")},I.isAwaitUsing=function(t){return this.isUsingKeyword(!0,t)},I.isUsing=function(t){return this.isUsingKeyword(!1,t)},I.parseStatement=function(t,e,s){var r,n=this.type,h=this.startNode();switch(this.isLet(t)&&(n=a._var,r="let"),n){case a._break:case a._continue:return this.parseBreakContinueStatement(h,n.keyword);case a._debugger:return this.parseDebuggerStatement(h);case a._do:return this.parseDoStatement(h);case a._for:return this.parseForStatement(h);case a._function:return t&&(this.strict||t!=="if"&&t!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(h,!1,!t);case a._class:return t&&this.unexpected(),this.parseClass(h,!0);case a._if:return this.parseIfStatement(h);case a._return:return this.parseReturnStatement(h);case a._switch:return this.parseSwitchStatement(h);case a._throw:return this.parseThrowStatement(h);case a._try:return this.parseTryStatement(h);case a._const:case a._var:return r=r||this.value,t&&r!=="var"&&this.unexpected(),this.parseVarStatement(h,r);case a._while:return this.parseWhileStatement(h);case a._with:return this.parseWithStatement(h);case a.braceL:return this.parseBlock(!0,h);case a.semi:return this.parseEmptyStatement(h);case a._export:case a._import:if(this.options.ecmaVersion>10&&n===a._import){d.lastIndex=this.pos;var l=d.exec(this.input),p=this.pos+l[0].length,m=this.input.charCodeAt(p);if(m===40||m===46)return this.parseExpressionStatement(h,this.parseExpression())}return this.options.allowImportExportEverywhere||(e||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),n===a._import?this.parseImport(h):this.parseExport(h,s);default:if(this.isAsyncFunction())return t&&this.unexpected(),this.next(),this.parseFunctionStatement(h,!0,!t);var y=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(y)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),y==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(h,!1,y),this.semicolon(),this.finishNode(h,"VariableDeclaration");var x=this.value,k=this.parseExpression();return n===a.name&&k.type==="Identifier"&&this.eat(a.colon)?this.parseLabeledStatement(h,x,k,t):this.parseExpressionStatement(h,k)}},I.parseBreakContinueStatement=function(t,e){var s=e==="break";this.next(),this.eat(a.semi)||this.insertSemicolon()?t.label=null:this.type!==a.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var r=0;r<this.labels.length;++r){var n=this.labels[r];if(t.label==null||n.name===t.label.name){if(n.kind!=null&&(s||n.kind==="loop"))break;if(t.label&&s)break}}return r===this.labels.length&&this.raise(t.start,"Unsyntactic "+e),this.finishNode(t,s?"BreakStatement":"ContinueStatement")},I.parseDebuggerStatement=function(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")},I.parseDoStatement=function(t){return this.next(),this.labels.push(ke),t.body=this.parseStatement("do"),this.labels.pop(),this.expect(a._while),t.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(a.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")},I.parseForStatement=function(t){this.next();var e=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(ke),this.enterScope(0),this.expect(a.parenL),this.type===a.semi)return e>-1&&this.unexpected(e),this.parseFor(t,null);var s=this.isLet();if(this.type===a._var||this.type===a._const||s){var r=this.startNode(),n=s?"let":this.value;return this.next(),this.parseVar(r,!0,n),this.finishNode(r,"VariableDeclaration"),this.parseForAfterInit(t,r,e)}var h=this.isContextual("let"),l=!1,p=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(p){var m=this.startNode();return this.next(),p==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(m,!0,p),this.finishNode(m,"VariableDeclaration"),this.parseForAfterInit(t,m,e)}var y=this.containsEsc,x=new Yt,k=this.start,b=e>-1?this.parseExprSubscripts(x,"await"):this.parseExpression(!0,x);return this.type===a._in||(l=this.options.ecmaVersion>=6&&this.isContextual("of"))?(e>-1?(this.type===a._in&&this.unexpected(e),t.await=!0):l&&this.options.ecmaVersion>=8&&(b.start!==k||y||b.type!=="Identifier"||b.name!=="async"?this.options.ecmaVersion>=9&&(t.await=!1):this.unexpected()),h&&l&&this.raise(b.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(b,!1,x),this.checkLValPattern(b),this.parseForIn(t,b)):(this.checkExpressionErrors(x,!0),e>-1&&this.unexpected(e),this.parseFor(t,b))},I.parseForAfterInit=function(t,e,s){return(this.type===a._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&e.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===a._in?s>-1&&this.unexpected(s):t.await=s>-1),this.parseForIn(t,e)):(s>-1&&this.unexpected(s),this.parseFor(t,e))},I.parseFunctionStatement=function(t,e,s){return this.next(),this.parseFunction(t,Xt|(s?0:qt),!1,e)},I.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(a._else)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")},I.parseReturnStatement=function(t){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(a.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")},I.parseSwitchStatement=function(t){var e;this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(a.braceL),this.labels.push(hi),this.enterScope(1024);for(var s=!1;this.type!==a.braceR;)if(this.type===a._case||this.type===a._default){var r=this.type===a._case;e&&this.finishNode(e,"SwitchCase"),t.cases.push(e=this.startNode()),e.consequent=[],this.next(),r?e.test=this.parseExpression():(s&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),s=!0,e.test=null),this.expect(a.colon)}else e||this.unexpected(),e.consequent.push(this.parseStatement(null));return this.exitScope(),e&&this.finishNode(e,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(t,"SwitchStatement")},I.parseThrowStatement=function(t){return this.next(),Y.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")};var Me=[];I.parseCatchClauseParam=function(){var t=this.parseBindingAtom(),e=t.type==="Identifier";return this.enterScope(e?32:0),this.checkLValPattern(t,e?4:2),this.expect(a.parenR),t},I.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===a._catch){var e=this.startNode();this.next(),this.eat(a.parenL)?e.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),e.param=null,this.enterScope(0)),e.body=this.parseBlock(!1),this.exitScope(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(a._finally)?this.parseBlock():null,t.handler||t.finalizer||this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")},I.parseVarStatement=function(t,e,s){return this.next(),this.parseVar(t,!1,e,s),this.semicolon(),this.finishNode(t,"VariableDeclaration")},I.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(ke),t.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(t,"WhileStatement")},I.parseWithStatement=function(t){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement("with"),this.finishNode(t,"WithStatement")},I.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")},I.parseLabeledStatement=function(t,e,s,r){for(var n=0,h=this.labels;n<h.length;n+=1)h[n].name===e&&this.raise(s.start,"Label '"+e+"' is already declared");for(var l=this.type.isLoop?"loop":this.type===a._switch?"switch":null,p=this.labels.length-1;p>=0;p--){var m=this.labels[p];if(m.statementStart!==t.start)break;m.statementStart=this.start,m.kind=l}return this.labels.push({name:e,kind:l,statementStart:this.start}),t.body=this.parseStatement(r?r.indexOf("label")===-1?r+"label":r:"label"),this.labels.pop(),t.label=s,this.finishNode(t,"LabeledStatement")},I.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")},I.parseBlock=function(t,e,s){for(t===void 0&&(t=!0),e===void 0&&(e=this.startNode()),e.body=[],this.expect(a.braceL),t&&this.enterScope(0);this.type!==a.braceR;){var r=this.parseStatement(null);e.body.push(r)}return s&&(this.strict=!1),this.next(),t&&this.exitScope(),this.finishNode(e,"BlockStatement")},I.parseFor=function(t,e){return t.init=e,this.expect(a.semi),t.test=this.type===a.semi?null:this.parseExpression(),this.expect(a.semi),t.update=this.type===a.parenR?null:this.parseExpression(),this.expect(a.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,"ForStatement")},I.parseForIn=function(t,e){var s=this.type===a._in;return this.next(),e.type==="VariableDeclaration"&&e.declarations[0].init!=null&&(!s||this.options.ecmaVersion<8||this.strict||e.kind!=="var"||e.declarations[0].id.type!=="Identifier")&&this.raise(e.start,(s?"for-in":"for-of")+" loop variable declaration may not have an initializer"),t.left=e,t.right=s?this.parseExpression():this.parseMaybeAssign(),this.expect(a.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,s?"ForInStatement":"ForOfStatement")},I.parseVar=function(t,e,s,r){for(t.declarations=[],t.kind=s;;){var n=this.startNode();if(this.parseVarId(n,s),this.eat(a.eq)?n.init=this.parseMaybeAssign(e):r||s!=="const"||this.type===a._in||this.options.ecmaVersion>=6&&this.isContextual("of")?r||s!=="using"&&s!=="await using"||!(this.options.ecmaVersion>=17)||this.type===a._in||this.isContextual("of")?r||n.id.type==="Identifier"||e&&(this.type===a._in||this.isContextual("of"))?n.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.raise(this.lastTokEnd,"Missing initializer in "+s+" declaration"):this.unexpected(),t.declarations.push(this.finishNode(n,"VariableDeclarator")),!this.eat(a.comma))break}return t},I.parseVarId=function(t,e){t.id=e==="using"||e==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(t.id,e==="var"?1:2,!1)};var Xt=1,qt=2;function je(t,e){var s=e.key.name,r=t[s],n="true";return e.type!=="MethodDefinition"||e.kind!=="get"&&e.kind!=="set"||(n=(e.static?"s":"i")+e.kind),r==="iget"&&n==="iset"||r==="iset"&&n==="iget"||r==="sget"&&n==="sset"||r==="sset"&&n==="sget"?(t[s]="true",!1):!!r||(t[s]=n,!1)}function Gt(t,e){var{computed:s,key:r}=t;return!s&&(r.type==="Identifier"&&r.name===e||r.type==="Literal"&&r.value===e)}I.parseFunction=function(t,e,s,r,n){this.initFunction(t),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===a.star&&e&qt&&this.unexpected(),t.generator=this.eat(a.star)),this.options.ecmaVersion>=8&&(t.async=!!r),e&Xt&&(t.id=4&e&&this.type!==a.name?null:this.parseIdent(),!t.id||e&qt||this.checkLValSimple(t.id,this.strict||t.generator||t.async?this.treatFunctionsAsVar?1:2:3));var h=this.yieldPos,l=this.awaitPos,p=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(pe(t.async,t.generator)),e&Xt||(t.id=this.type===a.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,s,!1,n),this.yieldPos=h,this.awaitPos=l,this.awaitIdentPos=p,this.finishNode(t,e&Xt?"FunctionDeclaration":"FunctionExpression")},I.parseFunctionParams=function(t){this.expect(a.parenL),t.params=this.parseBindingList(a.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},I.parseClass=function(t,e){this.next();var s=this.strict;this.strict=!0,this.parseClassId(t,e),this.parseClassSuper(t);var r=this.enterClassBody(),n=this.startNode(),h=!1;for(n.body=[],this.expect(a.braceL);this.type!==a.braceR;){var l=this.parseClassElement(t.superClass!==null);l&&(n.body.push(l),l.type==="MethodDefinition"&&l.kind==="constructor"?(h&&this.raiseRecoverable(l.start,"Duplicate constructor in the same class"),h=!0):l.key&&l.key.type==="PrivateIdentifier"&&je(r,l)&&this.raiseRecoverable(l.key.start,"Identifier '#"+l.key.name+"' has already been declared"))}return this.strict=s,this.next(),t.body=this.finishNode(n,"ClassBody"),this.exitClassBody(),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")},I.parseClassElement=function(t){if(this.eat(a.semi))return null;var e=this.options.ecmaVersion,s=this.startNode(),r="",n=!1,h=!1,l="method",p=!1;if(this.eatContextual("static")){if(e>=13&&this.eat(a.braceL))return this.parseClassStaticBlock(s),s;this.isClassElementNameStart()||this.type===a.star?p=!0:r="static"}if(s.static=p,!r&&e>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==a.star||this.canInsertSemicolon()?r="async":h=!0),!r&&(e>=9||!h)&&this.eat(a.star)&&(n=!0),!r&&!h&&!n){var m=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?l=m:r=m)}if(r?(s.computed=!1,s.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),s.key.name=r,this.finishNode(s.key,"Identifier")):this.parseClassElementName(s),e<13||this.type===a.parenL||l!=="method"||n||h){var y=!s.static&&Gt(s,"constructor"),x=y&&t;y&&l!=="method"&&this.raise(s.key.start,"Constructor can't have get/set modifier"),s.kind=y?"constructor":l,this.parseClassMethod(s,n,h,x)}else this.parseClassField(s);return s},I.isClassElementNameStart=function(){return this.type===a.name||this.type===a.privateId||this.type===a.num||this.type===a.string||this.type===a.bracketL||this.type.keyword},I.parseClassElementName=function(t){this.type===a.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),t.computed=!1,t.key=this.parsePrivateIdent()):this.parsePropertyName(t)},I.parseClassMethod=function(t,e,s,r){var n=t.key;t.kind==="constructor"?(e&&this.raise(n.start,"Constructor can't be a generator"),s&&this.raise(n.start,"Constructor can't be an async method")):t.static&&Gt(t,"prototype")&&this.raise(n.start,"Classes may not have a static property named prototype");var h=t.value=this.parseMethod(e,s,r);return t.kind==="get"&&h.params.length!==0&&this.raiseRecoverable(h.start,"getter should have no params"),t.kind==="set"&&h.params.length!==1&&this.raiseRecoverable(h.start,"setter should have exactly one param"),t.kind==="set"&&h.params[0].type==="RestElement"&&this.raiseRecoverable(h.params[0].start,"Setter cannot use rest params"),this.finishNode(t,"MethodDefinition")},I.parseClassField=function(t){return Gt(t,"constructor")?this.raise(t.key.start,"Classes can't have a field named 'constructor'"):t.static&&Gt(t,"prototype")&&this.raise(t.key.start,"Classes can't have a static field named 'prototype'"),this.eat(a.eq)?(this.enterScope(576),t.value=this.parseMaybeAssign(),this.exitScope()):t.value=null,this.semicolon(),this.finishNode(t,"PropertyDefinition")},I.parseClassStaticBlock=function(t){t.body=[];var e=this.labels;for(this.labels=[],this.enterScope(320);this.type!==a.braceR;){var s=this.parseStatement(null);t.body.push(s)}return this.next(),this.exitScope(),this.labels=e,this.finishNode(t,"StaticBlock")},I.parseClassId=function(t,e){this.type===a.name?(t.id=this.parseIdent(),e&&this.checkLValSimple(t.id,2,!1)):(e===!0&&this.unexpected(),t.id=null)},I.parseClassSuper=function(t){t.superClass=this.eat(a._extends)?this.parseExprSubscripts(null,!1):null},I.enterClassBody=function(){var t={declared:Object.create(null),used:[]};return this.privateNameStack.push(t),t.declared},I.exitClassBody=function(){var t=this.privateNameStack.pop(),{declared:e,used:s}=t;if(this.options.checkPrivateFields)for(var r=this.privateNameStack.length,n=r===0?null:this.privateNameStack[r-1],h=0;h<s.length;++h){var l=s[h];jt(e,l.name)||(n?n.used.push(l):this.raiseRecoverable(l.start,"Private field '#"+l.name+"' must be declared in an enclosing class"))}},I.parseExportAllDeclaration=function(t,e){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(t.exported=this.parseModuleExportName(),this.checkExport(e,t.exported,this.lastTokStart)):t.exported=null),this.expectContextual("from"),this.type!==a.string&&this.unexpected(),t.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(t,"ExportAllDeclaration")},I.parseExport=function(t,e){if(this.next(),this.eat(a.star))return this.parseExportAllDeclaration(t,e);if(this.eat(a._default))return this.checkExport(e,"default",this.lastTokStart),t.declaration=this.parseExportDefaultDeclaration(),this.finishNode(t,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())t.declaration=this.parseExportDeclaration(t),t.declaration.type==="VariableDeclaration"?this.checkVariableExport(e,t.declaration.declarations):this.checkExport(e,t.declaration.id,t.declaration.id.start),t.specifiers=[],t.source=null,this.options.ecmaVersion>=16&&(t.attributes=[]);else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(e),this.eatContextual("from"))this.type!==a.string&&this.unexpected(),t.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause());else{for(var s=0,r=t.specifiers;s<r.length;s+=1){var n=r[s];this.checkUnreserved(n.local),this.checkLocalExport(n.local),n.local.type==="Literal"&&this.raise(n.local.start,"A string literal cannot be used as an exported binding without `from`.")}t.source=null,this.options.ecmaVersion>=16&&(t.attributes=[])}this.semicolon()}return this.finishNode(t,"ExportNamedDeclaration")},I.parseExportDeclaration=function(t){return this.parseStatement(null)},I.parseExportDefaultDeclaration=function(){var t;if(this.type===a._function||(t=this.isAsyncFunction())){var e=this.startNode();return this.next(),t&&this.next(),this.parseFunction(e,4|Xt,!1,t)}if(this.type===a._class){var s=this.startNode();return this.parseClass(s,"nullableID")}var r=this.parseMaybeAssign();return this.semicolon(),r},I.checkExport=function(t,e,s){t&&(typeof e!="string"&&(e=e.type==="Identifier"?e.name:e.value),jt(t,e)&&this.raiseRecoverable(s,"Duplicate export '"+e+"'"),t[e]=!0)},I.checkPatternExport=function(t,e){var s=e.type;if(s==="Identifier")this.checkExport(t,e,e.start);else if(s==="ObjectPattern")for(var r=0,n=e.properties;r<n.length;r+=1){var h=n[r];this.checkPatternExport(t,h)}else if(s==="ArrayPattern")for(var l=0,p=e.elements;l<p.length;l+=1){var m=p[l];m&&this.checkPatternExport(t,m)}else s==="Property"?this.checkPatternExport(t,e.value):s==="AssignmentPattern"?this.checkPatternExport(t,e.left):s==="RestElement"&&this.checkPatternExport(t,e.argument)},I.checkVariableExport=function(t,e){if(t)for(var s=0,r=e;s<r.length;s+=1){var n=r[s];this.checkPatternExport(t,n.id)}},I.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},I.parseExportSpecifier=function(t){var e=this.startNode();return e.local=this.parseModuleExportName(),e.exported=this.eatContextual("as")?this.parseModuleExportName():e.local,this.checkExport(t,e.exported,e.exported.start),this.finishNode(e,"ExportSpecifier")},I.parseExportSpecifiers=function(t){var e=[],s=!0;for(this.expect(a.braceL);!this.eat(a.braceR);){if(s)s=!1;else if(this.expect(a.comma),this.afterTrailingComma(a.braceR))break;e.push(this.parseExportSpecifier(t))}return e},I.parseImport=function(t){return this.next(),this.type===a.string?(t.specifiers=Me,t.source=this.parseExprAtom()):(t.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),t.source=this.type===a.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(t,"ImportDeclaration")},I.parseImportSpecifier=function(){var t=this.startNode();return t.imported=this.parseModuleExportName(),this.eatContextual("as")?t.local=this.parseIdent():(this.checkUnreserved(t.imported),t.local=t.imported),this.checkLValSimple(t.local,2),this.finishNode(t,"ImportSpecifier")},I.parseImportDefaultSpecifier=function(){var t=this.startNode();return t.local=this.parseIdent(),this.checkLValSimple(t.local,2),this.finishNode(t,"ImportDefaultSpecifier")},I.parseImportNamespaceSpecifier=function(){var t=this.startNode();return this.next(),this.expectContextual("as"),t.local=this.parseIdent(),this.checkLValSimple(t.local,2),this.finishNode(t,"ImportNamespaceSpecifier")},I.parseImportSpecifiers=function(){var t=[],e=!0;if(this.type===a.name&&(t.push(this.parseImportDefaultSpecifier()),!this.eat(a.comma)))return t;if(this.type===a.star)return t.push(this.parseImportNamespaceSpecifier()),t;for(this.expect(a.braceL);!this.eat(a.braceR);){if(e)e=!1;else if(this.expect(a.comma),this.afterTrailingComma(a.braceR))break;t.push(this.parseImportSpecifier())}return t},I.parseWithClause=function(){var t=[];if(!this.eat(a._with))return t;this.expect(a.braceL);for(var e={},s=!0;!this.eat(a.braceR);){if(s)s=!1;else if(this.expect(a.comma),this.afterTrailingComma(a.braceR))break;var r=this.parseImportAttribute(),n=r.key.type==="Identifier"?r.key.name:r.key.value;jt(e,n)&&this.raiseRecoverable(r.key.start,"Duplicate attribute key '"+n+"'"),e[n]=!0,t.push(r)}return t},I.parseImportAttribute=function(){var t=this.startNode();return t.key=this.type===a.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(a.colon),this.type!==a.string&&this.unexpected(),t.value=this.parseExprAtom(),this.finishNode(t,"ImportAttribute")},I.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===a.string){var t=this.parseLiteral(this.value);return De.test(t.value)&&this.raise(t.start,"An export name cannot include a lone surrogate."),t}return this.parseIdent(!0)},I.adaptDirectivePrologue=function(t){for(var e=0;e<t.length&&this.isDirectiveCandidate(t[e]);++e)t[e].directive=t[e].expression.raw.slice(1,-1)},I.isDirectiveCandidate=function(t){return this.options.ecmaVersion>=5&&t.type==="ExpressionStatement"&&t.expression.type==="Literal"&&typeof t.expression.value=="string"&&(this.input[t.start]==='"'||this.input[t.start]==="'")};var Et=at.prototype;Et.toAssignable=function(t,e,s){if(this.options.ecmaVersion>=6&&t)switch(t.type){case"Identifier":this.inAsync&&t.name==="await"&&this.raise(t.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern",s&&this.checkPatternErrors(s,!0);for(var r=0,n=t.properties;r<n.length;r+=1){var h=n[r];this.toAssignable(h,e),h.type!=="RestElement"||h.argument.type!=="ArrayPattern"&&h.argument.type!=="ObjectPattern"||this.raise(h.argument.start,"Unexpected token")}break;case"Property":t.kind!=="init"&&this.raise(t.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(t.value,e);break;case"ArrayExpression":t.type="ArrayPattern",s&&this.checkPatternErrors(s,!0),this.toAssignableList(t.elements,e);break;case"SpreadElement":t.type="RestElement",this.toAssignable(t.argument,e),t.argument.type==="AssignmentPattern"&&this.raise(t.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":t.operator!=="="&&this.raise(t.left.end,"Only '=' operator can be used for specifying default value."),t.type="AssignmentPattern",delete t.operator,this.toAssignable(t.left,e);break;case"ParenthesizedExpression":this.toAssignable(t.expression,e,s);break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!e)break;default:this.raise(t.start,"Assigning to rvalue")}else s&&this.checkPatternErrors(s,!0);return t},Et.toAssignableList=function(t,e){for(var s=t.length,r=0;r<s;r++){var n=t[r];n&&this.toAssignable(n,e)}if(s){var h=t[s-1];this.options.ecmaVersion===6&&e&&h&&h.type==="RestElement"&&h.argument.type!=="Identifier"&&this.unexpected(h.argument.start)}return t},Et.parseSpread=function(t){var e=this.startNode();return this.next(),e.argument=this.parseMaybeAssign(!1,t),this.finishNode(e,"SpreadElement")},Et.parseRestBinding=function(){var t=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==a.name&&this.unexpected(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")},Et.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case a.bracketL:var t=this.startNode();return this.next(),t.elements=this.parseBindingList(a.bracketR,!0,!0),this.finishNode(t,"ArrayPattern");case a.braceL:return this.parseObj(!0)}return this.parseIdent()},Et.parseBindingList=function(t,e,s,r){for(var n=[],h=!0;!this.eat(t);)if(h?h=!1:this.expect(a.comma),e&&this.type===a.comma)n.push(null);else{if(s&&this.afterTrailingComma(t))break;if(this.type===a.ellipsis){var l=this.parseRestBinding();this.parseBindingListItem(l),n.push(l),this.type===a.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(t);break}n.push(this.parseAssignableListItem(r))}return n},Et.parseAssignableListItem=function(t){var e=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(e),e},Et.parseBindingListItem=function(t){return t},Et.parseMaybeDefault=function(t,e,s){if(s=s||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(a.eq))return s;var r=this.startNodeAt(t,e);return r.left=s,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")},Et.checkLValSimple=function(t,e,s){e===void 0&&(e=0);var r=e!==0;switch(t.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(t.name)&&this.raiseRecoverable(t.start,(r?"Binding ":"Assigning to ")+t.name+" in strict mode"),r&&(e===2&&t.name==="let"&&this.raiseRecoverable(t.start,"let is disallowed as a lexically bound name"),s&&(jt(s,t.name)&&this.raiseRecoverable(t.start,"Argument name clash"),s[t.name]=!0),e!==5&&this.declareName(t.name,e,t.start));break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":r&&this.raiseRecoverable(t.start,"Binding member expression");break;case"ParenthesizedExpression":return r&&this.raiseRecoverable(t.start,"Binding parenthesized expression"),this.checkLValSimple(t.expression,e,s);default:this.raise(t.start,(r?"Binding":"Assigning to")+" rvalue")}},Et.checkLValPattern=function(t,e,s){switch(e===void 0&&(e=0),t.type){case"ObjectPattern":for(var r=0,n=t.properties;r<n.length;r+=1){var h=n[r];this.checkLValInnerPattern(h,e,s)}break;case"ArrayPattern":for(var l=0,p=t.elements;l<p.length;l+=1){var m=p[l];m&&this.checkLValInnerPattern(m,e,s)}break;default:this.checkLValSimple(t,e,s)}},Et.checkLValInnerPattern=function(t,e,s){switch(e===void 0&&(e=0),t.type){case"Property":this.checkLValInnerPattern(t.value,e,s);break;case"AssignmentPattern":this.checkLValPattern(t.left,e,s);break;case"RestElement":this.checkLValPattern(t.argument,e,s);break;default:this.checkLValPattern(t,e,s)}};var St=function(t,e,s,r,n){this.token=t,this.isExpr=!!e,this.preserveSpace=!!s,this.override=r,this.generator=!!n},rt={b_stat:new St("{",!1),b_expr:new St("{",!0),b_tmpl:new St("${",!1),p_stat:new St("(",!1),p_expr:new St("(",!0),q_tmpl:new St("`",!0,!0,function(t){return t.tryReadTemplateToken()}),f_stat:new St("function",!1),f_expr:new St("function",!0),f_expr_gen:new St("function",!0,!1,null,!0),f_gen:new St("function",!1,!1,null,!0)},Bt=at.prototype;Bt.initialContext=function(){return[rt.b_stat]},Bt.curContext=function(){return this.context[this.context.length-1]},Bt.braceIsBlock=function(t){var e=this.curContext();return e===rt.f_expr||e===rt.f_stat||(t!==a.colon||e!==rt.b_stat&&e!==rt.b_expr?t===a._return||t===a.name&&this.exprAllowed?Y.test(this.input.slice(this.lastTokEnd,this.start)):t===a._else||t===a.semi||t===a.eof||t===a.parenR||t===a.arrow||(t===a.braceL?e===rt.b_stat:t!==a._var&&t!==a._const&&t!==a.name&&!this.exprAllowed):!e.isExpr)},Bt.inGeneratorContext=function(){for(var t=this.context.length-1;t>=1;t--){var e=this.context[t];if(e.token==="function")return e.generator}return!1},Bt.updateContext=function(t){var e,s=this.type;s.keyword&&t===a.dot?this.exprAllowed=!1:(e=s.updateContext)?e.call(this,t):this.exprAllowed=s.beforeExpr},Bt.overrideContext=function(t){this.curContext()!==t&&(this.context[this.context.length-1]=t)},a.parenR.updateContext=a.braceR.updateContext=function(){if(this.context.length!==1){var t=this.context.pop();t===rt.b_stat&&this.curContext().token==="function"&&(t=this.context.pop()),this.exprAllowed=!t.isExpr}else this.exprAllowed=!0},a.braceL.updateContext=function(t){this.context.push(this.braceIsBlock(t)?rt.b_stat:rt.b_expr),this.exprAllowed=!0},a.dollarBraceL.updateContext=function(){this.context.push(rt.b_tmpl),this.exprAllowed=!0},a.parenL.updateContext=function(t){var e=t===a._if||t===a._for||t===a._with||t===a._while;this.context.push(e?rt.p_stat:rt.p_expr),this.exprAllowed=!0},a.incDec.updateContext=function(){},a._function.updateContext=a._class.updateContext=function(t){!t.beforeExpr||t===a._else||t===a.semi&&this.curContext()!==rt.p_stat||t===a._return&&Y.test(this.input.slice(this.lastTokEnd,this.start))||(t===a.colon||t===a.braceL)&&this.curContext()===rt.b_stat?this.context.push(rt.f_stat):this.context.push(rt.f_expr),this.exprAllowed=!1},a.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0},a.backQuote.updateContext=function(){this.curContext()===rt.q_tmpl?this.context.pop():this.context.push(rt.q_tmpl),this.exprAllowed=!1},a.star.updateContext=function(t){if(t===a._function){var e=this.context.length-1;this.context[e]===rt.f_expr?this.context[e]=rt.f_expr_gen:this.context[e]=rt.f_gen}this.exprAllowed=!0},a.name.updateContext=function(t){var e=!1;this.options.ecmaVersion>=6&&t!==a.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(e=!0),this.exprAllowed=e};var O=at.prototype;function Fe(t){return t.type==="Identifier"||t.type==="ParenthesizedExpression"&&Fe(t.expression)}function we(t){return t.type==="MemberExpression"&&t.property.type==="PrivateIdentifier"||t.type==="ChainExpression"&&we(t.expression)||t.type==="ParenthesizedExpression"&&we(t.expression)}O.checkPropClash=function(t,e,s){if(!(this.options.ecmaVersion>=9&&t.type==="SpreadElement"||this.options.ecmaVersion>=6&&(t.computed||t.method||t.shorthand))){var r,n=t.key;switch(n.type){case"Identifier":r=n.name;break;case"Literal":r=String(n.value);break;default:return}var h=t.kind;if(this.options.ecmaVersion>=6)r==="__proto__"&&h==="init"&&(e.proto&&(s?s.doubleProto<0&&(s.doubleProto=n.start):this.raiseRecoverable(n.start,"Redefinition of __proto__ property")),e.proto=!0);else{var l=e[r="$"+r];if(l)(h==="init"?this.strict&&l.init||l.get||l.set:l.init||l[h])&&this.raiseRecoverable(n.start,"Redefinition of property");else l=e[r]={init:!1,get:!1,set:!1};l[h]=!0}}},O.parseExpression=function(t,e){var s=this.start,r=this.startLoc,n=this.parseMaybeAssign(t,e);if(this.type===a.comma){var h=this.startNodeAt(s,r);for(h.expressions=[n];this.eat(a.comma);)h.expressions.push(this.parseMaybeAssign(t,e));return this.finishNode(h,"SequenceExpression")}return n},O.parseMaybeAssign=function(t,e,s){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(t);this.exprAllowed=!1}var r=!1,n=-1,h=-1,l=-1;e?(n=e.parenthesizedAssign,h=e.trailingComma,l=e.doubleProto,e.parenthesizedAssign=e.trailingComma=-1):(e=new Yt,r=!0);var p=this.start,m=this.startLoc;this.type!==a.parenL&&this.type!==a.name||(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=t==="await");var y=this.parseMaybeConditional(t,e);if(s&&(y=s.call(this,y,p,m)),this.type.isAssign){var x=this.startNodeAt(p,m);return x.operator=this.value,this.type===a.eq&&(y=this.toAssignable(y,!1,e)),r||(e.parenthesizedAssign=e.trailingComma=e.doubleProto=-1),e.shorthandAssign>=y.start&&(e.shorthandAssign=-1),this.type===a.eq?this.checkLValPattern(y):this.checkLValSimple(y),x.left=y,this.next(),x.right=this.parseMaybeAssign(t),l>-1&&(e.doubleProto=l),this.finishNode(x,"AssignmentExpression")}return r&&this.checkExpressionErrors(e,!0),n>-1&&(e.parenthesizedAssign=n),h>-1&&(e.trailingComma=h),y},O.parseMaybeConditional=function(t,e){var s=this.start,r=this.startLoc,n=this.parseExprOps(t,e);if(this.checkExpressionErrors(e))return n;if(this.eat(a.question)){var h=this.startNodeAt(s,r);return h.test=n,h.consequent=this.parseMaybeAssign(),this.expect(a.colon),h.alternate=this.parseMaybeAssign(t),this.finishNode(h,"ConditionalExpression")}return n},O.parseExprOps=function(t,e){var s=this.start,r=this.startLoc,n=this.parseMaybeUnary(e,!1,!1,t);return this.checkExpressionErrors(e)||n.start===s&&n.type==="ArrowFunctionExpression"?n:this.parseExprOp(n,s,r,-1,t)},O.parseExprOp=function(t,e,s,r,n){var h=this.type.binop;if(h!=null&&(!n||this.type!==a._in)&&h>r){var l=this.type===a.logicalOR||this.type===a.logicalAND,p=this.type===a.coalesce;p&&(h=a.logicalAND.binop);var m=this.value;this.next();var y=this.start,x=this.startLoc,k=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,n),y,x,h,n),b=this.buildBinary(e,s,t,k,m,l||p);return(l&&this.type===a.coalesce||p&&(this.type===a.logicalOR||this.type===a.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(b,e,s,r,n)}return t},O.buildBinary=function(t,e,s,r,n,h){r.type==="PrivateIdentifier"&&this.raise(r.start,"Private identifier can only be left side of binary expression");var l=this.startNodeAt(t,e);return l.left=s,l.operator=n,l.right=r,this.finishNode(l,h?"LogicalExpression":"BinaryExpression")},O.parseMaybeUnary=function(t,e,s,r){var n,h=this.start,l=this.startLoc;if(this.isContextual("await")&&this.canAwait)n=this.parseAwait(r),e=!0;else if(this.type.prefix){var p=this.startNode(),m=this.type===a.incDec;p.operator=this.value,p.prefix=!0,this.next(),p.argument=this.parseMaybeUnary(null,!0,m,r),this.checkExpressionErrors(t,!0),m?this.checkLValSimple(p.argument):this.strict&&p.operator==="delete"&&Fe(p.argument)?this.raiseRecoverable(p.start,"Deleting local variable in strict mode"):p.operator==="delete"&&we(p.argument)?this.raiseRecoverable(p.start,"Private fields can not be deleted"):e=!0,n=this.finishNode(p,m?"UpdateExpression":"UnaryExpression")}else if(e||this.type!==a.privateId){if(n=this.parseExprSubscripts(t,r),this.checkExpressionErrors(t))return n;for(;this.type.postfix&&!this.canInsertSemicolon();){var y=this.startNodeAt(h,l);y.operator=this.value,y.prefix=!1,y.argument=n,this.checkLValSimple(n),this.next(),n=this.finishNode(y,"UpdateExpression")}}else(r||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),n=this.parsePrivateIdent(),this.type!==a._in&&this.unexpected();return s||!this.eat(a.starstar)?n:e?void this.unexpected(this.lastTokStart):this.buildBinary(h,l,n,this.parseMaybeUnary(null,!1,!1,r),"**",!1)},O.parseExprSubscripts=function(t,e){var s=this.start,r=this.startLoc,n=this.parseExprAtom(t,e);if(n.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return n;var h=this.parseSubscripts(n,s,r,!1,e);return t&&h.type==="MemberExpression"&&(t.parenthesizedAssign>=h.start&&(t.parenthesizedAssign=-1),t.parenthesizedBind>=h.start&&(t.parenthesizedBind=-1),t.trailingComma>=h.start&&(t.trailingComma=-1)),h},O.parseSubscripts=function(t,e,s,r,n){for(var h=this.options.ecmaVersion>=8&&t.type==="Identifier"&&t.name==="async"&&this.lastTokEnd===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&this.potentialArrowAt===t.start,l=!1;;){var p=this.parseSubscript(t,e,s,r,h,l,n);if(p.optional&&(l=!0),p===t||p.type==="ArrowFunctionExpression"){if(l){var m=this.startNodeAt(e,s);m.expression=p,p=this.finishNode(m,"ChainExpression")}return p}t=p}},O.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(a.arrow)},O.parseSubscriptAsyncArrow=function(t,e,s,r){return this.parseArrowExpression(this.startNodeAt(t,e),s,!0,r)},O.parseSubscript=function(t,e,s,r,n,h,l){var p=this.options.ecmaVersion>=11,m=p&&this.eat(a.questionDot);r&&m&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var y=this.eat(a.bracketL);if(y||m&&this.type!==a.parenL&&this.type!==a.backQuote||this.eat(a.dot)){var x=this.startNodeAt(e,s);x.object=t,y?(x.property=this.parseExpression(),this.expect(a.bracketR)):this.type===a.privateId&&t.type!=="Super"?x.property=this.parsePrivateIdent():x.property=this.parseIdent(this.options.allowReserved!=="never"),x.computed=!!y,p&&(x.optional=m),t=this.finishNode(x,"MemberExpression")}else if(!r&&this.eat(a.parenL)){var k=new Yt,b=this.yieldPos,P=this.awaitPos,Q=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var ft=this.parseExprList(a.parenR,this.options.ecmaVersion>=8,!1,k);if(n&&!m&&this.shouldParseAsyncArrow())return this.checkPatternErrors(k,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=b,this.awaitPos=P,this.awaitIdentPos=Q,this.parseSubscriptAsyncArrow(e,s,ft,l);this.checkExpressionErrors(k,!0),this.yieldPos=b||this.yieldPos,this.awaitPos=P||this.awaitPos,this.awaitIdentPos=Q||this.awaitIdentPos;var j=this.startNodeAt(e,s);j.callee=t,j.arguments=ft,p&&(j.optional=m),t=this.finishNode(j,"CallExpression")}else if(this.type===a.backQuote){(m||h)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var z=this.startNodeAt(e,s);z.tag=t,z.quasi=this.parseTemplate({isTagged:!0}),t=this.finishNode(z,"TaggedTemplateExpression")}return t},O.parseExprAtom=function(t,e,s){this.type===a.slash&&this.readRegexp();var r,n=this.potentialArrowAt===this.start;switch(this.type){case a._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),r=this.startNode(),this.next(),this.type!==a.parenL||this.allowDirectSuper||this.raise(r.start,"super() call outside constructor of a subclass"),this.type!==a.dot&&this.type!==a.bracketL&&this.type!==a.parenL&&this.unexpected(),this.finishNode(r,"Super");case a._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case a.name:var h=this.start,l=this.startLoc,p=this.containsEsc,m=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!p&&m.name==="async"&&!this.canInsertSemicolon()&&this.eat(a._function))return this.overrideContext(rt.f_expr),this.parseFunction(this.startNodeAt(h,l),0,!1,!0,e);if(n&&!this.canInsertSemicolon()){if(this.eat(a.arrow))return this.parseArrowExpression(this.startNodeAt(h,l),[m],!1,e);if(this.options.ecmaVersion>=8&&m.name==="async"&&this.type===a.name&&!p&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return m=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(a.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(h,l),[m],!0,e)}return m;case a.regexp:var y=this.value;return(r=this.parseLiteral(y.value)).regex={pattern:y.pattern,flags:y.flags},r;case a.num:case a.string:return this.parseLiteral(this.value);case a._null:case a._true:case a._false:return(r=this.startNode()).value=this.type===a._null?null:this.type===a._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,"Literal");case a.parenL:var x=this.start,k=this.parseParenAndDistinguishExpression(n,e);return t&&(t.parenthesizedAssign<0&&!this.isSimpleAssignTarget(k)&&(t.parenthesizedAssign=x),t.parenthesizedBind<0&&(t.parenthesizedBind=x)),k;case a.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(a.bracketR,!0,!0,t),this.finishNode(r,"ArrayExpression");case a.braceL:return this.overrideContext(rt.b_expr),this.parseObj(!1,t);case a._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case a._class:return this.parseClass(this.startNode(),!1);case a._new:return this.parseNew();case a.backQuote:return this.parseTemplate();case a._import:return this.options.ecmaVersion>=11?this.parseExprImport(s):this.unexpected();default:return this.parseExprAtomDefault()}},O.parseExprAtomDefault=function(){this.unexpected()},O.parseExprImport=function(t){var e=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===a.parenL&&!t)return this.parseDynamicImport(e);if(this.type===a.dot){var s=this.startNodeAt(e.start,e.loc&&e.loc.start);return s.name="import",e.meta=this.finishNode(s,"Identifier"),this.parseImportMeta(e)}this.unexpected()},O.parseDynamicImport=function(t){if(this.next(),t.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(a.parenR)?t.options=null:(this.expect(a.comma),this.afterTrailingComma(a.parenR)?t.options=null:(t.options=this.parseMaybeAssign(),this.eat(a.parenR)||(this.expect(a.comma),this.afterTrailingComma(a.parenR)||this.unexpected())));else if(!this.eat(a.parenR)){var e=this.start;this.eat(a.comma)&&this.eat(a.parenR)?this.raiseRecoverable(e,"Trailing comma is not allowed in import()"):this.unexpected(e)}return this.finishNode(t,"ImportExpression")},O.parseImportMeta=function(t){this.next();var e=this.containsEsc;return t.property=this.parseIdent(!0),t.property.name!=="meta"&&this.raiseRecoverable(t.property.start,"The only valid meta property for import is 'import.meta'"),e&&this.raiseRecoverable(t.start,"'import.meta' must not contain escaped characters"),this.options.sourceType==="module"||this.options.allowImportExportEverywhere||this.raiseRecoverable(t.start,"Cannot use 'import.meta' outside a module"),this.finishNode(t,"MetaProperty")},O.parseLiteral=function(t){var e=this.startNode();return e.value=t,e.raw=this.input.slice(this.start,this.end),e.raw.charCodeAt(e.raw.length-1)===110&&(e.bigint=e.value!=null?e.value.toString():e.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(e,"Literal")},O.parseParenExpression=function(){this.expect(a.parenL);var t=this.parseExpression();return this.expect(a.parenR),t},O.shouldParseArrow=function(t){return!this.canInsertSemicolon()},O.parseParenAndDistinguishExpression=function(t,e){var s,r=this.start,n=this.startLoc,h=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var l,p=this.start,m=this.startLoc,y=[],x=!0,k=!1,b=new Yt,P=this.yieldPos,Q=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==a.parenR;){if(x?x=!1:this.expect(a.comma),h&&this.afterTrailingComma(a.parenR,!0)){k=!0;break}if(this.type===a.ellipsis){l=this.start,y.push(this.parseParenItem(this.parseRestBinding())),this.type===a.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}y.push(this.parseMaybeAssign(!1,b,this.parseParenItem))}var ft=this.lastTokEnd,j=this.lastTokEndLoc;if(this.expect(a.parenR),t&&this.shouldParseArrow(y)&&this.eat(a.arrow))return this.checkPatternErrors(b,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=P,this.awaitPos=Q,this.parseParenArrowList(r,n,y,e);y.length&&!k||this.unexpected(this.lastTokStart),l&&this.unexpected(l),this.checkExpressionErrors(b,!0),this.yieldPos=P||this.yieldPos,this.awaitPos=Q||this.awaitPos,y.length>1?((s=this.startNodeAt(p,m)).expressions=y,this.finishNodeAt(s,"SequenceExpression",ft,j)):s=y[0]}else s=this.parseParenExpression();if(this.options.preserveParens){var z=this.startNodeAt(r,n);return z.expression=s,this.finishNode(z,"ParenthesizedExpression")}return s},O.parseParenItem=function(t){return t},O.parseParenArrowList=function(t,e,s,r){return this.parseArrowExpression(this.startNodeAt(t,e),s,!1,r)};var Be=[];O.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var t=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===a.dot){var e=this.startNodeAt(t.start,t.loc&&t.loc.start);e.name="new",t.meta=this.finishNode(e,"Identifier"),this.next();var s=this.containsEsc;return t.property=this.parseIdent(!0),t.property.name!=="target"&&this.raiseRecoverable(t.property.start,"The only valid meta property for new is 'new.target'"),s&&this.raiseRecoverable(t.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(t.start,"'new.target' can only be used in functions and class static block"),this.finishNode(t,"MetaProperty")}var r=this.start,n=this.startLoc;return t.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,n,!0,!1),this.eat(a.parenL)?t.arguments=this.parseExprList(a.parenR,this.options.ecmaVersion>=8,!1):t.arguments=Be,this.finishNode(t,"NewExpression")},O.parseTemplateElement=function(t){var e=t.isTagged,s=this.startNode();return this.type===a.invalidTemplate?(e||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),s.value={raw:this.value.replace(/\r\n?/g,`
10
+ `),cooked:null}):s.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
11
+ `),cooked:this.value},this.next(),s.tail=this.type===a.backQuote,this.finishNode(s,"TemplateElement")},O.parseTemplate=function(t){t===void 0&&(t={});var e=t.isTagged;e===void 0&&(e=!1);var s=this.startNode();this.next(),s.expressions=[];var r=this.parseTemplateElement({isTagged:e});for(s.quasis=[r];!r.tail;)this.type===a.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(a.dollarBraceL),s.expressions.push(this.parseExpression()),this.expect(a.braceR),s.quasis.push(r=this.parseTemplateElement({isTagged:e}));return this.next(),this.finishNode(s,"TemplateLiteral")},O.isAsyncProp=function(t){return!t.computed&&t.key.type==="Identifier"&&t.key.name==="async"&&(this.type===a.name||this.type===a.num||this.type===a.string||this.type===a.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===a.star)&&!Y.test(this.input.slice(this.lastTokEnd,this.start))},O.parseObj=function(t,e){var s=this.startNode(),r=!0,n={};for(s.properties=[],this.next();!this.eat(a.braceR);){if(r)r=!1;else if(this.expect(a.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(a.braceR))break;var h=this.parseProperty(t,e);t||this.checkPropClash(h,n,e),s.properties.push(h)}return this.finishNode(s,t?"ObjectPattern":"ObjectExpression")},O.parseProperty=function(t,e){var s,r,n,h,l=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(a.ellipsis))return t?(l.argument=this.parseIdent(!1),this.type===a.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(l,"RestElement")):(l.argument=this.parseMaybeAssign(!1,e),this.type===a.comma&&e&&e.trailingComma<0&&(e.trailingComma=this.start),this.finishNode(l,"SpreadElement"));this.options.ecmaVersion>=6&&(l.method=!1,l.shorthand=!1,(t||e)&&(n=this.start,h=this.startLoc),t||(s=this.eat(a.star)));var p=this.containsEsc;return this.parsePropertyName(l),!t&&!p&&this.options.ecmaVersion>=8&&!s&&this.isAsyncProp(l)?(r=!0,s=this.options.ecmaVersion>=9&&this.eat(a.star),this.parsePropertyName(l)):r=!1,this.parsePropertyValue(l,t,s,r,n,h,e,p),this.finishNode(l,"Property")},O.parseGetterSetter=function(t){var e=t.key.name;this.parsePropertyName(t),t.value=this.parseMethod(!1),t.kind=e;var s=t.kind==="get"?0:1;if(t.value.params.length!==s){var r=t.value.start;t.kind==="get"?this.raiseRecoverable(r,"getter should have no params"):this.raiseRecoverable(r,"setter should have exactly one param")}else t.kind==="set"&&t.value.params[0].type==="RestElement"&&this.raiseRecoverable(t.value.params[0].start,"Setter cannot use rest params")},O.parsePropertyValue=function(t,e,s,r,n,h,l,p){(s||r)&&this.type===a.colon&&this.unexpected(),this.eat(a.colon)?(t.value=e?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,l),t.kind="init"):this.options.ecmaVersion>=6&&this.type===a.parenL?(e&&this.unexpected(),t.method=!0,t.value=this.parseMethod(s,r),t.kind="init"):e||p||!(this.options.ecmaVersion>=5)||t.computed||t.key.type!=="Identifier"||t.key.name!=="get"&&t.key.name!=="set"||this.type===a.comma||this.type===a.braceR||this.type===a.eq?this.options.ecmaVersion>=6&&!t.computed&&t.key.type==="Identifier"?((s||r)&&this.unexpected(),this.checkUnreserved(t.key),t.key.name!=="await"||this.awaitIdentPos||(this.awaitIdentPos=n),e?t.value=this.parseMaybeDefault(n,h,this.copyNode(t.key)):this.type===a.eq&&l?(l.shorthandAssign<0&&(l.shorthandAssign=this.start),t.value=this.parseMaybeDefault(n,h,this.copyNode(t.key))):t.value=this.copyNode(t.key),t.kind="init",t.shorthand=!0):this.unexpected():((s||r)&&this.unexpected(),this.parseGetterSetter(t))},O.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(a.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(a.bracketR),t.key;t.computed=!1}return t.key=this.type===a.num||this.type===a.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},O.initFunction=function(t){t.id=null,this.options.ecmaVersion>=6&&(t.generator=t.expression=!1),this.options.ecmaVersion>=8&&(t.async=!1)},O.parseMethod=function(t,e,s){var r=this.startNode(),n=this.yieldPos,h=this.awaitPos,l=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=t),this.options.ecmaVersion>=8&&(r.async=!!e),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|pe(e,r.generator)|(s?128:0)),this.expect(a.parenL),r.params=this.parseBindingList(a.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=n,this.awaitPos=h,this.awaitIdentPos=l,this.finishNode(r,"FunctionExpression")},O.parseArrowExpression=function(t,e,s,r){var n=this.yieldPos,h=this.awaitPos,l=this.awaitIdentPos;return this.enterScope(16|pe(s,!1)),this.initFunction(t),this.options.ecmaVersion>=8&&(t.async=!!s),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,t.params=this.toAssignableList(e,!0),this.parseFunctionBody(t,!0,!1,r),this.yieldPos=n,this.awaitPos=h,this.awaitIdentPos=l,this.finishNode(t,"ArrowFunctionExpression")},O.parseFunctionBody=function(t,e,s,r){var n=e&&this.type!==a.braceL,h=this.strict,l=!1;if(n)t.body=this.parseMaybeAssign(r),t.expression=!0,this.checkParams(t,!1);else{var p=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);h&&!p||(l=this.strictDirective(this.end))&&p&&this.raiseRecoverable(t.start,"Illegal 'use strict' directive in function with non-simple parameter list");var m=this.labels;this.labels=[],l&&(this.strict=!0),this.checkParams(t,!h&&!l&&!e&&!s&&this.isSimpleParamList(t.params)),this.strict&&t.id&&this.checkLValSimple(t.id,5),t.body=this.parseBlock(!1,void 0,l&&!h),t.expression=!1,this.adaptDirectivePrologue(t.body.body),this.labels=m}this.exitScope()},O.isSimpleParamList=function(t){for(var e=0,s=t;e<s.length;e+=1)if(s[e].type!=="Identifier")return!1;return!0},O.checkParams=function(t,e){for(var s=Object.create(null),r=0,n=t.params;r<n.length;r+=1){var h=n[r];this.checkLValInnerPattern(h,1,e?null:s)}},O.parseExprList=function(t,e,s,r){for(var n=[],h=!0;!this.eat(t);){if(h)h=!1;else if(this.expect(a.comma),e&&this.afterTrailingComma(t))break;var l=void 0;s&&this.type===a.comma?l=null:this.type===a.ellipsis?(l=this.parseSpread(r),r&&this.type===a.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):l=this.parseMaybeAssign(!1,r),n.push(l)}return n},O.checkUnreserved=function(t){var{start:e,end:s,name:r}=t;(this.inGenerator&&r==="yield"&&this.raiseRecoverable(e,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&r==="await"&&this.raiseRecoverable(e,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().flags&le||r!=="arguments"||this.raiseRecoverable(e,"Cannot use 'arguments' in class field initializer"),!this.inClassStaticBlock||r!=="arguments"&&r!=="await"||this.raise(e,"Cannot use "+r+" in class static initialization block"),this.keywords.test(r)&&this.raise(e,"Unexpected keyword '"+r+"'"),this.options.ecmaVersion<6&&this.input.slice(e,s).indexOf("\\")!==-1)||(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(this.inAsync||r!=="await"||this.raiseRecoverable(e,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(e,"The keyword '"+r+"' is reserved"))},O.parseIdent=function(t){var e=this.parseIdentNode();return this.next(!!t),this.finishNode(e,"Identifier"),t||(this.checkUnreserved(e),e.name!=="await"||this.awaitIdentPos||(this.awaitIdentPos=e.start)),e},O.parseIdentNode=function(){var t=this.startNode();return this.type===a.name?t.name=this.value:this.type.keyword?(t.name=this.type.keyword,t.name!=="class"&&t.name!=="function"||this.lastTokEnd===this.lastTokStart+1&&this.input.charCodeAt(this.lastTokStart)===46||this.context.pop(),this.type=a.name):this.unexpected(),t},O.parsePrivateIdent=function(){var t=this.startNode();return this.type===a.privateId?t.name=this.value:this.unexpected(),this.next(),this.finishNode(t,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(t.start,"Private field '#"+t.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(t)),t},O.parseYield=function(t){this.yieldPos||(this.yieldPos=this.start);var e=this.startNode();return this.next(),this.type===a.semi||this.canInsertSemicolon()||this.type!==a.star&&!this.type.startsExpr?(e.delegate=!1,e.argument=null):(e.delegate=this.eat(a.star),e.argument=this.parseMaybeAssign(t)),this.finishNode(e,"YieldExpression")},O.parseAwait=function(t){this.awaitPos||(this.awaitPos=this.start);var e=this.startNode();return this.next(),e.argument=this.parseMaybeUnary(null,!0,!1,t),this.finishNode(e,"AwaitExpression")};var Kt=at.prototype;Kt.raise=function(t,e){var s=Ve(this.input,t);e+=" ("+s.line+":"+s.column+")",this.sourceFile&&(e+=" in "+this.sourceFile);var r=SyntaxError(e);throw r.pos=t,r.loc=s,r.raisedAt=this.pos,r},Kt.raiseRecoverable=Kt.raise,Kt.curPosition=function(){if(this.options.locations)return new Ft(this.curLine,this.pos-this.lineStart)};var Nt=at.prototype,$e=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[]};Nt.enterScope=function(t){this.scopeStack.push(new $e(t))},Nt.exitScope=function(){this.scopeStack.pop()},Nt.treatFunctionsAsVarInScope=function(t){return 2&t.flags||!this.inModule&&1&t.flags},Nt.declareName=function(t,e,s){var r=!1;if(e===2){var n=this.currentScope();r=n.lexical.indexOf(t)>-1||n.functions.indexOf(t)>-1||n.var.indexOf(t)>-1,n.lexical.push(t),this.inModule&&1&n.flags&&delete this.undefinedExports[t]}else if(e===4)this.currentScope().lexical.push(t);else if(e===3){var h=this.currentScope();r=this.treatFunctionsAsVar?h.lexical.indexOf(t)>-1:h.lexical.indexOf(t)>-1||h.var.indexOf(t)>-1,h.functions.push(t)}else for(var l=this.scopeStack.length-1;l>=0;--l){var p=this.scopeStack[l];if(p.lexical.indexOf(t)>-1&&!(32&p.flags&&p.lexical[0]===t)||!this.treatFunctionsAsVarInScope(p)&&p.functions.indexOf(t)>-1){r=!0;break}if(p.var.push(t),this.inModule&&1&p.flags&&delete this.undefinedExports[t],p.flags&le)break}r&&this.raiseRecoverable(s,"Identifier '"+t+"' has already been declared")},Nt.checkLocalExport=function(t){this.scopeStack[0].lexical.indexOf(t.name)===-1&&this.scopeStack[0].var.indexOf(t.name)===-1&&(this.undefinedExports[t.name]=t)},Nt.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Nt.currentVarScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(771&e.flags)return e}},Nt.currentThisScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(771&e.flags&&!(16&e.flags))return e}};var Lt=function(t,e,s){this.type="",this.start=e,this.end=0,t.options.locations&&(this.loc=new yt(t,s)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[e,0])},$t=at.prototype;function Se(t,e,s,r){return t.type=e,t.end=s,this.options.locations&&(t.loc.end=r),this.options.ranges&&(t.range[1]=s),t}$t.startNode=function(){return new Lt(this,this.start,this.startLoc)},$t.startNodeAt=function(t,e){return new Lt(this,t,e)},$t.finishNode=function(t,e){return Se.call(this,t,e,this.lastTokEnd,this.lastTokEndLoc)},$t.finishNodeAt=function(t,e,s,r){return Se.call(this,t,e,s,r)},$t.copyNode=function(t){var e=new Lt(this,t.start,this.startLoc);for(var s in t)e[s]=t[s];return e};var We="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",ue=We+" Extended_Pictographic",Ie=ue+" EBase EComp EMod EPres ExtPict",li={9:We,10:ue,11:ue,12:Ie,13:Ie,14:Ie},pi={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},Ae="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",qe="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Ge=qe+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Ke=Ge+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",He=Ke+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",o=He+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",f={9:qe,10:Ge,11:Ke,12:He,13:o,14:o+" Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz"},v={};function u(t){var e=v[t]={binary:Pt(li[t]+" "+Ae),binaryOfStrings:Pt(pi[t]),nonBinary:{General_Category:Pt(Ae),Script:Pt(f[t])}};e.nonBinary.Script_Extensions=e.nonBinary.Script,e.nonBinary.gc=e.nonBinary.General_Category,e.nonBinary.sc=e.nonBinary.Script,e.nonBinary.scx=e.nonBinary.Script_Extensions}for(var E=0,_=[9,10,11,12,13,14];E<_.length;E+=1)u(_[E]);var g=at.prototype,w=function(t,e){this.parent=t,this.base=e||this};w.prototype.separatedFrom=function(t){for(var e=this;e;e=e.parent)for(var s=t;s;s=s.parent)if(e.base===s.base&&e!==s)return!0;return!1},w.prototype.sibling=function(){return new w(this.parent,this.base)};var A=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=v[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};function N(t){return t===105||t===109||t===115}function K(t){return t===36||t>=40&&t<=43||t===46||t===63||t>=91&&t<=94||t>=123&&t<=125}function G(t){return t>=65&&t<=90||t>=97&&t<=122}A.prototype.reset=function(t,e,s){var r=s.indexOf("v")!==-1,n=s.indexOf("u")!==-1;this.start=0|t,this.source=e+"",this.flags=s,r&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=n&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=n&&this.parser.options.ecmaVersion>=9)},A.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)},A.prototype.at=function(t,e){e===void 0&&(e=!1);var s=this.source,r=s.length;if(t>=r)return-1;var n=s.charCodeAt(t);if(!e&&!this.switchU||n<=55295||n>=57344||t+1>=r)return n;var h=s.charCodeAt(t+1);return h>=56320&&h<=57343?(n<<10)+h-56613888:n},A.prototype.nextIndex=function(t,e){e===void 0&&(e=!1);var s=this.source,r=s.length;if(t>=r)return r;var n,h=s.charCodeAt(t);return!e&&!this.switchU||h<=55295||h>=57344||t+1>=r||(n=s.charCodeAt(t+1))<56320||n>57343?t+1:t+2},A.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)},A.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)},A.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)},A.prototype.eat=function(t,e){return e===void 0&&(e=!1),this.current(e)===t&&(this.advance(e),!0)},A.prototype.eatChars=function(t,e){e===void 0&&(e=!1);for(var s=this.pos,r=0,n=t;r<n.length;r+=1){var h=n[r],l=this.at(s,e);if(l===-1||l!==h)return!1;s=this.nextIndex(s,e)}return this.pos=s,!0},g.validateRegExpFlags=function(t){for(var{validFlags:e,flags:s}=t,r=!1,n=!1,h=0;h<s.length;h++){var l=s.charAt(h);e.indexOf(l)===-1&&this.raise(t.start,"Invalid regular expression flag"),s.indexOf(l,h+1)>-1&&this.raise(t.start,"Duplicate regular expression flag"),l==="u"&&(r=!0),l==="v"&&(n=!0)}this.options.ecmaVersion>=15&&r&&n&&this.raise(t.start,"Invalid regular expression flag")},g.validateRegExpPattern=function(t){this.regexp_pattern(t),!t.switchN&&this.options.ecmaVersion>=9&&function(e){for(var s in e)return!0;return!1}(t.groupNames)&&(t.switchN=!0,this.regexp_pattern(t))},g.regexp_pattern=function(t){t.pos=0,t.lastIntValue=0,t.lastStringValue="",t.lastAssertionIsQuantifiable=!1,t.numCapturingParens=0,t.maxBackReference=0,t.groupNames=Object.create(null),t.backReferenceNames.length=0,t.branchID=null,this.regexp_disjunction(t),t.pos!==t.source.length&&(t.eat(41)&&t.raise("Unmatched ')'"),(t.eat(93)||t.eat(125))&&t.raise("Lone quantifier brackets")),t.maxBackReference>t.numCapturingParens&&t.raise("Invalid escape");for(var e=0,s=t.backReferenceNames;e<s.length;e+=1){var r=s[e];t.groupNames[r]||t.raise("Invalid named capture referenced")}},g.regexp_disjunction=function(t){var e=this.options.ecmaVersion>=16;for(e&&(t.branchID=new w(t.branchID,null)),this.regexp_alternative(t);t.eat(124);)e&&(t.branchID=t.branchID.sibling()),this.regexp_alternative(t);e&&(t.branchID=t.branchID.parent),this.regexp_eatQuantifier(t,!0)&&t.raise("Nothing to repeat"),t.eat(123)&&t.raise("Lone quantifier brackets")},g.regexp_alternative=function(t){for(;t.pos<t.source.length&&this.regexp_eatTerm(t););},g.regexp_eatTerm=function(t){return this.regexp_eatAssertion(t)?(t.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(t)&&t.switchU&&t.raise("Invalid quantifier"),!0):!!(t.switchU?this.regexp_eatAtom(t):this.regexp_eatExtendedAtom(t))&&(this.regexp_eatQuantifier(t),!0)},g.regexp_eatAssertion=function(t){var e=t.pos;if(t.lastAssertionIsQuantifiable=!1,t.eat(94)||t.eat(36))return!0;if(t.eat(92)){if(t.eat(66)||t.eat(98))return!0;t.pos=e}if(t.eat(40)&&t.eat(63)){var s=!1;if(this.options.ecmaVersion>=9&&(s=t.eat(60)),t.eat(61)||t.eat(33))return this.regexp_disjunction(t),t.eat(41)||t.raise("Unterminated group"),t.lastAssertionIsQuantifiable=!s,!0}return t.pos=e,!1},g.regexp_eatQuantifier=function(t,e){return e===void 0&&(e=!1),!!this.regexp_eatQuantifierPrefix(t,e)&&(t.eat(63),!0)},g.regexp_eatQuantifierPrefix=function(t,e){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,e)},g.regexp_eatBracedQuantifier=function(t,e){var s=t.pos;if(t.eat(123)){var r=0,n=-1;if(this.regexp_eatDecimalDigits(t)&&(r=t.lastIntValue,t.eat(44)&&this.regexp_eatDecimalDigits(t)&&(n=t.lastIntValue),t.eat(125)))return n!==-1&&n<r&&!e&&t.raise("numbers out of order in {} quantifier"),!0;t.switchU&&!e&&t.raise("Incomplete quantifier"),t.pos=s}return!1},g.regexp_eatAtom=function(t){return this.regexp_eatPatternCharacters(t)||t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)},g.regexp_eatReverseSolidusAtomEscape=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatAtomEscape(t))return!0;t.pos=e}return!1},g.regexp_eatUncapturingGroup=function(t){var e=t.pos;if(t.eat(40)){if(t.eat(63)){if(this.options.ecmaVersion>=16){var s=this.regexp_eatModifiers(t),r=t.eat(45);if(s||r){for(var n=0;n<s.length;n++){var h=s.charAt(n);s.indexOf(h,n+1)>-1&&t.raise("Duplicate regular expression modifiers")}if(r){var l=this.regexp_eatModifiers(t);s||l||t.current()!==58||t.raise("Invalid regular expression modifiers");for(var p=0;p<l.length;p++){var m=l.charAt(p);(l.indexOf(m,p+1)>-1||s.indexOf(m)>-1)&&t.raise("Duplicate regular expression modifiers")}}}}if(t.eat(58)){if(this.regexp_disjunction(t),t.eat(41))return!0;t.raise("Unterminated group")}}t.pos=e}return!1},g.regexp_eatCapturingGroup=function(t){if(t.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(t):t.current()===63&&t.raise("Invalid group"),this.regexp_disjunction(t),t.eat(41))return t.numCapturingParens+=1,!0;t.raise("Unterminated group")}return!1},g.regexp_eatModifiers=function(t){for(var e="",s=0;(s=t.current())!==-1&&N(s);)e+=At(s),t.advance();return e},g.regexp_eatExtendedAtom=function(t){return t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)||this.regexp_eatInvalidBracedQuantifier(t)||this.regexp_eatExtendedPatternCharacter(t)},g.regexp_eatInvalidBracedQuantifier=function(t){return this.regexp_eatBracedQuantifier(t,!0)&&t.raise("Nothing to repeat"),!1},g.regexp_eatSyntaxCharacter=function(t){var e=t.current();return!!K(e)&&(t.lastIntValue=e,t.advance(),!0)},g.regexp_eatPatternCharacters=function(t){for(var e=t.pos,s=0;(s=t.current())!==-1&&!K(s);)t.advance();return t.pos!==e},g.regexp_eatExtendedPatternCharacter=function(t){var e=t.current();return!(e===-1||e===36||e>=40&&e<=43||e===46||e===63||e===91||e===94||e===124)&&(t.advance(),!0)},g.regexp_groupSpecifier=function(t){if(t.eat(63)){this.regexp_eatGroupName(t)||t.raise("Invalid group");var e=this.options.ecmaVersion>=16,s=t.groupNames[t.lastStringValue];if(s)if(e)for(var r=0,n=s;r<n.length;r+=1)n[r].separatedFrom(t.branchID)||t.raise("Duplicate capture group name");else t.raise("Duplicate capture group name");e?(s||(t.groupNames[t.lastStringValue]=[])).push(t.branchID):t.groupNames[t.lastStringValue]=!0}},g.regexp_eatGroupName=function(t){if(t.lastStringValue="",t.eat(60)){if(this.regexp_eatRegExpIdentifierName(t)&&t.eat(62))return!0;t.raise("Invalid capture group name")}return!1},g.regexp_eatRegExpIdentifierName=function(t){if(t.lastStringValue="",this.regexp_eatRegExpIdentifierStart(t)){for(t.lastStringValue+=At(t.lastIntValue);this.regexp_eatRegExpIdentifierPart(t);)t.lastStringValue+=At(t.lastIntValue);return!0}return!1},g.regexp_eatRegExpIdentifierStart=function(t){var e=t.pos,s=this.options.ecmaVersion>=11,r=t.current(s);return t.advance(s),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(t,s)&&(r=t.lastIntValue),function(n){return dt(n,!0)||n===36||n===95}(r)?(t.lastIntValue=r,!0):(t.pos=e,!1)},g.regexp_eatRegExpIdentifierPart=function(t){var e=t.pos,s=this.options.ecmaVersion>=11,r=t.current(s);return t.advance(s),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(t,s)&&(r=t.lastIntValue),function(n){return J(n,!0)||n===36||n===95||n===8204||n===8205}(r)?(t.lastIntValue=r,!0):(t.pos=e,!1)},g.regexp_eatAtomEscape=function(t){return!!(this.regexp_eatBackReference(t)||this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)||t.switchN&&this.regexp_eatKGroupName(t))||(t.switchU&&(t.current()===99&&t.raise("Invalid unicode escape"),t.raise("Invalid escape")),!1)},g.regexp_eatBackReference=function(t){var e=t.pos;if(this.regexp_eatDecimalEscape(t)){var s=t.lastIntValue;if(t.switchU)return s>t.maxBackReference&&(t.maxBackReference=s),!0;if(s<=t.numCapturingParens)return!0;t.pos=e}return!1},g.regexp_eatKGroupName=function(t){if(t.eat(107)){if(this.regexp_eatGroupName(t))return t.backReferenceNames.push(t.lastStringValue),!0;t.raise("Invalid named reference")}return!1},g.regexp_eatCharacterEscape=function(t){return this.regexp_eatControlEscape(t)||this.regexp_eatCControlLetter(t)||this.regexp_eatZero(t)||this.regexp_eatHexEscapeSequence(t)||this.regexp_eatRegExpUnicodeEscapeSequence(t,!1)||!t.switchU&&this.regexp_eatLegacyOctalEscapeSequence(t)||this.regexp_eatIdentityEscape(t)},g.regexp_eatCControlLetter=function(t){var e=t.pos;if(t.eat(99)){if(this.regexp_eatControlLetter(t))return!0;t.pos=e}return!1},g.regexp_eatZero=function(t){return t.current()===48&&!Z(t.lookahead())&&(t.lastIntValue=0,t.advance(),!0)},g.regexp_eatControlEscape=function(t){var e=t.current();return e===116?(t.lastIntValue=9,t.advance(),!0):e===110?(t.lastIntValue=10,t.advance(),!0):e===118?(t.lastIntValue=11,t.advance(),!0):e===102?(t.lastIntValue=12,t.advance(),!0):e===114&&(t.lastIntValue=13,t.advance(),!0)},g.regexp_eatControlLetter=function(t){var e=t.current();return!!G(e)&&(t.lastIntValue=e%32,t.advance(),!0)},g.regexp_eatRegExpUnicodeEscapeSequence=function(t,e){e===void 0&&(e=!1);var s,r=t.pos,n=e||t.switchU;if(t.eat(117)){if(this.regexp_eatFixedHexDigits(t,4)){var h=t.lastIntValue;if(n&&h>=55296&&h<=56319){var l=t.pos;if(t.eat(92)&&t.eat(117)&&this.regexp_eatFixedHexDigits(t,4)){var p=t.lastIntValue;if(p>=56320&&p<=57343)return t.lastIntValue=1024*(h-55296)+(p-56320)+65536,!0}t.pos=l,t.lastIntValue=h}return!0}if(n&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&((s=t.lastIntValue)>=0&&s<=1114111))return!0;n&&t.raise("Invalid unicode escape"),t.pos=r}return!1},g.regexp_eatIdentityEscape=function(t){if(t.switchU)return!!this.regexp_eatSyntaxCharacter(t)||!!t.eat(47)&&(t.lastIntValue=47,!0);var e=t.current();return!(e===99||t.switchN&&e===107)&&(t.lastIntValue=e,t.advance(),!0)},g.regexp_eatDecimalEscape=function(t){t.lastIntValue=0;var e=t.current();if(e>=49&&e<=57){do t.lastIntValue=10*t.lastIntValue+(e-48),t.advance();while((e=t.current())>=48&&e<=57);return!0}return!1};function st(t){return G(t)||t===95}function X(t){return st(t)||Z(t)}function Z(t){return t>=48&&t<=57}function tt(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function ot(t){return t>=65&&t<=70?t-65+10:t>=97&&t<=102?t-97+10:t-48}function It(t){return t>=48&&t<=55}g.regexp_eatCharacterClassEscape=function(t){var e=t.current();if(function(n){return n===100||n===68||n===115||n===83||n===119||n===87}(e))return t.lastIntValue=-1,t.advance(),1;var s=!1;if(t.switchU&&this.options.ecmaVersion>=9&&((s=e===80)||e===112)){var r;if(t.lastIntValue=-1,t.advance(),t.eat(123)&&(r=this.regexp_eatUnicodePropertyValueExpression(t))&&t.eat(125))return s&&r===2&&t.raise("Invalid property name"),r;t.raise("Invalid property name")}return 0},g.regexp_eatUnicodePropertyValueExpression=function(t){var e=t.pos;if(this.regexp_eatUnicodePropertyName(t)&&t.eat(61)){var s=t.lastStringValue;if(this.regexp_eatUnicodePropertyValue(t)){var r=t.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(t,s,r),1}}if(t.pos=e,this.regexp_eatLoneUnicodePropertyNameOrValue(t)){var n=t.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(t,n)}return 0},g.regexp_validateUnicodePropertyNameAndValue=function(t,e,s){jt(t.unicodeProperties.nonBinary,e)||t.raise("Invalid property name"),t.unicodeProperties.nonBinary[e].test(s)||t.raise("Invalid property value")},g.regexp_validateUnicodePropertyNameOrValue=function(t,e){return t.unicodeProperties.binary.test(e)?1:t.switchV&&t.unicodeProperties.binaryOfStrings.test(e)?2:void t.raise("Invalid property name")},g.regexp_eatUnicodePropertyName=function(t){var e=0;for(t.lastStringValue="";st(e=t.current());)t.lastStringValue+=At(e),t.advance();return t.lastStringValue!==""},g.regexp_eatUnicodePropertyValue=function(t){var e=0;for(t.lastStringValue="";X(e=t.current());)t.lastStringValue+=At(e),t.advance();return t.lastStringValue!==""},g.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)},g.regexp_eatCharacterClass=function(t){if(t.eat(91)){var e=t.eat(94),s=this.regexp_classContents(t);return t.eat(93)||t.raise("Unterminated character class"),e&&s===2&&t.raise("Negated character class may contain strings"),!0}return!1},g.regexp_classContents=function(t){return t.current()===93?1:t.switchV?this.regexp_classSetExpression(t):(this.regexp_nonEmptyClassRanges(t),1)},g.regexp_nonEmptyClassRanges=function(t){for(;this.regexp_eatClassAtom(t);){var e=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassAtom(t)){var s=t.lastIntValue;!t.switchU||e!==-1&&s!==-1||t.raise("Invalid character class"),e!==-1&&s!==-1&&e>s&&t.raise("Range out of order in character class")}}},g.regexp_eatClassAtom=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatClassEscape(t))return!0;if(t.switchU){var s=t.current();(s===99||It(s))&&t.raise("Invalid class escape"),t.raise("Invalid escape")}t.pos=e}var r=t.current();return r!==93&&(t.lastIntValue=r,t.advance(),!0)},g.regexp_eatClassEscape=function(t){var e=t.pos;if(t.eat(98))return t.lastIntValue=8,!0;if(t.switchU&&t.eat(45))return t.lastIntValue=45,!0;if(!t.switchU&&t.eat(99)){if(this.regexp_eatClassControlLetter(t))return!0;t.pos=e}return this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)},g.regexp_classSetExpression=function(t){var e,s=1;if(this.regexp_eatClassSetRange(t));else if(e=this.regexp_eatClassSetOperand(t)){e===2&&(s=2);for(var r=t.pos;t.eatChars([38,38]);)t.current()!==38&&(e=this.regexp_eatClassSetOperand(t))?e!==2&&(s=1):t.raise("Invalid character in character class");if(r!==t.pos)return s;for(;t.eatChars([45,45]);)this.regexp_eatClassSetOperand(t)||t.raise("Invalid character in character class");if(r!==t.pos)return s}else t.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(t)){if(!(e=this.regexp_eatClassSetOperand(t)))return s;e===2&&(s=2)}},g.regexp_eatClassSetRange=function(t){var e=t.pos;if(this.regexp_eatClassSetCharacter(t)){var s=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassSetCharacter(t)){var r=t.lastIntValue;return s!==-1&&r!==-1&&s>r&&t.raise("Range out of order in character class"),!0}t.pos=e}return!1},g.regexp_eatClassSetOperand=function(t){return this.regexp_eatClassSetCharacter(t)?1:this.regexp_eatClassStringDisjunction(t)||this.regexp_eatNestedClass(t)},g.regexp_eatNestedClass=function(t){var e=t.pos;if(t.eat(91)){var s=t.eat(94),r=this.regexp_classContents(t);if(t.eat(93))return s&&r===2&&t.raise("Negated character class may contain strings"),r;t.pos=e}if(t.eat(92)){var n=this.regexp_eatCharacterClassEscape(t);if(n)return n;t.pos=e}return null},g.regexp_eatClassStringDisjunction=function(t){var e=t.pos;if(t.eatChars([92,113])){if(t.eat(123)){var s=this.regexp_classStringDisjunctionContents(t);if(t.eat(125))return s}else t.raise("Invalid escape");t.pos=e}return null},g.regexp_classStringDisjunctionContents=function(t){for(var e=this.regexp_classString(t);t.eat(124);)this.regexp_classString(t)===2&&(e=2);return e},g.regexp_classString=function(t){for(var e=0;this.regexp_eatClassSetCharacter(t);)e++;return e===1?1:2},g.regexp_eatClassSetCharacter=function(t){var e=t.pos;if(t.eat(92))return!(!this.regexp_eatCharacterEscape(t)&&!this.regexp_eatClassSetReservedPunctuator(t))||(t.eat(98)?(t.lastIntValue=8,!0):(t.pos=e,!1));var s=t.current();return!(s<0||s===t.lookahead()&&function(r){return r===33||r>=35&&r<=38||r>=42&&r<=44||r===46||r>=58&&r<=64||r===94||r===96||r===126}(s))&&(!function(r){return r===40||r===41||r===45||r===47||r>=91&&r<=93||r>=123&&r<=125}(s)&&(t.advance(),t.lastIntValue=s,!0))},g.regexp_eatClassSetReservedPunctuator=function(t){var e=t.current();return!!function(s){return s===33||s===35||s===37||s===38||s===44||s===45||s>=58&&s<=62||s===64||s===96||s===126}(e)&&(t.lastIntValue=e,t.advance(),!0)},g.regexp_eatClassControlLetter=function(t){var e=t.current();return!(!Z(e)&&e!==95)&&(t.lastIntValue=e%32,t.advance(),!0)},g.regexp_eatHexEscapeSequence=function(t){var e=t.pos;if(t.eat(120)){if(this.regexp_eatFixedHexDigits(t,2))return!0;t.switchU&&t.raise("Invalid escape"),t.pos=e}return!1},g.regexp_eatDecimalDigits=function(t){var e=t.pos,s=0;for(t.lastIntValue=0;Z(s=t.current());)t.lastIntValue=10*t.lastIntValue+(s-48),t.advance();return t.pos!==e},g.regexp_eatHexDigits=function(t){var e=t.pos,s=0;for(t.lastIntValue=0;tt(s=t.current());)t.lastIntValue=16*t.lastIntValue+ot(s),t.advance();return t.pos!==e},g.regexp_eatLegacyOctalEscapeSequence=function(t){if(this.regexp_eatOctalDigit(t)){var e=t.lastIntValue;if(this.regexp_eatOctalDigit(t)){var s=t.lastIntValue;e<=3&&this.regexp_eatOctalDigit(t)?t.lastIntValue=64*e+8*s+t.lastIntValue:t.lastIntValue=8*e+s}else t.lastIntValue=e;return!0}return!1},g.regexp_eatOctalDigit=function(t){var e=t.current();return It(e)?(t.lastIntValue=e-48,t.advance(),!0):(t.lastIntValue=0,!1)},g.regexp_eatFixedHexDigits=function(t,e){var s=t.pos;t.lastIntValue=0;for(var r=0;r<e;++r){var n=t.current();if(!tt(n))return t.pos=s,!1;t.lastIntValue=16*t.lastIntValue+ot(n),t.advance()}return!0};var Ot=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new yt(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},C=at.prototype;function ut(t){return typeof BigInt!="function"?null:BigInt(t.replace(/_/g,""))}C.next=function(t){!t&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Ot(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},C.getToken=function(){return this.next(),new Ot(this)},typeof Symbol<"u"&&(C[Symbol.iterator]=function(){var t=this;return{next:function(){var e=t.getToken();return{done:e.type===a.eof,value:e}}}}),C.nextToken=function(){var t=this.curContext();return t&&t.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(a.eof):t.override?t.override(this):void this.readToken(this.fullCharCodeAtPos())},C.readToken=function(t){return dt(t,this.options.ecmaVersion>=6)||t===92?this.readWord():this.getTokenFromCode(t)},C.fullCharCodeAt=function(t){var e=this.input.charCodeAt(t);if(e<=55295||e>=56320)return e;var s=this.input.charCodeAt(t+1);return s<=56319||s>=57344?e:(e<<10)+s-56613888},C.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},C.skipBlockComment=function(){var t=this.options.onComment&&this.curPosition(),e=this.pos,s=this.input.indexOf("*/",this.pos+=2);if(s===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=s+2,this.options.locations)for(var r=void 0,n=e;(r=mt(this.input,n,this.pos))>-1;)++this.curLine,n=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(e+2,s),e,this.pos,t,this.curPosition())},C.skipLineComment=function(t){for(var e=this.pos,s=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=t);this.pos<this.input.length&&!lt(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(e+t,this.pos),e,this.pos,s,this.curPosition())},C.skipSpace=function(){t:for(;this.pos<this.input.length;){var t=this.input.charCodeAt(this.pos);switch(t){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break t}break;default:if(!(t>8&&t<14||t>=5760&&Rt.test(String.fromCharCode(t))))break t;++this.pos}}},C.finishToken=function(t,e){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var s=this.type;this.type=t,this.value=e,this.updateContext(s)},C.readToken_dot=function(){var t=this.input.charCodeAt(this.pos+1);if(t>=48&&t<=57)return this.readNumber(!0);var e=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&t===46&&e===46?(this.pos+=3,this.finishToken(a.ellipsis)):(++this.pos,this.finishToken(a.dot))},C.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):t===61?this.finishOp(a.assign,2):this.finishOp(a.slash,1)},C.readToken_mult_modulo_exp=function(t){var e=this.input.charCodeAt(this.pos+1),s=1,r=t===42?a.star:a.modulo;return this.options.ecmaVersion>=7&&t===42&&e===42&&(++s,r=a.starstar,e=this.input.charCodeAt(this.pos+2)),e===61?this.finishOp(a.assign,s+1):this.finishOp(r,s)},C.readToken_pipe_amp=function(t){var e=this.input.charCodeAt(this.pos+1);if(e===t){if(this.options.ecmaVersion>=12){if(this.input.charCodeAt(this.pos+2)===61)return this.finishOp(a.assign,3)}return this.finishOp(t===124?a.logicalOR:a.logicalAND,2)}return e===61?this.finishOp(a.assign,2):this.finishOp(t===124?a.bitwiseOR:a.bitwiseAND,1)},C.readToken_caret=function(){return this.input.charCodeAt(this.pos+1)===61?this.finishOp(a.assign,2):this.finishOp(a.bitwiseXOR,1)},C.readToken_plus_min=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?e!==45||this.inModule||this.input.charCodeAt(this.pos+2)!==62||this.lastTokEnd!==0&&!Y.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(a.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):e===61?this.finishOp(a.assign,2):this.finishOp(a.plusMin,1)},C.readToken_lt_gt=function(t){var e=this.input.charCodeAt(this.pos+1),s=1;return e===t?(s=t===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+s)===61?this.finishOp(a.assign,s+1):this.finishOp(a.bitShift,s)):e!==33||t!==60||this.inModule||this.input.charCodeAt(this.pos+2)!==45||this.input.charCodeAt(this.pos+3)!==45?(e===61&&(s=2),this.finishOp(a.relational,s)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},C.readToken_eq_excl=function(t){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(a.equality,this.input.charCodeAt(this.pos+2)===61?3:2):t===61&&e===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(a.arrow)):this.finishOp(t===61?a.eq:a.prefix,1)},C.readToken_question=function(){var t=this.options.ecmaVersion;if(t>=11){var e=this.input.charCodeAt(this.pos+1);if(e===46){var s=this.input.charCodeAt(this.pos+2);if(s<48||s>57)return this.finishOp(a.questionDot,2)}if(e===63){if(t>=12){if(this.input.charCodeAt(this.pos+2)===61)return this.finishOp(a.assign,3)}return this.finishOp(a.coalesce,2)}}return this.finishOp(a.question,1)},C.readToken_numberSign=function(){var t=35;if(this.options.ecmaVersion>=13&&(++this.pos,dt(t=this.fullCharCodeAtPos(),!0)||t===92))return this.finishToken(a.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+At(t)+"'")},C.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(a.parenL);case 41:return++this.pos,this.finishToken(a.parenR);case 59:return++this.pos,this.finishToken(a.semi);case 44:return++this.pos,this.finishToken(a.comma);case 91:return++this.pos,this.finishToken(a.bracketL);case 93:return++this.pos,this.finishToken(a.bracketR);case 123:return++this.pos,this.finishToken(a.braceL);case 125:return++this.pos,this.finishToken(a.braceR);case 58:return++this.pos,this.finishToken(a.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(a.backQuote);case 48:var e=this.input.charCodeAt(this.pos+1);if(e===120||e===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(e===111||e===79)return this.readRadixNumber(8);if(e===98||e===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(t);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(t);case 124:case 38:return this.readToken_pipe_amp(t);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(t);case 60:case 62:return this.readToken_lt_gt(t);case 61:case 33:return this.readToken_eq_excl(t);case 63:return this.readToken_question();case 126:return this.finishOp(a.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+At(t)+"'")},C.finishOp=function(t,e){var s=this.input.slice(this.pos,this.pos+e);return this.pos+=e,this.finishToken(t,s)},C.readRegexp=function(){for(var t,e,s=this.pos;;){this.pos>=this.input.length&&this.raise(s,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(Y.test(r)&&this.raise(s,"Unterminated regular expression"),t)t=!1;else{if(r==="[")e=!0;else if(r==="]"&&e)e=!1;else if(r==="/"&&!e)break;t=r==="\\"}++this.pos}var n=this.input.slice(s,this.pos);++this.pos;var h=this.pos,l=this.readWord1();this.containsEsc&&this.unexpected(h);var p=this.regexpState||(this.regexpState=new A(this));p.reset(s,n,l),this.validateRegExpFlags(p),this.validateRegExpPattern(p);var m=null;try{m=new RegExp(n,l)}catch(y){}return this.finishToken(a.regexp,{pattern:n,flags:l,value:m})},C.readInt=function(t,e,s){for(var r=this.options.ecmaVersion>=12&&e===void 0,n=s&&this.input.charCodeAt(this.pos)===48,h=this.pos,l=0,p=0,m=0,y=e==null?1/0:e;m<y;++m,++this.pos){var x=this.input.charCodeAt(this.pos),k=void 0;if(r&&x===95)n&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),p===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),m===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),p=x;else{if((k=x>=97?x-97+10:x>=65?x-65+10:x>=48&&x<=57?x-48:1/0)>=t)break;p=x,l=l*t+k}}return r&&p===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===h||e!=null&&this.pos-h!==e?null:l},C.readRadixNumber=function(t){var e=this.pos;this.pos+=2;var s=this.readInt(t);return s==null&&this.raise(this.start+2,"Expected number in radix "+t),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(s=ut(this.input.slice(e,this.pos)),++this.pos):dt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(a.num,s)},C.readNumber=function(t){var e=this.pos;t||this.readInt(10,void 0,!0)!==null||this.raise(e,"Invalid number");var s=this.pos-e>=2&&this.input.charCodeAt(e)===48;s&&this.strict&&this.raise(e,"Invalid number");var r=this.input.charCodeAt(this.pos);if(!s&&!t&&this.options.ecmaVersion>=11&&r===110){var n=ut(this.input.slice(e,this.pos));return++this.pos,dt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(a.num,n)}s&&/[89]/.test(this.input.slice(e,this.pos))&&(s=!1),r!==46||s||(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),r!==69&&r!==101||s||((r=this.input.charCodeAt(++this.pos))!==43&&r!==45||++this.pos,this.readInt(10)===null&&this.raise(e,"Invalid number")),dt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var h,l=(h=this.input.slice(e,this.pos),s?parseInt(h,8):parseFloat(h.replace(/_/g,"")));return this.finishToken(a.num,l)},C.readCodePoint=function(){var t;if(this.input.charCodeAt(this.pos)===123){this.options.ecmaVersion<6&&this.unexpected();var e=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(e,"Code point out of bounds")}else t=this.readHexChar(4);return t},C.readString=function(t){for(var e="",s=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===t)break;r===92?(e+=this.input.slice(s,this.pos),e+=this.readEscapedChar(!1),s=this.pos):r===8232||r===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(lt(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return e+=this.input.slice(s,this.pos++),this.finishToken(a.string,e)};var xt={};C.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(t){if(t!==xt)throw t;this.readInvalidTemplateToken()}this.inTemplateElement=!1},C.invalidStringToken=function(t,e){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw xt;this.raise(t,e)},C.readTmplToken=function(){for(var t="",e=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var s=this.input.charCodeAt(this.pos);if(s===96||s===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos!==this.start||this.type!==a.template&&this.type!==a.invalidTemplate?(t+=this.input.slice(e,this.pos),this.finishToken(a.template,t)):s===36?(this.pos+=2,this.finishToken(a.dollarBraceL)):(++this.pos,this.finishToken(a.backQuote));if(s===92)t+=this.input.slice(e,this.pos),t+=this.readEscapedChar(!0),e=this.pos;else if(lt(s)){switch(t+=this.input.slice(e,this.pos),++this.pos,s){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:t+=`
12
+ `;break;default:t+=String.fromCharCode(s)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),e=this.pos}else++this.pos}},C.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(a.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
13
+ `&&++this.pos;case`
14
+ `:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1}this.raise(this.start,"Unterminated template")},C.readEscapedChar=function(t){var e=this.input.charCodeAt(++this.pos);switch(++this.pos,e){case 110:return`
15
+ `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return At(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),t){var s=this.pos-1;this.invalidStringToken(s,"Invalid escape sequence in template string")}default:if(e>=48&&e<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],n=parseInt(r,8);return n>255&&(r=r.slice(0,-1),n=parseInt(r,8)),this.pos+=r.length-1,e=this.input.charCodeAt(this.pos),r==="0"&&e!==56&&e!==57||!this.strict&&!t||this.invalidStringToken(this.pos-1-r.length,t?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(n)}return lt(e)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(e)}},C.readHexChar=function(t){var e=this.pos,s=this.readInt(16,t);return s===null&&this.invalidStringToken(e,"Bad character escape sequence"),s},C.readWord1=function(){this.containsEsc=!1;for(var t="",e=!0,s=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var n=this.fullCharCodeAtPos();if(J(n,r))this.pos+=n<=65535?1:2;else{if(n!==92)break;this.containsEsc=!0,t+=this.input.slice(s,this.pos);var h=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var l=this.readCodePoint();(e?dt:J)(l,r)||this.invalidStringToken(h,"Invalid Unicode escape"),t+=At(l),s=this.pos}e=!1}return t+this.input.slice(s,this.pos)},C.readWord=function(){var t=this.readWord1(),e=a.name;return this.keywords.test(t)&&(e=V[t]),this.finishToken(e,t)},at.acorn={Parser:at,version:"8.16.0",defaultOptions:Jt,Position:Ft,SourceLocation:yt,getLineInfo:Ve,Node:Lt,TokenType:F,tokTypes:a,keywordTypes:V,TokContext:St,tokContexts:rt,isIdentifierChar:J,isIdentifierStart:dt,Token:Ot,isNewLine:lt,lineBreak:Y,lineBreakG:nt,nonASCIIwhitespace:Rt};var W=kt("node:module"),T=kt("node:fs");String.fromCharCode;let Te=/\/$|\/\?|\/#/,Qe=/^\.?\//;function ze(t="",e){return e?Te.test(t):t.endsWith("/")}function Je(t="",e){if(!e)return t.endsWith("/")?t:t+"/";if(ze(t,!0))return t||"/";let s=t,r="",n=t.indexOf("#");if(n!==-1&&(s=t.slice(0,n),r=t.slice(n),!s))return r;let[h,...l]=s.split("?");return h+"/"+(l.length>0?`?${l.join("?")}`:"")+r}function Ye(t){return t&&t!=="/"}function Zt(t,...e){let s=t||"";for(let r of e.filter((n)=>Ye(n)))if(s){let n=r.replace(Qe,"");s=Je(s)+n}else s=r;return s}let H=/^[A-Za-z]:\//;function ct(t=""){return t?t.replace(/\\/g,"/").replace(H,(e)=>e.toUpperCase()):t}let Xe=/^[/\\]{2}/,fe=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,Pi=/^[A-Za-z]:$/,ws=/.(\.[^./]+|\.)$/,Ss=function(t){if(t.length===0)return".";let e=(t=ct(t)).match(Xe),s=te(t),r=t[t.length-1]==="/";return(t=Ni(t,!s)).length===0?s?"/":r?"./":".":(r&&(t+="/"),Pi.test(t)&&(t+="/"),e?s?`//${t}`:`//./${t}`:s&&!te(t)?`/${t}`:t)},Dt=function(...t){let e="";for(let s of t)if(s)if(e.length>0){let r=e[e.length-1]==="/",n=s[0]==="/";e+=r&&n?s.slice(1):r||n?s:`/${s}`}else e+=s;return Ss(e)};function Is(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}let As=function(...t){let e="",s=!1;for(let r=(t=t.map((n)=>ct(n))).length-1;r>=-1&&!s;r--){let n=r>=0?t[r]:Is();n&&n.length!==0&&(e=`${n}/${e}`,s=te(n))}return e=Ni(e,!s),s&&!te(e)?`/${e}`:e.length>0?e:"."};function Ni(t,e){let s="",r=0,n=-1,h=0,l=null;for(let p=0;p<=t.length;++p){if(p<t.length)l=t[p];else{if(l==="/")break;l="/"}if(l==="/"){if(n===p-1||h===1);else if(h===2){if(s.length<2||r!==2||s[s.length-1]!=="."||s[s.length-2]!=="."){if(s.length>2){let m=s.lastIndexOf("/");m===-1?(s="",r=0):(s=s.slice(0,m),r=s.length-1-s.lastIndexOf("/")),n=p,h=0;continue}if(s.length>0){s="",r=0,n=p,h=0;continue}}e&&(s+=s.length>0?"/..":"..",r=2)}else s.length>0?s+=`/${t.slice(n+1,p)}`:s=t.slice(n+1,p),r=p-n-1;n=p,h=0}else l==="."&&h!==-1?++h:h=-1}return s}let te=function(t){return fe.test(t)},ui=function(t){if(t==="..")return"";let e=ws.exec(ct(t));return e&&e[1]||""},Re=function(t){let e=ct(t).replace(/\/$/,"").split("/").slice(0,-1);return e.length===1&&Pi.test(e[0])&&(e[0]+="/"),e.join("/")||(te(t)?"/":".")},fi=function(t,e){let s=ct(t).split("/"),r="";for(let n=s.length-1;n>=0;n--){let h=s[n];if(h){r=h;break}}return e&&r.endsWith(e)?r.slice(0,-e.length):r},B=c("node:url"),Ht=c("node:assert"),ee=c("node:process");var di=kt("node:path");let Ts=c("node:v8"),Ze=c("node:util"),Li=new Set(W.builtinModules);function mi(t){return t.replace(/\\/g,"/")}let Rs={}.hasOwnProperty,Ps=/^([A-Z][a-z\d]*)+$/,Ns=new Set(["string","function","number","object","Function","Object","boolean","bigint","symbol"]),bt={};function gi(t,e="and"){return t.length<3?t.join(` ${e} `):`${t.slice(0,-1).join(", ")}, ${e} ${t[t.length-1]}`}let Oi=new Map,Di;function Tt(t,e,s){return Oi.set(t,e),function(r,n){return h;function h(...l){let p=Error.stackTraceLimit;xi()&&(Error.stackTraceLimit=0);let m=new r;xi()&&(Error.stackTraceLimit=p);let y=function(x,k,b){let P=Oi.get(x);if(Ht.ok(P!==void 0,"expected `message` to be found"),typeof P=="function")return Ht.ok(P.length<=k.length,`Code: ${x}; The provided arguments length (${k.length}) does not match the required ones (${P.length}).`),Reflect.apply(P,b,k);let Q=/%[dfijoOs]/g,ft=0;for(;Q.exec(P)!==null;)ft++;return Ht.ok(ft===k.length,`Code: ${x}; The provided arguments length (${k.length}) does not match the required ones (${ft}).`),k.length===0?P:(k.unshift(P),Reflect.apply(Ze.format,null,k))}(n,l,m);return Object.defineProperties(m,{message:{value:y,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${n}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}}),Ls(m),m.code=n,m}}(s,t)}function xi(){try{if(Ts.startupSnapshot.isBuildingSnapshot())return!1}catch{}let t=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");return t===void 0?Object.isExtensible(Error):Rs.call(t,"writable")&&t.writable!==void 0?t.writable:t.set!==void 0}bt.ERR_INVALID_ARG_TYPE=Tt("ERR_INVALID_ARG_TYPE",(t,e,s)=>{Ht.ok(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let r="The ";if(t.endsWith(" argument"))r+=`${t} `;else{let p=t.includes(".")?"property":"argument";r+=`"${t}" ${p} `}r+="must be ";let n=[],h=[],l=[];for(let p of e)Ht.ok(typeof p=="string","All expected entries have to be of type string"),Ns.has(p)?n.push(p.toLowerCase()):Ps.exec(p)===null?(Ht.ok(p!=="object",'The value "object" should be written as "Object"'),l.push(p)):h.push(p);if(h.length>0){let p=n.indexOf("object");p!==-1&&(n.slice(p,1),h.push("Object"))}return n.length>0&&(r+=`${n.length>1?"one of type":"of type"} ${gi(n,"or")}`,(h.length>0||l.length>0)&&(r+=" or ")),h.length>0&&(r+=`an instance of ${gi(h,"or")}`,l.length>0&&(r+=" or ")),l.length>0&&(l.length>1?r+=`one of ${gi(l,"or")}`:(l[0].toLowerCase()!==l[0]&&(r+="an "),r+=`${l[0]}`)),r+=`. Received ${function(p){if(p==null)return String(p);if(typeof p=="function"&&p.name)return`function ${p.name}`;if(typeof p=="object")return p.constructor&&p.constructor.name?`an instance of ${p.constructor.name}`:`${Ze.inspect(p,{depth:-1})}`;let m=Ze.inspect(p,{colors:!1});return m.length>28&&(m=`${m.slice(0,25)}...`),`type ${typeof p} (${m})`}(s)}`,r},TypeError),bt.ERR_INVALID_MODULE_SPECIFIER=Tt("ERR_INVALID_MODULE_SPECIFIER",(t,e,s=void 0)=>`Invalid module "${t}" ${e}${s?` imported from ${s}`:""}`,TypeError),bt.ERR_INVALID_PACKAGE_CONFIG=Tt("ERR_INVALID_PACKAGE_CONFIG",(t,e,s)=>`Invalid package config ${t}${e?` while importing ${e}`:""}${s?`. ${s}`:""}`,Error),bt.ERR_INVALID_PACKAGE_TARGET=Tt("ERR_INVALID_PACKAGE_TARGET",(t,e,s,r=!1,n=void 0)=>{let h=typeof s=="string"&&!r&&s.length>0&&!s.startsWith("./");return e==="."?(Ht.ok(r===!1),`Invalid "exports" main target ${JSON.stringify(s)} defined in the package config ${t}package.json${n?` imported from ${n}`:""}${h?'; targets must start with "./"':""}`):`Invalid "${r?"imports":"exports"}" target ${JSON.stringify(s)} defined for '${e}' in the package config ${t}package.json${n?` imported from ${n}`:""}${h?'; targets must start with "./"':""}`},Error),bt.ERR_MODULE_NOT_FOUND=Tt("ERR_MODULE_NOT_FOUND",(t,e,s=!1)=>`Cannot find ${s?"module":"package"} '${t}' imported from ${e}`,Error),bt.ERR_NETWORK_IMPORT_DISALLOWED=Tt("ERR_NETWORK_IMPORT_DISALLOWED","import of '%s' by %s is not supported: %s",Error),bt.ERR_PACKAGE_IMPORT_NOT_DEFINED=Tt("ERR_PACKAGE_IMPORT_NOT_DEFINED",(t,e,s)=>`Package import specifier "${t}" is not defined${e?` in package ${e}package.json`:""} imported from ${s}`,TypeError),bt.ERR_PACKAGE_PATH_NOT_EXPORTED=Tt("ERR_PACKAGE_PATH_NOT_EXPORTED",(t,e,s=void 0)=>e==="."?`No "exports" main defined in ${t}package.json${s?` imported from ${s}`:""}`:`Package subpath '${e}' is not defined by "exports" in ${t}package.json${s?` imported from ${s}`:""}`,Error),bt.ERR_UNSUPPORTED_DIR_IMPORT=Tt("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported resolving ES modules imported from %s",Error),bt.ERR_UNSUPPORTED_RESOLVE_REQUEST=Tt("ERR_UNSUPPORTED_RESOLVE_REQUEST",'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',TypeError),bt.ERR_UNKNOWN_FILE_EXTENSION=Tt("ERR_UNKNOWN_FILE_EXTENSION",(t,e)=>`Unknown file extension "${t}" for ${e}`,TypeError),bt.ERR_INVALID_ARG_VALUE=Tt("ERR_INVALID_ARG_VALUE",(t,e,s="is invalid")=>{let r=Ze.inspect(e);return r.length>128&&(r=`${r.slice(0,128)}...`),`The ${t.includes(".")?"property":"argument"} '${t}' ${s}. Received ${r}`},TypeError);let Ls=function(t){let e="__node_internal_"+t.name;return Object.defineProperty(t,"name",{value:e}),t}(function(t){let e=xi();return e&&(Di=Error.stackTraceLimit,Error.stackTraceLimit=Number.POSITIVE_INFINITY),Error.captureStackTrace(t),e&&(Error.stackTraceLimit=Di),t}),Pe={}.hasOwnProperty,{ERR_INVALID_PACKAGE_CONFIG:Os}=bt,Vi=new Map;function Ui(t,{base:e,specifier:s}){let r=Vi.get(t);if(r)return r;let n;try{n=T.readFileSync(di.toNamespacedPath(t),"utf8")}catch(l){let p=l;if(p.code!=="ENOENT")throw p}let h={exists:!1,pjsonPath:t,main:void 0,name:void 0,type:"none",exports:void 0,imports:void 0};if(n!==void 0){let l;try{l=JSON.parse(n)}catch(p){let m=p,y=new Os(t,(e?`"${s}" from `:"")+B.fileURLToPath(e||s),m.message);throw y.cause=m,y}h.exists=!0,Pe.call(l,"name")&&typeof l.name=="string"&&(h.name=l.name),Pe.call(l,"main")&&typeof l.main=="string"&&(h.main=l.main),Pe.call(l,"exports")&&(h.exports=l.exports),Pe.call(l,"imports")&&(h.imports=l.imports),!Pe.call(l,"type")||l.type!=="commonjs"&&l.type!=="module"||(h.type=l.type)}return Vi.set(t,h),h}function vi(t){let e=new URL("package.json",t);for(;;){if(e.pathname.endsWith("node_modules/package.json"))break;let s=Ui(B.fileURLToPath(e),{specifier:t});if(s.exists)return s;let r=e;if(e=new URL("../package.json",e),e.pathname===r.pathname)break}return{pjsonPath:B.fileURLToPath(e),exists:!1,type:"none"}}function Mi(t){return vi(t).type}let{ERR_UNKNOWN_FILE_EXTENSION:Ds}=bt,Vs={}.hasOwnProperty,Us={__proto__:null,".cjs":"commonjs",".js":"module",".json":"json",".mjs":"module"},ji={__proto__:null,"data:":function(t){let{1:e}=/^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(t.pathname)||[null,null,null];return function(s){return s&&/\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(s)?"module":s==="application/json"?"json":null}(e)},"file:":function(t,e,s){let r=function(l){let p=l.pathname,m=p.length;for(;m--;){let y=p.codePointAt(m);if(y===47)return"";if(y===46)return p.codePointAt(m-1)===47?"":p.slice(m)}return""}(t);if(r===".js"){let l=Mi(t);return l!=="none"?l:"commonjs"}if(r===""){let l=Mi(t);return l==="none"||l==="commonjs"?"commonjs":"module"}let n=Us[r];if(n)return n;if(s)return;let h=B.fileURLToPath(t);throw new Ds(r,h)},"http:":Fi,"https:":Fi,"node:":()=>"builtin"};function Fi(){}let Ms=Object.freeze(["node","import"]),js=new Set(Ms);function Fs(t){return js}let ti=RegExp.prototype[Symbol.replace],{ERR_INVALID_MODULE_SPECIFIER:ei,ERR_INVALID_PACKAGE_CONFIG:Bi,ERR_INVALID_PACKAGE_TARGET:Bs,ERR_MODULE_NOT_FOUND:$i,ERR_PACKAGE_IMPORT_NOT_DEFINED:$s,ERR_PACKAGE_PATH_NOT_EXPORTED:Ws,ERR_UNSUPPORTED_DIR_IMPORT:qs,ERR_UNSUPPORTED_RESOLVE_REQUEST:Wi}=bt,qi={}.hasOwnProperty,Gi=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i,Ki=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i,Gs=/^\.|%|\\/,ii=/\*/g,Ks=/%2f|%5c/i,Hi=new Set,Hs=/[/\\]{2}/;function Qi(t,e,s,r,n,h,l){if(ee.noDeprecation)return;let p=B.fileURLToPath(r),m=Hs.exec(l?t:e)!==null;ee.emitWarning(`Use of deprecated ${m?"double slash":"leading or trailing slash matching"} resolving "${t}" for module request "${e}" ${e===s?"":`matched to "${s}" `}in the "${n?"imports":"exports"}" field module resolution of the package at ${p}${h?` imported from ${B.fileURLToPath(h)}`:""}.`,"DeprecationWarning","DEP0166")}function zi(t,e,s,r){if(ee.noDeprecation)return;if(function(m,y){let x=m.protocol;return Vs.call(ji,x)&&ji[x](m,y,!0)||null}(t,{parentURL:s.href})!=="module")return;let h=B.fileURLToPath(t.href),l=B.fileURLToPath(new URL(".",e)),p=B.fileURLToPath(s);r?di.resolve(l,r)!==h&&ee.emitWarning(`Package ${l} has a "main" field set to "${r}", excluding the full filename and extension to the resolved file at "${h.slice(l.length)}", imported from ${p}.
16
+ Automatic extension resolution of the "main" field is deprecated for ES modules.`,"DeprecationWarning","DEP0151"):ee.emitWarning(`No "main" or "exports" field defined in the package.json for ${l} resolving the main entry point "${h.slice(l.length)}", imported from ${p}.
17
+ Default "index" lookups for the main are deprecated for ES modules.`,"DeprecationWarning","DEP0151")}function Ji(t){try{return(0,T.statSync)(t)}catch{}}function yi(t){let e=(0,T.statSync)(t,{throwIfNoEntry:!1}),s=e?e.isFile():void 0;return s!=null&&s}function Qs(t,e,s){let r;if(e.main!==void 0){if(r=new URL(e.main,t),yi(r))return r;let l=[`./${e.main}.js`,`./${e.main}.json`,`./${e.main}.node`,`./${e.main}/index.js`,`./${e.main}/index.json`,`./${e.main}/index.node`],p=-1;for(;++p<l.length&&(r=new URL(l[p],t),!yi(r));)r=void 0;if(r)return zi(r,t,s,e.main),r}let n=["./index.js","./index.json","./index.node"],h=-1;for(;++h<n.length&&(r=new URL(n[h],t),!yi(r));)r=void 0;if(r)return zi(r,t,s,e.main),r;throw new $i(B.fileURLToPath(new URL(".",t)),B.fileURLToPath(s))}function _i(t,e,s){return new Ws(B.fileURLToPath(new URL(".",e)),t,s&&B.fileURLToPath(s))}function Ne(t,e,s,r,n){return e=typeof e=="object"&&e!==null?JSON.stringify(e,null,""):`${e}`,new Bs(B.fileURLToPath(new URL(".",s)),t,e,r,n&&B.fileURLToPath(n))}function zs(t,e,s,r,n,h,l,p,m){if(e!==""&&!h&&t[t.length-1]!=="/")throw Ne(s,t,r,l,n);if(!t.startsWith("./")){if(l&&!t.startsWith("../")&&!t.startsWith("/")){let b=!1;try{new URL(t),b=!0}catch{}if(!b)return Zi(h?ti.call(ii,t,()=>e):t+e,r,m)}throw Ne(s,t,r,l,n)}if(Gi.exec(t.slice(2))!==null){if(Ki.exec(t.slice(2))!==null)throw Ne(s,t,r,l,n);if(!p){let b=h?s.replace("*",()=>e):s+e;Qi(h?ti.call(ii,t,()=>e):t,b,s,r,l,n,!0)}}let y=new URL(t,r),x=y.pathname,k=new URL(".",r).pathname;if(!x.startsWith(k))throw Ne(s,t,r,l,n);if(e==="")return y;if(Gi.exec(e)!==null){let b=h?s.replace("*",()=>e):s+e;if(Ki.exec(e)===null){if(!p)Qi(h?ti.call(ii,t,()=>e):t,b,s,r,l,n,!1)}else(function(P,Q,ft,j,z){let U=`request is not a valid match in pattern "${Q}" for the "${j?"imports":"exports"}" resolution of ${B.fileURLToPath(ft)}`;throw new ei(P,U,z&&B.fileURLToPath(z))})(b,s,r,l,n)}return h?new URL(ti.call(ii,y.href,()=>e)):new URL(e,y)}function Js(t){let e=Number(t);return`${e}`===t&&(e>=0&&e<4294967295)}function de(t,e,s,r,n,h,l,p,m){if(typeof e=="string")return zs(e,s,r,t,n,h,l,p,m);if(Array.isArray(e)){let y=e;if(y.length===0)return null;let x,k=-1;for(;++k<y.length;){let b=y[k],P;try{P=de(t,b,s,r,n,h,l,p,m)}catch(Q){if(x=Q,Q.code==="ERR_INVALID_PACKAGE_TARGET")continue;throw Q}if(P!==void 0){if(P!==null)return P;x=null}}if(x==null)return null;throw x}if(typeof e=="object"&&e!==null){let y=Object.getOwnPropertyNames(e),x=-1;for(;++x<y.length;)if(Js(y[x]))throw new Bi(B.fileURLToPath(t),n,'"exports" cannot contain numeric property keys.');for(x=-1;++x<y.length;){let k=y[x];if(k==="default"||m&&m.has(k)){let b=de(t,e[k],s,r,n,h,l,p,m);if(b===void 0)continue;return b}}return null}if(e===null)return null;throw Ne(r,e,t,l,n)}function Ys(t,e,s){if(ee.noDeprecation)return;let r=B.fileURLToPath(e);Hi.has(r+"|"+t)||(Hi.add(r+"|"+t),ee.emitWarning(`Use of deprecated trailing slash pattern mapping "${t}" in the "exports" field module resolution of the package at ${r}${s?` imported from ${B.fileURLToPath(s)}`:""}. Mapping specifiers ending in "/" is no longer supported.`,"DeprecationWarning","DEP0155"))}function Yi(t,e,s,r,n){let h=s.exports;if(function(x,k,b){if(typeof x=="string"||Array.isArray(x))return!0;if(typeof x!="object"||x===null)return!1;let P=Object.getOwnPropertyNames(x),Q=!1,ft=0,j=-1;for(;++j<P.length;){let z=P[j],U=z===""||z[0]!==".";if(ft++===0)Q=U;else if(Q!==U)throw new Bi(B.fileURLToPath(k),b,`"exports" cannot contain some keys starting with '.' and some not. The exports object must either be an object of package subpath keys or an object of main entry condition name keys only.`)}return Q}(h,t,r)&&(h={".":h}),qi.call(h,e)&&!e.includes("*")&&!e.endsWith("/")){let x=de(t,h[e],"",e,r,!1,!1,!1,n);if(x==null)throw _i(e,t,r);return x}let l="",p="",m=Object.getOwnPropertyNames(h),y=-1;for(;++y<m.length;){let x=m[y],k=x.indexOf("*");if(k!==-1&&e.startsWith(x.slice(0,k))){e.endsWith("/")&&Ys(e,t,r);let b=x.slice(k+1);e.length>=x.length&&e.endsWith(b)&&Xi(l,x)===1&&x.lastIndexOf("*")===k&&(l=x,p=e.slice(k,e.length-b.length))}}if(l){let x=de(t,h[l],p,l,r,!0,!1,e.endsWith("/"),n);if(x==null)throw _i(e,t,r);return x}throw _i(e,t,r)}function Xi(t,e){let s=t.indexOf("*"),r=e.indexOf("*"),n=s===-1?t.length:s+1,h=r===-1?e.length:r+1;return n>h?-1:h>n||s===-1?1:r===-1||t.length>e.length?-1:e.length>t.length?1:0}function Xs(t,e,s){if(t==="#"||t.startsWith("#/")||t.endsWith("/"))throw new ei(t,"is not a valid internal imports specifier name",B.fileURLToPath(e));let r,n=vi(e);if(n.exists){r=B.pathToFileURL(n.pjsonPath);let h=n.imports;if(h)if(qi.call(h,t)&&!t.includes("*")){let l=de(r,h[t],"",t,e,!1,!0,!1,s);if(l!=null)return l}else{let l="",p="",m=Object.getOwnPropertyNames(h),y=-1;for(;++y<m.length;){let x=m[y],k=x.indexOf("*");if(k!==-1&&t.startsWith(x.slice(0,-1))){let b=x.slice(k+1);t.length>=x.length&&t.endsWith(b)&&Xi(l,x)===1&&x.lastIndexOf("*")===k&&(l=x,p=t.slice(k,t.length-b.length))}}if(l){let x=de(r,h[l],p,l,e,!0,!0,!1,s);if(x!=null)return x}}}throw function(h,l,p){return new $s(h,l&&B.fileURLToPath(new URL(".",l)),B.fileURLToPath(p))}(t,r,e)}function Zi(t,e,s){if(W.builtinModules.includes(t))return new URL("node:"+t);let{packageName:r,packageSubpath:n,isScoped:h}=function(x,k){let b=x.indexOf("/"),P=!0,Q=!1;x[0]==="@"&&(Q=!0,b===-1||x.length===0?P=!1:b=x.indexOf("/",b+1));let ft=b===-1?x:x.slice(0,b);if(Gs.exec(ft)!==null&&(P=!1),!P)throw new ei(x,"is not a valid package name",B.fileURLToPath(k));return{packageName:ft,packageSubpath:"."+(b===-1?"":x.slice(b)),isScoped:Q}}(t,e),l=vi(e);if(l.exists){let x=B.pathToFileURL(l.pjsonPath);if(l.name===r&&l.exports!==void 0&&l.exports!==null)return Yi(x,n,l,e,s)}let p,m=new URL("./node_modules/"+r+"/package.json",e),y=B.fileURLToPath(m);do{let x=Ji(y.slice(0,-13));if(!x||!x.isDirectory()){p=y,m=new URL((h?"../../../../node_modules/":"../../../node_modules/")+r+"/package.json",m),y=B.fileURLToPath(m);continue}let k=Ui(y,{base:e,specifier:t});return k.exports!==void 0&&k.exports!==null?Yi(m,n,k,e,s):n==="."?Qs(m,k,e):new URL(n,m)}while(y.length!==p.length)}function Zs(t,e,s,r){s===void 0&&(s=Fs());let n=e.protocol,h=n==="data:"||n==="http:"||n==="https:",l;if(function(p){return p!==""&&(p[0]==="/"||function(m){if(m[0]==="."){if(m.length===1||m[1]==="/")return!0;if(m[1]==="."&&(m.length===2||m[2]==="/"))return!0}return!1}(p))}(t))try{l=new URL(t,e)}catch(p){let m=new Wi(t,e);throw m.cause=p,m}else if(n==="file:"&&t[0]==="#")l=Xs(t,e,s);else try{l=new URL(t)}catch(p){if(h&&!W.builtinModules.includes(t)){let m=new Wi(t,e);throw m.cause=p,m}l=Zi(t,e,s)}return Ht.ok(l!==void 0,"expected to be defined"),l.protocol!=="file:"?l:function(p,m){if(Ks.exec(p.pathname)!==null)throw new ei(p.pathname,'must not include encoded "/" or "\\" characters',B.fileURLToPath(m));let y;try{y=B.fileURLToPath(p)}catch(k){let b=k;throw Object.defineProperty(b,"input",{value:String(p)}),Object.defineProperty(b,"module",{value:String(m)}),b}let x=Ji(y.endsWith("/")?y.slice(-1):y);if(x&&x.isDirectory()){let k=new qs(y,B.fileURLToPath(m));throw k.url=String(p),k}if(!x||!x.isFile()){let k=new $i(y||p.pathname,m&&B.fileURLToPath(m),!0);throw k.url=String(p),k}{let k=(0,T.realpathSync)(y),{search:b,hash:P}=p;(p=B.pathToFileURL(k+(y.endsWith(di.sep)?"/":""))).search=b,p.hash=P}return p}(l,e)}function me(t){return typeof t!="string"||t.startsWith("file://")?mi(B.fileURLToPath(t)):mi(t)}function ie(t){return B.pathToFileURL(me(t)).toString()}let tr=new Set(["node","import"]),er=[".mjs",".cjs",".js",".json"],ir=new Set(["ERR_MODULE_NOT_FOUND","ERR_UNSUPPORTED_DIR_IMPORT","MODULE_NOT_FOUND","ERR_PACKAGE_PATH_NOT_EXPORTED"]);function ts(t,e,s){try{return Zs(t,e,s)}catch(r){if(!ir.has(r?.code))throw r}}function sr(t,e={}){if(typeof t!="string"){if(!(t instanceof URL))throw TypeError("input must be a `string` or `URL`");t=me(t)}if(/(?:node|data|http|https):/.test(t))return t;if(Li.has(t))return"node:"+t;if(t.startsWith("file://")&&(t=me(t)),te(t))try{if((0,T.statSync)(t).isFile())return ie(t)}catch(l){if(l?.code!=="ENOENT")throw l}let s=e.conditions?new Set(e.conditions):tr,r=(Array.isArray(e.url)?e.url:[e.url]).filter(Boolean).map((l)=>new URL(function(p){return typeof p!="string"&&(p=p.toString()),/(?:node|data|http|https|file):/.test(p)?p:Li.has(p)?"node:"+p:"file://"+encodeURI(mi(p))}(l.toString())));r.length===0&&r.push(new URL(ie(process.cwd())));let n=[...r];for(let l of r)l.protocol==="file:"&&n.push(new URL("./",l),new URL(Zt(l.pathname,"_index.js"),l),new URL("node_modules",l));let h;for(let l of n){if(h=ts(t,l,s),h)break;for(let p of["","/index"]){for(let m of e.extensions||er)if(h=ts(Zt(t,p)+m,l,s),h)break;if(h)break}if(h)break}if(!h){let l=Error(`Cannot find module ${t} imported from ${n.join(", ")}`);throw l.code="ERR_MODULE_NOT_FOUND",l}return ie(h)}function rr(t,e){return sr(t,e)}function nr(t,e){return me(rr(t,e))}let ar=/(?:[\s;]|^)(?:import[\s\w*,{}]*from|import\s*["'*{]|export\b\s*(?:[*{]|default|class|type|function|const|var|let|async function)|import\.meta\b)/m,or=/\/\*.+?\*\/|\/\/.*(?=[nr])/g;function cr(t,e={}){return e.stripComments&&(t=t.replace(or,"")),ar.test(t)}function es(t){if(typeof t!="string")throw TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}let hr=new Set(["/","\\",void 0]),is=Symbol.for("pathe:normalizedAlias"),lr=/[/\\]/;function ss(t){if(t[is])return t;let e=Object.fromEntries(Object.entries(t).sort(([s],[r])=>function(n,h){return h.split("/").length-n.split("/").length}(s,r)));for(let s in e)for(let r in e)r===s||s.startsWith(r)||e[s]?.startsWith(r)&&hr.has(e[s][r.length])&&(e[s]=e[r]+e[s].slice(r.length));return Object.defineProperty(e,is,{value:!0,enumerable:!1}),e}function rs(t="/"){let e=t[t.length-1];return e==="/"||e==="\\"}var pr={rE:"2.6.1"};let ur=c("node:crypto");var Ei=kt.n(ur);let Ct=globalThis.process?.env||Object.create(null),Qt=globalThis.process||{env:Ct},si=Qt!==void 0&&Qt.env&&Qt.env.NODE_ENV||void 0,fr=[["claude",["CLAUDECODE","CLAUDE_CODE"]],["replit",["REPL_ID"]],["gemini",["GEMINI_CLI"]],["codex",["CODEX_SANDBOX","CODEX_THREAD_ID"]],["opencode",["OPENCODE"]],["pi",[bi("PATH",/\.pi[\\/]agent/)]],["auggie",["AUGMENT_AGENT"]],["goose",["GOOSE_PROVIDER"]],["devin",[bi("EDITOR",/devin/)]],["cursor",["CURSOR_AGENT"]],["kiro",[bi("TERM_PROGRAM",/kiro/)]]];function bi(t,e){return()=>{let s=Ct[t];return!!s&&e.test(s)}}let ns=function(){let t=Ct.AI_AGENT;if(t)return{name:t.toLowerCase()};for(let[e,s]of fr)for(let r of s)if(typeof r=="string"?Ct[r]:r())return{name:e};return{}}(),dr=(ns.name,ns.name,[["APPVEYOR"],["AWS_AMPLIFY","AWS_APP_ID",{ci:!0}],["AZURE_PIPELINES","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],["AZURE_STATIC","INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"],["APPCIRCLE","AC_APPCIRCLE"],["BAMBOO","bamboo_planKey"],["BITBUCKET","BITBUCKET_COMMIT"],["BITRISE","BITRISE_IO"],["BUDDY","BUDDY_WORKSPACE_ID"],["BUILDKITE"],["CIRCLE","CIRCLECI"],["CIRRUS","CIRRUS_CI"],["CLOUDFLARE_PAGES","CF_PAGES",{ci:!0}],["CLOUDFLARE_WORKERS","WORKERS_CI",{ci:!0}],["GOOGLE_CLOUDRUN","K_SERVICE"],["GOOGLE_CLOUDRUN_JOB","CLOUD_RUN_JOB"],["CODEBUILD","CODEBUILD_BUILD_ARN"],["CODEFRESH","CF_BUILD_ID"],["DRONE"],["DRONE","DRONE_BUILD_EVENT"],["DSARI"],["GITHUB_ACTIONS"],["GITLAB","GITLAB_CI"],["GITLAB","CI_MERGE_REQUEST_ID"],["GOCD","GO_PIPELINE_LABEL"],["LAYERCI"],["JENKINS","JENKINS_URL"],["HUDSON","HUDSON_URL"],["MAGNUM"],["NETLIFY"],["NETLIFY","NETLIFY_LOCAL",{ci:!1}],["NEVERCODE"],["RENDER"],["SAIL","SAILCI"],["SEMAPHORE"],["SCREWDRIVER"],["SHIPPABLE"],["SOLANO","TDDIUM"],["STRIDER"],["TEAMCITY","TEAMCITY_VERSION"],["TRAVIS"],["VERCEL","NOW_BUILDER"],["VERCEL","VERCEL",{ci:!1}],["VERCEL","VERCEL_ENV",{ci:!1}],["APPCENTER","APPCENTER_BUILD_ID"],["CODESANDBOX","CODESANDBOX_SSE",{ci:!1}],["CODESANDBOX","CODESANDBOX_HOST",{ci:!1}],["STACKBLITZ"],["STORMKIT"],["CLEAVR"],["ZEABUR"],["CODESPHERE","CODESPHERE_APP_ID",{ci:!0}],["RAILWAY","RAILWAY_PROJECT_ID"],["RAILWAY","RAILWAY_SERVICE_ID"],["DENO-DEPLOY","DENO_DEPLOY"],["DENO-DEPLOY","DENO_DEPLOYMENT_ID"],["FIREBASE_APP_HOSTING","FIREBASE_APP_HOSTING",{ci:!0}],["EDGEONE_PAGES","EO_PAGES_CI",{ci:!0}]]),as=function(){for(let t of dr)if(Ct[t[1]||t[0]])return{name:t[0].toLowerCase(),...t[2]};return Ct.SHELL==="/bin/jsh"&&Qt.versions?.webcontainer?{name:"stackblitz",ci:!1}:{name:"",ci:!1}}(),Ci=(as.name,Qt.platform||""),Or=!!Ct.CI||as.ci!==!1,mr=!!Qt.stdout?.isTTY,Dr=(Ct.DEBUG,si==="test"||!!Ct.TEST),os=(si==="production"||Ct.MODE,si==="dev"||si==="development"||Ct.MODE,Ct.MINIMAL,/^win/i.test(Ci)),gr=(/^linux/i.test(Ci),/^darwin/i.test(Ci),!Ct.NO_COLOR&&(!!Ct.FORCE_COLOR||(mr||os)&&Ct.TERM),(Qt.versions?.node||"").replace(/^v/,"")||null),xr=(Number(gr?.split(".")[0]),!!Qt?.versions?.node),vr="Bun"in globalThis,yr="Deno"in globalThis,_r="fastly"in globalThis,Er=[["Netlify"in globalThis,"netlify"],["EdgeRuntime"in globalThis,"edge-light"],[globalThis.navigator?.userAgent==="Cloudflare-Workers","workerd"],[_r,"fastly"],[yr,"deno"],[vr,"bun"],[xr,"node"]];(function(){let t=Er.find((e)=>e[0]);if(t)t[1]})();let br=c("node:tty"),Cr=br?.WriteStream?.prototype?.hasColors?.()??!1,M=(t,e)=>{if(!Cr)return(n)=>n;let s=`\x1B[${t}m`,r=`\x1B[${e}m`;return(n)=>{let h=n+"",l=h.indexOf(r);if(l===-1)return s+h+r;let p=s,m=0,y=(e===22?r:"")+s;for(;l!==-1;)p+=h.slice(m,l)+y,m=l+r.length,l=h.indexOf(r,m);return p+=h.slice(m)+r,p}},cs=(M(0,0),M(1,22),M(2,22),M(3,23),M(4,24),M(53,55),M(7,27),M(8,28),M(9,29),M(30,39),M(31,39)),ge=M(32,39),ri=M(33,39),hs=M(34,39),kr=(M(35,39),M(36,39)),wr=(M(37,39),M(90,39));M(40,49),M(41,49),M(42,49),M(43,49),M(44,49),M(45,49),M(46,49),M(47,49),M(100,49),M(91,39),M(92,39),M(93,39),M(94,39),M(95,39),M(96,39),M(97,39),M(101,49),M(102,49),M(103,49),M(104,49),M(105,49),M(106,49),M(107,49);function ls(t){if(typeof t!="string"||t.startsWith("file://"))return!1;try{return(0,T.lstatSync)(t).isDirectory()}catch{return!1}}function ps(t,e=8){return(function(){if(xe!==void 0)return xe;try{return xe=!!Ei().getFips?.(),xe}catch{return xe=!1,xe}}()?Ei().createHash("sha256"):Ei().createHash("md5")).update(t).digest("hex").slice(0,e)}let us={true:ge("true"),false:ri("false"),"[rebuild]":ri("[rebuild]"),"[esm]":hs("[esm]"),"[cjs]":ge("[cjs]"),"[import]":hs("[import]"),"[require]":ge("[require]"),"[native]":kr("[native]"),"[transpile]":ri("[transpile]"),"[fallback]":cs("[fallback]"),"[unknown]":cs("[unknown]"),"[hit]":ge("[hit]"),"[miss]":ri("[miss]"),"[json]":ge("[json]"),"[data]":ge("[data]")};function pt(t,...e){if(!t.opts.debug)return;let s=process.cwd();console.log(wr(["[jiti]",...e.map((r)=>(r in us)?us[r]:typeof r!="string"?JSON.stringify(r):r.replace(s,"."))].join(" ")))}function Wt(t,e){return t.opts.interopDefault?function(s){let r=typeof s;if(s===null||r!=="object"&&r!=="function")return s;let n=s.default,h=typeof n,l=n==null,p=h==="object"||h==="function";if(l&&s instanceof Promise)return s;let m=h==="function"&&r!=="function",y=p&&!(n instanceof Promise),x=new Map;return new Proxy(s,{get(k,b){if(x.has(b))return x.get(b);let P;return b==="__esModule"?P=!0:b==="default"?P=l?s:typeof n?.default=="function"&&s.__esModule?n.default:n:(b in k)?P=k[b]:y&&(P=n[b],typeof P=="function"&&(P=P.bind(n))),x.set(b,P),P},apply:m?(k,b,P)=>Reflect.apply(n,b,P):void 0})}(e):e}let xe;function Vt(t,e){let s=se(t,e);return Boolean(s)}function se(t,e,s){let r=process.env[t];if(!(t in process.env))return e;try{return JSON.parse(r)}catch{return s?r:e}}let fs=/\.(c|m)?j(sx?)$/,ds=/\.(c|m)?t(sx?)$/;function ve(t,e,s){let r,n;if(t.isNativeRe.test(e))return e;if(t.resolveTsConfigPaths&&!s.skipTsConfigPaths){let p=t.resolveTsConfigPaths(e);for(let m of p){let y=ve(t,m,{...s,try:!0,skipTsConfigPaths:!0});if(y)return y}}t.alias&&(e=function(p,m){let y=ct(p);m=ss(m);for(let[x,k]of Object.entries(m)){if(!y.startsWith(x))continue;let b=rs(x)?x.slice(0,-1):x;if(rs(y[b.length]))return Dt(k,y.slice(x.length))}return y}(e,t.alias));let h=s?.parentURL||t.url;ls(h)&&(h=Dt(h,"_index.js"));let l=((s?.async)?[s?.conditions,["node","import"],["node","require"]]:[s?.conditions,["node","require"],["node","import"]]).filter(Boolean);for(let p of l){try{r=nr(e,{url:h,conditions:p,extensions:t.opts.extensions})}catch(m){n=m}if(r)return r}try{return t.nativeRequire.resolve(e,{paths:s.paths})}catch(p){n=p}for(let p of t.additionalExts){if(r=ki(t,e+p,h,s)||ki(t,e+"/index"+p,h,s),r)return r;if((ds.test(t.filename)||ds.test(t.parentModule?.filename||"")||fs.test(e))&&(r=ki(t,e.replace(fs,".$1t$2"),h,s),r))return r}if(!s?.try)throw n}function ki(t,e,s,r){try{return t.nativeRequire.resolve(e,{...r,paths:[Re(me(s)),...r?.paths||[]]})}catch{}}let Sr=c("node:fs/promises"),ms=c("node:perf_hooks"),Ir=c("node:vm");var Ar=kt.n(Ir);function ni(t,e,s){let r=t.parentCache||{};if(e.startsWith("node:"))return re(t,e,s.async);if(e.startsWith("file:"))e=B.fileURLToPath(e);else if(e.startsWith("data:")){if(!s.async)throw Error("`data:` URLs are only supported in ESM context. Use `import` or `jiti.import` instead.");return pt(t,"[native]","[data]","[import]",e),re(t,e,!0)}if(W.builtinModules.includes(e)||e===".pnp.js")return re(t,e,s.async);if(t.opts.virtualModules&&e in t.opts.virtualModules){pt(t,"[virtual]",e);let p=t.opts.virtualModules[e];return s.async?Promise.resolve(Wt(t,p)):Wt(t,p)}if(t.opts.tryNative&&!t.opts.transformOptions)try{if(!(e=ve(t,e,s))&&s.try)return;if(pt(t,"[try-native]",s.async&&t.nativeImport?"[import]":"[require]",e),s.async&&t.nativeImport)return t.nativeImport(e).then((p)=>(t.opts.moduleCache===!1&&delete t.nativeRequire.cache[e],Wt(t,p))).catch((p)=>(pt(t,`[try-native] Using fallback for ${e} because of an error:`,p),ni({...t,opts:{...t.opts,tryNative:!1}},e,s)));{let p=t.nativeRequire(e);return t.opts.moduleCache===!1&&delete t.nativeRequire.cache[e],Wt(t,p)}}catch(p){pt(t,`[try-native] Using fallback for ${e} because of an error:`,p)}let n=ve(t,e,s);if(!n&&s.try)return;let h=ui(n);if(h===".json"){pt(t,"[json]",n);let p=t.nativeRequire(n);return p&&!("default"in p)&&Object.defineProperty(p,"default",{value:p,enumerable:!1}),p}if(h&&!t.opts.extensions.includes(h))return pt(t,"[native]","[unknown]",s.async?"[import]":"[require]",n),re(t,n,s.async);if(t.isNativeRe.test(n))return pt(t,"[native]",s.async?"[import]":"[require]",n),re(t,n,s.async);if(r[n])return Wt(t,r[n]?.exports);if(t.opts.moduleCache){let p=t.nativeRequire.cache[n];if(p?.loaded)return Wt(t,p.exports)}let l=(0,T.readFileSync)(n,"utf8");return Si(t,l,{id:e,filename:n,ext:h,cache:r,async:s.async})}function re(t,e,s){return s&&t.nativeImport?t.nativeImport(function(r){return os&&te(r)?ie(r):r}(e)).then((r)=>Wt(t,r)):Wt(t,t.nativeRequire(e))}let Tr="9";function Rr(t,e,s){if(!t.opts.fsCache||!e.filename)return s();let r=` /* v${Tr}-${ps(e.source,16)} */
18
+ `,n=`${fi(Re(e.filename))}-${function(m){let y=m.split(lr).pop();if(!y)return;let x=y.lastIndexOf(".");return x<=0?y:y.slice(0,x)}(e.filename)}`+(t.opts.sourceMaps?"+map":"")+(e.interopDefault?".i":"")+`.${ps(e.filename)}`+(e.async?".mjs":".cjs");e.jsx&&e.filename.endsWith("x")&&(n+="x");let h=t.opts.fsCache,l=Dt(h,n);if(!t.opts.rebuildFsCache&&(0,T.existsSync)(l)){let m=(0,T.readFileSync)(l,"utf8");if(m.endsWith(r))return pt(t,"[cache]","[hit]",e.filename,"~>",l),m}pt(t,"[cache]","[miss]",e.filename);let p=s();return p.includes("__JITI_ERROR__")||((0,T.writeFileSync)(l,p+r,"utf8"),pt(t,"[cache]","[store]",e.filename,"~>",l)),p}function Pr(t){if(t.opts.fsCache===!0&&(t.opts.fsCache=function(e){let s=e.filename&&As(e.filename,"../node_modules");if(s&&(0,T.existsSync)(s))return Dt(s,".cache/jiti");let r=q.tmpdir();if(process.env.TMPDIR&&r===process.cwd()&&!process.env.JITI_RESPECT_TMPDIR_ENV){let n=process.env.TMPDIR;delete process.env.TMPDIR,r=q.tmpdir(),process.env.TMPDIR=n}return Dt(r,"jiti")}(t)),t.opts.fsCache)try{if((0,T.mkdirSync)(t.opts.fsCache,{recursive:!0}),!function(e){try{return(0,T.accessSync)(e,T.constants.W_OK),!0}catch{return!1}}(t.opts.fsCache))throw Error("directory is not writable!")}catch(e){pt(t,"Error creating cache directory at ",t.opts.fsCache,e),t.opts.fsCache=!1}}function wi(t,e){let s=Rr(t,e,()=>{let r=t.opts.transform({...t.opts.transformOptions,babel:{...t.opts.sourceMaps?{sourceFileName:e.filename,sourceMaps:"inline"}:{},...t.opts.transformOptions?.babel},interopDefault:t.opts.interopDefault,...e});return r.error&&t.opts.debug&&pt(t,r.error),r.code});return s.startsWith("#!")&&(s="// "+s),s}function Si(t,e,s={}){let r=s.id||(s.filename?fi(s.filename):`_jitiEval.${s.ext||(s.async?"mjs":"js")}`),n=s.filename||ve(t,r,{async:s.async}),h=s.ext||ui(n),l=s.cache||t.parentCache||{},p=/\.[cm]?tsx?$/.test(h),m=h===".mjs"||h===".js"&&function(U){for(;U&&U!=="."&&U!=="/";){U=Dt(U,"..");try{let ne=(0,T.readFileSync)(Dt(U,"package.json"),"utf8");try{return JSON.parse(ne)}catch{}break}catch{}}}(n)?.type==="module",y=h===".cjs",x=s.forceTranspile??(!y&&!(m&&s.async)&&(p||m||t.isTransformRe.test(n)||cr(e))),k=ms.performance.now();if(x){e=wi(t,{filename:n,source:e,ts:p,async:s.async??!1,jsx:t.opts.jsx});let U=Math.round(1000*(ms.performance.now()-k))/1000;pt(t,"[transpile]",s.async?"[esm]":"[cjs]",n,`(${U}ms)`)}else{if(pt(t,"[native]",s.async?"[import]":"[require]",n),s.async)return Promise.resolve(re(t,n,s.async)).catch((U)=>(pt(t,"Native import error:",U),pt(t,"[fallback]",n),Si(t,e,{...s,forceTranspile:!0})));try{return re(t,n,s.async)}catch(U){pt(t,"Native require error:",U),pt(t,"[fallback]",n),e=wi(t,{filename:n,source:e,ts:p,async:s.async??!1,jsx:t.opts.jsx})}}let b=new W.Module(n);b.filename=n,t.parentModule&&(b.parent=t.parentModule,Array.isArray(t.parentModule.children)&&!t.parentModule.children.includes(b)&&t.parentModule.children.push(b));let P=gs(n,t.opts,{parentModule:b,parentCache:l,nativeImport:t.nativeImport,onError:t.onError,createRequire:t.createRequire},!0),Q;b.require=P,b.path=Re(n),b.paths=W.Module._nodeModulePaths(b.path),l[n]=b,t.opts.moduleCache&&(t.nativeRequire.cache[n]=b);let ft=function(U,ne){return`(${ne?.async?"async ":""}function (exports, require, module, __filename, __dirname, jitiImport, jitiESMResolve) { ${U}
19
+ });`}(e,{async:s.async});try{Q=Ar().runInThisContext(ft,{filename:n,lineOffset:0,displayErrors:!1})}catch(U){U.name==="SyntaxError"&&s.async&&t.nativeImport?(pt(t,"[esm]","[import]","[fallback]",n),Q=function(ne,Ii,Ai,ai,oi){let xs=`export default ${Ii}`,vs=oi?void 0:`data:text/javascript;base64,${Buffer.from(xs).toString("base64")}`;return(...Lr)=>{let Le,ys=()=>(Le=function(ye,_s){let Es=Dt(q.tmpdir(),"jiti-esm");try{(0,T.mkdirSync)(Es,{recursive:!0})}catch{}let bs=Dt(Es,`${fi(_s,ui(_s))}-${Date.now()}-${Math.random().toString(36).slice(2)}.mjs`);return(0,T.writeFileSync)(bs,ye),bs}(xs,Ai),pt(ne,"[esm]","[tempfile]",Le),ai(ie(Le)));return(vs?ai(vs).catch((ye)=>{if(ye?.code!=="ENAMETOOLONG")throw ye;return ys()}):ys()).then((ye)=>ye.default(...Lr)).finally(()=>{Le&&Sr.unlink(Le).catch(()=>{})})}}(t,ft,n,t.nativeImport,t.opts.esmEvalTempFile)):(t.opts.moduleCache&&delete t.nativeRequire.cache[n],t.onError(U))}let j;try{j=Q(b.exports,b.require,b,b.filename,Re(b.filename),P.import,P.esmResolve)}catch(U){t.opts.moduleCache&&delete t.nativeRequire.cache[n],t.onError(U)}function z(){if(b.exports&&b.exports.__JITI_ERROR__){let{filename:U,line:ne,column:Ii,code:Ai,message:ai}=b.exports.__JITI_ERROR__,oi=Error(`${Ai}: ${ai}
20
+ ${`${U}:${ne}:${Ii}`}`);Error.captureStackTrace(oi,ni),t.onError(oi)}return b.loaded=!0,Wt(t,b.exports)}return s.async?Promise.resolve(j).then(z):z()}let Nr=q.platform()==="win32";function gs(t,e={},s,r=!1){let n=r?e:function(j){let z={fsCache:Vt("JITI_FS_CACHE",Vt("JITI_CACHE",!0)),rebuildFsCache:Vt("JITI_REBUILD_FS_CACHE",!1),moduleCache:Vt("JITI_MODULE_CACHE",Vt("JITI_REQUIRE_CACHE",!0)),debug:Vt("JITI_DEBUG",!1),sourceMaps:Vt("JITI_SOURCE_MAPS",!1),interopDefault:Vt("JITI_INTEROP_DEFAULT",!0),extensions:se("JITI_EXTENSIONS",[".js",".mjs",".cjs",".ts",".tsx",".mts",".cts",".mtsx",".ctsx"]),alias:se("JITI_ALIAS",{}),nativeModules:se("JITI_NATIVE_MODULES",[]),transformModules:se("JITI_TRANSFORM_MODULES",[]),tryNative:se("JITI_TRY_NATIVE","Bun"in globalThis),esmEvalTempFile:Vt("JITI_ESM_EVAL_TEMP_FILE",!1),jsx:Vt("JITI_JSX",!1),tsconfigPaths:se("JITI_TSCONFIG_PATHS",!1,!0)};z.jsx&&z.extensions.push(".jsx",".tsx");let U={};return j.cache!==void 0&&(U.fsCache=j.cache),j.requireCache!==void 0&&(U.moduleCache=j.requireCache),{...z,...U,...j}}(e);typeof t=="string"&&t.startsWith("file://")&&(t=me(t));let h=n.alias&&Object.keys(n.alias).length>0?ss(n.alias||{}):void 0,l;if(n.tsconfigPaths){let{getTsconfig:j,createPathsMatcher:z}=kt("./node_modules/.pnpm/get-tsconfig@4.14.0/node_modules/get-tsconfig/dist/index.cjs"),U=j(typeof n.tsconfigPaths=="string"?n.tsconfigPaths:Re(t));U&&(l=z(U))}let p=["typescript","jiti",...n.nativeModules||[]],m=new RegExp(`node_modules/(${p.map((j)=>es(j)).join("|")})/`),y=[...n.transformModules||[]],x=new RegExp(`node_modules/(${y.map((j)=>es(j)).join("|")})/`);t||(t=process.cwd()),!r&&ls(t)&&(t=Dt(t,"_index.js"));let k=ie(t),b=[...n.extensions].filter((j)=>j!==".js"),P=s.createRequire(Nr?t.replace(/\//g,"\\"):t),Q={filename:t,url:k,opts:n,alias:h,resolveTsConfigPaths:l,nativeModules:p,transformModules:y,isNativeRe:m,isTransformRe:x,additionalExts:b,nativeRequire:P,onError:s.onError,parentModule:s.parentModule,parentCache:s.parentCache,nativeImport:s.nativeImport,createRequire:s.createRequire};return r||pt(Q,"[init]",...[["version:",pr.rE],["module-cache:",n.moduleCache],["fs-cache:",n.fsCache],["rebuild-fs-cache:",n.rebuildFsCache],["interop-defaults:",n.interopDefault]].flat()),r||Pr(Q),Object.assign(function(j){return ni(Q,j,{async:!1})},{cache:n.moduleCache?P.cache:Object.create(null),extensions:P.extensions,main:P.main,options:n,resolve:Object.assign(function(j,z){return ve(Q,j,{...z,async:!1})},{paths:P.resolve.paths}),transform:(j)=>wi(Q,j),evalModule:(j,z)=>Si(Q,j,z),async import(j,z){let U=await ni(Q,j,{...z,async:!0});return z?.default?U?.default??U:U},esmResolve(j,z){typeof z=="string"&&(z={parentURL:z});let U=ve(Q,j,{parentURL:k,...z,async:!0});return!U||typeof U!="string"||U.startsWith("file://")?U:ie(U)}})}})(),Cs.exports=Ri.default})()});
21
+ export{Zp};