@kong-ui-public/documentation 0.4.12 → 0.4.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/{arc-C2t0ExPw-CR_0vqRg.js → arc-C2t0ExPw-DLpexKUK.js} +1 -1
  2. package/dist/{blockDiagram-6b2b5046-BabM1eIl-C85stHtj.js → blockDiagram-6b2b5046-BabM1eIl-BiFw3WJ6.js} +5 -5
  3. package/dist/{c4Diagram-b947cdbb-BBGJ9ivn-Dwz3JGTI.js → c4Diagram-b947cdbb-BBGJ9ivn-BA4nSYfd.js} +2 -2
  4. package/dist/{channel-DXyvEer2-OyVZq8Xo.js → channel-DXyvEer2-Do9TwFFf.js} +1 -1
  5. package/dist/{classDiagram-35230388-CRYNduH8-BOSSyxwU.js → classDiagram-35230388-CRYNduH8-CLsxllrW.js} +5 -5
  6. package/dist/{classDiagram-v2-412acd34-5HbyJrnL-ST64CPx5.js → classDiagram-v2-412acd34-5HbyJrnL-DB1xO44x.js} +5 -5
  7. package/dist/{clone-BoeTe_OS-CjGEkx_F.js → clone-BoeTe_OS-CQarmEZE.js} +1 -1
  8. package/dist/{createText-423428c9-Q0HfccbL-DBcIXsnc.js → createText-423428c9-Q0HfccbL-Bwaom8lh.js} +1 -1
  9. package/dist/documentation.es.js +1 -1
  10. package/dist/documentation.umd.js +3 -3
  11. package/dist/{edges-d417c7a0-DEJA2PwU-c5o-9uno.js → edges-d417c7a0-DEJA2PwU-BX5bd8a1.js} +3 -3
  12. package/dist/{erDiagram-0ea73325-C3DQ6B1e-DjAGdzcu.js → erDiagram-0ea73325-C3DQ6B1e-GwhT3lGQ.js} +4 -4
  13. package/dist/{flowDb-d35e309a-RvFFqjek-pyC_lUzm.js → flowDb-d35e309a-RvFFqjek-t_Dexseh.js} +1 -1
  14. package/dist/{flowDiagram-d949d7c1-Boa20b_n-BKdBxRnq.js → flowDiagram-d949d7c1-Boa20b_n-CJ3aILFD.js} +6 -6
  15. package/dist/{flowDiagram-v2-49332944-BJtijxhz-BfL0l3kS.js → flowDiagram-v2-49332944-BJtijxhz-Cgd4t08U.js} +5 -5
  16. package/dist/{flowchart-elk-definition-27cc417a-BBD3LS9k-DhfRKjaQ.js → flowchart-elk-definition-27cc417a-BBD3LS9k-Bb9_HTfE.js} +4 -4
  17. package/dist/{ganttDiagram-5c869e3b-CRDFjzTp-C3-yl36r.js → ganttDiagram-5c869e3b-CRDFjzTp-lNK9bq-O.js} +2 -2
  18. package/dist/{gitGraphDiagram-b9d81de9-D1rNIGL0-BG2n_b9U.js → gitGraphDiagram-b9d81de9-D1rNIGL0-DDkwKLsk.js} +1 -1
  19. package/dist/{graph-BIq67vWs-B7ta0ZdY.js → graph-BIq67vWs-Bc3nX8P0.js} +1 -1
  20. package/dist/{index-8fae9850-CaUboB89-KhmQqIkN.js → index-8fae9850-CaUboB89-B0nma_3r.js} +6 -6
  21. package/dist/{index-_NcqxG2P.js → index-Bh6WVkCI.js} +864 -864
  22. package/dist/{infoDiagram-db7b18fc-DKsewKnu-nKlnfk12.js → infoDiagram-db7b18fc-DKsewKnu-CWVarnHo.js} +1 -1
  23. package/dist/{journeyDiagram-d5636530-ClddNDmR-DXRHq-4M.js → journeyDiagram-d5636530-ClddNDmR-ywsNZNTr.js} +3 -3
  24. package/dist/{layout-Cz0dAJah-BTgthZsZ.js → layout-Cz0dAJah-C3YaSszT.js} +2 -2
  25. package/dist/{line-BCVITS7s-Ckay3mGw.js → line-BCVITS7s-Du1xeoK-.js} +1 -1
  26. package/dist/{linear-CLHAbj67-CRi7BpMp.js → linear-CLHAbj67-1tzRLAFO.js} +1 -1
  27. package/dist/{mindmap-definition-377f8f1f-BwEJ-DVg-DWk6Jo2n.js → mindmap-definition-377f8f1f-BwEJ-DVg-DeBewnKQ.js} +2 -2
  28. package/dist/{pieDiagram-b0208e96-Cyz2Kcfu-BKQLF9sW.js → pieDiagram-b0208e96-Cyz2Kcfu-B1Q8dscS.js} +2 -2
  29. package/dist/{quadrantDiagram-0332be45-CDMkEQj0-B8KMwkcO.js → quadrantDiagram-0332be45-CDMkEQj0-D0ioHd_P.js} +2 -2
  30. package/dist/{requirementDiagram-bf7890df-Jk3SQ-Q1-ub7Z0GPl.js → requirementDiagram-bf7890df-Jk3SQ-Q1-BB9UHuUh.js} +4 -4
  31. package/dist/{sankeyDiagram-0acdec17-BJuIUJd_-BnkIVf8S.js → sankeyDiagram-0acdec17-BJuIUJd_-Ce7q-NNk.js} +1 -1
  32. package/dist/{sequenceDiagram-c18d009d-B4IxGCEM-B3uFgxU_.js → sequenceDiagram-c18d009d-B4IxGCEM-DgvEmabG.js} +2 -2
  33. package/dist/{stateDiagram-43596fc0-0xEMkbt_-BALY6uIB.js → stateDiagram-43596fc0-0xEMkbt_-jFUk_xdU.js} +5 -5
  34. package/dist/{stateDiagram-v2-2ead4f9c-DS4afpcC-B7o3rR3l.js → stateDiagram-v2-2ead4f9c-DS4afpcC-jDCqPtGk.js} +5 -5
  35. package/dist/{styles-6860f46c-ZdhsT5S9-obFqRkzA.js → styles-6860f46c-ZdhsT5S9-Du_QdneE.js} +1 -1
  36. package/dist/{styles-7383a064-C7WyH3qz-C_v2lpXJ.js → styles-7383a064-C7WyH3qz-B1ftH-y8.js} +4 -4
  37. package/dist/{styles-b2c874b6-BFg-Nblp-DDESTBsS.js → styles-b2c874b6-BFg-Nblp-B0z_umAE.js} +1 -1
  38. package/dist/{svgDrawCommon-0ee1b4e9-CpOZq9bS-Cw8Tr_3J.js → svgDrawCommon-0ee1b4e9-CpOZq9bS-BwyJFwu6.js} +1 -1
  39. package/dist/{timeline-definition-d977decf-BqZwyTB6-C3j7tbKa.js → timeline-definition-d977decf-BqZwyTB6-qFhObMdA.js} +2 -2
  40. package/dist/{xychartDiagram-e50adddc-C1fuuOEQ-CF13knJk.js → xychartDiagram-e50adddc-C1fuuOEQ-DHvZ99O1.js} +4 -4
  41. package/package.json +2 -2
@@ -119,7 +119,7 @@ Ie.prototype.constructor = Ie;
119
119
  Ie.prototype.toString = function(A) {
120
120
  return this.name + ": " + qt(this, A);
121
121
  };
122
- var ee = Ie, ai = [
122
+ var te = Ie, ai = [
123
123
  "kind",
124
124
  "multi",
125
125
  "resolve",
@@ -146,15 +146,15 @@ function li$1(A) {
146
146
  function si(A, g) {
147
147
  if (g = g || {}, Object.keys(g).forEach(function(B) {
148
148
  if (ai.indexOf(B) === -1)
149
- throw new ee('Unknown option "' + B + '" is met in definition of "' + A + '" YAML type.');
149
+ throw new te('Unknown option "' + B + '" is met in definition of "' + A + '" YAML type.');
150
150
  }), this.options = g, this.tag = A, this.kind = g.kind || null, this.resolve = g.resolve || function() {
151
151
  return !0;
152
152
  }, this.construct = g.construct || function(B) {
153
153
  return B;
154
154
  }, this.instanceOf = g.instanceOf || null, this.predicate = g.predicate || null, this.represent = g.represent || null, this.representName = g.representName || null, this.defaultStyle = g.defaultStyle || null, this.multi = g.multi || !1, this.styleAliases = li$1(g.styleAliases || null), oi.indexOf(this.kind) === -1)
155
- throw new ee('Unknown kind "' + this.kind + '" is specified for "' + A + '" YAML type.');
155
+ throw new te('Unknown kind "' + this.kind + '" is specified for "' + A + '" YAML type.');
156
156
  }
157
- var Q = si;
157
+ var X = si;
158
158
  function mt(A, g) {
159
159
  var B = [];
160
160
  return A[g].forEach(function(E) {
@@ -189,39 +189,39 @@ function We(A) {
189
189
  }
190
190
  We.prototype.extend = function(A) {
191
191
  var g = [], B = [];
192
- if (A instanceof Q)
192
+ if (A instanceof X)
193
193
  B.push(A);
194
194
  else if (Array.isArray(A))
195
195
  B = B.concat(A);
196
196
  else if (A && (Array.isArray(A.implicit) || Array.isArray(A.explicit)))
197
197
  A.implicit && (g = g.concat(A.implicit)), A.explicit && (B = B.concat(A.explicit));
198
198
  else
199
- throw new ee("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
199
+ throw new te("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
200
200
  g.forEach(function(C) {
201
- if (!(C instanceof Q))
202
- throw new ee("Specified list of YAML types (or a single Type object) contains a non-Type object.");
201
+ if (!(C instanceof X))
202
+ throw new te("Specified list of YAML types (or a single Type object) contains a non-Type object.");
203
203
  if (C.loadKind && C.loadKind !== "scalar")
204
- throw new ee("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
204
+ throw new te("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
205
205
  if (C.multi)
206
- throw new ee("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
206
+ throw new te("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
207
207
  }), B.forEach(function(C) {
208
- if (!(C instanceof Q))
209
- throw new ee("Specified list of YAML types (or a single Type object) contains a non-Type object.");
208
+ if (!(C instanceof X))
209
+ throw new te("Specified list of YAML types (or a single Type object) contains a non-Type object.");
210
210
  });
211
211
  var E = Object.create(We.prototype);
212
212
  return E.implicit = (this.implicit || []).concat(g), E.explicit = (this.explicit || []).concat(B), E.compiledImplicit = mt(E, "implicit"), E.compiledExplicit = mt(E, "explicit"), E.compiledTypeMap = ci(E.compiledImplicit, E.compiledExplicit), E;
213
213
  };
214
- var Pt$1 = We, Ht = new Q("tag:yaml.org,2002:str", {
214
+ var Pt$1 = We, Ht = new X("tag:yaml.org,2002:str", {
215
215
  kind: "scalar",
216
216
  construct: function(A) {
217
217
  return A !== null ? A : "";
218
218
  }
219
- }), Vt = new Q("tag:yaml.org,2002:seq", {
219
+ }), Vt = new X("tag:yaml.org,2002:seq", {
220
220
  kind: "sequence",
221
221
  construct: function(A) {
222
222
  return A !== null ? A : [];
223
223
  }
224
- }), Yt = new Q("tag:yaml.org,2002:map", {
224
+ }), Yt = new X("tag:yaml.org,2002:map", {
225
225
  kind: "mapping",
226
226
  construct: function(A) {
227
227
  return A !== null ? A : {};
@@ -245,7 +245,7 @@ function di() {
245
245
  function fi(A) {
246
246
  return A === null;
247
247
  }
248
- var Wt = new Q("tag:yaml.org,2002:null", {
248
+ var Wt = new X("tag:yaml.org,2002:null", {
249
249
  kind: "scalar",
250
250
  resolve: ui,
251
251
  construct: di,
@@ -281,7 +281,7 @@ function hi(A) {
281
281
  function mi(A) {
282
282
  return Object.prototype.toString.call(A) === "[object Boolean]";
283
283
  }
284
- var Jt = new Q("tag:yaml.org,2002:bool", {
284
+ var Jt = new X("tag:yaml.org,2002:bool", {
285
285
  kind: "scalar",
286
286
  resolve: pi$1,
287
287
  construct: hi,
@@ -372,7 +372,7 @@ function xi(A) {
372
372
  function Ci(A) {
373
373
  return Object.prototype.toString.call(A) === "[object Number]" && A % 1 === 0 && !G.isNegativeZero(A);
374
374
  }
375
- var Gt$1 = new Q("tag:yaml.org,2002:int", {
375
+ var Gt$1 = new X("tag:yaml.org,2002:int", {
376
376
  kind: "scalar",
377
377
  resolve: bi,
378
378
  construct: xi,
@@ -449,7 +449,7 @@ function Si(A, g) {
449
449
  function Ii(A) {
450
450
  return Object.prototype.toString.call(A) === "[object Number]" && (A % 1 !== 0 || G.isNegativeZero(A));
451
451
  }
452
- var Zt = new Q("tag:yaml.org,2002:float", {
452
+ var Zt = new X("tag:yaml.org,2002:float", {
453
453
  kind: "scalar",
454
454
  resolve: ki,
455
455
  construct: wi,
@@ -487,7 +487,7 @@ function Ti(A) {
487
487
  function Fi$1(A) {
488
488
  return A.toISOString();
489
489
  }
490
- var nn = new Q("tag:yaml.org,2002:timestamp", {
490
+ var nn = new X("tag:yaml.org,2002:timestamp", {
491
491
  kind: "scalar",
492
492
  resolve: Ei$1,
493
493
  construct: Ti,
@@ -497,7 +497,7 @@ var nn = new Q("tag:yaml.org,2002:timestamp", {
497
497
  function Oi(A) {
498
498
  return A === "<<" || A === null;
499
499
  }
500
- var rn = new Q("tag:yaml.org,2002:merge", {
500
+ var rn = new X("tag:yaml.org,2002:merge", {
501
501
  kind: "scalar",
502
502
  resolve: Oi
503
503
  }), tt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
@@ -529,7 +529,7 @@ function Ni(A) {
529
529
  function Ri(A) {
530
530
  return Object.prototype.toString.call(A) === "[object Uint8Array]";
531
531
  }
532
- var an = new Q("tag:yaml.org,2002:binary", {
532
+ var an = new X("tag:yaml.org,2002:binary", {
533
533
  kind: "scalar",
534
534
  resolve: $i,
535
535
  construct: Li,
@@ -561,7 +561,7 @@ function Mi$1(A) {
561
561
  function Di$1(A) {
562
562
  return A !== null ? A : [];
563
563
  }
564
- var on = new Q("tag:yaml.org,2002:omap", {
564
+ var on = new X("tag:yaml.org,2002:omap", {
565
565
  kind: "sequence",
566
566
  resolve: Mi$1,
567
567
  construct: Di$1
@@ -585,7 +585,7 @@ function qi(A) {
585
585
  E = w[g], C = Object.keys(E), I[g] = [C[0], E[C[0]]];
586
586
  return I;
587
587
  }
588
- var ln = new Q("tag:yaml.org,2002:pairs", {
588
+ var ln = new X("tag:yaml.org,2002:pairs", {
589
589
  kind: "sequence",
590
590
  resolve: ji,
591
591
  construct: qi
@@ -602,7 +602,7 @@ function Hi$1(A) {
602
602
  function Vi$1(A) {
603
603
  return A !== null ? A : {};
604
604
  }
605
- var sn = new Q("tag:yaml.org,2002:set", {
605
+ var sn = new X("tag:yaml.org,2002:set", {
606
606
  kind: "mapping",
607
607
  resolve: Hi$1,
608
608
  construct: Vi$1
@@ -656,9 +656,9 @@ const ts = /* @__PURE__ */ defineComponent({
656
656
  isAllowed: B.value
657
657
  }) : createCommentVNode("", !0);
658
658
  }
659
- }), Z$1 = [];
659
+ }), Q = [];
660
660
  for (let A = 0; A < 256; ++A)
661
- Z$1.push((A + 256).toString(16).slice(1));
661
+ Q.push((A + 256).toString(16).slice(1));
662
662
  typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
663
663
  var ye = Object.defineProperty, ke = (A, g, B) => g in A ? ye(A, g, { enumerable: !0, configurable: !0, writable: !0, value: B }) : A[g] = B, K = (A, g, B) => (ke(A, typeof g != "symbol" ? g + "" : g, B), B);
664
664
  const UNIQUE_ID_INJECTION_KEY = Symbol("The unique id that prefixes all identifiers within a single instance of the component"), TEXTAREA_ID_INJECTION_KEY = Symbol("Textarea unique id"), MODE_INJECTION_KEY = Symbol("Markdown component mode"), EDITABLE_INJECTION_KEY = Symbol("Is the markdown component editable"), FULLSCREEN_INJECTION_KEY = Symbol("Is the markdown component displaying fullscreen"), THEME_INJECTION_KEY = Symbol("Active theme, light or dark"), HTML_PREVIEW_INJECTION_KEY = Symbol("Is the html preview enabled");
@@ -838,14 +838,14 @@ function useScroll(A, g = {}) {
838
838
  x(void 0, W);
839
839
  }
840
840
  });
841
- function x(W, sA) {
842
- var EA, aA, QA;
841
+ function x(W, aA) {
842
+ var CA, QA, EA;
843
843
  if (!m)
844
844
  return;
845
- const CA = toValue(A);
846
- CA && ((QA = CA instanceof Document ? m.document.body : CA) == null || QA.scrollTo({
847
- top: (EA = toValue(sA)) != null ? EA : F.value,
848
- left: (aA = toValue(W)) != null ? aA : L.value,
845
+ const cA = toValue(A);
846
+ cA && ((EA = cA instanceof Document ? m.document.body : cA) == null || EA.scrollTo({
847
+ top: (CA = toValue(aA)) != null ? CA : F.value,
848
+ left: (QA = toValue(W)) != null ? QA : L.value,
849
849
  behavior: toValue(D)
850
850
  }));
851
851
  }
@@ -862,23 +862,23 @@ function useScroll(A, g = {}) {
862
862
  }), J = (W) => {
863
863
  H.value && (H.value = !1, U.left = !1, U.right = !1, U.top = !1, U.bottom = !1, C(W));
864
864
  }, q = useDebounceFn(J, B + E), O = (W) => {
865
- var sA;
865
+ var aA;
866
866
  if (!m)
867
867
  return;
868
- const EA = ((sA = W == null ? void 0 : W.document) == null ? void 0 : sA.documentElement) || (W == null ? void 0 : W.documentElement) || unrefElement(W), { display: aA, flexDirection: QA } = getComputedStyle(EA), CA = EA.scrollLeft;
869
- U.left = CA < k.value, U.right = CA > k.value;
870
- const uA = Math.abs(CA) <= (w.left || 0), tA = Math.abs(CA) + EA.clientWidth >= EA.scrollWidth - (w.right || 0) - ARRIVED_STATE_THRESHOLD_PIXELS;
871
- aA === "flex" && QA === "row-reverse" ? (Y.left = tA, Y.right = uA) : (Y.left = uA, Y.right = tA), k.value = CA;
872
- let X = EA.scrollTop;
873
- W === m.document && !X && (X = m.document.body.scrollTop), U.top = X < M.value, U.bottom = X > M.value;
874
- const V = Math.abs(X) <= (w.top || 0), iA = Math.abs(X) + EA.clientHeight >= EA.scrollHeight - (w.bottom || 0) - ARRIVED_STATE_THRESHOLD_PIXELS;
875
- aA === "flex" && QA === "column-reverse" ? (Y.top = iA, Y.bottom = V) : (Y.top = V, Y.bottom = iA), M.value = X;
868
+ const CA = ((aA = W == null ? void 0 : W.document) == null ? void 0 : aA.documentElement) || (W == null ? void 0 : W.documentElement) || unrefElement(W), { display: QA, flexDirection: EA } = getComputedStyle(CA), cA = CA.scrollLeft;
869
+ U.left = cA < k.value, U.right = cA > k.value;
870
+ const pA = Math.abs(cA) <= (w.left || 0), oA = Math.abs(cA) + CA.clientWidth >= CA.scrollWidth - (w.right || 0) - ARRIVED_STATE_THRESHOLD_PIXELS;
871
+ QA === "flex" && EA === "row-reverse" ? (Y.left = oA, Y.right = pA) : (Y.left = pA, Y.right = oA), k.value = cA;
872
+ let V = CA.scrollTop;
873
+ W === m.document && !V && (V = m.document.body.scrollTop), U.top = V < M.value, U.bottom = V > M.value;
874
+ const AA = Math.abs(V) <= (w.top || 0), nA = Math.abs(V) + CA.clientHeight >= CA.scrollHeight - (w.bottom || 0) - ARRIVED_STATE_THRESHOLD_PIXELS;
875
+ QA === "flex" && EA === "column-reverse" ? (Y.top = nA, Y.bottom = AA) : (Y.top = AA, Y.bottom = nA), M.value = V;
876
876
  }, j = (W) => {
877
- var sA;
877
+ var aA;
878
878
  if (!m)
879
879
  return;
880
- const EA = (sA = W.target.documentElement) != null ? sA : W.target;
881
- O(EA), H.value = !0, q(W), I(W);
880
+ const CA = (aA = W.target.documentElement) != null ? aA : W.target;
881
+ O(CA), H.value = !0, q(W), I(W);
882
882
  };
883
883
  return useEventListener(
884
884
  A,
@@ -4423,7 +4423,7 @@ class BasicScopeAttributes {
4423
4423
  K(this, "languageId"), K(this, "tokenType"), this.languageId = g, this.tokenType = B;
4424
4424
  }
4425
4425
  }
4426
- const VA = class Ce {
4426
+ const VA = class ce {
4427
4427
  constructor(g, B) {
4428
4428
  K(this, "_defaultAttributes"), K(this, "_embeddedLanguagesMatcher"), K(this, "_getBasicScopeAttributes", new CachedFn((E) => {
4429
4429
  const C = this._scopeToLanguage(E), I = this._toStandardTokenType(E);
@@ -4438,7 +4438,7 @@ const VA = class Ce {
4438
4438
  return this._defaultAttributes;
4439
4439
  }
4440
4440
  getBasicScopeAttributes(g) {
4441
- return g === null ? Ce._NULL_SCOPE_METADATA : this._getBasicScopeAttributes.get(g);
4441
+ return g === null ? ce._NULL_SCOPE_METADATA : this._getBasicScopeAttributes.get(g);
4442
4442
  }
4443
4443
  /**
4444
4444
  * Given a produced TM scope, return the language that token describes or null if unknown.
@@ -4448,7 +4448,7 @@ const VA = class Ce {
4448
4448
  return this._embeddedLanguagesMatcher.match(g) || 0;
4449
4449
  }
4450
4450
  _toStandardTokenType(g) {
4451
- const B = g.match(Ce.STANDARD_TOKEN_TYPE_REGEXP);
4451
+ const B = g.match(ce.STANDARD_TOKEN_TYPE_REGEXP);
4452
4452
  if (!B)
4453
4453
  return 8;
4454
4454
  switch (B[1]) {
@@ -4890,7 +4890,7 @@ class AttributedScopeStack {
4890
4890
  return C === g ? E.reverse() : void 0;
4891
4891
  }
4892
4892
  }
4893
- const zA = class ne {
4893
+ const zA = class ge {
4894
4894
  /**
4895
4895
  * Invariant:
4896
4896
  * ```
@@ -4906,7 +4906,7 @@ const zA = class ne {
4906
4906
  K(this, "parent"), K(this, "ruleId"), K(this, "beginRuleCapturedEOL"), K(this, "endRule"), K(this, "nameScopesList"), K(this, "contentNameScopesList"), K(this, "_stackElementBrand"), K(this, "_enterPos"), K(this, "_anchorPos"), K(this, "depth"), this.parent = g, this.ruleId = B, this.beginRuleCapturedEOL = I, this.endRule = w, this.nameScopesList = h, this.contentNameScopesList = D, this.depth = this.parent ? this.parent.depth + 1 : 1, this._enterPos = E, this._anchorPos = C;
4907
4907
  }
4908
4908
  equals(g) {
4909
- return g === null ? !1 : ne._equals(this, g);
4909
+ return g === null ? !1 : ge._equals(this, g);
4910
4910
  }
4911
4911
  static _equals(g, B) {
4912
4912
  return g === B ? !0 : this._structuralEquals(g, B) ? AttributedScopeStack.equals(g.contentNameScopesList, B.contentNameScopesList) : !1;
@@ -4931,7 +4931,7 @@ const zA = class ne {
4931
4931
  g._enterPos = -1, g._anchorPos = -1, g = g.parent;
4932
4932
  }
4933
4933
  reset() {
4934
- ne._reset(this);
4934
+ ge._reset(this);
4935
4935
  }
4936
4936
  pop() {
4937
4937
  return this.parent;
@@ -4940,7 +4940,7 @@ const zA = class ne {
4940
4940
  return this.parent ? this.parent : this;
4941
4941
  }
4942
4942
  push(g, B, E, C, I, w, h) {
4943
- return new ne(this, g, B, E, C, I, w, h);
4943
+ return new ge(this, g, B, E, C, I, w, h);
4944
4944
  }
4945
4945
  getEnterPos() {
4946
4946
  return this._enterPos;
@@ -4963,7 +4963,7 @@ const zA = class ne {
4963
4963
  return this.contentNameScopesList === g ? this : this.parent.push(this.ruleId, this._enterPos, this._anchorPos, this.beginRuleCapturedEOL, this.endRule, this.nameScopesList, g);
4964
4964
  }
4965
4965
  withEndRule(g) {
4966
- return this.endRule === g ? this : new ne(this.parent, this.ruleId, this._enterPos, this._anchorPos, this.beginRuleCapturedEOL, g, this.nameScopesList, this.contentNameScopesList);
4966
+ return this.endRule === g ? this : new ge(this.parent, this.ruleId, this._enterPos, this._anchorPos, this.beginRuleCapturedEOL, g, this.nameScopesList, this.contentNameScopesList);
4967
4967
  }
4968
4968
  // Used to warn of endless loops
4969
4969
  hasSameRuleAs(g) {
@@ -4987,7 +4987,7 @@ const zA = class ne {
4987
4987
  }
4988
4988
  static pushFrame(g, B) {
4989
4989
  const E = AttributedScopeStack.fromExtension((g == null ? void 0 : g.nameScopesList) ?? null, B.nameScopesList);
4990
- return new ne(g, B.ruleId, B.enterPos ?? -1, B.anchorPos ?? -1, B.beginRuleCapturedEOL, B.endRule, E, AttributedScopeStack.fromExtension(E, B.contentNameScopesList));
4990
+ return new ge(g, B.ruleId, B.enterPos ?? -1, B.anchorPos ?? -1, B.beginRuleCapturedEOL, B.endRule, E, AttributedScopeStack.fromExtension(E, B.contentNameScopesList));
4991
4991
  }
4992
4992
  };
4993
4993
  K(zA, "NULL", new zA(null, 0, 0, 0, !1, null, null, null));
@@ -5605,24 +5605,24 @@ function tokenizeWithTheme(A, g, B, E, C) {
5605
5605
  const j = J.tokens[2 * O], W = O + 1 < q ? J.tokens[2 * O + 2] : F.length;
5606
5606
  if (j === W)
5607
5607
  continue;
5608
- const sA = J.tokens[2 * O + 1], EA = StackElementMetadata.getForeground(sA), aA = applyColorReplacements(E[EA], I), QA = StackElementMetadata.getFontStyle(sA), CA = {
5608
+ const aA = J.tokens[2 * O + 1], CA = StackElementMetadata.getForeground(aA), QA = applyColorReplacements(E[CA], I), EA = StackElementMetadata.getFontStyle(aA), cA = {
5609
5609
  content: F.substring(j, W),
5610
5610
  offset: x + j,
5611
- color: aA,
5612
- fontStyle: QA
5611
+ color: QA,
5612
+ fontStyle: EA
5613
5613
  };
5614
5614
  if (C.includeExplanation) {
5615
- CA.explanation = [];
5616
- let uA = 0;
5617
- for (; j + uA < W; ) {
5618
- const tA = Y[U], X = F.substring(tA.startIndex, tA.endIndex);
5619
- uA += X.length, CA.explanation.push({
5620
- content: X,
5621
- scopes: explainThemeScopes(B, tA.scopes)
5615
+ cA.explanation = [];
5616
+ let pA = 0;
5617
+ for (; j + pA < W; ) {
5618
+ const oA = Y[U], V = F.substring(oA.startIndex, oA.endIndex);
5619
+ pA += V.length, cA.explanation.push({
5620
+ content: V,
5621
+ scopes: explainThemeScopes(B, oA.scopes)
5622
5622
  }), U += 1;
5623
5623
  }
5624
5624
  }
5625
- y.push(CA);
5625
+ y.push(cA);
5626
5626
  }
5627
5627
  k.push(y), y = [], m = J.ruleStack;
5628
5628
  }
@@ -8086,13 +8086,13 @@ class UtfString {
8086
8086
  return g.HEAPU8.set(this.utf8Value, B), B;
8087
8087
  }
8088
8088
  }
8089
- const PA = class JA {
8089
+ const PA = class qA {
8090
8090
  constructor(g) {
8091
- if (K(this, "id", ++JA.LAST_ID), K(this, "_onigBinding"), K(this, "content"), K(this, "utf16Length"), K(this, "utf8Length"), K(this, "utf16OffsetToUtf8"), K(this, "utf8OffsetToUtf16"), K(this, "ptr"), !onigBinding)
8091
+ if (K(this, "id", ++qA.LAST_ID), K(this, "_onigBinding"), K(this, "content"), K(this, "utf16Length"), K(this, "utf8Length"), K(this, "utf16OffsetToUtf8"), K(this, "utf8OffsetToUtf16"), K(this, "ptr"), !onigBinding)
8092
8092
  throw new ShikiError("Must invoke loadWasm first.");
8093
8093
  this._onigBinding = onigBinding, this.content = g;
8094
8094
  const B = new UtfString(g);
8095
- this.utf16Length = B.utf16Length, this.utf8Length = B.utf8Length, this.utf16OffsetToUtf8 = B.utf16OffsetToUtf8, this.utf8OffsetToUtf16 = B.utf8OffsetToUtf16, this.utf8Length < 1e4 && !JA._sharedPtrInUse ? (JA._sharedPtr || (JA._sharedPtr = onigBinding.omalloc(1e4)), JA._sharedPtrInUse = !0, onigBinding.HEAPU8.set(B.utf8Value, JA._sharedPtr), this.ptr = JA._sharedPtr) : this.ptr = B.createString(onigBinding);
8095
+ this.utf16Length = B.utf16Length, this.utf8Length = B.utf8Length, this.utf16OffsetToUtf8 = B.utf16OffsetToUtf8, this.utf8OffsetToUtf16 = B.utf8OffsetToUtf16, this.utf8Length < 1e4 && !qA._sharedPtrInUse ? (qA._sharedPtr || (qA._sharedPtr = onigBinding.omalloc(1e4)), qA._sharedPtrInUse = !0, onigBinding.HEAPU8.set(B.utf8Value, qA._sharedPtr), this.ptr = qA._sharedPtr) : this.ptr = B.createString(onigBinding);
8096
8096
  }
8097
8097
  convertUtf8OffsetToUtf16(g) {
8098
8098
  return this.utf8OffsetToUtf16 ? g < 0 ? 0 : g > this.utf8Length ? this.utf16Length : this.utf8OffsetToUtf16[g] : g;
@@ -8101,7 +8101,7 @@ const PA = class JA {
8101
8101
  return this.utf16OffsetToUtf8 ? g < 0 ? 0 : g > this.utf16Length ? this.utf8Length : this.utf16OffsetToUtf8[g] : g;
8102
8102
  }
8103
8103
  dispose() {
8104
- this.ptr === JA._sharedPtr ? JA._sharedPtrInUse = !1 : this._onigBinding.ofree(this.ptr);
8104
+ this.ptr === qA._sharedPtr ? qA._sharedPtrInUse = !1 : this._onigBinding.ofree(this.ptr);
8105
8105
  }
8106
8106
  };
8107
8107
  K(PA, "LAST_ID", 0), K(PA, "_sharedPtr", 0), // a pointer to a string of 10000 bytes
@@ -10083,16 +10083,16 @@ function blockquote(A, g, B, E) {
10083
10083
  if (A.src.charCodeAt(C++) === 62 && !J) {
10084
10084
  let O = A.sCount[F] + 1, j, W;
10085
10085
  A.src.charCodeAt(C) === 32 ? (C++, O++, W = !1, j = !0) : A.src.charCodeAt(C) === 9 ? (j = !0, (A.bsCount[F] + O) % 4 === 3 ? (C++, O++, W = !1) : W = !0) : j = !1;
10086
- let sA = O;
10086
+ let aA = O;
10087
10087
  for (h.push(A.bMarks[F]), A.bMarks[F] = C; C < I; ) {
10088
- const EA = A.src.charCodeAt(C);
10089
- if (isSpace(EA))
10090
- EA === 9 ? sA += 4 - (sA + A.bsCount[F] + (W ? 1 : 0)) % 4 : sA++;
10088
+ const CA = A.src.charCodeAt(C);
10089
+ if (isSpace(CA))
10090
+ CA === 9 ? aA += 4 - (aA + A.bsCount[F] + (W ? 1 : 0)) % 4 : aA++;
10091
10091
  else
10092
10092
  break;
10093
10093
  C++;
10094
10094
  }
10095
- L = C >= I, D.push(A.bsCount[F]), A.bsCount[F] = A.sCount[F] + 1 + (j ? 1 : 0), m.push(A.sCount[F]), A.sCount[F] = sA - O, y.push(A.tShift[F]), A.tShift[F] = C - A.bMarks[F];
10095
+ L = C >= I, D.push(A.bsCount[F]), A.bsCount[F] = A.sCount[F] + 1 + (j ? 1 : 0), m.push(A.sCount[F]), A.sCount[F] = aA - O, y.push(A.tShift[F]), A.tShift[F] = C - A.bMarks[F];
10096
10096
  continue;
10097
10097
  }
10098
10098
  if (L)
@@ -10213,10 +10213,10 @@ function list(A, g, B, E) {
10213
10213
  const q = A.sCount[D] + L - (A.bMarks[D] + A.tShift[D]);
10214
10214
  let O = q;
10215
10215
  for (; I < C; ) {
10216
- const X = A.src.charCodeAt(I);
10217
- if (X === 9)
10216
+ const V = A.src.charCodeAt(I);
10217
+ if (V === 9)
10218
10218
  O += 4 - (O + A.bsCount[D]) % 4;
10219
- else if (X === 32)
10219
+ else if (V === 32)
10220
10220
  O++;
10221
10221
  else
10222
10222
  break;
@@ -10225,20 +10225,20 @@ function list(A, g, B, E) {
10225
10225
  const j = I;
10226
10226
  let W;
10227
10227
  j >= C ? W = 1 : W = O - q, W > 4 && (W = 1);
10228
- const sA = q + W;
10228
+ const aA = q + W;
10229
10229
  h = A.push("list_item_open", "li", 1), h.markup = String.fromCharCode(F);
10230
- const EA = [D, 0];
10231
- h.map = EA, k && (h.info = A.src.slice(w, L - 1));
10232
- const aA = A.tight, QA = A.tShift[D], CA = A.sCount[D], uA = A.listIndent;
10233
- if (A.listIndent = A.blkIndent, A.blkIndent = sA, A.tight = !0, A.tShift[D] = j - A.bMarks[D], A.sCount[D] = O, j >= C && A.isEmpty(D + 1) ? A.line = Math.min(A.line + 2, B) : A.md.block.tokenize(A, D, B, !0), (!A.tight || Y) && (m = !1), Y = A.line - D > 1 && A.isEmpty(A.line - 1), A.blkIndent = A.listIndent, A.listIndent = uA, A.tShift[D] = QA, A.sCount[D] = CA, A.tight = aA, h = A.push("list_item_close", "li", -1), h.markup = String.fromCharCode(F), D = A.line, EA[1] = D, D >= B || A.sCount[D] < A.blkIndent || A.sCount[D] - A.blkIndent >= 4)
10230
+ const CA = [D, 0];
10231
+ h.map = CA, k && (h.info = A.src.slice(w, L - 1));
10232
+ const QA = A.tight, EA = A.tShift[D], cA = A.sCount[D], pA = A.listIndent;
10233
+ if (A.listIndent = A.blkIndent, A.blkIndent = aA, A.tight = !0, A.tShift[D] = j - A.bMarks[D], A.sCount[D] = O, j >= C && A.isEmpty(D + 1) ? A.line = Math.min(A.line + 2, B) : A.md.block.tokenize(A, D, B, !0), (!A.tight || Y) && (m = !1), Y = A.line - D > 1 && A.isEmpty(A.line - 1), A.blkIndent = A.listIndent, A.listIndent = pA, A.tShift[D] = EA, A.sCount[D] = cA, A.tight = QA, h = A.push("list_item_close", "li", -1), h.markup = String.fromCharCode(F), D = A.line, CA[1] = D, D >= B || A.sCount[D] < A.blkIndent || A.sCount[D] - A.blkIndent >= 4)
10234
10234
  break;
10235
- let tA = !1;
10236
- for (let X = 0, V = U.length; X < V; X++)
10237
- if (U[X](A, D, B, !0)) {
10238
- tA = !0;
10235
+ let oA = !1;
10236
+ for (let V = 0, AA = U.length; V < AA; V++)
10237
+ if (U[V](A, D, B, !0)) {
10238
+ oA = !0;
10239
10239
  break;
10240
10240
  }
10241
- if (tA)
10241
+ if (oA)
10242
10242
  break;
10243
10243
  if (k) {
10244
10244
  if (L = skipOrderedListMarker(A, D), L < 0)
@@ -11771,15 +11771,15 @@ function abbr_plugin(A) {
11771
11771
  let O;
11772
11772
  for (; O = M.exec(J); ) {
11773
11773
  if (O.index > 0 || O[1].length > 0) {
11774
- const EA = new D.Token("text", "", 0);
11775
- EA.content = J.slice(U, O.index + O[1].length), q.push(EA);
11774
+ const CA = new D.Token("text", "", 0);
11775
+ CA.content = J.slice(U, O.index + O[1].length), q.push(CA);
11776
11776
  }
11777
11777
  const j = new D.Token("abbr_open", "abbr", 1);
11778
11778
  j.attrs = [["title", D.env.abbreviations[":" + O[2]]]], q.push(j);
11779
11779
  const W = new D.Token("text", "", 0);
11780
11780
  W.content = O[2], q.push(W);
11781
- const sA = new D.Token("abbr_close", "abbr", -1);
11782
- q.push(sA), M.lastIndex -= O[3].length, U = M.lastIndex;
11781
+ const aA = new D.Token("abbr_close", "abbr", -1);
11782
+ q.push(aA), M.lastIndex -= O[3].length, U = M.lastIndex;
11783
11783
  }
11784
11784
  if (q.length) {
11785
11785
  if (U < J.length) {
@@ -12490,18 +12490,18 @@ function deflist_plugin(A) {
12490
12490
  q.map = O;
12491
12491
  let j = y;
12492
12492
  const W = I.eMarks[H];
12493
- let sA = I.sCount[H] + y - (I.bMarks[H] + I.tShift[H]);
12493
+ let aA = I.sCount[H] + y - (I.bMarks[H] + I.tShift[H]);
12494
12494
  for (; j < W; ) {
12495
- const X = I.src.charCodeAt(j);
12496
- if (g(X))
12497
- X === 9 ? sA += 4 - sA % 4 : sA++;
12495
+ const V = I.src.charCodeAt(j);
12496
+ if (g(V))
12497
+ V === 9 ? aA += 4 - aA % 4 : aA++;
12498
12498
  else
12499
12499
  break;
12500
12500
  j++;
12501
12501
  }
12502
12502
  y = j;
12503
- const EA = I.tight, aA = I.ddIndent, QA = I.blkIndent, CA = I.tShift[H], uA = I.sCount[H], tA = I.parentType;
12504
- if (I.blkIndent = I.ddIndent = I.sCount[H] + 2, I.tShift[H] = y - I.bMarks[H], I.sCount[H] = sA, I.tight = !0, I.parentType = "deflist", I.md.block.tokenize(I, H, h, !0), (!I.tight || Y) && (M = !1), Y = I.line - H > 1 && I.isEmpty(I.line - 1), I.tShift[H] = CA, I.sCount[H] = uA, I.tight = EA, I.parentType = tA, I.blkIndent = QA, I.ddIndent = aA, I.push("dd_close", "dd", -1), O[1] = m = I.line, m >= h || I.sCount[m] < I.blkIndent)
12503
+ const CA = I.tight, QA = I.ddIndent, EA = I.blkIndent, cA = I.tShift[H], pA = I.sCount[H], oA = I.parentType;
12504
+ if (I.blkIndent = I.ddIndent = I.sCount[H] + 2, I.tShift[H] = y - I.bMarks[H], I.sCount[H] = aA, I.tight = !0, I.parentType = "deflist", I.md.block.tokenize(I, H, h, !0), (!I.tight || Y) && (M = !1), Y = I.line - H > 1 && I.isEmpty(I.line - 1), I.tShift[H] = cA, I.sCount[H] = pA, I.tight = CA, I.parentType = oA, I.blkIndent = EA, I.ddIndent = QA, I.push("dd_close", "dd", -1), O[1] = m = I.line, m >= h || I.sCount[m] < I.blkIndent)
12505
12505
  break A;
12506
12506
  if (y = B(I, m), y < 0)
12507
12507
  break;
@@ -16396,9 +16396,9 @@ function footnote_plugin(A) {
16396
16396
  const H = h.bMarks[D], Y = h.tShift[D], U = h.sCount[D], J = h.parentType, q = L, O = h.sCount[D] + L - (h.bMarks[D] + h.tShift[D]);
16397
16397
  let j = O;
16398
16398
  for (; L < M; ) {
16399
- const sA = h.src.charCodeAt(L);
16400
- if (B(sA))
16401
- sA === 9 ? j += 4 - j % 4 : j++;
16399
+ const aA = h.src.charCodeAt(L);
16400
+ if (B(aA))
16401
+ aA === 9 ? j += 4 - j % 4 : j++;
16402
16402
  else
16403
16403
  break;
16404
16404
  L++;
@@ -19499,7 +19499,7 @@ ieee754.write = function(A, g, B, E, C, I) {
19499
19499
  throw new TypeError(
19500
19500
  "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof N
19501
19501
  );
19502
- if (GA(N, ArrayBuffer) || N && GA(N.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (GA(N, SharedArrayBuffer) || N && GA(N.buffer, SharedArrayBuffer)))
19502
+ if (RA(N, ArrayBuffer) || N && RA(N.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (RA(N, SharedArrayBuffer) || N && RA(N.buffer, SharedArrayBuffer)))
19503
19503
  return x(N, _, S);
19504
19504
  if (typeof N == "number")
19505
19505
  throw new TypeError(
@@ -19555,7 +19555,7 @@ ieee754.write = function(A, g, B, E, C, I) {
19555
19555
  return S;
19556
19556
  }
19557
19557
  function F(N) {
19558
- if (GA(N, Uint8Array)) {
19558
+ if (RA(N, Uint8Array)) {
19559
19559
  const _ = new Uint8Array(N);
19560
19560
  return x(_.buffer, _.byteOffset, _.byteLength);
19561
19561
  }
@@ -19575,7 +19575,7 @@ ieee754.write = function(A, g, B, E, C, I) {
19575
19575
  return S.length === 0 || N.copy(S, 0, 0, _), S;
19576
19576
  }
19577
19577
  if (N.length !== void 0)
19578
- return typeof N.length != "number" || vA(N.length) ? w(0) : L(N);
19578
+ return typeof N.length != "number" || OA(N.length) ? w(0) : L(N);
19579
19579
  if (N.type === "Buffer" && Array.isArray(N.data))
19580
19580
  return L(N.data);
19581
19581
  }
@@ -19590,7 +19590,7 @@ ieee754.write = function(A, g, B, E, C, I) {
19590
19590
  h.isBuffer = function(N) {
19591
19591
  return N != null && N._isBuffer === !0 && N !== h.prototype;
19592
19592
  }, h.compare = function(N, _) {
19593
- if (GA(N, Uint8Array) && (N = h.from(N, N.offset, N.byteLength)), GA(_, Uint8Array) && (_ = h.from(_, _.offset, _.byteLength)), !h.isBuffer(N) || !h.isBuffer(_))
19593
+ if (RA(N, Uint8Array) && (N = h.from(N, N.offset, N.byteLength)), RA(_, Uint8Array) && (_ = h.from(_, _.offset, _.byteLength)), !h.isBuffer(N) || !h.isBuffer(_))
19594
19594
  throw new TypeError(
19595
19595
  'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
19596
19596
  );
@@ -19633,7 +19633,7 @@ ieee754.write = function(A, g, B, E, C, I) {
19633
19633
  let z = 0;
19634
19634
  for (S = 0; S < N.length; ++S) {
19635
19635
  let $ = N[S];
19636
- if (GA($, Uint8Array))
19636
+ if (RA($, Uint8Array))
19637
19637
  z + $.length > T.length ? (h.isBuffer($) || ($ = h.from($)), $.copy(T, z)) : Uint8Array.prototype.set.call(
19638
19638
  T,
19639
19639
  $,
@@ -19650,7 +19650,7 @@ ieee754.write = function(A, g, B, E, C, I) {
19650
19650
  function J(N, _) {
19651
19651
  if (h.isBuffer(N))
19652
19652
  return N.length;
19653
- if (ArrayBuffer.isView(N) || GA(N, ArrayBuffer))
19653
+ if (ArrayBuffer.isView(N) || RA(N, ArrayBuffer))
19654
19654
  return N.byteLength;
19655
19655
  if (typeof N != "string")
19656
19656
  throw new TypeError(
@@ -19668,7 +19668,7 @@ ieee754.write = function(A, g, B, E, C, I) {
19668
19668
  return S;
19669
19669
  case "utf8":
19670
19670
  case "utf-8":
19671
- return jA(N).length;
19671
+ return $A(N).length;
19672
19672
  case "ucs2":
19673
19673
  case "ucs-2":
19674
19674
  case "utf16le":
@@ -19677,10 +19677,10 @@ ieee754.write = function(A, g, B, E, C, I) {
19677
19677
  case "hex":
19678
19678
  return S >>> 1;
19679
19679
  case "base64":
19680
- return KA(N).length;
19680
+ return YA(N).length;
19681
19681
  default:
19682
19682
  if (z)
19683
- return T ? -1 : jA(N).length;
19683
+ return T ? -1 : $A(N).length;
19684
19684
  _ = ("" + _).toLowerCase(), z = !0;
19685
19685
  }
19686
19686
  }
@@ -19692,22 +19692,22 @@ ieee754.write = function(A, g, B, E, C, I) {
19692
19692
  for (N || (N = "utf8"); ; )
19693
19693
  switch (N) {
19694
19694
  case "hex":
19695
- return nA(this, _, S);
19695
+ return rA(this, _, S);
19696
19696
  case "utf8":
19697
19697
  case "utf-8":
19698
- return tA(this, _, S);
19698
+ return oA(this, _, S);
19699
19699
  case "ascii":
19700
- return iA(this, _, S);
19700
+ return nA(this, _, S);
19701
19701
  case "latin1":
19702
19702
  case "binary":
19703
- return AA(this, _, S);
19703
+ return eA(this, _, S);
19704
19704
  case "base64":
19705
- return uA(this, _, S);
19705
+ return pA(this, _, S);
19706
19706
  case "ucs2":
19707
19707
  case "ucs-2":
19708
19708
  case "utf16le":
19709
19709
  case "utf-16le":
19710
- return cA(this, _, S);
19710
+ return lA(this, _, S);
19711
19711
  default:
19712
19712
  if (T)
19713
19713
  throw new TypeError("Unknown encoding: " + N);
@@ -19742,7 +19742,7 @@ ieee754.write = function(A, g, B, E, C, I) {
19742
19742
  return this;
19743
19743
  }, h.prototype.toString = function() {
19744
19744
  const N = this.length;
19745
- return N === 0 ? "" : arguments.length === 0 ? tA(this, 0, N) : q.apply(this, arguments);
19745
+ return N === 0 ? "" : arguments.length === 0 ? oA(this, 0, N) : q.apply(this, arguments);
19746
19746
  }, h.prototype.toLocaleString = h.prototype.toString, h.prototype.equals = function(N) {
19747
19747
  if (!h.isBuffer(N))
19748
19748
  throw new TypeError("Argument must be a Buffer");
@@ -19752,7 +19752,7 @@ ieee754.write = function(A, g, B, E, C, I) {
19752
19752
  const _ = A.INSPECT_MAX_BYTES;
19753
19753
  return N = this.toString("hex", 0, _).replace(/(.{2})/g, "$1 ").trim(), this.length > _ && (N += " ... "), "<Buffer " + N + ">";
19754
19754
  }, E && (h.prototype[E] = h.prototype.inspect), h.prototype.compare = function(N, _, S, T, z) {
19755
- if (GA(N, Uint8Array) && (N = h.from(N, N.offset, N.byteLength)), !h.isBuffer(N))
19755
+ if (RA(N, Uint8Array) && (N = h.from(N, N.offset, N.byteLength)), !h.isBuffer(N))
19756
19756
  throw new TypeError(
19757
19757
  'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof N
19758
19758
  );
@@ -19766,19 +19766,19 @@ ieee754.write = function(A, g, B, E, C, I) {
19766
19766
  return 1;
19767
19767
  if (_ >>>= 0, S >>>= 0, T >>>= 0, z >>>= 0, this === N)
19768
19768
  return 0;
19769
- let $ = z - T, eA = S - _;
19770
- const DA = Math.min($, eA), LA = this.slice(T, z), wA = N.slice(_, S);
19771
- for (let mA = 0; mA < DA; ++mA)
19772
- if (LA[mA] !== wA[mA]) {
19773
- $ = LA[mA], eA = wA[mA];
19769
+ let $ = z - T, tA = S - _;
19770
+ const uA = Math.min($, tA), FA = this.slice(T, z), hA = N.slice(_, S);
19771
+ for (let yA = 0; yA < uA; ++yA)
19772
+ if (FA[yA] !== hA[yA]) {
19773
+ $ = FA[yA], tA = hA[yA];
19774
19774
  break;
19775
19775
  }
19776
- return $ < eA ? -1 : eA < $ ? 1 : 0;
19776
+ return $ < tA ? -1 : tA < $ ? 1 : 0;
19777
19777
  };
19778
19778
  function j(N, _, S, T, z) {
19779
19779
  if (N.length === 0)
19780
19780
  return -1;
19781
- if (typeof S == "string" ? (T = S, S = 0) : S > 2147483647 ? S = 2147483647 : S < -2147483648 && (S = -2147483648), S = +S, vA(S) && (S = z ? 0 : N.length - 1), S < 0 && (S = N.length + S), S >= N.length) {
19781
+ if (typeof S == "string" ? (T = S, S = 0) : S > 2147483647 ? S = 2147483647 : S < -2147483648 && (S = -2147483648), S = +S, OA(S) && (S = z ? 0 : N.length - 1), S < 0 && (S = N.length + S), S >= N.length) {
19782
19782
  if (z)
19783
19783
  return -1;
19784
19784
  S = N.length - 1;
@@ -19794,34 +19794,34 @@ ieee754.write = function(A, g, B, E, C, I) {
19794
19794
  throw new TypeError("val must be string, number or Buffer");
19795
19795
  }
19796
19796
  function W(N, _, S, T, z) {
19797
- let $ = 1, eA = N.length, DA = _.length;
19797
+ let $ = 1, tA = N.length, uA = _.length;
19798
19798
  if (T !== void 0 && (T = String(T).toLowerCase(), T === "ucs2" || T === "ucs-2" || T === "utf16le" || T === "utf-16le")) {
19799
19799
  if (N.length < 2 || _.length < 2)
19800
19800
  return -1;
19801
- $ = 2, eA /= 2, DA /= 2, S /= 2;
19801
+ $ = 2, tA /= 2, uA /= 2, S /= 2;
19802
19802
  }
19803
- function LA(mA, NA) {
19804
- return $ === 1 ? mA[NA] : mA.readUInt16BE(NA * $);
19803
+ function FA(yA, LA) {
19804
+ return $ === 1 ? yA[LA] : yA.readUInt16BE(LA * $);
19805
19805
  }
19806
- let wA;
19806
+ let hA;
19807
19807
  if (z) {
19808
- let mA = -1;
19809
- for (wA = S; wA < eA; wA++)
19810
- if (LA(N, wA) === LA(_, mA === -1 ? 0 : wA - mA)) {
19811
- if (mA === -1 && (mA = wA), wA - mA + 1 === DA)
19812
- return mA * $;
19808
+ let yA = -1;
19809
+ for (hA = S; hA < tA; hA++)
19810
+ if (FA(N, hA) === FA(_, yA === -1 ? 0 : hA - yA)) {
19811
+ if (yA === -1 && (yA = hA), hA - yA + 1 === uA)
19812
+ return yA * $;
19813
19813
  } else
19814
- mA !== -1 && (wA -= wA - mA), mA = -1;
19814
+ yA !== -1 && (hA -= hA - yA), yA = -1;
19815
19815
  } else
19816
- for (S + DA > eA && (S = eA - DA), wA = S; wA >= 0; wA--) {
19817
- let mA = !0;
19818
- for (let NA = 0; NA < DA; NA++)
19819
- if (LA(N, wA + NA) !== LA(_, NA)) {
19820
- mA = !1;
19816
+ for (S + uA > tA && (S = tA - uA), hA = S; hA >= 0; hA--) {
19817
+ let yA = !0;
19818
+ for (let LA = 0; LA < uA; LA++)
19819
+ if (FA(N, hA + LA) !== FA(_, LA)) {
19820
+ yA = !1;
19821
19821
  break;
19822
19822
  }
19823
- if (mA)
19824
- return wA;
19823
+ if (yA)
19824
+ return hA;
19825
19825
  }
19826
19826
  return -1;
19827
19827
  }
@@ -19832,32 +19832,32 @@ ieee754.write = function(A, g, B, E, C, I) {
19832
19832
  }, h.prototype.lastIndexOf = function(N, _, S) {
19833
19833
  return j(this, N, _, S, !1);
19834
19834
  };
19835
- function sA(N, _, S, T) {
19835
+ function aA(N, _, S, T) {
19836
19836
  S = Number(S) || 0;
19837
19837
  const z = N.length - S;
19838
19838
  T ? (T = Number(T), T > z && (T = z)) : T = z;
19839
19839
  const $ = _.length;
19840
19840
  T > $ / 2 && (T = $ / 2);
19841
- let eA;
19842
- for (eA = 0; eA < T; ++eA) {
19843
- const DA = parseInt(_.substr(eA * 2, 2), 16);
19844
- if (vA(DA))
19845
- return eA;
19846
- N[S + eA] = DA;
19841
+ let tA;
19842
+ for (tA = 0; tA < T; ++tA) {
19843
+ const uA = parseInt(_.substr(tA * 2, 2), 16);
19844
+ if (OA(uA))
19845
+ return tA;
19846
+ N[S + tA] = uA;
19847
19847
  }
19848
- return eA;
19849
- }
19850
- function EA(N, _, S, T) {
19851
- return TA(jA(_, N.length - S), N, S, T);
19848
+ return tA;
19852
19849
  }
19853
- function aA(N, _, S, T) {
19854
- return TA(Ae(_), N, S, T);
19850
+ function CA(N, _, S, T) {
19851
+ return vA($A(_, N.length - S), N, S, T);
19855
19852
  }
19856
19853
  function QA(N, _, S, T) {
19857
- return TA(KA(_), N, S, T);
19854
+ return vA(ee(_), N, S, T);
19858
19855
  }
19859
- function CA(N, _, S, T) {
19860
- return TA(te(_, N.length - S), N, S, T);
19856
+ function EA(N, _, S, T) {
19857
+ return vA(YA(_), N, S, T);
19858
+ }
19859
+ function cA(N, _, S, T) {
19860
+ return vA(oe(_, N.length - S), N, S, T);
19861
19861
  }
19862
19862
  h.prototype.write = function(N, _, S, T) {
19863
19863
  if (_ === void 0)
@@ -19878,21 +19878,21 @@ ieee754.write = function(A, g, B, E, C, I) {
19878
19878
  for (; ; )
19879
19879
  switch (T) {
19880
19880
  case "hex":
19881
- return sA(this, N, _, S);
19881
+ return aA(this, N, _, S);
19882
19882
  case "utf8":
19883
19883
  case "utf-8":
19884
- return EA(this, N, _, S);
19884
+ return CA(this, N, _, S);
19885
19885
  case "ascii":
19886
19886
  case "latin1":
19887
19887
  case "binary":
19888
- return aA(this, N, _, S);
19889
- case "base64":
19890
19888
  return QA(this, N, _, S);
19889
+ case "base64":
19890
+ return EA(this, N, _, S);
19891
19891
  case "ucs2":
19892
19892
  case "ucs-2":
19893
19893
  case "utf16le":
19894
19894
  case "utf-16le":
19895
- return CA(this, N, _, S);
19895
+ return cA(this, N, _, S);
19896
19896
  default:
19897
19897
  if ($)
19898
19898
  throw new TypeError("Unknown encoding: " + T);
@@ -19904,72 +19904,72 @@ ieee754.write = function(A, g, B, E, C, I) {
19904
19904
  data: Array.prototype.slice.call(this._arr || this, 0)
19905
19905
  };
19906
19906
  };
19907
- function uA(N, _, S) {
19907
+ function pA(N, _, S) {
19908
19908
  return _ === 0 && S === N.length ? g.fromByteArray(N) : g.fromByteArray(N.slice(_, S));
19909
19909
  }
19910
- function tA(N, _, S) {
19910
+ function oA(N, _, S) {
19911
19911
  S = Math.min(N.length, S);
19912
19912
  const T = [];
19913
19913
  let z = _;
19914
19914
  for (; z < S; ) {
19915
19915
  const $ = N[z];
19916
- let eA = null, DA = $ > 239 ? 4 : $ > 223 ? 3 : $ > 191 ? 2 : 1;
19917
- if (z + DA <= S) {
19918
- let LA, wA, mA, NA;
19919
- switch (DA) {
19916
+ let tA = null, uA = $ > 239 ? 4 : $ > 223 ? 3 : $ > 191 ? 2 : 1;
19917
+ if (z + uA <= S) {
19918
+ let FA, hA, yA, LA;
19919
+ switch (uA) {
19920
19920
  case 1:
19921
- $ < 128 && (eA = $);
19921
+ $ < 128 && (tA = $);
19922
19922
  break;
19923
19923
  case 2:
19924
- LA = N[z + 1], (LA & 192) === 128 && (NA = ($ & 31) << 6 | LA & 63, NA > 127 && (eA = NA));
19924
+ FA = N[z + 1], (FA & 192) === 128 && (LA = ($ & 31) << 6 | FA & 63, LA > 127 && (tA = LA));
19925
19925
  break;
19926
19926
  case 3:
19927
- LA = N[z + 1], wA = N[z + 2], (LA & 192) === 128 && (wA & 192) === 128 && (NA = ($ & 15) << 12 | (LA & 63) << 6 | wA & 63, NA > 2047 && (NA < 55296 || NA > 57343) && (eA = NA));
19927
+ FA = N[z + 1], hA = N[z + 2], (FA & 192) === 128 && (hA & 192) === 128 && (LA = ($ & 15) << 12 | (FA & 63) << 6 | hA & 63, LA > 2047 && (LA < 55296 || LA > 57343) && (tA = LA));
19928
19928
  break;
19929
19929
  case 4:
19930
- LA = N[z + 1], wA = N[z + 2], mA = N[z + 3], (LA & 192) === 128 && (wA & 192) === 128 && (mA & 192) === 128 && (NA = ($ & 15) << 18 | (LA & 63) << 12 | (wA & 63) << 6 | mA & 63, NA > 65535 && NA < 1114112 && (eA = NA));
19930
+ FA = N[z + 1], hA = N[z + 2], yA = N[z + 3], (FA & 192) === 128 && (hA & 192) === 128 && (yA & 192) === 128 && (LA = ($ & 15) << 18 | (FA & 63) << 12 | (hA & 63) << 6 | yA & 63, LA > 65535 && LA < 1114112 && (tA = LA));
19931
19931
  }
19932
19932
  }
19933
- eA === null ? (eA = 65533, DA = 1) : eA > 65535 && (eA -= 65536, T.push(eA >>> 10 & 1023 | 55296), eA = 56320 | eA & 1023), T.push(eA), z += DA;
19933
+ tA === null ? (tA = 65533, uA = 1) : tA > 65535 && (tA -= 65536, T.push(tA >>> 10 & 1023 | 55296), tA = 56320 | tA & 1023), T.push(tA), z += uA;
19934
19934
  }
19935
- return V(T);
19935
+ return AA(T);
19936
19936
  }
19937
- const X = 4096;
19938
- function V(N) {
19937
+ const V = 4096;
19938
+ function AA(N) {
19939
19939
  const _ = N.length;
19940
- if (_ <= X)
19940
+ if (_ <= V)
19941
19941
  return String.fromCharCode.apply(String, N);
19942
19942
  let S = "", T = 0;
19943
19943
  for (; T < _; )
19944
19944
  S += String.fromCharCode.apply(
19945
19945
  String,
19946
- N.slice(T, T += X)
19946
+ N.slice(T, T += V)
19947
19947
  );
19948
19948
  return S;
19949
19949
  }
19950
- function iA(N, _, S) {
19950
+ function nA(N, _, S) {
19951
19951
  let T = "";
19952
19952
  S = Math.min(N.length, S);
19953
19953
  for (let z = _; z < S; ++z)
19954
19954
  T += String.fromCharCode(N[z] & 127);
19955
19955
  return T;
19956
19956
  }
19957
- function AA(N, _, S) {
19957
+ function eA(N, _, S) {
19958
19958
  let T = "";
19959
19959
  S = Math.min(N.length, S);
19960
19960
  for (let z = _; z < S; ++z)
19961
19961
  T += String.fromCharCode(N[z]);
19962
19962
  return T;
19963
19963
  }
19964
- function nA(N, _, S) {
19964
+ function rA(N, _, S) {
19965
19965
  const T = N.length;
19966
19966
  (!_ || _ < 0) && (_ = 0), (!S || S < 0 || S > T) && (S = T);
19967
19967
  let z = "";
19968
19968
  for (let $ = _; $ < S; ++$)
19969
- z += ge[N[$]];
19969
+ z += Be[N[$]];
19970
19970
  return z;
19971
19971
  }
19972
- function cA(N, _, S) {
19972
+ function lA(N, _, S) {
19973
19973
  const T = N.slice(_, S);
19974
19974
  let z = "";
19975
19975
  for (let $ = 0; $ < T.length - 1; $ += 2)
@@ -19982,95 +19982,95 @@ ieee754.write = function(A, g, B, E, C, I) {
19982
19982
  const T = this.subarray(N, _);
19983
19983
  return Object.setPrototypeOf(T, h.prototype), T;
19984
19984
  };
19985
- function rA(N, _, S) {
19985
+ function gA(N, _, S) {
19986
19986
  if (N % 1 !== 0 || N < 0)
19987
19987
  throw new RangeError("offset is not uint");
19988
19988
  if (N + _ > S)
19989
19989
  throw new RangeError("Trying to access beyond buffer length");
19990
19990
  }
19991
19991
  h.prototype.readUintLE = h.prototype.readUIntLE = function(N, _, S) {
19992
- N = N >>> 0, _ = _ >>> 0, S || rA(N, _, this.length);
19992
+ N = N >>> 0, _ = _ >>> 0, S || gA(N, _, this.length);
19993
19993
  let T = this[N], z = 1, $ = 0;
19994
19994
  for (; ++$ < _ && (z *= 256); )
19995
19995
  T += this[N + $] * z;
19996
19996
  return T;
19997
19997
  }, h.prototype.readUintBE = h.prototype.readUIntBE = function(N, _, S) {
19998
- N = N >>> 0, _ = _ >>> 0, S || rA(N, _, this.length);
19998
+ N = N >>> 0, _ = _ >>> 0, S || gA(N, _, this.length);
19999
19999
  let T = this[N + --_], z = 1;
20000
20000
  for (; _ > 0 && (z *= 256); )
20001
20001
  T += this[N + --_] * z;
20002
20002
  return T;
20003
20003
  }, h.prototype.readUint8 = h.prototype.readUInt8 = function(N, _) {
20004
- return N = N >>> 0, _ || rA(N, 1, this.length), this[N];
20004
+ return N = N >>> 0, _ || gA(N, 1, this.length), this[N];
20005
20005
  }, h.prototype.readUint16LE = h.prototype.readUInt16LE = function(N, _) {
20006
- return N = N >>> 0, _ || rA(N, 2, this.length), this[N] | this[N + 1] << 8;
20006
+ return N = N >>> 0, _ || gA(N, 2, this.length), this[N] | this[N + 1] << 8;
20007
20007
  }, h.prototype.readUint16BE = h.prototype.readUInt16BE = function(N, _) {
20008
- return N = N >>> 0, _ || rA(N, 2, this.length), this[N] << 8 | this[N + 1];
20008
+ return N = N >>> 0, _ || gA(N, 2, this.length), this[N] << 8 | this[N + 1];
20009
20009
  }, h.prototype.readUint32LE = h.prototype.readUInt32LE = function(N, _) {
20010
- return N = N >>> 0, _ || rA(N, 4, this.length), (this[N] | this[N + 1] << 8 | this[N + 2] << 16) + this[N + 3] * 16777216;
20010
+ return N = N >>> 0, _ || gA(N, 4, this.length), (this[N] | this[N + 1] << 8 | this[N + 2] << 16) + this[N + 3] * 16777216;
20011
20011
  }, h.prototype.readUint32BE = h.prototype.readUInt32BE = function(N, _) {
20012
- return N = N >>> 0, _ || rA(N, 4, this.length), this[N] * 16777216 + (this[N + 1] << 16 | this[N + 2] << 8 | this[N + 3]);
20013
- }, h.prototype.readBigUInt64LE = YA(function(N) {
20014
- N = N >>> 0, dA(N, "offset");
20012
+ return N = N >>> 0, _ || gA(N, 4, this.length), this[N] * 16777216 + (this[N + 1] << 16 | this[N + 2] << 8 | this[N + 3]);
20013
+ }, h.prototype.readBigUInt64LE = TA(function(N) {
20014
+ N = N >>> 0, fA(N, "offset");
20015
20015
  const _ = this[N], S = this[N + 7];
20016
- (_ === void 0 || S === void 0) && kA(N, this.length - 8);
20016
+ (_ === void 0 || S === void 0) && MA(N, this.length - 8);
20017
20017
  const T = _ + this[++N] * 2 ** 8 + this[++N] * 2 ** 16 + this[++N] * 2 ** 24, z = this[++N] + this[++N] * 2 ** 8 + this[++N] * 2 ** 16 + S * 2 ** 24;
20018
20018
  return BigInt(T) + (BigInt(z) << BigInt(32));
20019
- }), h.prototype.readBigUInt64BE = YA(function(N) {
20020
- N = N >>> 0, dA(N, "offset");
20019
+ }), h.prototype.readBigUInt64BE = TA(function(N) {
20020
+ N = N >>> 0, fA(N, "offset");
20021
20021
  const _ = this[N], S = this[N + 7];
20022
- (_ === void 0 || S === void 0) && kA(N, this.length - 8);
20022
+ (_ === void 0 || S === void 0) && MA(N, this.length - 8);
20023
20023
  const T = _ * 2 ** 24 + this[++N] * 2 ** 16 + this[++N] * 2 ** 8 + this[++N], z = this[++N] * 2 ** 24 + this[++N] * 2 ** 16 + this[++N] * 2 ** 8 + S;
20024
20024
  return (BigInt(T) << BigInt(32)) + BigInt(z);
20025
20025
  }), h.prototype.readIntLE = function(N, _, S) {
20026
- N = N >>> 0, _ = _ >>> 0, S || rA(N, _, this.length);
20026
+ N = N >>> 0, _ = _ >>> 0, S || gA(N, _, this.length);
20027
20027
  let T = this[N], z = 1, $ = 0;
20028
20028
  for (; ++$ < _ && (z *= 256); )
20029
20029
  T += this[N + $] * z;
20030
20030
  return z *= 128, T >= z && (T -= Math.pow(2, 8 * _)), T;
20031
20031
  }, h.prototype.readIntBE = function(N, _, S) {
20032
- N = N >>> 0, _ = _ >>> 0, S || rA(N, _, this.length);
20032
+ N = N >>> 0, _ = _ >>> 0, S || gA(N, _, this.length);
20033
20033
  let T = _, z = 1, $ = this[N + --T];
20034
20034
  for (; T > 0 && (z *= 256); )
20035
20035
  $ += this[N + --T] * z;
20036
20036
  return z *= 128, $ >= z && ($ -= Math.pow(2, 8 * _)), $;
20037
20037
  }, h.prototype.readInt8 = function(N, _) {
20038
- return N = N >>> 0, _ || rA(N, 1, this.length), this[N] & 128 ? (255 - this[N] + 1) * -1 : this[N];
20038
+ return N = N >>> 0, _ || gA(N, 1, this.length), this[N] & 128 ? (255 - this[N] + 1) * -1 : this[N];
20039
20039
  }, h.prototype.readInt16LE = function(N, _) {
20040
- N = N >>> 0, _ || rA(N, 2, this.length);
20040
+ N = N >>> 0, _ || gA(N, 2, this.length);
20041
20041
  const S = this[N] | this[N + 1] << 8;
20042
20042
  return S & 32768 ? S | 4294901760 : S;
20043
20043
  }, h.prototype.readInt16BE = function(N, _) {
20044
- N = N >>> 0, _ || rA(N, 2, this.length);
20044
+ N = N >>> 0, _ || gA(N, 2, this.length);
20045
20045
  const S = this[N + 1] | this[N] << 8;
20046
20046
  return S & 32768 ? S | 4294901760 : S;
20047
20047
  }, h.prototype.readInt32LE = function(N, _) {
20048
- return N = N >>> 0, _ || rA(N, 4, this.length), this[N] | this[N + 1] << 8 | this[N + 2] << 16 | this[N + 3] << 24;
20048
+ return N = N >>> 0, _ || gA(N, 4, this.length), this[N] | this[N + 1] << 8 | this[N + 2] << 16 | this[N + 3] << 24;
20049
20049
  }, h.prototype.readInt32BE = function(N, _) {
20050
- return N = N >>> 0, _ || rA(N, 4, this.length), this[N] << 24 | this[N + 1] << 16 | this[N + 2] << 8 | this[N + 3];
20051
- }, h.prototype.readBigInt64LE = YA(function(N) {
20052
- N = N >>> 0, dA(N, "offset");
20050
+ return N = N >>> 0, _ || gA(N, 4, this.length), this[N] << 24 | this[N + 1] << 16 | this[N + 2] << 8 | this[N + 3];
20051
+ }, h.prototype.readBigInt64LE = TA(function(N) {
20052
+ N = N >>> 0, fA(N, "offset");
20053
20053
  const _ = this[N], S = this[N + 7];
20054
- (_ === void 0 || S === void 0) && kA(N, this.length - 8);
20054
+ (_ === void 0 || S === void 0) && MA(N, this.length - 8);
20055
20055
  const T = this[N + 4] + this[N + 5] * 2 ** 8 + this[N + 6] * 2 ** 16 + (S << 24);
20056
20056
  return (BigInt(T) << BigInt(32)) + BigInt(_ + this[++N] * 2 ** 8 + this[++N] * 2 ** 16 + this[++N] * 2 ** 24);
20057
- }), h.prototype.readBigInt64BE = YA(function(N) {
20058
- N = N >>> 0, dA(N, "offset");
20057
+ }), h.prototype.readBigInt64BE = TA(function(N) {
20058
+ N = N >>> 0, fA(N, "offset");
20059
20059
  const _ = this[N], S = this[N + 7];
20060
- (_ === void 0 || S === void 0) && kA(N, this.length - 8);
20060
+ (_ === void 0 || S === void 0) && MA(N, this.length - 8);
20061
20061
  const T = (_ << 24) + // Overflow
20062
20062
  this[++N] * 2 ** 16 + this[++N] * 2 ** 8 + this[++N];
20063
20063
  return (BigInt(T) << BigInt(32)) + BigInt(this[++N] * 2 ** 24 + this[++N] * 2 ** 16 + this[++N] * 2 ** 8 + S);
20064
20064
  }), h.prototype.readFloatLE = function(N, _) {
20065
- return N = N >>> 0, _ || rA(N, 4, this.length), B.read(this, N, !0, 23, 4);
20065
+ return N = N >>> 0, _ || gA(N, 4, this.length), B.read(this, N, !0, 23, 4);
20066
20066
  }, h.prototype.readFloatBE = function(N, _) {
20067
- return N = N >>> 0, _ || rA(N, 4, this.length), B.read(this, N, !1, 23, 4);
20067
+ return N = N >>> 0, _ || gA(N, 4, this.length), B.read(this, N, !1, 23, 4);
20068
20068
  }, h.prototype.readDoubleLE = function(N, _) {
20069
- return N = N >>> 0, _ || rA(N, 8, this.length), B.read(this, N, !0, 52, 8);
20069
+ return N = N >>> 0, _ || gA(N, 8, this.length), B.read(this, N, !0, 52, 8);
20070
20070
  }, h.prototype.readDoubleBE = function(N, _) {
20071
- return N = N >>> 0, _ || rA(N, 8, this.length), B.read(this, N, !1, 52, 8);
20071
+ return N = N >>> 0, _ || gA(N, 8, this.length), B.read(this, N, !1, 52, 8);
20072
20072
  };
20073
- function IA(N, _, S, T, z, $) {
20073
+ function wA(N, _, S, T, z, $) {
20074
20074
  if (!h.isBuffer(N))
20075
20075
  throw new TypeError('"buffer" argument must be a Buffer instance');
20076
20076
  if (_ > z || _ < $)
@@ -20080,8 +20080,8 @@ ieee754.write = function(A, g, B, E, C, I) {
20080
20080
  }
20081
20081
  h.prototype.writeUintLE = h.prototype.writeUIntLE = function(N, _, S, T) {
20082
20082
  if (N = +N, _ = _ >>> 0, S = S >>> 0, !T) {
20083
- const eA = Math.pow(2, 8 * S) - 1;
20084
- IA(this, N, _, S, eA, 0);
20083
+ const tA = Math.pow(2, 8 * S) - 1;
20084
+ wA(this, N, _, S, tA, 0);
20085
20085
  }
20086
20086
  let z = 1, $ = 0;
20087
20087
  for (this[_] = N & 255; ++$ < S && (z *= 256); )
@@ -20089,96 +20089,96 @@ ieee754.write = function(A, g, B, E, C, I) {
20089
20089
  return _ + S;
20090
20090
  }, h.prototype.writeUintBE = h.prototype.writeUIntBE = function(N, _, S, T) {
20091
20091
  if (N = +N, _ = _ >>> 0, S = S >>> 0, !T) {
20092
- const eA = Math.pow(2, 8 * S) - 1;
20093
- IA(this, N, _, S, eA, 0);
20092
+ const tA = Math.pow(2, 8 * S) - 1;
20093
+ wA(this, N, _, S, tA, 0);
20094
20094
  }
20095
20095
  let z = S - 1, $ = 1;
20096
20096
  for (this[_ + z] = N & 255; --z >= 0 && ($ *= 256); )
20097
20097
  this[_ + z] = N / $ & 255;
20098
20098
  return _ + S;
20099
20099
  }, h.prototype.writeUint8 = h.prototype.writeUInt8 = function(N, _, S) {
20100
- return N = +N, _ = _ >>> 0, S || IA(this, N, _, 1, 255, 0), this[_] = N & 255, _ + 1;
20100
+ return N = +N, _ = _ >>> 0, S || wA(this, N, _, 1, 255, 0), this[_] = N & 255, _ + 1;
20101
20101
  }, h.prototype.writeUint16LE = h.prototype.writeUInt16LE = function(N, _, S) {
20102
- return N = +N, _ = _ >>> 0, S || IA(this, N, _, 2, 65535, 0), this[_] = N & 255, this[_ + 1] = N >>> 8, _ + 2;
20102
+ return N = +N, _ = _ >>> 0, S || wA(this, N, _, 2, 65535, 0), this[_] = N & 255, this[_ + 1] = N >>> 8, _ + 2;
20103
20103
  }, h.prototype.writeUint16BE = h.prototype.writeUInt16BE = function(N, _, S) {
20104
- return N = +N, _ = _ >>> 0, S || IA(this, N, _, 2, 65535, 0), this[_] = N >>> 8, this[_ + 1] = N & 255, _ + 2;
20104
+ return N = +N, _ = _ >>> 0, S || wA(this, N, _, 2, 65535, 0), this[_] = N >>> 8, this[_ + 1] = N & 255, _ + 2;
20105
20105
  }, h.prototype.writeUint32LE = h.prototype.writeUInt32LE = function(N, _, S) {
20106
- return N = +N, _ = _ >>> 0, S || IA(this, N, _, 4, 4294967295, 0), this[_ + 3] = N >>> 24, this[_ + 2] = N >>> 16, this[_ + 1] = N >>> 8, this[_] = N & 255, _ + 4;
20106
+ return N = +N, _ = _ >>> 0, S || wA(this, N, _, 4, 4294967295, 0), this[_ + 3] = N >>> 24, this[_ + 2] = N >>> 16, this[_ + 1] = N >>> 8, this[_] = N & 255, _ + 4;
20107
20107
  }, h.prototype.writeUint32BE = h.prototype.writeUInt32BE = function(N, _, S) {
20108
- return N = +N, _ = _ >>> 0, S || IA(this, N, _, 4, 4294967295, 0), this[_] = N >>> 24, this[_ + 1] = N >>> 16, this[_ + 2] = N >>> 8, this[_ + 3] = N & 255, _ + 4;
20108
+ return N = +N, _ = _ >>> 0, S || wA(this, N, _, 4, 4294967295, 0), this[_] = N >>> 24, this[_ + 1] = N >>> 16, this[_ + 2] = N >>> 8, this[_ + 3] = N & 255, _ + 4;
20109
20109
  };
20110
- function lA(N, _, S, T, z) {
20111
- hA(_, T, z, N, S, 7);
20110
+ function IA(N, _, S, T, z) {
20111
+ DA(_, T, z, N, S, 7);
20112
20112
  let $ = Number(_ & BigInt(4294967295));
20113
20113
  N[S++] = $, $ = $ >> 8, N[S++] = $, $ = $ >> 8, N[S++] = $, $ = $ >> 8, N[S++] = $;
20114
- let eA = Number(_ >> BigInt(32) & BigInt(4294967295));
20115
- return N[S++] = eA, eA = eA >> 8, N[S++] = eA, eA = eA >> 8, N[S++] = eA, eA = eA >> 8, N[S++] = eA, S;
20114
+ let tA = Number(_ >> BigInt(32) & BigInt(4294967295));
20115
+ return N[S++] = tA, tA = tA >> 8, N[S++] = tA, tA = tA >> 8, N[S++] = tA, tA = tA >> 8, N[S++] = tA, S;
20116
20116
  }
20117
- function pA(N, _, S, T, z) {
20118
- hA(_, T, z, N, S, 7);
20117
+ function dA(N, _, S, T, z) {
20118
+ DA(_, T, z, N, S, 7);
20119
20119
  let $ = Number(_ & BigInt(4294967295));
20120
20120
  N[S + 7] = $, $ = $ >> 8, N[S + 6] = $, $ = $ >> 8, N[S + 5] = $, $ = $ >> 8, N[S + 4] = $;
20121
- let eA = Number(_ >> BigInt(32) & BigInt(4294967295));
20122
- return N[S + 3] = eA, eA = eA >> 8, N[S + 2] = eA, eA = eA >> 8, N[S + 1] = eA, eA = eA >> 8, N[S] = eA, S + 8;
20121
+ let tA = Number(_ >> BigInt(32) & BigInt(4294967295));
20122
+ return N[S + 3] = tA, tA = tA >> 8, N[S + 2] = tA, tA = tA >> 8, N[S + 1] = tA, tA = tA >> 8, N[S] = tA, S + 8;
20123
20123
  }
20124
- h.prototype.writeBigUInt64LE = YA(function(N, _ = 0) {
20125
- return lA(this, N, _, BigInt(0), BigInt("0xffffffffffffffff"));
20126
- }), h.prototype.writeBigUInt64BE = YA(function(N, _ = 0) {
20127
- return pA(this, N, _, BigInt(0), BigInt("0xffffffffffffffff"));
20124
+ h.prototype.writeBigUInt64LE = TA(function(N, _ = 0) {
20125
+ return IA(this, N, _, BigInt(0), BigInt("0xffffffffffffffff"));
20126
+ }), h.prototype.writeBigUInt64BE = TA(function(N, _ = 0) {
20127
+ return dA(this, N, _, BigInt(0), BigInt("0xffffffffffffffff"));
20128
20128
  }), h.prototype.writeIntLE = function(N, _, S, T) {
20129
20129
  if (N = +N, _ = _ >>> 0, !T) {
20130
- const DA = Math.pow(2, 8 * S - 1);
20131
- IA(this, N, _, S, DA - 1, -DA);
20130
+ const uA = Math.pow(2, 8 * S - 1);
20131
+ wA(this, N, _, S, uA - 1, -uA);
20132
20132
  }
20133
- let z = 0, $ = 1, eA = 0;
20133
+ let z = 0, $ = 1, tA = 0;
20134
20134
  for (this[_] = N & 255; ++z < S && ($ *= 256); )
20135
- N < 0 && eA === 0 && this[_ + z - 1] !== 0 && (eA = 1), this[_ + z] = (N / $ >> 0) - eA & 255;
20135
+ N < 0 && tA === 0 && this[_ + z - 1] !== 0 && (tA = 1), this[_ + z] = (N / $ >> 0) - tA & 255;
20136
20136
  return _ + S;
20137
20137
  }, h.prototype.writeIntBE = function(N, _, S, T) {
20138
20138
  if (N = +N, _ = _ >>> 0, !T) {
20139
- const DA = Math.pow(2, 8 * S - 1);
20140
- IA(this, N, _, S, DA - 1, -DA);
20139
+ const uA = Math.pow(2, 8 * S - 1);
20140
+ wA(this, N, _, S, uA - 1, -uA);
20141
20141
  }
20142
- let z = S - 1, $ = 1, eA = 0;
20142
+ let z = S - 1, $ = 1, tA = 0;
20143
20143
  for (this[_ + z] = N & 255; --z >= 0 && ($ *= 256); )
20144
- N < 0 && eA === 0 && this[_ + z + 1] !== 0 && (eA = 1), this[_ + z] = (N / $ >> 0) - eA & 255;
20144
+ N < 0 && tA === 0 && this[_ + z + 1] !== 0 && (tA = 1), this[_ + z] = (N / $ >> 0) - tA & 255;
20145
20145
  return _ + S;
20146
20146
  }, h.prototype.writeInt8 = function(N, _, S) {
20147
- return N = +N, _ = _ >>> 0, S || IA(this, N, _, 1, 127, -128), N < 0 && (N = 255 + N + 1), this[_] = N & 255, _ + 1;
20147
+ return N = +N, _ = _ >>> 0, S || wA(this, N, _, 1, 127, -128), N < 0 && (N = 255 + N + 1), this[_] = N & 255, _ + 1;
20148
20148
  }, h.prototype.writeInt16LE = function(N, _, S) {
20149
- return N = +N, _ = _ >>> 0, S || IA(this, N, _, 2, 32767, -32768), this[_] = N & 255, this[_ + 1] = N >>> 8, _ + 2;
20149
+ return N = +N, _ = _ >>> 0, S || wA(this, N, _, 2, 32767, -32768), this[_] = N & 255, this[_ + 1] = N >>> 8, _ + 2;
20150
20150
  }, h.prototype.writeInt16BE = function(N, _, S) {
20151
- return N = +N, _ = _ >>> 0, S || IA(this, N, _, 2, 32767, -32768), this[_] = N >>> 8, this[_ + 1] = N & 255, _ + 2;
20151
+ return N = +N, _ = _ >>> 0, S || wA(this, N, _, 2, 32767, -32768), this[_] = N >>> 8, this[_ + 1] = N & 255, _ + 2;
20152
20152
  }, h.prototype.writeInt32LE = function(N, _, S) {
20153
- return N = +N, _ = _ >>> 0, S || IA(this, N, _, 4, 2147483647, -2147483648), this[_] = N & 255, this[_ + 1] = N >>> 8, this[_ + 2] = N >>> 16, this[_ + 3] = N >>> 24, _ + 4;
20153
+ return N = +N, _ = _ >>> 0, S || wA(this, N, _, 4, 2147483647, -2147483648), this[_] = N & 255, this[_ + 1] = N >>> 8, this[_ + 2] = N >>> 16, this[_ + 3] = N >>> 24, _ + 4;
20154
20154
  }, h.prototype.writeInt32BE = function(N, _, S) {
20155
- return N = +N, _ = _ >>> 0, S || IA(this, N, _, 4, 2147483647, -2147483648), N < 0 && (N = 4294967295 + N + 1), this[_] = N >>> 24, this[_ + 1] = N >>> 16, this[_ + 2] = N >>> 8, this[_ + 3] = N & 255, _ + 4;
20156
- }, h.prototype.writeBigInt64LE = YA(function(N, _ = 0) {
20157
- return lA(this, N, _, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
20158
- }), h.prototype.writeBigInt64BE = YA(function(N, _ = 0) {
20159
- return pA(this, N, _, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
20155
+ return N = +N, _ = _ >>> 0, S || wA(this, N, _, 4, 2147483647, -2147483648), N < 0 && (N = 4294967295 + N + 1), this[_] = N >>> 24, this[_ + 1] = N >>> 16, this[_ + 2] = N >>> 8, this[_ + 3] = N & 255, _ + 4;
20156
+ }, h.prototype.writeBigInt64LE = TA(function(N, _ = 0) {
20157
+ return IA(this, N, _, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
20158
+ }), h.prototype.writeBigInt64BE = TA(function(N, _ = 0) {
20159
+ return dA(this, N, _, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
20160
20160
  });
20161
- function MA(N, _, S, T, z, $) {
20161
+ function NA(N, _, S, T, z, $) {
20162
20162
  if (S + T > N.length)
20163
20163
  throw new RangeError("Index out of range");
20164
20164
  if (S < 0)
20165
20165
  throw new RangeError("Index out of range");
20166
20166
  }
20167
- function xA(N, _, S, T, z) {
20168
- return _ = +_, S = S >>> 0, z || MA(N, _, S, 4), B.write(N, _, S, T, 23, 4), S + 4;
20167
+ function UA(N, _, S, T, z) {
20168
+ return _ = +_, S = S >>> 0, z || NA(N, _, S, 4), B.write(N, _, S, T, 23, 4), S + 4;
20169
20169
  }
20170
20170
  h.prototype.writeFloatLE = function(N, _, S) {
20171
- return xA(this, N, _, !0, S);
20171
+ return UA(this, N, _, !0, S);
20172
20172
  }, h.prototype.writeFloatBE = function(N, _, S) {
20173
- return xA(this, N, _, !1, S);
20173
+ return UA(this, N, _, !1, S);
20174
20174
  };
20175
- function SA(N, _, S, T, z) {
20176
- return _ = +_, S = S >>> 0, z || MA(N, _, S, 8), B.write(N, _, S, T, 52, 8), S + 8;
20175
+ function bA(N, _, S, T, z) {
20176
+ return _ = +_, S = S >>> 0, z || NA(N, _, S, 8), B.write(N, _, S, T, 52, 8), S + 8;
20177
20177
  }
20178
20178
  h.prototype.writeDoubleLE = function(N, _, S) {
20179
- return SA(this, N, _, !0, S);
20179
+ return bA(this, N, _, !0, S);
20180
20180
  }, h.prototype.writeDoubleBE = function(N, _, S) {
20181
- return SA(this, N, _, !1, S);
20181
+ return bA(this, N, _, !1, S);
20182
20182
  }, h.prototype.copy = function(N, _, S, T) {
20183
20183
  if (!h.isBuffer(N))
20184
20184
  throw new TypeError("argument should be a Buffer");
@@ -20219,17 +20219,17 @@ ieee754.write = function(A, g, B, E, C, I) {
20219
20219
  for (z = _; z < S; ++z)
20220
20220
  this[z] = N;
20221
20221
  else {
20222
- const $ = h.isBuffer(N) ? N : h.from(N, T), eA = $.length;
20223
- if (eA === 0)
20222
+ const $ = h.isBuffer(N) ? N : h.from(N, T), tA = $.length;
20223
+ if (tA === 0)
20224
20224
  throw new TypeError('The value "' + N + '" is invalid for argument "value"');
20225
20225
  for (z = 0; z < S - _; ++z)
20226
- this[z + _] = $[z % eA];
20226
+ this[z + _] = $[z % tA];
20227
20227
  }
20228
20228
  return this;
20229
20229
  };
20230
- const bA = {};
20231
- function HA(N, _, S) {
20232
- bA[N] = class extends S {
20230
+ const GA = {};
20231
+ function xA(N, _, S) {
20232
+ GA[N] = class extends S {
20233
20233
  constructor() {
20234
20234
  super(), Object.defineProperty(this, "message", {
20235
20235
  value: _.apply(this, arguments),
@@ -20253,76 +20253,76 @@ ieee754.write = function(A, g, B, E, C, I) {
20253
20253
  }
20254
20254
  };
20255
20255
  }
20256
- HA(
20256
+ xA(
20257
20257
  "ERR_BUFFER_OUT_OF_BOUNDS",
20258
20258
  function(N) {
20259
20259
  return N ? `${N} is outside of buffer bounds` : "Attempt to access memory outside buffer bounds";
20260
20260
  },
20261
20261
  RangeError
20262
- ), HA(
20262
+ ), xA(
20263
20263
  "ERR_INVALID_ARG_TYPE",
20264
20264
  function(N, _) {
20265
20265
  return `The "${N}" argument must be of type number. Received type ${typeof _}`;
20266
20266
  },
20267
20267
  TypeError
20268
- ), HA(
20268
+ ), xA(
20269
20269
  "ERR_OUT_OF_RANGE",
20270
20270
  function(N, _, S) {
20271
20271
  let T = `The value of "${N}" is out of range.`, z = S;
20272
- return Number.isInteger(S) && Math.abs(S) > 2 ** 32 ? z = yA(String(S)) : typeof S == "bigint" && (z = String(S), (S > BigInt(2) ** BigInt(32) || S < -(BigInt(2) ** BigInt(32))) && (z = yA(z)), z += "n"), T += ` It must be ${_}. Received ${z}`, T;
20272
+ return Number.isInteger(S) && Math.abs(S) > 2 ** 32 ? z = kA(String(S)) : typeof S == "bigint" && (z = String(S), (S > BigInt(2) ** BigInt(32) || S < -(BigInt(2) ** BigInt(32))) && (z = kA(z)), z += "n"), T += ` It must be ${_}. Received ${z}`, T;
20273
20273
  },
20274
20274
  RangeError
20275
20275
  );
20276
- function yA(N) {
20276
+ function kA(N) {
20277
20277
  let _ = "", S = N.length;
20278
20278
  const T = N[0] === "-" ? 1 : 0;
20279
20279
  for (; S >= T + 4; S -= 3)
20280
20280
  _ = `_${N.slice(S - 3, S)}${_}`;
20281
20281
  return `${N.slice(0, S)}${_}`;
20282
20282
  }
20283
- function gA(N, _, S) {
20284
- dA(_, "offset"), (N[_] === void 0 || N[_ + S] === void 0) && kA(_, N.length - (S + 1));
20283
+ function BA(N, _, S) {
20284
+ fA(_, "offset"), (N[_] === void 0 || N[_ + S] === void 0) && MA(_, N.length - (S + 1));
20285
20285
  }
20286
- function hA(N, _, S, T, z, $) {
20286
+ function DA(N, _, S, T, z, $) {
20287
20287
  if (N > S || N < _) {
20288
- const eA = typeof _ == "bigint" ? "n" : "";
20289
- let DA;
20290
- throw $ > 3 ? _ === 0 || _ === BigInt(0) ? DA = `>= 0${eA} and < 2${eA} ** ${($ + 1) * 8}${eA}` : DA = `>= -(2${eA} ** ${($ + 1) * 8 - 1}${eA}) and < 2 ** ${($ + 1) * 8 - 1}${eA}` : DA = `>= ${_}${eA} and <= ${S}${eA}`, new bA.ERR_OUT_OF_RANGE("value", DA, N);
20288
+ const tA = typeof _ == "bigint" ? "n" : "";
20289
+ let uA;
20290
+ throw $ > 3 ? _ === 0 || _ === BigInt(0) ? uA = `>= 0${tA} and < 2${tA} ** ${($ + 1) * 8}${tA}` : uA = `>= -(2${tA} ** ${($ + 1) * 8 - 1}${tA}) and < 2 ** ${($ + 1) * 8 - 1}${tA}` : uA = `>= ${_}${tA} and <= ${S}${tA}`, new GA.ERR_OUT_OF_RANGE("value", uA, N);
20291
20291
  }
20292
- gA(T, z, $);
20292
+ BA(T, z, $);
20293
20293
  }
20294
- function dA(N, _) {
20294
+ function fA(N, _) {
20295
20295
  if (typeof N != "number")
20296
- throw new bA.ERR_INVALID_ARG_TYPE(_, "number", N);
20296
+ throw new GA.ERR_INVALID_ARG_TYPE(_, "number", N);
20297
20297
  }
20298
- function kA(N, _, S) {
20299
- throw Math.floor(N) !== N ? (dA(N, S), new bA.ERR_OUT_OF_RANGE(S || "offset", "an integer", N)) : _ < 0 ? new bA.ERR_BUFFER_OUT_OF_BOUNDS() : new bA.ERR_OUT_OF_RANGE(
20298
+ function MA(N, _, S) {
20299
+ throw Math.floor(N) !== N ? (fA(N, S), new GA.ERR_OUT_OF_RANGE(S || "offset", "an integer", N)) : _ < 0 ? new GA.ERR_BUFFER_OUT_OF_BOUNDS() : new GA.ERR_OUT_OF_RANGE(
20300
20300
  S || "offset",
20301
20301
  `>= ${S ? 1 : 0} and <= ${_}`,
20302
20302
  N
20303
20303
  );
20304
20304
  }
20305
- const qA = /[^+/0-9A-Za-z-_]/g;
20306
- function WA(N) {
20307
- if (N = N.split("=")[0], N = N.trim().replace(qA, ""), N.length < 2)
20305
+ const WA = /[^+/0-9A-Za-z-_]/g;
20306
+ function jA(N) {
20307
+ if (N = N.split("=")[0], N = N.trim().replace(WA, ""), N.length < 2)
20308
20308
  return "";
20309
20309
  for (; N.length % 4 !== 0; )
20310
20310
  N = N + "=";
20311
20311
  return N;
20312
20312
  }
20313
- function jA(N, _) {
20313
+ function $A(N, _) {
20314
20314
  _ = _ || 1 / 0;
20315
20315
  let S;
20316
20316
  const T = N.length;
20317
20317
  let z = null;
20318
20318
  const $ = [];
20319
- for (let eA = 0; eA < T; ++eA) {
20320
- if (S = N.charCodeAt(eA), S > 55295 && S < 57344) {
20319
+ for (let tA = 0; tA < T; ++tA) {
20320
+ if (S = N.charCodeAt(tA), S > 55295 && S < 57344) {
20321
20321
  if (!z) {
20322
20322
  if (S > 56319) {
20323
20323
  (_ -= 3) > -1 && $.push(239, 191, 189);
20324
20324
  continue;
20325
- } else if (eA + 1 === T) {
20325
+ } else if (tA + 1 === T) {
20326
20326
  (_ -= 3) > -1 && $.push(239, 191, 189);
20327
20327
  continue;
20328
20328
  }
@@ -20369,35 +20369,35 @@ ieee754.write = function(A, g, B, E, C, I) {
20369
20369
  }
20370
20370
  return $;
20371
20371
  }
20372
- function Ae(N) {
20372
+ function ee(N) {
20373
20373
  const _ = [];
20374
20374
  for (let S = 0; S < N.length; ++S)
20375
20375
  _.push(N.charCodeAt(S) & 255);
20376
20376
  return _;
20377
20377
  }
20378
- function te(N, _) {
20378
+ function oe(N, _) {
20379
20379
  let S, T, z;
20380
20380
  const $ = [];
20381
- for (let eA = 0; eA < N.length && !((_ -= 2) < 0); ++eA)
20382
- S = N.charCodeAt(eA), T = S >> 8, z = S % 256, $.push(z), $.push(T);
20381
+ for (let tA = 0; tA < N.length && !((_ -= 2) < 0); ++tA)
20382
+ S = N.charCodeAt(tA), T = S >> 8, z = S % 256, $.push(z), $.push(T);
20383
20383
  return $;
20384
20384
  }
20385
- function KA(N) {
20386
- return g.toByteArray(WA(N));
20385
+ function YA(N) {
20386
+ return g.toByteArray(jA(N));
20387
20387
  }
20388
- function TA(N, _, S, T) {
20388
+ function vA(N, _, S, T) {
20389
20389
  let z;
20390
20390
  for (z = 0; z < T && !(z + S >= _.length || z >= N.length); ++z)
20391
20391
  _[z + S] = N[z];
20392
20392
  return z;
20393
20393
  }
20394
- function GA(N, _) {
20394
+ function RA(N, _) {
20395
20395
  return N instanceof _ || N != null && N.constructor != null && N.constructor.name != null && N.constructor.name === _.name;
20396
20396
  }
20397
- function vA(N) {
20397
+ function OA(N) {
20398
20398
  return N !== N;
20399
20399
  }
20400
- const ge = function() {
20400
+ const Be = function() {
20401
20401
  const N = "0123456789abcdef", _ = new Array(256);
20402
20402
  for (let S = 0; S < 16; ++S) {
20403
20403
  const T = S * 16;
@@ -20406,10 +20406,10 @@ ieee754.write = function(A, g, B, E, C, I) {
20406
20406
  }
20407
20407
  return _;
20408
20408
  }();
20409
- function YA(N) {
20410
- return typeof BigInt > "u" ? Be : N;
20409
+ function TA(N) {
20410
+ return typeof BigInt > "u" ? se : N;
20411
20411
  }
20412
- function Be() {
20412
+ function se() {
20413
20413
  throw new Error("BigInt not supported");
20414
20414
  }
20415
20415
  })(buffer);
@@ -20677,289 +20677,289 @@ var dayjs_min = { exports: {} };
20677
20677
  (function(B, E) {
20678
20678
  A.exports = E();
20679
20679
  })(commonjsGlobal, function() {
20680
- var B = 1e3, E = 6e4, C = 36e5, I = "millisecond", w = "second", h = "minute", D = "hour", m = "day", y = "week", k = "month", M = "quarter", L = "year", F = "date", x = "Invalid Date", H = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, Y = /\[([^\]]+)]|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, U = { 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(tA) {
20681
- var X = ["th", "st", "nd", "rd"], V = tA % 100;
20682
- return "[" + tA + (X[(V - 20) % 10] || X[V] || X[0]) + "]";
20683
- } }, J = function(tA, X, V) {
20684
- var iA = String(tA);
20685
- return !iA || iA.length >= X ? tA : "" + Array(X + 1 - iA.length).join(V) + tA;
20686
- }, q = { s: J, z: function(tA) {
20687
- var X = -tA.utcOffset(), V = Math.abs(X), iA = Math.floor(V / 60), AA = V % 60;
20688
- return (X <= 0 ? "+" : "-") + J(iA, 2, "0") + ":" + J(AA, 2, "0");
20689
- }, m: function tA(X, V) {
20690
- if (X.date() < V.date())
20691
- return -tA(V, X);
20692
- var iA = 12 * (V.year() - X.year()) + (V.month() - X.month()), AA = X.clone().add(iA, k), nA = V - AA < 0, cA = X.clone().add(iA + (nA ? -1 : 1), k);
20693
- return +(-(iA + (V - AA) / (nA ? AA - cA : cA - AA)) || 0);
20694
- }, a: function(tA) {
20695
- return tA < 0 ? Math.ceil(tA) || 0 : Math.floor(tA);
20696
- }, p: function(tA) {
20697
- return { M: k, y: L, w: y, d: m, D: F, h: D, m: h, s: w, ms: I, Q: M }[tA] || String(tA || "").toLowerCase().replace(/s$/, "");
20698
- }, u: function(tA) {
20699
- return tA === void 0;
20680
+ var B = 1e3, E = 6e4, C = 36e5, I = "millisecond", w = "second", h = "minute", D = "hour", m = "day", y = "week", k = "month", M = "quarter", L = "year", F = "date", x = "Invalid Date", H = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, Y = /\[([^\]]+)]|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, U = { 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(oA) {
20681
+ var V = ["th", "st", "nd", "rd"], AA = oA % 100;
20682
+ return "[" + oA + (V[(AA - 20) % 10] || V[AA] || V[0]) + "]";
20683
+ } }, J = function(oA, V, AA) {
20684
+ var nA = String(oA);
20685
+ return !nA || nA.length >= V ? oA : "" + Array(V + 1 - nA.length).join(AA) + oA;
20686
+ }, q = { s: J, z: function(oA) {
20687
+ var V = -oA.utcOffset(), AA = Math.abs(V), nA = Math.floor(AA / 60), eA = AA % 60;
20688
+ return (V <= 0 ? "+" : "-") + J(nA, 2, "0") + ":" + J(eA, 2, "0");
20689
+ }, m: function oA(V, AA) {
20690
+ if (V.date() < AA.date())
20691
+ return -oA(AA, V);
20692
+ var nA = 12 * (AA.year() - V.year()) + (AA.month() - V.month()), eA = V.clone().add(nA, k), rA = AA - eA < 0, lA = V.clone().add(nA + (rA ? -1 : 1), k);
20693
+ return +(-(nA + (AA - eA) / (rA ? eA - lA : lA - eA)) || 0);
20694
+ }, a: function(oA) {
20695
+ return oA < 0 ? Math.ceil(oA) || 0 : Math.floor(oA);
20696
+ }, p: function(oA) {
20697
+ return { M: k, y: L, w: y, d: m, D: F, h: D, m: h, s: w, ms: I, Q: M }[oA] || String(oA || "").toLowerCase().replace(/s$/, "");
20698
+ }, u: function(oA) {
20699
+ return oA === void 0;
20700
20700
  } }, O = "en", j = {};
20701
20701
  j[O] = U;
20702
- var W = "$isDayjsObject", sA = function(tA) {
20703
- return tA instanceof CA || !(!tA || !tA[W]);
20704
- }, EA = function tA(X, V, iA) {
20705
- var AA;
20706
- if (!X)
20702
+ var W = "$isDayjsObject", aA = function(oA) {
20703
+ return oA instanceof cA || !(!oA || !oA[W]);
20704
+ }, CA = function oA(V, AA, nA) {
20705
+ var eA;
20706
+ if (!V)
20707
20707
  return O;
20708
- if (typeof X == "string") {
20709
- var nA = X.toLowerCase();
20710
- j[nA] && (AA = nA), V && (j[nA] = V, AA = nA);
20711
- var cA = X.split("-");
20712
- if (!AA && cA.length > 1)
20713
- return tA(cA[0]);
20708
+ if (typeof V == "string") {
20709
+ var rA = V.toLowerCase();
20710
+ j[rA] && (eA = rA), AA && (j[rA] = AA, eA = rA);
20711
+ var lA = V.split("-");
20712
+ if (!eA && lA.length > 1)
20713
+ return oA(lA[0]);
20714
20714
  } else {
20715
- var rA = X.name;
20716
- j[rA] = X, AA = rA;
20715
+ var gA = V.name;
20716
+ j[gA] = V, eA = gA;
20717
20717
  }
20718
- return !iA && AA && (O = AA), AA || !iA && O;
20719
- }, aA = function(tA, X) {
20720
- if (sA(tA))
20721
- return tA.clone();
20722
- var V = typeof X == "object" ? X : {};
20723
- return V.date = tA, V.args = arguments, new CA(V);
20724
- }, QA = q;
20725
- QA.l = EA, QA.i = sA, QA.w = function(tA, X) {
20726
- return aA(tA, { locale: X.$L, utc: X.$u, x: X.$x, $offset: X.$offset });
20718
+ return !nA && eA && (O = eA), eA || !nA && O;
20719
+ }, QA = function(oA, V) {
20720
+ if (aA(oA))
20721
+ return oA.clone();
20722
+ var AA = typeof V == "object" ? V : {};
20723
+ return AA.date = oA, AA.args = arguments, new cA(AA);
20724
+ }, EA = q;
20725
+ EA.l = CA, EA.i = aA, EA.w = function(oA, V) {
20726
+ return QA(oA, { locale: V.$L, utc: V.$u, x: V.$x, $offset: V.$offset });
20727
20727
  };
20728
- var CA = function() {
20729
- function tA(V) {
20730
- this.$L = EA(V.locale, null, !0), this.parse(V), this.$x = this.$x || V.x || {}, this[W] = !0;
20728
+ var cA = function() {
20729
+ function oA(AA) {
20730
+ this.$L = CA(AA.locale, null, !0), this.parse(AA), this.$x = this.$x || AA.x || {}, this[W] = !0;
20731
20731
  }
20732
- var X = tA.prototype;
20733
- return X.parse = function(V) {
20734
- this.$d = function(iA) {
20735
- var AA = iA.date, nA = iA.utc;
20736
- if (AA === null)
20732
+ var V = oA.prototype;
20733
+ return V.parse = function(AA) {
20734
+ this.$d = function(nA) {
20735
+ var eA = nA.date, rA = nA.utc;
20736
+ if (eA === null)
20737
20737
  return /* @__PURE__ */ new Date(NaN);
20738
- if (QA.u(AA))
20738
+ if (EA.u(eA))
20739
20739
  return /* @__PURE__ */ new Date();
20740
- if (AA instanceof Date)
20741
- return new Date(AA);
20742
- if (typeof AA == "string" && !/Z$/i.test(AA)) {
20743
- var cA = AA.match(H);
20744
- if (cA) {
20745
- var rA = cA[2] - 1 || 0, IA = (cA[7] || "0").substring(0, 3);
20746
- return nA ? new Date(Date.UTC(cA[1], rA, cA[3] || 1, cA[4] || 0, cA[5] || 0, cA[6] || 0, IA)) : new Date(cA[1], rA, cA[3] || 1, cA[4] || 0, cA[5] || 0, cA[6] || 0, IA);
20740
+ if (eA instanceof Date)
20741
+ return new Date(eA);
20742
+ if (typeof eA == "string" && !/Z$/i.test(eA)) {
20743
+ var lA = eA.match(H);
20744
+ if (lA) {
20745
+ var gA = lA[2] - 1 || 0, wA = (lA[7] || "0").substring(0, 3);
20746
+ return rA ? new Date(Date.UTC(lA[1], gA, lA[3] || 1, lA[4] || 0, lA[5] || 0, lA[6] || 0, wA)) : new Date(lA[1], gA, lA[3] || 1, lA[4] || 0, lA[5] || 0, lA[6] || 0, wA);
20747
20747
  }
20748
20748
  }
20749
- return new Date(AA);
20750
- }(V), this.init();
20751
- }, X.init = function() {
20752
- var V = this.$d;
20753
- this.$y = V.getFullYear(), this.$M = V.getMonth(), this.$D = V.getDate(), this.$W = V.getDay(), this.$H = V.getHours(), this.$m = V.getMinutes(), this.$s = V.getSeconds(), this.$ms = V.getMilliseconds();
20754
- }, X.$utils = function() {
20755
- return QA;
20756
- }, X.isValid = function() {
20749
+ return new Date(eA);
20750
+ }(AA), this.init();
20751
+ }, V.init = function() {
20752
+ var AA = this.$d;
20753
+ this.$y = AA.getFullYear(), this.$M = AA.getMonth(), this.$D = AA.getDate(), this.$W = AA.getDay(), this.$H = AA.getHours(), this.$m = AA.getMinutes(), this.$s = AA.getSeconds(), this.$ms = AA.getMilliseconds();
20754
+ }, V.$utils = function() {
20755
+ return EA;
20756
+ }, V.isValid = function() {
20757
20757
  return this.$d.toString() !== x;
20758
- }, X.isSame = function(V, iA) {
20759
- var AA = aA(V);
20760
- return this.startOf(iA) <= AA && AA <= this.endOf(iA);
20761
- }, X.isAfter = function(V, iA) {
20762
- return aA(V) < this.startOf(iA);
20763
- }, X.isBefore = function(V, iA) {
20764
- return this.endOf(iA) < aA(V);
20765
- }, X.$g = function(V, iA, AA) {
20766
- return QA.u(V) ? this[iA] : this.set(AA, V);
20767
- }, X.unix = function() {
20758
+ }, V.isSame = function(AA, nA) {
20759
+ var eA = QA(AA);
20760
+ return this.startOf(nA) <= eA && eA <= this.endOf(nA);
20761
+ }, V.isAfter = function(AA, nA) {
20762
+ return QA(AA) < this.startOf(nA);
20763
+ }, V.isBefore = function(AA, nA) {
20764
+ return this.endOf(nA) < QA(AA);
20765
+ }, V.$g = function(AA, nA, eA) {
20766
+ return EA.u(AA) ? this[nA] : this.set(eA, AA);
20767
+ }, V.unix = function() {
20768
20768
  return Math.floor(this.valueOf() / 1e3);
20769
- }, X.valueOf = function() {
20769
+ }, V.valueOf = function() {
20770
20770
  return this.$d.getTime();
20771
- }, X.startOf = function(V, iA) {
20772
- var AA = this, nA = !!QA.u(iA) || iA, cA = QA.p(V), rA = function(HA, yA) {
20773
- var gA = QA.w(AA.$u ? Date.UTC(AA.$y, yA, HA) : new Date(AA.$y, yA, HA), AA);
20774
- return nA ? gA : gA.endOf(m);
20775
- }, IA = function(HA, yA) {
20776
- return QA.w(AA.toDate()[HA].apply(AA.toDate("s"), (nA ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(yA)), AA);
20777
- }, lA = this.$W, pA = this.$M, MA = this.$D, xA = "set" + (this.$u ? "UTC" : "");
20778
- switch (cA) {
20771
+ }, V.startOf = function(AA, nA) {
20772
+ var eA = this, rA = !!EA.u(nA) || nA, lA = EA.p(AA), gA = function(xA, kA) {
20773
+ var BA = EA.w(eA.$u ? Date.UTC(eA.$y, kA, xA) : new Date(eA.$y, kA, xA), eA);
20774
+ return rA ? BA : BA.endOf(m);
20775
+ }, wA = function(xA, kA) {
20776
+ return EA.w(eA.toDate()[xA].apply(eA.toDate("s"), (rA ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(kA)), eA);
20777
+ }, IA = this.$W, dA = this.$M, NA = this.$D, UA = "set" + (this.$u ? "UTC" : "");
20778
+ switch (lA) {
20779
20779
  case L:
20780
- return nA ? rA(1, 0) : rA(31, 11);
20780
+ return rA ? gA(1, 0) : gA(31, 11);
20781
20781
  case k:
20782
- return nA ? rA(1, pA) : rA(0, pA + 1);
20782
+ return rA ? gA(1, dA) : gA(0, dA + 1);
20783
20783
  case y:
20784
- var SA = this.$locale().weekStart || 0, bA = (lA < SA ? lA + 7 : lA) - SA;
20785
- return rA(nA ? MA - bA : MA + (6 - bA), pA);
20784
+ var bA = this.$locale().weekStart || 0, GA = (IA < bA ? IA + 7 : IA) - bA;
20785
+ return gA(rA ? NA - GA : NA + (6 - GA), dA);
20786
20786
  case m:
20787
20787
  case F:
20788
- return IA(xA + "Hours", 0);
20788
+ return wA(UA + "Hours", 0);
20789
20789
  case D:
20790
- return IA(xA + "Minutes", 1);
20790
+ return wA(UA + "Minutes", 1);
20791
20791
  case h:
20792
- return IA(xA + "Seconds", 2);
20792
+ return wA(UA + "Seconds", 2);
20793
20793
  case w:
20794
- return IA(xA + "Milliseconds", 3);
20794
+ return wA(UA + "Milliseconds", 3);
20795
20795
  default:
20796
20796
  return this.clone();
20797
20797
  }
20798
- }, X.endOf = function(V) {
20799
- return this.startOf(V, !1);
20800
- }, X.$set = function(V, iA) {
20801
- var AA, nA = QA.p(V), cA = "set" + (this.$u ? "UTC" : ""), rA = (AA = {}, AA[m] = cA + "Date", AA[F] = cA + "Date", AA[k] = cA + "Month", AA[L] = cA + "FullYear", AA[D] = cA + "Hours", AA[h] = cA + "Minutes", AA[w] = cA + "Seconds", AA[I] = cA + "Milliseconds", AA)[nA], IA = nA === m ? this.$D + (iA - this.$W) : iA;
20802
- if (nA === k || nA === L) {
20803
- var lA = this.clone().set(F, 1);
20804
- lA.$d[rA](IA), lA.init(), this.$d = lA.set(F, Math.min(this.$D, lA.daysInMonth())).$d;
20798
+ }, V.endOf = function(AA) {
20799
+ return this.startOf(AA, !1);
20800
+ }, V.$set = function(AA, nA) {
20801
+ var eA, rA = EA.p(AA), lA = "set" + (this.$u ? "UTC" : ""), gA = (eA = {}, eA[m] = lA + "Date", eA[F] = lA + "Date", eA[k] = lA + "Month", eA[L] = lA + "FullYear", eA[D] = lA + "Hours", eA[h] = lA + "Minutes", eA[w] = lA + "Seconds", eA[I] = lA + "Milliseconds", eA)[rA], wA = rA === m ? this.$D + (nA - this.$W) : nA;
20802
+ if (rA === k || rA === L) {
20803
+ var IA = this.clone().set(F, 1);
20804
+ IA.$d[gA](wA), IA.init(), this.$d = IA.set(F, Math.min(this.$D, IA.daysInMonth())).$d;
20805
20805
  } else
20806
- rA && this.$d[rA](IA);
20806
+ gA && this.$d[gA](wA);
20807
20807
  return this.init(), this;
20808
- }, X.set = function(V, iA) {
20809
- return this.clone().$set(V, iA);
20810
- }, X.get = function(V) {
20811
- return this[QA.p(V)]();
20812
- }, X.add = function(V, iA) {
20813
- var AA, nA = this;
20814
- V = Number(V);
20815
- var cA = QA.p(iA), rA = function(pA) {
20816
- var MA = aA(nA);
20817
- return QA.w(MA.date(MA.date() + Math.round(pA * V)), nA);
20808
+ }, V.set = function(AA, nA) {
20809
+ return this.clone().$set(AA, nA);
20810
+ }, V.get = function(AA) {
20811
+ return this[EA.p(AA)]();
20812
+ }, V.add = function(AA, nA) {
20813
+ var eA, rA = this;
20814
+ AA = Number(AA);
20815
+ var lA = EA.p(nA), gA = function(dA) {
20816
+ var NA = QA(rA);
20817
+ return EA.w(NA.date(NA.date() + Math.round(dA * AA)), rA);
20818
20818
  };
20819
- if (cA === k)
20820
- return this.set(k, this.$M + V);
20821
- if (cA === L)
20822
- return this.set(L, this.$y + V);
20823
- if (cA === m)
20824
- return rA(1);
20825
- if (cA === y)
20826
- return rA(7);
20827
- var IA = (AA = {}, AA[h] = E, AA[D] = C, AA[w] = B, AA)[cA] || 1, lA = this.$d.getTime() + V * IA;
20828
- return QA.w(lA, this);
20829
- }, X.subtract = function(V, iA) {
20830
- return this.add(-1 * V, iA);
20831
- }, X.format = function(V) {
20832
- var iA = this, AA = this.$locale();
20819
+ if (lA === k)
20820
+ return this.set(k, this.$M + AA);
20821
+ if (lA === L)
20822
+ return this.set(L, this.$y + AA);
20823
+ if (lA === m)
20824
+ return gA(1);
20825
+ if (lA === y)
20826
+ return gA(7);
20827
+ var wA = (eA = {}, eA[h] = E, eA[D] = C, eA[w] = B, eA)[lA] || 1, IA = this.$d.getTime() + AA * wA;
20828
+ return EA.w(IA, this);
20829
+ }, V.subtract = function(AA, nA) {
20830
+ return this.add(-1 * AA, nA);
20831
+ }, V.format = function(AA) {
20832
+ var nA = this, eA = this.$locale();
20833
20833
  if (!this.isValid())
20834
- return AA.invalidDate || x;
20835
- var nA = V || "YYYY-MM-DDTHH:mm:ssZ", cA = QA.z(this), rA = this.$H, IA = this.$m, lA = this.$M, pA = AA.weekdays, MA = AA.months, xA = AA.meridiem, SA = function(yA, gA, hA, dA) {
20836
- return yA && (yA[gA] || yA(iA, nA)) || hA[gA].slice(0, dA);
20837
- }, bA = function(yA) {
20838
- return QA.s(rA % 12 || 12, yA, "0");
20839
- }, HA = xA || function(yA, gA, hA) {
20840
- var dA = yA < 12 ? "AM" : "PM";
20841
- return hA ? dA.toLowerCase() : dA;
20834
+ return eA.invalidDate || x;
20835
+ var rA = AA || "YYYY-MM-DDTHH:mm:ssZ", lA = EA.z(this), gA = this.$H, wA = this.$m, IA = this.$M, dA = eA.weekdays, NA = eA.months, UA = eA.meridiem, bA = function(kA, BA, DA, fA) {
20836
+ return kA && (kA[BA] || kA(nA, rA)) || DA[BA].slice(0, fA);
20837
+ }, GA = function(kA) {
20838
+ return EA.s(gA % 12 || 12, kA, "0");
20839
+ }, xA = UA || function(kA, BA, DA) {
20840
+ var fA = kA < 12 ? "AM" : "PM";
20841
+ return DA ? fA.toLowerCase() : fA;
20842
20842
  };
20843
- return nA.replace(Y, function(yA, gA) {
20844
- return gA || function(hA) {
20845
- switch (hA) {
20843
+ return rA.replace(Y, function(kA, BA) {
20844
+ return BA || function(DA) {
20845
+ switch (DA) {
20846
20846
  case "YY":
20847
- return String(iA.$y).slice(-2);
20847
+ return String(nA.$y).slice(-2);
20848
20848
  case "YYYY":
20849
- return QA.s(iA.$y, 4, "0");
20849
+ return EA.s(nA.$y, 4, "0");
20850
20850
  case "M":
20851
- return lA + 1;
20851
+ return IA + 1;
20852
20852
  case "MM":
20853
- return QA.s(lA + 1, 2, "0");
20853
+ return EA.s(IA + 1, 2, "0");
20854
20854
  case "MMM":
20855
- return SA(AA.monthsShort, lA, MA, 3);
20855
+ return bA(eA.monthsShort, IA, NA, 3);
20856
20856
  case "MMMM":
20857
- return SA(MA, lA);
20857
+ return bA(NA, IA);
20858
20858
  case "D":
20859
- return iA.$D;
20859
+ return nA.$D;
20860
20860
  case "DD":
20861
- return QA.s(iA.$D, 2, "0");
20861
+ return EA.s(nA.$D, 2, "0");
20862
20862
  case "d":
20863
- return String(iA.$W);
20863
+ return String(nA.$W);
20864
20864
  case "dd":
20865
- return SA(AA.weekdaysMin, iA.$W, pA, 2);
20865
+ return bA(eA.weekdaysMin, nA.$W, dA, 2);
20866
20866
  case "ddd":
20867
- return SA(AA.weekdaysShort, iA.$W, pA, 3);
20867
+ return bA(eA.weekdaysShort, nA.$W, dA, 3);
20868
20868
  case "dddd":
20869
- return pA[iA.$W];
20869
+ return dA[nA.$W];
20870
20870
  case "H":
20871
- return String(rA);
20871
+ return String(gA);
20872
20872
  case "HH":
20873
- return QA.s(rA, 2, "0");
20873
+ return EA.s(gA, 2, "0");
20874
20874
  case "h":
20875
- return bA(1);
20875
+ return GA(1);
20876
20876
  case "hh":
20877
- return bA(2);
20877
+ return GA(2);
20878
20878
  case "a":
20879
- return HA(rA, IA, !0);
20879
+ return xA(gA, wA, !0);
20880
20880
  case "A":
20881
- return HA(rA, IA, !1);
20881
+ return xA(gA, wA, !1);
20882
20882
  case "m":
20883
- return String(IA);
20883
+ return String(wA);
20884
20884
  case "mm":
20885
- return QA.s(IA, 2, "0");
20885
+ return EA.s(wA, 2, "0");
20886
20886
  case "s":
20887
- return String(iA.$s);
20887
+ return String(nA.$s);
20888
20888
  case "ss":
20889
- return QA.s(iA.$s, 2, "0");
20889
+ return EA.s(nA.$s, 2, "0");
20890
20890
  case "SSS":
20891
- return QA.s(iA.$ms, 3, "0");
20891
+ return EA.s(nA.$ms, 3, "0");
20892
20892
  case "Z":
20893
- return cA;
20893
+ return lA;
20894
20894
  }
20895
20895
  return null;
20896
- }(yA) || cA.replace(":", "");
20896
+ }(kA) || lA.replace(":", "");
20897
20897
  });
20898
- }, X.utcOffset = function() {
20898
+ }, V.utcOffset = function() {
20899
20899
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
20900
- }, X.diff = function(V, iA, AA) {
20901
- var nA, cA = this, rA = QA.p(iA), IA = aA(V), lA = (IA.utcOffset() - this.utcOffset()) * E, pA = this - IA, MA = function() {
20902
- return QA.m(cA, IA);
20900
+ }, V.diff = function(AA, nA, eA) {
20901
+ var rA, lA = this, gA = EA.p(nA), wA = QA(AA), IA = (wA.utcOffset() - this.utcOffset()) * E, dA = this - wA, NA = function() {
20902
+ return EA.m(lA, wA);
20903
20903
  };
20904
- switch (rA) {
20904
+ switch (gA) {
20905
20905
  case L:
20906
- nA = MA() / 12;
20906
+ rA = NA() / 12;
20907
20907
  break;
20908
20908
  case k:
20909
- nA = MA();
20909
+ rA = NA();
20910
20910
  break;
20911
20911
  case M:
20912
- nA = MA() / 3;
20912
+ rA = NA() / 3;
20913
20913
  break;
20914
20914
  case y:
20915
- nA = (pA - lA) / 6048e5;
20915
+ rA = (dA - IA) / 6048e5;
20916
20916
  break;
20917
20917
  case m:
20918
- nA = (pA - lA) / 864e5;
20918
+ rA = (dA - IA) / 864e5;
20919
20919
  break;
20920
20920
  case D:
20921
- nA = pA / C;
20921
+ rA = dA / C;
20922
20922
  break;
20923
20923
  case h:
20924
- nA = pA / E;
20924
+ rA = dA / E;
20925
20925
  break;
20926
20926
  case w:
20927
- nA = pA / B;
20927
+ rA = dA / B;
20928
20928
  break;
20929
20929
  default:
20930
- nA = pA;
20930
+ rA = dA;
20931
20931
  }
20932
- return AA ? nA : QA.a(nA);
20933
- }, X.daysInMonth = function() {
20932
+ return eA ? rA : EA.a(rA);
20933
+ }, V.daysInMonth = function() {
20934
20934
  return this.endOf(k).$D;
20935
- }, X.$locale = function() {
20935
+ }, V.$locale = function() {
20936
20936
  return j[this.$L];
20937
- }, X.locale = function(V, iA) {
20938
- if (!V)
20937
+ }, V.locale = function(AA, nA) {
20938
+ if (!AA)
20939
20939
  return this.$L;
20940
- var AA = this.clone(), nA = EA(V, iA, !0);
20941
- return nA && (AA.$L = nA), AA;
20942
- }, X.clone = function() {
20943
- return QA.w(this.$d, this);
20944
- }, X.toDate = function() {
20940
+ var eA = this.clone(), rA = CA(AA, nA, !0);
20941
+ return rA && (eA.$L = rA), eA;
20942
+ }, V.clone = function() {
20943
+ return EA.w(this.$d, this);
20944
+ }, V.toDate = function() {
20945
20945
  return new Date(this.valueOf());
20946
- }, X.toJSON = function() {
20946
+ }, V.toJSON = function() {
20947
20947
  return this.isValid() ? this.toISOString() : null;
20948
- }, X.toISOString = function() {
20948
+ }, V.toISOString = function() {
20949
20949
  return this.$d.toISOString();
20950
- }, X.toString = function() {
20950
+ }, V.toString = function() {
20951
20951
  return this.$d.toUTCString();
20952
- }, tA;
20953
- }(), uA = CA.prototype;
20954
- return aA.prototype = uA, [["$ms", I], ["$s", w], ["$m", h], ["$H", D], ["$W", m], ["$M", k], ["$y", L], ["$D", F]].forEach(function(tA) {
20955
- uA[tA[1]] = function(X) {
20956
- return this.$g(X, tA[0], tA[1]);
20952
+ }, oA;
20953
+ }(), pA = cA.prototype;
20954
+ return QA.prototype = pA, [["$ms", I], ["$s", w], ["$m", h], ["$H", D], ["$W", m], ["$M", k], ["$y", L], ["$D", F]].forEach(function(oA) {
20955
+ pA[oA[1]] = function(V) {
20956
+ return this.$g(V, oA[0], oA[1]);
20957
20957
  };
20958
- }), aA.extend = function(tA, X) {
20959
- return tA.$i || (tA(X, CA, aA), tA.$i = !0), aA;
20960
- }, aA.locale = EA, aA.isDayjs = sA, aA.unix = function(tA) {
20961
- return aA(1e3 * tA);
20962
- }, aA.en = j[O], aA.Ls = j, aA.p = {}, aA;
20958
+ }), QA.extend = function(oA, V) {
20959
+ return oA.$i || (oA(V, cA, QA), oA.$i = !0), QA;
20960
+ }, QA.locale = CA, QA.isDayjs = aA, QA.unix = function(oA) {
20961
+ return QA(1e3 * oA);
20962
+ }, QA.en = j[O], QA.Ls = j, QA.p = {}, QA;
20963
20963
  });
20964
20964
  })(dayjs_min);
20965
20965
  var dayjs_minExports = dayjs_min.exports;
@@ -23636,28 +23636,28 @@ function createDOMPurify() {
23636
23636
  implementation: O,
23637
23637
  createNodeIterator: j,
23638
23638
  createDocumentFragment: W,
23639
- getElementsByTagName: sA
23639
+ getElementsByTagName: aA
23640
23640
  } = B, {
23641
- importNode: EA
23641
+ importNode: CA
23642
23642
  } = E;
23643
- let aA = {};
23643
+ let QA = {};
23644
23644
  g.isSupported = typeof entries == "function" && typeof U == "function" && O && O.createHTMLDocument !== void 0;
23645
23645
  const {
23646
- MUSTACHE_EXPR: QA,
23647
- ERB_EXPR: CA,
23648
- TMPLIT_EXPR: uA,
23649
- DATA_ATTR: tA,
23650
- ARIA_ATTR: X,
23651
- IS_SCRIPT_OR_DATA: V,
23652
- ATTR_WHITESPACE: iA
23646
+ MUSTACHE_EXPR: EA,
23647
+ ERB_EXPR: cA,
23648
+ TMPLIT_EXPR: pA,
23649
+ DATA_ATTR: oA,
23650
+ ARIA_ATTR: V,
23651
+ IS_SCRIPT_OR_DATA: AA,
23652
+ ATTR_WHITESPACE: nA
23653
23653
  } = EXPRESSIONS;
23654
23654
  let {
23655
- IS_ALLOWED_URI: AA
23656
- } = EXPRESSIONS, nA = null;
23657
- const cA = addToSet({}, [...html$1, ...svg$1, ...svgFilters, ...mathMl$1, ...text]);
23658
- let rA = null;
23659
- const IA = addToSet({}, [...html, ...svg, ...mathMl, ...xml]);
23660
- let lA = Object.seal(create(null, {
23655
+ IS_ALLOWED_URI: eA
23656
+ } = EXPRESSIONS, rA = null;
23657
+ const lA = addToSet({}, [...html$1, ...svg$1, ...svgFilters, ...mathMl$1, ...text]);
23658
+ let gA = null;
23659
+ const wA = addToSet({}, [...html, ...svg, ...mathMl, ...xml]);
23660
+ let IA = Object.seal(create(null, {
23661
23661
  tagNameCheck: {
23662
23662
  writable: !0,
23663
23663
  configurable: !1,
@@ -23676,40 +23676,40 @@ function createDOMPurify() {
23676
23676
  enumerable: !0,
23677
23677
  value: !1
23678
23678
  }
23679
- })), pA = null, MA = null, xA = !0, SA = !0, bA = !1, HA = !0, yA = !1, gA = !1, hA = !1, dA = !1, kA = !1, qA = !1, WA = !1, jA = !0, Ae = !1;
23680
- const te = "user-content-";
23681
- let KA = !0, TA = !1, GA = {}, vA = null;
23682
- const ge = addToSet({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
23683
- let YA = null;
23684
- const Be = addToSet({}, ["audio", "video", "img", "source", "image", "track"]);
23679
+ })), dA = null, NA = null, UA = !0, bA = !0, GA = !1, xA = !0, kA = !1, BA = !1, DA = !1, fA = !1, MA = !1, WA = !1, jA = !1, $A = !0, ee = !1;
23680
+ const oe = "user-content-";
23681
+ let YA = !0, vA = !1, RA = {}, OA = null;
23682
+ const Be = addToSet({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
23683
+ let TA = null;
23684
+ const se = addToSet({}, ["audio", "video", "img", "source", "image", "track"]);
23685
23685
  let N = null;
23686
23686
  const _ = addToSet({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), S = "http://www.w3.org/1998/Math/MathML", T = "http://www.w3.org/2000/svg", z = "http://www.w3.org/1999/xhtml";
23687
- let $ = z, eA = !1, DA = null;
23688
- const LA = addToSet({}, [S, T, z], stringToString);
23689
- let wA = null;
23690
- const mA = ["application/xhtml+xml", "text/html"], NA = "text/html";
23691
- let _A = null, oe = null;
23692
- const Ne = B.createElement("form"), ce = function(v) {
23687
+ let $ = z, tA = !1, uA = null;
23688
+ const FA = addToSet({}, [S, T, z], stringToString);
23689
+ let hA = null;
23690
+ const yA = ["application/xhtml+xml", "text/html"], LA = "text/html";
23691
+ let SA = null, ie = null;
23692
+ const Le = B.createElement("form"), le = function(v) {
23693
23693
  return v instanceof RegExp || v instanceof Function;
23694
- }, ae = function() {
23694
+ }, Qe = function() {
23695
23695
  let v = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
23696
- if (!(oe && oe === v)) {
23697
- if ((!v || typeof v != "object") && (v = {}), v = clone(v), wA = // eslint-disable-next-line unicorn/prefer-includes
23698
- mA.indexOf(v.PARSER_MEDIA_TYPE) === -1 ? wA = NA : wA = v.PARSER_MEDIA_TYPE, _A = wA === "application/xhtml+xml" ? stringToString : stringToLowerCase, nA = "ALLOWED_TAGS" in v ? addToSet({}, v.ALLOWED_TAGS, _A) : cA, rA = "ALLOWED_ATTR" in v ? addToSet({}, v.ALLOWED_ATTR, _A) : IA, DA = "ALLOWED_NAMESPACES" in v ? addToSet({}, v.ALLOWED_NAMESPACES, stringToString) : LA, N = "ADD_URI_SAFE_ATTR" in v ? addToSet(
23696
+ if (!(ie && ie === v)) {
23697
+ if ((!v || typeof v != "object") && (v = {}), v = clone(v), hA = // eslint-disable-next-line unicorn/prefer-includes
23698
+ yA.indexOf(v.PARSER_MEDIA_TYPE) === -1 ? hA = LA : hA = v.PARSER_MEDIA_TYPE, SA = hA === "application/xhtml+xml" ? stringToString : stringToLowerCase, rA = "ALLOWED_TAGS" in v ? addToSet({}, v.ALLOWED_TAGS, SA) : lA, gA = "ALLOWED_ATTR" in v ? addToSet({}, v.ALLOWED_ATTR, SA) : wA, uA = "ALLOWED_NAMESPACES" in v ? addToSet({}, v.ALLOWED_NAMESPACES, stringToString) : FA, N = "ADD_URI_SAFE_ATTR" in v ? addToSet(
23699
23699
  clone(_),
23700
23700
  // eslint-disable-line indent
23701
23701
  v.ADD_URI_SAFE_ATTR,
23702
23702
  // eslint-disable-line indent
23703
- _A
23703
+ SA
23704
23704
  // eslint-disable-line indent
23705
- ) : _, YA = "ADD_DATA_URI_TAGS" in v ? addToSet(
23706
- clone(Be),
23705
+ ) : _, TA = "ADD_DATA_URI_TAGS" in v ? addToSet(
23706
+ clone(se),
23707
23707
  // eslint-disable-line indent
23708
23708
  v.ADD_DATA_URI_TAGS,
23709
23709
  // eslint-disable-line indent
23710
- _A
23710
+ SA
23711
23711
  // eslint-disable-line indent
23712
- ) : Be, vA = "FORBID_CONTENTS" in v ? addToSet({}, v.FORBID_CONTENTS, _A) : ge, pA = "FORBID_TAGS" in v ? addToSet({}, v.FORBID_TAGS, _A) : {}, MA = "FORBID_ATTR" in v ? addToSet({}, v.FORBID_ATTR, _A) : {}, GA = "USE_PROFILES" in v ? v.USE_PROFILES : !1, xA = v.ALLOW_ARIA_ATTR !== !1, SA = v.ALLOW_DATA_ATTR !== !1, bA = v.ALLOW_UNKNOWN_PROTOCOLS || !1, HA = v.ALLOW_SELF_CLOSE_IN_ATTR !== !1, yA = v.SAFE_FOR_TEMPLATES || !1, gA = v.WHOLE_DOCUMENT || !1, kA = v.RETURN_DOM || !1, qA = v.RETURN_DOM_FRAGMENT || !1, WA = v.RETURN_TRUSTED_TYPE || !1, dA = v.FORCE_BODY || !1, jA = v.SANITIZE_DOM !== !1, Ae = v.SANITIZE_NAMED_PROPS || !1, KA = v.KEEP_CONTENT !== !1, TA = v.IN_PLACE || !1, AA = v.ALLOWED_URI_REGEXP || IS_ALLOWED_URI, $ = v.NAMESPACE || z, lA = v.CUSTOM_ELEMENT_HANDLING || {}, v.CUSTOM_ELEMENT_HANDLING && ce(v.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (lA.tagNameCheck = v.CUSTOM_ELEMENT_HANDLING.tagNameCheck), v.CUSTOM_ELEMENT_HANDLING && ce(v.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (lA.attributeNameCheck = v.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), v.CUSTOM_ELEMENT_HANDLING && typeof v.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (lA.allowCustomizedBuiltInElements = v.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), yA && (SA = !1), qA && (kA = !0), GA && (nA = addToSet({}, [...text]), rA = [], GA.html === !0 && (addToSet(nA, html$1), addToSet(rA, html)), GA.svg === !0 && (addToSet(nA, svg$1), addToSet(rA, svg), addToSet(rA, xml)), GA.svgFilters === !0 && (addToSet(nA, svgFilters), addToSet(rA, svg), addToSet(rA, xml)), GA.mathMl === !0 && (addToSet(nA, mathMl$1), addToSet(rA, mathMl), addToSet(rA, xml))), v.ADD_TAGS && (nA === cA && (nA = clone(nA)), addToSet(nA, v.ADD_TAGS, _A)), v.ADD_ATTR && (rA === IA && (rA = clone(rA)), addToSet(rA, v.ADD_ATTR, _A)), v.ADD_URI_SAFE_ATTR && addToSet(N, v.ADD_URI_SAFE_ATTR, _A), v.FORBID_CONTENTS && (vA === ge && (vA = clone(vA)), addToSet(vA, v.FORBID_CONTENTS, _A)), KA && (nA["#text"] = !0), gA && addToSet(nA, ["html", "head", "body"]), nA.table && (addToSet(nA, ["tbody"]), delete pA.tbody), v.TRUSTED_TYPES_POLICY) {
23712
+ ) : se, OA = "FORBID_CONTENTS" in v ? addToSet({}, v.FORBID_CONTENTS, SA) : Be, dA = "FORBID_TAGS" in v ? addToSet({}, v.FORBID_TAGS, SA) : {}, NA = "FORBID_ATTR" in v ? addToSet({}, v.FORBID_ATTR, SA) : {}, RA = "USE_PROFILES" in v ? v.USE_PROFILES : !1, UA = v.ALLOW_ARIA_ATTR !== !1, bA = v.ALLOW_DATA_ATTR !== !1, GA = v.ALLOW_UNKNOWN_PROTOCOLS || !1, xA = v.ALLOW_SELF_CLOSE_IN_ATTR !== !1, kA = v.SAFE_FOR_TEMPLATES || !1, BA = v.WHOLE_DOCUMENT || !1, MA = v.RETURN_DOM || !1, WA = v.RETURN_DOM_FRAGMENT || !1, jA = v.RETURN_TRUSTED_TYPE || !1, fA = v.FORCE_BODY || !1, $A = v.SANITIZE_DOM !== !1, ee = v.SANITIZE_NAMED_PROPS || !1, YA = v.KEEP_CONTENT !== !1, vA = v.IN_PLACE || !1, eA = v.ALLOWED_URI_REGEXP || IS_ALLOWED_URI, $ = v.NAMESPACE || z, IA = v.CUSTOM_ELEMENT_HANDLING || {}, v.CUSTOM_ELEMENT_HANDLING && le(v.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (IA.tagNameCheck = v.CUSTOM_ELEMENT_HANDLING.tagNameCheck), v.CUSTOM_ELEMENT_HANDLING && le(v.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (IA.attributeNameCheck = v.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), v.CUSTOM_ELEMENT_HANDLING && typeof v.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (IA.allowCustomizedBuiltInElements = v.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), kA && (bA = !1), WA && (MA = !0), RA && (rA = addToSet({}, [...text]), gA = [], RA.html === !0 && (addToSet(rA, html$1), addToSet(gA, html)), RA.svg === !0 && (addToSet(rA, svg$1), addToSet(gA, svg), addToSet(gA, xml)), RA.svgFilters === !0 && (addToSet(rA, svgFilters), addToSet(gA, svg), addToSet(gA, xml)), RA.mathMl === !0 && (addToSet(rA, mathMl$1), addToSet(gA, mathMl), addToSet(gA, xml))), v.ADD_TAGS && (rA === lA && (rA = clone(rA)), addToSet(rA, v.ADD_TAGS, SA)), v.ADD_ATTR && (gA === wA && (gA = clone(gA)), addToSet(gA, v.ADD_ATTR, SA)), v.ADD_URI_SAFE_ATTR && addToSet(N, v.ADD_URI_SAFE_ATTR, SA), v.FORBID_CONTENTS && (OA === Be && (OA = clone(OA)), addToSet(OA, v.FORBID_CONTENTS, SA)), YA && (rA["#text"] = !0), BA && addToSet(rA, ["html", "head", "body"]), rA.table && (addToSet(rA, ["tbody"]), delete dA.tbody), v.TRUSTED_TYPES_POLICY) {
23713
23713
  if (typeof v.TRUSTED_TYPES_POLICY.createHTML != "function")
23714
23714
  throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
23715
23715
  if (typeof v.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -23717,21 +23717,21 @@ function createDOMPurify() {
23717
23717
  J = v.TRUSTED_TYPES_POLICY, q = J.createHTML("");
23718
23718
  } else
23719
23719
  J === void 0 && (J = _createTrustedTypesPolicy(L, C)), J !== null && typeof q == "string" && (q = J.createHTML(""));
23720
- freeze && freeze(v), oe = v;
23721
- }
23722
- }, le = addToSet({}, ["mi", "mo", "mn", "ms", "mtext"]), we = addToSet({}, ["foreignobject", "desc", "title", "annotation-xml"]), Le = addToSet({}, ["title", "style", "font", "a", "script"]), se = addToSet({}, svg$1);
23723
- addToSet(se, svgFilters), addToSet(se, svgDisallowed);
23724
- const Qe = addToSet({}, mathMl$1);
23725
- addToSet(Qe, mathMlDisallowed);
23726
- const Fe = function(v) {
23727
- let BA = U(v);
23728
- (!BA || !BA.tagName) && (BA = {
23720
+ freeze && freeze(v), ie = v;
23721
+ }
23722
+ }, we = addToSet({}, ["mi", "mo", "mn", "ms", "mtext"]), he = addToSet({}, ["foreignobject", "desc", "title", "annotation-xml"]), Fe = addToSet({}, ["title", "style", "font", "a", "script"]), ae = addToSet({}, svg$1);
23723
+ addToSet(ae, svgFilters), addToSet(ae, svgDisallowed);
23724
+ const Ee = addToSet({}, mathMl$1);
23725
+ addToSet(Ee, mathMlDisallowed);
23726
+ const _e = function(v) {
23727
+ let sA = U(v);
23728
+ (!sA || !sA.tagName) && (sA = {
23729
23729
  namespaceURI: $,
23730
23730
  tagName: "template"
23731
23731
  });
23732
- const oA = stringToLowerCase(v.tagName), fA = stringToLowerCase(BA.tagName);
23733
- return DA[v.namespaceURI] ? v.namespaceURI === T ? BA.namespaceURI === z ? oA === "svg" : BA.namespaceURI === S ? oA === "svg" && (fA === "annotation-xml" || le[fA]) : !!se[oA] : v.namespaceURI === S ? BA.namespaceURI === z ? oA === "math" : BA.namespaceURI === T ? oA === "math" && we[fA] : !!Qe[oA] : v.namespaceURI === z ? BA.namespaceURI === T && !we[fA] || BA.namespaceURI === S && !le[fA] ? !1 : !Qe[oA] && (Le[oA] || !se[oA]) : !!(wA === "application/xhtml+xml" && DA[v.namespaceURI]) : !1;
23734
- }, ie = function(v) {
23732
+ const iA = stringToLowerCase(v.tagName), mA = stringToLowerCase(sA.tagName);
23733
+ return uA[v.namespaceURI] ? v.namespaceURI === T ? sA.namespaceURI === z ? iA === "svg" : sA.namespaceURI === S ? iA === "svg" && (mA === "annotation-xml" || we[mA]) : !!ae[iA] : v.namespaceURI === S ? sA.namespaceURI === z ? iA === "math" : sA.namespaceURI === T ? iA === "math" && he[mA] : !!Ee[iA] : v.namespaceURI === z ? sA.namespaceURI === T && !he[mA] || sA.namespaceURI === S && !we[mA] ? !1 : !Ee[iA] && (Fe[iA] || !ae[iA]) : !!(hA === "application/xhtml+xml" && uA[v.namespaceURI]) : !1;
23734
+ }, ne = function(v) {
23735
23735
  arrayPush(g.removed, {
23736
23736
  element: v
23737
23737
  });
@@ -23740,54 +23740,54 @@ function createDOMPurify() {
23740
23740
  } catch {
23741
23741
  v.remove();
23742
23742
  }
23743
- }, Ee = function(v, BA) {
23743
+ }, Ce = function(v, sA) {
23744
23744
  try {
23745
23745
  arrayPush(g.removed, {
23746
- attribute: BA.getAttributeNode(v),
23747
- from: BA
23746
+ attribute: sA.getAttributeNode(v),
23747
+ from: sA
23748
23748
  });
23749
23749
  } catch {
23750
23750
  arrayPush(g.removed, {
23751
23751
  attribute: null,
23752
- from: BA
23752
+ from: sA
23753
23753
  });
23754
23754
  }
23755
- if (BA.removeAttribute(v), v === "is" && !rA[v])
23756
- if (kA || qA)
23755
+ if (sA.removeAttribute(v), v === "is" && !gA[v])
23756
+ if (MA || WA)
23757
23757
  try {
23758
- ie(BA);
23758
+ ne(sA);
23759
23759
  } catch {
23760
23760
  }
23761
23761
  else
23762
23762
  try {
23763
- BA.setAttribute(v, "");
23763
+ sA.setAttribute(v, "");
23764
23764
  } catch {
23765
23765
  }
23766
- }, he = function(v) {
23767
- let BA = null, oA = null;
23768
- if (dA)
23766
+ }, De = function(v) {
23767
+ let sA = null, iA = null;
23768
+ if (fA)
23769
23769
  v = "<remove></remove>" + v;
23770
23770
  else {
23771
- const FA = stringMatch(v, /^[\r\n\t ]+/);
23772
- oA = FA && FA[0];
23771
+ const _A = stringMatch(v, /^[\r\n\t ]+/);
23772
+ iA = _A && _A[0];
23773
23773
  }
23774
- wA === "application/xhtml+xml" && $ === z && (v = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + v + "</body></html>");
23775
- const fA = J ? J.createHTML(v) : v;
23774
+ hA === "application/xhtml+xml" && $ === z && (v = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + v + "</body></html>");
23775
+ const mA = J ? J.createHTML(v) : v;
23776
23776
  if ($ === z)
23777
23777
  try {
23778
- BA = new M().parseFromString(fA, wA);
23778
+ sA = new M().parseFromString(mA, hA);
23779
23779
  } catch {
23780
23780
  }
23781
- if (!BA || !BA.documentElement) {
23782
- BA = O.createDocument($, "template", null);
23781
+ if (!sA || !sA.documentElement) {
23782
+ sA = O.createDocument($, "template", null);
23783
23783
  try {
23784
- BA.documentElement.innerHTML = eA ? q : fA;
23784
+ sA.documentElement.innerHTML = tA ? q : mA;
23785
23785
  } catch {
23786
23786
  }
23787
23787
  }
23788
- const RA = BA.body || BA.documentElement;
23789
- return v && oA && RA.insertBefore(B.createTextNode(oA), RA.childNodes[0] || null), $ === z ? sA.call(BA, gA ? "html" : "body")[0] : gA ? BA.documentElement : RA;
23790
- }, De = function(v) {
23788
+ const HA = sA.body || sA.documentElement;
23789
+ return v && iA && HA.insertBefore(B.createTextNode(iA), HA.childNodes[0] || null), $ === z ? aA.call(sA, BA ? "html" : "body")[0] : BA ? sA.documentElement : HA;
23790
+ }, ue = function(v) {
23791
23791
  return j.call(
23792
23792
  v.ownerDocument || v,
23793
23793
  v,
@@ -23795,122 +23795,122 @@ function createDOMPurify() {
23795
23795
  m.SHOW_ELEMENT | m.SHOW_COMMENT | m.SHOW_TEXT,
23796
23796
  null
23797
23797
  );
23798
- }, _e = function(v) {
23798
+ }, Se = function(v) {
23799
23799
  return v instanceof k && (typeof v.nodeName != "string" || typeof v.textContent != "string" || typeof v.removeChild != "function" || !(v.attributes instanceof y) || typeof v.removeAttribute != "function" || typeof v.setAttribute != "function" || typeof v.namespaceURI != "string" || typeof v.insertBefore != "function" || typeof v.hasChildNodes != "function");
23800
- }, ue = function(v) {
23800
+ }, pe = function(v) {
23801
23801
  return typeof h == "function" && v instanceof h;
23802
- }, $A = function(v, BA, oA) {
23803
- aA[v] && arrayForEach(aA[v], (fA) => {
23804
- fA.call(g, BA, oA, oe);
23802
+ }, XA = function(v, sA, iA) {
23803
+ QA[v] && arrayForEach(QA[v], (mA) => {
23804
+ mA.call(g, sA, iA, ie);
23805
23805
  });
23806
- }, pe = function(v) {
23807
- let BA = null;
23808
- if ($A("beforeSanitizeElements", v, null), _e(v))
23809
- return ie(v), !0;
23810
- const oA = _A(v.nodeName);
23811
- if ($A("uponSanitizeElement", v, {
23812
- tagName: oA,
23813
- allowedTags: nA
23814
- }), v.hasChildNodes() && !ue(v.firstElementChild) && regExpTest(/<[/\w]/g, v.innerHTML) && regExpTest(/<[/\w]/g, v.textContent))
23815
- return ie(v), !0;
23816
- if (!nA[oA] || pA[oA]) {
23817
- if (!pA[oA] && fe(oA) && (lA.tagNameCheck instanceof RegExp && regExpTest(lA.tagNameCheck, oA) || lA.tagNameCheck instanceof Function && lA.tagNameCheck(oA)))
23806
+ }, de = function(v) {
23807
+ let sA = null;
23808
+ if (XA("beforeSanitizeElements", v, null), Se(v))
23809
+ return ne(v), !0;
23810
+ const iA = SA(v.nodeName);
23811
+ if (XA("uponSanitizeElement", v, {
23812
+ tagName: iA,
23813
+ allowedTags: rA
23814
+ }), v.hasChildNodes() && !pe(v.firstElementChild) && regExpTest(/<[/\w]/g, v.innerHTML) && regExpTest(/<[/\w]/g, v.textContent))
23815
+ return ne(v), !0;
23816
+ if (!rA[iA] || dA[iA]) {
23817
+ if (!dA[iA] && me(iA) && (IA.tagNameCheck instanceof RegExp && regExpTest(IA.tagNameCheck, iA) || IA.tagNameCheck instanceof Function && IA.tagNameCheck(iA)))
23818
23818
  return !1;
23819
- if (KA && !vA[oA]) {
23820
- const fA = U(v) || v.parentNode, RA = Y(v) || v.childNodes;
23821
- if (RA && fA) {
23822
- const FA = RA.length;
23823
- for (let XA = FA - 1; XA >= 0; --XA)
23824
- fA.insertBefore(x(RA[XA], !0), H(v));
23819
+ if (YA && !OA[iA]) {
23820
+ const mA = U(v) || v.parentNode, HA = Y(v) || v.childNodes;
23821
+ if (HA && mA) {
23822
+ const _A = HA.length;
23823
+ for (let ZA = _A - 1; ZA >= 0; --ZA)
23824
+ mA.insertBefore(x(HA[ZA], !0), H(v));
23825
23825
  }
23826
23826
  }
23827
- return ie(v), !0;
23827
+ return ne(v), !0;
23828
23828
  }
23829
- return v instanceof D && !Fe(v) || (oA === "noscript" || oA === "noembed" || oA === "noframes") && regExpTest(/<\/no(script|embed|frames)/i, v.innerHTML) ? (ie(v), !0) : (yA && v.nodeType === 3 && (BA = v.textContent, arrayForEach([QA, CA, uA], (fA) => {
23830
- BA = stringReplace(BA, fA, " ");
23831
- }), v.textContent !== BA && (arrayPush(g.removed, {
23829
+ return v instanceof D && !_e(v) || (iA === "noscript" || iA === "noembed" || iA === "noframes") && regExpTest(/<\/no(script|embed|frames)/i, v.innerHTML) ? (ne(v), !0) : (kA && v.nodeType === 3 && (sA = v.textContent, arrayForEach([EA, cA, pA], (mA) => {
23830
+ sA = stringReplace(sA, mA, " ");
23831
+ }), v.textContent !== sA && (arrayPush(g.removed, {
23832
23832
  element: v.cloneNode()
23833
- }), v.textContent = BA)), $A("afterSanitizeElements", v, null), !1);
23834
- }, de = function(v, BA, oA) {
23835
- if (jA && (BA === "id" || BA === "name") && (oA in B || oA in Ne))
23833
+ }), v.textContent = sA)), XA("afterSanitizeElements", v, null), !1);
23834
+ }, fe = function(v, sA, iA) {
23835
+ if ($A && (sA === "id" || sA === "name") && (iA in B || iA in Le))
23836
23836
  return !1;
23837
- if (!(SA && !MA[BA] && regExpTest(tA, BA)) && !(xA && regExpTest(X, BA))) {
23838
- if (!rA[BA] || MA[BA]) {
23837
+ if (!(bA && !NA[sA] && regExpTest(oA, sA)) && !(UA && regExpTest(V, sA))) {
23838
+ if (!gA[sA] || NA[sA]) {
23839
23839
  if (
23840
23840
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
23841
23841
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
23842
23842
  // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
23843
- !(fe(v) && (lA.tagNameCheck instanceof RegExp && regExpTest(lA.tagNameCheck, v) || lA.tagNameCheck instanceof Function && lA.tagNameCheck(v)) && (lA.attributeNameCheck instanceof RegExp && regExpTest(lA.attributeNameCheck, BA) || lA.attributeNameCheck instanceof Function && lA.attributeNameCheck(BA)) || // Alternative, second condition checks if it's an `is`-attribute, AND
23843
+ !(me(v) && (IA.tagNameCheck instanceof RegExp && regExpTest(IA.tagNameCheck, v) || IA.tagNameCheck instanceof Function && IA.tagNameCheck(v)) && (IA.attributeNameCheck instanceof RegExp && regExpTest(IA.attributeNameCheck, sA) || IA.attributeNameCheck instanceof Function && IA.attributeNameCheck(sA)) || // Alternative, second condition checks if it's an `is`-attribute, AND
23844
23844
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
23845
- BA === "is" && lA.allowCustomizedBuiltInElements && (lA.tagNameCheck instanceof RegExp && regExpTest(lA.tagNameCheck, oA) || lA.tagNameCheck instanceof Function && lA.tagNameCheck(oA)))
23845
+ sA === "is" && IA.allowCustomizedBuiltInElements && (IA.tagNameCheck instanceof RegExp && regExpTest(IA.tagNameCheck, iA) || IA.tagNameCheck instanceof Function && IA.tagNameCheck(iA)))
23846
23846
  )
23847
23847
  return !1;
23848
- } else if (!N[BA] && !regExpTest(AA, stringReplace(oA, iA, "")) && !((BA === "src" || BA === "xlink:href" || BA === "href") && v !== "script" && stringIndexOf(oA, "data:") === 0 && YA[v]) && !(bA && !regExpTest(V, stringReplace(oA, iA, ""))) && oA)
23848
+ } else if (!N[sA] && !regExpTest(eA, stringReplace(iA, nA, "")) && !((sA === "src" || sA === "xlink:href" || sA === "href") && v !== "script" && stringIndexOf(iA, "data:") === 0 && TA[v]) && !(GA && !regExpTest(AA, stringReplace(iA, nA, ""))) && iA)
23849
23849
  return !1;
23850
23850
  }
23851
23851
  return !0;
23852
- }, fe = function(v) {
23853
- return v.indexOf("-") > 0;
23854
23852
  }, me = function(v) {
23855
- $A("beforeSanitizeAttributes", v, null);
23853
+ return v.indexOf("-") > 0;
23854
+ }, Me = function(v) {
23855
+ XA("beforeSanitizeAttributes", v, null);
23856
23856
  const {
23857
- attributes: BA
23857
+ attributes: sA
23858
23858
  } = v;
23859
- if (!BA)
23859
+ if (!sA)
23860
23860
  return;
23861
- const oA = {
23861
+ const iA = {
23862
23862
  attrName: "",
23863
23863
  attrValue: "",
23864
23864
  keepAttr: !0,
23865
- allowedAttributes: rA
23865
+ allowedAttributes: gA
23866
23866
  };
23867
- let fA = BA.length;
23868
- for (; fA--; ) {
23869
- const RA = BA[fA], {
23870
- name: FA,
23871
- namespaceURI: XA,
23872
- value: ZA
23873
- } = RA, OA = _A(FA);
23874
- let UA = FA === "value" ? ZA : stringTrim(ZA);
23875
- if (oA.attrName = OA, oA.attrValue = UA, oA.keepAttr = !0, oA.forceKeepAttr = void 0, $A("uponSanitizeAttribute", v, oA), UA = oA.attrValue, oA.forceKeepAttr || (Ee(FA, v), !oA.keepAttr))
23867
+ let mA = sA.length;
23868
+ for (; mA--; ) {
23869
+ const HA = sA[mA], {
23870
+ name: _A,
23871
+ namespaceURI: ZA,
23872
+ value: Ae
23873
+ } = HA, JA = SA(_A);
23874
+ let KA = _A === "value" ? Ae : stringTrim(Ae);
23875
+ if (iA.attrName = JA, iA.attrValue = KA, iA.keepAttr = !0, iA.forceKeepAttr = void 0, XA("uponSanitizeAttribute", v, iA), KA = iA.attrValue, iA.forceKeepAttr || (Ce(_A, v), !iA.keepAttr))
23876
23876
  continue;
23877
- if (!HA && regExpTest(/\/>/i, UA)) {
23878
- Ee(FA, v);
23877
+ if (!xA && regExpTest(/\/>/i, KA)) {
23878
+ Ce(_A, v);
23879
23879
  continue;
23880
23880
  }
23881
- yA && arrayForEach([QA, CA, uA], (be) => {
23882
- UA = stringReplace(UA, be, " ");
23881
+ kA && arrayForEach([EA, cA, pA], (Ge) => {
23882
+ KA = stringReplace(KA, Ge, " ");
23883
23883
  });
23884
- const Me = _A(v.nodeName);
23885
- if (de(Me, OA, UA)) {
23886
- if (Ae && (OA === "id" || OA === "name") && (Ee(FA, v), UA = te + UA), J && typeof L == "object" && typeof L.getAttributeType == "function" && !XA)
23887
- switch (L.getAttributeType(Me, OA)) {
23884
+ const Ne = SA(v.nodeName);
23885
+ if (fe(Ne, JA, KA)) {
23886
+ if (ee && (JA === "id" || JA === "name") && (Ce(_A, v), KA = oe + KA), J && typeof L == "object" && typeof L.getAttributeType == "function" && !ZA)
23887
+ switch (L.getAttributeType(Ne, JA)) {
23888
23888
  case "TrustedHTML": {
23889
- UA = J.createHTML(UA);
23889
+ KA = J.createHTML(KA);
23890
23890
  break;
23891
23891
  }
23892
23892
  case "TrustedScriptURL": {
23893
- UA = J.createScriptURL(UA);
23893
+ KA = J.createScriptURL(KA);
23894
23894
  break;
23895
23895
  }
23896
23896
  }
23897
23897
  try {
23898
- XA ? v.setAttributeNS(XA, FA, UA) : v.setAttribute(FA, UA), arrayPop(g.removed);
23898
+ ZA ? v.setAttributeNS(ZA, _A, KA) : v.setAttribute(_A, KA), arrayPop(g.removed);
23899
23899
  } catch {
23900
23900
  }
23901
23901
  }
23902
23902
  }
23903
- $A("afterSanitizeAttributes", v, null);
23904
- }, Se = function v(BA) {
23905
- let oA = null;
23906
- const fA = De(BA);
23907
- for ($A("beforeSanitizeShadowDOM", BA, null); oA = fA.nextNode(); )
23908
- $A("uponSanitizeShadowNode", oA, null), !pe(oA) && (oA.content instanceof I && v(oA.content), me(oA));
23909
- $A("afterSanitizeShadowDOM", BA, null);
23903
+ XA("afterSanitizeAttributes", v, null);
23904
+ }, be = function v(sA) {
23905
+ let iA = null;
23906
+ const mA = ue(sA);
23907
+ for (XA("beforeSanitizeShadowDOM", sA, null); iA = mA.nextNode(); )
23908
+ XA("uponSanitizeShadowNode", iA, null), !de(iA) && (iA.content instanceof I && v(iA.content), Me(iA));
23909
+ XA("afterSanitizeShadowDOM", sA, null);
23910
23910
  };
23911
23911
  return g.sanitize = function(v) {
23912
- let BA = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, oA = null, fA = null, RA = null, FA = null;
23913
- if (eA = !v, eA && (v = "<!-->"), typeof v != "string" && !ue(v))
23912
+ let sA = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, iA = null, mA = null, HA = null, _A = null;
23913
+ if (tA = !v, tA && (v = "<!-->"), typeof v != "string" && !pe(v))
23914
23914
  if (typeof v.toString == "function") {
23915
23915
  if (v = v.toString(), typeof v != "string")
23916
23916
  throw typeErrorCreate("dirty is not a string, aborting");
@@ -23918,58 +23918,58 @@ function createDOMPurify() {
23918
23918
  throw typeErrorCreate("toString is not a function");
23919
23919
  if (!g.isSupported)
23920
23920
  return v;
23921
- if (hA || ae(BA), g.removed = [], typeof v == "string" && (TA = !1), TA) {
23921
+ if (DA || Qe(sA), g.removed = [], typeof v == "string" && (vA = !1), vA) {
23922
23922
  if (v.nodeName) {
23923
- const OA = _A(v.nodeName);
23924
- if (!nA[OA] || pA[OA])
23923
+ const JA = SA(v.nodeName);
23924
+ if (!rA[JA] || dA[JA])
23925
23925
  throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place");
23926
23926
  }
23927
23927
  } else if (v instanceof h)
23928
- oA = he("<!---->"), fA = oA.ownerDocument.importNode(v, !0), fA.nodeType === 1 && fA.nodeName === "BODY" || fA.nodeName === "HTML" ? oA = fA : oA.appendChild(fA);
23928
+ iA = De("<!---->"), mA = iA.ownerDocument.importNode(v, !0), mA.nodeType === 1 && mA.nodeName === "BODY" || mA.nodeName === "HTML" ? iA = mA : iA.appendChild(mA);
23929
23929
  else {
23930
- if (!kA && !yA && !gA && // eslint-disable-next-line unicorn/prefer-includes
23930
+ if (!MA && !kA && !BA && // eslint-disable-next-line unicorn/prefer-includes
23931
23931
  v.indexOf("<") === -1)
23932
- return J && WA ? J.createHTML(v) : v;
23933
- if (oA = he(v), !oA)
23934
- return kA ? null : WA ? q : "";
23935
- }
23936
- oA && dA && ie(oA.firstChild);
23937
- const XA = De(TA ? v : oA);
23938
- for (; RA = XA.nextNode(); )
23939
- pe(RA) || (RA.content instanceof I && Se(RA.content), me(RA));
23940
- if (TA)
23932
+ return J && jA ? J.createHTML(v) : v;
23933
+ if (iA = De(v), !iA)
23934
+ return MA ? null : jA ? q : "";
23935
+ }
23936
+ iA && fA && ne(iA.firstChild);
23937
+ const ZA = ue(vA ? v : iA);
23938
+ for (; HA = ZA.nextNode(); )
23939
+ de(HA) || (HA.content instanceof I && be(HA.content), Me(HA));
23940
+ if (vA)
23941
23941
  return v;
23942
- if (kA) {
23943
- if (qA)
23944
- for (FA = W.call(oA.ownerDocument); oA.firstChild; )
23945
- FA.appendChild(oA.firstChild);
23942
+ if (MA) {
23943
+ if (WA)
23944
+ for (_A = W.call(iA.ownerDocument); iA.firstChild; )
23945
+ _A.appendChild(iA.firstChild);
23946
23946
  else
23947
- FA = oA;
23948
- return (rA.shadowroot || rA.shadowrootmode) && (FA = EA.call(E, FA, !0)), FA;
23949
- }
23950
- let ZA = gA ? oA.outerHTML : oA.innerHTML;
23951
- return gA && nA["!doctype"] && oA.ownerDocument && oA.ownerDocument.doctype && oA.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, oA.ownerDocument.doctype.name) && (ZA = "<!DOCTYPE " + oA.ownerDocument.doctype.name + `>
23952
- ` + ZA), yA && arrayForEach([QA, CA, uA], (OA) => {
23953
- ZA = stringReplace(ZA, OA, " ");
23954
- }), J && WA ? J.createHTML(ZA) : ZA;
23947
+ _A = iA;
23948
+ return (gA.shadowroot || gA.shadowrootmode) && (_A = CA.call(E, _A, !0)), _A;
23949
+ }
23950
+ let Ae = BA ? iA.outerHTML : iA.innerHTML;
23951
+ return BA && rA["!doctype"] && iA.ownerDocument && iA.ownerDocument.doctype && iA.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, iA.ownerDocument.doctype.name) && (Ae = "<!DOCTYPE " + iA.ownerDocument.doctype.name + `>
23952
+ ` + Ae), kA && arrayForEach([EA, cA, pA], (JA) => {
23953
+ Ae = stringReplace(Ae, JA, " ");
23954
+ }), J && jA ? J.createHTML(Ae) : Ae;
23955
23955
  }, g.setConfig = function() {
23956
23956
  let v = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
23957
- ae(v), hA = !0;
23957
+ Qe(v), DA = !0;
23958
23958
  }, g.clearConfig = function() {
23959
- oe = null, hA = !1;
23960
- }, g.isValidAttribute = function(v, BA, oA) {
23961
- oe || ae({});
23962
- const fA = _A(v), RA = _A(BA);
23963
- return de(fA, RA, oA);
23964
- }, g.addHook = function(v, BA) {
23965
- typeof BA == "function" && (aA[v] = aA[v] || [], arrayPush(aA[v], BA));
23959
+ ie = null, DA = !1;
23960
+ }, g.isValidAttribute = function(v, sA, iA) {
23961
+ ie || Qe({});
23962
+ const mA = SA(v), HA = SA(sA);
23963
+ return fe(mA, HA, iA);
23964
+ }, g.addHook = function(v, sA) {
23965
+ typeof sA == "function" && (QA[v] = QA[v] || [], arrayPush(QA[v], sA));
23966
23966
  }, g.removeHook = function(v) {
23967
- if (aA[v])
23968
- return arrayPop(aA[v]);
23967
+ if (QA[v])
23968
+ return arrayPop(QA[v]);
23969
23969
  }, g.removeHooks = function(v) {
23970
- aA[v] && (aA[v] = []);
23970
+ QA[v] && (QA[v] = []);
23971
23971
  }, g.removeAllHooks = function() {
23972
- aA = {};
23972
+ QA = {};
23973
23973
  }, g;
23974
23974
  }
23975
23975
  var purify = createDOMPurify();
@@ -26715,7 +26715,7 @@ const updateCurrentConfig = (A, g) => {
26715
26715
  }, checkConfig = (A) => {
26716
26716
  A && (A.lazyLoadedDiagrams || A.loadExternalDiagramsAtStartup) && issueWarning("LAZY_LOAD_DEPRECATED");
26717
26717
  }, id$l = "c4", detector$l = (A) => /^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(A), loader$m = async () => {
26718
- const { diagram: A } = await import("./c4Diagram-b947cdbb-BBGJ9ivn-Dwz3JGTI.js");
26718
+ const { diagram: A } = await import("./c4Diagram-b947cdbb-BBGJ9ivn-BA4nSYfd.js");
26719
26719
  return { id: id$l, diagram: A };
26720
26720
  }, plugin$j = {
26721
26721
  id: id$l,
@@ -26725,7 +26725,7 @@ const updateCurrentConfig = (A, g) => {
26725
26725
  var B, E;
26726
26726
  return ((B = g == null ? void 0 : g.flowchart) == null ? void 0 : B.defaultRenderer) === "dagre-wrapper" || ((E = g == null ? void 0 : g.flowchart) == null ? void 0 : E.defaultRenderer) === "elk" ? !1 : /^\s*graph/.test(A);
26727
26727
  }, loader$l = async () => {
26728
- const { diagram: A } = await import("./flowDiagram-d949d7c1-Boa20b_n-BKdBxRnq.js");
26728
+ const { diagram: A } = await import("./flowDiagram-d949d7c1-Boa20b_n-CJ3aILFD.js");
26729
26729
  return { id: id$k, diagram: A };
26730
26730
  }, plugin$i = {
26731
26731
  id: id$k,
@@ -26735,70 +26735,70 @@ const updateCurrentConfig = (A, g) => {
26735
26735
  var B, E, C;
26736
26736
  return ((B = g == null ? void 0 : g.flowchart) == null ? void 0 : B.defaultRenderer) === "dagre-d3" || ((E = g == null ? void 0 : g.flowchart) == null ? void 0 : E.defaultRenderer) === "elk" ? !1 : /^\s*graph/.test(A) && ((C = g == null ? void 0 : g.flowchart) == null ? void 0 : C.defaultRenderer) === "dagre-wrapper" ? !0 : /^\s*flowchart/.test(A);
26737
26737
  }, loader$k = async () => {
26738
- const { diagram: A } = await import("./flowDiagram-v2-49332944-BJtijxhz-BfL0l3kS.js");
26738
+ const { diagram: A } = await import("./flowDiagram-v2-49332944-BJtijxhz-Cgd4t08U.js");
26739
26739
  return { id: id$j, diagram: A };
26740
26740
  }, plugin$h = {
26741
26741
  id: id$j,
26742
26742
  detector: detector$j,
26743
26743
  loader: loader$k
26744
26744
  }, flowchartV2 = plugin$h, id$i = "er", detector$i = (A) => /^\s*erDiagram/.test(A), loader$j = async () => {
26745
- const { diagram: A } = await import("./erDiagram-0ea73325-C3DQ6B1e-DjAGdzcu.js");
26745
+ const { diagram: A } = await import("./erDiagram-0ea73325-C3DQ6B1e-GwhT3lGQ.js");
26746
26746
  return { id: id$i, diagram: A };
26747
26747
  }, plugin$g = {
26748
26748
  id: id$i,
26749
26749
  detector: detector$i,
26750
26750
  loader: loader$j
26751
26751
  }, er = plugin$g, id$h = "gitGraph", detector$h = (A) => /^\s*gitGraph/.test(A), loader$i = async () => {
26752
- const { diagram: A } = await import("./gitGraphDiagram-b9d81de9-D1rNIGL0-BG2n_b9U.js");
26752
+ const { diagram: A } = await import("./gitGraphDiagram-b9d81de9-D1rNIGL0-DDkwKLsk.js");
26753
26753
  return { id: id$h, diagram: A };
26754
26754
  }, plugin$f = {
26755
26755
  id: id$h,
26756
26756
  detector: detector$h,
26757
26757
  loader: loader$i
26758
26758
  }, git = plugin$f, id$g = "gantt", detector$g = (A) => /^\s*gantt/.test(A), loader$h = async () => {
26759
- const { diagram: A } = await import("./ganttDiagram-5c869e3b-CRDFjzTp-C3-yl36r.js");
26759
+ const { diagram: A } = await import("./ganttDiagram-5c869e3b-CRDFjzTp-lNK9bq-O.js");
26760
26760
  return { id: id$g, diagram: A };
26761
26761
  }, plugin$e = {
26762
26762
  id: id$g,
26763
26763
  detector: detector$g,
26764
26764
  loader: loader$h
26765
26765
  }, gantt = plugin$e, id$f = "info", detector$f = (A) => /^\s*info/.test(A), loader$g = async () => {
26766
- const { diagram: A } = await import("./infoDiagram-db7b18fc-DKsewKnu-nKlnfk12.js");
26766
+ const { diagram: A } = await import("./infoDiagram-db7b18fc-DKsewKnu-CWVarnHo.js");
26767
26767
  return { id: id$f, diagram: A };
26768
26768
  }, info = {
26769
26769
  id: id$f,
26770
26770
  detector: detector$f,
26771
26771
  loader: loader$g
26772
26772
  }, id$e = "pie", detector$e = (A) => /^\s*pie/.test(A), loader$f = async () => {
26773
- const { diagram: A } = await import("./pieDiagram-b0208e96-Cyz2Kcfu-BKQLF9sW.js");
26773
+ const { diagram: A } = await import("./pieDiagram-b0208e96-Cyz2Kcfu-B1Q8dscS.js");
26774
26774
  return { id: id$e, diagram: A };
26775
26775
  }, pie = {
26776
26776
  id: id$e,
26777
26777
  detector: detector$e,
26778
26778
  loader: loader$f
26779
26779
  }, id$d = "quadrantChart", detector$d = (A) => /^\s*quadrantChart/.test(A), loader$e = async () => {
26780
- const { diagram: A } = await import("./quadrantDiagram-0332be45-CDMkEQj0-B8KMwkcO.js");
26780
+ const { diagram: A } = await import("./quadrantDiagram-0332be45-CDMkEQj0-D0ioHd_P.js");
26781
26781
  return { id: id$d, diagram: A };
26782
26782
  }, plugin$d = {
26783
26783
  id: id$d,
26784
26784
  detector: detector$d,
26785
26785
  loader: loader$e
26786
26786
  }, quadrantChart = plugin$d, id$c = "xychart", detector$c = (A) => /^\s*xychart-beta/.test(A), loader$d = async () => {
26787
- const { diagram: A } = await import("./xychartDiagram-e50adddc-C1fuuOEQ-CF13knJk.js");
26787
+ const { diagram: A } = await import("./xychartDiagram-e50adddc-C1fuuOEQ-DHvZ99O1.js");
26788
26788
  return { id: id$c, diagram: A };
26789
26789
  }, plugin$c = {
26790
26790
  id: id$c,
26791
26791
  detector: detector$c,
26792
26792
  loader: loader$d
26793
26793
  }, xychart = plugin$c, id$b = "requirement", detector$b = (A) => /^\s*requirement(Diagram)?/.test(A), loader$c = async () => {
26794
- const { diagram: A } = await import("./requirementDiagram-bf7890df-Jk3SQ-Q1-ub7Z0GPl.js");
26794
+ const { diagram: A } = await import("./requirementDiagram-bf7890df-Jk3SQ-Q1-BB9UHuUh.js");
26795
26795
  return { id: id$b, diagram: A };
26796
26796
  }, plugin$b = {
26797
26797
  id: id$b,
26798
26798
  detector: detector$b,
26799
26799
  loader: loader$c
26800
26800
  }, requirement = plugin$b, id$a = "sequence", detector$a = (A) => /^\s*sequenceDiagram/.test(A), loader$b = async () => {
26801
- const { diagram: A } = await import("./sequenceDiagram-c18d009d-B4IxGCEM-B3uFgxU_.js");
26801
+ const { diagram: A } = await import("./sequenceDiagram-c18d009d-B4IxGCEM-DgvEmabG.js");
26802
26802
  return { id: id$a, diagram: A };
26803
26803
  }, plugin$a = {
26804
26804
  id: id$a,
@@ -26808,7 +26808,7 @@ const updateCurrentConfig = (A, g) => {
26808
26808
  var B;
26809
26809
  return ((B = g == null ? void 0 : g.class) == null ? void 0 : B.defaultRenderer) === "dagre-wrapper" ? !1 : /^\s*classDiagram/.test(A);
26810
26810
  }, loader$a = async () => {
26811
- const { diagram: A } = await import("./classDiagram-35230388-CRYNduH8-BOSSyxwU.js");
26811
+ const { diagram: A } = await import("./classDiagram-35230388-CRYNduH8-CLsxllrW.js");
26812
26812
  return { id: id$9, diagram: A };
26813
26813
  }, plugin$9 = {
26814
26814
  id: id$9,
@@ -26818,7 +26818,7 @@ const updateCurrentConfig = (A, g) => {
26818
26818
  var B;
26819
26819
  return /^\s*classDiagram/.test(A) && ((B = g == null ? void 0 : g.class) == null ? void 0 : B.defaultRenderer) === "dagre-wrapper" ? !0 : /^\s*classDiagram-v2/.test(A);
26820
26820
  }, loader$9 = async () => {
26821
- const { diagram: A } = await import("./classDiagram-v2-412acd34-5HbyJrnL-ST64CPx5.js");
26821
+ const { diagram: A } = await import("./classDiagram-v2-412acd34-5HbyJrnL-DB1xO44x.js");
26822
26822
  return { id: id$8, diagram: A };
26823
26823
  }, plugin$8 = {
26824
26824
  id: id$8,
@@ -26828,7 +26828,7 @@ const updateCurrentConfig = (A, g) => {
26828
26828
  var B;
26829
26829
  return ((B = g == null ? void 0 : g.state) == null ? void 0 : B.defaultRenderer) === "dagre-wrapper" ? !1 : /^\s*stateDiagram/.test(A);
26830
26830
  }, loader$8 = async () => {
26831
- const { diagram: A } = await import("./stateDiagram-43596fc0-0xEMkbt_-BALY6uIB.js");
26831
+ const { diagram: A } = await import("./stateDiagram-43596fc0-0xEMkbt_-jFUk_xdU.js");
26832
26832
  return { id: id$7, diagram: A };
26833
26833
  }, plugin$7 = {
26834
26834
  id: id$7,
@@ -26838,14 +26838,14 @@ const updateCurrentConfig = (A, g) => {
26838
26838
  var B;
26839
26839
  return !!(/^\s*stateDiagram-v2/.test(A) || /^\s*stateDiagram/.test(A) && ((B = g == null ? void 0 : g.state) == null ? void 0 : B.defaultRenderer) === "dagre-wrapper");
26840
26840
  }, loader$7 = async () => {
26841
- const { diagram: A } = await import("./stateDiagram-v2-2ead4f9c-DS4afpcC-B7o3rR3l.js");
26841
+ const { diagram: A } = await import("./stateDiagram-v2-2ead4f9c-DS4afpcC-jDCqPtGk.js");
26842
26842
  return { id: id$6, diagram: A };
26843
26843
  }, plugin$6 = {
26844
26844
  id: id$6,
26845
26845
  detector: detector$6,
26846
26846
  loader: loader$7
26847
26847
  }, stateV2 = plugin$6, id$5 = "journey", detector$5 = (A) => /^\s*journey/.test(A), loader$6 = async () => {
26848
- const { diagram: A } = await import("./journeyDiagram-d5636530-ClddNDmR-DXRHq-4M.js");
26848
+ const { diagram: A } = await import("./journeyDiagram-d5636530-ClddNDmR-ywsNZNTr.js");
26849
26849
  return { id: id$5, diagram: A };
26850
26850
  }, plugin$5 = {
26851
26851
  id: id$5,
@@ -27016,35 +27016,35 @@ const selectSvgElement = (A) => {
27016
27016
  /^\s*flowchart|graph/.test(A) && ((B = g == null ? void 0 : g.flowchart) == null ? void 0 : B.defaultRenderer) === "elk")
27017
27017
  );
27018
27018
  }, loader$5 = async () => {
27019
- const { diagram: A } = await import("./flowchart-elk-definition-27cc417a-BBD3LS9k-DhfRKjaQ.js");
27019
+ const { diagram: A } = await import("./flowchart-elk-definition-27cc417a-BBD3LS9k-Bb9_HTfE.js");
27020
27020
  return { id: id$4, diagram: A };
27021
27021
  }, plugin$4 = {
27022
27022
  id: id$4,
27023
27023
  detector: detector$4,
27024
27024
  loader: loader$5
27025
27025
  }, flowchartElk = plugin$4, id$3 = "timeline", detector$3 = (A) => /^\s*timeline/.test(A), loader$4 = async () => {
27026
- const { diagram: A } = await import("./timeline-definition-d977decf-BqZwyTB6-C3j7tbKa.js");
27026
+ const { diagram: A } = await import("./timeline-definition-d977decf-BqZwyTB6-qFhObMdA.js");
27027
27027
  return { id: id$3, diagram: A };
27028
27028
  }, plugin$3 = {
27029
27029
  id: id$3,
27030
27030
  detector: detector$3,
27031
27031
  loader: loader$4
27032
27032
  }, timeline = plugin$3, id$2 = "mindmap", detector$2 = (A) => /^\s*mindmap/.test(A), loader$3 = async () => {
27033
- const { diagram: A } = await import("./mindmap-definition-377f8f1f-BwEJ-DVg-DWk6Jo2n.js");
27033
+ const { diagram: A } = await import("./mindmap-definition-377f8f1f-BwEJ-DVg-DeBewnKQ.js");
27034
27034
  return { id: id$2, diagram: A };
27035
27035
  }, plugin$2 = {
27036
27036
  id: id$2,
27037
27037
  detector: detector$2,
27038
27038
  loader: loader$3
27039
27039
  }, mindmap = plugin$2, id$1 = "sankey", detector$1 = (A) => /^\s*sankey-beta/.test(A), loader$2 = async () => {
27040
- const { diagram: A } = await import("./sankeyDiagram-0acdec17-BJuIUJd_-BnkIVf8S.js");
27040
+ const { diagram: A } = await import("./sankeyDiagram-0acdec17-BJuIUJd_-Ce7q-NNk.js");
27041
27041
  return { id: id$1, diagram: A };
27042
27042
  }, plugin$1 = {
27043
27043
  id: id$1,
27044
27044
  detector: detector$1,
27045
27045
  loader: loader$2
27046
27046
  }, sankey = plugin$1, id = "block", detector = (A) => /^\s*block-beta/.test(A), loader$1 = async () => {
27047
- const { diagram: A } = await import("./blockDiagram-6b2b5046-BabM1eIl-C85stHtj.js");
27047
+ const { diagram: A } = await import("./blockDiagram-6b2b5046-BabM1eIl-BiFw3WJ6.js");
27048
27048
  return { id, diagram: A };
27049
27049
  }, plugin = {
27050
27050
  id,
@@ -28310,15 +28310,15 @@ const removeExistingElements = (A, g, B, E) => {
28310
28310
  const Y = y.securityLevel === SECURITY_LVL_SANDBOX, U = y.securityLevel === SECURITY_LVL_LOOSE, J = y.fontFamily;
28311
28311
  if (B !== void 0) {
28312
28312
  if (B && (B.innerHTML = ""), Y) {
28313
- const AA = sandboxedIframe(select(B), M);
28314
- H = select(AA.nodes()[0].contentDocument.body), H.node().style.margin = 0;
28313
+ const eA = sandboxedIframe(select(B), M);
28314
+ H = select(eA.nodes()[0].contentDocument.body), H.node().style.margin = 0;
28315
28315
  } else
28316
28316
  H = select(B);
28317
28317
  appendDivSvgG(H, A, F, `font-family: ${J}`, XMLNS_XLINK_STD);
28318
28318
  } else {
28319
28319
  if (removeExistingElements(document, A, F, M), Y) {
28320
- const AA = sandboxedIframe(select("body"), M);
28321
- H = select(AA.nodes()[0].contentDocument.body), H.node().style.margin = 0;
28320
+ const eA = sandboxedIframe(select("body"), M);
28321
+ H = select(eA.nodes()[0].contentDocument.body), H.node().style.margin = 0;
28322
28322
  } else
28323
28323
  H = select("body");
28324
28324
  appendDivSvgG(H, A, F);
@@ -28326,32 +28326,32 @@ const removeExistingElements = (A, g, B, E) => {
28326
28326
  let q, O;
28327
28327
  try {
28328
28328
  q = await getDiagramFromText(g, { title: m.title });
28329
- } catch (AA) {
28330
- q = new Diagram("error"), O = AA;
28329
+ } catch (eA) {
28330
+ q = new Diagram("error"), O = eA;
28331
28331
  }
28332
- const j = H.select(x).node(), W = q.type, sA = j.firstChild, EA = sA.firstChild, aA = (C = (E = q.renderer).getClasses) == null ? void 0 : C.call(E, g, q), QA = createUserStyles(y, W, aA, k), CA = document.createElement("style");
28333
- CA.innerHTML = QA, sA.insertBefore(CA, EA);
28332
+ const j = H.select(x).node(), W = q.type, aA = j.firstChild, CA = aA.firstChild, QA = (C = (E = q.renderer).getClasses) == null ? void 0 : C.call(E, g, q), EA = createUserStyles(y, W, QA, k), cA = document.createElement("style");
28333
+ cA.innerHTML = EA, aA.insertBefore(cA, CA);
28334
28334
  try {
28335
28335
  await q.renderer.draw(g, A, version, q);
28336
- } catch (AA) {
28337
- throw errorRenderer.draw(g, A, version), AA;
28338
- }
28339
- const uA = H.select(`${x} svg`), tA = (w = (I = q.db).getAccTitle) == null ? void 0 : w.call(I), X = (D = (h = q.db).getAccDescription) == null ? void 0 : D.call(h);
28340
- addA11yInfo(W, uA, tA, X), H.select(`[id="${A}"]`).selectAll("foreignobject > *").attr("xmlns", XMLNS_XHTML_STD);
28341
- let V = H.select(x).node().innerHTML;
28342
- if (log$1.debug("config.arrowMarkerAbsolute", y.arrowMarkerAbsolute), V = cleanUpSvgCode(V, Y, evaluate(y.arrowMarkerAbsolute)), Y) {
28343
- const AA = H.select(x + " svg").node();
28344
- V = putIntoIFrame(V, AA);
28336
+ } catch (eA) {
28337
+ throw errorRenderer.draw(g, A, version), eA;
28338
+ }
28339
+ const pA = H.select(`${x} svg`), oA = (w = (I = q.db).getAccTitle) == null ? void 0 : w.call(I), V = (D = (h = q.db).getAccDescription) == null ? void 0 : D.call(h);
28340
+ addA11yInfo(W, pA, oA, V), H.select(`[id="${A}"]`).selectAll("foreignobject > *").attr("xmlns", XMLNS_XHTML_STD);
28341
+ let AA = H.select(x).node().innerHTML;
28342
+ if (log$1.debug("config.arrowMarkerAbsolute", y.arrowMarkerAbsolute), AA = cleanUpSvgCode(AA, Y, evaluate(y.arrowMarkerAbsolute)), Y) {
28343
+ const eA = H.select(x + " svg").node();
28344
+ AA = putIntoIFrame(AA, eA);
28345
28345
  } else
28346
- U || (V = purify.sanitize(V, {
28346
+ U || (AA = purify.sanitize(AA, {
28347
28347
  ADD_TAGS: DOMPURIFY_TAGS,
28348
28348
  ADD_ATTR: DOMPURIFY_ATTR
28349
28349
  }));
28350
28350
  if (attachFunctions(), O)
28351
28351
  throw O;
28352
- const iA = select(Y ? L : x).node();
28353
- return iA && "remove" in iA && iA.remove(), {
28354
- svg: V,
28352
+ const nA = select(Y ? L : x).node();
28353
+ return nA && "remove" in nA && nA.remove(), {
28354
+ svg: AA,
28355
28355
  bindFunctions: q.db.bindFunctions
28356
28356
  };
28357
28357
  };
@@ -28617,18 +28617,18 @@ const executeQueue = async () => {
28617
28617
  },
28618
28618
  emits: ["update:modelValue", "update:frontmatter", "save", "cancel", "mode", "fullscreen"],
28619
28619
  setup(A, { emit: g }) {
28620
- useCssVars((gA) => ({
28621
- cad86c72: yA.value,
28622
- "0f1ebfa2": rA.value,
28623
- "5aa727dd": gA.$props.fullscreenZIndex,
28624
- "74eca6d0": HA.value,
28620
+ useCssVars((BA) => ({
28621
+ cad86c72: kA.value,
28622
+ "0f1ebfa2": gA.value,
28623
+ "5aa727dd": BA.$props.fullscreenZIndex,
28624
+ "74eca6d0": xA.value,
28625
28625
  "6fe42ba3": unref(TOOLBAR_HEIGHT)
28626
28626
  }));
28627
28627
  const B = A, E = g, C = ref(null), I = ref(null), { init: w, md: h } = composables.useMarkdownIt(), D = v4(), m = computed(() => `markdown-ui-${D}`), y = computed(() => `markdown-ui-textarea-${D}`), k = computed(() => `scrollable-${D}`), M = computed(() => B.tabSize), L = usePreferredColorScheme(), F = computed(() => B.theme ? B.theme : L.value === "dark" ? L.value : "light"), x = ref(["edit", "split", "preview"].includes(B.mode) && B.editable ? B.mode : "read"), H = ref(!1), Y = ref(!1);
28628
28628
  provide(UNIQUE_ID_INJECTION_KEY, D), provide(TEXTAREA_ID_INJECTION_KEY, y), provide(MODE_INJECTION_KEY, x), provide(EDITABLE_INJECTION_KEY, computed(() => B.editable)), provide(FULLSCREEN_INJECTION_KEY, H), provide(THEME_INJECTION_KEY, F), provide(HTML_PREVIEW_INJECTION_KEY, Y);
28629
28629
  const { initializeSyncScroll: U, destroySyncScroll: J } = composables.useSyncScroll(k), { debounce: q } = composables.useDebounce();
28630
- watch(x, async (gA) => {
28631
- switch (gA) {
28630
+ watch(x, async (BA) => {
28631
+ switch (BA) {
28632
28632
  case "edit":
28633
28633
  Y.value = !1;
28634
28634
  break;
@@ -28640,77 +28640,77 @@ const executeQueue = async () => {
28640
28640
  Y.value = !1, H.value = !1;
28641
28641
  break;
28642
28642
  }
28643
- E("mode", gA), J(), await nextTick(), await X(), U();
28643
+ E("mode", BA), J(), await nextTick(), await V(), U();
28644
28644
  });
28645
- const O = (gA) => {
28646
- var hA;
28647
- const dA = {}, kA = (hA = h.value) == null ? void 0 : hA.render(gA, dA);
28648
- return W.value = dA.frontmatter, kA;
28649
- }, j = ref(B.modelValue), W = ref(), sA = ref(""), EA = ref(""), { toggleInlineFormatting: aA, insertMarkdownTemplate: QA, insertLink: CA } = composables.useMarkdownActions(C, j), uA = (gA) => {
28650
- gA === "link" ? CA() : aA(gA), nA();
28651
- }, tA = (gA) => {
28652
- QA(gA), nA();
28645
+ const O = (BA) => {
28646
+ var DA;
28647
+ const fA = {}, MA = (DA = h.value) == null ? void 0 : DA.render(BA, fA);
28648
+ return W.value = fA.frontmatter, MA;
28649
+ }, j = ref(B.modelValue), W = ref(), aA = ref(""), CA = ref(""), { toggleInlineFormatting: QA, insertMarkdownTemplate: EA, insertLink: cA } = composables.useMarkdownActions(C, j), pA = (BA) => {
28650
+ BA === "link" ? cA() : QA(BA), rA();
28651
+ }, oA = (BA) => {
28652
+ EA(BA), rA();
28653
28653
  };
28654
28654
  watchEffect(() => {
28655
- var gA;
28656
- Y.value && (EA.value = (gA = h.value) == null ? void 0 : gA.render("```html" + NEW_LINE_CHARACTER + formatHtml(sA.value, " ".repeat(M.value)) + NEW_LINE_CHARACTER + "```"));
28655
+ var BA;
28656
+ Y.value && (CA.value = (BA = h.value) == null ? void 0 : BA.render("```html" + NEW_LINE_CHARACTER + formatHtml(aA.value, " ".repeat(M.value)) + NEW_LINE_CHARACTER + "```"));
28657
28657
  });
28658
- const X = async () => {
28658
+ const V = async () => {
28659
28659
  if (typeof mermaid < "u" && typeof (mermaid == null ? void 0 : mermaid.run) == "function") {
28660
- const gA = `#${m.value} .markdown-content-container .mermaid`;
28661
- document.querySelector(gA) && await mermaid.run({
28662
- querySelector: gA,
28660
+ const BA = `#${m.value} .markdown-content-container .mermaid`;
28661
+ document.querySelector(BA) && await mermaid.run({
28662
+ querySelector: BA,
28663
28663
  suppressErrors: !0
28664
28664
  });
28665
28665
  }
28666
- }, V = () => {
28666
+ }, AA = () => {
28667
28667
  try {
28668
- const gA = new Blob([j.value], { type: "text/markdown;charset=utf-8" }), hA = URL.createObjectURL(gA), dA = document.createElement("a");
28669
- dA.href = hA, dA.download = `${B.filename.replace(/ /g, "-").replace(/[^-+.a-zA-Z0-9_]/g, "").replace(/(\.md)+$/g, "")}.md`, dA.dispatchEvent(
28668
+ const BA = new Blob([j.value], { type: "text/markdown;charset=utf-8" }), DA = URL.createObjectURL(BA), fA = document.createElement("a");
28669
+ fA.href = DA, fA.download = `${B.filename.replace(/ /g, "-").replace(/[^-+.a-zA-Z0-9_]/g, "").replace(/(\.md)+$/g, "")}.md`, fA.dispatchEvent(
28670
28670
  new MouseEvent("click", {
28671
28671
  bubbles: !0,
28672
28672
  cancelable: !0,
28673
28673
  view: window
28674
28674
  })
28675
28675
  ), setTimeout(() => {
28676
- window.URL.revokeObjectURL(hA), dA.remove();
28676
+ window.URL.revokeObjectURL(DA), fA.remove();
28677
28677
  }, 100);
28678
- } catch (gA) {
28679
- console.warn("download", gA);
28678
+ } catch (BA) {
28679
+ console.warn("download", BA);
28680
28680
  }
28681
- }, iA = (gA, hA = !0) => {
28682
- j.value = gA.target.value, AA(hA);
28683
- }, AA = q(async (gA = !0) => {
28684
- sA.value = O(j.value), await nextTick(), gA && (E("update:modelValue", j.value), E("update:frontmatter", W.value)), await nextTick(), await X();
28685
- }, EDITOR_DEBOUNCE_TIMEOUT), nA = (gA = !0) => {
28686
- const hA = {
28681
+ }, nA = (BA, DA = !0) => {
28682
+ j.value = BA.target.value, eA(DA);
28683
+ }, eA = q(async (BA = !0) => {
28684
+ aA.value = O(j.value), await nextTick(), BA && (E("update:modelValue", j.value), E("update:frontmatter", W.value)), await nextTick(), await V();
28685
+ }, EDITOR_DEBOUNCE_TIMEOUT), rA = (BA = !0) => {
28686
+ const DA = {
28687
28687
  target: {
28688
28688
  value: j.value
28689
28689
  }
28690
28690
  };
28691
- iA(hA, gA);
28691
+ nA(DA, BA);
28692
28692
  };
28693
- watch(() => B.modelValue, (gA) => {
28694
- j.value = gA, nA(!1);
28693
+ watch(() => B.modelValue, (BA) => {
28694
+ j.value = BA, rA(!1);
28695
28695
  });
28696
- const cA = () => {
28697
- Y.value = !Y.value, nA();
28698
- }, rA = computed(() => `${B.fullscreenOffsetTop}px`), IA = () => {
28696
+ const lA = () => {
28697
+ Y.value = !Y.value, rA();
28698
+ }, gA = computed(() => `${B.fullscreenOffsetTop}px`), wA = () => {
28699
28699
  H.value = !H.value;
28700
28700
  };
28701
- watch(H, (gA) => {
28702
- E("fullscreen", gA);
28701
+ watch(H, (BA) => {
28702
+ E("fullscreen", BA);
28703
28703
  });
28704
- const lA = useMediaQuery(`(min-width: ${KUI_BREAKPOINT_PHABLET})`), pA = () => {
28705
- x.value = lA.value ? "split" : "edit";
28706
- }, MA = () => {
28704
+ const IA = useMediaQuery(`(min-width: ${KUI_BREAKPOINT_PHABLET})`), dA = () => {
28705
+ x.value = IA.value ? "split" : "edit";
28706
+ }, NA = () => {
28707
28707
  E("cancel"), x.value = "read";
28708
- }, xA = () => {
28708
+ }, UA = () => {
28709
28709
  E("save", {
28710
28710
  content: j.value,
28711
28711
  frontmatter: W.value
28712
28712
  }), x.value = "read";
28713
- }, SA = () => {
28713
+ }, bA = () => {
28714
28714
  typeof mermaid < "u" && typeof (mermaid == null ? void 0 : mermaid.initialize) == "function" && (mermaid == null || mermaid.initialize({
28715
28715
  startOnLoad: !1,
28716
28716
  securityLevel: "strict",
@@ -28719,30 +28719,30 @@ const executeQueue = async () => {
28719
28719
  theme: F.value === "light" ? "default" : "base"
28720
28720
  }));
28721
28721
  };
28722
- watch(F, async (gA) => {
28723
- await w(gA), SA(), nA();
28722
+ watch(F, async (BA) => {
28723
+ await w(BA), bA(), rA();
28724
28724
  });
28725
- const bA = async (gA) => {
28726
- var hA, dA, kA, qA, WA, jA, Ae, te;
28725
+ const GA = async (BA) => {
28726
+ var DA, fA, MA, WA, jA, $A, ee, oe;
28727
28727
  try {
28728
- if (!((dA = (hA = gA.target) == null ? void 0 : hA.classList) != null && dA.contains("kong-markdown-code-block-copy")) || !((qA = (kA = gA.target) == null ? void 0 : kA.dataset) != null && qA.copytext))
28728
+ if (!((fA = (DA = BA.target) == null ? void 0 : DA.classList) != null && fA.contains("kong-markdown-code-block-copy")) || !((WA = (MA = BA.target) == null ? void 0 : MA.dataset) != null && WA.copytext))
28729
28729
  return;
28730
- if (gA.preventDefault(), (WA = navigator == null ? void 0 : navigator.clipboard) != null && WA.writeText) {
28731
- const KA = ((Ae = (jA = gA.target) == null ? void 0 : jA.dataset) == null ? void 0 : Ae.copytext) || "";
28732
- KA && (await navigator.clipboard.writeText(KA), (te = gA == null ? void 0 : gA.target) == null || te.blur());
28730
+ if (BA.preventDefault(), (jA = navigator == null ? void 0 : navigator.clipboard) != null && jA.writeText) {
28731
+ const YA = ((ee = ($A = BA.target) == null ? void 0 : $A.dataset) == null ? void 0 : ee.copytext) || "";
28732
+ YA && (await navigator.clipboard.writeText(YA), (oe = BA == null ? void 0 : BA.target) == null || oe.blur());
28733
28733
  }
28734
- } catch (KA) {
28735
- console.warn("Could not copy text to clipboard", KA);
28734
+ } catch (YA) {
28735
+ console.warn("Could not copy text to clipboard", YA);
28736
28736
  }
28737
28737
  };
28738
- composables.useKeyboardShortcuts(C, j, M, nA), onMounted(async () => {
28739
- await w(F.value), sA.value = O(B.modelValue), await nextTick(), useEventListener(I, "click", bA), SA(), await X(), x.value === "split" && (await nextTick(), U());
28738
+ composables.useKeyboardShortcuts(C, j, M, rA), onMounted(async () => {
28739
+ await w(F.value), aA.value = O(B.modelValue), await nextTick(), useEventListener(I, "click", GA), bA(), await V(), x.value === "split" && (await nextTick(), U());
28740
28740
  }), onUnmounted(() => {
28741
28741
  J();
28742
28742
  });
28743
- const HA = computed(() => `calc(100vh - ${TOOLBAR_HEIGHT} - ${KUI_SPACE_60})`), yA = computed(() => `${B.maxHeight}px`);
28744
- return (gA, hA) => {
28745
- var dA;
28743
+ const xA = computed(() => `calc(100vh - ${TOOLBAR_HEIGHT} - ${KUI_SPACE_60})`), kA = computed(() => `${B.maxHeight}px`);
28744
+ return (BA, DA) => {
28745
+ var fA;
28746
28746
  return openBlock(), createElementBlock("div", {
28747
28747
  id: m.value,
28748
28748
  ref_key: "markdownComponent",
@@ -28752,26 +28752,26 @@ const executeQueue = async () => {
28752
28752
  }, [
28753
28753
  A.editable && x.value !== "read" ? (openBlock(), createBlock(MarkdownToolbar, {
28754
28754
  key: 0,
28755
- onChangeMode: hA[0] || (hA[0] = (kA) => x.value = kA),
28756
- onFormatSelection: uA,
28757
- onInsertTemplate: tA,
28758
- onToggleFullscreen: IA,
28759
- onToggleHtmlPreview: cA
28755
+ onChangeMode: DA[0] || (DA[0] = (MA) => x.value = MA),
28756
+ onFormatSelection: pA,
28757
+ onInsertTemplate: oA,
28758
+ onToggleFullscreen: wA,
28759
+ onToggleHtmlPreview: lA
28760
28760
  }, {
28761
28761
  "toolbar-right": withCtx(() => [
28762
- renderSlot(gA.$slots, "toolbar-right", {}, void 0, !0)
28762
+ renderSlot(BA.$slots, "toolbar-right", {}, void 0, !0)
28763
28763
  ]),
28764
28764
  "editor-actions": withCtx(() => [
28765
- renderSlot(gA.$slots, "editor-actions", {
28766
- cancel: MA,
28767
- save: xA
28765
+ renderSlot(BA.$slots, "editor-actions", {
28766
+ cancel: NA,
28767
+ save: UA
28768
28768
  }, () => [
28769
28769
  A.editable && ["edit", "split", "preview"].includes(x.value) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
28770
28770
  createVNode(ToolbarButton, {
28771
28771
  "data-testid": "cancel",
28772
28772
  icon: !1,
28773
28773
  tabindex: 0,
28774
- onClick: MA
28774
+ onClick: NA
28775
28775
  }, {
28776
28776
  default: withCtx(() => [
28777
28777
  createTextVNode(" Cancel ")
@@ -28783,7 +28783,7 @@ const executeQueue = async () => {
28783
28783
  "data-testid": "save",
28784
28784
  icon: !1,
28785
28785
  tabindex: 0,
28786
- onClick: xA
28786
+ onClick: UA
28787
28787
  }, {
28788
28788
  default: withCtx(() => [
28789
28789
  createTextVNode(" Save ")
@@ -28810,7 +28810,7 @@ const executeQueue = async () => {
28810
28810
  spellcheck: "false",
28811
28811
  translate: "no",
28812
28812
  value: j.value,
28813
- onInput: hA[1] || (hA[1] = (kA) => iA(kA))
28813
+ onInput: DA[1] || (DA[1] = (MA) => nA(MA))
28814
28814
  }, null, 42, _hoisted_4$3)
28815
28815
  ])) : createCommentVNode("", !0),
28816
28816
  ["read", "preview", "split"].includes(x.value) ? (openBlock(), createElementBlock("div", {
@@ -28820,21 +28820,21 @@ const executeQueue = async () => {
28820
28820
  }, [
28821
28821
  createElementVNode("div", _hoisted_5$2, [
28822
28822
  x.value === "read" ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
28823
- renderSlot(gA.$slots, "content-actions", {
28824
- download: (dA = j.value) != null && dA.length && A.downloadable ? V : void 0,
28825
- edit: A.editable ? pA : void 0
28823
+ renderSlot(BA.$slots, "content-actions", {
28824
+ download: (fA = j.value) != null && fA.length && A.downloadable ? AA : void 0,
28825
+ edit: A.editable ? dA : void 0
28826
28826
  }, () => {
28827
- var kA;
28827
+ var MA;
28828
28828
  return [
28829
- x.value === "read" && (kA = j.value) != null && kA.length && A.downloadable ? (openBlock(), createElementBlock("div", _hoisted_7$2, [
28830
- renderSlot(gA.$slots, "download", { download: V }, () => [
28829
+ x.value === "read" && (MA = j.value) != null && MA.length && A.downloadable ? (openBlock(), createElementBlock("div", _hoisted_7$2, [
28830
+ renderSlot(BA.$slots, "download", { download: AA }, () => [
28831
28831
  createVNode(ToolbarButton, {
28832
28832
  appearance: "primary",
28833
28833
  "aria-label": "Download markdown document",
28834
28834
  "data-testid": "download",
28835
28835
  icon: !1,
28836
28836
  tabindex: 0,
28837
- onClick: V
28837
+ onClick: AA
28838
28838
  }, {
28839
28839
  default: withCtx(() => [
28840
28840
  createVNode(unref(j6), {
@@ -28848,14 +28848,14 @@ const executeQueue = async () => {
28848
28848
  ], !0)
28849
28849
  ])) : createCommentVNode("", !0),
28850
28850
  x.value === "read" && A.editable ? (openBlock(), createElementBlock("div", _hoisted_9$1, [
28851
- renderSlot(gA.$slots, "edit", { edit: pA }, () => [
28851
+ renderSlot(BA.$slots, "edit", { edit: dA }, () => [
28852
28852
  createVNode(ToolbarButton, {
28853
28853
  appearance: "primary",
28854
28854
  "aria-label": "Edit markdown document",
28855
28855
  "data-testid": "edit",
28856
28856
  icon: !1,
28857
28857
  tabindex: 0,
28858
- onClick: pA
28858
+ onClick: dA
28859
28859
  }, {
28860
28860
  default: withCtx(() => [
28861
28861
  createVNode(unref(K6), {
@@ -28873,7 +28873,7 @@ const executeQueue = async () => {
28873
28873
  ])) : createCommentVNode("", !0),
28874
28874
  createVNode(MarkdownContent, {
28875
28875
  class: normalizeClass({ "html-preview": Y.value }),
28876
- content: Y.value ? EA.value : sA.value
28876
+ content: Y.value ? CA.value : aA.value
28877
28877
  }, null, 8, ["class", "content"])
28878
28878
  ])
28879
28879
  ], 2)) : createCommentVNode("", !0)
@@ -29232,8 +29232,8 @@ const executeQueue = async () => {
29232
29232
  setup(A, { emit: g }) {
29233
29233
  var q;
29234
29234
  const B = A, E = g, { i18n: C } = composables$1.useI18n(), I = ref(!0), w = computed(() => {
29235
- var O, j, W, sA, EA;
29236
- return ((j = (O = B.selectedDocument) == null ? void 0 : O.document) == null ? void 0 : j.title) || ((EA = (sA = (W = B.selectedDocument) == null ? void 0 : W.document) == null ? void 0 : sA.revision) == null ? void 0 : EA.title) || "";
29235
+ var O, j, W, aA, CA;
29236
+ return ((j = (O = B.selectedDocument) == null ? void 0 : O.document) == null ? void 0 : j.title) || ((CA = (aA = (W = B.selectedDocument) == null ? void 0 : W.document) == null ? void 0 : aA.revision) == null ? void 0 : CA.title) || "";
29237
29237
  }), h = computed(() => ""), D = ref(!1), m = ref(C.t("documentation.common.unpublished")), y = ref(((q = B.selectedDocument) == null ? void 0 : q.markdown) || ""), k = ref(y.value), M = ref(null), L = (O) => {
29238
29238
  typeof O == "function" && (O(), E("download"));
29239
29239
  }, F = (O) => {
@@ -29259,7 +29259,7 @@ const executeQueue = async () => {
29259
29259
  var j;
29260
29260
  isObjectEmpty(O) || (B.hidePublishToggle || Y((j = O.document) == null ? void 0 : j.status), (O.ast || O.markdown) && U());
29261
29261
  }, { deep: !0, immediate: !0 }), (O, j) => {
29262
- const W = resolveComponent("KBadge"), sA = resolveComponent("KInputSwitch"), EA = resolveComponent("KButton"), aA = resolveComponent("KSkeleton"), QA = resolveComponent("KTooltip"), CA = resolveComponent("KDropdownItem"), uA = resolveComponent("KDropdown");
29262
+ const W = resolveComponent("KBadge"), aA = resolveComponent("KInputSwitch"), CA = resolveComponent("KButton"), QA = resolveComponent("KSkeleton"), EA = resolveComponent("KTooltip"), cA = resolveComponent("KDropdownItem"), pA = resolveComponent("KDropdown");
29263
29263
  return openBlock(), createElementBlock("div", _hoisted_1$2, [
29264
29264
  createElementVNode("div", _hoisted_2$2, [
29265
29265
  createElementVNode("div", _hoisted_3$2, [
@@ -29296,10 +29296,10 @@ const executeQueue = async () => {
29296
29296
  "auth-function": () => A.canEdit()
29297
29297
  }, {
29298
29298
  default: withCtx(() => [
29299
- !A.hidePublishToggle && !A.card ? (openBlock(), createBlock(sA, {
29299
+ !A.hidePublishToggle && !A.card ? (openBlock(), createBlock(aA, {
29300
29300
  key: 0,
29301
29301
  modelValue: D.value,
29302
- "onUpdate:modelValue": j[0] || (j[0] = (tA) => D.value = tA),
29302
+ "onUpdate:modelValue": j[0] || (j[0] = (oA) => D.value = oA),
29303
29303
  class: "document-publish-toggle",
29304
29304
  "data-testid": "document-publish-toggle",
29305
29305
  label: m.value,
@@ -29313,11 +29313,11 @@ const executeQueue = async () => {
29313
29313
  "auth-function": () => A.canEdit()
29314
29314
  }, {
29315
29315
  default: withCtx(() => [
29316
- createVNode(EA, {
29316
+ createVNode(CA, {
29317
29317
  appearance: "primary",
29318
29318
  "data-testid": "add-new-page-button",
29319
29319
  size: "small",
29320
- onClick: j[1] || (j[1] = (tA) => E("add"))
29320
+ onClick: j[1] || (j[1] = (oA) => E("add"))
29321
29321
  }, {
29322
29322
  default: withCtx(() => [
29323
29323
  createTextVNode(toDisplayString(unref(C).t("documentation.documentation_display.add_new")), 1)
@@ -29330,10 +29330,10 @@ const executeQueue = async () => {
29330
29330
  ])
29331
29331
  ]),
29332
29332
  I.value ? (openBlock(), createElementBlock("div", _hoisted_11, [
29333
- A.card ? (openBlock(), createBlock(aA, {
29333
+ A.card ? (openBlock(), createBlock(QA, {
29334
29334
  key: 1,
29335
29335
  type: "card"
29336
- })) : (openBlock(), createBlock(aA, {
29336
+ })) : (openBlock(), createBlock(QA, {
29337
29337
  key: 0,
29338
29338
  class: "markdown-content-loader"
29339
29339
  }))
@@ -29344,7 +29344,7 @@ const executeQueue = async () => {
29344
29344
  y.value !== void 0 ? (openBlock(), createBlock(unref(MarkdownUi), {
29345
29345
  key: 0,
29346
29346
  modelValue: y.value,
29347
- "onUpdate:modelValue": j[3] || (j[3] = (tA) => y.value = tA),
29347
+ "onUpdate:modelValue": j[3] || (j[3] = (oA) => y.value = oA),
29348
29348
  downloadable: "",
29349
29349
  editable: J.value,
29350
29350
  filename: w.value,
@@ -29352,22 +29352,22 @@ const executeQueue = async () => {
29352
29352
  mode: "read",
29353
29353
  theme: "light",
29354
29354
  onCancel: H,
29355
- onMode: j[4] || (j[4] = (tA) => F(tA)),
29356
- onSave: j[5] || (j[5] = (tA) => E("save-markdown", tA.content))
29355
+ onMode: j[4] || (j[4] = (oA) => F(oA)),
29356
+ onSave: j[5] || (j[5] = (oA) => E("save-markdown", oA.content))
29357
29357
  }, createSlots({ _: 2 }, [
29358
29358
  J.value || A.selectedDocument.markdown ? {
29359
29359
  name: "content-actions",
29360
- fn: withCtx(({ download: tA, edit: X }) => [
29361
- createVNode(uA, {
29360
+ fn: withCtx(({ download: oA, edit: V }) => [
29361
+ createVNode(pA, {
29362
29362
  class: "content-actions-dropdown",
29363
29363
  "kpop-attributes": { placement: "bottomEnd" }
29364
29364
  }, {
29365
29365
  default: withCtx(() => [
29366
- createVNode(QA, {
29366
+ createVNode(EA, {
29367
29367
  text: unref(C).t("documentation.documentation_display.actions_title")
29368
29368
  }, {
29369
29369
  default: withCtx(() => [
29370
- createVNode(EA, {
29370
+ createVNode(CA, {
29371
29371
  appearance: "secondary",
29372
29372
  "aria-label": unref(C).t("documentation.documentation_display.actions_title"),
29373
29373
  class: "icon-button",
@@ -29383,31 +29383,31 @@ const executeQueue = async () => {
29383
29383
  }, 8, ["text"])
29384
29384
  ]),
29385
29385
  items: withCtx(() => [
29386
- J.value ? (openBlock(), createBlock(CA, {
29386
+ J.value ? (openBlock(), createBlock(cA, {
29387
29387
  key: 0,
29388
29388
  "data-testid": "document-edit-button",
29389
- onClick: X
29389
+ onClick: V
29390
29390
  }, {
29391
29391
  default: withCtx(() => [
29392
29392
  createTextVNode(toDisplayString(unref(C).t("documentation.documentation_display.edit_markdown_button")), 1)
29393
29393
  ]),
29394
29394
  _: 2
29395
29395
  }, 1032, ["onClick"])) : createCommentVNode("", !0),
29396
- J.value ? (openBlock(), createBlock(CA, {
29396
+ J.value ? (openBlock(), createBlock(cA, {
29397
29397
  key: 1,
29398
29398
  "data-testid": "document-settings-button",
29399
- onClick: j[2] || (j[2] = (V) => E("edit"))
29399
+ onClick: j[2] || (j[2] = (AA) => E("edit"))
29400
29400
  }, {
29401
29401
  default: withCtx(() => [
29402
29402
  createTextVNode(toDisplayString(unref(C).t("documentation.documentation_display.edit_info_button")), 1)
29403
29403
  ]),
29404
29404
  _: 1
29405
29405
  })) : createCommentVNode("", !0),
29406
- A.selectedDocument.markdown ? (openBlock(), createBlock(CA, {
29406
+ A.selectedDocument.markdown ? (openBlock(), createBlock(cA, {
29407
29407
  key: 2,
29408
29408
  "data-testid": "document-download-button",
29409
29409
  "has-divider": J.value,
29410
- onClick: (V) => L(tA)
29410
+ onClick: (AA) => L(oA)
29411
29411
  }, {
29412
29412
  default: withCtx(() => [
29413
29413
  createTextVNode(toDisplayString(unref(C).t("documentation.documentation_display.download_button")), 1)
@@ -29535,21 +29535,21 @@ const executeQueue = async () => {
29535
29535
  var W;
29536
29536
  return m.urlSlug !== "" && !((W = m.urlSlug) != null && W.match(y));
29537
29537
  }), M = computed(() => {
29538
- var EA;
29539
- let W = (EA = B.documents) == null ? void 0 : EA.filter((aA) => {
29540
- var QA;
29541
- return aA.record.id !== ((QA = B.record) == null ? void 0 : QA.id) && !aA.record.parent_document_id;
29542
- }).map((aA) => ({
29543
- label: aA.record.title,
29544
- value: aA.record.id,
29538
+ var CA;
29539
+ let W = (CA = B.documents) == null ? void 0 : CA.filter((QA) => {
29540
+ var EA;
29541
+ return QA.record.id !== ((EA = B.record) == null ? void 0 : EA.id) && !QA.record.parent_document_id;
29542
+ }).map((QA) => ({
29543
+ label: QA.record.title,
29544
+ value: QA.record.id,
29545
29545
  selected: !1
29546
29546
  }));
29547
29547
  W || (W = []);
29548
- const sA = cloneDeep(W.length);
29548
+ const aA = cloneDeep(W.length);
29549
29549
  return W.push({
29550
29550
  label: C.t("documentation.form_modal.parent_document_select_option_none"),
29551
29551
  value: "none",
29552
- selected: !sA
29552
+ selected: !aA
29553
29553
  }), W;
29554
29554
  }), L = computed(() => !B.editing && !Y.value || !m.pageName || k.value), F = computed(() => B.editing ? C.t("documentation.form_modal.edit_title") : C.t("documentation.form_modal.create_title")), x = computed(() => B.editing ? C.t("documentation.form_modal.replace_file_button_text") : C.t("documentation.form_modal.filename_button_text")), H = computed(() => D.value === "published" ? C.t("documentation.common.published") : C.t("documentation.common.unpublished")), Y = ref(null), U = (W) => {
29555
29555
  Y.value = W == null ? void 0 : W[0], m.fileName = w.value, m.pageName = m.pageName ? m.pageName : w.value, m.urlSlug = m.urlSlug ? m.urlSlug : w.value;
@@ -29560,19 +29560,19 @@ const executeQueue = async () => {
29560
29560
  }, O = () => {
29561
29561
  E("save", Object.assign(m, { status: D.value }), Y);
29562
29562
  }, j = () => {
29563
- var W, sA, EA, aA, QA;
29563
+ var W, aA, CA, QA, EA;
29564
29564
  if (Y.value = null, B.editing && ((W = B.record) != null && W.document)) {
29565
- const CA = cloneDeep(B.record), uA = CA.status || B.record.document.status || h.value;
29566
- m.fileName = ((sA = CA.document.file) == null ? void 0 : sA.filename) || ((aA = (EA = CA.document.revision) == null ? void 0 : EA.file) == null ? void 0 : aA.filename), m.pageName = CA.document.title || ((QA = CA.document.revision) == null ? void 0 : QA.title), m.urlSlug = CA.document.slug, m.parent = CA.document.parent_document_id, m.status = uA, h.value = uA === "published";
29565
+ const cA = cloneDeep(B.record), pA = cA.status || B.record.document.status || h.value;
29566
+ m.fileName = ((aA = cA.document.file) == null ? void 0 : aA.filename) || ((QA = (CA = cA.document.revision) == null ? void 0 : CA.file) == null ? void 0 : QA.filename), m.pageName = cA.document.title || ((EA = cA.document.revision) == null ? void 0 : EA.title), m.urlSlug = cA.document.slug, m.parent = cA.document.parent_document_id, m.status = pA, h.value = pA === "published";
29567
29567
  } else
29568
29568
  m.fileName = "", m.pageName = "", m.urlSlug = "", m.parent = "", m.status = "";
29569
29569
  };
29570
29570
  return onMounted(() => {
29571
29571
  j();
29572
- }), (W, sA) => {
29573
- const EA = resolveComponent("KExternalLink"), aA = resolveComponent("KAlert"), QA = resolveComponent("KFileUpload"), CA = resolveComponent("KInput"), uA = resolveComponent("KLabel"), tA = resolveComponent("KInputSwitch"), X = resolveComponent("KSelect"), V = resolveComponent("KButton"), iA = resolveComponent("KModal");
29572
+ }), (W, aA) => {
29573
+ const CA = resolveComponent("KExternalLink"), QA = resolveComponent("KAlert"), EA = resolveComponent("KFileUpload"), cA = resolveComponent("KInput"), pA = resolveComponent("KLabel"), oA = resolveComponent("KInputSwitch"), V = resolveComponent("KSelect"), AA = resolveComponent("KButton"), nA = resolveComponent("KModal");
29574
29574
  return openBlock(), createBlock(Teleport, { to: "#kong-ui-app-layout-teleport-default-slot" }, [
29575
- createVNode(iA, {
29575
+ createVNode(nA, {
29576
29576
  class: "edit-document-modal",
29577
29577
  "data-testid": "edit-document-modal",
29578
29578
  "max-width": "750px",
@@ -29586,7 +29586,7 @@ const executeQueue = async () => {
29586
29586
  createElementVNode("div", _hoisted_2$1, [
29587
29587
  createTextVNode(toDisplayString(unref(C).t("documentation.form_modal.subtitle")) + " ", 1),
29588
29588
  _hoisted_3$1,
29589
- createVNode(EA, {
29589
+ createVNode(CA, {
29590
29590
  class: "doc-link",
29591
29591
  href: unref(externalLinks).serviceDocumentationDocs
29592
29592
  }, {
@@ -29599,20 +29599,20 @@ const executeQueue = async () => {
29599
29599
  ])
29600
29600
  ]),
29601
29601
  default: withCtx(() => [
29602
- A.errorMessage ? (openBlock(), createBlock(aA, {
29602
+ A.errorMessage ? (openBlock(), createBlock(QA, {
29603
29603
  key: 0,
29604
29604
  appearance: "danger",
29605
29605
  class: "bottom-spacing",
29606
29606
  message: A.errorMessage
29607
29607
  }, null, 8, ["message"])) : createCommentVNode("", !0),
29608
- A.editing ? (openBlock(), createBlock(aA, {
29608
+ A.editing ? (openBlock(), createBlock(QA, {
29609
29609
  key: 1,
29610
29610
  appearance: "info",
29611
29611
  class: "bottom-spacing",
29612
29612
  message: unref(C).t("documentation.form_modal.edit_markdown"),
29613
29613
  "show-icon": ""
29614
29614
  }, null, 8, ["message"])) : createCommentVNode("", !0),
29615
- createVNode(QA, {
29615
+ createVNode(EA, {
29616
29616
  accept: [".md", ".markdown"],
29617
29617
  "button-text": x.value,
29618
29618
  class: "document-file-upload",
@@ -29625,9 +29625,9 @@ const executeQueue = async () => {
29625
29625
  }, null, 8, ["accept", "button-text", "label", "label-attributes", "placeholder"]),
29626
29626
  createElementVNode("div", _hoisted_4, [
29627
29627
  createElementVNode("div", _hoisted_5, [
29628
- createVNode(CA, {
29628
+ createVNode(cA, {
29629
29629
  modelValue: m.pageName,
29630
- "onUpdate:modelValue": sA[0] || (sA[0] = (AA) => m.pageName = AA),
29630
+ "onUpdate:modelValue": aA[0] || (aA[0] = (eA) => m.pageName = eA),
29631
29631
  modelModifiers: { trim: !0 },
29632
29632
  "data-testid": "documentation-page-name",
29633
29633
  label: unref(C).t("documentation.form_modal.title_label"),
@@ -29636,9 +29636,9 @@ const executeQueue = async () => {
29636
29636
  }, null, 8, ["modelValue", "label", "placeholder"])
29637
29637
  ]),
29638
29638
  createElementVNode("div", _hoisted_6, [
29639
- createVNode(CA, {
29639
+ createVNode(cA, {
29640
29640
  modelValue: m.urlSlug,
29641
- "onUpdate:modelValue": sA[1] || (sA[1] = (AA) => m.urlSlug = AA),
29641
+ "onUpdate:modelValue": aA[1] || (aA[1] = (eA) => m.urlSlug = eA),
29642
29642
  modelModifiers: { trim: !0 },
29643
29643
  "data-testid": "documentation-url-slug",
29644
29644
  "error-message": unref(C).t("documentation.form_modal.slug_error"),
@@ -29652,23 +29652,23 @@ const executeQueue = async () => {
29652
29652
  ]),
29653
29653
  A.hidePublishToggle ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div", _hoisted_7, [
29654
29654
  createElementVNode("div", null, [
29655
- createVNode(uA, null, {
29655
+ createVNode(pA, null, {
29656
29656
  default: withCtx(() => [
29657
29657
  createTextVNode(toDisplayString(unref(C).t("documentation.form_modal.status_label")), 1)
29658
29658
  ]),
29659
29659
  _: 1
29660
29660
  })
29661
29661
  ]),
29662
- createVNode(tA, {
29662
+ createVNode(oA, {
29663
29663
  modelValue: h.value,
29664
- "onUpdate:modelValue": sA[2] || (sA[2] = (AA) => h.value = AA),
29664
+ "onUpdate:modelValue": aA[2] || (aA[2] = (eA) => h.value = eA),
29665
29665
  "data-testid": "documentation-status",
29666
29666
  label: H.value
29667
29667
  }, null, 8, ["modelValue", "label"])
29668
29668
  ])),
29669
- createVNode(X, {
29669
+ createVNode(V, {
29670
29670
  modelValue: m.parent,
29671
- "onUpdate:modelValue": sA[3] || (sA[3] = (AA) => m.parent = AA),
29671
+ "onUpdate:modelValue": aA[3] || (aA[3] = (eA) => m.parent = eA),
29672
29672
  class: "document-parent-select",
29673
29673
  "data-testid": "documentation-parent",
29674
29674
  "enable-filtering": "",
@@ -29678,13 +29678,13 @@ const executeQueue = async () => {
29678
29678
  }, null, 8, ["modelValue", "items", "label"])
29679
29679
  ]),
29680
29680
  footer: withCtx(() => [
29681
- A.editing ? (openBlock(), createBlock(V, {
29681
+ A.editing ? (openBlock(), createBlock(AA, {
29682
29682
  key: 0,
29683
29683
  appearance: "danger",
29684
29684
  class: "edit-documentation-delete-button",
29685
29685
  "data-testid": "edit-documentation-delete-button",
29686
29686
  disabled: A.actionPending,
29687
- onClick: sA[4] || (sA[4] = (AA) => E("delete"))
29687
+ onClick: aA[4] || (aA[4] = (eA) => E("delete"))
29688
29688
  }, {
29689
29689
  default: withCtx(() => [
29690
29690
  A.actionPending ? (openBlock(), createBlock(unref(cd), { key: 0 })) : createCommentVNode("", !0),
@@ -29693,7 +29693,7 @@ const executeQueue = async () => {
29693
29693
  _: 1
29694
29694
  }, 8, ["disabled"])) : createCommentVNode("", !0),
29695
29695
  createElementVNode("div", _hoisted_8, [
29696
- createVNode(V, {
29696
+ createVNode(AA, {
29697
29697
  appearance: "tertiary",
29698
29698
  class: "edit-documentation-cancel-button",
29699
29699
  "data-testid": "edit-documentation-cancel-button",
@@ -29704,7 +29704,7 @@ const executeQueue = async () => {
29704
29704
  ]),
29705
29705
  _: 1
29706
29706
  }),
29707
- createVNode(V, {
29707
+ createVNode(AA, {
29708
29708
  appearance: "primary",
29709
29709
  "data-testid": "edit-documentation-save-button",
29710
29710
  disabled: A.actionPending || L.value,