@spotlightjs/overlay 2.5.2 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -375,8 +375,8 @@ function aN(e) {
375
375
  }
376
376
  function u(N, I, h) {
377
377
  I === void 0 && (I = null);
378
- let p = EN(i ? l().pathname : "/", N, I, h);
379
- return Ia(p.pathname.charAt(0) === "/", "relative pathnames are not supported in memory history: " + JSON.stringify(N)), p;
378
+ let O = EN(i ? l().pathname : "/", N, I, h);
379
+ return Ia(O.pathname.charAt(0) === "/", "relative pathnames are not supported in memory history: " + JSON.stringify(N)), O;
380
380
  }
381
381
  function c(N) {
382
382
  return typeof N == "string" ? N : AE(N);
@@ -1168,11 +1168,11 @@ const QN = ["onClick", "relative", "reloadDocument", "replace", "state", "target
1168
1168
  } = P.useContext(jn), I, h = !1;
1169
1169
  if (typeof l == "string" && tp.test(l) && (I = l, ep))
1170
1170
  try {
1171
- let O = new URL(window.location.href), d = l.startsWith("//") ? new URL(O.protocol + l) : new URL(l), m = ci(d.pathname, N);
1172
- d.origin === O.origin && m != null ? l = m + d.search + d.hash : h = !0;
1171
+ let p = new URL(window.location.href), d = l.startsWith("//") ? new URL(p.protocol + l) : new URL(l), m = ci(d.pathname, N);
1172
+ d.origin === p.origin && m != null ? l = m + d.search + d.hash : h = !0;
1173
1173
  } catch {
1174
1174
  }
1175
- let p = MN(l, {
1175
+ let O = MN(l, {
1176
1176
  relative: i
1177
1177
  }), A = ip(l, {
1178
1178
  replace: a,
@@ -1182,14 +1182,14 @@ const QN = ["onClick", "relative", "reloadDocument", "replace", "state", "target
1182
1182
  relative: i,
1183
1183
  unstable_viewTransition: c
1184
1184
  });
1185
- function R(O) {
1186
- r && r(O), O.defaultPrevented || A(O);
1185
+ function S(p) {
1186
+ r && r(p), p.defaultPrevented || A(p);
1187
1187
  }
1188
1188
  return (
1189
1189
  // eslint-disable-next-line jsx-a11y/anchor-has-content
1190
1190
  /* @__PURE__ */ P.createElement("a", Ws({}, f, {
1191
- href: I || p,
1192
- onClick: h || s ? r : R,
1191
+ href: I || O,
1192
+ onClick: h || s ? r : S,
1193
1193
  ref: n,
1194
1194
  target: E
1195
1195
  }))
@@ -1208,16 +1208,16 @@ const QN = ["onClick", "relative", "reloadDocument", "replace", "state", "target
1208
1208
  relative: c.relative
1209
1209
  }), N = Kn(), I = P.useContext(rR), {
1210
1210
  navigator: h
1211
- } = P.useContext(jn), p = I != null && // Conditional usage is OK here because the usage of a data router is static
1211
+ } = P.useContext(jn), O = I != null && // Conditional usage is OK here because the usage of a data router is static
1212
1212
  // eslint-disable-next-line react-hooks/rules-of-hooks
1213
- sp(f) && l === !0, A = h.encodeLocation ? h.encodeLocation(f).pathname : f.pathname, R = N.pathname, O = I && I.navigation && I.navigation.location ? I.navigation.location.pathname : null;
1214
- i || (R = R.toLowerCase(), O = O ? O.toLowerCase() : null, A = A.toLowerCase());
1215
- let d = R === A || !a && R.startsWith(A) && R.charAt(A.length) === "/", m = O != null && (O === A || !a && O.startsWith(A) && O.charAt(A.length) === "/"), _ = {
1213
+ sp(f) && l === !0, A = h.encodeLocation ? h.encodeLocation(f).pathname : f.pathname, S = N.pathname, p = I && I.navigation && I.navigation.location ? I.navigation.location.pathname : null;
1214
+ i || (S = S.toLowerCase(), p = p ? p.toLowerCase() : null, A = A.toLowerCase());
1215
+ let d = S === A || !a && S.startsWith(A) && S.charAt(A.length) === "/", m = p != null && (p === A || !a && p.startsWith(A) && p.charAt(A.length) === "/"), _ = {
1216
1216
  isActive: d,
1217
1217
  isPending: m,
1218
- isTransitioning: p
1218
+ isTransitioning: O
1219
1219
  }, C = d ? r : void 0, L;
1220
- typeof s == "function" ? L = s(_) : L = [s, d ? "active" : null, m ? "pending" : null, p ? "transitioning" : null].filter(Boolean).join(" ");
1220
+ typeof s == "function" ? L = s(_) : L = [s, d ? "active" : null, m ? "pending" : null, O ? "transitioning" : null].filter(Boolean).join(" ");
1221
1221
  let M = typeof o == "function" ? o(_) : o;
1222
1222
  return /* @__PURE__ */ P.createElement(me, Ws({}, c, {
1223
1223
  "aria-current": C,
@@ -2107,29 +2107,29 @@ function Dp({
2107
2107
  }) {
2108
2108
  const [E, l] = P.useState(() => {
2109
2109
  var D;
2110
- const S = {};
2110
+ const R = {};
2111
2111
  for (const g of n) {
2112
- S[g.name] = [];
2112
+ R[g.name] = [];
2113
2113
  for (const y in o)
2114
2114
  if ((D = g.forwardedContentType) != null && D.includes(y))
2115
2115
  for (const U of o[y]) {
2116
2116
  const x = zu(y, { data: U }, g);
2117
- x && S[g.name].push(x);
2117
+ x && R[g.name].push(x);
2118
2118
  }
2119
2119
  }
2120
- return S;
2120
+ return R;
2121
2121
  }), [u, c] = P.useState(!1), [f, N] = P.useState({ count: 0, severe: !1 }), [I, h] = P.useState(e);
2122
2122
  ee("App rerender", E, u, f, I);
2123
- const p = P.useMemo(() => {
2124
- const S = /* @__PURE__ */ new Map();
2123
+ const O = P.useMemo(() => {
2124
+ const R = /* @__PURE__ */ new Map();
2125
2125
  for (const g of n)
2126
2126
  if (g.forwardedContentType)
2127
2127
  for (const y of g.forwardedContentType) {
2128
- let U = S.get(y);
2129
- U || (U = [], S.set(y, U)), U.push(g);
2128
+ let U = R.get(y);
2129
+ U || (U = [], R.set(y, U)), U.push(g);
2130
2130
  }
2131
2131
  const D = /* @__PURE__ */ Object.create(null);
2132
- for (const [g, y] of S.entries()) {
2132
+ for (const [g, y] of R.entries()) {
2133
2133
  const U = (x) => {
2134
2134
  ee(`Received new ${g} event`);
2135
2135
  for (const F of y) {
@@ -2148,28 +2148,28 @@ function Dp({
2148
2148
  return D;
2149
2149
  }, [n]);
2150
2150
  P.useEffect(
2151
- () => Pp(r, p, c),
2152
- [r, p]
2151
+ () => Pp(r, O, c),
2152
+ [r, O]
2153
2153
  );
2154
- const A = P.useMemo(() => bi(), []), R = P.useCallback(
2155
- ({ contentType: S, data: D }) => {
2156
- const g = p[S];
2154
+ const A = P.useMemo(() => bi(), []), S = P.useCallback(
2155
+ ({ contentType: R, data: D }) => {
2156
+ const g = O[R];
2157
2157
  if (!g) {
2158
- ee("Got event for unknown content type:", S);
2158
+ ee("Got event for unknown content type:", R);
2159
2159
  return;
2160
2160
  }
2161
2161
  g({ data: D });
2162
2162
  },
2163
- [p]
2163
+ [O]
2164
2164
  );
2165
2165
  P.useEffect(() => {
2166
- Cp().then((S) => {
2167
- for (const D of S)
2168
- R(D);
2166
+ Cp().then((R) => {
2167
+ for (const D of R)
2168
+ S(D);
2169
2169
  });
2170
- }, [R]);
2171
- const O = Ca(), d = P.useCallback(async () => {
2172
- const { origin: S } = new URL(r), D = `${S}/clear`;
2170
+ }, [S]);
2171
+ const p = Ca(), d = P.useCallback(async () => {
2172
+ const { origin: R } = new URL(r), D = `${R}/clear`;
2173
2173
  try {
2174
2174
  await Lp(), await fetch(D, {
2175
2175
  method: "DELETE",
@@ -2182,24 +2182,24 @@ function Dp({
2182
2182
  for (const g of n)
2183
2183
  l((y) => ({ ...y, [g.name]: [] })), g.reset && g.reset();
2184
2184
  }, [n, r]), m = P.useCallback(
2185
- (S) => {
2186
- ee("Open"), h(!0), S.detail.path && O(S.detail.path);
2185
+ (R) => {
2186
+ ee("Open"), h(!0), R.detail.path && p(R.detail.path);
2187
2187
  },
2188
- [O]
2188
+ [p]
2189
2189
  ), _ = P.useCallback(() => {
2190
2190
  ee("Close"), h(!1);
2191
2191
  }, []), C = P.useCallback(() => {
2192
- ee("Toggle"), h((S) => !S);
2192
+ ee("Toggle"), h((R) => !R);
2193
2193
  }, []), L = P.useCallback(
2194
- (S) => {
2195
- ee("Navigate"), O(S.detail);
2194
+ (R) => {
2195
+ ee("Navigate"), p(R.detail);
2196
2196
  },
2197
- [O]
2197
+ [p]
2198
2198
  ), M = P.useCallback(
2199
- ({ detail: S }) => {
2200
- R(S), hp(S);
2199
+ ({ detail: R }) => {
2200
+ S(R), hp(R);
2201
2201
  },
2202
- [R]
2202
+ [S]
2203
2203
  );
2204
2204
  return cR("F12", ["ctrlKey"], C), P.useEffect(() => (ee("useEffect: Adding event listeners"), A.addEventListener("open", m), A.addEventListener("close", _), A.addEventListener("navigate", L), A.addEventListener("clearEvents", d), A.addEventListener("event", M), () => {
2205
2205
  ee("useEffect[destructor]: Removing event listeners"), A.removeEventListener("open", m), A.removeEventListener("close", _), A.removeEventListener("navigate", L), A.removeEventListener("clearEvents", d), A.removeEventListener("event", M);
@@ -2765,15 +2765,15 @@ var hR = { exports: {} };
2765
2765
  (function(n, r) {
2766
2766
  e.exports = r();
2767
2767
  })(ce, function() {
2768
- var n = 1e3, r = 6e4, i = 36e5, s = "millisecond", a = "second", o = "minute", E = "hour", l = "day", u = "week", c = "month", f = "quarter", N = "year", I = "date", h = "Invalid Date", p = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, A = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, R = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(y) {
2768
+ var n = 1e3, r = 6e4, i = 36e5, s = "millisecond", a = "second", o = "minute", E = "hour", l = "day", u = "week", c = "month", f = "quarter", N = "year", I = "date", h = "Invalid Date", O = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, A = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, S = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(y) {
2769
2769
  var U = ["th", "st", "nd", "rd"], x = y % 100;
2770
2770
  return "[" + y + (U[(x - 20) % 10] || U[x] || U[0]) + "]";
2771
- } }, O = function(y, U, x) {
2771
+ } }, p = function(y, U, x) {
2772
2772
  var F = String(y);
2773
2773
  return !F || F.length >= U ? y : "" + Array(U + 1 - F.length).join(x) + y;
2774
- }, d = { s: O, z: function(y) {
2774
+ }, d = { s: p, z: function(y) {
2775
2775
  var U = -y.utcOffset(), x = Math.abs(U), F = Math.floor(x / 60), Y = x % 60;
2776
- return (U <= 0 ? "+" : "-") + O(F, 2, "0") + ":" + O(Y, 2, "0");
2776
+ return (U <= 0 ? "+" : "-") + p(F, 2, "0") + ":" + p(Y, 2, "0");
2777
2777
  }, m: function y(U, x) {
2778
2778
  if (U.date() < x.date())
2779
2779
  return -y(x, U);
@@ -2786,7 +2786,7 @@ var hR = { exports: {} };
2786
2786
  }, u: function(y) {
2787
2787
  return y === void 0;
2788
2788
  } }, m = "en", _ = {};
2789
- _[m] = R;
2789
+ _[m] = S;
2790
2790
  var C = function(y) {
2791
2791
  return y instanceof D;
2792
2792
  }, L = function y(U, x, F) {
@@ -2809,8 +2809,8 @@ var hR = { exports: {} };
2809
2809
  return y.clone();
2810
2810
  var x = typeof U == "object" ? U : {};
2811
2811
  return x.date = y, x.args = arguments, new D(x);
2812
- }, S = d;
2813
- S.l = L, S.i = C, S.w = function(y, U) {
2812
+ }, R = d;
2813
+ R.l = L, R.i = C, R.w = function(y, U) {
2814
2814
  return M(y, { locale: U.$L, utc: U.$u, x: U.$x, $offset: U.$offset });
2815
2815
  };
2816
2816
  var D = function() {
@@ -2823,12 +2823,12 @@ var hR = { exports: {} };
2823
2823
  var Y = F.date, v = F.utc;
2824
2824
  if (Y === null)
2825
2825
  return /* @__PURE__ */ new Date(NaN);
2826
- if (S.u(Y))
2826
+ if (R.u(Y))
2827
2827
  return /* @__PURE__ */ new Date();
2828
2828
  if (Y instanceof Date)
2829
2829
  return new Date(Y);
2830
2830
  if (typeof Y == "string" && !/Z$/i.test(Y)) {
2831
- var B = Y.match(p);
2831
+ var B = Y.match(O);
2832
2832
  if (B) {
2833
2833
  var V = B[2] - 1 || 0, X = (B[7] || "0").substring(0, 3);
2834
2834
  return v ? new Date(Date.UTC(B[1], V, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, X)) : new Date(B[1], V, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, X);
@@ -2840,7 +2840,7 @@ var hR = { exports: {} };
2840
2840
  var x = this.$d;
2841
2841
  this.$y = x.getFullYear(), this.$M = x.getMonth(), this.$D = x.getDate(), this.$W = x.getDay(), this.$H = x.getHours(), this.$m = x.getMinutes(), this.$s = x.getSeconds(), this.$ms = x.getMilliseconds();
2842
2842
  }, U.$utils = function() {
2843
- return S;
2843
+ return R;
2844
2844
  }, U.isValid = function() {
2845
2845
  return this.$d.toString() !== h;
2846
2846
  }, U.isSame = function(x, F) {
@@ -2851,17 +2851,17 @@ var hR = { exports: {} };
2851
2851
  }, U.isBefore = function(x, F) {
2852
2852
  return this.endOf(F) < M(x);
2853
2853
  }, U.$g = function(x, F, Y) {
2854
- return S.u(x) ? this[F] : this.set(Y, x);
2854
+ return R.u(x) ? this[F] : this.set(Y, x);
2855
2855
  }, U.unix = function() {
2856
2856
  return Math.floor(this.valueOf() / 1e3);
2857
2857
  }, U.valueOf = function() {
2858
2858
  return this.$d.getTime();
2859
2859
  }, U.startOf = function(x, F) {
2860
- var Y = this, v = !!S.u(F) || F, B = S.p(x), V = function(mn, Xe) {
2861
- var jt = S.w(Y.$u ? Date.UTC(Y.$y, Xe, mn) : new Date(Y.$y, Xe, mn), Y);
2860
+ var Y = this, v = !!R.u(F) || F, B = R.p(x), V = function(mn, Xe) {
2861
+ var jt = R.w(Y.$u ? Date.UTC(Y.$y, Xe, mn) : new Date(Y.$y, Xe, mn), Y);
2862
2862
  return v ? jt : jt.endOf(l);
2863
2863
  }, X = function(mn, Xe) {
2864
- return S.w(Y.toDate()[mn].apply(Y.toDate("s"), (v ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Xe)), Y);
2864
+ return R.w(Y.toDate()[mn].apply(Y.toDate("s"), (v ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Xe)), Y);
2865
2865
  }, K = this.$W, Re = this.$M, Ne = this.$D, Ot = "set" + (this.$u ? "UTC" : "");
2866
2866
  switch (B) {
2867
2867
  case N:
@@ -2886,7 +2886,7 @@ var hR = { exports: {} };
2886
2886
  }, U.endOf = function(x) {
2887
2887
  return this.startOf(x, !1);
2888
2888
  }, U.$set = function(x, F) {
2889
- var Y, v = S.p(x), B = "set" + (this.$u ? "UTC" : ""), V = (Y = {}, Y[l] = B + "Date", Y[I] = B + "Date", Y[c] = B + "Month", Y[N] = B + "FullYear", Y[E] = B + "Hours", Y[o] = B + "Minutes", Y[a] = B + "Seconds", Y[s] = B + "Milliseconds", Y)[v], X = v === l ? this.$D + (F - this.$W) : F;
2889
+ var Y, v = R.p(x), B = "set" + (this.$u ? "UTC" : ""), V = (Y = {}, Y[l] = B + "Date", Y[I] = B + "Date", Y[c] = B + "Month", Y[N] = B + "FullYear", Y[E] = B + "Hours", Y[o] = B + "Minutes", Y[a] = B + "Seconds", Y[s] = B + "Milliseconds", Y)[v], X = v === l ? this.$D + (F - this.$W) : F;
2890
2890
  if (v === c || v === N) {
2891
2891
  var K = this.clone().set(I, 1);
2892
2892
  K.$d[V](X), K.init(), this.$d = K.set(I, Math.min(this.$D, K.daysInMonth())).$d;
@@ -2896,13 +2896,13 @@ var hR = { exports: {} };
2896
2896
  }, U.set = function(x, F) {
2897
2897
  return this.clone().$set(x, F);
2898
2898
  }, U.get = function(x) {
2899
- return this[S.p(x)]();
2899
+ return this[R.p(x)]();
2900
2900
  }, U.add = function(x, F) {
2901
2901
  var Y, v = this;
2902
2902
  x = Number(x);
2903
- var B = S.p(F), V = function(Re) {
2903
+ var B = R.p(F), V = function(Re) {
2904
2904
  var Ne = M(v);
2905
- return S.w(Ne.date(Ne.date() + Math.round(Re * x)), v);
2905
+ return R.w(Ne.date(Ne.date() + Math.round(Re * x)), v);
2906
2906
  };
2907
2907
  if (B === c)
2908
2908
  return this.set(c, this.$M + x);
@@ -2913,17 +2913,17 @@ var hR = { exports: {} };
2913
2913
  if (B === u)
2914
2914
  return V(7);
2915
2915
  var X = (Y = {}, Y[o] = r, Y[E] = i, Y[a] = n, Y)[B] || 1, K = this.$d.getTime() + x * X;
2916
- return S.w(K, this);
2916
+ return R.w(K, this);
2917
2917
  }, U.subtract = function(x, F) {
2918
2918
  return this.add(-1 * x, F);
2919
2919
  }, U.format = function(x) {
2920
2920
  var F = this, Y = this.$locale();
2921
2921
  if (!this.isValid())
2922
2922
  return Y.invalidDate || h;
2923
- var v = x || "YYYY-MM-DDTHH:mm:ssZ", B = S.z(this), V = this.$H, X = this.$m, K = this.$M, Re = Y.weekdays, Ne = Y.months, Ot = Y.meridiem, He = function(Xe, jt, Br, qi) {
2923
+ var v = x || "YYYY-MM-DDTHH:mm:ssZ", B = R.z(this), V = this.$H, X = this.$m, K = this.$M, Re = Y.weekdays, Ne = Y.months, Ot = Y.meridiem, He = function(Xe, jt, Br, qi) {
2924
2924
  return Xe && (Xe[jt] || Xe(F, v)) || Br[jt].slice(0, qi);
2925
2925
  }, It = function(Xe) {
2926
- return S.s(V % 12 || 12, Xe, "0");
2926
+ return R.s(V % 12 || 12, Xe, "0");
2927
2927
  }, mn = Ot || function(Xe, jt, Br) {
2928
2928
  var qi = Xe < 12 ? "AM" : "PM";
2929
2929
  return Br ? qi.toLowerCase() : qi;
@@ -2934,11 +2934,11 @@ var hR = { exports: {} };
2934
2934
  case "YY":
2935
2935
  return String(F.$y).slice(-2);
2936
2936
  case "YYYY":
2937
- return S.s(F.$y, 4, "0");
2937
+ return R.s(F.$y, 4, "0");
2938
2938
  case "M":
2939
2939
  return K + 1;
2940
2940
  case "MM":
2941
- return S.s(K + 1, 2, "0");
2941
+ return R.s(K + 1, 2, "0");
2942
2942
  case "MMM":
2943
2943
  return He(Y.monthsShort, K, Ne, 3);
2944
2944
  case "MMMM":
@@ -2946,7 +2946,7 @@ var hR = { exports: {} };
2946
2946
  case "D":
2947
2947
  return F.$D;
2948
2948
  case "DD":
2949
- return S.s(F.$D, 2, "0");
2949
+ return R.s(F.$D, 2, "0");
2950
2950
  case "d":
2951
2951
  return String(F.$W);
2952
2952
  case "dd":
@@ -2958,7 +2958,7 @@ var hR = { exports: {} };
2958
2958
  case "H":
2959
2959
  return String(V);
2960
2960
  case "HH":
2961
- return S.s(V, 2, "0");
2961
+ return R.s(V, 2, "0");
2962
2962
  case "h":
2963
2963
  return It(1);
2964
2964
  case "hh":
@@ -2970,13 +2970,13 @@ var hR = { exports: {} };
2970
2970
  case "m":
2971
2971
  return String(X);
2972
2972
  case "mm":
2973
- return S.s(X, 2, "0");
2973
+ return R.s(X, 2, "0");
2974
2974
  case "s":
2975
2975
  return String(F.$s);
2976
2976
  case "ss":
2977
- return S.s(F.$s, 2, "0");
2977
+ return R.s(F.$s, 2, "0");
2978
2978
  case "SSS":
2979
- return S.s(F.$ms, 3, "0");
2979
+ return R.s(F.$ms, 3, "0");
2980
2980
  case "Z":
2981
2981
  return B;
2982
2982
  }
@@ -2986,8 +2986,8 @@ var hR = { exports: {} };
2986
2986
  }, U.utcOffset = function() {
2987
2987
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
2988
2988
  }, U.diff = function(x, F, Y) {
2989
- var v, B = this, V = S.p(F), X = M(x), K = (X.utcOffset() - this.utcOffset()) * r, Re = this - X, Ne = function() {
2990
- return S.m(B, X);
2989
+ var v, B = this, V = R.p(F), X = M(x), K = (X.utcOffset() - this.utcOffset()) * r, Re = this - X, Ne = function() {
2990
+ return R.m(B, X);
2991
2991
  };
2992
2992
  switch (V) {
2993
2993
  case N:
@@ -3017,7 +3017,7 @@ var hR = { exports: {} };
3017
3017
  default:
3018
3018
  v = Re;
3019
3019
  }
3020
- return Y ? v : S.a(v);
3020
+ return Y ? v : R.a(v);
3021
3021
  }, U.daysInMonth = function() {
3022
3022
  return this.endOf(c).$D;
3023
3023
  }, U.$locale = function() {
@@ -3028,7 +3028,7 @@ var hR = { exports: {} };
3028
3028
  var Y = this.clone(), v = L(x, F, !0);
3029
3029
  return v && (Y.$L = v), Y;
3030
3030
  }, U.clone = function() {
3031
- return S.w(this.$d, this);
3031
+ return R.w(this.$d, this);
3032
3032
  }, U.toDate = function() {
3033
3033
  return new Date(this.valueOf());
3034
3034
  }, U.toJSON = function() {
@@ -3064,20 +3064,20 @@ var CR = { exports: {} };
3064
3064
  return s.fromToBase(l, u, c, f);
3065
3065
  }
3066
3066
  i.en.relativeTime = a, s.fromToBase = function(l, u, c, f, N) {
3067
- for (var I, h, p, A = c.$locale().relativeTime || a, R = n.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], O = R.length, d = 0; d < O; d += 1) {
3068
- var m = R[d];
3067
+ for (var I, h, O, A = c.$locale().relativeTime || a, S = n.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], p = S.length, d = 0; d < p; d += 1) {
3068
+ var m = S[d];
3069
3069
  m.d && (I = f ? i(l).diff(c, m.d, !0) : c.diff(l, m.d, !0));
3070
3070
  var _ = (n.rounding || Math.round)(Math.abs(I));
3071
- if (p = I > 0, _ <= m.r || !m.r) {
3072
- _ <= 1 && d > 0 && (m = R[d - 1]);
3071
+ if (O = I > 0, _ <= m.r || !m.r) {
3072
+ _ <= 1 && d > 0 && (m = S[d - 1]);
3073
3073
  var C = A[m.l];
3074
- N && (_ = N("" + _)), h = typeof C == "string" ? C.replace("%d", _) : C(_, u, m.l, p);
3074
+ N && (_ = N("" + _)), h = typeof C == "string" ? C.replace("%d", _) : C(_, u, m.l, O);
3075
3075
  break;
3076
3076
  }
3077
3077
  }
3078
3078
  if (u)
3079
3079
  return h;
3080
- var L = p ? A.future : A.past;
3080
+ var L = O ? A.future : A.past;
3081
3081
  return typeof L == "function" ? L(h) : L.replace("%s", h);
3082
3082
  }, s.to = function(l, u) {
3083
3083
  return o(l, u, this, !0);
@@ -3301,7 +3301,7 @@ function Pl(e) {
3301
3301
  }
3302
3302
  );
3303
3303
  }
3304
- const _O = P.lazy(() => import("./main-077714b2.js").then((e) => e.m)), hO = () => {
3304
+ const _O = P.lazy(() => import("./main-75aabe1c.js").then((e) => e.m)), hO = () => {
3305
3305
  };
3306
3306
  function co({
3307
3307
  data: e,
@@ -3663,9 +3663,9 @@ var PR = { exports: {} };
3663
3663
  E === void 0 && (E = "YYYY-MM-DDTHH:mm:ssZ");
3664
3664
  var l = this.$locale().formats, u = function(c, f) {
3665
3665
  return c.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(N, I, h) {
3666
- var p = h && h.toUpperCase();
3667
- return I || f[h] || n[h] || f[p].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(A, R, O) {
3668
- return R || O.slice(1);
3666
+ var O = h && h.toUpperCase();
3667
+ return I || f[h] || n[h] || f[O].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(A, S, p) {
3668
+ return S || p.slice(1);
3669
3669
  });
3670
3670
  });
3671
3671
  }(E, l === void 0 ? {} : l);
@@ -4406,23 +4406,23 @@ function fI(e, t, n, r, i, s, a, o) {
4406
4406
  const E = e / 2 + r + o, l = {
4407
4407
  x: t + e / 2 - s / 2,
4408
4408
  y: n + e / 2 + a / 2
4409
- }, u = Object.values(i).reduce((g, y) => g + y, 0), c = -90, f = (g) => g / u * 360, [N, I, h, p, A] = [
4409
+ }, u = Object.values(i).reduce((g, y) => g + y, 0), c = -90, f = (g) => g / u * 360, [N, I, h, O, A] = [
4410
4410
  i.lcp,
4411
4411
  i.fcp,
4412
4412
  i.fid,
4413
4413
  i.cls,
4414
4414
  i.ttfb
4415
- ].map(f), R = l.x + E * Math.cos((c + N / 2) * Math.PI / 180), O = l.y + E * Math.sin((c + N / 2) * Math.PI / 180), d = l.x + E * Math.cos((c + N + I / 2) * Math.PI / 180), m = l.y + E * Math.sin((c + N + I / 2) * Math.PI / 180), _ = l.x + E * Math.cos((c + N + I + h / 2) * Math.PI / 180), C = l.y + E * Math.sin((c + N + I + h / 2) * Math.PI / 180), L = l.x + E * Math.cos((c + N + I + h + p / 2) * Math.PI / 180), M = l.y + E * Math.sin((c + N + I + h + p / 2) * Math.PI / 180), S = l.x - 12 + E * Math.cos((c + N + I + h + p + A / 2) * Math.PI / 180), D = l.y + E * Math.sin((c + N + I + h + p + A / 2) * Math.PI / 180);
4415
+ ].map(f), S = l.x + E * Math.cos((c + N / 2) * Math.PI / 180), p = l.y + E * Math.sin((c + N / 2) * Math.PI / 180), d = l.x + E * Math.cos((c + N + I / 2) * Math.PI / 180), m = l.y + E * Math.sin((c + N + I / 2) * Math.PI / 180), _ = l.x + E * Math.cos((c + N + I + h / 2) * Math.PI / 180), C = l.y + E * Math.sin((c + N + I + h / 2) * Math.PI / 180), L = l.x + E * Math.cos((c + N + I + h + O / 2) * Math.PI / 180), M = l.y + E * Math.sin((c + N + I + h + O / 2) * Math.PI / 180), R = l.x - 12 + E * Math.cos((c + N + I + h + O + A / 2) * Math.PI / 180), D = l.y + E * Math.sin((c + N + I + h + O + A / 2) * Math.PI / 180);
4416
4416
  return {
4417
- lcpX: R,
4418
- lcpY: O,
4417
+ lcpX: S,
4418
+ lcpY: p,
4419
4419
  fcpX: d,
4420
4420
  fcpY: m,
4421
4421
  fidX: _,
4422
4422
  fidY: C,
4423
4423
  clsX: L,
4424
4424
  clsY: M,
4425
- ttfbX: S,
4425
+ ttfbX: R,
4426
4426
  ttfbY: D
4427
4427
  };
4428
4428
  }
@@ -4520,21 +4520,21 @@ function OI({
4520
4520
  onBlur: u,
4521
4521
  ...c
4522
4522
  }) {
4523
- const f = n / 2, N = n / 4, I = n / 2 - r / 2, h = 2 * Math.PI * I, p = P.useMemo(() => {
4524
- const A = t.reduce((O, d) => O + d, 0);
4525
- let R = NI;
4526
- return t.flatMap((O, d) => {
4527
- const m = Math.min(Math.max(e[d], 0), O), _ = e.length > 1 ? pI : 0, C = (1 - Math.max(O - _, 0) / A) * h, L = (1 - Math.max(m - _, 0) / A) * h, M = R;
4528
- R += 360 * O / A;
4529
- const S = I + r / 2, D = `${S}-${o[d]}-${a[d]}`;
4523
+ const f = n / 2, N = n / 4, I = n / 2 - r / 2, h = 2 * Math.PI * I, O = P.useMemo(() => {
4524
+ const A = t.reduce((p, d) => p + d, 0);
4525
+ let S = NI;
4526
+ return t.flatMap((p, d) => {
4527
+ const m = Math.min(Math.max(e[d], 0), p), _ = e.length > 1 ? pI : 0, C = (1 - Math.max(p - _, 0) / A) * h, L = (1 - Math.max(m - _, 0) / A) * h, M = S;
4528
+ S += 360 * p / A;
4529
+ const R = I + r / 2, D = `${R}-${o[d]}-${a[d]}`;
4530
4530
  return [
4531
4531
  /* @__PURE__ */ T.jsx(
4532
4532
  "circle",
4533
4533
  {
4534
4534
  strokeDashoffset: C,
4535
4535
  r: I,
4536
- cx: S,
4537
- cy: S,
4536
+ cx: R,
4537
+ cy: R,
4538
4538
  onMouseOver: () => l == null ? void 0 : l[d](),
4539
4539
  onFocus: () => l == null ? void 0 : l[d](),
4540
4540
  onMouseLeave: () => u == null ? void 0 : u(),
@@ -4557,8 +4557,8 @@ function OI({
4557
4557
  strokeDashoffset: L,
4558
4558
  strokeLinecap: E,
4559
4559
  r: I,
4560
- cx: S,
4561
- cy: S,
4560
+ cx: R,
4561
+ cy: R,
4562
4562
  onMouseOver: () => l == null ? void 0 : l[d](),
4563
4563
  onFocus: () => l == null ? void 0 : l[d](),
4564
4564
  onMouseLeave: () => u == null ? void 0 : u(),
@@ -4591,7 +4591,7 @@ function OI({
4591
4591
  ]);
4592
4592
  return /* @__PURE__ */ T.jsxs("svg", { className: "relative", role: "img", height: I * 2 + r, width: I * 2 + r, ...c, children: [
4593
4593
  /* @__PURE__ */ T.jsx("title", { children: "Web Vitals Breakdown" }),
4594
- p,
4594
+ O,
4595
4595
  /* @__PURE__ */ T.jsx(
4596
4596
  "foreignObject",
4597
4597
  {
@@ -4704,13 +4704,13 @@ const hI = ({
4704
4704
  }) => {
4705
4705
  const [u, c] = P.useState(null), [f, N] = P.useState({ x: 0, y: 0 }), I = P.useRef(null), h = _I({
4706
4706
  elem: I,
4707
- onPositionChange: (S) => {
4708
- if (S) {
4709
- const { left: D, top: g } = S;
4707
+ onPositionChange: (R) => {
4708
+ if (R) {
4709
+ const { left: D, top: g } = R;
4710
4710
  N({ x: D, y: g });
4711
4711
  }
4712
4712
  }
4713
- }), { lcpX: p, lcpY: A, fcpX: R, fcpY: O, fidX: d, fidY: m, clsX: _, clsY: C, ttfbX: L, ttfbY: M } = fI(
4713
+ }), { lcpX: O, lcpY: A, fcpX: S, fcpY: p, fidX: d, fidY: m, clsX: _, clsY: C, ttfbX: L, ttfbY: M } = fI(
4714
4714
  r,
4715
4715
  s,
4716
4716
  a,
@@ -4743,7 +4743,7 @@ const hI = ({
4743
4743
  {
4744
4744
  webVital: "lcp",
4745
4745
  coordinates: {
4746
- x: p,
4746
+ x: O,
4747
4747
  y: A
4748
4748
  }
4749
4749
  }
@@ -4753,8 +4753,8 @@ const hI = ({
4753
4753
  {
4754
4754
  webVital: "fcp",
4755
4755
  coordinates: {
4756
- x: R,
4757
- y: O
4756
+ x: S,
4757
+ y: p
4758
4758
  }
4759
4759
  }
4760
4760
  ),
@@ -13987,29 +13987,29 @@ var jR = { exports: {} };
13987
13987
  var I = u[N];
13988
13988
  if (I.isComplete) {
13989
13989
  if (I.finish(), I.data !== a.fail) {
13990
- for (var h = I.wantedBy, p = h.length; p--; ) {
13991
- var A = h[p];
13990
+ for (var h = I.wantedBy, O = h.length; O--; ) {
13991
+ var A = h[O];
13992
13992
  this.complete(A, I);
13993
13993
  }
13994
13994
  if (I.reference === this.index) {
13995
- var R = I.rule.name;
13996
- (this.completed[R] = this.completed[R] || []).push(I);
13995
+ var S = I.rule.name;
13996
+ (this.completed[S] = this.completed[S] || []).push(I);
13997
13997
  }
13998
13998
  }
13999
13999
  } else {
14000
- var R = I.rule.symbols[I.dot];
14001
- if (typeof R != "string") {
14000
+ var S = I.rule.symbols[I.dot];
14001
+ if (typeof S != "string") {
14002
14002
  this.scannable.push(I);
14003
14003
  continue;
14004
14004
  }
14005
- if (c[R]) {
14006
- if (c[R].push(I), f.hasOwnProperty(R))
14007
- for (var O = f[R], p = 0; p < O.length; p++) {
14008
- var d = O[p];
14005
+ if (c[S]) {
14006
+ if (c[S].push(I), f.hasOwnProperty(S))
14007
+ for (var p = f[S], O = 0; O < p.length; O++) {
14008
+ var d = p[O];
14009
14009
  this.complete(I, d);
14010
14010
  }
14011
14011
  } else
14012
- c[R] = [I], this.predict(R);
14012
+ c[S] = [I], this.predict(S);
14013
14013
  }
14014
14014
  }
14015
14015
  }, r.prototype.predict = function(l) {
@@ -14065,17 +14065,17 @@ var jR = { exports: {} };
14065
14065
  var N = this.index - this.lastLineBreak, I = String(this.line).length;
14066
14066
  return u += " at line " + this.line + " col " + N + `:
14067
14067
 
14068
- `, u += f.map(function(p, A) {
14069
- return h(this.line - f.length + A + 1, I) + " " + p;
14068
+ `, u += f.map(function(O, A) {
14069
+ return h(this.line - f.length + A + 1, I) + " " + O;
14070
14070
  }, this).join(`
14071
14071
  `), u += `
14072
14072
  ` + h("", I + N) + `^
14073
14073
  `, u;
14074
14074
  } else
14075
14075
  return u + " at index " + (this.index - 1);
14076
- function h(p, A) {
14077
- var R = String(p);
14078
- return Array(A - R.length + 1).join(" ") + R;
14076
+ function h(O, A) {
14077
+ var S = String(O);
14078
+ return Array(A - S.length + 1).join(" ") + S;
14079
14079
  }
14080
14080
  };
14081
14081
  function a(l, u, c) {
@@ -14110,9 +14110,9 @@ var jR = { exports: {} };
14110
14110
  this.options.keepHistory || delete this.table[this.current - 1];
14111
14111
  var I = this.current + 1, h = new r(this.grammar, I);
14112
14112
  this.table.push(h);
14113
- for (var p = c.text !== void 0 ? c.text : c.value, A = u.constructor === s ? c.value : c, R = N.scannable, O = R.length; O--; ) {
14114
- var d = R[O], m = d.rule.symbols[d.dot];
14115
- if (m.test ? m.test(A) : m.type ? m.type === c.type : m.literal === p) {
14113
+ for (var O = c.text !== void 0 ? c.text : c.value, A = u.constructor === s ? c.value : c, S = N.scannable, p = S.length; p--; ) {
14114
+ var d = S[p], m = d.rule.symbols[d.dot];
14115
+ if (m.test ? m.test(A) : m.type ? m.type === c.type : m.literal === O) {
14116
14116
  var _ = d.nextState({ data: A, token: c, isToken: !0, reference: I - 1 });
14117
14117
  h.states.push(_);
14118
14118
  }
@@ -14133,8 +14133,8 @@ var jR = { exports: {} };
14133
14133
  }, a.prototype.reportErrorCommon = function(l, u) {
14134
14134
  var c = [];
14135
14135
  c.push(l);
14136
- var f = this.table.length - 2, N = this.table[f], I = N.states.filter(function(p) {
14137
- var A = p.rule.symbols[p.dot];
14136
+ var f = this.table.length - 2, N = this.table[f], I = N.states.filter(function(O) {
14137
+ var A = O.rule.symbols[O.dot];
14138
14138
  return A && typeof A != "string";
14139
14139
  });
14140
14140
  if (I.length === 0)
@@ -14143,12 +14143,12 @@ var jR = { exports: {} };
14143
14143
  else {
14144
14144
  c.push("Unexpected " + u + `. Instead, I was expecting to see one of the following:
14145
14145
  `);
14146
- var h = I.map(function(p) {
14147
- return this.buildFirstStateStack(p, []) || [p];
14146
+ var h = I.map(function(O) {
14147
+ return this.buildFirstStateStack(O, []) || [O];
14148
14148
  }, this);
14149
- h.forEach(function(p) {
14150
- var A = p[0], R = A.rule.symbols[A.dot], O = this.getSymbolDisplay(R);
14151
- c.push("A " + O + " based on:"), this.displayStateStack(p, c);
14149
+ h.forEach(function(O) {
14150
+ var A = O[0], S = A.rule.symbols[A.dot], p = this.getSymbolDisplay(S);
14151
+ c.push("A " + p + " based on:"), this.displayStateStack(O, c);
14152
14152
  }, this);
14153
14153
  }
14154
14154
  return c.push(""), c.join(`
@@ -15773,15 +15773,15 @@ const d1 = ({
15773
15773
  },
15774
15774
  query: E
15775
15775
  }) => {
15776
- var R, O;
15776
+ var S, p;
15777
15777
  const { spanId: l } = vr(), u = P.useRef(null), [c, f] = P.useState(
15778
15778
  e.transaction && s > 1 && r !== 1 || r >= 15
15779
- ), [N, I] = P.useState(!1), h = _r(e.start_timestamp, e.timestamp), p = (d) => {
15779
+ ), [N, I] = P.useState(!1), h = _r(e.start_timestamp, e.timestamp), O = (d) => {
15780
15780
  if (u.current) {
15781
15781
  const m = u.current.getBoundingClientRect(), C = (d.clientX - m.left) / m.width * 100;
15782
15782
  o(C);
15783
15783
  }
15784
- }, A = E ? e.span_id.includes(E) || ((R = e.op) == null ? void 0 : R.includes(E)) || ((O = e.description) == null ? void 0 : O.includes(E)) : !1;
15784
+ }, A = E ? e.span_id.includes(E) || ((S = e.op) == null ? void 0 : S.includes(E)) || ((p = e.description) == null ? void 0 : p.includes(E)) : !1;
15785
15785
  return /* @__PURE__ */ T.jsxs("li", { className: "pl-4", ref: u, children: [
15786
15786
  /* @__PURE__ */ T.jsxs(
15787
15787
  me,
@@ -15846,7 +15846,7 @@ const d1 = ({
15846
15846
  left: `${a}%`
15847
15847
  },
15848
15848
  children: [
15849
- /* @__PURE__ */ T.jsx(f1, { setIsResizing: I, isResizing: N, handleResize: p }),
15849
+ /* @__PURE__ */ T.jsx(f1, { setIsResizing: I, isResizing: N, handleResize: O }),
15850
15850
  /* @__PURE__ */ T.jsx(
15851
15851
  "div",
15852
15852
  {
@@ -16378,9 +16378,9 @@ var pE = {}, $R = { exports: {} }, it = {}, eS = { exports: {} }, tS = {};
16378
16378
  return a.now() - o;
16379
16379
  };
16380
16380
  }
16381
- var E = [], l = [], u = 1, c = null, f = 3, N = !1, I = !1, h = !1, p = typeof setTimeout == "function" ? setTimeout : null, A = typeof clearTimeout == "function" ? clearTimeout : null, R = typeof setImmediate < "u" ? setImmediate : null;
16381
+ var E = [], l = [], u = 1, c = null, f = 3, N = !1, I = !1, h = !1, O = typeof setTimeout == "function" ? setTimeout : null, A = typeof clearTimeout == "function" ? clearTimeout : null, S = typeof setImmediate < "u" ? setImmediate : null;
16382
16382
  typeof navigator < "u" && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 && navigator.scheduling.isInputPending.bind(navigator.scheduling);
16383
- function O(v) {
16383
+ function p(v) {
16384
16384
  for (var B = n(l); B !== null; ) {
16385
16385
  if (B.callback === null)
16386
16386
  r(l);
@@ -16392,7 +16392,7 @@ var pE = {}, $R = { exports: {} }, it = {}, eS = { exports: {} }, tS = {};
16392
16392
  }
16393
16393
  }
16394
16394
  function d(v) {
16395
- if (h = !1, O(v), !I)
16395
+ if (h = !1, p(v), !I)
16396
16396
  if (n(E) !== null)
16397
16397
  I = !0, F(m);
16398
16398
  else {
@@ -16404,12 +16404,12 @@ var pE = {}, $R = { exports: {} }, it = {}, eS = { exports: {} }, tS = {};
16404
16404
  I = !1, h && (h = !1, A(L), L = -1), N = !0;
16405
16405
  var V = f;
16406
16406
  try {
16407
- for (O(B), c = n(E); c !== null && (!(c.expirationTime > B) || v && !D()); ) {
16407
+ for (p(B), c = n(E); c !== null && (!(c.expirationTime > B) || v && !D()); ) {
16408
16408
  var X = c.callback;
16409
16409
  if (typeof X == "function") {
16410
16410
  c.callback = null, f = c.priorityLevel;
16411
16411
  var K = X(c.expirationTime <= B);
16412
- B = e.unstable_now(), typeof K == "function" ? c.callback = K : c === n(E) && r(E), O(B);
16412
+ B = e.unstable_now(), typeof K == "function" ? c.callback = K : c === n(E) && r(E), p(B);
16413
16413
  } else
16414
16414
  r(E);
16415
16415
  c = n(E);
@@ -16425,14 +16425,14 @@ var pE = {}, $R = { exports: {} }, it = {}, eS = { exports: {} }, tS = {};
16425
16425
  c = null, f = V, N = !1;
16426
16426
  }
16427
16427
  }
16428
- var _ = !1, C = null, L = -1, M = 5, S = -1;
16428
+ var _ = !1, C = null, L = -1, M = 5, R = -1;
16429
16429
  function D() {
16430
- return !(e.unstable_now() - S < M);
16430
+ return !(e.unstable_now() - R < M);
16431
16431
  }
16432
16432
  function g() {
16433
16433
  if (C !== null) {
16434
16434
  var v = e.unstable_now();
16435
- S = v;
16435
+ R = v;
16436
16436
  var B = !0;
16437
16437
  try {
16438
16438
  B = C(!0, v);
@@ -16443,9 +16443,9 @@ var pE = {}, $R = { exports: {} }, it = {}, eS = { exports: {} }, tS = {};
16443
16443
  _ = !1;
16444
16444
  }
16445
16445
  var y;
16446
- if (typeof R == "function")
16446
+ if (typeof S == "function")
16447
16447
  y = function() {
16448
- R(g);
16448
+ S(g);
16449
16449
  };
16450
16450
  else if (typeof MessageChannel < "u") {
16451
16451
  var U = new MessageChannel(), x = U.port2;
@@ -16454,13 +16454,13 @@ var pE = {}, $R = { exports: {} }, it = {}, eS = { exports: {} }, tS = {};
16454
16454
  };
16455
16455
  } else
16456
16456
  y = function() {
16457
- p(g, 0);
16457
+ O(g, 0);
16458
16458
  };
16459
16459
  function F(v) {
16460
16460
  C = v, _ || (_ = !0, y());
16461
16461
  }
16462
16462
  function Y(v, B) {
16463
- L = p(function() {
16463
+ L = O(function() {
16464
16464
  v(e.unstable_now());
16465
16465
  }, B);
16466
16466
  }
@@ -18305,14 +18305,14 @@ function wo(e, t, n, r, i) {
18305
18305
  case "pointerup":
18306
18306
  N = tA;
18307
18307
  }
18308
- var h = (t & 4) !== 0, p = !h && e === "scroll", A = h ? f !== null ? f + "Capture" : null : f;
18308
+ var h = (t & 4) !== 0, O = !h && e === "scroll", A = h ? f !== null ? f + "Capture" : null : f;
18309
18309
  h = [];
18310
- for (var R = l, O; R !== null; ) {
18311
- O = R;
18312
- var d = O.stateNode;
18313
- if (O.tag === 5 && d !== null && (O = d, A !== null && (d = fi(R, A), d != null && h.push(hi(R, d, O)))), p)
18310
+ for (var S = l, p; S !== null; ) {
18311
+ p = S;
18312
+ var d = p.stateNode;
18313
+ if (p.tag === 5 && d !== null && (p = d, A !== null && (d = fi(S, A), d != null && h.push(hi(S, d, p)))), O)
18314
18314
  break;
18315
- R = R.return;
18315
+ S = S.return;
18316
18316
  }
18317
18317
  0 < h.length && (f = new N(f, I, null, n, u), c.push({ event: f, listeners: h }));
18318
18318
  }
@@ -18321,18 +18321,18 @@ function wo(e, t, n, r, i) {
18321
18321
  e: {
18322
18322
  if (f = e === "mouseover" || e === "pointerover", N = e === "mouseout" || e === "pointerout", f && n !== vE && (I = n.relatedTarget || n.fromElement) && (yn(I) || I[Ft]))
18323
18323
  break e;
18324
- if ((N || f) && (f = u.window === u ? u : (f = u.ownerDocument) ? f.defaultView || f.parentWindow : window, N ? (I = n.relatedTarget || n.toElement, N = l, I = I ? yn(I) : null, I !== null && (p = Qn(I), I !== p || I.tag !== 5 && I.tag !== 6) && (I = null)) : (N = null, I = l), N !== I)) {
18325
- if (h = $T, d = "onMouseLeave", A = "onMouseEnter", R = "mouse", (e === "pointerout" || e === "pointerover") && (h = tA, d = "onPointerLeave", A = "onPointerEnter", R = "pointer"), p = N == null ? f : or(N), O = I == null ? f : or(I), f = new h(d, R + "leave", N, n, u), f.target = p, f.relatedTarget = O, d = null, yn(u) === l && (h = new h(A, R + "enter", I, n, u), h.target = O, h.relatedTarget = p, d = h), p = d, N && I)
18324
+ if ((N || f) && (f = u.window === u ? u : (f = u.ownerDocument) ? f.defaultView || f.parentWindow : window, N ? (I = n.relatedTarget || n.toElement, N = l, I = I ? yn(I) : null, I !== null && (O = Qn(I), I !== O || I.tag !== 5 && I.tag !== 6) && (I = null)) : (N = null, I = l), N !== I)) {
18325
+ if (h = $T, d = "onMouseLeave", A = "onMouseEnter", S = "mouse", (e === "pointerout" || e === "pointerover") && (h = tA, d = "onPointerLeave", A = "onPointerEnter", S = "pointer"), O = N == null ? f : or(N), p = I == null ? f : or(I), f = new h(d, S + "leave", N, n, u), f.target = O, f.relatedTarget = p, d = null, yn(u) === l && (h = new h(A, S + "enter", I, n, u), h.target = p, h.relatedTarget = O, d = h), O = d, N && I)
18326
18326
  t: {
18327
- for (h = N, A = I, R = 0, O = h; O; O = er(O))
18328
- R++;
18329
- for (O = 0, d = A; d; d = er(d))
18330
- O++;
18331
- for (; 0 < R - O; )
18332
- h = er(h), R--;
18333
- for (; 0 < O - R; )
18334
- A = er(A), O--;
18335
- for (; R--; ) {
18327
+ for (h = N, A = I, S = 0, p = h; p; p = er(p))
18328
+ S++;
18329
+ for (p = 0, d = A; d; d = er(d))
18330
+ p++;
18331
+ for (; 0 < S - p; )
18332
+ h = er(h), S--;
18333
+ for (; 0 < p - S; )
18334
+ A = er(A), p--;
18335
+ for (; S--; ) {
18336
18336
  if (h === A || A !== null && h === A.alternate)
18337
18337
  break t;
18338
18338
  h = er(h), A = er(A);
@@ -18341,7 +18341,7 @@ function wo(e, t, n, r, i) {
18341
18341
  }
18342
18342
  else
18343
18343
  h = null;
18344
- N !== null && AA(c, f, N, h, !1), I !== null && p !== null && AA(c, p, I, h, !0);
18344
+ N !== null && AA(c, f, N, h, !1), I !== null && O !== null && AA(c, O, I, h, !0);
18345
18345
  }
18346
18346
  }
18347
18347
  e: {
@@ -18972,176 +18972,176 @@ function CA(e) {
18972
18972
  return t(e._payload);
18973
18973
  }
18974
18974
  function of(e) {
18975
- function t(A, R) {
18975
+ function t(A, S) {
18976
18976
  if (e) {
18977
- var O = A.deletions;
18978
- O === null ? (A.deletions = [R], A.flags |= 16) : O.push(R);
18977
+ var p = A.deletions;
18978
+ p === null ? (A.deletions = [S], A.flags |= 16) : p.push(S);
18979
18979
  }
18980
18980
  }
18981
- function n(A, R) {
18981
+ function n(A, S) {
18982
18982
  if (!e)
18983
18983
  return null;
18984
- for (; R !== null; )
18985
- t(A, R), R = R.sibling;
18984
+ for (; S !== null; )
18985
+ t(A, S), S = S.sibling;
18986
18986
  return null;
18987
18987
  }
18988
- function r(A, R) {
18989
- for (A = /* @__PURE__ */ new Map(); R !== null; )
18990
- R.key !== null ? A.set(R.key, R) : A.set(R.index, R), R = R.sibling;
18988
+ function r(A, S) {
18989
+ for (A = /* @__PURE__ */ new Map(); S !== null; )
18990
+ S.key !== null ? A.set(S.key, S) : A.set(S.index, S), S = S.sibling;
18991
18991
  return A;
18992
18992
  }
18993
- function i(A, R) {
18994
- return A = Sn(A, R), A.index = 0, A.sibling = null, A;
18993
+ function i(A, S) {
18994
+ return A = Sn(A, S), A.index = 0, A.sibling = null, A;
18995
18995
  }
18996
- function s(A, R, O) {
18997
- return A.index = O, e ? (O = A.alternate, O !== null ? (O = O.index, O < R ? (A.flags |= 2, R) : O) : (A.flags |= 2, R)) : (A.flags |= 1048576, R);
18996
+ function s(A, S, p) {
18997
+ return A.index = p, e ? (p = A.alternate, p !== null ? (p = p.index, p < S ? (A.flags |= 2, S) : p) : (A.flags |= 2, S)) : (A.flags |= 1048576, S);
18998
18998
  }
18999
18999
  function a(A) {
19000
19000
  return e && A.alternate === null && (A.flags |= 2), A;
19001
19001
  }
19002
- function o(A, R, O, d) {
19003
- return R === null || R.tag !== 6 ? (R = Wo(O, A.mode, d), R.return = A, R) : (R = i(R, O), R.return = A, R);
19002
+ function o(A, S, p, d) {
19003
+ return S === null || S.tag !== 6 ? (S = Wo(p, A.mode, d), S.return = A, S) : (S = i(S, p), S.return = A, S);
19004
19004
  }
19005
- function E(A, R, O, d) {
19006
- var m = O.type;
19007
- return m === rr ? u(A, R, O.props.children, d, O.key) : R !== null && (R.elementType === m || typeof m == "object" && m !== null && m.$$typeof === zt && CA(m) === R.type) ? (d = i(R, O.props), d.ref = Kr(A, R, O), d.return = A, d) : (d = bs(O.type, O.key, O.props, null, A.mode, d), d.ref = Kr(A, R, O), d.return = A, d);
19005
+ function E(A, S, p, d) {
19006
+ var m = p.type;
19007
+ return m === rr ? u(A, S, p.props.children, d, p.key) : S !== null && (S.elementType === m || typeof m == "object" && m !== null && m.$$typeof === zt && CA(m) === S.type) ? (d = i(S, p.props), d.ref = Kr(A, S, p), d.return = A, d) : (d = bs(p.type, p.key, p.props, null, A.mode, d), d.ref = Kr(A, S, p), d.return = A, d);
19008
19008
  }
19009
- function l(A, R, O, d) {
19010
- return R === null || R.tag !== 4 || R.stateNode.containerInfo !== O.containerInfo || R.stateNode.implementation !== O.implementation ? (R = Xo(O, A.mode, d), R.return = A, R) : (R = i(R, O.children || []), R.return = A, R);
19009
+ function l(A, S, p, d) {
19010
+ return S === null || S.tag !== 4 || S.stateNode.containerInfo !== p.containerInfo || S.stateNode.implementation !== p.implementation ? (S = Xo(p, A.mode, d), S.return = A, S) : (S = i(S, p.children || []), S.return = A, S);
19011
19011
  }
19012
- function u(A, R, O, d, m) {
19013
- return R === null || R.tag !== 7 ? (R = Gn(O, A.mode, d, m), R.return = A, R) : (R = i(R, O), R.return = A, R);
19012
+ function u(A, S, p, d, m) {
19013
+ return S === null || S.tag !== 7 ? (S = Gn(p, A.mode, d, m), S.return = A, S) : (S = i(S, p), S.return = A, S);
19014
19014
  }
19015
- function c(A, R, O) {
19016
- if (typeof R == "string" && R !== "" || typeof R == "number")
19017
- return R = Wo("" + R, A.mode, O), R.return = A, R;
19018
- if (typeof R == "object" && R !== null) {
19019
- switch (R.$$typeof) {
19015
+ function c(A, S, p) {
19016
+ if (typeof S == "string" && S !== "" || typeof S == "number")
19017
+ return S = Wo("" + S, A.mode, p), S.return = A, S;
19018
+ if (typeof S == "object" && S !== null) {
19019
+ switch (S.$$typeof) {
19020
19020
  case ts:
19021
- return O = bs(R.type, R.key, R.props, null, A.mode, O), O.ref = Kr(A, null, R), O.return = A, O;
19021
+ return p = bs(S.type, S.key, S.props, null, A.mode, p), p.ref = Kr(A, null, S), p.return = A, p;
19022
19022
  case nr:
19023
- return R = Xo(R, A.mode, O), R.return = A, R;
19023
+ return S = Xo(S, A.mode, p), S.return = A, S;
19024
19024
  case zt:
19025
- var d = R._init;
19026
- return c(A, d(R._payload), O);
19025
+ var d = S._init;
19026
+ return c(A, d(S._payload), p);
19027
19027
  }
19028
- if (ei(R) || Vr(R))
19029
- return R = Gn(R, A.mode, O, null), R.return = A, R;
19030
- As(A, R);
19028
+ if (ei(S) || Vr(S))
19029
+ return S = Gn(S, A.mode, p, null), S.return = A, S;
19030
+ As(A, S);
19031
19031
  }
19032
19032
  return null;
19033
19033
  }
19034
- function f(A, R, O, d) {
19035
- var m = R !== null ? R.key : null;
19036
- if (typeof O == "string" && O !== "" || typeof O == "number")
19037
- return m !== null ? null : o(A, R, "" + O, d);
19038
- if (typeof O == "object" && O !== null) {
19039
- switch (O.$$typeof) {
19034
+ function f(A, S, p, d) {
19035
+ var m = S !== null ? S.key : null;
19036
+ if (typeof p == "string" && p !== "" || typeof p == "number")
19037
+ return m !== null ? null : o(A, S, "" + p, d);
19038
+ if (typeof p == "object" && p !== null) {
19039
+ switch (p.$$typeof) {
19040
19040
  case ts:
19041
- return O.key === m ? E(A, R, O, d) : null;
19041
+ return p.key === m ? E(A, S, p, d) : null;
19042
19042
  case nr:
19043
- return O.key === m ? l(A, R, O, d) : null;
19043
+ return p.key === m ? l(A, S, p, d) : null;
19044
19044
  case zt:
19045
- return m = O._init, f(
19045
+ return m = p._init, f(
19046
19046
  A,
19047
- R,
19048
- m(O._payload),
19047
+ S,
19048
+ m(p._payload),
19049
19049
  d
19050
19050
  );
19051
19051
  }
19052
- if (ei(O) || Vr(O))
19053
- return m !== null ? null : u(A, R, O, d, null);
19054
- As(A, O);
19052
+ if (ei(p) || Vr(p))
19053
+ return m !== null ? null : u(A, S, p, d, null);
19054
+ As(A, p);
19055
19055
  }
19056
19056
  return null;
19057
19057
  }
19058
- function N(A, R, O, d, m) {
19058
+ function N(A, S, p, d, m) {
19059
19059
  if (typeof d == "string" && d !== "" || typeof d == "number")
19060
- return A = A.get(O) || null, o(R, A, "" + d, m);
19060
+ return A = A.get(p) || null, o(S, A, "" + d, m);
19061
19061
  if (typeof d == "object" && d !== null) {
19062
19062
  switch (d.$$typeof) {
19063
19063
  case ts:
19064
- return A = A.get(d.key === null ? O : d.key) || null, E(R, A, d, m);
19064
+ return A = A.get(d.key === null ? p : d.key) || null, E(S, A, d, m);
19065
19065
  case nr:
19066
- return A = A.get(d.key === null ? O : d.key) || null, l(R, A, d, m);
19066
+ return A = A.get(d.key === null ? p : d.key) || null, l(S, A, d, m);
19067
19067
  case zt:
19068
19068
  var _ = d._init;
19069
- return N(A, R, O, _(d._payload), m);
19069
+ return N(A, S, p, _(d._payload), m);
19070
19070
  }
19071
19071
  if (ei(d) || Vr(d))
19072
- return A = A.get(O) || null, u(R, A, d, m, null);
19073
- As(R, d);
19072
+ return A = A.get(p) || null, u(S, A, d, m, null);
19073
+ As(S, d);
19074
19074
  }
19075
19075
  return null;
19076
19076
  }
19077
- function I(A, R, O, d) {
19078
- for (var m = null, _ = null, C = R, L = R = 0, M = null; C !== null && L < O.length; L++) {
19077
+ function I(A, S, p, d) {
19078
+ for (var m = null, _ = null, C = S, L = S = 0, M = null; C !== null && L < p.length; L++) {
19079
19079
  C.index > L ? (M = C, C = null) : M = C.sibling;
19080
- var S = f(A, C, O[L], d);
19081
- if (S === null) {
19080
+ var R = f(A, C, p[L], d);
19081
+ if (R === null) {
19082
19082
  C === null && (C = M);
19083
19083
  break;
19084
19084
  }
19085
- e && C && S.alternate === null && t(A, C), R = s(S, R, L), _ === null ? m = S : _.sibling = S, _ = S, C = M;
19085
+ e && C && R.alternate === null && t(A, C), S = s(R, S, L), _ === null ? m = R : _.sibling = R, _ = R, C = M;
19086
19086
  }
19087
- if (L === O.length)
19087
+ if (L === p.length)
19088
19088
  return n(A, C), oe && gn(A, L), m;
19089
19089
  if (C === null) {
19090
- for (; L < O.length; L++)
19091
- C = c(A, O[L], d), C !== null && (R = s(C, R, L), _ === null ? m = C : _.sibling = C, _ = C);
19090
+ for (; L < p.length; L++)
19091
+ C = c(A, p[L], d), C !== null && (S = s(C, S, L), _ === null ? m = C : _.sibling = C, _ = C);
19092
19092
  return oe && gn(A, L), m;
19093
19093
  }
19094
- for (C = r(A, C); L < O.length; L++)
19095
- M = N(C, A, L, O[L], d), M !== null && (e && M.alternate !== null && C.delete(M.key === null ? L : M.key), R = s(M, R, L), _ === null ? m = M : _.sibling = M, _ = M);
19094
+ for (C = r(A, C); L < p.length; L++)
19095
+ M = N(C, A, L, p[L], d), M !== null && (e && M.alternate !== null && C.delete(M.key === null ? L : M.key), S = s(M, S, L), _ === null ? m = M : _.sibling = M, _ = M);
19096
19096
  return e && C.forEach(function(D) {
19097
19097
  return t(A, D);
19098
19098
  }), oe && gn(A, L), m;
19099
19099
  }
19100
- function h(A, R, O, d) {
19101
- var m = Vr(O);
19100
+ function h(A, S, p, d) {
19101
+ var m = Vr(p);
19102
19102
  if (typeof m != "function")
19103
19103
  throw Error(H(150));
19104
- if (O = m.call(O), O == null)
19104
+ if (p = m.call(p), p == null)
19105
19105
  throw Error(H(151));
19106
- for (var _ = m = null, C = R, L = R = 0, M = null, S = O.next(); C !== null && !S.done; L++, S = O.next()) {
19106
+ for (var _ = m = null, C = S, L = S = 0, M = null, R = p.next(); C !== null && !R.done; L++, R = p.next()) {
19107
19107
  C.index > L ? (M = C, C = null) : M = C.sibling;
19108
- var D = f(A, C, S.value, d);
19108
+ var D = f(A, C, R.value, d);
19109
19109
  if (D === null) {
19110
19110
  C === null && (C = M);
19111
19111
  break;
19112
19112
  }
19113
- e && C && D.alternate === null && t(A, C), R = s(D, R, L), _ === null ? m = D : _.sibling = D, _ = D, C = M;
19113
+ e && C && D.alternate === null && t(A, C), S = s(D, S, L), _ === null ? m = D : _.sibling = D, _ = D, C = M;
19114
19114
  }
19115
- if (S.done)
19115
+ if (R.done)
19116
19116
  return n(
19117
19117
  A,
19118
19118
  C
19119
19119
  ), oe && gn(A, L), m;
19120
19120
  if (C === null) {
19121
- for (; !S.done; L++, S = O.next())
19122
- S = c(A, S.value, d), S !== null && (R = s(S, R, L), _ === null ? m = S : _.sibling = S, _ = S);
19121
+ for (; !R.done; L++, R = p.next())
19122
+ R = c(A, R.value, d), R !== null && (S = s(R, S, L), _ === null ? m = R : _.sibling = R, _ = R);
19123
19123
  return oe && gn(A, L), m;
19124
19124
  }
19125
- for (C = r(A, C); !S.done; L++, S = O.next())
19126
- S = N(C, A, L, S.value, d), S !== null && (e && S.alternate !== null && C.delete(S.key === null ? L : S.key), R = s(S, R, L), _ === null ? m = S : _.sibling = S, _ = S);
19125
+ for (C = r(A, C); !R.done; L++, R = p.next())
19126
+ R = N(C, A, L, R.value, d), R !== null && (e && R.alternate !== null && C.delete(R.key === null ? L : R.key), S = s(R, S, L), _ === null ? m = R : _.sibling = R, _ = R);
19127
19127
  return e && C.forEach(function(g) {
19128
19128
  return t(A, g);
19129
19129
  }), oe && gn(A, L), m;
19130
19130
  }
19131
- function p(A, R, O, d) {
19132
- if (typeof O == "object" && O !== null && O.type === rr && O.key === null && (O = O.props.children), typeof O == "object" && O !== null) {
19133
- switch (O.$$typeof) {
19131
+ function O(A, S, p, d) {
19132
+ if (typeof p == "object" && p !== null && p.type === rr && p.key === null && (p = p.props.children), typeof p == "object" && p !== null) {
19133
+ switch (p.$$typeof) {
19134
19134
  case ts:
19135
19135
  e: {
19136
- for (var m = O.key, _ = R; _ !== null; ) {
19136
+ for (var m = p.key, _ = S; _ !== null; ) {
19137
19137
  if (_.key === m) {
19138
- if (m = O.type, m === rr) {
19138
+ if (m = p.type, m === rr) {
19139
19139
  if (_.tag === 7) {
19140
- n(A, _.sibling), R = i(_, O.props.children), R.return = A, A = R;
19140
+ n(A, _.sibling), S = i(_, p.props.children), S.return = A, A = S;
19141
19141
  break e;
19142
19142
  }
19143
19143
  } else if (_.elementType === m || typeof m == "object" && m !== null && m.$$typeof === zt && CA(m) === _.type) {
19144
- n(A, _.sibling), R = i(_, O.props), R.ref = Kr(A, _, O), R.return = A, A = R;
19144
+ n(A, _.sibling), S = i(_, p.props), S.ref = Kr(A, _, p), S.return = A, A = S;
19145
19145
  break e;
19146
19146
  }
19147
19147
  n(A, _);
@@ -19150,39 +19150,39 @@ function of(e) {
19150
19150
  t(A, _);
19151
19151
  _ = _.sibling;
19152
19152
  }
19153
- O.type === rr ? (R = Gn(O.props.children, A.mode, d, O.key), R.return = A, A = R) : (d = bs(O.type, O.key, O.props, null, A.mode, d), d.ref = Kr(A, R, O), d.return = A, A = d);
19153
+ p.type === rr ? (S = Gn(p.props.children, A.mode, d, p.key), S.return = A, A = S) : (d = bs(p.type, p.key, p.props, null, A.mode, d), d.ref = Kr(A, S, p), d.return = A, A = d);
19154
19154
  }
19155
19155
  return a(A);
19156
19156
  case nr:
19157
19157
  e: {
19158
- for (_ = O.key; R !== null; ) {
19159
- if (R.key === _)
19160
- if (R.tag === 4 && R.stateNode.containerInfo === O.containerInfo && R.stateNode.implementation === O.implementation) {
19161
- n(A, R.sibling), R = i(R, O.children || []), R.return = A, A = R;
19158
+ for (_ = p.key; S !== null; ) {
19159
+ if (S.key === _)
19160
+ if (S.tag === 4 && S.stateNode.containerInfo === p.containerInfo && S.stateNode.implementation === p.implementation) {
19161
+ n(A, S.sibling), S = i(S, p.children || []), S.return = A, A = S;
19162
19162
  break e;
19163
19163
  } else {
19164
- n(A, R);
19164
+ n(A, S);
19165
19165
  break;
19166
19166
  }
19167
19167
  else
19168
- t(A, R);
19169
- R = R.sibling;
19168
+ t(A, S);
19169
+ S = S.sibling;
19170
19170
  }
19171
- R = Xo(O, A.mode, d), R.return = A, A = R;
19171
+ S = Xo(p, A.mode, d), S.return = A, A = S;
19172
19172
  }
19173
19173
  return a(A);
19174
19174
  case zt:
19175
- return _ = O._init, p(A, R, _(O._payload), d);
19175
+ return _ = p._init, O(A, S, _(p._payload), d);
19176
19176
  }
19177
- if (ei(O))
19178
- return I(A, R, O, d);
19179
- if (Vr(O))
19180
- return h(A, R, O, d);
19181
- As(A, O);
19177
+ if (ei(p))
19178
+ return I(A, S, p, d);
19179
+ if (Vr(p))
19180
+ return h(A, S, p, d);
19181
+ As(A, p);
19182
19182
  }
19183
- return typeof O == "string" && O !== "" || typeof O == "number" ? (O = "" + O, R !== null && R.tag === 6 ? (n(A, R.sibling), R = i(R, O), R.return = A, A = R) : (n(A, R), R = Wo(O, A.mode, d), R.return = A, A = R), a(A)) : n(A, R);
19183
+ return typeof p == "string" && p !== "" || typeof p == "number" ? (p = "" + p, S !== null && S.tag === 6 ? (n(A, S.sibling), S = i(S, p), S.return = A, A = S) : (n(A, S), S = Wo(p, A.mode, d), S.return = A, A = S), a(A)) : n(A, S);
19184
19184
  }
19185
- return p;
19185
+ return O;
19186
19186
  }
19187
19187
  var mr = of(!0), Ef = of(!1), Wi = {}, Mt = hn(Wi), Li = hn(Wi), mi = hn(Wi);
19188
19188
  function Un(e) {
@@ -20441,13 +20441,13 @@ function f0(e, t) {
20441
20441
  break;
20442
20442
  case 1:
20443
20443
  if (I !== null) {
20444
- var h = I.memoizedProps, p = I.memoizedState, A = t.stateNode, R = A.getSnapshotBeforeUpdate(t.elementType === t.type ? h : ct(t.type, h), p);
20445
- A.__reactInternalSnapshotBeforeUpdate = R;
20444
+ var h = I.memoizedProps, O = I.memoizedState, A = t.stateNode, S = A.getSnapshotBeforeUpdate(t.elementType === t.type ? h : ct(t.type, h), O);
20445
+ A.__reactInternalSnapshotBeforeUpdate = S;
20446
20446
  }
20447
20447
  break;
20448
20448
  case 3:
20449
- var O = t.stateNode.containerInfo;
20450
- O.nodeType === 1 ? O.textContent = "" : O.nodeType === 9 && O.documentElement && O.removeChild(O.documentElement);
20449
+ var p = t.stateNode.containerInfo;
20450
+ p.nodeType === 1 ? p.textContent = "" : p.nodeType === 9 && p.documentElement && p.removeChild(p.documentElement);
20451
20451
  break;
20452
20452
  case 5:
20453
20453
  case 6:
@@ -21352,9 +21352,9 @@ function jf(e, t) {
21352
21352
  E = Error(H(426));
21353
21353
  }
21354
21354
  } else if (oe && o.mode & 1) {
21355
- var p = DA(a);
21356
- if (p !== null) {
21357
- !(p.flags & 65536) && (p.flags |= 256), gA(p, a, o, s, t), ql(Dr(E, o));
21355
+ var O = DA(a);
21356
+ if (O !== null) {
21357
+ !(O.flags & 65536) && (O.flags |= 256), gA(O, a, o, s, t), ql(Dr(E, o));
21358
21358
  break e;
21359
21359
  }
21360
21360
  }
@@ -21368,8 +21368,8 @@ function jf(e, t) {
21368
21368
  break e;
21369
21369
  case 1:
21370
21370
  o = E;
21371
- var R = s.type, O = s.stateNode;
21372
- if (!(s.flags & 128) && (typeof R.getDerivedStateFromError == "function" || O !== null && typeof O.componentDidCatch == "function" && (cn === null || !cn.has(O)))) {
21371
+ var S = s.type, p = s.stateNode;
21372
+ if (!(s.flags & 128) && (typeof S.getDerivedStateFromError == "function" || p !== null && typeof p.componentDidCatch == "function" && (cn === null || !cn.has(p)))) {
21373
21373
  s.flags |= 65536, t &= -t, s.lanes |= t;
21374
21374
  var d = Mf(s, o, t);
21375
21375
  OA(s, d);
@@ -21540,8 +21540,8 @@ function pr() {
21540
21540
  if (h !== null) {
21541
21541
  I.child = null;
21542
21542
  do {
21543
- var p = h.sibling;
21544
- h.sibling = null, h = p;
21543
+ var O = h.sibling;
21544
+ h.sibling = null, h = O;
21545
21545
  } while (h !== null);
21546
21546
  }
21547
21547
  }
@@ -21568,15 +21568,15 @@ function pr() {
21568
21568
  k = s.return;
21569
21569
  }
21570
21570
  }
21571
- var R = e.current;
21572
- for (k = R; k !== null; ) {
21571
+ var S = e.current;
21572
+ for (k = S; k !== null; ) {
21573
21573
  a = k;
21574
- var O = a.child;
21575
- if (a.subtreeFlags & 2064 && O !== null)
21576
- O.return = a, k = O;
21574
+ var p = a.child;
21575
+ if (a.subtreeFlags & 2064 && p !== null)
21576
+ p.return = a, k = p;
21577
21577
  else
21578
21578
  e:
21579
- for (a = R; k !== null; ) {
21579
+ for (a = S; k !== null; ) {
21580
21580
  if (o = k, o.flags & 2048)
21581
21581
  try {
21582
21582
  switch (o.tag) {
@@ -22837,7 +22837,7 @@ function ps() {
22837
22837
  EOF: n.EOF
22838
22838
  }, l = new r(/\/\*/, /\*\//), u = /0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/, c = /[0-9]/, f = /[^\d\.]/, N = ">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "), I = ">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";
22839
22839
  I = I.replace(/[-[\]{}()*+?.,\\^$|#]/g, "\\$&"), I = "\\?\\.(?!\\d) " + I, I = I.replace(/ /g, "|");
22840
- var h = new RegExp(I), p = "continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","), A = p.concat(["do", "in", "of", "else", "get", "set", "new", "catch", "finally", "typeof", "yield", "async", "await", "from", "as", "class", "extends"]), R = new RegExp("^(?:" + A.join("|") + ")$"), O, d = function(_, C) {
22840
+ var h = new RegExp(I), O = "continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","), A = O.concat(["do", "in", "of", "else", "get", "set", "new", "catch", "finally", "typeof", "yield", "async", "await", "from", "as", "class", "extends"]), S = new RegExp("^(?:" + A.join("|") + ")$"), p, d = function(_, C) {
22841
22841
  t.call(this, _, C), this._patterns.whitespace = this._patterns.whitespace.matching(
22842
22842
  /\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,
22843
22843
  /\u2028\u2029/.source
@@ -22870,7 +22870,7 @@ function ps() {
22870
22870
  }, d.prototype._is_closing = function(_, C) {
22871
22871
  return (_.type === E.END_BLOCK || _.type === E.END_EXPR) && C && (_.text === "]" && C.text === "[" || _.text === ")" && C.text === "(" || _.text === "}" && C.text === "{");
22872
22872
  }, d.prototype._reset = function() {
22873
- O = !1;
22873
+ p = !1;
22874
22874
  }, d.prototype._get_next_token = function(_, C) {
22875
22875
  var L = null;
22876
22876
  this._readWhitespace();
@@ -22880,7 +22880,7 @@ function ps() {
22880
22880
  var C;
22881
22881
  if (C = this.__patterns.identifier.read(), C !== "")
22882
22882
  return C = C.replace(i.allLineBreaks, `
22883
- `), !(_.type === E.DOT || _.type === E.RESERVED && (_.text === "set" || _.text === "get")) && R.test(C) ? (C === "in" || C === "of") && (_.type === E.WORD || _.type === E.STRING) ? this._create_token(E.OPERATOR, C) : this._create_token(E.RESERVED, C) : this._create_token(E.WORD, C);
22883
+ `), !(_.type === E.DOT || _.type === E.RESERVED && (_.text === "set" || _.text === "get")) && S.test(C) ? (C === "in" || C === "of") && (_.type === E.WORD || _.type === E.STRING) ? this._create_token(E.OPERATOR, C) : this._create_token(E.RESERVED, C) : this._create_token(E.WORD, C);
22884
22884
  if (C = this.__patterns.number.read(), C !== "")
22885
22885
  return this._create_token(E.WORD, C);
22886
22886
  }, d.prototype._read_singles = function(_) {
@@ -22915,10 +22915,10 @@ function ps() {
22915
22915
  if (C = this.__patterns.html_comment_start.read(), C) {
22916
22916
  for (; this._input.hasNext() && !this._input.testChar(i.newline); )
22917
22917
  C += this._input.next();
22918
- return O = !0, this._create_token(E.COMMENT, C);
22918
+ return p = !0, this._create_token(E.COMMENT, C);
22919
22919
  }
22920
- } else if (O && _ === "-" && (C = this.__patterns.html_comment_end.read(), C))
22921
- return O = !1, this._create_token(E.COMMENT, C);
22920
+ } else if (p && _ === "-" && (C = this.__patterns.html_comment_end.read(), C))
22921
+ return p = !1, this._create_token(E.COMMENT, C);
22922
22922
  return null;
22923
22923
  }, d.prototype._read_comment = function(_) {
22924
22924
  var C = null;
@@ -22955,8 +22955,8 @@ function ps() {
22955
22955
  ]);
22956
22956
  }, d.prototype._read_regexp = function(_, C) {
22957
22957
  if (_ === "/" && this._allow_regexp_or_xml(C)) {
22958
- for (var L = this._input.next(), M = !1, S = !1; this._input.hasNext() && (M || S || this._input.peek() !== _) && !this._input.testChar(i.newline); )
22959
- L += this._input.peek(), M ? M = !1 : (M = this._input.peek() === "\\", this._input.peek() === "[" ? S = !0 : this._input.peek() === "]" && (S = !1)), this._input.next();
22958
+ for (var L = this._input.next(), M = !1, R = !1; this._input.hasNext() && (M || R || this._input.peek() !== _) && !this._input.testChar(i.newline); )
22959
+ L += this._input.peek(), M ? M = !1 : (M = this._input.peek() === "\\", this._input.peek() === "[" ? R = !0 : this._input.peek() === "]" && (R = !1)), this._input.next();
22960
22960
  return this._input.peek() === _ && (L += this._input.next(), L += this._input.read(i.identifier)), this._create_token(E.STRING, L);
22961
22961
  }
22962
22962
  return null;
@@ -22964,9 +22964,9 @@ function ps() {
22964
22964
  if (this._options.e4x && _ === "<" && this._allow_regexp_or_xml(C)) {
22965
22965
  var L = "", M = this.__patterns.xml.read_match();
22966
22966
  if (M) {
22967
- for (var S = M[2].replace(/^{\s+/, "{").replace(/\s+}$/, "}"), D = S.indexOf("{") === 0, g = 0; M; ) {
22967
+ for (var R = M[2].replace(/^{\s+/, "{").replace(/\s+}$/, "}"), D = R.indexOf("{") === 0, g = 0; M; ) {
22968
22968
  var y = !!M[1], U = M[2], x = !!M[M.length - 1] || U.slice(0, 8) === "![CDATA[";
22969
- if (!x && (U === S || D && U.replace(/^{\s+/, "{").replace(/\s+}$/, "}")) && (y ? --g : ++g), L += M[0], g <= 0)
22969
+ if (!x && (U === R || D && U.replace(/^{\s+/, "{").replace(/\s+}$/, "}")) && (y ? --g : ++g), L += M[0], g <= 0)
22970
22970
  break;
22971
22971
  M = this.__patterns.xml.read_match();
22972
22972
  }
@@ -22977,36 +22977,36 @@ function ps() {
22977
22977
  return null;
22978
22978
  };
22979
22979
  function m(_) {
22980
- for (var C = "", L = 0, M = new e(_), S = null; M.hasNext(); )
22981
- if (S = M.match(/([\s]|[^\\]|\\\\)+/g), S && (C += S[0]), M.peek() === "\\") {
22980
+ for (var C = "", L = 0, M = new e(_), R = null; M.hasNext(); )
22981
+ if (R = M.match(/([\s]|[^\\]|\\\\)+/g), R && (C += R[0]), M.peek() === "\\") {
22982
22982
  if (M.next(), M.peek() === "x")
22983
- S = M.match(/x([0-9A-Fa-f]{2})/g);
22983
+ R = M.match(/x([0-9A-Fa-f]{2})/g);
22984
22984
  else if (M.peek() === "u")
22985
- S = M.match(/u([0-9A-Fa-f]{4})/g), S || (S = M.match(/u\{([0-9A-Fa-f]+)\}/g));
22985
+ R = M.match(/u([0-9A-Fa-f]{4})/g), R || (R = M.match(/u\{([0-9A-Fa-f]+)\}/g));
22986
22986
  else {
22987
22987
  C += "\\", M.hasNext() && (C += M.next());
22988
22988
  continue;
22989
22989
  }
22990
- if (!S || (L = parseInt(S[1], 16), L > 126 && L <= 255 && S[0].indexOf("x") === 0))
22990
+ if (!R || (L = parseInt(R[1], 16), L > 126 && L <= 255 && R[0].indexOf("x") === 0))
22991
22991
  return _;
22992
- L >= 0 && L < 32 || L > 1114111 ? C += "\\" + S[0] : L === 34 || L === 39 || L === 92 ? C += "\\" + String.fromCharCode(L) : C += String.fromCharCode(L);
22992
+ L >= 0 && L < 32 || L > 1114111 ? C += "\\" + R[0] : L === 34 || L === 39 || L === 92 ? C += "\\" + String.fromCharCode(L) : C += String.fromCharCode(L);
22993
22993
  }
22994
22994
  return C;
22995
22995
  }
22996
22996
  return d.prototype._read_string_recursive = function(_, C, L) {
22997
- var M, S;
22998
- _ === "'" ? S = this.__patterns.single_quote : _ === '"' ? S = this.__patterns.double_quote : _ === "`" ? S = this.__patterns.template_text : _ === "}" && (S = this.__patterns.template_expression);
22999
- for (var D = S.read(), g = ""; this._input.hasNext(); ) {
22997
+ var M, R;
22998
+ _ === "'" ? R = this.__patterns.single_quote : _ === '"' ? R = this.__patterns.double_quote : _ === "`" ? R = this.__patterns.template_text : _ === "}" && (R = this.__patterns.template_expression);
22999
+ for (var D = R.read(), g = ""; this._input.hasNext(); ) {
23000
23000
  if (g = this._input.next(), g === _ || !C && i.newline.test(g)) {
23001
23001
  this._input.back();
23002
23002
  break;
23003
23003
  } else
23004
23004
  g === "\\" && this._input.hasNext() ? (M = this._input.peek(), M === "x" || M === "u" ? this.has_char_escapes = !0 : M === "\r" && this._input.peek(1) === `
23005
23005
  ` && this._input.next(), g += this._input.next()) : L && (L === "${" && g === "$" && this._input.peek() === "{" && (g += this._input.next()), L === g && (_ === "`" ? g += this._read_string_recursive("}", C, "`") : g += this._read_string_recursive("`", C, "${"), this._input.hasNext() && (g += this._input.next())));
23006
- g += S.read(), D += g;
23006
+ g += R.read(), D += g;
23007
23007
  }
23008
23008
  return D;
23009
- }, tr.Tokenizer = d, tr.TOKEN = E, tr.positionable_operators = N.slice(), tr.line_starters = p.slice(), tr;
23009
+ }, tr.Tokenizer = d, tr.TOKEN = E, tr.positionable_operators = N.slice(), tr.line_starters = O.slice(), tr;
23010
23010
  }
23011
23011
  var sc;
23012
23012
  function F0() {
@@ -23014,24 +23014,24 @@ function F0() {
23014
23014
  return Ko;
23015
23015
  sc = 1;
23016
23016
  var e = Cu().Output, t = sd().Token, n = ad(), r = od().Options, i = ps().Tokenizer, s = ps().line_starters, a = ps().positionable_operators, o = ps().TOKEN;
23017
- function E(S, D) {
23018
- return D.indexOf(S) !== -1;
23017
+ function E(R, D) {
23018
+ return D.indexOf(R) !== -1;
23019
23019
  }
23020
- function l(S) {
23021
- return S.replace(/^\s+/g, "");
23020
+ function l(R) {
23021
+ return R.replace(/^\s+/g, "");
23022
23022
  }
23023
- function u(S) {
23024
- for (var D = {}, g = 0; g < S.length; g++)
23025
- D[S[g].replace(/-/g, "_")] = S[g];
23023
+ function u(R) {
23024
+ for (var D = {}, g = 0; g < R.length; g++)
23025
+ D[R[g].replace(/-/g, "_")] = R[g];
23026
23026
  return D;
23027
23027
  }
23028
- function c(S, D) {
23029
- return S && S.type === o.RESERVED && S.text === D;
23028
+ function c(R, D) {
23029
+ return R && R.type === o.RESERVED && R.text === D;
23030
23030
  }
23031
- function f(S, D) {
23032
- return S && S.type === o.RESERVED && E(S.text, D);
23031
+ function f(R, D) {
23032
+ return R && R.type === o.RESERVED && E(R.text, D);
23033
23033
  }
23034
- var N = ["case", "return", "do", "if", "throw", "else", "await", "break", "continue", "async"], I = ["before-newline", "after-newline", "preserve-newline"], h = u(I), p = [h.before_newline, h.preserve_newline], A = {
23034
+ var N = ["case", "return", "do", "if", "throw", "else", "await", "break", "continue", "async"], I = ["before-newline", "after-newline", "preserve-newline"], h = u(I), O = [h.before_newline, h.preserve_newline], A = {
23035
23035
  BlockStatement: "BlockStatement",
23036
23036
  // 'BLOCK'
23037
23037
  Statement: "Statement",
@@ -23047,50 +23047,50 @@ function F0() {
23047
23047
  Expression: "Expression"
23048
23048
  //'(EXPRESSION)'
23049
23049
  };
23050
- function R(S, D) {
23051
- D.multiline_frame || D.mode === A.ForInitializer || D.mode === A.Conditional || S.remove_indent(D.start_line_index);
23050
+ function S(R, D) {
23051
+ D.multiline_frame || D.mode === A.ForInitializer || D.mode === A.Conditional || R.remove_indent(D.start_line_index);
23052
23052
  }
23053
- function O(S) {
23054
- S = S.replace(n.allLineBreaks, `
23053
+ function p(R) {
23054
+ R = R.replace(n.allLineBreaks, `
23055
23055
  `);
23056
- for (var D = [], g = S.indexOf(`
23056
+ for (var D = [], g = R.indexOf(`
23057
23057
  `); g !== -1; )
23058
- D.push(S.substring(0, g)), S = S.substring(g + 1), g = S.indexOf(`
23058
+ D.push(R.substring(0, g)), R = R.substring(g + 1), g = R.indexOf(`
23059
23059
  `);
23060
- return S.length && D.push(S), D;
23060
+ return R.length && D.push(R), D;
23061
23061
  }
23062
- function d(S) {
23063
- return S === A.ArrayLiteral;
23062
+ function d(R) {
23063
+ return R === A.ArrayLiteral;
23064
23064
  }
23065
- function m(S) {
23066
- return E(S, [A.Expression, A.ForInitializer, A.Conditional]);
23065
+ function m(R) {
23066
+ return E(R, [A.Expression, A.ForInitializer, A.Conditional]);
23067
23067
  }
23068
- function _(S, D) {
23069
- for (var g = 0; g < S.length; g++) {
23070
- var y = S[g].trim();
23068
+ function _(R, D) {
23069
+ for (var g = 0; g < R.length; g++) {
23070
+ var y = R[g].trim();
23071
23071
  if (y.charAt(0) !== D)
23072
23072
  return !1;
23073
23073
  }
23074
23074
  return !0;
23075
23075
  }
23076
- function C(S, D) {
23077
- for (var g = 0, y = S.length, U; g < y; g++)
23078
- if (U = S[g], U && U.indexOf(D) !== 0)
23076
+ function C(R, D) {
23077
+ for (var g = 0, y = R.length, U; g < y; g++)
23078
+ if (U = R[g], U && U.indexOf(D) !== 0)
23079
23079
  return !1;
23080
23080
  return !0;
23081
23081
  }
23082
- function L(S, D) {
23083
- D = D || {}, this._source_text = S || "", this._output = null, this._tokens = null, this._last_last_text = null, this._flags = null, this._previous_flags = null, this._flag_store = null, this._options = new r(D);
23082
+ function L(R, D) {
23083
+ D = D || {}, this._source_text = R || "", this._output = null, this._tokens = null, this._last_last_text = null, this._flags = null, this._previous_flags = null, this._flag_store = null, this._options = new r(D);
23084
23084
  }
23085
- L.prototype.create_flags = function(S, D) {
23085
+ L.prototype.create_flags = function(R, D) {
23086
23086
  var g = 0;
23087
- S && (g = S.indentation_level, !this._output.just_added_newline() && S.line_indent_level > g && (g = S.line_indent_level));
23087
+ R && (g = R.indentation_level, !this._output.just_added_newline() && R.line_indent_level > g && (g = R.line_indent_level));
23088
23088
  var y = {
23089
23089
  mode: D,
23090
- parent: S,
23091
- last_token: S ? S.last_token : new t(o.START_BLOCK, ""),
23090
+ parent: R,
23091
+ last_token: R ? R.last_token : new t(o.START_BLOCK, ""),
23092
23092
  // last token text
23093
- last_word: S ? S.last_word : "",
23093
+ last_word: R ? R.last_word : "",
23094
23094
  // last TOKEN.WORD passed
23095
23095
  declaration_statement: !1,
23096
23096
  declaration_assignment: !1,
@@ -23113,32 +23113,32 @@ function F0() {
23113
23113
  // the indented case-action block is wrapped with {}
23114
23114
  indentation_level: g,
23115
23115
  alignment: 0,
23116
- line_indent_level: S ? S.line_indent_level : g,
23116
+ line_indent_level: R ? R.line_indent_level : g,
23117
23117
  start_line_index: this._output.get_line_number(),
23118
23118
  ternary_depth: 0
23119
23119
  };
23120
23120
  return y;
23121
- }, L.prototype._reset = function(S) {
23122
- var D = S.match(/^[\t ]*/)[0];
23121
+ }, L.prototype._reset = function(R) {
23122
+ var D = R.match(/^[\t ]*/)[0];
23123
23123
  this._last_last_text = "", this._output = new e(this._options, D), this._output.raw = this._options.test_output_raw, this._flag_store = [], this.set_mode(A.BlockStatement);
23124
- var g = new i(S, this._options);
23125
- return this._tokens = g.tokenize(), S;
23124
+ var g = new i(R, this._options);
23125
+ return this._tokens = g.tokenize(), R;
23126
23126
  }, L.prototype.beautify = function() {
23127
23127
  if (this._options.disabled)
23128
23128
  return this._source_text;
23129
- var S, D = this._reset(this._source_text), g = this._options.eol;
23129
+ var R, D = this._reset(this._source_text), g = this._options.eol;
23130
23130
  this._options.eol === "auto" && (g = `
23131
23131
  `, D && n.lineBreak.test(D || "") && (g = D.match(n.lineBreak)[0]));
23132
23132
  for (var y = this._tokens.next(); y; )
23133
23133
  this.handle_token(y), this._last_last_text = this._flags.last_token.text, this._flags.last_token = y, y = this._tokens.next();
23134
- return S = this._output.get_code(g), S;
23135
- }, L.prototype.handle_token = function(S, D) {
23136
- S.type === o.START_EXPR ? this.handle_start_expr(S) : S.type === o.END_EXPR ? this.handle_end_expr(S) : S.type === o.START_BLOCK ? this.handle_start_block(S) : S.type === o.END_BLOCK ? this.handle_end_block(S) : S.type === o.WORD ? this.handle_word(S) : S.type === o.RESERVED ? this.handle_word(S) : S.type === o.SEMICOLON ? this.handle_semicolon(S) : S.type === o.STRING ? this.handle_string(S) : S.type === o.EQUALS ? this.handle_equals(S) : S.type === o.OPERATOR ? this.handle_operator(S) : S.type === o.COMMA ? this.handle_comma(S) : S.type === o.BLOCK_COMMENT ? this.handle_block_comment(S, D) : S.type === o.COMMENT ? this.handle_comment(S, D) : S.type === o.DOT ? this.handle_dot(S) : S.type === o.EOF ? this.handle_eof(S) : S.type === o.UNKNOWN ? this.handle_unknown(S, D) : this.handle_unknown(S, D);
23137
- }, L.prototype.handle_whitespace_and_comments = function(S, D) {
23138
- var g = S.newlines, y = this._options.keep_array_indentation && d(this._flags.mode);
23139
- if (S.comments_before)
23140
- for (var U = S.comments_before.next(); U; )
23141
- this.handle_whitespace_and_comments(U, D), this.handle_token(U, D), U = S.comments_before.next();
23134
+ return R = this._output.get_code(g), R;
23135
+ }, L.prototype.handle_token = function(R, D) {
23136
+ R.type === o.START_EXPR ? this.handle_start_expr(R) : R.type === o.END_EXPR ? this.handle_end_expr(R) : R.type === o.START_BLOCK ? this.handle_start_block(R) : R.type === o.END_BLOCK ? this.handle_end_block(R) : R.type === o.WORD ? this.handle_word(R) : R.type === o.RESERVED ? this.handle_word(R) : R.type === o.SEMICOLON ? this.handle_semicolon(R) : R.type === o.STRING ? this.handle_string(R) : R.type === o.EQUALS ? this.handle_equals(R) : R.type === o.OPERATOR ? this.handle_operator(R) : R.type === o.COMMA ? this.handle_comma(R) : R.type === o.BLOCK_COMMENT ? this.handle_block_comment(R, D) : R.type === o.COMMENT ? this.handle_comment(R, D) : R.type === o.DOT ? this.handle_dot(R) : R.type === o.EOF ? this.handle_eof(R) : R.type === o.UNKNOWN ? this.handle_unknown(R, D) : this.handle_unknown(R, D);
23137
+ }, L.prototype.handle_whitespace_and_comments = function(R, D) {
23138
+ var g = R.newlines, y = this._options.keep_array_indentation && d(this._flags.mode);
23139
+ if (R.comments_before)
23140
+ for (var U = R.comments_before.next(); U; )
23141
+ this.handle_whitespace_and_comments(U, D), this.handle_token(U, D), U = R.comments_before.next();
23142
23142
  if (y)
23143
23143
  for (var x = 0; x < g; x += 1)
23144
23144
  this.print_newline(x > 0, D);
@@ -23149,11 +23149,11 @@ function F0() {
23149
23149
  }
23150
23150
  };
23151
23151
  var M = ["async", "break", "continue", "return", "throw", "yield"];
23152
- return L.prototype.allow_wrap_or_preserved_newline = function(S, D) {
23152
+ return L.prototype.allow_wrap_or_preserved_newline = function(R, D) {
23153
23153
  if (D = D === void 0 ? !1 : D, !this._output.just_added_newline()) {
23154
- var g = this._options.preserve_newlines && S.newlines || D, y = E(this._flags.last_token.text, a) || E(S.text, a);
23154
+ var g = this._options.preserve_newlines && R.newlines || D, y = E(this._flags.last_token.text, a) || E(R.text, a);
23155
23155
  if (y) {
23156
- var U = E(this._flags.last_token.text, a) && E(this._options.operator_position, p) || E(S.text, a);
23156
+ var U = E(this._flags.last_token.text, a) && E(this._options.operator_position, O) || E(R.text, a);
23157
23157
  g = g && U;
23158
23158
  }
23159
23159
  if (g)
@@ -23164,53 +23164,53 @@ function F0() {
23164
23164
  this._output.set_wrap_point();
23165
23165
  }
23166
23166
  }
23167
- }, L.prototype.print_newline = function(S, D) {
23167
+ }, L.prototype.print_newline = function(R, D) {
23168
23168
  if (!D && this._flags.last_token.text !== ";" && this._flags.last_token.text !== "," && this._flags.last_token.text !== "=" && (this._flags.last_token.type !== o.OPERATOR || this._flags.last_token.text === "--" || this._flags.last_token.text === "++"))
23169
23169
  for (var g = this._tokens.peek(); this._flags.mode === A.Statement && !(this._flags.if_block && c(g, "else")) && !this._flags.do_block; )
23170
23170
  this.restore_mode();
23171
- this._output.add_new_line(S) && (this._flags.multiline_frame = !0);
23172
- }, L.prototype.print_token_line_indentation = function(S) {
23173
- this._output.just_added_newline() && (this._options.keep_array_indentation && S.newlines && (S.text === "[" || d(this._flags.mode)) ? (this._output.current_line.set_indent(-1), this._output.current_line.push(S.whitespace_before), this._output.space_before_token = !1) : this._output.set_indent(this._flags.indentation_level, this._flags.alignment) && (this._flags.line_indent_level = this._flags.indentation_level));
23174
- }, L.prototype.print_token = function(S) {
23171
+ this._output.add_new_line(R) && (this._flags.multiline_frame = !0);
23172
+ }, L.prototype.print_token_line_indentation = function(R) {
23173
+ this._output.just_added_newline() && (this._options.keep_array_indentation && R.newlines && (R.text === "[" || d(this._flags.mode)) ? (this._output.current_line.set_indent(-1), this._output.current_line.push(R.whitespace_before), this._output.space_before_token = !1) : this._output.set_indent(this._flags.indentation_level, this._flags.alignment) && (this._flags.line_indent_level = this._flags.indentation_level));
23174
+ }, L.prototype.print_token = function(R) {
23175
23175
  if (this._output.raw) {
23176
- this._output.add_raw_token(S);
23176
+ this._output.add_raw_token(R);
23177
23177
  return;
23178
23178
  }
23179
- if (this._options.comma_first && S.previous && S.previous.type === o.COMMA && this._output.just_added_newline() && this._output.previous_line.last() === ",") {
23179
+ if (this._options.comma_first && R.previous && R.previous.type === o.COMMA && this._output.just_added_newline() && this._output.previous_line.last() === ",") {
23180
23180
  var D = this._output.previous_line.pop();
23181
- this._output.previous_line.is_empty() && (this._output.previous_line.push(D), this._output.trim(!0), this._output.current_line.pop(), this._output.trim()), this.print_token_line_indentation(S), this._output.add_token(","), this._output.space_before_token = !0;
23181
+ this._output.previous_line.is_empty() && (this._output.previous_line.push(D), this._output.trim(!0), this._output.current_line.pop(), this._output.trim()), this.print_token_line_indentation(R), this._output.add_token(","), this._output.space_before_token = !0;
23182
23182
  }
23183
- this.print_token_line_indentation(S), this._output.non_breaking_space = !0, this._output.add_token(S.text), this._output.previous_token_wrapped && (this._flags.multiline_frame = !0);
23183
+ this.print_token_line_indentation(R), this._output.non_breaking_space = !0, this._output.add_token(R.text), this._output.previous_token_wrapped && (this._flags.multiline_frame = !0);
23184
23184
  }, L.prototype.indent = function() {
23185
23185
  this._flags.indentation_level += 1, this._output.set_indent(this._flags.indentation_level, this._flags.alignment);
23186
23186
  }, L.prototype.deindent = function() {
23187
23187
  this._flags.indentation_level > 0 && (!this._flags.parent || this._flags.indentation_level > this._flags.parent.indentation_level) && (this._flags.indentation_level -= 1, this._output.set_indent(this._flags.indentation_level, this._flags.alignment));
23188
- }, L.prototype.set_mode = function(S) {
23189
- this._flags ? (this._flag_store.push(this._flags), this._previous_flags = this._flags) : this._previous_flags = this.create_flags(null, S), this._flags = this.create_flags(this._previous_flags, S), this._output.set_indent(this._flags.indentation_level, this._flags.alignment);
23188
+ }, L.prototype.set_mode = function(R) {
23189
+ this._flags ? (this._flag_store.push(this._flags), this._previous_flags = this._flags) : this._previous_flags = this.create_flags(null, R), this._flags = this.create_flags(this._previous_flags, R), this._output.set_indent(this._flags.indentation_level, this._flags.alignment);
23190
23190
  }, L.prototype.restore_mode = function() {
23191
- this._flag_store.length > 0 && (this._previous_flags = this._flags, this._flags = this._flag_store.pop(), this._previous_flags.mode === A.Statement && R(this._output, this._previous_flags), this._output.set_indent(this._flags.indentation_level, this._flags.alignment));
23191
+ this._flag_store.length > 0 && (this._previous_flags = this._flags, this._flags = this._flag_store.pop(), this._previous_flags.mode === A.Statement && S(this._output, this._previous_flags), this._output.set_indent(this._flags.indentation_level, this._flags.alignment));
23192
23192
  }, L.prototype.start_of_object_property = function() {
23193
23193
  return this._flags.parent.mode === A.ObjectLiteral && this._flags.mode === A.Statement && (this._flags.last_token.text === ":" && this._flags.ternary_depth === 0 || f(this._flags.last_token, ["get", "set"]));
23194
- }, L.prototype.start_of_statement = function(S) {
23194
+ }, L.prototype.start_of_statement = function(R) {
23195
23195
  var D = !1;
23196
- return D = D || f(this._flags.last_token, ["var", "let", "const"]) && S.type === o.WORD, D = D || c(this._flags.last_token, "do"), D = D || !(this._flags.parent.mode === A.ObjectLiteral && this._flags.mode === A.Statement) && f(this._flags.last_token, M) && !S.newlines, D = D || c(this._flags.last_token, "else") && !(c(S, "if") && !S.comments_before), D = D || this._flags.last_token.type === o.END_EXPR && (this._previous_flags.mode === A.ForInitializer || this._previous_flags.mode === A.Conditional), D = D || this._flags.last_token.type === o.WORD && this._flags.mode === A.BlockStatement && !this._flags.in_case && !(S.text === "--" || S.text === "++") && this._last_last_text !== "function" && S.type !== o.WORD && S.type !== o.RESERVED, D = D || this._flags.mode === A.ObjectLiteral && (this._flags.last_token.text === ":" && this._flags.ternary_depth === 0 || f(this._flags.last_token, ["get", "set"])), D ? (this.set_mode(A.Statement), this.indent(), this.handle_whitespace_and_comments(S, !0), this.start_of_object_property() || this.allow_wrap_or_preserved_newline(
23197
- S,
23198
- f(S, ["do", "for", "if", "while"])
23196
+ return D = D || f(this._flags.last_token, ["var", "let", "const"]) && R.type === o.WORD, D = D || c(this._flags.last_token, "do"), D = D || !(this._flags.parent.mode === A.ObjectLiteral && this._flags.mode === A.Statement) && f(this._flags.last_token, M) && !R.newlines, D = D || c(this._flags.last_token, "else") && !(c(R, "if") && !R.comments_before), D = D || this._flags.last_token.type === o.END_EXPR && (this._previous_flags.mode === A.ForInitializer || this._previous_flags.mode === A.Conditional), D = D || this._flags.last_token.type === o.WORD && this._flags.mode === A.BlockStatement && !this._flags.in_case && !(R.text === "--" || R.text === "++") && this._last_last_text !== "function" && R.type !== o.WORD && R.type !== o.RESERVED, D = D || this._flags.mode === A.ObjectLiteral && (this._flags.last_token.text === ":" && this._flags.ternary_depth === 0 || f(this._flags.last_token, ["get", "set"])), D ? (this.set_mode(A.Statement), this.indent(), this.handle_whitespace_and_comments(R, !0), this.start_of_object_property() || this.allow_wrap_or_preserved_newline(
23197
+ R,
23198
+ f(R, ["do", "for", "if", "while"])
23199
23199
  ), !0) : !1;
23200
- }, L.prototype.handle_start_expr = function(S) {
23201
- this.start_of_statement(S) || this.handle_whitespace_and_comments(S);
23200
+ }, L.prototype.handle_start_expr = function(R) {
23201
+ this.start_of_statement(R) || this.handle_whitespace_and_comments(R);
23202
23202
  var D = A.Expression;
23203
- if (S.text === "[") {
23203
+ if (R.text === "[") {
23204
23204
  if (this._flags.last_token.type === o.WORD || this._flags.last_token.text === ")") {
23205
- f(this._flags.last_token, s) && (this._output.space_before_token = !0), this.print_token(S), this.set_mode(D), this.indent(), this._options.space_in_paren && (this._output.space_before_token = !0);
23205
+ f(this._flags.last_token, s) && (this._output.space_before_token = !0), this.print_token(R), this.set_mode(D), this.indent(), this._options.space_in_paren && (this._output.space_before_token = !0);
23206
23206
  return;
23207
23207
  }
23208
23208
  D = A.ArrayLiteral, d(this._flags.mode) && (this._flags.last_token.text === "[" || this._flags.last_token.text === "," && (this._last_last_text === "]" || this._last_last_text === "}")) && (this._options.keep_array_indentation || this.print_newline()), E(this._flags.last_token.type, [o.START_EXPR, o.END_EXPR, o.WORD, o.OPERATOR, o.DOT]) || (this._output.space_before_token = !0);
23209
23209
  } else {
23210
23210
  if (this._flags.last_token.type === o.RESERVED)
23211
- this._flags.last_token.text === "for" ? (this._output.space_before_token = this._options.space_before_conditional, D = A.ForInitializer) : E(this._flags.last_token.text, ["if", "while", "switch"]) ? (this._output.space_before_token = this._options.space_before_conditional, D = A.Conditional) : E(this._flags.last_word, ["await", "async"]) ? this._output.space_before_token = !0 : this._flags.last_token.text === "import" && S.whitespace_before === "" ? this._output.space_before_token = !1 : (E(this._flags.last_token.text, s) || this._flags.last_token.text === "catch") && (this._output.space_before_token = !0);
23211
+ this._flags.last_token.text === "for" ? (this._output.space_before_token = this._options.space_before_conditional, D = A.ForInitializer) : E(this._flags.last_token.text, ["if", "while", "switch"]) ? (this._output.space_before_token = this._options.space_before_conditional, D = A.Conditional) : E(this._flags.last_word, ["await", "async"]) ? this._output.space_before_token = !0 : this._flags.last_token.text === "import" && R.whitespace_before === "" ? this._output.space_before_token = !1 : (E(this._flags.last_token.text, s) || this._flags.last_token.text === "catch") && (this._output.space_before_token = !0);
23212
23212
  else if (this._flags.last_token.type === o.EQUALS || this._flags.last_token.type === o.OPERATOR)
23213
- this.start_of_object_property() || this.allow_wrap_or_preserved_newline(S);
23213
+ this.start_of_object_property() || this.allow_wrap_or_preserved_newline(R);
23214
23214
  else if (this._flags.last_token.type === o.WORD) {
23215
23215
  this._output.space_before_token = !1;
23216
23216
  var g = this._tokens.peek(-3);
@@ -23219,19 +23219,19 @@ function F0() {
23219
23219
  f(g, ["async", "function"]) || g.text === "*" && f(y, ["async", "function"]) ? this._output.space_before_token = !0 : this._flags.mode === A.ObjectLiteral ? (g.text === "{" || g.text === "," || g.text === "*" && (y.text === "{" || y.text === ",")) && (this._output.space_before_token = !0) : this._flags.parent && this._flags.parent.class_start_block && (this._output.space_before_token = !0);
23220
23220
  }
23221
23221
  } else
23222
- this.allow_wrap_or_preserved_newline(S);
23222
+ this.allow_wrap_or_preserved_newline(R);
23223
23223
  (this._flags.last_token.type === o.RESERVED && (this._flags.last_word === "function" || this._flags.last_word === "typeof") || this._flags.last_token.text === "*" && (E(this._last_last_text, ["function", "yield"]) || this._flags.mode === A.ObjectLiteral && E(this._last_last_text, ["{", ","]))) && (this._output.space_before_token = this._options.space_after_anon_function);
23224
23224
  }
23225
- this._flags.last_token.text === ";" || this._flags.last_token.type === o.START_BLOCK ? this.print_newline() : (this._flags.last_token.type === o.END_EXPR || this._flags.last_token.type === o.START_EXPR || this._flags.last_token.type === o.END_BLOCK || this._flags.last_token.text === "." || this._flags.last_token.type === o.COMMA) && this.allow_wrap_or_preserved_newline(S, S.newlines), this.print_token(S), this.set_mode(D), this._options.space_in_paren && (this._output.space_before_token = !0), this.indent();
23226
- }, L.prototype.handle_end_expr = function(S) {
23225
+ this._flags.last_token.text === ";" || this._flags.last_token.type === o.START_BLOCK ? this.print_newline() : (this._flags.last_token.type === o.END_EXPR || this._flags.last_token.type === o.START_EXPR || this._flags.last_token.type === o.END_BLOCK || this._flags.last_token.text === "." || this._flags.last_token.type === o.COMMA) && this.allow_wrap_or_preserved_newline(R, R.newlines), this.print_token(R), this.set_mode(D), this._options.space_in_paren && (this._output.space_before_token = !0), this.indent();
23226
+ }, L.prototype.handle_end_expr = function(R) {
23227
23227
  for (; this._flags.mode === A.Statement; )
23228
23228
  this.restore_mode();
23229
- this.handle_whitespace_and_comments(S), this._flags.multiline_frame && this.allow_wrap_or_preserved_newline(
23230
- S,
23231
- S.text === "]" && d(this._flags.mode) && !this._options.keep_array_indentation
23232
- ), this._options.space_in_paren && (this._flags.last_token.type === o.START_EXPR && !this._options.space_in_empty_paren ? (this._output.trim(), this._output.space_before_token = !1) : this._output.space_before_token = !0), this.deindent(), this.print_token(S), this.restore_mode(), R(this._output, this._previous_flags), this._flags.do_while && this._previous_flags.mode === A.Conditional && (this._previous_flags.mode = A.Expression, this._flags.do_block = !1, this._flags.do_while = !1);
23233
- }, L.prototype.handle_start_block = function(S) {
23234
- this.handle_whitespace_and_comments(S);
23229
+ this.handle_whitespace_and_comments(R), this._flags.multiline_frame && this.allow_wrap_or_preserved_newline(
23230
+ R,
23231
+ R.text === "]" && d(this._flags.mode) && !this._options.keep_array_indentation
23232
+ ), this._options.space_in_paren && (this._flags.last_token.type === o.START_EXPR && !this._options.space_in_empty_paren ? (this._output.trim(), this._output.space_before_token = !1) : this._output.space_before_token = !0), this.deindent(), this.print_token(R), this.restore_mode(), S(this._output, this._previous_flags), this._flags.do_while && this._previous_flags.mode === A.Conditional && (this._previous_flags.mode = A.Expression, this._flags.do_block = !1, this._flags.do_while = !1);
23233
+ }, L.prototype.handle_start_block = function(R) {
23234
+ this.handle_whitespace_and_comments(R);
23235
23235
  var D = this._tokens.peek(), g = this._tokens.peek(1);
23236
23236
  this._flags.last_word === "switch" && this._flags.last_token.type === o.END_EXPR ? (this.set_mode(A.BlockStatement), this._flags.in_case_statement = !0) : this._flags.case_body ? this.set_mode(A.BlockStatement) : g && (E(g.text, [":", ","]) && E(D.type, [o.STRING, o.WORD, o.RESERVED]) || E(D.text, ["get", "set", "..."]) && E(g.type, [o.WORD, o.RESERVED])) ? E(this._last_last_text, ["class", "interface"]) && !E(g.text, [":", ","]) ? this.set_mode(A.BlockStatement) : this.set_mode(A.ObjectLiteral) : this._flags.last_token.type === o.OPERATOR && this._flags.last_token.text === "=>" ? this.set_mode(A.BlockStatement) : E(this._flags.last_token.type, [o.EQUALS, o.START_EXPR, o.COMMA, o.OPERATOR]) || f(this._flags.last_token, ["return", "throw", "import", "default"]) ? this.set_mode(A.ObjectLiteral) : this.set_mode(A.BlockStatement), this._flags.last_token && f(this._flags.last_token.previous, ["class", "extends"]) && (this._flags.class_start_block = !0);
23237
23237
  var y = !D.comments_before && D.text === "}", U = y && this._flags.last_word === "function" && this._flags.last_token.type === o.END_EXPR;
@@ -23243,53 +23243,53 @@ function F0() {
23243
23243
  this._flags.inline_frame = !1;
23244
23244
  break;
23245
23245
  }
23246
- while (F.type !== o.EOF && !(F.type === o.END_BLOCK && F.opened === S));
23246
+ while (F.type !== o.EOF && !(F.type === o.END_BLOCK && F.opened === R));
23247
23247
  }
23248
- (this._options.brace_style === "expand" || this._options.brace_style === "none" && S.newlines) && !this._flags.inline_frame ? this._flags.last_token.type !== o.OPERATOR && (U || this._flags.last_token.type === o.EQUALS || f(this._flags.last_token, N) && this._flags.last_token.text !== "else") ? this._output.space_before_token = !0 : this.print_newline(!1, !0) : (d(this._previous_flags.mode) && (this._flags.last_token.type === o.START_EXPR || this._flags.last_token.type === o.COMMA) && ((this._flags.last_token.type === o.COMMA || this._options.space_in_paren) && (this._output.space_before_token = !0), (this._flags.last_token.type === o.COMMA || this._flags.last_token.type === o.START_EXPR && this._flags.inline_frame) && (this.allow_wrap_or_preserved_newline(S), this._previous_flags.multiline_frame = this._previous_flags.multiline_frame || this._flags.multiline_frame, this._flags.multiline_frame = !1)), this._flags.last_token.type !== o.OPERATOR && this._flags.last_token.type !== o.START_EXPR && (E(this._flags.last_token.type, [o.START_BLOCK, o.SEMICOLON]) && !this._flags.inline_frame ? this.print_newline() : this._output.space_before_token = !0)), this.print_token(S), this.indent(), !y && !(this._options.brace_preserve_inline && this._flags.inline_frame) && this.print_newline();
23249
- }, L.prototype.handle_end_block = function(S) {
23250
- for (this.handle_whitespace_and_comments(S); this._flags.mode === A.Statement; )
23248
+ (this._options.brace_style === "expand" || this._options.brace_style === "none" && R.newlines) && !this._flags.inline_frame ? this._flags.last_token.type !== o.OPERATOR && (U || this._flags.last_token.type === o.EQUALS || f(this._flags.last_token, N) && this._flags.last_token.text !== "else") ? this._output.space_before_token = !0 : this.print_newline(!1, !0) : (d(this._previous_flags.mode) && (this._flags.last_token.type === o.START_EXPR || this._flags.last_token.type === o.COMMA) && ((this._flags.last_token.type === o.COMMA || this._options.space_in_paren) && (this._output.space_before_token = !0), (this._flags.last_token.type === o.COMMA || this._flags.last_token.type === o.START_EXPR && this._flags.inline_frame) && (this.allow_wrap_or_preserved_newline(R), this._previous_flags.multiline_frame = this._previous_flags.multiline_frame || this._flags.multiline_frame, this._flags.multiline_frame = !1)), this._flags.last_token.type !== o.OPERATOR && this._flags.last_token.type !== o.START_EXPR && (E(this._flags.last_token.type, [o.START_BLOCK, o.SEMICOLON]) && !this._flags.inline_frame ? this.print_newline() : this._output.space_before_token = !0)), this.print_token(R), this.indent(), !y && !(this._options.brace_preserve_inline && this._flags.inline_frame) && this.print_newline();
23249
+ }, L.prototype.handle_end_block = function(R) {
23250
+ for (this.handle_whitespace_and_comments(R); this._flags.mode === A.Statement; )
23251
23251
  this.restore_mode();
23252
23252
  var D = this._flags.last_token.type === o.START_BLOCK;
23253
- this._flags.inline_frame && !D ? this._output.space_before_token = !0 : this._options.brace_style === "expand" ? D || this.print_newline() : D || (d(this._flags.mode) && this._options.keep_array_indentation ? (this._options.keep_array_indentation = !1, this.print_newline(), this._options.keep_array_indentation = !0) : this.print_newline()), this.restore_mode(), this.print_token(S);
23254
- }, L.prototype.handle_word = function(S) {
23255
- if (S.type === o.RESERVED) {
23256
- if (E(S.text, ["set", "get"]) && this._flags.mode !== A.ObjectLiteral)
23257
- S.type = o.WORD;
23258
- else if (S.text === "import" && E(this._tokens.peek().text, ["(", "."]))
23259
- S.type = o.WORD;
23260
- else if (E(S.text, ["as", "from"]) && !this._flags.import_block)
23261
- S.type = o.WORD;
23253
+ this._flags.inline_frame && !D ? this._output.space_before_token = !0 : this._options.brace_style === "expand" ? D || this.print_newline() : D || (d(this._flags.mode) && this._options.keep_array_indentation ? (this._options.keep_array_indentation = !1, this.print_newline(), this._options.keep_array_indentation = !0) : this.print_newline()), this.restore_mode(), this.print_token(R);
23254
+ }, L.prototype.handle_word = function(R) {
23255
+ if (R.type === o.RESERVED) {
23256
+ if (E(R.text, ["set", "get"]) && this._flags.mode !== A.ObjectLiteral)
23257
+ R.type = o.WORD;
23258
+ else if (R.text === "import" && E(this._tokens.peek().text, ["(", "."]))
23259
+ R.type = o.WORD;
23260
+ else if (E(R.text, ["as", "from"]) && !this._flags.import_block)
23261
+ R.type = o.WORD;
23262
23262
  else if (this._flags.mode === A.ObjectLiteral) {
23263
23263
  var D = this._tokens.peek();
23264
- D.text === ":" && (S.type = o.WORD);
23264
+ D.text === ":" && (R.type = o.WORD);
23265
23265
  }
23266
23266
  }
23267
- if (this.start_of_statement(S) ? f(this._flags.last_token, ["var", "let", "const"]) && S.type === o.WORD && (this._flags.declaration_statement = !0) : S.newlines && !m(this._flags.mode) && (this._flags.last_token.type !== o.OPERATOR || this._flags.last_token.text === "--" || this._flags.last_token.text === "++") && this._flags.last_token.type !== o.EQUALS && (this._options.preserve_newlines || !f(this._flags.last_token, ["var", "let", "const", "set", "get"])) ? (this.handle_whitespace_and_comments(S), this.print_newline()) : this.handle_whitespace_and_comments(S), this._flags.do_block && !this._flags.do_while)
23268
- if (c(S, "while")) {
23269
- this._output.space_before_token = !0, this.print_token(S), this._output.space_before_token = !0, this._flags.do_while = !0;
23267
+ if (this.start_of_statement(R) ? f(this._flags.last_token, ["var", "let", "const"]) && R.type === o.WORD && (this._flags.declaration_statement = !0) : R.newlines && !m(this._flags.mode) && (this._flags.last_token.type !== o.OPERATOR || this._flags.last_token.text === "--" || this._flags.last_token.text === "++") && this._flags.last_token.type !== o.EQUALS && (this._options.preserve_newlines || !f(this._flags.last_token, ["var", "let", "const", "set", "get"])) ? (this.handle_whitespace_and_comments(R), this.print_newline()) : this.handle_whitespace_and_comments(R), this._flags.do_block && !this._flags.do_while)
23268
+ if (c(R, "while")) {
23269
+ this._output.space_before_token = !0, this.print_token(R), this._output.space_before_token = !0, this._flags.do_while = !0;
23270
23270
  return;
23271
23271
  } else
23272
23272
  this.print_newline(), this._flags.do_block = !1;
23273
23273
  if (this._flags.if_block)
23274
- if (!this._flags.else_block && c(S, "else"))
23274
+ if (!this._flags.else_block && c(R, "else"))
23275
23275
  this._flags.else_block = !0;
23276
23276
  else {
23277
23277
  for (; this._flags.mode === A.Statement; )
23278
23278
  this.restore_mode();
23279
23279
  this._flags.if_block = !1, this._flags.else_block = !1;
23280
23280
  }
23281
- if (this._flags.in_case_statement && f(S, ["case", "default"])) {
23282
- this.print_newline(), !this._flags.case_block && (this._flags.case_body || this._options.jslint_happy) && this.deindent(), this._flags.case_body = !1, this.print_token(S), this._flags.in_case = !0;
23281
+ if (this._flags.in_case_statement && f(R, ["case", "default"])) {
23282
+ this.print_newline(), !this._flags.case_block && (this._flags.case_body || this._options.jslint_happy) && this.deindent(), this._flags.case_body = !1, this.print_token(R), this._flags.in_case = !0;
23283
23283
  return;
23284
23284
  }
23285
23285
  if ((this._flags.last_token.type === o.COMMA || this._flags.last_token.type === o.START_EXPR || this._flags.last_token.type === o.EQUALS || this._flags.last_token.type === o.OPERATOR) && !this.start_of_object_property() && !// start of object property is different for numeric values with +/- prefix operators
23286
- (E(this._flags.last_token.text, ["+", "-"]) && this._last_last_text === ":" && this._flags.parent.mode === A.ObjectLiteral) && this.allow_wrap_or_preserved_newline(S), c(S, "function")) {
23287
- (E(this._flags.last_token.text, ["}", ";"]) || this._output.just_added_newline() && !(E(this._flags.last_token.text, ["(", "[", "{", ":", "=", ","]) || this._flags.last_token.type === o.OPERATOR)) && !this._output.just_added_blankline() && !S.comments_before && (this.print_newline(), this.print_newline(!0)), this._flags.last_token.type === o.RESERVED || this._flags.last_token.type === o.WORD ? f(this._flags.last_token, ["get", "set", "new", "export"]) || f(this._flags.last_token, M) ? this._output.space_before_token = !0 : c(this._flags.last_token, "default") && this._last_last_text === "export" ? this._output.space_before_token = !0 : this._flags.last_token.text === "declare" ? this._output.space_before_token = !0 : this.print_newline() : this._flags.last_token.type === o.OPERATOR || this._flags.last_token.text === "=" ? this._output.space_before_token = !0 : !this._flags.multiline_frame && (m(this._flags.mode) || d(this._flags.mode)) || this.print_newline(), this.print_token(S), this._flags.last_word = S.text;
23286
+ (E(this._flags.last_token.text, ["+", "-"]) && this._last_last_text === ":" && this._flags.parent.mode === A.ObjectLiteral) && this.allow_wrap_or_preserved_newline(R), c(R, "function")) {
23287
+ (E(this._flags.last_token.text, ["}", ";"]) || this._output.just_added_newline() && !(E(this._flags.last_token.text, ["(", "[", "{", ":", "=", ","]) || this._flags.last_token.type === o.OPERATOR)) && !this._output.just_added_blankline() && !R.comments_before && (this.print_newline(), this.print_newline(!0)), this._flags.last_token.type === o.RESERVED || this._flags.last_token.type === o.WORD ? f(this._flags.last_token, ["get", "set", "new", "export"]) || f(this._flags.last_token, M) ? this._output.space_before_token = !0 : c(this._flags.last_token, "default") && this._last_last_text === "export" ? this._output.space_before_token = !0 : this._flags.last_token.text === "declare" ? this._output.space_before_token = !0 : this.print_newline() : this._flags.last_token.type === o.OPERATOR || this._flags.last_token.text === "=" ? this._output.space_before_token = !0 : !this._flags.multiline_frame && (m(this._flags.mode) || d(this._flags.mode)) || this.print_newline(), this.print_token(R), this._flags.last_word = R.text;
23288
23288
  return;
23289
23289
  }
23290
23290
  var g = "NONE";
23291
- if (this._flags.last_token.type === o.END_BLOCK ? this._previous_flags.inline_frame ? g = "SPACE" : f(S, ["else", "catch", "finally", "from"]) ? this._options.brace_style === "expand" || this._options.brace_style === "end-expand" || this._options.brace_style === "none" && S.newlines ? g = "NEWLINE" : (g = "SPACE", this._output.space_before_token = !0) : g = "NEWLINE" : this._flags.last_token.type === o.SEMICOLON && this._flags.mode === A.BlockStatement ? g = "NEWLINE" : this._flags.last_token.type === o.SEMICOLON && m(this._flags.mode) ? g = "SPACE" : this._flags.last_token.type === o.STRING ? g = "NEWLINE" : this._flags.last_token.type === o.RESERVED || this._flags.last_token.type === o.WORD || this._flags.last_token.text === "*" && (E(this._last_last_text, ["function", "yield"]) || this._flags.mode === A.ObjectLiteral && E(this._last_last_text, ["{", ","])) ? g = "SPACE" : this._flags.last_token.type === o.START_BLOCK ? this._flags.inline_frame ? g = "SPACE" : g = "NEWLINE" : this._flags.last_token.type === o.END_EXPR && (this._output.space_before_token = !0, g = "NEWLINE"), f(S, s) && this._flags.last_token.text !== ")" && (this._flags.inline_frame || this._flags.last_token.text === "else" || this._flags.last_token.text === "export" ? g = "SPACE" : g = "NEWLINE"), f(S, ["else", "catch", "finally"]))
23292
- if ((!(this._flags.last_token.type === o.END_BLOCK && this._previous_flags.mode === A.BlockStatement) || this._options.brace_style === "expand" || this._options.brace_style === "end-expand" || this._options.brace_style === "none" && S.newlines) && !this._flags.inline_frame)
23291
+ if (this._flags.last_token.type === o.END_BLOCK ? this._previous_flags.inline_frame ? g = "SPACE" : f(R, ["else", "catch", "finally", "from"]) ? this._options.brace_style === "expand" || this._options.brace_style === "end-expand" || this._options.brace_style === "none" && R.newlines ? g = "NEWLINE" : (g = "SPACE", this._output.space_before_token = !0) : g = "NEWLINE" : this._flags.last_token.type === o.SEMICOLON && this._flags.mode === A.BlockStatement ? g = "NEWLINE" : this._flags.last_token.type === o.SEMICOLON && m(this._flags.mode) ? g = "SPACE" : this._flags.last_token.type === o.STRING ? g = "NEWLINE" : this._flags.last_token.type === o.RESERVED || this._flags.last_token.type === o.WORD || this._flags.last_token.text === "*" && (E(this._last_last_text, ["function", "yield"]) || this._flags.mode === A.ObjectLiteral && E(this._last_last_text, ["{", ","])) ? g = "SPACE" : this._flags.last_token.type === o.START_BLOCK ? this._flags.inline_frame ? g = "SPACE" : g = "NEWLINE" : this._flags.last_token.type === o.END_EXPR && (this._output.space_before_token = !0, g = "NEWLINE"), f(R, s) && this._flags.last_token.text !== ")" && (this._flags.inline_frame || this._flags.last_token.text === "else" || this._flags.last_token.text === "export" ? g = "SPACE" : g = "NEWLINE"), f(R, ["else", "catch", "finally"]))
23292
+ if ((!(this._flags.last_token.type === o.END_BLOCK && this._previous_flags.mode === A.BlockStatement) || this._options.brace_style === "expand" || this._options.brace_style === "end-expand" || this._options.brace_style === "none" && R.newlines) && !this._flags.inline_frame)
23293
23293
  this.print_newline();
23294
23294
  else {
23295
23295
  this._output.trim(!0);
@@ -23297,105 +23297,105 @@ function F0() {
23297
23297
  y.last() !== "}" && this.print_newline(), this._output.space_before_token = !0;
23298
23298
  }
23299
23299
  else
23300
- g === "NEWLINE" ? f(this._flags.last_token, N) ? this._output.space_before_token = !0 : this._flags.last_token.text === "declare" && f(S, ["var", "let", "const"]) ? this._output.space_before_token = !0 : this._flags.last_token.type !== o.END_EXPR ? (this._flags.last_token.type !== o.START_EXPR || !f(S, ["var", "let", "const"])) && this._flags.last_token.text !== ":" && (c(S, "if") && c(S.previous, "else") ? this._output.space_before_token = !0 : this.print_newline()) : f(S, s) && this._flags.last_token.text !== ")" && this.print_newline() : this._flags.multiline_frame && d(this._flags.mode) && this._flags.last_token.text === "," && this._last_last_text === "}" ? this.print_newline() : g === "SPACE" && (this._output.space_before_token = !0);
23301
- S.previous && (S.previous.type === o.WORD || S.previous.type === o.RESERVED) && (this._output.space_before_token = !0), this.print_token(S), this._flags.last_word = S.text, S.type === o.RESERVED && (S.text === "do" ? this._flags.do_block = !0 : S.text === "if" ? this._flags.if_block = !0 : S.text === "import" ? this._flags.import_block = !0 : this._flags.import_block && c(S, "from") && (this._flags.import_block = !1));
23302
- }, L.prototype.handle_semicolon = function(S) {
23303
- this.start_of_statement(S) ? this._output.space_before_token = !1 : this.handle_whitespace_and_comments(S);
23300
+ g === "NEWLINE" ? f(this._flags.last_token, N) ? this._output.space_before_token = !0 : this._flags.last_token.text === "declare" && f(R, ["var", "let", "const"]) ? this._output.space_before_token = !0 : this._flags.last_token.type !== o.END_EXPR ? (this._flags.last_token.type !== o.START_EXPR || !f(R, ["var", "let", "const"])) && this._flags.last_token.text !== ":" && (c(R, "if") && c(R.previous, "else") ? this._output.space_before_token = !0 : this.print_newline()) : f(R, s) && this._flags.last_token.text !== ")" && this.print_newline() : this._flags.multiline_frame && d(this._flags.mode) && this._flags.last_token.text === "," && this._last_last_text === "}" ? this.print_newline() : g === "SPACE" && (this._output.space_before_token = !0);
23301
+ R.previous && (R.previous.type === o.WORD || R.previous.type === o.RESERVED) && (this._output.space_before_token = !0), this.print_token(R), this._flags.last_word = R.text, R.type === o.RESERVED && (R.text === "do" ? this._flags.do_block = !0 : R.text === "if" ? this._flags.if_block = !0 : R.text === "import" ? this._flags.import_block = !0 : this._flags.import_block && c(R, "from") && (this._flags.import_block = !1));
23302
+ }, L.prototype.handle_semicolon = function(R) {
23303
+ this.start_of_statement(R) ? this._output.space_before_token = !1 : this.handle_whitespace_and_comments(R);
23304
23304
  for (var D = this._tokens.peek(); this._flags.mode === A.Statement && !(this._flags.if_block && c(D, "else")) && !this._flags.do_block; )
23305
23305
  this.restore_mode();
23306
- this._flags.import_block && (this._flags.import_block = !1), this.print_token(S);
23307
- }, L.prototype.handle_string = function(S) {
23308
- S.text.startsWith("`") && S.newlines === 0 && S.whitespace_before === "" && (S.previous.text === ")" || this._flags.last_token.type === o.WORD) || (this.start_of_statement(S) ? this._output.space_before_token = !0 : (this.handle_whitespace_and_comments(S), this._flags.last_token.type === o.RESERVED || this._flags.last_token.type === o.WORD || this._flags.inline_frame ? this._output.space_before_token = !0 : this._flags.last_token.type === o.COMMA || this._flags.last_token.type === o.START_EXPR || this._flags.last_token.type === o.EQUALS || this._flags.last_token.type === o.OPERATOR ? this.start_of_object_property() || this.allow_wrap_or_preserved_newline(S) : S.text.startsWith("`") && this._flags.last_token.type === o.END_EXPR && (S.previous.text === "]" || S.previous.text === ")") && S.newlines === 0 ? this._output.space_before_token = !0 : this.print_newline())), this.print_token(S);
23309
- }, L.prototype.handle_equals = function(S) {
23310
- this.start_of_statement(S) || this.handle_whitespace_and_comments(S), this._flags.declaration_statement && (this._flags.declaration_assignment = !0), this._output.space_before_token = !0, this.print_token(S), this._output.space_before_token = !0;
23311
- }, L.prototype.handle_comma = function(S) {
23312
- this.handle_whitespace_and_comments(S, !0), this.print_token(S), this._output.space_before_token = !0, this._flags.declaration_statement ? (m(this._flags.parent.mode) && (this._flags.declaration_assignment = !1), this._flags.declaration_assignment ? (this._flags.declaration_assignment = !1, this.print_newline(!1, !0)) : this._options.comma_first && this.allow_wrap_or_preserved_newline(S)) : this._flags.mode === A.ObjectLiteral || this._flags.mode === A.Statement && this._flags.parent.mode === A.ObjectLiteral ? (this._flags.mode === A.Statement && this.restore_mode(), this._flags.inline_frame || this.print_newline()) : this._options.comma_first && this.allow_wrap_or_preserved_newline(S);
23313
- }, L.prototype.handle_operator = function(S) {
23314
- var D = S.text === "*" && (f(this._flags.last_token, ["function", "yield"]) || E(this._flags.last_token.type, [o.START_BLOCK, o.COMMA, o.END_BLOCK, o.SEMICOLON])), g = E(S.text, ["-", "+"]) && (E(this._flags.last_token.type, [o.START_BLOCK, o.START_EXPR, o.EQUALS, o.OPERATOR]) || E(this._flags.last_token.text, s) || this._flags.last_token.text === ",");
23315
- if (!this.start_of_statement(S)) {
23306
+ this._flags.import_block && (this._flags.import_block = !1), this.print_token(R);
23307
+ }, L.prototype.handle_string = function(R) {
23308
+ R.text.startsWith("`") && R.newlines === 0 && R.whitespace_before === "" && (R.previous.text === ")" || this._flags.last_token.type === o.WORD) || (this.start_of_statement(R) ? this._output.space_before_token = !0 : (this.handle_whitespace_and_comments(R), this._flags.last_token.type === o.RESERVED || this._flags.last_token.type === o.WORD || this._flags.inline_frame ? this._output.space_before_token = !0 : this._flags.last_token.type === o.COMMA || this._flags.last_token.type === o.START_EXPR || this._flags.last_token.type === o.EQUALS || this._flags.last_token.type === o.OPERATOR ? this.start_of_object_property() || this.allow_wrap_or_preserved_newline(R) : R.text.startsWith("`") && this._flags.last_token.type === o.END_EXPR && (R.previous.text === "]" || R.previous.text === ")") && R.newlines === 0 ? this._output.space_before_token = !0 : this.print_newline())), this.print_token(R);
23309
+ }, L.prototype.handle_equals = function(R) {
23310
+ this.start_of_statement(R) || this.handle_whitespace_and_comments(R), this._flags.declaration_statement && (this._flags.declaration_assignment = !0), this._output.space_before_token = !0, this.print_token(R), this._output.space_before_token = !0;
23311
+ }, L.prototype.handle_comma = function(R) {
23312
+ this.handle_whitespace_and_comments(R, !0), this.print_token(R), this._output.space_before_token = !0, this._flags.declaration_statement ? (m(this._flags.parent.mode) && (this._flags.declaration_assignment = !1), this._flags.declaration_assignment ? (this._flags.declaration_assignment = !1, this.print_newline(!1, !0)) : this._options.comma_first && this.allow_wrap_or_preserved_newline(R)) : this._flags.mode === A.ObjectLiteral || this._flags.mode === A.Statement && this._flags.parent.mode === A.ObjectLiteral ? (this._flags.mode === A.Statement && this.restore_mode(), this._flags.inline_frame || this.print_newline()) : this._options.comma_first && this.allow_wrap_or_preserved_newline(R);
23313
+ }, L.prototype.handle_operator = function(R) {
23314
+ var D = R.text === "*" && (f(this._flags.last_token, ["function", "yield"]) || E(this._flags.last_token.type, [o.START_BLOCK, o.COMMA, o.END_BLOCK, o.SEMICOLON])), g = E(R.text, ["-", "+"]) && (E(this._flags.last_token.type, [o.START_BLOCK, o.START_EXPR, o.EQUALS, o.OPERATOR]) || E(this._flags.last_token.text, s) || this._flags.last_token.text === ",");
23315
+ if (!this.start_of_statement(R)) {
23316
23316
  var y = !D;
23317
- this.handle_whitespace_and_comments(S, y);
23317
+ this.handle_whitespace_and_comments(R, y);
23318
23318
  }
23319
- if (S.text === "*" && this._flags.last_token.type === o.DOT) {
23320
- this.print_token(S);
23319
+ if (R.text === "*" && this._flags.last_token.type === o.DOT) {
23320
+ this.print_token(R);
23321
23321
  return;
23322
23322
  }
23323
- if (S.text === "::") {
23324
- this.print_token(S);
23323
+ if (R.text === "::") {
23324
+ this.print_token(R);
23325
23325
  return;
23326
23326
  }
23327
- if (E(S.text, ["-", "+"]) && this.start_of_object_property()) {
23328
- this.print_token(S);
23327
+ if (E(R.text, ["-", "+"]) && this.start_of_object_property()) {
23328
+ this.print_token(R);
23329
23329
  return;
23330
23330
  }
23331
- if (this._flags.last_token.type === o.OPERATOR && E(this._options.operator_position, p) && this.allow_wrap_or_preserved_newline(S), S.text === ":" && this._flags.in_case) {
23332
- this.print_token(S), this._flags.in_case = !1, this._flags.case_body = !0, this._tokens.peek().type !== o.START_BLOCK ? (this.indent(), this.print_newline(), this._flags.case_block = !1) : (this._flags.case_block = !0, this._output.space_before_token = !0);
23331
+ if (this._flags.last_token.type === o.OPERATOR && E(this._options.operator_position, O) && this.allow_wrap_or_preserved_newline(R), R.text === ":" && this._flags.in_case) {
23332
+ this.print_token(R), this._flags.in_case = !1, this._flags.case_body = !0, this._tokens.peek().type !== o.START_BLOCK ? (this.indent(), this.print_newline(), this._flags.case_block = !1) : (this._flags.case_block = !0, this._output.space_before_token = !0);
23333
23333
  return;
23334
23334
  }
23335
23335
  var U = !0, x = !0, F = !1;
23336
- if (S.text === ":" ? this._flags.ternary_depth === 0 ? U = !1 : (this._flags.ternary_depth -= 1, F = !0) : S.text === "?" && (this._flags.ternary_depth += 1), !g && !D && this._options.preserve_newlines && E(S.text, a)) {
23337
- var Y = S.text === ":", v = Y && F, B = Y && !F;
23336
+ if (R.text === ":" ? this._flags.ternary_depth === 0 ? U = !1 : (this._flags.ternary_depth -= 1, F = !0) : R.text === "?" && (this._flags.ternary_depth += 1), !g && !D && this._options.preserve_newlines && E(R.text, a)) {
23337
+ var Y = R.text === ":", v = Y && F, B = Y && !F;
23338
23338
  switch (this._options.operator_position) {
23339
23339
  case h.before_newline:
23340
- this._output.space_before_token = !B, this.print_token(S), (!Y || v) && this.allow_wrap_or_preserved_newline(S), this._output.space_before_token = !0;
23340
+ this._output.space_before_token = !B, this.print_token(R), (!Y || v) && this.allow_wrap_or_preserved_newline(R), this._output.space_before_token = !0;
23341
23341
  return;
23342
23342
  case h.after_newline:
23343
- this._output.space_before_token = !0, !Y || v ? this._tokens.peek().newlines ? this.print_newline(!1, !0) : this.allow_wrap_or_preserved_newline(S) : this._output.space_before_token = !1, this.print_token(S), this._output.space_before_token = !0;
23343
+ this._output.space_before_token = !0, !Y || v ? this._tokens.peek().newlines ? this.print_newline(!1, !0) : this.allow_wrap_or_preserved_newline(R) : this._output.space_before_token = !1, this.print_token(R), this._output.space_before_token = !0;
23344
23344
  return;
23345
23345
  case h.preserve_newline:
23346
- B || this.allow_wrap_or_preserved_newline(S), U = !(this._output.just_added_newline() || B), this._output.space_before_token = U, this.print_token(S), this._output.space_before_token = !0;
23346
+ B || this.allow_wrap_or_preserved_newline(R), U = !(this._output.just_added_newline() || B), this._output.space_before_token = U, this.print_token(R), this._output.space_before_token = !0;
23347
23347
  return;
23348
23348
  }
23349
23349
  }
23350
23350
  if (D) {
23351
- this.allow_wrap_or_preserved_newline(S), U = !1;
23351
+ this.allow_wrap_or_preserved_newline(R), U = !1;
23352
23352
  var V = this._tokens.peek();
23353
23353
  x = V && E(V.type, [o.WORD, o.RESERVED]);
23354
- } else if (S.text === "...")
23355
- this.allow_wrap_or_preserved_newline(S), U = this._flags.last_token.type === o.START_BLOCK, x = !1;
23356
- else if (E(S.text, ["--", "++", "!", "~"]) || g) {
23357
- if ((this._flags.last_token.type === o.COMMA || this._flags.last_token.type === o.START_EXPR) && this.allow_wrap_or_preserved_newline(S), U = !1, x = !1, S.newlines && (S.text === "--" || S.text === "++" || S.text === "~")) {
23358
- var X = f(this._flags.last_token, N) && S.newlines;
23354
+ } else if (R.text === "...")
23355
+ this.allow_wrap_or_preserved_newline(R), U = this._flags.last_token.type === o.START_BLOCK, x = !1;
23356
+ else if (E(R.text, ["--", "++", "!", "~"]) || g) {
23357
+ if ((this._flags.last_token.type === o.COMMA || this._flags.last_token.type === o.START_EXPR) && this.allow_wrap_or_preserved_newline(R), U = !1, x = !1, R.newlines && (R.text === "--" || R.text === "++" || R.text === "~")) {
23358
+ var X = f(this._flags.last_token, N) && R.newlines;
23359
23359
  X && (this._previous_flags.if_block || this._previous_flags.else_block) && this.restore_mode(), this.print_newline(X, !0);
23360
23360
  }
23361
- this._flags.last_token.text === ";" && m(this._flags.mode) && (U = !0), this._flags.last_token.type === o.RESERVED ? U = !0 : this._flags.last_token.type === o.END_EXPR ? U = !(this._flags.last_token.text === "]" && (S.text === "--" || S.text === "++")) : this._flags.last_token.type === o.OPERATOR && (U = E(S.text, ["--", "-", "++", "+"]) && E(this._flags.last_token.text, ["--", "-", "++", "+"]), E(S.text, ["+", "-"]) && E(this._flags.last_token.text, ["--", "++"]) && (x = !0)), (this._flags.mode === A.BlockStatement && !this._flags.inline_frame || this._flags.mode === A.Statement) && (this._flags.last_token.text === "{" || this._flags.last_token.text === ";") && this.print_newline();
23361
+ this._flags.last_token.text === ";" && m(this._flags.mode) && (U = !0), this._flags.last_token.type === o.RESERVED ? U = !0 : this._flags.last_token.type === o.END_EXPR ? U = !(this._flags.last_token.text === "]" && (R.text === "--" || R.text === "++")) : this._flags.last_token.type === o.OPERATOR && (U = E(R.text, ["--", "-", "++", "+"]) && E(this._flags.last_token.text, ["--", "-", "++", "+"]), E(R.text, ["+", "-"]) && E(this._flags.last_token.text, ["--", "++"]) && (x = !0)), (this._flags.mode === A.BlockStatement && !this._flags.inline_frame || this._flags.mode === A.Statement) && (this._flags.last_token.text === "{" || this._flags.last_token.text === ";") && this.print_newline();
23362
23362
  }
23363
- this._output.space_before_token = this._output.space_before_token || U, this.print_token(S), this._output.space_before_token = x;
23364
- }, L.prototype.handle_block_comment = function(S, D) {
23363
+ this._output.space_before_token = this._output.space_before_token || U, this.print_token(R), this._output.space_before_token = x;
23364
+ }, L.prototype.handle_block_comment = function(R, D) {
23365
23365
  if (this._output.raw) {
23366
- this._output.add_raw_token(S), S.directives && S.directives.preserve === "end" && (this._output.raw = this._options.test_output_raw);
23366
+ this._output.add_raw_token(R), R.directives && R.directives.preserve === "end" && (this._output.raw = this._options.test_output_raw);
23367
23367
  return;
23368
23368
  }
23369
- if (S.directives) {
23370
- this.print_newline(!1, D), this.print_token(S), S.directives.preserve === "start" && (this._output.raw = !0), this.print_newline(!1, !0);
23369
+ if (R.directives) {
23370
+ this.print_newline(!1, D), this.print_token(R), R.directives.preserve === "start" && (this._output.raw = !0), this.print_newline(!1, !0);
23371
23371
  return;
23372
23372
  }
23373
- if (!n.newline.test(S.text) && !S.newlines) {
23374
- this._output.space_before_token = !0, this.print_token(S), this._output.space_before_token = !0;
23373
+ if (!n.newline.test(R.text) && !R.newlines) {
23374
+ this._output.space_before_token = !0, this.print_token(R), this._output.space_before_token = !0;
23375
23375
  return;
23376
23376
  } else
23377
- this.print_block_commment(S, D);
23378
- }, L.prototype.print_block_commment = function(S, D) {
23379
- var g = O(S.text), y, U = !1, x = !1, F = S.whitespace_before, Y = F.length;
23380
- if (this.print_newline(!1, D), this.print_token_line_indentation(S), this._output.add_token(g[0]), this.print_newline(!1, D), g.length > 1) {
23377
+ this.print_block_commment(R, D);
23378
+ }, L.prototype.print_block_commment = function(R, D) {
23379
+ var g = p(R.text), y, U = !1, x = !1, F = R.whitespace_before, Y = F.length;
23380
+ if (this.print_newline(!1, D), this.print_token_line_indentation(R), this._output.add_token(g[0]), this.print_newline(!1, D), g.length > 1) {
23381
23381
  for (g = g.slice(1), U = _(g, "*"), x = C(g, F), U && (this._flags.alignment = 1), y = 0; y < g.length; y++)
23382
- U ? (this.print_token_line_indentation(S), this._output.add_token(l(g[y]))) : x && g[y] ? (this.print_token_line_indentation(S), this._output.add_token(g[y].substring(Y))) : (this._output.current_line.set_indent(-1), this._output.add_token(g[y])), this.print_newline(!1, D);
23382
+ U ? (this.print_token_line_indentation(R), this._output.add_token(l(g[y]))) : x && g[y] ? (this.print_token_line_indentation(R), this._output.add_token(g[y].substring(Y))) : (this._output.current_line.set_indent(-1), this._output.add_token(g[y])), this.print_newline(!1, D);
23383
23383
  this._flags.alignment = 0;
23384
23384
  }
23385
- }, L.prototype.handle_comment = function(S, D) {
23386
- S.newlines ? this.print_newline(!1, D) : this._output.trim(!0), this._output.space_before_token = !0, this.print_token(S), this.print_newline(!1, D);
23387
- }, L.prototype.handle_dot = function(S) {
23388
- this.start_of_statement(S) || this.handle_whitespace_and_comments(S, !0), this._flags.last_token.text.match("^[0-9]+$") && (this._output.space_before_token = !0), f(this._flags.last_token, N) ? this._output.space_before_token = !1 : this.allow_wrap_or_preserved_newline(
23389
- S,
23385
+ }, L.prototype.handle_comment = function(R, D) {
23386
+ R.newlines ? this.print_newline(!1, D) : this._output.trim(!0), this._output.space_before_token = !0, this.print_token(R), this.print_newline(!1, D);
23387
+ }, L.prototype.handle_dot = function(R) {
23388
+ this.start_of_statement(R) || this.handle_whitespace_and_comments(R, !0), this._flags.last_token.text.match("^[0-9]+$") && (this._output.space_before_token = !0), f(this._flags.last_token, N) ? this._output.space_before_token = !1 : this.allow_wrap_or_preserved_newline(
23389
+ R,
23390
23390
  this._flags.last_token.text === ")" && this._options.break_chained_methods
23391
- ), this._options.unindent_chained_methods && this._output.just_added_newline() && this.deindent(), this.print_token(S);
23392
- }, L.prototype.handle_unknown = function(S, D) {
23393
- this.print_token(S), S.text[S.text.length - 1] === `
23391
+ ), this._options.unindent_chained_methods && this._output.just_added_newline() && this.deindent(), this.print_token(R);
23392
+ }, L.prototype.handle_unknown = function(R, D) {
23393
+ this.print_token(R), R.text[R.text.length - 1] === `
23394
23394
  ` && this.print_newline(!1, D);
23395
- }, L.prototype.handle_eof = function(S) {
23395
+ }, L.prototype.handle_eof = function(R) {
23396
23396
  for (; this._flags.mode === A.Statement; )
23397
23397
  this.restore_mode();
23398
- this.handle_whitespace_and_comments(S);
23398
+ this.handle_whitespace_and_comments(R);
23399
23399
  }, Ko.Beautifier = L, Ko;
23400
23400
  }
23401
23401
  var ac;
@@ -23501,11 +23501,11 @@ function V0() {
23501
23501
  `);
23502
23502
  var I = f.match(/^[\t ]*/)[0];
23503
23503
  this._output = new t(this._options, I), this._input = new n(f), this._indentLevel = 0, this._nestedLevel = 0, this._ch = null;
23504
- for (var h = 0, p = !1, A = !1, R = !1, O = !1, d = !1, m = this._ch, _ = !1, C, L, M; C = this._input.read(E), L = C !== "", M = m, this._ch = this._input.next(), this._ch === "\\" && this._input.hasNext() && (this._ch += this._input.next()), m = this._ch, this._ch; )
23504
+ for (var h = 0, O = !1, A = !1, S = !1, p = !1, d = !1, m = this._ch, _ = !1, C, L, M; C = this._input.read(E), L = C !== "", M = m, this._ch = this._input.next(), this._ch === "\\" && this._input.hasNext() && (this._ch += this._input.next()), m = this._ch, this._ch; )
23505
23505
  if (this._ch === "/" && this._input.peek() === "*") {
23506
23506
  this._output.add_new_line(), this._input.back();
23507
- var S = this._input.read(l), D = i.get_directives(S);
23508
- D && D.ignore === "start" && (S += i.readIgnored(this._input)), this.print_string(S), this.eatWhitespace(!0), this._output.add_new_line();
23507
+ var R = this._input.read(l), D = i.get_directives(R);
23508
+ D && D.ignore === "start" && (R += i.readIgnored(this._input)), this.print_string(R), this.eatWhitespace(!0), this._output.add_new_line();
23509
23509
  } else if (this._ch === "/" && this._input.peek() === "/")
23510
23510
  this._output.space_before_token = !0, this._input.back(), this.print_string(this._input.read(u)), this.eatWhitespace(!0);
23511
23511
  else if (this._ch === "$") {
@@ -23518,26 +23518,26 @@ function V0() {
23518
23518
  else {
23519
23519
  this.print_string(this._ch);
23520
23520
  var y = this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);
23521
- y.match(/[ :]$/) && (y = this.eatString(": ").replace(/\s+$/, ""), this.print_string(y), this._output.space_before_token = !0), h === 0 && y.indexOf(":") !== -1 ? (A = !0, this.indent()) : y in this.NESTED_AT_RULE ? (this._nestedLevel += 1, y in this.CONDITIONAL_GROUP_RULE && (R = !0)) : h === 0 && !A && (O = !0);
23521
+ y.match(/[ :]$/) && (y = this.eatString(": ").replace(/\s+$/, ""), this.print_string(y), this._output.space_before_token = !0), h === 0 && y.indexOf(":") !== -1 ? (A = !0, this.indent()) : y in this.NESTED_AT_RULE ? (this._nestedLevel += 1, y in this.CONDITIONAL_GROUP_RULE && (S = !0)) : h === 0 && !A && (p = !0);
23522
23522
  }
23523
23523
  else if (this._ch === "#" && this._input.peek() === "{")
23524
23524
  this.preserveSingleSpace(L), this.print_string(this._ch + this.eatString("}"));
23525
23525
  else if (this._ch === "{")
23526
- A && (A = !1, this.outdent()), O = !1, R ? (R = !1, p = this._indentLevel >= this._nestedLevel) : p = this._indentLevel >= this._nestedLevel - 1, this._options.newline_between_rules && p && this._output.previous_line && this._output.previous_line.item(-1) !== "{" && this._output.ensure_empty_line_above("/", ","), this._output.space_before_token = !0, this._options.brace_style === "expand" ? (this._output.add_new_line(), this.print_string(this._ch), this.indent(), this._output.set_indent(this._indentLevel)) : (M === "(" ? this._output.space_before_token = !1 : M !== "," && this.indent(), this.print_string(this._ch)), this.eatWhitespace(!0), this._output.add_new_line();
23526
+ A && (A = !1, this.outdent()), p = !1, S ? (S = !1, O = this._indentLevel >= this._nestedLevel) : O = this._indentLevel >= this._nestedLevel - 1, this._options.newline_between_rules && O && this._output.previous_line && this._output.previous_line.item(-1) !== "{" && this._output.ensure_empty_line_above("/", ","), this._output.space_before_token = !0, this._options.brace_style === "expand" ? (this._output.add_new_line(), this.print_string(this._ch), this.indent(), this._output.set_indent(this._indentLevel)) : (M === "(" ? this._output.space_before_token = !1 : M !== "," && this.indent(), this.print_string(this._ch)), this.eatWhitespace(!0), this._output.add_new_line();
23527
23527
  else if (this._ch === "}")
23528
- this.outdent(), this._output.add_new_line(), M === "{" && this._output.trim(!0), A && (this.outdent(), A = !1), this.print_string(this._ch), p = !1, this._nestedLevel && this._nestedLevel--, this.eatWhitespace(!0), this._output.add_new_line(), this._options.newline_between_rules && !this._output.just_added_blankline() && this._input.peek() !== "}" && this._output.add_new_line(!0), this._input.peek() === ")" && (this._output.trim(!0), this._options.brace_style === "expand" && this._output.add_new_line(!0));
23528
+ this.outdent(), this._output.add_new_line(), M === "{" && this._output.trim(!0), A && (this.outdent(), A = !1), this.print_string(this._ch), O = !1, this._nestedLevel && this._nestedLevel--, this.eatWhitespace(!0), this._output.add_new_line(), this._options.newline_between_rules && !this._output.just_added_blankline() && this._input.peek() !== "}" && this._output.add_new_line(!0), this._input.peek() === ")" && (this._output.trim(!0), this._options.brace_style === "expand" && this._output.add_new_line(!0));
23529
23529
  else if (this._ch === ":") {
23530
23530
  for (var U = 0; U < this.NON_SEMICOLON_NEWLINE_PROPERTY.length; U++)
23531
23531
  if (this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[U])) {
23532
23532
  _ = !0;
23533
23533
  break;
23534
23534
  }
23535
- (p || R) && !(this._input.lookBack("&") || this.foundNestedPseudoClass()) && !this._input.lookBack("(") && !O && h === 0 ? (this.print_string(":"), A || (A = !0, this._output.space_before_token = !0, this.eatWhitespace(!0), this.indent())) : (this._input.lookBack(" ") && (this._output.space_before_token = !0), this._input.peek() === ":" ? (this._ch = this._input.next(), this.print_string("::")) : this.print_string(":"));
23535
+ (O || S) && !(this._input.lookBack("&") || this.foundNestedPseudoClass()) && !this._input.lookBack("(") && !p && h === 0 ? (this.print_string(":"), A || (A = !0, this._output.space_before_token = !0, this.eatWhitespace(!0), this.indent())) : (this._input.lookBack(" ") && (this._output.space_before_token = !0), this._input.peek() === ":" ? (this._ch = this._input.next(), this.print_string("::")) : this.print_string(":"));
23536
23536
  } else if (this._ch === '"' || this._ch === "'") {
23537
23537
  var x = M === '"' || M === "'";
23538
23538
  this.preserveSingleSpace(x || L), this.print_string(this._ch + this.eatString(this._ch)), this.eatWhitespace(!0);
23539
23539
  } else if (this._ch === ";")
23540
- _ = !1, h === 0 ? (A && (this.outdent(), A = !1), O = !1, this.print_string(this._ch), this.eatWhitespace(!0), this._input.peek() !== "/" && this._output.add_new_line()) : (this.print_string(this._ch), this.eatWhitespace(!0), this._output.space_before_token = !0);
23540
+ _ = !1, h === 0 ? (A && (this.outdent(), A = !1), p = !1, this.print_string(this._ch), this.eatWhitespace(!0), this._input.peek() !== "/" && this._output.add_new_line()) : (this.print_string(this._ch), this.eatWhitespace(!0), this._output.space_before_token = !0);
23541
23541
  else if (this._ch === "(")
23542
23542
  if (this._input.lookBack("url"))
23543
23543
  this.print_string(this._ch), this.eatWhitespace(), h++, this.indent(), this._ch = this._input.next(), this._ch === ")" || this._ch === '"' || this._ch === "'" ? this._input.back() : this._ch && (this.print_string(this._ch + this.eatString(")")), h && (h--, this.outdent()));
@@ -23548,7 +23548,7 @@ function V0() {
23548
23548
  else if (this._ch === ")")
23549
23549
  h && (h--, this.outdent()), d && this._input.peek() === ";" && this._options.selector_separator_newline && (d = !1, this.outdent(), this._output.add_new_line()), this.print_string(this._ch);
23550
23550
  else if (this._ch === ",")
23551
- this.print_string(this._ch), this.eatWhitespace(!0), this._options.selector_separator_newline && (!A || d) && h === 0 && !O ? this._output.add_new_line() : this._output.space_before_token = !0;
23551
+ this.print_string(this._ch), this.eatWhitespace(!0), this._options.selector_separator_newline && (!A || d) && h === 0 && !p ? this._output.add_new_line() : this._output.space_before_token = !0;
23552
23552
  else if ((this._ch === ">" || this._ch === "+" || this._ch === "~") && !A && h === 0)
23553
23553
  this._options.space_around_combinator ? (this._output.space_before_token = !0, this.print_string(this._ch), this._output.space_before_token = !0) : (this.print_string(this._ch), this.eatWhitespace(), this._ch && o.test(this._ch) && (this._ch = ""));
23554
23554
  else if (this._ch === "]")
@@ -23803,140 +23803,140 @@ function W0() {
23803
23803
  if (cc)
23804
23804
  return aE;
23805
23805
  cc = 1;
23806
- var e = ud().Options, t = Cu().Output, n = Ac().Tokenizer, r = Ac().TOKEN, i = /\r\n|[\r\n]/, s = /\r\n|[\r\n]/g, a = function(p, A) {
23807
- this.indent_level = 0, this.alignment_size = 0, this.max_preserve_newlines = p.max_preserve_newlines, this.preserve_newlines = p.preserve_newlines, this._output = new t(p, A);
23806
+ var e = ud().Options, t = Cu().Output, n = Ac().Tokenizer, r = Ac().TOKEN, i = /\r\n|[\r\n]/, s = /\r\n|[\r\n]/g, a = function(O, A) {
23807
+ this.indent_level = 0, this.alignment_size = 0, this.max_preserve_newlines = O.max_preserve_newlines, this.preserve_newlines = O.preserve_newlines, this._output = new t(O, A);
23808
23808
  };
23809
- a.prototype.current_line_has_match = function(p) {
23810
- return this._output.current_line.has_match(p);
23811
- }, a.prototype.set_space_before_token = function(p, A) {
23812
- this._output.space_before_token = p, this._output.non_breaking_space = A;
23809
+ a.prototype.current_line_has_match = function(O) {
23810
+ return this._output.current_line.has_match(O);
23811
+ }, a.prototype.set_space_before_token = function(O, A) {
23812
+ this._output.space_before_token = O, this._output.non_breaking_space = A;
23813
23813
  }, a.prototype.set_wrap_point = function() {
23814
23814
  this._output.set_indent(this.indent_level, this.alignment_size), this._output.set_wrap_point();
23815
- }, a.prototype.add_raw_token = function(p) {
23816
- this._output.add_raw_token(p);
23817
- }, a.prototype.print_preserved_newlines = function(p) {
23815
+ }, a.prototype.add_raw_token = function(O) {
23816
+ this._output.add_raw_token(O);
23817
+ }, a.prototype.print_preserved_newlines = function(O) {
23818
23818
  var A = 0;
23819
- p.type !== r.TEXT && p.previous.type !== r.TEXT && (A = p.newlines ? 1 : 0), this.preserve_newlines && (A = p.newlines < this.max_preserve_newlines + 1 ? p.newlines : this.max_preserve_newlines + 1);
23820
- for (var R = 0; R < A; R++)
23821
- this.print_newline(R > 0);
23819
+ O.type !== r.TEXT && O.previous.type !== r.TEXT && (A = O.newlines ? 1 : 0), this.preserve_newlines && (A = O.newlines < this.max_preserve_newlines + 1 ? O.newlines : this.max_preserve_newlines + 1);
23820
+ for (var S = 0; S < A; S++)
23821
+ this.print_newline(S > 0);
23822
23822
  return A !== 0;
23823
- }, a.prototype.traverse_whitespace = function(p) {
23824
- return p.whitespace_before || p.newlines ? (this.print_preserved_newlines(p) || (this._output.space_before_token = !0), !0) : !1;
23823
+ }, a.prototype.traverse_whitespace = function(O) {
23824
+ return O.whitespace_before || O.newlines ? (this.print_preserved_newlines(O) || (this._output.space_before_token = !0), !0) : !1;
23825
23825
  }, a.prototype.previous_token_wrapped = function() {
23826
23826
  return this._output.previous_token_wrapped;
23827
- }, a.prototype.print_newline = function(p) {
23828
- this._output.add_new_line(p);
23829
- }, a.prototype.print_token = function(p) {
23830
- p.text && (this._output.set_indent(this.indent_level, this.alignment_size), this._output.add_token(p.text));
23827
+ }, a.prototype.print_newline = function(O) {
23828
+ this._output.add_new_line(O);
23829
+ }, a.prototype.print_token = function(O) {
23830
+ O.text && (this._output.set_indent(this.indent_level, this.alignment_size), this._output.add_token(O.text));
23831
23831
  }, a.prototype.indent = function() {
23832
23832
  this.indent_level++;
23833
- }, a.prototype.get_full_indent = function(p) {
23834
- return p = this.indent_level + (p || 0), p < 1 ? "" : this._output.get_indent_string(p);
23833
+ }, a.prototype.get_full_indent = function(O) {
23834
+ return O = this.indent_level + (O || 0), O < 1 ? "" : this._output.get_indent_string(O);
23835
23835
  };
23836
- var o = function(p) {
23837
- for (var A = null, R = p.next; R.type !== r.EOF && p.closed !== R; ) {
23838
- if (R.type === r.ATTRIBUTE && R.text === "type") {
23839
- R.next && R.next.type === r.EQUALS && R.next.next && R.next.next.type === r.VALUE && (A = R.next.next.text);
23836
+ var o = function(O) {
23837
+ for (var A = null, S = O.next; S.type !== r.EOF && O.closed !== S; ) {
23838
+ if (S.type === r.ATTRIBUTE && S.text === "type") {
23839
+ S.next && S.next.type === r.EQUALS && S.next.next && S.next.next.type === r.VALUE && (A = S.next.next.text);
23840
23840
  break;
23841
23841
  }
23842
- R = R.next;
23842
+ S = S.next;
23843
23843
  }
23844
23844
  return A;
23845
- }, E = function(p, A) {
23846
- var R = null, O = null;
23847
- return A.closed ? (p === "script" ? R = "text/javascript" : p === "style" && (R = "text/css"), R = o(A) || R, R.search("text/css") > -1 ? O = "css" : R.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/) > -1 ? O = "javascript" : R.search(/(text|application|dojo)\/(x-)?(html)/) > -1 ? O = "html" : R.search(/test\/null/) > -1 && (O = "null"), O) : null;
23845
+ }, E = function(O, A) {
23846
+ var S = null, p = null;
23847
+ return A.closed ? (O === "script" ? S = "text/javascript" : O === "style" && (S = "text/css"), S = o(A) || S, S.search("text/css") > -1 ? p = "css" : S.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/) > -1 ? p = "javascript" : S.search(/(text|application|dojo)\/(x-)?(html)/) > -1 ? p = "html" : S.search(/test\/null/) > -1 && (p = "null"), p) : null;
23848
23848
  };
23849
- function l(p, A) {
23850
- return A.indexOf(p) !== -1;
23849
+ function l(O, A) {
23850
+ return A.indexOf(O) !== -1;
23851
23851
  }
23852
- function u(p, A, R) {
23853
- this.parent = p || null, this.tag = A ? A.tag_name : "", this.indent_level = R || 0, this.parser_token = A || null;
23852
+ function u(O, A, S) {
23853
+ this.parent = O || null, this.tag = A ? A.tag_name : "", this.indent_level = S || 0, this.parser_token = A || null;
23854
23854
  }
23855
- function c(p) {
23856
- this._printer = p, this._current_frame = null;
23855
+ function c(O) {
23856
+ this._printer = O, this._current_frame = null;
23857
23857
  }
23858
23858
  c.prototype.get_parser_token = function() {
23859
23859
  return this._current_frame ? this._current_frame.parser_token : null;
23860
- }, c.prototype.record_tag = function(p) {
23861
- var A = new u(this._current_frame, p, this._printer.indent_level);
23860
+ }, c.prototype.record_tag = function(O) {
23861
+ var A = new u(this._current_frame, O, this._printer.indent_level);
23862
23862
  this._current_frame = A;
23863
- }, c.prototype._try_pop_frame = function(p) {
23863
+ }, c.prototype._try_pop_frame = function(O) {
23864
23864
  var A = null;
23865
- return p && (A = p.parser_token, this._printer.indent_level = p.indent_level, this._current_frame = p.parent), A;
23866
- }, c.prototype._get_frame = function(p, A) {
23867
- for (var R = this._current_frame; R && p.indexOf(R.tag) === -1; ) {
23868
- if (A && A.indexOf(R.tag) !== -1) {
23869
- R = null;
23865
+ return O && (A = O.parser_token, this._printer.indent_level = O.indent_level, this._current_frame = O.parent), A;
23866
+ }, c.prototype._get_frame = function(O, A) {
23867
+ for (var S = this._current_frame; S && O.indexOf(S.tag) === -1; ) {
23868
+ if (A && A.indexOf(S.tag) !== -1) {
23869
+ S = null;
23870
23870
  break;
23871
23871
  }
23872
- R = R.parent;
23872
+ S = S.parent;
23873
23873
  }
23874
- return R;
23875
- }, c.prototype.try_pop = function(p, A) {
23876
- var R = this._get_frame([p], A);
23877
- return this._try_pop_frame(R);
23878
- }, c.prototype.indent_to_tag = function(p) {
23879
- var A = this._get_frame(p);
23874
+ return S;
23875
+ }, c.prototype.try_pop = function(O, A) {
23876
+ var S = this._get_frame([O], A);
23877
+ return this._try_pop_frame(S);
23878
+ }, c.prototype.indent_to_tag = function(O) {
23879
+ var A = this._get_frame(O);
23880
23880
  A && (this._printer.indent_level = A.indent_level);
23881
23881
  };
23882
- function f(p, A, R, O) {
23883
- this._source_text = p || "", A = A || {}, this._js_beautify = R, this._css_beautify = O, this._tag_stack = null;
23882
+ function f(O, A, S, p) {
23883
+ this._source_text = O || "", A = A || {}, this._js_beautify = S, this._css_beautify = p, this._tag_stack = null;
23884
23884
  var d = new e(A, "html");
23885
23885
  this._options = d, this._is_wrap_attributes_force = this._options.wrap_attributes.substr(0, 5) === "force", this._is_wrap_attributes_force_expand_multiline = this._options.wrap_attributes === "force-expand-multiline", this._is_wrap_attributes_force_aligned = this._options.wrap_attributes === "force-aligned", this._is_wrap_attributes_aligned_multiple = this._options.wrap_attributes === "aligned-multiple", this._is_wrap_attributes_preserve = this._options.wrap_attributes.substr(0, 8) === "preserve", this._is_wrap_attributes_preserve_aligned = this._options.wrap_attributes === "preserve-aligned";
23886
23886
  }
23887
23887
  f.prototype.beautify = function() {
23888
23888
  if (this._options.disabled)
23889
23889
  return this._source_text;
23890
- var p = this._source_text, A = this._options.eol;
23890
+ var O = this._source_text, A = this._options.eol;
23891
23891
  this._options.eol === "auto" && (A = `
23892
- `, p && i.test(p) && (A = p.match(i)[0])), p = p.replace(s, `
23892
+ `, O && i.test(O) && (A = O.match(i)[0])), O = O.replace(s, `
23893
23893
  `);
23894
- var R = p.match(/^[\t ]*/)[0], O = {
23894
+ var S = O.match(/^[\t ]*/)[0], p = {
23895
23895
  text: "",
23896
23896
  type: ""
23897
- }, d = new N(), m = new a(this._options, R), _ = new n(p, this._options).tokenize();
23897
+ }, d = new N(), m = new a(this._options, S), _ = new n(O, this._options).tokenize();
23898
23898
  this._tag_stack = new c(m);
23899
23899
  for (var C = null, L = _.next(); L.type !== r.EOF; )
23900
- L.type === r.TAG_OPEN || L.type === r.COMMENT ? (C = this._handle_tag_open(m, L, d, O, _), d = C) : L.type === r.ATTRIBUTE || L.type === r.EQUALS || L.type === r.VALUE || L.type === r.TEXT && !d.tag_complete ? C = this._handle_inside_tag(m, L, d, O) : L.type === r.TAG_CLOSE ? C = this._handle_tag_close(m, L, d) : L.type === r.TEXT ? C = this._handle_text(m, L, d) : m.add_raw_token(L), O = C, L = _.next();
23900
+ L.type === r.TAG_OPEN || L.type === r.COMMENT ? (C = this._handle_tag_open(m, L, d, p, _), d = C) : L.type === r.ATTRIBUTE || L.type === r.EQUALS || L.type === r.VALUE || L.type === r.TEXT && !d.tag_complete ? C = this._handle_inside_tag(m, L, d, p) : L.type === r.TAG_CLOSE ? C = this._handle_tag_close(m, L, d) : L.type === r.TEXT ? C = this._handle_text(m, L, d) : m.add_raw_token(L), p = C, L = _.next();
23901
23901
  var M = m._output.get_code(A);
23902
23902
  return M;
23903
- }, f.prototype._handle_tag_close = function(p, A, R) {
23904
- var O = {
23903
+ }, f.prototype._handle_tag_close = function(O, A, S) {
23904
+ var p = {
23905
23905
  text: A.text,
23906
23906
  type: A.type
23907
23907
  };
23908
- return p.alignment_size = 0, R.tag_complete = !0, p.set_space_before_token(A.newlines || A.whitespace_before !== "", !0), R.is_unformatted ? p.add_raw_token(A) : (R.tag_start_char === "<" && (p.set_space_before_token(A.text[0] === "/", !0), this._is_wrap_attributes_force_expand_multiline && R.has_wrapped_attrs && p.print_newline(!1)), p.print_token(A)), R.indent_content && !(R.is_unformatted || R.is_content_unformatted) && (p.indent(), R.indent_content = !1), !R.is_inline_element && !(R.is_unformatted || R.is_content_unformatted) && p.set_wrap_point(), O;
23909
- }, f.prototype._handle_inside_tag = function(p, A, R, O) {
23910
- var d = R.has_wrapped_attrs, m = {
23908
+ return O.alignment_size = 0, S.tag_complete = !0, O.set_space_before_token(A.newlines || A.whitespace_before !== "", !0), S.is_unformatted ? O.add_raw_token(A) : (S.tag_start_char === "<" && (O.set_space_before_token(A.text[0] === "/", !0), this._is_wrap_attributes_force_expand_multiline && S.has_wrapped_attrs && O.print_newline(!1)), O.print_token(A)), S.indent_content && !(S.is_unformatted || S.is_content_unformatted) && (O.indent(), S.indent_content = !1), !S.is_inline_element && !(S.is_unformatted || S.is_content_unformatted) && O.set_wrap_point(), p;
23909
+ }, f.prototype._handle_inside_tag = function(O, A, S, p) {
23910
+ var d = S.has_wrapped_attrs, m = {
23911
23911
  text: A.text,
23912
23912
  type: A.type
23913
23913
  };
23914
- return p.set_space_before_token(A.newlines || A.whitespace_before !== "", !0), R.is_unformatted ? p.add_raw_token(A) : R.tag_start_char === "{" && A.type === r.TEXT ? p.print_preserved_newlines(A) ? (A.newlines = 0, p.add_raw_token(A)) : p.print_token(A) : (A.type === r.ATTRIBUTE ? p.set_space_before_token(!0) : (A.type === r.EQUALS || A.type === r.VALUE && A.previous.type === r.EQUALS) && p.set_space_before_token(!1), A.type === r.ATTRIBUTE && R.tag_start_char === "<" && ((this._is_wrap_attributes_preserve || this._is_wrap_attributes_preserve_aligned) && (p.traverse_whitespace(A), d = d || A.newlines !== 0), this._is_wrap_attributes_force && R.attr_count >= this._options.wrap_attributes_min_attrs && (O.type !== r.TAG_OPEN || // ie. second attribute and beyond
23915
- this._is_wrap_attributes_force_expand_multiline) && (p.print_newline(!1), d = !0)), p.print_token(A), d = d || p.previous_token_wrapped(), R.has_wrapped_attrs = d), m;
23916
- }, f.prototype._handle_text = function(p, A, R) {
23917
- var O = {
23914
+ return O.set_space_before_token(A.newlines || A.whitespace_before !== "", !0), S.is_unformatted ? O.add_raw_token(A) : S.tag_start_char === "{" && A.type === r.TEXT ? O.print_preserved_newlines(A) ? (A.newlines = 0, O.add_raw_token(A)) : O.print_token(A) : (A.type === r.ATTRIBUTE ? O.set_space_before_token(!0) : (A.type === r.EQUALS || A.type === r.VALUE && A.previous.type === r.EQUALS) && O.set_space_before_token(!1), A.type === r.ATTRIBUTE && S.tag_start_char === "<" && ((this._is_wrap_attributes_preserve || this._is_wrap_attributes_preserve_aligned) && (O.traverse_whitespace(A), d = d || A.newlines !== 0), this._is_wrap_attributes_force && S.attr_count >= this._options.wrap_attributes_min_attrs && (p.type !== r.TAG_OPEN || // ie. second attribute and beyond
23915
+ this._is_wrap_attributes_force_expand_multiline) && (O.print_newline(!1), d = !0)), O.print_token(A), d = d || O.previous_token_wrapped(), S.has_wrapped_attrs = d), m;
23916
+ }, f.prototype._handle_text = function(O, A, S) {
23917
+ var p = {
23918
23918
  text: A.text,
23919
23919
  type: "TK_CONTENT"
23920
23920
  };
23921
- return R.custom_beautifier_name ? this._print_custom_beatifier_text(p, A, R) : R.is_unformatted || R.is_content_unformatted ? p.add_raw_token(A) : (p.traverse_whitespace(A), p.print_token(A)), O;
23922
- }, f.prototype._print_custom_beatifier_text = function(p, A, R) {
23923
- var O = this;
23921
+ return S.custom_beautifier_name ? this._print_custom_beatifier_text(O, A, S) : S.is_unformatted || S.is_content_unformatted ? O.add_raw_token(A) : (O.traverse_whitespace(A), O.print_token(A)), p;
23922
+ }, f.prototype._print_custom_beatifier_text = function(O, A, S) {
23923
+ var p = this;
23924
23924
  if (A.text !== "") {
23925
23925
  var d = A.text, m, _ = 1, C = "", L = "";
23926
- R.custom_beautifier_name === "javascript" && typeof this._js_beautify == "function" ? m = this._js_beautify : R.custom_beautifier_name === "css" && typeof this._css_beautify == "function" ? m = this._css_beautify : R.custom_beautifier_name === "html" && (m = function(U, x) {
23927
- var F = new f(U, x, O._js_beautify, O._css_beautify);
23926
+ S.custom_beautifier_name === "javascript" && typeof this._js_beautify == "function" ? m = this._js_beautify : S.custom_beautifier_name === "css" && typeof this._css_beautify == "function" ? m = this._css_beautify : S.custom_beautifier_name === "html" && (m = function(U, x) {
23927
+ var F = new f(U, x, p._js_beautify, p._css_beautify);
23928
23928
  return F.beautify();
23929
- }), this._options.indent_scripts === "keep" ? _ = 0 : this._options.indent_scripts === "separate" && (_ = -p.indent_level);
23930
- var M = p.get_full_indent(_);
23931
- if (d = d.replace(/\n[ \t]*$/, ""), R.custom_beautifier_name !== "html" && d[0] === "<" && d.match(/^(<!--|<!\[CDATA\[)/)) {
23932
- var S = /^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(d);
23933
- if (!S) {
23934
- p.add_raw_token(A);
23929
+ }), this._options.indent_scripts === "keep" ? _ = 0 : this._options.indent_scripts === "separate" && (_ = -O.indent_level);
23930
+ var M = O.get_full_indent(_);
23931
+ if (d = d.replace(/\n[ \t]*$/, ""), S.custom_beautifier_name !== "html" && d[0] === "<" && d.match(/^(<!--|<!\[CDATA\[)/)) {
23932
+ var R = /^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(d);
23933
+ if (!R) {
23934
+ O.add_raw_token(A);
23935
23935
  return;
23936
23936
  }
23937
- C = M + S[1] + `
23938
- `, d = S[4], S[5] && (L = M + S[5]), d = d.replace(/\n[ \t]*$/, ""), (S[2] || S[3].indexOf(`
23939
- `) !== -1) && (S = S[3].match(/[ \t]+$/), S && (A.whitespace_before = S[0]));
23937
+ C = M + R[1] + `
23938
+ `, d = R[4], R[5] && (L = M + R[5]), d = d.replace(/\n[ \t]*$/, ""), (R[2] || R[3].indexOf(`
23939
+ `) !== -1) && (R = R[3].match(/[ \t]+$/), R && (A.whitespace_before = R[0]));
23940
23940
  }
23941
23941
  if (d)
23942
23942
  if (m) {
@@ -23955,64 +23955,64 @@ function W0() {
23955
23955
  ` + M);
23956
23956
  }
23957
23957
  C && (d ? d = C + d + `
23958
- ` + L : d = C + L), p.print_newline(!1), d && (A.text = d, A.whitespace_before = "", A.newlines = 0, p.add_raw_token(A), p.print_newline(!0));
23958
+ ` + L : d = C + L), O.print_newline(!1), d && (A.text = d, A.whitespace_before = "", A.newlines = 0, O.add_raw_token(A), O.print_newline(!0));
23959
23959
  }
23960
- }, f.prototype._handle_tag_open = function(p, A, R, O, d) {
23960
+ }, f.prototype._handle_tag_open = function(O, A, S, p, d) {
23961
23961
  var m = this._get_tag_open_token(A);
23962
- if ((R.is_unformatted || R.is_content_unformatted) && !R.is_empty_element && A.type === r.TAG_OPEN && !m.is_start_tag ? (p.add_raw_token(A), m.start_tag_token = this._tag_stack.try_pop(m.tag_name)) : (p.traverse_whitespace(A), this._set_tag_position(p, A, m, R, O), m.is_inline_element || p.set_wrap_point(), p.print_token(A)), m.is_start_tag && this._is_wrap_attributes_force) {
23962
+ if ((S.is_unformatted || S.is_content_unformatted) && !S.is_empty_element && A.type === r.TAG_OPEN && !m.is_start_tag ? (O.add_raw_token(A), m.start_tag_token = this._tag_stack.try_pop(m.tag_name)) : (O.traverse_whitespace(A), this._set_tag_position(O, A, m, S, p), m.is_inline_element || O.set_wrap_point(), O.print_token(A)), m.is_start_tag && this._is_wrap_attributes_force) {
23963
23963
  var _ = 0, C;
23964
23964
  do
23965
23965
  C = d.peek(_), C.type === r.ATTRIBUTE && (m.attr_count += 1), _ += 1;
23966
23966
  while (C.type !== r.EOF && C.type !== r.TAG_CLOSE);
23967
23967
  }
23968
- return (this._is_wrap_attributes_force_aligned || this._is_wrap_attributes_aligned_multiple || this._is_wrap_attributes_preserve_aligned) && (m.alignment_size = A.text.length + 1), !m.tag_complete && !m.is_unformatted && (p.alignment_size = m.alignment_size), m;
23968
+ return (this._is_wrap_attributes_force_aligned || this._is_wrap_attributes_aligned_multiple || this._is_wrap_attributes_preserve_aligned) && (m.alignment_size = A.text.length + 1), !m.tag_complete && !m.is_unformatted && (O.alignment_size = m.alignment_size), m;
23969
23969
  };
23970
- var N = function(p, A) {
23971
- if (this.parent = p || null, this.text = "", this.type = "TK_TAG_OPEN", this.tag_name = "", this.is_inline_element = !1, this.is_unformatted = !1, this.is_content_unformatted = !1, this.is_empty_element = !1, this.is_start_tag = !1, this.is_end_tag = !1, this.indent_content = !1, this.multiline_content = !1, this.custom_beautifier_name = null, this.start_tag_token = null, this.attr_count = 0, this.has_wrapped_attrs = !1, this.alignment_size = 0, this.tag_complete = !1, this.tag_start_char = "", this.tag_check = "", !A)
23970
+ var N = function(O, A) {
23971
+ if (this.parent = O || null, this.text = "", this.type = "TK_TAG_OPEN", this.tag_name = "", this.is_inline_element = !1, this.is_unformatted = !1, this.is_content_unformatted = !1, this.is_empty_element = !1, this.is_start_tag = !1, this.is_end_tag = !1, this.indent_content = !1, this.multiline_content = !1, this.custom_beautifier_name = null, this.start_tag_token = null, this.attr_count = 0, this.has_wrapped_attrs = !1, this.alignment_size = 0, this.tag_complete = !1, this.tag_start_char = "", this.tag_check = "", !A)
23972
23972
  this.tag_complete = !0;
23973
23973
  else {
23974
- var R;
23975
- this.tag_start_char = A.text[0], this.text = A.text, this.tag_start_char === "<" ? (R = A.text.match(/^<([^\s>]*)/), this.tag_check = R ? R[1] : "") : (R = A.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/), this.tag_check = R ? R[1] : "", (A.text.startsWith("{{#>") || A.text.startsWith("{{~#>")) && this.tag_check[0] === ">" && (this.tag_check === ">" && A.next !== null ? this.tag_check = A.next.text.split(" ")[0] : this.tag_check = A.text.split(">")[1])), this.tag_check = this.tag_check.toLowerCase(), A.type === r.COMMENT && (this.tag_complete = !0), this.is_start_tag = this.tag_check.charAt(0) !== "/", this.tag_name = this.is_start_tag ? this.tag_check : this.tag_check.substr(1), this.is_end_tag = !this.is_start_tag || A.closed && A.closed.text === "/>";
23976
- var O = 2;
23977
- this.tag_start_char === "{" && this.text.length >= 3 && this.text.charAt(2) === "~" && (O = 3), this.is_end_tag = this.is_end_tag || this.tag_start_char === "{" && (this.text.length < 3 || /[^#\^]/.test(this.text.charAt(O)));
23974
+ var S;
23975
+ this.tag_start_char = A.text[0], this.text = A.text, this.tag_start_char === "<" ? (S = A.text.match(/^<([^\s>]*)/), this.tag_check = S ? S[1] : "") : (S = A.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/), this.tag_check = S ? S[1] : "", (A.text.startsWith("{{#>") || A.text.startsWith("{{~#>")) && this.tag_check[0] === ">" && (this.tag_check === ">" && A.next !== null ? this.tag_check = A.next.text.split(" ")[0] : this.tag_check = A.text.split(">")[1])), this.tag_check = this.tag_check.toLowerCase(), A.type === r.COMMENT && (this.tag_complete = !0), this.is_start_tag = this.tag_check.charAt(0) !== "/", this.tag_name = this.is_start_tag ? this.tag_check : this.tag_check.substr(1), this.is_end_tag = !this.is_start_tag || A.closed && A.closed.text === "/>";
23976
+ var p = 2;
23977
+ this.tag_start_char === "{" && this.text.length >= 3 && this.text.charAt(2) === "~" && (p = 3), this.is_end_tag = this.is_end_tag || this.tag_start_char === "{" && (this.text.length < 3 || /[^#\^]/.test(this.text.charAt(p)));
23978
23978
  }
23979
23979
  };
23980
- f.prototype._get_tag_open_token = function(p) {
23981
- var A = new N(this._tag_stack.get_parser_token(), p);
23980
+ f.prototype._get_tag_open_token = function(O) {
23981
+ var A = new N(this._tag_stack.get_parser_token(), O);
23982
23982
  return A.alignment_size = this._options.wrap_attributes_indent_size, A.is_end_tag = A.is_end_tag || l(A.tag_check, this._options.void_elements), A.is_empty_element = A.tag_complete || A.is_start_tag && A.is_end_tag, A.is_unformatted = !A.tag_complete && l(A.tag_check, this._options.unformatted), A.is_content_unformatted = !A.is_empty_element && l(A.tag_check, this._options.content_unformatted), A.is_inline_element = l(A.tag_name, this._options.inline) || this._options.inline_custom_elements && A.tag_name.includes("-") || A.tag_start_char === "{", A;
23983
- }, f.prototype._set_tag_position = function(p, A, R, O, d) {
23984
- if (R.is_empty_element || (R.is_end_tag ? R.start_tag_token = this._tag_stack.try_pop(R.tag_name) : (this._do_optional_end_element(R) && (R.is_inline_element || p.print_newline(!1)), this._tag_stack.record_tag(R), (R.tag_name === "script" || R.tag_name === "style") && !(R.is_unformatted || R.is_content_unformatted) && (R.custom_beautifier_name = E(R.tag_check, A)))), l(R.tag_check, this._options.extra_liners) && (p.print_newline(!1), p._output.just_added_blankline() || p.print_newline(!0)), R.is_empty_element) {
23985
- if (R.tag_start_char === "{" && R.tag_check === "else") {
23986
- this._tag_stack.indent_to_tag(["if", "unless", "each"]), R.indent_content = !0;
23987
- var m = p.current_line_has_match(/{{#if/);
23988
- m || p.print_newline(!1);
23983
+ }, f.prototype._set_tag_position = function(O, A, S, p, d) {
23984
+ if (S.is_empty_element || (S.is_end_tag ? S.start_tag_token = this._tag_stack.try_pop(S.tag_name) : (this._do_optional_end_element(S) && (S.is_inline_element || O.print_newline(!1)), this._tag_stack.record_tag(S), (S.tag_name === "script" || S.tag_name === "style") && !(S.is_unformatted || S.is_content_unformatted) && (S.custom_beautifier_name = E(S.tag_check, A)))), l(S.tag_check, this._options.extra_liners) && (O.print_newline(!1), O._output.just_added_blankline() || O.print_newline(!0)), S.is_empty_element) {
23985
+ if (S.tag_start_char === "{" && S.tag_check === "else") {
23986
+ this._tag_stack.indent_to_tag(["if", "unless", "each"]), S.indent_content = !0;
23987
+ var m = O.current_line_has_match(/{{#if/);
23988
+ m || O.print_newline(!1);
23989
23989
  }
23990
- R.tag_name === "!--" && d.type === r.TAG_CLOSE && O.is_end_tag && R.text.indexOf(`
23991
- `) === -1 || (R.is_inline_element || R.is_unformatted || p.print_newline(!1), this._calcluate_parent_multiline(p, R));
23992
- } else if (R.is_end_tag) {
23990
+ S.tag_name === "!--" && d.type === r.TAG_CLOSE && p.is_end_tag && S.text.indexOf(`
23991
+ `) === -1 || (S.is_inline_element || S.is_unformatted || O.print_newline(!1), this._calcluate_parent_multiline(O, S));
23992
+ } else if (S.is_end_tag) {
23993
23993
  var _ = !1;
23994
- _ = R.start_tag_token && R.start_tag_token.multiline_content, _ = _ || !R.is_inline_element && !(O.is_inline_element || O.is_unformatted) && !(d.type === r.TAG_CLOSE && R.start_tag_token === O) && d.type !== "TK_CONTENT", (R.is_content_unformatted || R.is_unformatted) && (_ = !1), _ && p.print_newline(!1);
23994
+ _ = S.start_tag_token && S.start_tag_token.multiline_content, _ = _ || !S.is_inline_element && !(p.is_inline_element || p.is_unformatted) && !(d.type === r.TAG_CLOSE && S.start_tag_token === p) && d.type !== "TK_CONTENT", (S.is_content_unformatted || S.is_unformatted) && (_ = !1), _ && O.print_newline(!1);
23995
23995
  } else
23996
- R.indent_content = !R.custom_beautifier_name, R.tag_start_char === "<" && (R.tag_name === "html" ? R.indent_content = this._options.indent_inner_html : R.tag_name === "head" ? R.indent_content = this._options.indent_head_inner_html : R.tag_name === "body" && (R.indent_content = this._options.indent_body_inner_html)), !(R.is_inline_element || R.is_unformatted) && (d.type !== "TK_CONTENT" || R.is_content_unformatted) && p.print_newline(!1), this._calcluate_parent_multiline(p, R);
23997
- }, f.prototype._calcluate_parent_multiline = function(p, A) {
23998
- A.parent && p._output.just_added_newline() && !((A.is_inline_element || A.is_unformatted) && A.parent.is_inline_element) && (A.parent.multiline_content = !0);
23996
+ S.indent_content = !S.custom_beautifier_name, S.tag_start_char === "<" && (S.tag_name === "html" ? S.indent_content = this._options.indent_inner_html : S.tag_name === "head" ? S.indent_content = this._options.indent_head_inner_html : S.tag_name === "body" && (S.indent_content = this._options.indent_body_inner_html)), !(S.is_inline_element || S.is_unformatted) && (d.type !== "TK_CONTENT" || S.is_content_unformatted) && O.print_newline(!1), this._calcluate_parent_multiline(O, S);
23997
+ }, f.prototype._calcluate_parent_multiline = function(O, A) {
23998
+ A.parent && O._output.just_added_newline() && !((A.is_inline_element || A.is_unformatted) && A.parent.is_inline_element) && (A.parent.multiline_content = !0);
23999
23999
  };
24000
24000
  var I = ["address", "article", "aside", "blockquote", "details", "div", "dl", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hr", "main", "menu", "nav", "ol", "p", "pre", "section", "table", "ul"], h = ["a", "audio", "del", "ins", "map", "noscript", "video"];
24001
- return f.prototype._do_optional_end_element = function(p) {
24001
+ return f.prototype._do_optional_end_element = function(O) {
24002
24002
  var A = null;
24003
- if (!(p.is_empty_element || !p.is_start_tag || !p.parent)) {
24004
- if (p.tag_name === "body")
24003
+ if (!(O.is_empty_element || !O.is_start_tag || !O.parent)) {
24004
+ if (O.tag_name === "body")
24005
24005
  A = A || this._tag_stack.try_pop("head");
24006
- else if (p.tag_name === "li")
24006
+ else if (O.tag_name === "li")
24007
24007
  A = A || this._tag_stack.try_pop("li", ["ol", "ul", "menu"]);
24008
- else if (p.tag_name === "dd" || p.tag_name === "dt")
24008
+ else if (O.tag_name === "dd" || O.tag_name === "dt")
24009
24009
  A = A || this._tag_stack.try_pop("dt", ["dl"]), A = A || this._tag_stack.try_pop("dd", ["dl"]);
24010
- else if (p.parent.tag_name === "p" && I.indexOf(p.tag_name) !== -1) {
24011
- var R = p.parent.parent;
24012
- (!R || h.indexOf(R.tag_name) === -1) && (A = A || this._tag_stack.try_pop("p"));
24010
+ else if (O.parent.tag_name === "p" && I.indexOf(O.tag_name) !== -1) {
24011
+ var S = O.parent.parent;
24012
+ (!S || h.indexOf(S.tag_name) === -1) && (A = A || this._tag_stack.try_pop("p"));
24013
24013
  } else
24014
- p.tag_name === "rp" || p.tag_name === "rt" ? (A = A || this._tag_stack.try_pop("rt", ["ruby", "rtc"]), A = A || this._tag_stack.try_pop("rp", ["ruby", "rtc"])) : p.tag_name === "optgroup" ? A = A || this._tag_stack.try_pop("optgroup", ["select"]) : p.tag_name === "option" ? A = A || this._tag_stack.try_pop("option", ["select", "datalist", "optgroup"]) : p.tag_name === "colgroup" ? A = A || this._tag_stack.try_pop("caption", ["table"]) : p.tag_name === "thead" ? (A = A || this._tag_stack.try_pop("caption", ["table"]), A = A || this._tag_stack.try_pop("colgroup", ["table"])) : p.tag_name === "tbody" || p.tag_name === "tfoot" ? (A = A || this._tag_stack.try_pop("caption", ["table"]), A = A || this._tag_stack.try_pop("colgroup", ["table"]), A = A || this._tag_stack.try_pop("thead", ["table"]), A = A || this._tag_stack.try_pop("tbody", ["table"])) : p.tag_name === "tr" ? (A = A || this._tag_stack.try_pop("caption", ["table"]), A = A || this._tag_stack.try_pop("colgroup", ["table"]), A = A || this._tag_stack.try_pop("tr", ["table", "thead", "tbody", "tfoot"])) : (p.tag_name === "th" || p.tag_name === "td") && (A = A || this._tag_stack.try_pop("td", ["table", "thead", "tbody", "tfoot", "tr"]), A = A || this._tag_stack.try_pop("th", ["table", "thead", "tbody", "tfoot", "tr"]));
24015
- return p.parent = this._tag_stack.get_parser_token(), A;
24014
+ O.tag_name === "rp" || O.tag_name === "rt" ? (A = A || this._tag_stack.try_pop("rt", ["ruby", "rtc"]), A = A || this._tag_stack.try_pop("rp", ["ruby", "rtc"])) : O.tag_name === "optgroup" ? A = A || this._tag_stack.try_pop("optgroup", ["select"]) : O.tag_name === "option" ? A = A || this._tag_stack.try_pop("option", ["select", "datalist", "optgroup"]) : O.tag_name === "colgroup" ? A = A || this._tag_stack.try_pop("caption", ["table"]) : O.tag_name === "thead" ? (A = A || this._tag_stack.try_pop("caption", ["table"]), A = A || this._tag_stack.try_pop("colgroup", ["table"])) : O.tag_name === "tbody" || O.tag_name === "tfoot" ? (A = A || this._tag_stack.try_pop("caption", ["table"]), A = A || this._tag_stack.try_pop("colgroup", ["table"]), A = A || this._tag_stack.try_pop("thead", ["table"]), A = A || this._tag_stack.try_pop("tbody", ["table"])) : O.tag_name === "tr" ? (A = A || this._tag_stack.try_pop("caption", ["table"]), A = A || this._tag_stack.try_pop("colgroup", ["table"]), A = A || this._tag_stack.try_pop("tr", ["table", "thead", "tbody", "tfoot"])) : (O.tag_name === "th" || O.tag_name === "td") && (A = A || this._tag_stack.try_pop("td", ["table", "thead", "tbody", "tfoot", "tr"]), A = A || this._tag_stack.try_pop("th", ["table", "thead", "tbody", "tfoot", "tr"]));
24015
+ return O.parent = this._tag_stack.get_parser_token(), A;
24016
24016
  }
24017
24017
  }, aE.Beautifier = f, aE;
24018
24018
  }
@@ -24057,8 +24057,8 @@ var K0 = id.exports, Td = { exports: {} };
24057
24057
  (function(e, t) {
24058
24058
  (function() {
24059
24059
  function n(r, i) {
24060
- var s, a = 0, o = r.length, E, l = "", u, c, f, N, I, h, p, A, R = !0, O = !1, d;
24061
- s = arguments.length > 1 ? i : {}, typeof s.indent > "u" && (s.indent = " "), typeof s.openbrace == "string" && (R = s.openbrace === "end-of-line"), typeof s.autosemicolon == "boolean" && (O = s.autosemicolon);
24060
+ var s, a = 0, o = r.length, E, l = "", u, c, f, N, I, h, O, A, S = !0, p = !1, d;
24061
+ s = arguments.length > 1 ? i : {}, typeof s.indent > "u" && (s.indent = " "), typeof s.openbrace == "string" && (S = s.openbrace === "end-of-line"), typeof s.autosemicolon == "boolean" && (p = s.autosemicolon);
24062
24062
  function m(D) {
24063
24063
  return D === " " || D === `
24064
24064
  ` || D === " " || D === "\r" || D === "\f";
@@ -24075,14 +24075,14 @@ var K0 = id.exports, Td = { exports: {} };
24075
24075
  l += s.indent;
24076
24076
  }
24077
24077
  function M() {
24078
- l = d(l), R ? l += " {" : (l += `
24078
+ l = d(l), S ? l += " {" : (l += `
24079
24079
  `, L(), l += "{"), c !== `
24080
24080
  ` && (l += `
24081
24081
  `), h += 1;
24082
24082
  }
24083
- function S() {
24083
+ function R() {
24084
24084
  var D;
24085
- h -= 1, l = d(l), l.length > 0 && O && (D = l.charAt(l.length - 1), D !== ";" && D !== "{" && (l += ";")), l += `
24085
+ h -= 1, l = d(l), l.length > 0 && p && (D = l.charAt(l.length - 1), D !== ";" && D !== "{" && (l += ";")), l += `
24086
24086
  `, L(), l += "}", E.push(l), l = "";
24087
24087
  }
24088
24088
  for (String.prototype.trimRight ? d = function(D) {
@@ -24101,12 +24101,12 @@ var K0 = id.exports, Td = { exports: {} };
24101
24101
  URL: 8
24102
24102
  }, h = 0, N = I.Start, A = !1, E = [], r = r.replace(/\r\n/g, `
24103
24103
  `); a < o; ) {
24104
- if (u = r.charAt(a), c = r.charAt(a + 1), a += 1, _(p)) {
24105
- l += u, u === p && (p = null), u === "\\" && c === p && (l += c, a += 1);
24104
+ if (u = r.charAt(a), c = r.charAt(a + 1), a += 1, _(O)) {
24105
+ l += u, u === O && (O = null), u === "\\" && c === O && (l += c, a += 1);
24106
24106
  continue;
24107
24107
  }
24108
24108
  if (_(u)) {
24109
- l += u, p = u;
24109
+ l += u, O = u;
24110
24110
  continue;
24111
24111
  }
24112
24112
  if (A) {
@@ -24169,7 +24169,7 @@ var K0 = id.exports, Td = { exports: {} };
24169
24169
  continue;
24170
24170
  }
24171
24171
  if (u === "}") {
24172
- S(), N = I.Start;
24172
+ R(), N = I.Start;
24173
24173
  continue;
24174
24174
  }
24175
24175
  l += u;
@@ -24181,7 +24181,7 @@ var K0 = id.exports, Td = { exports: {} };
24181
24181
  continue;
24182
24182
  }
24183
24183
  if (u === "}") {
24184
- S(), N = I.Start;
24184
+ R(), N = I.Start;
24185
24185
  continue;
24186
24186
  }
24187
24187
  l += u;
@@ -24189,7 +24189,7 @@ var K0 = id.exports, Td = { exports: {} };
24189
24189
  }
24190
24190
  if (N === I.Ruleset) {
24191
24191
  if (u === "}") {
24192
- S(), N = I.Start, h > 0 && (N = I.Block);
24192
+ R(), N = I.Start, h > 0 && (N = I.Block);
24193
24193
  continue;
24194
24194
  }
24195
24195
  if (u === `
@@ -24212,7 +24212,7 @@ var K0 = id.exports, Td = { exports: {} };
24212
24212
  continue;
24213
24213
  }
24214
24214
  if (u === "}") {
24215
- S(), N = I.Start, h > 0 && (N = I.Block);
24215
+ R(), N = I.Start, h > 0 && (N = I.Block);
24216
24216
  continue;
24217
24217
  }
24218
24218
  l += u;
@@ -24228,7 +24228,7 @@ var K0 = id.exports, Td = { exports: {} };
24228
24228
  }
24229
24229
  if (N === I.Expression) {
24230
24230
  if (u === "}") {
24231
- S(), N = I.Start, h > 0 && (N = I.Block);
24231
+ R(), N = I.Start, h > 0 && (N = I.Block);
24232
24232
  continue;
24233
24233
  }
24234
24234
  if (u === ";") {
@@ -24324,9 +24324,9 @@ function Z0(e, t) {
24324
24324
  }
24325
24325
  (d === "'" || d === '"') && (!m[1] || m[1] !== "!") && (d += this.get_unformatted(d), _ = !0), d === "=" && (_ = !1), m.length && m[m.length - 1] !== "=" && d !== ">" && _ && (this.line_char_count >= this.max_char ? (this.print_newline(!1, m), this.line_char_count = 0) : (m.push(" "), this.line_char_count++), _ = !1), d === "<" && (C = this.pos - 1), m.push(d);
24326
24326
  } while (d !== ">");
24327
- var M = m.join(""), S;
24328
- M.indexOf(" ") != -1 ? S = M.indexOf(" ") : S = M.indexOf(">");
24329
- var D = M.substring(1, S).toLowerCase();
24327
+ var M = m.join(""), R;
24328
+ M.indexOf(" ") != -1 ? R = M.indexOf(" ") : R = M.indexOf(">");
24329
+ var D = M.substring(1, R).toLowerCase();
24330
24330
  if (M.charAt(M.length - 2) === "/" || this.Utils.in_array(D, this.Utils.single_token))
24331
24331
  this.tag_type = "SINGLE";
24332
24332
  else if (D === "script")
@@ -24397,9 +24397,9 @@ function Z0(e, t) {
24397
24397
  this.input = d || "", this.output = [], this.indent_character = m, this.indent_string = "", this.indent_size = _, this.brace_style = L, this.indent_level = 0, this.max_char = C, this.line_char_count = 0;
24398
24398
  for (var M = 0; M < this.indent_size; M++)
24399
24399
  this.indent_string += this.indent_character;
24400
- this.print_newline = function(S, D) {
24400
+ this.print_newline = function(R, D) {
24401
24401
  if (this.line_char_count = 0, !(!D || !D.length)) {
24402
- if (!S)
24402
+ if (!R)
24403
24403
  for (; this.Utils.in_array(D[D.length - 1], this.Utils.whitespace); )
24404
24404
  D.pop();
24405
24405
  D.push(`
@@ -24407,8 +24407,8 @@ function Z0(e, t) {
24407
24407
  for (var g = 0; g < this.indent_level; g++)
24408
24408
  D.push(this.indent_string);
24409
24409
  }
24410
- }, this.print_token = function(S) {
24411
- this.output.push(S);
24410
+ }, this.print_token = function(R) {
24411
+ this.output.push(R);
24412
24412
  }, this.indent = function() {
24413
24413
  this.indent_level++;
24414
24414
  }, this.unindent = function() {
@@ -24458,13 +24458,13 @@ function Z0(e, t) {
24458
24458
  var h = -n.indent_level;
24459
24459
  else
24460
24460
  var h = 1;
24461
- var p = n.get_full_indent(h);
24461
+ var O = n.get_full_indent(h);
24462
24462
  if (I)
24463
- N = I(N.replace(/^\s*/, p), t);
24463
+ N = I(N.replace(/^\s*/, O), t);
24464
24464
  else {
24465
- var A = N.match(/^\s*/)[0], R = A.match(/[^\n\r]*$/)[0].split(n.indent_string).length - 1, O = n.get_full_indent(h - R);
24466
- N = N.replace(/^\s*/, p).replace(/\r\n|\r|\n/g, `
24467
- ` + O).replace(/\s*$/, "");
24465
+ var A = N.match(/^\s*/)[0], S = A.match(/[^\n\r]*$/)[0].split(n.indent_string).length - 1, p = n.get_full_indent(h - S);
24466
+ N = N.replace(/^\s*/, O).replace(/\r\n|\r|\n/g, `
24467
+ ` + p).replace(/\s*$/, "");
24468
24468
  }
24469
24469
  N && (n.print_token(N), n.print_newline(!0, n.output));
24470
24470
  }
@@ -24550,10 +24550,10 @@ var rm = Ad.exports, fn = {}, cd = {}, Xt = {};
24550
24550
  var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, E = o.callback;
24551
24551
  typeof o == "function" && (E = o, o = {}), this.options = o;
24552
24552
  var l = this;
24553
- function u(O) {
24553
+ function u(p) {
24554
24554
  return E ? (setTimeout(function() {
24555
- E(void 0, O);
24556
- }, 0), !0) : O;
24555
+ E(void 0, p);
24556
+ }, 0), !0) : p;
24557
24557
  }
24558
24558
  s = this.castInput(s), a = this.castInput(a), s = this.removeEmpty(this.tokenize(s)), a = this.removeEmpty(this.tokenize(a));
24559
24559
  var c = a.length, f = s.length, N = 1, I = c + f;
@@ -24561,43 +24561,43 @@ var rm = Ad.exports, fn = {}, cd = {}, Xt = {};
24561
24561
  var h = [{
24562
24562
  newPos: -1,
24563
24563
  components: []
24564
- }], p = this.extractCommon(h[0], a, s, 0);
24565
- if (h[0].newPos + 1 >= c && p + 1 >= f)
24564
+ }], O = this.extractCommon(h[0], a, s, 0);
24565
+ if (h[0].newPos + 1 >= c && O + 1 >= f)
24566
24566
  return u([{
24567
24567
  value: this.join(a),
24568
24568
  count: a.length
24569
24569
  }]);
24570
24570
  function A() {
24571
- for (var O = -1 * N; O <= N; O += 2) {
24571
+ for (var p = -1 * N; p <= N; p += 2) {
24572
24572
  var d = (
24573
24573
  /*istanbul ignore start*/
24574
24574
  void 0
24575
- ), m = h[O - 1], _ = h[O + 1], C = (_ ? _.newPos : 0) - O;
24576
- m && (h[O - 1] = void 0);
24575
+ ), m = h[p - 1], _ = h[p + 1], C = (_ ? _.newPos : 0) - p;
24576
+ m && (h[p - 1] = void 0);
24577
24577
  var L = m && m.newPos + 1 < c, M = _ && 0 <= C && C < f;
24578
24578
  if (!L && !M) {
24579
- h[O] = void 0;
24579
+ h[p] = void 0;
24580
24580
  continue;
24581
24581
  }
24582
- if (!L || M && m.newPos < _.newPos ? (d = r(_), l.pushComponent(d.components, void 0, !0)) : (d = m, d.newPos++, l.pushComponent(d.components, !0, void 0)), C = l.extractCommon(d, a, s, O), d.newPos + 1 >= c && C + 1 >= f)
24582
+ if (!L || M && m.newPos < _.newPos ? (d = r(_), l.pushComponent(d.components, void 0, !0)) : (d = m, d.newPos++, l.pushComponent(d.components, !0, void 0)), C = l.extractCommon(d, a, s, p), d.newPos + 1 >= c && C + 1 >= f)
24583
24583
  return u(n(l, d.components, a, s, l.useLongestToken));
24584
- h[O] = d;
24584
+ h[p] = d;
24585
24585
  }
24586
24586
  N++;
24587
24587
  }
24588
24588
  if (E)
24589
- (function O() {
24589
+ (function p() {
24590
24590
  setTimeout(function() {
24591
24591
  if (N > I)
24592
24592
  return E();
24593
- A() || O();
24593
+ A() || p();
24594
24594
  }, 0);
24595
24595
  })();
24596
24596
  else
24597
24597
  for (; N <= I; ) {
24598
- var R = A();
24599
- if (R)
24600
- return R;
24598
+ var S = A();
24599
+ if (S)
24600
+ return S;
24601
24601
  }
24602
24602
  },
24603
24603
  /*istanbul ignore start*/
@@ -24662,17 +24662,17 @@ var rm = Ad.exports, fn = {}, cd = {}, Xt = {};
24662
24662
  } else {
24663
24663
  if (!N.added && E) {
24664
24664
  var I = a.slice(c, c + N.count);
24665
- I = I.map(function(A, R) {
24666
- var O = o[f + R];
24667
- return O.length > A.length ? O : A;
24665
+ I = I.map(function(A, S) {
24666
+ var p = o[f + S];
24667
+ return p.length > A.length ? p : A;
24668
24668
  }), N.value = i.join(I);
24669
24669
  } else
24670
24670
  N.value = i.join(a.slice(c, c + N.count));
24671
24671
  c += N.count, N.added || (f += N.count);
24672
24672
  }
24673
24673
  }
24674
- var p = s[u - 1];
24675
- return u > 1 && typeof p.value == "string" && (p.added || p.removed) && i.equals("", p.value) && (s[u - 2].value += p.value, s.pop()), s;
24674
+ var O = s[u - 1];
24675
+ return u > 1 && typeof O.value == "string" && (O.added || O.removed) && i.equals("", O.value) && (s[u - 2].value += O.value, s.pop()), s;
24676
24676
  }
24677
24677
  function r(i) {
24678
24678
  return {
@@ -25034,13 +25034,13 @@ function Nd(e, t) {
25034
25034
  return !0;
25035
25035
  }
25036
25036
  for (var I = 0; I < s.length; I++) {
25037
- for (var h = s[I], p = r.length - h.oldLines, A = 0, R = u + h.oldStart - 1, O = (
25037
+ for (var h = s[I], O = r.length - h.oldLines, A = 0, S = u + h.oldStart - 1, p = (
25038
25038
  /*istanbul ignore start*/
25039
25039
  /*istanbul ignore end*/
25040
25040
  /*istanbul ignore start*/
25041
- (0, vm.default)(R, l, p)
25042
- ); A !== void 0; A = O())
25043
- if (N(h, R + A)) {
25041
+ (0, vm.default)(S, l, O)
25042
+ ); A !== void 0; A = p())
25043
+ if (N(h, S + A)) {
25044
25044
  h.offset = u += A;
25045
25045
  break;
25046
25046
  }
@@ -25052,14 +25052,14 @@ function Nd(e, t) {
25052
25052
  var _ = s[m], C = _.oldStart + _.offset + d - 1;
25053
25053
  d += _.newLines - _.oldLines;
25054
25054
  for (var L = 0; L < _.lines.length; L++) {
25055
- var M = _.lines[L], S = M.length > 0 ? M[0] : " ", D = M.length > 0 ? M.substr(1) : M, g = _.linedelimiters[L];
25056
- if (S === " ")
25055
+ var M = _.lines[L], R = M.length > 0 ? M[0] : " ", D = M.length > 0 ? M.substr(1) : M, g = _.linedelimiters[L];
25056
+ if (R === " ")
25057
25057
  C++;
25058
- else if (S === "-")
25058
+ else if (R === "-")
25059
25059
  r.splice(C, 1), i.splice(C, 1);
25060
- else if (S === "+")
25060
+ else if (R === "+")
25061
25061
  r.splice(C, 0, D), i.splice(C, 0, g), C++;
25062
- else if (S === "\\") {
25062
+ else if (R === "\\") {
25063
25063
  var y = _.lines[L - 1] ? _.lines[L - 1][0] : null;
25064
25064
  y === "+" ? c = !0 : y === "-" && (f = !0);
25065
25065
  }
@@ -25154,17 +25154,17 @@ function pd(e, t, n, r, i, s, a) {
25154
25154
  lines: []
25155
25155
  });
25156
25156
  function E(A) {
25157
- return A.map(function(R) {
25158
- return " " + R;
25157
+ return A.map(function(S) {
25158
+ return " " + S;
25159
25159
  });
25160
25160
  }
25161
- for (var l = [], u = 0, c = 0, f = [], N = 1, I = 1, h = function(R) {
25162
- var O = o[R], d = O.lines || O.value.replace(/\n$/, "").split(`
25161
+ for (var l = [], u = 0, c = 0, f = [], N = 1, I = 1, h = function(S) {
25162
+ var p = o[S], d = p.lines || p.value.replace(/\n$/, "").split(`
25163
25163
  `);
25164
- if (O.lines = d, O.added || O.removed) {
25164
+ if (p.lines = d, p.added || p.removed) {
25165
25165
  var m;
25166
25166
  if (!u) {
25167
- var _ = o[R - 1];
25167
+ var _ = o[S - 1];
25168
25168
  u = N, c = I, _ && (f = a.context > 0 ? E(_.lines.slice(-a.context)) : [], u -= f.length, c -= f.length);
25169
25169
  }
25170
25170
  (m = /*istanbul ignore end*/
@@ -25175,13 +25175,13 @@ function pd(e, t, n, r, i, s, a) {
25175
25175
  EE(
25176
25176
  /*istanbul ignore end*/
25177
25177
  d.map(function(U) {
25178
- return (O.added ? "+" : "-") + U;
25178
+ return (p.added ? "+" : "-") + U;
25179
25179
  })
25180
25180
  )
25181
- ), O.added ? I += d.length : N += d.length;
25181
+ ), p.added ? I += d.length : N += d.length;
25182
25182
  } else {
25183
25183
  if (u)
25184
- if (d.length <= a.context * 2 && R < o.length - 2) {
25184
+ if (d.length <= a.context * 2 && S < o.length - 2) {
25185
25185
  var C;
25186
25186
  (C = /*istanbul ignore end*/
25187
25187
  f).push.apply(
@@ -25205,25 +25205,25 @@ function pd(e, t, n, r, i, s, a) {
25205
25205
  E(d.slice(0, M))
25206
25206
  )
25207
25207
  );
25208
- var S = {
25208
+ var R = {
25209
25209
  oldStart: u,
25210
25210
  oldLines: N - u + M,
25211
25211
  newStart: c,
25212
25212
  newLines: I - c + M,
25213
25213
  lines: f
25214
25214
  };
25215
- if (R >= o.length - 2 && d.length <= a.context) {
25216
- var D = /\n$/.test(n), g = /\n$/.test(r), y = d.length == 0 && f.length > S.oldLines;
25217
- !D && y && n.length > 0 && f.splice(S.oldLines, 0, "\"), (!D && !y || !g) && f.push("\");
25215
+ if (S >= o.length - 2 && d.length <= a.context) {
25216
+ var D = /\n$/.test(n), g = /\n$/.test(r), y = d.length == 0 && f.length > R.oldLines;
25217
+ !D && y && n.length > 0 && f.splice(R.oldLines, 0, "\"), (!D && !y || !g) && f.push("\");
25218
25218
  }
25219
- l.push(S), u = 0, c = 0, f = [];
25219
+ l.push(R), u = 0, c = 0, f = [];
25220
25220
  }
25221
25221
  N += d.length, I += d.length;
25222
25222
  }
25223
- }, p = 0; p < o.length; p++)
25223
+ }, O = 0; O < o.length; O++)
25224
25224
  h(
25225
25225
  /*istanbul ignore end*/
25226
- p
25226
+ O
25227
25227
  );
25228
25228
  return {
25229
25229
  oldFileName: e,
@@ -25706,8 +25706,8 @@ function eP(e) {
25706
25706
  }
25707
25707
  });
25708
25708
  var t = h(Xt), n = Xi, r = wr, i = Ln, s = Ki, a = Ji, o = Gr, E = Zi, l = to, u = zi, c = no, f = qn, N = vu, I = Uu;
25709
- function h(p) {
25710
- return p && p.__esModule ? p : { default: p };
25709
+ function h(O) {
25710
+ return O && O.__esModule ? O : { default: O };
25711
25711
  }
25712
25712
  })(cd);
25713
25713
  var tP = ce && ce.__createBinding || (Object.create ? function(e, t, n, r) {
@@ -25760,18 +25760,18 @@ const Dc = (e) => e === "" ? [] : e.replace(/\n$/, "").split(`
25760
25760
  ignoreCase: !1
25761
25761
  }) : a = Sl.diffJson(e, t);
25762
25762
  let o = i, E = i, l = [], u = 0;
25763
- const c = [], f = [], N = (I, h, p, A, R) => Dc(I).map((d, m) => {
25763
+ const c = [], f = [], N = (I, h, O, A, S) => Dc(I).map((d, m) => {
25764
25764
  const _ = {}, C = {};
25765
- if (!(f.includes(`${h}-${m}`) || R && m !== 0)) {
25766
- if (p || A) {
25765
+ if (!(f.includes(`${h}-${m}`) || S && m !== 0)) {
25766
+ if (O || A) {
25767
25767
  let L = !0;
25768
25768
  if (A) {
25769
25769
  E += 1, _.lineNumber = E, _.type = Gt.REMOVED, _.value = d || " ";
25770
25770
  const M = a[h + 1];
25771
25771
  if (M && M.added) {
25772
- const S = Dc(M.value)[m];
25773
- if (S) {
25774
- const D = N(S, h, !0, !1, !0), { value: g, lineNumber: y, type: U } = D[0].right;
25772
+ const R = Dc(M.value)[m];
25773
+ if (R) {
25774
+ const D = N(R, h, !0, !1, !0), { value: g, lineNumber: y, type: U } = D[0].right;
25775
25775
  if (f.push(`${h + 1}-${m}`), C.lineNumber = y, _.value === g)
25776
25776
  L = !1, C.type = 0, _.type = 0, C.value = g;
25777
25777
  else if (C.type = U, n)
@@ -25784,16 +25784,16 @@ const Dc = (e) => e === "" ? [] : e.replace(/\n$/, "").split(`
25784
25784
  }
25785
25785
  } else
25786
25786
  o += 1, C.lineNumber = o, C.type = Gt.ADDED, C.value = d;
25787
- L && !R && (c.includes(u) || c.push(u));
25787
+ L && !S && (c.includes(u) || c.push(u));
25788
25788
  } else
25789
25789
  E += 1, o += 1, _.lineNumber = E, _.type = Gt.DEFAULT, _.value = d, C.lineNumber = o, C.type = Gt.DEFAULT, C.value = d;
25790
- return (s != null && s.includes(`L-${_.lineNumber}`) || s != null && s.includes(`R-${C.lineNumber}`) && !c.includes(u)) && c.push(u), R || (u += 1), { right: C, left: _ };
25790
+ return (s != null && s.includes(`L-${_.lineNumber}`) || s != null && s.includes(`R-${C.lineNumber}`) && !c.includes(u)) && c.push(u), S || (u += 1), { right: C, left: _ };
25791
25791
  }
25792
25792
  }).filter(Boolean);
25793
- return a.forEach(({ added: I, removed: h, value: p }, A) => {
25793
+ return a.forEach(({ added: I, removed: h, value: O }, A) => {
25794
25794
  l = [
25795
25795
  ...l,
25796
- ...N(p, A, I, h)
25796
+ ...N(O, A, I, h)
25797
25797
  ];
25798
25798
  }), {
25799
25799
  lineInformation: l,
@@ -25984,17 +25984,17 @@ function hP(e) {
25984
25984
  return gd(Ys("", null, null, null, [""], e = Dd(e), 0, [0], e));
25985
25985
  }
25986
25986
  function Ys(e, t, n, r, i, s, a, o, E) {
25987
- for (var l = 0, u = 0, c = a, f = 0, N = 0, I = 0, h = 1, p = 1, A = 1, R = 0, O = "", d = i, m = s, _ = r, C = O; p; )
25988
- switch (I = R, R = nt()) {
25987
+ for (var l = 0, u = 0, c = a, f = 0, N = 0, I = 0, h = 1, O = 1, A = 1, S = 0, p = "", d = i, m = s, _ = r, C = p; O; )
25988
+ switch (I = S, S = nt()) {
25989
25989
  case 40:
25990
25990
  if (I != 108 && Me(C, c - 1) == 58) {
25991
- fl(C += $(Fs(R), "&", "&\f"), "&\f") != -1 && (A = -1);
25991
+ fl(C += $(Fs(S), "&", "&\f"), "&\f") != -1 && (A = -1);
25992
25992
  break;
25993
25993
  }
25994
25994
  case 34:
25995
25995
  case 39:
25996
25996
  case 91:
25997
- C += Fs(R);
25997
+ C += Fs(S);
25998
25998
  break;
25999
25999
  case 9:
26000
26000
  case 10:
@@ -26020,17 +26020,17 @@ function Ys(e, t, n, r, i, s, a, o, E) {
26020
26020
  case 125 * h:
26021
26021
  case 59:
26022
26022
  case 0:
26023
- switch (R) {
26023
+ switch (S) {
26024
26024
  case 0:
26025
26025
  case 125:
26026
- p = 0;
26026
+ O = 0;
26027
26027
  case 59 + u:
26028
26028
  A == -1 && (C = $(C, /\f/g, "")), N > 0 && Ct(C) - c && Cs(N > 32 ? Mc(C + ";", r, n, c - 1) : Mc($(C, " ", "") + ";", r, n, c - 2), E);
26029
26029
  break;
26030
26030
  case 59:
26031
26031
  C += ";";
26032
26032
  default:
26033
- if (Cs(_ = gc(C, t, n, l, u, i, o, O, d = [], m = [], c), s), R === 123)
26033
+ if (Cs(_ = gc(C, t, n, l, u, i, o, p, d = [], m = [], c), s), S === 123)
26034
26034
  if (u === 0)
26035
26035
  Ys(C, t, _, _, d, s, c, o, m);
26036
26036
  else
@@ -26039,24 +26039,24 @@ function Ys(e, t, n, r, i, s, a, o, E) {
26039
26039
  case 108:
26040
26040
  case 109:
26041
26041
  case 115:
26042
- Ys(e, _, _, r && Cs(gc(e, _, _, 0, 0, i, o, O, i, d = [], c), m), i, m, c, o, r ? d : m);
26042
+ Ys(e, _, _, r && Cs(gc(e, _, _, 0, 0, i, o, p, i, d = [], c), m), i, m, c, o, r ? d : m);
26043
26043
  break;
26044
26044
  default:
26045
26045
  Ys(C, _, _, _, [""], m, 0, o, m);
26046
26046
  }
26047
26047
  }
26048
- l = u = N = 0, h = A = 1, O = C = "", c = a;
26048
+ l = u = N = 0, h = A = 1, p = C = "", c = a;
26049
26049
  break;
26050
26050
  case 58:
26051
26051
  c = 1 + Ct(C), N = I;
26052
26052
  default:
26053
26053
  if (h < 1) {
26054
- if (R == 123)
26054
+ if (S == 123)
26055
26055
  --h;
26056
- else if (R == 125 && h++ == 0 && NP() == 125)
26056
+ else if (S == 125 && h++ == 0 && NP() == 125)
26057
26057
  continue;
26058
26058
  }
26059
- switch (C += io(R), R * h) {
26059
+ switch (C += io(S), S * h) {
26060
26060
  case 38:
26061
26061
  A = u > 0 ? 1 : (C += "\f", -1);
26062
26062
  break;
@@ -26064,7 +26064,7 @@ function Ys(e, t, n, r, i, s, a, o, E) {
26064
26064
  o[l++] = (Ct(C) - 1) * A, A = 1;
26065
26065
  break;
26066
26066
  case 64:
26067
- yt() === 45 && (C += Fs(nt())), f = yt(), u = c = Ct(O = C += _P(Hs())), R++;
26067
+ yt() === 45 && (C += Fs(nt())), f = yt(), u = c = Ct(p = C += _P(Hs())), S++;
26068
26068
  break;
26069
26069
  case 45:
26070
26070
  I === 45 && Ct(C) == 2 && (h = 0);
@@ -26073,9 +26073,9 @@ function Ys(e, t, n, r, i, s, a, o, E) {
26073
26073
  return s;
26074
26074
  }
26075
26075
  function gc(e, t, n, r, i, s, a, o, E, l, u) {
26076
- for (var c = i - 1, f = i === 0 ? s : [""], N = bu(f), I = 0, h = 0, p = 0; I < r; ++I)
26077
- for (var A = 0, R = vi(e, c + 1, c = AP(h = a[I])), O = e; A < N; ++A)
26078
- (O = md(h > 0 ? f[A] + " " + R : $(R, /&\f/g, f[A]))) && (E[p++] = O);
26076
+ for (var c = i - 1, f = i === 0 ? s : [""], N = bu(f), I = 0, h = 0, O = 0; I < r; ++I)
26077
+ for (var A = 0, S = vi(e, c + 1, c = AP(h = a[I])), p = e; A < N; ++A)
26078
+ (p = md(h > 0 ? f[A] + " " + S : $(S, /&\f/g, f[A]))) && (E[O++] = p);
26079
26079
  return ao(e, t, n, i === 0 ? wu : o, E, l, u);
26080
26080
  }
26081
26081
  function CP(e, t, n) {
@@ -26323,8 +26323,8 @@ var xP = function(t, n, r, i) {
26323
26323
  if (n === "css") {
26324
26324
  var r = document.querySelectorAll("style[data-emotion]:not([data-s])");
26325
26325
  Array.prototype.forEach.call(r, function(h) {
26326
- var p = h.getAttribute("data-emotion");
26327
- p.indexOf(" ") !== -1 && (document.head.appendChild(h), h.setAttribute("data-s", ""));
26326
+ var O = h.getAttribute("data-emotion");
26327
+ O.indexOf(" ") !== -1 && (document.head.appendChild(h), h.setAttribute("data-s", ""));
26328
26328
  });
26329
26329
  }
26330
26330
  var i = t.stylisPlugins || wP, s = {}, a, o = [];
@@ -26333,8 +26333,8 @@ var xP = function(t, n, r, i) {
26333
26333
  // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
26334
26334
  document.querySelectorAll('style[data-emotion^="' + n + ' "]'),
26335
26335
  function(h) {
26336
- for (var p = h.getAttribute("data-emotion").split(" "), A = 1; A < p.length; A++)
26337
- s[p[A]] = !0;
26336
+ for (var O = h.getAttribute("data-emotion").split(" "), A = 1; A < O.length; A++)
26337
+ s[O[A]] = !0;
26338
26338
  o.push(h);
26339
26339
  }
26340
26340
  );
@@ -26342,11 +26342,11 @@ var xP = function(t, n, r, i) {
26342
26342
  {
26343
26343
  var u, c = [LP, PP(function(h) {
26344
26344
  u.insert(h);
26345
- })], f = mP(l.concat(i, c)), N = function(p) {
26346
- return Ir(hP(p), f);
26345
+ })], f = mP(l.concat(i, c)), N = function(O) {
26346
+ return Ir(hP(O), f);
26347
26347
  };
26348
- E = function(p, A, R, O) {
26349
- u = R, N(p ? p + "{" + A.styles + "}" : A.styles), O && (I.inserted[A.name] = !0);
26348
+ E = function(O, A, S, p) {
26349
+ u = S, N(O ? O + "{" + A.styles + "}" : A.styles), p && (I.inserted[A.name] = !0);
26350
26350
  };
26351
26351
  }
26352
26352
  var I = {
@@ -26764,7 +26764,7 @@ xu.default = (e, t = !1, n = "") => {
26764
26764
  }), h = o({
26765
26765
  color: a.gutterColor,
26766
26766
  label: "line-number"
26767
- }), p = o({
26767
+ }), O = o({
26768
26768
  background: a.removedBackground,
26769
26769
  color: a.removedColor,
26770
26770
  pre: {
@@ -26784,13 +26784,13 @@ xu.default = (e, t = !1, n = "") => {
26784
26784
  color: a.addedGutterColor
26785
26785
  },
26786
26786
  label: "diff-added"
26787
- }), R = o({
26787
+ }), S = o({
26788
26788
  background: a.changedBackground,
26789
26789
  [`.${h}`]: {
26790
26790
  color: a.gutterColor
26791
26791
  },
26792
26792
  label: "diff-changed"
26793
- }), O = o({
26793
+ }), p = o({
26794
26794
  padding: 2,
26795
26795
  display: "inline-flex",
26796
26796
  borderRadius: 4,
@@ -26832,12 +26832,12 @@ xu.default = (e, t = !1, n = "") => {
26832
26832
  color: a.addedColor
26833
26833
  }
26834
26834
  },
26835
- [`&.${p}`]: {
26835
+ [`&.${O}`]: {
26836
26836
  pre: {
26837
26837
  color: a.removedColor
26838
26838
  }
26839
26839
  }
26840
- }), S = o({
26840
+ }), R = o({
26841
26841
  background: a.highlightBackground,
26842
26842
  label: "highlighted-line",
26843
26843
  [`.${d}, .${m}`]: {
@@ -26866,7 +26866,7 @@ xu.default = (e, t = !1, n = "") => {
26866
26866
  [`&.${A}`]: {
26867
26867
  background: a.addedGutterBackground
26868
26868
  },
26869
- [`&.${p}`]: {
26869
+ [`&.${O}`]: {
26870
26870
  background: a.removedGutterBackground
26871
26871
  },
26872
26872
  [`&.${D}`]: {
@@ -26886,16 +26886,16 @@ xu.default = (e, t = !1, n = "") => {
26886
26886
  label: "line"
26887
26887
  }), x = {
26888
26888
  diffContainer: c,
26889
- diffRemoved: p,
26889
+ diffRemoved: O,
26890
26890
  diffAdded: A,
26891
- diffChanged: R,
26891
+ diffChanged: S,
26892
26892
  splitView: u,
26893
26893
  marker: M,
26894
26894
  highlightedGutter: D,
26895
- highlightedLine: S,
26895
+ highlightedLine: R,
26896
26896
  gutter: g,
26897
26897
  line: U,
26898
- wordDiff: O,
26898
+ wordDiff: p,
26899
26899
  wordAdded: d,
26900
26900
  wordRemoved: m,
26901
26901
  codeFoldGutter: _,
@@ -26971,26 +26971,26 @@ const nD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26971
26971
  default: tD
26972
26972
  }, Symbol.toStringTag, { value: "Module" })), rD = /* @__PURE__ */ Fc(nD);
26973
26973
  (function(e) {
26974
- var t = ce && ce.__createBinding || (Object.create ? function(h, p, A, R) {
26975
- R === void 0 && (R = A);
26976
- var O = Object.getOwnPropertyDescriptor(p, A);
26977
- (!O || ("get" in O ? !p.__esModule : O.writable || O.configurable)) && (O = { enumerable: !0, get: function() {
26978
- return p[A];
26979
- } }), Object.defineProperty(h, R, O);
26980
- } : function(h, p, A, R) {
26981
- R === void 0 && (R = A), h[R] = p[A];
26982
- }), n = ce && ce.__setModuleDefault || (Object.create ? function(h, p) {
26983
- Object.defineProperty(h, "default", { enumerable: !0, value: p });
26984
- } : function(h, p) {
26985
- h.default = p;
26974
+ var t = ce && ce.__createBinding || (Object.create ? function(h, O, A, S) {
26975
+ S === void 0 && (S = A);
26976
+ var p = Object.getOwnPropertyDescriptor(O, A);
26977
+ (!p || ("get" in p ? !O.__esModule : p.writable || p.configurable)) && (p = { enumerable: !0, get: function() {
26978
+ return O[A];
26979
+ } }), Object.defineProperty(h, S, p);
26980
+ } : function(h, O, A, S) {
26981
+ S === void 0 && (S = A), h[S] = O[A];
26982
+ }), n = ce && ce.__setModuleDefault || (Object.create ? function(h, O) {
26983
+ Object.defineProperty(h, "default", { enumerable: !0, value: O });
26984
+ } : function(h, O) {
26985
+ h.default = O;
26986
26986
  }), r = ce && ce.__importStar || function(h) {
26987
26987
  if (h && h.__esModule)
26988
26988
  return h;
26989
- var p = {};
26989
+ var O = {};
26990
26990
  if (h != null)
26991
26991
  for (var A in h)
26992
- A !== "default" && Object.prototype.hasOwnProperty.call(h, A) && t(p, h, A);
26993
- return n(p, h), p;
26992
+ A !== "default" && Object.prototype.hasOwnProperty.call(h, A) && t(O, h, A);
26993
+ return n(O, h), O;
26994
26994
  }, i = ce && ce.__importDefault || function(h) {
26995
26995
  return h && h.__esModule ? h : { default: h };
26996
26996
  };
@@ -27005,67 +27005,67 @@ const nD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
27005
27005
  h.LEFT = "L", h.RIGHT = "R";
27006
27006
  })(N || (e.LineNumberPrefix = N = {}));
27007
27007
  class I extends a.Component {
27008
- constructor(p) {
27009
- super(p), this.resetCodeBlocks = () => this.state.expandedBlocks.length > 0 ? (this.setState({
27008
+ constructor(O) {
27009
+ super(O), this.resetCodeBlocks = () => this.state.expandedBlocks.length > 0 ? (this.setState({
27010
27010
  expandedBlocks: []
27011
27011
  }), !0) : !1, this.onBlockExpand = (A) => {
27012
- const R = this.state.expandedBlocks.slice();
27013
- R.push(A), this.setState({
27014
- expandedBlocks: R
27012
+ const S = this.state.expandedBlocks.slice();
27013
+ S.push(A), this.setState({
27014
+ expandedBlocks: S
27015
27015
  });
27016
- }, this.computeStyles = f(l.default), this.onLineNumberClickProxy = (A) => this.props.onLineNumberClick ? (R) => this.props.onLineNumberClick(A, R) : () => {
27017
- }, this.renderWordDiff = (A, R) => A.map((O, d) => (0, s.jsx)("span", { className: (0, o.default)(this.styles.wordDiff, {
27018
- [this.styles.wordAdded]: O.type === E.DiffType.ADDED,
27019
- [this.styles.wordRemoved]: O.type === E.DiffType.REMOVED
27020
- }), children: R ? R(O.value) : O.value }, d)), this.renderLine = (A, R, O, d, m, _) => {
27021
- const C = `${O}-${A}`, L = `${_}-${m}`, M = this.props.highlightLines.includes(C) || this.props.highlightLines.includes(L), S = R === E.DiffType.ADDED, D = R === E.DiffType.REMOVED, g = R === E.DiffType.CHANGED;
27016
+ }, this.computeStyles = f(l.default), this.onLineNumberClickProxy = (A) => this.props.onLineNumberClick ? (S) => this.props.onLineNumberClick(A, S) : () => {
27017
+ }, this.renderWordDiff = (A, S) => A.map((p, d) => (0, s.jsx)("span", { className: (0, o.default)(this.styles.wordDiff, {
27018
+ [this.styles.wordAdded]: p.type === E.DiffType.ADDED,
27019
+ [this.styles.wordRemoved]: p.type === E.DiffType.REMOVED
27020
+ }), children: S ? S(p.value) : p.value }, d)), this.renderLine = (A, S, p, d, m, _) => {
27021
+ const C = `${p}-${A}`, L = `${_}-${m}`, M = this.props.highlightLines.includes(C) || this.props.highlightLines.includes(L), R = S === E.DiffType.ADDED, D = S === E.DiffType.REMOVED, g = S === E.DiffType.CHANGED;
27022
27022
  let y;
27023
27023
  return Array.isArray(d) ? y = this.renderWordDiff(d, this.props.renderContent) : this.props.renderContent ? y = this.props.renderContent(d) : y = d, (0, s.jsxs)(a.Fragment, { children: [!this.props.hideLineNumbers && (0, s.jsx)("td", { onClick: A && this.onLineNumberClickProxy(C), className: (0, o.default)(this.styles.gutter, {
27024
27024
  [this.styles.emptyGutter]: !A,
27025
- [this.styles.diffAdded]: S,
27025
+ [this.styles.diffAdded]: R,
27026
27026
  [this.styles.diffRemoved]: D,
27027
27027
  [this.styles.diffChanged]: g,
27028
27028
  [this.styles.highlightedGutter]: M
27029
27029
  }), children: (0, s.jsx)("pre", { className: this.styles.lineNumber, children: A }) }), !this.props.splitView && !this.props.hideLineNumbers && (0, s.jsx)("td", { onClick: m && this.onLineNumberClickProxy(L), className: (0, o.default)(this.styles.gutter, {
27030
27030
  [this.styles.emptyGutter]: !m,
27031
- [this.styles.diffAdded]: S,
27031
+ [this.styles.diffAdded]: R,
27032
27032
  [this.styles.diffRemoved]: D,
27033
27033
  [this.styles.diffChanged]: g,
27034
27034
  [this.styles.highlightedGutter]: M
27035
27035
  }), children: (0, s.jsx)("pre", { className: this.styles.lineNumber, children: m }) }), this.props.renderGutter ? this.props.renderGutter({
27036
27036
  lineNumber: A,
27037
- type: R,
27038
- prefix: O,
27037
+ type: S,
27038
+ prefix: p,
27039
27039
  value: d,
27040
27040
  additionalLineNumber: m,
27041
27041
  additionalPrefix: _,
27042
27042
  styles: this.styles
27043
27043
  }) : null, !this.props.hideMarkers && (0, s.jsx)("td", { className: (0, o.default)(this.styles.marker, {
27044
27044
  [this.styles.emptyLine]: !y,
27045
- [this.styles.diffAdded]: S,
27045
+ [this.styles.diffAdded]: R,
27046
27046
  [this.styles.diffRemoved]: D,
27047
27047
  [this.styles.diffChanged]: g,
27048
27048
  [this.styles.highlightedLine]: M
27049
- }), children: (0, s.jsxs)("pre", { children: [S && "+", D && "-"] }) }), (0, s.jsx)("td", { className: (0, o.default)(this.styles.content, {
27049
+ }), children: (0, s.jsxs)("pre", { children: [R && "+", D && "-"] }) }), (0, s.jsx)("td", { className: (0, o.default)(this.styles.content, {
27050
27050
  [this.styles.emptyLine]: !y,
27051
- [this.styles.diffAdded]: S,
27051
+ [this.styles.diffAdded]: R,
27052
27052
  [this.styles.diffRemoved]: D,
27053
27053
  [this.styles.diffChanged]: g,
27054
27054
  [this.styles.highlightedLine]: M
27055
27055
  }), children: (0, s.jsx)("pre", { className: this.styles.contentText, children: y }) })] });
27056
- }, this.renderSplitView = ({ left: A, right: R }, O) => (0, s.jsxs)("tr", { className: this.styles.line, children: [this.renderLine(A.lineNumber, A.type, N.LEFT, A.value), this.renderLine(R.lineNumber, R.type, N.RIGHT, R.value)] }, O), this.renderInlineView = ({ left: A, right: R }, O) => {
27056
+ }, this.renderSplitView = ({ left: A, right: S }, p) => (0, s.jsxs)("tr", { className: this.styles.line, children: [this.renderLine(A.lineNumber, A.type, N.LEFT, A.value), this.renderLine(S.lineNumber, S.type, N.RIGHT, S.value)] }, p), this.renderInlineView = ({ left: A, right: S }, p) => {
27057
27057
  let d;
27058
- return A.type === E.DiffType.REMOVED && R.type === E.DiffType.ADDED ? (0, s.jsxs)(a.Fragment, { children: [(0, s.jsx)("tr", { className: this.styles.line, children: this.renderLine(A.lineNumber, A.type, N.LEFT, A.value, null) }), (0, s.jsx)("tr", { className: this.styles.line, children: this.renderLine(null, R.type, N.RIGHT, R.value, R.lineNumber) })] }, O) : (A.type === E.DiffType.REMOVED && (d = this.renderLine(A.lineNumber, A.type, N.LEFT, A.value, null)), A.type === E.DiffType.DEFAULT && (d = this.renderLine(A.lineNumber, A.type, N.LEFT, A.value, R.lineNumber, N.RIGHT)), R.type === E.DiffType.ADDED && (d = this.renderLine(null, R.type, N.RIGHT, R.value, R.lineNumber)), (0, s.jsx)("tr", { className: this.styles.line, children: d }, O));
27059
- }, this.onBlockClickProxy = (A) => () => this.onBlockExpand(A), this.renderSkippedLineIndicator = (A, R, O, d) => {
27060
- const { hideLineNumbers: m, splitView: _ } = this.props, C = this.props.codeFoldMessageRenderer ? this.props.codeFoldMessageRenderer(A, O, d) : (0, s.jsxs)("pre", { className: this.styles.codeFoldContent, children: ["Expand ", A, " lines ..."] }), L = (0, s.jsx)("td", { children: (0, s.jsx)("a", { onClick: this.onBlockClickProxy(R), tabIndex: 0, children: C }) }), M = !_ && !m;
27058
+ return A.type === E.DiffType.REMOVED && S.type === E.DiffType.ADDED ? (0, s.jsxs)(a.Fragment, { children: [(0, s.jsx)("tr", { className: this.styles.line, children: this.renderLine(A.lineNumber, A.type, N.LEFT, A.value, null) }), (0, s.jsx)("tr", { className: this.styles.line, children: this.renderLine(null, S.type, N.RIGHT, S.value, S.lineNumber) })] }, p) : (A.type === E.DiffType.REMOVED && (d = this.renderLine(A.lineNumber, A.type, N.LEFT, A.value, null)), A.type === E.DiffType.DEFAULT && (d = this.renderLine(A.lineNumber, A.type, N.LEFT, A.value, S.lineNumber, N.RIGHT)), S.type === E.DiffType.ADDED && (d = this.renderLine(null, S.type, N.RIGHT, S.value, S.lineNumber)), (0, s.jsx)("tr", { className: this.styles.line, children: d }, p));
27059
+ }, this.onBlockClickProxy = (A) => () => this.onBlockExpand(A), this.renderSkippedLineIndicator = (A, S, p, d) => {
27060
+ const { hideLineNumbers: m, splitView: _ } = this.props, C = this.props.codeFoldMessageRenderer ? this.props.codeFoldMessageRenderer(A, p, d) : (0, s.jsxs)("pre", { className: this.styles.codeFoldContent, children: ["Expand ", A, " lines ..."] }), L = (0, s.jsx)("td", { children: (0, s.jsx)("a", { onClick: this.onBlockClickProxy(S), tabIndex: 0, children: C }) }), M = !_ && !m;
27061
27061
  return (0, s.jsxs)("tr", { className: this.styles.codeFold, children: [!m && (0, s.jsx)("td", { className: this.styles.codeFoldGutter }), this.props.renderGutter ? (0, s.jsx)("td", { className: this.styles.codeFoldGutter }) : null, (0, s.jsx)("td", { className: (0, o.default)({
27062
27062
  [this.styles.codeFoldGutter]: M
27063
- }) }), M ? (0, s.jsxs)(a.Fragment, { children: [(0, s.jsx)("td", {}), L] }) : (0, s.jsxs)(a.Fragment, { children: [L, this.props.renderGutter ? (0, s.jsx)("td", {}) : null, (0, s.jsx)("td", {})] }), (0, s.jsx)("td", {}), (0, s.jsx)("td", {})] }, `${O}-${d}`);
27063
+ }) }), M ? (0, s.jsxs)(a.Fragment, { children: [(0, s.jsx)("td", {}), L] }) : (0, s.jsxs)(a.Fragment, { children: [L, this.props.renderGutter ? (0, s.jsx)("td", {}) : null, (0, s.jsx)("td", {})] }), (0, s.jsx)("td", {}), (0, s.jsx)("td", {})] }, `${p}-${d}`);
27064
27064
  }, this.renderDiff = () => {
27065
- const { oldValue: A, newValue: R, splitView: O, disableWordDiff: d, compareMethod: m, linesOffset: _ } = this.props, { lineInformation: C, diffLines: L } = (0, E.computeLineInformation)(A, R, d, m, _, this.props.alwaysShowLines), M = this.props.extraLinesSurroundingDiff < 0 ? 0 : Math.round(this.props.extraLinesSurroundingDiff), { lineBlocks: S, blocks: D } = (0, u.computeHiddenBlocks)(C, L, M);
27065
+ const { oldValue: A, newValue: S, splitView: p, disableWordDiff: d, compareMethod: m, linesOffset: _ } = this.props, { lineInformation: C, diffLines: L } = (0, E.computeLineInformation)(A, S, d, m, _, this.props.alwaysShowLines), M = this.props.extraLinesSurroundingDiff < 0 ? 0 : Math.round(this.props.extraLinesSurroundingDiff), { lineBlocks: R, blocks: D } = (0, u.computeHiddenBlocks)(C, L, M);
27066
27066
  return C.map((g, y) => {
27067
27067
  if (this.props.showDiffOnly) {
27068
- const x = S[y];
27068
+ const x = R[y];
27069
27069
  if (x !== void 0) {
27070
27070
  const F = D[x].endLine === y;
27071
27071
  if (!this.state.expandedBlocks.includes(x) && F)
@@ -27074,20 +27074,20 @@ const nD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
27074
27074
  return null;
27075
27075
  }
27076
27076
  }
27077
- return O ? this.renderSplitView(g, y) : this.renderInlineView(g, y);
27077
+ return p ? this.renderSplitView(g, y) : this.renderInlineView(g, y);
27078
27078
  });
27079
27079
  }, this.render = () => {
27080
- const { oldValue: A, newValue: R, useDarkTheme: O, leftTitle: d, rightTitle: m, splitView: _, hideLineNumbers: C, hideMarkers: L, nonce: M } = this.props;
27081
- if (this.props.compareMethod !== E.DiffMethod.JSON && (typeof A != "string" || typeof R != "string"))
27080
+ const { oldValue: A, newValue: S, useDarkTheme: p, leftTitle: d, rightTitle: m, splitView: _, hideLineNumbers: C, hideMarkers: L, nonce: M } = this.props;
27081
+ if (this.props.compareMethod !== E.DiffMethod.JSON && (typeof A != "string" || typeof S != "string"))
27082
27082
  throw Error('"oldValue" and "newValue" should be strings');
27083
- this.styles = this.computeStyles(this.props.styles, O, M);
27084
- const S = this.renderDiff();
27083
+ this.styles = this.computeStyles(this.props.styles, p, M);
27084
+ const R = this.renderDiff();
27085
27085
  let D = C ? 2 : 3, g = C ? 2 : 4;
27086
27086
  L && (D -= 1, g -= 1);
27087
27087
  const y = this.props.renderGutter ? 1 : 0, U = (d || m) && (0, s.jsxs)("tr", { children: [(0, s.jsx)("td", { colSpan: (_ ? D : g) + y, className: this.styles.titleBlock, children: (0, s.jsx)("pre", { className: this.styles.contentText, children: d }) }), _ && (0, s.jsx)("td", { colSpan: D + y, className: this.styles.titleBlock, children: (0, s.jsx)("pre", { className: this.styles.contentText, children: m }) })] });
27088
27088
  return (0, s.jsx)("table", { className: (0, o.default)(this.styles.diffContainer, {
27089
27089
  [this.styles.splitView]: _
27090
- }), children: (0, s.jsxs)("tbody", { children: [U, S] }) });
27090
+ }), children: (0, s.jsxs)("tbody", { children: [U, R] }) });
27091
27091
  }, this.state = {
27092
27092
  expandedBlocks: []
27093
27093
  };
@@ -27124,9 +27124,9 @@ function sD() {
27124
27124
  if (!o || !E || !(() => {
27125
27125
  if (i)
27126
27126
  return !0;
27127
- const p = document.head.querySelectorAll("style"), A = Array.from(p).filter((d) => d.getAttribute("data-emotion")), R = new CSSStyleSheet(), O = Array.from(A).map((d) => d.innerHTML).join(`
27127
+ const O = document.head.querySelectorAll("style"), A = Array.from(O).filter((d) => d.getAttribute("data-emotion")), S = new CSSStyleSheet(), p = Array.from(A).map((d) => d.innerHTML).join(`
27128
27128
  `);
27129
- return R.replaceSync(O), c && c.adoptedStyleSheets && !(c.adoptedStyleSheets.indexOf(R) >= 0) && A.length > 0 ? (c.adoptedStyleSheets = [...c.adoptedStyleSheets, R], s(!0), !0) : !1;
27129
+ return S.replaceSync(p), c && c.adoptedStyleSheets && !(c.adoptedStyleSheets.indexOf(S) >= 0) && A.length > 0 ? (c.adoptedStyleSheets = [...c.adoptedStyleSheets, S], s(!0), !0) : !1;
27130
27130
  })())
27131
27131
  return;
27132
27132
  const N = fc(o, { format: "html" });
@@ -27226,69 +27226,74 @@ async function fD(e) {
27226
27226
  function Hc() {
27227
27227
  return !!(window.__spotlight && window.document.getElementById("sentry-spotlight-root"));
27228
27228
  }
27229
- async function dD({
27230
- openOnInit: e = !1,
27231
- showTriggerButton: t = !0,
27232
- injectImmediately: n = !1,
27233
- sidecarUrl: r = RR,
27234
- anchor: i = SR,
27235
- debug: s = !1,
27236
- integrations: a,
27237
- experiments: o = SE,
27238
- fullPage: E = !1,
27239
- showClearEventsButton: l = !0,
27240
- initialEvents: u = void 0
27241
- } = ((c) => (c = window.__spotlight) == null ? void 0 : c.initOptions)() || {}) {
27242
- if (typeof document > "u")
27243
- return;
27244
- const f = { ...SE, ...o };
27245
- if (Hc())
27229
+ async function dD(e = {}) {
27230
+ var M;
27231
+ if (typeof document > "u" || Hc())
27246
27232
  return;
27247
- s && mp();
27248
- const N = [P1({ sidecarUrl: r })], I = {
27233
+ const t = (M = window.__spotlight) == null ? void 0 : M.initOptions;
27234
+ t && (e = {
27235
+ ...t,
27236
+ ...e
27237
+ });
27238
+ const {
27239
+ openOnInit: n = !1,
27240
+ showTriggerButton: r = !0,
27241
+ injectImmediately: i = !1,
27242
+ sidecarUrl: s = RR,
27243
+ anchor: a = SR,
27244
+ debug: o = !1,
27245
+ integrations: E,
27246
+ experiments: l = SE,
27247
+ fullPage: u = !1,
27248
+ showClearEventsButton: c = !0,
27249
+ initialEvents: f = void 0,
27250
+ startFrom: N = void 0
27251
+ } = e;
27252
+ o && mp();
27253
+ const I = { ...SE, ...l }, h = () => [P1({ sidecarUrl: s })], O = {
27249
27254
  open: oD,
27250
27255
  close: ED,
27251
- experiments: f
27252
- }, [h] = await pR(a ?? N, I), p = document.createElement("div");
27253
- p.id = "sentry-spotlight-root";
27254
- const A = p.attachShadow({ mode: "open" }), R = document.createElement("div");
27255
- E ? (p.style.height = "100%", p.style.backgroundColor = Ep.indigo[950], R.style.height = "inherit") : (R.style.position = "absolute", R.style.top = "0", R.style.left = "0", R.style.right = "0"), A.appendChild(R);
27256
- const O = Bc(gp);
27257
- A.adoptedStyleSheets = [Bc(sN), O];
27258
- const d = h.flatMap(
27259
- (C) => {
27260
- var L;
27261
- return ((L = C.tabs) == null ? void 0 : L.call(C, { processedEvents: [] }).map((M) => ({
27262
- ...M,
27256
+ experiments: I
27257
+ }, [A] = await pR(E ?? h(), O), S = document.createElement("div");
27258
+ S.id = "sentry-spotlight-root";
27259
+ const p = S.attachShadow({ mode: "open" }), d = document.createElement("div");
27260
+ u ? (S.style.height = "100%", S.style.backgroundColor = Ep.indigo[950], d.style.height = "inherit") : (d.style.position = "absolute", d.style.top = "0", d.style.left = "0", d.style.right = "0"), p.appendChild(d);
27261
+ const m = Bc(gp);
27262
+ p.adoptedStyleSheets = [Bc(sN), m];
27263
+ const _ = A.flatMap(
27264
+ (R) => {
27265
+ var D;
27266
+ return ((D = R.tabs) == null ? void 0 : D.call(R, { processedEvents: [] }).map((g) => ({
27267
+ ...g,
27263
27268
  processedEvents: []
27264
27269
  }))) || [];
27265
27270
  }
27266
- ), m = d.length ? `/${d[0].id}` : "/no-tabs";
27267
- pE.createRoot(R).render(
27271
+ ), C = N || (_.length ? `/${_[0].id}` : "/no-tabs");
27272
+ ee("Starting from", C), pE.createRoot(d).render(
27268
27273
  // <React.StrictMode>
27269
- /* @__PURE__ */ T.jsx(KN, { initialEntries: [m], children: /* @__PURE__ */ T.jsx(EO, { context: I, children: /* @__PURE__ */ T.jsx(
27274
+ /* @__PURE__ */ T.jsx(KN, { initialEntries: [C], children: /* @__PURE__ */ T.jsx(EO, { context: O, children: /* @__PURE__ */ T.jsx(
27270
27275
  Dp,
27271
27276
  {
27272
- integrations: h,
27273
- openOnInit: e,
27274
- showTriggerButton: t,
27275
- sidecarUrl: r,
27276
- anchor: i,
27277
- fullPage: E,
27278
- showClearEventsButton: l,
27279
- initialEvents: u
27277
+ integrations: A,
27278
+ openOnInit: n,
27279
+ showTriggerButton: r,
27280
+ sidecarUrl: s,
27281
+ anchor: a,
27282
+ fullPage: u,
27283
+ showClearEventsButton: c,
27284
+ initialEvents: f
27280
27285
  }
27281
27286
  ) }) })
27282
27287
  // </React.StrictMode>
27283
27288
  );
27284
- function _() {
27289
+ function L() {
27285
27290
  if (Hc()) {
27286
27291
  ee("Spotlight already injected, bailing.");
27287
27292
  return;
27288
27293
  }
27289
- ee("Injecting into application"), document.body.append(p);
27294
+ ee("Injecting into application"), document.body.append(S);
27290
27295
  }
27291
- document.readyState === "complete" || n ? _() : window.addEventListener("load", _), window.addEventListener("error", _);
27296
+ document.readyState === "complete" || i ? L() : window.addEventListener("load", L), window.addEventListener("error", L);
27292
27297
  }
27293
27298
  (function(e) {
27294
27299
  e && e.init({ integrations: [e.sentry(), e.console()] });
@@ -27318,4 +27323,4 @@ export {
27318
27323
  Bi as t,
27319
27324
  AD as v
27320
27325
  };
27321
- //# sourceMappingURL=index-9c22eb7e.js.map
27326
+ //# sourceMappingURL=index-1149361f.js.map