@storm-software/config-tools 1.144.13 → 1.145.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. package/README.md +1 -1
  2. package/bin/config.cjs +260 -74597
  3. package/bin/config.js +224 -74588
  4. package/dist/chunk-2AVLCXLT.js +0 -0
  5. package/dist/chunk-3NWKPYIG.cjs +68 -0
  6. package/dist/{chunk-7TAUZNGG.cjs → chunk-5BKIG4XN.cjs} +5 -7
  7. package/dist/chunk-65SWKEHV.cjs +1 -0
  8. package/dist/{chunk-UHUKL2FF.js → chunk-6QCPF7DE.js} +3 -5
  9. package/dist/{chunk-TUH2WX5T.js → chunk-7FBGW2FI.js} +3 -5
  10. package/dist/{chunk-OMKDNOX6.cjs → chunk-7NSHGJWY.cjs} +2 -4
  11. package/dist/chunk-7PV6L7I7.cjs +1 -0
  12. package/dist/{chunk-I4SIJOYB.cjs → chunk-B6J2YUGO.cjs} +7 -9
  13. package/dist/{chunk-NCZG3KIJ.js → chunk-BHZFTVXN.js} +2 -4
  14. package/dist/{chunk-LHYMHJN7.js → chunk-CEEL5LLM.js} +8 -10
  15. package/dist/{chunk-WSHWZNKF.cjs → chunk-CRQ4EVX5.cjs} +4 -6
  16. package/dist/chunk-DD3HX2NX.cjs +1 -0
  17. package/dist/{chunk-VNWXMGH6.cjs → chunk-DXUUXBG3.cjs} +6 -8
  18. package/dist/{chunk-3HOVXAQZ.cjs → chunk-EOQEK2MM.cjs} +37 -39
  19. package/dist/chunk-EPBOQXUS.cjs +93 -0
  20. package/dist/{chunk-2F7SMIKE.js → chunk-FXFNC4WC.js} +4 -6
  21. package/dist/chunk-GFL2DSZK.js +44 -0
  22. package/dist/{chunk-V2H3W5RM.cjs → chunk-GMMTDKYU.cjs} +22 -24
  23. package/dist/{chunk-NMYOKDUE.cjs → chunk-HE7RJB2E.cjs} +30 -27
  24. package/dist/{chunk-L3RZVSYE.js → chunk-HI33NNPB.js} +3 -5
  25. package/dist/{chunk-5GWRMIQL.js → chunk-HSCCBYAV.js} +2 -4
  26. package/dist/{chunk-2BONUUVS.cjs → chunk-HSNM6VD2.cjs} +13 -12
  27. package/dist/{chunk-RXWR65M2.js → chunk-IKXDQ7DB.js} +5 -7
  28. package/dist/{chunk-DEWCXJEQ.cjs → chunk-IRCFHYKZ.cjs} +1 -6
  29. package/dist/{chunk-5CCF2WYC.js → chunk-IUT7Y2UY.js} +4 -6
  30. package/dist/chunk-IWD6YQKX.cjs +1 -0
  31. package/dist/chunk-JXLUUN7Z.cjs +179 -0
  32. package/dist/{chunk-XJSXW4P5.cjs → chunk-KRKGLKPD.cjs} +13 -15
  33. package/dist/chunk-L6UNTUC4.js +0 -0
  34. package/dist/{chunk-WBQEFUVW.js → chunk-LQJJD6FB.js} +2 -4
  35. package/dist/chunk-MXRRZKNO.js +77 -0
  36. package/dist/{chunk-MNA5ZBKU.js → chunk-MZ5BNE43.js} +12 -14
  37. package/dist/chunk-NJVL3GF4.js +0 -0
  38. package/dist/{chunk-WN4V6QSX.js → chunk-POXTJ6GF.js} +0 -5
  39. package/dist/{chunk-RR5DGQEI.js → chunk-PR7RQHRE.js} +2 -4
  40. package/dist/{chunk-A55N7CTJ.js → chunk-QBS3OCHH.js} +2 -4
  41. package/dist/{chunk-SJZ346G5.js → chunk-QGYINXXY.js} +3 -5
  42. package/dist/{chunk-M3QWTBKA.js → chunk-R4O6ILOD.js} +10 -7
  43. package/dist/chunk-RRKB32OH.js +0 -0
  44. package/dist/{chunk-E7VZQ7HY.cjs → chunk-RVM5N5ZI.cjs} +2 -4
  45. package/dist/chunk-SA4LVIO6.cjs +77 -0
  46. package/dist/chunk-SHUYVCID.js +6 -0
  47. package/dist/chunk-SLGVSUEV.cjs +36 -0
  48. package/dist/chunk-SPNVYBT4.cjs +44 -0
  49. package/dist/chunk-USNT2KNT.cjs +6 -0
  50. package/dist/chunk-WRGFZXJE.js +179 -0
  51. package/dist/{chunk-54PYJ6Z7.js → chunk-X7BEPYRX.js} +2 -4
  52. package/dist/{chunk-WJP36CPU.cjs → chunk-XAJB3BSF.cjs} +3 -5
  53. package/dist/{chunk-P26TW2V3.cjs → chunk-XDBACKKN.cjs} +3 -5
  54. package/dist/chunk-XY2LDOQ4.cjs +26 -0
  55. package/dist/{chunk-AXVHALK5.cjs → chunk-XYV3B7TT.cjs} +2 -4
  56. package/dist/{chunk-NKL6DBVO.js → chunk-YES7WAZK.js} +8 -7
  57. package/dist/chunk-ZA4IO7YJ.js +36 -0
  58. package/dist/config-file/get-config-file.cjs +20 -25
  59. package/dist/config-file/get-config-file.js +19 -24
  60. package/dist/config-file/index.cjs +21 -26
  61. package/dist/config-file/index.js +20 -25
  62. package/dist/create-storm-config.cjs +23 -28
  63. package/dist/create-storm-config.js +22 -27
  64. package/dist/env/get-env.cjs +7 -6
  65. package/dist/env/get-env.js +6 -5
  66. package/dist/env/index.cjs +9 -8
  67. package/dist/env/index.js +8 -7
  68. package/dist/env/set-env.cjs +6 -6
  69. package/dist/env/set-env.js +5 -5
  70. package/dist/get-config.cjs +24 -29
  71. package/dist/get-config.js +23 -28
  72. package/dist/index.cjs +28 -38
  73. package/dist/index.js +27 -37
  74. package/dist/logger/chalk.cjs +3 -3
  75. package/dist/logger/chalk.js +2 -2
  76. package/dist/logger/console-icons.cjs +5 -5
  77. package/dist/logger/console-icons.js +4 -4
  78. package/dist/logger/console.cjs +14 -13
  79. package/dist/logger/console.js +13 -12
  80. package/dist/logger/create-logger.cjs +15 -14
  81. package/dist/logger/create-logger.js +14 -13
  82. package/dist/logger/format-timestamp.cjs +3 -3
  83. package/dist/logger/format-timestamp.js +2 -2
  84. package/dist/logger/get-log-level.cjs +4 -4
  85. package/dist/logger/get-log-level.js +3 -3
  86. package/dist/logger/index.cjs +16 -15
  87. package/dist/logger/index.js +15 -14
  88. package/dist/logger/is-unicode-supported.cjs +3 -3
  89. package/dist/logger/is-unicode-supported.js +2 -2
  90. package/dist/types.cjs +3 -3
  91. package/dist/types.js +2 -2
  92. package/dist/utilities/apply-workspace-tokens.cjs +6 -6
  93. package/dist/utilities/apply-workspace-tokens.js +5 -5
  94. package/dist/utilities/correct-paths.cjs +3 -3
  95. package/dist/utilities/correct-paths.js +2 -2
  96. package/dist/utilities/file-path-utils.cjs +3 -3
  97. package/dist/utilities/file-path-utils.js +2 -2
  98. package/dist/utilities/find-up.cjs +3 -3
  99. package/dist/utilities/find-up.js +2 -2
  100. package/dist/utilities/find-workspace-root.cjs +5 -5
  101. package/dist/utilities/find-workspace-root.js +4 -4
  102. package/dist/utilities/get-default-config.cjs +7 -6
  103. package/dist/utilities/get-default-config.js +6 -5
  104. package/dist/utilities/index.cjs +19 -18
  105. package/dist/utilities/index.js +18 -17
  106. package/dist/utilities/process-handler.cjs +15 -14
  107. package/dist/utilities/process-handler.js +14 -13
  108. package/dist/utilities/run.cjs +3 -3
  109. package/dist/utilities/run.js +2 -2
  110. package/package.json +4 -5
  111. package/dist/chunk-2GPW5A4A.cjs +0 -50
  112. package/dist/chunk-3IVAD3CI.cjs +0 -510
  113. package/dist/chunk-52JTCGPV.cjs +0 -6
  114. package/dist/chunk-52Z3B7HG.js +0 -6
  115. package/dist/chunk-55BEED5V.cjs +0 -70
  116. package/dist/chunk-5LIAIS5V.js +0 -6
  117. package/dist/chunk-65NJ2BNV.js +0 -49
  118. package/dist/chunk-6SKUJC25.cjs +0 -451
  119. package/dist/chunk-7IOWYE4O.cjs +0 -34070
  120. package/dist/chunk-7LNAPF6J.js +0 -7601
  121. package/dist/chunk-BIBA7MGH.js +0 -84
  122. package/dist/chunk-BZ3KC4XF.cjs +0 -6
  123. package/dist/chunk-EVHBF7QV.cjs +0 -6
  124. package/dist/chunk-F5YSYO5J.js +0 -2645
  125. package/dist/chunk-FIQNSYAM.cjs +0 -1120
  126. package/dist/chunk-IIQMKNOS.cjs +0 -6
  127. package/dist/chunk-JT5CJFOS.cjs +0 -2645
  128. package/dist/chunk-KCNZC4ZI.js +0 -6
  129. package/dist/chunk-M3K4KT2L.cjs +0 -4054
  130. package/dist/chunk-MVPKPUE3.js +0 -1120
  131. package/dist/chunk-MZADO4BZ.cjs +0 -765
  132. package/dist/chunk-PRGAKNNV.js +0 -765
  133. package/dist/chunk-Q3AKY4XY.js +0 -4054
  134. package/dist/chunk-Q42ZDLPG.js +0 -510
  135. package/dist/chunk-QFCXJAOM.js +0 -50
  136. package/dist/chunk-QZAXYX3X.cjs +0 -7601
  137. package/dist/chunk-R6ZWDCX4.cjs +0 -28
  138. package/dist/chunk-RNYNEYJ5.js +0 -451
  139. package/dist/chunk-SCFUDB74.cjs +0 -49
  140. package/dist/chunk-YDVJJTKY.js +0 -34067
  141. package/dist/chunk-Z555MBWN.cjs +0 -84
  142. package/dist/chunk-ZIUQG4HD.js +0 -6
  143. package/dist/chunk-ZXAQ4Y3X.cjs +0 -95
  144. package/dist/dist-UYAH2J3L.js +0 -17570
  145. package/dist/dist-WP6JBNT4.cjs +0 -17571
  146. package/dist/esm-F37IKPYG.cjs +0 -1716
  147. package/dist/esm-SQV6ELTR.js +0 -1716
  148. package/dist/execa-4HBUJBFQ.js +0 -2424
  149. package/dist/execa-K2JB3BB4.cjs +0 -2424
  150. package/dist/json5-PPMIEYQR.cjs +0 -10
  151. package/dist/json5-WTSMELC2.js +0 -10
  152. package/dist/jsonc-B7SFZJW2.js +0 -15
  153. package/dist/jsonc-X7JKFW4T.cjs +0 -15
  154. package/dist/multipart-parser-JIRREWFU.cjs +0 -187
  155. package/dist/multipart-parser-TFNERLJV.js +0 -187
  156. package/dist/toml-MTE5VHET.js +0 -10
  157. package/dist/toml-N2WLYE3T.cjs +0 -10
  158. package/dist/yaml-D6PQ2AEL.js +0 -10
  159. package/dist/yaml-LR2Y4V3W.cjs +0 -10
@@ -1,28 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkE7VZQ7HYcjs = require('./chunk-E7VZQ7HY.cjs');
4
-
5
-
6
- var _chunkDEWCXJEQcjs = require('./chunk-DEWCXJEQ.cjs');
7
-
8
-
9
-
10
- var _chunkSCFUDB74cjs = require('./chunk-SCFUDB74.cjs');
11
-
12
- // src/logger/console-icons.ts
13
- _chunkSCFUDB74cjs.init_cjs_shims.call(void 0, );
14
- var useIcon = /* @__PURE__ */ _chunkSCFUDB74cjs.__name.call(void 0, (c, fallback) => _chunkE7VZQ7HYcjs.isUnicodeSupported.call(void 0, ) ? c : fallback, "useIcon");
15
- var CONSOLE_ICONS = {
16
- [_chunkDEWCXJEQcjs.LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
17
- [_chunkDEWCXJEQcjs.LogLevelLabel.FATAL]: useIcon("\u{1F480}", "\xD7"),
18
- [_chunkDEWCXJEQcjs.LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
19
- [_chunkDEWCXJEQcjs.LogLevelLabel.INFO]: useIcon("\u2139", "i"),
20
- [_chunkDEWCXJEQcjs.LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
21
- [_chunkDEWCXJEQcjs.LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
22
- [_chunkDEWCXJEQcjs.LogLevelLabel.TRACE]: useIcon("\u{1F6E0}", "T"),
23
- [_chunkDEWCXJEQcjs.LogLevelLabel.ALL]: useIcon("\u2709", "\u2192")
24
- };
25
-
26
-
27
-
28
- exports.CONSOLE_ICONS = CONSOLE_ICONS;
@@ -1,451 +0,0 @@
1
- import {
2
- C,
3
- N
4
- } from "./chunk-BIBA7MGH.js";
5
- import {
6
- __name,
7
- init_esm_shims
8
- } from "./chunk-65NJ2BNV.js";
9
-
10
- // ../../node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/shared/confbox.f9f03f05.mjs
11
- init_esm_shims();
12
- function $(n, l = false) {
13
- const g = n.length;
14
- let e = 0, u = "", p = 0, k = 16, A = 0, o = 0, O = 0, B = 0, b = 0;
15
- function I(i, T) {
16
- let s = 0, c = 0;
17
- for (; s < i || !T; ) {
18
- let t = n.charCodeAt(e);
19
- if (t >= 48 && t <= 57) c = c * 16 + t - 48;
20
- else if (t >= 65 && t <= 70) c = c * 16 + t - 65 + 10;
21
- else if (t >= 97 && t <= 102) c = c * 16 + t - 97 + 10;
22
- else break;
23
- e++, s++;
24
- }
25
- return s < i && (c = -1), c;
26
- }
27
- __name(I, "I");
28
- function V(i) {
29
- e = i, u = "", p = 0, k = 16, b = 0;
30
- }
31
- __name(V, "V");
32
- function F() {
33
- let i = e;
34
- if (n.charCodeAt(e) === 48) e++;
35
- else for (e++; e < n.length && L(n.charCodeAt(e)); ) e++;
36
- if (e < n.length && n.charCodeAt(e) === 46) if (e++, e < n.length && L(n.charCodeAt(e))) for (e++; e < n.length && L(n.charCodeAt(e)); ) e++;
37
- else return b = 3, n.substring(i, e);
38
- let T = e;
39
- if (e < n.length && (n.charCodeAt(e) === 69 || n.charCodeAt(e) === 101)) if (e++, (e < n.length && n.charCodeAt(e) === 43 || n.charCodeAt(e) === 45) && e++, e < n.length && L(n.charCodeAt(e))) {
40
- for (e++; e < n.length && L(n.charCodeAt(e)); ) e++;
41
- T = e;
42
- } else b = 3;
43
- return n.substring(i, T);
44
- }
45
- __name(F, "F");
46
- function j() {
47
- let i = "", T = e;
48
- for (; ; ) {
49
- if (e >= g) {
50
- i += n.substring(T, e), b = 2;
51
- break;
52
- }
53
- const s = n.charCodeAt(e);
54
- if (s === 34) {
55
- i += n.substring(T, e), e++;
56
- break;
57
- }
58
- if (s === 92) {
59
- if (i += n.substring(T, e), e++, e >= g) {
60
- b = 2;
61
- break;
62
- }
63
- switch (n.charCodeAt(e++)) {
64
- case 34:
65
- i += '"';
66
- break;
67
- case 92:
68
- i += "\\";
69
- break;
70
- case 47:
71
- i += "/";
72
- break;
73
- case 98:
74
- i += "\b";
75
- break;
76
- case 102:
77
- i += "\f";
78
- break;
79
- case 110:
80
- i += `
81
- `;
82
- break;
83
- case 114:
84
- i += "\r";
85
- break;
86
- case 116:
87
- i += " ";
88
- break;
89
- case 117:
90
- const t = I(4, true);
91
- t >= 0 ? i += String.fromCharCode(t) : b = 4;
92
- break;
93
- default:
94
- b = 5;
95
- }
96
- T = e;
97
- continue;
98
- }
99
- if (s >= 0 && s <= 31) if (r(s)) {
100
- i += n.substring(T, e), b = 2;
101
- break;
102
- } else b = 6;
103
- e++;
104
- }
105
- return i;
106
- }
107
- __name(j, "j");
108
- function w() {
109
- if (u = "", b = 0, p = e, o = A, B = O, e >= g) return p = g, k = 17;
110
- let i = n.charCodeAt(e);
111
- if (J(i)) {
112
- do
113
- e++, u += String.fromCharCode(i), i = n.charCodeAt(e);
114
- while (J(i));
115
- return k = 15;
116
- }
117
- if (r(i)) return e++, u += String.fromCharCode(i), i === 13 && n.charCodeAt(e) === 10 && (e++, u += `
118
- `), A++, O = e, k = 14;
119
- switch (i) {
120
- case 123:
121
- return e++, k = 1;
122
- case 125:
123
- return e++, k = 2;
124
- case 91:
125
- return e++, k = 3;
126
- case 93:
127
- return e++, k = 4;
128
- case 58:
129
- return e++, k = 6;
130
- case 44:
131
- return e++, k = 5;
132
- case 34:
133
- return e++, u = j(), k = 10;
134
- case 47:
135
- const T = e - 1;
136
- if (n.charCodeAt(e + 1) === 47) {
137
- for (e += 2; e < g && !r(n.charCodeAt(e)); ) e++;
138
- return u = n.substring(T, e), k = 12;
139
- }
140
- if (n.charCodeAt(e + 1) === 42) {
141
- e += 2;
142
- const s = g - 1;
143
- let c = false;
144
- for (; e < s; ) {
145
- const t = n.charCodeAt(e);
146
- if (t === 42 && n.charCodeAt(e + 1) === 47) {
147
- e += 2, c = true;
148
- break;
149
- }
150
- e++, r(t) && (t === 13 && n.charCodeAt(e) === 10 && e++, A++, O = e);
151
- }
152
- return c || (e++, b = 1), u = n.substring(T, e), k = 13;
153
- }
154
- return u += String.fromCharCode(i), e++, k = 16;
155
- case 45:
156
- if (u += String.fromCharCode(i), e++, e === g || !L(n.charCodeAt(e))) return k = 16;
157
- case 48:
158
- case 49:
159
- case 50:
160
- case 51:
161
- case 52:
162
- case 53:
163
- case 54:
164
- case 55:
165
- case 56:
166
- case 57:
167
- return u += F(), k = 11;
168
- default:
169
- for (; e < g && v(i); ) e++, i = n.charCodeAt(e);
170
- if (p !== e) {
171
- switch (u = n.substring(p, e), u) {
172
- case "true":
173
- return k = 8;
174
- case "false":
175
- return k = 9;
176
- case "null":
177
- return k = 7;
178
- }
179
- return k = 16;
180
- }
181
- return u += String.fromCharCode(i), e++, k = 16;
182
- }
183
- }
184
- __name(w, "w");
185
- function v(i) {
186
- if (J(i) || r(i)) return false;
187
- switch (i) {
188
- case 125:
189
- case 93:
190
- case 123:
191
- case 91:
192
- case 34:
193
- case 58:
194
- case 44:
195
- case 47:
196
- return false;
197
- }
198
- return true;
199
- }
200
- __name(v, "v");
201
- function E() {
202
- let i;
203
- do
204
- i = w();
205
- while (i >= 12 && i <= 15);
206
- return i;
207
- }
208
- __name(E, "E");
209
- return { setPosition: V, getPosition: /* @__PURE__ */ __name(() => e, "getPosition"), scan: l ? E : w, getToken: /* @__PURE__ */ __name(() => k, "getToken"), getTokenValue: /* @__PURE__ */ __name(() => u, "getTokenValue"), getTokenOffset: /* @__PURE__ */ __name(() => p, "getTokenOffset"), getTokenLength: /* @__PURE__ */ __name(() => e - p, "getTokenLength"), getTokenStartLine: /* @__PURE__ */ __name(() => o, "getTokenStartLine"), getTokenStartCharacter: /* @__PURE__ */ __name(() => p - B, "getTokenStartCharacter"), getTokenError: /* @__PURE__ */ __name(() => b, "getTokenError") };
210
- }
211
- __name($, "$");
212
- function J(n) {
213
- return n === 32 || n === 9;
214
- }
215
- __name(J, "J");
216
- function r(n) {
217
- return n === 10 || n === 13;
218
- }
219
- __name(r, "r");
220
- function L(n) {
221
- return n >= 48 && n <= 57;
222
- }
223
- __name(L, "L");
224
- var Q;
225
- (function(n) {
226
- n[n.lineFeed = 10] = "lineFeed", n[n.carriageReturn = 13] = "carriageReturn", n[n.space = 32] = "space", n[n._0 = 48] = "_0", n[n._1 = 49] = "_1", n[n._2 = 50] = "_2", n[n._3 = 51] = "_3", n[n._4 = 52] = "_4", n[n._5 = 53] = "_5", n[n._6 = 54] = "_6", n[n._7 = 55] = "_7", n[n._8 = 56] = "_8", n[n._9 = 57] = "_9", n[n.a = 97] = "a", n[n.b = 98] = "b", n[n.c = 99] = "c", n[n.d = 100] = "d", n[n.e = 101] = "e", n[n.f = 102] = "f", n[n.g = 103] = "g", n[n.h = 104] = "h", n[n.i = 105] = "i", n[n.j = 106] = "j", n[n.k = 107] = "k", n[n.l = 108] = "l", n[n.m = 109] = "m", n[n.n = 110] = "n", n[n.o = 111] = "o", n[n.p = 112] = "p", n[n.q = 113] = "q", n[n.r = 114] = "r", n[n.s = 115] = "s", n[n.t = 116] = "t", n[n.u = 117] = "u", n[n.v = 118] = "v", n[n.w = 119] = "w", n[n.x = 120] = "x", n[n.y = 121] = "y", n[n.z = 122] = "z", n[n.A = 65] = "A", n[n.B = 66] = "B", n[n.C = 67] = "C", n[n.D = 68] = "D", n[n.E = 69] = "E", n[n.F = 70] = "F", n[n.G = 71] = "G", n[n.H = 72] = "H", n[n.I = 73] = "I", n[n.J = 74] = "J", n[n.K = 75] = "K", n[n.L = 76] = "L", n[n.M = 77] = "M", n[n.N = 78] = "N", n[n.O = 79] = "O", n[n.P = 80] = "P", n[n.Q = 81] = "Q", n[n.R = 82] = "R", n[n.S = 83] = "S", n[n.T = 84] = "T", n[n.U = 85] = "U", n[n.V = 86] = "V", n[n.W = 87] = "W", n[n.X = 88] = "X", n[n.Y = 89] = "Y", n[n.Z = 90] = "Z", n[n.asterisk = 42] = "asterisk", n[n.backslash = 92] = "backslash", n[n.closeBrace = 125] = "closeBrace", n[n.closeBracket = 93] = "closeBracket", n[n.colon = 58] = "colon", n[n.comma = 44] = "comma", n[n.dot = 46] = "dot", n[n.doubleQuote = 34] = "doubleQuote", n[n.minus = 45] = "minus", n[n.openBrace = 123] = "openBrace", n[n.openBracket = 91] = "openBracket", n[n.plus = 43] = "plus", n[n.slash = 47] = "slash", n[n.formFeed = 12] = "formFeed", n[n.tab = 9] = "tab";
227
- })(Q || (Q = {})), new Array(20).fill(0).map((n, l) => " ".repeat(l));
228
- var N2 = 200;
229
- new Array(N2).fill(0).map((n, l) => `
230
- ` + " ".repeat(l)), new Array(N2).fill(0).map((n, l) => "\r" + " ".repeat(l)), new Array(N2).fill(0).map((n, l) => `\r
231
- ` + " ".repeat(l)), new Array(N2).fill(0).map((n, l) => `
232
- ` + " ".repeat(l)), new Array(N2).fill(0).map((n, l) => "\r" + " ".repeat(l)), new Array(N2).fill(0).map((n, l) => `\r
233
- ` + " ".repeat(l));
234
- var U;
235
- (function(n) {
236
- n.DEFAULT = { allowTrailingComma: false };
237
- })(U || (U = {}));
238
- function S(n, l = [], g = U.DEFAULT) {
239
- let e = null, u = [];
240
- const p = [];
241
- function k(o) {
242
- Array.isArray(u) ? u.push(o) : e !== null && (u[e] = o);
243
- }
244
- __name(k, "k");
245
- return P(n, { onObjectBegin: /* @__PURE__ */ __name(() => {
246
- const o = {};
247
- k(o), p.push(u), u = o, e = null;
248
- }, "onObjectBegin"), onObjectProperty: /* @__PURE__ */ __name((o) => {
249
- e = o;
250
- }, "onObjectProperty"), onObjectEnd: /* @__PURE__ */ __name(() => {
251
- u = p.pop();
252
- }, "onObjectEnd"), onArrayBegin: /* @__PURE__ */ __name(() => {
253
- const o = [];
254
- k(o), p.push(u), u = o, e = null;
255
- }, "onArrayBegin"), onArrayEnd: /* @__PURE__ */ __name(() => {
256
- u = p.pop();
257
- }, "onArrayEnd"), onLiteralValue: k, onError: /* @__PURE__ */ __name((o, O, B) => {
258
- l.push({ error: o, offset: O, length: B });
259
- }, "onError") }, g), u[0];
260
- }
261
- __name(S, "S");
262
- function P(n, l, g = U.DEFAULT) {
263
- const e = $(n, false), u = [];
264
- let p = 0;
265
- function k(f) {
266
- return f ? () => p === 0 && f(e.getTokenOffset(), e.getTokenLength(), e.getTokenStartLine(), e.getTokenStartCharacter()) : () => true;
267
- }
268
- __name(k, "k");
269
- function A(f) {
270
- return f ? (m) => p === 0 && f(m, e.getTokenOffset(), e.getTokenLength(), e.getTokenStartLine(), e.getTokenStartCharacter()) : () => true;
271
- }
272
- __name(A, "A");
273
- function o(f) {
274
- return f ? (m) => p === 0 && f(m, e.getTokenOffset(), e.getTokenLength(), e.getTokenStartLine(), e.getTokenStartCharacter(), () => u.slice()) : () => true;
275
- }
276
- __name(o, "o");
277
- function O(f) {
278
- return f ? () => {
279
- p > 0 ? p++ : f(e.getTokenOffset(), e.getTokenLength(), e.getTokenStartLine(), e.getTokenStartCharacter(), () => u.slice()) === false && (p = 1);
280
- } : () => true;
281
- }
282
- __name(O, "O");
283
- function B(f) {
284
- return f ? () => {
285
- p > 0 && p--, p === 0 && f(e.getTokenOffset(), e.getTokenLength(), e.getTokenStartLine(), e.getTokenStartCharacter());
286
- } : () => true;
287
- }
288
- __name(B, "B");
289
- const b = O(l.onObjectBegin), I = o(l.onObjectProperty), V = B(l.onObjectEnd), F = O(l.onArrayBegin), j = B(l.onArrayEnd), w = o(l.onLiteralValue), v = A(l.onSeparator), E = k(l.onComment), i = A(l.onError), T = g && g.disallowComments, s = g && g.allowTrailingComma;
290
- function c() {
291
- for (; ; ) {
292
- const f = e.scan();
293
- switch (e.getTokenError()) {
294
- case 4:
295
- t(14);
296
- break;
297
- case 5:
298
- t(15);
299
- break;
300
- case 3:
301
- t(13);
302
- break;
303
- case 1:
304
- T || t(11);
305
- break;
306
- case 2:
307
- t(12);
308
- break;
309
- case 6:
310
- t(16);
311
- break;
312
- }
313
- switch (f) {
314
- case 12:
315
- case 13:
316
- T ? t(10) : E();
317
- break;
318
- case 16:
319
- t(1);
320
- break;
321
- case 15:
322
- case 14:
323
- break;
324
- default:
325
- return f;
326
- }
327
- }
328
- }
329
- __name(c, "c");
330
- function t(f, m = [], y = []) {
331
- if (i(f), m.length + y.length > 0) {
332
- let _ = e.getToken();
333
- for (; _ !== 17; ) {
334
- if (m.indexOf(_) !== -1) {
335
- c();
336
- break;
337
- } else if (y.indexOf(_) !== -1) break;
338
- _ = c();
339
- }
340
- }
341
- }
342
- __name(t, "t");
343
- function D(f) {
344
- const m = e.getTokenValue();
345
- return f ? w(m) : (I(m), u.push(m)), c(), true;
346
- }
347
- __name(D, "D");
348
- function G() {
349
- switch (e.getToken()) {
350
- case 11:
351
- const f = e.getTokenValue();
352
- let m = Number(f);
353
- isNaN(m) && (t(2), m = 0), w(m);
354
- break;
355
- case 7:
356
- w(null);
357
- break;
358
- case 8:
359
- w(true);
360
- break;
361
- case 9:
362
- w(false);
363
- break;
364
- default:
365
- return false;
366
- }
367
- return c(), true;
368
- }
369
- __name(G, "G");
370
- function M() {
371
- return e.getToken() !== 10 ? (t(3, [], [2, 5]), false) : (D(false), e.getToken() === 6 ? (v(":"), c(), a() || t(4, [], [2, 5])) : t(5, [], [2, 5]), u.pop(), true);
372
- }
373
- __name(M, "M");
374
- function X() {
375
- b(), c();
376
- let f = false;
377
- for (; e.getToken() !== 2 && e.getToken() !== 17; ) {
378
- if (e.getToken() === 5) {
379
- if (f || t(4, [], []), v(","), c(), e.getToken() === 2 && s) break;
380
- } else f && t(6, [], []);
381
- M() || t(4, [], [2, 5]), f = true;
382
- }
383
- return V(), e.getToken() !== 2 ? t(7, [2], []) : c(), true;
384
- }
385
- __name(X, "X");
386
- function Y() {
387
- F(), c();
388
- let f = true, m = false;
389
- for (; e.getToken() !== 4 && e.getToken() !== 17; ) {
390
- if (e.getToken() === 5) {
391
- if (m || t(4, [], []), v(","), c(), e.getToken() === 4 && s) break;
392
- } else m && t(6, [], []);
393
- f ? (u.push(0), f = false) : u[u.length - 1]++, a() || t(4, [], [4, 5]), m = true;
394
- }
395
- return j(), f || u.pop(), e.getToken() !== 4 ? t(8, [4], []) : c(), true;
396
- }
397
- __name(Y, "Y");
398
- function a() {
399
- switch (e.getToken()) {
400
- case 3:
401
- return Y();
402
- case 1:
403
- return X();
404
- case 10:
405
- return D(true);
406
- default:
407
- return G();
408
- }
409
- }
410
- __name(a, "a");
411
- return c(), e.getToken() === 17 ? g.allowEmptyContent ? true : (t(4, [], []), false) : a() ? (e.getToken() !== 17 && t(9, [], []), true) : (t(4, [], []), false);
412
- }
413
- __name(P, "P");
414
- var W;
415
- (function(n) {
416
- n[n.None = 0] = "None", n[n.UnexpectedEndOfComment = 1] = "UnexpectedEndOfComment", n[n.UnexpectedEndOfString = 2] = "UnexpectedEndOfString", n[n.UnexpectedEndOfNumber = 3] = "UnexpectedEndOfNumber", n[n.InvalidUnicode = 4] = "InvalidUnicode", n[n.InvalidEscapeCharacter = 5] = "InvalidEscapeCharacter", n[n.InvalidCharacter = 6] = "InvalidCharacter";
417
- })(W || (W = {}));
418
- var H;
419
- (function(n) {
420
- n[n.OpenBraceToken = 1] = "OpenBraceToken", n[n.CloseBraceToken = 2] = "CloseBraceToken", n[n.OpenBracketToken = 3] = "OpenBracketToken", n[n.CloseBracketToken = 4] = "CloseBracketToken", n[n.CommaToken = 5] = "CommaToken", n[n.ColonToken = 6] = "ColonToken", n[n.NullKeyword = 7] = "NullKeyword", n[n.TrueKeyword = 8] = "TrueKeyword", n[n.FalseKeyword = 9] = "FalseKeyword", n[n.StringLiteral = 10] = "StringLiteral", n[n.NumericLiteral = 11] = "NumericLiteral", n[n.LineCommentTrivia = 12] = "LineCommentTrivia", n[n.BlockCommentTrivia = 13] = "BlockCommentTrivia", n[n.LineBreakTrivia = 14] = "LineBreakTrivia", n[n.Trivia = 15] = "Trivia", n[n.Unknown = 16] = "Unknown", n[n.EOF = 17] = "EOF";
421
- })(H || (H = {}));
422
- var K = S;
423
- var q;
424
- (function(n) {
425
- n[n.InvalidSymbol = 1] = "InvalidSymbol", n[n.InvalidNumberFormat = 2] = "InvalidNumberFormat", n[n.PropertyNameExpected = 3] = "PropertyNameExpected", n[n.ValueExpected = 4] = "ValueExpected", n[n.ColonExpected = 5] = "ColonExpected", n[n.CommaExpected = 6] = "CommaExpected", n[n.CloseBraceExpected = 7] = "CloseBraceExpected", n[n.CloseBracketExpected = 8] = "CloseBracketExpected", n[n.EndOfFileExpected = 9] = "EndOfFileExpected", n[n.InvalidCommentToken = 10] = "InvalidCommentToken", n[n.UnexpectedEndOfComment = 11] = "UnexpectedEndOfComment", n[n.UnexpectedEndOfString = 12] = "UnexpectedEndOfString", n[n.UnexpectedEndOfNumber = 13] = "UnexpectedEndOfNumber", n[n.InvalidUnicode = 14] = "InvalidUnicode", n[n.InvalidEscapeCharacter = 15] = "InvalidEscapeCharacter", n[n.InvalidCharacter = 16] = "InvalidCharacter";
426
- })(q || (q = {}));
427
- function x(n, l) {
428
- const g = JSON.parse(n, l?.reviver);
429
- return N(n, g, l), g;
430
- }
431
- __name(x, "x");
432
- function z(n, l) {
433
- const g = C(n, l), e = JSON.stringify(n, l?.replacer, g.indent);
434
- return g.whitespace.start + e + g.whitespace.end;
435
- }
436
- __name(z, "z");
437
- function h(n, l) {
438
- const g = K(n, l?.errors, l);
439
- return N(n, g, l), g;
440
- }
441
- __name(h, "h");
442
- function d(n, l) {
443
- return z(n, l);
444
- }
445
- __name(d, "d");
446
-
447
- export {
448
- x,
449
- h,
450
- d
451
- };
@@ -1,49 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
8
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
9
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
10
- }) : x)(function(x) {
11
- if (typeof require !== "undefined") return require.apply(this, arguments);
12
- throw Error('Dynamic require of "' + x + '" is not supported');
13
- });
14
- var __esm = (fn, res) => function __init() {
15
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
16
- };
17
- var __commonJS = (cb, mod) => function __require2() {
18
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
19
- };
20
- var __copyProps = (to, from, except, desc) => {
21
- if (from && typeof from === "object" || typeof from === "function") {
22
- for (let key of __getOwnPropNames(from))
23
- if (!__hasOwnProp.call(to, key) && key !== except)
24
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
25
- }
26
- return to;
27
- };
28
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
29
- // If the importer is in node compatibility mode or this is not an ESM
30
- // file that has been converted to a CommonJS file using a Babel-
31
- // compatible transform (i.e. "__esModule" has not been set), then set
32
- // "default" to the CommonJS "module.exports" for node compatibility.
33
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
34
- mod
35
- ));
36
-
37
- // ../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.49.1_@types+node@22.10.7__@swc+core@1.7.26_@swc+helpers_ekim6y52mwpq6ssxiprcp44dam/node_modules/tsup/assets/cjs_shims.js
38
- var init_cjs_shims = __esm({
39
- "../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.49.1_@types+node@22.10.7__@swc+core@1.7.26_@swc+helpers_ekim6y52mwpq6ssxiprcp44dam/node_modules/tsup/assets/cjs_shims.js"() {
40
- }
41
- });
42
-
43
-
44
-
45
-
46
-
47
-
48
-
49
- exports.__name = __name; exports.__require = __require; exports.__commonJS = __commonJS; exports.__toESM = __toESM; exports.init_cjs_shims = init_cjs_shims;