@uxland/primary-shell 7.41.3 → 7.41.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import c$x, { useState, useRef, useEffect } from "react";
2
- import r$R, { createRoot } from "react-dom/client";
2
+ import r$S, { createRoot } from "react-dom/client";
3
3
  var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
4
4
  function getDefaultExportFromCjs(X) {
5
5
  return X && X.__esModule && Object.prototype.hasOwnProperty.call(X, "default") ? X.default : X;
@@ -79,9 +79,9 @@ function require_Reflect() {
79
79
  } else {
80
80
  if (!It(it))
81
81
  throw new TypeError();
82
- if (!Ue(nt))
82
+ if (!Ve(nt))
83
83
  throw new TypeError();
84
- if (!Ue(At) && !Be(At) && !Xe(At))
84
+ if (!Ve(At) && !Be(At) && !Xe(At))
85
85
  throw new TypeError();
86
86
  return Xe(At) && (At = void 0), vt = kt(vt), ze(it, nt, vt, At);
87
87
  }
@@ -89,9 +89,9 @@ function require_Reflect() {
89
89
  J("decorate", Ae);
90
90
  function ye(it, nt) {
91
91
  function vt(At, Lt) {
92
- if (!Ue(At))
92
+ if (!Ve(At))
93
93
  throw new TypeError();
94
- if (!Be(Lt) && !Ut(Lt))
94
+ if (!Be(Lt) && !Vt(Lt))
95
95
  throw new TypeError();
96
96
  Qe(it, nt, At, Lt);
97
97
  }
@@ -99,51 +99,51 @@ function require_Reflect() {
99
99
  }
100
100
  J("metadata", ye);
101
101
  function Se(it, nt, vt, At) {
102
- if (!Ue(vt))
102
+ if (!Ve(vt))
103
103
  throw new TypeError();
104
104
  return Be(At) || (At = kt(At)), Qe(it, nt, vt, At);
105
105
  }
106
106
  J("defineMetadata", Se);
107
107
  function Pe(it, nt, vt) {
108
- if (!Ue(nt))
108
+ if (!Ve(nt))
109
109
  throw new TypeError();
110
110
  return Be(vt) || (vt = kt(vt)), We(it, nt, vt);
111
111
  }
112
112
  J("hasMetadata", Pe);
113
113
  function De(it, nt, vt) {
114
- if (!Ue(nt))
114
+ if (!Ve(nt))
115
115
  throw new TypeError();
116
116
  return Be(vt) || (vt = kt(vt)), Ge(it, nt, vt);
117
117
  }
118
118
  J("hasOwnMetadata", De);
119
119
  function Me(it, nt, vt) {
120
- if (!Ue(nt))
120
+ if (!Ve(nt))
121
121
  throw new TypeError();
122
122
  return Be(vt) || (vt = kt(vt)), Ke(it, nt, vt);
123
123
  }
124
124
  J("getMetadata", Me);
125
125
  function He(it, nt, vt) {
126
- if (!Ue(nt))
126
+ if (!Ve(nt))
127
127
  throw new TypeError();
128
128
  return Be(vt) || (vt = kt(vt)), ft(it, nt, vt);
129
129
  }
130
130
  J("getOwnMetadata", He);
131
131
  function Ie(it, nt) {
132
- if (!Ue(it))
132
+ if (!Ve(it))
133
133
  throw new TypeError();
134
134
  return Be(nt) || (nt = kt(nt)), Ze(it, nt);
135
135
  }
136
136
  J("getMetadataKeys", Ie);
137
137
  function Ce(it, nt) {
138
- if (!Ue(it))
138
+ if (!Ve(it))
139
139
  throw new TypeError();
140
140
  return Be(nt) || (nt = kt(nt)), Fe(it, nt);
141
141
  }
142
142
  J("getOwnMetadataKeys", Ce);
143
143
  function qe(it, nt, vt) {
144
- if (!Ue(nt))
144
+ if (!Ve(nt))
145
145
  throw new TypeError();
146
- if (Be(vt) || (vt = kt(vt)), !Ue(nt))
146
+ if (Be(vt) || (vt = kt(vt)), !Ve(nt))
147
147
  throw new TypeError();
148
148
  Be(vt) || (vt = kt(vt));
149
149
  var At = ds(
@@ -170,7 +170,7 @@ function require_Reflect() {
170
170
  for (var Lt = it.length - 1; Lt >= 0; --Lt) {
171
171
  var os = it[Lt], ls = os(nt, vt, At);
172
172
  if (!Be(ls) && !Xe(ls)) {
173
- if (!Ue(ls))
173
+ if (!Ve(ls))
174
174
  throw new TypeError();
175
175
  At = ls;
176
176
  }
@@ -248,7 +248,7 @@ function require_Reflect() {
248
248
  );
249
249
  return vt ? vt.OrdinaryOwnMetadataKeys(it, nt) : [];
250
250
  }
251
- function Ve(it) {
251
+ function Ue(it) {
252
252
  if (it === null)
253
253
  return 1;
254
254
  switch (typeof it) {
@@ -277,11 +277,11 @@ function require_Reflect() {
277
277
  function Je(it) {
278
278
  return typeof it == "symbol";
279
279
  }
280
- function Ue(it) {
280
+ function Ve(it) {
281
281
  return typeof it == "object" ? it !== null : typeof it == "function";
282
282
  }
283
283
  function Ye(it, nt) {
284
- switch (Ve(it)) {
284
+ switch (Ue(it)) {
285
285
  case 0:
286
286
  return it;
287
287
  case 1:
@@ -298,7 +298,7 @@ function require_Reflect() {
298
298
  var vt = "string", At = Yt(it, ne);
299
299
  if (At !== void 0) {
300
300
  var Lt = At.call(it, vt);
301
- if (Ue(Lt))
301
+ if (Ve(Lt))
302
302
  throw new TypeError();
303
303
  return Lt;
304
304
  }
@@ -310,13 +310,13 @@ function require_Reflect() {
310
310
  var os = it.toString;
311
311
  if (qt(os)) {
312
312
  var At = os.call(it);
313
- if (!Ue(At))
313
+ if (!Ve(At))
314
314
  return At;
315
315
  }
316
316
  var vt = it.valueOf;
317
317
  if (qt(vt)) {
318
318
  var At = vt.call(it);
319
- if (!Ue(At))
319
+ if (!Ve(At))
320
320
  return At;
321
321
  }
322
322
  }
@@ -341,8 +341,8 @@ function require_Reflect() {
341
341
  function Nt(it) {
342
342
  return typeof it == "function";
343
343
  }
344
- function Ut(it) {
345
- switch (Ve(it)) {
344
+ function Vt(it) {
345
+ switch (Ue(it)) {
346
346
  case 3:
347
347
  return !0;
348
348
  case 4:
@@ -367,7 +367,7 @@ function require_Reflect() {
367
367
  if (!qt(nt))
368
368
  throw new TypeError();
369
369
  var vt = nt.call(it);
370
- if (!Ue(vt))
370
+ if (!Ve(vt))
371
371
  throw new TypeError();
372
372
  return vt;
373
373
  }
@@ -467,7 +467,7 @@ function require_Reflect() {
467
467
  }
468
468
  function Mt() {
469
469
  var it;
470
- return !Be(ve) && Ue(te.Reflect) && Object.isExtensible(te.Reflect) && (it = te.Reflect[ve]), Be(it) && (it = Ft()), !Be(ve) && Ue(te.Reflect) && Object.isExtensible(te.Reflect) && Object.defineProperty(te.Reflect, ve, {
470
+ return !Be(ve) && Ve(te.Reflect) && Object.isExtensible(te.Reflect) && (it = te.Reflect[ve]), Be(it) && (it = Ft()), !Be(ve) && Ve(te.Reflect) && Object.isExtensible(te.Reflect) && Object.defineProperty(te.Reflect, ve, {
471
471
  enumerable: !1,
472
472
  configurable: !1,
473
473
  writable: !1,
@@ -1571,16 +1571,16 @@ let y$k = class {
1571
1571
  throw new Error(`region ${this.name} doest not contain this view`);
1572
1572
  }
1573
1573
  };
1574
- const e$Y = "default", r$Q = "dynamic";
1574
+ const e$Y = "default", r$R = "dynamic";
1575
1575
  let y$j = class {
1576
1576
  constructor() {
1577
- this.adapterRegistry = /* @__PURE__ */ new Map(), this.adapterRegistry.set(r$Q, []);
1577
+ this.adapterRegistry = /* @__PURE__ */ new Map(), this.adapterRegistry.set(r$R, []);
1578
1578
  }
1579
1579
  registerAdapterFactory(W, J) {
1580
1580
  this.adapterRegistry.set(W, J);
1581
1581
  }
1582
1582
  get dynamicFactories() {
1583
- return this.adapterRegistry.get(r$Q);
1583
+ return this.adapterRegistry.get(r$R);
1584
1584
  }
1585
1585
  registerDynamicAdapterFactory(W) {
1586
1586
  this.dynamicFactories.indexOf(W) === -1 && this.dynamicFactories.push(W);
@@ -1643,7 +1643,7 @@ let i$X = class {
1643
1643
  }
1644
1644
  };
1645
1645
  const n$K = /* @__PURE__ */ new WeakMap();
1646
- function r$P(X, W) {
1646
+ function r$Q(X, W) {
1647
1647
  let J = W;
1648
1648
  for (; J; ) {
1649
1649
  if (n$K.get(J) === X) return !0;
@@ -1653,7 +1653,7 @@ function r$P(X, W) {
1653
1653
  }
1654
1654
  function d$x(X) {
1655
1655
  return (W) => {
1656
- if (r$P(X, W)) return W;
1656
+ if (r$Q(X, W)) return W;
1657
1657
  const J = X(W);
1658
1658
  return n$K.set(J, X), J;
1659
1659
  };
@@ -1682,7 +1682,7 @@ let o$16 = class {
1682
1682
  return this.cssText;
1683
1683
  }
1684
1684
  };
1685
- const r$O = (X) => new o$16(typeof X == "string" ? X : X + "", void 0, s$J), S$h = (X, W) => {
1685
+ const r$P = (X) => new o$16(typeof X == "string" ? X : X + "", void 0, s$J), S$h = (X, W) => {
1686
1686
  e$X ? X.adoptedStyleSheets = W.map(((J) => J instanceof CSSStyleSheet ? J : J.styleSheet)) : W.forEach(((J) => {
1687
1687
  const te = document.createElement("style"), re = t$A.litNonce;
1688
1688
  re !== void 0 && te.setAttribute("nonce", re), te.textContent = J.cssText, X.appendChild(te);
@@ -1690,7 +1690,7 @@ const r$O = (X) => new o$16(typeof X == "string" ? X : X + "", void 0, s$J), S$h
1690
1690
  }, c$v = e$X ? (X) => X : (X) => X instanceof CSSStyleSheet ? ((W) => {
1691
1691
  let J = "";
1692
1692
  for (const te of W.cssRules) J += te.cssText;
1693
- return r$O(J);
1693
+ return r$P(J);
1694
1694
  })(X) : X;
1695
1695
  /**
1696
1696
  * @license
@@ -1698,7 +1698,7 @@ const r$O = (X) => new o$16(typeof X == "string" ? X : X + "", void 0, s$J), S$h
1698
1698
  * SPDX-License-Identifier: BSD-3-Clause
1699
1699
  */
1700
1700
  var s$I;
1701
- const e$W = window, r$N = e$W.trustedTypes, h$u = r$N ? r$N.emptyScript : "", o$15 = e$W.reactiveElementPolyfillSupport, n$I = { toAttribute(X, W) {
1701
+ const e$W = window, r$O = e$W.trustedTypes, h$u = r$O ? r$O.emptyScript : "", o$15 = e$W.reactiveElementPolyfillSupport, n$I = { toAttribute(X, W) {
1702
1702
  switch (W) {
1703
1703
  case Boolean:
1704
1704
  X = X ? h$u : null;
@@ -1908,9 +1908,9 @@ u$v[d$w] = !0, u$v.elementProperties = /* @__PURE__ */ new Map(), u$v.elementSty
1908
1908
  * SPDX-License-Identifier: BSD-3-Clause
1909
1909
  */
1910
1910
  var t$z;
1911
- const i$W = window, s$H = i$W.trustedTypes, e$V = s$H ? s$H.createPolicy("lit-html", { createHTML: (X) => X }) : void 0, o$14 = "$lit$", n$H = `lit$${(Math.random() + "").slice(9)}$`, l$z = "?" + n$H, h$t = `<${l$z}>`, r$M = document, u$u = () => r$M.createComment(""), d$v = (X) => X === null || typeof X != "object" && typeof X != "function", c$u = Array.isArray, v$n = (X) => c$u(X) || typeof X?.[Symbol.iterator] == "function", a$s = `[
1911
+ const i$W = window, s$H = i$W.trustedTypes, e$V = s$H ? s$H.createPolicy("lit-html", { createHTML: (X) => X }) : void 0, o$14 = "$lit$", n$H = `lit$${(Math.random() + "").slice(9)}$`, l$z = "?" + n$H, h$t = `<${l$z}>`, r$N = document, u$u = () => r$N.createComment(""), d$v = (X) => X === null || typeof X != "object" && typeof X != "function", c$u = Array.isArray, v$o = (X) => c$u(X) || typeof X?.[Symbol.iterator] == "function", a$s = `[
1912
1912
  \f\r]`, f$s = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, _$g = /-->/g, m$h = />/g, p$f = RegExp(`>|${a$s}(?:([^\\s"'>=/]+)(${a$s}*=${a$s}*(?:[^
1913
- \f\r"'\`<>=]|("|')|))|$)`, "g"), g$n = /'/g, $$h = /"/g, y$i = /^(?:script|style|textarea|title)$/i, T$9 = Symbol.for("lit-noChange"), A$2 = Symbol.for("lit-nothing"), E$b = /* @__PURE__ */ new WeakMap(), C$a = r$M.createTreeWalker(r$M, 129, null, !1);
1913
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), g$o = /'/g, $$h = /"/g, y$i = /^(?:script|style|textarea|title)$/i, T$9 = Symbol.for("lit-noChange"), A$2 = Symbol.for("lit-nothing"), E$b = /* @__PURE__ */ new WeakMap(), C$a = r$N.createTreeWalker(r$N, 129, null, !1);
1914
1914
  function P$4(X, W) {
1915
1915
  if (!Array.isArray(X) || !X.hasOwnProperty("raw")) throw Error("invalid template strings array");
1916
1916
  return e$V !== void 0 ? e$V.createHTML(W) : W;
@@ -1921,7 +1921,7 @@ const V$4 = (X, W) => {
1921
1921
  for (let de = 0; de < J; de++) {
1922
1922
  const ce = X[de];
1923
1923
  let ue, he, pe = -1, fe = 0;
1924
- for (; fe < ce.length && (ne.lastIndex = fe, he = ne.exec(ce), he !== null); ) fe = ne.lastIndex, ne === f$s ? he[1] === "!--" ? ne = _$g : he[1] !== void 0 ? ne = m$h : he[2] !== void 0 ? (y$i.test(he[2]) && (re = RegExp("</" + he[2], "g")), ne = p$f) : he[3] !== void 0 && (ne = p$f) : ne === p$f ? he[0] === ">" ? (ne = re ?? f$s, pe = -1) : he[1] === void 0 ? pe = -2 : (pe = ne.lastIndex - he[2].length, ue = he[1], ne = he[3] === void 0 ? p$f : he[3] === '"' ? $$h : g$n) : ne === $$h || ne === g$n ? ne = p$f : ne === _$g || ne === m$h ? ne = f$s : (ne = p$f, re = void 0);
1924
+ for (; fe < ce.length && (ne.lastIndex = fe, he = ne.exec(ce), he !== null); ) fe = ne.lastIndex, ne === f$s ? he[1] === "!--" ? ne = _$g : he[1] !== void 0 ? ne = m$h : he[2] !== void 0 ? (y$i.test(he[2]) && (re = RegExp("</" + he[2], "g")), ne = p$f) : he[3] !== void 0 && (ne = p$f) : ne === p$f ? he[0] === ">" ? (ne = re ?? f$s, pe = -1) : he[1] === void 0 ? pe = -2 : (pe = ne.lastIndex - he[2].length, ue = he[1], ne = he[3] === void 0 ? p$f : he[3] === '"' ? $$h : g$o) : ne === $$h || ne === g$o ? ne = p$f : ne === _$g || ne === m$h ? ne = f$s : (ne = p$f, re = void 0);
1925
1925
  const be = ne === p$f && X[de + 1].startsWith("/>") ? " " : "";
1926
1926
  oe += ne === f$s ? ce + h$t : pe >= 0 ? (te.push(ue), ce.slice(0, pe) + o$14 + ce.slice(pe) + n$H + be) : ce + n$H + (pe === -2 ? (te.push(void 0), de) : be);
1927
1927
  }
@@ -1967,7 +1967,7 @@ let N$2 = class ki {
1967
1967
  }
1968
1968
  }
1969
1969
  static createElement(W, J) {
1970
- const te = r$M.createElement("template");
1970
+ const te = r$N.createElement("template");
1971
1971
  return te.innerHTML = W, te;
1972
1972
  }
1973
1973
  };
@@ -1990,23 +1990,23 @@ let M$6 = class {
1990
1990
  }
1991
1991
  u(W) {
1992
1992
  var J;
1993
- const { el: { content: te }, parts: re } = this._$AD, oe = ((J = W?.creationScope) !== null && J !== void 0 ? J : r$M).importNode(te, !0);
1993
+ const { el: { content: te }, parts: re } = this._$AD, oe = ((J = W?.creationScope) !== null && J !== void 0 ? J : r$N).importNode(te, !0);
1994
1994
  C$a.currentNode = oe;
1995
1995
  let ne = C$a.nextNode(), de = 0, ce = 0, ue = re[0];
1996
1996
  for (; ue !== void 0; ) {
1997
1997
  if (de === ue.index) {
1998
1998
  let he;
1999
- ue.type === 2 ? he = new R$6(ne, ne.nextSibling, this, W) : ue.type === 1 ? he = new ue.ctor(ne, ue.name, ue.strings, this, W) : ue.type === 6 && (he = new Z$1(ne, this, W)), this._$AV.push(he), ue = re[++ce];
1999
+ ue.type === 2 ? he = new R$7(ne, ne.nextSibling, this, W) : ue.type === 1 ? he = new ue.ctor(ne, ue.name, ue.strings, this, W) : ue.type === 6 && (he = new Z$1(ne, this, W)), this._$AV.push(he), ue = re[++ce];
2000
2000
  }
2001
2001
  de !== ue?.index && (ne = C$a.nextNode(), de++);
2002
2002
  }
2003
- return C$a.currentNode = r$M, oe;
2003
+ return C$a.currentNode = r$N, oe;
2004
2004
  }
2005
2005
  v(W) {
2006
2006
  let J = 0;
2007
2007
  for (const te of this._$AV) te !== void 0 && (te.strings !== void 0 ? (te._$AI(W, te, J), J += te.strings.length - 2) : te._$AI(W[J])), J++;
2008
2008
  }
2009
- }, R$6 = class Ai {
2009
+ }, R$7 = class Ai {
2010
2010
  constructor(W, J, te, re) {
2011
2011
  var oe;
2012
2012
  this.type = 2, this._$AH = A$2, this._$AN = void 0, this._$AA = W, this._$AB = J, this._$AM = te, this.options = re, this._$Cp = (oe = re?.isConnected) === null || oe === void 0 || oe;
@@ -2027,7 +2027,7 @@ let M$6 = class {
2027
2027
  return this._$AB;
2028
2028
  }
2029
2029
  _$AI(W, J = this) {
2030
- W = S$g(this, W, J), d$v(W) ? W === A$2 || W == null || W === "" ? (this._$AH !== A$2 && this._$AR(), this._$AH = A$2) : W !== this._$AH && W !== T$9 && this._(W) : W._$litType$ !== void 0 ? this.g(W) : W.nodeType !== void 0 ? this.$(W) : v$n(W) ? this.T(W) : this._(W);
2030
+ W = S$g(this, W, J), d$v(W) ? W === A$2 || W == null || W === "" ? (this._$AH !== A$2 && this._$AR(), this._$AH = A$2) : W !== this._$AH && W !== T$9 && this._(W) : W._$litType$ !== void 0 ? this.g(W) : W.nodeType !== void 0 ? this.$(W) : v$o(W) ? this.T(W) : this._(W);
2031
2031
  }
2032
2032
  k(W) {
2033
2033
  return this._$AA.parentNode.insertBefore(W, this._$AB);
@@ -2036,7 +2036,7 @@ let M$6 = class {
2036
2036
  this._$AH !== W && (this._$AR(), this._$AH = this.k(W));
2037
2037
  }
2038
2038
  _(W) {
2039
- this._$AH !== A$2 && d$v(this._$AH) ? this._$AA.nextSibling.data = W : this.$(r$M.createTextNode(W)), this._$AH = W;
2039
+ this._$AH !== A$2 && d$v(this._$AH) ? this._$AA.nextSibling.data = W : this.$(r$N.createTextNode(W)), this._$AH = W;
2040
2040
  }
2041
2041
  g(W) {
2042
2042
  var J;
@@ -2135,14 +2135,14 @@ let L$7 = class extends k$b {
2135
2135
  }
2136
2136
  };
2137
2137
  const B$5 = i$W.litHtmlPolyfillSupport;
2138
- B$5?.(N$2, R$6), ((t$z = i$W.litHtmlVersions) !== null && t$z !== void 0 ? t$z : i$W.litHtmlVersions = []).push("2.8.0");
2138
+ B$5?.(N$2, R$7), ((t$z = i$W.litHtmlVersions) !== null && t$z !== void 0 ? t$z : i$W.litHtmlVersions = []).push("2.8.0");
2139
2139
  const D$5 = (X, W, J) => {
2140
2140
  var te, re;
2141
2141
  const oe = (te = J?.renderBefore) !== null && te !== void 0 ? te : W;
2142
2142
  let ne = oe._$litPart$;
2143
2143
  if (ne === void 0) {
2144
2144
  const de = (re = J?.renderBefore) !== null && re !== void 0 ? re : null;
2145
- oe._$litPart$ = ne = new R$6(W.insertBefore(u$u(), de), de, void 0, J ?? {});
2145
+ oe._$litPart$ = ne = new R$7(W.insertBefore(u$u(), de), de, void 0, J ?? {});
2146
2146
  }
2147
2147
  return ne._$AI(X), ne;
2148
2148
  };
@@ -2241,7 +2241,66 @@ var nth = /* @__PURE__ */ _curry2(function(W, J) {
2241
2241
  }), prop = /* @__PURE__ */ _curry2(function(W, J) {
2242
2242
  return path([W], J);
2243
2243
  });
2244
- const u$s = (X) => (W) => pipe(prop(W.key), isNil)(X), q$4 = (X) => (W) => !u$s(X)(W) && isNil(X.shadowRoot.querySelector(`#${W.definition.targetId}`)), T$7 = (X) => (W) => {
2244
+ let R$6 = class {
2245
+ constructor() {
2246
+ this.viewsByRegion = {}, this.regions = {};
2247
+ }
2248
+ registerRegion(W, J) {
2249
+ this.regions[W] = [...this.regions[W] || [], J];
2250
+ }
2251
+ unregisterRegion(W, J) {
2252
+ this.regions[W] = this.getRegionsByName(W).filter((te) => te !== J);
2253
+ }
2254
+ registerView(W, J, te) {
2255
+ this.viewsByRegion[W] = [...this.viewsByRegion[W] || [], { key: J, view: te }];
2256
+ }
2257
+ getRegisteredViews(W) {
2258
+ return this.viewsByRegion[W] || [];
2259
+ }
2260
+ getRegionsByName(W) {
2261
+ return this.regions[W] || [];
2262
+ }
2263
+ clear() {
2264
+ this.viewsByRegion = {}, this.regions = {};
2265
+ }
2266
+ };
2267
+ const r$M = new R$6();
2268
+ let g$n = class Si {
2269
+ constructor() {
2270
+ this._regions = {};
2271
+ }
2272
+ add(W, J) {
2273
+ return a$u(!this.getRegion(W), "A region with the same name already exists"), this._regions[W] = J, r$M.registerRegion(W, J), this;
2274
+ }
2275
+ getRegion(W) {
2276
+ return this._regions[W];
2277
+ }
2278
+ remove(W, J) {
2279
+ let te, re;
2280
+ return typeof W == "string" && (te = this.getRegion(W), re = W, delete this._regions[W]), typeof W == "object" && (re = Object.keys(this._regions).find((oe) => this._regions[oe] === W), re && (te = W, J && W.removeViews(), delete this._regions[re])), re && te && r$M.unregisterRegion(re, te), te;
2281
+ }
2282
+ addViewToRegion(W, J, te) {
2283
+ const re = this.getRegion(W);
2284
+ return a$u(re, `Couldn't find a region with name: ${W}`), re.addView(J, te), this;
2285
+ }
2286
+ registerViewWithRegion(W, J, te) {
2287
+ return r$M.registerView(W, J, te), r$M.getRegionsByName(W).forEach((re) => re.addView(J, te)), this;
2288
+ }
2289
+ getRegisteredViews(W) {
2290
+ return r$M.getRegisteredViews(W);
2291
+ }
2292
+ clear() {
2293
+ return Object.keys(this._regions).forEach((W) => this.remove(W, !0)), this._regions = {}, this;
2294
+ }
2295
+ createRegionManager() {
2296
+ return new Si();
2297
+ }
2298
+ }, w$6 = class extends g$n {
2299
+ clear() {
2300
+ return super.clear(), r$M.clear(), this;
2301
+ }
2302
+ };
2303
+ const v$n = new w$6(), u$s = (X) => (W) => pipe(prop(W.key), isNil)(X), q$4 = (X) => (W) => !u$s(X)(W) && isNil(X.shadowRoot.querySelector(`#${W.definition.targetId}`)), T$7 = (X) => (W) => {
2245
2304
  const J = X[W.key];
2246
2305
  J.regionManager.remove(J);
2247
2306
  const te = J.adapter ? J.adapter.behaviors || [] : [];
@@ -2608,13 +2667,13 @@ const U$1 = (X, W) => {
2608
2667
  }
2609
2668
  return [N$1(X, oe + (X[J] || "<?>") + (W === 2 ? "</svg>" : W === 3 ? "</math>" : "")), te];
2610
2669
  };
2611
- let B$4 = class Si {
2670
+ let B$4 = class Ci {
2612
2671
  constructor({ strings: W, _$litType$: J }, te) {
2613
2672
  let re;
2614
2673
  this.parts = [];
2615
2674
  let oe = 0, ne = 0;
2616
2675
  const de = W.length - 1, ce = this.parts, [ue, he] = U$1(W, J);
2617
- if (this.el = Si.createElement(ue, te), I$2.currentNode = this.el.content, J === 2 || J === 3) {
2676
+ if (this.el = Ci.createElement(ue, te), I$2.currentNode = this.el.content, J === 2 || J === 3) {
2618
2677
  const pe = this.el.content.firstChild;
2619
2678
  pe.replaceWith(...pe.childNodes);
2620
2679
  }
@@ -2678,7 +2737,7 @@ let F$3 = class {
2678
2737
  let J = 0;
2679
2738
  for (const te of this._$AV) te !== void 0 && (te.strings !== void 0 ? (te._$AI(W, te, J), J += te.strings.length - 2) : te._$AI(W[J])), J++;
2680
2739
  }
2681
- }, et$1 = class Ci {
2740
+ }, et$1 = class Ei {
2682
2741
  get _$AU() {
2683
2742
  return this._$AM?._$AU ?? this.v;
2684
2743
  }
@@ -2724,7 +2783,7 @@ let F$3 = class {
2724
2783
  g$m(this._$AH) || (this._$AH = [], this._$AR());
2725
2784
  const J = this._$AH;
2726
2785
  let te, re = 0;
2727
- for (const oe of W) re === J.length ? J.push(te = new Ci(this.O(lt$1()), this.O(lt$1()), this, this.options)) : te = J[re], te._$AI(oe), re++;
2786
+ for (const oe of W) re === J.length ? J.push(te = new Ei(this.O(lt$1()), this.O(lt$1()), this, this.options)) : te = J[re], te._$AI(oe), re++;
2728
2787
  re < J.length && (this._$AR(te && te._$AB.nextSibling, re), J.length = re);
2729
2788
  }
2730
2789
  _$AR(W = this._$AA.nextSibling, J) {
@@ -2956,7 +3015,7 @@ let w$3 = class {
2956
3015
  clear() {
2957
3016
  this.viewsByRegion = {};
2958
3017
  }
2959
- }, n$z = class Ei {
3018
+ }, n$z = class Ti {
2960
3019
  constructor(W) {
2961
3020
  this._viewRegistry = W, this._regions = {};
2962
3021
  }
@@ -3006,7 +3065,7 @@ let w$3 = class {
3006
3065
  ), this._regions = {}, this;
3007
3066
  }
3008
3067
  createRegionManager() {
3009
- return new Ei(this._viewRegistry);
3068
+ return new Ti(this._viewRegistry);
3010
3069
  }
3011
3070
  }, c$q = class extends n$z {
3012
3071
  constructor(W) {
@@ -4817,8 +4876,8 @@ const resolveConfig = (X) => {
4817
4876
  method: "POST",
4818
4877
  body: _e,
4819
4878
  duplex: "half"
4820
- }), Ve;
4821
- if (utils$1.isFormData(_e) && (Ve = Fe.headers.get("content-type")) && Me.setContentType(Ve), Fe.body) {
4879
+ }), Ue;
4880
+ if (utils$1.isFormData(_e) && (Ue = Fe.headers.get("content-type")) && Me.setContentType(Ue), Fe.body) {
4822
4881
  const [Be, Xe] = progressEventDecorator(
4823
4882
  We,
4824
4883
  progressEventReducer(asyncDecorator(Pe))
@@ -4844,8 +4903,8 @@ const resolveConfig = (X) => {
4844
4903
  ["status", "statusText", "headers"].forEach((Je) => {
4845
4904
  Fe[Je] = ft[Je];
4846
4905
  });
4847
- const Ve = utils$1.toFiniteNumber(ft.headers.get("content-length")), [Be, Xe] = Se && progressEventDecorator(
4848
- Ve,
4906
+ const Ue = utils$1.toFiniteNumber(ft.headers.get("content-length")), [Be, Xe] = Se && progressEventDecorator(
4907
+ Ue,
4849
4908
  progressEventReducer(asyncDecorator(Se), !0)
4850
4909
  ) || [];
4851
4910
  ft = new te(
@@ -4857,8 +4916,8 @@ const resolveConfig = (X) => {
4857
4916
  }
4858
4917
  De = De || "text";
4859
4918
  let Ze = await pe[utils$1.findKey(pe, De) || "text"](ft, me);
4860
- return !Qe && ze && ze(), await new Promise((Fe, Ve) => {
4861
- settle(Fe, Ve, {
4919
+ return !Qe && ze && ze(), await new Promise((Fe, Ue) => {
4920
+ settle(Fe, Ue, {
4862
4921
  data: Ze,
4863
4922
  headers: AxiosHeaders$1.from(ft.headers),
4864
4923
  status: ft.status,
@@ -5131,7 +5190,7 @@ utils$1.forEach(["post", "put", "patch"], function(W) {
5131
5190
  }
5132
5191
  Axios$1.prototype[W] = J(), Axios$1.prototype[W + "Form"] = J(!0);
5133
5192
  });
5134
- let CancelToken$1 = class Ti {
5193
+ let CancelToken$1 = class Oi {
5135
5194
  constructor(W) {
5136
5195
  if (typeof W != "function")
5137
5196
  throw new TypeError("executor must be a function.");
@@ -5197,7 +5256,7 @@ let CancelToken$1 = class Ti {
5197
5256
  static source() {
5198
5257
  let W;
5199
5258
  return {
5200
- token: new Ti(function(re) {
5259
+ token: new Oi(function(re) {
5201
5260
  W = re;
5202
5261
  }),
5203
5262
  cancel: W
@@ -5920,7 +5979,7 @@ function peg$parse(X, W) {
5920
5979
  return __assign$4({ type: TYPE.pound }, _s());
5921
5980
  }, he = bs("argumentElement"), pe = "{", fe = us("{", !1), be = "}", me = us("}", !1), ge = function(Oe) {
5922
5981
  return __assign$4({ type: TYPE.argument, value: Oe }, _s());
5923
- }, ve = bs("numberSkeletonId"), _e = /^['\/{}]/, we = $s(["'", "/", "{", "}"], !1, !1), Ae = zi(), ye = bs("numberSkeletonTokenOption"), Se = "/", Pe = us("/", !1), De = function(Oe) {
5982
+ }, ve = bs("numberSkeletonId"), _e = /^['\/{}]/, we = $s(["'", "/", "{", "}"], !1, !1), Ae = Ni(), ye = bs("numberSkeletonTokenOption"), Se = "/", Pe = us("/", !1), De = function(Oe) {
5924
5983
  return Oe;
5925
5984
  }, Me = bs("numberSkeletonToken"), He = function(Oe, je) {
5926
5985
  return { stem: Oe, options: je };
@@ -5934,15 +5993,15 @@ function peg$parse(X, W) {
5934
5993
  return vs.pop(), Oe.replace(/\s*$/, "");
5935
5994
  }, Ge = ",", Ke = us(",", !1), ft = "number", Qe = us("number", !1), Ze = function(Oe, je, tt) {
5936
5995
  return __assign$4({ type: je === "number" ? TYPE.number : je === "date" ? TYPE.date : TYPE.time, style: tt && tt[2], value: Oe }, _s());
5937
- }, Fe = "'", Ve = us("'", !1), Be = /^[^']/, Xe = $s(["'"], !0, !1), Je = /^[^a-zA-Z'{}]/, Ue = $s([["a", "z"], ["A", "Z"], "'", "{", "}"], !0, !1), Ye = /^[a-zA-Z]/, rt = $s([["a", "z"], ["A", "Z"]], !1, !1), ot = function(Oe) {
5996
+ }, Fe = "'", Ue = us("'", !1), Be = /^[^']/, Xe = $s(["'"], !0, !1), Je = /^[^a-zA-Z'{}]/, Ve = $s([["a", "z"], ["A", "Z"], "'", "{", "}"], !0, !1), Ye = /^[a-zA-Z]/, rt = $s([["a", "z"], ["A", "Z"]], !1, !1), ot = function(Oe) {
5938
5997
  return __assign$4({ type: 1, pattern: Oe }, _s());
5939
5998
  }, _t = function() {
5940
5999
  return vs.push("dateOrTimeArgStyle"), !0;
5941
- }, kt = "date", It = us("date", !1), qt = "time", Nt = us("time", !1), Ut = "plural", rs = us("plural", !1), Yt = "selectordinal", gt = us("selectordinal", !1), mt = "offset:", xt = us("offset:", !1), St = function(Oe, je, tt, bt) {
6000
+ }, kt = "date", It = us("date", !1), qt = "time", Nt = us("time", !1), Vt = "plural", rs = us("plural", !1), Yt = "selectordinal", gt = us("selectordinal", !1), mt = "offset:", xt = us("offset:", !1), St = function(Oe, je, tt, bt) {
5942
6001
  return __assign$4({ type: TYPE.plural, pluralType: je === "plural" ? "cardinal" : "ordinal", value: Oe, offset: tt ? tt[2] : 0, options: bt.reduce(function(wt, Pt) {
5943
- var es = Pt.id, Vt = Pt.value, fs = Pt.location;
6002
+ var es = Pt.id, Ut = Pt.value, fs = Pt.location;
5944
6003
  return es in wt && ai('Duplicate option "' + es + '" in plural element: "' + ni() + '"', Is()), wt[es] = {
5945
- value: Vt,
6004
+ value: Ut,
5946
6005
  location: fs
5947
6006
  }, wt;
5948
6007
  }, {}) }, _s());
@@ -5975,16 +6034,16 @@ function peg$parse(X, W) {
5975
6034
  }, ns = function(Oe, je) {
5976
6035
  return Oe + je.replace("''", "'");
5977
6036
  }, ps = function(Oe) {
5978
- return Oe !== "{" && !(xi() && Oe === "#") && !(or() && Oe === "}");
6037
+ return Oe !== "{" && !(xi() && Oe === "#") && !(nr() && Oe === "}");
5979
6038
  }, Cs = `
5980
6039
  `, Ds = us(`
5981
6040
  `, !1), Rs = function(Oe) {
5982
6041
  return Oe === "{" || Oe === "}" || xi() && Oe === "#";
5983
- }, Oi = bs("argNameOrNumber"), Di = bs("argNumber"), Ri = "0", qi = us("0", !1), Ii = function() {
6042
+ }, Di = bs("argNameOrNumber"), Ri = bs("argNumber"), qi = "0", Ii = us("0", !1), Li = function() {
5984
6043
  return 0;
5985
- }, Li = /^[1-9]/, Pi = $s([["1", "9"]], !1, !1), ri = /^[0-9]/, oi = $s([["0", "9"]], !1, !1), Mi = function(Oe) {
6044
+ }, Pi = /^[1-9]/, Mi = $s([["1", "9"]], !1, !1), ri = /^[0-9]/, oi = $s([["0", "9"]], !1, !1), Fi = function(Oe) {
5986
6045
  return parseInt(Oe.join(""), 10);
5987
- }, Fi = bs("argName"), Ne = 0, Gt = 0, Es = [{ line: 1, column: 1 }], ms = 0, qs = [], yt = 0, Ts;
6046
+ }, zi = bs("argName"), Ne = 0, Gt = 0, Es = [{ line: 1, column: 1 }], ms = 0, qs = [], yt = 0, Ts;
5988
6047
  if (W.startRule !== void 0) {
5989
6048
  if (!(W.startRule in te))
5990
6049
  throw new Error(`Can't start parsing from rule "` + W.startRule + '".');
@@ -5997,7 +6056,7 @@ function peg$parse(X, W) {
5997
6056
  return Os(Gt, Ne);
5998
6057
  }
5999
6058
  function ai(Oe, je) {
6000
- throw je = je !== void 0 ? je : Os(Gt, Ne), Hi(Oe, je);
6059
+ throw je = je !== void 0 ? je : Os(Gt, Ne), Bi(Oe, je);
6001
6060
  }
6002
6061
  function us(Oe, je) {
6003
6062
  return { type: "literal", text: Oe, ignoreCase: je };
@@ -6005,10 +6064,10 @@ function peg$parse(X, W) {
6005
6064
  function $s(Oe, je, tt) {
6006
6065
  return { type: "class", parts: Oe, inverted: je, ignoreCase: tt };
6007
6066
  }
6008
- function zi() {
6067
+ function Ni() {
6009
6068
  return { type: "any" };
6010
6069
  }
6011
- function Ni() {
6070
+ function Hi() {
6012
6071
  return { type: "end" };
6013
6072
  }
6014
6073
  function bs(Oe) {
@@ -6045,10 +6104,10 @@ function peg$parse(X, W) {
6045
6104
  function Ct(Oe) {
6046
6105
  Ne < ms || (Ne > ms && (ms = Ne, qs = []), qs.push(Oe));
6047
6106
  }
6048
- function Hi(Oe, je) {
6107
+ function Bi(Oe, je) {
6049
6108
  return new SyntaxError(Oe, [], "", je);
6050
6109
  }
6051
- function Bi(Oe, je, tt) {
6110
+ function Vi(Oe, je, tt) {
6052
6111
  return new SyntaxError(SyntaxError.buildMessage(Oe, je), Oe, je, tt);
6053
6112
  }
6054
6113
  function di() {
@@ -6063,7 +6122,7 @@ function peg$parse(X, W) {
6063
6122
  }
6064
6123
  function ci() {
6065
6124
  var Oe;
6066
- return Oe = Ui(), Oe === J && (Oe = ji(), Oe === J && (Oe = Xi(), Oe === J && (Oe = Ji(), Oe === J && (Oe = sr(), Oe === J && (Oe = Vi()))))), Oe;
6125
+ return Oe = Ui(), Oe === J && (Oe = Wi(), Oe === J && (Oe = Ji(), Oe === J && (Oe = sr(), Oe === J && (Oe = ir(), Oe === J && (Oe = ji()))))), Oe;
6067
6126
  }
6068
6127
  function Ps() {
6069
6128
  var Oe, je, tt;
@@ -6078,11 +6137,11 @@ function peg$parse(X, W) {
6078
6137
  var Oe, je;
6079
6138
  return Oe = Ne, je = Ps(), je !== J && (Gt = Oe, je = ne(je)), Oe = je, Oe;
6080
6139
  }
6081
- function Vi() {
6140
+ function ji() {
6082
6141
  var Oe, je;
6083
6142
  return Oe = Ne, X.charCodeAt(Ne) === 35 ? (je = de, Ne++) : (je = J, yt === 0 && Ct(ce)), je !== J && (Gt = Oe, je = ue()), Oe = je, Oe;
6084
6143
  }
6085
- function ji() {
6144
+ function Wi() {
6086
6145
  var Oe, je, tt, bt, wt, Pt;
6087
6146
  return yt++, Oe = Ne, X.charCodeAt(Ne) === 123 ? (je = pe, Ne++) : (je = J, yt === 0 && Ct(fe)), je !== J ? (tt = jt(), tt !== J ? (bt = As(), bt !== J ? (wt = jt(), wt !== J ? (X.charCodeAt(Ne) === 125 ? (Pt = be, Ne++) : (Pt = J, yt === 0 && Ct(me)), Pt !== J ? (Gt = Oe, je = ge(bt), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J), yt--, Oe === J && (je = J, yt === 0 && Ct(he)), Oe;
6088
6147
  }
@@ -6112,7 +6171,7 @@ function peg$parse(X, W) {
6112
6171
  Ne = Oe, Oe = J;
6113
6172
  return yt--, Oe === J && (je = J, yt === 0 && Ct(Me)), Oe;
6114
6173
  }
6115
- function Wi() {
6174
+ function Gi() {
6116
6175
  var Oe, je, tt;
6117
6176
  if (Oe = Ne, je = [], tt = pi(), tt !== J)
6118
6177
  for (; tt !== J; )
@@ -6121,29 +6180,29 @@ function peg$parse(X, W) {
6121
6180
  je = J;
6122
6181
  return je !== J && (Gt = Oe, je = Ie(je)), Oe = je, Oe;
6123
6182
  }
6124
- function Gi() {
6183
+ function Zi() {
6125
6184
  var Oe, je, tt;
6126
- return Oe = Ne, X.substr(Ne, 2) === Ce ? (je = Ce, Ne += 2) : (je = J, yt === 0 && Ct(qe)), je !== J ? (tt = Wi(), tt !== J ? (Gt = Oe, je = Le(tt), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J), Oe === J && (Oe = Ne, Gt = Ne, je = ze(), je ? je = void 0 : je = J, je !== J ? (tt = Ps(), tt !== J ? (Gt = Oe, je = We(tt), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)), Oe;
6185
+ return Oe = Ne, X.substr(Ne, 2) === Ce ? (je = Ce, Ne += 2) : (je = J, yt === 0 && Ct(qe)), je !== J ? (tt = Gi(), tt !== J ? (Gt = Oe, je = Le(tt), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J), Oe === J && (Oe = Ne, Gt = Ne, je = ze(), je ? je = void 0 : je = J, je !== J ? (tt = Ps(), tt !== J ? (Gt = Oe, je = We(tt), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)), Oe;
6127
6186
  }
6128
- function Zi() {
6129
- var Oe, je, tt, bt, wt, Pt, es, Vt, fs, Wt, as, Zt, ss;
6130
- return Oe = Ne, X.charCodeAt(Ne) === 123 ? (je = pe, Ne++) : (je = J, yt === 0 && Ct(fe)), je !== J ? (tt = jt(), tt !== J ? (bt = As(), bt !== J ? (wt = jt(), wt !== J ? (X.charCodeAt(Ne) === 44 ? (Pt = Ge, Ne++) : (Pt = J, yt === 0 && Ct(Ke)), Pt !== J ? (es = jt(), es !== J ? (X.substr(Ne, 6) === ft ? (Vt = ft, Ne += 6) : (Vt = J, yt === 0 && Ct(Qe)), Vt !== J ? (fs = jt(), fs !== J ? (Wt = Ne, X.charCodeAt(Ne) === 44 ? (as = Ge, Ne++) : (as = J, yt === 0 && Ct(Ke)), as !== J ? (Zt = jt(), Zt !== J ? (ss = Gi(), ss !== J ? (as = [as, Zt, ss], Wt = as) : (Ne = Wt, Wt = J)) : (Ne = Wt, Wt = J)) : (Ne = Wt, Wt = J), Wt === J && (Wt = null), Wt !== J ? (as = jt(), as !== J ? (X.charCodeAt(Ne) === 125 ? (Zt = be, Ne++) : (Zt = J, yt === 0 && Ct(me)), Zt !== J ? (Gt = Oe, je = Ze(bt, Vt, Wt), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J), Oe;
6187
+ function Ki() {
6188
+ var Oe, je, tt, bt, wt, Pt, es, Ut, fs, Wt, as, Zt, ss;
6189
+ return Oe = Ne, X.charCodeAt(Ne) === 123 ? (je = pe, Ne++) : (je = J, yt === 0 && Ct(fe)), je !== J ? (tt = jt(), tt !== J ? (bt = As(), bt !== J ? (wt = jt(), wt !== J ? (X.charCodeAt(Ne) === 44 ? (Pt = Ge, Ne++) : (Pt = J, yt === 0 && Ct(Ke)), Pt !== J ? (es = jt(), es !== J ? (X.substr(Ne, 6) === ft ? (Ut = ft, Ne += 6) : (Ut = J, yt === 0 && Ct(Qe)), Ut !== J ? (fs = jt(), fs !== J ? (Wt = Ne, X.charCodeAt(Ne) === 44 ? (as = Ge, Ne++) : (as = J, yt === 0 && Ct(Ke)), as !== J ? (Zt = jt(), Zt !== J ? (ss = Zi(), ss !== J ? (as = [as, Zt, ss], Wt = as) : (Ne = Wt, Wt = J)) : (Ne = Wt, Wt = J)) : (Ne = Wt, Wt = J), Wt === J && (Wt = null), Wt !== J ? (as = jt(), as !== J ? (X.charCodeAt(Ne) === 125 ? (Zt = be, Ne++) : (Zt = J, yt === 0 && Ct(me)), Zt !== J ? (Gt = Oe, je = Ze(bt, Ut, Wt), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J), Oe;
6131
6190
  }
6132
6191
  function fi() {
6133
6192
  var Oe, je, tt, bt;
6134
- if (Oe = Ne, X.charCodeAt(Ne) === 39 ? (je = Fe, Ne++) : (je = J, yt === 0 && Ct(Ve)), je !== J) {
6193
+ if (Oe = Ne, X.charCodeAt(Ne) === 39 ? (je = Fe, Ne++) : (je = J, yt === 0 && Ct(Ue)), je !== J) {
6135
6194
  if (tt = [], bt = xs(), bt === J && (Be.test(X.charAt(Ne)) ? (bt = X.charAt(Ne), Ne++) : (bt = J, yt === 0 && Ct(Xe))), bt !== J)
6136
6195
  for (; bt !== J; )
6137
6196
  tt.push(bt), bt = xs(), bt === J && (Be.test(X.charAt(Ne)) ? (bt = X.charAt(Ne), Ne++) : (bt = J, yt === 0 && Ct(Xe)));
6138
6197
  else
6139
6198
  tt = J;
6140
- tt !== J ? (X.charCodeAt(Ne) === 39 ? (bt = Fe, Ne++) : (bt = J, yt === 0 && Ct(Ve)), bt !== J ? (je = [je, tt, bt], Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J);
6199
+ tt !== J ? (X.charCodeAt(Ne) === 39 ? (bt = Fe, Ne++) : (bt = J, yt === 0 && Ct(Ue)), bt !== J ? (je = [je, tt, bt], Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J);
6141
6200
  } else
6142
6201
  Ne = Oe, Oe = J;
6143
6202
  if (Oe === J)
6144
- if (Oe = [], je = xs(), je === J && (Je.test(X.charAt(Ne)) ? (je = X.charAt(Ne), Ne++) : (je = J, yt === 0 && Ct(Ue))), je !== J)
6203
+ if (Oe = [], je = xs(), je === J && (Je.test(X.charAt(Ne)) ? (je = X.charAt(Ne), Ne++) : (je = J, yt === 0 && Ct(Ve))), je !== J)
6145
6204
  for (; je !== J; )
6146
- Oe.push(je), je = xs(), je === J && (Je.test(X.charAt(Ne)) ? (je = X.charAt(Ne), Ne++) : (je = J, yt === 0 && Ct(Ue)));
6205
+ Oe.push(je), je = xs(), je === J && (Je.test(X.charAt(Ne)) ? (je = X.charAt(Ne), Ne++) : (je = J, yt === 0 && Ct(Ve)));
6147
6206
  else
6148
6207
  Oe = J;
6149
6208
  return Oe;
@@ -6157,7 +6216,7 @@ function peg$parse(X, W) {
6157
6216
  Oe = J;
6158
6217
  return Oe;
6159
6218
  }
6160
- function Ki() {
6219
+ function Yi() {
6161
6220
  var Oe, je, tt, bt;
6162
6221
  if (Oe = Ne, je = Ne, tt = [], bt = fi(), bt === J && (bt = bi()), bt !== J)
6163
6222
  for (; bt !== J; )
@@ -6166,27 +6225,27 @@ function peg$parse(X, W) {
6166
6225
  tt = J;
6167
6226
  return tt !== J ? je = X.substring(je, Ne) : je = tt, je !== J && (Gt = Oe, je = ot(je)), Oe = je, Oe;
6168
6227
  }
6169
- function Yi() {
6170
- var Oe, je, tt;
6171
- return Oe = Ne, X.substr(Ne, 2) === Ce ? (je = Ce, Ne += 2) : (je = J, yt === 0 && Ct(qe)), je !== J ? (tt = Ki(), tt !== J ? (Gt = Oe, je = Le(tt), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J), Oe === J && (Oe = Ne, Gt = Ne, je = _t(), je ? je = void 0 : je = J, je !== J ? (tt = Ps(), tt !== J ? (Gt = Oe, je = We(tt), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)), Oe;
6172
- }
6173
6228
  function Qi() {
6174
- var Oe, je, tt, bt, wt, Pt, es, Vt, fs, Wt, as, Zt, ss;
6175
- return Oe = Ne, X.charCodeAt(Ne) === 123 ? (je = pe, Ne++) : (je = J, yt === 0 && Ct(fe)), je !== J ? (tt = jt(), tt !== J ? (bt = As(), bt !== J ? (wt = jt(), wt !== J ? (X.charCodeAt(Ne) === 44 ? (Pt = Ge, Ne++) : (Pt = J, yt === 0 && Ct(Ke)), Pt !== J ? (es = jt(), es !== J ? (X.substr(Ne, 4) === kt ? (Vt = kt, Ne += 4) : (Vt = J, yt === 0 && Ct(It)), Vt === J && (X.substr(Ne, 4) === qt ? (Vt = qt, Ne += 4) : (Vt = J, yt === 0 && Ct(Nt))), Vt !== J ? (fs = jt(), fs !== J ? (Wt = Ne, X.charCodeAt(Ne) === 44 ? (as = Ge, Ne++) : (as = J, yt === 0 && Ct(Ke)), as !== J ? (Zt = jt(), Zt !== J ? (ss = Yi(), ss !== J ? (as = [as, Zt, ss], Wt = as) : (Ne = Wt, Wt = J)) : (Ne = Wt, Wt = J)) : (Ne = Wt, Wt = J), Wt === J && (Wt = null), Wt !== J ? (as = jt(), as !== J ? (X.charCodeAt(Ne) === 125 ? (Zt = be, Ne++) : (Zt = J, yt === 0 && Ct(me)), Zt !== J ? (Gt = Oe, je = Ze(bt, Vt, Wt), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J), Oe;
6229
+ var Oe, je, tt;
6230
+ return Oe = Ne, X.substr(Ne, 2) === Ce ? (je = Ce, Ne += 2) : (je = J, yt === 0 && Ct(qe)), je !== J ? (tt = Yi(), tt !== J ? (Gt = Oe, je = Le(tt), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J), Oe === J && (Oe = Ne, Gt = Ne, je = _t(), je ? je = void 0 : je = J, je !== J ? (tt = Ps(), tt !== J ? (Gt = Oe, je = We(tt), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)), Oe;
6176
6231
  }
6177
6232
  function Xi() {
6178
- var Oe;
6179
- return Oe = Zi(), Oe === J && (Oe = Qi()), Oe;
6233
+ var Oe, je, tt, bt, wt, Pt, es, Ut, fs, Wt, as, Zt, ss;
6234
+ return Oe = Ne, X.charCodeAt(Ne) === 123 ? (je = pe, Ne++) : (je = J, yt === 0 && Ct(fe)), je !== J ? (tt = jt(), tt !== J ? (bt = As(), bt !== J ? (wt = jt(), wt !== J ? (X.charCodeAt(Ne) === 44 ? (Pt = Ge, Ne++) : (Pt = J, yt === 0 && Ct(Ke)), Pt !== J ? (es = jt(), es !== J ? (X.substr(Ne, 4) === kt ? (Ut = kt, Ne += 4) : (Ut = J, yt === 0 && Ct(It)), Ut === J && (X.substr(Ne, 4) === qt ? (Ut = qt, Ne += 4) : (Ut = J, yt === 0 && Ct(Nt))), Ut !== J ? (fs = jt(), fs !== J ? (Wt = Ne, X.charCodeAt(Ne) === 44 ? (as = Ge, Ne++) : (as = J, yt === 0 && Ct(Ke)), as !== J ? (Zt = jt(), Zt !== J ? (ss = Qi(), ss !== J ? (as = [as, Zt, ss], Wt = as) : (Ne = Wt, Wt = J)) : (Ne = Wt, Wt = J)) : (Ne = Wt, Wt = J), Wt === J && (Wt = null), Wt !== J ? (as = jt(), as !== J ? (X.charCodeAt(Ne) === 125 ? (Zt = be, Ne++) : (Zt = J, yt === 0 && Ct(me)), Zt !== J ? (Gt = Oe, je = Ze(bt, Ut, Wt), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J), Oe;
6180
6235
  }
6181
6236
  function Ji() {
6182
- var Oe, je, tt, bt, wt, Pt, es, Vt, fs, Wt, as, Zt, ss, gs, ys, Fs;
6237
+ var Oe;
6238
+ return Oe = Ki(), Oe === J && (Oe = Xi()), Oe;
6239
+ }
6240
+ function sr() {
6241
+ var Oe, je, tt, bt, wt, Pt, es, Ut, fs, Wt, as, Zt, ss, gs, ys, Fs;
6183
6242
  if (Oe = Ne, X.charCodeAt(Ne) === 123 ? (je = pe, Ne++) : (je = J, yt === 0 && Ct(fe)), je !== J)
6184
6243
  if (tt = jt(), tt !== J)
6185
6244
  if (bt = As(), bt !== J)
6186
6245
  if (wt = jt(), wt !== J)
6187
6246
  if (X.charCodeAt(Ne) === 44 ? (Pt = Ge, Ne++) : (Pt = J, yt === 0 && Ct(Ke)), Pt !== J)
6188
6247
  if (es = jt(), es !== J)
6189
- if (X.substr(Ne, 6) === Ut ? (Vt = Ut, Ne += 6) : (Vt = J, yt === 0 && Ct(rs)), Vt === J && (X.substr(Ne, 13) === Yt ? (Vt = Yt, Ne += 13) : (Vt = J, yt === 0 && Ct(gt))), Vt !== J)
6248
+ if (X.substr(Ne, 6) === Vt ? (Ut = Vt, Ne += 6) : (Ut = J, yt === 0 && Ct(rs)), Ut === J && (X.substr(Ne, 13) === Yt ? (Ut = Yt, Ne += 13) : (Ut = J, yt === 0 && Ct(gt))), Ut !== J)
6190
6249
  if (fs = jt(), fs !== J)
6191
6250
  if (X.charCodeAt(Ne) === 44 ? (Wt = Ge, Ne++) : (Wt = J, yt === 0 && Ct(Ke)), Wt !== J)
6192
6251
  if (as = jt(), as !== J)
@@ -6197,7 +6256,7 @@ function peg$parse(X, W) {
6197
6256
  gs.push(ys), ys = mi();
6198
6257
  else
6199
6258
  gs = J;
6200
- gs !== J ? (ys = jt(), ys !== J ? (X.charCodeAt(Ne) === 125 ? (Fs = be, Ne++) : (Fs = J, yt === 0 && Ct(me)), Fs !== J ? (Gt = Oe, je = St(bt, Vt, Zt, gs), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J);
6259
+ gs !== J ? (ys = jt(), ys !== J ? (X.charCodeAt(Ne) === 125 ? (Fs = be, Ne++) : (Fs = J, yt === 0 && Ct(me)), Fs !== J ? (Gt = Oe, je = St(bt, Ut, Zt, gs), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J);
6201
6260
  } else
6202
6261
  Ne = Oe, Oe = J;
6203
6262
  else
@@ -6224,15 +6283,15 @@ function peg$parse(X, W) {
6224
6283
  Ne = Oe, Oe = J;
6225
6284
  return Oe;
6226
6285
  }
6227
- function sr() {
6228
- var Oe, je, tt, bt, wt, Pt, es, Vt, fs, Wt, as, Zt, ss, gs;
6286
+ function ir() {
6287
+ var Oe, je, tt, bt, wt, Pt, es, Ut, fs, Wt, as, Zt, ss, gs;
6229
6288
  if (Oe = Ne, X.charCodeAt(Ne) === 123 ? (je = pe, Ne++) : (je = J, yt === 0 && Ct(fe)), je !== J)
6230
6289
  if (tt = jt(), tt !== J)
6231
6290
  if (bt = As(), bt !== J)
6232
6291
  if (wt = jt(), wt !== J)
6233
6292
  if (X.charCodeAt(Ne) === 44 ? (Pt = Ge, Ne++) : (Pt = J, yt === 0 && Ct(Ke)), Pt !== J)
6234
6293
  if (es = jt(), es !== J)
6235
- if (X.substr(Ne, 6) === $t ? (Vt = $t, Ne += 6) : (Vt = J, yt === 0 && Ct(Ft)), Vt !== J)
6294
+ if (X.substr(Ne, 6) === $t ? (Ut = $t, Ne += 6) : (Ut = J, yt === 0 && Ct(Ft)), Ut !== J)
6236
6295
  if (fs = jt(), fs !== J)
6237
6296
  if (X.charCodeAt(Ne) === 44 ? (Wt = Ge, Ne++) : (Wt = J, yt === 0 && Ct(Ke)), Wt !== J)
6238
6297
  if (as = jt(), as !== J) {
@@ -6264,17 +6323,17 @@ function peg$parse(X, W) {
6264
6323
  Ne = Oe, Oe = J;
6265
6324
  return Oe;
6266
6325
  }
6267
- function ir() {
6326
+ function rr() {
6268
6327
  var Oe, je, tt, bt;
6269
6328
  return Oe = Ne, je = Ne, X.charCodeAt(Ne) === 61 ? (tt = zt, Ne++) : (tt = J, yt === 0 && Ct(cs)), tt !== J ? (bt = _i(), bt !== J ? (tt = [tt, bt], je = tt) : (Ne = je, je = J)) : (Ne = je, je = J), je !== J ? Oe = X.substring(Oe, Ne) : Oe = je, Oe === J && (Oe = Ms()), Oe;
6270
6329
  }
6271
6330
  function gi() {
6272
- var Oe, je, tt, bt, wt, Pt, es, Vt;
6273
- return Oe = Ne, je = jt(), je !== J ? (tt = Ms(), tt !== J ? (bt = jt(), bt !== J ? (X.charCodeAt(Ne) === 123 ? (wt = pe, Ne++) : (wt = J, yt === 0 && Ct(fe)), wt !== J ? (Gt = Ne, Pt = ds(), Pt ? Pt = void 0 : Pt = J, Pt !== J ? (es = Ls(), es !== J ? (X.charCodeAt(Ne) === 125 ? (Vt = be, Ne++) : (Vt = J, yt === 0 && Ct(me)), Vt !== J ? (Gt = Oe, je = Kt(tt, es), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J), Oe;
6331
+ var Oe, je, tt, bt, wt, Pt, es, Ut;
6332
+ return Oe = Ne, je = jt(), je !== J ? (tt = Ms(), tt !== J ? (bt = jt(), bt !== J ? (X.charCodeAt(Ne) === 123 ? (wt = pe, Ne++) : (wt = J, yt === 0 && Ct(fe)), wt !== J ? (Gt = Ne, Pt = ds(), Pt ? Pt = void 0 : Pt = J, Pt !== J ? (es = Ls(), es !== J ? (X.charCodeAt(Ne) === 125 ? (Ut = be, Ne++) : (Ut = J, yt === 0 && Ct(me)), Ut !== J ? (Gt = Oe, je = Kt(tt, es), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J), Oe;
6274
6333
  }
6275
6334
  function mi() {
6276
- var Oe, je, tt, bt, wt, Pt, es, Vt;
6277
- return Oe = Ne, je = jt(), je !== J ? (tt = ir(), tt !== J ? (bt = jt(), bt !== J ? (X.charCodeAt(Ne) === 123 ? (wt = pe, Ne++) : (wt = J, yt === 0 && Ct(fe)), wt !== J ? (Gt = Ne, Pt = ks(), Pt ? Pt = void 0 : Pt = J, Pt !== J ? (es = Ls(), es !== J ? (X.charCodeAt(Ne) === 125 ? (Vt = be, Ne++) : (Vt = J, yt === 0 && Ct(me)), Vt !== J ? (Gt = Oe, je = ts(tt, es), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J), Oe;
6335
+ var Oe, je, tt, bt, wt, Pt, es, Ut;
6336
+ return Oe = Ne, je = jt(), je !== J ? (tt = rr(), tt !== J ? (bt = jt(), bt !== J ? (X.charCodeAt(Ne) === 123 ? (wt = pe, Ne++) : (wt = J, yt === 0 && Ct(fe)), wt !== J ? (Gt = Ne, Pt = ks(), Pt ? Pt = void 0 : Pt = J, Pt !== J ? (es = Ls(), es !== J ? (X.charCodeAt(Ne) === 125 ? (Ut = be, Ne++) : (Ut = J, yt === 0 && Ct(me)), Ut !== J ? (Gt = Oe, je = ts(tt, es), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J), Oe;
6278
6337
  }
6279
6338
  function ws() {
6280
6339
  var Oe;
@@ -6300,11 +6359,11 @@ function peg$parse(X, W) {
6300
6359
  }
6301
6360
  function yi() {
6302
6361
  var Oe, je, tt, bt, wt, Pt;
6303
- if (Oe = Ne, X.charCodeAt(Ne) === 39 ? (je = Fe, Ne++) : (je = J, yt === 0 && Ct(Ve)), je !== J)
6304
- if (tt = rr(), tt !== J) {
6362
+ if (Oe = Ne, X.charCodeAt(Ne) === 39 ? (je = Fe, Ne++) : (je = J, yt === 0 && Ct(Ue)), je !== J)
6363
+ if (tt = or(), tt !== J) {
6305
6364
  for (bt = Ne, wt = [], X.substr(Ne, 2) === Ot ? (Pt = Ot, Ne += 2) : (Pt = J, yt === 0 && Ct(Ht)), Pt === J && (Be.test(X.charAt(Ne)) ? (Pt = X.charAt(Ne), Ne++) : (Pt = J, yt === 0 && Ct(Xe))); Pt !== J; )
6306
6365
  wt.push(Pt), X.substr(Ne, 2) === Ot ? (Pt = Ot, Ne += 2) : (Pt = J, yt === 0 && Ct(Ht)), Pt === J && (Be.test(X.charAt(Ne)) ? (Pt = X.charAt(Ne), Ne++) : (Pt = J, yt === 0 && Ct(Xe)));
6307
- wt !== J ? bt = X.substring(bt, Ne) : bt = wt, bt !== J ? (X.charCodeAt(Ne) === 39 ? (wt = Fe, Ne++) : (wt = J, yt === 0 && Ct(Ve)), wt === J && (wt = null), wt !== J ? (Gt = Oe, je = ns(tt, bt), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J);
6366
+ wt !== J ? bt = X.substring(bt, Ne) : bt = wt, bt !== J ? (X.charCodeAt(Ne) === 39 ? (wt = Fe, Ne++) : (wt = J, yt === 0 && Ct(Ue)), wt === J && (wt = null), wt !== J ? (Gt = Oe, je = ns(tt, bt), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J);
6308
6367
  } else
6309
6368
  Ne = Oe, Oe = J;
6310
6369
  else
@@ -6315,26 +6374,26 @@ function peg$parse(X, W) {
6315
6374
  var Oe, je, tt, bt;
6316
6375
  return Oe = Ne, je = Ne, X.length > Ne ? (tt = X.charAt(Ne), Ne++) : (tt = J, yt === 0 && Ct(Ae)), tt !== J ? (Gt = Ne, bt = ps(tt), bt ? bt = void 0 : bt = J, bt !== J ? (tt = [tt, bt], je = tt) : (Ne = je, je = J)) : (Ne = je, je = J), je === J && (X.charCodeAt(Ne) === 10 ? (je = Cs, Ne++) : (je = J, yt === 0 && Ct(Ds))), je !== J ? Oe = X.substring(Oe, Ne) : Oe = je, Oe;
6317
6376
  }
6318
- function rr() {
6377
+ function or() {
6319
6378
  var Oe, je, tt, bt;
6320
6379
  return Oe = Ne, je = Ne, X.length > Ne ? (tt = X.charAt(Ne), Ne++) : (tt = J, yt === 0 && Ct(Ae)), tt !== J ? (Gt = Ne, bt = Rs(tt), bt ? bt = void 0 : bt = J, bt !== J ? (tt = [tt, bt], je = tt) : (Ne = je, je = J)) : (Ne = je, je = J), je !== J ? Oe = X.substring(Oe, Ne) : Oe = je, Oe;
6321
6380
  }
6322
6381
  function As() {
6323
6382
  var Oe, je;
6324
- return yt++, Oe = Ne, je = wi(), je === J && (je = Ms()), je !== J ? Oe = X.substring(Oe, Ne) : Oe = je, yt--, Oe === J && (je = J, yt === 0 && Ct(Oi)), Oe;
6383
+ return yt++, Oe = Ne, je = wi(), je === J && (je = Ms()), je !== J ? Oe = X.substring(Oe, Ne) : Oe = je, yt--, Oe === J && (je = J, yt === 0 && Ct(Di)), Oe;
6325
6384
  }
6326
6385
  function wi() {
6327
6386
  var Oe, je, tt, bt, wt;
6328
- if (yt++, Oe = Ne, X.charCodeAt(Ne) === 48 ? (je = Ri, Ne++) : (je = J, yt === 0 && Ct(qi)), je !== J && (Gt = Oe, je = Ii()), Oe = je, Oe === J) {
6329
- if (Oe = Ne, je = Ne, Li.test(X.charAt(Ne)) ? (tt = X.charAt(Ne), Ne++) : (tt = J, yt === 0 && Ct(Pi)), tt !== J) {
6387
+ if (yt++, Oe = Ne, X.charCodeAt(Ne) === 48 ? (je = qi, Ne++) : (je = J, yt === 0 && Ct(Ii)), je !== J && (Gt = Oe, je = Li()), Oe = je, Oe === J) {
6388
+ if (Oe = Ne, je = Ne, Pi.test(X.charAt(Ne)) ? (tt = X.charAt(Ne), Ne++) : (tt = J, yt === 0 && Ct(Mi)), tt !== J) {
6330
6389
  for (bt = [], ri.test(X.charAt(Ne)) ? (wt = X.charAt(Ne), Ne++) : (wt = J, yt === 0 && Ct(oi)); wt !== J; )
6331
6390
  bt.push(wt), ri.test(X.charAt(Ne)) ? (wt = X.charAt(Ne), Ne++) : (wt = J, yt === 0 && Ct(oi));
6332
6391
  bt !== J ? (tt = [tt, bt], je = tt) : (Ne = je, je = J);
6333
6392
  } else
6334
6393
  Ne = je, je = J;
6335
- je !== J && (Gt = Oe, je = Mi(je)), Oe = je;
6394
+ je !== J && (Gt = Oe, je = Fi(je)), Oe = je;
6336
6395
  }
6337
- return yt--, Oe === J && (je = J, yt === 0 && Ct(Di)), Oe;
6396
+ return yt--, Oe === J && (je = J, yt === 0 && Ct(Ri)), Oe;
6338
6397
  }
6339
6398
  function Ms() {
6340
6399
  var Oe, je, tt, bt, wt;
@@ -6343,10 +6402,10 @@ function peg$parse(X, W) {
6343
6402
  je.push(tt), tt = Ne, bt = Ne, yt++, wt = ws(), wt === J && (wt = vi()), yt--, wt === J ? bt = void 0 : (Ne = bt, bt = J), bt !== J ? (X.length > Ne ? (wt = X.charAt(Ne), Ne++) : (wt = J, yt === 0 && Ct(Ae)), wt !== J ? (bt = [bt, wt], tt = bt) : (Ne = tt, tt = J)) : (Ne = tt, tt = J);
6344
6403
  else
6345
6404
  je = J;
6346
- return je !== J ? Oe = X.substring(Oe, Ne) : Oe = je, yt--, Oe === J && (je = J, yt === 0 && Ct(Fi)), Oe;
6405
+ return je !== J ? Oe = X.substring(Oe, Ne) : Oe = je, yt--, Oe === J && (je = J, yt === 0 && Ct(zi)), Oe;
6347
6406
  }
6348
6407
  var vs = ["root"];
6349
- function or() {
6408
+ function nr() {
6350
6409
  return vs.length > 1;
6351
6410
  }
6352
6411
  function xi() {
@@ -6359,7 +6418,7 @@ function peg$parse(X, W) {
6359
6418
  }
6360
6419
  if (Ts = re(), Ts !== J && Ne === X.length)
6361
6420
  return Ts;
6362
- throw Ts !== J && Ne < X.length && Ct(Ni()), Bi(qs, ms < X.length ? X.charAt(ms) : null, ms < X.length ? Os(ms, ms + 1) : Os(ms, ms));
6421
+ throw Ts !== J && Ne < X.length && Ct(Hi()), Vi(qs, ms < X.length ? X.charAt(ms) : null, ms < X.length ? Os(ms, ms + 1) : Os(ms, ms));
6363
6422
  }
6364
6423
  var pegParse = peg$parse, __spreadArrays$2 = function() {
6365
6424
  for (var X = 0, W = 0, J = arguments.length; W < J; W++) X += arguments[W].length;
@@ -9692,7 +9751,7 @@ class ImportDataManagerImpl {
9692
9751
  async import(W, J) {
9693
9752
  this.currentImporterId = W, this.currentImportParams = J, this.selectedItems = {}, this.pluginTexts = {};
9694
9753
  try {
9695
- const { ImportDataManagerModal: te } = await import("./component-D15ByiOA.js"), { confirmed: re } = await this.interactionService.confirm(
9754
+ const { ImportDataManagerModal: te } = await import("./component-BCUKIjBl.js"), { confirmed: re } = await this.interactionService.confirm(
9696
9755
  void 0,
9697
9756
  { component: te },
9698
9757
  {
@@ -18375,17 +18434,17 @@ function flip(X) {
18375
18434
  }
18376
18435
  if (Me)
18377
18436
  for (var Ze = me ? 3 : 1, Fe = function(Je) {
18378
- var Ue = ye.find(function(Ye) {
18437
+ var Ve = ye.find(function(Ye) {
18379
18438
  var rt = De.get(Ye);
18380
18439
  if (rt)
18381
18440
  return rt.slice(0, Je).every(function(ot) {
18382
18441
  return ot;
18383
18442
  });
18384
18443
  });
18385
- if (Ue)
18386
- return He = Ue, "break";
18387
- }, Ve = Ze; Ve > 0; Ve--) {
18388
- var Be = Fe(Ve);
18444
+ if (Ve)
18445
+ return He = Ve, "break";
18446
+ }, Ue = Ze; Ue > 0; Ue--) {
18447
+ var Be = Fe(Ue);
18389
18448
  if (Be === "break") break;
18390
18449
  }
18391
18450
  W.placement !== He && (W.modifiersData[te]._skip = !0, W.placement = He, W.reset = !0);
@@ -18503,10 +18562,10 @@ function preventOverflow(X) {
18503
18562
  };
18504
18563
  if (Pe) {
18505
18564
  if (oe) {
18506
- var Le, ze = ye === "y" ? top : left, We = ye === "y" ? bottom : right, Ge = ye === "y" ? "height" : "width", Ke = Pe[ye], ft = Ke + ve[ze], Qe = Ke - ve[We], Ze = be ? -Me[Ge] / 2 : 0, Fe = we === start ? De[Ge] : Me[Ge], Ve = we === start ? -Me[Ge] : -De[Ge], Be = W.elements.arrow, Xe = be && Be ? getLayoutRect(Be) : {
18565
+ var Le, ze = ye === "y" ? top : left, We = ye === "y" ? bottom : right, Ge = ye === "y" ? "height" : "width", Ke = Pe[ye], ft = Ke + ve[ze], Qe = Ke - ve[We], Ze = be ? -Me[Ge] / 2 : 0, Fe = we === start ? De[Ge] : Me[Ge], Ue = we === start ? -Me[Ge] : -De[Ge], Be = W.elements.arrow, Xe = be && Be ? getLayoutRect(Be) : {
18507
18566
  width: 0,
18508
18567
  height: 0
18509
- }, Je = W.modifiersData["arrow#persistent"] ? W.modifiersData["arrow#persistent"].padding : getFreshSideObject(), Ue = Je[ze], Ye = Je[We], rt = within(0, De[Ge], Xe[Ge]), ot = Ae ? De[Ge] / 2 - Ze - rt - Ue - Ie.mainAxis : Fe - rt - Ue - Ie.mainAxis, _t = Ae ? -De[Ge] / 2 + Ze + rt + Ye + Ie.mainAxis : Ve + rt + Ye + Ie.mainAxis, kt = W.elements.arrow && getOffsetParent(W.elements.arrow), It = kt ? ye === "y" ? kt.clientTop || 0 : kt.clientLeft || 0 : 0, qt = (Le = Ce?.[ye]) != null ? Le : 0, Nt = Ke + ot - qt - It, Ut = Ke + _t - qt, rs = within(be ? min(ft, Nt) : ft, Ke, be ? max(Qe, Ut) : Qe);
18568
+ }, Je = W.modifiersData["arrow#persistent"] ? W.modifiersData["arrow#persistent"].padding : getFreshSideObject(), Ve = Je[ze], Ye = Je[We], rt = within(0, De[Ge], Xe[Ge]), ot = Ae ? De[Ge] / 2 - Ze - rt - Ve - Ie.mainAxis : Fe - rt - Ve - Ie.mainAxis, _t = Ae ? -De[Ge] / 2 + Ze + rt + Ye + Ie.mainAxis : Ue + rt + Ye + Ie.mainAxis, kt = W.elements.arrow && getOffsetParent(W.elements.arrow), It = kt ? ye === "y" ? kt.clientTop || 0 : kt.clientLeft || 0 : 0, qt = (Le = Ce?.[ye]) != null ? Le : 0, Nt = Ke + ot - qt - It, Vt = Ke + _t - qt, rs = within(be ? min(ft, Nt) : ft, Ke, be ? max(Qe, Vt) : Qe);
18510
18569
  Pe[ye] = rs, qe[ye] = rs - Ke;
18511
18570
  }
18512
18571
  if (de) {
@@ -22172,7 +22231,7 @@ const P$1 = er`dss-calendar${tr(f$n())}`, s$r = er`dss-icon${tr(f$n())}`, r$y =
22172
22231
  "dss-input-group--focused": ((Se = X._inputRangeEnd) == null ? void 0 : Se.value) || X._isEndFocused || X._copyInputRangeEndPlaceholder,
22173
22232
  "dss-input-group--read-only": (Pe = X._inputRangeEnd) == null ? void 0 : Pe.readOnly
22174
22233
  // 'dss-input-group--no-label': Boolean(!component._label),
22175
- }, Ve = {
22234
+ }, Ue = {
22176
22235
  "dss-calendar": !0,
22177
22236
  "dss-calendar--visible": X._showCalendar && !((De = X._inputRangeStart) != null && De.readOnly) && !((Me = X._inputRangeEnd) != null && Me.readOnly),
22178
22237
  "dss-calendar--disabled": ((He = X._inputRangeStart) == null ? void 0 : He.disabled) && ((Ie = X._inputRangeEnd) == null ? void 0 : Ie.disabled),
@@ -22273,7 +22332,7 @@ const P$1 = er`dss-calendar${tr(f$n())}`, s$r = er`dss-icon${tr(f$n())}`, r$y =
22273
22332
  role="listbox"
22274
22333
  aria-label="Datepicker Range Calendar"
22275
22334
  id="datepicker-range-calendar"
22276
- class="${Rt(Ve)}"
22335
+ class="${Rt(Ue)}"
22277
22336
  .selectedDate="${(Le = X._inputRangeStart) == null ? void 0 : Le.value}"
22278
22337
  .rangeStartDate="${(ze = X._inputRangeStart) == null ? void 0 : ze.value}"
22279
22338
  .rangeEndDate="${(We = X._inputRangeEnd) == null ? void 0 : We.value}"
@@ -38686,7 +38745,7 @@ const s$5 = ':host{max-width:100%}.dss-input-wrapper{display:flex;flex-direction
38686
38745
  "dss-input-group--focused": ((Se = X._inputRangeEnd) == null ? void 0 : Se.value) || X._isEndFocused || X._copyInputRangeEndPlaceholder,
38687
38746
  "dss-input-group--read-only": (Pe = X._inputRangeEnd) == null ? void 0 : Pe.readOnly
38688
38747
  // 'dss-input-group--no-label': Boolean(!component._label),
38689
- }, Ve = {
38748
+ }, Ue = {
38690
38749
  "dss-calendar": !0,
38691
38750
  "dss-calendar--visible": X.showCalendar && !((De = X._inputRangeStart) != null && De.readOnly) && !((Me = X._inputRangeEnd) != null && Me.readOnly),
38692
38751
  "dss-calendar--disabled": ((He = X._inputRangeStart) == null ? void 0 : He.disabled) && ((Ie = X._inputRangeEnd) == null ? void 0 : Ie.disabled),
@@ -38828,7 +38887,7 @@ const s$5 = ':host{max-width:100%}.dss-input-wrapper{display:flex;flex-direction
38828
38887
  role="listbox"
38829
38888
  aria-label="Datepicker Range Calendar"
38830
38889
  id="datepicker-range-calendar"
38831
- class="${Rt(Ve)}"
38890
+ class="${Rt(Ue)}"
38832
38891
  .selectedDate="${(Le = X._inputRangeStart) == null ? void 0 : Le.value}"
38833
38892
  .rangeStartDate="${(ze = X._inputRangeStart) == null ? void 0 : ze.value}"
38834
38893
  .rangeEndDate="${(We = X._inputRangeEnd) == null ? void 0 : We.value}"
@@ -43237,15 +43296,15 @@ var __defProp$d = Object.defineProperty, __decorateClass$d = (X, W, J, te) => {
43237
43296
  (ne = X[oe]) && (re = ne(W, J, re) || re);
43238
43297
  return re && __defProp$d(W, J, re), re;
43239
43298
  };
43240
- const Us = class Us extends h$q {
43299
+ const Vs = class Vs extends h$q {
43241
43300
  render() {
43242
43301
  return ke$1`${template$b(this)}`;
43243
43302
  }
43244
43303
  };
43245
- Us.styles = i$U`
43304
+ Vs.styles = i$U`
43246
43305
  ${r$L(styles$a)}
43247
43306
  `;
43248
- let PrimariaErrorView = Us;
43307
+ let PrimariaErrorView = Vs;
43249
43308
  __decorateClass$d([
43250
43309
  n$A()
43251
43310
  ], PrimariaErrorView.prototype, "error");
@@ -43322,7 +43381,7 @@ var __defProp$c = Object.defineProperty, __decorateClass$c = (X, W, J, te) => {
43322
43381
  (ne = X[oe]) && (re = ne(W, J, re) || re);
43323
43382
  return re && __defProp$c(W, J, re), re;
43324
43383
  };
43325
- const Vs = class Vs extends PrimariaRegionHost(h$q) {
43384
+ const Us = class Us extends PrimariaRegionHost(h$q) {
43326
43385
  constructor() {
43327
43386
  super(...arguments), this.menuOpened = !1;
43328
43387
  }
@@ -43356,10 +43415,10 @@ const Vs = class Vs extends PrimariaRegionHost(h$q) {
43356
43415
  J = new MutationObserver(te), J.observe(W, { childList: !0 });
43357
43416
  }
43358
43417
  };
43359
- Vs.styles = i$U`
43418
+ Us.styles = i$U`
43360
43419
  ${r$L(styles$9)}
43361
43420
  `;
43362
- let PrimariaShellHeader = Vs;
43421
+ let PrimariaShellHeader = Us;
43363
43422
  __decorateClass$c([
43364
43423
  s$K({ targetId: "header-region-container", name: shellApi.regionManager.regions.shell.header })
43365
43424
  ], PrimariaShellHeader.prototype, "headerRegion");
@@ -44447,20 +44506,20 @@ function requireQuill() {
44447
44506
  return Qe && typeof Symbol == "function" && Qe.constructor === Symbol && Qe !== Symbol.prototype ? "symbol" : typeof Qe;
44448
44507
  }, ne = /* @__PURE__ */ (function() {
44449
44508
  function Qe(Ze, Fe) {
44450
- var Ve = [], Be = !0, Xe = !1, Je = void 0;
44509
+ var Ue = [], Be = !0, Xe = !1, Je = void 0;
44451
44510
  try {
44452
- for (var Ue = Ze[Symbol.iterator](), Ye; !(Be = (Ye = Ue.next()).done) && (Ve.push(Ye.value), !(Fe && Ve.length === Fe)); Be = !0)
44511
+ for (var Ve = Ze[Symbol.iterator](), Ye; !(Be = (Ye = Ve.next()).done) && (Ue.push(Ye.value), !(Fe && Ue.length === Fe)); Be = !0)
44453
44512
  ;
44454
44513
  } catch (rt) {
44455
44514
  Xe = !0, Je = rt;
44456
44515
  } finally {
44457
44516
  try {
44458
- !Be && Ue.return && Ue.return();
44517
+ !Be && Ve.return && Ve.return();
44459
44518
  } finally {
44460
44519
  if (Xe) throw Je;
44461
44520
  }
44462
44521
  }
44463
- return Ve;
44522
+ return Ue;
44464
44523
  }
44465
44524
  return function(Ze, Fe) {
44466
44525
  if (Array.isArray(Ze))
@@ -44471,13 +44530,13 @@ function requireQuill() {
44471
44530
  };
44472
44531
  })(), de = /* @__PURE__ */ (function() {
44473
44532
  function Qe(Ze, Fe) {
44474
- for (var Ve = 0; Ve < Fe.length; Ve++) {
44475
- var Be = Fe[Ve];
44533
+ for (var Ue = 0; Ue < Fe.length; Ue++) {
44534
+ var Be = Fe[Ue];
44476
44535
  Be.enumerable = Be.enumerable || !1, Be.configurable = !0, "value" in Be && (Be.writable = !0), Object.defineProperty(Ze, Be.key, Be);
44477
44536
  }
44478
44537
  }
44479
- return function(Ze, Fe, Ve) {
44480
- return Fe && Qe(Ze.prototype, Fe), Ve && Qe(Ze, Ve), Ze;
44538
+ return function(Ze, Fe, Ue) {
44539
+ return Fe && Qe(Ze.prototype, Fe), Ue && Qe(Ze, Ue), Ze;
44481
44540
  };
44482
44541
  })();
44483
44542
  re(51);
@@ -44510,20 +44569,20 @@ function requireQuill() {
44510
44569
  }
44511
44570
  }, {
44512
44571
  key: "register",
44513
- value: function(Fe, Ve) {
44572
+ value: function(Fe, Ue) {
44514
44573
  var Be = this, Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
44515
44574
  if (typeof Fe != "string") {
44516
44575
  var Je = Fe.attrName || Fe.blotName;
44517
- typeof Je == "string" ? this.register("formats/" + Je, Fe, Ve) : Object.keys(Fe).forEach(function(Ue) {
44518
- Be.register(Ue, Fe[Ue], Ve);
44576
+ typeof Je == "string" ? this.register("formats/" + Je, Fe, Ue) : Object.keys(Fe).forEach(function(Ve) {
44577
+ Be.register(Ve, Fe[Ve], Ue);
44519
44578
  });
44520
44579
  } else
44521
- this.imports[Fe] != null && !Xe && Le.warn("Overwriting " + Fe + " with", Ve), this.imports[Fe] = Ve, (Fe.startsWith("blots/") || Fe.startsWith("formats/")) && Ve.blotName !== "abstract" ? _e.default.register(Ve) : Fe.startsWith("modules") && typeof Ve.register == "function" && Ve.register();
44580
+ this.imports[Fe] != null && !Xe && Le.warn("Overwriting " + Fe + " with", Ue), this.imports[Fe] = Ue, (Fe.startsWith("blots/") || Fe.startsWith("formats/")) && Ue.blotName !== "abstract" ? _e.default.register(Ue) : Fe.startsWith("modules") && typeof Ue.register == "function" && Ue.register();
44522
44581
  }
44523
44582
  }]);
44524
44583
  function Qe(Ze) {
44525
- var Fe = this, Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
44526
- if (qe(this, Qe), this.options = We(Ze, Ve), this.container = this.options.container, this.container == null)
44584
+ var Fe = this, Ue = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
44585
+ if (qe(this, Qe), this.options = We(Ze, Ue), this.container = this.options.container, this.container == null)
44527
44586
  return Le.error("Invalid Quill container", Ze);
44528
44587
  this.options.debug && Qe.debug(this.options.debug);
44529
44588
  var Be = this.container.innerHTML.trim();
@@ -44532,10 +44591,10 @@ function requireQuill() {
44532
44591
  whitelist: this.options.formats
44533
44592
  }), this.editor = new pe.default(this.scroll), this.selection = new Ae.default(this.scroll, this.emitter), this.theme = new this.options.theme(this, this.options), this.keyboard = this.theme.addModule("keyboard"), this.clipboard = this.theme.addModule("clipboard"), this.history = this.theme.addModule("history"), this.theme.init(), this.emitter.on(be.default.events.EDITOR_CHANGE, function(Je) {
44534
44593
  Je === be.default.events.TEXT_CHANGE && Fe.root.classList.toggle("ql-blank", Fe.editor.isBlank());
44535
- }), this.emitter.on(be.default.events.SCROLL_UPDATE, function(Je, Ue) {
44594
+ }), this.emitter.on(be.default.events.SCROLL_UPDATE, function(Je, Ve) {
44536
44595
  var Ye = Fe.selection.lastRange, rt = Ye && Ye.length === 0 ? Ye.index : void 0;
44537
44596
  Ge.call(Fe, function() {
44538
- return Fe.editor.update(null, Ue, rt);
44597
+ return Fe.editor.update(null, Ve, rt);
44539
44598
  }, Je);
44540
44599
  });
44541
44600
  var Xe = this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">` + Be + "<p><br></p></div>");
@@ -44544,12 +44603,12 @@ function requireQuill() {
44544
44603
  return de(Qe, [{
44545
44604
  key: "addContainer",
44546
44605
  value: function(Fe) {
44547
- var Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
44606
+ var Ue = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
44548
44607
  if (typeof Fe == "string") {
44549
44608
  var Be = Fe;
44550
44609
  Fe = document.createElement("div"), Fe.classList.add(Be);
44551
44610
  }
44552
- return this.container.insertBefore(Fe, Ve), Fe;
44611
+ return this.container.insertBefore(Fe, Ue), Fe;
44553
44612
  }
44554
44613
  }, {
44555
44614
  key: "blur",
@@ -44558,11 +44617,11 @@ function requireQuill() {
44558
44617
  }
44559
44618
  }, {
44560
44619
  key: "deleteText",
44561
- value: function(Fe, Ve, Be) {
44562
- var Xe = this, Je = Ke(Fe, Ve, Be), Ue = ne(Je, 4);
44563
- return Fe = Ue[0], Ve = Ue[1], Be = Ue[3], Ge.call(this, function() {
44564
- return Xe.editor.deleteText(Fe, Ve);
44565
- }, Be, Fe, -1 * Ve);
44620
+ value: function(Fe, Ue, Be) {
44621
+ var Xe = this, Je = Ke(Fe, Ue, Be), Ve = ne(Je, 4);
44622
+ return Fe = Ve[0], Ue = Ve[1], Be = Ve[3], Ge.call(this, function() {
44623
+ return Xe.editor.deleteText(Fe, Ue);
44624
+ }, Be, Fe, -1 * Ue);
44566
44625
  }
44567
44626
  }, {
44568
44627
  key: "disable",
@@ -44583,43 +44642,43 @@ function requireQuill() {
44583
44642
  }
44584
44643
  }, {
44585
44644
  key: "format",
44586
- value: function(Fe, Ve) {
44645
+ value: function(Fe, Ue) {
44587
44646
  var Be = this, Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : be.default.sources.API;
44588
44647
  return Ge.call(this, function() {
44589
- var Je = Be.getSelection(!0), Ue = new ue.default();
44648
+ var Je = Be.getSelection(!0), Ve = new ue.default();
44590
44649
  if (Je == null)
44591
- return Ue;
44650
+ return Ve;
44592
44651
  if (_e.default.query(Fe, _e.default.Scope.BLOCK))
44593
- Ue = Be.editor.formatLine(Je.index, Je.length, Ce({}, Fe, Ve));
44652
+ Ve = Be.editor.formatLine(Je.index, Je.length, Ce({}, Fe, Ue));
44594
44653
  else {
44595
44654
  if (Je.length === 0)
44596
- return Be.selection.format(Fe, Ve), Ue;
44597
- Ue = Be.editor.formatText(Je.index, Je.length, Ce({}, Fe, Ve));
44655
+ return Be.selection.format(Fe, Ue), Ve;
44656
+ Ve = Be.editor.formatText(Je.index, Je.length, Ce({}, Fe, Ue));
44598
44657
  }
44599
- return Be.setSelection(Je, be.default.sources.SILENT), Ue;
44658
+ return Be.setSelection(Je, be.default.sources.SILENT), Ve;
44600
44659
  }, Xe);
44601
44660
  }
44602
44661
  }, {
44603
44662
  key: "formatLine",
44604
- value: function(Fe, Ve, Be, Xe, Je) {
44605
- var Ue = this, Ye = void 0, rt = Ke(Fe, Ve, Be, Xe, Je), ot = ne(rt, 4);
44606
- return Fe = ot[0], Ve = ot[1], Ye = ot[2], Je = ot[3], Ge.call(this, function() {
44607
- return Ue.editor.formatLine(Fe, Ve, Ye);
44663
+ value: function(Fe, Ue, Be, Xe, Je) {
44664
+ var Ve = this, Ye = void 0, rt = Ke(Fe, Ue, Be, Xe, Je), ot = ne(rt, 4);
44665
+ return Fe = ot[0], Ue = ot[1], Ye = ot[2], Je = ot[3], Ge.call(this, function() {
44666
+ return Ve.editor.formatLine(Fe, Ue, Ye);
44608
44667
  }, Je, Fe, 0);
44609
44668
  }
44610
44669
  }, {
44611
44670
  key: "formatText",
44612
- value: function(Fe, Ve, Be, Xe, Je) {
44613
- var Ue = this, Ye = void 0, rt = Ke(Fe, Ve, Be, Xe, Je), ot = ne(rt, 4);
44614
- return Fe = ot[0], Ve = ot[1], Ye = ot[2], Je = ot[3], Ge.call(this, function() {
44615
- return Ue.editor.formatText(Fe, Ve, Ye);
44671
+ value: function(Fe, Ue, Be, Xe, Je) {
44672
+ var Ve = this, Ye = void 0, rt = Ke(Fe, Ue, Be, Xe, Je), ot = ne(rt, 4);
44673
+ return Fe = ot[0], Ue = ot[1], Ye = ot[2], Je = ot[3], Ge.call(this, function() {
44674
+ return Ve.editor.formatText(Fe, Ue, Ye);
44616
44675
  }, Je, Fe, 0);
44617
44676
  }
44618
44677
  }, {
44619
44678
  key: "getBounds",
44620
44679
  value: function(Fe) {
44621
- var Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, Be = void 0;
44622
- typeof Fe == "number" ? Be = this.selection.getBounds(Fe, Ve) : Be = this.selection.getBounds(Fe.index, Fe.length);
44680
+ var Ue = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, Be = void 0;
44681
+ typeof Fe == "number" ? Be = this.selection.getBounds(Fe, Ue) : Be = this.selection.getBounds(Fe.index, Fe.length);
44623
44682
  var Xe = this.container.getBoundingClientRect();
44624
44683
  return {
44625
44684
  bottom: Be.bottom - Xe.top,
@@ -44633,14 +44692,14 @@ function requireQuill() {
44633
44692
  }, {
44634
44693
  key: "getContents",
44635
44694
  value: function() {
44636
- var Fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - Fe, Be = Ke(Fe, Ve), Xe = ne(Be, 2);
44637
- return Fe = Xe[0], Ve = Xe[1], this.editor.getContents(Fe, Ve);
44695
+ var Fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, Ue = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - Fe, Be = Ke(Fe, Ue), Xe = ne(Be, 2);
44696
+ return Fe = Xe[0], Ue = Xe[1], this.editor.getContents(Fe, Ue);
44638
44697
  }
44639
44698
  }, {
44640
44699
  key: "getFormat",
44641
44700
  value: function() {
44642
- var Fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.getSelection(!0), Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
44643
- return typeof Fe == "number" ? this.editor.getFormat(Fe, Ve) : this.editor.getFormat(Fe.index, Fe.length);
44701
+ var Fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.getSelection(!0), Ue = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
44702
+ return typeof Fe == "number" ? this.editor.getFormat(Fe, Ue) : this.editor.getFormat(Fe.index, Fe.length);
44644
44703
  }
44645
44704
  }, {
44646
44705
  key: "getIndex",
@@ -44665,8 +44724,8 @@ function requireQuill() {
44665
44724
  }, {
44666
44725
  key: "getLines",
44667
44726
  value: function() {
44668
- var Fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE;
44669
- return typeof Fe != "number" ? this.scroll.lines(Fe.index, Fe.length) : this.scroll.lines(Fe, Ve);
44727
+ var Fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, Ue = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE;
44728
+ return typeof Fe != "number" ? this.scroll.lines(Fe.index, Fe.length) : this.scroll.lines(Fe, Ue);
44670
44729
  }
44671
44730
  }, {
44672
44731
  key: "getModule",
@@ -44682,8 +44741,8 @@ function requireQuill() {
44682
44741
  }, {
44683
44742
  key: "getText",
44684
44743
  value: function() {
44685
- var Fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - Fe, Be = Ke(Fe, Ve), Xe = ne(Be, 2);
44686
- return Fe = Xe[0], Ve = Xe[1], this.editor.getText(Fe, Ve);
44744
+ var Fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, Ue = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - Fe, Be = Ke(Fe, Ue), Xe = ne(Be, 2);
44745
+ return Fe = Xe[0], Ue = Xe[1], this.editor.getText(Fe, Ue);
44687
44746
  }
44688
44747
  }, {
44689
44748
  key: "hasFocus",
@@ -44692,19 +44751,19 @@ function requireQuill() {
44692
44751
  }
44693
44752
  }, {
44694
44753
  key: "insertEmbed",
44695
- value: function(Fe, Ve, Be) {
44754
+ value: function(Fe, Ue, Be) {
44696
44755
  var Xe = this, Je = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : Qe.sources.API;
44697
44756
  return Ge.call(this, function() {
44698
- return Xe.editor.insertEmbed(Fe, Ve, Be);
44757
+ return Xe.editor.insertEmbed(Fe, Ue, Be);
44699
44758
  }, Je, Fe);
44700
44759
  }
44701
44760
  }, {
44702
44761
  key: "insertText",
44703
- value: function(Fe, Ve, Be, Xe, Je) {
44704
- var Ue = this, Ye = void 0, rt = Ke(Fe, 0, Be, Xe, Je), ot = ne(rt, 4);
44762
+ value: function(Fe, Ue, Be, Xe, Je) {
44763
+ var Ve = this, Ye = void 0, rt = Ke(Fe, 0, Be, Xe, Je), ot = ne(rt, 4);
44705
44764
  return Fe = ot[0], Ye = ot[2], Je = ot[3], Ge.call(this, function() {
44706
- return Ue.editor.insertText(Fe, Ve, Ye);
44707
- }, Je, Fe, Ve.length);
44765
+ return Ve.editor.insertText(Fe, Ue, Ye);
44766
+ }, Je, Fe, Ue.length);
44708
44767
  }
44709
44768
  }, {
44710
44769
  key: "isEnabled",
@@ -44728,15 +44787,15 @@ function requireQuill() {
44728
44787
  }
44729
44788
  }, {
44730
44789
  key: "pasteHTML",
44731
- value: function(Fe, Ve, Be) {
44732
- this.clipboard.dangerouslyPasteHTML(Fe, Ve, Be);
44790
+ value: function(Fe, Ue, Be) {
44791
+ this.clipboard.dangerouslyPasteHTML(Fe, Ue, Be);
44733
44792
  }
44734
44793
  }, {
44735
44794
  key: "removeFormat",
44736
- value: function(Fe, Ve, Be) {
44737
- var Xe = this, Je = Ke(Fe, Ve, Be), Ue = ne(Je, 4);
44738
- return Fe = Ue[0], Ve = Ue[1], Be = Ue[3], Ge.call(this, function() {
44739
- return Xe.editor.removeFormat(Fe, Ve);
44795
+ value: function(Fe, Ue, Be) {
44796
+ var Xe = this, Je = Ke(Fe, Ue, Be), Ve = ne(Je, 4);
44797
+ return Fe = Ve[0], Ue = Ve[1], Be = Ve[3], Ge.call(this, function() {
44798
+ return Xe.editor.removeFormat(Fe, Ue);
44740
44799
  }, Be, Fe);
44741
44800
  }
44742
44801
  }, {
@@ -44747,44 +44806,44 @@ function requireQuill() {
44747
44806
  }, {
44748
44807
  key: "setContents",
44749
44808
  value: function(Fe) {
44750
- var Ve = this, Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : be.default.sources.API;
44809
+ var Ue = this, Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : be.default.sources.API;
44751
44810
  return Ge.call(this, function() {
44752
44811
  Fe = new ue.default(Fe);
44753
- var Xe = Ve.getLength(), Je = Ve.editor.deleteText(0, Xe), Ue = Ve.editor.applyDelta(Fe), Ye = Ue.ops[Ue.ops.length - 1];
44812
+ var Xe = Ue.getLength(), Je = Ue.editor.deleteText(0, Xe), Ve = Ue.editor.applyDelta(Fe), Ye = Ve.ops[Ve.ops.length - 1];
44754
44813
  Ye != null && typeof Ye.insert == "string" && Ye.insert[Ye.insert.length - 1] === `
44755
- ` && (Ve.editor.deleteText(Ve.getLength() - 1, 1), Ue.delete(1));
44756
- var rt = Je.compose(Ue);
44814
+ ` && (Ue.editor.deleteText(Ue.getLength() - 1, 1), Ve.delete(1));
44815
+ var rt = Je.compose(Ve);
44757
44816
  return rt;
44758
44817
  }, Be);
44759
44818
  }
44760
44819
  }, {
44761
44820
  key: "setSelection",
44762
- value: function(Fe, Ve, Be) {
44821
+ value: function(Fe, Ue, Be) {
44763
44822
  if (Fe == null)
44764
- this.selection.setRange(null, Ve || Qe.sources.API);
44823
+ this.selection.setRange(null, Ue || Qe.sources.API);
44765
44824
  else {
44766
- var Xe = Ke(Fe, Ve, Be), Je = ne(Xe, 4);
44767
- Fe = Je[0], Ve = Je[1], Be = Je[3], this.selection.setRange(new we.Range(Fe, Ve), Be), Be !== be.default.sources.SILENT && this.selection.scrollIntoView(this.scrollingContainer);
44825
+ var Xe = Ke(Fe, Ue, Be), Je = ne(Xe, 4);
44826
+ Fe = Je[0], Ue = Je[1], Be = Je[3], this.selection.setRange(new we.Range(Fe, Ue), Be), Be !== be.default.sources.SILENT && this.selection.scrollIntoView(this.scrollingContainer);
44768
44827
  }
44769
44828
  }
44770
44829
  }, {
44771
44830
  key: "setText",
44772
44831
  value: function(Fe) {
44773
- var Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : be.default.sources.API, Be = new ue.default().insert(Fe);
44774
- return this.setContents(Be, Ve);
44832
+ var Ue = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : be.default.sources.API, Be = new ue.default().insert(Fe);
44833
+ return this.setContents(Be, Ue);
44775
44834
  }
44776
44835
  }, {
44777
44836
  key: "update",
44778
44837
  value: function() {
44779
- var Fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : be.default.sources.USER, Ve = this.scroll.update(Fe);
44780
- return this.selection.update(Fe), Ve;
44838
+ var Fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : be.default.sources.USER, Ue = this.scroll.update(Fe);
44839
+ return this.selection.update(Fe), Ue;
44781
44840
  }
44782
44841
  }, {
44783
44842
  key: "updateContents",
44784
44843
  value: function(Fe) {
44785
- var Ve = this, Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : be.default.sources.API;
44844
+ var Ue = this, Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : be.default.sources.API;
44786
44845
  return Ge.call(this, function() {
44787
- return Fe = new ue.default(Fe), Ve.editor.applyDelta(Fe, Be);
44846
+ return Fe = new ue.default(Fe), Ue.editor.applyDelta(Fe, Be);
44788
44847
  }, Be, !0);
44789
44848
  }
44790
44849
  }]), Qe;
@@ -44822,9 +44881,9 @@ function requireQuill() {
44822
44881
  Xe.modules[Je] === !0 && (Xe.modules[Je] = {});
44823
44882
  });
44824
44883
  });
44825
- var Ve = Object.keys(Fe.modules).concat(Object.keys(Ze.modules)), Be = Ve.reduce(function(Xe, Je) {
44826
- var Ue = ze.import("modules/" + Je);
44827
- return Ue == null ? Le.error("Cannot load " + Je + " module. Are you sure you registered it?") : Xe[Je] = Ue.DEFAULTS || {}, Xe;
44884
+ var Ue = Object.keys(Fe.modules).concat(Object.keys(Ze.modules)), Be = Ue.reduce(function(Xe, Je) {
44885
+ var Ve = ze.import("modules/" + Je);
44886
+ return Ve == null ? Le.error("Cannot load " + Je + " module. Are you sure you registered it?") : Xe[Je] = Ve.DEFAULTS || {}, Xe;
44828
44887
  }, {});
44829
44888
  return Ze.modules != null && Ze.modules.toolbar && Ze.modules.toolbar.constructor !== Object && (Ze.modules.toolbar = {
44830
44889
  container: Ze.modules.toolbar
@@ -44834,34 +44893,34 @@ function requireQuill() {
44834
44893
  return Ze.modules[Je] && (Xe[Je] = Ze.modules[Je]), Xe;
44835
44894
  }, {}), Ze;
44836
44895
  }
44837
- function Ge(Qe, Ze, Fe, Ve) {
44896
+ function Ge(Qe, Ze, Fe, Ue) {
44838
44897
  if (this.options.strict && !this.isEnabled() && Ze === be.default.sources.USER)
44839
44898
  return new ue.default();
44840
44899
  var Be = Fe == null ? null : this.getSelection(), Xe = this.editor.delta, Je = Qe();
44841
- if (Be != null && (Fe === !0 && (Fe = Be.index), Ve == null ? Be = ft(Be, Je, Ze) : Ve !== 0 && (Be = ft(Be, Fe, Ve, Ze)), this.setSelection(Be, be.default.sources.SILENT)), Je.length() > 0) {
44842
- var Ue, Ye = [be.default.events.TEXT_CHANGE, Je, Xe, Ze];
44843
- if ((Ue = this.emitter).emit.apply(Ue, [be.default.events.EDITOR_CHANGE].concat(Ye)), Ze !== be.default.sources.SILENT) {
44900
+ if (Be != null && (Fe === !0 && (Fe = Be.index), Ue == null ? Be = ft(Be, Je, Ze) : Ue !== 0 && (Be = ft(Be, Fe, Ue, Ze)), this.setSelection(Be, be.default.sources.SILENT)), Je.length() > 0) {
44901
+ var Ve, Ye = [be.default.events.TEXT_CHANGE, Je, Xe, Ze];
44902
+ if ((Ve = this.emitter).emit.apply(Ve, [be.default.events.EDITOR_CHANGE].concat(Ye)), Ze !== be.default.sources.SILENT) {
44844
44903
  var rt;
44845
44904
  (rt = this.emitter).emit.apply(rt, Ye);
44846
44905
  }
44847
44906
  }
44848
44907
  return Je;
44849
44908
  }
44850
- function Ke(Qe, Ze, Fe, Ve, Be) {
44909
+ function Ke(Qe, Ze, Fe, Ue, Be) {
44851
44910
  var Xe = {};
44852
- return typeof Qe.index == "number" && typeof Qe.length == "number" ? typeof Ze != "number" ? (Be = Ve, Ve = Fe, Fe = Ze, Ze = Qe.length, Qe = Qe.index) : (Ze = Qe.length, Qe = Qe.index) : typeof Ze != "number" && (Be = Ve, Ve = Fe, Fe = Ze, Ze = 0), (typeof Fe > "u" ? "undefined" : oe(Fe)) === "object" ? (Xe = Fe, Be = Ve) : typeof Fe == "string" && (Ve != null ? Xe[Fe] = Ve : Be = Fe), Be = Be || be.default.sources.API, [Qe, Ze, Xe, Be];
44911
+ return typeof Qe.index == "number" && typeof Qe.length == "number" ? typeof Ze != "number" ? (Be = Ue, Ue = Fe, Fe = Ze, Ze = Qe.length, Qe = Qe.index) : (Ze = Qe.length, Qe = Qe.index) : typeof Ze != "number" && (Be = Ue, Ue = Fe, Fe = Ze, Ze = 0), (typeof Fe > "u" ? "undefined" : oe(Fe)) === "object" ? (Xe = Fe, Be = Ue) : typeof Fe == "string" && (Ue != null ? Xe[Fe] = Ue : Be = Fe), Be = Be || be.default.sources.API, [Qe, Ze, Xe, Be];
44853
44912
  }
44854
- function ft(Qe, Ze, Fe, Ve) {
44913
+ function ft(Qe, Ze, Fe, Ue) {
44855
44914
  if (Qe == null) return null;
44856
44915
  var Be = void 0, Xe = void 0;
44857
44916
  if (Ze instanceof ue.default) {
44858
44917
  var Je = [Qe.index, Qe.index + Qe.length].map(function(ot) {
44859
- return Ze.transformPosition(ot, Ve !== be.default.sources.USER);
44860
- }), Ue = ne(Je, 2);
44861
- Be = Ue[0], Xe = Ue[1];
44918
+ return Ze.transformPosition(ot, Ue !== be.default.sources.USER);
44919
+ }), Ve = ne(Je, 2);
44920
+ Be = Ve[0], Xe = Ve[1];
44862
44921
  } else {
44863
44922
  var Ye = [Qe.index, Qe.index + Qe.length].map(function(ot) {
44864
- return ot < Ze || ot === Ze && Ve === be.default.sources.USER ? ot : Fe >= 0 ? ot + Fe : Math.max(Ze, ot + Fe);
44923
+ return ot < Ze || ot === Ze && Ue === be.default.sources.USER ? ot : Fe >= 0 ? ot + Fe : Math.max(Ze, ot + Fe);
44865
44924
  }), rt = ne(Ye, 2);
44866
44925
  Be = rt[0], Xe = rt[1];
44867
44926
  }
@@ -45392,20 +45451,20 @@ function requireQuill() {
45392
45451
  return Qe && typeof Symbol == "function" && Qe.constructor === Symbol && Qe !== Symbol.prototype ? "symbol" : typeof Qe;
45393
45452
  }, ne = /* @__PURE__ */ (function() {
45394
45453
  function Qe(Ze, Fe) {
45395
- var Ve = [], Be = !0, Xe = !1, Je = void 0;
45454
+ var Ue = [], Be = !0, Xe = !1, Je = void 0;
45396
45455
  try {
45397
- for (var Ue = Ze[Symbol.iterator](), Ye; !(Be = (Ye = Ue.next()).done) && (Ve.push(Ye.value), !(Fe && Ve.length === Fe)); Be = !0)
45456
+ for (var Ve = Ze[Symbol.iterator](), Ye; !(Be = (Ye = Ve.next()).done) && (Ue.push(Ye.value), !(Fe && Ue.length === Fe)); Be = !0)
45398
45457
  ;
45399
45458
  } catch (rt) {
45400
45459
  Xe = !0, Je = rt;
45401
45460
  } finally {
45402
45461
  try {
45403
- !Be && Ue.return && Ue.return();
45462
+ !Be && Ve.return && Ve.return();
45404
45463
  } finally {
45405
45464
  if (Xe) throw Je;
45406
45465
  }
45407
45466
  }
45408
- return Ve;
45467
+ return Ue;
45409
45468
  }
45410
45469
  return function(Ze, Fe) {
45411
45470
  if (Array.isArray(Ze))
@@ -45416,13 +45475,13 @@ function requireQuill() {
45416
45475
  };
45417
45476
  })(), de = /* @__PURE__ */ (function() {
45418
45477
  function Qe(Ze, Fe) {
45419
- for (var Ve = 0; Ve < Fe.length; Ve++) {
45420
- var Be = Fe[Ve];
45478
+ for (var Ue = 0; Ue < Fe.length; Ue++) {
45479
+ var Be = Fe[Ue];
45421
45480
  Be.enumerable = Be.enumerable || !1, Be.configurable = !0, "value" in Be && (Be.writable = !0), Object.defineProperty(Ze, Be.key, Be);
45422
45481
  }
45423
45482
  }
45424
- return function(Ze, Fe, Ve) {
45425
- return Fe && Qe(Ze.prototype, Fe), Ve && Qe(Ze, Ve), Ze;
45483
+ return function(Ze, Fe, Ue) {
45484
+ return Fe && Qe(Ze.prototype, Fe), Ue && Qe(Ze, Ue), Ze;
45426
45485
  };
45427
45486
  })(), ce = re(2), ue = qe(ce), he = re(20), pe = qe(he), fe = re(0), be = qe(fe), me = re(13), ge = qe(me), ve = re(24), _e = qe(ve), we = re(4), Ae = qe(we), ye = re(16), Se = qe(ye), Pe = re(21), De = qe(Pe), Me = re(11), He = qe(Me), Ie = re(3), Ce = qe(Ie);
45428
45487
  function qe(Qe) {
@@ -45442,50 +45501,50 @@ function requireQuill() {
45442
45501
  return de(Qe, [{
45443
45502
  key: "applyDelta",
45444
45503
  value: function(Fe) {
45445
- var Ve = this, Be = !1;
45504
+ var Ue = this, Be = !1;
45446
45505
  this.scroll.update();
45447
45506
  var Xe = this.scroll.length();
45448
- return this.scroll.batchStart(), Fe = ft(Fe), Fe.reduce(function(Je, Ue) {
45449
- var Ye = Ue.retain || Ue.delete || Ue.insert.length || 1, rt = Ue.attributes || {};
45450
- if (Ue.insert != null) {
45451
- if (typeof Ue.insert == "string") {
45452
- var ot = Ue.insert;
45507
+ return this.scroll.batchStart(), Fe = ft(Fe), Fe.reduce(function(Je, Ve) {
45508
+ var Ye = Ve.retain || Ve.delete || Ve.insert.length || 1, rt = Ve.attributes || {};
45509
+ if (Ve.insert != null) {
45510
+ if (typeof Ve.insert == "string") {
45511
+ var ot = Ve.insert;
45453
45512
  ot.endsWith(`
45454
45513
  `) && Be && (Be = !1, ot = ot.slice(0, -1)), Je >= Xe && !ot.endsWith(`
45455
- `) && (Be = !0), Ve.scroll.insertAt(Je, ot);
45456
- var _t = Ve.scroll.line(Je), kt = ne(_t, 2), It = kt[0], qt = kt[1], Nt = (0, Ce.default)({}, (0, we.bubbleFormats)(It));
45514
+ `) && (Be = !0), Ue.scroll.insertAt(Je, ot);
45515
+ var _t = Ue.scroll.line(Je), kt = ne(_t, 2), It = kt[0], qt = kt[1], Nt = (0, Ce.default)({}, (0, we.bubbleFormats)(It));
45457
45516
  if (It instanceof Ae.default) {
45458
- var Ut = It.descendant(be.default.Leaf, qt), rs = ne(Ut, 1), Yt = rs[0];
45517
+ var Vt = It.descendant(be.default.Leaf, qt), rs = ne(Vt, 1), Yt = rs[0];
45459
45518
  Nt = (0, Ce.default)(Nt, (0, we.bubbleFormats)(Yt));
45460
45519
  }
45461
45520
  rt = pe.default.attributes.diff(Nt, rt) || {};
45462
- } else if (oe(Ue.insert) === "object") {
45463
- var gt = Object.keys(Ue.insert)[0];
45521
+ } else if (oe(Ve.insert) === "object") {
45522
+ var gt = Object.keys(Ve.insert)[0];
45464
45523
  if (gt == null) return Je;
45465
- Ve.scroll.insertAt(Je, gt, Ue.insert[gt]);
45524
+ Ue.scroll.insertAt(Je, gt, Ve.insert[gt]);
45466
45525
  }
45467
45526
  Xe += Ye;
45468
45527
  }
45469
45528
  return Object.keys(rt).forEach(function(mt) {
45470
- Ve.scroll.formatAt(Je, Ye, mt, rt[mt]);
45529
+ Ue.scroll.formatAt(Je, Ye, mt, rt[mt]);
45471
45530
  }), Je + Ye;
45472
- }, 0), Fe.reduce(function(Je, Ue) {
45473
- return typeof Ue.delete == "number" ? (Ve.scroll.deleteAt(Je, Ue.delete), Je) : Je + (Ue.retain || Ue.insert.length || 1);
45531
+ }, 0), Fe.reduce(function(Je, Ve) {
45532
+ return typeof Ve.delete == "number" ? (Ue.scroll.deleteAt(Je, Ve.delete), Je) : Je + (Ve.retain || Ve.insert.length || 1);
45474
45533
  }, 0), this.scroll.batchEnd(), this.update(Fe);
45475
45534
  }
45476
45535
  }, {
45477
45536
  key: "deleteText",
45478
- value: function(Fe, Ve) {
45479
- return this.scroll.deleteAt(Fe, Ve), this.update(new ue.default().retain(Fe).delete(Ve));
45537
+ value: function(Fe, Ue) {
45538
+ return this.scroll.deleteAt(Fe, Ue), this.update(new ue.default().retain(Fe).delete(Ue));
45480
45539
  }
45481
45540
  }, {
45482
45541
  key: "formatLine",
45483
- value: function(Fe, Ve) {
45542
+ value: function(Fe, Ue) {
45484
45543
  var Be = this, Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
45485
45544
  return this.scroll.update(), Object.keys(Xe).forEach(function(Je) {
45486
45545
  if (!(Be.scroll.whitelist != null && !Be.scroll.whitelist[Je])) {
45487
- var Ue = Be.scroll.lines(Fe, Math.max(Ve, 1)), Ye = Ve;
45488
- Ue.forEach(function(rt) {
45546
+ var Ve = Be.scroll.lines(Fe, Math.max(Ue, 1)), Ye = Ue;
45547
+ Ve.forEach(function(rt) {
45489
45548
  var ot = rt.length();
45490
45549
  if (!(rt instanceof ge.default))
45491
45550
  rt.format(Je, Xe[Je]);
@@ -45496,40 +45555,40 @@ function requireQuill() {
45496
45555
  Ye -= ot;
45497
45556
  });
45498
45557
  }
45499
- }), this.scroll.optimize(), this.update(new ue.default().retain(Fe).retain(Ve, (0, De.default)(Xe)));
45558
+ }), this.scroll.optimize(), this.update(new ue.default().retain(Fe).retain(Ue, (0, De.default)(Xe)));
45500
45559
  }
45501
45560
  }, {
45502
45561
  key: "formatText",
45503
- value: function(Fe, Ve) {
45562
+ value: function(Fe, Ue) {
45504
45563
  var Be = this, Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
45505
45564
  return Object.keys(Xe).forEach(function(Je) {
45506
- Be.scroll.formatAt(Fe, Ve, Je, Xe[Je]);
45507
- }), this.update(new ue.default().retain(Fe).retain(Ve, (0, De.default)(Xe)));
45565
+ Be.scroll.formatAt(Fe, Ue, Je, Xe[Je]);
45566
+ }), this.update(new ue.default().retain(Fe).retain(Ue, (0, De.default)(Xe)));
45508
45567
  }
45509
45568
  }, {
45510
45569
  key: "getContents",
45511
- value: function(Fe, Ve) {
45512
- return this.delta.slice(Fe, Fe + Ve);
45570
+ value: function(Fe, Ue) {
45571
+ return this.delta.slice(Fe, Fe + Ue);
45513
45572
  }
45514
45573
  }, {
45515
45574
  key: "getDelta",
45516
45575
  value: function() {
45517
- return this.scroll.lines().reduce(function(Fe, Ve) {
45518
- return Fe.concat(Ve.delta());
45576
+ return this.scroll.lines().reduce(function(Fe, Ue) {
45577
+ return Fe.concat(Ue.delta());
45519
45578
  }, new ue.default());
45520
45579
  }
45521
45580
  }, {
45522
45581
  key: "getFormat",
45523
45582
  value: function(Fe) {
45524
- var Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, Be = [], Xe = [];
45525
- Ve === 0 ? this.scroll.path(Fe).forEach(function(Ue) {
45526
- var Ye = ne(Ue, 1), rt = Ye[0];
45583
+ var Ue = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, Be = [], Xe = [];
45584
+ Ue === 0 ? this.scroll.path(Fe).forEach(function(Ve) {
45585
+ var Ye = ne(Ve, 1), rt = Ye[0];
45527
45586
  rt instanceof Ae.default ? Be.push(rt) : rt instanceof be.default.Leaf && Xe.push(rt);
45528
- }) : (Be = this.scroll.lines(Fe, Ve), Xe = this.scroll.descendants(be.default.Leaf, Fe, Ve));
45529
- var Je = [Be, Xe].map(function(Ue) {
45530
- if (Ue.length === 0) return {};
45531
- for (var Ye = (0, we.bubbleFormats)(Ue.shift()); Object.keys(Ye).length > 0; ) {
45532
- var rt = Ue.shift();
45587
+ }) : (Be = this.scroll.lines(Fe, Ue), Xe = this.scroll.descendants(be.default.Leaf, Fe, Ue));
45588
+ var Je = [Be, Xe].map(function(Ve) {
45589
+ if (Ve.length === 0) return {};
45590
+ for (var Ye = (0, we.bubbleFormats)(Ve.shift()); Object.keys(Ye).length > 0; ) {
45591
+ var rt = Ve.shift();
45533
45592
  if (rt == null) return Ye;
45534
45593
  Ye = Ke((0, we.bubbleFormats)(rt), Ye);
45535
45594
  }
@@ -45539,8 +45598,8 @@ function requireQuill() {
45539
45598
  }
45540
45599
  }, {
45541
45600
  key: "getText",
45542
- value: function(Fe, Ve) {
45543
- return this.getContents(Fe, Ve).filter(function(Be) {
45601
+ value: function(Fe, Ue) {
45602
+ return this.getContents(Fe, Ue).filter(function(Be) {
45544
45603
  return typeof Be.insert == "string";
45545
45604
  }).map(function(Be) {
45546
45605
  return Be.insert;
@@ -45548,18 +45607,18 @@ function requireQuill() {
45548
45607
  }
45549
45608
  }, {
45550
45609
  key: "insertEmbed",
45551
- value: function(Fe, Ve, Be) {
45552
- return this.scroll.insertAt(Fe, Ve, Be), this.update(new ue.default().retain(Fe).insert(Le({}, Ve, Be)));
45610
+ value: function(Fe, Ue, Be) {
45611
+ return this.scroll.insertAt(Fe, Ue, Be), this.update(new ue.default().retain(Fe).insert(Le({}, Ue, Be)));
45553
45612
  }
45554
45613
  }, {
45555
45614
  key: "insertText",
45556
- value: function(Fe, Ve) {
45615
+ value: function(Fe, Ue) {
45557
45616
  var Be = this, Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
45558
- return Ve = Ve.replace(/\r\n/g, `
45617
+ return Ue = Ue.replace(/\r\n/g, `
45559
45618
  `).replace(/\r/g, `
45560
- `), this.scroll.insertAt(Fe, Ve), Object.keys(Xe).forEach(function(Je) {
45561
- Be.scroll.formatAt(Fe, Ve.length, Je, Xe[Je]);
45562
- }), this.update(new ue.default().retain(Fe).insert(Ve, (0, De.default)(Xe)));
45619
+ `), this.scroll.insertAt(Fe, Ue), Object.keys(Xe).forEach(function(Je) {
45620
+ Be.scroll.formatAt(Fe, Ue.length, Je, Xe[Je]);
45621
+ }), this.update(new ue.default().retain(Fe).insert(Ue, (0, De.default)(Xe)));
45563
45622
  }
45564
45623
  }, {
45565
45624
  key: "isBlank",
@@ -45571,21 +45630,21 @@ function requireQuill() {
45571
45630
  }
45572
45631
  }, {
45573
45632
  key: "removeFormat",
45574
- value: function(Fe, Ve) {
45575
- var Be = this.getText(Fe, Ve), Xe = this.scroll.line(Fe + Ve), Je = ne(Xe, 2), Ue = Je[0], Ye = Je[1], rt = 0, ot = new ue.default();
45576
- Ue != null && (Ue instanceof ge.default ? rt = Ue.newlineIndex(Ye) - Ye + 1 : rt = Ue.length() - Ye, ot = Ue.delta().slice(Ye, Ye + rt - 1).insert(`
45633
+ value: function(Fe, Ue) {
45634
+ var Be = this.getText(Fe, Ue), Xe = this.scroll.line(Fe + Ue), Je = ne(Xe, 2), Ve = Je[0], Ye = Je[1], rt = 0, ot = new ue.default();
45635
+ Ve != null && (Ve instanceof ge.default ? rt = Ve.newlineIndex(Ye) - Ye + 1 : rt = Ve.length() - Ye, ot = Ve.delta().slice(Ye, Ye + rt - 1).insert(`
45577
45636
  `));
45578
- var _t = this.getContents(Fe, Ve + rt), kt = _t.diff(new ue.default().insert(Be).concat(ot)), It = new ue.default().retain(Fe).concat(kt);
45637
+ var _t = this.getContents(Fe, Ue + rt), kt = _t.diff(new ue.default().insert(Be).concat(ot)), It = new ue.default().retain(Fe).concat(kt);
45579
45638
  return this.applyDelta(It);
45580
45639
  }
45581
45640
  }, {
45582
45641
  key: "update",
45583
45642
  value: function(Fe) {
45584
- var Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], Be = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : void 0, Xe = this.delta;
45585
- if (Ve.length === 1 && Ve[0].type === "characterData" && Ve[0].target.data.match(We) && be.default.find(Ve[0].target)) {
45586
- var Je = be.default.find(Ve[0].target), Ue = (0, we.bubbleFormats)(Je), Ye = Je.offset(this.scroll), rt = Ve[0].oldValue.replace(_e.default.CONTENTS, ""), ot = new ue.default().insert(rt), _t = new ue.default().insert(Je.value()), kt = new ue.default().retain(Ye).concat(ot.diff(_t, Be));
45643
+ var Ue = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], Be = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : void 0, Xe = this.delta;
45644
+ if (Ue.length === 1 && Ue[0].type === "characterData" && Ue[0].target.data.match(We) && be.default.find(Ue[0].target)) {
45645
+ var Je = be.default.find(Ue[0].target), Ve = (0, we.bubbleFormats)(Je), Ye = Je.offset(this.scroll), rt = Ue[0].oldValue.replace(_e.default.CONTENTS, ""), ot = new ue.default().insert(rt), _t = new ue.default().insert(Je.value()), kt = new ue.default().retain(Ye).concat(ot.diff(_t, Be));
45587
45646
  Fe = kt.reduce(function(It, qt) {
45588
- return qt.insert ? It.insert(qt.insert, Ue) : It.push(qt);
45647
+ return qt.insert ? It.insert(qt.insert, Ve) : It.push(qt);
45589
45648
  }, new ue.default()), this.delta = Xe.compose(Fe);
45590
45649
  } else
45591
45650
  this.delta = this.getDelta(), (!Fe || !(0, He.default)(Xe.compose(Fe), this.delta)) && (Fe = Xe.diff(this.delta, Be));
@@ -45594,15 +45653,15 @@ function requireQuill() {
45594
45653
  }]), Qe;
45595
45654
  })();
45596
45655
  function Ke(Qe, Ze) {
45597
- return Object.keys(Ze).reduce(function(Fe, Ve) {
45598
- return Qe[Ve] == null || (Ze[Ve] === Qe[Ve] ? Fe[Ve] = Ze[Ve] : Array.isArray(Ze[Ve]) ? Ze[Ve].indexOf(Qe[Ve]) < 0 && (Fe[Ve] = Ze[Ve].concat([Qe[Ve]])) : Fe[Ve] = [Ze[Ve], Qe[Ve]]), Fe;
45656
+ return Object.keys(Ze).reduce(function(Fe, Ue) {
45657
+ return Qe[Ue] == null || (Ze[Ue] === Qe[Ue] ? Fe[Ue] = Ze[Ue] : Array.isArray(Ze[Ue]) ? Ze[Ue].indexOf(Qe[Ue]) < 0 && (Fe[Ue] = Ze[Ue].concat([Qe[Ue]])) : Fe[Ue] = [Ze[Ue], Qe[Ue]]), Fe;
45599
45658
  }, {});
45600
45659
  }
45601
45660
  function ft(Qe) {
45602
45661
  return Qe.reduce(function(Ze, Fe) {
45603
45662
  if (Fe.insert === 1) {
45604
- var Ve = (0, De.default)(Fe.attributes);
45605
- return delete Ve.image, Ze.insert({ image: Fe.attributes.image }, Ve);
45663
+ var Ue = (0, De.default)(Fe.attributes);
45664
+ return delete Ue.image, Ze.insert({ image: Fe.attributes.image }, Ue);
45606
45665
  }
45607
45666
  if (Fe.attributes != null && (Fe.attributes.list === !0 || Fe.attributes.bullet === !0) && (Fe = (0, De.default)(Fe), Fe.attributes.list ? Fe.attributes.list = "ordered" : (Fe.attributes.list = "bullet", delete Fe.attributes.bullet)), typeof Fe.insert == "string") {
45608
45667
  var Be = Fe.insert.replace(/\r\n/g, `
@@ -45762,17 +45821,17 @@ function requireQuill() {
45762
45821
  var Fe = document.createRange();
45763
45822
  if (qe > 0) {
45764
45823
  Fe.setStart(ze, ft);
45765
- var Ve = this.scroll.leaf(Ce + qe), Be = oe(Ve, 2);
45824
+ var Ue = this.scroll.leaf(Ce + qe), Be = oe(Ue, 2);
45766
45825
  if (Ke = Be[0], ft = Be[1], Ke == null) return null;
45767
45826
  var Xe = Ke.position(ft, !0), Je = oe(Xe, 2);
45768
45827
  return ze = Je[0], ft = Je[1], Fe.setEnd(ze, ft), Fe.getBoundingClientRect();
45769
45828
  } else {
45770
- var Ue = "left", Ye = void 0;
45771
- return ze instanceof Text ? (ft < ze.data.length ? (Fe.setStart(ze, ft), Fe.setEnd(ze, ft + 1)) : (Fe.setStart(ze, ft - 1), Fe.setEnd(ze, ft), Ue = "right"), Ye = Fe.getBoundingClientRect()) : (Ye = Ke.domNode.getBoundingClientRect(), ft > 0 && (Ue = "right")), {
45829
+ var Ve = "left", Ye = void 0;
45830
+ return ze instanceof Text ? (ft < ze.data.length ? (Fe.setStart(ze, ft), Fe.setEnd(ze, ft + 1)) : (Fe.setStart(ze, ft - 1), Fe.setEnd(ze, ft), Ve = "right"), Ye = Fe.getBoundingClientRect()) : (Ye = Ke.domNode.getBoundingClientRect(), ft > 0 && (Ve = "right")), {
45772
45831
  bottom: Ye.top + Ye.height,
45773
45832
  height: Ye.height,
45774
- left: Ye[Ue],
45775
- right: Ye[Ue],
45833
+ left: Ye[Ve],
45834
+ right: Ye[Ve],
45776
45835
  top: Ye.top,
45777
45836
  width: 0
45778
45837
  };
@@ -45805,8 +45864,8 @@ function requireQuill() {
45805
45864
  var qe = this, Le = [[Ce.start.node, Ce.start.offset]];
45806
45865
  Ce.native.collapsed || Le.push([Ce.end.node, Ce.end.offset]);
45807
45866
  var ze = Le.map(function(Ke) {
45808
- var ft = oe(Ke, 2), Qe = ft[0], Ze = ft[1], Fe = ce.default.find(Qe, !0), Ve = Fe.offset(qe.scroll);
45809
- return Ze === 0 ? Ve : Fe instanceof ce.default.Container ? Ve + Fe.length() : Ve + Fe.index(Qe, Ze);
45867
+ var ft = oe(Ke, 2), Qe = ft[0], Ze = ft[1], Fe = ce.default.find(Qe, !0), Ue = Fe.offset(qe.scroll);
45868
+ return Ze === 0 ? Ue : Fe instanceof ce.default.Container ? Ue + Fe.length() : Ue + Fe.index(Qe, Ze);
45810
45869
  }), We = Math.min(Math.max.apply(Math, Ae(ze)), this.scroll.length() - 1), Ge = Math.min.apply(Math, [We].concat(Ae(ze)));
45811
45870
  return new Pe(Ge, We - Ge);
45812
45871
  }
@@ -45837,8 +45896,8 @@ function requireQuill() {
45837
45896
  var qe = this, Le = Ce.collapsed ? [Ce.index] : [Ce.index, Ce.index + Ce.length], ze = [], We = this.scroll.length();
45838
45897
  return Le.forEach(function(Ge, Ke) {
45839
45898
  Ge = Math.min(We - 1, Ge);
45840
- var ft = void 0, Qe = qe.scroll.leaf(Ge), Ze = oe(Qe, 2), Fe = Ze[0], Ve = Ze[1], Be = Fe.position(Ve, Ke !== 0), Xe = oe(Be, 2);
45841
- ft = Xe[0], Ve = Xe[1], ze.push(ft, Ve);
45899
+ var ft = void 0, Qe = qe.scroll.leaf(Ge), Ze = oe(Qe, 2), Fe = Ze[0], Ue = Ze[1], Be = Fe.position(Ue, Ke !== 0), Xe = oe(Be, 2);
45900
+ ft = Xe[0], Ue = Xe[1], ze.push(ft, Ue);
45842
45901
  }), ze.length < 2 && (ze = ze.concat(ze)), ze;
45843
45902
  }
45844
45903
  }, {
@@ -46354,10 +46413,10 @@ function requireQuill() {
46354
46413
  Ie = new de();
46355
46414
  else if (oe(Me, ce))
46356
46415
  Ie = new ce(function(Ze, Fe) {
46357
- Me.then(function(Ve) {
46358
- Ze(De(Ve, He - 1));
46359
- }, function(Ve) {
46360
- Fe(De(Ve, He - 1));
46416
+ Me.then(function(Ue) {
46417
+ Ze(De(Ue, He - 1));
46418
+ }, function(Ue) {
46419
+ Fe(De(Ue, He - 1));
46361
46420
  });
46362
46421
  });
46363
46422
  else if (ue.__isArray(Me))
@@ -46378,8 +46437,8 @@ function requireQuill() {
46378
46437
  ye.push(Me), Se.push(Ie);
46379
46438
  }
46380
46439
  oe(Me, ne) && Me.forEach(function(Ze, Fe) {
46381
- var Ve = De(Fe, He - 1), Be = De(Ze, He - 1);
46382
- Ie.set(Ve, Be);
46440
+ var Ue = De(Fe, He - 1), Be = De(Ze, He - 1);
46441
+ Ie.set(Ue, Be);
46383
46442
  }), oe(Me, de) && Me.forEach(function(Ze) {
46384
46443
  var Fe = De(Ze, He - 1);
46385
46444
  Ie.add(Fe);
@@ -46540,8 +46599,8 @@ function requireQuill() {
46540
46599
  return;
46541
46600
  }
46542
46601
  if (Ke instanceof _e.default) {
46543
- var Ve = Ke.newlineIndex(Ke.length(), !0);
46544
- if (Ve > -1 && (Ke = Ke.split(Ve + 1), Ke === Fe)) {
46602
+ var Ue = Ke.newlineIndex(Ke.length(), !0);
46603
+ if (Ue > -1 && (Ke = Ke.split(Ue + 1), Ke === Fe)) {
46545
46604
  this.optimize();
46546
46605
  return;
46547
46606
  }
@@ -46607,8 +46666,8 @@ function requireQuill() {
46607
46666
  value: function() {
46608
46667
  var Le = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, ze = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE, We = function Ge(Ke, ft, Qe) {
46609
46668
  var Ze = [], Fe = Qe;
46610
- return Ke.children.forEachAt(ft, Qe, function(Ve, Be, Xe) {
46611
- Me(Ve) ? Ze.push(Ve) : Ve instanceof ue.default.Container && (Ze = Ze.concat(Ge(Ve, Be, Fe))), Fe -= Xe;
46669
+ return Ke.children.forEachAt(ft, Qe, function(Ue, Be, Xe) {
46670
+ Me(Ue) ? Ze.push(Ue) : Ue instanceof ue.default.Container && (Ze = Ze.concat(Ge(Ue, Be, Fe))), Fe -= Xe;
46612
46671
  }), Ze;
46613
46672
  };
46614
46673
  return We(this, Le, ze);
@@ -46642,18 +46701,18 @@ function requireQuill() {
46642
46701
  Object.defineProperty(te, "__esModule", {
46643
46702
  value: !0
46644
46703
  }), te.SHORTKEY = te.default = void 0;
46645
- var oe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(Ue) {
46646
- return typeof Ue;
46647
- } : function(Ue) {
46648
- return Ue && typeof Symbol == "function" && Ue.constructor === Symbol && Ue !== Symbol.prototype ? "symbol" : typeof Ue;
46704
+ var oe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(Ve) {
46705
+ return typeof Ve;
46706
+ } : function(Ve) {
46707
+ return Ve && typeof Symbol == "function" && Ve.constructor === Symbol && Ve !== Symbol.prototype ? "symbol" : typeof Ve;
46649
46708
  }, ne = /* @__PURE__ */ (function() {
46650
- function Ue(Ye, rt) {
46709
+ function Ve(Ye, rt) {
46651
46710
  var ot = [], _t = !0, kt = !1, It = void 0;
46652
46711
  try {
46653
46712
  for (var qt = Ye[Symbol.iterator](), Nt; !(_t = (Nt = qt.next()).done) && (ot.push(Nt.value), !(rt && ot.length === rt)); _t = !0)
46654
46713
  ;
46655
- } catch (Ut) {
46656
- kt = !0, It = Ut;
46714
+ } catch (Vt) {
46715
+ kt = !0, It = Vt;
46657
46716
  } finally {
46658
46717
  try {
46659
46718
  !_t && qt.return && qt.return();
@@ -46667,42 +46726,42 @@ function requireQuill() {
46667
46726
  if (Array.isArray(Ye))
46668
46727
  return Ye;
46669
46728
  if (Symbol.iterator in Object(Ye))
46670
- return Ue(Ye, rt);
46729
+ return Ve(Ye, rt);
46671
46730
  throw new TypeError("Invalid attempt to destructure non-iterable instance");
46672
46731
  };
46673
46732
  })(), de = /* @__PURE__ */ (function() {
46674
- function Ue(Ye, rt) {
46733
+ function Ve(Ye, rt) {
46675
46734
  for (var ot = 0; ot < rt.length; ot++) {
46676
46735
  var _t = rt[ot];
46677
46736
  _t.enumerable = _t.enumerable || !1, _t.configurable = !0, "value" in _t && (_t.writable = !0), Object.defineProperty(Ye, _t.key, _t);
46678
46737
  }
46679
46738
  }
46680
46739
  return function(Ye, rt, ot) {
46681
- return rt && Ue(Ye.prototype, rt), ot && Ue(Ye, ot), Ye;
46740
+ return rt && Ve(Ye.prototype, rt), ot && Ve(Ye, ot), Ye;
46682
46741
  };
46683
46742
  })(), ce = re(21), ue = Ie(ce), he = re(11), pe = Ie(he), fe = re(3), be = Ie(fe), me = re(2), ge = Ie(me), ve = re(20), _e = Ie(ve), we = re(0), Ae = Ie(we), ye = re(5), Se = Ie(ye), Pe = re(10), De = Ie(Pe), Me = re(9), He = Ie(Me);
46684
- function Ie(Ue) {
46685
- return Ue && Ue.__esModule ? Ue : { default: Ue };
46743
+ function Ie(Ve) {
46744
+ return Ve && Ve.__esModule ? Ve : { default: Ve };
46686
46745
  }
46687
- function Ce(Ue, Ye, rt) {
46688
- return Ye in Ue ? Object.defineProperty(Ue, Ye, { value: rt, enumerable: !0, configurable: !0, writable: !0 }) : Ue[Ye] = rt, Ue;
46746
+ function Ce(Ve, Ye, rt) {
46747
+ return Ye in Ve ? Object.defineProperty(Ve, Ye, { value: rt, enumerable: !0, configurable: !0, writable: !0 }) : Ve[Ye] = rt, Ve;
46689
46748
  }
46690
- function qe(Ue, Ye) {
46691
- if (!(Ue instanceof Ye))
46749
+ function qe(Ve, Ye) {
46750
+ if (!(Ve instanceof Ye))
46692
46751
  throw new TypeError("Cannot call a class as a function");
46693
46752
  }
46694
- function Le(Ue, Ye) {
46695
- if (!Ue)
46753
+ function Le(Ve, Ye) {
46754
+ if (!Ve)
46696
46755
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
46697
- return Ye && (typeof Ye == "object" || typeof Ye == "function") ? Ye : Ue;
46756
+ return Ye && (typeof Ye == "object" || typeof Ye == "function") ? Ye : Ve;
46698
46757
  }
46699
- function ze(Ue, Ye) {
46758
+ function ze(Ve, Ye) {
46700
46759
  if (typeof Ye != "function" && Ye !== null)
46701
46760
  throw new TypeError("Super expression must either be null or a function, not " + typeof Ye);
46702
- Ue.prototype = Object.create(Ye && Ye.prototype, { constructor: { value: Ue, enumerable: !1, writable: !0, configurable: !0 } }), Ye && (Object.setPrototypeOf ? Object.setPrototypeOf(Ue, Ye) : Ue.__proto__ = Ye);
46761
+ Ve.prototype = Object.create(Ye && Ye.prototype, { constructor: { value: Ve, enumerable: !1, writable: !0, configurable: !0 } }), Ye && (Object.setPrototypeOf ? Object.setPrototypeOf(Ve, Ye) : Ve.__proto__ = Ye);
46703
46762
  }
46704
- var We = (0, De.default)("quill:keyboard"), Ge = /Mac/i.test(navigator.platform) ? "metaKey" : "ctrlKey", Ke = (function(Ue) {
46705
- ze(Ye, Ue), de(Ye, null, [{
46763
+ var We = (0, De.default)("quill:keyboard"), Ge = /Mac/i.test(navigator.platform) ? "metaKey" : "ctrlKey", Ke = (function(Ve) {
46764
+ ze(Ye, Ve), de(Ye, null, [{
46706
46765
  key: "match",
46707
46766
  value: function(ot, _t) {
46708
46767
  return _t = Je(_t), ["altKey", "ctrlKey", "metaKey", "shiftKey"].some(function(kt) {
@@ -46715,7 +46774,7 @@ function requireQuill() {
46715
46774
  var _t = Le(this, (Ye.__proto__ || Object.getPrototypeOf(Ye)).call(this, rt, ot));
46716
46775
  return _t.bindings = {}, Object.keys(_t.options.bindings).forEach(function(kt) {
46717
46776
  kt === "list autofill" && rt.scroll.whitelist != null && !rt.scroll.whitelist.list || _t.options.bindings[kt] && _t.addBinding(_t.options.bindings[kt]);
46718
- }), _t.addBinding({ key: Ye.keys.ENTER, shiftKey: null }, Ve), _t.addBinding({ key: Ye.keys.ENTER, metaKey: null, ctrlKey: null, altKey: null }, function() {
46777
+ }), _t.addBinding({ key: Ye.keys.ENTER, shiftKey: null }, Ue), _t.addBinding({ key: Ye.keys.ENTER, metaKey: null, ctrlKey: null, altKey: null }, function() {
46719
46778
  }), /Firefox/i.test(navigator.userAgent) ? (_t.addBinding({ key: Ye.keys.BACKSPACE }, { collapsed: !0 }, Qe), _t.addBinding({ key: Ye.keys.DELETE }, { collapsed: !0 }, Ze)) : (_t.addBinding({ key: Ye.keys.BACKSPACE }, { collapsed: !0, prefix: /^.?$/ }, Qe), _t.addBinding({ key: Ye.keys.DELETE }, { collapsed: !0, suffix: /^.?$/ }, Ze)), _t.addBinding({ key: Ye.keys.BACKSPACE }, { collapsed: !1 }, Fe), _t.addBinding({ key: Ye.keys.DELETE }, { collapsed: !1 }, Fe), _t.addBinding({ key: Ye.keys.BACKSPACE, altKey: null, ctrlKey: null, metaKey: null, shiftKey: null }, { collapsed: !0, offset: 0 }, Qe), _t.listen(), _t;
46720
46779
  }
46721
46780
  return de(Ye, [{
@@ -46738,7 +46797,7 @@ function requireQuill() {
46738
46797
  if (It.length !== 0) {
46739
46798
  var qt = ot.quill.getSelection();
46740
46799
  if (!(qt == null || !ot.quill.hasFocus())) {
46741
- var Nt = ot.quill.getLine(qt.index), Ut = ne(Nt, 2), rs = Ut[0], Yt = Ut[1], gt = ot.quill.getLeaf(qt.index), mt = ne(gt, 2), xt = mt[0], St = mt[1], $t = qt.length === 0 ? [xt, St] : ot.quill.getLeaf(qt.index + qt.length), Ft = ne($t, 2), Mt = Ft[0], zt = Ft[1], cs = xt instanceof Ae.default.Text ? xt.value().slice(0, St) : "", ds = Mt instanceof Ae.default.Text ? Mt.value().slice(zt) : "", Kt = {
46800
+ var Nt = ot.quill.getLine(qt.index), Vt = ne(Nt, 2), rs = Vt[0], Yt = Vt[1], gt = ot.quill.getLeaf(qt.index), mt = ne(gt, 2), xt = mt[0], St = mt[1], $t = qt.length === 0 ? [xt, St] : ot.quill.getLeaf(qt.index + qt.length), Ft = ne($t, 2), Mt = Ft[0], zt = Ft[1], cs = xt instanceof Ae.default.Text ? xt.value().slice(0, St) : "", ds = Mt instanceof Ae.default.Text ? Mt.value().slice(zt) : "", Kt = {
46742
46801
  collapsed: qt.length === 0,
46743
46802
  empty: qt.length === 0 && rs.length() <= 1,
46744
46803
  format: ot.quill.getFormat(qt),
@@ -46887,8 +46946,8 @@ function requireQuill() {
46887
46946
  Nt = "ordered";
46888
46947
  }
46889
46948
  this.quill.insertText(Ye.index, " ", Se.default.sources.USER), this.quill.history.cutoff();
46890
- var Ut = new ge.default().retain(Ye.index - qt).delete(ot + 1).retain(It.length() - 2 - qt).retain(1, { list: Nt });
46891
- this.quill.updateContents(Ut, Se.default.sources.USER), this.quill.history.cutoff(), this.quill.setSelection(Ye.index - ot, Se.default.sources.SILENT);
46949
+ var Vt = new ge.default().retain(Ye.index - qt).delete(ot + 1).retain(It.length() - 2 - qt).retain(1, { list: Nt });
46950
+ this.quill.updateContents(Vt, Se.default.sources.USER), this.quill.history.cutoff(), this.quill.setSelection(Ye.index - ot, Se.default.sources.SILENT);
46892
46951
  }
46893
46952
  },
46894
46953
  "code exit": {
@@ -46908,103 +46967,103 @@ function requireQuill() {
46908
46967
  "embed right shift": ft(Ke.keys.RIGHT, !0)
46909
46968
  }
46910
46969
  };
46911
- function ft(Ue, Ye) {
46912
- var rt, ot = Ue === Ke.keys.LEFT ? "prefix" : "suffix";
46970
+ function ft(Ve, Ye) {
46971
+ var rt, ot = Ve === Ke.keys.LEFT ? "prefix" : "suffix";
46913
46972
  return rt = {
46914
- key: Ue,
46973
+ key: Ve,
46915
46974
  shiftKey: Ye,
46916
46975
  altKey: null
46917
46976
  }, Ce(rt, ot, /^$/), Ce(rt, "handler", function(kt) {
46918
46977
  var It = kt.index;
46919
- Ue === Ke.keys.RIGHT && (It += kt.length + 1);
46920
- var qt = this.quill.getLeaf(It), Nt = ne(qt, 1), Ut = Nt[0];
46921
- return Ut instanceof Ae.default.Embed ? (Ue === Ke.keys.LEFT ? Ye ? this.quill.setSelection(kt.index - 1, kt.length + 1, Se.default.sources.USER) : this.quill.setSelection(kt.index - 1, Se.default.sources.USER) : Ye ? this.quill.setSelection(kt.index, kt.length + 1, Se.default.sources.USER) : this.quill.setSelection(kt.index + kt.length + 1, Se.default.sources.USER), !1) : !0;
46978
+ Ve === Ke.keys.RIGHT && (It += kt.length + 1);
46979
+ var qt = this.quill.getLeaf(It), Nt = ne(qt, 1), Vt = Nt[0];
46980
+ return Vt instanceof Ae.default.Embed ? (Ve === Ke.keys.LEFT ? Ye ? this.quill.setSelection(kt.index - 1, kt.length + 1, Se.default.sources.USER) : this.quill.setSelection(kt.index - 1, Se.default.sources.USER) : Ye ? this.quill.setSelection(kt.index, kt.length + 1, Se.default.sources.USER) : this.quill.setSelection(kt.index + kt.length + 1, Se.default.sources.USER), !1) : !0;
46922
46981
  }), rt;
46923
46982
  }
46924
- function Qe(Ue, Ye) {
46925
- if (!(Ue.index === 0 || this.quill.getLength() <= 1)) {
46926
- var rt = this.quill.getLine(Ue.index), ot = ne(rt, 1), _t = ot[0], kt = {};
46983
+ function Qe(Ve, Ye) {
46984
+ if (!(Ve.index === 0 || this.quill.getLength() <= 1)) {
46985
+ var rt = this.quill.getLine(Ve.index), ot = ne(rt, 1), _t = ot[0], kt = {};
46927
46986
  if (Ye.offset === 0) {
46928
- var It = this.quill.getLine(Ue.index - 1), qt = ne(It, 1), Nt = qt[0];
46987
+ var It = this.quill.getLine(Ve.index - 1), qt = ne(It, 1), Nt = qt[0];
46929
46988
  if (Nt != null && Nt.length() > 1) {
46930
- var Ut = _t.formats(), rs = this.quill.getFormat(Ue.index - 1, 1);
46931
- kt = _e.default.attributes.diff(Ut, rs) || {};
46989
+ var Vt = _t.formats(), rs = this.quill.getFormat(Ve.index - 1, 1);
46990
+ kt = _e.default.attributes.diff(Vt, rs) || {};
46932
46991
  }
46933
46992
  }
46934
46993
  var Yt = /[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(Ye.prefix) ? 2 : 1;
46935
- this.quill.deleteText(Ue.index - Yt, Yt, Se.default.sources.USER), Object.keys(kt).length > 0 && this.quill.formatLine(Ue.index - Yt, Yt, kt, Se.default.sources.USER), this.quill.focus();
46994
+ this.quill.deleteText(Ve.index - Yt, Yt, Se.default.sources.USER), Object.keys(kt).length > 0 && this.quill.formatLine(Ve.index - Yt, Yt, kt, Se.default.sources.USER), this.quill.focus();
46936
46995
  }
46937
46996
  }
46938
- function Ze(Ue, Ye) {
46997
+ function Ze(Ve, Ye) {
46939
46998
  var rt = /^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(Ye.suffix) ? 2 : 1;
46940
- if (!(Ue.index >= this.quill.getLength() - rt)) {
46941
- var ot = {}, _t = 0, kt = this.quill.getLine(Ue.index), It = ne(kt, 1), qt = It[0];
46999
+ if (!(Ve.index >= this.quill.getLength() - rt)) {
47000
+ var ot = {}, _t = 0, kt = this.quill.getLine(Ve.index), It = ne(kt, 1), qt = It[0];
46942
47001
  if (Ye.offset >= qt.length() - 1) {
46943
- var Nt = this.quill.getLine(Ue.index + 1), Ut = ne(Nt, 1), rs = Ut[0];
47002
+ var Nt = this.quill.getLine(Ve.index + 1), Vt = ne(Nt, 1), rs = Vt[0];
46944
47003
  if (rs) {
46945
- var Yt = qt.formats(), gt = this.quill.getFormat(Ue.index, 1);
47004
+ var Yt = qt.formats(), gt = this.quill.getFormat(Ve.index, 1);
46946
47005
  ot = _e.default.attributes.diff(Yt, gt) || {}, _t = rs.length();
46947
47006
  }
46948
47007
  }
46949
- this.quill.deleteText(Ue.index, rt, Se.default.sources.USER), Object.keys(ot).length > 0 && this.quill.formatLine(Ue.index + _t - 1, rt, ot, Se.default.sources.USER);
47008
+ this.quill.deleteText(Ve.index, rt, Se.default.sources.USER), Object.keys(ot).length > 0 && this.quill.formatLine(Ve.index + _t - 1, rt, ot, Se.default.sources.USER);
46950
47009
  }
46951
47010
  }
46952
- function Fe(Ue) {
46953
- var Ye = this.quill.getLines(Ue), rt = {};
47011
+ function Fe(Ve) {
47012
+ var Ye = this.quill.getLines(Ve), rt = {};
46954
47013
  if (Ye.length > 1) {
46955
47014
  var ot = Ye[0].formats(), _t = Ye[Ye.length - 1].formats();
46956
47015
  rt = _e.default.attributes.diff(_t, ot) || {};
46957
47016
  }
46958
- this.quill.deleteText(Ue, Se.default.sources.USER), Object.keys(rt).length > 0 && this.quill.formatLine(Ue.index, 1, rt, Se.default.sources.USER), this.quill.setSelection(Ue.index, Se.default.sources.SILENT), this.quill.focus();
47017
+ this.quill.deleteText(Ve, Se.default.sources.USER), Object.keys(rt).length > 0 && this.quill.formatLine(Ve.index, 1, rt, Se.default.sources.USER), this.quill.setSelection(Ve.index, Se.default.sources.SILENT), this.quill.focus();
46959
47018
  }
46960
- function Ve(Ue, Ye) {
47019
+ function Ue(Ve, Ye) {
46961
47020
  var rt = this;
46962
- Ue.length > 0 && this.quill.scroll.deleteAt(Ue.index, Ue.length);
47021
+ Ve.length > 0 && this.quill.scroll.deleteAt(Ve.index, Ve.length);
46963
47022
  var ot = Object.keys(Ye.format).reduce(function(_t, kt) {
46964
47023
  return Ae.default.query(kt, Ae.default.Scope.BLOCK) && !Array.isArray(Ye.format[kt]) && (_t[kt] = Ye.format[kt]), _t;
46965
47024
  }, {});
46966
- this.quill.insertText(Ue.index, `
46967
- `, ot, Se.default.sources.USER), this.quill.setSelection(Ue.index + 1, Se.default.sources.SILENT), this.quill.focus(), Object.keys(Ye.format).forEach(function(_t) {
47025
+ this.quill.insertText(Ve.index, `
47026
+ `, ot, Se.default.sources.USER), this.quill.setSelection(Ve.index + 1, Se.default.sources.SILENT), this.quill.focus(), Object.keys(Ye.format).forEach(function(_t) {
46968
47027
  ot[_t] == null && (Array.isArray(Ye.format[_t]) || _t !== "link" && rt.quill.format(_t, Ye.format[_t], Se.default.sources.USER));
46969
47028
  });
46970
47029
  }
46971
- function Be(Ue) {
47030
+ function Be(Ve) {
46972
47031
  return {
46973
47032
  key: Ke.keys.TAB,
46974
- shiftKey: !Ue,
47033
+ shiftKey: !Ve,
46975
47034
  format: { "code-block": !0 },
46976
47035
  handler: function(rt) {
46977
- var ot = Ae.default.query("code-block"), _t = rt.index, kt = rt.length, It = this.quill.scroll.descendant(ot, _t), qt = ne(It, 2), Nt = qt[0], Ut = qt[1];
47036
+ var ot = Ae.default.query("code-block"), _t = rt.index, kt = rt.length, It = this.quill.scroll.descendant(ot, _t), qt = ne(It, 2), Nt = qt[0], Vt = qt[1];
46978
47037
  if (Nt != null) {
46979
- var rs = this.quill.getIndex(Nt), Yt = Nt.newlineIndex(Ut, !0) + 1, gt = Nt.newlineIndex(rs + Ut + kt), mt = Nt.domNode.textContent.slice(Yt, gt).split(`
47038
+ var rs = this.quill.getIndex(Nt), Yt = Nt.newlineIndex(Vt, !0) + 1, gt = Nt.newlineIndex(rs + Vt + kt), mt = Nt.domNode.textContent.slice(Yt, gt).split(`
46980
47039
  `);
46981
- Ut = 0, mt.forEach(function(xt, St) {
46982
- Ue ? (Nt.insertAt(Yt + Ut, ot.TAB), Ut += ot.TAB.length, St === 0 ? _t += ot.TAB.length : kt += ot.TAB.length) : xt.startsWith(ot.TAB) && (Nt.deleteAt(Yt + Ut, ot.TAB.length), Ut -= ot.TAB.length, St === 0 ? _t -= ot.TAB.length : kt -= ot.TAB.length), Ut += xt.length + 1;
47040
+ Vt = 0, mt.forEach(function(xt, St) {
47041
+ Ve ? (Nt.insertAt(Yt + Vt, ot.TAB), Vt += ot.TAB.length, St === 0 ? _t += ot.TAB.length : kt += ot.TAB.length) : xt.startsWith(ot.TAB) && (Nt.deleteAt(Yt + Vt, ot.TAB.length), Vt -= ot.TAB.length, St === 0 ? _t -= ot.TAB.length : kt -= ot.TAB.length), Vt += xt.length + 1;
46983
47042
  }), this.quill.update(Se.default.sources.USER), this.quill.setSelection(_t, kt, Se.default.sources.SILENT);
46984
47043
  }
46985
47044
  }
46986
47045
  };
46987
47046
  }
46988
- function Xe(Ue) {
47047
+ function Xe(Ve) {
46989
47048
  return {
46990
- key: Ue[0].toUpperCase(),
47049
+ key: Ve[0].toUpperCase(),
46991
47050
  shortKey: !0,
46992
47051
  handler: function(rt, ot) {
46993
- this.quill.format(Ue, !ot.format[Ue], Se.default.sources.USER);
47052
+ this.quill.format(Ve, !ot.format[Ve], Se.default.sources.USER);
46994
47053
  }
46995
47054
  };
46996
47055
  }
46997
- function Je(Ue) {
46998
- if (typeof Ue == "string" || typeof Ue == "number")
46999
- return Je({ key: Ue });
47000
- if ((typeof Ue > "u" ? "undefined" : oe(Ue)) === "object" && (Ue = (0, ue.default)(Ue, !1)), typeof Ue.key == "string")
47001
- if (Ke.keys[Ue.key.toUpperCase()] != null)
47002
- Ue.key = Ke.keys[Ue.key.toUpperCase()];
47003
- else if (Ue.key.length === 1)
47004
- Ue.key = Ue.key.toUpperCase().charCodeAt(0);
47056
+ function Je(Ve) {
47057
+ if (typeof Ve == "string" || typeof Ve == "number")
47058
+ return Je({ key: Ve });
47059
+ if ((typeof Ve > "u" ? "undefined" : oe(Ve)) === "object" && (Ve = (0, ue.default)(Ve, !1)), typeof Ve.key == "string")
47060
+ if (Ke.keys[Ve.key.toUpperCase()] != null)
47061
+ Ve.key = Ke.keys[Ve.key.toUpperCase()];
47062
+ else if (Ve.key.length === 1)
47063
+ Ve.key = Ve.key.toUpperCase().charCodeAt(0);
47005
47064
  else
47006
47065
  return null;
47007
- return Ue.shortKey && (Ue[Ge] = Ue.shortKey, delete Ue.shortKey), Ue;
47066
+ return Ve.shortKey && (Ve[Ge] = Ve.shortKey, delete Ve.shortKey), Ve;
47008
47067
  }
47009
47068
  te.default = Ke, te.SHORTKEY = Ge;
47010
47069
  }),
@@ -47865,8 +47924,8 @@ function requireQuill() {
47865
47924
  throw new TypeError("unexpected type: " + qe.type);
47866
47925
  return Ce.setStart(Ge, 0), Ce.setEnd(Ke, Ke.length), { range: Ce, mode: "all" };
47867
47926
  }
47868
- var Ze = We(), Fe = void 0, Ve = void 0, Be = Ke.length - Se(Ke);
47869
- return ft ? (qe.extend(Ge, 0), Fe = We() + ye(Ge), qe.extend(Ke, Be), Ve = Be - (We() - Ze), qe.extend(Ke, Ve)) : (qe.extend(Ke, Be), Ve = Be - We(), qe.extend(Ge, 0), Fe = We() - Ze + ye(Ge), qe.extend(Ge, Fe)), Ce.setStart(Ge, Fe), Ce.setEnd(Ke, Ve), {
47927
+ var Ze = We(), Fe = void 0, Ue = void 0, Be = Ke.length - Se(Ke);
47928
+ return ft ? (qe.extend(Ge, 0), Fe = We() + ye(Ge), qe.extend(Ke, Be), Ue = Be - (We() - Ze), qe.extend(Ke, Ue)) : (qe.extend(Ke, Be), Ue = Be - We(), qe.extend(Ge, 0), Fe = We() - Ze + ye(Ge), qe.extend(Ge, Fe)), Ce.setStart(Ge, Fe), Ce.setEnd(Ke, Ue), {
47870
47929
  mode: ft ? "right" : "left",
47871
47930
  range: Ce
47872
47931
  };
@@ -48331,92 +48390,92 @@ function requireQuill() {
48331
48390
  value: !0
48332
48391
  }), te.default = te.BaseTooltip = void 0;
48333
48392
  var oe = /* @__PURE__ */ (function() {
48334
- function Ve(Be, Xe) {
48393
+ function Ue(Be, Xe) {
48335
48394
  for (var Je = 0; Je < Xe.length; Je++) {
48336
- var Ue = Xe[Je];
48337
- Ue.enumerable = Ue.enumerable || !1, Ue.configurable = !0, "value" in Ue && (Ue.writable = !0), Object.defineProperty(Be, Ue.key, Ue);
48395
+ var Ve = Xe[Je];
48396
+ Ve.enumerable = Ve.enumerable || !1, Ve.configurable = !0, "value" in Ve && (Ve.writable = !0), Object.defineProperty(Be, Ve.key, Ve);
48338
48397
  }
48339
48398
  }
48340
48399
  return function(Be, Xe, Je) {
48341
- return Xe && Ve(Be.prototype, Xe), Je && Ve(Be, Je), Be;
48400
+ return Xe && Ue(Be.prototype, Xe), Je && Ue(Be, Je), Be;
48342
48401
  };
48343
- })(), ne = function Ve(Be, Xe, Je) {
48402
+ })(), ne = function Ue(Be, Xe, Je) {
48344
48403
  Be === null && (Be = Function.prototype);
48345
- var Ue = Object.getOwnPropertyDescriptor(Be, Xe);
48346
- if (Ue === void 0) {
48404
+ var Ve = Object.getOwnPropertyDescriptor(Be, Xe);
48405
+ if (Ve === void 0) {
48347
48406
  var Ye = Object.getPrototypeOf(Be);
48348
- return Ye === null ? void 0 : Ve(Ye, Xe, Je);
48407
+ return Ye === null ? void 0 : Ue(Ye, Xe, Je);
48349
48408
  } else {
48350
- if ("value" in Ue)
48351
- return Ue.value;
48352
- var rt = Ue.get;
48409
+ if ("value" in Ve)
48410
+ return Ve.value;
48411
+ var rt = Ve.get;
48353
48412
  return rt === void 0 ? void 0 : rt.call(Je);
48354
48413
  }
48355
48414
  }, de = re(3), ce = He(de), ue = re(2), he = He(ue), pe = re(8), fe = He(pe), be = re(23), me = He(be), ge = re(35), ve = He(ge), _e = re(60), we = He(_e), Ae = re(61), ye = He(Ae), Se = re(28), Pe = He(Se), De = re(62), Me = He(De);
48356
- function He(Ve) {
48357
- return Ve && Ve.__esModule ? Ve : { default: Ve };
48415
+ function He(Ue) {
48416
+ return Ue && Ue.__esModule ? Ue : { default: Ue };
48358
48417
  }
48359
- function Ie(Ve, Be) {
48360
- if (!(Ve instanceof Be))
48418
+ function Ie(Ue, Be) {
48419
+ if (!(Ue instanceof Be))
48361
48420
  throw new TypeError("Cannot call a class as a function");
48362
48421
  }
48363
- function Ce(Ve, Be) {
48364
- if (!Ve)
48422
+ function Ce(Ue, Be) {
48423
+ if (!Ue)
48365
48424
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
48366
- return Be && (typeof Be == "object" || typeof Be == "function") ? Be : Ve;
48425
+ return Be && (typeof Be == "object" || typeof Be == "function") ? Be : Ue;
48367
48426
  }
48368
- function qe(Ve, Be) {
48427
+ function qe(Ue, Be) {
48369
48428
  if (typeof Be != "function" && Be !== null)
48370
48429
  throw new TypeError("Super expression must either be null or a function, not " + typeof Be);
48371
- Ve.prototype = Object.create(Be && Be.prototype, { constructor: { value: Ve, enumerable: !1, writable: !0, configurable: !0 } }), Be && (Object.setPrototypeOf ? Object.setPrototypeOf(Ve, Be) : Ve.__proto__ = Be);
48430
+ Ue.prototype = Object.create(Be && Be.prototype, { constructor: { value: Ue, enumerable: !1, writable: !0, configurable: !0 } }), Be && (Object.setPrototypeOf ? Object.setPrototypeOf(Ue, Be) : Ue.__proto__ = Be);
48372
48431
  }
48373
- var Le = [!1, "center", "right", "justify"], ze = ["#000000", "#e60000", "#ff9900", "#ffff00", "#008a00", "#0066cc", "#9933ff", "#ffffff", "#facccc", "#ffebcc", "#ffffcc", "#cce8cc", "#cce0f5", "#ebd6ff", "#bbbbbb", "#f06666", "#ffc266", "#ffff66", "#66b966", "#66a3e0", "#c285ff", "#888888", "#a10000", "#b26b00", "#b2b200", "#006100", "#0047b2", "#6b24b2", "#444444", "#5c0000", "#663d00", "#666600", "#003700", "#002966", "#3d1466"], We = [!1, "serif", "monospace"], Ge = ["1", "2", "3", !1], Ke = ["petita", !1, "gran", "enorme"], ft = (function(Ve) {
48374
- qe(Be, Ve);
48432
+ var Le = [!1, "center", "right", "justify"], ze = ["#000000", "#e60000", "#ff9900", "#ffff00", "#008a00", "#0066cc", "#9933ff", "#ffffff", "#facccc", "#ffebcc", "#ffffcc", "#cce8cc", "#cce0f5", "#ebd6ff", "#bbbbbb", "#f06666", "#ffc266", "#ffff66", "#66b966", "#66a3e0", "#c285ff", "#888888", "#a10000", "#b26b00", "#b2b200", "#006100", "#0047b2", "#6b24b2", "#444444", "#5c0000", "#663d00", "#666600", "#003700", "#002966", "#3d1466"], We = [!1, "serif", "monospace"], Ge = ["1", "2", "3", !1], Ke = ["petita", !1, "gran", "enorme"], ft = (function(Ue) {
48433
+ qe(Be, Ue);
48375
48434
  function Be(Xe, Je) {
48376
48435
  Ie(this, Be);
48377
- var Ue = Ce(this, (Be.__proto__ || Object.getPrototypeOf(Be)).call(this, Xe, Je)), Ye = function rt(ot) {
48436
+ var Ve = Ce(this, (Be.__proto__ || Object.getPrototypeOf(Be)).call(this, Xe, Je)), Ye = function rt(ot) {
48378
48437
  if (!document.body.contains(Xe.root))
48379
48438
  return document.body.removeEventListener("click", rt);
48380
- Ue.tooltip != null && !Ue.tooltip.root.contains(ot.target) && document.activeElement !== Ue.tooltip.textbox && !Ue.quill.hasFocus() && Ue.tooltip.hide(), Ue.pickers != null && Ue.pickers.forEach(function(_t) {
48439
+ Ve.tooltip != null && !Ve.tooltip.root.contains(ot.target) && document.activeElement !== Ve.tooltip.textbox && !Ve.quill.hasFocus() && Ve.tooltip.hide(), Ve.pickers != null && Ve.pickers.forEach(function(_t) {
48381
48440
  _t.container.contains(ot.target) || _t.close();
48382
48441
  });
48383
48442
  };
48384
- return Xe.emitter.listenDOM("click", document.body, Ye), Ue;
48443
+ return Xe.emitter.listenDOM("click", document.body, Ye), Ve;
48385
48444
  }
48386
48445
  return oe(Be, [{
48387
48446
  key: "addModule",
48388
48447
  value: function(Je) {
48389
- var Ue = ne(Be.prototype.__proto__ || Object.getPrototypeOf(Be.prototype), "addModule", this).call(this, Je);
48390
- return Je === "toolbar" && this.extendToolbar(Ue), Ue;
48448
+ var Ve = ne(Be.prototype.__proto__ || Object.getPrototypeOf(Be.prototype), "addModule", this).call(this, Je);
48449
+ return Je === "toolbar" && this.extendToolbar(Ve), Ve;
48391
48450
  }
48392
48451
  }, {
48393
48452
  key: "buildButtons",
48394
- value: function(Je, Ue) {
48453
+ value: function(Je, Ve) {
48395
48454
  Je.forEach(function(Ye) {
48396
48455
  var rt = Ye.getAttribute("class") || "";
48397
48456
  rt.split(/\s+/).forEach(function(ot) {
48398
- if (ot.startsWith("ql-") && (ot = ot.slice(3), Ue[ot] != null))
48457
+ if (ot.startsWith("ql-") && (ot = ot.slice(3), Ve[ot] != null))
48399
48458
  if (ot === "direction")
48400
- Ye.innerHTML = Ue[ot][""] + Ue[ot].rtl;
48401
- else if (typeof Ue[ot] == "string")
48402
- Ye.innerHTML = Ue[ot];
48459
+ Ye.innerHTML = Ve[ot][""] + Ve[ot].rtl;
48460
+ else if (typeof Ve[ot] == "string")
48461
+ Ye.innerHTML = Ve[ot];
48403
48462
  else {
48404
48463
  var _t = Ye.value || "";
48405
- _t != null && Ue[ot][_t] && (Ye.innerHTML = Ue[ot][_t]);
48464
+ _t != null && Ve[ot][_t] && (Ye.innerHTML = Ve[ot][_t]);
48406
48465
  }
48407
48466
  });
48408
48467
  });
48409
48468
  }
48410
48469
  }, {
48411
48470
  key: "buildPickers",
48412
- value: function(Je, Ue) {
48471
+ value: function(Je, Ve) {
48413
48472
  var Ye = this;
48414
48473
  this.pickers = Je.map(function(ot) {
48415
48474
  if (ot.classList.contains("ql-align"))
48416
- return ot.querySelector("option") == null && Fe(ot, Le), new ye.default(ot, Ue.align);
48475
+ return ot.querySelector("option") == null && Fe(ot, Le), new ye.default(ot, Ve.align);
48417
48476
  if (ot.classList.contains("ql-background") || ot.classList.contains("ql-color")) {
48418
48477
  var _t = ot.classList.contains("ql-background") ? "background" : "color";
48419
- return ot.querySelector("option") == null && Fe(ot, ze, _t === "background" ? "#ffffff" : "#000000"), new we.default(ot, Ue[_t]);
48478
+ return ot.querySelector("option") == null && Fe(ot, ze, _t === "background" ? "#ffffff" : "#000000"), new we.default(ot, Ve[_t]);
48420
48479
  } else
48421
48480
  return ot.querySelector("option") == null && (ot.classList.contains("ql-font") ? Fe(ot, We) : ot.classList.contains("ql-header") ? Fe(ot, Ge) : ot.classList.contains("ql-size") && Fe(ot, Ke)), new Pe.default(ot);
48422
48481
  });
@@ -48441,9 +48500,9 @@ function requireQuill() {
48441
48500
  Xe == null && (Xe = document.createElement("input"), Xe.setAttribute("type", "file"), Xe.setAttribute("accept", "image/png, image/gif, image/jpeg, image/bmp, image/x-icon"), Xe.classList.add("ql-image"), Xe.addEventListener("change", function() {
48442
48501
  if (Xe.files != null && Xe.files[0] != null) {
48443
48502
  var Je = new FileReader();
48444
- Je.onload = function(Ue) {
48503
+ Je.onload = function(Ve) {
48445
48504
  var Ye = Be.quill.getSelection(!0);
48446
- Be.quill.updateContents(new he.default().retain(Ye.index).delete(Ye.length).insert({ image: Ue.target.result }), fe.default.sources.USER), Be.quill.setSelection(Ye.index + 1, fe.default.sources.SILENT), Xe.value = "";
48505
+ Be.quill.updateContents(new he.default().retain(Ye.index).delete(Ye.length).insert({ image: Ve.target.result }), fe.default.sources.USER), Be.quill.setSelection(Ye.index + 1, fe.default.sources.SILENT), Xe.value = "";
48447
48506
  }, Je.readAsDataURL(Xe.files[0]);
48448
48507
  }
48449
48508
  }), this.container.appendChild(Xe)), Xe.click();
@@ -48455,19 +48514,19 @@ function requireQuill() {
48455
48514
  }
48456
48515
  }
48457
48516
  });
48458
- var Qe = (function(Ve) {
48459
- qe(Be, Ve);
48517
+ var Qe = (function(Ue) {
48518
+ qe(Be, Ue);
48460
48519
  function Be(Xe, Je) {
48461
48520
  Ie(this, Be);
48462
- var Ue = Ce(this, (Be.__proto__ || Object.getPrototypeOf(Be)).call(this, Xe, Je));
48463
- return Ue.textbox = Ue.root.querySelector('input[type="text"]'), Ue.listen(), Ue;
48521
+ var Ve = Ce(this, (Be.__proto__ || Object.getPrototypeOf(Be)).call(this, Xe, Je));
48522
+ return Ve.textbox = Ve.root.querySelector('input[type="text"]'), Ve.listen(), Ve;
48464
48523
  }
48465
48524
  return oe(Be, [{
48466
48525
  key: "listen",
48467
48526
  value: function() {
48468
48527
  var Je = this;
48469
- this.textbox.addEventListener("keydown", function(Ue) {
48470
- me.default.match(Ue, "enter") ? (Je.save(), Ue.preventDefault()) : me.default.match(Ue, "escape") && (Je.cancel(), Ue.preventDefault());
48528
+ this.textbox.addEventListener("keydown", function(Ve) {
48529
+ me.default.match(Ve, "enter") ? (Je.save(), Ve.preventDefault()) : me.default.match(Ve, "escape") && (Je.cancel(), Ve.preventDefault());
48471
48530
  });
48472
48531
  }
48473
48532
  }, {
@@ -48478,8 +48537,8 @@ function requireQuill() {
48478
48537
  }, {
48479
48538
  key: "edit",
48480
48539
  value: function() {
48481
- var Je = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "link", Ue = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
48482
- this.root.classList.remove("ql-hidden"), this.root.classList.add("ql-editing"), Ue != null ? this.textbox.value = Ue : Je !== this.root.getAttribute("data-mode") && (this.textbox.value = ""), this.position(this.quill.getBounds(this.quill.selection.savedRange)), this.textbox.select(), this.textbox.setAttribute("placeholder", this.textbox.getAttribute("data-" + Je) || ""), this.root.setAttribute("data-mode", Je);
48540
+ var Je = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "link", Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
48541
+ this.root.classList.remove("ql-hidden"), this.root.classList.add("ql-editing"), Ve != null ? this.textbox.value = Ve : Je !== this.root.getAttribute("data-mode") && (this.textbox.value = ""), this.position(this.quill.getBounds(this.quill.selection.savedRange)), this.textbox.select(), this.textbox.setAttribute("placeholder", this.textbox.getAttribute("data-" + Je) || ""), this.root.setAttribute("data-mode", Je);
48483
48542
  }
48484
48543
  }, {
48485
48544
  key: "restoreFocus",
@@ -48493,8 +48552,8 @@ function requireQuill() {
48493
48552
  var Je = this.textbox.value;
48494
48553
  switch (this.root.getAttribute("data-mode")) {
48495
48554
  case "link": {
48496
- var Ue = this.quill.root.scrollTop;
48497
- this.linkRange ? (this.quill.formatText(this.linkRange, "link", Je, fe.default.sources.USER), delete this.linkRange) : (this.restoreFocus(), this.quill.format("link", Je, fe.default.sources.USER)), this.quill.root.scrollTop = Ue;
48555
+ var Ve = this.quill.root.scrollTop;
48556
+ this.linkRange ? (this.quill.formatText(this.linkRange, "link", Je, fe.default.sources.USER), delete this.linkRange) : (this.restoreFocus(), this.quill.format("link", Je, fe.default.sources.USER)), this.quill.root.scrollTop = Ve;
48498
48557
  break;
48499
48558
  }
48500
48559
  case "video":
@@ -48514,15 +48573,15 @@ function requireQuill() {
48514
48573
  }
48515
48574
  }]), Be;
48516
48575
  })(Me.default);
48517
- function Ze(Ve) {
48518
- var Be = Ve.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/) || Ve.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);
48519
- return Be ? (Be[1] || "https") + "://www.youtube.com/embed/" + Be[2] + "?showinfo=0" : (Be = Ve.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/)) ? (Be[1] || "https") + "://player.vimeo.com/video/" + Be[2] + "/" : Ve;
48576
+ function Ze(Ue) {
48577
+ var Be = Ue.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/) || Ue.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);
48578
+ return Be ? (Be[1] || "https") + "://www.youtube.com/embed/" + Be[2] + "?showinfo=0" : (Be = Ue.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/)) ? (Be[1] || "https") + "://player.vimeo.com/video/" + Be[2] + "/" : Ue;
48520
48579
  }
48521
- function Fe(Ve, Be) {
48580
+ function Fe(Ue, Be) {
48522
48581
  var Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
48523
48582
  Be.forEach(function(Je) {
48524
- var Ue = document.createElement("option");
48525
- Je === Xe ? Ue.setAttribute("selected", "selected") : Ue.setAttribute("value", Je), Ve.appendChild(Ue);
48583
+ var Ve = document.createElement("option");
48584
+ Je === Xe ? Ve.setAttribute("selected", "selected") : Ve.setAttribute("value", Je), Ue.appendChild(Ve);
48526
48585
  });
48527
48586
  }
48528
48587
  te.BaseTooltip = Qe, te.default = ft;
@@ -48958,37 +49017,37 @@ function requireQuill() {
48958
49017
  Ce[He + 1] = 0, qe[He + 1] = 0;
48959
49018
  for (var ze = Pe - De, We = ze % 2 != 0, Ge = 0, Ke = 0, ft = 0, Qe = 0, Ze = 0; Ze < Me; Ze++) {
48960
49019
  for (var Fe = -Ze + Ge; Fe <= Ze - Ke; Fe += 2) {
48961
- var Ve = He + Fe, Be;
48962
- Fe == -Ze || Fe != Ze && Ce[Ve - 1] < Ce[Ve + 1] ? Be = Ce[Ve + 1] : Be = Ce[Ve - 1] + 1;
49020
+ var Ue = He + Fe, Be;
49021
+ Fe == -Ze || Fe != Ze && Ce[Ue - 1] < Ce[Ue + 1] ? Be = Ce[Ue + 1] : Be = Ce[Ue - 1] + 1;
48963
49022
  for (var Xe = Be - Fe; Be < Pe && Xe < De && ye.charAt(Be) == Se.charAt(Xe); )
48964
49023
  Be++, Xe++;
48965
- if (Ce[Ve] = Be, Be > Pe)
49024
+ if (Ce[Ue] = Be, Be > Pe)
48966
49025
  Ke += 2;
48967
49026
  else if (Xe > De)
48968
49027
  Ge += 2;
48969
49028
  else if (We) {
48970
49029
  var Je = He + ze - Fe;
48971
49030
  if (Je >= 0 && Je < Ie && qe[Je] != -1) {
48972
- var Ue = Pe - qe[Je];
48973
- if (Be >= Ue)
49031
+ var Ve = Pe - qe[Je];
49032
+ if (Be >= Ve)
48974
49033
  return he(ye, Se, Be, Xe);
48975
49034
  }
48976
49035
  }
48977
49036
  }
48978
49037
  for (var Ye = -Ze + ft; Ye <= Ze - Qe; Ye += 2) {
48979
- var Je = He + Ye, Ue;
48980
- Ye == -Ze || Ye != Ze && qe[Je - 1] < qe[Je + 1] ? Ue = qe[Je + 1] : Ue = qe[Je - 1] + 1;
48981
- for (var rt = Ue - Ye; Ue < Pe && rt < De && ye.charAt(Pe - Ue - 1) == Se.charAt(De - rt - 1); )
48982
- Ue++, rt++;
48983
- if (qe[Je] = Ue, Ue > Pe)
49038
+ var Je = He + Ye, Ve;
49039
+ Ye == -Ze || Ye != Ze && qe[Je - 1] < qe[Je + 1] ? Ve = qe[Je + 1] : Ve = qe[Je - 1] + 1;
49040
+ for (var rt = Ve - Ye; Ve < Pe && rt < De && ye.charAt(Pe - Ve - 1) == Se.charAt(De - rt - 1); )
49041
+ Ve++, rt++;
49042
+ if (qe[Je] = Ve, Ve > Pe)
48984
49043
  Qe += 2;
48985
49044
  else if (rt > De)
48986
49045
  ft += 2;
48987
49046
  else if (!We) {
48988
- var Ve = He + ze - Ye;
48989
- if (Ve >= 0 && Ve < Ie && Ce[Ve] != -1) {
48990
- var Be = Ce[Ve], Xe = He + Be - Ve;
48991
- if (Ue = Pe - Ue, Be >= Ue)
49047
+ var Ue = He + ze - Ye;
49048
+ if (Ue >= 0 && Ue < Ie && Ce[Ue] != -1) {
49049
+ var Be = Ce[Ue], Xe = He + Be - Ue;
49050
+ if (Ve = Pe - Ve, Be >= Ve)
48992
49051
  return he(ye, Se, Be, Xe);
48993
49052
  }
48994
49053
  }
@@ -49019,7 +49078,7 @@ function requireQuill() {
49019
49078
  if (Pe.length < 4 || De.length * 2 < Pe.length)
49020
49079
  return null;
49021
49080
  function Me(Ke, ft, Qe) {
49022
- for (var Ze = Ke.substring(Qe, Qe + Math.floor(Ke.length / 4)), Fe = -1, Ve = "", Be, Xe, Je, Ue; (Fe = ft.indexOf(Ze, Fe + 1)) != -1; ) {
49081
+ for (var Ze = Ke.substring(Qe, Qe + Math.floor(Ke.length / 4)), Fe = -1, Ue = "", Be, Xe, Je, Ve; (Fe = ft.indexOf(Ze, Fe + 1)) != -1; ) {
49023
49082
  var Ye = pe(
49024
49083
  Ke.substring(Qe),
49025
49084
  ft.substring(Fe)
@@ -49027,14 +49086,14 @@ function requireQuill() {
49027
49086
  Ke.substring(0, Qe),
49028
49087
  ft.substring(0, Fe)
49029
49088
  );
49030
- Ve.length < rt + Ye && (Ve = ft.substring(Fe - rt, Fe) + ft.substring(Fe, Fe + Ye), Be = Ke.substring(0, Qe - rt), Xe = Ke.substring(Qe + Ye), Je = ft.substring(0, Fe - rt), Ue = ft.substring(Fe + Ye));
49089
+ Ue.length < rt + Ye && (Ue = ft.substring(Fe - rt, Fe) + ft.substring(Fe, Fe + Ye), Be = Ke.substring(0, Qe - rt), Xe = Ke.substring(Qe + Ye), Je = ft.substring(0, Fe - rt), Ve = ft.substring(Fe + Ye));
49031
49090
  }
49032
- return Ve.length * 2 >= Ke.length ? [
49091
+ return Ue.length * 2 >= Ke.length ? [
49033
49092
  Be,
49034
49093
  Xe,
49035
49094
  Je,
49036
- Ue,
49037
- Ve
49095
+ Ve,
49096
+ Ue
49038
49097
  ] : null;
49039
49098
  }
49040
49099
  var He = Me(
@@ -49337,18 +49396,18 @@ function requireQuill() {
49337
49396
  throw new TypeError("Super expression must either be null or a function, not " + typeof mt);
49338
49397
  gt.prototype = Object.create(mt && mt.prototype, { constructor: { value: gt, enumerable: !1, writable: !0, configurable: !0 } }), mt && (Object.setPrototypeOf ? Object.setPrototypeOf(gt, mt) : gt.__proto__ = mt);
49339
49398
  }
49340
- var Ke = (0, _e.default)("quill:clipboard"), ft = "__ql-matcher", Qe = [[Node.TEXT_NODE, Yt], [Node.TEXT_NODE, Nt], ["br", kt], [Node.ELEMENT_NODE, Nt], [Node.ELEMENT_NODE, _t], [Node.ELEMENT_NODE, Ut], [Node.ELEMENT_NODE, ot], [Node.ELEMENT_NODE, rs], ["li", qt], ["b", rt.bind(rt, "bold")], ["i", rt.bind(rt, "italic")], ["style", It]], Ze = [ye.AlignAttribute, He.DirectionAttribute].reduce(function(gt, mt) {
49399
+ var Ke = (0, _e.default)("quill:clipboard"), ft = "__ql-matcher", Qe = [[Node.TEXT_NODE, Yt], [Node.TEXT_NODE, Nt], ["br", kt], [Node.ELEMENT_NODE, Nt], [Node.ELEMENT_NODE, _t], [Node.ELEMENT_NODE, Vt], [Node.ELEMENT_NODE, ot], [Node.ELEMENT_NODE, rs], ["li", qt], ["b", rt.bind(rt, "bold")], ["i", rt.bind(rt, "italic")], ["style", It]], Ze = [ye.AlignAttribute, He.DirectionAttribute].reduce(function(gt, mt) {
49341
49400
  return gt[mt.keyName] = mt, gt;
49342
49401
  }, {}), Fe = [ye.AlignStyle, Se.BackgroundStyle, Me.ColorStyle, He.DirectionStyle, Ie.FontStyle, Ce.SizeStyle].reduce(function(gt, mt) {
49343
49402
  return gt[mt.keyName] = mt, gt;
49344
- }, {}), Ve = (function(gt) {
49403
+ }, {}), Ue = (function(gt) {
49345
49404
  Ge(mt, gt);
49346
49405
  function mt(xt, St) {
49347
49406
  ze(this, mt);
49348
49407
  var $t = We(this, (mt.__proto__ || Object.getPrototypeOf(mt)).call(this, xt, St));
49349
49408
  return $t.quill.root.addEventListener("paste", $t.onPaste.bind($t)), $t.container = $t.quill.addContainer("ql-clipboard"), $t.container.setAttribute("contenteditable", !0), $t.container.setAttribute("tabindex", -1), $t.matchers = [], Qe.concat($t.options.matchers).forEach(function(Ft) {
49350
49409
  var Mt = ne(Ft, 2), zt = Mt[0], cs = Mt[1];
49351
- !St.matchVisual && cs === Ut || $t.addMatcher(zt, cs);
49410
+ !St.matchVisual && cs === Vt || $t.addMatcher(zt, cs);
49352
49411
  }), $t;
49353
49412
  }
49354
49413
  return de(mt, [{
@@ -49415,7 +49474,7 @@ function requireQuill() {
49415
49474
  }
49416
49475
  }]), mt;
49417
49476
  })(Ae.default);
49418
- Ve.DEFAULTS = {
49477
+ Ue.DEFAULTS = {
49419
49478
  matchers: [],
49420
49479
  matchVisual: !0
49421
49480
  };
@@ -49439,7 +49498,7 @@ function requireQuill() {
49439
49498
  }
49440
49499
  return xt.slice(-1 * mt.length) === mt;
49441
49500
  }
49442
- function Ue(gt) {
49501
+ function Ve(gt) {
49443
49502
  if (gt.childNodes.length === 0) return !1;
49444
49503
  var mt = Xe(gt);
49445
49504
  return ["block", "list-item"].indexOf(mt.display) > -1;
@@ -49494,11 +49553,11 @@ function requireQuill() {
49494
49553
  }
49495
49554
  function Nt(gt, mt) {
49496
49555
  return Je(mt, `
49497
- `) || (Ue(gt) || mt.length() > 0 && gt.nextSibling && Ue(gt.nextSibling)) && mt.insert(`
49556
+ `) || (Ve(gt) || mt.length() > 0 && gt.nextSibling && Ve(gt.nextSibling)) && mt.insert(`
49498
49557
  `), mt;
49499
49558
  }
49500
- function Ut(gt, mt) {
49501
- if (Ue(gt) && gt.nextElementSibling != null && !Je(mt, `
49559
+ function Vt(gt, mt) {
49560
+ if (Ve(gt) && gt.nextElementSibling != null && !Je(mt, `
49502
49561
 
49503
49562
  `)) {
49504
49563
  var xt = gt.offsetHeight + parseFloat(Xe(gt).marginTop) + parseFloat(Xe(gt).marginBottom);
@@ -49521,11 +49580,11 @@ function requireQuill() {
49521
49580
  var St = function(Ft, Mt) {
49522
49581
  return Mt = Mt.replace(/[^\u00a0]/g, ""), Mt.length < 1 && Ft ? " " : Mt;
49523
49582
  };
49524
- xt = xt.replace(/\r\n/g, " ").replace(/\n/g, " "), xt = xt.replace(/\s\s+/g, St.bind(St, !0)), (gt.previousSibling == null && Ue(gt.parentNode) || gt.previousSibling != null && Ue(gt.previousSibling)) && (xt = xt.replace(/^\s+/, St.bind(St, !1))), (gt.nextSibling == null && Ue(gt.parentNode) || gt.nextSibling != null && Ue(gt.nextSibling)) && (xt = xt.replace(/\s+$/, St.bind(St, !1)));
49583
+ xt = xt.replace(/\r\n/g, " ").replace(/\n/g, " "), xt = xt.replace(/\s\s+/g, St.bind(St, !0)), (gt.previousSibling == null && Ve(gt.parentNode) || gt.previousSibling != null && Ve(gt.previousSibling)) && (xt = xt.replace(/^\s+/, St.bind(St, !1))), (gt.nextSibling == null && Ve(gt.parentNode) || gt.nextSibling != null && Ve(gt.nextSibling)) && (xt = xt.replace(/\s+$/, St.bind(St, !1)));
49525
49584
  }
49526
49585
  return mt.insert(xt);
49527
49586
  }
49528
- te.default = Ve, te.matchAttributor = ot, te.matchBlot = _t, te.matchNewline = Nt, te.matchSpacing = Ut, te.matchText = Yt;
49587
+ te.default = Ue, te.matchAttributor = ot, te.matchBlot = _t, te.matchNewline = Nt, te.matchSpacing = Vt, te.matchText = Yt;
49529
49588
  }),
49530
49589
  /* 57 */
49531
49590
  /***/
@@ -49682,8 +49741,8 @@ function requireQuill() {
49682
49741
  }), Ge.quill.on(fe.default.events.EDITOR_CHANGE, function(Ze, Fe) {
49683
49742
  Ze === fe.default.events.SELECTION_CHANGE && Ge.update(Fe);
49684
49743
  }), Ge.quill.on(fe.default.events.SCROLL_OPTIMIZE, function() {
49685
- var Ze = Ge.quill.selection.getRange(), Fe = oe(Ze, 1), Ve = Fe[0];
49686
- Ge.update(Ve);
49744
+ var Ze = Ge.quill.selection.getRange(), Fe = oe(Ze, 1), Ue = Fe[0];
49745
+ Ge.update(Ue);
49687
49746
  }), Ge;
49688
49747
  }
49689
49748
  return ne(Le, [{
@@ -49718,7 +49777,7 @@ function requireQuill() {
49718
49777
  } else
49719
49778
  We.classList.contains("ql-active") ? Ze = !1 : Ze = We.value || !We.hasAttribute("value"), Qe.preventDefault();
49720
49779
  Ge.quill.focus();
49721
- var Ve = Ge.quill.selection.getRange(), Be = oe(Ve, 1), Xe = Be[0];
49780
+ var Ue = Ge.quill.selection.getRange(), Be = oe(Ue, 1), Xe = Be[0];
49722
49781
  if (Ge.handlers[Ke] != null)
49723
49782
  Ge.handlers[Ke].call(Ge, Ze);
49724
49783
  else if (he.default.query(Ke).prototype instanceof he.default.Embed) {
@@ -49743,8 +49802,8 @@ function requireQuill() {
49743
49802
  else if (Ge[Qe] == null)
49744
49803
  Fe = Ze.querySelector("option[selected]");
49745
49804
  else if (!Array.isArray(Ge[Qe])) {
49746
- var Ve = Ge[Qe];
49747
- typeof Ve == "string" && (Ve = Ve.replace(/\"/g, '\\"')), Fe = Ze.querySelector('option[value="' + Ve + '"]');
49805
+ var Ue = Ge[Qe];
49806
+ typeof Ue == "string" && (Ue = Ue.replace(/\"/g, '\\"')), Fe = Ze.querySelector('option[value="' + Ue + '"]');
49748
49807
  }
49749
49808
  Fe == null ? (Ze.value = "", Ze.selectedIndex = -1) : Fe.selected = !0;
49750
49809
  } else if (We == null)
@@ -50168,7 +50227,7 @@ function requireQuill() {
50168
50227
  Object.defineProperty(te, "__esModule", {
50169
50228
  value: !0
50170
50229
  });
50171
- var oe = re(29), ne = $t(oe), de = re(37), ce = re(39), ue = re(65), he = re(66), pe = $t(he), fe = re(67), be = $t(fe), me = re(68), ge = $t(me), ve = re(38), _e = re(26), we = re(40), Ae = re(41), ye = re(57), Se = $t(ye), Pe = re(69), De = $t(Pe), Me = re(27), He = $t(Me), Ie = re(70), Ce = $t(Ie), qe = re(71), Le = $t(qe), ze = re(72), We = $t(ze), Ge = re(73), Ke = $t(Ge), ft = re(74), Qe = $t(ft), Ze = re(13), Fe = $t(Ze), Ve = re(75), Be = $t(Ve), Xe = re(76), Je = $t(Xe), Ue = re(58), Ye = $t(Ue), rt = re(42), ot = $t(rt), _t = re(28), kt = $t(_t), It = re(60), qt = $t(It), Nt = re(61), Ut = $t(Nt), rs = re(62), Yt = $t(rs), gt = re(109), mt = $t(gt), xt = re(63), St = $t(xt);
50230
+ var oe = re(29), ne = $t(oe), de = re(37), ce = re(39), ue = re(65), he = re(66), pe = $t(he), fe = re(67), be = $t(fe), me = re(68), ge = $t(me), ve = re(38), _e = re(26), we = re(40), Ae = re(41), ye = re(57), Se = $t(ye), Pe = re(69), De = $t(Pe), Me = re(27), He = $t(Me), Ie = re(70), Ce = $t(Ie), qe = re(71), Le = $t(qe), ze = re(72), We = $t(ze), Ge = re(73), Ke = $t(Ge), ft = re(74), Qe = $t(ft), Ze = re(13), Fe = $t(Ze), Ue = re(75), Be = $t(Ue), Xe = re(76), Je = $t(Xe), Ve = re(58), Ye = $t(Ve), rt = re(42), ot = $t(rt), _t = re(28), kt = $t(_t), It = re(60), qt = $t(It), Nt = re(61), Vt = $t(Nt), rs = re(62), Yt = $t(rs), gt = re(109), mt = $t(gt), xt = re(63), St = $t(xt);
50172
50231
  function $t(Ft) {
50173
50232
  return Ft && Ft.__esModule ? Ft : { default: Ft };
50174
50233
  }
@@ -50215,7 +50274,7 @@ function requireQuill() {
50215
50274
  "themes/snow": St.default,
50216
50275
  "ui/icons": ot.default,
50217
50276
  "ui/picker": kt.default,
50218
- "ui/icon-picker": Ut.default,
50277
+ "ui/icon-picker": Vt.default,
50219
50278
  "ui/color-picker": qt.default,
50220
50279
  "ui/tooltip": Yt.default
50221
50280
  }, !0), te.default = ne.default;
@@ -51629,6 +51688,42 @@ class PrimariaRegion extends PrimariaRegionHost(h$q) {
51629
51688
  re.connectedCallback && re.connectedCallback.call(this);
51630
51689
  }
51631
51690
  }
51691
+ /**
51692
+ * Mixin hook fired after `createRegions` finishes.
51693
+ *
51694
+ * Hydrates the freshly-created region with every view that has already been
51695
+ * registered for this region name via `regionManager.registerViewWithRegion`.
51696
+ * `registerViewWithRegion` only forwards to regions that exist at the moment
51697
+ * of the call, so a plugin that registers once at `initialize` would lose
51698
+ * its view every time the region is destroyed and re-created (e.g. when a
51699
+ * drawer that hosts the region is closed and reopened). Pulling from the
51700
+ * registry here makes injection transparent: any plugin can register once
51701
+ * and any region with that name auto-populates.
51702
+ */
51703
+ regionsCreated(W) {
51704
+ if (!this.region || !this.name) return;
51705
+ const J = v$n.getRegisteredViews(this.name) ?? [];
51706
+ for (const { key: te, view: re } of J)
51707
+ this.region.containsView(te) || this.region.addView(te, re).catch((oe) => {
51708
+ console.warn(`primaria-region(${this.name}): failed to addView "${te}"`, oe);
51709
+ });
51710
+ }
51711
+ /**
51712
+ * Called when the component is removed from the DOM.
51713
+ *
51714
+ * The base mixin's `disconnectedCallback` removes the region from the manager
51715
+ * but does NOT clear `this.region`, so on a later reconnect the mixin's
51716
+ * `createRegions` sees `isNil(this.region) === false` and skips re-creating
51717
+ * the region. That breaks the "drawer opens, closes, opens again" flow:
51718
+ * the second open would render the host but never receive the plugin's
51719
+ * view. Clear the reference (and drop the orphan container) so the next
51720
+ * connect rebuilds everything from scratch.
51721
+ */
51722
+ disconnectedCallback() {
51723
+ super.disconnectedCallback(), this.region = void 0;
51724
+ const W = `${this.name}-container`;
51725
+ this.querySelector(`#${W}`)?.remove();
51726
+ }
51632
51727
  /**
51633
51728
  * Called before the component updates.
51634
51729
  * Updates the region definition if the name changes.
@@ -52389,7 +52484,7 @@ class i extends HTMLElement {
52389
52484
  const W = document.createElement("div");
52390
52485
  W.style.minHeight = "1px", W.style.width = "100%", W.style.height = this.fullHeight ? "100%" : "auto";
52391
52486
  const J = document.createElement("style");
52392
- J.innerText = this.styles, this.root.appendChild(W), this.root.appendChild(J), this.reactRoot = r$R.createRoot(W), this.renderReact();
52487
+ J.innerText = this.styles, this.root.appendChild(W), this.root.appendChild(J), this.reactRoot = r$S.createRoot(W), this.renderReact();
52393
52488
  }
52394
52489
  disconnectedCallback() {
52395
52490
  this.reactRoot && this.reactRoot.unmount();
@@ -52436,4 +52531,4 @@ export {
52436
52531
  l as y,
52437
52532
  PrimariaInteractionService as z
52438
52533
  };
52439
- //# sourceMappingURL=index-DSWQpDr0.js.map
52534
+ //# sourceMappingURL=index-td5IxyX5.js.map