bippy 0.3.3 → 0.3.4

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