sandstone-cli 2.3.2 → 2.4.1

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/lib/index.js CHANGED
@@ -5,25 +5,43 @@ var __getProtoOf = Object.getPrototypeOf;
5
5
  var __defProp = Object.defineProperty;
6
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ function __accessProp(key) {
9
+ return this[key];
10
+ }
11
+ var __toESMCache_node;
12
+ var __toESMCache_esm;
8
13
  var __toESM = (mod, isNodeMode, target) => {
14
+ var canCache = mod != null && typeof mod === "object";
15
+ if (canCache) {
16
+ var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
17
+ var cached = cache.get(mod);
18
+ if (cached)
19
+ return cached;
20
+ }
9
21
  target = mod != null ? __create(__getProtoOf(mod)) : {};
10
22
  const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
11
23
  for (let key of __getOwnPropNames(mod))
12
24
  if (!__hasOwnProp.call(to, key))
13
25
  __defProp(to, key, {
14
- get: () => mod[key],
26
+ get: __accessProp.bind(mod, key),
15
27
  enumerable: true
16
28
  });
29
+ if (canCache)
30
+ cache.set(mod, to);
17
31
  return to;
18
32
  };
19
33
  var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
34
+ var __returnValue = (v) => v;
35
+ function __exportSetter(name, newValue) {
36
+ this[name] = __returnValue.bind(null, newValue);
37
+ }
20
38
  var __export = (target, all) => {
21
39
  for (var name in all)
22
40
  __defProp(target, name, {
23
41
  get: all[name],
24
42
  enumerable: true,
25
43
  configurable: true,
26
- set: (newValue) => all[name] = () => newValue
44
+ set: __exportSetter.bind(all, name)
27
45
  });
28
46
  };
29
47
  var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
@@ -4263,170 +4281,1996 @@ var require_permutations = __commonJS((exports, module) => {
4263
4281
  if (i < r)
4264
4282
  cycles[i] = n - i;
4265
4283
  }
4266
- i = r;
4267
- return new Iterator(function next() {
4268
- if (first) {
4269
- first = false;
4270
- indicesToItems(subsequence, array, indices, r);
4271
- return { value: subsequence, done: false };
4284
+ i = r;
4285
+ return new Iterator(function next() {
4286
+ if (first) {
4287
+ first = false;
4288
+ indicesToItems(subsequence, array, indices, r);
4289
+ return { value: subsequence, done: false };
4290
+ }
4291
+ var tmp, j;
4292
+ i--;
4293
+ if (i < 0)
4294
+ return { done: true };
4295
+ cycles[i]--;
4296
+ if (cycles[i] === 0) {
4297
+ tmp = indices[i];
4298
+ for (j = i;j < n - 1; j++)
4299
+ indices[j] = indices[j + 1];
4300
+ indices[n - 1] = tmp;
4301
+ cycles[i] = n - i;
4302
+ return next();
4303
+ } else {
4304
+ j = cycles[i];
4305
+ tmp = indices[i];
4306
+ indices[i] = indices[n - j];
4307
+ indices[n - j] = tmp;
4308
+ i = r;
4309
+ indicesToItems(subsequence, array, indices, r);
4310
+ return { value: subsequence, done: false };
4311
+ }
4312
+ });
4313
+ };
4314
+ });
4315
+
4316
+ // node_modules/obliterator/power-set.js
4317
+ var require_power_set = __commonJS((exports, module) => {
4318
+ var Iterator = require_iterator();
4319
+ var combinations = require_combinations();
4320
+ var chain = require_chain();
4321
+ module.exports = function powerSet(array) {
4322
+ var n = array.length;
4323
+ var iterators = new Array(n + 1);
4324
+ iterators[0] = Iterator.of([]);
4325
+ for (var i = 1;i < n + 1; i++)
4326
+ iterators[i] = combinations(array, i);
4327
+ return chain.apply(null, iterators);
4328
+ };
4329
+ });
4330
+
4331
+ // node_modules/obliterator/range.js
4332
+ var require_range = __commonJS((exports, module) => {
4333
+ var Iterator = require_iterator();
4334
+ module.exports = function range(start, end, step) {
4335
+ if (arguments.length === 1) {
4336
+ end = start;
4337
+ start = 0;
4338
+ }
4339
+ if (arguments.length < 3)
4340
+ step = 1;
4341
+ var i = start;
4342
+ var iterator = new Iterator(function() {
4343
+ if (i < end) {
4344
+ var value = i;
4345
+ i += step;
4346
+ return { value, done: false };
4347
+ }
4348
+ return { done: true };
4349
+ });
4350
+ iterator.start = start;
4351
+ iterator.end = end;
4352
+ iterator.step = step;
4353
+ return iterator;
4354
+ };
4355
+ });
4356
+
4357
+ // node_modules/obliterator/some.js
4358
+ var require_some = __commonJS((exports, module) => {
4359
+ var iter = require_iter();
4360
+ module.exports = function some(iterable, predicate) {
4361
+ var iterator = iter(iterable);
4362
+ var step;
4363
+ while (step = iterator.next(), !step.done) {
4364
+ if (predicate(step.value))
4365
+ return true;
4366
+ }
4367
+ return false;
4368
+ };
4369
+ });
4370
+
4371
+ // node_modules/obliterator/split.js
4372
+ var require_split = __commonJS((exports, module) => {
4373
+ var Iterator = require_iterator();
4374
+ function makeGlobal(pattern) {
4375
+ var flags = "g";
4376
+ if (pattern.multiline)
4377
+ flags += "m";
4378
+ if (pattern.ignoreCase)
4379
+ flags += "i";
4380
+ if (pattern.sticky)
4381
+ flags += "y";
4382
+ if (pattern.unicode)
4383
+ flags += "u";
4384
+ return new RegExp(pattern.source, flags);
4385
+ }
4386
+ module.exports = function split(pattern, string) {
4387
+ if (!(pattern instanceof RegExp))
4388
+ throw new Error("obliterator/split: invalid pattern. Expecting a regular expression.");
4389
+ if (typeof string !== "string")
4390
+ throw new Error("obliterator/split: invalid target. Expecting a string.");
4391
+ pattern = makeGlobal(pattern);
4392
+ var consumed = false, current = 0;
4393
+ return new Iterator(function() {
4394
+ if (consumed)
4395
+ return { done: true };
4396
+ var match = pattern.exec(string), value, length;
4397
+ if (match) {
4398
+ length = match.index + match[0].length;
4399
+ value = string.slice(current, match.index);
4400
+ current = length;
4401
+ } else {
4402
+ consumed = true;
4403
+ value = string.slice(current);
4404
+ }
4405
+ return { value, done: false };
4406
+ });
4407
+ };
4408
+ });
4409
+
4410
+ // node_modules/obliterator/take.js
4411
+ var require_take = __commonJS((exports, module) => {
4412
+ var iter = require_iter();
4413
+ module.exports = function take(iterable, n) {
4414
+ var l = arguments.length > 1 ? n : Infinity, array = l !== Infinity ? new Array(l) : [], step, i = 0;
4415
+ var iterator = iter(iterable);
4416
+ while (true) {
4417
+ if (i === l)
4418
+ return array;
4419
+ step = iterator.next();
4420
+ if (step.done) {
4421
+ if (i !== n)
4422
+ array.length = i;
4423
+ return array;
4424
+ }
4425
+ array[i++] = step.value;
4426
+ }
4427
+ };
4428
+ });
4429
+
4430
+ // node_modules/obliterator/take-into.js
4431
+ var require_take_into = __commonJS((exports, module) => {
4432
+ var iter = require_iter();
4433
+ module.exports = function takeInto(ArrayClass, iterable, n) {
4434
+ var array = new ArrayClass(n), step, i = 0;
4435
+ var iterator = iter(iterable);
4436
+ while (true) {
4437
+ if (i === n)
4438
+ return array;
4439
+ step = iterator.next();
4440
+ if (step.done) {
4441
+ if (i !== n)
4442
+ return array.slice(0, i);
4443
+ return array;
4444
+ }
4445
+ array[i++] = step.value;
4446
+ }
4447
+ };
4448
+ });
4449
+
4450
+ // node_modules/source-map-js/lib/base64.js
4451
+ var require_base64 = __commonJS((exports) => {
4452
+ var intToCharMap = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");
4453
+ exports.encode = function(number) {
4454
+ if (0 <= number && number < intToCharMap.length) {
4455
+ return intToCharMap[number];
4456
+ }
4457
+ throw new TypeError("Must be between 0 and 63: " + number);
4458
+ };
4459
+ exports.decode = function(charCode) {
4460
+ var bigA = 65;
4461
+ var bigZ = 90;
4462
+ var littleA = 97;
4463
+ var littleZ = 122;
4464
+ var zero = 48;
4465
+ var nine = 57;
4466
+ var plus = 43;
4467
+ var slash = 47;
4468
+ var littleOffset = 26;
4469
+ var numberOffset = 52;
4470
+ if (bigA <= charCode && charCode <= bigZ) {
4471
+ return charCode - bigA;
4472
+ }
4473
+ if (littleA <= charCode && charCode <= littleZ) {
4474
+ return charCode - littleA + littleOffset;
4475
+ }
4476
+ if (zero <= charCode && charCode <= nine) {
4477
+ return charCode - zero + numberOffset;
4478
+ }
4479
+ if (charCode == plus) {
4480
+ return 62;
4481
+ }
4482
+ if (charCode == slash) {
4483
+ return 63;
4484
+ }
4485
+ return -1;
4486
+ };
4487
+ });
4488
+
4489
+ // node_modules/source-map-js/lib/base64-vlq.js
4490
+ var require_base64_vlq = __commonJS((exports) => {
4491
+ var base64 = require_base64();
4492
+ var VLQ_BASE_SHIFT = 5;
4493
+ var VLQ_BASE = 1 << VLQ_BASE_SHIFT;
4494
+ var VLQ_BASE_MASK = VLQ_BASE - 1;
4495
+ var VLQ_CONTINUATION_BIT = VLQ_BASE;
4496
+ function toVLQSigned(aValue) {
4497
+ return aValue < 0 ? (-aValue << 1) + 1 : (aValue << 1) + 0;
4498
+ }
4499
+ function fromVLQSigned(aValue) {
4500
+ var isNegative = (aValue & 1) === 1;
4501
+ var shifted = aValue >> 1;
4502
+ return isNegative ? -shifted : shifted;
4503
+ }
4504
+ exports.encode = function base64VLQ_encode(aValue) {
4505
+ var encoded = "";
4506
+ var digit;
4507
+ var vlq = toVLQSigned(aValue);
4508
+ do {
4509
+ digit = vlq & VLQ_BASE_MASK;
4510
+ vlq >>>= VLQ_BASE_SHIFT;
4511
+ if (vlq > 0) {
4512
+ digit |= VLQ_CONTINUATION_BIT;
4513
+ }
4514
+ encoded += base64.encode(digit);
4515
+ } while (vlq > 0);
4516
+ return encoded;
4517
+ };
4518
+ exports.decode = function base64VLQ_decode(aStr, aIndex, aOutParam) {
4519
+ var strLen = aStr.length;
4520
+ var result = 0;
4521
+ var shift = 0;
4522
+ var continuation, digit;
4523
+ do {
4524
+ if (aIndex >= strLen) {
4525
+ throw new Error("Expected more digits in base 64 VLQ value.");
4526
+ }
4527
+ digit = base64.decode(aStr.charCodeAt(aIndex++));
4528
+ if (digit === -1) {
4529
+ throw new Error("Invalid base64 digit: " + aStr.charAt(aIndex - 1));
4530
+ }
4531
+ continuation = !!(digit & VLQ_CONTINUATION_BIT);
4532
+ digit &= VLQ_BASE_MASK;
4533
+ result = result + (digit << shift);
4534
+ shift += VLQ_BASE_SHIFT;
4535
+ } while (continuation);
4536
+ aOutParam.value = fromVLQSigned(result);
4537
+ aOutParam.rest = aIndex;
4538
+ };
4539
+ });
4540
+
4541
+ // node_modules/source-map-js/lib/util.js
4542
+ var require_util = __commonJS((exports) => {
4543
+ function getArg(aArgs, aName, aDefaultValue) {
4544
+ if (aName in aArgs) {
4545
+ return aArgs[aName];
4546
+ } else if (arguments.length === 3) {
4547
+ return aDefaultValue;
4548
+ } else {
4549
+ throw new Error('"' + aName + '" is a required argument.');
4550
+ }
4551
+ }
4552
+ exports.getArg = getArg;
4553
+ var urlRegexp = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/;
4554
+ var dataUrlRegexp = /^data:.+\,.+$/;
4555
+ function urlParse(aUrl) {
4556
+ var match = aUrl.match(urlRegexp);
4557
+ if (!match) {
4558
+ return null;
4559
+ }
4560
+ return {
4561
+ scheme: match[1],
4562
+ auth: match[2],
4563
+ host: match[3],
4564
+ port: match[4],
4565
+ path: match[5]
4566
+ };
4567
+ }
4568
+ exports.urlParse = urlParse;
4569
+ function urlGenerate(aParsedUrl) {
4570
+ var url = "";
4571
+ if (aParsedUrl.scheme) {
4572
+ url += aParsedUrl.scheme + ":";
4573
+ }
4574
+ url += "//";
4575
+ if (aParsedUrl.auth) {
4576
+ url += aParsedUrl.auth + "@";
4577
+ }
4578
+ if (aParsedUrl.host) {
4579
+ url += aParsedUrl.host;
4580
+ }
4581
+ if (aParsedUrl.port) {
4582
+ url += ":" + aParsedUrl.port;
4583
+ }
4584
+ if (aParsedUrl.path) {
4585
+ url += aParsedUrl.path;
4586
+ }
4587
+ return url;
4588
+ }
4589
+ exports.urlGenerate = urlGenerate;
4590
+ var MAX_CACHED_INPUTS = 32;
4591
+ function lruMemoize(f) {
4592
+ var cache = [];
4593
+ return function(input) {
4594
+ for (var i = 0;i < cache.length; i++) {
4595
+ if (cache[i].input === input) {
4596
+ var temp = cache[0];
4597
+ cache[0] = cache[i];
4598
+ cache[i] = temp;
4599
+ return cache[0].result;
4600
+ }
4601
+ }
4602
+ var result = f(input);
4603
+ cache.unshift({
4604
+ input,
4605
+ result
4606
+ });
4607
+ if (cache.length > MAX_CACHED_INPUTS) {
4608
+ cache.pop();
4609
+ }
4610
+ return result;
4611
+ };
4612
+ }
4613
+ var normalize = lruMemoize(function normalize2(aPath) {
4614
+ var path3 = aPath;
4615
+ var url = urlParse(aPath);
4616
+ if (url) {
4617
+ if (!url.path) {
4618
+ return aPath;
4619
+ }
4620
+ path3 = url.path;
4621
+ }
4622
+ var isAbsolute = exports.isAbsolute(path3);
4623
+ var parts = [];
4624
+ var start = 0;
4625
+ var i = 0;
4626
+ while (true) {
4627
+ start = i;
4628
+ i = path3.indexOf("/", start);
4629
+ if (i === -1) {
4630
+ parts.push(path3.slice(start));
4631
+ break;
4632
+ } else {
4633
+ parts.push(path3.slice(start, i));
4634
+ while (i < path3.length && path3[i] === "/") {
4635
+ i++;
4636
+ }
4637
+ }
4638
+ }
4639
+ for (var part, up = 0, i = parts.length - 1;i >= 0; i--) {
4640
+ part = parts[i];
4641
+ if (part === ".") {
4642
+ parts.splice(i, 1);
4643
+ } else if (part === "..") {
4644
+ up++;
4645
+ } else if (up > 0) {
4646
+ if (part === "") {
4647
+ parts.splice(i + 1, up);
4648
+ up = 0;
4649
+ } else {
4650
+ parts.splice(i, 2);
4651
+ up--;
4652
+ }
4653
+ }
4654
+ }
4655
+ path3 = parts.join("/");
4656
+ if (path3 === "") {
4657
+ path3 = isAbsolute ? "/" : ".";
4658
+ }
4659
+ if (url) {
4660
+ url.path = path3;
4661
+ return urlGenerate(url);
4662
+ }
4663
+ return path3;
4664
+ });
4665
+ exports.normalize = normalize;
4666
+ function join(aRoot, aPath) {
4667
+ if (aRoot === "") {
4668
+ aRoot = ".";
4669
+ }
4670
+ if (aPath === "") {
4671
+ aPath = ".";
4672
+ }
4673
+ var aPathUrl = urlParse(aPath);
4674
+ var aRootUrl = urlParse(aRoot);
4675
+ if (aRootUrl) {
4676
+ aRoot = aRootUrl.path || "/";
4677
+ }
4678
+ if (aPathUrl && !aPathUrl.scheme) {
4679
+ if (aRootUrl) {
4680
+ aPathUrl.scheme = aRootUrl.scheme;
4681
+ }
4682
+ return urlGenerate(aPathUrl);
4683
+ }
4684
+ if (aPathUrl || aPath.match(dataUrlRegexp)) {
4685
+ return aPath;
4686
+ }
4687
+ if (aRootUrl && !aRootUrl.host && !aRootUrl.path) {
4688
+ aRootUrl.host = aPath;
4689
+ return urlGenerate(aRootUrl);
4690
+ }
4691
+ var joined = aPath.charAt(0) === "/" ? aPath : normalize(aRoot.replace(/\/+$/, "") + "/" + aPath);
4692
+ if (aRootUrl) {
4693
+ aRootUrl.path = joined;
4694
+ return urlGenerate(aRootUrl);
4695
+ }
4696
+ return joined;
4697
+ }
4698
+ exports.join = join;
4699
+ exports.isAbsolute = function(aPath) {
4700
+ return aPath.charAt(0) === "/" || urlRegexp.test(aPath);
4701
+ };
4702
+ function relative(aRoot, aPath) {
4703
+ if (aRoot === "") {
4704
+ aRoot = ".";
4705
+ }
4706
+ aRoot = aRoot.replace(/\/$/, "");
4707
+ var level = 0;
4708
+ while (aPath.indexOf(aRoot + "/") !== 0) {
4709
+ var index = aRoot.lastIndexOf("/");
4710
+ if (index < 0) {
4711
+ return aPath;
4712
+ }
4713
+ aRoot = aRoot.slice(0, index);
4714
+ if (aRoot.match(/^([^\/]+:\/)?\/*$/)) {
4715
+ return aPath;
4716
+ }
4717
+ ++level;
4718
+ }
4719
+ return Array(level + 1).join("../") + aPath.substr(aRoot.length + 1);
4720
+ }
4721
+ exports.relative = relative;
4722
+ var supportsNullProto = function() {
4723
+ var obj = Object.create(null);
4724
+ return !("__proto__" in obj);
4725
+ }();
4726
+ function identity(s) {
4727
+ return s;
4728
+ }
4729
+ function toSetString(aStr) {
4730
+ if (isProtoString(aStr)) {
4731
+ return "$" + aStr;
4732
+ }
4733
+ return aStr;
4734
+ }
4735
+ exports.toSetString = supportsNullProto ? identity : toSetString;
4736
+ function fromSetString(aStr) {
4737
+ if (isProtoString(aStr)) {
4738
+ return aStr.slice(1);
4739
+ }
4740
+ return aStr;
4741
+ }
4742
+ exports.fromSetString = supportsNullProto ? identity : fromSetString;
4743
+ function isProtoString(s) {
4744
+ if (!s) {
4745
+ return false;
4746
+ }
4747
+ var length = s.length;
4748
+ if (length < 9) {
4749
+ return false;
4750
+ }
4751
+ 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) {
4752
+ return false;
4753
+ }
4754
+ for (var i = length - 10;i >= 0; i--) {
4755
+ if (s.charCodeAt(i) !== 36) {
4756
+ return false;
4757
+ }
4758
+ }
4759
+ return true;
4760
+ }
4761
+ function compareByOriginalPositions(mappingA, mappingB, onlyCompareOriginal) {
4762
+ var cmp = strcmp(mappingA.source, mappingB.source);
4763
+ if (cmp !== 0) {
4764
+ return cmp;
4765
+ }
4766
+ cmp = mappingA.originalLine - mappingB.originalLine;
4767
+ if (cmp !== 0) {
4768
+ return cmp;
4769
+ }
4770
+ cmp = mappingA.originalColumn - mappingB.originalColumn;
4771
+ if (cmp !== 0 || onlyCompareOriginal) {
4772
+ return cmp;
4773
+ }
4774
+ cmp = mappingA.generatedColumn - mappingB.generatedColumn;
4775
+ if (cmp !== 0) {
4776
+ return cmp;
4777
+ }
4778
+ cmp = mappingA.generatedLine - mappingB.generatedLine;
4779
+ if (cmp !== 0) {
4780
+ return cmp;
4781
+ }
4782
+ return strcmp(mappingA.name, mappingB.name);
4783
+ }
4784
+ exports.compareByOriginalPositions = compareByOriginalPositions;
4785
+ function compareByOriginalPositionsNoSource(mappingA, mappingB, onlyCompareOriginal) {
4786
+ var cmp;
4787
+ cmp = mappingA.originalLine - mappingB.originalLine;
4788
+ if (cmp !== 0) {
4789
+ return cmp;
4790
+ }
4791
+ cmp = mappingA.originalColumn - mappingB.originalColumn;
4792
+ if (cmp !== 0 || onlyCompareOriginal) {
4793
+ return cmp;
4794
+ }
4795
+ cmp = mappingA.generatedColumn - mappingB.generatedColumn;
4796
+ if (cmp !== 0) {
4797
+ return cmp;
4798
+ }
4799
+ cmp = mappingA.generatedLine - mappingB.generatedLine;
4800
+ if (cmp !== 0) {
4801
+ return cmp;
4802
+ }
4803
+ return strcmp(mappingA.name, mappingB.name);
4804
+ }
4805
+ exports.compareByOriginalPositionsNoSource = compareByOriginalPositionsNoSource;
4806
+ function compareByGeneratedPositionsDeflated(mappingA, mappingB, onlyCompareGenerated) {
4807
+ var cmp = mappingA.generatedLine - mappingB.generatedLine;
4808
+ if (cmp !== 0) {
4809
+ return cmp;
4810
+ }
4811
+ cmp = mappingA.generatedColumn - mappingB.generatedColumn;
4812
+ if (cmp !== 0 || onlyCompareGenerated) {
4813
+ return cmp;
4814
+ }
4815
+ cmp = strcmp(mappingA.source, mappingB.source);
4816
+ if (cmp !== 0) {
4817
+ return cmp;
4818
+ }
4819
+ cmp = mappingA.originalLine - mappingB.originalLine;
4820
+ if (cmp !== 0) {
4821
+ return cmp;
4822
+ }
4823
+ cmp = mappingA.originalColumn - mappingB.originalColumn;
4824
+ if (cmp !== 0) {
4825
+ return cmp;
4826
+ }
4827
+ return strcmp(mappingA.name, mappingB.name);
4828
+ }
4829
+ exports.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated;
4830
+ function compareByGeneratedPositionsDeflatedNoLine(mappingA, mappingB, onlyCompareGenerated) {
4831
+ var cmp = mappingA.generatedColumn - mappingB.generatedColumn;
4832
+ if (cmp !== 0 || onlyCompareGenerated) {
4833
+ return cmp;
4834
+ }
4835
+ cmp = strcmp(mappingA.source, mappingB.source);
4836
+ if (cmp !== 0) {
4837
+ return cmp;
4838
+ }
4839
+ cmp = mappingA.originalLine - mappingB.originalLine;
4840
+ if (cmp !== 0) {
4841
+ return cmp;
4842
+ }
4843
+ cmp = mappingA.originalColumn - mappingB.originalColumn;
4844
+ if (cmp !== 0) {
4845
+ return cmp;
4846
+ }
4847
+ return strcmp(mappingA.name, mappingB.name);
4848
+ }
4849
+ exports.compareByGeneratedPositionsDeflatedNoLine = compareByGeneratedPositionsDeflatedNoLine;
4850
+ function strcmp(aStr1, aStr2) {
4851
+ if (aStr1 === aStr2) {
4852
+ return 0;
4853
+ }
4854
+ if (aStr1 === null) {
4855
+ return 1;
4856
+ }
4857
+ if (aStr2 === null) {
4858
+ return -1;
4859
+ }
4860
+ if (aStr1 > aStr2) {
4861
+ return 1;
4862
+ }
4863
+ return -1;
4864
+ }
4865
+ function compareByGeneratedPositionsInflated(mappingA, mappingB) {
4866
+ var cmp = mappingA.generatedLine - mappingB.generatedLine;
4867
+ if (cmp !== 0) {
4868
+ return cmp;
4869
+ }
4870
+ cmp = mappingA.generatedColumn - mappingB.generatedColumn;
4871
+ if (cmp !== 0) {
4872
+ return cmp;
4873
+ }
4874
+ cmp = strcmp(mappingA.source, mappingB.source);
4875
+ if (cmp !== 0) {
4876
+ return cmp;
4877
+ }
4878
+ cmp = mappingA.originalLine - mappingB.originalLine;
4879
+ if (cmp !== 0) {
4880
+ return cmp;
4881
+ }
4882
+ cmp = mappingA.originalColumn - mappingB.originalColumn;
4883
+ if (cmp !== 0) {
4884
+ return cmp;
4885
+ }
4886
+ return strcmp(mappingA.name, mappingB.name);
4887
+ }
4888
+ exports.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated;
4889
+ function parseSourceMapInput(str) {
4890
+ return JSON.parse(str.replace(/^\)]}'[^\n]*\n/, ""));
4891
+ }
4892
+ exports.parseSourceMapInput = parseSourceMapInput;
4893
+ function computeSourceURL(sourceRoot, sourceURL, sourceMapURL) {
4894
+ sourceURL = sourceURL || "";
4895
+ if (sourceRoot) {
4896
+ if (sourceRoot[sourceRoot.length - 1] !== "/" && sourceURL[0] !== "/") {
4897
+ sourceRoot += "/";
4898
+ }
4899
+ sourceURL = sourceRoot + sourceURL;
4900
+ }
4901
+ if (sourceMapURL) {
4902
+ var parsed = urlParse(sourceMapURL);
4903
+ if (!parsed) {
4904
+ throw new Error("sourceMapURL could not be parsed");
4905
+ }
4906
+ if (parsed.path) {
4907
+ var index = parsed.path.lastIndexOf("/");
4908
+ if (index >= 0) {
4909
+ parsed.path = parsed.path.substring(0, index + 1);
4910
+ }
4911
+ }
4912
+ sourceURL = join(urlGenerate(parsed), sourceURL);
4913
+ }
4914
+ return normalize(sourceURL);
4915
+ }
4916
+ exports.computeSourceURL = computeSourceURL;
4917
+ });
4918
+
4919
+ // node_modules/source-map-js/lib/array-set.js
4920
+ var require_array_set = __commonJS((exports) => {
4921
+ var util = require_util();
4922
+ var has = Object.prototype.hasOwnProperty;
4923
+ var hasNativeMap = typeof Map !== "undefined";
4924
+ function ArraySet() {
4925
+ this._array = [];
4926
+ this._set = hasNativeMap ? new Map : Object.create(null);
4927
+ }
4928
+ ArraySet.fromArray = function ArraySet_fromArray(aArray, aAllowDuplicates) {
4929
+ var set = new ArraySet;
4930
+ for (var i = 0, len = aArray.length;i < len; i++) {
4931
+ set.add(aArray[i], aAllowDuplicates);
4932
+ }
4933
+ return set;
4934
+ };
4935
+ ArraySet.prototype.size = function ArraySet_size() {
4936
+ return hasNativeMap ? this._set.size : Object.getOwnPropertyNames(this._set).length;
4937
+ };
4938
+ ArraySet.prototype.add = function ArraySet_add(aStr, aAllowDuplicates) {
4939
+ var sStr = hasNativeMap ? aStr : util.toSetString(aStr);
4940
+ var isDuplicate = hasNativeMap ? this.has(aStr) : has.call(this._set, sStr);
4941
+ var idx = this._array.length;
4942
+ if (!isDuplicate || aAllowDuplicates) {
4943
+ this._array.push(aStr);
4944
+ }
4945
+ if (!isDuplicate) {
4946
+ if (hasNativeMap) {
4947
+ this._set.set(aStr, idx);
4948
+ } else {
4949
+ this._set[sStr] = idx;
4950
+ }
4951
+ }
4952
+ };
4953
+ ArraySet.prototype.has = function ArraySet_has(aStr) {
4954
+ if (hasNativeMap) {
4955
+ return this._set.has(aStr);
4956
+ } else {
4957
+ var sStr = util.toSetString(aStr);
4958
+ return has.call(this._set, sStr);
4959
+ }
4960
+ };
4961
+ ArraySet.prototype.indexOf = function ArraySet_indexOf(aStr) {
4962
+ if (hasNativeMap) {
4963
+ var idx = this._set.get(aStr);
4964
+ if (idx >= 0) {
4965
+ return idx;
4966
+ }
4967
+ } else {
4968
+ var sStr = util.toSetString(aStr);
4969
+ if (has.call(this._set, sStr)) {
4970
+ return this._set[sStr];
4971
+ }
4972
+ }
4973
+ throw new Error('"' + aStr + '" is not in the set.');
4974
+ };
4975
+ ArraySet.prototype.at = function ArraySet_at(aIdx) {
4976
+ if (aIdx >= 0 && aIdx < this._array.length) {
4977
+ return this._array[aIdx];
4978
+ }
4979
+ throw new Error("No element indexed by " + aIdx);
4980
+ };
4981
+ ArraySet.prototype.toArray = function ArraySet_toArray() {
4982
+ return this._array.slice();
4983
+ };
4984
+ exports.ArraySet = ArraySet;
4985
+ });
4986
+
4987
+ // node_modules/source-map-js/lib/mapping-list.js
4988
+ var require_mapping_list = __commonJS((exports) => {
4989
+ var util = require_util();
4990
+ function generatedPositionAfter(mappingA, mappingB) {
4991
+ var lineA = mappingA.generatedLine;
4992
+ var lineB = mappingB.generatedLine;
4993
+ var columnA = mappingA.generatedColumn;
4994
+ var columnB = mappingB.generatedColumn;
4995
+ return lineB > lineA || lineB == lineA && columnB >= columnA || util.compareByGeneratedPositionsInflated(mappingA, mappingB) <= 0;
4996
+ }
4997
+ function MappingList() {
4998
+ this._array = [];
4999
+ this._sorted = true;
5000
+ this._last = { generatedLine: -1, generatedColumn: 0 };
5001
+ }
5002
+ MappingList.prototype.unsortedForEach = function MappingList_forEach(aCallback, aThisArg) {
5003
+ this._array.forEach(aCallback, aThisArg);
5004
+ };
5005
+ MappingList.prototype.add = function MappingList_add(aMapping) {
5006
+ if (generatedPositionAfter(this._last, aMapping)) {
5007
+ this._last = aMapping;
5008
+ this._array.push(aMapping);
5009
+ } else {
5010
+ this._sorted = false;
5011
+ this._array.push(aMapping);
5012
+ }
5013
+ };
5014
+ MappingList.prototype.toArray = function MappingList_toArray() {
5015
+ if (!this._sorted) {
5016
+ this._array.sort(util.compareByGeneratedPositionsInflated);
5017
+ this._sorted = true;
5018
+ }
5019
+ return this._array;
5020
+ };
5021
+ exports.MappingList = MappingList;
5022
+ });
5023
+
5024
+ // node_modules/source-map-js/lib/source-map-generator.js
5025
+ var require_source_map_generator = __commonJS((exports) => {
5026
+ var base64VLQ = require_base64_vlq();
5027
+ var util = require_util();
5028
+ var ArraySet = require_array_set().ArraySet;
5029
+ var MappingList = require_mapping_list().MappingList;
5030
+ function SourceMapGenerator(aArgs) {
5031
+ if (!aArgs) {
5032
+ aArgs = {};
5033
+ }
5034
+ this._file = util.getArg(aArgs, "file", null);
5035
+ this._sourceRoot = util.getArg(aArgs, "sourceRoot", null);
5036
+ this._skipValidation = util.getArg(aArgs, "skipValidation", false);
5037
+ this._ignoreInvalidMapping = util.getArg(aArgs, "ignoreInvalidMapping", false);
5038
+ this._sources = new ArraySet;
5039
+ this._names = new ArraySet;
5040
+ this._mappings = new MappingList;
5041
+ this._sourcesContents = null;
5042
+ }
5043
+ SourceMapGenerator.prototype._version = 3;
5044
+ SourceMapGenerator.fromSourceMap = function SourceMapGenerator_fromSourceMap(aSourceMapConsumer, generatorOps) {
5045
+ var sourceRoot = aSourceMapConsumer.sourceRoot;
5046
+ var generator = new SourceMapGenerator(Object.assign(generatorOps || {}, {
5047
+ file: aSourceMapConsumer.file,
5048
+ sourceRoot
5049
+ }));
5050
+ aSourceMapConsumer.eachMapping(function(mapping) {
5051
+ var newMapping = {
5052
+ generated: {
5053
+ line: mapping.generatedLine,
5054
+ column: mapping.generatedColumn
5055
+ }
5056
+ };
5057
+ if (mapping.source != null) {
5058
+ newMapping.source = mapping.source;
5059
+ if (sourceRoot != null) {
5060
+ newMapping.source = util.relative(sourceRoot, newMapping.source);
5061
+ }
5062
+ newMapping.original = {
5063
+ line: mapping.originalLine,
5064
+ column: mapping.originalColumn
5065
+ };
5066
+ if (mapping.name != null) {
5067
+ newMapping.name = mapping.name;
5068
+ }
5069
+ }
5070
+ generator.addMapping(newMapping);
5071
+ });
5072
+ aSourceMapConsumer.sources.forEach(function(sourceFile) {
5073
+ var sourceRelative = sourceFile;
5074
+ if (sourceRoot !== null) {
5075
+ sourceRelative = util.relative(sourceRoot, sourceFile);
5076
+ }
5077
+ if (!generator._sources.has(sourceRelative)) {
5078
+ generator._sources.add(sourceRelative);
5079
+ }
5080
+ var content = aSourceMapConsumer.sourceContentFor(sourceFile);
5081
+ if (content != null) {
5082
+ generator.setSourceContent(sourceFile, content);
5083
+ }
5084
+ });
5085
+ return generator;
5086
+ };
5087
+ SourceMapGenerator.prototype.addMapping = function SourceMapGenerator_addMapping(aArgs) {
5088
+ var generated = util.getArg(aArgs, "generated");
5089
+ var original = util.getArg(aArgs, "original", null);
5090
+ var source = util.getArg(aArgs, "source", null);
5091
+ var name = util.getArg(aArgs, "name", null);
5092
+ if (!this._skipValidation) {
5093
+ if (this._validateMapping(generated, original, source, name) === false) {
5094
+ return;
5095
+ }
5096
+ }
5097
+ if (source != null) {
5098
+ source = String(source);
5099
+ if (!this._sources.has(source)) {
5100
+ this._sources.add(source);
5101
+ }
5102
+ }
5103
+ if (name != null) {
5104
+ name = String(name);
5105
+ if (!this._names.has(name)) {
5106
+ this._names.add(name);
5107
+ }
5108
+ }
5109
+ this._mappings.add({
5110
+ generatedLine: generated.line,
5111
+ generatedColumn: generated.column,
5112
+ originalLine: original != null && original.line,
5113
+ originalColumn: original != null && original.column,
5114
+ source,
5115
+ name
5116
+ });
5117
+ };
5118
+ SourceMapGenerator.prototype.setSourceContent = function SourceMapGenerator_setSourceContent(aSourceFile, aSourceContent) {
5119
+ var source = aSourceFile;
5120
+ if (this._sourceRoot != null) {
5121
+ source = util.relative(this._sourceRoot, source);
5122
+ }
5123
+ if (aSourceContent != null) {
5124
+ if (!this._sourcesContents) {
5125
+ this._sourcesContents = Object.create(null);
5126
+ }
5127
+ this._sourcesContents[util.toSetString(source)] = aSourceContent;
5128
+ } else if (this._sourcesContents) {
5129
+ delete this._sourcesContents[util.toSetString(source)];
5130
+ if (Object.keys(this._sourcesContents).length === 0) {
5131
+ this._sourcesContents = null;
5132
+ }
5133
+ }
5134
+ };
5135
+ SourceMapGenerator.prototype.applySourceMap = function SourceMapGenerator_applySourceMap(aSourceMapConsumer, aSourceFile, aSourceMapPath) {
5136
+ var sourceFile = aSourceFile;
5137
+ if (aSourceFile == null) {
5138
+ if (aSourceMapConsumer.file == null) {
5139
+ throw new Error("SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, " + `or the source map's "file" property. Both were omitted.`);
5140
+ }
5141
+ sourceFile = aSourceMapConsumer.file;
5142
+ }
5143
+ var sourceRoot = this._sourceRoot;
5144
+ if (sourceRoot != null) {
5145
+ sourceFile = util.relative(sourceRoot, sourceFile);
5146
+ }
5147
+ var newSources = new ArraySet;
5148
+ var newNames = new ArraySet;
5149
+ this._mappings.unsortedForEach(function(mapping) {
5150
+ if (mapping.source === sourceFile && mapping.originalLine != null) {
5151
+ var original = aSourceMapConsumer.originalPositionFor({
5152
+ line: mapping.originalLine,
5153
+ column: mapping.originalColumn
5154
+ });
5155
+ if (original.source != null) {
5156
+ mapping.source = original.source;
5157
+ if (aSourceMapPath != null) {
5158
+ mapping.source = util.join(aSourceMapPath, mapping.source);
5159
+ }
5160
+ if (sourceRoot != null) {
5161
+ mapping.source = util.relative(sourceRoot, mapping.source);
5162
+ }
5163
+ mapping.originalLine = original.line;
5164
+ mapping.originalColumn = original.column;
5165
+ if (original.name != null) {
5166
+ mapping.name = original.name;
5167
+ }
5168
+ }
5169
+ }
5170
+ var source = mapping.source;
5171
+ if (source != null && !newSources.has(source)) {
5172
+ newSources.add(source);
5173
+ }
5174
+ var name = mapping.name;
5175
+ if (name != null && !newNames.has(name)) {
5176
+ newNames.add(name);
5177
+ }
5178
+ }, this);
5179
+ this._sources = newSources;
5180
+ this._names = newNames;
5181
+ aSourceMapConsumer.sources.forEach(function(sourceFile2) {
5182
+ var content = aSourceMapConsumer.sourceContentFor(sourceFile2);
5183
+ if (content != null) {
5184
+ if (aSourceMapPath != null) {
5185
+ sourceFile2 = util.join(aSourceMapPath, sourceFile2);
5186
+ }
5187
+ if (sourceRoot != null) {
5188
+ sourceFile2 = util.relative(sourceRoot, sourceFile2);
5189
+ }
5190
+ this.setSourceContent(sourceFile2, content);
5191
+ }
5192
+ }, this);
5193
+ };
5194
+ SourceMapGenerator.prototype._validateMapping = function SourceMapGenerator_validateMapping(aGenerated, aOriginal, aSource, aName) {
5195
+ if (aOriginal && typeof aOriginal.line !== "number" && typeof aOriginal.column !== "number") {
5196
+ 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.";
5197
+ if (this._ignoreInvalidMapping) {
5198
+ if (typeof console !== "undefined" && console.warn) {
5199
+ console.warn(message);
5200
+ }
5201
+ return false;
5202
+ } else {
5203
+ throw new Error(message);
5204
+ }
5205
+ }
5206
+ if (aGenerated && "line" in aGenerated && "column" in aGenerated && aGenerated.line > 0 && aGenerated.column >= 0 && !aOriginal && !aSource && !aName) {
5207
+ return;
5208
+ } 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) {
5209
+ return;
5210
+ } else {
5211
+ var message = "Invalid mapping: " + JSON.stringify({
5212
+ generated: aGenerated,
5213
+ source: aSource,
5214
+ original: aOriginal,
5215
+ name: aName
5216
+ });
5217
+ if (this._ignoreInvalidMapping) {
5218
+ if (typeof console !== "undefined" && console.warn) {
5219
+ console.warn(message);
5220
+ }
5221
+ return false;
5222
+ } else {
5223
+ throw new Error(message);
5224
+ }
5225
+ }
5226
+ };
5227
+ SourceMapGenerator.prototype._serializeMappings = function SourceMapGenerator_serializeMappings() {
5228
+ var previousGeneratedColumn = 0;
5229
+ var previousGeneratedLine = 1;
5230
+ var previousOriginalColumn = 0;
5231
+ var previousOriginalLine = 0;
5232
+ var previousName = 0;
5233
+ var previousSource = 0;
5234
+ var result = "";
5235
+ var next;
5236
+ var mapping;
5237
+ var nameIdx;
5238
+ var sourceIdx;
5239
+ var mappings = this._mappings.toArray();
5240
+ for (var i = 0, len = mappings.length;i < len; i++) {
5241
+ mapping = mappings[i];
5242
+ next = "";
5243
+ if (mapping.generatedLine !== previousGeneratedLine) {
5244
+ previousGeneratedColumn = 0;
5245
+ while (mapping.generatedLine !== previousGeneratedLine) {
5246
+ next += ";";
5247
+ previousGeneratedLine++;
5248
+ }
5249
+ } else {
5250
+ if (i > 0) {
5251
+ if (!util.compareByGeneratedPositionsInflated(mapping, mappings[i - 1])) {
5252
+ continue;
5253
+ }
5254
+ next += ",";
5255
+ }
5256
+ }
5257
+ next += base64VLQ.encode(mapping.generatedColumn - previousGeneratedColumn);
5258
+ previousGeneratedColumn = mapping.generatedColumn;
5259
+ if (mapping.source != null) {
5260
+ sourceIdx = this._sources.indexOf(mapping.source);
5261
+ next += base64VLQ.encode(sourceIdx - previousSource);
5262
+ previousSource = sourceIdx;
5263
+ next += base64VLQ.encode(mapping.originalLine - 1 - previousOriginalLine);
5264
+ previousOriginalLine = mapping.originalLine - 1;
5265
+ next += base64VLQ.encode(mapping.originalColumn - previousOriginalColumn);
5266
+ previousOriginalColumn = mapping.originalColumn;
5267
+ if (mapping.name != null) {
5268
+ nameIdx = this._names.indexOf(mapping.name);
5269
+ next += base64VLQ.encode(nameIdx - previousName);
5270
+ previousName = nameIdx;
5271
+ }
5272
+ }
5273
+ result += next;
5274
+ }
5275
+ return result;
5276
+ };
5277
+ SourceMapGenerator.prototype._generateSourcesContent = function SourceMapGenerator_generateSourcesContent(aSources, aSourceRoot) {
5278
+ return aSources.map(function(source) {
5279
+ if (!this._sourcesContents) {
5280
+ return null;
5281
+ }
5282
+ if (aSourceRoot != null) {
5283
+ source = util.relative(aSourceRoot, source);
5284
+ }
5285
+ var key = util.toSetString(source);
5286
+ return Object.prototype.hasOwnProperty.call(this._sourcesContents, key) ? this._sourcesContents[key] : null;
5287
+ }, this);
5288
+ };
5289
+ SourceMapGenerator.prototype.toJSON = function SourceMapGenerator_toJSON() {
5290
+ var map = {
5291
+ version: this._version,
5292
+ sources: this._sources.toArray(),
5293
+ names: this._names.toArray(),
5294
+ mappings: this._serializeMappings()
5295
+ };
5296
+ if (this._file != null) {
5297
+ map.file = this._file;
5298
+ }
5299
+ if (this._sourceRoot != null) {
5300
+ map.sourceRoot = this._sourceRoot;
5301
+ }
5302
+ if (this._sourcesContents) {
5303
+ map.sourcesContent = this._generateSourcesContent(map.sources, map.sourceRoot);
5304
+ }
5305
+ return map;
5306
+ };
5307
+ SourceMapGenerator.prototype.toString = function SourceMapGenerator_toString() {
5308
+ return JSON.stringify(this.toJSON());
5309
+ };
5310
+ exports.SourceMapGenerator = SourceMapGenerator;
5311
+ });
5312
+
5313
+ // node_modules/source-map-js/lib/binary-search.js
5314
+ var require_binary_search = __commonJS((exports) => {
5315
+ exports.GREATEST_LOWER_BOUND = 1;
5316
+ exports.LEAST_UPPER_BOUND = 2;
5317
+ function recursiveSearch(aLow, aHigh, aNeedle, aHaystack, aCompare, aBias) {
5318
+ var mid = Math.floor((aHigh - aLow) / 2) + aLow;
5319
+ var cmp = aCompare(aNeedle, aHaystack[mid], true);
5320
+ if (cmp === 0) {
5321
+ return mid;
5322
+ } else if (cmp > 0) {
5323
+ if (aHigh - mid > 1) {
5324
+ return recursiveSearch(mid, aHigh, aNeedle, aHaystack, aCompare, aBias);
5325
+ }
5326
+ if (aBias == exports.LEAST_UPPER_BOUND) {
5327
+ return aHigh < aHaystack.length ? aHigh : -1;
5328
+ } else {
5329
+ return mid;
5330
+ }
5331
+ } else {
5332
+ if (mid - aLow > 1) {
5333
+ return recursiveSearch(aLow, mid, aNeedle, aHaystack, aCompare, aBias);
5334
+ }
5335
+ if (aBias == exports.LEAST_UPPER_BOUND) {
5336
+ return mid;
5337
+ } else {
5338
+ return aLow < 0 ? -1 : aLow;
5339
+ }
5340
+ }
5341
+ }
5342
+ exports.search = function search(aNeedle, aHaystack, aCompare, aBias) {
5343
+ if (aHaystack.length === 0) {
5344
+ return -1;
5345
+ }
5346
+ var index = recursiveSearch(-1, aHaystack.length, aNeedle, aHaystack, aCompare, aBias || exports.GREATEST_LOWER_BOUND);
5347
+ if (index < 0) {
5348
+ return -1;
5349
+ }
5350
+ while (index - 1 >= 0) {
5351
+ if (aCompare(aHaystack[index], aHaystack[index - 1], true) !== 0) {
5352
+ break;
5353
+ }
5354
+ --index;
5355
+ }
5356
+ return index;
5357
+ };
5358
+ });
5359
+
5360
+ // node_modules/source-map-js/lib/quick-sort.js
5361
+ var require_quick_sort = __commonJS((exports) => {
5362
+ function SortTemplate(comparator) {
5363
+ function swap(ary, x, y) {
5364
+ var temp = ary[x];
5365
+ ary[x] = ary[y];
5366
+ ary[y] = temp;
5367
+ }
5368
+ function randomIntInRange(low, high) {
5369
+ return Math.round(low + Math.random() * (high - low));
5370
+ }
5371
+ function doQuickSort(ary, comparator2, p, r) {
5372
+ if (p < r) {
5373
+ var pivotIndex = randomIntInRange(p, r);
5374
+ var i = p - 1;
5375
+ swap(ary, pivotIndex, r);
5376
+ var pivot = ary[r];
5377
+ for (var j = p;j < r; j++) {
5378
+ if (comparator2(ary[j], pivot, false) <= 0) {
5379
+ i += 1;
5380
+ swap(ary, i, j);
5381
+ }
5382
+ }
5383
+ swap(ary, i + 1, j);
5384
+ var q = i + 1;
5385
+ doQuickSort(ary, comparator2, p, q - 1);
5386
+ doQuickSort(ary, comparator2, q + 1, r);
5387
+ }
5388
+ }
5389
+ return doQuickSort;
5390
+ }
5391
+ function cloneSort(comparator) {
5392
+ let template = SortTemplate.toString();
5393
+ let templateFn = new Function(`return ${template}`)();
5394
+ return templateFn(comparator);
5395
+ }
5396
+ var sortCache = new WeakMap;
5397
+ exports.quickSort = function(ary, comparator, start = 0) {
5398
+ let doQuickSort = sortCache.get(comparator);
5399
+ if (doQuickSort === undefined) {
5400
+ doQuickSort = cloneSort(comparator);
5401
+ sortCache.set(comparator, doQuickSort);
5402
+ }
5403
+ doQuickSort(ary, comparator, start, ary.length - 1);
5404
+ };
5405
+ });
5406
+
5407
+ // node_modules/source-map-js/lib/source-map-consumer.js
5408
+ var require_source_map_consumer = __commonJS((exports) => {
5409
+ var util = require_util();
5410
+ var binarySearch = require_binary_search();
5411
+ var ArraySet = require_array_set().ArraySet;
5412
+ var base64VLQ = require_base64_vlq();
5413
+ var quickSort = require_quick_sort().quickSort;
5414
+ function SourceMapConsumer(aSourceMap, aSourceMapURL) {
5415
+ var sourceMap = aSourceMap;
5416
+ if (typeof aSourceMap === "string") {
5417
+ sourceMap = util.parseSourceMapInput(aSourceMap);
5418
+ }
5419
+ return sourceMap.sections != null ? new IndexedSourceMapConsumer(sourceMap, aSourceMapURL) : new BasicSourceMapConsumer(sourceMap, aSourceMapURL);
5420
+ }
5421
+ SourceMapConsumer.fromSourceMap = function(aSourceMap, aSourceMapURL) {
5422
+ return BasicSourceMapConsumer.fromSourceMap(aSourceMap, aSourceMapURL);
5423
+ };
5424
+ SourceMapConsumer.prototype._version = 3;
5425
+ SourceMapConsumer.prototype.__generatedMappings = null;
5426
+ Object.defineProperty(SourceMapConsumer.prototype, "_generatedMappings", {
5427
+ configurable: true,
5428
+ enumerable: true,
5429
+ get: function() {
5430
+ if (!this.__generatedMappings) {
5431
+ this._parseMappings(this._mappings, this.sourceRoot);
5432
+ }
5433
+ return this.__generatedMappings;
5434
+ }
5435
+ });
5436
+ SourceMapConsumer.prototype.__originalMappings = null;
5437
+ Object.defineProperty(SourceMapConsumer.prototype, "_originalMappings", {
5438
+ configurable: true,
5439
+ enumerable: true,
5440
+ get: function() {
5441
+ if (!this.__originalMappings) {
5442
+ this._parseMappings(this._mappings, this.sourceRoot);
5443
+ }
5444
+ return this.__originalMappings;
5445
+ }
5446
+ });
5447
+ SourceMapConsumer.prototype._charIsMappingSeparator = function SourceMapConsumer_charIsMappingSeparator(aStr, index) {
5448
+ var c = aStr.charAt(index);
5449
+ return c === ";" || c === ",";
5450
+ };
5451
+ SourceMapConsumer.prototype._parseMappings = function SourceMapConsumer_parseMappings(aStr, aSourceRoot) {
5452
+ throw new Error("Subclasses must implement _parseMappings");
5453
+ };
5454
+ SourceMapConsumer.GENERATED_ORDER = 1;
5455
+ SourceMapConsumer.ORIGINAL_ORDER = 2;
5456
+ SourceMapConsumer.GREATEST_LOWER_BOUND = 1;
5457
+ SourceMapConsumer.LEAST_UPPER_BOUND = 2;
5458
+ SourceMapConsumer.prototype.eachMapping = function SourceMapConsumer_eachMapping(aCallback, aContext, aOrder) {
5459
+ var context = aContext || null;
5460
+ var order = aOrder || SourceMapConsumer.GENERATED_ORDER;
5461
+ var mappings;
5462
+ switch (order) {
5463
+ case SourceMapConsumer.GENERATED_ORDER:
5464
+ mappings = this._generatedMappings;
5465
+ break;
5466
+ case SourceMapConsumer.ORIGINAL_ORDER:
5467
+ mappings = this._originalMappings;
5468
+ break;
5469
+ default:
5470
+ throw new Error("Unknown order of iteration.");
5471
+ }
5472
+ var sourceRoot = this.sourceRoot;
5473
+ var boundCallback = aCallback.bind(context);
5474
+ var names = this._names;
5475
+ var sources = this._sources;
5476
+ var sourceMapURL = this._sourceMapURL;
5477
+ for (var i = 0, n = mappings.length;i < n; i++) {
5478
+ var mapping = mappings[i];
5479
+ var source = mapping.source === null ? null : sources.at(mapping.source);
5480
+ if (source !== null) {
5481
+ source = util.computeSourceURL(sourceRoot, source, sourceMapURL);
5482
+ }
5483
+ boundCallback({
5484
+ source,
5485
+ generatedLine: mapping.generatedLine,
5486
+ generatedColumn: mapping.generatedColumn,
5487
+ originalLine: mapping.originalLine,
5488
+ originalColumn: mapping.originalColumn,
5489
+ name: mapping.name === null ? null : names.at(mapping.name)
5490
+ });
5491
+ }
5492
+ };
5493
+ SourceMapConsumer.prototype.allGeneratedPositionsFor = function SourceMapConsumer_allGeneratedPositionsFor(aArgs) {
5494
+ var line = util.getArg(aArgs, "line");
5495
+ var needle = {
5496
+ source: util.getArg(aArgs, "source"),
5497
+ originalLine: line,
5498
+ originalColumn: util.getArg(aArgs, "column", 0)
5499
+ };
5500
+ needle.source = this._findSourceIndex(needle.source);
5501
+ if (needle.source < 0) {
5502
+ return [];
5503
+ }
5504
+ var mappings = [];
5505
+ var index = this._findMapping(needle, this._originalMappings, "originalLine", "originalColumn", util.compareByOriginalPositions, binarySearch.LEAST_UPPER_BOUND);
5506
+ if (index >= 0) {
5507
+ var mapping = this._originalMappings[index];
5508
+ if (aArgs.column === undefined) {
5509
+ var originalLine = mapping.originalLine;
5510
+ while (mapping && mapping.originalLine === originalLine) {
5511
+ mappings.push({
5512
+ line: util.getArg(mapping, "generatedLine", null),
5513
+ column: util.getArg(mapping, "generatedColumn", null),
5514
+ lastColumn: util.getArg(mapping, "lastGeneratedColumn", null)
5515
+ });
5516
+ mapping = this._originalMappings[++index];
5517
+ }
5518
+ } else {
5519
+ var originalColumn = mapping.originalColumn;
5520
+ while (mapping && mapping.originalLine === line && mapping.originalColumn == originalColumn) {
5521
+ mappings.push({
5522
+ line: util.getArg(mapping, "generatedLine", null),
5523
+ column: util.getArg(mapping, "generatedColumn", null),
5524
+ lastColumn: util.getArg(mapping, "lastGeneratedColumn", null)
5525
+ });
5526
+ mapping = this._originalMappings[++index];
5527
+ }
5528
+ }
5529
+ }
5530
+ return mappings;
5531
+ };
5532
+ exports.SourceMapConsumer = SourceMapConsumer;
5533
+ function BasicSourceMapConsumer(aSourceMap, aSourceMapURL) {
5534
+ var sourceMap = aSourceMap;
5535
+ if (typeof aSourceMap === "string") {
5536
+ sourceMap = util.parseSourceMapInput(aSourceMap);
5537
+ }
5538
+ var version = util.getArg(sourceMap, "version");
5539
+ var sources = util.getArg(sourceMap, "sources");
5540
+ var names = util.getArg(sourceMap, "names", []);
5541
+ var sourceRoot = util.getArg(sourceMap, "sourceRoot", null);
5542
+ var sourcesContent = util.getArg(sourceMap, "sourcesContent", null);
5543
+ var mappings = util.getArg(sourceMap, "mappings");
5544
+ var file = util.getArg(sourceMap, "file", null);
5545
+ if (version != this._version) {
5546
+ throw new Error("Unsupported version: " + version);
5547
+ }
5548
+ if (sourceRoot) {
5549
+ sourceRoot = util.normalize(sourceRoot);
5550
+ }
5551
+ sources = sources.map(String).map(util.normalize).map(function(source) {
5552
+ return sourceRoot && util.isAbsolute(sourceRoot) && util.isAbsolute(source) ? util.relative(sourceRoot, source) : source;
5553
+ });
5554
+ this._names = ArraySet.fromArray(names.map(String), true);
5555
+ this._sources = ArraySet.fromArray(sources, true);
5556
+ this._absoluteSources = this._sources.toArray().map(function(s) {
5557
+ return util.computeSourceURL(sourceRoot, s, aSourceMapURL);
5558
+ });
5559
+ this.sourceRoot = sourceRoot;
5560
+ this.sourcesContent = sourcesContent;
5561
+ this._mappings = mappings;
5562
+ this._sourceMapURL = aSourceMapURL;
5563
+ this.file = file;
5564
+ }
5565
+ BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype);
5566
+ BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer;
5567
+ BasicSourceMapConsumer.prototype._findSourceIndex = function(aSource) {
5568
+ var relativeSource = aSource;
5569
+ if (this.sourceRoot != null) {
5570
+ relativeSource = util.relative(this.sourceRoot, relativeSource);
5571
+ }
5572
+ if (this._sources.has(relativeSource)) {
5573
+ return this._sources.indexOf(relativeSource);
5574
+ }
5575
+ var i;
5576
+ for (i = 0;i < this._absoluteSources.length; ++i) {
5577
+ if (this._absoluteSources[i] == aSource) {
5578
+ return i;
5579
+ }
5580
+ }
5581
+ return -1;
5582
+ };
5583
+ BasicSourceMapConsumer.fromSourceMap = function SourceMapConsumer_fromSourceMap(aSourceMap, aSourceMapURL) {
5584
+ var smc = Object.create(BasicSourceMapConsumer.prototype);
5585
+ var names = smc._names = ArraySet.fromArray(aSourceMap._names.toArray(), true);
5586
+ var sources = smc._sources = ArraySet.fromArray(aSourceMap._sources.toArray(), true);
5587
+ smc.sourceRoot = aSourceMap._sourceRoot;
5588
+ smc.sourcesContent = aSourceMap._generateSourcesContent(smc._sources.toArray(), smc.sourceRoot);
5589
+ smc.file = aSourceMap._file;
5590
+ smc._sourceMapURL = aSourceMapURL;
5591
+ smc._absoluteSources = smc._sources.toArray().map(function(s) {
5592
+ return util.computeSourceURL(smc.sourceRoot, s, aSourceMapURL);
5593
+ });
5594
+ var generatedMappings = aSourceMap._mappings.toArray().slice();
5595
+ var destGeneratedMappings = smc.__generatedMappings = [];
5596
+ var destOriginalMappings = smc.__originalMappings = [];
5597
+ for (var i = 0, length = generatedMappings.length;i < length; i++) {
5598
+ var srcMapping = generatedMappings[i];
5599
+ var destMapping = new Mapping;
5600
+ destMapping.generatedLine = srcMapping.generatedLine;
5601
+ destMapping.generatedColumn = srcMapping.generatedColumn;
5602
+ if (srcMapping.source) {
5603
+ destMapping.source = sources.indexOf(srcMapping.source);
5604
+ destMapping.originalLine = srcMapping.originalLine;
5605
+ destMapping.originalColumn = srcMapping.originalColumn;
5606
+ if (srcMapping.name) {
5607
+ destMapping.name = names.indexOf(srcMapping.name);
5608
+ }
5609
+ destOriginalMappings.push(destMapping);
5610
+ }
5611
+ destGeneratedMappings.push(destMapping);
5612
+ }
5613
+ quickSort(smc.__originalMappings, util.compareByOriginalPositions);
5614
+ return smc;
5615
+ };
5616
+ BasicSourceMapConsumer.prototype._version = 3;
5617
+ Object.defineProperty(BasicSourceMapConsumer.prototype, "sources", {
5618
+ get: function() {
5619
+ return this._absoluteSources.slice();
5620
+ }
5621
+ });
5622
+ function Mapping() {
5623
+ this.generatedLine = 0;
5624
+ this.generatedColumn = 0;
5625
+ this.source = null;
5626
+ this.originalLine = null;
5627
+ this.originalColumn = null;
5628
+ this.name = null;
5629
+ }
5630
+ var compareGenerated = util.compareByGeneratedPositionsDeflatedNoLine;
5631
+ function sortGenerated(array, start) {
5632
+ let l = array.length;
5633
+ let n = array.length - start;
5634
+ if (n <= 1) {
5635
+ return;
5636
+ } else if (n == 2) {
5637
+ let a = array[start];
5638
+ let b = array[start + 1];
5639
+ if (compareGenerated(a, b) > 0) {
5640
+ array[start] = b;
5641
+ array[start + 1] = a;
5642
+ }
5643
+ } else if (n < 20) {
5644
+ for (let i = start;i < l; i++) {
5645
+ for (let j = i;j > start; j--) {
5646
+ let a = array[j - 1];
5647
+ let b = array[j];
5648
+ if (compareGenerated(a, b) <= 0) {
5649
+ break;
5650
+ }
5651
+ array[j - 1] = b;
5652
+ array[j] = a;
5653
+ }
5654
+ }
5655
+ } else {
5656
+ quickSort(array, compareGenerated, start);
5657
+ }
5658
+ }
5659
+ BasicSourceMapConsumer.prototype._parseMappings = function SourceMapConsumer_parseMappings(aStr, aSourceRoot) {
5660
+ var generatedLine = 1;
5661
+ var previousGeneratedColumn = 0;
5662
+ var previousOriginalLine = 0;
5663
+ var previousOriginalColumn = 0;
5664
+ var previousSource = 0;
5665
+ var previousName = 0;
5666
+ var length = aStr.length;
5667
+ var index = 0;
5668
+ var cachedSegments = {};
5669
+ var temp = {};
5670
+ var originalMappings = [];
5671
+ var generatedMappings = [];
5672
+ var mapping, str, segment, end, value;
5673
+ let subarrayStart = 0;
5674
+ while (index < length) {
5675
+ if (aStr.charAt(index) === ";") {
5676
+ generatedLine++;
5677
+ index++;
5678
+ previousGeneratedColumn = 0;
5679
+ sortGenerated(generatedMappings, subarrayStart);
5680
+ subarrayStart = generatedMappings.length;
5681
+ } else if (aStr.charAt(index) === ",") {
5682
+ index++;
5683
+ } else {
5684
+ mapping = new Mapping;
5685
+ mapping.generatedLine = generatedLine;
5686
+ for (end = index;end < length; end++) {
5687
+ if (this._charIsMappingSeparator(aStr, end)) {
5688
+ break;
5689
+ }
5690
+ }
5691
+ str = aStr.slice(index, end);
5692
+ segment = [];
5693
+ while (index < end) {
5694
+ base64VLQ.decode(aStr, index, temp);
5695
+ value = temp.value;
5696
+ index = temp.rest;
5697
+ segment.push(value);
5698
+ }
5699
+ if (segment.length === 2) {
5700
+ throw new Error("Found a source, but no line and column");
5701
+ }
5702
+ if (segment.length === 3) {
5703
+ throw new Error("Found a source and line, but no column");
5704
+ }
5705
+ mapping.generatedColumn = previousGeneratedColumn + segment[0];
5706
+ previousGeneratedColumn = mapping.generatedColumn;
5707
+ if (segment.length > 1) {
5708
+ mapping.source = previousSource + segment[1];
5709
+ previousSource += segment[1];
5710
+ mapping.originalLine = previousOriginalLine + segment[2];
5711
+ previousOriginalLine = mapping.originalLine;
5712
+ mapping.originalLine += 1;
5713
+ mapping.originalColumn = previousOriginalColumn + segment[3];
5714
+ previousOriginalColumn = mapping.originalColumn;
5715
+ if (segment.length > 4) {
5716
+ mapping.name = previousName + segment[4];
5717
+ previousName += segment[4];
5718
+ }
5719
+ }
5720
+ generatedMappings.push(mapping);
5721
+ if (typeof mapping.originalLine === "number") {
5722
+ let currentSource = mapping.source;
5723
+ while (originalMappings.length <= currentSource) {
5724
+ originalMappings.push(null);
5725
+ }
5726
+ if (originalMappings[currentSource] === null) {
5727
+ originalMappings[currentSource] = [];
5728
+ }
5729
+ originalMappings[currentSource].push(mapping);
5730
+ }
5731
+ }
5732
+ }
5733
+ sortGenerated(generatedMappings, subarrayStart);
5734
+ this.__generatedMappings = generatedMappings;
5735
+ for (var i = 0;i < originalMappings.length; i++) {
5736
+ if (originalMappings[i] != null) {
5737
+ quickSort(originalMappings[i], util.compareByOriginalPositionsNoSource);
5738
+ }
5739
+ }
5740
+ this.__originalMappings = [].concat(...originalMappings);
5741
+ };
5742
+ BasicSourceMapConsumer.prototype._findMapping = function SourceMapConsumer_findMapping(aNeedle, aMappings, aLineName, aColumnName, aComparator, aBias) {
5743
+ if (aNeedle[aLineName] <= 0) {
5744
+ throw new TypeError("Line must be greater than or equal to 1, got " + aNeedle[aLineName]);
5745
+ }
5746
+ if (aNeedle[aColumnName] < 0) {
5747
+ throw new TypeError("Column must be greater than or equal to 0, got " + aNeedle[aColumnName]);
5748
+ }
5749
+ return binarySearch.search(aNeedle, aMappings, aComparator, aBias);
5750
+ };
5751
+ BasicSourceMapConsumer.prototype.computeColumnSpans = function SourceMapConsumer_computeColumnSpans() {
5752
+ for (var index = 0;index < this._generatedMappings.length; ++index) {
5753
+ var mapping = this._generatedMappings[index];
5754
+ if (index + 1 < this._generatedMappings.length) {
5755
+ var nextMapping = this._generatedMappings[index + 1];
5756
+ if (mapping.generatedLine === nextMapping.generatedLine) {
5757
+ mapping.lastGeneratedColumn = nextMapping.generatedColumn - 1;
5758
+ continue;
5759
+ }
5760
+ }
5761
+ mapping.lastGeneratedColumn = Infinity;
5762
+ }
5763
+ };
5764
+ BasicSourceMapConsumer.prototype.originalPositionFor = function SourceMapConsumer_originalPositionFor(aArgs) {
5765
+ var needle = {
5766
+ generatedLine: util.getArg(aArgs, "line"),
5767
+ generatedColumn: util.getArg(aArgs, "column")
5768
+ };
5769
+ var index = this._findMapping(needle, this._generatedMappings, "generatedLine", "generatedColumn", util.compareByGeneratedPositionsDeflated, util.getArg(aArgs, "bias", SourceMapConsumer.GREATEST_LOWER_BOUND));
5770
+ if (index >= 0) {
5771
+ var mapping = this._generatedMappings[index];
5772
+ if (mapping.generatedLine === needle.generatedLine) {
5773
+ var source = util.getArg(mapping, "source", null);
5774
+ if (source !== null) {
5775
+ source = this._sources.at(source);
5776
+ source = util.computeSourceURL(this.sourceRoot, source, this._sourceMapURL);
5777
+ }
5778
+ var name = util.getArg(mapping, "name", null);
5779
+ if (name !== null) {
5780
+ name = this._names.at(name);
5781
+ }
5782
+ return {
5783
+ source,
5784
+ line: util.getArg(mapping, "originalLine", null),
5785
+ column: util.getArg(mapping, "originalColumn", null),
5786
+ name
5787
+ };
5788
+ }
5789
+ }
5790
+ return {
5791
+ source: null,
5792
+ line: null,
5793
+ column: null,
5794
+ name: null
5795
+ };
5796
+ };
5797
+ BasicSourceMapConsumer.prototype.hasContentsOfAllSources = function BasicSourceMapConsumer_hasContentsOfAllSources() {
5798
+ if (!this.sourcesContent) {
5799
+ return false;
5800
+ }
5801
+ return this.sourcesContent.length >= this._sources.size() && !this.sourcesContent.some(function(sc) {
5802
+ return sc == null;
5803
+ });
5804
+ };
5805
+ BasicSourceMapConsumer.prototype.sourceContentFor = function SourceMapConsumer_sourceContentFor(aSource, nullOnMissing) {
5806
+ if (!this.sourcesContent) {
5807
+ return null;
5808
+ }
5809
+ var index = this._findSourceIndex(aSource);
5810
+ if (index >= 0) {
5811
+ return this.sourcesContent[index];
5812
+ }
5813
+ var relativeSource = aSource;
5814
+ if (this.sourceRoot != null) {
5815
+ relativeSource = util.relative(this.sourceRoot, relativeSource);
5816
+ }
5817
+ var url;
5818
+ if (this.sourceRoot != null && (url = util.urlParse(this.sourceRoot))) {
5819
+ var fileUriAbsPath = relativeSource.replace(/^file:\/\//, "");
5820
+ if (url.scheme == "file" && this._sources.has(fileUriAbsPath)) {
5821
+ return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)];
5822
+ }
5823
+ if ((!url.path || url.path == "/") && this._sources.has("/" + relativeSource)) {
5824
+ return this.sourcesContent[this._sources.indexOf("/" + relativeSource)];
5825
+ }
5826
+ }
5827
+ if (nullOnMissing) {
5828
+ return null;
5829
+ } else {
5830
+ throw new Error('"' + relativeSource + '" is not in the SourceMap.');
5831
+ }
5832
+ };
5833
+ BasicSourceMapConsumer.prototype.generatedPositionFor = function SourceMapConsumer_generatedPositionFor(aArgs) {
5834
+ var source = util.getArg(aArgs, "source");
5835
+ source = this._findSourceIndex(source);
5836
+ if (source < 0) {
5837
+ return {
5838
+ line: null,
5839
+ column: null,
5840
+ lastColumn: null
5841
+ };
5842
+ }
5843
+ var needle = {
5844
+ source,
5845
+ originalLine: util.getArg(aArgs, "line"),
5846
+ originalColumn: util.getArg(aArgs, "column")
5847
+ };
5848
+ var index = this._findMapping(needle, this._originalMappings, "originalLine", "originalColumn", util.compareByOriginalPositions, util.getArg(aArgs, "bias", SourceMapConsumer.GREATEST_LOWER_BOUND));
5849
+ if (index >= 0) {
5850
+ var mapping = this._originalMappings[index];
5851
+ if (mapping.source === needle.source) {
5852
+ return {
5853
+ line: util.getArg(mapping, "generatedLine", null),
5854
+ column: util.getArg(mapping, "generatedColumn", null),
5855
+ lastColumn: util.getArg(mapping, "lastGeneratedColumn", null)
5856
+ };
5857
+ }
5858
+ }
5859
+ return {
5860
+ line: null,
5861
+ column: null,
5862
+ lastColumn: null
5863
+ };
5864
+ };
5865
+ exports.BasicSourceMapConsumer = BasicSourceMapConsumer;
5866
+ function IndexedSourceMapConsumer(aSourceMap, aSourceMapURL) {
5867
+ var sourceMap = aSourceMap;
5868
+ if (typeof aSourceMap === "string") {
5869
+ sourceMap = util.parseSourceMapInput(aSourceMap);
5870
+ }
5871
+ var version = util.getArg(sourceMap, "version");
5872
+ var sections = util.getArg(sourceMap, "sections");
5873
+ if (version != this._version) {
5874
+ throw new Error("Unsupported version: " + version);
5875
+ }
5876
+ this._sources = new ArraySet;
5877
+ this._names = new ArraySet;
5878
+ var lastOffset = {
5879
+ line: -1,
5880
+ column: 0
5881
+ };
5882
+ this._sections = sections.map(function(s) {
5883
+ if (s.url) {
5884
+ throw new Error("Support for url field in sections not implemented.");
5885
+ }
5886
+ var offset = util.getArg(s, "offset");
5887
+ var offsetLine = util.getArg(offset, "line");
5888
+ var offsetColumn = util.getArg(offset, "column");
5889
+ if (offsetLine < lastOffset.line || offsetLine === lastOffset.line && offsetColumn < lastOffset.column) {
5890
+ throw new Error("Section offsets must be ordered and non-overlapping.");
5891
+ }
5892
+ lastOffset = offset;
5893
+ return {
5894
+ generatedOffset: {
5895
+ generatedLine: offsetLine + 1,
5896
+ generatedColumn: offsetColumn + 1
5897
+ },
5898
+ consumer: new SourceMapConsumer(util.getArg(s, "map"), aSourceMapURL)
5899
+ };
5900
+ });
5901
+ }
5902
+ IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype);
5903
+ IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer;
5904
+ IndexedSourceMapConsumer.prototype._version = 3;
5905
+ Object.defineProperty(IndexedSourceMapConsumer.prototype, "sources", {
5906
+ get: function() {
5907
+ var sources = [];
5908
+ for (var i = 0;i < this._sections.length; i++) {
5909
+ for (var j = 0;j < this._sections[i].consumer.sources.length; j++) {
5910
+ sources.push(this._sections[i].consumer.sources[j]);
5911
+ }
5912
+ }
5913
+ return sources;
5914
+ }
5915
+ });
5916
+ IndexedSourceMapConsumer.prototype.originalPositionFor = function IndexedSourceMapConsumer_originalPositionFor(aArgs) {
5917
+ var needle = {
5918
+ generatedLine: util.getArg(aArgs, "line"),
5919
+ generatedColumn: util.getArg(aArgs, "column")
5920
+ };
5921
+ var sectionIndex = binarySearch.search(needle, this._sections, function(needle2, section2) {
5922
+ var cmp = needle2.generatedLine - section2.generatedOffset.generatedLine;
5923
+ if (cmp) {
5924
+ return cmp;
5925
+ }
5926
+ return needle2.generatedColumn - section2.generatedOffset.generatedColumn;
5927
+ });
5928
+ var section = this._sections[sectionIndex];
5929
+ if (!section) {
5930
+ return {
5931
+ source: null,
5932
+ line: null,
5933
+ column: null,
5934
+ name: null
5935
+ };
5936
+ }
5937
+ return section.consumer.originalPositionFor({
5938
+ line: needle.generatedLine - (section.generatedOffset.generatedLine - 1),
5939
+ column: needle.generatedColumn - (section.generatedOffset.generatedLine === needle.generatedLine ? section.generatedOffset.generatedColumn - 1 : 0),
5940
+ bias: aArgs.bias
5941
+ });
5942
+ };
5943
+ IndexedSourceMapConsumer.prototype.hasContentsOfAllSources = function IndexedSourceMapConsumer_hasContentsOfAllSources() {
5944
+ return this._sections.every(function(s) {
5945
+ return s.consumer.hasContentsOfAllSources();
5946
+ });
5947
+ };
5948
+ IndexedSourceMapConsumer.prototype.sourceContentFor = function IndexedSourceMapConsumer_sourceContentFor(aSource, nullOnMissing) {
5949
+ for (var i = 0;i < this._sections.length; i++) {
5950
+ var section = this._sections[i];
5951
+ var content = section.consumer.sourceContentFor(aSource, true);
5952
+ if (content || content === "") {
5953
+ return content;
5954
+ }
5955
+ }
5956
+ if (nullOnMissing) {
5957
+ return null;
5958
+ } else {
5959
+ throw new Error('"' + aSource + '" is not in the SourceMap.');
5960
+ }
5961
+ };
5962
+ IndexedSourceMapConsumer.prototype.generatedPositionFor = function IndexedSourceMapConsumer_generatedPositionFor(aArgs) {
5963
+ for (var i = 0;i < this._sections.length; i++) {
5964
+ var section = this._sections[i];
5965
+ if (section.consumer._findSourceIndex(util.getArg(aArgs, "source")) === -1) {
5966
+ continue;
4272
5967
  }
4273
- var tmp, j;
4274
- i--;
4275
- if (i < 0)
4276
- return { done: true };
4277
- cycles[i]--;
4278
- if (cycles[i] === 0) {
4279
- tmp = indices[i];
4280
- for (j = i;j < n - 1; j++)
4281
- indices[j] = indices[j + 1];
4282
- indices[n - 1] = tmp;
4283
- cycles[i] = n - i;
4284
- return next();
4285
- } else {
4286
- j = cycles[i];
4287
- tmp = indices[i];
4288
- indices[i] = indices[n - j];
4289
- indices[n - j] = tmp;
4290
- i = r;
4291
- indicesToItems(subsequence, array, indices, r);
4292
- return { value: subsequence, done: false };
5968
+ var generatedPosition = section.consumer.generatedPositionFor(aArgs);
5969
+ if (generatedPosition) {
5970
+ var ret = {
5971
+ line: generatedPosition.line + (section.generatedOffset.generatedLine - 1),
5972
+ column: generatedPosition.column + (section.generatedOffset.generatedLine === generatedPosition.line ? section.generatedOffset.generatedColumn - 1 : 0)
5973
+ };
5974
+ return ret;
4293
5975
  }
4294
- });
5976
+ }
5977
+ return {
5978
+ line: null,
5979
+ column: null
5980
+ };
4295
5981
  };
4296
- });
4297
-
4298
- // node_modules/obliterator/power-set.js
4299
- var require_power_set = __commonJS((exports, module) => {
4300
- var Iterator = require_iterator();
4301
- var combinations = require_combinations();
4302
- var chain = require_chain();
4303
- module.exports = function powerSet(array) {
4304
- var n = array.length;
4305
- var iterators = new Array(n + 1);
4306
- iterators[0] = Iterator.of([]);
4307
- for (var i = 1;i < n + 1; i++)
4308
- iterators[i] = combinations(array, i);
4309
- return chain.apply(null, iterators);
5982
+ IndexedSourceMapConsumer.prototype._parseMappings = function IndexedSourceMapConsumer_parseMappings(aStr, aSourceRoot) {
5983
+ this.__generatedMappings = [];
5984
+ this.__originalMappings = [];
5985
+ for (var i = 0;i < this._sections.length; i++) {
5986
+ var section = this._sections[i];
5987
+ var sectionMappings = section.consumer._generatedMappings;
5988
+ for (var j = 0;j < sectionMappings.length; j++) {
5989
+ var mapping = sectionMappings[j];
5990
+ var source = section.consumer._sources.at(mapping.source);
5991
+ if (source !== null) {
5992
+ source = util.computeSourceURL(section.consumer.sourceRoot, source, this._sourceMapURL);
5993
+ }
5994
+ this._sources.add(source);
5995
+ source = this._sources.indexOf(source);
5996
+ var name = null;
5997
+ if (mapping.name) {
5998
+ name = section.consumer._names.at(mapping.name);
5999
+ this._names.add(name);
6000
+ name = this._names.indexOf(name);
6001
+ }
6002
+ var adjustedMapping = {
6003
+ source,
6004
+ generatedLine: mapping.generatedLine + (section.generatedOffset.generatedLine - 1),
6005
+ generatedColumn: mapping.generatedColumn + (section.generatedOffset.generatedLine === mapping.generatedLine ? section.generatedOffset.generatedColumn - 1 : 0),
6006
+ originalLine: mapping.originalLine,
6007
+ originalColumn: mapping.originalColumn,
6008
+ name
6009
+ };
6010
+ this.__generatedMappings.push(adjustedMapping);
6011
+ if (typeof adjustedMapping.originalLine === "number") {
6012
+ this.__originalMappings.push(adjustedMapping);
6013
+ }
6014
+ }
6015
+ }
6016
+ quickSort(this.__generatedMappings, util.compareByGeneratedPositionsDeflated);
6017
+ quickSort(this.__originalMappings, util.compareByOriginalPositions);
4310
6018
  };
6019
+ exports.IndexedSourceMapConsumer = IndexedSourceMapConsumer;
4311
6020
  });
4312
6021
 
4313
- // node_modules/obliterator/range.js
4314
- var require_range = __commonJS((exports, module) => {
4315
- var Iterator = require_iterator();
4316
- module.exports = function range(start, end, step) {
4317
- if (arguments.length === 1) {
4318
- end = start;
4319
- start = 0;
6022
+ // node_modules/source-map-js/lib/source-node.js
6023
+ var require_source_node = __commonJS((exports) => {
6024
+ var SourceMapGenerator = require_source_map_generator().SourceMapGenerator;
6025
+ var util = require_util();
6026
+ var REGEX_NEWLINE = /(\r?\n)/;
6027
+ var NEWLINE_CODE = 10;
6028
+ var isSourceNode = "$$$isSourceNode$$$";
6029
+ function SourceNode(aLine, aColumn, aSource, aChunks, aName) {
6030
+ this.children = [];
6031
+ this.sourceContents = {};
6032
+ this.line = aLine == null ? null : aLine;
6033
+ this.column = aColumn == null ? null : aColumn;
6034
+ this.source = aSource == null ? null : aSource;
6035
+ this.name = aName == null ? null : aName;
6036
+ this[isSourceNode] = true;
6037
+ if (aChunks != null)
6038
+ this.add(aChunks);
6039
+ }
6040
+ SourceNode.fromStringWithSourceMap = function SourceNode_fromStringWithSourceMap(aGeneratedCode, aSourceMapConsumer, aRelativePath) {
6041
+ var node = new SourceNode;
6042
+ var remainingLines = aGeneratedCode.split(REGEX_NEWLINE);
6043
+ var remainingLinesIndex = 0;
6044
+ var shiftNextLine = function() {
6045
+ var lineContents = getNextLine();
6046
+ var newLine = getNextLine() || "";
6047
+ return lineContents + newLine;
6048
+ function getNextLine() {
6049
+ return remainingLinesIndex < remainingLines.length ? remainingLines[remainingLinesIndex++] : undefined;
6050
+ }
6051
+ };
6052
+ var lastGeneratedLine = 1, lastGeneratedColumn = 0;
6053
+ var lastMapping = null;
6054
+ aSourceMapConsumer.eachMapping(function(mapping) {
6055
+ if (lastMapping !== null) {
6056
+ if (lastGeneratedLine < mapping.generatedLine) {
6057
+ addMappingWithCode(lastMapping, shiftNextLine());
6058
+ lastGeneratedLine++;
6059
+ lastGeneratedColumn = 0;
6060
+ } else {
6061
+ var nextLine = remainingLines[remainingLinesIndex] || "";
6062
+ var code = nextLine.substr(0, mapping.generatedColumn - lastGeneratedColumn);
6063
+ remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn - lastGeneratedColumn);
6064
+ lastGeneratedColumn = mapping.generatedColumn;
6065
+ addMappingWithCode(lastMapping, code);
6066
+ lastMapping = mapping;
6067
+ return;
6068
+ }
6069
+ }
6070
+ while (lastGeneratedLine < mapping.generatedLine) {
6071
+ node.add(shiftNextLine());
6072
+ lastGeneratedLine++;
6073
+ }
6074
+ if (lastGeneratedColumn < mapping.generatedColumn) {
6075
+ var nextLine = remainingLines[remainingLinesIndex] || "";
6076
+ node.add(nextLine.substr(0, mapping.generatedColumn));
6077
+ remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn);
6078
+ lastGeneratedColumn = mapping.generatedColumn;
6079
+ }
6080
+ lastMapping = mapping;
6081
+ }, this);
6082
+ if (remainingLinesIndex < remainingLines.length) {
6083
+ if (lastMapping) {
6084
+ addMappingWithCode(lastMapping, shiftNextLine());
6085
+ }
6086
+ node.add(remainingLines.splice(remainingLinesIndex).join(""));
4320
6087
  }
4321
- if (arguments.length < 3)
4322
- step = 1;
4323
- var i = start;
4324
- var iterator = new Iterator(function() {
4325
- if (i < end) {
4326
- var value = i;
4327
- i += step;
4328
- return { value, done: false };
6088
+ aSourceMapConsumer.sources.forEach(function(sourceFile) {
6089
+ var content = aSourceMapConsumer.sourceContentFor(sourceFile);
6090
+ if (content != null) {
6091
+ if (aRelativePath != null) {
6092
+ sourceFile = util.join(aRelativePath, sourceFile);
6093
+ }
6094
+ node.setSourceContent(sourceFile, content);
4329
6095
  }
4330
- return { done: true };
4331
6096
  });
4332
- iterator.start = start;
4333
- iterator.end = end;
4334
- iterator.step = step;
4335
- return iterator;
6097
+ return node;
6098
+ function addMappingWithCode(mapping, code) {
6099
+ if (mapping === null || mapping.source === undefined) {
6100
+ node.add(code);
6101
+ } else {
6102
+ var source = aRelativePath ? util.join(aRelativePath, mapping.source) : mapping.source;
6103
+ node.add(new SourceNode(mapping.originalLine, mapping.originalColumn, source, code, mapping.name));
6104
+ }
6105
+ }
4336
6106
  };
4337
- });
4338
-
4339
- // node_modules/obliterator/some.js
4340
- var require_some = __commonJS((exports, module) => {
4341
- var iter = require_iter();
4342
- module.exports = function some(iterable, predicate) {
4343
- var iterator = iter(iterable);
4344
- var step;
4345
- while (step = iterator.next(), !step.done) {
4346
- if (predicate(step.value))
4347
- return true;
6107
+ SourceNode.prototype.add = function SourceNode_add(aChunk) {
6108
+ if (Array.isArray(aChunk)) {
6109
+ aChunk.forEach(function(chunk) {
6110
+ this.add(chunk);
6111
+ }, this);
6112
+ } else if (aChunk[isSourceNode] || typeof aChunk === "string") {
6113
+ if (aChunk) {
6114
+ this.children.push(aChunk);
6115
+ }
6116
+ } else {
6117
+ throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk);
4348
6118
  }
4349
- return false;
6119
+ return this;
4350
6120
  };
4351
- });
4352
-
4353
- // node_modules/obliterator/split.js
4354
- var require_split = __commonJS((exports, module) => {
4355
- var Iterator = require_iterator();
4356
- function makeGlobal(pattern) {
4357
- var flags = "g";
4358
- if (pattern.multiline)
4359
- flags += "m";
4360
- if (pattern.ignoreCase)
4361
- flags += "i";
4362
- if (pattern.sticky)
4363
- flags += "y";
4364
- if (pattern.unicode)
4365
- flags += "u";
4366
- return new RegExp(pattern.source, flags);
4367
- }
4368
- module.exports = function split(pattern, string) {
4369
- if (!(pattern instanceof RegExp))
4370
- throw new Error("obliterator/split: invalid pattern. Expecting a regular expression.");
4371
- if (typeof string !== "string")
4372
- throw new Error("obliterator/split: invalid target. Expecting a string.");
4373
- pattern = makeGlobal(pattern);
4374
- var consumed = false, current = 0;
4375
- return new Iterator(function() {
4376
- if (consumed)
4377
- return { done: true };
4378
- var match = pattern.exec(string), value, length;
4379
- if (match) {
4380
- length = match.index + match[0].length;
4381
- value = string.slice(current, match.index);
4382
- current = length;
4383
- } else {
4384
- consumed = true;
4385
- value = string.slice(current);
6121
+ SourceNode.prototype.prepend = function SourceNode_prepend(aChunk) {
6122
+ if (Array.isArray(aChunk)) {
6123
+ for (var i = aChunk.length - 1;i >= 0; i--) {
6124
+ this.prepend(aChunk[i]);
4386
6125
  }
4387
- return { value, done: false };
4388
- });
6126
+ } else if (aChunk[isSourceNode] || typeof aChunk === "string") {
6127
+ this.children.unshift(aChunk);
6128
+ } else {
6129
+ throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk);
6130
+ }
6131
+ return this;
4389
6132
  };
4390
- });
4391
-
4392
- // node_modules/obliterator/take.js
4393
- var require_take = __commonJS((exports, module) => {
4394
- var iter = require_iter();
4395
- module.exports = function take(iterable, n) {
4396
- var l = arguments.length > 1 ? n : Infinity, array = l !== Infinity ? new Array(l) : [], step, i = 0;
4397
- var iterator = iter(iterable);
4398
- while (true) {
4399
- if (i === l)
4400
- return array;
4401
- step = iterator.next();
4402
- if (step.done) {
4403
- if (i !== n)
4404
- array.length = i;
4405
- return array;
6133
+ SourceNode.prototype.walk = function SourceNode_walk(aFn) {
6134
+ var chunk;
6135
+ for (var i = 0, len = this.children.length;i < len; i++) {
6136
+ chunk = this.children[i];
6137
+ if (chunk[isSourceNode]) {
6138
+ chunk.walk(aFn);
6139
+ } else {
6140
+ if (chunk !== "") {
6141
+ aFn(chunk, {
6142
+ source: this.source,
6143
+ line: this.line,
6144
+ column: this.column,
6145
+ name: this.name
6146
+ });
6147
+ }
4406
6148
  }
4407
- array[i++] = step.value;
4408
6149
  }
4409
6150
  };
4410
- });
4411
-
4412
- // node_modules/obliterator/take-into.js
4413
- var require_take_into = __commonJS((exports, module) => {
4414
- var iter = require_iter();
4415
- module.exports = function takeInto(ArrayClass, iterable, n) {
4416
- var array = new ArrayClass(n), step, i = 0;
4417
- var iterator = iter(iterable);
4418
- while (true) {
4419
- if (i === n)
4420
- return array;
4421
- step = iterator.next();
4422
- if (step.done) {
4423
- if (i !== n)
4424
- return array.slice(0, i);
4425
- return array;
6151
+ SourceNode.prototype.join = function SourceNode_join(aSep) {
6152
+ var newChildren;
6153
+ var i;
6154
+ var len = this.children.length;
6155
+ if (len > 0) {
6156
+ newChildren = [];
6157
+ for (i = 0;i < len - 1; i++) {
6158
+ newChildren.push(this.children[i]);
6159
+ newChildren.push(aSep);
6160
+ }
6161
+ newChildren.push(this.children[i]);
6162
+ this.children = newChildren;
6163
+ }
6164
+ return this;
6165
+ };
6166
+ SourceNode.prototype.replaceRight = function SourceNode_replaceRight(aPattern, aReplacement) {
6167
+ var lastChild = this.children[this.children.length - 1];
6168
+ if (lastChild[isSourceNode]) {
6169
+ lastChild.replaceRight(aPattern, aReplacement);
6170
+ } else if (typeof lastChild === "string") {
6171
+ this.children[this.children.length - 1] = lastChild.replace(aPattern, aReplacement);
6172
+ } else {
6173
+ this.children.push("".replace(aPattern, aReplacement));
6174
+ }
6175
+ return this;
6176
+ };
6177
+ SourceNode.prototype.setSourceContent = function SourceNode_setSourceContent(aSourceFile, aSourceContent) {
6178
+ this.sourceContents[util.toSetString(aSourceFile)] = aSourceContent;
6179
+ };
6180
+ SourceNode.prototype.walkSourceContents = function SourceNode_walkSourceContents(aFn) {
6181
+ for (var i = 0, len = this.children.length;i < len; i++) {
6182
+ if (this.children[i][isSourceNode]) {
6183
+ this.children[i].walkSourceContents(aFn);
4426
6184
  }
4427
- array[i++] = step.value;
4428
6185
  }
6186
+ var sources = Object.keys(this.sourceContents);
6187
+ for (var i = 0, len = sources.length;i < len; i++) {
6188
+ aFn(util.fromSetString(sources[i]), this.sourceContents[sources[i]]);
6189
+ }
6190
+ };
6191
+ SourceNode.prototype.toString = function SourceNode_toString() {
6192
+ var str = "";
6193
+ this.walk(function(chunk) {
6194
+ str += chunk;
6195
+ });
6196
+ return str;
6197
+ };
6198
+ SourceNode.prototype.toStringWithSourceMap = function SourceNode_toStringWithSourceMap(aArgs) {
6199
+ var generated = {
6200
+ code: "",
6201
+ line: 1,
6202
+ column: 0
6203
+ };
6204
+ var map = new SourceMapGenerator(aArgs);
6205
+ var sourceMappingActive = false;
6206
+ var lastOriginalSource = null;
6207
+ var lastOriginalLine = null;
6208
+ var lastOriginalColumn = null;
6209
+ var lastOriginalName = null;
6210
+ this.walk(function(chunk, original) {
6211
+ generated.code += chunk;
6212
+ if (original.source !== null && original.line !== null && original.column !== null) {
6213
+ if (lastOriginalSource !== original.source || lastOriginalLine !== original.line || lastOriginalColumn !== original.column || lastOriginalName !== original.name) {
6214
+ map.addMapping({
6215
+ source: original.source,
6216
+ original: {
6217
+ line: original.line,
6218
+ column: original.column
6219
+ },
6220
+ generated: {
6221
+ line: generated.line,
6222
+ column: generated.column
6223
+ },
6224
+ name: original.name
6225
+ });
6226
+ }
6227
+ lastOriginalSource = original.source;
6228
+ lastOriginalLine = original.line;
6229
+ lastOriginalColumn = original.column;
6230
+ lastOriginalName = original.name;
6231
+ sourceMappingActive = true;
6232
+ } else if (sourceMappingActive) {
6233
+ map.addMapping({
6234
+ generated: {
6235
+ line: generated.line,
6236
+ column: generated.column
6237
+ }
6238
+ });
6239
+ lastOriginalSource = null;
6240
+ sourceMappingActive = false;
6241
+ }
6242
+ for (var idx = 0, length = chunk.length;idx < length; idx++) {
6243
+ if (chunk.charCodeAt(idx) === NEWLINE_CODE) {
6244
+ generated.line++;
6245
+ generated.column = 0;
6246
+ if (idx + 1 === length) {
6247
+ lastOriginalSource = null;
6248
+ sourceMappingActive = false;
6249
+ } else if (sourceMappingActive) {
6250
+ map.addMapping({
6251
+ source: original.source,
6252
+ original: {
6253
+ line: original.line,
6254
+ column: original.column
6255
+ },
6256
+ generated: {
6257
+ line: generated.line,
6258
+ column: generated.column
6259
+ },
6260
+ name: original.name
6261
+ });
6262
+ }
6263
+ } else {
6264
+ generated.column++;
6265
+ }
6266
+ }
6267
+ });
6268
+ this.walkSourceContents(function(sourceFile, sourceContent) {
6269
+ map.setSourceContent(sourceFile, sourceContent);
6270
+ });
6271
+ return { code: generated.code, map };
4429
6272
  };
6273
+ exports.SourceNode = SourceNode;
4430
6274
  });
4431
6275
 
4432
6276
  // node_modules/adm-zip/util/constants.js
@@ -4942,7 +6786,7 @@ var require_decoder = __commonJS((exports, module) => {
4942
6786
  });
4943
6787
 
4944
6788
  // node_modules/adm-zip/util/index.js
4945
- var require_util = __commonJS((exports, module) => {
6789
+ var require_util2 = __commonJS((exports, module) => {
4946
6790
  module.exports = require_utils3();
4947
6791
  module.exports.Constants = require_constants();
4948
6792
  module.exports.Errors = require_errors();
@@ -4952,7 +6796,7 @@ var require_util = __commonJS((exports, module) => {
4952
6796
 
4953
6797
  // node_modules/adm-zip/headers/entryHeader.js
4954
6798
  var require_entryHeader = __commonJS((exports, module) => {
4955
- var Utils = require_util();
6799
+ var Utils = require_util2();
4956
6800
  var Constants = Utils.Constants;
4957
6801
  module.exports = function() {
4958
6802
  var _verMade = 20, _version = 10, _flags = 0, _method = 0, _time = 0, _crc = 0, _compressedSize = 0, _size = 0, _fnameLen = 0, _extraLen = 0, _comLen = 0, _diskStart = 0, _inattr = 0, _attr = 0, _offset = 0;
@@ -5217,7 +7061,7 @@ var require_entryHeader = __commonJS((exports, module) => {
5217
7061
 
5218
7062
  // node_modules/adm-zip/headers/mainHeader.js
5219
7063
  var require_mainHeader = __commonJS((exports, module) => {
5220
- var Utils = require_util();
7064
+ var Utils = require_util2();
5221
7065
  var Constants = Utils.Constants;
5222
7066
  module.exports = function() {
5223
7067
  var _volumeEntries = 0, _totalEntries = 0, _size = 0, _offset = 0, _commentLength = 0;
@@ -5503,7 +7347,7 @@ var require_methods = __commonJS((exports) => {
5503
7347
 
5504
7348
  // node_modules/adm-zip/zipEntry.js
5505
7349
  var require_zipEntry = __commonJS((exports, module) => {
5506
- var Utils = require_util();
7350
+ var Utils = require_util2();
5507
7351
  var Headers = require_headers();
5508
7352
  var Constants = Utils.Constants;
5509
7353
  var Methods = require_methods();
@@ -5841,7 +7685,7 @@ var require_zipEntry = __commonJS((exports, module) => {
5841
7685
  var require_zipFile = __commonJS((exports, module) => {
5842
7686
  var ZipEntry = require_zipEntry();
5843
7687
  var Headers = require_headers();
5844
- var Utils = require_util();
7688
+ var Utils = require_util2();
5845
7689
  module.exports = function(inBuffer, options) {
5846
7690
  var entryList = [], entryTable = {}, _comment = Buffer.alloc(0), mainHeader = new Headers.MainHeader, loadedEntries = false;
5847
7691
  var password = null;
@@ -6142,7 +7986,7 @@ var require_zipFile = __commonJS((exports, module) => {
6142
7986
 
6143
7987
  // node_modules/adm-zip/adm-zip.js
6144
7988
  var require_adm_zip = __commonJS((exports, module) => {
6145
- var Utils = require_util();
7989
+ var Utils = require_util2();
6146
7990
  var pth = __require("path");
6147
7991
  var ZipEntry = require_zipEntry();
6148
7992
  var ZipFile = require_zipFile();
@@ -6466,12 +8310,12 @@ var require_adm_zip = __commonJS((exports, module) => {
6466
8310
  });
6467
8311
  },
6468
8312
  addLocalFolderPromise: function(localPath2, props) {
6469
- return new Promise((resolve, reject) => {
8313
+ return new Promise((resolve2, reject) => {
6470
8314
  this.addLocalFolderAsync2(Object.assign({ localPath: localPath2 }, props), (err, done) => {
6471
8315
  if (err)
6472
8316
  reject(err);
6473
8317
  if (done)
6474
- resolve(this);
8318
+ resolve2(this);
6475
8319
  });
6476
8320
  });
6477
8321
  },
@@ -6603,12 +8447,12 @@ var require_adm_zip = __commonJS((exports, module) => {
6603
8447
  keepOriginalPermission = get_Bool(false, keepOriginalPermission);
6604
8448
  overwrite = get_Bool(false, overwrite);
6605
8449
  if (!callback) {
6606
- return new Promise((resolve, reject) => {
8450
+ return new Promise((resolve2, reject) => {
6607
8451
  this.extractAllToAsync(targetPath, overwrite, keepOriginalPermission, function(err) {
6608
8452
  if (err) {
6609
8453
  reject(err);
6610
8454
  } else {
6611
- resolve(this);
8455
+ resolve2(this);
6612
8456
  }
6613
8457
  });
6614
8458
  });
@@ -6694,20 +8538,20 @@ var require_adm_zip = __commonJS((exports, module) => {
6694
8538
  },
6695
8539
  writeZipPromise: function(targetFileName, props) {
6696
8540
  const { overwrite, perm } = Object.assign({ overwrite: true }, props);
6697
- return new Promise((resolve, reject) => {
8541
+ return new Promise((resolve2, reject) => {
6698
8542
  if (!targetFileName && opts.filename)
6699
8543
  targetFileName = opts.filename;
6700
8544
  if (!targetFileName)
6701
8545
  reject("ADM-ZIP: ZIP File Name Missing");
6702
8546
  this.toBufferPromise().then((zipData) => {
6703
- const ret = (done) => done ? resolve(done) : reject("ADM-ZIP: Wasn't able to write zip file");
8547
+ const ret = (done) => done ? resolve2(done) : reject("ADM-ZIP: Wasn't able to write zip file");
6704
8548
  filetools.writeFileToAsync(targetFileName, zipData, overwrite, perm, ret);
6705
8549
  }, reject);
6706
8550
  });
6707
8551
  },
6708
8552
  toBufferPromise: function() {
6709
- return new Promise((resolve, reject) => {
6710
- _zip.toAsyncBuffer(resolve, reject);
8553
+ return new Promise((resolve2, reject) => {
8554
+ _zip.toAsyncBuffer(resolve2, reject);
6711
8555
  });
6712
8556
  },
6713
8557
  toBuffer: function(onSuccess, onFail, onItemStart, onItemEnd) {
@@ -8861,14 +10705,14 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
8861
10705
  prevActScopeDepth !== actScopeDepth - 1 && console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. ");
8862
10706
  actScopeDepth = prevActScopeDepth;
8863
10707
  }
8864
- function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
10708
+ function recursivelyFlushAsyncActWork(returnValue, resolve2, reject) {
8865
10709
  var queue = ReactSharedInternals.actQueue;
8866
10710
  if (queue !== null)
8867
10711
  if (queue.length !== 0)
8868
10712
  try {
8869
10713
  flushActQueue(queue);
8870
10714
  enqueueTask(function() {
8871
- return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
10715
+ return recursivelyFlushAsyncActWork(returnValue, resolve2, reject);
8872
10716
  });
8873
10717
  return;
8874
10718
  } catch (error) {
@@ -8876,7 +10720,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
8876
10720
  }
8877
10721
  else
8878
10722
  ReactSharedInternals.actQueue = null;
8879
- 0 < ReactSharedInternals.thrownErrors.length ? (queue = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(queue)) : resolve(returnValue);
10723
+ 0 < ReactSharedInternals.thrownErrors.length ? (queue = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(queue)) : resolve2(returnValue);
8880
10724
  }
8881
10725
  function flushActQueue(queue) {
8882
10726
  if (!isFlushing) {
@@ -9052,14 +10896,14 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
9052
10896
  didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"));
9053
10897
  });
9054
10898
  return {
9055
- then: function(resolve, reject) {
10899
+ then: function(resolve2, reject) {
9056
10900
  didAwaitActCall = true;
9057
10901
  thenable.then(function(returnValue) {
9058
10902
  popActScope(prevActQueue, prevActScopeDepth);
9059
10903
  if (prevActScopeDepth === 0) {
9060
10904
  try {
9061
10905
  flushActQueue(queue), enqueueTask(function() {
9062
- return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
10906
+ return recursivelyFlushAsyncActWork(returnValue, resolve2, reject);
9063
10907
  });
9064
10908
  } catch (error$0) {
9065
10909
  ReactSharedInternals.thrownErrors.push(error$0);
@@ -9070,7 +10914,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
9070
10914
  reject(_thrownError);
9071
10915
  }
9072
10916
  } else
9073
- resolve(returnValue);
10917
+ resolve2(returnValue);
9074
10918
  }, function(error) {
9075
10919
  popActScope(prevActQueue, prevActScopeDepth);
9076
10920
  0 < ReactSharedInternals.thrownErrors.length ? (error = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(error)) : reject(error);
@@ -9086,11 +10930,11 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
9086
10930
  if (0 < ReactSharedInternals.thrownErrors.length)
9087
10931
  throw callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
9088
10932
  return {
9089
- then: function(resolve, reject) {
10933
+ then: function(resolve2, reject) {
9090
10934
  didAwaitActCall = true;
9091
10935
  prevActScopeDepth === 0 ? (ReactSharedInternals.actQueue = queue, enqueueTask(function() {
9092
- return recursivelyFlushAsyncActWork(returnValue$jscomp$0, resolve, reject);
9093
- })) : resolve(returnValue$jscomp$0);
10936
+ return recursivelyFlushAsyncActWork(returnValue$jscomp$0, resolve2, reject);
10937
+ })) : resolve2(returnValue$jscomp$0);
9094
10938
  }
9095
10939
  };
9096
10940
  };
@@ -9329,8 +11173,9 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
9329
11173
 
9330
11174
  // node_modules/react/index.js
9331
11175
  var require_react = __commonJS((exports, module) => {
11176
+ var react_development = __toESM(require_react_development());
9332
11177
  if (false) {} else {
9333
- module.exports = require_react_development();
11178
+ module.exports = react_development;
9334
11179
  }
9335
11180
  });
9336
11181
 
@@ -9392,14 +11237,14 @@ var require_signal_exit = __commonJS((exports, module) => {
9392
11237
  if (opts && opts.alwaysLast) {
9393
11238
  ev = "afterexit";
9394
11239
  }
9395
- var remove = function() {
11240
+ var remove2 = function() {
9396
11241
  emitter.removeListener(ev, cb);
9397
11242
  if (emitter.listeners("exit").length === 0 && emitter.listeners("afterexit").length === 0) {
9398
11243
  unload();
9399
11244
  }
9400
11245
  };
9401
11246
  emitter.on(ev, cb);
9402
- return remove;
11247
+ return remove2;
9403
11248
  };
9404
11249
  unload = function unload2() {
9405
11250
  if (!loaded || !processOk(global.process)) {
@@ -9590,16 +11435,16 @@ var require_scheduler_development = __commonJS((exports) => {
9590
11435
  function pop(heap) {
9591
11436
  if (heap.length === 0)
9592
11437
  return null;
9593
- var first = heap[0], last = heap.pop();
9594
- if (last !== first) {
9595
- heap[0] = last;
11438
+ var first = heap[0], last2 = heap.pop();
11439
+ if (last2 !== first) {
11440
+ heap[0] = last2;
9596
11441
  a:
9597
11442
  for (var index = 0, length = heap.length, halfLength = length >>> 1;index < halfLength; ) {
9598
11443
  var leftIndex = 2 * (index + 1) - 1, left = heap[leftIndex], rightIndex = leftIndex + 1, right = heap[rightIndex];
9599
- if (0 > compare(left, last))
9600
- rightIndex < length && 0 > compare(right, left) ? (heap[index] = right, heap[rightIndex] = last, index = rightIndex) : (heap[index] = left, heap[leftIndex] = last, index = leftIndex);
9601
- else if (rightIndex < length && 0 > compare(right, last))
9602
- heap[index] = right, heap[rightIndex] = last, index = rightIndex;
11444
+ if (0 > compare(left, last2))
11445
+ rightIndex < length && 0 > compare(right, left) ? (heap[index] = right, heap[rightIndex] = last2, index = rightIndex) : (heap[index] = left, heap[leftIndex] = last2, index = leftIndex);
11446
+ else if (rightIndex < length && 0 > compare(right, last2))
11447
+ heap[index] = right, heap[rightIndex] = last2, index = rightIndex;
9603
11448
  else
9604
11449
  break a;
9605
11450
  }
@@ -9773,8 +11618,9 @@ var require_scheduler_development = __commonJS((exports) => {
9773
11618
 
9774
11619
  // node_modules/scheduler/index.js
9775
11620
  var require_scheduler = __commonJS((exports, module) => {
11621
+ var scheduler_development = __toESM(require_scheduler_development());
9776
11622
  if (false) {} else {
9777
- module.exports = require_scheduler_development();
11623
+ module.exports = scheduler_development;
9778
11624
  }
9779
11625
  });
9780
11626
 
@@ -9791,7 +11637,7 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
9791
11637
  function copyWithSetImpl(obj, path11, index, value) {
9792
11638
  if (index >= path11.length)
9793
11639
  return value;
9794
- var key = path11[index], updated = isArrayImpl(obj) ? obj.slice() : assign({}, obj);
11640
+ var key = path11[index], updated = isArrayImpl(obj) ? obj.slice() : assign2({}, obj);
9795
11641
  updated[key] = copyWithSetImpl(obj[key], path11, index + 1, value);
9796
11642
  return updated;
9797
11643
  }
@@ -9808,12 +11654,12 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
9808
11654
  }
9809
11655
  }
9810
11656
  function copyWithRenameImpl(obj, oldPath, newPath, index) {
9811
- var oldKey = oldPath[index], updated = isArrayImpl(obj) ? obj.slice() : assign({}, obj);
11657
+ var oldKey = oldPath[index], updated = isArrayImpl(obj) ? obj.slice() : assign2({}, obj);
9812
11658
  index + 1 === oldPath.length ? (updated[newPath[index]] = updated[oldKey], isArrayImpl(updated) ? updated.splice(oldKey, 1) : delete updated[oldKey]) : updated[oldKey] = copyWithRenameImpl(obj[oldKey], oldPath, newPath, index + 1);
9813
11659
  return updated;
9814
11660
  }
9815
11661
  function copyWithDeleteImpl(obj, path11, index) {
9816
- var key = path11[index], updated = isArrayImpl(obj) ? obj.slice() : assign({}, obj);
11662
+ var key = path11[index], updated = isArrayImpl(obj) ? obj.slice() : assign2({}, obj);
9817
11663
  if (index + 1 === path11.length)
9818
11664
  return isArrayImpl(updated) ? updated.splice(key, 1) : delete updated[key], updated;
9819
11665
  updated[key] = copyWithDeleteImpl(obj[key], path11, index + 1);
@@ -9831,12 +11677,12 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
9831
11677
  function scheduleRoot(root, element) {
9832
11678
  root.context === emptyContextObject && (updateContainerSync(element, root, null, null), flushSyncWork());
9833
11679
  }
9834
- function scheduleRefresh(root, update) {
11680
+ function scheduleRefresh(root, update2) {
9835
11681
  if (resolveFamily !== null) {
9836
- var staleFamilies = update.staleFamilies;
9837
- update = update.updatedFamilies;
11682
+ var staleFamilies = update2.staleFamilies;
11683
+ update2 = update2.updatedFamilies;
9838
11684
  flushPendingEffects();
9839
- scheduleFibersWithFamiliesRecursively(root.current, update, staleFamilies);
11685
+ scheduleFibersWithFamiliesRecursively(root.current, update2, staleFamilies);
9840
11686
  flushSyncWork();
9841
11687
  }
9842
11688
  }
@@ -9849,11 +11695,11 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
9849
11695
  function warnInvalidContextAccess() {
9850
11696
  console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");
9851
11697
  }
9852
- function noop() {}
11698
+ function noop2() {}
9853
11699
  function warnForMissingKey() {}
9854
- function setToSortedString(set) {
11700
+ function setToSortedString(set2) {
9855
11701
  var array = [];
9856
- set.forEach(function(value) {
11702
+ set2.forEach(function(value) {
9857
11703
  array.push(value);
9858
11704
  });
9859
11705
  return array.sort().join(", ");
@@ -10225,9 +12071,9 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
10225
12071
  (nextRetryLane & 62914560) === 0 && (nextRetryLane = 4194304);
10226
12072
  return lane;
10227
12073
  }
10228
- function createLaneMap(initial) {
12074
+ function createLaneMap(initial2) {
10229
12075
  for (var laneMap = [], i = 0;31 > i; i++)
10230
- laneMap.push(initial);
12076
+ laneMap.push(initial2);
10231
12077
  return laneMap;
10232
12078
  }
10233
12079
  function markRootUpdated$1(root, updateLane) {
@@ -10252,8 +12098,8 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
10252
12098
  var hiddenUpdatesForLane = hiddenUpdates[index];
10253
12099
  if (hiddenUpdatesForLane !== null)
10254
12100
  for (hiddenUpdates[index] = null, index = 0;index < hiddenUpdatesForLane.length; index++) {
10255
- var update = hiddenUpdatesForLane[index];
10256
- update !== null && (update.lane &= -536870913);
12101
+ var update2 = hiddenUpdatesForLane[index];
12102
+ update2 !== null && (update2.lane &= -536870913);
10257
12103
  }
10258
12104
  remainingLanes &= ~lane;
10259
12105
  }
@@ -10738,13 +12584,13 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
10738
12584
  if (disabledDepth === 0) {
10739
12585
  var props = { configurable: true, enumerable: true, writable: true };
10740
12586
  Object.defineProperties(console, {
10741
- log: assign({}, props, { value: prevLog }),
10742
- info: assign({}, props, { value: prevInfo }),
10743
- warn: assign({}, props, { value: prevWarn }),
10744
- error: assign({}, props, { value: prevError }),
10745
- group: assign({}, props, { value: prevGroup }),
10746
- groupCollapsed: assign({}, props, { value: prevGroupCollapsed }),
10747
- groupEnd: assign({}, props, { value: prevGroupEnd })
12587
+ log: assign2({}, props, { value: prevLog }),
12588
+ info: assign2({}, props, { value: prevInfo }),
12589
+ warn: assign2({}, props, { value: prevWarn }),
12590
+ error: assign2({}, props, { value: prevError }),
12591
+ group: assign2({}, props, { value: prevGroup }),
12592
+ groupCollapsed: assign2({}, props, { value: prevGroupCollapsed }),
12593
+ groupEnd: assign2({}, props, { value: prevGroupEnd })
10748
12594
  });
10749
12595
  }
10750
12596
  0 > disabledDepth && console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
@@ -10830,9 +12676,9 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
10830
12676
  }
10831
12677
  (Fake = fn()) && typeof Fake.catch === "function" && Fake.catch(function() {});
10832
12678
  }
10833
- } catch (sample) {
10834
- if (sample && control && typeof sample.stack === "string")
10835
- return [sample.stack, control.stack];
12679
+ } catch (sample2) {
12680
+ if (sample2 && control && typeof sample2.stack === "string")
12681
+ return [sample2.stack, control.stack];
10836
12682
  }
10837
12683
  return [null, null];
10838
12684
  }
@@ -11161,7 +13007,7 @@ Error generating stack: ` + x.message + `
11161
13007
  `;
11162
13008
  }
11163
13009
  function describePropertiesDiff(clientObject, serverObject, indent) {
11164
- var properties = "", remainingServerProperties = assign({}, serverObject), propName;
13010
+ var properties = "", remainingServerProperties = assign2({}, serverObject), propName;
11165
13011
  for (propName in clientObject)
11166
13012
  if (clientObject.hasOwnProperty(propName)) {
11167
13013
  delete remainingServerProperties[propName];
@@ -11663,21 +13509,21 @@ It can also happen if the client has a browser extension installed which messes
11663
13509
  cache2.controller.abort();
11664
13510
  });
11665
13511
  }
11666
- function startUpdateTimerByLane(lane, method, fiber) {
13512
+ function startUpdateTimerByLane(lane, method2, fiber) {
11667
13513
  if ((lane & 127) !== 0)
11668
- 0 > blockingUpdateTime && (blockingUpdateTime = now(), blockingUpdateTask = createTask(method), blockingUpdateMethodName = method, fiber != null && (blockingUpdateComponentName = getComponentNameFromFiber(fiber)), isAlreadyRendering() && (componentEffectSpawnedUpdate = true, blockingUpdateType = 1), lane = resolveEventTimeStamp(), method = resolveEventType(), lane !== blockingEventRepeatTime || method !== blockingEventType ? blockingEventRepeatTime = -1.1 : method !== null && (blockingUpdateType = 1), blockingEventTime = lane, blockingEventType = method);
11669
- else if ((lane & 4194048) !== 0 && 0 > transitionUpdateTime && (transitionUpdateTime = now(), transitionUpdateTask = createTask(method), transitionUpdateMethodName = method, fiber != null && (transitionUpdateComponentName = getComponentNameFromFiber(fiber)), 0 > transitionStartTime)) {
13514
+ 0 > blockingUpdateTime && (blockingUpdateTime = now2(), blockingUpdateTask = createTask(method2), blockingUpdateMethodName = method2, fiber != null && (blockingUpdateComponentName = getComponentNameFromFiber(fiber)), isAlreadyRendering() && (componentEffectSpawnedUpdate = true, blockingUpdateType = 1), lane = resolveEventTimeStamp(), method2 = resolveEventType(), lane !== blockingEventRepeatTime || method2 !== blockingEventType ? blockingEventRepeatTime = -1.1 : method2 !== null && (blockingUpdateType = 1), blockingEventTime = lane, blockingEventType = method2);
13515
+ else if ((lane & 4194048) !== 0 && 0 > transitionUpdateTime && (transitionUpdateTime = now2(), transitionUpdateTask = createTask(method2), transitionUpdateMethodName = method2, fiber != null && (transitionUpdateComponentName = getComponentNameFromFiber(fiber)), 0 > transitionStartTime)) {
11670
13516
  lane = resolveEventTimeStamp();
11671
- method = resolveEventType();
11672
- if (lane !== transitionEventRepeatTime || method !== transitionEventType)
13517
+ method2 = resolveEventType();
13518
+ if (lane !== transitionEventRepeatTime || method2 !== transitionEventType)
11673
13519
  transitionEventRepeatTime = -1.1;
11674
13520
  transitionEventTime = lane;
11675
- transitionEventType = method;
13521
+ transitionEventType = method2;
11676
13522
  }
11677
13523
  }
11678
13524
  function startHostActionTimer(fiber) {
11679
13525
  if (0 > blockingUpdateTime) {
11680
- blockingUpdateTime = now();
13526
+ blockingUpdateTime = now2();
11681
13527
  blockingUpdateTask = fiber._debugTask != null ? fiber._debugTask : null;
11682
13528
  isAlreadyRendering() && (blockingUpdateType = 1);
11683
13529
  var newEventTime = resolveEventTimeStamp(), newEventType = resolveEventType();
@@ -11685,7 +13531,7 @@ It can also happen if the client has a browser extension installed which messes
11685
13531
  blockingEventTime = newEventTime;
11686
13532
  blockingEventType = newEventType;
11687
13533
  }
11688
- if (0 > transitionUpdateTime && (transitionUpdateTime = now(), transitionUpdateTask = fiber._debugTask != null ? fiber._debugTask : null, 0 > transitionStartTime)) {
13534
+ if (0 > transitionUpdateTime && (transitionUpdateTime = now2(), transitionUpdateTask = fiber._debugTask != null ? fiber._debugTask : null, 0 > transitionStartTime)) {
11689
13535
  fiber = resolveEventTimeStamp();
11690
13536
  newEventTime = resolveEventType();
11691
13537
  if (fiber !== transitionEventRepeatTime || newEventTime !== transitionEventType)
@@ -11739,12 +13585,12 @@ It can also happen if the client has a browser extension installed which messes
11739
13585
  return prev;
11740
13586
  }
11741
13587
  function startProfilerTimer(fiber) {
11742
- profilerStartTime = now();
13588
+ profilerStartTime = now2();
11743
13589
  0 > fiber.actualStartTime && (fiber.actualStartTime = profilerStartTime);
11744
13590
  }
11745
13591
  function stopProfilerTimerIfRunningAndRecordDuration(fiber) {
11746
13592
  if (0 <= profilerStartTime) {
11747
- var elapsedTime = now() - profilerStartTime;
13593
+ var elapsedTime = now2() - profilerStartTime;
11748
13594
  fiber.actualDuration += elapsedTime;
11749
13595
  fiber.selfBaseDuration = elapsedTime;
11750
13596
  profilerStartTime = -1;
@@ -11752,14 +13598,14 @@ It can also happen if the client has a browser extension installed which messes
11752
13598
  }
11753
13599
  function stopProfilerTimerIfRunningAndRecordIncompleteDuration(fiber) {
11754
13600
  if (0 <= profilerStartTime) {
11755
- var elapsedTime = now() - profilerStartTime;
13601
+ var elapsedTime = now2() - profilerStartTime;
11756
13602
  fiber.actualDuration += elapsedTime;
11757
13603
  profilerStartTime = -1;
11758
13604
  }
11759
13605
  }
11760
13606
  function recordEffectDuration() {
11761
13607
  if (0 <= profilerStartTime) {
11762
- var endTime = now(), elapsedTime = endTime - profilerStartTime;
13608
+ var endTime = now2(), elapsedTime = endTime - profilerStartTime;
11763
13609
  profilerStartTime = -1;
11764
13610
  profilerEffectDuration += elapsedTime;
11765
13611
  componentEffectDuration += elapsedTime;
@@ -11773,7 +13619,7 @@ It can also happen if the client has a browser extension installed which messes
11773
13619
  commitErrors.push(errorInfo);
11774
13620
  }
11775
13621
  function startEffectTimer() {
11776
- profilerStartTime = now();
13622
+ profilerStartTime = now2();
11777
13623
  0 > componentEffectStartTime && (componentEffectStartTime = profilerStartTime);
11778
13624
  }
11779
13625
  function transferActualDuration(fiber) {
@@ -11930,8 +13776,8 @@ It can also happen if the client has a browser extension installed which messes
11930
13776
  currentEntangledActionThenable = {
11931
13777
  status: "pending",
11932
13778
  value: undefined,
11933
- then: function(resolve) {
11934
- entangledListeners.push(resolve);
13779
+ then: function(resolve2) {
13780
+ entangledListeners.push(resolve2);
11935
13781
  }
11936
13782
  };
11937
13783
  }
@@ -11950,20 +13796,20 @@ It can also happen if the client has a browser extension installed which messes
11950
13796
  (0, listeners[i])();
11951
13797
  }
11952
13798
  }
11953
- function chainThenableValue(thenable, result) {
13799
+ function chainThenableValue(thenable, result2) {
11954
13800
  var listeners = [], thenableWithOverride = {
11955
13801
  status: "pending",
11956
13802
  value: null,
11957
13803
  reason: null,
11958
- then: function(resolve) {
11959
- listeners.push(resolve);
13804
+ then: function(resolve2) {
13805
+ listeners.push(resolve2);
11960
13806
  }
11961
13807
  };
11962
13808
  thenable.then(function() {
11963
13809
  thenableWithOverride.status = "fulfilled";
11964
- thenableWithOverride.value = result;
13810
+ thenableWithOverride.value = result2;
11965
13811
  for (var i = 0;i < listeners.length; i++)
11966
- (0, listeners[i])(result);
13812
+ (0, listeners[i])(result2);
11967
13813
  }, function(error) {
11968
13814
  thenableWithOverride.status = "rejected";
11969
13815
  thenableWithOverride.reason = error;
@@ -12105,8 +13951,8 @@ It can also happen if the client has a browser extension installed which messes
12105
13951
  return null;
12106
13952
  }
12107
13953
  function validateFragmentProps(element, fiber, returnFiber) {
12108
- for (var keys = Object.keys(element.props), i = 0;i < keys.length; i++) {
12109
- var key = keys[i];
13954
+ for (var keys2 = Object.keys(element.props), i = 0;i < keys2.length; i++) {
13955
+ var key = keys2[i];
12110
13956
  if (key !== "children" && key !== "key") {
12111
13957
  fiber === null && (fiber = createFiberFromElement(element, returnFiber.mode, 0), fiber._debugInfo = currentDebugInfo, fiber.return = returnFiber);
12112
13958
  runWithFiberInDEV(fiber, function(erroredKey) {
@@ -12553,43 +14399,43 @@ It can also happen if the client has a browser extension installed which messes
12553
14399
  concurrentQueues[i++] = null;
12554
14400
  var queue = concurrentQueues[i];
12555
14401
  concurrentQueues[i++] = null;
12556
- var update = concurrentQueues[i];
14402
+ var update2 = concurrentQueues[i];
12557
14403
  concurrentQueues[i++] = null;
12558
14404
  var lane = concurrentQueues[i];
12559
14405
  concurrentQueues[i++] = null;
12560
- if (queue !== null && update !== null) {
14406
+ if (queue !== null && update2 !== null) {
12561
14407
  var pending = queue.pending;
12562
- pending === null ? update.next = update : (update.next = pending.next, pending.next = update);
12563
- queue.pending = update;
14408
+ pending === null ? update2.next = update2 : (update2.next = pending.next, pending.next = update2);
14409
+ queue.pending = update2;
12564
14410
  }
12565
- lane !== 0 && markUpdateLaneFromFiberToRoot(fiber, update, lane);
14411
+ lane !== 0 && markUpdateLaneFromFiberToRoot(fiber, update2, lane);
12566
14412
  }
12567
14413
  }
12568
- function enqueueUpdate$1(fiber, queue, update, lane) {
14414
+ function enqueueUpdate$1(fiber, queue, update2, lane) {
12569
14415
  concurrentQueues[concurrentQueuesIndex++] = fiber;
12570
14416
  concurrentQueues[concurrentQueuesIndex++] = queue;
12571
- concurrentQueues[concurrentQueuesIndex++] = update;
14417
+ concurrentQueues[concurrentQueuesIndex++] = update2;
12572
14418
  concurrentQueues[concurrentQueuesIndex++] = lane;
12573
14419
  concurrentlyUpdatedLanes |= lane;
12574
14420
  fiber.lanes |= lane;
12575
14421
  fiber = fiber.alternate;
12576
14422
  fiber !== null && (fiber.lanes |= lane);
12577
14423
  }
12578
- function enqueueConcurrentHookUpdate(fiber, queue, update, lane) {
12579
- enqueueUpdate$1(fiber, queue, update, lane);
14424
+ function enqueueConcurrentHookUpdate(fiber, queue, update2, lane) {
14425
+ enqueueUpdate$1(fiber, queue, update2, lane);
12580
14426
  return getRootForUpdatedFiber(fiber);
12581
14427
  }
12582
14428
  function enqueueConcurrentRenderForLane(fiber, lane) {
12583
14429
  enqueueUpdate$1(fiber, null, null, lane);
12584
14430
  return getRootForUpdatedFiber(fiber);
12585
14431
  }
12586
- function markUpdateLaneFromFiberToRoot(sourceFiber, update, lane) {
14432
+ function markUpdateLaneFromFiberToRoot(sourceFiber, update2, lane) {
12587
14433
  sourceFiber.lanes |= lane;
12588
14434
  var alternate = sourceFiber.alternate;
12589
14435
  alternate !== null && (alternate.lanes |= lane);
12590
14436
  for (var isHidden = false, parent = sourceFiber.return;parent !== null; )
12591
14437
  parent.childLanes |= lane, alternate = parent.alternate, alternate !== null && (alternate.childLanes |= lane), parent.tag === 22 && (sourceFiber = parent.stateNode, sourceFiber === null || sourceFiber._visibility & OffscreenVisible || (isHidden = true)), sourceFiber = parent, parent = parent.return;
12592
- return sourceFiber.tag === 3 ? (parent = sourceFiber.stateNode, isHidden && update !== null && (isHidden = 31 - clz32(lane), sourceFiber = parent.hiddenUpdates, alternate = sourceFiber[isHidden], alternate === null ? sourceFiber[isHidden] = [update] : alternate.push(update), update.lane = lane | 536870912), parent) : null;
14438
+ return sourceFiber.tag === 3 ? (parent = sourceFiber.stateNode, isHidden && update2 !== null && (isHidden = 31 - clz32(lane), sourceFiber = parent.hiddenUpdates, alternate = sourceFiber[isHidden], alternate === null ? sourceFiber[isHidden] = [update2] : alternate.push(update2), update2.lane = lane | 536870912), parent) : null;
12593
14439
  }
12594
14440
  function getRootForUpdatedFiber(sourceFiber) {
12595
14441
  if (nestedUpdateCount > NESTED_UPDATE_LIMIT)
@@ -12628,7 +14474,7 @@ It can also happen if the client has a browser extension installed which messes
12628
14474
  next: null
12629
14475
  };
12630
14476
  }
12631
- function enqueueUpdate(fiber, update, lane) {
14477
+ function enqueueUpdate(fiber, update2, lane) {
12632
14478
  var updateQueue = fiber.updateQueue;
12633
14479
  if (updateQueue === null)
12634
14480
  return null;
@@ -12641,8 +14487,8 @@ Please update the following component: %s`, componentName2);
12641
14487
  didWarnUpdateInsideUpdate = true;
12642
14488
  }
12643
14489
  if ((executionContext & RenderContext) !== NoContext)
12644
- return componentName2 = updateQueue.pending, componentName2 === null ? update.next = update : (update.next = componentName2.next, componentName2.next = update), updateQueue.pending = update, update = getRootForUpdatedFiber(fiber), markUpdateLaneFromFiberToRoot(fiber, null, lane), update;
12645
- enqueueUpdate$1(fiber, updateQueue, update, lane);
14490
+ return componentName2 = updateQueue.pending, componentName2 === null ? update2.next = update2 : (update2.next = componentName2.next, componentName2.next = update2), updateQueue.pending = update2, update2 = getRootForUpdatedFiber(fiber), markUpdateLaneFromFiberToRoot(fiber, null, lane), update2;
14491
+ enqueueUpdate$1(fiber, updateQueue, update2, lane);
12646
14492
  return getRootForUpdatedFiber(fiber);
12647
14493
  }
12648
14494
  function entangleTransitions(root, fiber, lane) {
@@ -12662,14 +14508,14 @@ Please update the following component: %s`, componentName2);
12662
14508
  queue = queue.firstBaseUpdate;
12663
14509
  if (queue !== null) {
12664
14510
  do {
12665
- var clone = {
14511
+ var clone2 = {
12666
14512
  lane: queue.lane,
12667
14513
  tag: queue.tag,
12668
14514
  payload: queue.payload,
12669
14515
  callback: null,
12670
14516
  next: null
12671
14517
  };
12672
- newLast === null ? newFirst = newLast = clone : newLast = newLast.next = clone;
14518
+ newLast === null ? newFirst = newLast = clone2 : newLast = newLast.next = clone2;
12673
14519
  queue = queue.next;
12674
14520
  } while (queue !== null);
12675
14521
  newLast === null ? newFirst = newLast = capturedUpdate : newLast = newLast.next = capturedUpdate;
@@ -12771,7 +14617,7 @@ Please update the following component: %s`, componentName2);
12771
14617
  partialState = nextState;
12772
14618
  if (partialState === null || partialState === undefined)
12773
14619
  break a;
12774
- newState = assign({}, newState, partialState);
14620
+ newState = assign2({}, newState, partialState);
12775
14621
  break a;
12776
14622
  case ForceUpdate:
12777
14623
  hasForceUpdate = true;
@@ -13107,7 +14953,7 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
13107
14953
  }
13108
14954
  throw Error("An unsupported type was passed to use(): " + String(usable));
13109
14955
  }
13110
- function useMemoCache(size) {
14956
+ function useMemoCache(size2) {
13111
14957
  var memoCache = null, updateQueue = currentlyRenderingFiber.updateQueue;
13112
14958
  updateQueue !== null && (memoCache = updateQueue.memoCache);
13113
14959
  if (memoCache == null) {
@@ -13124,10 +14970,10 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
13124
14970
  updateQueue.memoCache = memoCache;
13125
14971
  updateQueue = memoCache.data[memoCache.index];
13126
14972
  if (updateQueue === undefined || ignorePreviousDependencies)
13127
- for (updateQueue = memoCache.data[memoCache.index] = Array(size), current2 = 0;current2 < size; current2++)
14973
+ for (updateQueue = memoCache.data[memoCache.index] = Array(size2), current2 = 0;current2 < size2; current2++)
13128
14974
  updateQueue[current2] = REACT_MEMO_CACHE_SENTINEL;
13129
14975
  else
13130
- updateQueue.length !== size && console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.", updateQueue.length, size);
14976
+ updateQueue.length !== size2 && console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.", updateQueue.length, size2);
13131
14977
  memoCache.index++;
13132
14978
  return updateQueue;
13133
14979
  }
@@ -13185,50 +15031,50 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
13185
15031
  hook.memoizedState = pendingQueue;
13186
15032
  else {
13187
15033
  current2 = baseQueue.next;
13188
- var newBaseQueueFirst = baseFirst = null, newBaseQueueLast = null, update = current2, didReadFromEntangledAsyncAction2 = false;
15034
+ var newBaseQueueFirst = baseFirst = null, newBaseQueueLast = null, update2 = current2, didReadFromEntangledAsyncAction2 = false;
13189
15035
  do {
13190
- var updateLane = update.lane & -536870913;
13191
- if (updateLane !== update.lane ? (workInProgressRootRenderLanes & updateLane) === updateLane : (renderLanes & updateLane) === updateLane) {
13192
- var revertLane = update.revertLane;
15036
+ var updateLane = update2.lane & -536870913;
15037
+ if (updateLane !== update2.lane ? (workInProgressRootRenderLanes & updateLane) === updateLane : (renderLanes & updateLane) === updateLane) {
15038
+ var revertLane = update2.revertLane;
13193
15039
  if (revertLane === 0)
13194
15040
  newBaseQueueLast !== null && (newBaseQueueLast = newBaseQueueLast.next = {
13195
15041
  lane: 0,
13196
15042
  revertLane: 0,
13197
15043
  gesture: null,
13198
- action: update.action,
13199
- hasEagerState: update.hasEagerState,
13200
- eagerState: update.eagerState,
15044
+ action: update2.action,
15045
+ hasEagerState: update2.hasEagerState,
15046
+ eagerState: update2.eagerState,
13201
15047
  next: null
13202
15048
  }), updateLane === currentEntangledLane && (didReadFromEntangledAsyncAction2 = true);
13203
15049
  else if ((renderLanes & revertLane) === revertLane) {
13204
- update = update.next;
15050
+ update2 = update2.next;
13205
15051
  revertLane === currentEntangledLane && (didReadFromEntangledAsyncAction2 = true);
13206
15052
  continue;
13207
15053
  } else
13208
15054
  updateLane = {
13209
15055
  lane: 0,
13210
- revertLane: update.revertLane,
15056
+ revertLane: update2.revertLane,
13211
15057
  gesture: null,
13212
- action: update.action,
13213
- hasEagerState: update.hasEagerState,
13214
- eagerState: update.eagerState,
15058
+ action: update2.action,
15059
+ hasEagerState: update2.hasEagerState,
15060
+ eagerState: update2.eagerState,
13215
15061
  next: null
13216
15062
  }, newBaseQueueLast === null ? (newBaseQueueFirst = newBaseQueueLast = updateLane, baseFirst = pendingQueue) : newBaseQueueLast = newBaseQueueLast.next = updateLane, currentlyRenderingFiber.lanes |= revertLane, workInProgressRootSkippedLanes |= revertLane;
13217
- updateLane = update.action;
15063
+ updateLane = update2.action;
13218
15064
  shouldDoubleInvokeUserFnsInHooksDEV && reducer(pendingQueue, updateLane);
13219
- pendingQueue = update.hasEagerState ? update.eagerState : reducer(pendingQueue, updateLane);
15065
+ pendingQueue = update2.hasEagerState ? update2.eagerState : reducer(pendingQueue, updateLane);
13220
15066
  } else
13221
15067
  revertLane = {
13222
15068
  lane: updateLane,
13223
- revertLane: update.revertLane,
13224
- gesture: update.gesture,
13225
- action: update.action,
13226
- hasEagerState: update.hasEagerState,
13227
- eagerState: update.eagerState,
15069
+ revertLane: update2.revertLane,
15070
+ gesture: update2.gesture,
15071
+ action: update2.action,
15072
+ hasEagerState: update2.hasEagerState,
15073
+ eagerState: update2.eagerState,
13228
15074
  next: null
13229
15075
  }, newBaseQueueLast === null ? (newBaseQueueFirst = newBaseQueueLast = revertLane, baseFirst = pendingQueue) : newBaseQueueLast = newBaseQueueLast.next = revertLane, currentlyRenderingFiber.lanes |= updateLane, workInProgressRootSkippedLanes |= updateLane;
13230
- update = update.next;
13231
- } while (update !== null && update !== current2);
15076
+ update2 = update2.next;
15077
+ } while (update2 !== null && update2 !== current2);
13232
15078
  newBaseQueueLast === null ? baseFirst = pendingQueue : newBaseQueueLast.next = newBaseQueueFirst;
13233
15079
  if (!objectIs(pendingQueue, hook.memoizedState) && (didReceiveUpdate = true, didReadFromEntangledAsyncAction2 && (reducer = currentEntangledActionThenable, reducer !== null)))
13234
15080
  throw reducer;
@@ -13248,10 +15094,10 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
13248
15094
  var { dispatch, pending: lastRenderPhaseUpdate } = queue, newState = hook.memoizedState;
13249
15095
  if (lastRenderPhaseUpdate !== null) {
13250
15096
  queue.pending = null;
13251
- var update = lastRenderPhaseUpdate = lastRenderPhaseUpdate.next;
15097
+ var update2 = lastRenderPhaseUpdate = lastRenderPhaseUpdate.next;
13252
15098
  do
13253
- newState = reducer(newState, update.action), update = update.next;
13254
- while (update !== lastRenderPhaseUpdate);
15099
+ newState = reducer(newState, update2.action), update2 = update2.next;
15100
+ while (update2 !== lastRenderPhaseUpdate);
13255
15101
  objectIs(newState, hook.memoizedState) || (didReceiveUpdate = true);
13256
15102
  hook.memoizedState = newState;
13257
15103
  hook.baseQueue === null && (hook.baseState = newState);
@@ -13294,8 +15140,8 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
13294
15140
  if (cachedSnapshot = !objectIs((currentHook || hook).memoizedState, getServerSnapshot))
13295
15141
  hook.memoizedState = getServerSnapshot, didReceiveUpdate = true;
13296
15142
  hook = hook.queue;
13297
- var create = subscribeToStore.bind(null, fiber, hook, subscribe);
13298
- updateEffectImpl(2048, Passive, create, [subscribe]);
15143
+ var create2 = subscribeToStore.bind(null, fiber, hook, subscribe);
15144
+ updateEffectImpl(2048, Passive, create2, [subscribe]);
13299
15145
  if (hook.getSnapshot !== getSnapshot || cachedSnapshot || workInProgressHook !== null && workInProgressHook.memoizedState.tag & HasEffect) {
13300
15146
  fiber.flags |= 2048;
13301
15147
  pushSimpleEffect(HasEffect | Passive, { destroy: undefined }, updateStoreInstance.bind(null, fiber, hook, getServerSnapshot, getSnapshot), null);
@@ -13457,13 +15303,13 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
13457
15303
  actionNode !== null && (nextState = actionNode.next, nextState === actionNode ? actionQueue.pending = null : (nextState = nextState.next, actionNode.next = nextState, runActionStateAction(actionQueue, nextState)));
13458
15304
  }
13459
15305
  function onActionError(actionQueue, actionNode, error) {
13460
- var last = actionQueue.pending;
15306
+ var last2 = actionQueue.pending;
13461
15307
  actionQueue.pending = null;
13462
- if (last !== null) {
13463
- last = last.next;
15308
+ if (last2 !== null) {
15309
+ last2 = last2.next;
13464
15310
  do
13465
15311
  actionNode.status = "rejected", actionNode.reason = error, notifyActionListeners(actionNode), actionNode = actionNode.next;
13466
- while (actionNode !== last);
15312
+ while (actionNode !== last2);
13467
15313
  }
13468
15314
  actionQueue.action = null;
13469
15315
  }
@@ -13560,12 +15406,12 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
13560
15406
  currentStateHook.memoizedState = action;
13561
15407
  return [stateHook, dispatch, false];
13562
15408
  }
13563
- function pushSimpleEffect(tag, inst, create, deps) {
13564
- tag = { tag, create, deps, inst, next: null };
15409
+ function pushSimpleEffect(tag, inst, create2, deps) {
15410
+ tag = { tag, create: create2, deps, inst, next: null };
13565
15411
  inst = currentlyRenderingFiber.updateQueue;
13566
15412
  inst === null && (inst = createFunctionComponentUpdateQueue(), currentlyRenderingFiber.updateQueue = inst);
13567
- create = inst.lastEffect;
13568
- create === null ? inst.lastEffect = tag.next = tag : (deps = create.next, create.next = tag, tag.next = deps, inst.lastEffect = tag);
15413
+ create2 = inst.lastEffect;
15414
+ create2 === null ? inst.lastEffect = tag.next = tag : (deps = create2.next, create2.next = tag, tag.next = deps, inst.lastEffect = tag);
13569
15415
  return tag;
13570
15416
  }
13571
15417
  function mountRef(initialValue) {
@@ -13573,19 +15419,19 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
13573
15419
  initialValue = { current: initialValue };
13574
15420
  return hook.memoizedState = initialValue;
13575
15421
  }
13576
- function mountEffectImpl(fiberFlags, hookFlags, create, deps) {
15422
+ function mountEffectImpl(fiberFlags, hookFlags, create2, deps) {
13577
15423
  var hook = mountWorkInProgressHook();
13578
15424
  currentlyRenderingFiber.flags |= fiberFlags;
13579
- hook.memoizedState = pushSimpleEffect(HasEffect | hookFlags, { destroy: undefined }, create, deps === undefined ? null : deps);
15425
+ hook.memoizedState = pushSimpleEffect(HasEffect | hookFlags, { destroy: undefined }, create2, deps === undefined ? null : deps);
13580
15426
  }
13581
- function updateEffectImpl(fiberFlags, hookFlags, create, deps) {
15427
+ function updateEffectImpl(fiberFlags, hookFlags, create2, deps) {
13582
15428
  var hook = updateWorkInProgressHook();
13583
15429
  deps = deps === undefined ? null : deps;
13584
15430
  var inst = hook.memoizedState.inst;
13585
- currentHook !== null && deps !== null && areHookInputsEqual(deps, currentHook.memoizedState.deps) ? hook.memoizedState = pushSimpleEffect(hookFlags, inst, create, deps) : (currentlyRenderingFiber.flags |= fiberFlags, hook.memoizedState = pushSimpleEffect(HasEffect | hookFlags, inst, create, deps));
15431
+ currentHook !== null && deps !== null && areHookInputsEqual(deps, currentHook.memoizedState.deps) ? hook.memoizedState = pushSimpleEffect(hookFlags, inst, create2, deps) : (currentlyRenderingFiber.flags |= fiberFlags, hook.memoizedState = pushSimpleEffect(HasEffect | hookFlags, inst, create2, deps));
13586
15432
  }
13587
- function mountEffect(create, deps) {
13588
- (currentlyRenderingFiber.mode & 16) !== NoMode ? mountEffectImpl(276826112, Passive, create, deps) : mountEffectImpl(8390656, Passive, create, deps);
15433
+ function mountEffect(create2, deps) {
15434
+ (currentlyRenderingFiber.mode & 16) !== NoMode ? mountEffectImpl(276826112, Passive, create2, deps) : mountEffectImpl(8390656, Passive, create2, deps);
13589
15435
  }
13590
15436
  function useEffectEventImpl(payload) {
13591
15437
  currentlyRenderingFiber.flags |= 4;
@@ -13615,35 +15461,35 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
13615
15461
  return ref.impl.apply(undefined, arguments);
13616
15462
  };
13617
15463
  }
13618
- function mountLayoutEffect(create, deps) {
15464
+ function mountLayoutEffect(create2, deps) {
13619
15465
  var fiberFlags = 4194308;
13620
15466
  (currentlyRenderingFiber.mode & 16) !== NoMode && (fiberFlags |= 134217728);
13621
- return mountEffectImpl(fiberFlags, Layout, create, deps);
15467
+ return mountEffectImpl(fiberFlags, Layout, create2, deps);
13622
15468
  }
13623
- function imperativeHandleEffect(create, ref) {
15469
+ function imperativeHandleEffect(create2, ref) {
13624
15470
  if (typeof ref === "function") {
13625
- create = create();
13626
- var refCleanup = ref(create);
15471
+ create2 = create2();
15472
+ var refCleanup = ref(create2);
13627
15473
  return function() {
13628
15474
  typeof refCleanup === "function" ? refCleanup() : ref(null);
13629
15475
  };
13630
15476
  }
13631
15477
  if (ref !== null && ref !== undefined)
13632
- return ref.hasOwnProperty("current") || console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.", "an object with keys {" + Object.keys(ref).join(", ") + "}"), create = create(), ref.current = create, function() {
15478
+ return ref.hasOwnProperty("current") || console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.", "an object with keys {" + Object.keys(ref).join(", ") + "}"), create2 = create2(), ref.current = create2, function() {
13633
15479
  ref.current = null;
13634
15480
  };
13635
15481
  }
13636
- function mountImperativeHandle(ref, create, deps) {
13637
- typeof create !== "function" && console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.", create !== null ? typeof create : "null");
15482
+ function mountImperativeHandle(ref, create2, deps) {
15483
+ typeof create2 !== "function" && console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.", create2 !== null ? typeof create2 : "null");
13638
15484
  deps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;
13639
15485
  var fiberFlags = 4194308;
13640
15486
  (currentlyRenderingFiber.mode & 16) !== NoMode && (fiberFlags |= 134217728);
13641
- mountEffectImpl(fiberFlags, Layout, imperativeHandleEffect.bind(null, create, ref), deps);
15487
+ mountEffectImpl(fiberFlags, Layout, imperativeHandleEffect.bind(null, create2, ref), deps);
13642
15488
  }
13643
- function updateImperativeHandle(ref, create, deps) {
13644
- typeof create !== "function" && console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.", create !== null ? typeof create : "null");
15489
+ function updateImperativeHandle(ref, create2, deps) {
15490
+ typeof create2 !== "function" && console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.", create2 !== null ? typeof create2 : "null");
13645
15491
  deps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;
13646
- updateEffectImpl(4, Layout, imperativeHandleEffect.bind(null, create, ref), deps);
15492
+ updateEffectImpl(4, Layout, imperativeHandleEffect.bind(null, create2, ref), deps);
13647
15493
  }
13648
15494
  function mountCallback(callback, deps) {
13649
15495
  mountWorkInProgressHook().memoizedState = [
@@ -13848,7 +15694,7 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
13848
15694
  var args = arguments;
13849
15695
  typeof args[3] === "function" && console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");
13850
15696
  args = requestUpdateLane(fiber);
13851
- var update = {
15697
+ var update2 = {
13852
15698
  lane: args,
13853
15699
  revertLane: 0,
13854
15700
  gesture: null,
@@ -13857,7 +15703,7 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
13857
15703
  eagerState: null,
13858
15704
  next: null
13859
15705
  };
13860
- isRenderPhaseUpdate(fiber) ? enqueueRenderPhaseUpdate(queue, update) : (update = enqueueConcurrentHookUpdate(fiber, queue, update, args), update !== null && (startUpdateTimerByLane(args, "dispatch()", fiber), scheduleUpdateOnFiber(update, fiber, args), entangleTransitionUpdate(update, queue, args)));
15706
+ isRenderPhaseUpdate(fiber) ? enqueueRenderPhaseUpdate(queue, update2) : (update2 = enqueueConcurrentHookUpdate(fiber, queue, update2, args), update2 !== null && (startUpdateTimerByLane(args, "dispatch()", fiber), scheduleUpdateOnFiber(update2, fiber, args), entangleTransitionUpdate(update2, queue, args)));
13861
15707
  }
13862
15708
  function dispatchSetState(fiber, queue, action) {
13863
15709
  var args = arguments;
@@ -13866,7 +15712,7 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
13866
15712
  dispatchSetStateInternal(fiber, queue, action, args) && startUpdateTimerByLane(args, "setState()", fiber);
13867
15713
  }
13868
15714
  function dispatchSetStateInternal(fiber, queue, action, lane) {
13869
- var update = {
15715
+ var update2 = {
13870
15716
  lane,
13871
15717
  revertLane: 0,
13872
15718
  gesture: null,
@@ -13876,7 +15722,7 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
13876
15722
  next: null
13877
15723
  };
13878
15724
  if (isRenderPhaseUpdate(fiber))
13879
- enqueueRenderPhaseUpdate(queue, update);
15725
+ enqueueRenderPhaseUpdate(queue, update2);
13880
15726
  else {
13881
15727
  var alternate = fiber.alternate;
13882
15728
  if (fiber.lanes === 0 && (alternate === null || alternate.lanes === 0) && (alternate = queue.lastRenderedReducer, alternate !== null)) {
@@ -13884,15 +15730,15 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
13884
15730
  ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV;
13885
15731
  try {
13886
15732
  var currentState = queue.lastRenderedState, eagerState = alternate(currentState, action);
13887
- update.hasEagerState = true;
13888
- update.eagerState = eagerState;
15733
+ update2.hasEagerState = true;
15734
+ update2.eagerState = eagerState;
13889
15735
  if (objectIs(eagerState, currentState))
13890
- return enqueueUpdate$1(fiber, queue, update, 0), workInProgressRoot === null && finishQueueingConcurrentUpdates(), false;
15736
+ return enqueueUpdate$1(fiber, queue, update2, 0), workInProgressRoot === null && finishQueueingConcurrentUpdates(), false;
13891
15737
  } catch (error) {} finally {
13892
15738
  ReactSharedInternals.H = prevDispatcher;
13893
15739
  }
13894
15740
  }
13895
- action = enqueueConcurrentHookUpdate(fiber, queue, update, lane);
15741
+ action = enqueueConcurrentHookUpdate(fiber, queue, update2, lane);
13896
15742
  if (action !== null)
13897
15743
  return scheduleUpdateOnFiber(action, fiber, lane), entangleTransitionUpdate(action, queue, lane), true;
13898
15744
  }
@@ -13920,11 +15766,11 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
13920
15766
  var alternate = fiber.alternate;
13921
15767
  return fiber === currentlyRenderingFiber || alternate !== null && alternate === currentlyRenderingFiber;
13922
15768
  }
13923
- function enqueueRenderPhaseUpdate(queue, update) {
15769
+ function enqueueRenderPhaseUpdate(queue, update2) {
13924
15770
  didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = true;
13925
15771
  var pending = queue.pending;
13926
- pending === null ? update.next = update : (update.next = pending.next, pending.next = update);
13927
- queue.pending = update;
15772
+ pending === null ? update2.next = update2 : (update2.next = pending.next, pending.next = update2);
15773
+ queue.pending = update2;
13928
15774
  }
13929
15775
  function entangleTransitionUpdate(root, queue, lane) {
13930
15776
  if ((lane & 4194048) !== 0) {
@@ -13952,7 +15798,7 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
13952
15798
  }
13953
15799
  }
13954
15800
  partialState === undefined && (ctor = getComponentNameFromType(ctor) || "Component", didWarnAboutUndefinedDerivedState.has(ctor) || (didWarnAboutUndefinedDerivedState.add(ctor), console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.", ctor)));
13955
- prevState = partialState === null || partialState === undefined ? prevState : assign({}, prevState, partialState);
15801
+ prevState = partialState === null || partialState === undefined ? prevState : assign2({}, prevState, partialState);
13956
15802
  workInProgress2.memoizedState = prevState;
13957
15803
  workInProgress2.lanes === 0 && (workInProgress2.updateQueue.baseState = prevState);
13958
15804
  }
@@ -13987,7 +15833,7 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
13987
15833
  propName !== "ref" && (newProps[propName] = baseProps[propName]);
13988
15834
  }
13989
15835
  if (Component = Component.defaultProps) {
13990
- newProps === baseProps && (newProps = assign({}, newProps));
15836
+ newProps === baseProps && (newProps = assign2({}, newProps));
13991
15837
  for (var _propName in Component)
13992
15838
  newProps[_propName] === undefined && (newProps[_propName] = Component[_propName]);
13993
15839
  }
@@ -14039,20 +15885,20 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
14039
15885
  lane.tag = CaptureUpdate;
14040
15886
  return lane;
14041
15887
  }
14042
- function initializeClassErrorUpdate(update, root, fiber, errorInfo) {
15888
+ function initializeClassErrorUpdate(update2, root, fiber, errorInfo) {
14043
15889
  var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
14044
15890
  if (typeof getDerivedStateFromError === "function") {
14045
15891
  var error = errorInfo.value;
14046
- update.payload = function() {
15892
+ update2.payload = function() {
14047
15893
  return getDerivedStateFromError(error);
14048
15894
  };
14049
- update.callback = function() {
15895
+ update2.callback = function() {
14050
15896
  markFailedErrorBoundaryForHotReloading(fiber);
14051
15897
  runWithFiberInDEV(errorInfo.source, logCaughtError, root, fiber, errorInfo);
14052
15898
  };
14053
15899
  }
14054
15900
  var inst = fiber.stateNode;
14055
- inst !== null && typeof inst.componentDidCatch === "function" && (update.callback = function() {
15901
+ inst !== null && typeof inst.componentDidCatch === "function" && (update2.callback = function() {
14056
15902
  markFailedErrorBoundaryForHotReloading(fiber);
14057
15903
  runWithFiberInDEV(errorInfo.source, logCaughtError, root, fiber, errorInfo);
14058
15904
  typeof getDerivedStateFromError !== "function" && (legacyErrorBoundariesThatAlreadyFailed === null ? legacyErrorBoundariesThatAlreadyFailed = new Set([this]) : legacyErrorBoundariesThatAlreadyFailed.add(this));
@@ -14613,17 +16459,17 @@ https://react.dev/link/unsafe-component-lifecycles`, _instance, newApiName, stat
14613
16459
  alternate !== null && (alternate.lanes |= renderLanes2);
14614
16460
  scheduleContextWorkOnParentPath(fiber.return, renderLanes2, propagationRoot);
14615
16461
  }
14616
- function initSuspenseListRenderState(workInProgress2, isBackwards, tail, lastContentRow, tailMode, treeForkCount2) {
16462
+ function initSuspenseListRenderState(workInProgress2, isBackwards, tail2, lastContentRow, tailMode, treeForkCount2) {
14617
16463
  var renderState = workInProgress2.memoizedState;
14618
16464
  renderState === null ? workInProgress2.memoizedState = {
14619
16465
  isBackwards,
14620
16466
  rendering: null,
14621
16467
  renderingStartTime: 0,
14622
16468
  last: lastContentRow,
14623
- tail,
16469
+ tail: tail2,
14624
16470
  tailMode,
14625
16471
  treeForkCount: treeForkCount2
14626
- } : (renderState.isBackwards = isBackwards, renderState.rendering = null, renderState.renderingStartTime = 0, renderState.last = lastContentRow, renderState.tail = tail, renderState.tailMode = tailMode, renderState.treeForkCount = treeForkCount2);
16472
+ } : (renderState.isBackwards = isBackwards, renderState.rendering = null, renderState.renderingStartTime = 0, renderState.last = lastContentRow, renderState.tail = tail2, renderState.tailMode = tailMode, renderState.treeForkCount = treeForkCount2);
14627
16473
  }
14628
16474
  function updateSuspenseListComponent(current2, workInProgress2, renderLanes2) {
14629
16475
  var nextProps = workInProgress2.pendingProps, revealOrder = nextProps.revealOrder, tailMode = nextProps.tail, newChildren = nextProps.children, suspenseContext = suspenseStackCursor.current;
@@ -15740,21 +17586,21 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
15740
17586
  return fiber.stateNode;
15741
17587
  }
15742
17588
  }
15743
- function insertOrAppendPlacementNodeIntoContainer(node, before, parent) {
17589
+ function insertOrAppendPlacementNodeIntoContainer(node, before2, parent) {
15744
17590
  var tag = node.tag;
15745
17591
  if (tag === 5 || tag === 6)
15746
- node = node.stateNode, before ? insertInContainerBefore(parent, node, before) : appendChildToContainer(parent, node);
15747
- else if (tag !== 4 && (supportsSingletons && tag === 27 && isSingletonScope(node.type) && (parent = node.stateNode, before = null), node = node.child, node !== null))
15748
- for (insertOrAppendPlacementNodeIntoContainer(node, before, parent), node = node.sibling;node !== null; )
15749
- insertOrAppendPlacementNodeIntoContainer(node, before, parent), node = node.sibling;
17592
+ node = node.stateNode, before2 ? insertInContainerBefore(parent, node, before2) : appendChildToContainer(parent, node);
17593
+ else if (tag !== 4 && (supportsSingletons && tag === 27 && isSingletonScope(node.type) && (parent = node.stateNode, before2 = null), node = node.child, node !== null))
17594
+ for (insertOrAppendPlacementNodeIntoContainer(node, before2, parent), node = node.sibling;node !== null; )
17595
+ insertOrAppendPlacementNodeIntoContainer(node, before2, parent), node = node.sibling;
15750
17596
  }
15751
- function insertOrAppendPlacementNode(node, before, parent) {
17597
+ function insertOrAppendPlacementNode(node, before2, parent) {
15752
17598
  var tag = node.tag;
15753
17599
  if (tag === 5 || tag === 6)
15754
- node = node.stateNode, before ? insertBefore(parent, node, before) : appendChild(parent, node);
17600
+ node = node.stateNode, before2 ? insertBefore(parent, node, before2) : appendChild(parent, node);
15755
17601
  else if (tag !== 4 && (supportsSingletons && tag === 27 && isSingletonScope(node.type) && (parent = node.stateNode), node = node.child, node !== null))
15756
- for (insertOrAppendPlacementNode(node, before, parent), node = node.sibling;node !== null; )
15757
- insertOrAppendPlacementNode(node, before, parent), node = node.sibling;
17602
+ for (insertOrAppendPlacementNode(node, before2, parent), node = node.sibling;node !== null; )
17603
+ insertOrAppendPlacementNode(node, before2, parent), node = node.sibling;
15758
17604
  }
15759
17605
  function commitPlacement(finishedWork) {
15760
17606
  for (var hostParentFiber, parentFiber = finishedWork.return;parentFiber !== null; ) {
@@ -17029,7 +18875,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
17029
18875
  if (startTime === RootInProgress) {
17030
18876
  workInProgressRootIsPrerendering && !forceSync && markRootSuspended(root, lanes, 0, false);
17031
18877
  lanes = workInProgressSuspendedReason;
17032
- yieldStartTime = now();
18878
+ yieldStartTime = now2();
17033
18879
  yieldReason = lanes;
17034
18880
  break;
17035
18881
  } else {
@@ -17218,7 +19064,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
17218
19064
  function prepareFreshStack(root, lanes) {
17219
19065
  supportsUserTiming && (console.timeStamp("Blocking Track", 0.003, 0.003, "Blocking", "Scheduler \u269B", "primary-light"), console.timeStamp("Transition Track", 0.003, 0.003, "Transition", "Scheduler \u269B", "primary-light"), console.timeStamp("Suspense Track", 0.003, 0.003, "Suspense", "Scheduler \u269B", "primary-light"), console.timeStamp("Idle Track", 0.003, 0.003, "Idle", "Scheduler \u269B", "primary-light"));
17220
19066
  var previousRenderStartTime = renderStartTime;
17221
- renderStartTime = now();
19067
+ renderStartTime = now2();
17222
19068
  if (workInProgressRootRenderLanes !== 0 && 0 < previousRenderStartTime) {
17223
19069
  setCurrentTrackFromLanes(workInProgressRootRenderLanes);
17224
19070
  if (workInProgressRootExitStatus === RootSuspended || workInProgressRootExitStatus === RootSuspendedWithDelay)
@@ -17273,7 +19119,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
17273
19119
  blockingSuspendedTime = -1.1;
17274
19120
  blockingEventRepeatTime = blockingEventTime;
17275
19121
  blockingEventTime = -1.1;
17276
- blockingClampTime = now();
19122
+ blockingClampTime = now2();
17277
19123
  }
17278
19124
  (lanes & 4194048) !== 0 && (workInProgressUpdateTask = transitionUpdateTask, debugTask = 0 <= transitionStartTime && transitionStartTime < transitionClampTime ? transitionClampTime : transitionStartTime, previousRenderStartTime = 0 <= transitionUpdateTime && transitionUpdateTime < transitionClampTime ? transitionClampTime : transitionUpdateTime, endTime = 0 <= transitionEventTime && transitionEventTime < transitionClampTime ? transitionClampTime : transitionEventTime, color = 0 <= endTime ? endTime : 0 <= previousRenderStartTime ? previousRenderStartTime : renderStartTime, 0 <= transitionSuspendedTime && (setCurrentTrackFromLanes(256), logSuspendedWithDelayPhase(transitionSuspendedTime, color, lanes, workInProgressUpdateTask)), isPingedUpdate = endTime, eventTime = transitionEventType, eventType = 0 < transitionEventRepeatTime, eventIsRepeat = transitionUpdateType === 2, color = renderStartTime, endTime = transitionUpdateTask, label = transitionUpdateMethodName, isSpawnedUpdate = transitionUpdateComponentName, supportsUserTiming && (currentTrack = "Transition", 0 < previousRenderStartTime ? previousRenderStartTime > color && (previousRenderStartTime = color) : previousRenderStartTime = color, 0 < debugTask ? debugTask > previousRenderStartTime && (debugTask = previousRenderStartTime) : debugTask = previousRenderStartTime, 0 < isPingedUpdate ? isPingedUpdate > debugTask && (isPingedUpdate = debugTask) : isPingedUpdate = debugTask, debugTask > isPingedUpdate && eventTime !== null && (color$jscomp$0 = eventType ? "secondary-light" : "warning", endTime ? endTime.run(console.timeStamp.bind(console, eventType ? "Consecutive" : "Event: " + eventTime, isPingedUpdate, debugTask, currentTrack, "Scheduler \u269B", color$jscomp$0)) : console.timeStamp(eventType ? "Consecutive" : "Event: " + eventTime, isPingedUpdate, debugTask, currentTrack, "Scheduler \u269B", color$jscomp$0)), previousRenderStartTime > debugTask && (endTime ? endTime.run(console.timeStamp.bind(console, "Action", debugTask, previousRenderStartTime, currentTrack, "Scheduler \u269B", "primary-dark")) : console.timeStamp("Action", debugTask, previousRenderStartTime, currentTrack, "Scheduler \u269B", "primary-dark")), color > previousRenderStartTime && (debugTask = eventIsRepeat ? "Promise Resolved" : 5 < color - previousRenderStartTime ? "Update Blocked" : "Update", isPingedUpdate = [], isSpawnedUpdate != null && isPingedUpdate.push(["Component name", isSpawnedUpdate]), label != null && isPingedUpdate.push(["Method name", label]), previousRenderStartTime = {
17279
19125
  start: previousRenderStartTime,
@@ -17286,7 +19132,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
17286
19132
  color: "primary-light"
17287
19133
  }
17288
19134
  }
17289
- }, endTime ? endTime.run(performance.measure.bind(performance, debugTask, previousRenderStartTime)) : performance.measure(debugTask, previousRenderStartTime))), transitionUpdateTime = transitionStartTime = -1.1, transitionUpdateType = 0, transitionSuspendedTime = -1.1, transitionEventRepeatTime = transitionEventTime, transitionEventTime = -1.1, transitionClampTime = now());
19135
+ }, endTime ? endTime.run(performance.measure.bind(performance, debugTask, previousRenderStartTime)) : performance.measure(debugTask, previousRenderStartTime))), transitionUpdateTime = transitionStartTime = -1.1, transitionUpdateType = 0, transitionSuspendedTime = -1.1, transitionEventRepeatTime = transitionEventTime, transitionEventTime = -1.1, transitionClampTime = now2());
17290
19136
  previousRenderStartTime = root.timeoutHandle;
17291
19137
  previousRenderStartTime !== noTimeout && (root.timeoutHandle = noTimeout, cancelTimeout(previousRenderStartTime));
17292
19138
  previousRenderStartTime = root.cancelPendingCommit;
@@ -17671,7 +19517,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
17671
19517
  return null;
17672
19518
  })) : (root.callbackNode = null, root.callbackPriority = 0);
17673
19519
  commitErrors = null;
17674
- commitStartTime = now();
19520
+ commitStartTime = now2();
17675
19521
  suspendedCommitReason !== null && logSuspendedCommitPhase(completedRenderEndTime, commitStartTime, suspendedCommitReason, workInProgressUpdateTask);
17676
19522
  recoverableErrors = (finishedWork.flags & 13878) !== 0;
17677
19523
  if ((finishedWork.subtreeFlags & 13878) !== 0 || recoverableErrors) {
@@ -17719,7 +19565,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
17719
19565
  pendingEffectsStatus = NO_PENDING_EFFECTS;
17720
19566
  var suspendedViewTransitionReason = pendingSuspendedViewTransitionReason;
17721
19567
  if (suspendedViewTransitionReason !== null) {
17722
- commitStartTime = now();
19568
+ commitStartTime = now2();
17723
19569
  var startTime = commitEndTime, endTime = commitStartTime;
17724
19570
  !supportsUserTiming || endTime <= startTime || (animatingTask ? animatingTask.run(console.timeStamp.bind(console, suspendedViewTransitionReason, startTime, endTime, currentTrack, "Scheduler \u269B", "secondary-light")) : console.timeStamp(suspendedViewTransitionReason, startTime, endTime, currentTrack, "Scheduler \u269B", "secondary-light"));
17725
19571
  }
@@ -17742,7 +19588,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
17742
19588
  }
17743
19589
  suspendedViewTransitionReason = pendingEffectsRenderEndTime;
17744
19590
  startTime = pendingSuspendedCommitReason;
17745
- commitEndTime = now();
19591
+ commitEndTime = now2();
17746
19592
  suspendedViewTransitionReason = startTime === null ? suspendedViewTransitionReason : commitStartTime;
17747
19593
  startTime = commitEndTime;
17748
19594
  endTime = pendingDelayedCommitReason === ABORTED_VIEW_TRANSITION_COMMIT;
@@ -17755,7 +19601,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
17755
19601
  if (pendingEffectsStatus === PENDING_SPAWNED_WORK || pendingEffectsStatus === PENDING_AFTER_MUTATION_PHASE) {
17756
19602
  if (pendingEffectsStatus === PENDING_SPAWNED_WORK) {
17757
19603
  var startViewTransitionStartTime = commitEndTime;
17758
- commitEndTime = now();
19604
+ commitEndTime = now2();
17759
19605
  var endTime = commitEndTime, abortedViewTransition = pendingDelayedCommitReason === ABORTED_VIEW_TRANSITION_COMMIT;
17760
19606
  !supportsUserTiming || endTime <= startViewTransitionStartTime || (animatingTask ? animatingTask.run(console.timeStamp.bind(console, abortedViewTransition ? "Interrupted View Transition" : "Starting Animation", startViewTransitionStartTime, endTime, currentTrack, "Scheduler \u269B", abortedViewTransition ? "error" : "secondary-light")) : console.timeStamp(abortedViewTransition ? "Interrupted View Transition" : "Starting Animation", startViewTransitionStartTime, endTime, currentTrack, "Scheduler \u269B", abortedViewTransition ? " error" : "secondary-light"));
17761
19607
  pendingDelayedCommitReason !== ABORTED_VIEW_TRANSITION_COMMIT && (pendingDelayedCommitReason = ANIMATION_STARTED_COMMIT);
@@ -17960,7 +19806,7 @@ Error message:
17960
19806
  pingCache !== null && pingCache.delete(wakeable);
17961
19807
  root.pingedLanes |= root.suspendedLanes & pingedLanes;
17962
19808
  root.warmLanes &= ~pingedLanes;
17963
- (pingedLanes & 127) !== 0 ? 0 > blockingUpdateTime && (blockingClampTime = blockingUpdateTime = now(), blockingUpdateTask = createTask("Promise Resolved"), blockingUpdateType = 2) : (pingedLanes & 4194048) !== 0 && 0 > transitionUpdateTime && (transitionClampTime = transitionUpdateTime = now(), transitionUpdateTask = createTask("Promise Resolved"), transitionUpdateType = 2);
19809
+ (pingedLanes & 127) !== 0 ? 0 > blockingUpdateTime && (blockingClampTime = blockingUpdateTime = now2(), blockingUpdateTask = createTask("Promise Resolved"), blockingUpdateType = 2) : (pingedLanes & 4194048) !== 0 && 0 > transitionUpdateTime && (transitionClampTime = transitionUpdateTime = now2(), transitionUpdateTask = createTask("Promise Resolved"), transitionUpdateType = 2);
17964
19810
  isConcurrentActEnvironment() && ReactSharedInternals.actQueue === null && console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
17965
19811
 
17966
19812
  When testing, code that resolves suspended data should be wrapped into act(...):
@@ -18395,7 +20241,7 @@ Check the render method of %s.`, getComponentNameFromFiber(current) || "Unknown"
18395
20241
  return current;
18396
20242
  }
18397
20243
  var exports2 = {};
18398
- var assign = Object.assign, REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy");
20244
+ var assign2 = Object.assign, REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy");
18399
20245
  Symbol.for("react.scope");
18400
20246
  var REACT_ACTIVITY_TYPE = Symbol.for("react.activity");
18401
20247
  Symbol.for("react.legacy_hidden");
@@ -18513,14 +20359,14 @@ Check the render method of %s.`, getComponentNameFromFiber(current) || "Unknown"
18513
20359
  _threadCount: 0,
18514
20360
  _currentRenderer: null,
18515
20361
  _currentRenderer2: null
18516
- }, now = Scheduler.unstable_now, createTask = console.createTask ? console.createTask : function() {
20362
+ }, now2 = Scheduler.unstable_now, createTask = console.createTask ? console.createTask : function() {
18517
20363
  return null;
18518
20364
  }, renderStartTime = -0, commitStartTime = -0, commitEndTime = -0, commitErrors = null, profilerStartTime = -1.1, profilerEffectDuration = -0, componentEffectDuration = -0, componentEffectStartTime = -1.1, componentEffectEndTime = -1.1, componentEffectErrors = null, componentEffectSpawnedUpdate = false, blockingClampTime = -0, blockingUpdateTime = -1.1, blockingUpdateTask = null, blockingUpdateType = 0, blockingUpdateMethodName = null, blockingUpdateComponentName = null, blockingEventTime = -1.1, blockingEventType = null, blockingEventRepeatTime = -1.1, blockingSuspendedTime = -1.1, transitionClampTime = -0, transitionStartTime = -1.1, transitionUpdateTime = -1.1, transitionUpdateType = 0, transitionUpdateTask = null, transitionUpdateMethodName = null, transitionUpdateComponentName = null, transitionEventTime = -1.1, transitionEventType = null, transitionEventRepeatTime = -1.1, transitionSuspendedTime = -1.1, animatingTask = null, yieldReason = 0, yieldStartTime = -1.1, currentUpdateIsNested = false, nestedUpdateScheduled = false, firstScheduledRoot = null, lastScheduledRoot = null, didScheduleMicrotask = false, didScheduleMicrotask_act = false, mightHavePendingSyncWork = false, isFlushingWork = false, currentEventTransitionLane = 0, fakeActCallbackNode$1 = {}, currentEntangledListeners = null, currentEntangledPendingCount = 0, currentEntangledLane = 0, currentEntangledActionThenable = null, prevOnStartTransitionFinish = ReactSharedInternals.S;
18519
20365
  ReactSharedInternals.S = function(transition, returnValue) {
18520
20366
  globalMostRecentTransitionTime = now$1();
18521
20367
  if (typeof returnValue === "object" && returnValue !== null && typeof returnValue.then === "function") {
18522
20368
  if (0 > transitionStartTime && 0 > transitionUpdateTime) {
18523
- transitionStartTime = now();
20369
+ transitionStartTime = now2();
18524
20370
  var newEventTime = resolveEventTimeStamp(), newEventType = resolveEventType();
18525
20371
  if (newEventTime !== transitionEventRepeatTime || newEventType !== transitionEventType)
18526
20372
  transitionEventRepeatTime = -1.1;
@@ -18701,10 +20547,10 @@ Learn more about this warning here: https://react.dev/link/legacy-context`, sort
18701
20547
  }
18702
20548
  }, callComponentWillUnmountInDEV = callComponentWillUnmount.react_stack_bottom_frame.bind(callComponentWillUnmount), callCreate = {
18703
20549
  react_stack_bottom_frame: function(effect) {
18704
- var create = effect.create;
20550
+ var create2 = effect.create;
18705
20551
  effect = effect.inst;
18706
- create = create();
18707
- return effect.destroy = create;
20552
+ create2 = create2();
20553
+ return effect.destroy = create2;
18708
20554
  }
18709
20555
  }, callCreateInDEV = callCreate.react_stack_bottom_frame.bind(callCreate), callDestroy = {
18710
20556
  react_stack_bottom_frame: function(current2, nearestMountedAncestor, destroy) {
@@ -18804,38 +20650,38 @@ Check the top-level render call using <` + componentName2 + ">.");
18804
20650
  mountHookTypesDev();
18805
20651
  return readContext(context);
18806
20652
  },
18807
- useEffect: function(create, deps) {
20653
+ useEffect: function(create2, deps) {
18808
20654
  currentHookNameInDev = "useEffect";
18809
20655
  mountHookTypesDev();
18810
20656
  checkDepsAreArrayDev(deps);
18811
- return mountEffect(create, deps);
20657
+ return mountEffect(create2, deps);
18812
20658
  },
18813
- useImperativeHandle: function(ref, create, deps) {
20659
+ useImperativeHandle: function(ref, create2, deps) {
18814
20660
  currentHookNameInDev = "useImperativeHandle";
18815
20661
  mountHookTypesDev();
18816
20662
  checkDepsAreArrayDev(deps);
18817
- return mountImperativeHandle(ref, create, deps);
20663
+ return mountImperativeHandle(ref, create2, deps);
18818
20664
  },
18819
- useInsertionEffect: function(create, deps) {
20665
+ useInsertionEffect: function(create2, deps) {
18820
20666
  currentHookNameInDev = "useInsertionEffect";
18821
20667
  mountHookTypesDev();
18822
20668
  checkDepsAreArrayDev(deps);
18823
- mountEffectImpl(4, Insertion, create, deps);
20669
+ mountEffectImpl(4, Insertion, create2, deps);
18824
20670
  },
18825
- useLayoutEffect: function(create, deps) {
20671
+ useLayoutEffect: function(create2, deps) {
18826
20672
  currentHookNameInDev = "useLayoutEffect";
18827
20673
  mountHookTypesDev();
18828
20674
  checkDepsAreArrayDev(deps);
18829
- return mountLayoutEffect(create, deps);
20675
+ return mountLayoutEffect(create2, deps);
18830
20676
  },
18831
- useMemo: function(create, deps) {
20677
+ useMemo: function(create2, deps) {
18832
20678
  currentHookNameInDev = "useMemo";
18833
20679
  mountHookTypesDev();
18834
20680
  checkDepsAreArrayDev(deps);
18835
20681
  var prevDispatcher = ReactSharedInternals.H;
18836
20682
  ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV;
18837
20683
  try {
18838
- return mountMemo(create, deps);
20684
+ return mountMemo(create2, deps);
18839
20685
  } finally {
18840
20686
  ReactSharedInternals.H = prevDispatcher;
18841
20687
  }
@@ -18935,33 +20781,33 @@ Check the top-level render call using <` + componentName2 + ">.");
18935
20781
  updateHookTypesDev();
18936
20782
  return readContext(context);
18937
20783
  },
18938
- useEffect: function(create, deps) {
20784
+ useEffect: function(create2, deps) {
18939
20785
  currentHookNameInDev = "useEffect";
18940
20786
  updateHookTypesDev();
18941
- return mountEffect(create, deps);
20787
+ return mountEffect(create2, deps);
18942
20788
  },
18943
- useImperativeHandle: function(ref, create, deps) {
20789
+ useImperativeHandle: function(ref, create2, deps) {
18944
20790
  currentHookNameInDev = "useImperativeHandle";
18945
20791
  updateHookTypesDev();
18946
- return mountImperativeHandle(ref, create, deps);
20792
+ return mountImperativeHandle(ref, create2, deps);
18947
20793
  },
18948
- useInsertionEffect: function(create, deps) {
20794
+ useInsertionEffect: function(create2, deps) {
18949
20795
  currentHookNameInDev = "useInsertionEffect";
18950
20796
  updateHookTypesDev();
18951
- mountEffectImpl(4, Insertion, create, deps);
20797
+ mountEffectImpl(4, Insertion, create2, deps);
18952
20798
  },
18953
- useLayoutEffect: function(create, deps) {
20799
+ useLayoutEffect: function(create2, deps) {
18954
20800
  currentHookNameInDev = "useLayoutEffect";
18955
20801
  updateHookTypesDev();
18956
- return mountLayoutEffect(create, deps);
20802
+ return mountLayoutEffect(create2, deps);
18957
20803
  },
18958
- useMemo: function(create, deps) {
20804
+ useMemo: function(create2, deps) {
18959
20805
  currentHookNameInDev = "useMemo";
18960
20806
  updateHookTypesDev();
18961
20807
  var prevDispatcher = ReactSharedInternals.H;
18962
20808
  ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV;
18963
20809
  try {
18964
- return mountMemo(create, deps);
20810
+ return mountMemo(create2, deps);
18965
20811
  } finally {
18966
20812
  ReactSharedInternals.H = prevDispatcher;
18967
20813
  }
@@ -19061,33 +20907,33 @@ Check the top-level render call using <` + componentName2 + ">.");
19061
20907
  updateHookTypesDev();
19062
20908
  return readContext(context);
19063
20909
  },
19064
- useEffect: function(create, deps) {
20910
+ useEffect: function(create2, deps) {
19065
20911
  currentHookNameInDev = "useEffect";
19066
20912
  updateHookTypesDev();
19067
- updateEffectImpl(2048, Passive, create, deps);
20913
+ updateEffectImpl(2048, Passive, create2, deps);
19068
20914
  },
19069
- useImperativeHandle: function(ref, create, deps) {
20915
+ useImperativeHandle: function(ref, create2, deps) {
19070
20916
  currentHookNameInDev = "useImperativeHandle";
19071
20917
  updateHookTypesDev();
19072
- return updateImperativeHandle(ref, create, deps);
20918
+ return updateImperativeHandle(ref, create2, deps);
19073
20919
  },
19074
- useInsertionEffect: function(create, deps) {
20920
+ useInsertionEffect: function(create2, deps) {
19075
20921
  currentHookNameInDev = "useInsertionEffect";
19076
20922
  updateHookTypesDev();
19077
- return updateEffectImpl(4, Insertion, create, deps);
20923
+ return updateEffectImpl(4, Insertion, create2, deps);
19078
20924
  },
19079
- useLayoutEffect: function(create, deps) {
20925
+ useLayoutEffect: function(create2, deps) {
19080
20926
  currentHookNameInDev = "useLayoutEffect";
19081
20927
  updateHookTypesDev();
19082
- return updateEffectImpl(4, Layout, create, deps);
20928
+ return updateEffectImpl(4, Layout, create2, deps);
19083
20929
  },
19084
- useMemo: function(create, deps) {
20930
+ useMemo: function(create2, deps) {
19085
20931
  currentHookNameInDev = "useMemo";
19086
20932
  updateHookTypesDev();
19087
20933
  var prevDispatcher = ReactSharedInternals.H;
19088
20934
  ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV;
19089
20935
  try {
19090
- return updateMemo(create, deps);
20936
+ return updateMemo(create2, deps);
19091
20937
  } finally {
19092
20938
  ReactSharedInternals.H = prevDispatcher;
19093
20939
  }
@@ -19187,33 +21033,33 @@ Check the top-level render call using <` + componentName2 + ">.");
19187
21033
  updateHookTypesDev();
19188
21034
  return readContext(context);
19189
21035
  },
19190
- useEffect: function(create, deps) {
21036
+ useEffect: function(create2, deps) {
19191
21037
  currentHookNameInDev = "useEffect";
19192
21038
  updateHookTypesDev();
19193
- updateEffectImpl(2048, Passive, create, deps);
21039
+ updateEffectImpl(2048, Passive, create2, deps);
19194
21040
  },
19195
- useImperativeHandle: function(ref, create, deps) {
21041
+ useImperativeHandle: function(ref, create2, deps) {
19196
21042
  currentHookNameInDev = "useImperativeHandle";
19197
21043
  updateHookTypesDev();
19198
- return updateImperativeHandle(ref, create, deps);
21044
+ return updateImperativeHandle(ref, create2, deps);
19199
21045
  },
19200
- useInsertionEffect: function(create, deps) {
21046
+ useInsertionEffect: function(create2, deps) {
19201
21047
  currentHookNameInDev = "useInsertionEffect";
19202
21048
  updateHookTypesDev();
19203
- return updateEffectImpl(4, Insertion, create, deps);
21049
+ return updateEffectImpl(4, Insertion, create2, deps);
19204
21050
  },
19205
- useLayoutEffect: function(create, deps) {
21051
+ useLayoutEffect: function(create2, deps) {
19206
21052
  currentHookNameInDev = "useLayoutEffect";
19207
21053
  updateHookTypesDev();
19208
- return updateEffectImpl(4, Layout, create, deps);
21054
+ return updateEffectImpl(4, Layout, create2, deps);
19209
21055
  },
19210
- useMemo: function(create, deps) {
21056
+ useMemo: function(create2, deps) {
19211
21057
  currentHookNameInDev = "useMemo";
19212
21058
  updateHookTypesDev();
19213
21059
  var prevDispatcher = ReactSharedInternals.H;
19214
21060
  ReactSharedInternals.H = InvalidNestedHooksDispatcherOnRerenderInDEV;
19215
21061
  try {
19216
- return updateMemo(create, deps);
21062
+ return updateMemo(create2, deps);
19217
21063
  } finally {
19218
21064
  ReactSharedInternals.H = prevDispatcher;
19219
21065
  }
@@ -19319,38 +21165,38 @@ Check the top-level render call using <` + componentName2 + ">.");
19319
21165
  mountHookTypesDev();
19320
21166
  return readContext(context);
19321
21167
  },
19322
- useEffect: function(create, deps) {
21168
+ useEffect: function(create2, deps) {
19323
21169
  currentHookNameInDev = "useEffect";
19324
21170
  warnInvalidHookAccess();
19325
21171
  mountHookTypesDev();
19326
- return mountEffect(create, deps);
21172
+ return mountEffect(create2, deps);
19327
21173
  },
19328
- useImperativeHandle: function(ref, create, deps) {
21174
+ useImperativeHandle: function(ref, create2, deps) {
19329
21175
  currentHookNameInDev = "useImperativeHandle";
19330
21176
  warnInvalidHookAccess();
19331
21177
  mountHookTypesDev();
19332
- return mountImperativeHandle(ref, create, deps);
21178
+ return mountImperativeHandle(ref, create2, deps);
19333
21179
  },
19334
- useInsertionEffect: function(create, deps) {
21180
+ useInsertionEffect: function(create2, deps) {
19335
21181
  currentHookNameInDev = "useInsertionEffect";
19336
21182
  warnInvalidHookAccess();
19337
21183
  mountHookTypesDev();
19338
- mountEffectImpl(4, Insertion, create, deps);
21184
+ mountEffectImpl(4, Insertion, create2, deps);
19339
21185
  },
19340
- useLayoutEffect: function(create, deps) {
21186
+ useLayoutEffect: function(create2, deps) {
19341
21187
  currentHookNameInDev = "useLayoutEffect";
19342
21188
  warnInvalidHookAccess();
19343
21189
  mountHookTypesDev();
19344
- return mountLayoutEffect(create, deps);
21190
+ return mountLayoutEffect(create2, deps);
19345
21191
  },
19346
- useMemo: function(create, deps) {
21192
+ useMemo: function(create2, deps) {
19347
21193
  currentHookNameInDev = "useMemo";
19348
21194
  warnInvalidHookAccess();
19349
21195
  mountHookTypesDev();
19350
21196
  var prevDispatcher = ReactSharedInternals.H;
19351
21197
  ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV;
19352
21198
  try {
19353
- return mountMemo(create, deps);
21199
+ return mountMemo(create2, deps);
19354
21200
  } finally {
19355
21201
  ReactSharedInternals.H = prevDispatcher;
19356
21202
  }
@@ -19432,9 +21278,9 @@ Check the top-level render call using <` + componentName2 + ">.");
19432
21278
  mountHookTypesDev();
19433
21279
  return mountOptimistic(passthrough);
19434
21280
  },
19435
- useMemoCache: function(size) {
21281
+ useMemoCache: function(size2) {
19436
21282
  warnInvalidHookAccess();
19437
- return useMemoCache(size);
21283
+ return useMemoCache(size2);
19438
21284
  },
19439
21285
  useHostTransitionStatus,
19440
21286
  useCacheRefresh: function() {
@@ -19470,38 +21316,38 @@ Check the top-level render call using <` + componentName2 + ">.");
19470
21316
  updateHookTypesDev();
19471
21317
  return readContext(context);
19472
21318
  },
19473
- useEffect: function(create, deps) {
21319
+ useEffect: function(create2, deps) {
19474
21320
  currentHookNameInDev = "useEffect";
19475
21321
  warnInvalidHookAccess();
19476
21322
  updateHookTypesDev();
19477
- updateEffectImpl(2048, Passive, create, deps);
21323
+ updateEffectImpl(2048, Passive, create2, deps);
19478
21324
  },
19479
- useImperativeHandle: function(ref, create, deps) {
21325
+ useImperativeHandle: function(ref, create2, deps) {
19480
21326
  currentHookNameInDev = "useImperativeHandle";
19481
21327
  warnInvalidHookAccess();
19482
21328
  updateHookTypesDev();
19483
- return updateImperativeHandle(ref, create, deps);
21329
+ return updateImperativeHandle(ref, create2, deps);
19484
21330
  },
19485
- useInsertionEffect: function(create, deps) {
21331
+ useInsertionEffect: function(create2, deps) {
19486
21332
  currentHookNameInDev = "useInsertionEffect";
19487
21333
  warnInvalidHookAccess();
19488
21334
  updateHookTypesDev();
19489
- return updateEffectImpl(4, Insertion, create, deps);
21335
+ return updateEffectImpl(4, Insertion, create2, deps);
19490
21336
  },
19491
- useLayoutEffect: function(create, deps) {
21337
+ useLayoutEffect: function(create2, deps) {
19492
21338
  currentHookNameInDev = "useLayoutEffect";
19493
21339
  warnInvalidHookAccess();
19494
21340
  updateHookTypesDev();
19495
- return updateEffectImpl(4, Layout, create, deps);
21341
+ return updateEffectImpl(4, Layout, create2, deps);
19496
21342
  },
19497
- useMemo: function(create, deps) {
21343
+ useMemo: function(create2, deps) {
19498
21344
  currentHookNameInDev = "useMemo";
19499
21345
  warnInvalidHookAccess();
19500
21346
  updateHookTypesDev();
19501
21347
  var prevDispatcher = ReactSharedInternals.H;
19502
21348
  ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV;
19503
21349
  try {
19504
- return updateMemo(create, deps);
21350
+ return updateMemo(create2, deps);
19505
21351
  } finally {
19506
21352
  ReactSharedInternals.H = prevDispatcher;
19507
21353
  }
@@ -19583,9 +21429,9 @@ Check the top-level render call using <` + componentName2 + ">.");
19583
21429
  updateHookTypesDev();
19584
21430
  return updateOptimistic(passthrough, reducer);
19585
21431
  },
19586
- useMemoCache: function(size) {
21432
+ useMemoCache: function(size2) {
19587
21433
  warnInvalidHookAccess();
19588
- return useMemoCache(size);
21434
+ return useMemoCache(size2);
19589
21435
  },
19590
21436
  useHostTransitionStatus,
19591
21437
  useCacheRefresh: function() {
@@ -19621,38 +21467,38 @@ Check the top-level render call using <` + componentName2 + ">.");
19621
21467
  updateHookTypesDev();
19622
21468
  return readContext(context);
19623
21469
  },
19624
- useEffect: function(create, deps) {
21470
+ useEffect: function(create2, deps) {
19625
21471
  currentHookNameInDev = "useEffect";
19626
21472
  warnInvalidHookAccess();
19627
21473
  updateHookTypesDev();
19628
- updateEffectImpl(2048, Passive, create, deps);
21474
+ updateEffectImpl(2048, Passive, create2, deps);
19629
21475
  },
19630
- useImperativeHandle: function(ref, create, deps) {
21476
+ useImperativeHandle: function(ref, create2, deps) {
19631
21477
  currentHookNameInDev = "useImperativeHandle";
19632
21478
  warnInvalidHookAccess();
19633
21479
  updateHookTypesDev();
19634
- return updateImperativeHandle(ref, create, deps);
21480
+ return updateImperativeHandle(ref, create2, deps);
19635
21481
  },
19636
- useInsertionEffect: function(create, deps) {
21482
+ useInsertionEffect: function(create2, deps) {
19637
21483
  currentHookNameInDev = "useInsertionEffect";
19638
21484
  warnInvalidHookAccess();
19639
21485
  updateHookTypesDev();
19640
- return updateEffectImpl(4, Insertion, create, deps);
21486
+ return updateEffectImpl(4, Insertion, create2, deps);
19641
21487
  },
19642
- useLayoutEffect: function(create, deps) {
21488
+ useLayoutEffect: function(create2, deps) {
19643
21489
  currentHookNameInDev = "useLayoutEffect";
19644
21490
  warnInvalidHookAccess();
19645
21491
  updateHookTypesDev();
19646
- return updateEffectImpl(4, Layout, create, deps);
21492
+ return updateEffectImpl(4, Layout, create2, deps);
19647
21493
  },
19648
- useMemo: function(create, deps) {
21494
+ useMemo: function(create2, deps) {
19649
21495
  currentHookNameInDev = "useMemo";
19650
21496
  warnInvalidHookAccess();
19651
21497
  updateHookTypesDev();
19652
21498
  var prevDispatcher = ReactSharedInternals.H;
19653
21499
  ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV;
19654
21500
  try {
19655
- return updateMemo(create, deps);
21501
+ return updateMemo(create2, deps);
19656
21502
  } finally {
19657
21503
  ReactSharedInternals.H = prevDispatcher;
19658
21504
  }
@@ -19734,9 +21580,9 @@ Check the top-level render call using <` + componentName2 + ">.");
19734
21580
  updateHookTypesDev();
19735
21581
  return rerenderOptimistic(passthrough, reducer);
19736
21582
  },
19737
- useMemoCache: function(size) {
21583
+ useMemoCache: function(size2) {
19738
21584
  warnInvalidHookAccess();
19739
- return useMemoCache(size);
21585
+ return useMemoCache(size2);
19740
21586
  },
19741
21587
  useHostTransitionStatus,
19742
21588
  useCacheRefresh: function() {
@@ -19766,27 +21612,27 @@ Check the top-level render call using <` + componentName2 + ">.");
19766
21612
  var classComponentUpdater = {
19767
21613
  enqueueSetState: function(inst, payload, callback) {
19768
21614
  inst = inst._reactInternals;
19769
- var lane = requestUpdateLane(inst), update = createUpdate(lane);
19770
- update.payload = payload;
19771
- callback !== undefined && callback !== null && (warnOnInvalidCallback(callback), update.callback = callback);
19772
- payload = enqueueUpdate(inst, update, lane);
21615
+ var lane = requestUpdateLane(inst), update2 = createUpdate(lane);
21616
+ update2.payload = payload;
21617
+ callback !== undefined && callback !== null && (warnOnInvalidCallback(callback), update2.callback = callback);
21618
+ payload = enqueueUpdate(inst, update2, lane);
19773
21619
  payload !== null && (startUpdateTimerByLane(lane, "this.setState()", inst), scheduleUpdateOnFiber(payload, inst, lane), entangleTransitions(payload, inst, lane));
19774
21620
  },
19775
21621
  enqueueReplaceState: function(inst, payload, callback) {
19776
21622
  inst = inst._reactInternals;
19777
- var lane = requestUpdateLane(inst), update = createUpdate(lane);
19778
- update.tag = ReplaceState;
19779
- update.payload = payload;
19780
- callback !== undefined && callback !== null && (warnOnInvalidCallback(callback), update.callback = callback);
19781
- payload = enqueueUpdate(inst, update, lane);
21623
+ var lane = requestUpdateLane(inst), update2 = createUpdate(lane);
21624
+ update2.tag = ReplaceState;
21625
+ update2.payload = payload;
21626
+ callback !== undefined && callback !== null && (warnOnInvalidCallback(callback), update2.callback = callback);
21627
+ payload = enqueueUpdate(inst, update2, lane);
19782
21628
  payload !== null && (startUpdateTimerByLane(lane, "this.replaceState()", inst), scheduleUpdateOnFiber(payload, inst, lane), entangleTransitions(payload, inst, lane));
19783
21629
  },
19784
21630
  enqueueForceUpdate: function(inst, callback) {
19785
21631
  inst = inst._reactInternals;
19786
- var lane = requestUpdateLane(inst), update = createUpdate(lane);
19787
- update.tag = ForceUpdate;
19788
- callback !== undefined && callback !== null && (warnOnInvalidCallback(callback), update.callback = callback);
19789
- callback = enqueueUpdate(inst, update, lane);
21632
+ var lane = requestUpdateLane(inst), update2 = createUpdate(lane);
21633
+ update2.tag = ForceUpdate;
21634
+ callback !== undefined && callback !== null && (warnOnInvalidCallback(callback), update2.callback = callback);
21635
+ callback = enqueueUpdate(inst, update2, lane);
19790
21636
  callback !== null && (startUpdateTimerByLane(lane, "this.forceUpdate()", inst), scheduleUpdateOnFiber(callback, inst, lane), entangleTransitions(callback, inst, lane));
19791
21637
  }
19792
21638
  }, componentName = null, errorBoundaryName = null, SelectiveHydrationException = Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."), didReceiveUpdate = false;
@@ -19841,15 +21687,15 @@ Check the top-level render call using <` + componentName2 + ">.");
19841
21687
  var overrideHookState = null, overrideHookStateDeletePath = null, overrideHookStateRenamePath = null, overrideProps = null, overridePropsDeletePath = null, overridePropsRenamePath = null, scheduleUpdate = null, scheduleRetry = null, setErrorHandler = null, setSuspenseHandler = null;
19842
21688
  overrideHookState = function(fiber, id, path11, value) {
19843
21689
  id = findHook(fiber, id);
19844
- id !== null && (path11 = copyWithSetImpl(id.memoizedState, path11, 0, value), id.memoizedState = path11, id.baseState = path11, fiber.memoizedProps = assign({}, fiber.memoizedProps), path11 = enqueueConcurrentRenderForLane(fiber, 2), path11 !== null && scheduleUpdateOnFiber(path11, fiber, 2));
21690
+ id !== null && (path11 = copyWithSetImpl(id.memoizedState, path11, 0, value), id.memoizedState = path11, id.baseState = path11, fiber.memoizedProps = assign2({}, fiber.memoizedProps), path11 = enqueueConcurrentRenderForLane(fiber, 2), path11 !== null && scheduleUpdateOnFiber(path11, fiber, 2));
19845
21691
  };
19846
21692
  overrideHookStateDeletePath = function(fiber, id, path11) {
19847
21693
  id = findHook(fiber, id);
19848
- id !== null && (path11 = copyWithDeleteImpl(id.memoizedState, path11, 0), id.memoizedState = path11, id.baseState = path11, fiber.memoizedProps = assign({}, fiber.memoizedProps), path11 = enqueueConcurrentRenderForLane(fiber, 2), path11 !== null && scheduleUpdateOnFiber(path11, fiber, 2));
21694
+ id !== null && (path11 = copyWithDeleteImpl(id.memoizedState, path11, 0), id.memoizedState = path11, id.baseState = path11, fiber.memoizedProps = assign2({}, fiber.memoizedProps), path11 = enqueueConcurrentRenderForLane(fiber, 2), path11 !== null && scheduleUpdateOnFiber(path11, fiber, 2));
19849
21695
  };
19850
21696
  overrideHookStateRenamePath = function(fiber, id, oldPath, newPath) {
19851
21697
  id = findHook(fiber, id);
19852
- id !== null && (oldPath = copyWithRename(id.memoizedState, oldPath, newPath), id.memoizedState = oldPath, id.baseState = oldPath, fiber.memoizedProps = assign({}, fiber.memoizedProps), oldPath = enqueueConcurrentRenderForLane(fiber, 2), oldPath !== null && scheduleUpdateOnFiber(oldPath, fiber, 2));
21698
+ id !== null && (oldPath = copyWithRename(id.memoizedState, oldPath, newPath), id.memoizedState = oldPath, id.baseState = oldPath, fiber.memoizedProps = assign2({}, fiber.memoizedProps), oldPath = enqueueConcurrentRenderForLane(fiber, 2), oldPath !== null && scheduleUpdateOnFiber(oldPath, fiber, 2));
19853
21699
  };
19854
21700
  overrideProps = function(fiber, path11, value) {
19855
21701
  fiber.pendingProps = copyWithSetImpl(fiber.memoizedProps, path11, 0, value);
@@ -20210,7 +22056,7 @@ No matching component was found for:
20210
22056
  throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");
20211
22057
  var queue = ensureFormComponentIsStateful(formFiber).queue;
20212
22058
  startHostActionTimer(formFiber);
20213
- startTransition(formFiber, queue, pendingState, NotPendingTransition, action === null ? noop : function() {
22059
+ startTransition(formFiber, queue, pendingState, NotPendingTransition, action === null ? noop2 : function() {
20214
22060
  ReactSharedInternals.T === null && console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");
20215
22061
  var stateHook = ensureFormComponentIsStateful(formFiber);
20216
22062
  stateHook.next === null && (stateHook = formFiber.alternate.memoizedState);
@@ -20491,7 +22337,7 @@ var require_stack_utils = __commonJS((exports, module) => {
20491
22337
  }
20492
22338
  let outdent = false;
20493
22339
  let lastNonAtLine = null;
20494
- const result = [];
22340
+ const result2 = [];
20495
22341
  stack.forEach((st) => {
20496
22342
  st = st.replace(/\\/g, "/");
20497
22343
  if (this._internals.some((internal) => internal.test(st))) {
@@ -20510,17 +22356,17 @@ var require_stack_utils = __commonJS((exports, module) => {
20510
22356
  if (st) {
20511
22357
  if (isAtLine) {
20512
22358
  if (lastNonAtLine) {
20513
- result.push(lastNonAtLine);
22359
+ result2.push(lastNonAtLine);
20514
22360
  lastNonAtLine = null;
20515
22361
  }
20516
- result.push(st);
22362
+ result2.push(st);
20517
22363
  } else {
20518
22364
  outdent = true;
20519
22365
  lastNonAtLine = st;
20520
22366
  }
20521
22367
  }
20522
22368
  });
20523
- return result.map((line) => `${indent}${line}
22369
+ return result2.map((line) => `${indent}${line}
20524
22370
  `).join("");
20525
22371
  }
20526
22372
  captureString(limit, fn = this.captureString) {
@@ -20614,7 +22460,7 @@ var require_stack_utils = __commonJS((exports, module) => {
20614
22460
  const col = match[9];
20615
22461
  const native = match[10] === "native";
20616
22462
  const closeParen = match[11] === ")";
20617
- let method;
22463
+ let method2;
20618
22464
  const res = {};
20619
22465
  if (lnum) {
20620
22466
  res.line = Number(lnum);
@@ -20630,10 +22476,10 @@ var require_stack_utils = __commonJS((exports, module) => {
20630
22476
  } else if (file.charAt(i) === "(" && file.charAt(i - 1) === " ") {
20631
22477
  closes--;
20632
22478
  if (closes === -1 && file.charAt(i - 1) === " ") {
20633
- const before = file.slice(0, i - 1);
20634
- const after = file.slice(i + 1);
20635
- file = after;
20636
- fname += ` (${before}`;
22479
+ const before2 = file.slice(0, i - 1);
22480
+ const after2 = file.slice(i + 1);
22481
+ file = after2;
22482
+ fname += ` (${before2}`;
20637
22483
  break;
20638
22484
  }
20639
22485
  }
@@ -20643,7 +22489,7 @@ var require_stack_utils = __commonJS((exports, module) => {
20643
22489
  const methodMatch = fname.match(methodRe);
20644
22490
  if (methodMatch) {
20645
22491
  fname = methodMatch[1];
20646
- method = methodMatch[2];
22492
+ method2 = methodMatch[2];
20647
22493
  }
20648
22494
  }
20649
22495
  setFile(res, file, this._cwd);
@@ -20665,19 +22511,19 @@ var require_stack_utils = __commonJS((exports, module) => {
20665
22511
  if (fname) {
20666
22512
  res.function = fname;
20667
22513
  }
20668
- if (method && fname !== method) {
20669
- res.method = method;
22514
+ if (method2 && fname !== method2) {
22515
+ res.method = method2;
20670
22516
  }
20671
22517
  return res;
20672
22518
  }
20673
22519
  }
20674
- function setFile(result, filename, cwd2) {
22520
+ function setFile(result2, filename, cwd2) {
20675
22521
  if (filename) {
20676
22522
  filename = filename.replace(/\\/g, "/");
20677
22523
  if (filename.startsWith(`${cwd2}/`)) {
20678
22524
  filename = filename.slice(cwd2.length + 1);
20679
22525
  }
20680
- result.file = filename;
22526
+ result2.file = filename;
20681
22527
  }
20682
22528
  }
20683
22529
  function ignoredPackagesRegExp(ignoredPackages) {
@@ -22497,16 +24343,16 @@ var require_react_jsx_dev_runtime_development = __commonJS((exports) => {
22497
24343
  validateChildKeys(children);
22498
24344
  if (hasOwnProperty.call(config, "key")) {
22499
24345
  children = getComponentNameFromType(type);
22500
- var keys = Object.keys(config).filter(function(k) {
24346
+ var keys2 = Object.keys(config).filter(function(k) {
22501
24347
  return k !== "key";
22502
24348
  });
22503
- isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
22504
- didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error(`A props object containing a "key" prop is being spread into JSX:
24349
+ isStaticChildren = 0 < keys2.length ? "{key: someKey, " + keys2.join(": ..., ") + ": ...}" : "{key: someKey}";
24350
+ didWarnAboutKeySpread[children + isStaticChildren] || (keys2 = 0 < keys2.length ? "{" + keys2.join(": ..., ") + ": ...}" : "{}", console.error(`A props object containing a "key" prop is being spread into JSX:
22505
24351
  let props = %s;
22506
24352
  <%s {...props} />
22507
24353
  React keys must be passed directly to JSX without using spread:
22508
24354
  let props = %s;
22509
- <%s key={someKey} {...props} />`, isStaticChildren, children, keys, children), didWarnAboutKeySpread[children + isStaticChildren] = true);
24355
+ <%s key={someKey} {...props} />`, isStaticChildren, children, keys2, children), didWarnAboutKeySpread[children + isStaticChildren] = true);
22510
24356
  }
22511
24357
  children = null;
22512
24358
  maybeKey !== undefined && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
@@ -22549,8 +24395,9 @@ React keys must be passed directly to JSX without using spread:
22549
24395
 
22550
24396
  // node_modules/react/jsx-dev-runtime.js
22551
24397
  var require_jsx_dev_runtime = __commonJS((exports, module) => {
24398
+ var react_jsx_dev_runtime_development = __toESM(require_react_jsx_dev_runtime_development());
22552
24399
  if (false) {} else {
22553
- module.exports = require_react_jsx_dev_runtime_development();
24400
+ module.exports = react_jsx_dev_runtime_development;
22554
24401
  }
22555
24402
  });
22556
24403
 
@@ -22574,7 +24421,7 @@ var {
22574
24421
  import figlet from "figlet";
22575
24422
 
22576
24423
  // src/version.ts
22577
- var CLI_VERSION = "2.3.2";
24424
+ var CLI_VERSION = "2.4.1";
22578
24425
 
22579
24426
  // src/commands/build/index.ts
22580
24427
  var import_fs_extra4 = __toESM(require_lib(), 1);
@@ -23152,11 +24999,14 @@ async function logWorkerMain(level, ...args) {
23152
24999
  return;
23153
25000
  }
23154
25001
  const chunks = [];
23155
- chunks.push(`[${new Date().toISOString()}]${level !== false ? ` [${level}]` : ""} `);
25002
+ const prefix = `[${new Date().toISOString()}]${level !== false ? ` [${level}]` : ""} `;
25003
+ chunks.push(prefix);
23156
25004
  for (let i = 0;i < args.length; i++) {
23157
25005
  const arg = args[i];
23158
25006
  if (typeof arg === "string") {
23159
- chunks.push(stripVTControlCharacters(arg));
25007
+ chunks.push(stripVTControlCharacters(arg).replaceAll(`
25008
+ `, `
25009
+ ${" ".repeat(prefix.length)}`));
23160
25010
  } else if (Buffer.isBuffer(arg) || arg instanceof Uint8Array) {
23161
25011
  chunks.push(arg);
23162
25012
  } else if (arg instanceof ArrayBuffer) {
@@ -23164,7 +25014,9 @@ async function logWorkerMain(level, ...args) {
23164
25014
  } else if (arg instanceof Blob) {
23165
25015
  chunks.push(new Uint8Array(await arg.arrayBuffer()));
23166
25016
  } else {
23167
- chunks.push(format("%O", arg));
25017
+ chunks.push(stripVTControlCharacters(format("%O", arg)).replaceAll(`
25018
+ `, `
25019
+ ${" ".repeat(prefix.length)}`));
23168
25020
  }
23169
25021
  if (i < args.length - 1) {
23170
25022
  chunks.push(" ");
@@ -23331,6 +25183,124 @@ function getWorldsList(clientPath) {
23331
25183
  return fs2.readdirSync(savesPath, { withFileTypes: true }).filter((f) => f.isDirectory).map((f) => f.name);
23332
25184
  }
23333
25185
 
25186
+ // node_modules/source-map-js/source-map.js
25187
+ var $SourceMapGenerator = require_source_map_generator().SourceMapGenerator;
25188
+ var $SourceMapConsumer = require_source_map_consumer().SourceMapConsumer;
25189
+ var $SourceNode = require_source_node().SourceNode;
25190
+
25191
+ // src/utils/source-map.ts
25192
+ import { readFileSync } from "fs";
25193
+ import { dirname, resolve } from "path";
25194
+ var sourceMapCache = new Map;
25195
+ function loadSourceMapSync(jsFilePath) {
25196
+ if (sourceMapCache.has(jsFilePath)) {
25197
+ return sourceMapCache.get(jsFilePath) ?? null;
25198
+ }
25199
+ try {
25200
+ const jsContent = readFileSync(jsFilePath, "utf8");
25201
+ const match = jsContent.match(/\/\/[#@]\s*sourceMappingURL=(.+)$/m);
25202
+ if (!match) {
25203
+ sourceMapCache.set(jsFilePath, null);
25204
+ return null;
25205
+ }
25206
+ const sourceMappingURL = match[1].trim();
25207
+ let mapPath;
25208
+ let mapContent;
25209
+ if (sourceMappingURL.startsWith("data:")) {
25210
+ const base64Match = sourceMappingURL.match(/base64,(.+)/);
25211
+ if (!base64Match) {
25212
+ sourceMapCache.set(jsFilePath, null);
25213
+ return null;
25214
+ }
25215
+ mapContent = Buffer.from(base64Match[1], "base64").toString("utf8");
25216
+ } else {
25217
+ mapPath = resolve(dirname(jsFilePath), sourceMappingURL);
25218
+ mapContent = readFileSync(mapPath, "utf8");
25219
+ }
25220
+ const rawMap = JSON.parse(mapContent);
25221
+ const consumer = new $SourceMapConsumer(rawMap);
25222
+ sourceMapCache.set(jsFilePath, consumer);
25223
+ return consumer;
25224
+ } catch {
25225
+ sourceMapCache.set(jsFilePath, null);
25226
+ return null;
25227
+ }
25228
+ }
25229
+ function parseStackLine(line) {
25230
+ const patterns = [
25231
+ /^\s*at\s+(?:async\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/,
25232
+ /^\s*at\s+(?:async\s+)?(.+?):(\d+):(\d+)$/,
25233
+ /^\s*at\s+<anonymous>\s+\((.+?):(\d+):(\d+)\)$/
25234
+ ];
25235
+ for (const pattern of patterns) {
25236
+ const match = line.match(pattern);
25237
+ if (match) {
25238
+ if (match.length === 5) {
25239
+ return {
25240
+ original: line,
25241
+ functionName: match[1],
25242
+ filePath: match[2],
25243
+ line: parseInt(match[3], 10),
25244
+ column: parseInt(match[4], 10)
25245
+ };
25246
+ } else if (match.length === 4) {
25247
+ return {
25248
+ original: line,
25249
+ filePath: match[1],
25250
+ line: parseInt(match[2], 10),
25251
+ column: parseInt(match[3], 10)
25252
+ };
25253
+ }
25254
+ }
25255
+ }
25256
+ return { original: line };
25257
+ }
25258
+ function resolveStackFrame(frame) {
25259
+ if (!frame.filePath || !frame.line || !frame.column) {
25260
+ return frame.original;
25261
+ }
25262
+ if (frame.filePath.includes("(native)") || frame.filePath === "native") {
25263
+ return frame.original;
25264
+ }
25265
+ try {
25266
+ const consumer = loadSourceMapSync(frame.filePath);
25267
+ if (!consumer) {
25268
+ return frame.original;
25269
+ }
25270
+ const pos = consumer.originalPositionFor({
25271
+ line: frame.line,
25272
+ column: frame.column - 1
25273
+ });
25274
+ if (pos.source && pos.line !== null) {
25275
+ const sourceDir = dirname(frame.filePath);
25276
+ const originalPath = resolve(sourceDir, pos.source);
25277
+ const functionPart = pos.name ?? frame.functionName ?? "<anonymous>";
25278
+ const location = `${originalPath}:${pos.line}:${(pos.column ?? 0) + 1}`;
25279
+ if (functionPart) {
25280
+ return ` at ${functionPart} (${location})`;
25281
+ }
25282
+ return ` at ${location}`;
25283
+ }
25284
+ } catch {}
25285
+ return frame.original;
25286
+ }
25287
+ function resolveStackTrace(stack) {
25288
+ const lines = stack.split(`
25289
+ `);
25290
+ const resolvedLines = [];
25291
+ for (const line of lines) {
25292
+ if (line.trimStart().startsWith("at ")) {
25293
+ const frame = parseStackLine(line);
25294
+ const resolved = resolveStackFrame(frame);
25295
+ resolvedLines.push(resolved);
25296
+ } else {
25297
+ resolvedLines.push(line);
25298
+ }
25299
+ }
25300
+ return resolvedLines.join(`
25301
+ `);
25302
+ }
25303
+
23334
25304
  // src/commands/build/export.ts
23335
25305
  var import_fs_extra2 = __toESM(require_lib(), 1);
23336
25306
  var import_adm_zip = __toESM(require_adm_zip(), 1);
@@ -23393,8 +25363,8 @@ async function createSymlink(folder, packName, newCache, minecraftPath, targetPa
23393
25363
  const comment = `# Sandstone Pack: ${packName}
23394
25364
  `;
23395
25365
  try {
23396
- const currentlyAllowed = await import_fs_extra2.default.readFile(allowedList, "utf-8");
23397
- if (!currentlyAllowed.includes(allowPath)) {
25366
+ const currentlyAllowed = (await import_fs_extra2.default.readFile(allowedList, "utf-8")).replace(/\r/g, "");
25367
+ if (currentlyAllowed.match(new RegExp(`^${allowPath}$`, "m")) === null) {
23398
25368
  log("[symlink] Adding workspace to allowed_symlinks.txt. If the game is running please restart it.");
23399
25369
  await import_fs_extra2.default.writeFile(allowedList, `${currentlyAllowed}
23400
25370
  #
@@ -23660,7 +25630,7 @@ async function loadBuildContext(cliOptions, folder) {
23660
25630
  conflictStrategies[resource] = strategy;
23661
25631
  }
23662
25632
  }
23663
- const sandstoneUrl = pathToFileURL(path5.join(folder, "node_modules", "sandstone", "dist", "index.js"));
25633
+ const sandstoneUrl = pathToFileURL(path5.join(folder, "node_modules", "sandstone", "dist", "exports", "index.js"));
23664
25634
  const { createSandstonePack, resetSandstonePack } = await import(sandstoneUrl);
23665
25635
  const context = {
23666
25636
  workingDir: folder,
@@ -23883,8 +25853,9 @@ async function _buildCommand(opts, _folder, existingContext, watching = false) {
23883
25853
  const traceStart = stackLines.findIndex((line) => line.trimStart().startsWith("at "));
23884
25854
  const stackTrace = traceStart >= 0 ? stackLines.slice(traceStart).join(`
23885
25855
  `) : "";
23886
- const formattedError = stackTrace ? `${errorMessage}
23887
- ${stackTrace}` : errorMessage;
25856
+ const resolvedStackTrace = stackTrace ? resolveStackTrace(stackTrace) : "";
25857
+ const formattedError = resolvedStackTrace ? `${errorMessage}
25858
+ ${resolvedStackTrace}` : errorMessage;
23888
25859
  return {
23889
25860
  success: false,
23890
25861
  error: formattedError,
@@ -23918,8 +25889,9 @@ async function buildCommand(opts, _folder, silent2 = false) {
23918
25889
  const traceStart = stackLines.findIndex((line) => line.trimStart().startsWith("at "));
23919
25890
  const stackTrace = traceStart >= 0 ? stackLines.slice(traceStart).join(`
23920
25891
  `) : "";
23921
- const formattedError = stackTrace ? `${errorMessage}
23922
- ${stackTrace}` : errorMessage;
25892
+ const resolvedStackTrace = stackTrace ? resolveStackTrace(stackTrace) : "";
25893
+ const formattedError = resolvedStackTrace ? `${errorMessage}
25894
+ ${resolvedStackTrace}` : errorMessage;
23923
25895
  if (!silent2) {
23924
25896
  log(source_default.bgRed.white("BuildError") + source_default.gray(":"), formattedError);
23925
25897
  process.exit(1);
@@ -24496,7 +26468,7 @@ async function createCommand2(_project, opts) {
24496
26468
  default: false
24497
26469
  }) === true ? "library" : "pack";
24498
26470
  const sv = (v) => new import_semver.SemVer(v);
24499
- const versions = [[sv("1.0.0-beta.3"), sv(CLI_VERSION)]];
26471
+ const versions = [[sv("1.0.0-beta.5"), sv(CLI_VERSION)]];
24500
26472
  const version = await select({
24501
26473
  message: "Which version of Sandstone do you want to use? These are the only supported versions for new projects.",
24502
26474
  choices: versions.map((v) => {
@@ -24876,7 +26848,6 @@ import process12 from "process";
24876
26848
  // node_modules/ink/build/ink.js
24877
26849
  var import_react13 = __toESM(require_react(), 1);
24878
26850
  import process11 from "process";
24879
-
24880
26851
  // node_modules/es-toolkit/dist/function/debounce.mjs
24881
26852
  function debounce(func, debounceMs, { signal, edges } = {}) {
24882
26853
  let pendingThis = undefined;
@@ -25204,7 +27175,7 @@ var getAllProperties = (object) => {
25204
27175
  return properties;
25205
27176
  };
25206
27177
  function autoBind(self, { include, exclude } = {}) {
25207
- const filter = (key) => {
27178
+ const filter2 = (key) => {
25208
27179
  const match = (pattern) => typeof pattern === "string" ? key === pattern : pattern.test(key);
25209
27180
  if (include) {
25210
27181
  return include.some(match);
@@ -25215,7 +27186,7 @@ function autoBind(self, { include, exclude } = {}) {
25215
27186
  return true;
25216
27187
  };
25217
27188
  for (const [object, key] of getAllProperties(self.constructor.prototype)) {
25218
- if (key === "constructor" || !filter(key)) {
27189
+ if (key === "constructor" || !filter2(key)) {
25219
27190
  continue;
25220
27191
  }
25221
27192
  const descriptor = Reflect.getOwnPropertyDescriptor(object, key);
@@ -25262,13 +27233,13 @@ var patchConsole = (callback) => {
25262
27233
  callback("stderr", data);
25263
27234
  };
25264
27235
  const internalConsole = new console.Console(stdout, stderr);
25265
- for (const method of consoleMethods) {
25266
- originalMethods[method] = console[method];
25267
- console[method] = internalConsole[method];
27236
+ for (const method2 of consoleMethods) {
27237
+ originalMethods[method2] = console[method2];
27238
+ console[method2] = internalConsole[method2];
25268
27239
  }
25269
27240
  return () => {
25270
- for (const method of consoleMethods) {
25271
- console[method] = originalMethods[method];
27241
+ for (const method2 of consoleMethods) {
27242
+ console[method2] = originalMethods[method2];
25272
27243
  }
25273
27244
  originalMethods = {};
25274
27245
  };
@@ -27096,11 +29067,11 @@ function assembleStyles2() {
27096
29067
  },
27097
29068
  hexToRgb: {
27098
29069
  value(hex) {
27099
- const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
27100
- if (!matches) {
29070
+ const matches2 = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
29071
+ if (!matches2) {
27101
29072
  return [0, 0, 0];
27102
29073
  }
27103
- let [colorString] = matches;
29074
+ let [colorString] = matches2;
27104
29075
  if (colorString.length === 3) {
27105
29076
  colorString = [...colorString].map((character) => character + character).join("");
27106
29077
  }
@@ -27143,11 +29114,11 @@ function assembleStyles2() {
27143
29114
  if (value === 0) {
27144
29115
  return 30;
27145
29116
  }
27146
- let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
29117
+ let result2 = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
27147
29118
  if (value === 2) {
27148
- result += 60;
29119
+ result2 += 60;
27149
29120
  }
27150
- return result;
29121
+ return result2;
27151
29122
  },
27152
29123
  enumerable: false
27153
29124
  },
@@ -27219,18 +29190,18 @@ var wrapWord = (rows, word, columns) => {
27219
29190
  }
27220
29191
  };
27221
29192
  var stringVisibleTrimSpacesRight = (string) => {
27222
- const words = string.split(" ");
27223
- let last = words.length;
27224
- while (last > 0) {
27225
- if (stringWidth(words[last - 1]) > 0) {
29193
+ const words2 = string.split(" ");
29194
+ let last2 = words2.length;
29195
+ while (last2 > 0) {
29196
+ if (stringWidth(words2[last2 - 1]) > 0) {
27226
29197
  break;
27227
29198
  }
27228
- last--;
29199
+ last2--;
27229
29200
  }
27230
- if (last === words.length) {
29201
+ if (last2 === words2.length) {
27231
29202
  return string;
27232
29203
  }
27233
- return words.slice(0, last).join(" ") + words.slice(last).join("");
29204
+ return words2.slice(0, last2).join(" ") + words2.slice(last2).join("");
27234
29205
  };
27235
29206
  var exec2 = (string, columns, options = {}) => {
27236
29207
  if (options.trim !== false && string.trim() === "") {
@@ -28143,26 +30114,26 @@ $ npm install --save-dev react-devtools-core
28143
30114
  }
28144
30115
  }
28145
30116
  }
28146
- var diff = (before, after) => {
28147
- if (before === after) {
30117
+ var diff = (before2, after2) => {
30118
+ if (before2 === after2) {
28148
30119
  return;
28149
30120
  }
28150
- if (!before) {
28151
- return after;
30121
+ if (!before2) {
30122
+ return after2;
28152
30123
  }
28153
30124
  const changed = {};
28154
30125
  let isChanged = false;
28155
- for (const key of Object.keys(before)) {
28156
- const isDeleted = after ? !Object.hasOwn(after, key) : true;
30126
+ for (const key of Object.keys(before2)) {
30127
+ const isDeleted = after2 ? !Object.hasOwn(after2, key) : true;
28157
30128
  if (isDeleted) {
28158
30129
  changed[key] = undefined;
28159
30130
  isChanged = true;
28160
30131
  }
28161
30132
  }
28162
- if (after) {
28163
- for (const key of Object.keys(after)) {
28164
- if (after[key] !== before[key]) {
28165
- changed[key] = after[key];
30133
+ if (after2) {
30134
+ for (const key of Object.keys(after2)) {
30135
+ if (after2[key] !== before2[key]) {
30136
+ changed[key] = after2[key];
28166
30137
  isChanged = true;
28167
30138
  }
28168
30139
  }
@@ -28412,21 +30383,21 @@ var colorize = (str, color, type) => {
28412
30383
  return type === "foreground" ? source_default.hex(color)(str) : source_default.bgHex(color)(str);
28413
30384
  }
28414
30385
  if (color.startsWith("ansi256")) {
28415
- const matches = ansiRegex2.exec(color);
28416
- if (!matches) {
30386
+ const matches2 = ansiRegex2.exec(color);
30387
+ if (!matches2) {
28417
30388
  return str;
28418
30389
  }
28419
- const value = Number(matches[1]);
30390
+ const value = Number(matches2[1]);
28420
30391
  return type === "foreground" ? source_default.ansi256(value)(str) : source_default.bgAnsi256(value)(str);
28421
30392
  }
28422
30393
  if (color.startsWith("rgb")) {
28423
- const matches = rgbRegex.exec(color);
28424
- if (!matches) {
30394
+ const matches2 = rgbRegex.exec(color);
30395
+ if (!matches2) {
28425
30396
  return str;
28426
30397
  }
28427
- const firstValue = Number(matches[1]);
28428
- const secondValue = Number(matches[2]);
28429
- const thirdValue = Number(matches[3]);
30398
+ const firstValue = Number(matches2[1]);
30399
+ const secondValue = Number(matches2[2]);
30400
+ const thirdValue = Number(matches2[3]);
28430
30401
  return type === "foreground" ? source_default.rgb(firstValue, secondValue, thirdValue)(str) : source_default.bgRgb(firstValue, secondValue, thirdValue)(str);
28431
30402
  }
28432
30403
  return str;
@@ -29212,13 +31183,13 @@ var createIncremental = (stream, { showCursor = false } = {}) => {
29212
31183
  };
29213
31184
  return render;
29214
31185
  };
29215
- var create = (stream, { showCursor = false, incremental = false } = {}) => {
31186
+ var create2 = (stream, { showCursor = false, incremental = false } = {}) => {
29216
31187
  if (incremental) {
29217
31188
  return createIncremental(stream, { showCursor });
29218
31189
  }
29219
31190
  return createStandard(stream, { showCursor });
29220
31191
  };
29221
- var logUpdate = { create };
31192
+ var logUpdate = { create: create2 };
29222
31193
  var log_update_default = logUpdate;
29223
31194
 
29224
31195
  // node_modules/ink/build/instances.js
@@ -29304,9 +31275,9 @@ var dist_default2 = convertToSpaces;
29304
31275
  // node_modules/code-excerpt/dist/index.js
29305
31276
  var generateLineNumbers = (line, around) => {
29306
31277
  const lineNumbers = [];
29307
- const min = line - around;
29308
- const max = line + around;
29309
- for (let lineNumber = min;lineNumber <= max; lineNumber++) {
31278
+ const min2 = line - around;
31279
+ const max2 = line + around;
31280
+ for (let lineNumber = min2;lineNumber <= max2; lineNumber++) {
29310
31281
  lineNumbers.push(lineNumber);
29311
31282
  }
29312
31283
  return lineNumbers;
@@ -29370,14 +31341,14 @@ var Box_default = Box;
29370
31341
 
29371
31342
  // node_modules/ink/build/components/Text.js
29372
31343
  var import_react10 = __toESM(require_react(), 1);
29373
- function Text({ color, backgroundColor, dimColor = false, bold = false, italic = false, underline = false, strikethrough = false, inverse = false, wrap = "wrap", children, "aria-label": ariaLabel, "aria-hidden": ariaHidden = false }) {
31344
+ function Text({ color, backgroundColor, dimColor = false, bold = false, italic = false, underline = false, strikethrough = false, inverse = false, wrap: wrap2 = "wrap", children, "aria-label": ariaLabel, "aria-hidden": ariaHidden = false }) {
29374
31345
  const { isScreenReaderEnabled } = import_react10.useContext(accessibilityContext);
29375
31346
  const inheritedBackgroundColor = import_react10.useContext(backgroundContext);
29376
31347
  const childrenOrAriaLabel = isScreenReaderEnabled && ariaLabel ? ariaLabel : children;
29377
31348
  if (childrenOrAriaLabel === undefined || childrenOrAriaLabel === null) {
29378
31349
  return null;
29379
31350
  }
29380
- const transform = (children2) => {
31351
+ const transform2 = (children2) => {
29381
31352
  if (dimColor) {
29382
31353
  children2 = source_default.dim(children2);
29383
31354
  }
@@ -29408,7 +31379,7 @@ function Text({ color, backgroundColor, dimColor = false, bold = false, italic =
29408
31379
  if (isScreenReaderEnabled && ariaHidden) {
29409
31380
  return null;
29410
31381
  }
29411
- return import_react10.default.createElement("ink-text", { style: { flexGrow: 0, flexShrink: 1, flexDirection: "row", textWrap: wrap }, internal_transform: transform }, isScreenReaderEnabled && ariaLabel ? ariaLabel : children);
31382
+ return import_react10.default.createElement("ink-text", { style: { flexGrow: 0, flexShrink: 1, flexDirection: "row", textWrap: wrap2 }, internal_transform: transform2 }, isScreenReaderEnabled && ariaLabel ? ariaLabel : children);
29412
31383
  }
29413
31384
 
29414
31385
  // node_modules/ink/build/components/ErrorOverview.js
@@ -29448,7 +31419,7 @@ function ErrorOverview({ error }) {
29448
31419
  // node_modules/ink/build/components/App.js
29449
31420
  var tab = "\t";
29450
31421
  var shiftTab = "\x1B[Z";
29451
- var escape = "\x1B";
31422
+ var escape2 = "\x1B";
29452
31423
 
29453
31424
  class App extends import_react12.PureComponent {
29454
31425
  static displayName = "InternalApp";
@@ -29544,17 +31515,17 @@ Read about how to prevent this error on https://github.com/vadimdemedes/ink/#isr
29544
31515
  }
29545
31516
  };
29546
31517
  handleReadable = () => {
29547
- let chunk;
29548
- while ((chunk = this.props.stdin.read()) !== null) {
29549
- this.handleInput(chunk);
29550
- this.internal_eventEmitter.emit("input", chunk);
31518
+ let chunk2;
31519
+ while ((chunk2 = this.props.stdin.read()) !== null) {
31520
+ this.handleInput(chunk2);
31521
+ this.internal_eventEmitter.emit("input", chunk2);
29551
31522
  }
29552
31523
  };
29553
31524
  handleInput = (input2) => {
29554
31525
  if (input2 === "\x03" && this.props.exitOnCtrlC) {
29555
31526
  this.handleExit();
29556
31527
  }
29557
- if (input2 === escape && this.state.activeFocusId) {
31528
+ if (input2 === escape2 && this.state.activeFocusId) {
29558
31529
  this.setState({
29559
31530
  activeFocusId: undefined
29560
31531
  });
@@ -29691,7 +31662,7 @@ Read about how to prevent this error on https://github.com/vadimdemedes/ink/#isr
29691
31662
  }
29692
31663
 
29693
31664
  // node_modules/ink/build/ink.js
29694
- var noop = () => {};
31665
+ var noop2 = () => {};
29695
31666
 
29696
31667
  class Ink {
29697
31668
  options;
@@ -29846,7 +31817,7 @@ class Ink {
29846
31817
  };
29847
31818
  render(node) {
29848
31819
  const tree = import_react13.default.createElement(accessibilityContext.Provider, { value: { isScreenReaderEnabled: this.isScreenReaderEnabled } }, import_react13.default.createElement(App, { stdin: this.options.stdin, stdout: this.options.stdout, stderr: this.options.stderr, writeToStdout: this.writeToStdout, writeToStderr: this.writeToStderr, exitOnCtrlC: this.options.exitOnCtrlC, onExit: this.unmount }, node));
29849
- reconciler_default.updateContainerSync(tree, this.container, null, noop);
31820
+ reconciler_default.updateContainerSync(tree, this.container, null, noop2);
29850
31821
  reconciler_default.flushSyncWork();
29851
31822
  }
29852
31823
  writeToStdout(data) {
@@ -29902,7 +31873,7 @@ class Ink {
29902
31873
  this.log.done();
29903
31874
  }
29904
31875
  this.isUnmounted = true;
29905
- reconciler_default.updateContainerSync(null, this.container, null, noop);
31876
+ reconciler_default.updateContainerSync(null, this.container, null, noop2);
29906
31877
  reconciler_default.flushSyncWork();
29907
31878
  instances_default.delete(this.options.stdout);
29908
31879
  if (error instanceof Error) {
@@ -29912,9 +31883,9 @@ class Ink {
29912
31883
  }
29913
31884
  }
29914
31885
  async waitUntilExit() {
29915
- this.exitPromise ||= new Promise((resolve, reject) => {
29916
- this.resolveExitPromise = resolve;
29917
- this.rejectExitPromise = reject;
31886
+ this.exitPromise ||= new Promise((resolve2, reject2) => {
31887
+ this.resolveExitPromise = resolve2;
31888
+ this.rejectExitPromise = reject2;
29918
31889
  });
29919
31890
  return this.exitPromise;
29920
31891
  }
@@ -30380,9 +32351,9 @@ function WatchUI({ manual, onManualRebuild, exit }) {
30380
32351
  const [buildResult, setBuildResultState] = import_react27.useState(null);
30381
32352
  const [logLines, setLogLinesState] = import_react27.useState([]);
30382
32353
  const [scrollOffset, setScrollOffset] = import_react27.useState(0);
30383
- const isError = status === "error" && buildResult?.error;
32354
+ const isError2 = status === "error" && buildResult?.error;
30384
32355
  const isManualPending = manual && status === "pending" && changedFiles.length > 0;
30385
- const contentMode = isError ? "error" : isManualPending ? "changes" : "logs";
32356
+ const contentMode = isError2 ? "error" : isManualPending ? "changes" : "logs";
30386
32357
  import_react27.useEffect(() => {
30387
32358
  setScrollOffset(0);
30388
32359
  }, [contentMode, buildResult?.error]);
@@ -30393,9 +32364,9 @@ function WatchUI({ manual, onManualRebuild, exit }) {
30393
32364
  const setChangedFiles = import_react27.useCallback((files) => {
30394
32365
  setChangedFilesState(files);
30395
32366
  }, []);
30396
- const setBuildResult = import_react27.useCallback((result) => {
30397
- setBuildResultState(result);
30398
- if (result.success) {
32367
+ const setBuildResult = import_react27.useCallback((result2) => {
32368
+ setBuildResultState(result2);
32369
+ if (result2.success) {
30399
32370
  setStatusState(manual ? "pending" : "watching");
30400
32371
  setChangedFilesState([]);
30401
32372
  } else {
@@ -30412,7 +32383,7 @@ function WatchUI({ manual, onManualRebuild, exit }) {
30412
32383
  });
30413
32384
  }, []);
30414
32385
  const getMaxScroll = import_react27.useCallback(() => {
30415
- if (isError && buildResult?.error) {
32386
+ if (isError2 && buildResult?.error) {
30416
32387
  return Math.max(0, buildResult.error.split(`
30417
32388
  `).length - CONTENT_LINES);
30418
32389
  } else if (isManualPending) {
@@ -30420,20 +32391,20 @@ function WatchUI({ manual, onManualRebuild, exit }) {
30420
32391
  } else {
30421
32392
  return Math.max(0, logLines.length - CONTENT_LINES);
30422
32393
  }
30423
- }, [isError, isManualPending, buildResult?.error, logLines.length]);
32394
+ }, [isError2, isManualPending, buildResult?.error, logLines.length]);
30424
32395
  use_input_default((input2, key) => {
30425
32396
  if (input2 === "q" || key.ctrl && input2 === "c") {
30426
32397
  exit();
30427
32398
  }
30428
32399
  const maxScroll = getMaxScroll();
30429
32400
  if (key.upArrow) {
30430
- if (isError) {
32401
+ if (isError2) {
30431
32402
  setScrollOffset((prev) => Math.max(0, prev - 1));
30432
32403
  } else {
30433
32404
  setScrollOffset((prev) => Math.min(maxScroll, prev + 1));
30434
32405
  }
30435
32406
  } else if (key.downArrow) {
30436
- if (isError) {
32407
+ if (isError2) {
30437
32408
  setScrollOffset((prev) => Math.min(maxScroll, prev + 1));
30438
32409
  } else {
30439
32410
  setScrollOffset((prev) => Math.max(0, prev - 1));
@@ -30470,7 +32441,7 @@ function WatchUI({ manual, onManualRebuild, exit }) {
30470
32441
  const footerParts = [];
30471
32442
  if (manual)
30472
32443
  footerParts.push("R/Enter: rebuild");
30473
- if (logLines.length > CONTENT_LINES || isError && buildResult?.error && buildResult.error.split(`
32444
+ if (logLines.length > CONTENT_LINES || isError2 && buildResult?.error && buildResult.error.split(`
30474
32445
  `).length > CONTENT_LINES) {
30475
32446
  footerParts.push("\u2191\u2193: scroll");
30476
32447
  }
@@ -30555,7 +32526,7 @@ function WatchUI({ manual, onManualRebuild, exit }) {
30555
32526
  color: "gray",
30556
32527
  children: "No build results yet"
30557
32528
  }, undefined, false, undefined, this),
30558
- isError ? /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Text, {
32529
+ isError2 ? /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Text, {
30559
32530
  color: "yellow",
30560
32531
  children: "Waiting for changes to retry..."
30561
32532
  }, undefined, false, undefined, this) : /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Text, {
@@ -30572,16 +32543,16 @@ function getWatchUIAPI() {
30572
32543
  return globalThis.__watchUIAPI;
30573
32544
  }
30574
32545
 
30575
- // ../hot-hook/packages/hot_hook/build/src/hot.js
32546
+ // node_modules/@sandstone-mc/hot-hook/build/src/hot.js
30576
32547
  import { register } from "module";
30577
32548
  import { MessageChannel as MessageChannel2 } from "worker_threads";
30578
32549
 
30579
- // ../hot-hook/packages/hot_hook/build/src/debug.js
32550
+ // node_modules/@sandstone-mc/hot-hook/build/src/debug.js
30580
32551
  import { debuglog } from "util";
30581
32552
  var debug = debuglog("hot-hook");
30582
32553
  var debug_default = debug;
30583
32554
 
30584
- // ../hot-hook/packages/hot_hook/build/src/hot.js
32555
+ // node_modules/@sandstone-mc/hot-hook/build/src/hot.js
30585
32556
  class Hot {
30586
32557
  #options;
30587
32558
  #messageChannel;
@@ -30664,8 +32635,8 @@ class Hot {
30664
32635
  }
30665
32636
  async dump() {
30666
32637
  this.#messageChannel.port1.postMessage({ type: "hot-hook:dump" });
30667
- const result = await new Promise((resolve) => this.#messageChannel.port1.once("message", (message) => resolve(message)));
30668
- return result.dump;
32638
+ const result2 = await new Promise((resolve2) => this.#messageChannel.port1.once("message", (message) => resolve2(message)));
32639
+ return result2.dump;
30669
32640
  }
30670
32641
  notifyFileChange(filePath) {
30671
32642
  this.#messageChannel.port1.postMessage({ type: "hot-hook:file-changed", path: filePath });
@@ -30676,7 +32647,7 @@ globalThis.hot = hot;
30676
32647
 
30677
32648
  // src/commands/watch.ts
30678
32649
  var import_fs_extra7 = __toESM(require_lib(), 1);
30679
- import { join, relative } from "path";
32650
+ import { join as join2, relative } from "path";
30680
32651
  var originalConsole = globalThis.console;
30681
32652
  var consoleWrapped = false;
30682
32653
  function enableConsoleCapture() {
@@ -30692,8 +32663,14 @@ function enableConsoleCapture() {
30692
32663
  const traceObj = { stack: "" };
30693
32664
  Error.captureStackTrace(traceObj, globalThis.console.trace);
30694
32665
  const cleanedStack = traceObj.stack.replace(/^Error\n/, "").replace(/\?hot-hook=\d+/g, "").replace(/file:\/\/\/?/g, "");
32666
+ const stackLines = cleanedStack.split(`
32667
+ `);
32668
+ const traceStart = stackLines.findIndex((line) => line.trimStart().startsWith("at "));
32669
+ const stackTrace = traceStart >= 0 ? stackLines.slice(traceStart).join(`
32670
+ `) : "";
32671
+ const resolvedStack = stackTrace ? resolveStackTrace(stackTrace) : cleanedStack;
30695
32672
  logTrace(...args, `
30696
- ` + cleanedStack);
32673
+ ` + resolvedStack);
30697
32674
  };
30698
32675
  }
30699
32676
  function disableConsoleCapture() {
@@ -30701,8 +32678,8 @@ function disableConsoleCapture() {
30701
32678
  return;
30702
32679
  consoleWrapped = false;
30703
32680
  const methodsToRestore = ["log", "info", "warn", "error", "debug", "trace"];
30704
- for (const method of methodsToRestore) {
30705
- globalThis.console[method] = originalConsole[method].bind(originalConsole);
32681
+ for (const method2 of methodsToRestore) {
32682
+ globalThis.console[method2] = originalConsole[method2].bind(originalConsole);
30706
32683
  }
30707
32684
  }
30708
32685
  async function watchCommand(opts) {
@@ -30712,7 +32689,7 @@ async function watchCommand(opts) {
30712
32689
  let buildContext;
30713
32690
  let hotInitialized = false;
30714
32691
  let lastBuildFailed = false;
30715
- const folder = opts.library ? join(opts.path, "test") : opts.path;
32692
+ const folder = opts.library ? join2(opts.path, "test") : opts.path;
30716
32693
  let subscription;
30717
32694
  initLogger(folder);
30718
32695
  setLiveLogCallback((level, args) => {
@@ -30759,7 +32736,7 @@ async function watchCommand(opts) {
30759
32736
  }
30760
32737
  if (!hotInitialized) {
30761
32738
  await hot.init({
30762
- root: join(folder, JSON.parse(await import_fs_extra7.default.readFile(join(folder, "package.json"), "utf-8"))["module"]),
32739
+ root: join2(folder, JSON.parse(await import_fs_extra7.default.readFile(join2(folder, "package.json"), "utf-8"))["module"]),
30763
32740
  globalSingletons: ["**/node_modules/sandstone/**", "**/sandstone/dist/**"],
30764
32741
  watch: false
30765
32742
  });
@@ -30792,35 +32769,35 @@ async function watchCommand(opts) {
30792
32769
  hot.notifyFileChange(change.path);
30793
32770
  }
30794
32771
  if (libChanges.length !== 0) {
30795
- const libModuleFiles = await import_fs_extra7.default.readdir(join(opts.path, "lib"), { recursive: true });
32772
+ const libModuleFiles = await import_fs_extra7.default.readdir(join2(opts.path, "lib"), { recursive: true });
30796
32773
  for (const file of libModuleFiles) {
30797
- hot.notifyFileChange(join(opts.path, "lib", file));
32774
+ hot.notifyFileChange(join2(opts.path, "lib", file));
30798
32775
  }
30799
32776
  }
30800
32777
  if (changes.length > 0) {
30801
- await new Promise((resolve) => setTimeout(resolve, 10));
32778
+ await new Promise((resolve2) => setTimeout(resolve2, 10));
30802
32779
  }
30803
32780
  }
30804
32781
  enableConsoleCapture();
30805
- let result;
32782
+ let result2;
30806
32783
  try {
30807
- result = await _buildCommand(opts, folder, buildContext, true);
32784
+ result2 = await _buildCommand(opts, folder, buildContext, true);
30808
32785
  } finally {
30809
32786
  disableConsoleCapture();
30810
32787
  }
30811
- if (result.success && result.sandstoneConfig !== undefined) {
32788
+ if (result2.success && result2.sandstoneConfig !== undefined) {
30812
32789
  buildContext = {
30813
- sandstoneConfig: result.sandstoneConfig,
30814
- sandstonePack: result.sandstonePack,
30815
- resetSandstonePack: result.resetSandstonePack
32790
+ sandstoneConfig: result2.sandstoneConfig,
32791
+ sandstonePack: result2.sandstonePack,
32792
+ resetSandstonePack: result2.resetSandstonePack
30816
32793
  };
30817
32794
  }
30818
- api?.setBuildResult(result);
30819
- if (result.success) {
30820
- log(`Build successful: ${result.resourceCounts.functions} functions, ${result.resourceCounts.other} others`);
32795
+ api?.setBuildResult(result2);
32796
+ if (result2.success) {
32797
+ log(`Build successful: ${result2.resourceCounts.functions} functions, ${result2.resourceCounts.other} others`);
30821
32798
  lastBuildFailed = false;
30822
32799
  } else {
30823
- logError(result.error);
32800
+ logError(result2.error);
30824
32801
  lastBuildFailed = true;
30825
32802
  }
30826
32803
  alreadyBuilding = false;
@@ -30994,3 +32971,5 @@ install.command("vanilla").alias("smithed").description("Install Vanilla Smithed
30994
32971
  CLI.command("uninstall").alias("remove").description("Uninstall Vanilla Smithed libraries. \u26CF").action(uninstallVanillaCommand).addArgument(new Argument("[libraries...]", "Optional. Libraries to uninstall. When unlisted, a selector will appear."));
30995
32972
  CLI.command("refresh").description("Clear & update cached Smithed libraries. \u26CF").action(refreshCommand);
30996
32973
  CLI.parse(process.argv);
32974
+
32975
+ //# debugId=CA02D3AA5926561C64756E2164756E21