@compass-labs/api-sdk 2.2.9 → 2.2.10

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 (59) hide show
  1. package/CLAUDE.md +37 -0
  2. package/codeSamples_typescript.yaml +1 -1
  3. package/dist/commonjs/lib/config.d.ts +2 -2
  4. package/dist/commonjs/lib/config.js +2 -2
  5. package/dist/commonjs/models/components/earnmanageparams.d.ts +11 -2
  6. package/dist/commonjs/models/components/earnmanageparams.d.ts.map +1 -1
  7. package/dist/commonjs/models/components/earnmanageparams.js +8 -2
  8. package/dist/commonjs/models/components/earnmanageparams.js.map +1 -1
  9. package/dist/commonjs/models/components/earnmanagerequest.d.ts +11 -2
  10. package/dist/commonjs/models/components/earnmanagerequest.d.ts.map +1 -1
  11. package/dist/commonjs/models/components/earnmanagerequest.js +8 -2
  12. package/dist/commonjs/models/components/earnmanagerequest.js.map +1 -1
  13. package/dist/commonjs/models/components/earntransfertoeoaparams.d.ts +12 -3
  14. package/dist/commonjs/models/components/earntransfertoeoaparams.d.ts.map +1 -1
  15. package/dist/commonjs/models/components/earntransfertoeoaparams.js +8 -2
  16. package/dist/commonjs/models/components/earntransfertoeoaparams.js.map +1 -1
  17. package/dist/commonjs/models/components/v2bundlerequest.d.ts +1 -1
  18. package/dist/esm/lib/config.d.ts +2 -2
  19. package/dist/esm/lib/config.js +2 -2
  20. package/dist/esm/models/components/earnmanageparams.d.ts +11 -2
  21. package/dist/esm/models/components/earnmanageparams.d.ts.map +1 -1
  22. package/dist/esm/models/components/earnmanageparams.js +6 -1
  23. package/dist/esm/models/components/earnmanageparams.js.map +1 -1
  24. package/dist/esm/models/components/earnmanagerequest.d.ts +11 -2
  25. package/dist/esm/models/components/earnmanagerequest.d.ts.map +1 -1
  26. package/dist/esm/models/components/earnmanagerequest.js +6 -1
  27. package/dist/esm/models/components/earnmanagerequest.js.map +1 -1
  28. package/dist/esm/models/components/earntransfertoeoaparams.d.ts +12 -3
  29. package/dist/esm/models/components/earntransfertoeoaparams.d.ts.map +1 -1
  30. package/dist/esm/models/components/earntransfertoeoaparams.js +6 -1
  31. package/dist/esm/models/components/earntransfertoeoaparams.js.map +1 -1
  32. package/dist/esm/models/components/v2bundlerequest.d.ts +1 -1
  33. package/docs/models/components/earnmanageparams.md +1 -1
  34. package/docs/models/components/earnmanageparamsamount.md +19 -0
  35. package/docs/models/components/earnmanagerequest.md +1 -1
  36. package/docs/models/components/earnmanagerequestamount.md +19 -0
  37. package/docs/models/components/earntransfertoeoaparams.md +5 -5
  38. package/docs/models/components/earntransfertoeoaparamsamount.md +19 -0
  39. package/docs/models/components/v2bundlerequest.md +3 -3
  40. package/docs/sdks/earn/README.md +2 -2
  41. package/examples/node_modules/@esbuild/linux-x64/bin/esbuild +0 -0
  42. package/examples/node_modules/@esbuild/linux-x64/package.json +1 -1
  43. package/examples/node_modules/@types/node/README.md +1 -1
  44. package/examples/node_modules/@types/node/package.json +2 -2
  45. package/examples/node_modules/@types/node/stream/web.d.ts +1 -1
  46. package/examples/node_modules/@types/node/web-globals/fetch.d.ts +9 -0
  47. package/examples/node_modules/esbuild/bin/esbuild +0 -0
  48. package/examples/node_modules/esbuild/lib/main.js +8 -8
  49. package/examples/node_modules/esbuild/package.json +27 -27
  50. package/examples/node_modules/get-tsconfig/dist/index.cjs +7 -7
  51. package/examples/node_modules/get-tsconfig/dist/index.mjs +7 -7
  52. package/examples/node_modules/get-tsconfig/package.json +1 -1
  53. package/examples/package-lock.json +115 -115
  54. package/package.json +3 -3
  55. package/src/lib/config.ts +2 -2
  56. package/src/models/components/earnmanageparams.ts +26 -3
  57. package/src/models/components/earnmanagerequest.ts +26 -3
  58. package/src/models/components/earntransfertoeoaparams.ts +29 -4
  59. package/src/models/components/v2bundlerequest.ts +1 -1
@@ -40,7 +40,7 @@ import { V2UserOperation, V2UserOperation$Outbound } from "./v2useroperation.js"
40
40
  * a V2_TRANSFER_TO_EOA action to your bundle. No signature is required since
41
41
  * the Safe already owns the tokens.
42
42
  *
43
- * Use `amount: "ALL"` to transfer the entire token balance.
43
+ * Specify the exact token amount to transfer.
44
44
  */
45
45
  export type V2BundleRequest = {
46
46
  /**
@@ -28,4 +28,4 @@ let value: EarnManageParams = {
28
28
  | `actionType` | *"V2_MANAGE"* | :heavy_check_mark: | Action type identifier for manage operations. | V2_MANAGE |
29
29
  | `venue` | *components.EarnManageParamsVenue* | :heavy_check_mark: | The earn venue. | |
30
30
  | `action` | [components.EarnManageParamsAction](../../models/components/earnmanageparamsaction.md) | :heavy_check_mark: | Whether you are depositing into or withdrawing from the given Earn `venue`. | |
31
- | `amount` | *any* | :heavy_check_mark: | Amount of the underlying asset to act on (deposit or withdraw). For VAULT, this is the vault's underlying token; for AAVE, this is the Aave reserve asset; for PENDLE_PT, this is the amount of `token` to spend (DEPOSIT) or PT to sell (WITHDRAW). Provide as a decimal in token units (not wei); must be > 0. | |
31
+ | `amount` | *components.EarnManageParamsAmount* | :heavy_check_mark: | Amount of the underlying asset to act on (deposit or withdraw). For VAULT, this is the vault's underlying token; for AAVE, this is the Aave reserve asset; for PENDLE_PT, this is the amount of `token` to spend (DEPOSIT) or PT to sell (WITHDRAW). Provide as a decimal in token units (not wei); must be > 0. | |
@@ -0,0 +1,19 @@
1
+ # EarnManageParamsAmount
2
+
3
+ Amount of the underlying asset to act on (deposit or withdraw). For VAULT, this is the vault's underlying token; for AAVE, this is the Aave reserve asset; for PENDLE_PT, this is the amount of `token` to spend (DEPOSIT) or PT to sell (WITHDRAW). Provide as a decimal in token units (not wei); must be > 0.
4
+
5
+
6
+ ## Supported Types
7
+
8
+ ### `number`
9
+
10
+ ```typescript
11
+ const value: number = 1284.03;
12
+ ```
13
+
14
+ ### `string`
15
+
16
+ ```typescript
17
+ const value: string = "<value>";
18
+ ```
19
+
@@ -29,7 +29,7 @@ let value: EarnManageRequest = {
29
29
  | `actionType` | *"V2_MANAGE"* | :heavy_minus_sign: | Action type identifier for manage operations. | V2_MANAGE |
30
30
  | `venue` | *components.EarnManageRequestVenue* | :heavy_check_mark: | The earn venue. | {<br/>"type": "VAULT",<br/>"vault_address": "0x7BfA7C4f149E7415b73bdeDfe609237e29CBF34A"<br/>} |
31
31
  | `action` | [components.EarnManageRequestAction](../../models/components/earnmanagerequestaction.md) | :heavy_check_mark: | Whether you are depositing into or withdrawing from the given Earn `venue`. | DEPOSIT |
32
- | `amount` | *any* | :heavy_check_mark: | Amount of the underlying asset to act on (deposit or withdraw). For VAULT, this is the vault's underlying token; for AAVE, this is the Aave reserve asset; for PENDLE_PT, this is the amount of `token` to spend (DEPOSIT) or PT to sell (WITHDRAW). Provide as a decimal in token units (not wei); must be > 0. | |
32
+ | `amount` | *components.EarnManageRequestAmount* | :heavy_check_mark: | Amount of the underlying asset to act on (deposit or withdraw). For VAULT, this is the vault's underlying token; for AAVE, this is the Aave reserve asset; for PENDLE_PT, this is the amount of `token` to spend (DEPOSIT) or PT to sell (WITHDRAW). Provide as a decimal in token units (not wei); must be > 0. | 0.01 |
33
33
  | `owner` | *string* | :heavy_check_mark: | The primary wallet address that owns and controls the Earn Account. | 0x01E62835dd7F52173546A325294762143eE4a882 |
34
34
  | `chain` | [components.Chain](../../models/components/chain.md) | :heavy_check_mark: | The chain to use. | |
35
35
  | `gasSponsorship` | *boolean* | :heavy_minus_sign: | Optionally request gas sponsorship. If set to `true`, EIP-712 typed data will be returned that must be signed by the `owner` and submitted to the 'Prepare gas-sponsored transaction' endpoint (`/gas_sponsorship/prepare`). | false |
@@ -0,0 +1,19 @@
1
+ # EarnManageRequestAmount
2
+
3
+ Amount of the underlying asset to act on (deposit or withdraw). For VAULT, this is the vault's underlying token; for AAVE, this is the Aave reserve asset; for PENDLE_PT, this is the amount of `token` to spend (DEPOSIT) or PT to sell (WITHDRAW). Provide as a decimal in token units (not wei); must be > 0.
4
+
5
+
6
+ ## Supported Types
7
+
8
+ ### `number`
9
+
10
+ ```typescript
11
+ const value: number = 1284.03;
12
+ ```
13
+
14
+ ### `string`
15
+
16
+ ```typescript
17
+ const value: string = "0.01";
18
+ ```
19
+
@@ -22,8 +22,8 @@ let value: EarnTransferToEOAParams = {
22
22
 
23
23
  ## Fields
24
24
 
25
- | Field | Type | Required | Description | Example |
26
- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
27
- | `actionType` | *"V2_TRANSFER_TO_EOA"* | :heavy_check_mark: | Action type identifier for Earn-Account-to-EOA transfer operations. | V2_TRANSFER_TO_EOA |
28
- | `token` | *string* | :heavy_check_mark: | The token to transfer from Earn Account to EOA. | |
29
- | `amount` | *any* | :heavy_check_mark: | The amount of tokens to transfer (in token units, not wei), or 'ALL' to transfer the entire balance. | |
25
+ | Field | Type | Required | Description | Example |
26
+ | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- |
27
+ | `actionType` | *"V2_TRANSFER_TO_EOA"* | :heavy_check_mark: | Action type identifier for Earn-Account-to-EOA transfer operations. | V2_TRANSFER_TO_EOA |
28
+ | `token` | *string* | :heavy_check_mark: | The token to transfer from Earn Account to EOA. | |
29
+ | `amount` | *components.EarnTransferToEOAParamsAmount* | :heavy_check_mark: | The amount of tokens to transfer (in token units, not wei). | |
@@ -0,0 +1,19 @@
1
+ # EarnTransferToEOAParamsAmount
2
+
3
+ The amount of tokens to transfer (in token units, not wei).
4
+
5
+
6
+ ## Supported Types
7
+
8
+ ### `number`
9
+
10
+ ```typescript
11
+ const value: number = 1284.03;
12
+ ```
13
+
14
+ ### `string`
15
+
16
+ ```typescript
17
+ const value: string = "<value>";
18
+ ```
19
+
@@ -36,7 +36,7 @@ To transfer tokens from the Earn Account back to the owner's EOA, simply add
36
36
  a V2_TRANSFER_TO_EOA action to your bundle. No signature is required since
37
37
  the Safe already owns the tokens.
38
38
 
39
- Use `amount: "ALL"` to transfer the entire token balance.
39
+ Specify the exact token amount to transfer.
40
40
 
41
41
  ## Example Usage
42
42
 
@@ -74,7 +74,7 @@ let value: V2BundleRequest = {
74
74
  vaultAddress: "0x1B4cd53a1A8e5F50aB6320EF34E5fB4D3df7B6f6",
75
75
  },
76
76
  action: "DEPOSIT",
77
- amount: "ALL",
77
+ amount: "100",
78
78
  },
79
79
  },
80
80
  ],
@@ -88,5 +88,5 @@ let value: V2BundleRequest = {
88
88
  | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
89
89
  | `owner` | *string* | :heavy_check_mark: | The owner's wallet address that controls the Earn Account. | 0x01E62835dd7F52173546A325294762143eE4a882 |
90
90
  | `chain` | [components.Chain](../../models/components/chain.md) | :heavy_check_mark: | The chain to use. | |
91
- | `actions` | [components.V2UserOperation](../../models/components/v2useroperation.md)[] | :heavy_check_mark: | List of actions to bundle. Actions are executed in order. | [<br/>{<br/>"body": {<br/>"action_type": "V2_TRANSFER_FROM_EOA",<br/>"amount": "100",<br/>"permit2_deadline": 1706001800,<br/>"permit2_nonce": 1706000000,<br/>"permit2_signature": "0x...",<br/>"token": "USDC"<br/>}<br/>},<br/>{<br/>"body": {<br/>"action_type": "V2_SWAP",<br/>"amount_in": "100",<br/>"slippage": "0.5",<br/>"token_in": "USDC",<br/>"token_out": "AUSD"<br/>}<br/>},<br/>{<br/>"body": {<br/>"action": "DEPOSIT",<br/>"action_type": "V2_MANAGE",<br/>"amount": "ALL",<br/>"venue": {<br/>"type": "VAULT",<br/>"vault_address": "0x1B4cd53a1A8e5F50aB6320EF34E5fB4D3df7B6f6"<br/>}<br/>}<br/>}<br/>] |
91
+ | `actions` | [components.V2UserOperation](../../models/components/v2useroperation.md)[] | :heavy_check_mark: | List of actions to bundle. Actions are executed in order. | [<br/>{<br/>"body": {<br/>"action_type": "V2_TRANSFER_FROM_EOA",<br/>"amount": "100",<br/>"permit2_deadline": 1706001800,<br/>"permit2_nonce": 1706000000,<br/>"permit2_signature": "0x...",<br/>"token": "USDC"<br/>}<br/>},<br/>{<br/>"body": {<br/>"action_type": "V2_SWAP",<br/>"amount_in": "100",<br/>"slippage": "0.5",<br/>"token_in": "USDC",<br/>"token_out": "AUSD"<br/>}<br/>},<br/>{<br/>"body": {<br/>"action": "DEPOSIT",<br/>"action_type": "V2_MANAGE",<br/>"amount": "100",<br/>"venue": {<br/>"type": "VAULT",<br/>"vault_address": "0x1B4cd53a1A8e5F50aB6320EF34E5fB4D3df7B6f6"<br/>}<br/>}<br/>}<br/>] |
92
92
  | `gasSponsorship` | *boolean* | :heavy_minus_sign: | If true, returns EIP-712 typed data for gas sponsorship. The owner must sign this data and submit to /gas_sponsorship/prepare. | false |
@@ -864,7 +864,7 @@ async function run() {
864
864
  vaultAddress: "0x1B4cd53a1A8e5F50aB6320EF34E5fB4D3df7B6f6",
865
865
  },
866
866
  action: "DEPOSIT",
867
- amount: "ALL",
867
+ amount: "100",
868
868
  },
869
869
  },
870
870
  ],
@@ -923,7 +923,7 @@ async function run() {
923
923
  vaultAddress: "0x1B4cd53a1A8e5F50aB6320EF34E5fB4D3df7B6f6",
924
924
  },
925
925
  action: "DEPOSIT",
926
- amount: "ALL",
926
+ amount: "100",
927
927
  },
928
928
  },
929
929
  ],
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esbuild/linux-x64",
3
- "version": "0.27.2",
3
+ "version": "0.27.3",
4
4
  "description": "The Linux 64-bit binary for esbuild, a JavaScript bundler.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v20.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Thu, 15 Jan 2026 17:42:21 GMT
11
+ * Last updated: Thu, 05 Feb 2026 14:44:37 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "20.19.30",
3
+ "version": "20.19.32",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -135,6 +135,6 @@
135
135
  "undici-types": "~6.21.0"
136
136
  },
137
137
  "peerDependencies": {},
138
- "typesPublisherContentHash": "093a3c4b27603df5de19da8bd5fb6058917597fac6113ad8fb802154ae733638",
138
+ "typesPublisherContentHash": "8eb756a1313ba5c46054826d847ffec569c288030c26fe1ec925f0bd9263e25f",
139
139
  "typeScriptVersion": "5.2"
140
140
  }
@@ -238,7 +238,7 @@ declare module "stream/web" {
238
238
  new(): ReadableStreamBYOBRequest;
239
239
  };
240
240
  interface ReadableByteStreamController {
241
- readonly byobRequest: undefined;
241
+ readonly byobRequest: ReadableStreamBYOBRequest | null;
242
242
  readonly desiredSize: number | null;
243
243
  close(): void;
244
244
  enqueue(chunk: ArrayBufferView): void;
@@ -3,14 +3,17 @@ export {};
3
3
  import * as undici from "undici-types";
4
4
 
5
5
  type _EventSource = typeof globalThis extends { onmessage: any } ? {} : undici.EventSource;
6
+ type _EventSourceInit = typeof globalThis extends { onmessage: any } ? {} : undici.EventSourceInit;
6
7
  type _FormData = typeof globalThis extends { onmessage: any } ? {} : undici.FormData;
7
8
  type _Headers = typeof globalThis extends { onmessage: any } ? {} : undici.Headers;
8
9
  type _MessageEvent = typeof globalThis extends { onmessage: any } ? {} : undici.MessageEvent;
10
+ type _MessageEventInit = typeof globalThis extends { onmessage: any } ? {} : undici.MessageEventInit;
9
11
  type _Request = typeof globalThis extends { onmessage: any } ? {} : undici.Request;
10
12
  type _RequestInit = typeof globalThis extends { onmessage: any } ? {} : undici.RequestInit;
11
13
  type _Response = typeof globalThis extends { onmessage: any } ? {} : undici.Response;
12
14
  type _ResponseInit = typeof globalThis extends { onmessage: any } ? {} : undici.ResponseInit;
13
15
  type _WebSocket = typeof globalThis extends { onmessage: any } ? {} : undici.WebSocket;
16
+ type _WebSocketInit = typeof globalThis extends { onmessage: any } ? {} : undici.WebSocketInit;
14
17
 
15
18
  declare global {
16
19
  function fetch(
@@ -21,6 +24,8 @@ declare global {
21
24
  interface EventSource extends _EventSource {}
22
25
  var EventSource: typeof globalThis extends { onmessage: any; EventSource: infer T } ? T : typeof undici.EventSource;
23
26
 
27
+ interface EventSourceInit extends _EventSourceInit {}
28
+
24
29
  interface FormData extends _FormData {}
25
30
  var FormData: typeof globalThis extends { onmessage: any; FormData: infer T } ? T : typeof undici.FormData;
26
31
 
@@ -31,6 +36,8 @@ declare global {
31
36
  var MessageEvent: typeof globalThis extends { onmessage: any; MessageEvent: infer T } ? T
32
37
  : typeof undici.MessageEvent;
33
38
 
39
+ interface MessageEventInit extends _MessageEventInit {}
40
+
34
41
  interface Request extends _Request {}
35
42
  var Request: typeof globalThis extends { onmessage: any; Request: infer T } ? T : typeof undici.Request;
36
43
 
@@ -43,4 +50,6 @@ declare global {
43
50
 
44
51
  interface WebSocket extends _WebSocket {}
45
52
  var WebSocket: typeof globalThis extends { onmessage: any; WebSocket: infer T } ? T : typeof undici.WebSocket;
53
+
54
+ interface WebSocketInit extends _WebSocketInit {}
46
55
  }
@@ -643,8 +643,8 @@ function createChannel(streamIn) {
643
643
  if (isFirstPacket) {
644
644
  isFirstPacket = false;
645
645
  let binaryVersion = String.fromCharCode(...bytes);
646
- if (binaryVersion !== "0.27.2") {
647
- throw new Error(`Cannot start service: Host version "${"0.27.2"}" does not match binary version ${quote(binaryVersion)}`);
646
+ if (binaryVersion !== "0.27.3") {
647
+ throw new Error(`Cannot start service: Host version "${"0.27.3"}" does not match binary version ${quote(binaryVersion)}`);
648
648
  }
649
649
  return;
650
650
  }
@@ -1770,7 +1770,7 @@ for your current platform.`);
1770
1770
  "node_modules",
1771
1771
  ".cache",
1772
1772
  "esbuild",
1773
- `pnpapi-${pkg.replace("/", "-")}-${"0.27.2"}-${path.basename(subpath)}`
1773
+ `pnpapi-${pkg.replace("/", "-")}-${"0.27.3"}-${path.basename(subpath)}`
1774
1774
  );
1775
1775
  if (!fs.existsSync(binTargetPath)) {
1776
1776
  fs.mkdirSync(path.dirname(binTargetPath), { recursive: true });
@@ -1805,7 +1805,7 @@ if (process.env.ESBUILD_WORKER_THREADS !== "0") {
1805
1805
  }
1806
1806
  }
1807
1807
  var _a;
1808
- var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.27.2";
1808
+ var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.27.3";
1809
1809
  var esbuildCommandAndArgs = () => {
1810
1810
  if ((!ESBUILD_BINARY_PATH || false) && (path2.basename(__filename) !== "main.js" || path2.basename(__dirname) !== "lib")) {
1811
1811
  throw new Error(
@@ -1872,7 +1872,7 @@ var fsAsync = {
1872
1872
  }
1873
1873
  }
1874
1874
  };
1875
- var version = "0.27.2";
1875
+ var version = "0.27.3";
1876
1876
  var build = (options) => ensureServiceIsRunning().build(options);
1877
1877
  var context = (buildOptions) => ensureServiceIsRunning().context(buildOptions);
1878
1878
  var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
@@ -1975,7 +1975,7 @@ var stopService;
1975
1975
  var ensureServiceIsRunning = () => {
1976
1976
  if (longLivedService) return longLivedService;
1977
1977
  let [command, args] = esbuildCommandAndArgs();
1978
- let child = child_process.spawn(command, args.concat(`--service=${"0.27.2"}`, "--ping"), {
1978
+ let child = child_process.spawn(command, args.concat(`--service=${"0.27.3"}`, "--ping"), {
1979
1979
  windowsHide: true,
1980
1980
  stdio: ["pipe", "pipe", "inherit"],
1981
1981
  cwd: defaultWD
@@ -2079,7 +2079,7 @@ var runServiceSync = (callback) => {
2079
2079
  esbuild: node_exports
2080
2080
  });
2081
2081
  callback(service);
2082
- let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.27.2"}`), {
2082
+ let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.27.3"}`), {
2083
2083
  cwd: defaultWD,
2084
2084
  windowsHide: true,
2085
2085
  input: stdin,
@@ -2099,7 +2099,7 @@ var workerThreadService = null;
2099
2099
  var startWorkerThreadService = (worker_threads2) => {
2100
2100
  let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel();
2101
2101
  let worker = new worker_threads2.Worker(__filename, {
2102
- workerData: { workerPort, defaultWD, esbuildVersion: "0.27.2" },
2102
+ workerData: { workerPort, defaultWD, esbuildVersion: "0.27.3" },
2103
2103
  transferList: [workerPort],
2104
2104
  // From node's documentation: https://nodejs.org/api/worker_threads.html
2105
2105
  //
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esbuild",
3
- "version": "0.27.2",
3
+ "version": "0.27.3",
4
4
  "description": "An extremely fast JavaScript and CSS bundler and minifier.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,32 +18,32 @@
18
18
  "esbuild": "bin/esbuild"
19
19
  },
20
20
  "optionalDependencies": {
21
- "@esbuild/aix-ppc64": "0.27.2",
22
- "@esbuild/android-arm": "0.27.2",
23
- "@esbuild/android-arm64": "0.27.2",
24
- "@esbuild/android-x64": "0.27.2",
25
- "@esbuild/darwin-arm64": "0.27.2",
26
- "@esbuild/darwin-x64": "0.27.2",
27
- "@esbuild/freebsd-arm64": "0.27.2",
28
- "@esbuild/freebsd-x64": "0.27.2",
29
- "@esbuild/linux-arm": "0.27.2",
30
- "@esbuild/linux-arm64": "0.27.2",
31
- "@esbuild/linux-ia32": "0.27.2",
32
- "@esbuild/linux-loong64": "0.27.2",
33
- "@esbuild/linux-mips64el": "0.27.2",
34
- "@esbuild/linux-ppc64": "0.27.2",
35
- "@esbuild/linux-riscv64": "0.27.2",
36
- "@esbuild/linux-s390x": "0.27.2",
37
- "@esbuild/linux-x64": "0.27.2",
38
- "@esbuild/netbsd-arm64": "0.27.2",
39
- "@esbuild/netbsd-x64": "0.27.2",
40
- "@esbuild/openbsd-arm64": "0.27.2",
41
- "@esbuild/openbsd-x64": "0.27.2",
42
- "@esbuild/openharmony-arm64": "0.27.2",
43
- "@esbuild/sunos-x64": "0.27.2",
44
- "@esbuild/win32-arm64": "0.27.2",
45
- "@esbuild/win32-ia32": "0.27.2",
46
- "@esbuild/win32-x64": "0.27.2"
21
+ "@esbuild/aix-ppc64": "0.27.3",
22
+ "@esbuild/android-arm": "0.27.3",
23
+ "@esbuild/android-arm64": "0.27.3",
24
+ "@esbuild/android-x64": "0.27.3",
25
+ "@esbuild/darwin-arm64": "0.27.3",
26
+ "@esbuild/darwin-x64": "0.27.3",
27
+ "@esbuild/freebsd-arm64": "0.27.3",
28
+ "@esbuild/freebsd-x64": "0.27.3",
29
+ "@esbuild/linux-arm": "0.27.3",
30
+ "@esbuild/linux-arm64": "0.27.3",
31
+ "@esbuild/linux-ia32": "0.27.3",
32
+ "@esbuild/linux-loong64": "0.27.3",
33
+ "@esbuild/linux-mips64el": "0.27.3",
34
+ "@esbuild/linux-ppc64": "0.27.3",
35
+ "@esbuild/linux-riscv64": "0.27.3",
36
+ "@esbuild/linux-s390x": "0.27.3",
37
+ "@esbuild/linux-x64": "0.27.3",
38
+ "@esbuild/netbsd-arm64": "0.27.3",
39
+ "@esbuild/netbsd-x64": "0.27.3",
40
+ "@esbuild/openbsd-arm64": "0.27.3",
41
+ "@esbuild/openbsd-x64": "0.27.3",
42
+ "@esbuild/openharmony-arm64": "0.27.3",
43
+ "@esbuild/sunos-x64": "0.27.3",
44
+ "@esbuild/win32-arm64": "0.27.3",
45
+ "@esbuild/win32-ia32": "0.27.3",
46
+ "@esbuild/win32-x64": "0.27.3"
47
47
  },
48
48
  "license": "MIT"
49
49
  }
@@ -1,7 +1,7 @@
1
- "use strict";var je=Object.defineProperty;var o=(e,t)=>je(e,"name",{value:t,configurable:!0});var m=require("node:path"),ie=require("node:fs"),Fe=require("node:module"),De=require("resolve-pkg-maps"),he=require("fs"),Ee=require("os"),Ie=require("path");function E(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}o(E,"slash");const q=o(e=>{const t=ie[e];return(s,...n)=>{const l=`${e}:${n.join(":")}`;let i=s==null?void 0:s.get(l);return i===void 0&&(i=Reflect.apply(t,ie,n),s==null||s.set(l,i)),i}},"cacheFs"),I=q("existsSync"),Be=q("readFileSync"),R=q("statSync"),oe=o((e,t,s)=>{for(;;){const n=m.posix.join(e,t);if(I(s,n))return n;const l=m.dirname(e);if(l===e)return;e=l}},"findUp"),G=/^\.{1,2}(\/.*)?$/,Q=o(e=>{const t=E(e);return G.test(t)?t:`./${t}`},"normalizeRelativePath");function Le(e,t=!1){const s=e.length;let n=0,l="",i=0,r=16,f=0,u=0,g=0,w=0,b=0;function y(c,_){let D=0,T=0;for(;D<c;){let p=e.charCodeAt(n);if(p>=48&&p<=57)T=T*16+p-48;else if(p>=65&&p<=70)T=T*16+p-65+10;else if(p>=97&&p<=102)T=T*16+p-97+10;else break;n++,D++}return D<c&&(T=-1),T}o(y,"scanHexDigits");function v(c){n=c,l="",i=0,r=16,b=0}o(v,"setPosition");function j(){let c=n;if(e.charCodeAt(n)===48)n++;else for(n++;n<e.length&&$(e.charCodeAt(n));)n++;if(n<e.length&&e.charCodeAt(n)===46)if(n++,n<e.length&&$(e.charCodeAt(n)))for(n++;n<e.length&&$(e.charCodeAt(n));)n++;else return b=3,e.substring(c,n);let _=n;if(n<e.length&&(e.charCodeAt(n)===69||e.charCodeAt(n)===101))if(n++,(n<e.length&&e.charCodeAt(n)===43||e.charCodeAt(n)===45)&&n++,n<e.length&&$(e.charCodeAt(n))){for(n++;n<e.length&&$(e.charCodeAt(n));)n++;_=n}else b=3;return e.substring(c,_)}o(j,"scanNumber");function d(){let c="",_=n;for(;;){if(n>=s){c+=e.substring(_,n),b=2;break}const D=e.charCodeAt(n);if(D===34){c+=e.substring(_,n),n++;break}if(D===92){if(c+=e.substring(_,n),n++,n>=s){b=2;break}switch(e.charCodeAt(n++)){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+=" ";break;case 117:const p=y(4);p>=0?c+=String.fromCharCode(p):b=4;break;default:b=5}_=n;continue}if(D>=0&&D<=31)if(S(D)){c+=e.substring(_,n),b=2;break}else b=6;n++}return c}o(d,"scanString");function A(){if(l="",b=0,i=n,u=f,w=g,n>=s)return i=s,r=17;let c=e.charCodeAt(n);if(H(c)){do n++,l+=String.fromCharCode(c),c=e.charCodeAt(n);while(H(c));return r=15}if(S(c))return n++,l+=String.fromCharCode(c),c===13&&e.charCodeAt(n)===10&&(n++,l+=`
3
- `),f++,g=n,r=14;switch(c){case 123:return n++,r=1;case 125:return n++,r=2;case 91:return n++,r=3;case 93:return n++,r=4;case 58:return n++,r=6;case 44:return n++,r=5;case 34:return n++,l=d(),r=10;case 47:const _=n-1;if(e.charCodeAt(n+1)===47){for(n+=2;n<s&&!S(e.charCodeAt(n));)n++;return l=e.substring(_,n),r=12}if(e.charCodeAt(n+1)===42){n+=2;const D=s-1;let T=!1;for(;n<D;){const p=e.charCodeAt(n);if(p===42&&e.charCodeAt(n+1)===47){n+=2,T=!0;break}n++,S(p)&&(p===13&&e.charCodeAt(n)===10&&n++,f++,g=n)}return T||(n++,b=1),l=e.substring(_,n),r=13}return l+=String.fromCharCode(c),n++,r=16;case 45:if(l+=String.fromCharCode(c),n++,n===s||!$(e.charCodeAt(n)))return r=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return l+=j(),r=11;default:for(;n<s&&h(c);)n++,c=e.charCodeAt(n);if(i!==n){switch(l=e.substring(i,n),l){case"true":return r=8;case"false":return r=9;case"null":return r=7}return r=16}return l+=String.fromCharCode(c),n++,r=16}}o(A,"scanNext");function h(c){if(H(c)||S(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}o(h,"isUnknownContentCharacter");function B(){let c;do c=A();while(c>=12&&c<=15);return c}return o(B,"scanNextNonTrivia"),{setPosition:v,getPosition:o(()=>n,"getPosition"),scan:t?B:A,getToken:o(()=>r,"getToken"),getTokenValue:o(()=>l,"getTokenValue"),getTokenOffset:o(()=>i,"getTokenOffset"),getTokenLength:o(()=>n-i,"getTokenLength"),getTokenStartLine:o(()=>u,"getTokenStartLine"),getTokenStartCharacter:o(()=>i-w,"getTokenStartCharacter"),getTokenError:o(()=>b,"getTokenError")}}o(Le,"createScanner");function H(e){return e===32||e===9}o(H,"isWhiteSpace");function S(e){return e===10||e===13}o(S,"isLineBreak");function $(e){return e>=48&&e<=57}o($,"isDigit");var re;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(re||(re={})),new Array(20).fill(0).map((e,t)=>" ".repeat(t));const U=200;new Array(U).fill(0).map((e,t)=>`
4
- `+" ".repeat(t)),new Array(U).fill(0).map((e,t)=>"\r"+" ".repeat(t)),new Array(U).fill(0).map((e,t)=>`\r
5
- `+" ".repeat(t)),new Array(U).fill(0).map((e,t)=>`
6
- `+" ".repeat(t)),new Array(U).fill(0).map((e,t)=>"\r"+" ".repeat(t)),new Array(U).fill(0).map((e,t)=>`\r
7
- `+" ".repeat(t));var W;(function(e){e.DEFAULT={allowTrailingComma:!1}})(W||(W={}));function $e(e,t=[],s=W.DEFAULT){let n=null,l=[];const i=[];function r(u){Array.isArray(l)?l.push(u):n!==null&&(l[n]=u)}return o(r,"onValue"),Ue(e,{onObjectBegin:o(()=>{const u={};r(u),i.push(l),l=u,n=null},"onObjectBegin"),onObjectProperty:o(u=>{n=u},"onObjectProperty"),onObjectEnd:o(()=>{l=i.pop()},"onObjectEnd"),onArrayBegin:o(()=>{const u=[];r(u),i.push(l),l=u,n=null},"onArrayBegin"),onArrayEnd:o(()=>{l=i.pop()},"onArrayEnd"),onLiteralValue:r,onError:o((u,g,w)=>{t.push({error:u,offset:g,length:w})},"onError")},s),l[0]}o($e,"parse$1");function Ue(e,t,s=W.DEFAULT){const n=Le(e,!1),l=[];let i=0;function r(k){return k?()=>i===0&&k(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter()):()=>!0}o(r,"toNoArgVisit");function f(k){return k?F=>i===0&&k(F,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter()):()=>!0}o(f,"toOneArgVisit");function u(k){return k?F=>i===0&&k(F,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter(),()=>l.slice()):()=>!0}o(u,"toOneArgVisitWithPath");function g(k){return k?()=>{i>0?i++:k(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter(),()=>l.slice())===!1&&(i=1)}:()=>!0}o(g,"toBeginVisit");function w(k){return k?()=>{i>0&&i--,i===0&&k(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter())}:()=>!0}o(w,"toEndVisit");const b=g(t.onObjectBegin),y=u(t.onObjectProperty),v=w(t.onObjectEnd),j=g(t.onArrayBegin),d=w(t.onArrayEnd),A=u(t.onLiteralValue),h=f(t.onSeparator),B=r(t.onComment),c=f(t.onError),_=s&&s.disallowComments,D=s&&s.allowTrailingComma;function T(){for(;;){const k=n.scan();switch(n.getTokenError()){case 4:p(14);break;case 5:p(15);break;case 3:p(13);break;case 1:_||p(11);break;case 2:p(12);break;case 6:p(16);break}switch(k){case 12:case 13:_?p(10):B();break;case 16:p(1);break;case 15:case 14:break;default:return k}}}o(T,"scanNext");function p(k,F=[],le=[]){if(c(k),F.length+le.length>0){let P=n.getToken();for(;P!==17;){if(F.indexOf(P)!==-1){T();break}else if(le.indexOf(P)!==-1)break;P=T()}}}o(p,"handleError");function x(k){const F=n.getTokenValue();return k?A(F):(y(F),l.push(F)),T(),!0}o(x,"parseString");function a(){switch(n.getToken()){case 11:const k=n.getTokenValue();let F=Number(k);isNaN(F)&&(p(2),F=0),A(F);break;case 7:A(null);break;case 8:A(!0);break;case 9:A(!1);break;default:return!1}return T(),!0}o(a,"parseLiteral");function N(){return n.getToken()!==10?(p(3,[],[2,5]),!1):(x(!1),n.getToken()===6?(h(":"),T(),z()||p(4,[],[2,5])):p(5,[],[2,5]),l.pop(),!0)}o(N,"parseProperty");function _e(){b(),T();let k=!1;for(;n.getToken()!==2&&n.getToken()!==17;){if(n.getToken()===5){if(k||p(4,[],[]),h(","),T(),n.getToken()===2&&D)break}else k&&p(6,[],[]);N()||p(4,[],[2,5]),k=!0}return v(),n.getToken()!==2?p(7,[2],[]):T(),!0}o(_e,"parseObject");function ye(){j(),T();let k=!0,F=!1;for(;n.getToken()!==4&&n.getToken()!==17;){if(n.getToken()===5){if(F||p(4,[],[]),h(","),T(),n.getToken()===4&&D)break}else F&&p(6,[],[]);k?(l.push(0),k=!1):l[l.length-1]++,z()||p(4,[],[4,5]),F=!0}return d(),k||l.pop(),n.getToken()!==4?p(8,[4],[]):T(),!0}o(ye,"parseArray");function z(){switch(n.getToken()){case 3:return ye();case 1:return _e();case 10:return x(!0);default:return a()}}return o(z,"parseValue"),T(),n.getToken()===17?s.allowEmptyContent?!0:(p(4,[],[]),!1):z()?(n.getToken()!==17&&p(9,[],[]),!0):(p(4,[],[]),!1)}o(Ue,"visit");var ue;(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})(ue||(ue={}));var fe;(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(fe||(fe={}));const xe=$e;var ce;(function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"})(ce||(ce={}));const ae=o((e,t)=>xe(Be(t,e,"utf8")),"readJsonc"),X=Symbol("implicitBaseUrl"),L="${configDir}",Se=o(()=>{const{findPnpApi:e}=Fe;return e&&e(process.cwd())},"getPnpApi"),Y=o((e,t,s,n)=>{const l=`resolveFromPackageJsonPath:${e}:${t}:${s}`;if(n!=null&&n.has(l))return n.get(l);const i=ae(e,n);if(!i)return;let r=t||"tsconfig.json";if(!s&&i.exports)try{const[f]=De.resolveExports(i.exports,t,["require","types"]);r=f}catch{return!1}else!t&&i.tsconfig&&(r=i.tsconfig);return r=m.join(e,"..",r),n==null||n.set(l,r),r},"resolveFromPackageJsonPath"),Z="package.json",K="tsconfig.json",Ne=o((e,t,s)=>{let n=e;if(e===".."&&(n=m.join(n,K)),e[0]==="."&&(n=m.resolve(t,n)),m.isAbsolute(n)){if(I(s,n)){if(R(s,n).isFile())return n}else if(!n.endsWith(".json")){const v=`${n}.json`;if(I(s,v))return v}return}const[l,...i]=e.split("/"),r=l[0]==="@"?`${l}/${i.shift()}`:l,f=i.join("/"),u=Se();if(u){const{resolveRequest:v}=u;try{if(r===e){const j=v(m.join(r,Z),t);if(j){const d=Y(j,f,!1,s);if(d&&I(s,d))return d}}else{let j;try{j=v(e,t,{extensions:[".json"]})}catch{j=v(m.join(e,K),t)}if(j)return j}}catch{}}const g=oe(m.resolve(t),m.join("node_modules",r),s);if(!g||!R(s,g).isDirectory())return;const w=m.join(g,Z);if(I(s,w)){const v=Y(w,f,!1,s);if(v===!1)return;if(v&&I(s,v)&&R(s,v).isFile())return v}const b=m.join(g,f),y=b.endsWith(".json");if(!y){const v=`${b}.json`;if(I(s,v))return v}if(I(s,b)){if(R(s,b).isDirectory()){const v=m.join(b,Z);if(I(s,v)){const d=Y(v,"",!0,s);if(d&&I(s,d))return d}const j=m.join(b,K);if(I(s,j))return j}else if(y)return b}},"resolveExtendsPath"),C=o((e,t)=>Q(m.relative(e,t)),"pathRelative"),ge=["files","include","exclude"],pe=o((e,t,s)=>{const n=m.join(t,s),l=m.relative(e,n);return E(l)||"./"},"resolveAndRelativize"),Pe=o((e,t,s)=>{const n=m.relative(e,t);if(!n)return s;const l=s.startsWith("./")?s.slice(2):s;return E(`${n}/${l}`)},"prefixPattern"),Re=o((e,t,s,n)=>{const l=Ne(e,t,n);if(!l)throw new Error(`File '${e}' not found.`);if(s.has(l))throw new Error(`Circularity detected while resolving configuration: ${l}`);s.add(l);const i=m.dirname(l),r=me(l,n,s);delete r.references;const{compilerOptions:f}=r;if(f){const{baseUrl:u}=f;u&&!u.startsWith(L)&&(f.baseUrl=pe(t,i,u));const{outDir:g}=f;g&&!g.startsWith(L)&&(f.outDir=pe(t,i,g))}for(const u of ge){const g=r[u];g&&(r[u]=g.map(w=>w.startsWith(L)?w:Pe(t,i,w)))}return r},"resolveExtends"),We=["outDir","declarationDir"],me=o((e,t,s=new Set)=>{let n;try{n=ae(e,t)||{}}catch{throw new Error(`Cannot resolve tsconfig at path: ${e}`)}if(typeof n!="object")throw new SyntaxError(`Failed to parse tsconfig at: ${e}`);const l=m.dirname(e);if(n.compilerOptions){const{compilerOptions:i}=n;i.paths&&!i.baseUrl&&(i[X]=l)}if(n.extends){const i=Array.isArray(n.extends)?n.extends:[n.extends];delete n.extends;for(const r of i.reverse()){const f=Re(r,l,new Set(s),t),u={...f,...n,compilerOptions:{...f.compilerOptions,...n.compilerOptions}};f.watchOptions&&(u.watchOptions={...f.watchOptions,...n.watchOptions}),n=u}}if(n.compilerOptions){const{compilerOptions:i}=n,r=["baseUrl","rootDir"];for(const f of r){const u=i[f];if(u&&!u.startsWith(L)){const g=m.resolve(l,u),w=C(l,g);i[f]=w}}for(const f of We){let u=i[f];u&&(Array.isArray(n.exclude)||(n.exclude=[]),n.exclude.includes(u)||n.exclude.push(u),u.startsWith(L)||(u=Q(u)),i[f]=u)}}else n.compilerOptions={};if(n.include?(n.include=n.include.map(E),n.files&&delete n.files):n.files&&(n.files=n.files.map(i=>i.startsWith(L)?i:Q(i))),n.watchOptions){const{watchOptions:i}=n;i.excludeDirectories&&(i.excludeDirectories=i.excludeDirectories.map(r=>E(m.resolve(l,r))))}return n},"_parseTsconfig"),M=o((e,t)=>{if(e.startsWith(L))return E(m.join(t,e.slice(L.length)))},"interpolateConfigDir"),Me=["outDir","declarationDir","outFile","rootDir","baseUrl","tsBuildInfoFile"],Ve=o(e=>{var t,s,n,l,i,r,f,u,g,w,b,y,v,j,d,A,h,B,c,_,D,T,p,x;if(e.strict){const a=["noImplicitAny","noImplicitThis","strictNullChecks","strictFunctionTypes","strictBindCallApply","strictPropertyInitialization","strictBuiltinIteratorReturn","alwaysStrict","useUnknownInCatchVariables"];for(const N of a)e[N]===void 0&&(e[N]=!0)}if(e.target){let a=e.target.toLowerCase();a==="es2015"&&(a="es6"),e.target=a,a==="esnext"&&((t=e.module)!=null||(e.module="es6"),(s=e.useDefineForClassFields)!=null||(e.useDefineForClassFields=!0)),(a==="es6"||a==="es2016"||a==="es2017"||a==="es2018"||a==="es2019"||a==="es2020"||a==="es2021"||a==="es2022"||a==="es2023"||a==="es2024")&&((n=e.module)!=null||(e.module="es6")),(a==="es2022"||a==="es2023"||a==="es2024")&&((l=e.useDefineForClassFields)!=null||(e.useDefineForClassFields=!0))}if(e.module){let a=e.module.toLowerCase();a==="es2015"&&(a="es6"),e.module=a,(a==="es6"||a==="es2020"||a==="es2022"||a==="esnext"||a==="none"||a==="system"||a==="umd"||a==="amd")&&((i=e.moduleResolution)!=null||(e.moduleResolution="classic")),a==="system"&&((r=e.allowSyntheticDefaultImports)!=null||(e.allowSyntheticDefaultImports=!0)),(a==="node16"||a==="nodenext"||a==="preserve")&&((f=e.esModuleInterop)!=null||(e.esModuleInterop=!0),(u=e.allowSyntheticDefaultImports)!=null||(e.allowSyntheticDefaultImports=!0)),(a==="node16"||a==="nodenext")&&((g=e.moduleDetection)!=null||(e.moduleDetection="force"),(w=e.useDefineForClassFields)!=null||(e.useDefineForClassFields=!0)),a==="node16"&&((b=e.target)!=null||(e.target="es2022"),(y=e.moduleResolution)!=null||(e.moduleResolution="node16")),a==="nodenext"&&((v=e.target)!=null||(e.target="esnext"),(j=e.moduleResolution)!=null||(e.moduleResolution="nodenext")),a==="preserve"&&((d=e.moduleResolution)!=null||(e.moduleResolution="bundler"))}if(e.moduleResolution){let a=e.moduleResolution.toLowerCase();a==="node"&&(a="node10"),e.moduleResolution=a,(a==="node16"||a==="nodenext"||a==="bundler")&&((A=e.resolvePackageJsonExports)!=null||(e.resolvePackageJsonExports=!0),(h=e.resolvePackageJsonImports)!=null||(e.resolvePackageJsonImports=!0)),a==="bundler"&&((B=e.allowSyntheticDefaultImports)!=null||(e.allowSyntheticDefaultImports=!0),(c=e.resolveJsonModule)!=null||(e.resolveJsonModule=!0))}e.esModuleInterop&&((_=e.allowSyntheticDefaultImports)!=null||(e.allowSyntheticDefaultImports=!0)),e.verbatimModuleSyntax&&((D=e.isolatedModules)!=null||(e.isolatedModules=!0),(T=e.preserveConstEnums)!=null||(e.preserveConstEnums=!0)),e.isolatedModules&&((p=e.preserveConstEnums)!=null||(e.preserveConstEnums=!0)),e.rewriteRelativeImportExtensions&&((x=e.allowImportingTsExtensions)!=null||(e.allowImportingTsExtensions=!0))},"normalizeCompilerOptions"),ke=o((e,t=new Map)=>{const s=m.resolve(e),n=me(s,t),l=m.dirname(s),{compilerOptions:i}=n;if(i){for(const f of Me){const u=i[f];if(u){const g=M(u,l);i[f]=g?C(l,g):u}}for(const f of["rootDirs","typeRoots"]){const u=i[f];u&&(i[f]=u.map(g=>{const w=M(g,l);return w?C(l,w):g}))}const{paths:r}=i;if(r)for(const f of Object.keys(r))r[f]=r[f].map(u=>{var g;return(g=M(u,l))!=null?g:u});Ve(i)}for(const r of ge){const f=n[r];f&&(n[r]=f.map(u=>{var g;return(g=M(u,l))!=null?g:u}))}return n},"parseTsconfig"),Je=o((e=process.cwd(),t="tsconfig.json",s=new Map)=>{const n=oe(E(e),t,s);if(!n)return null;const l=ke(n,s);return{path:n,config:l}},"getTsconfig"),Oe=/\*/g,we=o((e,t)=>{const s=e.match(Oe);if(s&&s.length>1)throw new Error(t)},"assertStarCount"),ze=o(e=>{if(e.includes("*")){const[t,s]=e.split("*");return{prefix:t,suffix:s}}return e},"parsePattern"),qe=o(({prefix:e,suffix:t},s)=>s.startsWith(e)&&s.endsWith(t),"isPatternMatch"),Ge=o((e,t,s)=>Object.entries(e).map(([n,l])=>(we(n,`Pattern '${n}' can have at most one '*' character.`),{pattern:ze(n),substitutions:l.map(i=>{if(we(i,`Substitution '${i}' in pattern '${n}' can have at most one '*' character.`),!t&&!G.test(i))throw new Error("Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?");return m.resolve(s,i)})})),"parsePaths"),Qe=o(e=>{const{compilerOptions:t}=e.config;if(!t)return null;const{baseUrl:s,paths:n}=t;if(!s&&!n)return null;const l=X in t&&t[X],i=m.resolve(m.dirname(e.path),s||l||"."),r=n?Ge(n,s,i):[];return f=>{if(G.test(f))return[];const u=[];for(const y of r){if(y.pattern===f)return y.substitutions.map(E);typeof y.pattern!="string"&&u.push(y)}let g,w=-1;for(const y of u)qe(y.pattern,f)&&y.pattern.prefix.length>w&&(w=y.pattern.prefix.length,g=y);if(!g)return s?[E(m.join(i,f))]:[];const b=f.slice(g.pattern.prefix.length,f.length-g.pattern.suffix.length);return g.substitutions.map(y=>E(y.replace("*",b)))}},"createPathsMatcher");var He=Object.defineProperty,V=o((e,t)=>He(e,"name",{value:t,configurable:!0}),"s");const be=V(e=>{let t="";for(let s=0;s<e.length;s+=1){const n=e[s],l=n.toUpperCase();t+=n===l?n.toLowerCase():l}return t},"invertCase"),ee=new Map,ve=V((e,t)=>{const s=Ie.join(e,`.is-fs-case-sensitive-test-${process.pid}`);try{return t.writeFileSync(s,""),!t.existsSync(be(s))}finally{try{t.unlinkSync(s)}catch{}}},"checkDirectoryCaseWithWrite"),Xe=V((e,t,s)=>{try{return ve(e,s)}catch(n){if(t===void 0)return ve(Ee.tmpdir(),s);throw n}},"checkDirectoryCaseWithFallback"),Ye=V((e,t=he,s=!0)=>{const n=e!=null?e:process.cwd();if(s&&ee.has(n))return ee.get(n);let l;const i=be(n);return i!==n&&t.existsSync(n)?l=!t.existsSync(i):l=Xe(n,e,t),s&&ee.set(n,l),l},"isFsCaseSensitive"),{join:J}=m.posix,ne={ts:[".ts",".tsx",".d.ts"],cts:[".cts",".d.cts"],mts:[".mts",".d.mts"]},Ze=o(e=>{const t=[...ne.ts],s=[...ne.cts],n=[...ne.mts];return e!=null&&e.allowJs&&(t.push(".js",".jsx"),s.push(".cjs"),n.push(".mjs")),[...t,...s,...n]},"getSupportedExtensions"),Ke=o(e=>{const t=[];if(!e)return t;const{outDir:s,declarationDir:n}=e;return s&&t.push(s),n&&t.push(n),t},"getDefaultExcludeSpec"),de=o(e=>e.replaceAll(/[.*+?^${}()|[\]\\]/g,String.raw`\$&`),"escapeForRegexp"),Ce=["node_modules","bower_components","jspm_packages"],te=`(?!(${Ce.join("|")})(/|$))`,en=/(?:^|\/)[^.*?]+$/,Te="**/*",O="[^/]",se="[^./]",Ae=process.platform==="win32",nn=o(({config:e,path:t},s=Ye())=>{if("extends"in e)throw new Error("tsconfig#extends must be resolved. Use getTsconfig or parseTsconfig to resolve it.");if(!m.isAbsolute(t))throw new Error("The tsconfig path must be absolute");Ae&&(t=E(t));const n=m.dirname(t),{files:l,include:i,exclude:r,compilerOptions:f}=e,u=l==null?void 0:l.map(d=>J(n,d)),g=Ze(f),w=s?"":"i",y=(r||Ke(f)).map(d=>{const A=J(n,d),h=de(A).replaceAll(String.raw`\*\*/`,"(.+/)?").replaceAll(String.raw`\*`,`${O}*`).replaceAll(String.raw`\?`,O);return new RegExp(`^${h}($|/)`,w)}),v=l||i?i:[Te],j=v?v.map(d=>{let A=J(n,d);en.test(A)&&(A=J(A,Te));const h=de(A).replaceAll(String.raw`/\*\*`,`(/${te}${se}${O}*)*?`).replaceAll(/(\/)?\\\*/g,(B,c)=>{const _=`(${se}|(\\.(?!min\\.js$))?)*`;return c?`/${te}${se}${_}`:_}).replaceAll(/(\/)?\\\?/g,(B,c)=>{const _=O;return c?`/${te}${_}`:_});return new RegExp(`^${h}$`,w)}):void 0;return d=>{if(!m.isAbsolute(d))throw new Error("filePath must be absolute");if(Ae&&(d=E(d)),u!=null&&u.includes(d))return e;if(!(!g.some(A=>d.endsWith(A))||y.some(A=>A.test(d)))&&j&&j.some(A=>A.test(d)))return e}},"createFilesMatcher");exports.createFilesMatcher=nn,exports.createPathsMatcher=Qe,exports.getTsconfig=Je,exports.parseTsconfig=ke;
1
+ "use strict";var De=Object.defineProperty;var o=(e,t)=>De(e,"name",{value:t,configurable:!0});var w=require("node:path"),re=require("node:fs"),he=require("node:module"),Le=require("resolve-pkg-maps"),Ee=require("fs"),xe=require("os"),Be=require("path");function L(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}o(L,"slash");const Y=o(e=>{const t=re[e];return(s,...n)=>{const i=`${e}:${n.join(":")}`;let l=s==null?void 0:s.get(i);return l===void 0&&(l=Reflect.apply(t,re,n),s==null||s.set(i,l)),l}},"cacheFs"),E=Y("existsSync"),Ie=Y("readFileSync"),G=Y("statSync"),fe=o((e,t,s)=>{for(;;){const n=w.posix.join(e,t);if(E(s,n))return n;const i=w.dirname(e);if(i===e)return;e=i}},"findUp"),Z=/^\.{1,2}(\/.*)?$/,K=o(e=>{const t=L(e);return Z.test(t)?t:`./${t}`},"normalizeRelativePath");function $e(e,t=!1){const s=e.length;let n=0,i="",l=0,u=16,a=0,r=0,g=0,v=0,m=0;function _(c,y){let A=0,b=0;for(;A<c;){let k=e.charCodeAt(n);if(k>=48&&k<=57)b=b*16+k-48;else if(k>=65&&k<=70)b=b*16+k-65+10;else if(k>=97&&k<=102)b=b*16+k-97+10;else break;n++,A++}return A<c&&(b=-1),b}o(_,"scanHexDigits");function p(c){n=c,i="",l=0,u=16,m=0}o(p,"setPosition");function D(){let c=n;if(e.charCodeAt(n)===48)n++;else for(n++;n<e.length&&P(e.charCodeAt(n));)n++;if(n<e.length&&e.charCodeAt(n)===46)if(n++,n<e.length&&P(e.charCodeAt(n)))for(n++;n<e.length&&P(e.charCodeAt(n));)n++;else return m=3,e.substring(c,n);let y=n;if(n<e.length&&(e.charCodeAt(n)===69||e.charCodeAt(n)===101))if(n++,(n<e.length&&e.charCodeAt(n)===43||e.charCodeAt(n)===45)&&n++,n<e.length&&P(e.charCodeAt(n))){for(n++;n<e.length&&P(e.charCodeAt(n));)n++;y=n}else m=3;return e.substring(c,y)}o(D,"scanNumber");function h(){let c="",y=n;for(;;){if(n>=s){c+=e.substring(y,n),m=2;break}const A=e.charCodeAt(n);if(A===34){c+=e.substring(y,n),n++;break}if(A===92){if(c+=e.substring(y,n),n++,n>=s){m=2;break}switch(e.charCodeAt(n++)){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+=" ";break;case 117:const k=_(4);k>=0?c+=String.fromCharCode(k):m=4;break;default:m=5}y=n;continue}if(A>=0&&A<=31)if(M(A)){c+=e.substring(y,n),m=2;break}else m=6;n++}return c}o(h,"scanString");function T(){if(i="",m=0,l=n,r=a,v=g,n>=s)return l=s,u=17;let c=e.charCodeAt(n);if(O(c)){do n++,i+=String.fromCharCode(c),c=e.charCodeAt(n);while(O(c));return u=15}if(M(c))return n++,i+=String.fromCharCode(c),c===13&&e.charCodeAt(n)===10&&(n++,i+=`
3
+ `),a++,g=n,u=14;switch(c){case 123:return n++,u=1;case 125:return n++,u=2;case 91:return n++,u=3;case 93:return n++,u=4;case 58:return n++,u=6;case 44:return n++,u=5;case 34:return n++,i=h(),u=10;case 47:const y=n-1;if(e.charCodeAt(n+1)===47){for(n+=2;n<s&&!M(e.charCodeAt(n));)n++;return i=e.substring(y,n),u=12}if(e.charCodeAt(n+1)===42){n+=2;const A=s-1;let b=!1;for(;n<A;){const k=e.charCodeAt(n);if(k===42&&e.charCodeAt(n+1)===47){n+=2,b=!0;break}n++,M(k)&&(k===13&&e.charCodeAt(n)===10&&n++,a++,g=n)}return b||(n++,m=1),i=e.substring(y,n),u=13}return i+=String.fromCharCode(c),n++,u=16;case 45:if(i+=String.fromCharCode(c),n++,n===s||!P(e.charCodeAt(n)))return u=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=D(),u=11;default:for(;n<s&&F(c);)n++,c=e.charCodeAt(n);if(l!==n){switch(i=e.substring(l,n),i){case"true":return u=8;case"false":return u=9;case"null":return u=7}return u=16}return i+=String.fromCharCode(c),n++,u=16}}o(T,"scanNext");function F(c){if(O(c)||M(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}o(F,"isUnknownContentCharacter");function x(){let c;do c=T();while(c>=12&&c<=15);return c}return o(x,"scanNextNonTrivia"),{setPosition:p,getPosition:o(()=>n,"getPosition"),scan:t?x:T,getToken:o(()=>u,"getToken"),getTokenValue:o(()=>i,"getTokenValue"),getTokenOffset:o(()=>l,"getTokenOffset"),getTokenLength:o(()=>n-l,"getTokenLength"),getTokenStartLine:o(()=>r,"getTokenStartLine"),getTokenStartCharacter:o(()=>l-v,"getTokenStartCharacter"),getTokenError:o(()=>m,"getTokenError")}}o($e,"createScanner");function O(e){return e===32||e===9}o(O,"isWhiteSpace");function M(e){return e===10||e===13}o(M,"isLineBreak");function P(e){return e>=48&&e<=57}o(P,"isDigit");var ae;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(ae||(ae={})),new Array(20).fill(0).map((e,t)=>" ".repeat(t));const N=200;new Array(N).fill(0).map((e,t)=>`
4
+ `+" ".repeat(t)),new Array(N).fill(0).map((e,t)=>"\r"+" ".repeat(t)),new Array(N).fill(0).map((e,t)=>`\r
5
+ `+" ".repeat(t)),new Array(N).fill(0).map((e,t)=>`
6
+ `+" ".repeat(t)),new Array(N).fill(0).map((e,t)=>"\r"+" ".repeat(t)),new Array(N).fill(0).map((e,t)=>`\r
7
+ `+" ".repeat(t));var q;(function(e){e.DEFAULT={allowTrailingComma:!1}})(q||(q={}));function Ue(e,t=[],s=q.DEFAULT){let n=null,i=[];const l=[];function u(r){Array.isArray(i)?i.push(r):n!==null&&(i[n]=r)}return o(u,"onValue"),Pe(e,{onObjectBegin:o(()=>{const r={};u(r),l.push(i),i=r,n=null},"onObjectBegin"),onObjectProperty:o(r=>{n=r},"onObjectProperty"),onObjectEnd:o(()=>{i=l.pop()},"onObjectEnd"),onArrayBegin:o(()=>{const r=[];u(r),l.push(i),i=r,n=null},"onArrayBegin"),onArrayEnd:o(()=>{i=l.pop()},"onArrayEnd"),onLiteralValue:u,onError:o((r,g,v)=>{t.push({error:r,offset:g,length:v})},"onError")},s),i[0]}o(Ue,"parse$1");function Pe(e,t,s=q.DEFAULT){const n=$e(e,!1),i=[];let l=0;function u(d){return d?()=>l===0&&d(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter()):()=>!0}o(u,"toNoArgVisit");function a(d){return d?j=>l===0&&d(j,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter()):()=>!0}o(a,"toOneArgVisit");function r(d){return d?j=>l===0&&d(j,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter(),()=>i.slice()):()=>!0}o(r,"toOneArgVisitWithPath");function g(d){return d?()=>{l>0?l++:d(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter(),()=>i.slice())===!1&&(l=1)}:()=>!0}o(g,"toBeginVisit");function v(d){return d?()=>{l>0&&l--,l===0&&d(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter())}:()=>!0}o(v,"toEndVisit");const m=g(t.onObjectBegin),_=r(t.onObjectProperty),p=v(t.onObjectEnd),D=g(t.onArrayBegin),h=v(t.onArrayEnd),T=r(t.onLiteralValue),F=a(t.onSeparator),x=u(t.onComment),c=a(t.onError),y=s&&s.disallowComments,A=s&&s.allowTrailingComma;function b(){for(;;){const d=n.scan();switch(n.getTokenError()){case 4:k(14);break;case 5:k(15);break;case 3:k(13);break;case 1:y||k(11);break;case 2:k(12);break;case 6:k(16);break}switch(d){case 12:case 13:y?k(10):x();break;case 16:k(1);break;case 15:case 14:break;default:return d}}}o(b,"scanNext");function k(d,j=[],S=[]){if(c(d),j.length+S.length>0){let $=n.getToken();for(;$!==17;){if(j.indexOf($)!==-1){b();break}else if(S.indexOf($)!==-1)break;$=b()}}}o(k,"handleError");function R(d){const j=n.getTokenValue();return d?T(j):(_(j),i.push(j)),b(),!0}o(R,"parseString");function J(){switch(n.getToken()){case 11:const d=n.getTokenValue();let j=Number(d);isNaN(j)&&(k(2),j=0),T(j);break;case 7:T(null);break;case 8:T(!0);break;case 9:T(!1);break;default:return!1}return b(),!0}o(J,"parseLiteral");function W(){return n.getToken()!==10?(k(3,[],[2,5]),!1):(R(!1),n.getToken()===6?(F(":"),b(),U()||k(4,[],[2,5])):k(5,[],[2,5]),i.pop(),!0)}o(W,"parseProperty");function V(){m(),b();let d=!1;for(;n.getToken()!==2&&n.getToken()!==17;){if(n.getToken()===5){if(d||k(4,[],[]),F(","),b(),n.getToken()===2&&A)break}else d&&k(6,[],[]);W()||k(4,[],[2,5]),d=!0}return p(),n.getToken()!==2?k(7,[2],[]):b(),!0}o(V,"parseObject");function z(){D(),b();let d=!0,j=!1;for(;n.getToken()!==4&&n.getToken()!==17;){if(n.getToken()===5){if(j||k(4,[],[]),F(","),b(),n.getToken()===4&&A)break}else j&&k(6,[],[]);d?(i.push(0),d=!1):i[i.length-1]++,U()||k(4,[],[4,5]),j=!0}return h(),d||i.pop(),n.getToken()!==4?k(8,[4],[]):b(),!0}o(z,"parseArray");function U(){switch(n.getToken()){case 3:return z();case 1:return V();case 10:return R(!0);default:return J()}}return o(U,"parseValue"),b(),n.getToken()===17?s.allowEmptyContent?!0:(k(4,[],[]),!1):U()?(n.getToken()!==17&&k(9,[],[]),!0):(k(4,[],[]),!1)}o(Pe,"visit");var ce;(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})(ce||(ce={}));var ge;(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(ge||(ge={}));const Ne=Ue;var ke;(function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"})(ke||(ke={}));const we=o((e,t)=>Ne(Ie(t,e,"utf8")),"readJsonc"),C=Symbol("implicitBaseUrl"),I="${configDir}",Re=o(()=>{const{findPnpApi:e}=he;return e&&e(process.cwd())},"getPnpApi"),ee=o((e,t,s,n)=>{const i=`resolveFromPackageJsonPath:${e}:${t}:${s}`;if(n!=null&&n.has(i))return n.get(i);const l=we(e,n);if(!l)return;let u=t||"tsconfig.json";if(!s&&l.exports)try{const[a]=Le.resolveExports(l.exports,t,["require","types"]);u=a}catch{return!1}else!t&&l.tsconfig&&(u=l.tsconfig);return u=w.join(e,"..",u),n==null||n.set(i,u),u},"resolveFromPackageJsonPath"),ne="package.json",te="tsconfig.json",Se=o((e,t,s)=>{let n=e;if(e===".."&&(n=w.join(n,te)),e[0]==="."&&(n=w.resolve(t,n)),w.isAbsolute(n)){if(E(s,n)){if(G(s,n).isFile())return n}else if(!n.endsWith(".json")){const p=`${n}.json`;if(E(s,p))return p}return}const[i,...l]=e.split("/"),u=i[0]==="@"?`${i}/${l.shift()}`:i,a=l.join("/"),r=Re();if(r){const{resolveRequest:p}=r;try{if(u===e){const D=p(w.join(u,ne),t);if(D){const h=ee(D,a,!1,s);if(h&&E(s,h))return h}}else{let D;try{D=p(e,t,{extensions:[".json"]})}catch{D=p(w.join(e,te),t)}if(D)return D}}catch{}}const g=fe(w.resolve(t),w.join("node_modules",u),s);if(!g||!G(s,g).isDirectory())return;const v=w.join(g,ne);if(E(s,v)){const p=ee(v,a,!1,s);if(p===!1)return;if(p&&E(s,p)&&G(s,p).isFile())return p}const m=w.join(g,a),_=m.endsWith(".json");if(!_){const p=`${m}.json`;if(E(s,p))return p}if(E(s,m)){if(G(s,m).isDirectory()){const p=w.join(m,ne);if(E(s,p)){const h=ee(p,"",!0,s);if(h&&E(s,h))return h}const D=w.join(m,te);if(E(s,D))return D}else if(_)return m}},"resolveExtendsPath"),se=o((e,t)=>K(w.relative(e,t)),"pathRelative"),de=["files","include","exclude"],me=o((e,t,s)=>{const n=w.join(t,s),i=w.relative(e,n);return L(i)||"./"},"resolveAndRelativize"),Me=o((e,t,s)=>{const n=w.relative(e,t);if(!n)return s;const i=s.startsWith("./")?s.slice(2):s;return L(`${n}/${i}`)},"prefixPattern"),Je=o((e,t,s,n)=>{const i=Se(e,t,n);if(!i)throw new Error(`File '${e}' not found.`);if(s.has(i))throw new Error(`Circularity detected while resolving configuration: ${i}`);s.add(i);const l=w.dirname(i),u=be(i,n,s);delete u.references;const{compilerOptions:a}=u;if(a){const{baseUrl:r}=a;r&&!r.startsWith(I)&&(a.baseUrl=me(t,l,r));const{outDir:g}=a;g&&!g.startsWith(I)&&(a.outDir=me(t,l,g))}for(const r of de){const g=u[r];g&&(u[r]=g.map(v=>v.startsWith(I)?v:Me(t,l,v)))}return u},"resolveExtends"),We=["outDir","declarationDir"],be=o((e,t,s=new Set)=>{let n;try{n=we(e,t)||{}}catch{throw new Error(`Cannot resolve tsconfig at path: ${e}`)}if(typeof n!="object")throw new SyntaxError(`Failed to parse tsconfig at: ${e}`);const i=w.dirname(e);if(n.compilerOptions){const{compilerOptions:l}=n;l.paths&&!l.baseUrl&&(l[C]=i)}if(n.extends){const l=Array.isArray(n.extends)?n.extends:[n.extends];delete n.extends;for(const u of l.reverse()){const a=Je(u,i,new Set(s),t),r={...a,...n,compilerOptions:{...a.compilerOptions,...n.compilerOptions}};a.watchOptions&&(r.watchOptions={...a.watchOptions,...n.watchOptions}),n=r}}if(n.compilerOptions){const{compilerOptions:l}=n,u=["baseUrl","rootDir"];for(const a of u){const r=l[a];if(r&&!r.startsWith(I)){const g=w.resolve(i,r),v=se(i,g);l[a]=v}}for(const a of We){let r=l[a];r&&(Array.isArray(n.exclude)||(n.exclude=[]),n.exclude.includes(r)||n.exclude.push(r),r.startsWith(I)||(r=K(r)),l[a]=r)}}else n.compilerOptions={};if(n.include?(n.include=n.include.map(L),n.files&&delete n.files):n.files&&(n.files=n.files.map(l=>l.startsWith(I)?l:K(l))),n.watchOptions){const{watchOptions:l}=n;l.excludeDirectories&&(l.excludeDirectories=l.excludeDirectories.map(u=>L(w.resolve(i,u)))),l.excludeFiles&&(l.excludeFiles=l.excludeFiles.map(u=>L(w.resolve(i,u)))),l.watchFile&&(l.watchFile=l.watchFile.toLowerCase()),l.watchDirectory&&(l.watchDirectory=l.watchDirectory.toLowerCase()),l.fallbackPolling&&(l.fallbackPolling=l.fallbackPolling.toLowerCase())}return n},"_parseTsconfig"),Q=o((e,t)=>{if(e.startsWith(I))return L(w.join(t,e.slice(I.length)))},"interpolateConfigDir"),Ve=["outDir","declarationDir","outFile","rootDir","baseUrl","tsBuildInfoFile"],ze=o(e=>{var t,s,n,i,l,u,a,r,g,v,m,_,p,D,h,T,F,x,c,y,A,b,k,R,J,W,V,z,U,d,j,S,$;if(e.strict){const f=["noImplicitAny","noImplicitThis","strictNullChecks","strictFunctionTypes","strictBindCallApply","strictPropertyInitialization","strictBuiltinIteratorReturn","alwaysStrict","useUnknownInCatchVariables"];for(const B of f)e[B]===void 0&&(e[B]=!0)}if(e.composite&&((t=e.declaration)!=null||(e.declaration=!0),(s=e.incremental)!=null||(e.incremental=!0)),e.target){let f=e.target.toLowerCase();f==="es2015"&&(f="es6"),e.target=f,f==="esnext"&&((n=e.module)!=null||(e.module="es6"),(i=e.useDefineForClassFields)!=null||(e.useDefineForClassFields=!0)),(f==="es6"||f==="es2016"||f==="es2017"||f==="es2018"||f==="es2019"||f==="es2020"||f==="es2021"||f==="es2022"||f==="es2023"||f==="es2024")&&((l=e.module)!=null||(e.module="es6")),(f==="es2022"||f==="es2023"||f==="es2024")&&((u=e.useDefineForClassFields)!=null||(e.useDefineForClassFields=!0))}if(e.module){let f=e.module.toLowerCase();if(f==="es2015"&&(f="es6"),e.module=f,(f==="es6"||f==="es2020"||f==="es2022"||f==="esnext"||f==="none"||f==="system"||f==="umd"||f==="amd")&&((a=e.moduleResolution)!=null||(e.moduleResolution="classic")),f==="system"&&((r=e.allowSyntheticDefaultImports)!=null||(e.allowSyntheticDefaultImports=!0)),(f==="node16"||f==="node18"||f==="node20"||f==="nodenext"||f==="preserve")&&((g=e.esModuleInterop)!=null||(e.esModuleInterop=!0),(v=e.allowSyntheticDefaultImports)!=null||(e.allowSyntheticDefaultImports=!0)),(f==="node16"||f==="node18"||f==="node20"||f==="nodenext")&&((m=e.moduleDetection)!=null||(e.moduleDetection="force")),f==="node16"&&((_=e.target)!=null||(e.target="es2022"),(p=e.moduleResolution)!=null||(e.moduleResolution="node16")),f==="node18"&&((D=e.target)!=null||(e.target="es2022"),(h=e.moduleResolution)!=null||(e.moduleResolution="node16")),f==="node20"&&((T=e.target)!=null||(e.target="es2023"),(F=e.moduleResolution)!=null||(e.moduleResolution="node16"),(x=e.resolveJsonModule)!=null||(e.resolveJsonModule=!0)),f==="nodenext"&&((c=e.target)!=null||(e.target="esnext"),(y=e.moduleResolution)!=null||(e.moduleResolution="nodenext"),(A=e.resolveJsonModule)!=null||(e.resolveJsonModule=!0)),f==="node16"||f==="node18"||f==="node20"||f==="nodenext"){const B=e.target;(B==="es3"||B==="es2022"||B==="es2023"||B==="es2024"||B==="esnext")&&((b=e.useDefineForClassFields)!=null||(e.useDefineForClassFields=!0))}f==="preserve"&&((k=e.moduleResolution)!=null||(e.moduleResolution="bundler"))}if(e.moduleResolution){let f=e.moduleResolution.toLowerCase();f==="node"&&(f="node10"),e.moduleResolution=f,(f==="node16"||f==="nodenext"||f==="bundler")&&((R=e.resolvePackageJsonExports)!=null||(e.resolvePackageJsonExports=!0),(J=e.resolvePackageJsonImports)!=null||(e.resolvePackageJsonImports=!0)),f==="bundler"&&((W=e.allowSyntheticDefaultImports)!=null||(e.allowSyntheticDefaultImports=!0),(V=e.resolveJsonModule)!=null||(e.resolveJsonModule=!0))}e.jsx&&(e.jsx=e.jsx.toLowerCase()),e.moduleDetection&&(e.moduleDetection=e.moduleDetection.toLowerCase()),e.importsNotUsedAsValues&&(e.importsNotUsedAsValues=e.importsNotUsedAsValues.toLowerCase()),e.newLine&&(e.newLine=e.newLine.toLowerCase()),e.esModuleInterop&&((z=e.allowSyntheticDefaultImports)!=null||(e.allowSyntheticDefaultImports=!0)),e.verbatimModuleSyntax&&((U=e.isolatedModules)!=null||(e.isolatedModules=!0),(d=e.preserveConstEnums)!=null||(e.preserveConstEnums=!0)),e.isolatedModules&&((j=e.preserveConstEnums)!=null||(e.preserveConstEnums=!0)),e.rewriteRelativeImportExtensions&&((S=e.allowImportingTsExtensions)!=null||(e.allowImportingTsExtensions=!0)),e.lib&&(e.lib=e.lib.map(f=>f.toLowerCase())),e.checkJs&&(($=e.allowJs)!=null||(e.allowJs=!0))},"normalizeCompilerOptions"),ve=o((e,t=new Map)=>{const s=w.resolve(e),n=be(s,t),i=w.dirname(s),{compilerOptions:l}=n;if(l){for(const a of Ve){const r=l[a];if(r){const g=Q(r,i);l[a]=g?se(i,g):r}}for(const a of["rootDirs","typeRoots"]){const r=l[a];r&&(l[a]=r.map(g=>{const v=Q(g,i);return v?se(i,v):g}))}const{paths:u}=l;if(u)for(const a of Object.keys(u))u[a]=u[a].map(r=>{var g;return(g=Q(r,i))!=null?g:r});ze(l)}for(const u of de){const a=n[u];a&&(n[u]=a.map(r=>{var g;return(g=Q(r,i))!=null?g:r}))}return n},"parseTsconfig"),Ge=o((e=process.cwd(),t="tsconfig.json",s=new Map)=>{const n=fe(L(e),t,s);if(!n)return null;const i=ve(n,s);return{path:n,config:i}},"getTsconfig"),qe=/\*/g,pe=o((e,t)=>{const s=e.match(qe);if(s&&s.length>1)throw new Error(t)},"assertStarCount"),Qe=o(e=>{if(e.includes("*")){const[t,s]=e.split("*");return{prefix:t,suffix:s}}return e},"parsePattern"),He=o(({prefix:e,suffix:t},s)=>s.startsWith(e)&&s.endsWith(t),"isPatternMatch"),Xe=o((e,t,s)=>Object.entries(e).map(([n,i])=>(pe(n,`Pattern '${n}' can have at most one '*' character.`),{pattern:Qe(n),substitutions:i.map(l=>{if(pe(l,`Substitution '${l}' in pattern '${n}' can have at most one '*' character.`),!t&&!Z.test(l)&&!w.isAbsolute(l))throw new Error("Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?");return w.resolve(s,l)})})),"parsePaths"),Ye=o(e=>{const{compilerOptions:t}=e.config;if(!t)return null;const{baseUrl:s,paths:n}=t;if(!s&&!n)return null;const i=C in t&&t[C],l=w.resolve(w.dirname(e.path),s||i||"."),u=n?Xe(n,s,l):[];return a=>{if(Z.test(a))return[];const r=[];for(const _ of u){if(_.pattern===a)return _.substitutions.map(L);typeof _.pattern!="string"&&r.push(_)}let g,v=-1;for(const _ of r)He(_.pattern,a)&&_.pattern.prefix.length>v&&(v=_.pattern.prefix.length,g=_);if(!g)return s?[L(w.join(l,a))]:[];const m=a.slice(g.pattern.prefix.length,a.length-g.pattern.suffix.length);return g.substitutions.map(_=>L(_.replace("*",m)))}},"createPathsMatcher");var Ze=Object.defineProperty,H=o((e,t)=>Ze(e,"name",{value:t,configurable:!0}),"s");const Te=H(e=>{let t="";for(let s=0;s<e.length;s+=1){const n=e[s],i=n.toUpperCase();t+=n===i?n.toLowerCase():i}return t},"invertCase"),le=new Map,Ae=H((e,t)=>{const s=Be.join(e,`.is-fs-case-sensitive-test-${process.pid}`);try{return t.writeFileSync(s,""),!t.existsSync(Te(s))}finally{try{t.unlinkSync(s)}catch{}}},"checkDirectoryCaseWithWrite"),Ke=H((e,t,s)=>{try{return Ae(e,s)}catch(n){if(t===void 0)return Ae(xe.tmpdir(),s);throw n}},"checkDirectoryCaseWithFallback"),Oe=H((e,t=Ee,s=!0)=>{const n=e!=null?e:process.cwd();if(s&&le.has(n))return le.get(n);let i;const l=Te(n);return l!==n&&t.existsSync(n)?i=!t.existsSync(l):i=Ke(n,e,t),s&&le.set(n,i),i},"isFsCaseSensitive"),{join:_e}=w.posix,ie={ts:[".ts",".tsx",".d.ts"],cts:[".cts",".d.cts"],mts:[".mts",".d.mts"]},Ce=o(e=>{const t=[...ie.ts],s=[...ie.cts],n=[...ie.mts];return e!=null&&e.allowJs&&(t.push(".js",".jsx"),s.push(".cjs"),n.push(".mjs")),[...t,...s,...n]},"getSupportedExtensions"),en=o(e=>{const t=[];if(!e)return t;const{outDir:s,declarationDir:n}=e;return s&&t.push(s),n&&t.push(n),t},"getDefaultExcludeSpec"),ye=o(e=>e.replaceAll(/[.*+?^${}()|[\]\\]/g,String.raw`\$&`),"escapeForRegexp"),nn=["node_modules","bower_components","jspm_packages"],oe=`(?!(${nn.join("|")})(/|$))`,tn=/(?:^|\/)[^.*?]+$/,je="**/*",X="[^/]",ue="[^./]",Fe=process.platform==="win32",sn=o(({config:e,path:t},s=Oe())=>{if("extends"in e)throw new Error("tsconfig#extends must be resolved. Use getTsconfig or parseTsconfig to resolve it.");if(!w.isAbsolute(t))throw new Error("The tsconfig path must be absolute");Fe&&(t=L(t));const n=w.dirname(t),{files:i,include:l,exclude:u,compilerOptions:a}=e,r=o(T=>w.isAbsolute(T)?T:_e(n,T),"resolvePattern"),g=i==null?void 0:i.map(r),v=Ce(a),m=s?"":"i",p=(u||en(a)).map(T=>{const F=r(T),x=ye(F).replaceAll(String.raw`\*\*/`,"(.+/)?").replaceAll(String.raw`\*`,`${X}*`).replaceAll(String.raw`\?`,X);return new RegExp(`^${x}($|/)`,m)}),D=i||l?l:[je],h=D?D.map(T=>{let F=r(T);tn.test(F)&&(F=_e(F,je));const x=ye(F).replaceAll(String.raw`/\*\*`,`(/${oe}${ue}${X}*)*?`).replaceAll(/(\/)?\\\*/g,(c,y)=>{const A=`(${ue}|(\\.(?!min\\.js$))?)*`;return y?`/${oe}${ue}${A}`:A}).replaceAll(/(\/)?\\\?/g,(c,y)=>{const A=X;return y?`/${oe}${A}`:A});return new RegExp(`^${x}$`,m)}):void 0;return T=>{if(!w.isAbsolute(T))throw new Error("filePath must be absolute");if(Fe&&(T=L(T)),g!=null&&g.includes(T))return e;if(!(!v.some(F=>T.endsWith(F))||p.some(F=>F.test(T)))&&h&&h.some(F=>F.test(T)))return e}},"createFilesMatcher");exports.createFilesMatcher=sn,exports.createPathsMatcher=Ye,exports.getTsconfig=Ge,exports.parseTsconfig=ve;