bippy 0.3.13 → 0.3.14

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 (50) hide show
  1. package/LICENSE +1 -1
  2. package/dist/chunk-DWy1uDak.cjs +47 -0
  3. package/dist/core-BOYfIZ0s.d.cts +293 -0
  4. package/dist/core-C6nHUfhm.cjs +1164 -0
  5. package/dist/core-CmL25iLV.d.ts +293 -0
  6. package/dist/core-DTE079zz.js +744 -0
  7. package/dist/core.cjs +79 -286
  8. package/dist/core.d.cts +2 -221
  9. package/dist/core.d.ts +2 -221
  10. package/dist/core.js +11 -2
  11. package/dist/experiments/inspect.cjs +1109 -1400
  12. package/dist/experiments/inspect.d.cts +12 -10
  13. package/dist/experiments/inspect.d.ts +12 -10
  14. package/dist/experiments/inspect.js +1101 -1385
  15. package/dist/index-BtBZHVmz.d.cts +1 -0
  16. package/dist/index-D0E78WnU.d.ts +1 -0
  17. package/dist/index.cjs +80 -287
  18. package/dist/index.d.cts +3 -5
  19. package/dist/index.d.ts +3 -5
  20. package/dist/index.iife.js +9 -0
  21. package/dist/index.js +12 -3
  22. package/dist/jsx-dev-runtime.cjs +25 -33
  23. package/dist/jsx-dev-runtime.d.cts +7 -6
  24. package/dist/jsx-dev-runtime.d.ts +7 -6
  25. package/dist/jsx-dev-runtime.js +24 -28
  26. package/dist/jsx-runtime.cjs +16 -12
  27. package/dist/jsx-runtime.d.cts +3 -3
  28. package/dist/jsx-runtime.d.ts +3 -3
  29. package/dist/jsx-runtime.js +12 -4
  30. package/dist/source-BEL1nkP1.cjs +2429 -0
  31. package/dist/source-XJPX_wAG.js +2437 -0
  32. package/dist/source.cjs +84 -300
  33. package/dist/source.d.cts +8 -10
  34. package/dist/source.d.ts +8 -10
  35. package/dist/source.iife.js +14 -0
  36. package/dist/source.js +13 -4
  37. package/dist/src-Cm5n_5v3.cjs +14 -0
  38. package/dist/{chunk-H6ZLR634.js → src-Urb5JDZq.js} +5 -4
  39. package/package.json +6 -7
  40. package/dist/chunk-3DXHQSXK.js +0 -788
  41. package/dist/chunk-4N6XEHJD.cjs +0 -859
  42. package/dist/chunk-AQ674A4M.cjs +0 -38
  43. package/dist/chunk-EPG3GO3H.js +0 -35
  44. package/dist/chunk-FUZZZTS6.js +0 -2255
  45. package/dist/chunk-NKMRHYKS.cjs +0 -2259
  46. package/dist/chunk-TGUPYBYL.cjs +0 -15
  47. package/dist/index.global.js +0 -9
  48. package/dist/jsx-runtime-KafG0Y8O.d.cts +0 -72
  49. package/dist/jsx-runtime-KafG0Y8O.d.ts +0 -72
  50. package/dist/source.global.js +0 -9
@@ -0,0 +1,2429 @@
1
+ /**
2
+ * @license bippy
3
+ *
4
+ * Copyright (c) Aiden Bai
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+ const require_chunk = require('./chunk-DWy1uDak.cjs');
10
+ const require_core = require('./core-C6nHUfhm.cjs');
11
+
12
+ //#region ../../node_modules/.pnpm/error-stack-parser-es@1.0.5/node_modules/error-stack-parser-es/dist/lite.mjs
13
+ const CHROME_IE_STACK_REGEXP = /^\s*at .*(\S+:\d+|\(native\))/m;
14
+ const SAFARI_NATIVE_CODE_REGEXP = /^(eval@)?(\[native code\])?$/;
15
+ function parseStack(stackString, options) {
16
+ if (stackString.match(CHROME_IE_STACK_REGEXP)) return parseV8OrIeString(stackString, options);
17
+ else return parseFFOrSafariString(stackString, options);
18
+ }
19
+ function extractLocation(urlLike) {
20
+ if (!urlLike.includes(":")) return [
21
+ urlLike,
22
+ void 0,
23
+ void 0
24
+ ];
25
+ const regExp = /(.+?)(?::(\d+))?(?::(\d+))?$/;
26
+ const parts = regExp.exec(urlLike.replace(/[()]/g, ""));
27
+ return [
28
+ parts[1],
29
+ parts[2] || void 0,
30
+ parts[3] || void 0
31
+ ];
32
+ }
33
+ function applySlice(lines, options) {
34
+ if (options && options.slice != null) {
35
+ if (Array.isArray(options.slice)) return lines.slice(options.slice[0], options.slice[1]);
36
+ return lines.slice(0, options.slice);
37
+ }
38
+ return lines;
39
+ }
40
+ function parseV8OrIeString(stack, options) {
41
+ const filtered = applySlice(stack.split("\n").filter((line) => {
42
+ return !!line.match(CHROME_IE_STACK_REGEXP);
43
+ }), options);
44
+ return filtered.map((line) => {
45
+ if (line.includes("(eval ")) line = line.replace(/eval code/g, "eval").replace(/(\(eval at [^()]*)|(,.*$)/g, "");
46
+ let sanitizedLine = line.replace(/^\s+/, "").replace(/\(eval code/g, "(").replace(/^.*?\s+/, "");
47
+ const location = sanitizedLine.match(/ (\(.+\)$)/);
48
+ sanitizedLine = location ? sanitizedLine.replace(location[0], "") : sanitizedLine;
49
+ const locationParts = extractLocation(location ? location[1] : sanitizedLine);
50
+ const functionName = location && sanitizedLine || void 0;
51
+ const fileName = ["eval", "<anonymous>"].includes(locationParts[0]) ? void 0 : locationParts[0];
52
+ return {
53
+ function: functionName,
54
+ file: fileName,
55
+ line: locationParts[1] ? +locationParts[1] : void 0,
56
+ col: locationParts[2] ? +locationParts[2] : void 0,
57
+ raw: line
58
+ };
59
+ });
60
+ }
61
+ function parseFFOrSafariString(stack, options) {
62
+ const filtered = applySlice(stack.split("\n").filter((line) => {
63
+ return !line.match(SAFARI_NATIVE_CODE_REGEXP);
64
+ }), options);
65
+ return filtered.map((line) => {
66
+ if (line.includes(" > eval")) line = line.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, ":$1");
67
+ if (!line.includes("@") && !line.includes(":")) return { function: line };
68
+ else {
69
+ const functionNameRegex = /(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/;
70
+ const matches = line.match(functionNameRegex);
71
+ const functionName = matches && matches[1] ? matches[1] : void 0;
72
+ const locationParts = extractLocation(line.replace(functionNameRegex, ""));
73
+ return {
74
+ function: functionName,
75
+ file: locationParts[0],
76
+ line: locationParts[1] ? +locationParts[1] : void 0,
77
+ col: locationParts[2] ? +locationParts[2] : void 0,
78
+ raw: line
79
+ };
80
+ }
81
+ });
82
+ }
83
+
84
+ //#endregion
85
+ //#region ../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/base64.js
86
+ var require_base64 = require_chunk.__commonJS({ "../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/base64.js"(exports) {
87
+ var intToCharMap = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");
88
+ /**
89
+ * Encode an integer in the range of 0 to 63 to a single base 64 digit.
90
+ */
91
+ exports.encode = function(number) {
92
+ if (0 <= number && number < intToCharMap.length) return intToCharMap[number];
93
+ throw new TypeError("Must be between 0 and 63: " + number);
94
+ };
95
+ /**
96
+ * Decode a single base 64 character code digit to an integer. Returns -1 on
97
+ * failure.
98
+ */
99
+ exports.decode = function(charCode) {
100
+ var bigA = 65;
101
+ var bigZ = 90;
102
+ var littleA = 97;
103
+ var littleZ = 122;
104
+ var zero = 48;
105
+ var nine = 57;
106
+ var plus = 43;
107
+ var slash = 47;
108
+ var littleOffset = 26;
109
+ var numberOffset = 52;
110
+ if (bigA <= charCode && charCode <= bigZ) return charCode - bigA;
111
+ if (littleA <= charCode && charCode <= littleZ) return charCode - littleA + littleOffset;
112
+ if (zero <= charCode && charCode <= nine) return charCode - zero + numberOffset;
113
+ if (charCode == plus) return 62;
114
+ if (charCode == slash) return 63;
115
+ return -1;
116
+ };
117
+ } });
118
+
119
+ //#endregion
120
+ //#region ../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/base64-vlq.js
121
+ var require_base64_vlq = require_chunk.__commonJS({ "../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/base64-vlq.js"(exports) {
122
+ var base64 = require_base64();
123
+ var VLQ_BASE_SHIFT = 5;
124
+ var VLQ_BASE = 1 << VLQ_BASE_SHIFT;
125
+ var VLQ_BASE_MASK = VLQ_BASE - 1;
126
+ var VLQ_CONTINUATION_BIT = VLQ_BASE;
127
+ /**
128
+ * Converts from a two-complement value to a value where the sign bit is
129
+ * placed in the least significant bit. For example, as decimals:
130
+ * 1 becomes 2 (10 binary), -1 becomes 3 (11 binary)
131
+ * 2 becomes 4 (100 binary), -2 becomes 5 (101 binary)
132
+ */
133
+ function toVLQSigned(aValue) {
134
+ return aValue < 0 ? (-aValue << 1) + 1 : (aValue << 1) + 0;
135
+ }
136
+ /**
137
+ * Converts to a two-complement value from a value where the sign bit is
138
+ * placed in the least significant bit. For example, as decimals:
139
+ * 2 (10 binary) becomes 1, 3 (11 binary) becomes -1
140
+ * 4 (100 binary) becomes 2, 5 (101 binary) becomes -2
141
+ */
142
+ function fromVLQSigned(aValue) {
143
+ var isNegative = (aValue & 1) === 1;
144
+ var shifted = aValue >> 1;
145
+ return isNegative ? -shifted : shifted;
146
+ }
147
+ /**
148
+ * Returns the base 64 VLQ encoded value.
149
+ */
150
+ exports.encode = function base64VLQ_encode(aValue) {
151
+ var encoded = "";
152
+ var digit;
153
+ var vlq = toVLQSigned(aValue);
154
+ do {
155
+ digit = vlq & VLQ_BASE_MASK;
156
+ vlq >>>= VLQ_BASE_SHIFT;
157
+ if (vlq > 0) digit |= VLQ_CONTINUATION_BIT;
158
+ encoded += base64.encode(digit);
159
+ } while (vlq > 0);
160
+ return encoded;
161
+ };
162
+ /**
163
+ * Decodes the next base 64 VLQ value from the given string and returns the
164
+ * value and the rest of the string via the out parameter.
165
+ */
166
+ exports.decode = function base64VLQ_decode(aStr, aIndex, aOutParam) {
167
+ var strLen = aStr.length;
168
+ var result = 0;
169
+ var shift = 0;
170
+ var continuation, digit;
171
+ do {
172
+ if (aIndex >= strLen) throw new Error("Expected more digits in base 64 VLQ value.");
173
+ digit = base64.decode(aStr.charCodeAt(aIndex++));
174
+ if (digit === -1) throw new Error("Invalid base64 digit: " + aStr.charAt(aIndex - 1));
175
+ continuation = !!(digit & VLQ_CONTINUATION_BIT);
176
+ digit &= VLQ_BASE_MASK;
177
+ result = result + (digit << shift);
178
+ shift += VLQ_BASE_SHIFT;
179
+ } while (continuation);
180
+ aOutParam.value = fromVLQSigned(result);
181
+ aOutParam.rest = aIndex;
182
+ };
183
+ } });
184
+
185
+ //#endregion
186
+ //#region ../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/util.js
187
+ var require_util = require_chunk.__commonJS({ "../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/util.js"(exports) {
188
+ /**
189
+ * This is a helper function for getting values from parameter/options
190
+ * objects.
191
+ *
192
+ * @param args The object we are extracting values from
193
+ * @param name The name of the property we are getting.
194
+ * @param defaultValue An optional value to return if the property is missing
195
+ * from the object. If this is not specified and the property is missing, an
196
+ * error will be thrown.
197
+ */
198
+ function getArg(aArgs, aName, aDefaultValue) {
199
+ if (aName in aArgs) return aArgs[aName];
200
+ else if (arguments.length === 3) return aDefaultValue;
201
+ else throw new Error("\"" + aName + "\" is a required argument.");
202
+ }
203
+ exports.getArg = getArg;
204
+ var urlRegexp = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/;
205
+ var dataUrlRegexp = /^data:.+\,.+$/;
206
+ function urlParse(aUrl) {
207
+ var match = aUrl.match(urlRegexp);
208
+ if (!match) return null;
209
+ return {
210
+ scheme: match[1],
211
+ auth: match[2],
212
+ host: match[3],
213
+ port: match[4],
214
+ path: match[5]
215
+ };
216
+ }
217
+ exports.urlParse = urlParse;
218
+ function urlGenerate(aParsedUrl) {
219
+ var url = "";
220
+ if (aParsedUrl.scheme) url += aParsedUrl.scheme + ":";
221
+ url += "//";
222
+ if (aParsedUrl.auth) url += aParsedUrl.auth + "@";
223
+ if (aParsedUrl.host) url += aParsedUrl.host;
224
+ if (aParsedUrl.port) url += ":" + aParsedUrl.port;
225
+ if (aParsedUrl.path) url += aParsedUrl.path;
226
+ return url;
227
+ }
228
+ exports.urlGenerate = urlGenerate;
229
+ var MAX_CACHED_INPUTS = 32;
230
+ /**
231
+ * Takes some function `f(input) -> result` and returns a memoized version of
232
+ * `f`.
233
+ *
234
+ * We keep at most `MAX_CACHED_INPUTS` memoized results of `f` alive. The
235
+ * memoization is a dumb-simple, linear least-recently-used cache.
236
+ */
237
+ function lruMemoize(f) {
238
+ var cache = [];
239
+ return function(input) {
240
+ for (var i = 0; i < cache.length; i++) if (cache[i].input === input) {
241
+ var temp = cache[0];
242
+ cache[0] = cache[i];
243
+ cache[i] = temp;
244
+ return cache[0].result;
245
+ }
246
+ var result = f(input);
247
+ cache.unshift({
248
+ input,
249
+ result
250
+ });
251
+ if (cache.length > MAX_CACHED_INPUTS) cache.pop();
252
+ return result;
253
+ };
254
+ }
255
+ /**
256
+ * Normalizes a path, or the path portion of a URL:
257
+ *
258
+ * - Replaces consecutive slashes with one slash.
259
+ * - Removes unnecessary '.' parts.
260
+ * - Removes unnecessary '<dir>/..' parts.
261
+ *
262
+ * Based on code in the Node.js 'path' core module.
263
+ *
264
+ * @param aPath The path or url to normalize.
265
+ */
266
+ var normalize = lruMemoize(function normalize$1(aPath) {
267
+ var path = aPath;
268
+ var url = urlParse(aPath);
269
+ if (url) {
270
+ if (!url.path) return aPath;
271
+ path = url.path;
272
+ }
273
+ var isAbsolute = exports.isAbsolute(path);
274
+ var parts = [];
275
+ var start = 0;
276
+ var i = 0;
277
+ while (true) {
278
+ start = i;
279
+ i = path.indexOf("/", start);
280
+ if (i === -1) {
281
+ parts.push(path.slice(start));
282
+ break;
283
+ } else {
284
+ parts.push(path.slice(start, i));
285
+ while (i < path.length && path[i] === "/") i++;
286
+ }
287
+ }
288
+ for (var part, up = 0, i = parts.length - 1; i >= 0; i--) {
289
+ part = parts[i];
290
+ if (part === ".") parts.splice(i, 1);
291
+ else if (part === "..") up++;
292
+ else if (up > 0) if (part === "") {
293
+ parts.splice(i + 1, up);
294
+ up = 0;
295
+ } else {
296
+ parts.splice(i, 2);
297
+ up--;
298
+ }
299
+ }
300
+ path = parts.join("/");
301
+ if (path === "") path = isAbsolute ? "/" : ".";
302
+ if (url) {
303
+ url.path = path;
304
+ return urlGenerate(url);
305
+ }
306
+ return path;
307
+ });
308
+ exports.normalize = normalize;
309
+ /**
310
+ * Joins two paths/URLs.
311
+ *
312
+ * @param aRoot The root path or URL.
313
+ * @param aPath The path or URL to be joined with the root.
314
+ *
315
+ * - If aPath is a URL or a data URI, aPath is returned, unless aPath is a
316
+ * scheme-relative URL: Then the scheme of aRoot, if any, is prepended
317
+ * first.
318
+ * - Otherwise aPath is a path. If aRoot is a URL, then its path portion
319
+ * is updated with the result and aRoot is returned. Otherwise the result
320
+ * is returned.
321
+ * - If aPath is absolute, the result is aPath.
322
+ * - Otherwise the two paths are joined with a slash.
323
+ * - Joining for example 'http://' and 'www.example.com' is also supported.
324
+ */
325
+ function join(aRoot, aPath) {
326
+ if (aRoot === "") aRoot = ".";
327
+ if (aPath === "") aPath = ".";
328
+ var aPathUrl = urlParse(aPath);
329
+ var aRootUrl = urlParse(aRoot);
330
+ if (aRootUrl) aRoot = aRootUrl.path || "/";
331
+ if (aPathUrl && !aPathUrl.scheme) {
332
+ if (aRootUrl) aPathUrl.scheme = aRootUrl.scheme;
333
+ return urlGenerate(aPathUrl);
334
+ }
335
+ if (aPathUrl || aPath.match(dataUrlRegexp)) return aPath;
336
+ if (aRootUrl && !aRootUrl.host && !aRootUrl.path) {
337
+ aRootUrl.host = aPath;
338
+ return urlGenerate(aRootUrl);
339
+ }
340
+ var joined = aPath.charAt(0) === "/" ? aPath : normalize(aRoot.replace(/\/+$/, "") + "/" + aPath);
341
+ if (aRootUrl) {
342
+ aRootUrl.path = joined;
343
+ return urlGenerate(aRootUrl);
344
+ }
345
+ return joined;
346
+ }
347
+ exports.join = join;
348
+ exports.isAbsolute = function(aPath) {
349
+ return aPath.charAt(0) === "/" || urlRegexp.test(aPath);
350
+ };
351
+ /**
352
+ * Make a path relative to a URL or another path.
353
+ *
354
+ * @param aRoot The root path or URL.
355
+ * @param aPath The path or URL to be made relative to aRoot.
356
+ */
357
+ function relative(aRoot, aPath) {
358
+ if (aRoot === "") aRoot = ".";
359
+ aRoot = aRoot.replace(/\/$/, "");
360
+ var level = 0;
361
+ while (aPath.indexOf(aRoot + "/") !== 0) {
362
+ var index = aRoot.lastIndexOf("/");
363
+ if (index < 0) return aPath;
364
+ aRoot = aRoot.slice(0, index);
365
+ if (aRoot.match(/^([^\/]+:\/)?\/*$/)) return aPath;
366
+ ++level;
367
+ }
368
+ return Array(level + 1).join("../") + aPath.substr(aRoot.length + 1);
369
+ }
370
+ exports.relative = relative;
371
+ var supportsNullProto = function() {
372
+ var obj = Object.create(null);
373
+ return !("__proto__" in obj);
374
+ }();
375
+ function identity(s) {
376
+ return s;
377
+ }
378
+ /**
379
+ * Because behavior goes wacky when you set `__proto__` on objects, we
380
+ * have to prefix all the strings in our set with an arbitrary character.
381
+ *
382
+ * See https://github.com/mozilla/source-map/pull/31 and
383
+ * https://github.com/mozilla/source-map/issues/30
384
+ *
385
+ * @param String aStr
386
+ */
387
+ function toSetString(aStr) {
388
+ if (isProtoString(aStr)) return "$" + aStr;
389
+ return aStr;
390
+ }
391
+ exports.toSetString = supportsNullProto ? identity : toSetString;
392
+ function fromSetString(aStr) {
393
+ if (isProtoString(aStr)) return aStr.slice(1);
394
+ return aStr;
395
+ }
396
+ exports.fromSetString = supportsNullProto ? identity : fromSetString;
397
+ function isProtoString(s) {
398
+ if (!s) return false;
399
+ var length = s.length;
400
+ if (length < 9) return false;
401
+ if (s.charCodeAt(length - 1) !== 95 || s.charCodeAt(length - 2) !== 95 || s.charCodeAt(length - 3) !== 111 || s.charCodeAt(length - 4) !== 116 || s.charCodeAt(length - 5) !== 111 || s.charCodeAt(length - 6) !== 114 || s.charCodeAt(length - 7) !== 112 || s.charCodeAt(length - 8) !== 95 || s.charCodeAt(length - 9) !== 95) return false;
402
+ for (var i = length - 10; i >= 0; i--) if (s.charCodeAt(i) !== 36) return false;
403
+ return true;
404
+ }
405
+ /**
406
+ * Comparator between two mappings where the original positions are compared.
407
+ *
408
+ * Optionally pass in `true` as `onlyCompareGenerated` to consider two
409
+ * mappings with the same original source/line/column, but different generated
410
+ * line and column the same. Useful when searching for a mapping with a
411
+ * stubbed out mapping.
412
+ */
413
+ function compareByOriginalPositions(mappingA, mappingB, onlyCompareOriginal) {
414
+ var cmp = strcmp(mappingA.source, mappingB.source);
415
+ if (cmp !== 0) return cmp;
416
+ cmp = mappingA.originalLine - mappingB.originalLine;
417
+ if (cmp !== 0) return cmp;
418
+ cmp = mappingA.originalColumn - mappingB.originalColumn;
419
+ if (cmp !== 0 || onlyCompareOriginal) return cmp;
420
+ cmp = mappingA.generatedColumn - mappingB.generatedColumn;
421
+ if (cmp !== 0) return cmp;
422
+ cmp = mappingA.generatedLine - mappingB.generatedLine;
423
+ if (cmp !== 0) return cmp;
424
+ return strcmp(mappingA.name, mappingB.name);
425
+ }
426
+ exports.compareByOriginalPositions = compareByOriginalPositions;
427
+ function compareByOriginalPositionsNoSource(mappingA, mappingB, onlyCompareOriginal) {
428
+ var cmp;
429
+ cmp = mappingA.originalLine - mappingB.originalLine;
430
+ if (cmp !== 0) return cmp;
431
+ cmp = mappingA.originalColumn - mappingB.originalColumn;
432
+ if (cmp !== 0 || onlyCompareOriginal) return cmp;
433
+ cmp = mappingA.generatedColumn - mappingB.generatedColumn;
434
+ if (cmp !== 0) return cmp;
435
+ cmp = mappingA.generatedLine - mappingB.generatedLine;
436
+ if (cmp !== 0) return cmp;
437
+ return strcmp(mappingA.name, mappingB.name);
438
+ }
439
+ exports.compareByOriginalPositionsNoSource = compareByOriginalPositionsNoSource;
440
+ /**
441
+ * Comparator between two mappings with deflated source and name indices where
442
+ * the generated positions are compared.
443
+ *
444
+ * Optionally pass in `true` as `onlyCompareGenerated` to consider two
445
+ * mappings with the same generated line and column, but different
446
+ * source/name/original line and column the same. Useful when searching for a
447
+ * mapping with a stubbed out mapping.
448
+ */
449
+ function compareByGeneratedPositionsDeflated(mappingA, mappingB, onlyCompareGenerated) {
450
+ var cmp = mappingA.generatedLine - mappingB.generatedLine;
451
+ if (cmp !== 0) return cmp;
452
+ cmp = mappingA.generatedColumn - mappingB.generatedColumn;
453
+ if (cmp !== 0 || onlyCompareGenerated) return cmp;
454
+ cmp = strcmp(mappingA.source, mappingB.source);
455
+ if (cmp !== 0) return cmp;
456
+ cmp = mappingA.originalLine - mappingB.originalLine;
457
+ if (cmp !== 0) return cmp;
458
+ cmp = mappingA.originalColumn - mappingB.originalColumn;
459
+ if (cmp !== 0) return cmp;
460
+ return strcmp(mappingA.name, mappingB.name);
461
+ }
462
+ exports.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated;
463
+ function compareByGeneratedPositionsDeflatedNoLine(mappingA, mappingB, onlyCompareGenerated) {
464
+ var cmp = mappingA.generatedColumn - mappingB.generatedColumn;
465
+ if (cmp !== 0 || onlyCompareGenerated) return cmp;
466
+ cmp = strcmp(mappingA.source, mappingB.source);
467
+ if (cmp !== 0) return cmp;
468
+ cmp = mappingA.originalLine - mappingB.originalLine;
469
+ if (cmp !== 0) return cmp;
470
+ cmp = mappingA.originalColumn - mappingB.originalColumn;
471
+ if (cmp !== 0) return cmp;
472
+ return strcmp(mappingA.name, mappingB.name);
473
+ }
474
+ exports.compareByGeneratedPositionsDeflatedNoLine = compareByGeneratedPositionsDeflatedNoLine;
475
+ function strcmp(aStr1, aStr2) {
476
+ if (aStr1 === aStr2) return 0;
477
+ if (aStr1 === null) return 1;
478
+ if (aStr2 === null) return -1;
479
+ if (aStr1 > aStr2) return 1;
480
+ return -1;
481
+ }
482
+ /**
483
+ * Comparator between two mappings with inflated source and name strings where
484
+ * the generated positions are compared.
485
+ */
486
+ function compareByGeneratedPositionsInflated(mappingA, mappingB) {
487
+ var cmp = mappingA.generatedLine - mappingB.generatedLine;
488
+ if (cmp !== 0) return cmp;
489
+ cmp = mappingA.generatedColumn - mappingB.generatedColumn;
490
+ if (cmp !== 0) return cmp;
491
+ cmp = strcmp(mappingA.source, mappingB.source);
492
+ if (cmp !== 0) return cmp;
493
+ cmp = mappingA.originalLine - mappingB.originalLine;
494
+ if (cmp !== 0) return cmp;
495
+ cmp = mappingA.originalColumn - mappingB.originalColumn;
496
+ if (cmp !== 0) return cmp;
497
+ return strcmp(mappingA.name, mappingB.name);
498
+ }
499
+ exports.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated;
500
+ /**
501
+ * Strip any JSON XSSI avoidance prefix from the string (as documented
502
+ * in the source maps specification), and then parse the string as
503
+ * JSON.
504
+ */
505
+ function parseSourceMapInput(str) {
506
+ return JSON.parse(str.replace(/^\)]}'[^\n]*\n/, ""));
507
+ }
508
+ exports.parseSourceMapInput = parseSourceMapInput;
509
+ /**
510
+ * Compute the URL of a source given the the source root, the source's
511
+ * URL, and the source map's URL.
512
+ */
513
+ function computeSourceURL(sourceRoot, sourceURL, sourceMapURL) {
514
+ sourceURL = sourceURL || "";
515
+ if (sourceRoot) {
516
+ if (sourceRoot[sourceRoot.length - 1] !== "/" && sourceURL[0] !== "/") sourceRoot += "/";
517
+ sourceURL = sourceRoot + sourceURL;
518
+ }
519
+ if (sourceMapURL) {
520
+ var parsed = urlParse(sourceMapURL);
521
+ if (!parsed) throw new Error("sourceMapURL could not be parsed");
522
+ if (parsed.path) {
523
+ var index = parsed.path.lastIndexOf("/");
524
+ if (index >= 0) parsed.path = parsed.path.substring(0, index + 1);
525
+ }
526
+ sourceURL = join(urlGenerate(parsed), sourceURL);
527
+ }
528
+ return normalize(sourceURL);
529
+ }
530
+ exports.computeSourceURL = computeSourceURL;
531
+ } });
532
+
533
+ //#endregion
534
+ //#region ../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/array-set.js
535
+ var require_array_set = require_chunk.__commonJS({ "../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/array-set.js"(exports) {
536
+ var util$4 = require_util();
537
+ var has = Object.prototype.hasOwnProperty;
538
+ var hasNativeMap = typeof Map !== "undefined";
539
+ /**
540
+ * A data structure which is a combination of an array and a set. Adding a new
541
+ * member is O(1), testing for membership is O(1), and finding the index of an
542
+ * element is O(1). Removing elements from the set is not supported. Only
543
+ * strings are supported for membership.
544
+ */
545
+ function ArraySet$2() {
546
+ this._array = [];
547
+ this._set = hasNativeMap ? new Map() : Object.create(null);
548
+ }
549
+ /**
550
+ * Static method for creating ArraySet instances from an existing array.
551
+ */
552
+ ArraySet$2.fromArray = function ArraySet_fromArray(aArray, aAllowDuplicates) {
553
+ var set = new ArraySet$2();
554
+ for (var i = 0, len = aArray.length; i < len; i++) set.add(aArray[i], aAllowDuplicates);
555
+ return set;
556
+ };
557
+ /**
558
+ * Return how many unique items are in this ArraySet. If duplicates have been
559
+ * added, than those do not count towards the size.
560
+ *
561
+ * @returns Number
562
+ */
563
+ ArraySet$2.prototype.size = function ArraySet_size() {
564
+ return hasNativeMap ? this._set.size : Object.getOwnPropertyNames(this._set).length;
565
+ };
566
+ /**
567
+ * Add the given string to this set.
568
+ *
569
+ * @param String aStr
570
+ */
571
+ ArraySet$2.prototype.add = function ArraySet_add(aStr, aAllowDuplicates) {
572
+ var sStr = hasNativeMap ? aStr : util$4.toSetString(aStr);
573
+ var isDuplicate = hasNativeMap ? this.has(aStr) : has.call(this._set, sStr);
574
+ var idx = this._array.length;
575
+ if (!isDuplicate || aAllowDuplicates) this._array.push(aStr);
576
+ if (!isDuplicate) if (hasNativeMap) this._set.set(aStr, idx);
577
+ else this._set[sStr] = idx;
578
+ };
579
+ /**
580
+ * Is the given string a member of this set?
581
+ *
582
+ * @param String aStr
583
+ */
584
+ ArraySet$2.prototype.has = function ArraySet_has(aStr) {
585
+ if (hasNativeMap) return this._set.has(aStr);
586
+ else {
587
+ var sStr = util$4.toSetString(aStr);
588
+ return has.call(this._set, sStr);
589
+ }
590
+ };
591
+ /**
592
+ * What is the index of the given string in the array?
593
+ *
594
+ * @param String aStr
595
+ */
596
+ ArraySet$2.prototype.indexOf = function ArraySet_indexOf(aStr) {
597
+ if (hasNativeMap) {
598
+ var idx = this._set.get(aStr);
599
+ if (idx >= 0) return idx;
600
+ } else {
601
+ var sStr = util$4.toSetString(aStr);
602
+ if (has.call(this._set, sStr)) return this._set[sStr];
603
+ }
604
+ throw new Error("\"" + aStr + "\" is not in the set.");
605
+ };
606
+ /**
607
+ * What is the element at the given index?
608
+ *
609
+ * @param Number aIdx
610
+ */
611
+ ArraySet$2.prototype.at = function ArraySet_at(aIdx) {
612
+ if (aIdx >= 0 && aIdx < this._array.length) return this._array[aIdx];
613
+ throw new Error("No element indexed by " + aIdx);
614
+ };
615
+ /**
616
+ * Returns the array representation of this set (which has the proper indices
617
+ * indicated by indexOf). Note that this is a copy of the internal array used
618
+ * for storing the members so that no one can mess with internal state.
619
+ */
620
+ ArraySet$2.prototype.toArray = function ArraySet_toArray() {
621
+ return this._array.slice();
622
+ };
623
+ exports.ArraySet = ArraySet$2;
624
+ } });
625
+
626
+ //#endregion
627
+ //#region ../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/mapping-list.js
628
+ var require_mapping_list = require_chunk.__commonJS({ "../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/mapping-list.js"(exports) {
629
+ var util$3 = require_util();
630
+ /**
631
+ * Determine whether mappingB is after mappingA with respect to generated
632
+ * position.
633
+ */
634
+ function generatedPositionAfter(mappingA, mappingB) {
635
+ var lineA = mappingA.generatedLine;
636
+ var lineB = mappingB.generatedLine;
637
+ var columnA = mappingA.generatedColumn;
638
+ var columnB = mappingB.generatedColumn;
639
+ return lineB > lineA || lineB == lineA && columnB >= columnA || util$3.compareByGeneratedPositionsInflated(mappingA, mappingB) <= 0;
640
+ }
641
+ /**
642
+ * A data structure to provide a sorted view of accumulated mappings in a
643
+ * performance conscious manner. It trades a neglibable overhead in general
644
+ * case for a large speedup in case of mappings being added in order.
645
+ */
646
+ function MappingList$1() {
647
+ this._array = [];
648
+ this._sorted = true;
649
+ this._last = {
650
+ generatedLine: -1,
651
+ generatedColumn: 0
652
+ };
653
+ }
654
+ /**
655
+ * Iterate through internal items. This method takes the same arguments that
656
+ * `Array.prototype.forEach` takes.
657
+ *
658
+ * NOTE: The order of the mappings is NOT guaranteed.
659
+ */
660
+ MappingList$1.prototype.unsortedForEach = function MappingList_forEach(aCallback, aThisArg) {
661
+ this._array.forEach(aCallback, aThisArg);
662
+ };
663
+ /**
664
+ * Add the given source mapping.
665
+ *
666
+ * @param Object aMapping
667
+ */
668
+ MappingList$1.prototype.add = function MappingList_add(aMapping) {
669
+ if (generatedPositionAfter(this._last, aMapping)) {
670
+ this._last = aMapping;
671
+ this._array.push(aMapping);
672
+ } else {
673
+ this._sorted = false;
674
+ this._array.push(aMapping);
675
+ }
676
+ };
677
+ /**
678
+ * Returns the flat, sorted array of mappings. The mappings are sorted by
679
+ * generated position.
680
+ *
681
+ * WARNING: This method returns internal data without copying, for
682
+ * performance. The return value must NOT be mutated, and should be treated as
683
+ * an immutable borrow. If you want to take ownership, you must make your own
684
+ * copy.
685
+ */
686
+ MappingList$1.prototype.toArray = function MappingList_toArray() {
687
+ if (!this._sorted) {
688
+ this._array.sort(util$3.compareByGeneratedPositionsInflated);
689
+ this._sorted = true;
690
+ }
691
+ return this._array;
692
+ };
693
+ exports.MappingList = MappingList$1;
694
+ } });
695
+
696
+ //#endregion
697
+ //#region ../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-generator.js
698
+ var require_source_map_generator = require_chunk.__commonJS({ "../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-generator.js"(exports) {
699
+ var base64VLQ$1 = require_base64_vlq();
700
+ var util$2 = require_util();
701
+ var ArraySet$1 = require_array_set().ArraySet;
702
+ var MappingList = require_mapping_list().MappingList;
703
+ /**
704
+ * An instance of the SourceMapGenerator represents a source map which is
705
+ * being built incrementally. You may pass an object with the following
706
+ * properties:
707
+ *
708
+ * - file: The filename of the generated source.
709
+ * - sourceRoot: A root for all relative URLs in this source map.
710
+ */
711
+ function SourceMapGenerator$1(aArgs) {
712
+ if (!aArgs) aArgs = {};
713
+ this._file = util$2.getArg(aArgs, "file", null);
714
+ this._sourceRoot = util$2.getArg(aArgs, "sourceRoot", null);
715
+ this._skipValidation = util$2.getArg(aArgs, "skipValidation", false);
716
+ this._ignoreInvalidMapping = util$2.getArg(aArgs, "ignoreInvalidMapping", false);
717
+ this._sources = new ArraySet$1();
718
+ this._names = new ArraySet$1();
719
+ this._mappings = new MappingList();
720
+ this._sourcesContents = null;
721
+ }
722
+ SourceMapGenerator$1.prototype._version = 3;
723
+ /**
724
+ * Creates a new SourceMapGenerator based on a SourceMapConsumer
725
+ *
726
+ * @param aSourceMapConsumer The SourceMap.
727
+ */
728
+ SourceMapGenerator$1.fromSourceMap = function SourceMapGenerator_fromSourceMap(aSourceMapConsumer, generatorOps) {
729
+ var sourceRoot = aSourceMapConsumer.sourceRoot;
730
+ var generator = new SourceMapGenerator$1(Object.assign(generatorOps || {}, {
731
+ file: aSourceMapConsumer.file,
732
+ sourceRoot
733
+ }));
734
+ aSourceMapConsumer.eachMapping(function(mapping) {
735
+ var newMapping = { generated: {
736
+ line: mapping.generatedLine,
737
+ column: mapping.generatedColumn
738
+ } };
739
+ if (mapping.source != null) {
740
+ newMapping.source = mapping.source;
741
+ if (sourceRoot != null) newMapping.source = util$2.relative(sourceRoot, newMapping.source);
742
+ newMapping.original = {
743
+ line: mapping.originalLine,
744
+ column: mapping.originalColumn
745
+ };
746
+ if (mapping.name != null) newMapping.name = mapping.name;
747
+ }
748
+ generator.addMapping(newMapping);
749
+ });
750
+ aSourceMapConsumer.sources.forEach(function(sourceFile) {
751
+ var sourceRelative = sourceFile;
752
+ if (sourceRoot !== null) sourceRelative = util$2.relative(sourceRoot, sourceFile);
753
+ if (!generator._sources.has(sourceRelative)) generator._sources.add(sourceRelative);
754
+ var content = aSourceMapConsumer.sourceContentFor(sourceFile);
755
+ if (content != null) generator.setSourceContent(sourceFile, content);
756
+ });
757
+ return generator;
758
+ };
759
+ /**
760
+ * Add a single mapping from original source line and column to the generated
761
+ * source's line and column for this source map being created. The mapping
762
+ * object should have the following properties:
763
+ *
764
+ * - generated: An object with the generated line and column positions.
765
+ * - original: An object with the original line and column positions.
766
+ * - source: The original source file (relative to the sourceRoot).
767
+ * - name: An optional original token name for this mapping.
768
+ */
769
+ SourceMapGenerator$1.prototype.addMapping = function SourceMapGenerator_addMapping(aArgs) {
770
+ var generated = util$2.getArg(aArgs, "generated");
771
+ var original = util$2.getArg(aArgs, "original", null);
772
+ var source = util$2.getArg(aArgs, "source", null);
773
+ var name = util$2.getArg(aArgs, "name", null);
774
+ if (!this._skipValidation) {
775
+ if (this._validateMapping(generated, original, source, name) === false) return;
776
+ }
777
+ if (source != null) {
778
+ source = String(source);
779
+ if (!this._sources.has(source)) this._sources.add(source);
780
+ }
781
+ if (name != null) {
782
+ name = String(name);
783
+ if (!this._names.has(name)) this._names.add(name);
784
+ }
785
+ this._mappings.add({
786
+ generatedLine: generated.line,
787
+ generatedColumn: generated.column,
788
+ originalLine: original != null && original.line,
789
+ originalColumn: original != null && original.column,
790
+ source,
791
+ name
792
+ });
793
+ };
794
+ /**
795
+ * Set the source content for a source file.
796
+ */
797
+ SourceMapGenerator$1.prototype.setSourceContent = function SourceMapGenerator_setSourceContent(aSourceFile, aSourceContent) {
798
+ var source = aSourceFile;
799
+ if (this._sourceRoot != null) source = util$2.relative(this._sourceRoot, source);
800
+ if (aSourceContent != null) {
801
+ if (!this._sourcesContents) this._sourcesContents = Object.create(null);
802
+ this._sourcesContents[util$2.toSetString(source)] = aSourceContent;
803
+ } else if (this._sourcesContents) {
804
+ delete this._sourcesContents[util$2.toSetString(source)];
805
+ if (Object.keys(this._sourcesContents).length === 0) this._sourcesContents = null;
806
+ }
807
+ };
808
+ /**
809
+ * Applies the mappings of a sub-source-map for a specific source file to the
810
+ * source map being generated. Each mapping to the supplied source file is
811
+ * rewritten using the supplied source map. Note: The resolution for the
812
+ * resulting mappings is the minimium of this map and the supplied map.
813
+ *
814
+ * @param aSourceMapConsumer The source map to be applied.
815
+ * @param aSourceFile Optional. The filename of the source file.
816
+ * If omitted, SourceMapConsumer's file property will be used.
817
+ * @param aSourceMapPath Optional. The dirname of the path to the source map
818
+ * to be applied. If relative, it is relative to the SourceMapConsumer.
819
+ * This parameter is needed when the two source maps aren't in the same
820
+ * directory, and the source map to be applied contains relative source
821
+ * paths. If so, those relative source paths need to be rewritten
822
+ * relative to the SourceMapGenerator.
823
+ */
824
+ SourceMapGenerator$1.prototype.applySourceMap = function SourceMapGenerator_applySourceMap(aSourceMapConsumer, aSourceFile, aSourceMapPath) {
825
+ var sourceFile = aSourceFile;
826
+ if (aSourceFile == null) {
827
+ if (aSourceMapConsumer.file == null) throw new Error("SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's \"file\" property. Both were omitted.");
828
+ sourceFile = aSourceMapConsumer.file;
829
+ }
830
+ var sourceRoot = this._sourceRoot;
831
+ if (sourceRoot != null) sourceFile = util$2.relative(sourceRoot, sourceFile);
832
+ var newSources = new ArraySet$1();
833
+ var newNames = new ArraySet$1();
834
+ this._mappings.unsortedForEach(function(mapping) {
835
+ if (mapping.source === sourceFile && mapping.originalLine != null) {
836
+ var original = aSourceMapConsumer.originalPositionFor({
837
+ line: mapping.originalLine,
838
+ column: mapping.originalColumn
839
+ });
840
+ if (original.source != null) {
841
+ mapping.source = original.source;
842
+ if (aSourceMapPath != null) mapping.source = util$2.join(aSourceMapPath, mapping.source);
843
+ if (sourceRoot != null) mapping.source = util$2.relative(sourceRoot, mapping.source);
844
+ mapping.originalLine = original.line;
845
+ mapping.originalColumn = original.column;
846
+ if (original.name != null) mapping.name = original.name;
847
+ }
848
+ }
849
+ var source = mapping.source;
850
+ if (source != null && !newSources.has(source)) newSources.add(source);
851
+ var name = mapping.name;
852
+ if (name != null && !newNames.has(name)) newNames.add(name);
853
+ }, this);
854
+ this._sources = newSources;
855
+ this._names = newNames;
856
+ aSourceMapConsumer.sources.forEach(function(sourceFile$1) {
857
+ var content = aSourceMapConsumer.sourceContentFor(sourceFile$1);
858
+ if (content != null) {
859
+ if (aSourceMapPath != null) sourceFile$1 = util$2.join(aSourceMapPath, sourceFile$1);
860
+ if (sourceRoot != null) sourceFile$1 = util$2.relative(sourceRoot, sourceFile$1);
861
+ this.setSourceContent(sourceFile$1, content);
862
+ }
863
+ }, this);
864
+ };
865
+ /**
866
+ * A mapping can have one of the three levels of data:
867
+ *
868
+ * 1. Just the generated position.
869
+ * 2. The Generated position, original position, and original source.
870
+ * 3. Generated and original position, original source, as well as a name
871
+ * token.
872
+ *
873
+ * To maintain consistency, we validate that any new mapping being added falls
874
+ * in to one of these categories.
875
+ */
876
+ SourceMapGenerator$1.prototype._validateMapping = function SourceMapGenerator_validateMapping(aGenerated, aOriginal, aSource, aName) {
877
+ if (aOriginal && typeof aOriginal.line !== "number" && typeof aOriginal.column !== "number") {
878
+ var message = "original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";
879
+ if (this._ignoreInvalidMapping) {
880
+ if (typeof console !== "undefined" && console.warn) console.warn(message);
881
+ return false;
882
+ } else throw new Error(message);
883
+ }
884
+ if (aGenerated && "line" in aGenerated && "column" in aGenerated && aGenerated.line > 0 && aGenerated.column >= 0 && !aOriginal && !aSource && !aName) return;
885
+ else if (aGenerated && "line" in aGenerated && "column" in aGenerated && aOriginal && "line" in aOriginal && "column" in aOriginal && aGenerated.line > 0 && aGenerated.column >= 0 && aOriginal.line > 0 && aOriginal.column >= 0 && aSource) return;
886
+ else {
887
+ var message = "Invalid mapping: " + JSON.stringify({
888
+ generated: aGenerated,
889
+ source: aSource,
890
+ original: aOriginal,
891
+ name: aName
892
+ });
893
+ if (this._ignoreInvalidMapping) {
894
+ if (typeof console !== "undefined" && console.warn) console.warn(message);
895
+ return false;
896
+ } else throw new Error(message);
897
+ }
898
+ };
899
+ /**
900
+ * Serialize the accumulated mappings in to the stream of base 64 VLQs
901
+ * specified by the source map format.
902
+ */
903
+ SourceMapGenerator$1.prototype._serializeMappings = function SourceMapGenerator_serializeMappings() {
904
+ var previousGeneratedColumn = 0;
905
+ var previousGeneratedLine = 1;
906
+ var previousOriginalColumn = 0;
907
+ var previousOriginalLine = 0;
908
+ var previousName = 0;
909
+ var previousSource = 0;
910
+ var result = "";
911
+ var next;
912
+ var mapping;
913
+ var nameIdx;
914
+ var sourceIdx;
915
+ var mappings = this._mappings.toArray();
916
+ for (var i = 0, len = mappings.length; i < len; i++) {
917
+ mapping = mappings[i];
918
+ next = "";
919
+ if (mapping.generatedLine !== previousGeneratedLine) {
920
+ previousGeneratedColumn = 0;
921
+ while (mapping.generatedLine !== previousGeneratedLine) {
922
+ next += ";";
923
+ previousGeneratedLine++;
924
+ }
925
+ } else if (i > 0) {
926
+ if (!util$2.compareByGeneratedPositionsInflated(mapping, mappings[i - 1])) continue;
927
+ next += ",";
928
+ }
929
+ next += base64VLQ$1.encode(mapping.generatedColumn - previousGeneratedColumn);
930
+ previousGeneratedColumn = mapping.generatedColumn;
931
+ if (mapping.source != null) {
932
+ sourceIdx = this._sources.indexOf(mapping.source);
933
+ next += base64VLQ$1.encode(sourceIdx - previousSource);
934
+ previousSource = sourceIdx;
935
+ next += base64VLQ$1.encode(mapping.originalLine - 1 - previousOriginalLine);
936
+ previousOriginalLine = mapping.originalLine - 1;
937
+ next += base64VLQ$1.encode(mapping.originalColumn - previousOriginalColumn);
938
+ previousOriginalColumn = mapping.originalColumn;
939
+ if (mapping.name != null) {
940
+ nameIdx = this._names.indexOf(mapping.name);
941
+ next += base64VLQ$1.encode(nameIdx - previousName);
942
+ previousName = nameIdx;
943
+ }
944
+ }
945
+ result += next;
946
+ }
947
+ return result;
948
+ };
949
+ SourceMapGenerator$1.prototype._generateSourcesContent = function SourceMapGenerator_generateSourcesContent(aSources, aSourceRoot) {
950
+ return aSources.map(function(source) {
951
+ if (!this._sourcesContents) return null;
952
+ if (aSourceRoot != null) source = util$2.relative(aSourceRoot, source);
953
+ var key = util$2.toSetString(source);
954
+ return Object.prototype.hasOwnProperty.call(this._sourcesContents, key) ? this._sourcesContents[key] : null;
955
+ }, this);
956
+ };
957
+ /**
958
+ * Externalize the source map.
959
+ */
960
+ SourceMapGenerator$1.prototype.toJSON = function SourceMapGenerator_toJSON() {
961
+ var map = {
962
+ version: this._version,
963
+ sources: this._sources.toArray(),
964
+ names: this._names.toArray(),
965
+ mappings: this._serializeMappings()
966
+ };
967
+ if (this._file != null) map.file = this._file;
968
+ if (this._sourceRoot != null) map.sourceRoot = this._sourceRoot;
969
+ if (this._sourcesContents) map.sourcesContent = this._generateSourcesContent(map.sources, map.sourceRoot);
970
+ return map;
971
+ };
972
+ /**
973
+ * Render the source map being generated to a string.
974
+ */
975
+ SourceMapGenerator$1.prototype.toString = function SourceMapGenerator_toString() {
976
+ return JSON.stringify(this.toJSON());
977
+ };
978
+ exports.SourceMapGenerator = SourceMapGenerator$1;
979
+ } });
980
+
981
+ //#endregion
982
+ //#region ../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/binary-search.js
983
+ var require_binary_search = require_chunk.__commonJS({ "../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/binary-search.js"(exports) {
984
+ exports.GREATEST_LOWER_BOUND = 1;
985
+ exports.LEAST_UPPER_BOUND = 2;
986
+ /**
987
+ * Recursive implementation of binary search.
988
+ *
989
+ * @param aLow Indices here and lower do not contain the needle.
990
+ * @param aHigh Indices here and higher do not contain the needle.
991
+ * @param aNeedle The element being searched for.
992
+ * @param aHaystack The non-empty array being searched.
993
+ * @param aCompare Function which takes two elements and returns -1, 0, or 1.
994
+ * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or
995
+ * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the
996
+ * closest element that is smaller than or greater than the one we are
997
+ * searching for, respectively, if the exact element cannot be found.
998
+ */
999
+ function recursiveSearch(aLow, aHigh, aNeedle, aHaystack, aCompare, aBias) {
1000
+ var mid = Math.floor((aHigh - aLow) / 2) + aLow;
1001
+ var cmp = aCompare(aNeedle, aHaystack[mid], true);
1002
+ if (cmp === 0) return mid;
1003
+ else if (cmp > 0) {
1004
+ if (aHigh - mid > 1) return recursiveSearch(mid, aHigh, aNeedle, aHaystack, aCompare, aBias);
1005
+ if (aBias == exports.LEAST_UPPER_BOUND) return aHigh < aHaystack.length ? aHigh : -1;
1006
+ else return mid;
1007
+ } else {
1008
+ if (mid - aLow > 1) return recursiveSearch(aLow, mid, aNeedle, aHaystack, aCompare, aBias);
1009
+ if (aBias == exports.LEAST_UPPER_BOUND) return mid;
1010
+ else return aLow < 0 ? -1 : aLow;
1011
+ }
1012
+ }
1013
+ /**
1014
+ * This is an implementation of binary search which will always try and return
1015
+ * the index of the closest element if there is no exact hit. This is because
1016
+ * mappings between original and generated line/col pairs are single points,
1017
+ * and there is an implicit region between each of them, so a miss just means
1018
+ * that you aren't on the very start of a region.
1019
+ *
1020
+ * @param aNeedle The element you are looking for.
1021
+ * @param aHaystack The array that is being searched.
1022
+ * @param aCompare A function which takes the needle and an element in the
1023
+ * array and returns -1, 0, or 1 depending on whether the needle is less
1024
+ * than, equal to, or greater than the element, respectively.
1025
+ * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or
1026
+ * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the
1027
+ * closest element that is smaller than or greater than the one we are
1028
+ * searching for, respectively, if the exact element cannot be found.
1029
+ * Defaults to 'binarySearch.GREATEST_LOWER_BOUND'.
1030
+ */
1031
+ exports.search = function search(aNeedle, aHaystack, aCompare, aBias) {
1032
+ if (aHaystack.length === 0) return -1;
1033
+ var index = recursiveSearch(-1, aHaystack.length, aNeedle, aHaystack, aCompare, aBias || exports.GREATEST_LOWER_BOUND);
1034
+ if (index < 0) return -1;
1035
+ while (index - 1 >= 0) {
1036
+ if (aCompare(aHaystack[index], aHaystack[index - 1], true) !== 0) break;
1037
+ --index;
1038
+ }
1039
+ return index;
1040
+ };
1041
+ } });
1042
+
1043
+ //#endregion
1044
+ //#region ../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/quick-sort.js
1045
+ var require_quick_sort = require_chunk.__commonJS({ "../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/quick-sort.js"(exports) {
1046
+ function SortTemplate(comparator) {
1047
+ /**
1048
+ * Swap the elements indexed by `x` and `y` in the array `ary`.
1049
+ *
1050
+ * @param {Array} ary
1051
+ * The array.
1052
+ * @param {Number} x
1053
+ * The index of the first item.
1054
+ * @param {Number} y
1055
+ * The index of the second item.
1056
+ */
1057
+ function swap(ary, x, y) {
1058
+ var temp = ary[x];
1059
+ ary[x] = ary[y];
1060
+ ary[y] = temp;
1061
+ }
1062
+ /**
1063
+ * Returns a random integer within the range `low .. high` inclusive.
1064
+ *
1065
+ * @param {Number} low
1066
+ * The lower bound on the range.
1067
+ * @param {Number} high
1068
+ * The upper bound on the range.
1069
+ */
1070
+ function randomIntInRange(low, high) {
1071
+ return Math.round(low + Math.random() * (high - low));
1072
+ }
1073
+ /**
1074
+ * The Quick Sort algorithm.
1075
+ *
1076
+ * @param {Array} ary
1077
+ * An array to sort.
1078
+ * @param {function} comparator
1079
+ * Function to use to compare two items.
1080
+ * @param {Number} p
1081
+ * Start index of the array
1082
+ * @param {Number} r
1083
+ * End index of the array
1084
+ */
1085
+ function doQuickSort(ary, comparator$1, p, r) {
1086
+ if (p < r) {
1087
+ var pivotIndex = randomIntInRange(p, r);
1088
+ var i = p - 1;
1089
+ swap(ary, pivotIndex, r);
1090
+ var pivot = ary[r];
1091
+ for (var j = p; j < r; j++) if (comparator$1(ary[j], pivot, false) <= 0) {
1092
+ i += 1;
1093
+ swap(ary, i, j);
1094
+ }
1095
+ swap(ary, i + 1, j);
1096
+ var q = i + 1;
1097
+ doQuickSort(ary, comparator$1, p, q - 1);
1098
+ doQuickSort(ary, comparator$1, q + 1, r);
1099
+ }
1100
+ }
1101
+ return doQuickSort;
1102
+ }
1103
+ function cloneSort(comparator) {
1104
+ let template = SortTemplate.toString();
1105
+ let templateFn = new Function(`return ${template}`)();
1106
+ return templateFn(comparator);
1107
+ }
1108
+ /**
1109
+ * Sort the given array in-place with the given comparator function.
1110
+ *
1111
+ * @param {Array} ary
1112
+ * An array to sort.
1113
+ * @param {function} comparator
1114
+ * Function to use to compare two items.
1115
+ */
1116
+ let sortCache = new WeakMap();
1117
+ exports.quickSort = function(ary, comparator, start = 0) {
1118
+ let doQuickSort = sortCache.get(comparator);
1119
+ if (doQuickSort === void 0) {
1120
+ doQuickSort = cloneSort(comparator);
1121
+ sortCache.set(comparator, doQuickSort);
1122
+ }
1123
+ doQuickSort(ary, comparator, start, ary.length - 1);
1124
+ };
1125
+ } });
1126
+
1127
+ //#endregion
1128
+ //#region ../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-consumer.js
1129
+ var require_source_map_consumer = require_chunk.__commonJS({ "../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-consumer.js"(exports) {
1130
+ var util$1 = require_util();
1131
+ var binarySearch = require_binary_search();
1132
+ var ArraySet = require_array_set().ArraySet;
1133
+ var base64VLQ = require_base64_vlq();
1134
+ var quickSort = require_quick_sort().quickSort;
1135
+ function SourceMapConsumer$1(aSourceMap, aSourceMapURL) {
1136
+ var sourceMap = aSourceMap;
1137
+ if (typeof aSourceMap === "string") sourceMap = util$1.parseSourceMapInput(aSourceMap);
1138
+ return sourceMap.sections != null ? new IndexedSourceMapConsumer(sourceMap, aSourceMapURL) : new BasicSourceMapConsumer(sourceMap, aSourceMapURL);
1139
+ }
1140
+ SourceMapConsumer$1.fromSourceMap = function(aSourceMap, aSourceMapURL) {
1141
+ return BasicSourceMapConsumer.fromSourceMap(aSourceMap, aSourceMapURL);
1142
+ };
1143
+ /**
1144
+ * The version of the source mapping spec that we are consuming.
1145
+ */
1146
+ SourceMapConsumer$1.prototype._version = 3;
1147
+ SourceMapConsumer$1.prototype.__generatedMappings = null;
1148
+ Object.defineProperty(SourceMapConsumer$1.prototype, "_generatedMappings", {
1149
+ configurable: true,
1150
+ enumerable: true,
1151
+ get: function() {
1152
+ if (!this.__generatedMappings) this._parseMappings(this._mappings, this.sourceRoot);
1153
+ return this.__generatedMappings;
1154
+ }
1155
+ });
1156
+ SourceMapConsumer$1.prototype.__originalMappings = null;
1157
+ Object.defineProperty(SourceMapConsumer$1.prototype, "_originalMappings", {
1158
+ configurable: true,
1159
+ enumerable: true,
1160
+ get: function() {
1161
+ if (!this.__originalMappings) this._parseMappings(this._mappings, this.sourceRoot);
1162
+ return this.__originalMappings;
1163
+ }
1164
+ });
1165
+ SourceMapConsumer$1.prototype._charIsMappingSeparator = function SourceMapConsumer_charIsMappingSeparator(aStr, index) {
1166
+ var c = aStr.charAt(index);
1167
+ return c === ";" || c === ",";
1168
+ };
1169
+ /**
1170
+ * Parse the mappings in a string in to a data structure which we can easily
1171
+ * query (the ordered arrays in the `this.__generatedMappings` and
1172
+ * `this.__originalMappings` properties).
1173
+ */
1174
+ SourceMapConsumer$1.prototype._parseMappings = function SourceMapConsumer_parseMappings(aStr, aSourceRoot) {
1175
+ throw new Error("Subclasses must implement _parseMappings");
1176
+ };
1177
+ SourceMapConsumer$1.GENERATED_ORDER = 1;
1178
+ SourceMapConsumer$1.ORIGINAL_ORDER = 2;
1179
+ SourceMapConsumer$1.GREATEST_LOWER_BOUND = 1;
1180
+ SourceMapConsumer$1.LEAST_UPPER_BOUND = 2;
1181
+ /**
1182
+ * Iterate over each mapping between an original source/line/column and a
1183
+ * generated line/column in this source map.
1184
+ *
1185
+ * @param Function aCallback
1186
+ * The function that is called with each mapping.
1187
+ * @param Object aContext
1188
+ * Optional. If specified, this object will be the value of `this` every
1189
+ * time that `aCallback` is called.
1190
+ * @param aOrder
1191
+ * Either `SourceMapConsumer.GENERATED_ORDER` or
1192
+ * `SourceMapConsumer.ORIGINAL_ORDER`. Specifies whether you want to
1193
+ * iterate over the mappings sorted by the generated file's line/column
1194
+ * order or the original's source/line/column order, respectively. Defaults to
1195
+ * `SourceMapConsumer.GENERATED_ORDER`.
1196
+ */
1197
+ SourceMapConsumer$1.prototype.eachMapping = function SourceMapConsumer_eachMapping(aCallback, aContext, aOrder) {
1198
+ var context = aContext || null;
1199
+ var order = aOrder || SourceMapConsumer$1.GENERATED_ORDER;
1200
+ var mappings;
1201
+ switch (order) {
1202
+ case SourceMapConsumer$1.GENERATED_ORDER:
1203
+ mappings = this._generatedMappings;
1204
+ break;
1205
+ case SourceMapConsumer$1.ORIGINAL_ORDER:
1206
+ mappings = this._originalMappings;
1207
+ break;
1208
+ default: throw new Error("Unknown order of iteration.");
1209
+ }
1210
+ var sourceRoot = this.sourceRoot;
1211
+ var boundCallback = aCallback.bind(context);
1212
+ var names = this._names;
1213
+ var sources = this._sources;
1214
+ var sourceMapURL = this._sourceMapURL;
1215
+ for (var i = 0, n = mappings.length; i < n; i++) {
1216
+ var mapping = mappings[i];
1217
+ var source = mapping.source === null ? null : sources.at(mapping.source);
1218
+ if (source !== null) source = util$1.computeSourceURL(sourceRoot, source, sourceMapURL);
1219
+ boundCallback({
1220
+ source,
1221
+ generatedLine: mapping.generatedLine,
1222
+ generatedColumn: mapping.generatedColumn,
1223
+ originalLine: mapping.originalLine,
1224
+ originalColumn: mapping.originalColumn,
1225
+ name: mapping.name === null ? null : names.at(mapping.name)
1226
+ });
1227
+ }
1228
+ };
1229
+ /**
1230
+ * Returns all generated line and column information for the original source,
1231
+ * line, and column provided. If no column is provided, returns all mappings
1232
+ * corresponding to a either the line we are searching for or the next
1233
+ * closest line that has any mappings. Otherwise, returns all mappings
1234
+ * corresponding to the given line and either the column we are searching for
1235
+ * or the next closest column that has any offsets.
1236
+ *
1237
+ * The only argument is an object with the following properties:
1238
+ *
1239
+ * - source: The filename of the original source.
1240
+ * - line: The line number in the original source. The line number is 1-based.
1241
+ * - column: Optional. the column number in the original source.
1242
+ * The column number is 0-based.
1243
+ *
1244
+ * and an array of objects is returned, each with the following properties:
1245
+ *
1246
+ * - line: The line number in the generated source, or null. The
1247
+ * line number is 1-based.
1248
+ * - column: The column number in the generated source, or null.
1249
+ * The column number is 0-based.
1250
+ */
1251
+ SourceMapConsumer$1.prototype.allGeneratedPositionsFor = function SourceMapConsumer_allGeneratedPositionsFor(aArgs) {
1252
+ var line = util$1.getArg(aArgs, "line");
1253
+ var needle = {
1254
+ source: util$1.getArg(aArgs, "source"),
1255
+ originalLine: line,
1256
+ originalColumn: util$1.getArg(aArgs, "column", 0)
1257
+ };
1258
+ needle.source = this._findSourceIndex(needle.source);
1259
+ if (needle.source < 0) return [];
1260
+ var mappings = [];
1261
+ var index = this._findMapping(needle, this._originalMappings, "originalLine", "originalColumn", util$1.compareByOriginalPositions, binarySearch.LEAST_UPPER_BOUND);
1262
+ if (index >= 0) {
1263
+ var mapping = this._originalMappings[index];
1264
+ if (aArgs.column === void 0) {
1265
+ var originalLine = mapping.originalLine;
1266
+ while (mapping && mapping.originalLine === originalLine) {
1267
+ mappings.push({
1268
+ line: util$1.getArg(mapping, "generatedLine", null),
1269
+ column: util$1.getArg(mapping, "generatedColumn", null),
1270
+ lastColumn: util$1.getArg(mapping, "lastGeneratedColumn", null)
1271
+ });
1272
+ mapping = this._originalMappings[++index];
1273
+ }
1274
+ } else {
1275
+ var originalColumn = mapping.originalColumn;
1276
+ while (mapping && mapping.originalLine === line && mapping.originalColumn == originalColumn) {
1277
+ mappings.push({
1278
+ line: util$1.getArg(mapping, "generatedLine", null),
1279
+ column: util$1.getArg(mapping, "generatedColumn", null),
1280
+ lastColumn: util$1.getArg(mapping, "lastGeneratedColumn", null)
1281
+ });
1282
+ mapping = this._originalMappings[++index];
1283
+ }
1284
+ }
1285
+ }
1286
+ return mappings;
1287
+ };
1288
+ exports.SourceMapConsumer = SourceMapConsumer$1;
1289
+ /**
1290
+ * A BasicSourceMapConsumer instance represents a parsed source map which we can
1291
+ * query for information about the original file positions by giving it a file
1292
+ * position in the generated source.
1293
+ *
1294
+ * The first parameter is the raw source map (either as a JSON string, or
1295
+ * already parsed to an object). According to the spec, source maps have the
1296
+ * following attributes:
1297
+ *
1298
+ * - version: Which version of the source map spec this map is following.
1299
+ * - sources: An array of URLs to the original source files.
1300
+ * - names: An array of identifiers which can be referrenced by individual mappings.
1301
+ * - sourceRoot: Optional. The URL root from which all sources are relative.
1302
+ * - sourcesContent: Optional. An array of contents of the original source files.
1303
+ * - mappings: A string of base64 VLQs which contain the actual mappings.
1304
+ * - file: Optional. The generated file this source map is associated with.
1305
+ *
1306
+ * Here is an example source map, taken from the source map spec[0]:
1307
+ *
1308
+ * {
1309
+ * version : 3,
1310
+ * file: "out.js",
1311
+ * sourceRoot : "",
1312
+ * sources: ["foo.js", "bar.js"],
1313
+ * names: ["src", "maps", "are", "fun"],
1314
+ * mappings: "AA,AB;;ABCDE;"
1315
+ * }
1316
+ *
1317
+ * The second parameter, if given, is a string whose value is the URL
1318
+ * at which the source map was found. This URL is used to compute the
1319
+ * sources array.
1320
+ *
1321
+ * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?pli=1#
1322
+ */
1323
+ function BasicSourceMapConsumer(aSourceMap, aSourceMapURL) {
1324
+ var sourceMap = aSourceMap;
1325
+ if (typeof aSourceMap === "string") sourceMap = util$1.parseSourceMapInput(aSourceMap);
1326
+ var version = util$1.getArg(sourceMap, "version");
1327
+ var sources = util$1.getArg(sourceMap, "sources");
1328
+ var names = util$1.getArg(sourceMap, "names", []);
1329
+ var sourceRoot = util$1.getArg(sourceMap, "sourceRoot", null);
1330
+ var sourcesContent = util$1.getArg(sourceMap, "sourcesContent", null);
1331
+ var mappings = util$1.getArg(sourceMap, "mappings");
1332
+ var file = util$1.getArg(sourceMap, "file", null);
1333
+ if (version != this._version) throw new Error("Unsupported version: " + version);
1334
+ if (sourceRoot) sourceRoot = util$1.normalize(sourceRoot);
1335
+ sources = sources.map(String).map(util$1.normalize).map(function(source) {
1336
+ return sourceRoot && util$1.isAbsolute(sourceRoot) && util$1.isAbsolute(source) ? util$1.relative(sourceRoot, source) : source;
1337
+ });
1338
+ this._names = ArraySet.fromArray(names.map(String), true);
1339
+ this._sources = ArraySet.fromArray(sources, true);
1340
+ this._absoluteSources = this._sources.toArray().map(function(s) {
1341
+ return util$1.computeSourceURL(sourceRoot, s, aSourceMapURL);
1342
+ });
1343
+ this.sourceRoot = sourceRoot;
1344
+ this.sourcesContent = sourcesContent;
1345
+ this._mappings = mappings;
1346
+ this._sourceMapURL = aSourceMapURL;
1347
+ this.file = file;
1348
+ }
1349
+ BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer$1.prototype);
1350
+ BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer$1;
1351
+ /**
1352
+ * Utility function to find the index of a source. Returns -1 if not
1353
+ * found.
1354
+ */
1355
+ BasicSourceMapConsumer.prototype._findSourceIndex = function(aSource) {
1356
+ var relativeSource = aSource;
1357
+ if (this.sourceRoot != null) relativeSource = util$1.relative(this.sourceRoot, relativeSource);
1358
+ if (this._sources.has(relativeSource)) return this._sources.indexOf(relativeSource);
1359
+ var i;
1360
+ for (i = 0; i < this._absoluteSources.length; ++i) if (this._absoluteSources[i] == aSource) return i;
1361
+ return -1;
1362
+ };
1363
+ /**
1364
+ * Create a BasicSourceMapConsumer from a SourceMapGenerator.
1365
+ *
1366
+ * @param SourceMapGenerator aSourceMap
1367
+ * The source map that will be consumed.
1368
+ * @param String aSourceMapURL
1369
+ * The URL at which the source map can be found (optional)
1370
+ * @returns BasicSourceMapConsumer
1371
+ */
1372
+ BasicSourceMapConsumer.fromSourceMap = function SourceMapConsumer_fromSourceMap(aSourceMap, aSourceMapURL) {
1373
+ var smc = Object.create(BasicSourceMapConsumer.prototype);
1374
+ var names = smc._names = ArraySet.fromArray(aSourceMap._names.toArray(), true);
1375
+ var sources = smc._sources = ArraySet.fromArray(aSourceMap._sources.toArray(), true);
1376
+ smc.sourceRoot = aSourceMap._sourceRoot;
1377
+ smc.sourcesContent = aSourceMap._generateSourcesContent(smc._sources.toArray(), smc.sourceRoot);
1378
+ smc.file = aSourceMap._file;
1379
+ smc._sourceMapURL = aSourceMapURL;
1380
+ smc._absoluteSources = smc._sources.toArray().map(function(s) {
1381
+ return util$1.computeSourceURL(smc.sourceRoot, s, aSourceMapURL);
1382
+ });
1383
+ var generatedMappings = aSourceMap._mappings.toArray().slice();
1384
+ var destGeneratedMappings = smc.__generatedMappings = [];
1385
+ var destOriginalMappings = smc.__originalMappings = [];
1386
+ for (var i = 0, length = generatedMappings.length; i < length; i++) {
1387
+ var srcMapping = generatedMappings[i];
1388
+ var destMapping = new Mapping();
1389
+ destMapping.generatedLine = srcMapping.generatedLine;
1390
+ destMapping.generatedColumn = srcMapping.generatedColumn;
1391
+ if (srcMapping.source) {
1392
+ destMapping.source = sources.indexOf(srcMapping.source);
1393
+ destMapping.originalLine = srcMapping.originalLine;
1394
+ destMapping.originalColumn = srcMapping.originalColumn;
1395
+ if (srcMapping.name) destMapping.name = names.indexOf(srcMapping.name);
1396
+ destOriginalMappings.push(destMapping);
1397
+ }
1398
+ destGeneratedMappings.push(destMapping);
1399
+ }
1400
+ quickSort(smc.__originalMappings, util$1.compareByOriginalPositions);
1401
+ return smc;
1402
+ };
1403
+ /**
1404
+ * The version of the source mapping spec that we are consuming.
1405
+ */
1406
+ BasicSourceMapConsumer.prototype._version = 3;
1407
+ /**
1408
+ * The list of original sources.
1409
+ */
1410
+ Object.defineProperty(BasicSourceMapConsumer.prototype, "sources", { get: function() {
1411
+ return this._absoluteSources.slice();
1412
+ } });
1413
+ /**
1414
+ * Provide the JIT with a nice shape / hidden class.
1415
+ */
1416
+ function Mapping() {
1417
+ this.generatedLine = 0;
1418
+ this.generatedColumn = 0;
1419
+ this.source = null;
1420
+ this.originalLine = null;
1421
+ this.originalColumn = null;
1422
+ this.name = null;
1423
+ }
1424
+ /**
1425
+ * Parse the mappings in a string in to a data structure which we can easily
1426
+ * query (the ordered arrays in the `this.__generatedMappings` and
1427
+ * `this.__originalMappings` properties).
1428
+ */
1429
+ const compareGenerated = util$1.compareByGeneratedPositionsDeflatedNoLine;
1430
+ function sortGenerated(array, start) {
1431
+ let l = array.length;
1432
+ let n = array.length - start;
1433
+ if (n <= 1) return;
1434
+ else if (n == 2) {
1435
+ let a = array[start];
1436
+ let b = array[start + 1];
1437
+ if (compareGenerated(a, b) > 0) {
1438
+ array[start] = b;
1439
+ array[start + 1] = a;
1440
+ }
1441
+ } else if (n < 20) for (let i = start; i < l; i++) for (let j = i; j > start; j--) {
1442
+ let a = array[j - 1];
1443
+ let b = array[j];
1444
+ if (compareGenerated(a, b) <= 0) break;
1445
+ array[j - 1] = b;
1446
+ array[j] = a;
1447
+ }
1448
+ else quickSort(array, compareGenerated, start);
1449
+ }
1450
+ BasicSourceMapConsumer.prototype._parseMappings = function SourceMapConsumer_parseMappings(aStr, aSourceRoot) {
1451
+ var generatedLine = 1;
1452
+ var previousGeneratedColumn = 0;
1453
+ var previousOriginalLine = 0;
1454
+ var previousOriginalColumn = 0;
1455
+ var previousSource = 0;
1456
+ var previousName = 0;
1457
+ var length = aStr.length;
1458
+ var index = 0;
1459
+ var cachedSegments = {};
1460
+ var temp = {};
1461
+ var originalMappings = [];
1462
+ var generatedMappings = [];
1463
+ var mapping, str, segment, end, value;
1464
+ let subarrayStart = 0;
1465
+ while (index < length) if (aStr.charAt(index) === ";") {
1466
+ generatedLine++;
1467
+ index++;
1468
+ previousGeneratedColumn = 0;
1469
+ sortGenerated(generatedMappings, subarrayStart);
1470
+ subarrayStart = generatedMappings.length;
1471
+ } else if (aStr.charAt(index) === ",") index++;
1472
+ else {
1473
+ mapping = new Mapping();
1474
+ mapping.generatedLine = generatedLine;
1475
+ for (end = index; end < length; end++) if (this._charIsMappingSeparator(aStr, end)) break;
1476
+ str = aStr.slice(index, end);
1477
+ segment = [];
1478
+ while (index < end) {
1479
+ base64VLQ.decode(aStr, index, temp);
1480
+ value = temp.value;
1481
+ index = temp.rest;
1482
+ segment.push(value);
1483
+ }
1484
+ if (segment.length === 2) throw new Error("Found a source, but no line and column");
1485
+ if (segment.length === 3) throw new Error("Found a source and line, but no column");
1486
+ mapping.generatedColumn = previousGeneratedColumn + segment[0];
1487
+ previousGeneratedColumn = mapping.generatedColumn;
1488
+ if (segment.length > 1) {
1489
+ mapping.source = previousSource + segment[1];
1490
+ previousSource += segment[1];
1491
+ mapping.originalLine = previousOriginalLine + segment[2];
1492
+ previousOriginalLine = mapping.originalLine;
1493
+ mapping.originalLine += 1;
1494
+ mapping.originalColumn = previousOriginalColumn + segment[3];
1495
+ previousOriginalColumn = mapping.originalColumn;
1496
+ if (segment.length > 4) {
1497
+ mapping.name = previousName + segment[4];
1498
+ previousName += segment[4];
1499
+ }
1500
+ }
1501
+ generatedMappings.push(mapping);
1502
+ if (typeof mapping.originalLine === "number") {
1503
+ let currentSource = mapping.source;
1504
+ while (originalMappings.length <= currentSource) originalMappings.push(null);
1505
+ if (originalMappings[currentSource] === null) originalMappings[currentSource] = [];
1506
+ originalMappings[currentSource].push(mapping);
1507
+ }
1508
+ }
1509
+ sortGenerated(generatedMappings, subarrayStart);
1510
+ this.__generatedMappings = generatedMappings;
1511
+ for (var i = 0; i < originalMappings.length; i++) if (originalMappings[i] != null) quickSort(originalMappings[i], util$1.compareByOriginalPositionsNoSource);
1512
+ this.__originalMappings = [].concat(...originalMappings);
1513
+ };
1514
+ /**
1515
+ * Find the mapping that best matches the hypothetical "needle" mapping that
1516
+ * we are searching for in the given "haystack" of mappings.
1517
+ */
1518
+ BasicSourceMapConsumer.prototype._findMapping = function SourceMapConsumer_findMapping(aNeedle, aMappings, aLineName, aColumnName, aComparator, aBias) {
1519
+ if (aNeedle[aLineName] <= 0) throw new TypeError("Line must be greater than or equal to 1, got " + aNeedle[aLineName]);
1520
+ if (aNeedle[aColumnName] < 0) throw new TypeError("Column must be greater than or equal to 0, got " + aNeedle[aColumnName]);
1521
+ return binarySearch.search(aNeedle, aMappings, aComparator, aBias);
1522
+ };
1523
+ /**
1524
+ * Compute the last column for each generated mapping. The last column is
1525
+ * inclusive.
1526
+ */
1527
+ BasicSourceMapConsumer.prototype.computeColumnSpans = function SourceMapConsumer_computeColumnSpans() {
1528
+ for (var index = 0; index < this._generatedMappings.length; ++index) {
1529
+ var mapping = this._generatedMappings[index];
1530
+ if (index + 1 < this._generatedMappings.length) {
1531
+ var nextMapping = this._generatedMappings[index + 1];
1532
+ if (mapping.generatedLine === nextMapping.generatedLine) {
1533
+ mapping.lastGeneratedColumn = nextMapping.generatedColumn - 1;
1534
+ continue;
1535
+ }
1536
+ }
1537
+ mapping.lastGeneratedColumn = Infinity;
1538
+ }
1539
+ };
1540
+ /**
1541
+ * Returns the original source, line, and column information for the generated
1542
+ * source's line and column positions provided. The only argument is an object
1543
+ * with the following properties:
1544
+ *
1545
+ * - line: The line number in the generated source. The line number
1546
+ * is 1-based.
1547
+ * - column: The column number in the generated source. The column
1548
+ * number is 0-based.
1549
+ * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or
1550
+ * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the
1551
+ * closest element that is smaller than or greater than the one we are
1552
+ * searching for, respectively, if the exact element cannot be found.
1553
+ * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'.
1554
+ *
1555
+ * and an object is returned with the following properties:
1556
+ *
1557
+ * - source: The original source file, or null.
1558
+ * - line: The line number in the original source, or null. The
1559
+ * line number is 1-based.
1560
+ * - column: The column number in the original source, or null. The
1561
+ * column number is 0-based.
1562
+ * - name: The original identifier, or null.
1563
+ */
1564
+ BasicSourceMapConsumer.prototype.originalPositionFor = function SourceMapConsumer_originalPositionFor(aArgs) {
1565
+ var needle = {
1566
+ generatedLine: util$1.getArg(aArgs, "line"),
1567
+ generatedColumn: util$1.getArg(aArgs, "column")
1568
+ };
1569
+ var index = this._findMapping(needle, this._generatedMappings, "generatedLine", "generatedColumn", util$1.compareByGeneratedPositionsDeflated, util$1.getArg(aArgs, "bias", SourceMapConsumer$1.GREATEST_LOWER_BOUND));
1570
+ if (index >= 0) {
1571
+ var mapping = this._generatedMappings[index];
1572
+ if (mapping.generatedLine === needle.generatedLine) {
1573
+ var source = util$1.getArg(mapping, "source", null);
1574
+ if (source !== null) {
1575
+ source = this._sources.at(source);
1576
+ source = util$1.computeSourceURL(this.sourceRoot, source, this._sourceMapURL);
1577
+ }
1578
+ var name = util$1.getArg(mapping, "name", null);
1579
+ if (name !== null) name = this._names.at(name);
1580
+ return {
1581
+ source,
1582
+ line: util$1.getArg(mapping, "originalLine", null),
1583
+ column: util$1.getArg(mapping, "originalColumn", null),
1584
+ name
1585
+ };
1586
+ }
1587
+ }
1588
+ return {
1589
+ source: null,
1590
+ line: null,
1591
+ column: null,
1592
+ name: null
1593
+ };
1594
+ };
1595
+ /**
1596
+ * Return true if we have the source content for every source in the source
1597
+ * map, false otherwise.
1598
+ */
1599
+ BasicSourceMapConsumer.prototype.hasContentsOfAllSources = function BasicSourceMapConsumer_hasContentsOfAllSources() {
1600
+ if (!this.sourcesContent) return false;
1601
+ return this.sourcesContent.length >= this._sources.size() && !this.sourcesContent.some(function(sc) {
1602
+ return sc == null;
1603
+ });
1604
+ };
1605
+ /**
1606
+ * Returns the original source content. The only argument is the url of the
1607
+ * original source file. Returns null if no original source content is
1608
+ * available.
1609
+ */
1610
+ BasicSourceMapConsumer.prototype.sourceContentFor = function SourceMapConsumer_sourceContentFor(aSource, nullOnMissing) {
1611
+ if (!this.sourcesContent) return null;
1612
+ var index = this._findSourceIndex(aSource);
1613
+ if (index >= 0) return this.sourcesContent[index];
1614
+ var relativeSource = aSource;
1615
+ if (this.sourceRoot != null) relativeSource = util$1.relative(this.sourceRoot, relativeSource);
1616
+ var url;
1617
+ if (this.sourceRoot != null && (url = util$1.urlParse(this.sourceRoot))) {
1618
+ var fileUriAbsPath = relativeSource.replace(/^file:\/\//, "");
1619
+ if (url.scheme == "file" && this._sources.has(fileUriAbsPath)) return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)];
1620
+ if ((!url.path || url.path == "/") && this._sources.has("/" + relativeSource)) return this.sourcesContent[this._sources.indexOf("/" + relativeSource)];
1621
+ }
1622
+ if (nullOnMissing) return null;
1623
+ else throw new Error("\"" + relativeSource + "\" is not in the SourceMap.");
1624
+ };
1625
+ /**
1626
+ * Returns the generated line and column information for the original source,
1627
+ * line, and column positions provided. The only argument is an object with
1628
+ * the following properties:
1629
+ *
1630
+ * - source: The filename of the original source.
1631
+ * - line: The line number in the original source. The line number
1632
+ * is 1-based.
1633
+ * - column: The column number in the original source. The column
1634
+ * number is 0-based.
1635
+ * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or
1636
+ * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the
1637
+ * closest element that is smaller than or greater than the one we are
1638
+ * searching for, respectively, if the exact element cannot be found.
1639
+ * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'.
1640
+ *
1641
+ * and an object is returned with the following properties:
1642
+ *
1643
+ * - line: The line number in the generated source, or null. The
1644
+ * line number is 1-based.
1645
+ * - column: The column number in the generated source, or null.
1646
+ * The column number is 0-based.
1647
+ */
1648
+ BasicSourceMapConsumer.prototype.generatedPositionFor = function SourceMapConsumer_generatedPositionFor(aArgs) {
1649
+ var source = util$1.getArg(aArgs, "source");
1650
+ source = this._findSourceIndex(source);
1651
+ if (source < 0) return {
1652
+ line: null,
1653
+ column: null,
1654
+ lastColumn: null
1655
+ };
1656
+ var needle = {
1657
+ source,
1658
+ originalLine: util$1.getArg(aArgs, "line"),
1659
+ originalColumn: util$1.getArg(aArgs, "column")
1660
+ };
1661
+ var index = this._findMapping(needle, this._originalMappings, "originalLine", "originalColumn", util$1.compareByOriginalPositions, util$1.getArg(aArgs, "bias", SourceMapConsumer$1.GREATEST_LOWER_BOUND));
1662
+ if (index >= 0) {
1663
+ var mapping = this._originalMappings[index];
1664
+ if (mapping.source === needle.source) return {
1665
+ line: util$1.getArg(mapping, "generatedLine", null),
1666
+ column: util$1.getArg(mapping, "generatedColumn", null),
1667
+ lastColumn: util$1.getArg(mapping, "lastGeneratedColumn", null)
1668
+ };
1669
+ }
1670
+ return {
1671
+ line: null,
1672
+ column: null,
1673
+ lastColumn: null
1674
+ };
1675
+ };
1676
+ exports.BasicSourceMapConsumer = BasicSourceMapConsumer;
1677
+ /**
1678
+ * An IndexedSourceMapConsumer instance represents a parsed source map which
1679
+ * we can query for information. It differs from BasicSourceMapConsumer in
1680
+ * that it takes "indexed" source maps (i.e. ones with a "sections" field) as
1681
+ * input.
1682
+ *
1683
+ * The first parameter is a raw source map (either as a JSON string, or already
1684
+ * parsed to an object). According to the spec for indexed source maps, they
1685
+ * have the following attributes:
1686
+ *
1687
+ * - version: Which version of the source map spec this map is following.
1688
+ * - file: Optional. The generated file this source map is associated with.
1689
+ * - sections: A list of section definitions.
1690
+ *
1691
+ * Each value under the "sections" field has two fields:
1692
+ * - offset: The offset into the original specified at which this section
1693
+ * begins to apply, defined as an object with a "line" and "column"
1694
+ * field.
1695
+ * - map: A source map definition. This source map could also be indexed,
1696
+ * but doesn't have to be.
1697
+ *
1698
+ * Instead of the "map" field, it's also possible to have a "url" field
1699
+ * specifying a URL to retrieve a source map from, but that's currently
1700
+ * unsupported.
1701
+ *
1702
+ * Here's an example source map, taken from the source map spec[0], but
1703
+ * modified to omit a section which uses the "url" field.
1704
+ *
1705
+ * {
1706
+ * version : 3,
1707
+ * file: "app.js",
1708
+ * sections: [{
1709
+ * offset: {line:100, column:10},
1710
+ * map: {
1711
+ * version : 3,
1712
+ * file: "section.js",
1713
+ * sources: ["foo.js", "bar.js"],
1714
+ * names: ["src", "maps", "are", "fun"],
1715
+ * mappings: "AAAA,E;;ABCDE;"
1716
+ * }
1717
+ * }],
1718
+ * }
1719
+ *
1720
+ * The second parameter, if given, is a string whose value is the URL
1721
+ * at which the source map was found. This URL is used to compute the
1722
+ * sources array.
1723
+ *
1724
+ * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit#heading=h.535es3xeprgt
1725
+ */
1726
+ function IndexedSourceMapConsumer(aSourceMap, aSourceMapURL) {
1727
+ var sourceMap = aSourceMap;
1728
+ if (typeof aSourceMap === "string") sourceMap = util$1.parseSourceMapInput(aSourceMap);
1729
+ var version = util$1.getArg(sourceMap, "version");
1730
+ var sections = util$1.getArg(sourceMap, "sections");
1731
+ if (version != this._version) throw new Error("Unsupported version: " + version);
1732
+ this._sources = new ArraySet();
1733
+ this._names = new ArraySet();
1734
+ var lastOffset = {
1735
+ line: -1,
1736
+ column: 0
1737
+ };
1738
+ this._sections = sections.map(function(s) {
1739
+ if (s.url) throw new Error("Support for url field in sections not implemented.");
1740
+ var offset = util$1.getArg(s, "offset");
1741
+ var offsetLine = util$1.getArg(offset, "line");
1742
+ var offsetColumn = util$1.getArg(offset, "column");
1743
+ if (offsetLine < lastOffset.line || offsetLine === lastOffset.line && offsetColumn < lastOffset.column) throw new Error("Section offsets must be ordered and non-overlapping.");
1744
+ lastOffset = offset;
1745
+ return {
1746
+ generatedOffset: {
1747
+ generatedLine: offsetLine + 1,
1748
+ generatedColumn: offsetColumn + 1
1749
+ },
1750
+ consumer: new SourceMapConsumer$1(util$1.getArg(s, "map"), aSourceMapURL)
1751
+ };
1752
+ });
1753
+ }
1754
+ IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer$1.prototype);
1755
+ IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer$1;
1756
+ /**
1757
+ * The version of the source mapping spec that we are consuming.
1758
+ */
1759
+ IndexedSourceMapConsumer.prototype._version = 3;
1760
+ /**
1761
+ * The list of original sources.
1762
+ */
1763
+ Object.defineProperty(IndexedSourceMapConsumer.prototype, "sources", { get: function() {
1764
+ var sources = [];
1765
+ for (var i = 0; i < this._sections.length; i++) for (var j = 0; j < this._sections[i].consumer.sources.length; j++) sources.push(this._sections[i].consumer.sources[j]);
1766
+ return sources;
1767
+ } });
1768
+ /**
1769
+ * Returns the original source, line, and column information for the generated
1770
+ * source's line and column positions provided. The only argument is an object
1771
+ * with the following properties:
1772
+ *
1773
+ * - line: The line number in the generated source. The line number
1774
+ * is 1-based.
1775
+ * - column: The column number in the generated source. The column
1776
+ * number is 0-based.
1777
+ *
1778
+ * and an object is returned with the following properties:
1779
+ *
1780
+ * - source: The original source file, or null.
1781
+ * - line: The line number in the original source, or null. The
1782
+ * line number is 1-based.
1783
+ * - column: The column number in the original source, or null. The
1784
+ * column number is 0-based.
1785
+ * - name: The original identifier, or null.
1786
+ */
1787
+ IndexedSourceMapConsumer.prototype.originalPositionFor = function IndexedSourceMapConsumer_originalPositionFor(aArgs) {
1788
+ var needle = {
1789
+ generatedLine: util$1.getArg(aArgs, "line"),
1790
+ generatedColumn: util$1.getArg(aArgs, "column")
1791
+ };
1792
+ var sectionIndex = binarySearch.search(needle, this._sections, function(needle$1, section$1) {
1793
+ var cmp = needle$1.generatedLine - section$1.generatedOffset.generatedLine;
1794
+ if (cmp) return cmp;
1795
+ return needle$1.generatedColumn - section$1.generatedOffset.generatedColumn;
1796
+ });
1797
+ var section = this._sections[sectionIndex];
1798
+ if (!section) return {
1799
+ source: null,
1800
+ line: null,
1801
+ column: null,
1802
+ name: null
1803
+ };
1804
+ return section.consumer.originalPositionFor({
1805
+ line: needle.generatedLine - (section.generatedOffset.generatedLine - 1),
1806
+ column: needle.generatedColumn - (section.generatedOffset.generatedLine === needle.generatedLine ? section.generatedOffset.generatedColumn - 1 : 0),
1807
+ bias: aArgs.bias
1808
+ });
1809
+ };
1810
+ /**
1811
+ * Return true if we have the source content for every source in the source
1812
+ * map, false otherwise.
1813
+ */
1814
+ IndexedSourceMapConsumer.prototype.hasContentsOfAllSources = function IndexedSourceMapConsumer_hasContentsOfAllSources() {
1815
+ return this._sections.every(function(s) {
1816
+ return s.consumer.hasContentsOfAllSources();
1817
+ });
1818
+ };
1819
+ /**
1820
+ * Returns the original source content. The only argument is the url of the
1821
+ * original source file. Returns null if no original source content is
1822
+ * available.
1823
+ */
1824
+ IndexedSourceMapConsumer.prototype.sourceContentFor = function IndexedSourceMapConsumer_sourceContentFor(aSource, nullOnMissing) {
1825
+ for (var i = 0; i < this._sections.length; i++) {
1826
+ var section = this._sections[i];
1827
+ var content = section.consumer.sourceContentFor(aSource, true);
1828
+ if (content || content === "") return content;
1829
+ }
1830
+ if (nullOnMissing) return null;
1831
+ else throw new Error("\"" + aSource + "\" is not in the SourceMap.");
1832
+ };
1833
+ /**
1834
+ * Returns the generated line and column information for the original source,
1835
+ * line, and column positions provided. The only argument is an object with
1836
+ * the following properties:
1837
+ *
1838
+ * - source: The filename of the original source.
1839
+ * - line: The line number in the original source. The line number
1840
+ * is 1-based.
1841
+ * - column: The column number in the original source. The column
1842
+ * number is 0-based.
1843
+ *
1844
+ * and an object is returned with the following properties:
1845
+ *
1846
+ * - line: The line number in the generated source, or null. The
1847
+ * line number is 1-based.
1848
+ * - column: The column number in the generated source, or null.
1849
+ * The column number is 0-based.
1850
+ */
1851
+ IndexedSourceMapConsumer.prototype.generatedPositionFor = function IndexedSourceMapConsumer_generatedPositionFor(aArgs) {
1852
+ for (var i = 0; i < this._sections.length; i++) {
1853
+ var section = this._sections[i];
1854
+ if (section.consumer._findSourceIndex(util$1.getArg(aArgs, "source")) === -1) continue;
1855
+ var generatedPosition = section.consumer.generatedPositionFor(aArgs);
1856
+ if (generatedPosition) {
1857
+ var ret = {
1858
+ line: generatedPosition.line + (section.generatedOffset.generatedLine - 1),
1859
+ column: generatedPosition.column + (section.generatedOffset.generatedLine === generatedPosition.line ? section.generatedOffset.generatedColumn - 1 : 0)
1860
+ };
1861
+ return ret;
1862
+ }
1863
+ }
1864
+ return {
1865
+ line: null,
1866
+ column: null
1867
+ };
1868
+ };
1869
+ /**
1870
+ * Parse the mappings in a string in to a data structure which we can easily
1871
+ * query (the ordered arrays in the `this.__generatedMappings` and
1872
+ * `this.__originalMappings` properties).
1873
+ */
1874
+ IndexedSourceMapConsumer.prototype._parseMappings = function IndexedSourceMapConsumer_parseMappings(aStr, aSourceRoot) {
1875
+ this.__generatedMappings = [];
1876
+ this.__originalMappings = [];
1877
+ for (var i = 0; i < this._sections.length; i++) {
1878
+ var section = this._sections[i];
1879
+ var sectionMappings = section.consumer._generatedMappings;
1880
+ for (var j = 0; j < sectionMappings.length; j++) {
1881
+ var mapping = sectionMappings[j];
1882
+ var source = section.consumer._sources.at(mapping.source);
1883
+ if (source !== null) source = util$1.computeSourceURL(section.consumer.sourceRoot, source, this._sourceMapURL);
1884
+ this._sources.add(source);
1885
+ source = this._sources.indexOf(source);
1886
+ var name = null;
1887
+ if (mapping.name) {
1888
+ name = section.consumer._names.at(mapping.name);
1889
+ this._names.add(name);
1890
+ name = this._names.indexOf(name);
1891
+ }
1892
+ var adjustedMapping = {
1893
+ source,
1894
+ generatedLine: mapping.generatedLine + (section.generatedOffset.generatedLine - 1),
1895
+ generatedColumn: mapping.generatedColumn + (section.generatedOffset.generatedLine === mapping.generatedLine ? section.generatedOffset.generatedColumn - 1 : 0),
1896
+ originalLine: mapping.originalLine,
1897
+ originalColumn: mapping.originalColumn,
1898
+ name
1899
+ };
1900
+ this.__generatedMappings.push(adjustedMapping);
1901
+ if (typeof adjustedMapping.originalLine === "number") this.__originalMappings.push(adjustedMapping);
1902
+ }
1903
+ }
1904
+ quickSort(this.__generatedMappings, util$1.compareByGeneratedPositionsDeflated);
1905
+ quickSort(this.__originalMappings, util$1.compareByOriginalPositions);
1906
+ };
1907
+ exports.IndexedSourceMapConsumer = IndexedSourceMapConsumer;
1908
+ } });
1909
+
1910
+ //#endregion
1911
+ //#region ../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/source-node.js
1912
+ var require_source_node = require_chunk.__commonJS({ "../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/lib/source-node.js"(exports) {
1913
+ var SourceMapGenerator = require_source_map_generator().SourceMapGenerator;
1914
+ var util = require_util();
1915
+ var REGEX_NEWLINE = /(\r?\n)/;
1916
+ var NEWLINE_CODE = 10;
1917
+ var isSourceNode = "$$$isSourceNode$$$";
1918
+ /**
1919
+ * SourceNodes provide a way to abstract over interpolating/concatenating
1920
+ * snippets of generated JavaScript source code while maintaining the line and
1921
+ * column information associated with the original source code.
1922
+ *
1923
+ * @param aLine The original line number.
1924
+ * @param aColumn The original column number.
1925
+ * @param aSource The original source's filename.
1926
+ * @param aChunks Optional. An array of strings which are snippets of
1927
+ * generated JS, or other SourceNodes.
1928
+ * @param aName The original identifier.
1929
+ */
1930
+ function SourceNode(aLine, aColumn, aSource, aChunks, aName) {
1931
+ this.children = [];
1932
+ this.sourceContents = {};
1933
+ this.line = aLine == null ? null : aLine;
1934
+ this.column = aColumn == null ? null : aColumn;
1935
+ this.source = aSource == null ? null : aSource;
1936
+ this.name = aName == null ? null : aName;
1937
+ this[isSourceNode] = true;
1938
+ if (aChunks != null) this.add(aChunks);
1939
+ }
1940
+ /**
1941
+ * Creates a SourceNode from generated code and a SourceMapConsumer.
1942
+ *
1943
+ * @param aGeneratedCode The generated code
1944
+ * @param aSourceMapConsumer The SourceMap for the generated code
1945
+ * @param aRelativePath Optional. The path that relative sources in the
1946
+ * SourceMapConsumer should be relative to.
1947
+ */
1948
+ SourceNode.fromStringWithSourceMap = function SourceNode_fromStringWithSourceMap(aGeneratedCode, aSourceMapConsumer, aRelativePath) {
1949
+ var node = new SourceNode();
1950
+ var remainingLines = aGeneratedCode.split(REGEX_NEWLINE);
1951
+ var remainingLinesIndex = 0;
1952
+ var shiftNextLine = function() {
1953
+ var lineContents = getNextLine();
1954
+ var newLine = getNextLine() || "";
1955
+ return lineContents + newLine;
1956
+ function getNextLine() {
1957
+ return remainingLinesIndex < remainingLines.length ? remainingLines[remainingLinesIndex++] : void 0;
1958
+ }
1959
+ };
1960
+ var lastGeneratedLine = 1, lastGeneratedColumn = 0;
1961
+ var lastMapping = null;
1962
+ aSourceMapConsumer.eachMapping(function(mapping) {
1963
+ if (lastMapping !== null) if (lastGeneratedLine < mapping.generatedLine) {
1964
+ addMappingWithCode(lastMapping, shiftNextLine());
1965
+ lastGeneratedLine++;
1966
+ lastGeneratedColumn = 0;
1967
+ } else {
1968
+ var nextLine = remainingLines[remainingLinesIndex] || "";
1969
+ var code = nextLine.substr(0, mapping.generatedColumn - lastGeneratedColumn);
1970
+ remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn - lastGeneratedColumn);
1971
+ lastGeneratedColumn = mapping.generatedColumn;
1972
+ addMappingWithCode(lastMapping, code);
1973
+ lastMapping = mapping;
1974
+ return;
1975
+ }
1976
+ while (lastGeneratedLine < mapping.generatedLine) {
1977
+ node.add(shiftNextLine());
1978
+ lastGeneratedLine++;
1979
+ }
1980
+ if (lastGeneratedColumn < mapping.generatedColumn) {
1981
+ var nextLine = remainingLines[remainingLinesIndex] || "";
1982
+ node.add(nextLine.substr(0, mapping.generatedColumn));
1983
+ remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn);
1984
+ lastGeneratedColumn = mapping.generatedColumn;
1985
+ }
1986
+ lastMapping = mapping;
1987
+ }, this);
1988
+ if (remainingLinesIndex < remainingLines.length) {
1989
+ if (lastMapping) addMappingWithCode(lastMapping, shiftNextLine());
1990
+ node.add(remainingLines.splice(remainingLinesIndex).join(""));
1991
+ }
1992
+ aSourceMapConsumer.sources.forEach(function(sourceFile) {
1993
+ var content = aSourceMapConsumer.sourceContentFor(sourceFile);
1994
+ if (content != null) {
1995
+ if (aRelativePath != null) sourceFile = util.join(aRelativePath, sourceFile);
1996
+ node.setSourceContent(sourceFile, content);
1997
+ }
1998
+ });
1999
+ return node;
2000
+ function addMappingWithCode(mapping, code) {
2001
+ if (mapping === null || mapping.source === void 0) node.add(code);
2002
+ else {
2003
+ var source = aRelativePath ? util.join(aRelativePath, mapping.source) : mapping.source;
2004
+ node.add(new SourceNode(mapping.originalLine, mapping.originalColumn, source, code, mapping.name));
2005
+ }
2006
+ }
2007
+ };
2008
+ /**
2009
+ * Add a chunk of generated JS to this source node.
2010
+ *
2011
+ * @param aChunk A string snippet of generated JS code, another instance of
2012
+ * SourceNode, or an array where each member is one of those things.
2013
+ */
2014
+ SourceNode.prototype.add = function SourceNode_add(aChunk) {
2015
+ if (Array.isArray(aChunk)) aChunk.forEach(function(chunk) {
2016
+ this.add(chunk);
2017
+ }, this);
2018
+ else if (aChunk[isSourceNode] || typeof aChunk === "string") {
2019
+ if (aChunk) this.children.push(aChunk);
2020
+ } else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk);
2021
+ return this;
2022
+ };
2023
+ /**
2024
+ * Add a chunk of generated JS to the beginning of this source node.
2025
+ *
2026
+ * @param aChunk A string snippet of generated JS code, another instance of
2027
+ * SourceNode, or an array where each member is one of those things.
2028
+ */
2029
+ SourceNode.prototype.prepend = function SourceNode_prepend(aChunk) {
2030
+ if (Array.isArray(aChunk)) for (var i = aChunk.length - 1; i >= 0; i--) this.prepend(aChunk[i]);
2031
+ else if (aChunk[isSourceNode] || typeof aChunk === "string") this.children.unshift(aChunk);
2032
+ else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk);
2033
+ return this;
2034
+ };
2035
+ /**
2036
+ * Walk over the tree of JS snippets in this node and its children. The
2037
+ * walking function is called once for each snippet of JS and is passed that
2038
+ * snippet and the its original associated source's line/column location.
2039
+ *
2040
+ * @param aFn The traversal function.
2041
+ */
2042
+ SourceNode.prototype.walk = function SourceNode_walk(aFn) {
2043
+ var chunk;
2044
+ for (var i = 0, len = this.children.length; i < len; i++) {
2045
+ chunk = this.children[i];
2046
+ if (chunk[isSourceNode]) chunk.walk(aFn);
2047
+ else if (chunk !== "") aFn(chunk, {
2048
+ source: this.source,
2049
+ line: this.line,
2050
+ column: this.column,
2051
+ name: this.name
2052
+ });
2053
+ }
2054
+ };
2055
+ /**
2056
+ * Like `String.prototype.join` except for SourceNodes. Inserts `aStr` between
2057
+ * each of `this.children`.
2058
+ *
2059
+ * @param aSep The separator.
2060
+ */
2061
+ SourceNode.prototype.join = function SourceNode_join(aSep) {
2062
+ var newChildren;
2063
+ var i;
2064
+ var len = this.children.length;
2065
+ if (len > 0) {
2066
+ newChildren = [];
2067
+ for (i = 0; i < len - 1; i++) {
2068
+ newChildren.push(this.children[i]);
2069
+ newChildren.push(aSep);
2070
+ }
2071
+ newChildren.push(this.children[i]);
2072
+ this.children = newChildren;
2073
+ }
2074
+ return this;
2075
+ };
2076
+ /**
2077
+ * Call String.prototype.replace on the very right-most source snippet. Useful
2078
+ * for trimming whitespace from the end of a source node, etc.
2079
+ *
2080
+ * @param aPattern The pattern to replace.
2081
+ * @param aReplacement The thing to replace the pattern with.
2082
+ */
2083
+ SourceNode.prototype.replaceRight = function SourceNode_replaceRight(aPattern, aReplacement) {
2084
+ var lastChild = this.children[this.children.length - 1];
2085
+ if (lastChild[isSourceNode]) lastChild.replaceRight(aPattern, aReplacement);
2086
+ else if (typeof lastChild === "string") this.children[this.children.length - 1] = lastChild.replace(aPattern, aReplacement);
2087
+ else this.children.push("".replace(aPattern, aReplacement));
2088
+ return this;
2089
+ };
2090
+ /**
2091
+ * Set the source content for a source file. This will be added to the SourceMapGenerator
2092
+ * in the sourcesContent field.
2093
+ *
2094
+ * @param aSourceFile The filename of the source file
2095
+ * @param aSourceContent The content of the source file
2096
+ */
2097
+ SourceNode.prototype.setSourceContent = function SourceNode_setSourceContent(aSourceFile, aSourceContent) {
2098
+ this.sourceContents[util.toSetString(aSourceFile)] = aSourceContent;
2099
+ };
2100
+ /**
2101
+ * Walk over the tree of SourceNodes. The walking function is called for each
2102
+ * source file content and is passed the filename and source content.
2103
+ *
2104
+ * @param aFn The traversal function.
2105
+ */
2106
+ SourceNode.prototype.walkSourceContents = function SourceNode_walkSourceContents(aFn) {
2107
+ for (var i = 0, len = this.children.length; i < len; i++) if (this.children[i][isSourceNode]) this.children[i].walkSourceContents(aFn);
2108
+ var sources = Object.keys(this.sourceContents);
2109
+ for (var i = 0, len = sources.length; i < len; i++) aFn(util.fromSetString(sources[i]), this.sourceContents[sources[i]]);
2110
+ };
2111
+ /**
2112
+ * Return the string representation of this source node. Walks over the tree
2113
+ * and concatenates all the various snippets together to one string.
2114
+ */
2115
+ SourceNode.prototype.toString = function SourceNode_toString() {
2116
+ var str = "";
2117
+ this.walk(function(chunk) {
2118
+ str += chunk;
2119
+ });
2120
+ return str;
2121
+ };
2122
+ /**
2123
+ * Returns the string representation of this source node along with a source
2124
+ * map.
2125
+ */
2126
+ SourceNode.prototype.toStringWithSourceMap = function SourceNode_toStringWithSourceMap(aArgs) {
2127
+ var generated = {
2128
+ code: "",
2129
+ line: 1,
2130
+ column: 0
2131
+ };
2132
+ var map = new SourceMapGenerator(aArgs);
2133
+ var sourceMappingActive = false;
2134
+ var lastOriginalSource = null;
2135
+ var lastOriginalLine = null;
2136
+ var lastOriginalColumn = null;
2137
+ var lastOriginalName = null;
2138
+ this.walk(function(chunk, original) {
2139
+ generated.code += chunk;
2140
+ if (original.source !== null && original.line !== null && original.column !== null) {
2141
+ if (lastOriginalSource !== original.source || lastOriginalLine !== original.line || lastOriginalColumn !== original.column || lastOriginalName !== original.name) map.addMapping({
2142
+ source: original.source,
2143
+ original: {
2144
+ line: original.line,
2145
+ column: original.column
2146
+ },
2147
+ generated: {
2148
+ line: generated.line,
2149
+ column: generated.column
2150
+ },
2151
+ name: original.name
2152
+ });
2153
+ lastOriginalSource = original.source;
2154
+ lastOriginalLine = original.line;
2155
+ lastOriginalColumn = original.column;
2156
+ lastOriginalName = original.name;
2157
+ sourceMappingActive = true;
2158
+ } else if (sourceMappingActive) {
2159
+ map.addMapping({ generated: {
2160
+ line: generated.line,
2161
+ column: generated.column
2162
+ } });
2163
+ lastOriginalSource = null;
2164
+ sourceMappingActive = false;
2165
+ }
2166
+ for (var idx = 0, length = chunk.length; idx < length; idx++) if (chunk.charCodeAt(idx) === NEWLINE_CODE) {
2167
+ generated.line++;
2168
+ generated.column = 0;
2169
+ if (idx + 1 === length) {
2170
+ lastOriginalSource = null;
2171
+ sourceMappingActive = false;
2172
+ } else if (sourceMappingActive) map.addMapping({
2173
+ source: original.source,
2174
+ original: {
2175
+ line: original.line,
2176
+ column: original.column
2177
+ },
2178
+ generated: {
2179
+ line: generated.line,
2180
+ column: generated.column
2181
+ },
2182
+ name: original.name
2183
+ });
2184
+ } else generated.column++;
2185
+ });
2186
+ this.walkSourceContents(function(sourceFile, sourceContent) {
2187
+ map.setSourceContent(sourceFile, sourceContent);
2188
+ });
2189
+ return {
2190
+ code: generated.code,
2191
+ map
2192
+ };
2193
+ };
2194
+ exports.SourceNode = SourceNode;
2195
+ } });
2196
+
2197
+ //#endregion
2198
+ //#region ../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/source-map.js
2199
+ var require_source_map = require_chunk.__commonJS({ "../../node_modules/.pnpm/source-map-js@1.2.1/node_modules/source-map-js/source-map.js"(exports) {
2200
+ exports.SourceMapGenerator = require_source_map_generator().SourceMapGenerator;
2201
+ exports.SourceMapConsumer = require_source_map_consumer().SourceMapConsumer;
2202
+ exports.SourceNode = require_source_node().SourceNode;
2203
+ } });
2204
+
2205
+ //#endregion
2206
+ //#region src/source.ts
2207
+ var import_source_map = require_chunk.__toESM(require_source_map(), 1);
2208
+ let reentry = false;
2209
+ const describeBuiltInComponentFrame = (name) => {
2210
+ return `\n in ${name}`;
2211
+ };
2212
+ const disableLogs = () => {
2213
+ const prev = {
2214
+ error: console.error,
2215
+ warn: console.warn
2216
+ };
2217
+ console.error = () => {};
2218
+ console.warn = () => {};
2219
+ return prev;
2220
+ };
2221
+ const reenableLogs = (prev) => {
2222
+ console.error = prev.error;
2223
+ console.warn = prev.warn;
2224
+ };
2225
+ const INLINE_SOURCEMAP_REGEX = /^data:application\/json[^,]+base64,/;
2226
+ const SOURCEMAP_REGEX = /(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*(?:\*\/)[ \t]*$)/;
2227
+ const getSourceMap = async (url, content) => {
2228
+ const lines = content.split("\n");
2229
+ let sourceMapUrl;
2230
+ for (let i = lines.length - 1; i >= 0 && !sourceMapUrl; i--) {
2231
+ const result = lines[i].match(SOURCEMAP_REGEX);
2232
+ if (result) sourceMapUrl = result[1];
2233
+ }
2234
+ if (!sourceMapUrl) return null;
2235
+ if (!(INLINE_SOURCEMAP_REGEX.test(sourceMapUrl) || sourceMapUrl.startsWith("/"))) {
2236
+ const parsedURL = url.split("/");
2237
+ parsedURL[parsedURL.length - 1] = sourceMapUrl;
2238
+ sourceMapUrl = parsedURL.join("/");
2239
+ }
2240
+ const response = await fetch(sourceMapUrl);
2241
+ const rawSourceMap = await response.json();
2242
+ return new import_source_map.SourceMapConsumer(rawSourceMap);
2243
+ };
2244
+ const getRemovedFileProtocolPath = (path) => {
2245
+ const protocol = "file://";
2246
+ if (path.startsWith(protocol)) return path.substring(protocol.length);
2247
+ return path;
2248
+ };
2249
+ const parseStackFrame = async (frame) => {
2250
+ const source = parseStack(frame);
2251
+ if (!source.length) return null;
2252
+ const { file: fileName, line: lineNumber, col: columnNumber = 0 } = source[0];
2253
+ if (!fileName || !lineNumber) return null;
2254
+ const response = await fetch(fileName);
2255
+ if (response.ok) {
2256
+ const content = await response.text();
2257
+ const sourcemap = await getSourceMap(fileName, content);
2258
+ if (sourcemap) {
2259
+ const result = sourcemap.originalPositionFor({
2260
+ line: lineNumber,
2261
+ column: columnNumber
2262
+ });
2263
+ return {
2264
+ fileName: getRemovedFileProtocolPath(sourcemap.file || result.source),
2265
+ lineNumber: result.line,
2266
+ columnNumber: result.column
2267
+ };
2268
+ }
2269
+ }
2270
+ return {
2271
+ fileName: getRemovedFileProtocolPath(fileName),
2272
+ lineNumber,
2273
+ columnNumber
2274
+ };
2275
+ };
2276
+ const describeNativeComponentFrame = (fn, construct) => {
2277
+ if (!fn || reentry) return "";
2278
+ const previousPrepareStackTrace = Error.prepareStackTrace;
2279
+ Error.prepareStackTrace = void 0;
2280
+ reentry = true;
2281
+ const previousDispatcher = getCurrentDispatcher();
2282
+ setCurrentDispatcher(null);
2283
+ const prevLogs = disableLogs();
2284
+ try {
2285
+ /**
2286
+ * Finding a common stack frame between sample and control errors can be
2287
+ * tricky given the different types and levels of stack trace truncation from
2288
+ * different JS VMs. So instead we'll attempt to control what that common
2289
+ * frame should be through this object method:
2290
+ * Having both the sample and control errors be in the function under the
2291
+ * `DescribeNativeComponentFrameRoot` property, + setting the `name` and
2292
+ * `displayName` properties of the function ensures that a stack
2293
+ * frame exists that has the method name `DescribeNativeComponentFrameRoot` in
2294
+ * it for both control and sample stacks.
2295
+ */
2296
+ const RunInRootFrame = { DetermineComponentFrameRoot() {
2297
+ let control;
2298
+ try {
2299
+ if (construct) {
2300
+ const Fake = function() {
2301
+ throw Error();
2302
+ };
2303
+ Object.defineProperty(Fake.prototype, "props", { set: function() {
2304
+ throw Error();
2305
+ } });
2306
+ if (typeof Reflect === "object" && Reflect.construct) {
2307
+ try {
2308
+ Reflect.construct(Fake, []);
2309
+ } catch (x) {
2310
+ control = x;
2311
+ }
2312
+ Reflect.construct(fn, [], Fake);
2313
+ } else {
2314
+ try {
2315
+ Fake.call();
2316
+ } catch (x) {
2317
+ control = x;
2318
+ }
2319
+ fn.call(Fake.prototype);
2320
+ }
2321
+ } else {
2322
+ try {
2323
+ throw Error();
2324
+ } catch (x) {
2325
+ control = x;
2326
+ }
2327
+ const maybePromise = fn();
2328
+ if (maybePromise && typeof maybePromise.catch === "function") maybePromise.catch(() => {});
2329
+ }
2330
+ } catch (sample) {
2331
+ if (sample && control && typeof sample.stack === "string") return [sample.stack, control.stack];
2332
+ }
2333
+ return [null, null];
2334
+ } };
2335
+ RunInRootFrame.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
2336
+ const namePropDescriptor = Object.getOwnPropertyDescriptor(RunInRootFrame.DetermineComponentFrameRoot, "name");
2337
+ if (namePropDescriptor?.configurable) Object.defineProperty(RunInRootFrame.DetermineComponentFrameRoot, "name", { value: "DetermineComponentFrameRoot" });
2338
+ const [sampleStack, controlStack] = RunInRootFrame.DetermineComponentFrameRoot();
2339
+ if (sampleStack && controlStack) {
2340
+ const sampleLines = sampleStack.split("\n");
2341
+ const controlLines = controlStack.split("\n");
2342
+ let s = 0;
2343
+ let c = 0;
2344
+ while (s < sampleLines.length && !sampleLines[s].includes("DetermineComponentFrameRoot")) s++;
2345
+ while (c < controlLines.length && !controlLines[c].includes("DetermineComponentFrameRoot")) c++;
2346
+ if (s === sampleLines.length || c === controlLines.length) {
2347
+ s = sampleLines.length - 1;
2348
+ c = controlLines.length - 1;
2349
+ while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) c--;
2350
+ }
2351
+ for (; s >= 1 && c >= 0; s--, c--) if (sampleLines[s] !== controlLines[c]) {
2352
+ if (s !== 1 || c !== 1) do {
2353
+ s--;
2354
+ c--;
2355
+ if (c < 0 || sampleLines[s] !== controlLines[c]) {
2356
+ let frame = `\n${sampleLines[s].replace(" at new ", " at ")}`;
2357
+ const displayName = require_core.getDisplayName(fn);
2358
+ if (displayName && frame.includes("<anonymous>")) frame = frame.replace("<anonymous>", displayName);
2359
+ return frame;
2360
+ }
2361
+ } while (s >= 1 && c >= 0);
2362
+ break;
2363
+ }
2364
+ }
2365
+ } finally {
2366
+ reentry = false;
2367
+ Error.prepareStackTrace = previousPrepareStackTrace;
2368
+ setCurrentDispatcher(previousDispatcher);
2369
+ reenableLogs(prevLogs);
2370
+ }
2371
+ const name = fn ? require_core.getDisplayName(fn) : "";
2372
+ const syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
2373
+ return syntheticFrame;
2374
+ };
2375
+ const getCurrentDispatcher = () => {
2376
+ const rdtHook = require_core.getRDTHook();
2377
+ for (const renderer of [...Array.from(require_core._renderers), ...Array.from(rdtHook.renderers.values())]) {
2378
+ const currentDispatcherRef = renderer.currentDispatcherRef;
2379
+ if (currentDispatcherRef) return currentDispatcherRef.H || currentDispatcherRef.current;
2380
+ }
2381
+ return null;
2382
+ };
2383
+ const setCurrentDispatcher = (value) => {
2384
+ for (const renderer of require_core._renderers) {
2385
+ const currentDispatcherRef = renderer.currentDispatcherRef;
2386
+ if (currentDispatcherRef) if ("H" in currentDispatcherRef) currentDispatcherRef.H = value;
2387
+ else currentDispatcherRef.current = value;
2388
+ }
2389
+ };
2390
+ const getFiberSource = async (fiber) => {
2391
+ const debugSource = fiber._debugSource;
2392
+ if (debugSource) {
2393
+ const { fileName, lineNumber } = debugSource;
2394
+ return {
2395
+ fileName,
2396
+ lineNumber,
2397
+ columnNumber: "columnNumber" in debugSource && typeof debugSource.columnNumber === "number" ? debugSource.columnNumber : 0
2398
+ };
2399
+ }
2400
+ if (fiber.memoizedProps?.__source) return fiber.memoizedProps.__source;
2401
+ const currentDispatcherRef = getCurrentDispatcher();
2402
+ if (!currentDispatcherRef) return null;
2403
+ const componentFunction = require_core.isHostFiber(fiber) ? require_core.getType(require_core.traverseFiber(fiber, (f) => {
2404
+ if (require_core.isCompositeFiber(f)) return true;
2405
+ }, true)?.type) : require_core.getType(fiber.type);
2406
+ if (!componentFunction || reentry) return null;
2407
+ const frame = describeNativeComponentFrame(componentFunction, fiber.tag === require_core.ClassComponentTag);
2408
+ return parseStackFrame(frame);
2409
+ };
2410
+
2411
+ //#endregion
2412
+ Object.defineProperty(exports, 'getCurrentDispatcher', {
2413
+ enumerable: true,
2414
+ get: function () {
2415
+ return getCurrentDispatcher;
2416
+ }
2417
+ });
2418
+ Object.defineProperty(exports, 'getFiberSource', {
2419
+ enumerable: true,
2420
+ get: function () {
2421
+ return getFiberSource;
2422
+ }
2423
+ });
2424
+ Object.defineProperty(exports, 'setCurrentDispatcher', {
2425
+ enumerable: true,
2426
+ get: function () {
2427
+ return setCurrentDispatcher;
2428
+ }
2429
+ });