@dpuse/dpuse-development 0.3.733 → 0.3.740

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.
@@ -19,7 +19,7 @@ var l = Object.defineProperty, u = /* @__PURE__ */ ((e, t) => {
19
19
  Position: () => _e,
20
20
  SourceLocation: () => ve,
21
21
  TokContext: () => P,
22
- Token: () => Xt,
22
+ Token: () => Yt,
23
23
  TokenType: () => x,
24
24
  defaultOptions: () => be,
25
25
  getLineInfo: () => ye,
@@ -30,12 +30,12 @@ var l = Object.defineProperty, u = /* @__PURE__ */ ((e, t) => {
30
30
  lineBreak: () => D,
31
31
  lineBreakG: () => ie,
32
32
  nonASCIIwhitespace: () => se,
33
- parse: () => tn,
34
- parseExpressionAt: () => nn,
33
+ parse: () => en,
34
+ parseExpressionAt: () => tn,
35
35
  tokContexts: () => F,
36
36
  tokTypes: () => E,
37
- tokenizer: () => rn,
38
- version: () => en
37
+ tokenizer: () => nn,
38
+ version: () => $t
39
39
  }), d = [
40
40
  509,
41
41
  0,
@@ -2438,15 +2438,15 @@ kt.prototype.separatedFrom = function(e) {
2438
2438
  }, kt.prototype.sibling = function() {
2439
2439
  return new kt(this.parent, this.base);
2440
2440
  };
2441
- var At = function(e) {
2441
+ var R = function(e) {
2442
2442
  this.parser = e, this.validFlags = "gim" + (e.options.ecmaVersion >= 6 ? "uy" : "") + (e.options.ecmaVersion >= 9 ? "s" : "") + (e.options.ecmaVersion >= 13 ? "d" : "") + (e.options.ecmaVersion >= 15 ? "v" : ""), this.unicodeProperties = wt[e.options.ecmaVersion >= 14 ? 14 : e.options.ecmaVersion], this.source = "", this.flags = "", this.start = 0, this.switchU = !1, this.switchV = !1, this.switchN = !1, this.pos = 0, this.lastIntValue = 0, this.lastStringValue = "", this.lastAssertionIsQuantifiable = !1, this.numCapturingParens = 0, this.maxBackReference = 0, this.groupNames = Object.create(null), this.backReferenceNames = [], this.branchID = null;
2443
2443
  };
2444
- At.prototype.reset = function(e, t, n) {
2444
+ R.prototype.reset = function(e, t, n) {
2445
2445
  var r = n.indexOf("v") !== -1, i = n.indexOf("u") !== -1;
2446
2446
  this.start = e | 0, this.source = t + "", this.flags = n, r && this.parser.options.ecmaVersion >= 15 ? (this.switchU = !0, this.switchV = !0, this.switchN = !0) : (this.switchU = i && this.parser.options.ecmaVersion >= 6, this.switchV = !1, this.switchN = i && this.parser.options.ecmaVersion >= 9);
2447
- }, At.prototype.raise = function(e) {
2447
+ }, R.prototype.raise = function(e) {
2448
2448
  this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + e);
2449
- }, At.prototype.at = function(e, t) {
2449
+ }, R.prototype.at = function(e, t) {
2450
2450
  t === void 0 && (t = !1);
2451
2451
  var n = this.source, r = n.length;
2452
2452
  if (e >= r) return -1;
@@ -2454,21 +2454,21 @@ At.prototype.reset = function(e, t, n) {
2454
2454
  if (!(t || this.switchU) || i <= 55295 || i >= 57344 || e + 1 >= r) return i;
2455
2455
  var a = n.charCodeAt(e + 1);
2456
2456
  return a >= 56320 && a <= 57343 ? (i << 10) + a - 56613888 : i;
2457
- }, At.prototype.nextIndex = function(e, t) {
2457
+ }, R.prototype.nextIndex = function(e, t) {
2458
2458
  t === void 0 && (t = !1);
2459
2459
  var n = this.source, r = n.length;
2460
2460
  if (e >= r) return r;
2461
2461
  var i = n.charCodeAt(e), a;
2462
2462
  return !(t || this.switchU) || i <= 55295 || i >= 57344 || e + 1 >= r || (a = n.charCodeAt(e + 1)) < 56320 || a > 57343 ? e + 1 : e + 2;
2463
- }, At.prototype.current = function(e) {
2463
+ }, R.prototype.current = function(e) {
2464
2464
  return e === void 0 && (e = !1), this.at(this.pos, e);
2465
- }, At.prototype.lookahead = function(e) {
2465
+ }, R.prototype.lookahead = function(e) {
2466
2466
  return e === void 0 && (e = !1), this.at(this.nextIndex(this.pos, e), e);
2467
- }, At.prototype.advance = function(e) {
2467
+ }, R.prototype.advance = function(e) {
2468
2468
  e === void 0 && (e = !1), this.pos = this.nextIndex(this.pos, e);
2469
- }, At.prototype.eat = function(e, t) {
2469
+ }, R.prototype.eat = function(e, t) {
2470
2470
  return t === void 0 && (t = !1), this.current(t) === e && (this.advance(t), !0);
2471
- }, At.prototype.eatChars = function(e, t) {
2471
+ }, R.prototype.eatChars = function(e, t) {
2472
2472
  t === void 0 && (t = !1);
2473
2473
  for (var n = this.pos, r = 0, i = e; r < i.length; r += 1) {
2474
2474
  var a = i[r], o = this.at(n, t);
@@ -2483,12 +2483,12 @@ At.prototype.reset = function(e, t, n) {
2483
2483
  }
2484
2484
  this.options.ecmaVersion >= 15 && r && i && this.raise(e.start, "Invalid regular expression flag");
2485
2485
  };
2486
- function jt(e) {
2486
+ function At(e) {
2487
2487
  for (var t in e) return !0;
2488
2488
  return !1;
2489
2489
  }
2490
2490
  L.validateRegExpPattern = function(e) {
2491
- this.regexp_pattern(e), !e.switchN && this.options.ecmaVersion >= 9 && jt(e.groupNames) && (e.switchN = !0, this.regexp_pattern(e));
2491
+ this.regexp_pattern(e), !e.switchN && this.options.ecmaVersion >= 9 && At(e.groupNames) && (e.switchN = !0, this.regexp_pattern(e));
2492
2492
  }, L.regexp_pattern = function(e) {
2493
2493
  e.pos = 0, e.lastIntValue = 0, e.lastStringValue = "", e.lastAssertionIsQuantifiable = !1, e.numCapturingParens = 0, e.maxBackReference = 0, e.groupNames = Object.create(null), e.backReferenceNames.length = 0, e.branchID = null, this.regexp_disjunction(e), e.pos !== e.source.length && (e.eat(41) && e.raise("Unmatched ')'"), (e.eat(93) || e.eat(125)) && e.raise("Lone quantifier brackets")), e.maxBackReference > e.numCapturingParens && e.raise("Invalid escape");
2494
2494
  for (var t = 0, n = e.backReferenceNames; t < n.length; t += 1) {
@@ -2572,10 +2572,10 @@ L.validateRegExpPattern = function(e) {
2572
2572
  }
2573
2573
  return !1;
2574
2574
  }, L.regexp_eatModifiers = function(e) {
2575
- for (var t = "", n = 0; (n = e.current()) !== -1 && Mt(n);) t += he(n), e.advance();
2575
+ for (var t = "", n = 0; (n = e.current()) !== -1 && jt(n);) t += he(n), e.advance();
2576
2576
  return t;
2577
2577
  };
2578
- function Mt(e) {
2578
+ function jt(e) {
2579
2579
  return e === 105 || e === 109 || e === 115;
2580
2580
  }
2581
2581
  L.regexp_eatExtendedAtom = function(e) {
@@ -2584,13 +2584,13 @@ L.regexp_eatExtendedAtom = function(e) {
2584
2584
  return this.regexp_eatBracedQuantifier(e, !0) && e.raise("Nothing to repeat"), !1;
2585
2585
  }, L.regexp_eatSyntaxCharacter = function(e) {
2586
2586
  var t = e.current();
2587
- return Nt(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
2587
+ return Mt(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
2588
2588
  };
2589
- function Nt(e) {
2589
+ function Mt(e) {
2590
2590
  return e === 36 || e >= 40 && e <= 43 || e === 46 || e === 63 || e >= 91 && e <= 94 || e >= 123 && e <= 125;
2591
2591
  }
2592
2592
  L.regexp_eatPatternCharacters = function(e) {
2593
- for (var t = e.pos, n = 0; (n = e.current()) !== -1 && !Nt(n);) e.advance();
2593
+ for (var t = e.pos, n = 0; (n = e.current()) !== -1 && !Mt(n);) e.advance();
2594
2594
  return e.pos !== t;
2595
2595
  }, L.regexp_eatExtendedPatternCharacter = function(e) {
2596
2596
  var t = e.current();
@@ -2619,16 +2619,16 @@ L.regexp_eatPatternCharacters = function(e) {
2619
2619
  return !1;
2620
2620
  }, L.regexp_eatRegExpIdentifierStart = function(e) {
2621
2621
  var t = e.pos, n = this.options.ecmaVersion >= 11, r = e.current(n);
2622
- return e.advance(n), r === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, n) && (r = e.lastIntValue), Pt(r) ? (e.lastIntValue = r, !0) : (e.pos = t, !1);
2622
+ return e.advance(n), r === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, n) && (r = e.lastIntValue), Nt(r) ? (e.lastIntValue = r, !0) : (e.pos = t, !1);
2623
2623
  };
2624
- function Pt(e) {
2624
+ function Nt(e) {
2625
2625
  return y(e, !0) || e === 36 || e === 95;
2626
2626
  }
2627
2627
  L.regexp_eatRegExpIdentifierPart = function(e) {
2628
2628
  var t = e.pos, n = this.options.ecmaVersion >= 11, r = e.current(n);
2629
- return e.advance(n), r === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, n) && (r = e.lastIntValue), Ft(r) ? (e.lastIntValue = r, !0) : (e.pos = t, !1);
2629
+ return e.advance(n), r === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, n) && (r = e.lastIntValue), Pt(r) ? (e.lastIntValue = r, !0) : (e.pos = t, !1);
2630
2630
  };
2631
- function Ft(e) {
2631
+ function Pt(e) {
2632
2632
  return b(e, !0) || e === 36 || e === 95 || e === 8204 || e === 8205;
2633
2633
  }
2634
2634
  L.regexp_eatAtomEscape = function(e) {
@@ -2658,15 +2658,15 @@ L.regexp_eatAtomEscape = function(e) {
2658
2658
  }
2659
2659
  return !1;
2660
2660
  }, L.regexp_eatZero = function(e) {
2661
- return e.current() === 48 && !Kt(e.lookahead()) && (e.lastIntValue = 0, e.advance(), !0);
2661
+ return e.current() === 48 && !Gt(e.lookahead()) && (e.lastIntValue = 0, e.advance(), !0);
2662
2662
  }, L.regexp_eatControlEscape = function(e) {
2663
2663
  var t = e.current();
2664
2664
  return t === 116 ? (e.lastIntValue = 9, e.advance(), !0) : t === 110 ? (e.lastIntValue = 10, e.advance(), !0) : t === 118 ? (e.lastIntValue = 11, e.advance(), !0) : t === 102 ? (e.lastIntValue = 12, e.advance(), !0) : t === 114 && (e.lastIntValue = 13, e.advance(), !0);
2665
2665
  }, L.regexp_eatControlLetter = function(e) {
2666
2666
  var t = e.current();
2667
- return It(t) ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
2667
+ return Ft(t) ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
2668
2668
  };
2669
- function It(e) {
2669
+ function Ft(e) {
2670
2670
  return e >= 65 && e <= 90 || e >= 97 && e <= 122;
2671
2671
  }
2672
2672
  L.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
@@ -2685,12 +2685,12 @@ L.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
2685
2685
  }
2686
2686
  return !0;
2687
2687
  }
2688
- if (r && e.eat(123) && this.regexp_eatHexDigits(e) && e.eat(125) && Lt(e.lastIntValue)) return !0;
2688
+ if (r && e.eat(123) && this.regexp_eatHexDigits(e) && e.eat(125) && It(e.lastIntValue)) return !0;
2689
2689
  r && e.raise("Invalid unicode escape"), e.pos = n;
2690
2690
  }
2691
2691
  return !1;
2692
2692
  };
2693
- function Lt(e) {
2693
+ function It(e) {
2694
2694
  return e >= 0 && e <= 1114111;
2695
2695
  }
2696
2696
  L.regexp_eatIdentityEscape = function(e) {
@@ -2708,20 +2708,20 @@ L.regexp_eatIdentityEscape = function(e) {
2708
2708
  }
2709
2709
  return !1;
2710
2710
  };
2711
- var Rt = 0, zt = 1, R = 2;
2711
+ var Lt = 0, Rt = 1, z = 2;
2712
2712
  L.regexp_eatCharacterClassEscape = function(e) {
2713
2713
  var t = e.current();
2714
- if (Bt(t)) return e.lastIntValue = -1, e.advance(), zt;
2714
+ if (zt(t)) return e.lastIntValue = -1, e.advance(), Rt;
2715
2715
  var n = !1;
2716
2716
  if (e.switchU && this.options.ecmaVersion >= 9 && ((n = t === 80) || t === 112)) {
2717
2717
  e.lastIntValue = -1, e.advance();
2718
2718
  var r;
2719
- if (e.eat(123) && (r = this.regexp_eatUnicodePropertyValueExpression(e)) && e.eat(125)) return n && r === R && e.raise("Invalid property name"), r;
2719
+ if (e.eat(123) && (r = this.regexp_eatUnicodePropertyValueExpression(e)) && e.eat(125)) return n && r === z && e.raise("Invalid property name"), r;
2720
2720
  e.raise("Invalid property name");
2721
2721
  }
2722
- return Rt;
2722
+ return Lt;
2723
2723
  };
2724
- function Bt(e) {
2724
+ function zt(e) {
2725
2725
  return e === 100 || e === 68 || e === 115 || e === 83 || e === 119 || e === 87;
2726
2726
  }
2727
2727
  L.regexp_eatUnicodePropertyValueExpression = function(e) {
@@ -2730,46 +2730,46 @@ L.regexp_eatUnicodePropertyValueExpression = function(e) {
2730
2730
  var n = e.lastStringValue;
2731
2731
  if (this.regexp_eatUnicodePropertyValue(e)) {
2732
2732
  var r = e.lastStringValue;
2733
- return this.regexp_validateUnicodePropertyNameAndValue(e, n, r), zt;
2733
+ return this.regexp_validateUnicodePropertyNameAndValue(e, n, r), Rt;
2734
2734
  }
2735
2735
  }
2736
2736
  if (e.pos = t, this.regexp_eatLoneUnicodePropertyNameOrValue(e)) {
2737
2737
  var i = e.lastStringValue;
2738
2738
  return this.regexp_validateUnicodePropertyNameOrValue(e, i);
2739
2739
  }
2740
- return Rt;
2740
+ return Lt;
2741
2741
  }, L.regexp_validateUnicodePropertyNameAndValue = function(e, t, n) {
2742
2742
  de(e.unicodeProperties.nonBinary, t) || e.raise("Invalid property name"), e.unicodeProperties.nonBinary[t].test(n) || e.raise("Invalid property value");
2743
2743
  }, L.regexp_validateUnicodePropertyNameOrValue = function(e, t) {
2744
- if (e.unicodeProperties.binary.test(t)) return zt;
2745
- if (e.switchV && e.unicodeProperties.binaryOfStrings.test(t)) return R;
2744
+ if (e.unicodeProperties.binary.test(t)) return Rt;
2745
+ if (e.switchV && e.unicodeProperties.binaryOfStrings.test(t)) return z;
2746
2746
  e.raise("Invalid property name");
2747
2747
  }, L.regexp_eatUnicodePropertyName = function(e) {
2748
2748
  var t = 0;
2749
- for (e.lastStringValue = ""; Vt(t = e.current());) e.lastStringValue += he(t), e.advance();
2749
+ for (e.lastStringValue = ""; Bt(t = e.current());) e.lastStringValue += he(t), e.advance();
2750
2750
  return e.lastStringValue !== "";
2751
2751
  };
2752
- function Vt(e) {
2753
- return It(e) || e === 95;
2752
+ function Bt(e) {
2753
+ return Ft(e) || e === 95;
2754
2754
  }
2755
2755
  L.regexp_eatUnicodePropertyValue = function(e) {
2756
2756
  var t = 0;
2757
- for (e.lastStringValue = ""; Ht(t = e.current());) e.lastStringValue += he(t), e.advance();
2757
+ for (e.lastStringValue = ""; Vt(t = e.current());) e.lastStringValue += he(t), e.advance();
2758
2758
  return e.lastStringValue !== "";
2759
2759
  };
2760
- function Ht(e) {
2761
- return Vt(e) || Kt(e);
2760
+ function Vt(e) {
2761
+ return Bt(e) || Gt(e);
2762
2762
  }
2763
2763
  L.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
2764
2764
  return this.regexp_eatUnicodePropertyValue(e);
2765
2765
  }, L.regexp_eatCharacterClass = function(e) {
2766
2766
  if (e.eat(91)) {
2767
2767
  var t = e.eat(94), n = this.regexp_classContents(e);
2768
- return e.eat(93) || e.raise("Unterminated character class"), t && n === R && e.raise("Negated character class may contain strings"), !0;
2768
+ return e.eat(93) || e.raise("Unterminated character class"), t && n === z && e.raise("Negated character class may contain strings"), !0;
2769
2769
  }
2770
2770
  return !1;
2771
2771
  }, L.regexp_classContents = function(e) {
2772
- return e.current() === 93 ? zt : e.switchV ? this.regexp_classSetExpression(e) : (this.regexp_nonEmptyClassRanges(e), zt);
2772
+ return e.current() === 93 ? Rt : e.switchV ? this.regexp_classSetExpression(e) : (this.regexp_nonEmptyClassRanges(e), Rt);
2773
2773
  }, L.regexp_nonEmptyClassRanges = function(e) {
2774
2774
  for (; this.regexp_eatClassAtom(e);) {
2775
2775
  var t = e.lastIntValue;
@@ -2784,7 +2784,7 @@ L.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
2784
2784
  if (this.regexp_eatClassEscape(e)) return !0;
2785
2785
  if (e.switchU) {
2786
2786
  var n = e.current();
2787
- (n === 99 || Yt(n)) && e.raise("Invalid class escape"), e.raise("Invalid escape");
2787
+ (n === 99 || Jt(n)) && e.raise("Invalid class escape"), e.raise("Invalid escape");
2788
2788
  }
2789
2789
  e.pos = t;
2790
2790
  }
@@ -2800,13 +2800,13 @@ L.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
2800
2800
  }
2801
2801
  return this.regexp_eatCharacterClassEscape(e) || this.regexp_eatCharacterEscape(e);
2802
2802
  }, L.regexp_classSetExpression = function(e) {
2803
- var t = zt, n;
2803
+ var t = Rt, n;
2804
2804
  if (!this.regexp_eatClassSetRange(e)) {
2805
2805
  if (n = this.regexp_eatClassSetOperand(e)) {
2806
- n === R && (t = R);
2806
+ n === z && (t = z);
2807
2807
  for (var r = e.pos; e.eatChars([38, 38]);) {
2808
2808
  if (e.current() !== 38 && (n = this.regexp_eatClassSetOperand(e))) {
2809
- n !== R && (t = zt);
2809
+ n !== z && (t = Rt);
2810
2810
  continue;
2811
2811
  }
2812
2812
  e.raise("Invalid character in character class");
@@ -2818,7 +2818,7 @@ L.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
2818
2818
  }
2819
2819
  for (;;) if (!this.regexp_eatClassSetRange(e)) {
2820
2820
  if (n = this.regexp_eatClassSetOperand(e), !n) return t;
2821
- n === R && (t = R);
2821
+ n === z && (t = z);
2822
2822
  }
2823
2823
  }, L.regexp_eatClassSetRange = function(e) {
2824
2824
  var t = e.pos;
@@ -2832,12 +2832,12 @@ L.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
2832
2832
  }
2833
2833
  return !1;
2834
2834
  }, L.regexp_eatClassSetOperand = function(e) {
2835
- return this.regexp_eatClassSetCharacter(e) ? zt : this.regexp_eatClassStringDisjunction(e) || this.regexp_eatNestedClass(e);
2835
+ return this.regexp_eatClassSetCharacter(e) ? Rt : this.regexp_eatClassStringDisjunction(e) || this.regexp_eatNestedClass(e);
2836
2836
  }, L.regexp_eatNestedClass = function(e) {
2837
2837
  var t = e.pos;
2838
2838
  if (e.eat(91)) {
2839
2839
  var n = e.eat(94), r = this.regexp_classContents(e);
2840
- if (e.eat(93)) return n && r === R && e.raise("Negated character class may contain strings"), r;
2840
+ if (e.eat(93)) return n && r === z && e.raise("Negated character class may contain strings"), r;
2841
2841
  e.pos = t;
2842
2842
  }
2843
2843
  if (e.eat(92)) {
@@ -2857,33 +2857,33 @@ L.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
2857
2857
  }
2858
2858
  return null;
2859
2859
  }, L.regexp_classStringDisjunctionContents = function(e) {
2860
- for (var t = this.regexp_classString(e); e.eat(124);) this.regexp_classString(e) === R && (t = R);
2860
+ for (var t = this.regexp_classString(e); e.eat(124);) this.regexp_classString(e) === z && (t = z);
2861
2861
  return t;
2862
2862
  }, L.regexp_classString = function(e) {
2863
2863
  for (var t = 0; this.regexp_eatClassSetCharacter(e);) t++;
2864
- return t === 1 ? zt : R;
2864
+ return t === 1 ? Rt : z;
2865
2865
  }, L.regexp_eatClassSetCharacter = function(e) {
2866
2866
  var t = e.pos;
2867
2867
  if (e.eat(92)) return this.regexp_eatCharacterEscape(e) || this.regexp_eatClassSetReservedPunctuator(e) ? !0 : e.eat(98) ? (e.lastIntValue = 8, !0) : (e.pos = t, !1);
2868
2868
  var n = e.current();
2869
- return n < 0 || n === e.lookahead() && Ut(n) || Wt(n) ? !1 : (e.advance(), e.lastIntValue = n, !0);
2869
+ return n < 0 || n === e.lookahead() && Ht(n) || Ut(n) ? !1 : (e.advance(), e.lastIntValue = n, !0);
2870
2870
  };
2871
- function Ut(e) {
2871
+ function Ht(e) {
2872
2872
  return e === 33 || e >= 35 && e <= 38 || e >= 42 && e <= 44 || e === 46 || e >= 58 && e <= 64 || e === 94 || e === 96 || e === 126;
2873
2873
  }
2874
- function Wt(e) {
2874
+ function Ut(e) {
2875
2875
  return e === 40 || e === 41 || e === 45 || e === 47 || e >= 91 && e <= 93 || e >= 123 && e <= 125;
2876
2876
  }
2877
2877
  L.regexp_eatClassSetReservedPunctuator = function(e) {
2878
2878
  var t = e.current();
2879
- return Gt(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
2879
+ return Wt(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
2880
2880
  };
2881
- function Gt(e) {
2881
+ function Wt(e) {
2882
2882
  return e === 33 || e === 35 || e === 37 || e === 38 || e === 44 || e === 45 || e >= 58 && e <= 62 || e === 64 || e === 96 || e === 126;
2883
2883
  }
2884
2884
  L.regexp_eatClassControlLetter = function(e) {
2885
2885
  var t = e.current();
2886
- return Kt(t) || t === 95 ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
2886
+ return Gt(t) || t === 95 ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
2887
2887
  }, L.regexp_eatHexEscapeSequence = function(e) {
2888
2888
  var t = e.pos;
2889
2889
  if (e.eat(120)) {
@@ -2893,21 +2893,21 @@ L.regexp_eatClassControlLetter = function(e) {
2893
2893
  return !1;
2894
2894
  }, L.regexp_eatDecimalDigits = function(e) {
2895
2895
  var t = e.pos, n = 0;
2896
- for (e.lastIntValue = 0; Kt(n = e.current());) e.lastIntValue = 10 * e.lastIntValue + (n - 48), e.advance();
2896
+ for (e.lastIntValue = 0; Gt(n = e.current());) e.lastIntValue = 10 * e.lastIntValue + (n - 48), e.advance();
2897
2897
  return e.pos !== t;
2898
2898
  };
2899
- function Kt(e) {
2899
+ function Gt(e) {
2900
2900
  return e >= 48 && e <= 57;
2901
2901
  }
2902
2902
  L.regexp_eatHexDigits = function(e) {
2903
2903
  var t = e.pos, n = 0;
2904
- for (e.lastIntValue = 0; qt(n = e.current());) e.lastIntValue = 16 * e.lastIntValue + Jt(n), e.advance();
2904
+ for (e.lastIntValue = 0; Kt(n = e.current());) e.lastIntValue = 16 * e.lastIntValue + qt(n), e.advance();
2905
2905
  return e.pos !== t;
2906
2906
  };
2907
- function qt(e) {
2907
+ function Kt(e) {
2908
2908
  return e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102;
2909
2909
  }
2910
- function Jt(e) {
2910
+ function qt(e) {
2911
2911
  return e >= 65 && e <= 70 ? 10 + (e - 65) : e >= 97 && e <= 102 ? 10 + (e - 97) : e - 48;
2912
2912
  }
2913
2913
  L.regexp_eatLegacyOctalEscapeSequence = function(e) {
@@ -2922,9 +2922,9 @@ L.regexp_eatLegacyOctalEscapeSequence = function(e) {
2922
2922
  return !1;
2923
2923
  }, L.regexp_eatOctalDigit = function(e) {
2924
2924
  var t = e.current();
2925
- return Yt(t) ? (e.lastIntValue = t - 48, e.advance(), !0) : (e.lastIntValue = 0, !1);
2925
+ return Jt(t) ? (e.lastIntValue = t - 48, e.advance(), !0) : (e.lastIntValue = 0, !1);
2926
2926
  };
2927
- function Yt(e) {
2927
+ function Jt(e) {
2928
2928
  return e >= 48 && e <= 55;
2929
2929
  }
2930
2930
  L.regexp_eatFixedHexDigits = function(e, t) {
@@ -2932,19 +2932,19 @@ L.regexp_eatFixedHexDigits = function(e, t) {
2932
2932
  e.lastIntValue = 0;
2933
2933
  for (var r = 0; r < t; ++r) {
2934
2934
  var i = e.current();
2935
- if (!qt(i)) return e.pos = n, !1;
2936
- e.lastIntValue = 16 * e.lastIntValue + Jt(i), e.advance();
2935
+ if (!Kt(i)) return e.pos = n, !1;
2936
+ e.lastIntValue = 16 * e.lastIntValue + qt(i), e.advance();
2937
2937
  }
2938
2938
  return !0;
2939
2939
  };
2940
- var Xt = function(e) {
2940
+ var Yt = function(e) {
2941
2941
  this.type = e.type, this.value = e.value, this.start = e.start, this.end = e.end, e.options.locations && (this.loc = new ve(e, e.startLoc, e.endLoc)), e.options.ranges && (this.range = [e.start, e.end]);
2942
- }, z = k.prototype;
2943
- z.next = function(e) {
2944
- !e && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new Xt(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
2945
- }, z.getToken = function() {
2946
- return this.next(), new Xt(this);
2947
- }, typeof Symbol < "u" && (z[Symbol.iterator] = function() {
2942
+ }, B = k.prototype;
2943
+ B.next = function(e) {
2944
+ !e && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new Yt(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
2945
+ }, B.getToken = function() {
2946
+ return this.next(), new Yt(this);
2947
+ }, typeof Symbol < "u" && (B[Symbol.iterator] = function() {
2948
2948
  var e = this;
2949
2949
  return { next: function() {
2950
2950
  var t = e.getToken();
@@ -2953,28 +2953,28 @@ z.next = function(e) {
2953
2953
  value: t
2954
2954
  };
2955
2955
  } };
2956
- }), z.nextToken = function() {
2956
+ }), B.nextToken = function() {
2957
2957
  var e = this.curContext();
2958
2958
  if ((!e || !e.preserveSpace) && this.skipSpace(), this.start = this.pos, this.options.locations && (this.startLoc = this.curPosition()), this.pos >= this.input.length) return this.finishToken(E.eof);
2959
2959
  if (e.override) return e.override(this);
2960
2960
  this.readToken(this.fullCharCodeAtPos());
2961
- }, z.readToken = function(e) {
2961
+ }, B.readToken = function(e) {
2962
2962
  return y(e, this.options.ecmaVersion >= 6) || e === 92 ? this.readWord() : this.getTokenFromCode(e);
2963
- }, z.fullCharCodeAt = function(e) {
2963
+ }, B.fullCharCodeAt = function(e) {
2964
2964
  var t = this.input.charCodeAt(e);
2965
2965
  if (t <= 55295 || t >= 56320) return t;
2966
2966
  var n = this.input.charCodeAt(e + 1);
2967
2967
  return n <= 56319 || n >= 57344 ? t : (t << 10) + n - 56613888;
2968
- }, z.fullCharCodeAtPos = function() {
2968
+ }, B.fullCharCodeAtPos = function() {
2969
2969
  return this.fullCharCodeAt(this.pos);
2970
- }, z.skipBlockComment = function() {
2970
+ }, B.skipBlockComment = function() {
2971
2971
  var e = this.options.onComment && this.curPosition(), t = this.pos, n = this.input.indexOf("*/", this.pos += 2);
2972
2972
  if (n === -1 && this.raise(this.pos - 2, "Unterminated comment"), this.pos = n + 2, this.options.locations) for (var r = void 0, i = t; (r = oe(this.input, i, this.pos)) > -1;) ++this.curLine, i = this.lineStart = r;
2973
2973
  this.options.onComment && this.options.onComment(!0, this.input.slice(t + 2, n), t, this.pos, e, this.curPosition());
2974
- }, z.skipLineComment = function(e) {
2974
+ }, B.skipLineComment = function(e) {
2975
2975
  for (var t = this.pos, n = this.options.onComment && this.curPosition(), r = this.input.charCodeAt(this.pos += e); this.pos < this.input.length && !ae(r);) r = this.input.charCodeAt(++this.pos);
2976
2976
  this.options.onComment && this.options.onComment(!1, this.input.slice(t + e, this.pos), t, this.pos, n, this.curPosition());
2977
- }, z.skipSpace = function() {
2977
+ }, B.skipSpace = function() {
2978
2978
  loop: for (; this.pos < this.input.length;) {
2979
2979
  var e = this.input.charCodeAt(this.pos);
2980
2980
  switch (e) {
@@ -3003,36 +3003,36 @@ z.next = function(e) {
3003
3003
  else break loop;
3004
3004
  }
3005
3005
  }
3006
- }, z.finishToken = function(e, t) {
3006
+ }, B.finishToken = function(e, t) {
3007
3007
  this.end = this.pos, this.options.locations && (this.endLoc = this.curPosition());
3008
3008
  var n = this.type;
3009
3009
  this.type = e, this.value = t, this.updateContext(n);
3010
- }, z.readToken_dot = function() {
3010
+ }, B.readToken_dot = function() {
3011
3011
  var e = this.input.charCodeAt(this.pos + 1);
3012
3012
  if (e >= 48 && e <= 57) return this.readNumber(!0);
3013
3013
  var t = this.input.charCodeAt(this.pos + 2);
3014
3014
  return this.options.ecmaVersion >= 6 && e === 46 && t === 46 ? (this.pos += 3, this.finishToken(E.ellipsis)) : (++this.pos, this.finishToken(E.dot));
3015
- }, z.readToken_slash = function() {
3015
+ }, B.readToken_slash = function() {
3016
3016
  var e = this.input.charCodeAt(this.pos + 1);
3017
3017
  return this.exprAllowed ? (++this.pos, this.readRegexp()) : e === 61 ? this.finishOp(E.assign, 2) : this.finishOp(E.slash, 1);
3018
- }, z.readToken_mult_modulo_exp = function(e) {
3018
+ }, B.readToken_mult_modulo_exp = function(e) {
3019
3019
  var t = this.input.charCodeAt(this.pos + 1), n = 1, r = e === 42 ? E.star : E.modulo;
3020
3020
  return this.options.ecmaVersion >= 7 && e === 42 && t === 42 && (++n, r = E.starstar, t = this.input.charCodeAt(this.pos + 2)), t === 61 ? this.finishOp(E.assign, n + 1) : this.finishOp(r, n);
3021
- }, z.readToken_pipe_amp = function(e) {
3021
+ }, B.readToken_pipe_amp = function(e) {
3022
3022
  var t = this.input.charCodeAt(this.pos + 1);
3023
3023
  return t === e ? this.options.ecmaVersion >= 12 && this.input.charCodeAt(this.pos + 2) === 61 ? this.finishOp(E.assign, 3) : this.finishOp(e === 124 ? E.logicalOR : E.logicalAND, 2) : t === 61 ? this.finishOp(E.assign, 2) : this.finishOp(e === 124 ? E.bitwiseOR : E.bitwiseAND, 1);
3024
- }, z.readToken_caret = function() {
3024
+ }, B.readToken_caret = function() {
3025
3025
  return this.input.charCodeAt(this.pos + 1) === 61 ? this.finishOp(E.assign, 2) : this.finishOp(E.bitwiseXOR, 1);
3026
- }, z.readToken_plus_min = function(e) {
3026
+ }, B.readToken_plus_min = function(e) {
3027
3027
  var t = this.input.charCodeAt(this.pos + 1);
3028
3028
  return t === e ? t === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && (this.lastTokEnd === 0 || D.test(this.input.slice(this.lastTokEnd, this.pos))) ? (this.skipLineComment(3), this.skipSpace(), this.nextToken()) : this.finishOp(E.incDec, 2) : t === 61 ? this.finishOp(E.assign, 2) : this.finishOp(E.plusMin, 1);
3029
- }, z.readToken_lt_gt = function(e) {
3029
+ }, B.readToken_lt_gt = function(e) {
3030
3030
  var t = this.input.charCodeAt(this.pos + 1), n = 1;
3031
3031
  return t === e ? (n = e === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2, this.input.charCodeAt(this.pos + n) === 61 ? this.finishOp(E.assign, n + 1) : this.finishOp(E.bitShift, n)) : t === 33 && e === 60 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 45 && this.input.charCodeAt(this.pos + 3) === 45 ? (this.skipLineComment(4), this.skipSpace(), this.nextToken()) : (t === 61 && (n = 2), this.finishOp(E.relational, n));
3032
- }, z.readToken_eq_excl = function(e) {
3032
+ }, B.readToken_eq_excl = function(e) {
3033
3033
  var t = this.input.charCodeAt(this.pos + 1);
3034
3034
  return t === 61 ? this.finishOp(E.equality, this.input.charCodeAt(this.pos + 2) === 61 ? 3 : 2) : e === 61 && t === 62 && this.options.ecmaVersion >= 6 ? (this.pos += 2, this.finishToken(E.arrow)) : this.finishOp(e === 61 ? E.eq : E.prefix, 1);
3035
- }, z.readToken_question = function() {
3035
+ }, B.readToken_question = function() {
3036
3036
  var e = this.options.ecmaVersion;
3037
3037
  if (e >= 11) {
3038
3038
  var t = this.input.charCodeAt(this.pos + 1);
@@ -3043,11 +3043,11 @@ z.next = function(e) {
3043
3043
  if (t === 63) return e >= 12 && this.input.charCodeAt(this.pos + 2) === 61 ? this.finishOp(E.assign, 3) : this.finishOp(E.coalesce, 2);
3044
3044
  }
3045
3045
  return this.finishOp(E.question, 1);
3046
- }, z.readToken_numberSign = function() {
3046
+ }, B.readToken_numberSign = function() {
3047
3047
  var e = this.options.ecmaVersion, t = 35;
3048
3048
  if (e >= 13 && (++this.pos, t = this.fullCharCodeAtPos(), y(t, !0) || t === 92)) return this.finishToken(E.privateId, this.readWord1());
3049
3049
  this.raise(this.pos, "Unexpected character '" + he(t) + "'");
3050
- }, z.getTokenFromCode = function(e) {
3050
+ }, B.getTokenFromCode = function(e) {
3051
3051
  switch (e) {
3052
3052
  case 46: return this.readToken_dot();
3053
3053
  case 40: return ++this.pos, this.finishToken(E.parenL);
@@ -3097,10 +3097,10 @@ z.next = function(e) {
3097
3097
  case 35: return this.readToken_numberSign();
3098
3098
  }
3099
3099
  this.raise(this.pos, "Unexpected character '" + he(e) + "'");
3100
- }, z.finishOp = function(e, t) {
3100
+ }, B.finishOp = function(e, t) {
3101
3101
  var n = this.input.slice(this.pos, this.pos + t);
3102
3102
  return this.pos += t, this.finishToken(e, n);
3103
- }, z.readRegexp = function() {
3103
+ }, B.readRegexp = function() {
3104
3104
  for (var e, t, n = this.pos;;) {
3105
3105
  this.pos >= this.input.length && this.raise(n, "Unterminated regular expression");
3106
3106
  var r = this.input.charAt(this.pos);
@@ -3117,7 +3117,7 @@ z.next = function(e) {
3117
3117
  ++this.pos;
3118
3118
  var a = this.pos, o = this.readWord1();
3119
3119
  this.containsEsc && this.unexpected(a);
3120
- var s = this.regexpState ||= new At(this);
3120
+ var s = this.regexpState ||= new R(this);
3121
3121
  s.reset(n, i, o), this.validateRegExpFlags(s), this.validateRegExpPattern(s);
3122
3122
  var c = null;
3123
3123
  try {
@@ -3128,7 +3128,7 @@ z.next = function(e) {
3128
3128
  flags: o,
3129
3129
  value: c
3130
3130
  });
3131
- }, z.readInt = function(e, t, n) {
3131
+ }, B.readInt = function(e, t, n) {
3132
3132
  for (var r = this.options.ecmaVersion >= 12 && t === void 0, i = n && this.input.charCodeAt(this.pos) === 48, a = this.pos, o = 0, s = 0, c = 0, l = t ?? Infinity; c < l; ++c, ++this.pos) {
3133
3133
  var u = this.input.charCodeAt(this.pos), d = void 0;
3134
3134
  if (r && u === 95) {
@@ -3140,31 +3140,31 @@ z.next = function(e) {
3140
3140
  }
3141
3141
  return r && s === 95 && this.raiseRecoverable(this.pos - 1, "Numeric separator is not allowed at the last of digits"), this.pos === a || t != null && this.pos - a !== t ? null : o;
3142
3142
  };
3143
- function Zt(e, t) {
3143
+ function Xt(e, t) {
3144
3144
  return t ? parseInt(e, 8) : parseFloat(e.replace(/_/g, ""));
3145
3145
  }
3146
- function Qt(e) {
3146
+ function Zt(e) {
3147
3147
  return typeof BigInt == "function" ? BigInt(e.replace(/_/g, "")) : null;
3148
3148
  }
3149
- z.readRadixNumber = function(e) {
3149
+ B.readRadixNumber = function(e) {
3150
3150
  var t = this.pos;
3151
3151
  this.pos += 2;
3152
3152
  var n = this.readInt(e);
3153
- return n ?? this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (n = Qt(this.input.slice(t, this.pos)), ++this.pos) : y(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(E.num, n);
3154
- }, z.readNumber = function(e) {
3153
+ return n ?? this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (n = Zt(this.input.slice(t, this.pos)), ++this.pos) : y(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(E.num, n);
3154
+ }, B.readNumber = function(e) {
3155
3155
  var t = this.pos;
3156
3156
  !e && this.readInt(10, void 0, !0) === null && this.raise(t, "Invalid number");
3157
3157
  var n = this.pos - t >= 2 && this.input.charCodeAt(t) === 48;
3158
3158
  n && this.strict && this.raise(t, "Invalid number");
3159
3159
  var r = this.input.charCodeAt(this.pos);
3160
3160
  if (!n && !e && this.options.ecmaVersion >= 11 && r === 110) {
3161
- var i = Qt(this.input.slice(t, this.pos));
3161
+ var i = Zt(this.input.slice(t, this.pos));
3162
3162
  return ++this.pos, y(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(E.num, i);
3163
3163
  }
3164
3164
  n && /[89]/.test(this.input.slice(t, this.pos)) && (n = !1), r === 46 && !n && (++this.pos, this.readInt(10), r = this.input.charCodeAt(this.pos)), (r === 69 || r === 101) && !n && (r = this.input.charCodeAt(++this.pos), (r === 43 || r === 45) && ++this.pos, this.readInt(10) === null && this.raise(t, "Invalid number")), y(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
3165
- var a = Zt(this.input.slice(t, this.pos), n);
3165
+ var a = Xt(this.input.slice(t, this.pos), n);
3166
3166
  return this.finishToken(E.num, a);
3167
- }, z.readCodePoint = function() {
3167
+ }, B.readCodePoint = function() {
3168
3168
  var e = this.input.charCodeAt(this.pos), t;
3169
3169
  if (e === 123) {
3170
3170
  this.options.ecmaVersion < 6 && this.unexpected();
@@ -3172,7 +3172,7 @@ z.readRadixNumber = function(e) {
3172
3172
  t = this.readHexChar(this.input.indexOf("}", this.pos) - this.pos), ++this.pos, t > 1114111 && this.invalidStringToken(n, "Code point out of bounds");
3173
3173
  } else t = this.readHexChar(4);
3174
3174
  return t;
3175
- }, z.readString = function(e) {
3175
+ }, B.readString = function(e) {
3176
3176
  for (var t = "", n = ++this.pos;;) {
3177
3177
  this.pos >= this.input.length && this.raise(this.start, "Unterminated string constant");
3178
3178
  var r = this.input.charCodeAt(this.pos);
@@ -3181,20 +3181,20 @@ z.readRadixNumber = function(e) {
3181
3181
  }
3182
3182
  return t += this.input.slice(n, this.pos++), this.finishToken(E.string, t);
3183
3183
  };
3184
- var $t = {};
3185
- z.tryReadTemplateToken = function() {
3184
+ var Qt = {};
3185
+ B.tryReadTemplateToken = function() {
3186
3186
  this.inTemplateElement = !0;
3187
3187
  try {
3188
3188
  this.readTmplToken();
3189
3189
  } catch (e) {
3190
- if (e === $t) this.readInvalidTemplateToken();
3190
+ if (e === Qt) this.readInvalidTemplateToken();
3191
3191
  else throw e;
3192
3192
  }
3193
3193
  this.inTemplateElement = !1;
3194
- }, z.invalidStringToken = function(e, t) {
3195
- if (this.inTemplateElement && this.options.ecmaVersion >= 9) throw $t;
3194
+ }, B.invalidStringToken = function(e, t) {
3195
+ if (this.inTemplateElement && this.options.ecmaVersion >= 9) throw Qt;
3196
3196
  this.raise(e, t);
3197
- }, z.readTmplToken = function() {
3197
+ }, B.readTmplToken = function() {
3198
3198
  for (var e = "", t = this.pos;;) {
3199
3199
  this.pos >= this.input.length && this.raise(this.start, "Unterminated template");
3200
3200
  var n = this.input.charCodeAt(this.pos);
@@ -3211,7 +3211,7 @@ z.tryReadTemplateToken = function() {
3211
3211
  this.options.locations && (++this.curLine, this.lineStart = this.pos), t = this.pos;
3212
3212
  } else ++this.pos;
3213
3213
  }
3214
- }, z.readInvalidTemplateToken = function() {
3214
+ }, B.readInvalidTemplateToken = function() {
3215
3215
  for (; this.pos < this.input.length; this.pos++) switch (this.input[this.pos]) {
3216
3216
  case "\\":
3217
3217
  ++this.pos;
@@ -3224,7 +3224,7 @@ z.tryReadTemplateToken = function() {
3224
3224
  case "\u2029": ++this.curLine, this.lineStart = this.pos + 1;
3225
3225
  }
3226
3226
  this.raise(this.start, "Unterminated template");
3227
- }, z.readEscapedChar = function(e) {
3227
+ }, B.readEscapedChar = function(e) {
3228
3228
  var t = this.input.charCodeAt(++this.pos);
3229
3229
  switch (++this.pos, t) {
3230
3230
  case 110: return "\n";
@@ -3249,10 +3249,10 @@ z.tryReadTemplateToken = function() {
3249
3249
  }
3250
3250
  return ae(t) ? (this.options.locations && (this.lineStart = this.pos, ++this.curLine), "") : String.fromCharCode(t);
3251
3251
  }
3252
- }, z.readHexChar = function(e) {
3252
+ }, B.readHexChar = function(e) {
3253
3253
  var t = this.pos, n = this.readInt(16, e);
3254
3254
  return n === null && this.invalidStringToken(t, "Bad character escape sequence"), n;
3255
- }, z.readWord1 = function() {
3255
+ }, B.readWord1 = function() {
3256
3256
  this.containsEsc = !1;
3257
3257
  for (var e = "", t = !0, n = this.pos, r = this.options.ecmaVersion >= 6; this.pos < this.input.length;) {
3258
3258
  var i = this.fullCharCodeAtPos();
@@ -3267,14 +3267,14 @@ z.tryReadTemplateToken = function() {
3267
3267
  t = !1;
3268
3268
  }
3269
3269
  return e + this.input.slice(n, this.pos);
3270
- }, z.readWord = function() {
3270
+ }, B.readWord = function() {
3271
3271
  var e = this.readWord1(), t = E.name;
3272
3272
  return this.keywords.test(e) && (t = re[e]), this.finishToken(t, e);
3273
3273
  };
3274
- var en = "8.18.0";
3274
+ var $t = "8.18.0";
3275
3275
  k.acorn = {
3276
3276
  Parser: k,
3277
- version: en,
3277
+ version: $t,
3278
3278
  defaultOptions: be,
3279
3279
  Position: _e,
3280
3280
  SourceLocation: ve,
@@ -3287,24 +3287,24 @@ k.acorn = {
3287
3287
  tokContexts: F,
3288
3288
  isIdentifierChar: b,
3289
3289
  isIdentifierStart: y,
3290
- Token: Xt,
3290
+ Token: Yt,
3291
3291
  isNewLine: ae,
3292
3292
  lineBreak: D,
3293
3293
  lineBreakG: ie,
3294
3294
  nonASCIIwhitespace: se
3295
3295
  };
3296
- function tn(e, t) {
3296
+ function en(e, t) {
3297
3297
  return k.parse(e, t);
3298
3298
  }
3299
- function nn(e, t, n) {
3299
+ function tn(e, t, n) {
3300
3300
  return k.parseExpressionAt(e, t, n);
3301
3301
  }
3302
- function rn(e, t) {
3302
+ function nn(e, t) {
3303
3303
  return k.tokenizer(e, t);
3304
3304
  }
3305
3305
  //#endregion
3306
3306
  //#region node_modules/acorn-typescript/lib/index.mjs
3307
- function an(e, t) {
3307
+ function rn(e, t) {
3308
3308
  for (var n = 0; n < t.length; n++) {
3309
3309
  var r = t[n];
3310
3310
  r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, typeof (i = function(e, t) {
@@ -3320,36 +3320,36 @@ function an(e, t) {
3320
3320
  }
3321
3321
  var i;
3322
3322
  }
3323
- function on() {
3324
- return on = Object.assign ? Object.assign.bind() : function(e) {
3323
+ function an() {
3324
+ return an = Object.assign ? Object.assign.bind() : function(e) {
3325
3325
  for (var t = 1; t < arguments.length; t++) {
3326
3326
  var n = arguments[t];
3327
3327
  for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
3328
3328
  }
3329
3329
  return e;
3330
- }, on.apply(this, arguments);
3330
+ }, an.apply(this, arguments);
3331
3331
  }
3332
- function sn(e, t) {
3333
- e.prototype = Object.create(t.prototype), e.prototype.constructor = e, cn(e, t);
3332
+ function on(e, t) {
3333
+ e.prototype = Object.create(t.prototype), e.prototype.constructor = e, sn(e, t);
3334
3334
  }
3335
- function cn(e, t) {
3336
- return cn = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
3335
+ function sn(e, t) {
3336
+ return sn = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
3337
3337
  return e.__proto__ = t, e;
3338
- }, cn(e, t);
3338
+ }, sn(e, t);
3339
3339
  }
3340
- function ln(e, t) {
3340
+ function cn(e, t) {
3341
3341
  (t == null || t > e.length) && (t = e.length);
3342
3342
  for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
3343
3343
  return r;
3344
3344
  }
3345
- function un(e, t) {
3345
+ function ln(e, t) {
3346
3346
  var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
3347
3347
  if (n) return (n = n.call(e)).next.bind(n);
3348
3348
  if (Array.isArray(e) || (n = function(e, t) {
3349
3349
  if (e) {
3350
- if (typeof e == "string") return ln(e, t);
3350
+ if (typeof e == "string") return cn(e, t);
3351
3351
  var n = Object.prototype.toString.call(e).slice(8, -1);
3352
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? ln(e, t) : void 0;
3352
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? cn(e, t) : void 0;
3353
3353
  }
3354
3354
  }(e)) || t && e && typeof e.length == "number") {
3355
3355
  n && (e = n);
@@ -3363,28 +3363,28 @@ function un(e, t) {
3363
3363
  }
3364
3364
  throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3365
3365
  }
3366
- var B = !0;
3367
- function V(e, t) {
3366
+ var V = !0;
3367
+ function H(e, t) {
3368
3368
  return t === void 0 && (t = {}), new x("name", t);
3369
3369
  }
3370
- var dn = /* @__PURE__ */ new WeakMap();
3371
- function fn(e) {
3372
- var t = dn.get(e.Parser.acorn || e);
3370
+ var un = /* @__PURE__ */ new WeakMap();
3371
+ function dn(e) {
3372
+ var t = un.get(e.Parser.acorn || e);
3373
3373
  if (!t) {
3374
3374
  var n = {
3375
- assert: V(0, { startsExpr: B }),
3376
- asserts: V(0, { startsExpr: B }),
3377
- global: V(0, { startsExpr: B }),
3378
- keyof: V(0, { startsExpr: B }),
3379
- readonly: V(0, { startsExpr: B }),
3380
- unique: V(0, { startsExpr: B }),
3381
- abstract: V(0, { startsExpr: B }),
3382
- declare: V(0, { startsExpr: B }),
3383
- enum: V(0, { startsExpr: B }),
3384
- module: V(0, { startsExpr: B }),
3385
- namespace: V(0, { startsExpr: B }),
3386
- interface: V(0, { startsExpr: B }),
3387
- type: V(0, { startsExpr: B })
3375
+ assert: H(0, { startsExpr: V }),
3376
+ asserts: H(0, { startsExpr: V }),
3377
+ global: H(0, { startsExpr: V }),
3378
+ keyof: H(0, { startsExpr: V }),
3379
+ readonly: H(0, { startsExpr: V }),
3380
+ unique: H(0, { startsExpr: V }),
3381
+ abstract: H(0, { startsExpr: V }),
3382
+ declare: H(0, { startsExpr: V }),
3383
+ enum: H(0, { startsExpr: V }),
3384
+ module: H(0, { startsExpr: V }),
3385
+ namespace: H(0, { startsExpr: V }),
3386
+ interface: H(0, { startsExpr: V }),
3387
+ type: H(0, { startsExpr: V })
3388
3388
  }, r = {
3389
3389
  at: new x("@"),
3390
3390
  jsxName: new x("jsxName"),
@@ -3402,8 +3402,8 @@ function fn(e) {
3402
3402
  var t = this.context.pop();
3403
3403
  t === i.tc_oTag && e === E.slash || t === i.tc_cTag ? (this.context.pop(), this.exprAllowed = this.curContext() === i.tc_expr) : this.exprAllowed = !0;
3404
3404
  }, t = {
3405
- tokTypes: on({}, n, r),
3406
- tokContexts: on({}, i),
3405
+ tokTypes: an({}, n, r),
3406
+ tokContexts: an({}, i),
3407
3407
  keywordsRegExp: a,
3408
3408
  tokenIsLiteralPropertyName: function(e) {
3409
3409
  return [
@@ -3443,18 +3443,18 @@ function fn(e) {
3443
3443
  }
3444
3444
  return t;
3445
3445
  }
3446
- var pn = 1024, mn = RegExp("(?=(" + (/* @__PURE__ */ RegExp("(?:[^\\S\\n\\r\\u2028\\u2029]|\\/\\/.*|\\/\\*.*?\\*\\/)*", "y")).source + "))\\1(?=[\\n\\r\\u2028\\u2029]|\\/\\*(?!.*?\\*\\/)|$)", "y"), hn = function() {
3446
+ var fn = 1024, pn = RegExp("(?=(" + (/* @__PURE__ */ RegExp("(?:[^\\S\\n\\r\\u2028\\u2029]|\\/\\/.*|\\/\\*.*?\\*\\/)*", "y")).source + "))\\1(?=[\\n\\r\\u2028\\u2029]|\\/\\*(?!.*?\\*\\/)|$)", "y"), mn = function() {
3447
3447
  this.shorthandAssign = void 0, this.trailingComma = void 0, this.parenthesizedAssign = void 0, this.parenthesizedBind = void 0, this.doubleProto = void 0, this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
3448
3448
  };
3449
- function gn(e, t) {
3449
+ function hn(e, t) {
3450
3450
  var n = t.key.name, r = e[n], i = "true";
3451
3451
  return t.type !== "MethodDefinition" || t.kind !== "get" && t.kind !== "set" || (i = (t.static ? "s" : "i") + t.kind), r === "iget" && i === "iset" || r === "iset" && i === "iget" || r === "sget" && i === "sset" || r === "sset" && i === "sget" ? (e[n] = "true", !1) : !!r || (e[n] = i, !1);
3452
3452
  }
3453
- function _n(e, t) {
3453
+ function gn(e, t) {
3454
3454
  var n = e.key;
3455
3455
  return !e.computed && (n.type === "Identifier" && n.name === t || n.type === "Literal" && n.value === t);
3456
3456
  }
3457
- var H = {
3457
+ var U = {
3458
3458
  AbstractMethodHasImplementation: function(e) {
3459
3459
  return "Method '" + e.methodName + "' cannot have an implementation because it is marked abstract.";
3460
3460
  },
@@ -3555,7 +3555,7 @@ var H = {
3555
3555
  return "Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got " + e.type + ".";
3556
3556
  },
3557
3557
  LetInLexicalBinding: "'let' is not allowed to be used as a name in 'let' or 'const' declarations."
3558
- }, vn = {
3558
+ }, _n = {
3559
3559
  quot: "\"",
3560
3560
  amp: "&",
3561
3561
  apos: "'",
@@ -3809,38 +3809,38 @@ var H = {
3809
3809
  clubs: "♣",
3810
3810
  hearts: "♥",
3811
3811
  diams: "♦"
3812
- }, yn = /^[\da-fA-F]+$/, bn = /^\d+$/;
3813
- function xn(e) {
3814
- return e && (e.type === "JSXIdentifier" ? e.name : e.type === "JSXNamespacedName" ? e.namespace.name + ":" + e.name.name : e.type === "JSXMemberExpression" ? xn(e.object) + "." + xn(e.property) : void 0);
3812
+ }, vn = /^[\da-fA-F]+$/, yn = /^\d+$/;
3813
+ function bn(e) {
3814
+ return e && (e.type === "JSXIdentifier" ? e.name : e.type === "JSXNamespacedName" ? e.namespace.name + ":" + e.name.name : e.type === "JSXMemberExpression" ? bn(e.object) + "." + bn(e.property) : void 0);
3815
3815
  }
3816
- var Sn = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;
3817
- function Cn(e) {
3816
+ var xn = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;
3817
+ function Sn(e) {
3818
3818
  if (!e) throw Error("Assert fail");
3819
3819
  }
3820
- function wn(e) {
3820
+ function Cn(e) {
3821
3821
  return e === "accessor";
3822
3822
  }
3823
- function Tn(e) {
3823
+ function wn(e) {
3824
3824
  return e === "in" || e === "out";
3825
3825
  }
3826
- function En(e, t) {
3826
+ function Tn(e, t) {
3827
3827
  return 2 | (e ? 4 : 0) | (t ? 8 : 0);
3828
3828
  }
3829
- function Dn(e) {
3829
+ function En(e) {
3830
3830
  if (e.type !== "MemberExpression") return !1;
3831
3831
  var t = e.property;
3832
- return (!e.computed || !(t.type !== "TemplateLiteral" || t.expressions.length > 0)) && On(e.object);
3832
+ return (!e.computed || !(t.type !== "TemplateLiteral" || t.expressions.length > 0)) && Dn(e.object);
3833
3833
  }
3834
- function On(e) {
3835
- return e.type === "Identifier" || e.type === "MemberExpression" && !e.computed && On(e.object);
3834
+ function Dn(e) {
3835
+ return e.type === "Identifier" || e.type === "MemberExpression" && !e.computed && Dn(e.object);
3836
3836
  }
3837
- function kn(e) {
3837
+ function On(e) {
3838
3838
  return e === "private" || e === "public" || e === "protected";
3839
3839
  }
3840
- function An(e) {
3840
+ function kn(e) {
3841
3841
  var t = e || {}, n = t.dts, r = n !== void 0 && n, i = t.allowSatisfies, a = i !== void 0 && i;
3842
3842
  return function(t) {
3843
- var n = t.acorn || u, i = fn(n), o = n.tokTypes, s = n.keywordTypes, c = n.isIdentifierStart, l = n.lineBreak, d = n.isNewLine, f = n.tokContexts, p = n.isIdentifierChar, m = i.tokTypes, h = i.tokContexts, g = i.keywordsRegExp, _ = i.tokenIsLiteralPropertyName, ee = i.tokenIsTemplate, te = i.tokenIsTSDeclarationStart, v = i.tokenIsIdentifier, ne = i.tokenIsKeywordOrIdentifier, y = i.tokenIsTSTypeOperator;
3843
+ var n = t.acorn || u, i = dn(n), o = n.tokTypes, s = n.keywordTypes, c = n.isIdentifierStart, l = n.lineBreak, d = n.isNewLine, f = n.tokContexts, p = n.isIdentifierChar, m = i.tokTypes, h = i.tokContexts, g = i.keywordsRegExp, _ = i.tokenIsLiteralPropertyName, ee = i.tokenIsTemplate, te = i.tokenIsTSDeclarationStart, v = i.tokenIsIdentifier, ne = i.tokenIsKeywordOrIdentifier, y = i.tokenIsTSTypeOperator;
3844
3844
  function b(e, t, n) {
3845
3845
  n === void 0 && (n = e.length);
3846
3846
  for (var r = t; r < n; r++) {
@@ -3855,7 +3855,7 @@ function An(e) {
3855
3855
  function t() {
3856
3856
  return e.apply(this, arguments) || this;
3857
3857
  }
3858
- sn(t, e);
3858
+ on(t, e);
3859
3859
  var n = t.prototype;
3860
3860
  return n.takeDecorators = function(e) {
3861
3861
  var t = this.decoratorStack[this.decoratorStack.length - 1];
@@ -3898,7 +3898,7 @@ function An(e) {
3898
3898
  function t() {
3899
3899
  return e.apply(this, arguments) || this;
3900
3900
  }
3901
- sn(t, e);
3901
+ on(t, e);
3902
3902
  var n = t.prototype;
3903
3903
  return n.jsx_readToken = function() {
3904
3904
  for (var e = "", t = this.pos;;) {
@@ -3931,7 +3931,7 @@ function An(e) {
3931
3931
  r !== "&" && this.raise(this.pos, "Entity must start with an ampersand");
3932
3932
  for (var i = ++this.pos; this.pos < this.input.length && n++ < 10;) {
3933
3933
  if ((r = this.input[this.pos++]) === ";") {
3934
- t[0] === "#" ? t[1] === "x" ? (t = t.substr(2), yn.test(t) && (e = String.fromCharCode(parseInt(t, 16)))) : (t = t.substr(1), bn.test(t) && (e = String.fromCharCode(parseInt(t, 10)))) : e = vn[t];
3934
+ t[0] === "#" ? t[1] === "x" ? (t = t.substr(2), vn.test(t) && (e = String.fromCharCode(parseInt(t, 16)))) : (t = t.substr(1), yn.test(t) && (e = String.fromCharCode(parseInt(t, 10)))) : e = _n[t];
3935
3935
  break;
3936
3936
  }
3937
3937
  t += r;
@@ -4005,7 +4005,7 @@ function An(e) {
4005
4005
  break;
4006
4006
  default: this.unexpected();
4007
4007
  }
4008
- xn(s.name) !== xn(o.name) && this.raise(s.start, "Expected corresponding JSX closing tag for <" + xn(o.name) + ">");
4008
+ bn(s.name) !== bn(o.name) && this.raise(s.start, "Expected corresponding JSX closing tag for <" + bn(o.name) + ">");
4009
4009
  }
4010
4010
  var c = o.name ? "Element" : "Fragment";
4011
4011
  return n["opening" + c] = o, n["closing" + c] = s, n.children = r, this.type === i.relational && this.value === "<" && this.raise(this.start, "Adjacent JSX elements must be wrapped in an enclosing tag"), this.finishNode(n, "JSX" + c);
@@ -4023,7 +4023,7 @@ function An(e) {
4023
4023
  function t() {
4024
4024
  return e.apply(this, arguments) || this;
4025
4025
  }
4026
- sn(t, e);
4026
+ on(t, e);
4027
4027
  var n = t.prototype;
4028
4028
  return n.parseMaybeImportAttributes = function(e) {
4029
4029
  if (this.type === i._with || this.type === r.assert) {
@@ -4054,10 +4054,10 @@ function An(e) {
4054
4054
  }(i), {
4055
4055
  allowedModifiers: ["const"],
4056
4056
  disallowedModifiers: ["in", "out"],
4057
- errorTemplate: H.InvalidModifierOnTypeParameterPositions
4057
+ errorTemplate: U.InvalidModifierOnTypeParameterPositions
4058
4058
  }), i;
4059
4059
  }
4060
- sn(t, e);
4060
+ on(t, e);
4061
4061
  var u, x, S, C = t.prototype;
4062
4062
  return C.getTokenFromCodeInType = function(t) {
4063
4063
  return t === 62 || t === 60 ? this.finishOp(o.relational, 1) : e.prototype.getTokenFromCode.call(this, t);
@@ -4125,14 +4125,14 @@ function An(e) {
4125
4125
  return this.nextTokenStartSince(this.pos);
4126
4126
  }, C.tsHasSomeModifiers = function(e, t) {
4127
4127
  return t.some(function(t) {
4128
- return kn(t) ? e.accessibility === t : !!e[t];
4128
+ return On(t) ? e.accessibility === t : !!e[t];
4129
4129
  });
4130
4130
  }, C.tsIsStartOfStaticBlocks = function() {
4131
4131
  return this.isContextual("static") && this.lookaheadCharCode() === 123;
4132
4132
  }, C.tsCheckForInvalidTypeCasts = function(e) {
4133
4133
  var t = this;
4134
4134
  e.forEach(function(e) {
4135
- e?.type === "TSTypeCastExpression" && t.raise(e.typeAnnotation.start, H.UnexpectedTypeAnnotation);
4135
+ e?.type === "TSTypeCastExpression" && t.raise(e.typeAnnotation.start, U.UnexpectedTypeAnnotation);
4136
4136
  });
4137
4137
  }, C.atPossibleAsyncArrow = function(e) {
4138
4138
  return e.type === "Identifier" && e.name === "async" && this.lastTokEndLoc.column === e.end && !this.canInsertSemicolon() && e.end - e.start == 5 && e.start === this.potentialArrowAt;
@@ -4173,7 +4173,7 @@ function An(e) {
4173
4173
  }, C.isAbstractConstructorSignature = function() {
4174
4174
  return this.ts_isContextual(m.abstract) && this.lookahead().type === o._new;
4175
4175
  }, C.nextTokenStartSince = function(e) {
4176
- return Sn.lastIndex = e, Sn.test(this.input) ? Sn.lastIndex : e;
4176
+ return xn.lastIndex = e, xn.test(this.input) ? xn.lastIndex : e;
4177
4177
  }, C.lookaheadCharCode = function() {
4178
4178
  return this.input.charCodeAt(this.nextTokenStart());
4179
4179
  }, C.compareLookaheadState = function(e, t) {
@@ -4257,7 +4257,7 @@ function An(e) {
4257
4257
  }, C.isLineTerminator = function() {
4258
4258
  return this.eat(o.semi) || e.prototype.canInsertSemicolon.call(this);
4259
4259
  }, C.hasFollowingLineBreak = function() {
4260
- return mn.lastIndex = this.end, mn.test(this.input);
4260
+ return pn.lastIndex = this.end, pn.test(this.input);
4261
4261
  }, C.addExtra = function(e, t, n, r) {
4262
4262
  if (r === void 0 && (r = !0), e) {
4263
4263
  var i = e.extra = e.extra || {};
@@ -4349,7 +4349,7 @@ function An(e) {
4349
4349
  }
4350
4350
  return this.next(), e.prototype.exitScope.call(this), this.finishNode(t, "TSModuleBlock");
4351
4351
  }, C.tsParseAmbientExternalModuleDeclaration = function(t) {
4352
- return this.ts_isContextual(m.global) ? (t.global = !0, t.id = this.parseIdent()) : this.match(o.string) ? t.id = this.parseLiteral(this.value) : this.unexpected(), this.match(o.braceL) ? (e.prototype.enterScope.call(this, pn), t.body = this.tsParseModuleBlock(), e.prototype.exitScope.call(this)) : e.prototype.semicolon.call(this), this.finishNode(t, "TSModuleDeclaration");
4352
+ return this.ts_isContextual(m.global) ? (t.global = !0, t.id = this.parseIdent()) : this.match(o.string) ? t.id = this.parseLiteral(this.value) : this.unexpected(), this.match(o.braceL) ? (e.prototype.enterScope.call(this, fn), t.body = this.tsParseModuleBlock(), e.prototype.exitScope.call(this)) : e.prototype.semicolon.call(this), this.finishNode(t, "TSModuleDeclaration");
4353
4353
  }, C.tsTryParseDeclare = function(e) {
4354
4354
  var t = this;
4355
4355
  if (!this.isLineTerminator()) {
@@ -4450,7 +4450,7 @@ function An(e) {
4450
4450
  }, C.tsParseBindingListForSignature = function() {
4451
4451
  var t = this;
4452
4452
  return e.prototype.parseBindingList.call(this, o.parenR, !0, !0).map(function(e) {
4453
- return e.type !== "Identifier" && e.type !== "RestElement" && e.type !== "ObjectPattern" && e.type !== "ArrayPattern" && t.raise(e.start, H.UnsupportedSignatureParameterKind(e.type)), e;
4453
+ return e.type !== "Identifier" && e.type !== "RestElement" && e.type !== "ObjectPattern" && e.type !== "ArrayPattern" && t.raise(e.start, U.UnsupportedSignatureParameterKind(e.type)), e;
4454
4454
  });
4455
4455
  }, C.tsParseTypePredicateAsserts = function() {
4456
4456
  if (this.type !== m.asserts) return !1;
@@ -4496,7 +4496,7 @@ function An(e) {
4496
4496
  if (this.lookahead().type !== o._const) return null;
4497
4497
  this.next();
4498
4498
  var e = this.tsParseTypeReference();
4499
- return e.typeParameters && this.raise(e.typeName.start, H.CannotFindName({ name: "const" })), e;
4499
+ return e.typeParameters && this.raise(e.typeName.start, U.CannotFindName({ name: "const" })), e;
4500
4500
  }, C.tsParseFunctionOrConstructorType = function(e, t) {
4501
4501
  var n = this, r = this.startNode();
4502
4502
  return e === "TSConstructorType" && (r.abstract = !!t, t && this.next(), this.next()), this.tsInAllowConditionalTypesContext(function() {
@@ -4512,7 +4512,7 @@ function An(e) {
4512
4512
  switch (e.typeAnnotation.type) {
4513
4513
  case "TSTupleType":
4514
4514
  case "TSArrayType": return;
4515
- default: this.raise(e.start, H.UnexpectedReadonly);
4515
+ default: this.raise(e.start, U.UnexpectedReadonly);
4516
4516
  }
4517
4517
  }, C.tsParseTypeOperator = function() {
4518
4518
  var e = this.startNode(), t = this.value;
@@ -4545,7 +4545,7 @@ function An(e) {
4545
4545
  }(), this.finishNode(t, "TSLiteralType");
4546
4546
  }, C.tsParseImportType = function() {
4547
4547
  var e = this.startNode();
4548
- return this.expect(o._import), this.expect(o.parenL), this.match(o.string) || this.raise(this.start, H.UnsupportedImportTypeArgument), e.argument = this.parseExprAtom(), this.expect(o.parenR), this.eat(o.dot) && (e.qualifier = this.tsParseEntityName()), this.tsMatchLeftRelational() && (e.typeParameters = this.tsParseTypeArguments()), this.finishNode(e, "TSImportType");
4548
+ return this.expect(o._import), this.expect(o.parenL), this.match(o.string) || this.raise(this.start, U.UnsupportedImportTypeArgument), e.argument = this.parseExprAtom(), this.expect(o.parenR), this.eat(o.dot) && (e.qualifier = this.tsParseEntityName()), this.tsMatchLeftRelational() && (e.typeParameters = this.tsParseTypeArguments()), this.finishNode(e, "TSImportType");
4549
4549
  }, C.tsParseTypeQuery = function() {
4550
4550
  var e = this.startNode();
4551
4551
  return this.expect(o._typeof), e.exprName = this.match(o._import) ? this.tsParseImportType() : this.tsParseEntityName(), !this.hasPrecedingLineBreak() && this.tsMatchLeftRelational() && (e.typeParameters = this.tsParseTypeArguments()), this.finishNode(e, "TSTypeQuery");
@@ -4562,7 +4562,7 @@ function An(e) {
4562
4562
  var e = this.startLoc, t = this.start, n = this.eat(o.ellipsis), r = this.tsParseType(), i = this.eat(o.question);
4563
4563
  if (this.eat(o.colon)) {
4564
4564
  var a = this.startNodeAtNode(r);
4565
- a.optional = i, r.type !== "TSTypeReference" || r.typeParameters || r.typeName.type !== "Identifier" ? (this.raise(r.start, H.InvalidTupleMemberLabel), a.label = r) : a.label = r.typeName, a.elementType = this.tsParseType(), r = this.finishNode(a, "TSNamedTupleMember");
4565
+ a.optional = i, r.type !== "TSTypeReference" || r.typeParameters || r.typeName.type !== "Identifier" ? (this.raise(r.start, U.InvalidTupleMemberLabel), a.label = r) : a.label = r.typeName, a.elementType = this.tsParseType(), r = this.finishNode(a, "TSNamedTupleMember");
4566
4566
  } else if (i) {
4567
4567
  var s = this.startNodeAtNode(r);
4568
4568
  s.typeAnnotation = r, r = this.finishNode(s, "TSOptionalType");
@@ -4578,11 +4578,11 @@ function An(e) {
4578
4578
  var n = !1, r = null;
4579
4579
  return t.elementTypes.forEach(function(t) {
4580
4580
  var i = t.type;
4581
- !n || i === "TSRestType" || i === "TSOptionalType" || i === "TSNamedTupleMember" && t.optional || e.raise(t.start, H.OptionalTypeBeforeRequired), n ||= i === "TSNamedTupleMember" && t.optional || i === "TSOptionalType";
4581
+ !n || i === "TSRestType" || i === "TSOptionalType" || i === "TSNamedTupleMember" && t.optional || e.raise(t.start, U.OptionalTypeBeforeRequired), n ||= i === "TSNamedTupleMember" && t.optional || i === "TSOptionalType";
4582
4582
  var a = i;
4583
4583
  i === "TSRestType" && (a = (t = t.typeAnnotation).type);
4584
4584
  var o = a === "TSNamedTupleMember";
4585
- r ??= o, r !== o && e.raise(t.start, H.MixedLabeledAndUnlabeledElements);
4585
+ r ??= o, r !== o && e.raise(t.start, U.MixedLabeledAndUnlabeledElements);
4586
4586
  }), this.finishNode(t, "TSTupleType");
4587
4587
  }, C.tsParseTemplateLiteralType = function() {
4588
4588
  var e = this.startNode();
@@ -4665,7 +4665,7 @@ function An(e) {
4665
4665
  return this.tsIsStartOfFunctionType() ? this.tsParseFunctionOrConstructorType("TSFunctionType") : this.match(o._new) ? this.tsParseFunctionOrConstructorType("TSConstructorType") : this.isAbstractConstructorSignature() ? this.tsParseFunctionOrConstructorType("TSConstructorType", !0) : this.tsParseUnionTypeOrHigher();
4666
4666
  }, C.tsParseType = function() {
4667
4667
  var e = this;
4668
- Cn(this.inType);
4668
+ Sn(this.inType);
4669
4669
  var t = this.tsParseNonConditionalType();
4670
4670
  if (this.inDisallowConditionalTypesContext || this.hasPrecedingLineBreak() || !this.eat(o._extends)) return t;
4671
4671
  var n = this.startNodeAtNode(t);
@@ -4699,7 +4699,7 @@ function An(e) {
4699
4699
  modified: e,
4700
4700
  allowedModifiers: [],
4701
4701
  disallowedModifiers: ["in", "out"],
4702
- errorTemplate: H.InvalidModifierOnTypeParameterPositions
4702
+ errorTemplate: U.InvalidModifierOnTypeParameterPositions
4703
4703
  });
4704
4704
  }, C.tsParseTypeParameter = function(e) {
4705
4705
  e === void 0 && (e = this.tsParseNoneModifiers.bind(this));
@@ -4709,7 +4709,7 @@ function An(e) {
4709
4709
  var t = this.startNode();
4710
4710
  this.tsMatchLeftRelational() || this.matchJsx("jsxTagStart") ? this.next() : this.unexpected();
4711
4711
  var n = { value: -1 };
4712
- return t.params = this.tsParseBracketedList("TypeParametersOrArguments", this.tsParseTypeParameter.bind(this, e), !1, !0, n), t.params.length === 0 && this.raise(this.start, H.EmptyTypeParameters), n.value !== -1 && this.addExtra(t, "trailingComma", n.value), this.finishNode(t, "TSTypeParameterDeclaration");
4712
+ return t.params = this.tsParseBracketedList("TypeParametersOrArguments", this.tsParseTypeParameter.bind(this, e), !1, !0, n), t.params.length === 0 && this.raise(this.start, U.EmptyTypeParameters), n.value !== -1 && this.addExtra(t, "trailingComma", n.value), this.finishNode(t, "TSTypeParameterDeclaration");
4713
4713
  }, C.tsTryParseTypeParameters = function(e) {
4714
4714
  if (this.tsMatchLeftRelational()) return this.tsParseTypeParameters(e);
4715
4715
  }, C.tsTryParse = function(e) {
@@ -4733,14 +4733,14 @@ function An(e) {
4733
4733
  t[a] = n[a];
4734
4734
  }
4735
4735
  }, C.tsParseModifiers = function(e) {
4736
- for (var t = this, n = e.modified, r = e.allowedModifiers, i = e.disallowedModifiers, a = e.stopOnStartOfClassStaticBlock, o = e.errorTemplate, s = o === void 0 ? H.InvalidModifierOnTypeMember : o, c = {}, l = function(e, r, i, a) {
4737
- r === i && n[a] && t.raise(e.column, H.InvalidModifiersOrder({ orderedModifiers: [i, a] }));
4736
+ for (var t = this, n = e.modified, r = e.allowedModifiers, i = e.disallowedModifiers, a = e.stopOnStartOfClassStaticBlock, o = e.errorTemplate, s = o === void 0 ? U.InvalidModifierOnTypeMember : o, c = {}, l = function(e, r, i, a) {
4737
+ r === i && n[a] && t.raise(e.column, U.InvalidModifiersOrder({ orderedModifiers: [i, a] }));
4738
4738
  }, u = function(e, r, i, a) {
4739
- (n[i] && r === a || n[a] && r === i) && t.raise(e.column, H.IncompatibleModifiers({ modifiers: [i, a] }));
4739
+ (n[i] && r === a || n[a] && r === i) && t.raise(e.column, U.IncompatibleModifiers({ modifiers: [i, a] }));
4740
4740
  };;) {
4741
4741
  var d = this.startLoc, f = this.tsParseModifier(r.concat(i ?? []), a);
4742
4742
  if (!f) break;
4743
- kn(f) ? n.accessibility ? this.raise(this.start, H.DuplicateAccessibilityModifier()) : (l(d, f, f, "override"), l(d, f, f, "static"), l(d, f, f, "readonly"), l(d, f, f, "accessor"), c.accessibility = f, n.accessibility = f) : Tn(f) ? n[f] ? this.raise(this.start, H.DuplicateModifier({ modifier: f })) : (l(d, f, "in", "out"), c[f] = f, n[f] = !0) : wn(f) ? n[f] ? this.raise(this.start, H.DuplicateModifier({ modifier: f })) : (u(d, f, "accessor", "readonly"), u(d, f, "accessor", "static"), u(d, f, "accessor", "override"), c[f] = f, n[f] = !0) : Object.hasOwnProperty.call(n, f) ? this.raise(this.start, H.DuplicateModifier({ modifier: f })) : (l(d, f, "static", "readonly"), l(d, f, "static", "override"), l(d, f, "override", "readonly"), l(d, f, "abstract", "override"), u(d, f, "declare", "override"), u(d, f, "static", "abstract"), c[f] = f, n[f] = !0), i != null && i.includes(f) && this.raise(this.start, s);
4743
+ On(f) ? n.accessibility ? this.raise(this.start, U.DuplicateAccessibilityModifier()) : (l(d, f, f, "override"), l(d, f, f, "static"), l(d, f, f, "readonly"), l(d, f, f, "accessor"), c.accessibility = f, n.accessibility = f) : wn(f) ? n[f] ? this.raise(this.start, U.DuplicateModifier({ modifier: f })) : (l(d, f, "in", "out"), c[f] = f, n[f] = !0) : Cn(f) ? n[f] ? this.raise(this.start, U.DuplicateModifier({ modifier: f })) : (u(d, f, "accessor", "readonly"), u(d, f, "accessor", "static"), u(d, f, "accessor", "override"), c[f] = f, n[f] = !0) : Object.hasOwnProperty.call(n, f) ? this.raise(this.start, U.DuplicateModifier({ modifier: f })) : (l(d, f, "static", "readonly"), l(d, f, "static", "override"), l(d, f, "override", "readonly"), l(d, f, "abstract", "override"), u(d, f, "declare", "override"), u(d, f, "static", "abstract"), c[f] = f, n[f] = !0), i != null && i.includes(f) && this.raise(this.start, s);
4744
4744
  }
4745
4745
  return c;
4746
4746
  }, C.tsParseInOutModifiers = function(e) {
@@ -4756,7 +4756,7 @@ function An(e) {
4756
4756
  "abstract",
4757
4757
  "override"
4758
4758
  ],
4759
- errorTemplate: H.InvalidModifierOnTypeParameter
4759
+ errorTemplate: U.InvalidModifierOnTypeParameter
4760
4760
  });
4761
4761
  }, C.tsParseTypeArguments = function() {
4762
4762
  var e = this, t = this.startNode();
@@ -4764,13 +4764,13 @@ function An(e) {
4764
4764
  return e.tsInNoContext(function() {
4765
4765
  return e.expect(o.relational), e.tsParseDelimitedList("TypeParametersOrArguments", e.tsParseType.bind(e));
4766
4766
  });
4767
- }), t.params.length === 0 && this.raise(this.start, H.EmptyTypeArguments), this.exprAllowed = !1, this.expect(o.relational), this.finishNode(t, "TSTypeParameterInstantiation");
4767
+ }), t.params.length === 0 && this.raise(this.start, U.EmptyTypeArguments), this.exprAllowed = !1, this.expect(o.relational), this.finishNode(t, "TSTypeParameterInstantiation");
4768
4768
  }, C.tsParseHeritageClause = function(e) {
4769
4769
  var t = this, n = this.start, r = this.tsParseDelimitedList("HeritageClauseElement", function() {
4770
4770
  var e = t.startNode();
4771
4771
  return e.expression = t.tsParseEntityName(), t.tsMatchLeftRelational() && (e.typeParameters = t.tsParseTypeArguments()), t.finishNode(e, "TSExpressionWithTypeArguments");
4772
4772
  });
4773
- return r.length || this.raise(n, H.EmptyHeritageClauseType({ token: e })), r;
4773
+ return r.length || this.raise(n, U.EmptyHeritageClauseType({ token: e })), r;
4774
4774
  }, C.tsParseTypeMemberSemicolon = function() {
4775
4775
  this.eat(o.comma) || this.isLineTerminator() || this.expect(o.semi);
4776
4776
  }, C.tsTryParseAndCatch = function(e) {
@@ -4784,18 +4784,18 @@ function An(e) {
4784
4784
  this.eat(o.question) && (e.optional = !0);
4785
4785
  var n = e;
4786
4786
  if (this.match(o.parenL) || this.tsMatchLeftRelational()) {
4787
- t && this.raise(e.start, H.ReadonlyForMethodSignature);
4787
+ t && this.raise(e.start, U.ReadonlyForMethodSignature);
4788
4788
  var r = n;
4789
- r.kind && this.tsMatchLeftRelational() && this.raise(this.start, H.AccesorCannotHaveTypeParameters), this.tsFillSignature(o.colon, r), this.tsParseTypeMemberSemicolon();
4789
+ r.kind && this.tsMatchLeftRelational() && this.raise(this.start, U.AccesorCannotHaveTypeParameters), this.tsFillSignature(o.colon, r), this.tsParseTypeMemberSemicolon();
4790
4790
  var i = "parameters", a = "typeAnnotation";
4791
- if (r.kind === "get") r[i].length > 0 && (this.raise(this.start, "A 'get' accesor must not have any formal parameters."), this.isThisParam(r[i][0]) && this.raise(this.start, H.AccesorCannotDeclareThisParameter));
4791
+ if (r.kind === "get") r[i].length > 0 && (this.raise(this.start, "A 'get' accesor must not have any formal parameters."), this.isThisParam(r[i][0]) && this.raise(this.start, U.AccesorCannotDeclareThisParameter));
4792
4792
  else if (r.kind === "set") {
4793
4793
  if (r[i].length !== 1) this.raise(this.start, "A 'get' accesor must not have any formal parameters.");
4794
4794
  else {
4795
4795
  var s = r[i][0];
4796
- this.isThisParam(s) && this.raise(this.start, H.AccesorCannotDeclareThisParameter), s.type === "Identifier" && s.optional && this.raise(this.start, H.SetAccesorCannotHaveOptionalParameter), s.type === "RestElement" && this.raise(this.start, H.SetAccesorCannotHaveRestParameter);
4796
+ this.isThisParam(s) && this.raise(this.start, U.AccesorCannotDeclareThisParameter), s.type === "Identifier" && s.optional && this.raise(this.start, U.SetAccesorCannotHaveOptionalParameter), s.type === "RestElement" && this.raise(this.start, U.SetAccesorCannotHaveRestParameter);
4797
4797
  }
4798
- r[a] && this.raise(r[a].start, H.SetAccesorCannotHaveReturnType);
4798
+ r[a] && this.raise(r[a].start, U.SetAccesorCannotHaveReturnType);
4799
4799
  } else r.kind = "method";
4800
4800
  return this.finishNode(r, "TSMethodSignature");
4801
4801
  }
@@ -4832,7 +4832,7 @@ function An(e) {
4832
4832
  return this.expect(o.braceR), e;
4833
4833
  }, C.tsParseInterfaceDeclaration = function(e, t) {
4834
4834
  if (t === void 0 && (t = {}), this.hasFollowingLineBreak()) return null;
4835
- this.expectContextual("interface"), t.declare && (e.declare = !0), v(this.type) ? (e.id = this.parseIdent(), this.checkLValSimple(e.id, 7)) : (e.id = null, this.raise(this.start, H.MissingInterfaceName)), e.typeParameters = this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)), this.eat(o._extends) && (e.extends = this.tsParseHeritageClause("extends"));
4835
+ this.expectContextual("interface"), t.declare && (e.declare = !0), v(this.type) ? (e.id = this.parseIdent(), this.checkLValSimple(e.id, 7)) : (e.id = null, this.raise(this.start, U.MissingInterfaceName)), e.typeParameters = this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)), this.eat(o._extends) && (e.extends = this.tsParseHeritageClause("extends"));
4836
4836
  var n = this.startNode();
4837
4837
  return n.body = this.tsInType(this.tsParseObjectTypeMembers.bind(this)), e.body = this.finishNode(n, "TSInterfaceBody"), this.finishNode(e, "TSInterfaceDeclaration");
4838
4838
  }, C.tsParseAbstractDeclaration = function(e) {
@@ -4850,7 +4850,7 @@ function An(e) {
4850
4850
  break;
4851
4851
  case "global":
4852
4852
  if (this.match(o.braceL)) {
4853
- e.prototype.enterScope.call(this, pn);
4853
+ e.prototype.enterScope.call(this, fn);
4854
4854
  var i = t;
4855
4855
  return i.global = !0, i.id = n, i.body = this.tsParseModuleBlock(), e.prototype.exitScope.call(this), this.finishNode(i, "TSModuleDeclaration");
4856
4856
  }
@@ -4889,7 +4889,7 @@ function An(e) {
4889
4889
  if (n === void 0 && (n = !1), t.id = this.parseIdent(), n || this.checkLValSimple(t.id, 8), this.eat(o.dot)) {
4890
4890
  var r = this.startNode();
4891
4891
  this.tsParseModuleOrNamespaceDeclaration(r, !0), t.body = r;
4892
- } else e.prototype.enterScope.call(this, pn), t.body = this.tsParseModuleBlock(), e.prototype.exitScope.call(this);
4892
+ } else e.prototype.enterScope.call(this, fn), t.body = this.tsParseModuleBlock(), e.prototype.exitScope.call(this);
4893
4893
  return this.finishNode(t, "TSModuleDeclaration");
4894
4894
  }, C.checkLValSimple = function(t, n, r) {
4895
4895
  return n === void 0 && (n = 0), e.prototype.checkLValSimple.call(this, t, n, r);
@@ -4923,7 +4923,7 @@ function An(e) {
4923
4923
  }, C.tsParseImportEqualsDeclaration = function(t, n) {
4924
4924
  t.isExport = n || !1, t.id = this.parseIdent(), this.checkLValSimple(t.id, 2), e.prototype.expect.call(this, o.eq);
4925
4925
  var r = this.tsParseModuleReference();
4926
- return t.importKind === "type" && r.type !== "TSExternalModuleReference" && this.raise(r.start, H.ImportAliasHasImportType), t.moduleReference = r, e.prototype.semicolon.call(this), this.finishNode(t, "TSImportEqualsDeclaration");
4926
+ return t.importKind === "type" && r.type !== "TSExternalModuleReference" && this.raise(r.start, U.ImportAliasHasImportType), t.moduleReference = r, e.prototype.semicolon.call(this), this.finishNode(t, "TSImportEqualsDeclaration");
4927
4927
  }, C.isExportDefaultSpecifier = function() {
4928
4928
  if (this.tsIsDeclarationStart()) return !1;
4929
4929
  var e = this.type;
@@ -4950,13 +4950,13 @@ function An(e) {
4950
4950
  }, C.parseFunction = function(e, t, n, r, i) {
4951
4951
  this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !r) && (this.type === o.star && 2 & t && this.unexpected(), e.generator = this.eat(o.star)), this.options.ecmaVersion >= 8 && (e.async = !!r), 1 & t && (e.id = 4 & t && this.type !== o.name ? null : this.parseIdent());
4952
4952
  var a = this.yieldPos, s = this.awaitPos, c = this.awaitIdentPos, l = this.maybeInArrowParameters;
4953
- this.maybeInArrowParameters = !1, this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(En(e.async, e.generator)), 1 & t || (e.id = this.type === o.name ? this.parseIdent() : null), this.parseFunctionParams(e);
4953
+ this.maybeInArrowParameters = !1, this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Tn(e.async, e.generator)), 1 & t || (e.id = this.type === o.name ? this.parseIdent() : null), this.parseFunctionParams(e);
4954
4954
  var u = 1 & t;
4955
4955
  return this.parseFunctionBody(e, n, !1, i, { isFunctionDeclaration: u }), this.yieldPos = a, this.awaitPos = s, this.awaitIdentPos = c, 1 & t && e.id && !(2 & t) && this.checkLValSimple(e.id, e.body ? this.strict || e.generator || e.async ? this.treatFunctionsAsVar ? 1 : 2 : 3 : 0), this.maybeInArrowParameters = l, this.finishNode(e, u ? "FunctionDeclaration" : "FunctionExpression");
4956
4956
  }, C.parseFunctionBody = function(t, n, r, i, a) {
4957
4957
  n === void 0 && (n = !1), r === void 0 && (r = !1), i === void 0 && (i = !1), this.match(o.colon) && (t.returnType = this.tsParseTypeOrTypePredicateAnnotation(o.colon));
4958
4958
  var s = a != null && a.isFunctionDeclaration ? "TSDeclareFunction" : a != null && a.isClassMethod ? "TSDeclareMethod" : void 0;
4959
- return s && !this.match(o.braceL) && this.isLineTerminator() ? this.finishNode(t, s) : s === "TSDeclareFunction" && this.isAmbientContext && (this.raise(t.start, H.DeclareFunctionHasImplementation), t.declare) ? (e.prototype.parseFunctionBody.call(this, t, n, r, !1), this.finishNode(t, s)) : (e.prototype.parseFunctionBody.call(this, t, n, r, i), t);
4959
+ return s && !this.match(o.braceL) && this.isLineTerminator() ? this.finishNode(t, s) : s === "TSDeclareFunction" && this.isAmbientContext && (this.raise(t.start, U.DeclareFunctionHasImplementation), t.declare) ? (e.prototype.parseFunctionBody.call(this, t, n, r, !1), this.finishNode(t, s)) : (e.prototype.parseFunctionBody.call(this, t, n, r, i), t);
4960
4960
  }, C.parseNew = function() {
4961
4961
  var e;
4962
4962
  this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword new");
@@ -4997,7 +4997,7 @@ function An(e) {
4997
4997
  return this.importOrExportOuterKind = "value", r;
4998
4998
  }
4999
4999
  }
5000
- return this.next(), this.type === o.string ? (e.specifiers = [], e.source = this.parseExprAtom()) : (e.specifiers = this.parseImportSpecifiers(), this.expectContextual("from"), e.source = this.type === o.string ? this.parseExprAtom() : this.unexpected()), this.parseMaybeImportAttributes(e), this.semicolon(), this.finishNode(e, "ImportDeclaration"), this.importOrExportOuterKind = "value", e.importKind === "type" && e.specifiers.length > 1 && e.specifiers[0].type === "ImportDefaultSpecifier" && this.raise(e.start, H.TypeImportCannotSpecifyDefaultAndNamed), e;
5000
+ return this.next(), this.type === o.string ? (e.specifiers = [], e.source = this.parseExprAtom()) : (e.specifiers = this.parseImportSpecifiers(), this.expectContextual("from"), e.source = this.type === o.string ? this.parseExprAtom() : this.unexpected()), this.parseMaybeImportAttributes(e), this.semicolon(), this.finishNode(e, "ImportDeclaration"), this.importOrExportOuterKind = "value", e.importKind === "type" && e.specifiers.length > 1 && e.specifiers[0].type === "ImportDefaultSpecifier" && this.raise(e.start, U.TypeImportCannotSpecifyDefaultAndNamed), e;
5001
5001
  }, C.parseExportDefaultDeclaration = function() {
5002
5002
  if (this.isAbstractClass()) {
5003
5003
  var t = this.startNode();
@@ -5037,7 +5037,7 @@ function An(e) {
5037
5037
  else {
5038
5038
  if (e.declaration = null, e.specifiers = this.parseExportSpecifiers(t), this.eatContextual("from")) this.type !== o.string && this.unexpected(), e.source = this.parseExprAtom(), this.parseMaybeImportAttributes(e);
5039
5039
  else {
5040
- for (var s, c = un(e.specifiers); !(s = c()).done;) {
5040
+ for (var s, c = ln(e.specifiers); !(s = c()).done;) {
5041
5041
  var l = s.value;
5042
5042
  this.checkUnreserved(l.local), this.checkLocalExport(l.local), l.local.type === "Literal" && this.raise(l.local.start, "A string literal cannot be used as an exported binding without `from`.");
5043
5043
  }
@@ -5050,7 +5050,7 @@ function An(e) {
5050
5050
  e && (typeof t != "string" && (t = t.type === "Identifier" ? t.name : t.value), e[t] = !0);
5051
5051
  }, C.parseMaybeDefault = function(t, n, r) {
5052
5052
  var i = e.prototype.parseMaybeDefault.call(this, t, n, r);
5053
- return i.type === "AssignmentPattern" && i.typeAnnotation && i.right.start < i.typeAnnotation.start && this.raise(i.typeAnnotation.start, H.TypeAnnotationAfterAssign), i;
5053
+ return i.type === "AssignmentPattern" && i.typeAnnotation && i.right.start < i.typeAnnotation.start && this.raise(i.typeAnnotation.start, U.TypeAnnotationAfterAssign), i;
5054
5054
  }, C.typeCastToParameter = function(e) {
5055
5055
  return e.expression.typeAnnotation = e.typeAnnotation, this.resetEndLocation(e.expression, e.typeAnnotation.end), e.expression;
5056
5056
  }, C.toAssignableList = function(t, n) {
@@ -5099,9 +5099,9 @@ function An(e) {
5099
5099
  this.next(), e.prototype.parseVar.call(this, t, !1, n, r || i), this.semicolon();
5100
5100
  var a = this.finishNode(t, "VariableDeclaration");
5101
5101
  if (!i) return a;
5102
- for (var o, s = un(a.declarations); !(o = s()).done;) {
5102
+ for (var o, s = ln(a.declarations); !(o = s()).done;) {
5103
5103
  var c = o.value, l = c.init;
5104
- l && (n !== "const" || c.id.typeAnnotation ? this.raise(l.start, H.InitializerNotAllowedInAmbientContext) : l.type !== "StringLiteral" && l.type !== "BooleanLiteral" && l.type !== "NumericLiteral" && l.type !== "BigIntLiteral" && (l.type !== "TemplateLiteral" || l.expressions.length > 0) && !Dn(l) && this.raise(l.start, H.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference));
5104
+ l && (n !== "const" || c.id.typeAnnotation ? this.raise(l.start, U.InitializerNotAllowedInAmbientContext) : l.type !== "StringLiteral" && l.type !== "BooleanLiteral" && l.type !== "NumericLiteral" && l.type !== "BigIntLiteral" && (l.type !== "TemplateLiteral" || l.expressions.length > 0) && !En(l) && this.raise(l.start, U.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference));
5105
5105
  }
5106
5106
  return a;
5107
5107
  }, C.parseStatement = function(t, n, r) {
@@ -5122,7 +5122,7 @@ function An(e) {
5122
5122
  "private"
5123
5123
  ]);
5124
5124
  }, C.parsePostMemberNameModifiers = function(e) {
5125
- this.eat(o.question) && (e.optional = !0), e.readonly && this.match(o.parenL) && this.raise(e.start, H.ClassMethodHasReadonly), e.declare && this.match(o.parenL) && this.raise(e.start, H.ClassMethodHasDeclare);
5125
+ this.eat(o.question) && (e.optional = !0), e.readonly && this.match(o.parenL) && this.raise(e.start, U.ClassMethodHasReadonly), e.declare && this.match(o.parenL) && this.raise(e.start, U.ClassMethodHasDeclare);
5126
5126
  }, C.parseExpressionStatement = function(t, n) {
5127
5127
  return (n.type === "Identifier" ? this.tsParseExpressionStatement(t, n) : void 0) || e.prototype.parseExpressionStatement.call(this, t, n);
5128
5128
  }, C.shouldParseExportStatement = function() {
@@ -5154,7 +5154,7 @@ function An(e) {
5154
5154
  return t.parseExportDeclaration(e);
5155
5155
  });
5156
5156
  var n = this.start, r = this.startLoc, i = this.eatContextual("declare");
5157
- !i || !this.ts_isContextual(m.declare) && this.shouldParseExportStatement() || this.raise(this.start, H.ExpectedAmbientAfterExportDeclare);
5157
+ !i || !this.ts_isContextual(m.declare) && this.shouldParseExportStatement() || this.raise(this.start, U.ExpectedAmbientAfterExportDeclare);
5158
5158
  var a = v(this.type) && this.tsTryParseExportDeclaration() || this.parseStatement(null);
5159
5159
  return a ? ((a.type === "TSInterfaceDeclaration" || a.type === "TSTypeAliasDeclaration" || i) && (e.exportKind = "type"), i && (this.resetStartLocation(a, n, r), a.declare = !0), a) : null;
5160
5160
  }, C.parseClassId = function(t, n) {
@@ -5168,19 +5168,19 @@ function An(e) {
5168
5168
  var t = this.tsTryParseTypeAnnotation();
5169
5169
  t && (e.typeAnnotation = t);
5170
5170
  }, C.parseClassField = function(t) {
5171
- if (t.key.type === "PrivateIdentifier") t.abstract && this.raise(t.start, H.PrivateElementHasAbstract), t.accessibility && this.raise(t.start, H.PrivateElementHasAccessibility({ modifier: t.accessibility })), this.parseClassPropertyAnnotation(t);
5172
- else if (this.parseClassPropertyAnnotation(t), this.isAmbientContext && (!t.readonly || t.typeAnnotation) && this.match(o.eq) && this.raise(this.start, H.DeclareClassFieldHasInitializer), t.abstract && this.match(o.eq)) {
5171
+ if (t.key.type === "PrivateIdentifier") t.abstract && this.raise(t.start, U.PrivateElementHasAbstract), t.accessibility && this.raise(t.start, U.PrivateElementHasAccessibility({ modifier: t.accessibility })), this.parseClassPropertyAnnotation(t);
5172
+ else if (this.parseClassPropertyAnnotation(t), this.isAmbientContext && (!t.readonly || t.typeAnnotation) && this.match(o.eq) && this.raise(this.start, U.DeclareClassFieldHasInitializer), t.abstract && this.match(o.eq)) {
5173
5173
  var n = t.key;
5174
- this.raise(this.start, H.AbstractPropertyHasInitializer({ propertyName: n.type !== "Identifier" || t.computed ? "[" + this.input.slice(n.start, n.end) + "]" : n.name }));
5174
+ this.raise(this.start, U.AbstractPropertyHasInitializer({ propertyName: n.type !== "Identifier" || t.computed ? "[" + this.input.slice(n.start, n.end) + "]" : n.name }));
5175
5175
  }
5176
5176
  return e.prototype.parseClassField.call(this, t);
5177
5177
  }, C.parseClassMethod = function(e, t, n, r) {
5178
5178
  var i = e.kind === "constructor", a = e.key.type === "PrivateIdentifier", o = this.tsTryParseTypeParameters();
5179
- a ? (o && (e.typeParameters = o), e.accessibility && this.raise(e.start, H.PrivateMethodsHasAccessibility({ modifier: e.accessibility }))) : o && i && this.raise(o.start, H.ConstructorHasTypeParameters);
5179
+ a ? (o && (e.typeParameters = o), e.accessibility && this.raise(e.start, U.PrivateMethodsHasAccessibility({ modifier: e.accessibility }))) : o && i && this.raise(o.start, U.ConstructorHasTypeParameters);
5180
5180
  var s = e.declare, c = e.kind;
5181
- !(s !== void 0 && s) || c !== "get" && c !== "set" || this.raise(e.start, H.DeclareAccessor({ kind: c })), o && (e.typeParameters = o);
5181
+ !(s !== void 0 && s) || c !== "get" && c !== "set" || this.raise(e.start, U.DeclareAccessor({ kind: c })), o && (e.typeParameters = o);
5182
5182
  var l = e.key;
5183
- e.kind === "constructor" ? (t && this.raise(l.start, "Constructor can't be a generator"), n && this.raise(l.start, "Constructor can't be an async method")) : e.static && _n(e, "prototype") && this.raise(l.start, "Classes may not have a static property named prototype");
5183
+ e.kind === "constructor" ? (t && this.raise(l.start, "Constructor can't be a generator"), n && this.raise(l.start, "Constructor can't be an async method")) : e.static && gn(e, "prototype") && this.raise(l.start, "Classes may not have a static property named prototype");
5184
5184
  var u = e.value = this.parseMethod(t, n, r, !0, e);
5185
5185
  return e.kind === "get" && u.params.length !== 0 && this.raiseRecoverable(u.start, "getter should have no params"), e.kind === "set" && u.params.length !== 1 && this.raiseRecoverable(u.start, "setter should have exactly one param"), e.kind === "set" && u.params[0].type === "RestElement" && this.raiseRecoverable(u.params[0].start, "Setter cannot use rest params"), this.finishNode(e, "MethodDefinition");
5186
5186
  }, C.isClassMethod = function() {
@@ -5204,23 +5204,23 @@ function An(e) {
5204
5204
  allowedModifiers: d,
5205
5205
  disallowedModifiers: ["in", "out"],
5206
5206
  stopOnStartOfClassStaticBlock: !0,
5207
- errorTemplate: H.InvalidModifierOnTypeParameterPositions
5207
+ errorTemplate: U.InvalidModifierOnTypeParameterPositions
5208
5208
  }).static;
5209
5209
  var f = function() {
5210
5210
  if (!n.tsIsStartOfStaticBlocks()) {
5211
5211
  var f = n.tsTryParseIndexSignature(a);
5212
- if (f) return a.abstract && n.raise(a.start, H.IndexSignatureHasAbstract), a.accessibility && n.raise(a.start, H.IndexSignatureHasAccessibility({ modifier: a.accessibility })), a.declare && n.raise(a.start, H.IndexSignatureHasDeclare), a.override && n.raise(a.start, H.IndexSignatureHasOverride), f;
5213
- if (!n.inAbstractClass && a.abstract && n.raise(a.start, H.NonAbstractClassHasAbstractMethod), a.override && t && n.raise(a.start, H.OverrideNotInSubClass), a.static = r, r && (n.isClassElementNameStart() || n.type === o.star || (s = "static")), !s && i >= 8 && n.eatContextual("async") && (!n.isClassElementNameStart() && n.type !== o.star || n.canInsertSemicolon() ? s = "async" : l = !0), !s && (i >= 9 || !l) && n.eat(o.star) && (c = !0), !s && !l && !c) {
5212
+ if (f) return a.abstract && n.raise(a.start, U.IndexSignatureHasAbstract), a.accessibility && n.raise(a.start, U.IndexSignatureHasAccessibility({ modifier: a.accessibility })), a.declare && n.raise(a.start, U.IndexSignatureHasDeclare), a.override && n.raise(a.start, U.IndexSignatureHasOverride), f;
5213
+ if (!n.inAbstractClass && a.abstract && n.raise(a.start, U.NonAbstractClassHasAbstractMethod), a.override && t && n.raise(a.start, U.OverrideNotInSubClass), a.static = r, r && (n.isClassElementNameStart() || n.type === o.star || (s = "static")), !s && i >= 8 && n.eatContextual("async") && (!n.isClassElementNameStart() && n.type !== o.star || n.canInsertSemicolon() ? s = "async" : l = !0), !s && (i >= 9 || !l) && n.eat(o.star) && (c = !0), !s && !l && !c) {
5214
5214
  var p = n.value;
5215
5215
  (n.eatContextual("get") || n.eatContextual("set")) && (n.isClassElementNameStart() ? u = p : s = p);
5216
5216
  }
5217
5217
  if (s ? (a.computed = !1, a.key = n.startNodeAt(n.lastTokStart, n.lastTokStartLoc), a.key.name = s, n.finishNode(a.key, "Identifier")) : n.parseClassElementName(a), n.parsePostMemberNameModifiers(a), n.isClassMethod() || i < 13 || n.type === o.parenL || u !== "method" || c || l) {
5218
- var m = !a.static && _n(a, "constructor"), h = m && t;
5218
+ var m = !a.static && gn(a, "constructor"), h = m && t;
5219
5219
  m && u !== "method" && n.raise(a.key.start, "Constructor can't have get/set modifier"), a.kind = m ? "constructor" : u, n.parseClassMethod(a, c, l, h);
5220
5220
  } else n.parseClassField(a);
5221
5221
  return a;
5222
5222
  }
5223
- if (n.next(), n.next(), n.tsHasSomeModifiers(a, d) && n.raise(n.start, H.StaticBlockCannotHaveModifier), i >= 13) return e.prototype.parseClassStaticBlock.call(n, a), a;
5223
+ if (n.next(), n.next(), n.tsHasSomeModifiers(a, d) && n.raise(n.start, U.StaticBlockCannotHaveModifier), i >= 13) return e.prototype.parseClassStaticBlock.call(n, a), a;
5224
5224
  };
5225
5225
  return a.declare ? this.tsInAmbientContext(f) : f(), a;
5226
5226
  }, C.isClassElementNameStart = function() {
@@ -5237,7 +5237,7 @@ function An(e) {
5237
5237
  }, C.parseArrowExpression = function(e, t, n, r) {
5238
5238
  this.match(o.colon) && (e.returnType = this.tsParseTypeAnnotation());
5239
5239
  var i = this.yieldPos, a = this.awaitPos, s = this.awaitIdentPos;
5240
- this.enterScope(16 | En(n, !1)), this.initFunction(e);
5240
+ this.enterScope(16 | Tn(n, !1)), this.initFunction(e);
5241
5241
  var c = this.maybeInArrowParameters;
5242
5242
  return this.options.ecmaVersion >= 8 && (e.async = !!n), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.maybeInArrowParameters = !0, e.params = this.toAssignableList(t, !0), this.maybeInArrowParameters = !1, this.parseFunctionBody(e, !0, !1, r), this.yieldPos = i, this.awaitPos = a, this.awaitIdentPos = s, this.maybeInArrowParameters = c, this.finishNode(e, "ArrowFunctionExpression");
5243
5243
  }, C.parseMaybeAssignOrigin = function(e, t, n) {
@@ -5246,7 +5246,7 @@ function An(e) {
5246
5246
  this.exprAllowed = !1;
5247
5247
  }
5248
5248
  var r = !1, i = -1, a = -1, s = -1;
5249
- t ? (i = t.parenthesizedAssign, a = t.trailingComma, s = t.doubleProto, t.parenthesizedAssign = t.trailingComma = -1) : (t = new hn(), r = !0);
5249
+ t ? (i = t.parenthesizedAssign, a = t.trailingComma, s = t.doubleProto, t.parenthesizedAssign = t.trailingComma = -1) : (t = new mn(), r = !0);
5250
5250
  var c = this.start, l = this.startLoc;
5251
5251
  (this.type === o.parenL || v(this.type)) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = e === "await");
5252
5252
  var u = this.parseMaybeConditional(e, t);
@@ -5273,7 +5273,7 @@ function An(e) {
5273
5273
  return (a.type !== "ArrowFunctionExpression" || (i = a.extra) != null && i.parenthesized) && r(), f?.params.length !== 0 && p.resetStartLocationFromNode(a, f), a.typeParameters = f, a;
5274
5274
  }, l);
5275
5275
  if (!g.error && !g.aborted) return f && this.reportReservedArrowTypeParam(f), g.node;
5276
- if (!u && (Cn(!0), !(d = this.tryParse(function() {
5276
+ if (!u && (Sn(!0), !(d = this.tryParse(function() {
5277
5277
  return p.parseMaybeAssignOrigin(e, t, n);
5278
5278
  }, l)).error)) return d.node;
5279
5279
  if ((a = u) != null && a.node) return this.setLookaheadState(u.failState), u.node;
@@ -5294,20 +5294,20 @@ function An(e) {
5294
5294
  "override",
5295
5295
  "readonly"
5296
5296
  ]
5297
- }), n = s.accessibility, o = s.override, a = s.readonly, !1 === e && (n || a || o) && this.raise(i.start, H.UnexpectedParameterModifier);
5297
+ }), n = s.accessibility, o = s.override, a = s.readonly, !1 === e && (n || a || o) && this.raise(i.start, U.UnexpectedParameterModifier);
5298
5298
  }
5299
5299
  var c = this.parseMaybeDefault(r, i);
5300
5300
  this.parseBindingListItem(c);
5301
5301
  var l = this.parseMaybeDefault(c.start, c.loc, c);
5302
5302
  if (t.length && (l.decorators = t), n || a || o) {
5303
5303
  var u = this.startNodeAt(r, i);
5304
- return n && (u.accessibility = n), a && (u.readonly = a), o && (u.override = o), l.type !== "Identifier" && l.type !== "AssignmentPattern" && this.raise(u.start, H.UnsupportedParameterPropertyKind), u.parameter = l, this.finishNode(u, "TSParameterProperty");
5304
+ return n && (u.accessibility = n), a && (u.readonly = a), o && (u.override = o), l.type !== "Identifier" && l.type !== "AssignmentPattern" && this.raise(u.start, U.UnsupportedParameterPropertyKind), u.parameter = l, this.finishNode(u, "TSParameterProperty");
5305
5305
  }
5306
5306
  return l;
5307
5307
  }, C.checkLValInnerPattern = function(t, n, r) {
5308
5308
  n === void 0 && (n = 0), t.type === "TSParameterProperty" ? this.checkLValInnerPattern(t.parameter, n, r) : e.prototype.checkLValInnerPattern.call(this, t, n, r);
5309
5309
  }, C.parseBindingListItem = function(e) {
5310
- this.eat(o.question) && (e.type === "Identifier" || this.isAmbientContext || this.inType || this.raise(e.start, H.PatternIsOptional), e.optional = !0);
5310
+ this.eat(o.question) && (e.type === "Identifier" || this.isAmbientContext || this.inType || this.raise(e.start, U.PatternIsOptional), e.optional = !0);
5311
5311
  var t = this.tsTryParseTypeAnnotation();
5312
5312
  return t && (e.typeAnnotation = t), this.resetEndLocation(e), e;
5313
5313
  }, C.isAssignable = function(e, t) {
@@ -5338,12 +5338,12 @@ function An(e) {
5338
5338
  default: return !1;
5339
5339
  }
5340
5340
  }, C.toAssignable = function(t, n, r) {
5341
- switch (n === void 0 && (n = !1), r === void 0 && (r = new hn()), t.type) {
5341
+ switch (n === void 0 && (n = !1), r === void 0 && (r = new mn()), t.type) {
5342
5342
  case "ParenthesizedExpression": return this.toAssignableParenthesizedExpression(t, n, r);
5343
5343
  case "TSAsExpression":
5344
5344
  case "TSSatisfiesExpression":
5345
5345
  case "TSNonNullExpression":
5346
- case "TSTypeAssertion": return n || this.raise(t.start, H.UnexpectedTypeCastInParameter), this.toAssignable(t.expression, n, r);
5346
+ case "TSTypeAssertion": return n || this.raise(t.start, U.UnexpectedTypeCastInParameter), this.toAssignable(t.expression, n, r);
5347
5347
  case "MemberExpression": break;
5348
5348
  case "AssignmentExpression": return n || t.left.type !== "TSTypeCastExpression" || (t.left = this.typeCastToParameter(t.left)), e.prototype.toAssignable.call(this, t, n, r);
5349
5349
  case "TSTypeCastExpression": return this.typeCastToParameter(t);
@@ -5395,7 +5395,7 @@ function An(e) {
5395
5395
  if (this.options.ecmaVersion >= 6) {
5396
5396
  var s = this.maybeInArrowParameters;
5397
5397
  this.maybeInArrowParameters = !0, this.next();
5398
- var c, l = this.start, u = this.startLoc, d = [], f = !0, p = !1, m = new hn(), h = this.yieldPos, g = this.awaitPos;
5398
+ var c, l = this.start, u = this.startLoc, d = [], f = !0, p = !1, m = new mn(), h = this.yieldPos, g = this.awaitPos;
5399
5399
  for (this.yieldPos = 0, this.awaitPos = 0; this.type !== o.parenR;) {
5400
5400
  if (f ? f = !1 : this.expect(o.comma), a && this.afterTrailingComma(o.parenR, !0)) {
5401
5401
  p = !0;
@@ -5464,7 +5464,7 @@ function An(e) {
5464
5464
  return u.typeParameters = a, u;
5465
5465
  }
5466
5466
  if (!r && c.eat(o.parenL)) {
5467
- var p = new hn(), m = c.startNodeAt(t, n);
5467
+ var p = new mn(), m = c.startNodeAt(t, n);
5468
5468
  return m.callee = e, m.arguments = c.parseExprList(o.parenR, c.options.ecmaVersion >= 8, !1, p), c.tsCheckForInvalidTypeCasts(m.arguments), m.typeParameters = a, l && (m.optional = d), c.checkExpressionErrors(p, !0), e = c.finishNode(m, "CallExpression");
5469
5469
  }
5470
5470
  var h = c.type;
@@ -5473,7 +5473,7 @@ function An(e) {
5473
5473
  return _.expression = e, _.typeParameters = a, c.finishNode(_, "TSInstantiationExpression");
5474
5474
  }
5475
5475
  });
5476
- if (f && this.unexpected(f), p) return p.type === "TSInstantiationExpression" && (this.match(o.dot) || this.match(o.questionDot) && this.lookaheadCharCode() !== 40) && this.raise(this.start, H.InvalidPropertyAccessAfterInstantiationExpression), e = p;
5476
+ if (f && this.unexpected(f), p) return p.type === "TSInstantiationExpression" && (this.match(o.dot) || this.match(o.questionDot) && this.lookaheadCharCode() !== 40) && this.raise(this.start, U.InvalidPropertyAccessAfterInstantiationExpression), e = p;
5477
5477
  }
5478
5478
  var m = this.options.ecmaVersion >= 11, h = m && this.eat(o.questionDot);
5479
5479
  r && h && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
@@ -5484,7 +5484,7 @@ function An(e) {
5484
5484
  } else if (!r && this.eat(o.parenL)) {
5485
5485
  var te = this.maybeInArrowParameters;
5486
5486
  this.maybeInArrowParameters = !0;
5487
- var v = new hn(), ne = this.yieldPos, y = this.awaitPos, b = this.awaitIdentPos;
5487
+ var v = new mn(), ne = this.yieldPos, y = this.awaitPos, b = this.awaitIdentPos;
5488
5488
  this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
5489
5489
  var x = this.parseExprList(o.parenR, this.options.ecmaVersion >= 8, !1, v);
5490
5490
  if (i && !h && this.shouldParseAsyncArrow()) this.checkPatternErrors(v, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = ne, this.awaitPos = y, this.awaitIdentPos = b, e = this.parseSubscriptAsyncArrow(t, n, x, s);
@@ -5530,7 +5530,7 @@ function An(e) {
5530
5530
  for (this.expect(o.braceL); this.type !== o.braceR;) if (this.match(m.at)) c.push(this.parseDecorator());
5531
5531
  else {
5532
5532
  var l = this.parseClassElement(e.superClass !== null);
5533
- c.length && (l.decorators = c, this.resetStartLocationFromNode(l, c[0]), c = []), l && (a.body.push(l), l.type === "MethodDefinition" && l.kind === "constructor" && l.value.type === "FunctionExpression" ? (s && this.raiseRecoverable(l.start, "Duplicate constructor in the same class"), s = !0, l.decorators && l.decorators.length > 0 && this.raise(l.start, "Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?")) : l.key && l.key.type === "PrivateIdentifier" && gn(i, l) && this.raiseRecoverable(l.key.start, "Identifier '#" + l.key.name + "' has already been declared"));
5533
+ c.length && (l.decorators = c, this.resetStartLocationFromNode(l, c[0]), c = []), l && (a.body.push(l), l.type === "MethodDefinition" && l.kind === "constructor" && l.value.type === "FunctionExpression" ? (s && this.raiseRecoverable(l.start, "Duplicate constructor in the same class"), s = !0, l.decorators && l.decorators.length > 0 && this.raise(l.start, "Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?")) : l.key && l.key.type === "PrivateIdentifier" && hn(i, l) && this.raiseRecoverable(l.key.start, "Identifier '#" + l.key.name + "' has already been declared"));
5534
5534
  }
5535
5535
  return this.strict = r, this.next(), c.length && this.raise(this.start, "Decorators must be attached to a class element."), e.body = this.finishNode(a, "ClassBody"), this.exitClassBody(), this.finishNode(e, t ? "ClassDeclaration" : "ClassExpression");
5536
5536
  } finally {
@@ -5541,9 +5541,9 @@ function An(e) {
5541
5541
  return e && (t.typeParameters = e), t;
5542
5542
  }, C.parseMethod = function(e, t, n, r, i) {
5543
5543
  var a = this.startNode(), s = this.yieldPos, c = this.awaitPos, l = this.awaitIdentPos;
5544
- if (this.initFunction(a), this.options.ecmaVersion >= 6 && (a.generator = e), this.options.ecmaVersion >= 8 && (a.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(64 | En(t, a.generator) | (n ? 128 : 0)), this.expect(o.parenL), a.params = this.parseClassFunctionParams(), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(a, !1, !0, !1, { isClassMethod: r }), this.yieldPos = s, this.awaitPos = c, this.awaitIdentPos = l, i && i.abstract && a.body) {
5544
+ if (this.initFunction(a), this.options.ecmaVersion >= 6 && (a.generator = e), this.options.ecmaVersion >= 8 && (a.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(64 | Tn(t, a.generator) | (n ? 128 : 0)), this.expect(o.parenL), a.params = this.parseClassFunctionParams(), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(a, !1, !0, !1, { isClassMethod: r }), this.yieldPos = s, this.awaitPos = c, this.awaitIdentPos = l, i && i.abstract && a.body) {
5545
5545
  var u = i.key;
5546
- this.raise(i.start, H.AbstractMethodHasImplementation({ methodName: u.type !== "Identifier" || i.computed ? "[" + this.input.slice(u.start, u.end) + "]" : u.name }));
5546
+ this.raise(i.start, U.AbstractMethodHasImplementation({ methodName: u.type !== "Identifier" || i.computed ? "[" + this.input.slice(u.start, u.end) + "]" : u.name }));
5547
5547
  }
5548
5548
  return this.finishNode(a, "FunctionExpression");
5549
5549
  }, t.parse = function(e, t) {
@@ -5580,7 +5580,7 @@ function An(e) {
5580
5580
  ne(this.type) ? (c = !0, s = d, i = n ? this.parseIdent() : this.parseModuleExportName(), l = !1) : (i = f, l = !1);
5581
5581
  } else ne(this.type) ? (l = !1, i = n ? this.parseIdent() : this.parseModuleExportName()) : (c = !0, s = d);
5582
5582
  } else ne(this.type) && (c = !0, n ? (s = e.prototype.parseIdent.call(this, !0), this.isContextual("as") || this.checkUnreserved(s)) : s = this.parseModuleExportName());
5583
- c && r && this.raise(u, n ? H.TypeModifierIsUsedInTypeImports : H.TypeModifierIsUsedInTypeExports), t[a] = s, t[o] = i, t[n ? "importKind" : "exportKind"] = c ? "type" : "value", l && this.eatContextual("as") && (t[o] = n ? this.parseIdent() : this.parseModuleExportName()), t[o] || (t[o] = this.copyNode(t[a])), n && this.checkLValSimple(t[o], 2);
5583
+ c && r && this.raise(u, n ? U.TypeModifierIsUsedInTypeImports : U.TypeModifierIsUsedInTypeExports), t[a] = s, t[o] = i, t[n ? "importKind" : "exportKind"] = c ? "type" : "value", l && this.eatContextual("as") && (t[o] = n ? this.parseIdent() : this.parseModuleExportName()), t[o] || (t[o] = this.copyNode(t[a])), n && this.checkLValSimple(t[o], 2);
5584
5584
  }, C.raiseCommonCheck = function(t, n, r) {
5585
5585
  return n === "Comma is not permitted after the rest element" ? this.isAmbientContext && this.match(o.comma) && this.lookaheadCharCode() === 41 ? void this.next() : e.prototype.raise.call(this, t, n) : r ? e.prototype.raiseRecoverable.call(this, t, n) : e.prototype.raise.call(this, t, n);
5586
5586
  }, C.raiseRecoverable = function(e, t) {
@@ -5607,11 +5607,11 @@ function An(e) {
5607
5607
  for (r.attributes = []; this.type !== o.slash && this.type !== m.jsxTagEnd;) r.attributes.push(this.jsx_parseAttribute());
5608
5608
  return r.selfClosing = this.eat(o.slash), this.expect(m.jsxTagEnd), this.finishNode(r, i ? "JSXOpeningElement" : "JSXOpeningFragment");
5609
5609
  }, C.enterScope = function(t) {
5610
- t === pn && this.importsStack.push([]), e.prototype.enterScope.call(this, t);
5610
+ t === fn && this.importsStack.push([]), e.prototype.enterScope.call(this, t);
5611
5611
  var n = e.prototype.currentScope.call(this);
5612
5612
  n.types = [], n.enums = [], n.constEnums = [], n.classes = [], n.exportOnlyBindings = [];
5613
5613
  }, C.exitScope = function() {
5614
- e.prototype.currentScope.call(this).flags === pn && this.importsStack.pop(), e.prototype.exitScope.call(this);
5614
+ e.prototype.currentScope.call(this).flags === fn && this.importsStack.pop(), e.prototype.exitScope.call(this);
5615
5615
  }, C.hasImport = function(e, t) {
5616
5616
  var n = this.importsStack.length;
5617
5617
  if (this.importsStack[n - 1].indexOf(e) > -1) return !0;
@@ -5649,13 +5649,13 @@ function An(e) {
5649
5649
  get: function() {
5650
5650
  return i;
5651
5651
  }
5652
- }]) && an(u.prototype, x), S && an(u, S), Object.defineProperty(u, "prototype", { writable: !1 }), t;
5652
+ }]) && rn(u.prototype, x), S && rn(u, S), Object.defineProperty(u, "prototype", { writable: !1 }), t;
5653
5653
  }(t);
5654
5654
  };
5655
5655
  }
5656
5656
  //#endregion
5657
5657
  //#region src/utilities/index.ts
5658
- var jn = [
5658
+ var An = [
5659
5659
  {
5660
5660
  idPrefix: "dpuse-app",
5661
5661
  typeId: "app",
@@ -5740,8 +5740,8 @@ var jn = [
5740
5740
  publishedTo: "github",
5741
5741
  uploadGroupName: void 0
5742
5742
  }
5743
- ], Mn = r(i);
5744
- async function Nn(e, r) {
5743
+ ], jn = r(i);
5744
+ async function Mn(e, r) {
5745
5745
  e !== void 0 && J(`${e} - clear(${r})`);
5746
5746
  let i;
5747
5747
  try {
@@ -5762,15 +5762,15 @@ async function Nn(e, r) {
5762
5762
  }
5763
5763
  }));
5764
5764
  }
5765
- async function Pn(e, n) {
5765
+ async function Nn(e, n) {
5766
5766
  return t.readdir(e, n);
5767
5767
  }
5768
- async function Fn(e, n, r, i) {
5768
+ async function Pn(e, n, r, i) {
5769
5769
  e !== void 0 && J(`${e} - exec(${n} ${r.join(" ")})`);
5770
- let { stdout: a, stderr: o } = await Mn(n, r);
5770
+ let { stdout: a, stderr: o } = await jn(n, r);
5771
5771
  i === void 0 ? a.trim() && console.log(a.trim()) : await t.writeFile(i, a.trim(), "utf-8"), o.trim() && console.error(o.trim());
5772
5772
  }
5773
- async function U(e, t, n, r = !1, i = !1) {
5773
+ async function W(e, t, n, r = !1, i = !1) {
5774
5774
  return J(`${e} - spawn(${t} ${n.join(" ")})`), new Promise((e, o) => {
5775
5775
  a(t, n, {
5776
5776
  shell: i,
@@ -5780,7 +5780,7 @@ async function U(e, t, n, r = !1, i = !1) {
5780
5780
  });
5781
5781
  });
5782
5782
  }
5783
- async function In(e, n, r, i, o = !1) {
5783
+ async function Fn(e, n, r, i, o = !1) {
5784
5784
  return J(`${e} - spawn(${n} ${r.join(" ")}) > ${i}`), new Promise((e, s) => {
5785
5785
  let c = a(n, r, {
5786
5786
  shell: !1,
@@ -5803,10 +5803,10 @@ async function In(e, n, r, i, o = !1) {
5803
5803
  });
5804
5804
  });
5805
5805
  }
5806
- async function W(e) {
5806
+ async function G(e) {
5807
5807
  return JSON.parse(await t.readFile(e, "utf-8"));
5808
5808
  }
5809
- async function G(e) {
5809
+ async function In(e) {
5810
5810
  return await t.readFile(e, "utf-8");
5811
5811
  }
5812
5812
  async function Ln(e) {
@@ -5820,7 +5820,10 @@ async function Ln(e) {
5820
5820
  async function Rn(e, n) {
5821
5821
  await t.writeFile(e, JSON.stringify(n, void 0, 4), "utf-8");
5822
5822
  }
5823
- async function zn(e, n) {
5823
+ async function zn(e, t, n) {
5824
+ await Bn("README.md", Kn(await In("./README.md"), e, t, n));
5825
+ }
5826
+ async function Bn(e, n) {
5824
5827
  await t.writeFile(e, n, "utf-8");
5825
5828
  }
5826
5829
  function K(e) {
@@ -5833,21 +5836,31 @@ function q(e) {
5833
5836
  function J(e) {
5834
5837
  console.info(`\n${e}\n`);
5835
5838
  }
5836
- function Bn(e) {
5837
- let t = jn.find((t) => e.startsWith(t.idPrefix));
5839
+ function Vn(e) {
5840
+ let t = An.find((t) => e.startsWith(t.idPrefix));
5838
5841
  if (!t) throw Error(`Failed to locate module type configuration for identifier '${e}'.`);
5839
5842
  return t;
5840
5843
  }
5841
- async function Vn(e) {
5844
+ function Hn(e, t) {
5845
+ let n = e.repository, r = typeof n == "string" ? n : n?.url;
5846
+ if (r == null || r === "") throw Error(`package.json 'repository' field is required to ${t}.`);
5847
+ let i = r.replace(/^git\+/, "").replace(/\.git$/, ""), a = /github\.com[/:]([^/]+)\/([^/]+)$/.exec(i);
5848
+ if (a?.[1] == null || a[2] == null) throw Error(`Unable to parse GitHub owner/repo from '${r}'.`);
5849
+ return {
5850
+ owner: a[1],
5851
+ repo: a[2]
5852
+ };
5853
+ }
5854
+ async function Un(e) {
5842
5855
  return await t.stat(e);
5843
5856
  }
5844
- function Hn(e) {
5845
- let t = k.extend(An()).parse(e, {
5857
+ function Wn(e) {
5858
+ let t = k.extend(kn()).parse(e, {
5846
5859
  ecmaVersion: "latest",
5847
5860
  sourceType: "module",
5848
5861
  locations: !0
5849
5862
  }), n = [];
5850
- return Un(t, (e) => {
5863
+ return Gn(t, (e) => {
5851
5864
  if (e.type !== "MethodDefinition") return;
5852
5865
  let t = e, r = t.key;
5853
5866
  if (r.type !== "Identifier") return;
@@ -5855,7 +5868,7 @@ function Hn(e) {
5855
5868
  i && i !== "constructor" && t.accessibility !== "private" && n.push(i);
5856
5869
  }), n;
5857
5870
  }
5858
- function Un(e, t) {
5871
+ function Gn(e, t) {
5859
5872
  t(e);
5860
5873
  for (let [n, r] of Object.entries(e)) {
5861
5874
  if ([
@@ -5868,12 +5881,12 @@ function Un(e, t) {
5868
5881
  let e = r;
5869
5882
  if (Array.isArray(e)) for (let n of e) {
5870
5883
  let e = n;
5871
- e && typeof e.type == "string" && Un(e, t);
5884
+ e && typeof e.type == "string" && Gn(e, t);
5872
5885
  }
5873
- else e && typeof e == "object" && typeof e.type == "string" && Un(e, t);
5886
+ else e && typeof e == "object" && typeof e.type == "string" && Gn(e, t);
5874
5887
  }
5875
5888
  }
5876
- function Wn(e, t, n, r) {
5889
+ function Kn(e, t, n, r) {
5877
5890
  let i = e.indexOf(n), a = e.indexOf(r);
5878
5891
  if (i === -1 || a === -1) throw Error(`Markers ${n}-${r} not found in content.`);
5879
5892
  let o = t.trim();
@@ -5881,28 +5894,28 @@ function Wn(e, t, n, r) {
5881
5894
  }
5882
5895
  //#endregion
5883
5896
  //#region src/actions/auditDependencies.ts
5884
- async function Gn() {
5897
+ async function qn() {
5885
5898
  try {
5886
- K("Audit Dependencies"), await U("1️⃣ Check using 'npm audit'", "npm", ["audit"]), q("Dependencies audited");
5899
+ K("Audit Dependencies"), await W("1️⃣ Check using 'npm audit'", "npm", ["audit"]), q("Dependencies audited");
5887
5900
  } catch (e) {
5888
5901
  console.error("❌ Error auditing dependencies", e), process.exit(1);
5889
5902
  }
5890
5903
  }
5891
5904
  //#endregion
5892
5905
  //#region src/actions/checkConfigFiles.ts
5893
- async function Kn() {
5906
+ async function Jn() {
5894
5907
  try {
5895
5908
  K("Check configuration files"), J("1️⃣ Check individual files");
5896
- let e = Bn((await W("config.json")).id), t = n.dirname(o(import.meta.url));
5897
- await Y(t, ".editorconfig"), await qn(e, t), await Y(t, ".gitignore", [".gitignore_default"]), await Y(t, ".markdownlint.json"), await Y(t, ".ncurc.json"), await Jn(e, t), await Y(t, "LICENSE"), await Yn(e, t), await Xn(e, t), await Zn(e, t), await Qn(e, t), q("Configuration files checked");
5909
+ let e = Vn((await G("config.json")).id), t = n.dirname(o(import.meta.url));
5910
+ await Y(t, ".editorconfig"), await Yn(e, t), await Y(t, ".gitignore", [".gitignore_default"]), await Y(t, ".markdownlint.json"), await Y(t, ".ncurc.json"), await Xn(e, t), await Y(t, "LICENSE"), await Zn(e, t), await Qn(e, t), await $n(e, t), await er(e, t), q("Configuration files checked");
5898
5911
  } catch (e) {
5899
5912
  console.error("❌ Error checking configuration files", e), process.exit(1);
5900
5913
  }
5901
5914
  }
5902
- async function qn(e, t) {
5915
+ async function Yn(e, t) {
5903
5916
  ["development"].includes(e.typeId) ? console.info("ℹ️ File '.gitattributes' is UNIQUE to this project") : await Y(t, ".gitattributes", [".gitattributes_default"]);
5904
5917
  }
5905
- async function Jn(e, t) {
5918
+ async function Xn(e, t) {
5906
5919
  ["github", "kb"].includes(e.typeId) ? console.info("ℹ️ File 'eslint.config.js' is NOT required by this project") : [
5907
5920
  "app",
5908
5921
  "api",
@@ -5910,7 +5923,7 @@ async function Jn(e, t) {
5910
5923
  "eslint"
5911
5924
  ].includes(e.typeId) ? console.info("ℹ️ File 'eslint.config.js' is UNIQUE to this project") : await Y(t, "eslint.config.js", ["eslint.config.default.js"]);
5912
5925
  }
5913
- async function Yn(e, t) {
5926
+ async function Zn(e, t) {
5914
5927
  ["github"].includes(e.typeId) ? console.info("ℹ️ File 'tsconfig.json' is NOT required by this project") : [
5915
5928
  "connector",
5916
5929
  "engine",
@@ -5918,10 +5931,10 @@ async function Yn(e, t) {
5918
5931
  "tool"
5919
5932
  ].includes(e.typeId) ? await Y(t, "tsconfig.json", ["tsconfig.default.json"]) : console.info("ℹ️ File 'tsconfig.json' is UNIQUE to this project");
5920
5933
  }
5921
- async function Xn(e, t) {
5934
+ async function Qn(e, t) {
5922
5935
  ["github"].includes(e.typeId) ? console.info("ℹ️ File 'tsconfig.scripts.json' is NOT required by this project") : await Y(t, "tsconfig.scripts.json");
5923
5936
  }
5924
- async function Zn(e, t) {
5937
+ async function $n(e, t) {
5925
5938
  if ([
5926
5939
  "eslint",
5927
5940
  "github",
@@ -5939,7 +5952,7 @@ async function Zn(e, t) {
5939
5952
  n = e.typeId === "connector" ? ["vite.config.default.ts", "vite.config.wasm.ts"] : e.typeId === "tool" ? ["vite.config.tool.ts"] : ["vite.config.default.ts"], await Y(t, "vite.config.ts", n);
5940
5953
  }
5941
5954
  }
5942
- async function Qn(e, t) {
5955
+ async function er(e, t) {
5943
5956
  [
5944
5957
  "app",
5945
5958
  "api",
@@ -5951,12 +5964,12 @@ async function Qn(e, t) {
5951
5964
  async function Y(e, t, r = []) {
5952
5965
  let i = n.resolve(process.cwd(), t), a = r.length > 0 ? r : [t], o;
5953
5966
  try {
5954
- o = await G(i);
5967
+ o = await In(i);
5955
5968
  } catch (e) {
5956
5969
  if (e.code !== "ENOENT") throw e;
5957
5970
  }
5958
5971
  for (let r of a) {
5959
- let i = await G(n.resolve(e, `../${r}`));
5972
+ let i = await In(n.resolve(e, `../${r}`));
5960
5973
  if (o === i) {
5961
5974
  console.info(`ℹ️ File '${t.split("_", 1)[0] ?? t}' is the same as '${r}'`);
5962
5975
  return;
@@ -5966,12 +5979,12 @@ async function Y(e, t, r = []) {
5966
5979
  }
5967
5980
  //#endregion
5968
5981
  //#region src/actions/checkDependencies.ts
5969
- async function $n() {
5982
+ async function tr() {
5970
5983
  try {
5971
- K("Check Dependencies"), await U("1️⃣ Check using 'npm outdated'", "npm", ["outdated"], !0), J("2️⃣ Check using 'npm-check-updates'");
5984
+ K("Check Dependencies"), await W("1️⃣ Check using 'npm outdated'", "npm", ["outdated"], !0), J("2️⃣ Check using 'npm-check-updates'");
5972
5985
  let e = {};
5973
5986
  try {
5974
- e = await W(n.resolve(process.cwd(), ".ncurc.json"));
5987
+ e = await G(n.resolve(process.cwd(), ".ncurc.json"));
5975
5988
  } catch (e) {
5976
5989
  if (e.code !== "ENOENT") throw e;
5977
5990
  }
@@ -5981,103 +5994,104 @@ async function $n() {
5981
5994
  dep: "dev,prod,peer,optional",
5982
5995
  install: "never",
5983
5996
  ...e
5984
- }), await U("3️⃣ Install updated dependencies", "npm", [
5997
+ }), await W("3️⃣ Install updated dependencies", "npm", [
5985
5998
  "install",
5986
5999
  "--prefer-online",
5987
6000
  "--no-strict-allow-scripts"
5988
6001
  ]);
5989
- let t = await er();
5990
- t.length > 0 ? await U("4️⃣ Move install-script pins to installed versions", "npm", [
6002
+ let t = await nr();
6003
+ t.length > 0 ? await W("4️⃣ Move install-script pins to installed versions", "npm", [
5991
6004
  "install-scripts",
5992
6005
  "approve",
5993
6006
  ...t
5994
- ]) : J("4️⃣ No pinned install-script approvals to move"), process.platform === "darwin" ? await U("5️⃣ Remove unused install-script entries", "npm", ["install-scripts", "prune"]) : J("5️⃣ Skipped removing unused install-script entries (macOS only)"), t.length > 0 && await U("6️⃣ Run install scripts skipped in step 3", "npm", [
6007
+ ]) : J("4️⃣ No pinned install-script approvals to move"), process.platform === "darwin" ? await W("5️⃣ Remove unused install-script entries", "npm", ["install-scripts", "prune"]) : J("5️⃣ Skipped removing unused install-script entries (macOS only)"), t.length > 0 && await W("6️⃣ Run install scripts skipped in step 3", "npm", [
5995
6008
  "rebuild",
5996
6009
  ...t,
5997
6010
  "--no-strict-allow-scripts"
5998
- ]), await U("7️⃣ Confirm every install script is reviewed", "npm", ["install", "--strict-allow-scripts"]), q("Dependencies checked");
6011
+ ]), await W("7️⃣ Confirm every install script is reviewed", "npm", ["install", "--strict-allow-scripts"]), q("Dependencies checked");
5999
6012
  } catch (e) {
6000
6013
  console.error("❌ Error checking dependencies", e), process.exit(1);
6001
6014
  }
6002
6015
  }
6003
- async function er() {
6004
- let { allowScripts: e = {} } = await W(n.resolve(process.cwd(), "package.json")), t = Object.entries(e).filter(([e, t]) => t && e.lastIndexOf("@") > 0).map(([e]) => e.slice(0, e.lastIndexOf("@")));
6016
+ async function nr() {
6017
+ let { allowScripts: e = {} } = await G(n.resolve(process.cwd(), "package.json")), t = Object.entries(e).filter(([e, t]) => t && e.lastIndexOf("@") > 0).map(([e]) => e.slice(0, e.lastIndexOf("@")));
6005
6018
  return [...new Set(t)];
6006
6019
  }
6007
6020
  //#endregion
6008
6021
  //#region src/actions/documentBundleSizes.ts
6009
- var tr = "<!-- BUNDLE_START -->", nr = "<!-- BUNDLE_END -->", rr = "&nbsp;&nbsp;&nbsp;&nbsp;", ir = 20, ar = "The Bundle Analysis Report is generated automatically on each release using [Sonda](https://sonda.dev/), which analyses final source maps to reveal the actual effects of tree-shaking and minification rather than relying on pre-build estimates.\n\n_Note: Sonda's Vite reports currently exclude CSS files, since Vite does not generate source maps for CSS._";
6010
- async function or(e) {
6022
+ var rr = "<!-- BUNDLE_START -->", ir = "<!-- BUNDLE_END -->", ar = "&nbsp;&nbsp;&nbsp;&nbsp;", or = 20, sr = "The Bundle Analysis Report is generated automatically on each release using [Sonda](https://sonda.dev/), which analyses final source maps to reveal the actual effects of tree-shaking and minification rather than relying on pre-build estimates.\n\n_Note: Sonda's Vite reports currently exclude CSS files, since Vite does not generate source maps for CSS._", cr = "(bundler output, whitespace & JSON)", lr = `${cr} = bytes Sonda can't trace to a source file: whitespace (indentation and line breaks), code the bundler generates (region comments, the combined import/export lines, its small runtime helper and wrappers), and imported JSON such as \`config.json\`, which the bundler doesn't map. The JSON and the generated code are real bytes that ship; the whitespace mostly disappears once compressed.`;
6023
+ async function ur(e) {
6011
6024
  try {
6012
6025
  K("Document Bundle Sizes"), J("1️⃣ Read bundle analysis report");
6013
- let t = await W("./bundle-analysis-reports/sonda/index.json");
6014
- J("2️⃣ Insert table into 'README.md'");
6015
- let n = sr(t, e?.moduleLevel ?? !1);
6016
- await zn("README.md", Wn(await G("./README.md"), `\n${ar}\n\n${n}\n\n(unassigned) = bytes Sonda can't trace to a specific source line (whitespace, stray keywords, bundler-injected region markers) — not actual missing/unknown code.`, tr, nr)), q("Bundle sizes documented");
6026
+ let t = await G("./bundle-analysis-reports/sonda/index.json");
6027
+ J("2️⃣ Insert table into 'README.md'"), await zn(`## Bundle Analysis\n\n${sr}\n\n${dr(t, e?.moduleLevel ?? !1)}\n\n${lr}`, rr, ir), q("Bundle sizes documented");
6017
6028
  } catch (e) {
6018
6029
  console.error("❌ Error documenting bundle sizes", e), process.exit(1);
6019
6030
  }
6020
6031
  }
6021
- function sr(e, t) {
6022
- let n = pr(e), r = n.values().flatMap((e) => e.values().toArray()).reduce((e, t) => e + t.sizes.uncompressed, 0), i = e.resources.filter((e) => e.kind === "asset").map((e) => [e.name, _r(e)]).toSorted((e, t) => t[1].uncompressed - e[1].uncompressed), a = ["|Chunk/Module/File|Composition|", "|:------ |:-----------|"];
6032
+ function dr(e, t) {
6033
+ let n = vr(e), r = n.values().flatMap((e) => e.values().toArray()).reduce((e, t) => e + t.sizes.uncompressed, 0), i = e.resources.filter((e) => e.kind === "asset").map((e) => [e.name, Sr(e)]).toSorted((e, t) => t[1].uncompressed - e[1].uncompressed), a = ["|Chunk/Module/File|Composition|", "|:------ |:-----------|"];
6023
6034
  for (let [e, o] of i) {
6024
- let i = [...n.get(e) ?? /* @__PURE__ */ new Map()].toSorted((e, t) => t[1].sizes.uncompressed - e[1].sizes.uncompressed), s = i.length === 1 ? cr(e, o, dr(i), r, t) : lr(e, o, i, r, t);
6035
+ let i = [...n.get(e) ?? /* @__PURE__ */ new Map()].toSorted((e, t) => t[1].sizes.uncompressed - e[1].sizes.uncompressed), s = i.length === 1 ? fr(e, o, gr(i), r, t) : pr(e, o, i, r, t);
6025
6036
  a.push(...s);
6026
6037
  }
6027
6038
  return a.join("\n");
6028
6039
  }
6029
- function cr(e, t, n, r, i) {
6040
+ function fr(e, t, n, r, i) {
6030
6041
  let [a, { sizes: o, files: s }] = n, c = r > 0 ? o.uncompressed / r * 100 : 0;
6031
- if (s.size === 1) return [`| ${e} → ${a} → ${fr(s)} | ${vr(t)} · ${yr(c)} |`];
6032
- let l = [`| ${e} → ${a} | ${vr(t)} · ${yr(c)} |`];
6033
- return i || l.push(...ur(s, rr, r)), l;
6042
+ if (s.size === 1) return [`| ${e} → ${hr(a, _r(s))} | ${Cr(t)} · ${wr(c)} |`];
6043
+ let l = [`| ${e} → ${a} | ${Cr(t)} · ${wr(c)} |`];
6044
+ return i || l.push(...mr(s, ar, r)), l;
6034
6045
  }
6035
- function lr(e, t, n, r, i) {
6036
- let a = [`| ${e} | ${vr(t)} |`];
6046
+ function pr(e, t, n, r, i) {
6047
+ let a = [`| ${e} | ${Cr(t)} |`];
6037
6048
  for (let [e, { sizes: t, files: o }] of n) {
6038
6049
  let n = r > 0 ? t.uncompressed / r * 100 : 0;
6039
6050
  if (o.size === 1) {
6040
- let t = fr(o);
6041
- a.push(`| ${rr}${e} → ${t} | ${yr(n)} |`);
6051
+ let t = _r(o);
6052
+ a.push(`| ${ar}${hr(e, t)} | ${wr(n)} |`);
6042
6053
  continue;
6043
6054
  }
6044
- a.push(`| ${rr}${e} | ${yr(n)} |`), i || a.push(...ur(o, `${rr}${rr}`, r));
6055
+ a.push(`| ${ar}${e} | ${wr(n)} |`), i || a.push(...mr(o, `${ar}${ar}`, r));
6045
6056
  }
6046
6057
  return a;
6047
6058
  }
6048
- function ur(e, t, n) {
6049
- return [...e].toSorted((e, t) => t[1].uncompressed - e[1].uncompressed).map(([e, r]) => `| ${t}${e} | ${yr(n > 0 ? r.uncompressed / n * 100 : 0)} |`);
6059
+ function mr(e, t, n) {
6060
+ return [...e].toSorted((e, t) => t[1].uncompressed - e[1].uncompressed).map(([e, r]) => `| ${t}${e} | ${wr(n > 0 ? r.uncompressed / n * 100 : 0)} |`);
6050
6061
  }
6051
- function dr(e) {
6062
+ function hr(e, t) {
6063
+ return t === "" ? e : `${e} → ${t}`;
6064
+ }
6065
+ function gr(e) {
6052
6066
  let [t] = e;
6053
6067
  if (t === void 0) throw Error("Expected exactly one entry");
6054
6068
  return t;
6055
6069
  }
6056
- function fr(e) {
6070
+ function _r(e) {
6057
6071
  let [t] = e.keys();
6058
6072
  if (t === void 0) throw Error("Expected exactly one file");
6059
6073
  return t;
6060
6074
  }
6061
- function pr(e) {
6062
- let t = mr(e.dependencies), n = /* @__PURE__ */ new Map();
6075
+ function vr(e) {
6076
+ let t = yr(e.dependencies), n = /* @__PURE__ */ new Map();
6063
6077
  for (let r of e.resources) {
6064
6078
  if (r.kind !== "chunk" || !r.parent) continue;
6065
- let { group: e, file: i } = hr(r.name, t), a = _r(r), o = n.get(r.parent) ?? /* @__PURE__ */ new Map();
6079
+ let { group: e, file: i } = br(r.name, t), a = Sr(r), o = n.get(r.parent) ?? /* @__PURE__ */ new Map();
6066
6080
  n.set(r.parent, o);
6067
6081
  let s = o.get(e) ?? {
6068
- sizes: br(),
6082
+ sizes: Tr(),
6069
6083
  files: /* @__PURE__ */ new Map()
6070
6084
  };
6071
- o.set(e, s), xr(s.sizes, a);
6072
- let c = s.files.get(i) ?? br();
6073
- s.files.set(i, c), xr(c, a);
6085
+ o.set(e, s), Er(s.sizes, a);
6086
+ let c = s.files.get(i) ?? Tr();
6087
+ s.files.set(i, c), Er(c, a);
6074
6088
  }
6075
6089
  return n;
6076
6090
  }
6077
- function mr(e) {
6091
+ function yr(e) {
6078
6092
  return e.flatMap((e) => e.paths.map((t) => [t, e.name])).toSorted((e, t) => t[0].length - e[0].length);
6079
6093
  }
6080
- function hr(e, t) {
6094
+ function br(e, t) {
6081
6095
  let n = t.find(([t]) => e === t || e.startsWith(`${t}/`));
6082
6096
  if (n) {
6083
6097
  let [t, r] = n;
@@ -6087,59 +6101,56 @@ function hr(e, t) {
6087
6101
  };
6088
6102
  }
6089
6103
  return e === "[unassigned]" ? {
6090
- group: "(unassigned)",
6091
- file: e
6104
+ group: cr,
6105
+ file: ""
6092
6106
  } : e.startsWith("\0") ? {
6093
6107
  group: "(runtime)",
6094
6108
  file: e.slice(1)
6095
- } : e.startsWith("rust/") || e.includes("vite-plugin-wasm") ? {
6096
- group: "wasm",
6097
- file: gr(e)
6098
6109
  } : {
6099
- group: "src",
6100
- file: gr(e)
6110
+ group: e.startsWith("rust/") || e.includes("vite-plugin-wasm") ? "wasm" : "src",
6111
+ file: xr(e)
6101
6112
  };
6102
6113
  }
6103
- function gr(e) {
6114
+ function xr(e) {
6104
6115
  return e.split("/").at(-1) ?? e;
6105
6116
  }
6106
- function _r(e) {
6117
+ function Sr(e) {
6107
6118
  return {
6108
6119
  uncompressed: e.uncompressed,
6109
- brotli: e.brotli ?? 0
6120
+ gzip: e.gzip ?? 0
6110
6121
  };
6111
6122
  }
6112
- function vr(e) {
6113
- return `${Sr(e.uncompressed)} · brotli ${Sr(e.brotli)}`;
6123
+ function Cr(e) {
6124
+ return `${Dr(e.uncompressed)} · gzip ${Dr(e.gzip)}`;
6114
6125
  }
6115
- function yr(e) {
6116
- let t = Math.round(e / 100 * ir);
6117
- return `\`${"█".repeat(t)}${"░".repeat(ir - t)}\` ${e.toFixed(1)}%`;
6126
+ function wr(e) {
6127
+ let t = Math.round(e / 100 * or);
6128
+ return `\`${"█".repeat(t)}${"░".repeat(or - t)}\` ${e.toFixed(1)}%`;
6118
6129
  }
6119
- function br() {
6130
+ function Tr() {
6120
6131
  return {
6121
6132
  uncompressed: 0,
6122
- brotli: 0
6133
+ gzip: 0
6123
6134
  };
6124
6135
  }
6125
- function xr(e, t) {
6126
- e.uncompressed += t.uncompressed, e.brotli += t.brotli;
6136
+ function Er(e, t) {
6137
+ e.uncompressed += t.uncompressed, e.gzip += t.gzip;
6127
6138
  }
6128
- function Sr(e) {
6139
+ function Dr(e) {
6129
6140
  return e < 1024 ? `${String(e)} B` : `${(e / 1024).toFixed(1)} kB`;
6130
6141
  }
6131
6142
  //#endregion
6132
6143
  //#region src/actions/documentDependencies.ts
6133
- var Cr = "<!-- DEPENDENCY_LICENSES_START -->", wr = "<!-- DEPENDENCY_LICENSES_END -->", Tr = "<!-- DEPENDENCY_TREE_START -->", Er = "<!-- DEPENDENCY_TREE_END -->", Dr = "The dependency tree below lists every package in this project — direct and transitive — along with its installed version, release date, and update status. Packages flagged ❗ have a newer version available; ⚠️ indicates a package that hasn't been updated in the last 6 months or longer. Neither flag necessarily indicates a problem: we let new releases stabilise before upgrading, and some packages are mature and stable (have limited or no dependencies), so they require no active development.";
6134
- async function Or(e = "MIT") {
6144
+ var Or = "<!-- DEPENDENCY_LICENSES_START -->", kr = "<!-- DEPENDENCY_LICENSES_END -->", Ar = "## Dependency Licenses", jr = "The dependency tree below lists every package in this project — direct and transitive — along with its installed version, release date, and update status. Packages flagged ❗ have a newer version available; ⚠️ indicates a package that hasn't been updated in the last 6 months or longer. Neither flag necessarily indicates a problem: we let new releases stabilise before upgrading, and some packages are mature and stable (have limited or no dependencies), so they require no active development.";
6145
+ async function Mr(e = "MIT") {
6135
6146
  try {
6136
6147
  K("Document Dependencies");
6137
- let t = await W("package.json");
6148
+ let t = await G("package.json");
6138
6149
  if (t.name === "@dpuse/dpuse-development" || t.name === "@dpuse/eslint-config-dpuse") {
6139
- await kr(t.name), q("Dependencies documented");
6150
+ await Nr(t.name), q("Dependencies documented");
6140
6151
  return;
6141
6152
  }
6142
- await Nn("1️⃣ Clear downloaded licenses", "licenses/downloads"), J("2️⃣ Identify production licenses"), await new Promise((n, r) => {
6153
+ await Mn("1️⃣ Clear downloaded licenses", "licenses/downloads"), J("2️⃣ Identify production licenses"), await new Promise((n, r) => {
6143
6154
  let i = {
6144
6155
  start: process.cwd(),
6145
6156
  production: !0,
@@ -6154,43 +6165,41 @@ async function Or(e = "MIT") {
6154
6165
  c(i, (e) => {
6155
6166
  e == null ? n() : r(e);
6156
6167
  });
6157
- }), await In("3️⃣ Identify transitive dependencies", "npm", [
6168
+ }), await Fn("3️⃣ Identify transitive dependencies", "npm", [
6158
6169
  "ls",
6159
6170
  "--all",
6160
6171
  "--json",
6161
6172
  "--omit=dev"
6162
- ], "licenses/licenseTree.json"), await Ar("4️⃣ ", e), q("Dependencies documented");
6173
+ ], "licenses/licenseTree.json"), await Pr("4️⃣ ", e), q("Dependencies documented");
6163
6174
  } catch (e) {
6164
6175
  console.error("❌ Error documenting dependencies", e), process.exit(1);
6165
6176
  }
6166
6177
  }
6167
- async function kr(e) {
6168
- J(`1️⃣ Skip: ${e} is a development-only tool and is never part of a production release.`);
6169
- let t = `> [!WARNING]\n> Dependency licenses are not documented here: ${e} is a development-only tool and is never part of a production release.`;
6170
- await zn("README.md", Wn(Wn(await G("./README.md"), t, Cr, wr), "", Tr, Er));
6178
+ async function Nr(e) {
6179
+ J(`1️⃣ Skip: ${e} is a development-only tool and is never part of a production release.`), await zn(`${Ar}\n\n${`> [!WARNING]\n> Dependency licenses are not documented here: ${e} is a development-only tool and is never part of a production release.`}`, Or, kr);
6171
6180
  }
6172
- async function Ar(e, t) {
6181
+ async function Pr(e, t) {
6173
6182
  J(`${e} Insert licenses into 'README.md'`);
6174
- let [n, r] = await Promise.all([W("licenses/licenses.json"), W("licenses/licenseTree.json")]), i = /* @__PURE__ */ new Map();
6175
- for (let [e, t] of Object.entries(n)) i.set(e, Nr(e, t));
6183
+ let [n, r] = await Promise.all([G("licenses/licenses.json"), G("licenses/licenseTree.json")]), i = /* @__PURE__ */ new Map();
6184
+ for (let [e, t] of Object.entries(n)) i.set(e, Lr(e, t));
6176
6185
  await Promise.all(i.values().map(async (e) => {
6177
- let t = await Pr(e.name, e.installedVersion);
6186
+ let t = await Rr(e.name, e.installedVersion);
6178
6187
  e.latestVersion = t.latestVersion, e.latestPublishedDate = t.latestPublishedDate, e.publishedDate = t.publishedDate;
6179
6188
  }));
6180
- let a = `${jr(t)}\n\n|Dependency|Version|License(s)|Document|\n|:-|:-:|:-|:-|\n`;
6181
- for (let e of i.values()) a += Fr(e);
6189
+ let a = `${Fr(t)}\n\n|Dependency|Version|License(s)|Document|\n|:-|:-:|:-|:-|\n`;
6190
+ for (let e of i.values()) a += zr(e);
6182
6191
  let o = [];
6183
- r.dependencies != null && Ir(r.dependencies, i, o, 0);
6184
- let s = `${Dr}\n\n${o.join("\n")}`;
6185
- await zn("README.md", Wn(Wn(await G("./README.md"), a, Cr, wr), s, Tr, Er));
6192
+ r.dependencies != null && Br(r.dependencies, i, o, 0);
6193
+ let s = `${jr}\n\n${o.join("\n")}`;
6194
+ await zn(`${Ar}\n\n${a.trimEnd()}\n\n### Dependency Tree\n\n${s}`, Or, kr);
6186
6195
  }
6187
- function jr(e) {
6188
- return `License data is collected automatically on each release using [license-checker](https://github.com/RSeidelsohn/license-checker-rseidelsohn). The following table lists all production dependencies. These dependencies (including transitive ones) have been checked and confirmed to use ${Mr(e.split(";"))} — all permissive, commercially-friendly licenses. Users of the uploaded library are covered by these checks; developers cloning this repository should independently verify development dependencies.`;
6196
+ function Fr(e) {
6197
+ return `License data is collected automatically on each release using [license-checker](https://github.com/RSeidelsohn/license-checker-rseidelsohn). The following table lists all production dependencies. These dependencies (including transitive ones) have been checked and confirmed to use ${Ir(e.split(";"))} — all permissive, commercially-friendly licenses. Users of the uploaded library are covered by these checks; developers cloning this repository should independently verify development dependencies.`;
6189
6198
  }
6190
- function Mr(e) {
6199
+ function Ir(e) {
6191
6200
  return e.length === 1 ? e[0] ?? "" : e.length === 2 ? `${String(e[0])} or ${String(e[1])}` : `${e.slice(0, -1).join(", ")}, or ${String(e.at(-1))}`;
6192
6201
  }
6193
- function Nr(e, t) {
6202
+ function Lr(e, t) {
6194
6203
  let n = e.lastIndexOf("@"), r = n > 0 ? e.slice(0, n) : e, i = n > 0 ? e.slice(n + 1) : "";
6195
6204
  return {
6196
6205
  name: r,
@@ -6204,7 +6213,7 @@ function Nr(e, t) {
6204
6213
  ...t.licenseFile != null && { licenseFileLink: t.licenseFile }
6205
6214
  };
6206
6215
  }
6207
- async function Pr(e, t) {
6216
+ async function Rr(e, t) {
6208
6217
  try {
6209
6218
  let n = await fetch(`https://registry.npmjs.org/${encodeURIComponent(e)}`);
6210
6219
  if (n.ok) {
@@ -6222,25 +6231,25 @@ async function Pr(e, t) {
6222
6231
  publishedDate: ""
6223
6232
  };
6224
6233
  }
6225
- function Fr(e) {
6234
+ function zr(e) {
6226
6235
  let t = e.licenseFileLink == null || e.licenseFileLink === "" ? "⚠️ No license file" : `[LICENSE](licenses/${e.licenseFileLink})`;
6227
6236
  return `|[${e.name}](${e.repository})|${e.installedVersion}|${e.licenseTypes}|${t}|\n`;
6228
6237
  }
6229
- function Ir(e, t, n, r) {
6238
+ function Br(e, t, n, r) {
6230
6239
  let i = " ".repeat(r);
6231
6240
  for (let [a, o] of Object.entries(e)) {
6232
- let e = o.version ?? "", s = t.get(`${a}@${e}`), c = s == null ? a : `[${a}](${s.repository})`, l = Lr(s);
6233
- n.push(`${i}- **${c}** ${e}${l}`), o.dependencies != null && Ir(o.dependencies, t, n, r + 1);
6241
+ let e = o.version ?? "", s = t.get(`${a}@${e}`), c = s == null ? a : `[${a}](${s.repository})`, l = Vr(s);
6242
+ n.push(`${i}- **${c}** ${e}${l}`), o.dependencies != null && Br(o.dependencies, t, n, r + 1);
6234
6243
  }
6235
6244
  }
6236
- function Lr(e) {
6245
+ function Vr(e) {
6237
6246
  if (e == null) return "";
6238
- let t = e.publishedDate ? Rr(e.publishedDate.split("T", 1)[0]) : "";
6247
+ let t = e.publishedDate ? Hr(e.publishedDate.split("T", 1)[0]) : "";
6239
6248
  if (e.latestVersion === "" || e.latestVersion === e.installedVersion) return t === "" ? "" : ` — ${t}`;
6240
- let n = e.latestPublishedDate ? Rr(e.latestPublishedDate.split("T", 1)[0]) : "", r = n === "" ? `**latest**: ${e.latestVersion} ❗` : `**latest**: ${e.latestVersion} — ${n} ❗`;
6249
+ let n = e.latestPublishedDate ? Hr(e.latestPublishedDate.split("T", 1)[0]) : "", r = n === "" ? `**latest**: ${e.latestVersion} ❗` : `**latest**: ${e.latestVersion} — ${n} ❗`;
6241
6250
  return t === "" ? ` — → ${r}` : ` — ${t} → ${r}`;
6242
6251
  }
6243
- function Rr(e) {
6252
+ function Hr(e) {
6244
6253
  if (e == null || e === "") return "n/a";
6245
6254
  let t = e.split("T", 1)[0];
6246
6255
  if (t == null || t === "") return "n/a";
@@ -6249,38 +6258,29 @@ function Rr(e) {
6249
6258
  }
6250
6259
  //#endregion
6251
6260
  //#region src/actions/documentGovernance.ts
6252
- var zr = "<!-- GOVERNANCE_START -->", Br = "<!-- GOVERNANCE_END -->";
6253
- async function Vr() {
6261
+ var Ur = "<!-- GOVERNANCE_START -->", Wr = "<!-- GOVERNANCE_END -->";
6262
+ async function Gr() {
6254
6263
  try {
6255
6264
  K("Document Governance"), J("1️⃣ Insert governance content into 'README.md'");
6256
- let [e, t] = await Promise.all([W("package.json"), W("config.json")]), { owner: n, repo: r } = Hr(e), i = Gr(n, r, Ur(e), Wr(t.firstCreatedAt));
6257
- await zn("README.md", Wn(await G("./README.md"), i, zr, Br)), q("Governance documented");
6265
+ let [e, t] = await Promise.all([G("package.json"), G("config.json")]), { owner: n, repo: r } = Hn(e, "document governance");
6266
+ await zn(Jr(n, r, Kr(e), qr(t.firstCreatedAt)), Ur, Wr), q("Governance documented");
6258
6267
  } catch (e) {
6259
6268
  console.error("❌ Error documenting governance", e), process.exit(1);
6260
6269
  }
6261
6270
  }
6262
- function Hr(e) {
6263
- let t = e.repository, n = typeof t == "string" ? t : t?.url;
6264
- if (n == null || n === "") throw Error("package.json 'repository' field is required to document governance.");
6265
- let r = n.replace(/^git\+/, "").replace(/\.git$/, ""), i = /github\.com[/:]([^/]+)\/([^/]+)$/.exec(r);
6266
- if (i?.[1] == null || i[2] == null) throw Error(`Unable to parse GitHub owner/repo from '${n}'.`);
6267
- return {
6268
- owner: i[1],
6269
- repo: i[2]
6270
- };
6271
- }
6272
- function Ur(e) {
6271
+ function Kr(e) {
6273
6272
  let t = e.author, n = typeof t == "string" ? t : t?.name;
6274
6273
  if (n == null || n === "") throw Error("package.json 'author' field is required to document governance.");
6275
- return n.replace(/\s*<[^>]*>\s*/, "").trim();
6274
+ let r = n.indexOf("<"), i = r === -1 ? -1 : n.indexOf(">", r);
6275
+ return (i === -1 ? n : n.slice(0, r).trimEnd() + n.slice(i + 1).trimStart()).trim();
6276
6276
  }
6277
- function Wr(e) {
6277
+ function qr(e) {
6278
6278
  let t = (/* @__PURE__ */ new Date()).getFullYear();
6279
6279
  if (e == null) return String(t);
6280
6280
  let n = new Date(e).getFullYear();
6281
6281
  return n === t ? String(t) : `${String(n)}-present`;
6282
6282
  }
6283
- function Gr(e, t, n, r) {
6283
+ function Jr(e, t, n, r) {
6284
6284
  let i = `https://github.com/${e}/${t}`, a = `github.com/${e}/${t}`;
6285
6285
  return `## Security & Quality
6286
6286
 
@@ -6327,28 +6327,28 @@ This project is licensed under the MIT License, permitting free use, modificatio
6327
6327
  }
6328
6328
  //#endregion
6329
6329
  //#region node_modules/@dpuse/dpuse-shared/dist/componentConfig.schema-DT3mO5rS.js
6330
- var Kr = {
6330
+ var Yr = {
6331
6331
  lang: void 0,
6332
6332
  message: void 0,
6333
6333
  abortEarly: void 0,
6334
6334
  abortPipeEarly: void 0
6335
6335
  };
6336
6336
  /* @__NO_SIDE_EFFECTS__ */
6337
- function qr(e) {
6337
+ function Xr(e) {
6338
6338
  return e ? {
6339
6339
  lang: e?.lang ?? void 0,
6340
6340
  message: e?.message,
6341
6341
  abortEarly: e?.abortEarly ?? void 0,
6342
6342
  abortPipeEarly: e?.abortPipeEarly ?? void 0
6343
- } : Kr;
6343
+ } : Yr;
6344
6344
  }
6345
6345
  /* @__NO_SIDE_EFFECTS__ */
6346
- function Jr(e) {
6346
+ function Zr(e) {
6347
6347
  let t = typeof e;
6348
6348
  return t === "string" ? `"${e}"` : t === "number" || t === "bigint" || t === "boolean" ? `${e}` : t === "object" || t === "function" ? (e && Object.getPrototypeOf(e)?.constructor?.name) ?? "null" : t;
6349
6349
  }
6350
6350
  function X(e, t, n, r, i) {
6351
- let a = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, s = i?.received ?? /* @__PURE__ */ Jr(a), c = {
6351
+ let a = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, s = i?.received ?? /* @__PURE__ */ Zr(a), c = {
6352
6352
  kind: e.kind,
6353
6353
  type: e.type,
6354
6354
  input: a,
@@ -6365,39 +6365,39 @@ function X(e, t, n, r, i) {
6365
6365
  u !== void 0 && (c.message = typeof u == "function" ? u(c) : u), l && (n.typed = !1), n.issues ? n.issues.push(c) : n.issues = [c];
6366
6366
  }
6367
6367
  /* @__NO_SIDE_EFFECTS__ */
6368
- function Yr(e, t) {
6368
+ function Qr(e, t) {
6369
6369
  return e === t || Number.isNaN(e) && Number.isNaN(t);
6370
6370
  }
6371
6371
  /* @__NO_SIDE_EFFECTS__ */
6372
- function Xr(e, t) {
6372
+ function $r(e, t) {
6373
6373
  return Object.prototype.hasOwnProperty.call(e, t) && t !== "__proto__" && t !== "prototype" && t !== "constructor";
6374
6374
  }
6375
6375
  /* @__NO_SIDE_EFFECTS__ */
6376
- function Zr(e, t) {
6376
+ function ei(e, t) {
6377
6377
  let n = [...new Set(e)];
6378
6378
  return n.length > 1 ? `(${n.join(` ${t} `)})` : n[0] ?? "never";
6379
6379
  }
6380
- function Qr(e) {
6380
+ function ti(e) {
6381
6381
  return e["~standard"] = {
6382
6382
  version: 1,
6383
6383
  vendor: "valibot",
6384
- validate: (t) => e["~run"]({ value: t }, /* @__PURE__ */ qr())
6384
+ validate: (t) => e["~run"]({ value: t }, /* @__PURE__ */ Xr())
6385
6385
  }, e;
6386
6386
  }
6387
6387
  /* @__NO_SIDE_EFFECTS__ */
6388
- function $r(e, t, n) {
6388
+ function ni(e, t, n) {
6389
6389
  return typeof e.fallback == "function" ? e.fallback(t, n) : e.fallback;
6390
6390
  }
6391
6391
  /* @__NO_SIDE_EFFECTS__ */
6392
- function ei(e, t, n) {
6392
+ function ri(e, t, n) {
6393
6393
  return typeof e.default == "function" ? e.default(t, n) : e.default;
6394
6394
  }
6395
6395
  /* @__NO_SIDE_EFFECTS__ */
6396
- function ti(e, t) {
6397
- return Qr({
6396
+ function ii(e, t) {
6397
+ return ti({
6398
6398
  kind: "schema",
6399
6399
  type: "array",
6400
- reference: ti,
6400
+ reference: ii,
6401
6401
  expects: "Array",
6402
6402
  async: !1,
6403
6403
  item: e,
@@ -6430,11 +6430,11 @@ function ti(e, t) {
6430
6430
  });
6431
6431
  }
6432
6432
  /* @__NO_SIDE_EFFECTS__ */
6433
- function ni(e) {
6434
- return Qr({
6433
+ function ai(e) {
6434
+ return ti({
6435
6435
  kind: "schema",
6436
6436
  type: "boolean",
6437
- reference: ni,
6437
+ reference: ai,
6438
6438
  expects: "boolean",
6439
6439
  async: !1,
6440
6440
  message: e,
@@ -6444,23 +6444,23 @@ function ni(e) {
6444
6444
  });
6445
6445
  }
6446
6446
  /* @__NO_SIDE_EFFECTS__ */
6447
- function ri(e, t) {
6448
- return Qr({
6447
+ function oi(e, t) {
6448
+ return ti({
6449
6449
  kind: "schema",
6450
6450
  type: "literal",
6451
- reference: ri,
6452
- expects: /* @__PURE__ */ Jr(e),
6451
+ reference: oi,
6452
+ expects: /* @__PURE__ */ Zr(e),
6453
6453
  async: !1,
6454
6454
  literal: e,
6455
6455
  message: t,
6456
6456
  "~run"(e, t) {
6457
- return /* @__PURE__ */ Yr(e.value, this.literal) ? e.typed = !0 : X(this, "type", e, t), e;
6457
+ return /* @__PURE__ */ Qr(e.value, this.literal) ? e.typed = !0 : X(this, "type", e, t), e;
6458
6458
  }
6459
6459
  });
6460
6460
  }
6461
6461
  /* @__NO_SIDE_EFFECTS__ */
6462
6462
  function Z(e, t) {
6463
- return Qr({
6463
+ return ti({
6464
6464
  kind: "schema",
6465
6465
  type: "nullable",
6466
6466
  reference: Z,
@@ -6469,16 +6469,16 @@ function Z(e, t) {
6469
6469
  wrapped: e,
6470
6470
  default: t,
6471
6471
  "~run"(e, t) {
6472
- return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ ei(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
6472
+ return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ ri(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
6473
6473
  }
6474
6474
  });
6475
6475
  }
6476
6476
  /* @__NO_SIDE_EFFECTS__ */
6477
- function ii(e) {
6478
- return Qr({
6477
+ function si(e) {
6478
+ return ti({
6479
6479
  kind: "schema",
6480
6480
  type: "number",
6481
- reference: ii,
6481
+ reference: si,
6482
6482
  expects: "number",
6483
6483
  async: !1,
6484
6484
  message: e,
@@ -6488,26 +6488,26 @@ function ii(e) {
6488
6488
  });
6489
6489
  }
6490
6490
  /* @__NO_SIDE_EFFECTS__ */
6491
- function ai(e, t) {
6492
- return Qr({
6491
+ function ci(e, t) {
6492
+ return ti({
6493
6493
  kind: "schema",
6494
6494
  type: "optional",
6495
- reference: ai,
6495
+ reference: ci,
6496
6496
  expects: `(${e.expects} | undefined)`,
6497
6497
  async: !1,
6498
6498
  wrapped: e,
6499
6499
  default: t,
6500
6500
  "~run"(e, t) {
6501
- return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ ei(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
6501
+ return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ ri(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
6502
6502
  }
6503
6503
  });
6504
6504
  }
6505
6505
  /* @__NO_SIDE_EFFECTS__ */
6506
- function oi(e, t, n) {
6507
- return Qr({
6506
+ function li(e, t, n) {
6507
+ return ti({
6508
6508
  kind: "schema",
6509
6509
  type: "record",
6510
- reference: oi,
6510
+ reference: li,
6511
6511
  expects: "Object",
6512
6512
  async: !1,
6513
6513
  key: e,
@@ -6517,7 +6517,7 @@ function oi(e, t, n) {
6517
6517
  let n = e.value;
6518
6518
  if (n && typeof n == "object") {
6519
6519
  e.typed = !0, e.value = {};
6520
- for (let r in n) if (/* @__PURE__ */ Xr(n, r)) {
6520
+ for (let r in n) if (/* @__PURE__ */ $r(n, r)) {
6521
6521
  let i = n[r], a = this.key["~run"]({ value: r }, t);
6522
6522
  if (a.issues) {
6523
6523
  let o = {
@@ -6557,7 +6557,7 @@ function oi(e, t, n) {
6557
6557
  }
6558
6558
  /* @__NO_SIDE_EFFECTS__ */
6559
6559
  function Q(e, t) {
6560
- return Qr({
6560
+ return ti({
6561
6561
  kind: "schema",
6562
6562
  type: "strict_object",
6563
6563
  reference: Q,
@@ -6572,7 +6572,7 @@ function Q(e, t) {
6572
6572
  for (let r in this.entries) {
6573
6573
  let i = this.entries[r];
6574
6574
  if (r in n || (i.type === "exact_optional" || i.type === "optional" || i.type === "nullish") && i.default !== void 0) {
6575
- let a = r in n ? n[r] : /* @__PURE__ */ ei(i), o = i["~run"]({ value: a }, t);
6575
+ let a = r in n ? n[r] : /* @__PURE__ */ ri(i), o = i["~run"]({ value: a }, t);
6576
6576
  if (o.issues) {
6577
6577
  let i = {
6578
6578
  type: "object",
@@ -6588,7 +6588,7 @@ function Q(e, t) {
6588
6588
  }
6589
6589
  }
6590
6590
  o.typed || (e.typed = !1), e.value[r] = o.value;
6591
- } else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ $r(i);
6591
+ } else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ ni(i);
6592
6592
  else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (X(this, "key", e, t, {
6593
6593
  input: void 0,
6594
6594
  expected: `"${r}"`,
@@ -6624,7 +6624,7 @@ function Q(e, t) {
6624
6624
  }
6625
6625
  /* @__NO_SIDE_EFFECTS__ */
6626
6626
  function $(e) {
6627
- return Qr({
6627
+ return ti({
6628
6628
  kind: "schema",
6629
6629
  type: "string",
6630
6630
  reference: $,
@@ -6637,19 +6637,19 @@ function $(e) {
6637
6637
  });
6638
6638
  }
6639
6639
  /* @__NO_SIDE_EFFECTS__ */
6640
- function si(e) {
6640
+ function ui(e) {
6641
6641
  let t;
6642
6642
  if (e) for (let n of e) if (t) for (let e of n.issues) t.push(e);
6643
6643
  else t = n.issues;
6644
6644
  return t;
6645
6645
  }
6646
6646
  /* @__NO_SIDE_EFFECTS__ */
6647
- function ci(e, t) {
6648
- return Qr({
6647
+ function di(e, t) {
6648
+ return ti({
6649
6649
  kind: "schema",
6650
6650
  type: "union",
6651
- reference: ci,
6652
- expects: /* @__PURE__ */ Zr(e.map((e) => e.expects), "|"),
6651
+ reference: di,
6652
+ expects: /* @__PURE__ */ ei(e.map((e) => e.expects), "|"),
6653
6653
  async: !1,
6654
6654
  options: e,
6655
6655
  message: t,
@@ -6668,29 +6668,29 @@ function ci(e, t) {
6668
6668
  if (n) return n;
6669
6669
  if (r) {
6670
6670
  if (r.length === 1) return r[0];
6671
- X(this, "type", e, t, { issues: /* @__PURE__ */ si(r) }), e.typed = !0;
6671
+ X(this, "type", e, t, { issues: /* @__PURE__ */ ui(r) }), e.typed = !0;
6672
6672
  } else if (i?.length === 1) return i[0];
6673
- else X(this, "type", e, t, { issues: /* @__PURE__ */ si(i) });
6673
+ else X(this, "type", e, t, { issues: /* @__PURE__ */ ui(i) });
6674
6674
  return e;
6675
6675
  }
6676
6676
  });
6677
6677
  }
6678
- var li = /* @__PURE__ */ Q({
6678
+ var fi = /* @__PURE__ */ Q({
6679
6679
  en: /* @__PURE__ */ $(),
6680
6680
  es: /* @__PURE__ */ $()
6681
- }), ui = {
6681
+ }), pi = {
6682
6682
  id: /* @__PURE__ */ $(),
6683
6683
  label: /* @__PURE__ */ Q({
6684
- en: /* @__PURE__ */ ai(/* @__PURE__ */ $()),
6685
- es: /* @__PURE__ */ ai(/* @__PURE__ */ $())
6684
+ en: /* @__PURE__ */ ci(/* @__PURE__ */ $()),
6685
+ es: /* @__PURE__ */ ci(/* @__PURE__ */ $())
6686
6686
  }),
6687
6687
  description: /* @__PURE__ */ Q({
6688
- en: /* @__PURE__ */ ai(/* @__PURE__ */ $()),
6689
- es: /* @__PURE__ */ ai(/* @__PURE__ */ $())
6688
+ en: /* @__PURE__ */ ci(/* @__PURE__ */ $()),
6689
+ es: /* @__PURE__ */ ci(/* @__PURE__ */ $())
6690
6690
  }),
6691
6691
  icon: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6692
6692
  iconDark: /* @__PURE__ */ Z(/* @__PURE__ */ $())
6693
- }, di = (e) => /* @__PURE__ */ ci(e.map((e) => /* @__PURE__ */ ri(e))), fi = di([
6693
+ }, mi = (e) => /* @__PURE__ */ di(e.map((e) => /* @__PURE__ */ oi(e))), hi = mi([
6694
6694
  "app",
6695
6695
  "connector",
6696
6696
  "connectorConnection",
@@ -6712,33 +6712,33 @@ var li = /* @__PURE__ */ Q({
6712
6712
  "presenter",
6713
6713
  "presenterPresentation",
6714
6714
  "tool"
6715
- ]), pi = di([
6715
+ ]), gi = mi([
6716
6716
  "danger",
6717
6717
  "success",
6718
6718
  "warning"
6719
- ]), mi = di([
6719
+ ]), _i = mi([
6720
6720
  "alpha",
6721
6721
  "beta",
6722
6722
  "releaseCandidate",
6723
6723
  "generalAvailability"
6724
- ]), hi = /* @__PURE__ */ Q({
6725
- color: pi,
6724
+ ]), vi = /* @__PURE__ */ Q({
6725
+ color: gi,
6726
6726
  label: /* @__PURE__ */ $()
6727
- }), gi = {
6728
- ...ui,
6729
- typeId: fi
6730
- }, _i = /* @__PURE__ */ Q({
6731
- ...gi,
6732
- order: /* @__PURE__ */ ii(),
6727
+ }), yi = {
6728
+ ...pi,
6729
+ typeId: hi
6730
+ }, bi = /* @__PURE__ */ Q({
6731
+ ...yi,
6732
+ order: /* @__PURE__ */ si(),
6733
6733
  path: /* @__PURE__ */ $()
6734
- }), vi = {
6735
- ...gi,
6736
- firstCreatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ ii()),
6737
- lastUpdatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ ii()),
6738
- status: /* @__PURE__ */ Z(hi),
6739
- statusId: /* @__PURE__ */ Z(mi)
6734
+ }), xi = {
6735
+ ...yi,
6736
+ firstCreatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ si()),
6737
+ lastUpdatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ si()),
6738
+ status: /* @__PURE__ */ Z(vi),
6739
+ statusId: /* @__PURE__ */ Z(_i)
6740
6740
  };
6741
- ({ ...vi }), di([
6741
+ ({ ...xi }), mi([
6742
6742
  "app",
6743
6743
  "engine",
6744
6744
  "connector",
@@ -6748,17 +6748,17 @@ var li = /* @__PURE__ */ Q({
6748
6748
  ]);
6749
6749
  //#endregion
6750
6750
  //#region node_modules/@dpuse/dpuse-shared/dist/moduleConfig.schema-aYmFWSrn.js
6751
- var yi = {
6752
- ...vi,
6751
+ var Si = {
6752
+ ...xi,
6753
6753
  vendorAccountURL: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6754
6754
  vendorDocumentationURL: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6755
6755
  vendorHomeURL: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6756
6756
  version: /* @__PURE__ */ $()
6757
6757
  };
6758
- ({ ...yi });
6758
+ ({ ...Si });
6759
6759
  //#endregion
6760
6760
  //#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared-componentModuleConnector.es.js
6761
- var bi = di([
6761
+ var Ci = mi([
6762
6762
  "abortOperation",
6763
6763
  "auditObjectContent",
6764
6764
  "createObject",
@@ -6774,39 +6774,39 @@ var bi = di([
6774
6774
  "retrieveChunks",
6775
6775
  "retrieveRecords",
6776
6776
  "upsertRecords"
6777
- ]), xi = di([
6777
+ ]), wi = mi([
6778
6778
  "application",
6779
6779
  "curatedDataset",
6780
6780
  "database",
6781
6781
  "fileStore"
6782
- ]), Si = /* @__PURE__ */ Q({ label: li }), Ci = di([
6782
+ ]), Ti = /* @__PURE__ */ Q({ label: fi }), Ei = mi([
6783
6783
  "bidirectional",
6784
6784
  "destination",
6785
6785
  "source",
6786
6786
  "unknown"
6787
- ]), wi = /* @__PURE__ */ Q({ label: li }), Ti = /* @__PURE__ */ Q({
6788
- authMethodId: di([
6787
+ ]), Di = /* @__PURE__ */ Q({ label: fi }), Oi = /* @__PURE__ */ Q({
6788
+ authMethodId: mi([
6789
6789
  "apiKey",
6790
6790
  "disabled",
6791
6791
  "oAuth2",
6792
6792
  "none"
6793
6793
  ]),
6794
- activeConnectionCount: /* @__PURE__ */ ai(/* @__PURE__ */ ii()),
6795
- canDescribe: /* @__PURE__ */ ai(/* @__PURE__ */ ni()),
6796
- id: /* @__PURE__ */ ai(/* @__PURE__ */ $()),
6797
- label: /* @__PURE__ */ ai(li),
6798
- maxConnectionCount: /* @__PURE__ */ Z(/* @__PURE__ */ ii()),
6799
- params: /* @__PURE__ */ ai(/* @__PURE__ */ ti(/* @__PURE__ */ oi(/* @__PURE__ */ $(), /* @__PURE__ */ $())))
6800
- }), Ei = /* @__PURE__ */ Q({
6801
- ...yi,
6802
- typeId: /* @__PURE__ */ ri("connector"),
6803
- actionNames: /* @__PURE__ */ ti(bi),
6804
- category: /* @__PURE__ */ Z(Si),
6805
- categoryId: xi,
6806
- implementations: /* @__PURE__ */ oi(/* @__PURE__ */ $(), Ti),
6807
- usage: /* @__PURE__ */ Z(wi),
6808
- usageId: /* @__PURE__ */ Z(Ci)
6809
- }), Di = {
6794
+ activeConnectionCount: /* @__PURE__ */ ci(/* @__PURE__ */ si()),
6795
+ canDescribe: /* @__PURE__ */ ci(/* @__PURE__ */ ai()),
6796
+ id: /* @__PURE__ */ ci(/* @__PURE__ */ $()),
6797
+ label: /* @__PURE__ */ ci(fi),
6798
+ maxConnectionCount: /* @__PURE__ */ Z(/* @__PURE__ */ si()),
6799
+ params: /* @__PURE__ */ ci(/* @__PURE__ */ ii(/* @__PURE__ */ li(/* @__PURE__ */ $(), /* @__PURE__ */ $())))
6800
+ }), ki = /* @__PURE__ */ Q({
6801
+ ...Si,
6802
+ typeId: /* @__PURE__ */ oi("connector"),
6803
+ actionNames: /* @__PURE__ */ ii(Ci),
6804
+ category: /* @__PURE__ */ Z(Ti),
6805
+ categoryId: wi,
6806
+ implementations: /* @__PURE__ */ li(/* @__PURE__ */ $(), Oi),
6807
+ usage: /* @__PURE__ */ Z(Di),
6808
+ usageId: /* @__PURE__ */ Z(Ei)
6809
+ }), Ai = {
6810
6810
  abortOperation: "Abort Operation",
6811
6811
  auditObjectContent: "Audit Object Content",
6812
6812
  createObject: "Create Object",
@@ -6822,12 +6822,12 @@ var bi = di([
6822
6822
  retrieveChunks: "Retrieve Chunks",
6823
6823
  retrieveRecords: "Retrieve Records",
6824
6824
  upsertRecords: "Upsert Records"
6825
- }, Oi = /* @__PURE__ */ new Set([
6825
+ }, ji = /* @__PURE__ */ new Set([
6826
6826
  "createObject",
6827
6827
  "dropObject",
6828
6828
  "removeRecords",
6829
6829
  "upsertRecords"
6830
- ]), ki = /* @__PURE__ */ new Set([
6830
+ ]), Mi = /* @__PURE__ */ new Set([
6831
6831
  "auditObjectContent",
6832
6832
  "findObject",
6833
6833
  "getInfo",
@@ -6838,67 +6838,57 @@ var bi = di([
6838
6838
  "retrieveChunks",
6839
6839
  "retrieveRecords"
6840
6840
  ]);
6841
- function Ai(e) {
6841
+ function Ni(e) {
6842
6842
  let t = !1, n = !1;
6843
- for (let r of e) ki.has(r) && (t = !0), Oi.has(r) && (n = !0);
6843
+ for (let r of e) Mi.has(r) && (t = !0), ji.has(r) && (n = !0);
6844
6844
  return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
6845
6845
  }
6846
- function ji(e) {
6846
+ function Pi(e) {
6847
6847
  let t = new Set(e), n = "|Action|Supported|\n";
6848
6848
  n += "|:----|:-------:|\n";
6849
- for (let e of Object.keys(Di)) n += `| ${Di[e]} | ${t.has(e) ? "✓" : ""} |\n`;
6849
+ for (let e of Object.keys(Ai)) n += `| ${Ai[e]} | ${t.has(e) ? "✓" : ""} |\n`;
6850
6850
  return n;
6851
6851
  }
6852
6852
  //#endregion
6853
6853
  //#region src/actions/documentActions.ts
6854
- var Mi = "<!-- CONNECTOR_ACTIONS_START -->", Ni = "<!-- CONNECTOR_ACTIONS_END -->", Pi = "Connectors conform to a unified interface contract by implementing a specific subset of standard actions. These standardised actions allow the DPUse application to interact with any underlying data source in the same way, enabling Connectors to be built independently and loaded dynamically at runtime.", Fi = {
6854
+ var Fi = "<!-- CONNECTOR_ACTIONS_START -->", Ii = "<!-- CONNECTOR_ACTIONS_END -->", Li = "Connectors conform to a unified interface contract by implementing a specific subset of standard actions. These standardised actions allow the DPUse application to interact with any underlying data source in the same way, enabling Connectors to be built independently and loaded dynamically at runtime.", Ri = {
6855
6855
  source: "This connector is a Source connector that supports only read actions. Connectors can also function as a Destination (write-only) or Bidirectional (read/write), depending on the actions they support.",
6856
6856
  destination: "This connector is a Destination connector that supports only write actions. Connectors can also function as a Source (read-only) or Bidirectional (read/write), depending on the actions they support.",
6857
6857
  bidirectional: "This connector is a Bidirectional connector that supports both read and write actions. Connectors can also function as a Source (read-only) or Destination (write-only), depending on the actions they support.",
6858
6858
  unknown: "This connector does not yet implement any read or write actions, so its type cannot be determined. Connectors function as a Source (read-only), a Destination (write-only), or Bidirectional (read/write), depending on the actions they support."
6859
- }, Ii = "The table below lists all connector actions and highlights those supported by this connector.";
6860
- async function Li() {
6859
+ }, zi = "The table below lists all connector actions and highlights those supported by this connector.";
6860
+ async function Bi() {
6861
6861
  try {
6862
6862
  K("Document Actions"), J("1️⃣ Insert actions description and table into 'README.md'");
6863
- let e = (await W("config.json")).actionNames ?? [], t = Ai(e), n = ji(e), r = `${Pi}\n\n${Fi[t]} ${Ii}\n\n${n}`;
6864
- await zn("README.md", Wn(await G("./README.md"), r, Mi, Ni)), q("Actions documented");
6863
+ let e = (await G("config.json")).actionNames ?? [], t = Ni(e), n = Pi(e);
6864
+ await zn(`${Li}\n\n${Ri[t]} ${zi}\n\n${n}`, Fi, Ii), q("Actions documented");
6865
6865
  } catch (e) {
6866
6866
  console.error("❌ Error documenting actions", e), process.exit(1);
6867
6867
  }
6868
6868
  }
6869
6869
  //#endregion
6870
6870
  //#region src/actions/documentOpening.ts
6871
- var Ri = "<!-- OPENING_START -->", zi = "<!-- OPENING_END -->";
6872
- async function Bi() {
6871
+ var Vi = "<!-- OPENING_START -->", Hi = "<!-- OPENING_END -->";
6872
+ async function Ui() {
6873
6873
  try {
6874
6874
  K("Document Opening"), J("1️⃣ Insert opening content into 'README.md'");
6875
- let e = await W("package.json"), t = await W("config.json"), { owner: n, repo: r } = Vi(e), i = Wi(n, r, Hi(e), Ui(t));
6876
- await zn("README.md", Wn(await G("./README.md"), i, Ri, zi)), q("Opening documented");
6875
+ let e = await G("package.json"), t = await G("config.json"), { owner: n, repo: r } = Hn(e, "document opening");
6876
+ await zn(Ki(n, r, Wi(e), Gi(t)), Vi, Hi), q("Opening documented");
6877
6877
  } catch (e) {
6878
6878
  console.error("❌ Error documenting opening", e), process.exit(1);
6879
6879
  }
6880
6880
  }
6881
- function Vi(e) {
6882
- let t = e.repository, n = typeof t == "string" ? t : t?.url;
6883
- if (n == null || n === "") throw Error("package.json 'repository' field is required to document opening.");
6884
- let r = n.replace(/^git\+/, "").replace(/\.git$/, ""), i = /github\.com[/:]([^/]+)\/([^/]+)$/.exec(r);
6885
- if (i?.[1] == null || i[2] == null) throw Error(`Unable to parse GitHub owner/repo from '${n}'.`);
6886
- return {
6887
- owner: i[1],
6888
- repo: i[2]
6889
- };
6890
- }
6891
- function Hi(e) {
6881
+ function Wi(e) {
6892
6882
  let t = e.license;
6893
6883
  if (t == null || t === "") throw Error("package.json 'license' field is required to document opening.");
6894
6884
  return t;
6895
6885
  }
6896
- function Ui(e) {
6886
+ function Gi(e) {
6897
6887
  let t = e.description.en;
6898
6888
  if (t == null || t.length === 0) throw Error("config.json 'description.en' field is required to document opening.");
6899
6889
  return t;
6900
6890
  }
6901
- function Wi(e, t, n, r) {
6891
+ function Ki(e, t, n, r) {
6902
6892
  let i = `https://github.com/${e}/${t}`;
6903
6893
  return `[![License: ${n}](https://img.shields.io/badge/License-${n.replaceAll("-", "--")}-blue.svg)](./LICENSE)
6904
6894
  [![DPUse version](https://img.shields.io/github/v/release/${e}/${t}?color=f6821f&label=DPUse)](${i}/releases/latest)
@@ -6926,31 +6916,31 @@ ${r}`;
6926
6916
  }
6927
6917
  //#endregion
6928
6918
  //#region src/actions/documentUsage.ts
6929
- var Gi = "<!-- USAGE_START -->", Ki = "<!-- USAGE_END -->";
6930
- async function qi() {
6919
+ var qi = "<!-- USAGE_START -->", Ji = "<!-- USAGE_END -->";
6920
+ async function Yi() {
6931
6921
  try {
6932
6922
  K("Document Usage"), J("1️⃣ Insert usage content into 'README.md'");
6933
- let e = await W("package.json"), t = Ji(e), n = Zi(t, Yi(t), Xi(e.engines?.node), Xi(e.engines?.npm), Xi(e.devDependencies?.typescript));
6934
- await zn("README.md", Wn(await G("./README.md"), n, Gi, Ki)), q("Usage documented");
6923
+ let e = await G("package.json"), t = Xi(e);
6924
+ await zn($i(t, Zi(t), Qi(e.engines?.node), Qi(e.engines?.npm), Qi(e.devDependencies?.typescript)), qi, Ji), q("Usage documented");
6935
6925
  } catch (e) {
6936
6926
  console.error("❌ Error documenting usage", e), process.exit(1);
6937
6927
  }
6938
6928
  }
6939
- function Ji(e) {
6929
+ function Xi(e) {
6940
6930
  let t = e.repository, n = typeof t == "string" ? t : t?.url;
6941
6931
  if (n == null || n === "") throw Error("package.json 'repository' field is required to document usage.");
6942
6932
  return n.replace(/^git\+/, "");
6943
6933
  }
6944
- function Yi(e) {
6934
+ function Zi(e) {
6945
6935
  return (e.split("/").at(-1) ?? "").replace(/\.git$/, "");
6946
6936
  }
6947
- function Xi(e) {
6937
+ function Qi(e) {
6948
6938
  if (e == null) throw Error("package.json version range is required to document usage.");
6949
6939
  let t = /\d+(?:\.\d+)*/.exec(e);
6950
6940
  if (t == null) throw Error(`Unable to parse version from '${e}'.`);
6951
6941
  return t[0];
6952
6942
  }
6953
- function Zi(e, t, n, r, i) {
6943
+ function $i(e, t, n, r, i) {
6954
6944
  return `This connector is automatically uploaded to the DPUse Engine cloud once released and becomes instantly available to all new browser app instances, with existing instances notified of the update.
6955
6945
 
6956
6946
  You may view or clone this repository for your own purposes, such as building a new, similar connector, though there is currently no process to accept third-party connectors into DPUse at this stage. Cloned or forked code is unsupported and isn't guaranteed to remain compatible with the DPUse Engine as it evolves.
@@ -6965,9 +6955,9 @@ _Requires [Node.js](https://nodejs.org/) ${n} or later, [npm](https://www.npmjs.
6965
6955
  }
6966
6956
  //#endregion
6967
6957
  //#region src/actions/formatCode.ts
6968
- async function Qi() {
6958
+ async function ea() {
6969
6959
  try {
6970
- K("Format Code"), await U("1️⃣ Format", "prettier", [
6960
+ K("Format Code"), await W("1️⃣ Format", "prettier", [
6971
6961
  "--write",
6972
6962
  "*.json",
6973
6963
  "*.md",
@@ -6980,28 +6970,28 @@ async function Qi() {
6980
6970
  }
6981
6971
  //#endregion
6982
6972
  //#region src/actions/lintCode.ts
6983
- async function $i() {
6973
+ async function ta() {
6984
6974
  try {
6985
- K("Lint Code"), await U("1️⃣ Lint", "eslint", ["."]), q("Code linted");
6975
+ K("Lint Code"), await W("1️⃣ Lint", "eslint", ["."]), q("Code linted");
6986
6976
  } catch (e) {
6987
6977
  console.error("❌ Error linting code", e), process.exit(1);
6988
6978
  }
6989
6979
  }
6990
6980
  //#endregion
6991
6981
  //#region src/utilities/cloudflare.ts
6992
- async function ea() {
6993
- let e = await W("config.json"), t = {
6982
+ async function na() {
6983
+ let e = await G("config.json"), t = {
6994
6984
  body: JSON.stringify(e),
6995
6985
  headers: { "Content-Type": "application/json" },
6996
6986
  method: "PUT"
6997
6987
  }, n = await fetch(`https://api.dpuse.app/configs/${e.id}`, t);
6998
6988
  if (!n.ok) throw Error(await n.text());
6999
6989
  }
7000
- async function ta(e, t) {
6990
+ async function ra(e, t) {
7001
6991
  async function n(e, t, r) {
7002
6992
  for (let i of r) {
7003
6993
  let r = `${e}/${i}`, a = `${t}/${i}`;
7004
- (await Vn(r)).isDirectory() ? await n(r, a, await Pn(r)) : (console.info(`⚙️ Uploading '${e}/${i}'...`), await Fn(void 0, "wrangler", [
6994
+ (await Un(r)).isDirectory() ? await n(r, a, await Nn(r)) : (console.info(`⚙️ Uploading '${e}/${i}'...`), await Pn(void 0, "wrangler", [
7005
6995
  "r2",
7006
6996
  "object",
7007
6997
  "put",
@@ -7012,10 +7002,10 @@ async function ta(e, t) {
7012
7002
  ]));
7013
7003
  }
7014
7004
  }
7015
- let r = await Pn(`${e}/${t}/`);
7005
+ let r = await Nn(`${e}/${t}/`);
7016
7006
  await n(`${e}/${t}`, t, r);
7017
7007
  }
7018
- async function na(e) {
7008
+ async function ia(e) {
7019
7009
  let t = e.id, n = {
7020
7010
  body: JSON.stringify(e),
7021
7011
  headers: { "Content-Type": "application/json" },
@@ -7023,14 +7013,14 @@ async function na(e) {
7023
7013
  }, r = await fetch(`https://api.dpuse.app/configs/${t}`, n);
7024
7014
  if (!r.ok) throw Error(await r.text());
7025
7015
  }
7026
- async function ra(e, t) {
7016
+ async function aa(e, t) {
7027
7017
  let n = `v${e.version ?? "unknown"}`;
7028
7018
  async function r(e, r = "") {
7029
- let i = await Pn(e, { withFileTypes: !0 });
7019
+ let i = await Nn(e, { withFileTypes: !0 });
7030
7020
  for (let a of i) {
7031
7021
  if (a.isDirectory() || a.name.endsWith(".map")) continue;
7032
7022
  let i = `${e}/${a.name}`, o = r ? `${r}/${a.name}` : a.name, s = `${t}_${n}/${o}`.replaceAll("\\", "/"), c = a.name.endsWith(".css") ? "text/css" : "application/octet-stream", l = a.name.endsWith(".js") ? "application/javascript" : c;
7033
- console.info(`⚙️ Uploading '${o}' → '${s}'...`), await Fn(void 0, "wrangler", [
7023
+ console.info(`⚙️ Uploading '${o}' → '${s}'...`), await Pn(void 0, "wrangler", [
7034
7024
  "r2",
7035
7025
  "object",
7036
7026
  "put",
@@ -7047,24 +7037,24 @@ async function ra(e, t) {
7047
7037
  }
7048
7038
  //#endregion
7049
7039
  //#region node_modules/valibot/dist/index.mjs
7050
- var ia = {
7040
+ var oa = {
7051
7041
  lang: void 0,
7052
7042
  message: void 0,
7053
7043
  abortEarly: void 0,
7054
7044
  abortPipeEarly: void 0
7055
7045
  };
7056
7046
  /* @__NO_SIDE_EFFECTS__ */
7057
- function aa(e) {
7047
+ function sa(e) {
7058
7048
  return e ? {
7059
7049
  lang: e?.lang ?? void 0,
7060
7050
  message: e?.message,
7061
7051
  abortEarly: e?.abortEarly ?? void 0,
7062
7052
  abortPipeEarly: e?.abortPipeEarly ?? void 0
7063
- } : ia;
7053
+ } : oa;
7064
7054
  }
7065
7055
  /* @__NO_SIDE_EFFECTS__ */
7066
- function oa(e, t, n) {
7067
- let r = e["~run"]({ value: t }, /* @__PURE__ */ aa(n));
7056
+ function ca(e, t, n) {
7057
+ let r = e["~run"]({ value: t }, /* @__PURE__ */ sa(n));
7068
7058
  return {
7069
7059
  typed: r.typed,
7070
7060
  success: !r.issues,
@@ -7074,21 +7064,21 @@ function oa(e, t, n) {
7074
7064
  }
7075
7065
  //#endregion
7076
7066
  //#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared-componentModulePresenter.es.js
7077
- var sa = di([
7067
+ var la = mi([
7078
7068
  "list",
7079
7069
  "render",
7080
7070
  "setColorMode"
7081
- ]), ca = /* @__PURE__ */ Q({
7082
- ...yi,
7083
- typeId: /* @__PURE__ */ ri("presenter"),
7084
- actionNames: /* @__PURE__ */ ti(sa),
7085
- presentations: /* @__PURE__ */ ti(_i)
7086
- }), la = [
7071
+ ]), ua = /* @__PURE__ */ Q({
7072
+ ...Si,
7073
+ typeId: /* @__PURE__ */ oi("presenter"),
7074
+ actionNames: /* @__PURE__ */ ii(la),
7075
+ presentations: /* @__PURE__ */ ii(bi)
7076
+ }), da = [
7087
7077
  "1️⃣ ",
7088
7078
  "2️⃣ ",
7089
7079
  "3️⃣ ",
7090
7080
  "4️⃣ "
7091
- ], ua = [{
7081
+ ], fa = [{
7092
7082
  id: "unit",
7093
7083
  label: "Run unit tests",
7094
7084
  command: "vitest",
@@ -7101,62 +7091,46 @@ var sa = di([
7101
7091
  arguments: ["test", "--pass-with-no-tests"],
7102
7092
  configFileName: "playwright.config.ts"
7103
7093
  }];
7104
- async function da() {
7094
+ async function pa() {
7105
7095
  try {
7106
- K("Build Project"), await U("1️⃣ Bundle project", "vite", ["build"]), q("Project built");
7096
+ K("Build Project"), await W("1️⃣ Bundle project", "vite", ["build"]), q("Project built");
7107
7097
  } catch (e) {
7108
7098
  console.error("❌ Error building project", e), process.exit(1);
7109
7099
  }
7110
7100
  }
7111
- async function fa() {
7101
+ async function ma() {
7112
7102
  try {
7113
7103
  K("Publish Project");
7114
- let e = await W("package.json"), t = await W("config.json"), n = Bn(t.id);
7115
- if (n.typeId === "app") J("1️⃣ Register module"), await ea();
7116
- else if (n.typeId === "engine") J("1️⃣ Register module"), await ra(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await na(t);
7117
- else if (n.uploadGroupName === void 0) J("1️⃣ Publishing NOT required");
7118
- else {
7119
- J("1️⃣ Register module");
7120
- let r = t.id.split("-").slice(2).join("-");
7121
- await ra(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await na(t);
7122
- }
7123
- q(`Project version '${e.version ?? "unknown"}' published.`);
7104
+ let e = await G("package.json"), t = await G("config.json");
7105
+ await Ca("1️⃣ ", e, t, Vn(t.id)), q(`Project version '${e.version ?? "unknown"}' published.`);
7124
7106
  } catch (e) {
7125
7107
  console.error("❌ Error publishing project", e), process.exit(1);
7126
7108
  }
7127
7109
  }
7128
- async function pa() {
7110
+ async function ha() {
7129
7111
  try {
7130
7112
  K("Release Project");
7131
- let e = await W("package.json"), t = await W("config.json");
7132
- await ba("1️⃣ ", e);
7133
- let n = Bn(t.id);
7113
+ let e = await G("package.json"), t = await G("config.json");
7114
+ await Sa("1️⃣ ", e);
7115
+ let n = Vn(t.id);
7134
7116
  switch (n.typeId) {
7135
7117
  case "connector":
7136
- t = await ha("2️⃣ ", e);
7118
+ t = await _a("2️⃣ ", e);
7137
7119
  break;
7138
7120
  case "presenter":
7139
- t = await ga("2️⃣ ", e);
7121
+ t = await va("2️⃣ ", e);
7140
7122
  break;
7141
- default: t = await ma("2️⃣ ", e);
7123
+ default: t = await ga("2️⃣ ", e);
7142
7124
  }
7143
- if (await U("3️⃣ Bundle project", "vite", ["build"]), await Fn("4️⃣ Stage changes", "git", ["add", "."]), await Fn("5️⃣ Commit changes", "git", [
7125
+ await W("3️⃣ Bundle project", "vite", ["build"]), await Pn("4️⃣ Stage changes", "git", ["add", "."]), await Pn("5️⃣ Commit changes", "git", [
7144
7126
  "commit",
7145
7127
  "-m",
7146
7128
  `v${e.version ?? "unknown"}`
7147
- ]), await Fn("6️⃣ Push changes", "git", [
7129
+ ]), await Pn("6️⃣ Push changes", "git", [
7148
7130
  "push",
7149
7131
  "origin",
7150
7132
  "main:main"
7151
- ]), n.typeId === "app") J("7️⃣ Register module"), await ea();
7152
- else if (n.typeId === "engine") J("7️⃣ Register module"), await ra(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await na(t);
7153
- else if (n.uploadGroupName === void 0) J("7️⃣ Registration NOT required");
7154
- else {
7155
- J("7️⃣ Register module");
7156
- let r = t.id.split("-").slice(2).join("-");
7157
- await ra(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await na(t);
7158
- }
7159
- n.publishedTo === "npm" ? await U("8️⃣ Create GitHub release", "gh", [
7133
+ ]), await Ca("7️⃣ ", e, t, n), n.publishedTo === "npm" ? await W("8️⃣ Create GitHub release", "gh", [
7160
7134
  "release",
7161
7135
  "create",
7162
7136
  `v${e.version ?? "unknown"}`,
@@ -7169,45 +7143,45 @@ async function pa() {
7169
7143
  console.error("❌ Error releasing project", e), process.exit(1);
7170
7144
  }
7171
7145
  }
7172
- async function ma(e, t) {
7146
+ async function ga(e, t) {
7173
7147
  J(`${e} Build project configuration`);
7174
- let n = await W("config.json");
7148
+ let n = await G("config.json");
7175
7149
  return t.name != null && (n.id = t.name.replace("@dpuse/", "")), t.version != null && (n.version = t.version), n.icon ??= await Ln("logo.svg"), n.iconDark ??= await Ln("logoDark.svg"), await Rn("config.json", n), n;
7176
7150
  }
7177
- async function ha(e, t) {
7151
+ async function _a(e, t) {
7178
7152
  J(`${e} Build connector project configuration`);
7179
- let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ oa(Ei, n);
7153
+ let [n, r] = await Promise.all([G("config.json"), In("src/index.ts")]), i = /* @__PURE__ */ ca(ki, n);
7180
7154
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
7181
- let a = Hn(r);
7182
- return await _a(t, n, a, Ai(a));
7155
+ let a = Wn(r);
7156
+ return await ya(t, n, a, Ni(a));
7183
7157
  }
7184
- async function ga(e, t) {
7158
+ async function va(e, t) {
7185
7159
  J(`${e} Build presenter project configuration`);
7186
- let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ oa(ca, n);
7160
+ let [n, r] = await Promise.all([G("config.json"), In("src/index.ts")]), i = /* @__PURE__ */ ca(ua, n);
7187
7161
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
7188
- return await _a(t, n, Hn(r));
7162
+ return await ya(t, n, Wn(r));
7189
7163
  }
7190
- async function _a(e, t, n, r) {
7164
+ async function ya(e, t, n, r) {
7191
7165
  return n.length > 0 ? (console.info(`ℹ️ Implements ${String(n.length)} operations:`), console.table(n)) : console.warn("⚠️ Implements no operations"), r === "unknown" ? console.warn("⚠️ No usage identified") : r && console.info(`ℹ️ Supports '${r}' usage.`), e.name != null && (t.id = e.name.replace("@dpuse/", "").replace("@dpuse/", "")), e.version != null && (t.version = e.version), t.actionNames = n, r !== void 0 && (t.usageId = r), await Rn("config.json", t), t;
7192
7166
  }
7193
- async function va() {
7167
+ async function ba() {
7194
7168
  try {
7195
7169
  K("Synchronise Project with GitHub");
7196
- let e = await W("package.json"), t = await W("config.json");
7197
- switch (await ba("1️⃣ ", e), Bn(t.id).typeId) {
7170
+ let e = await G("package.json"), t = await G("config.json");
7171
+ switch (await Sa("1️⃣ ", e), Vn(t.id).typeId) {
7198
7172
  case "connector":
7199
- await ha("2️⃣ ", e);
7173
+ await _a("2️⃣ ", e);
7200
7174
  break;
7201
7175
  case "presenter":
7202
- await ga("2️⃣ ", e);
7176
+ await va("2️⃣ ", e);
7203
7177
  break;
7204
- default: await ma("2️⃣ ", e);
7178
+ default: await ga("2️⃣ ", e);
7205
7179
  }
7206
- await Fn("3️⃣ Stage changes", "git", ["add", "."]), await Fn("4️⃣ Commit changes", "git", [
7180
+ await Pn("3️⃣ Stage changes", "git", ["add", "."]), await Pn("4️⃣ Commit changes", "git", [
7207
7181
  "commit",
7208
7182
  "-m",
7209
7183
  `v${e.version ?? "unknown"}`
7210
- ]), await Fn("5️⃣ Push changes", "git", [
7184
+ ]), await Pn("5️⃣ Push changes", "git", [
7211
7185
  "push",
7212
7186
  "origin",
7213
7187
  "main:main"
@@ -7216,14 +7190,14 @@ async function va() {
7216
7190
  console.error("❌ Error synchronising project with GitHub", e), process.exit(1);
7217
7191
  }
7218
7192
  }
7219
- async function ya(e = ["unit"], t = !1) {
7193
+ async function xa(e = ["unit"], t = !1) {
7220
7194
  try {
7221
7195
  K("Test Project");
7222
7196
  let n = 0;
7223
- for (let r of ua) {
7197
+ for (let r of fa) {
7224
7198
  if (!e.includes(r.id) || await Ln(r.configFileName) === null) continue;
7225
7199
  let i = t && r.id === "unit" ? ["--coverage"] : [];
7226
- await U(`${la[n] ?? ""} ${r.label}`, r.command, [...r.arguments, ...i]), n += 1;
7200
+ await W(`${da[n] ?? ""} ${r.label}`, r.command, [...r.arguments, ...i]), n += 1;
7227
7201
  }
7228
7202
  if (n === 0) {
7229
7203
  console.warn("\n⚠️ No tests configured for this project.\n");
@@ -7234,7 +7208,7 @@ async function ya(e = ["unit"], t = !1) {
7234
7208
  console.error("❌ Error testing project", e), process.exit(1);
7235
7209
  }
7236
7210
  }
7237
- async function ba(e, t, n = "./") {
7211
+ async function Sa(e, t, n = "./") {
7238
7212
  if (J(`${e} Bump project version`), t.version == null) t.version = "0.0.001", console.warn(`⚠️ Project version initialised to '${t.version}'.`);
7239
7213
  else {
7240
7214
  let e = t.version, n = t.version.split(".");
@@ -7242,7 +7216,17 @@ async function ba(e, t, n = "./") {
7242
7216
  }
7243
7217
  await Rn(`${n}package.json`, t);
7244
7218
  }
7219
+ async function Ca(e, t, n, r) {
7220
+ if (r.typeId === "app") J(`${e} Register module`), await na();
7221
+ else if (r.typeId === "engine") J(`${e} Register module`), await aa(t, `dpuse-engine-eu/${r.uploadGroupName ?? "unknown"}`), await ia(n);
7222
+ else if (r.uploadGroupName === void 0) J(`${e} Registration NOT required`);
7223
+ else {
7224
+ J(`${e} Register module`);
7225
+ let i = n.id.split("-").slice(2).join("-");
7226
+ await aa(t, `dpuse-engine-eu/${r.uploadGroupName}/${i}`), await ia(n);
7227
+ }
7228
+ }
7245
7229
  //#endregion
7246
- export { Gn as auditDependencies, da as buildProject, Kn as checkConfigFiles, $n as checkDependencies, Li as documentActions, or as documentBundleSizes, Or as documentDependencies, Vr as documentGovernance, Bi as documentOpening, qi as documentUsage, Qi as formatCode, $i as lintCode, fa as publishProject, pa as releaseProject, va as syncProjectWithGitHub, ya as testProject, ta as uploadDirectoryToR2 };
7230
+ export { qn as auditDependencies, pa as buildProject, Jn as checkConfigFiles, tr as checkDependencies, Bi as documentActions, ur as documentBundleSizes, Mr as documentDependencies, Gr as documentGovernance, Ui as documentOpening, Yi as documentUsage, ea as formatCode, ta as lintCode, ma as publishProject, ha as releaseProject, ba as syncProjectWithGitHub, xa as testProject, ra as uploadDirectoryToR2 };
7247
7231
 
7248
7232
  //# sourceMappingURL=dpuse-development.es.js.map