@uxland/primary-shell 7.42.0 → 7.43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -68,14 +68,14 @@ function require_Reflect() {
68
68
  } : function(it, nt) {
69
69
  return it[nt];
70
70
  }
71
- }, fe = Object.getPrototypeOf(Function), be = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : Kt(), me = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : ks(), ge = typeof WeakMap == "function" ? WeakMap : ts(), ve = oe ? Symbol.for("@reflect-metadata:registry") : void 0, _e = Mt(), ye = Ft(_e);
71
+ }, fe = Object.getPrototypeOf(Function), be = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : Kt(), me = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : ks(), ge = typeof WeakMap == "function" ? WeakMap : ts(), ve = oe ? Symbol.for("@reflect-metadata:registry") : void 0, _e = Pt(), ye = Ft(_e);
72
72
  function Se(it, nt, vt, St) {
73
73
  if (Ve(vt)) {
74
74
  if (!It(it))
75
75
  throw new TypeError();
76
76
  if (!Nt(nt))
77
77
  throw new TypeError();
78
- return Pe(it, nt);
78
+ return Me(it, nt);
79
79
  } else {
80
80
  if (!It(it))
81
81
  throw new TypeError();
@@ -116,12 +116,12 @@ function require_Reflect() {
116
116
  return Ve(vt) || (vt = kt(vt)), Ge(it, nt, vt);
117
117
  }
118
118
  X("hasOwnMetadata", De);
119
- function Me(it, nt, vt) {
119
+ function Pe(it, nt, vt) {
120
120
  if (!Be(nt))
121
121
  throw new TypeError();
122
122
  return Ve(vt) || (vt = kt(vt)), Ke(it, nt, vt);
123
123
  }
124
- X("getMetadata", Me);
124
+ X("getMetadata", Pe);
125
125
  function He(it, nt, vt) {
126
126
  if (!Be(nt))
127
127
  throw new TypeError();
@@ -155,7 +155,7 @@ function require_Reflect() {
155
155
  return Ve(St) ? !1 : St.OrdinaryDeleteMetadata(it, nt, vt);
156
156
  }
157
157
  X("deleteMetadata", ze);
158
- function Pe(it, nt) {
158
+ function Me(it, nt) {
159
159
  for (var vt = it.length - 1; vt >= 0; --vt) {
160
160
  var St = it[vt], qt = St(nt);
161
161
  if (!Ve(qt) && !Qe(qt)) {
@@ -465,7 +465,7 @@ function require_Reflect() {
465
465
  return !0;
466
466
  }
467
467
  }
468
- function Mt() {
468
+ function Pt() {
469
469
  var it;
470
470
  return !Ve(ve) && Be(te.Reflect) && Object.isExtensible(te.Reflect) && (it = te.Reflect[ve]), Ve(it) && (it = Lt()), !Ve(ve) && Be(te.Reflect) && Object.isExtensible(te.Reflect) && Object.defineProperty(te.Reflect, ve, {
471
471
  enumerable: !1,
@@ -3632,7 +3632,19 @@ class PrimariaGlobalStateManagerImpl {
3632
3632
  this.state = {};
3633
3633
  }
3634
3634
  }
3635
- const createGlobalStateManager = (J) => new PrimariaGlobalStateManagerImpl(J);
3635
+ const createGlobalStateManager = (J) => new PrimariaGlobalStateManagerImpl(J), ACTIVITY_EVENTS = ["keydown", "click", "scroll"];
3636
+ class ActivityMonitorImpl {
3637
+ constructor() {
3638
+ this.lastActivityTimestamp = 0, this.activityHandler = () => {
3639
+ this.lastActivityTimestamp = Date.now();
3640
+ }, this.start = () => {
3641
+ for (const W of ACTIVITY_EVENTS) window.addEventListener(W, this.activityHandler);
3642
+ }, this.stop = () => {
3643
+ for (const W of ACTIVITY_EVENTS) window.removeEventListener(W, this.activityHandler);
3644
+ }, this.getLastActivityTimestamp = () => this.lastActivityTimestamp;
3645
+ }
3646
+ }
3647
+ const createActivityMonitor = () => new ActivityMonitorImpl();
3636
3648
  function bind(J, W) {
3637
3649
  return function() {
3638
3650
  return J.apply(W, arguments);
@@ -4861,24 +4873,24 @@ const resolveConfig = (J) => {
4861
4873
  onDownloadProgress: Ce,
4862
4874
  onUploadProgress: qe,
4863
4875
  responseType: De,
4864
- headers: Me,
4876
+ headers: Pe,
4865
4877
  withCredentials: He = "same-origin",
4866
4878
  fetchOptions: Ie
4867
4879
  } = resolveConfig(me), Ae = W || fetch;
4868
4880
  De = De ? (De + "").toLowerCase() : "text";
4869
- let ze = composeSignals([ye, Se && Se.toAbortSignal()], we), Pe = null;
4881
+ let ze = composeSignals([ye, Se && Se.toAbortSignal()], we), Me = null;
4870
4882
  const Ne = ze && ze.unsubscribe && (() => {
4871
4883
  ze.unsubscribe();
4872
4884
  });
4873
4885
  let We;
4874
4886
  try {
4875
- if (qe && ue && ve !== "get" && ve !== "head" && (We = await be(Me, _e)) !== 0) {
4887
+ if (qe && ue && ve !== "get" && ve !== "head" && (We = await be(Pe, _e)) !== 0) {
4876
4888
  let Le = new X(ge, {
4877
4889
  method: "POST",
4878
4890
  body: _e,
4879
4891
  duplex: "half"
4880
4892
  }), Ue;
4881
- if (utils$1.isFormData(_e) && (Ue = Le.headers.get("content-type")) && Me.setContentType(Ue), Le.body) {
4893
+ if (utils$1.isFormData(_e) && (Ue = Le.headers.get("content-type")) && Pe.setContentType(Ue), Le.body) {
4882
4894
  const [Ve, Qe] = progressEventDecorator(
4883
4895
  We,
4884
4896
  progressEventReducer(asyncDecorator(qe))
@@ -4891,13 +4903,13 @@ const resolveConfig = (J) => {
4891
4903
  ...Ie,
4892
4904
  signal: ze,
4893
4905
  method: ve.toUpperCase(),
4894
- headers: Me.normalize().toJSON(),
4906
+ headers: Pe.normalize().toJSON(),
4895
4907
  body: _e,
4896
4908
  duplex: "half",
4897
4909
  credentials: Ge ? He : void 0
4898
4910
  };
4899
- Pe = oe && new X(ge, Ke);
4900
- let ft = await (oe ? Ae(Pe, Ie) : Ae(ge, Ke));
4911
+ Me = oe && new X(ge, Ke);
4912
+ let ft = await (oe ? Ae(Me, Ie) : Ae(ge, Ke));
4901
4913
  const Je = he && (De === "stream" || De === "response");
4902
4914
  if (he && (Ce || Je && Ne)) {
4903
4915
  const Le = {};
@@ -4924,16 +4936,16 @@ const resolveConfig = (J) => {
4924
4936
  status: ft.status,
4925
4937
  statusText: ft.statusText,
4926
4938
  config: me,
4927
- request: Pe
4939
+ request: Me
4928
4940
  });
4929
4941
  });
4930
4942
  } catch (Ge) {
4931
4943
  throw Ne && Ne(), Ge && Ge.name === "TypeError" && /Load failed|fetch/i.test(Ge.message) ? Object.assign(
4932
- new AxiosError$1("Network Error", AxiosError$1.ERR_NETWORK, me, Pe),
4944
+ new AxiosError$1("Network Error", AxiosError$1.ERR_NETWORK, me, Me),
4933
4945
  {
4934
4946
  cause: Ge.cause || Ge
4935
4947
  }
4936
- ) : AxiosError$1.from(Ge, Ge && Ge.code, me, Pe);
4948
+ ) : AxiosError$1.from(Ge, Ge && Ge.code, me, Me);
4937
4949
  }
4938
4950
  };
4939
4951
  }, seedCache = /* @__PURE__ */ new Map(), getFetch = (J) => {
@@ -5480,7 +5492,38 @@ const validateMpidHeader = (J, W) => {
5480
5492
  ), te;
5481
5493
  };
5482
5494
  let instance;
5483
- const createHttpClient = (J, W) => (instance || (instance = createAxiosInstance(J, W)), { request: instance.request });
5495
+ const createHttpClient = (J, W) => (instance || (instance = createAxiosInstance(J, W)), { request: instance.request }), CHECK_INTERVAL_MS = 3e4, REFRESH_THRESHOLD_S = 120, ACTIVITY_WINDOW_MS = 900 * 1e3;
5496
+ class SessionRefreshTimerImpl {
5497
+ constructor(W, X, te) {
5498
+ this.tokenManager = W, this.activityMonitor = X, this.broker = te, this.intervalId = null, this.isRefreshing = !1, this.start = () => {
5499
+ this.intervalId = setInterval(this.checkAndRefresh, CHECK_INTERVAL_MS);
5500
+ }, this.stop = () => {
5501
+ this.intervalId !== null && (clearInterval(this.intervalId), this.intervalId = null);
5502
+ }, this.getTokenExpiry = () => {
5503
+ try {
5504
+ const { exp: re } = jwtDecode(this.tokenManager.getToken());
5505
+ return re ?? 0;
5506
+ } catch {
5507
+ return 0;
5508
+ }
5509
+ }, this.checkAndRefresh = async () => {
5510
+ const re = Date.now();
5511
+ if (re - this.activityMonitor.getLastActivityTimestamp() > ACTIVITY_WINDOW_MS || this.isRefreshing) return;
5512
+ const oe = this.getTokenExpiry();
5513
+ if (oe !== 0 && oe - re / 1e3 <= REFRESH_THRESHOLD_S) {
5514
+ this.isRefreshing = !0;
5515
+ try {
5516
+ await this.tokenManager.refreshToken();
5517
+ } catch {
5518
+ this.broker.publish(BROKER_EVENTS.shell.refreshTokenFailed, {});
5519
+ } finally {
5520
+ this.isRefreshing = !1;
5521
+ }
5522
+ }
5523
+ };
5524
+ }
5525
+ }
5526
+ const createSessionRefreshTimer = (J, W, X) => new SessionRefreshTimerImpl(J, W, X);
5484
5527
  var jsxRuntime = { exports: {} }, reactJsxRuntime_production = {};
5485
5528
  /**
5486
5529
  * @license React
@@ -5652,14 +5695,14 @@ class ParimariaInteractionServiceImpl extends PrimariaInteractionService {
5652
5695
  useEffect(() => {
5653
5696
  if (we && _e.current) {
5654
5697
  const We = _e.current, Ge = new ce();
5655
- return Ge.data = W, Ge.setResult = me, Ge.setIsValid = ve, Ge.confirm = () => ge && De(!0), Ge.confirmResult = (Ke) => ge && Me(Ke), Ge.cancel = () => De(!1), We.appendChild(Ge), () => {
5698
+ return Ge.data = W, Ge.setResult = me, Ge.setIsValid = ve, Ge.confirm = () => ge && De(!0), Ge.confirmResult = (Ke) => ge && Pe(Ke), Ge.cancel = () => De(!1), We.appendChild(Ge), () => {
5656
5699
  We.removeChild(Ge);
5657
5700
  };
5658
5701
  }
5659
5702
  }, [ce, W]);
5660
5703
  const De = (We) => {
5661
5704
  He(be, We);
5662
- }, Me = (We) => {
5705
+ }, Pe = (We) => {
5663
5706
  He(We, !0);
5664
5707
  }, He = (We, Ge) => {
5665
5708
  setTimeout(() => {
@@ -5668,14 +5711,14 @@ class ParimariaInteractionServiceImpl extends PrimariaInteractionService {
5668
5711
  confirmed: Ge
5669
5712
  }), document.body.removeChild(ne), document.head.removeChild(de), ue && document.head.removeChild(he), window.removeEventListener("keydown", Ce);
5670
5713
  }, 300);
5671
- }, Ie = () => re.state === "error" ? "error" : re.state === "success" ? "success" : re.state === "info" ? "primary" : re.state === "alert" ? "warning" : "primary", Ae = () => "secondary", ze = () => re.state === "alert" ? "warning" : re.state === "error" ? "danger" : "", Pe = () => re.state === "alert" ? "error" : re.state === "error" ? "warning" : "", Ne = () => we ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: _e }) : /* @__PURE__ */ jsxRuntimeExports.jsx(
5714
+ }, Ie = () => re.state === "error" ? "error" : re.state === "success" ? "success" : re.state === "info" ? "primary" : re.state === "alert" ? "warning" : "primary", Ae = () => "secondary", ze = () => re.state === "alert" ? "warning" : re.state === "error" ? "danger" : "", Me = () => re.state === "alert" ? "error" : re.state === "error" ? "warning" : "", Ne = () => we ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: _e }) : /* @__PURE__ */ jsxRuntimeExports.jsx(
5672
5715
  ce,
5673
5716
  {
5674
5717
  data: W,
5675
5718
  setResult: me,
5676
5719
  setIsValid: ve,
5677
5720
  confirm: () => ge && De(!0),
5678
- confirmResult: (We) => ge && Me(We),
5721
+ confirmResult: (We) => ge && Pe(We),
5679
5722
  cancel: () => De(!1)
5680
5723
  }
5681
5724
  );
@@ -5688,7 +5731,7 @@ class ParimariaInteractionServiceImpl extends PrimariaInteractionService {
5688
5731
  size: "xl",
5689
5732
  fill: !0,
5690
5733
  class: `dss-dialog-header-state--${ze()}`,
5691
- icon: Pe()
5734
+ icon: Me()
5692
5735
  }
5693
5736
  ),
5694
5737
  re.title
@@ -6020,11 +6063,11 @@ function peg$parse(J, W) {
6020
6063
  return __assign$4({ type: TYPE.argument, value: Oe }, _s());
6021
6064
  }, ve = bs("numberSkeletonId"), _e = /^['\/{}]/, ye = ws(["'", "/", "{", "}"], !1, !1), Se = Ni(), we = bs("numberSkeletonTokenOption"), Ce = "/", qe = us("/", !1), De = function(Oe) {
6022
6065
  return Oe;
6023
- }, Me = bs("numberSkeletonToken"), He = function(Oe, je) {
6066
+ }, Pe = bs("numberSkeletonToken"), He = function(Oe, je) {
6024
6067
  return { stem: Oe, options: je };
6025
6068
  }, Ie = function(Oe) {
6026
6069
  return __assign$4({ type: 0, tokens: Oe }, _s());
6027
- }, Ae = "::", ze = us("::", !1), Pe = function(Oe) {
6070
+ }, Ae = "::", ze = us("::", !1), Me = function(Oe) {
6028
6071
  return Oe;
6029
6072
  }, Ne = function() {
6030
6073
  return vs.push("numberArgStyle"), !0;
@@ -6037,18 +6080,18 @@ function peg$parse(J, W) {
6037
6080
  }, _t = function() {
6038
6081
  return vs.push("dateOrTimeArgStyle"), !0;
6039
6082
  }, kt = "date", It = us("date", !1), zt = "time", Nt = us("time", !1), Bt = "plural", rs = us("plural", !1), Yt = "selectordinal", gt = us("selectordinal", !1), mt = "offset:", xt = us("offset:", !1), Ct = function(Oe, je, tt, bt) {
6040
- return __assign$4({ type: TYPE.plural, pluralType: je === "plural" ? "cardinal" : "ordinal", value: Oe, offset: tt ? tt[2] : 0, options: bt.reduce(function($t, Pt) {
6041
- var es = Pt.id, Ut = Pt.value, fs = Pt.location;
6083
+ return __assign$4({ type: TYPE.plural, pluralType: je === "plural" ? "cardinal" : "ordinal", value: Oe, offset: tt ? tt[2] : 0, options: bt.reduce(function($t, Mt) {
6084
+ var es = Mt.id, Ut = Mt.value, fs = Mt.location;
6042
6085
  return es in $t && ai('Duplicate option "' + es + '" in plural element: "' + ni() + '"', Is()), $t[es] = {
6043
6086
  value: Ut,
6044
6087
  location: fs
6045
6088
  }, $t;
6046
6089
  }, {}) }, _s());
6047
- }, wt = "select", Lt = us("select", !1), Mt = function(Oe, je) {
6090
+ }, wt = "select", Lt = us("select", !1), Pt = function(Oe, je) {
6048
6091
  return __assign$4({ type: TYPE.select, value: Oe, options: je.reduce(function(tt, bt) {
6049
- var $t = bt.id, Pt = bt.value, es = bt.location;
6092
+ var $t = bt.id, Mt = bt.value, es = bt.location;
6050
6093
  return $t in tt && ai('Duplicate option "' + $t + '" in select element: "' + ni() + '"', Is()), tt[$t] = {
6051
- value: Pt,
6094
+ value: Mt,
6052
6095
  location: es
6053
6096
  }, tt;
6054
6097
  }, {}) }, _s());
@@ -6080,7 +6123,7 @@ function peg$parse(J, W) {
6080
6123
  return Oe === "{" || Oe === "}" || xi() && Oe === "#";
6081
6124
  }, Di = bs("argNameOrNumber"), zi = bs("argNumber"), Ri = "0", Ii = us("0", !1), qi = function() {
6082
6125
  return 0;
6083
- }, Pi = /^[1-9]/, Mi = ws([["1", "9"]], !1, !1), ri = /^[0-9]/, oi = ws([["0", "9"]], !1, !1), Li = function(Oe) {
6126
+ }, Mi = /^[1-9]/, Pi = ws([["1", "9"]], !1, !1), ri = /^[0-9]/, oi = ws([["0", "9"]], !1, !1), Li = function(Oe) {
6084
6127
  return parseInt(Oe.join(""), 10);
6085
6128
  }, Fi = bs("argName"), Fe = 0, Gt = 0, As = [{ line: 1, column: 1 }], ms = 0, Rs = [], yt = 0, Ts;
6086
6129
  if (W.startRule !== void 0) {
@@ -6163,7 +6206,7 @@ function peg$parse(J, W) {
6163
6206
  var Oe;
6164
6207
  return Oe = Ui(), Oe === X && (Oe = Wi(), Oe === X && (Oe = Xi(), Oe === X && (Oe = sr(), Oe === X && (Oe = ir(), Oe === X && (Oe = ji()))))), Oe;
6165
6208
  }
6166
- function Ps() {
6209
+ function Ms() {
6167
6210
  var Oe, je, tt;
6168
6211
  if (Oe = Fe, je = [], tt = xs(), tt === X && (tt = yi(), tt === X && (tt = wi())), tt !== X)
6169
6212
  for (; tt !== X; )
@@ -6174,15 +6217,15 @@ function peg$parse(J, W) {
6174
6217
  }
6175
6218
  function Ui() {
6176
6219
  var Oe, je;
6177
- return Oe = Fe, je = Ps(), je !== X && (Gt = Oe, je = ne(je)), Oe = je, Oe;
6220
+ return Oe = Fe, je = Ms(), je !== X && (Gt = Oe, je = ne(je)), Oe = je, Oe;
6178
6221
  }
6179
6222
  function ji() {
6180
6223
  var Oe, je;
6181
6224
  return Oe = Fe, J.charCodeAt(Fe) === 35 ? (je = de, Fe++) : (je = X, yt === 0 && Et(ce)), je !== X && (Gt = Oe, je = ue()), Oe = je, Oe;
6182
6225
  }
6183
6226
  function Wi() {
6184
- var Oe, je, tt, bt, $t, Pt;
6185
- return yt++, Oe = Fe, J.charCodeAt(Fe) === 123 ? (je = pe, Fe++) : (je = X, yt === 0 && Et(fe)), je !== X ? (tt = jt(), tt !== X ? (bt = Ss(), bt !== X ? ($t = jt(), $t !== X ? (J.charCodeAt(Fe) === 125 ? (Pt = be, Fe++) : (Pt = X, yt === 0 && Et(me)), Pt !== X ? (Gt = Oe, je = ge(bt), Oe = je) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X), yt--, Oe === X && (je = X, yt === 0 && Et(he)), Oe;
6227
+ var Oe, je, tt, bt, $t, Mt;
6228
+ return yt++, Oe = Fe, J.charCodeAt(Fe) === 123 ? (je = pe, Fe++) : (je = X, yt === 0 && Et(fe)), je !== X ? (tt = jt(), tt !== X ? (bt = Ss(), bt !== X ? ($t = jt(), $t !== X ? (J.charCodeAt(Fe) === 125 ? (Mt = be, Fe++) : (Mt = X, yt === 0 && Et(me)), Mt !== X ? (Gt = Oe, je = ge(bt), Oe = je) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X), yt--, Oe === X && (je = X, yt === 0 && Et(he)), Oe;
6186
6229
  }
6187
6230
  function ui() {
6188
6231
  var Oe, je, tt, bt, $t;
@@ -6208,7 +6251,7 @@ function peg$parse(J, W) {
6208
6251
  Fe = Oe, Oe = X;
6209
6252
  else
6210
6253
  Fe = Oe, Oe = X;
6211
- return yt--, Oe === X && (je = X, yt === 0 && Et(Me)), Oe;
6254
+ return yt--, Oe === X && (je = X, yt === 0 && Et(Pe)), Oe;
6212
6255
  }
6213
6256
  function Gi() {
6214
6257
  var Oe, je, tt;
@@ -6221,11 +6264,11 @@ function peg$parse(J, W) {
6221
6264
  }
6222
6265
  function Zi() {
6223
6266
  var Oe, je, tt;
6224
- return Oe = Fe, J.substr(Fe, 2) === Ae ? (je = Ae, Fe += 2) : (je = X, yt === 0 && Et(ze)), je !== X ? (tt = Gi(), tt !== X ? (Gt = Oe, je = Pe(tt), Oe = je) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X), Oe === X && (Oe = Fe, Gt = Fe, je = Ne(), je ? je = void 0 : je = X, je !== X ? (tt = Ps(), tt !== X ? (Gt = Oe, je = We(tt), Oe = je) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)), Oe;
6267
+ return Oe = Fe, J.substr(Fe, 2) === Ae ? (je = Ae, Fe += 2) : (je = X, yt === 0 && Et(ze)), je !== X ? (tt = Gi(), tt !== X ? (Gt = Oe, je = Me(tt), Oe = je) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X), Oe === X && (Oe = Fe, Gt = Fe, je = Ne(), je ? je = void 0 : je = X, je !== X ? (tt = Ms(), tt !== X ? (Gt = Oe, je = We(tt), Oe = je) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)), Oe;
6225
6268
  }
6226
6269
  function Ki() {
6227
- var Oe, je, tt, bt, $t, Pt, es, Ut, fs, Wt, as, Zt, ss;
6228
- return Oe = Fe, J.charCodeAt(Fe) === 123 ? (je = pe, Fe++) : (je = X, yt === 0 && Et(fe)), je !== X ? (tt = jt(), tt !== X ? (bt = Ss(), bt !== X ? ($t = jt(), $t !== X ? (J.charCodeAt(Fe) === 44 ? (Pt = Ge, Fe++) : (Pt = X, yt === 0 && Et(Ke)), Pt !== X ? (es = jt(), es !== X ? (J.substr(Fe, 6) === ft ? (Ut = ft, Fe += 6) : (Ut = X, yt === 0 && Et(Je)), Ut !== X ? (fs = jt(), fs !== X ? (Wt = Fe, J.charCodeAt(Fe) === 44 ? (as = Ge, Fe++) : (as = X, yt === 0 && Et(Ke)), as !== X ? (Zt = jt(), Zt !== X ? (ss = Zi(), ss !== X ? (as = [as, Zt, ss], Wt = as) : (Fe = Wt, Wt = X)) : (Fe = Wt, Wt = X)) : (Fe = Wt, Wt = X), Wt === X && (Wt = null), Wt !== X ? (as = jt(), as !== X ? (J.charCodeAt(Fe) === 125 ? (Zt = be, Fe++) : (Zt = X, yt === 0 && Et(me)), Zt !== X ? (Gt = Oe, je = Ze(bt, Ut, Wt), Oe = je) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X), Oe;
6270
+ var Oe, je, tt, bt, $t, Mt, es, Ut, fs, Wt, as, Zt, ss;
6271
+ return Oe = Fe, J.charCodeAt(Fe) === 123 ? (je = pe, Fe++) : (je = X, yt === 0 && Et(fe)), je !== X ? (tt = jt(), tt !== X ? (bt = Ss(), bt !== X ? ($t = jt(), $t !== X ? (J.charCodeAt(Fe) === 44 ? (Mt = Ge, Fe++) : (Mt = X, yt === 0 && Et(Ke)), Mt !== X ? (es = jt(), es !== X ? (J.substr(Fe, 6) === ft ? (Ut = ft, Fe += 6) : (Ut = X, yt === 0 && Et(Je)), Ut !== X ? (fs = jt(), fs !== X ? (Wt = Fe, J.charCodeAt(Fe) === 44 ? (as = Ge, Fe++) : (as = X, yt === 0 && Et(Ke)), as !== X ? (Zt = jt(), Zt !== X ? (ss = Zi(), ss !== X ? (as = [as, Zt, ss], Wt = as) : (Fe = Wt, Wt = X)) : (Fe = Wt, Wt = X)) : (Fe = Wt, Wt = X), Wt === X && (Wt = null), Wt !== X ? (as = jt(), as !== X ? (J.charCodeAt(Fe) === 125 ? (Zt = be, Fe++) : (Zt = X, yt === 0 && Et(me)), Zt !== X ? (Gt = Oe, je = Ze(bt, Ut, Wt), Oe = je) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X), Oe;
6229
6272
  }
6230
6273
  function fi() {
6231
6274
  var Oe, je, tt, bt;
@@ -6266,23 +6309,23 @@ function peg$parse(J, W) {
6266
6309
  }
6267
6310
  function Ji() {
6268
6311
  var Oe, je, tt;
6269
- return Oe = Fe, J.substr(Fe, 2) === Ae ? (je = Ae, Fe += 2) : (je = X, yt === 0 && Et(ze)), je !== X ? (tt = Yi(), tt !== X ? (Gt = Oe, je = Pe(tt), Oe = je) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X), Oe === X && (Oe = Fe, Gt = Fe, je = _t(), je ? je = void 0 : je = X, je !== X ? (tt = Ps(), tt !== X ? (Gt = Oe, je = We(tt), Oe = je) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)), Oe;
6312
+ return Oe = Fe, J.substr(Fe, 2) === Ae ? (je = Ae, Fe += 2) : (je = X, yt === 0 && Et(ze)), je !== X ? (tt = Yi(), tt !== X ? (Gt = Oe, je = Me(tt), Oe = je) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X), Oe === X && (Oe = Fe, Gt = Fe, je = _t(), je ? je = void 0 : je = X, je !== X ? (tt = Ms(), tt !== X ? (Gt = Oe, je = We(tt), Oe = je) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)), Oe;
6270
6313
  }
6271
6314
  function Qi() {
6272
- var Oe, je, tt, bt, $t, Pt, es, Ut, fs, Wt, as, Zt, ss;
6273
- return Oe = Fe, J.charCodeAt(Fe) === 123 ? (je = pe, Fe++) : (je = X, yt === 0 && Et(fe)), je !== X ? (tt = jt(), tt !== X ? (bt = Ss(), bt !== X ? ($t = jt(), $t !== X ? (J.charCodeAt(Fe) === 44 ? (Pt = Ge, Fe++) : (Pt = X, yt === 0 && Et(Ke)), Pt !== X ? (es = jt(), es !== X ? (J.substr(Fe, 4) === kt ? (Ut = kt, Fe += 4) : (Ut = X, yt === 0 && Et(It)), Ut === X && (J.substr(Fe, 4) === zt ? (Ut = zt, Fe += 4) : (Ut = X, yt === 0 && Et(Nt))), Ut !== X ? (fs = jt(), fs !== X ? (Wt = Fe, J.charCodeAt(Fe) === 44 ? (as = Ge, Fe++) : (as = X, yt === 0 && Et(Ke)), as !== X ? (Zt = jt(), Zt !== X ? (ss = Ji(), ss !== X ? (as = [as, Zt, ss], Wt = as) : (Fe = Wt, Wt = X)) : (Fe = Wt, Wt = X)) : (Fe = Wt, Wt = X), Wt === X && (Wt = null), Wt !== X ? (as = jt(), as !== X ? (J.charCodeAt(Fe) === 125 ? (Zt = be, Fe++) : (Zt = X, yt === 0 && Et(me)), Zt !== X ? (Gt = Oe, je = Ze(bt, Ut, Wt), Oe = je) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X), Oe;
6315
+ var Oe, je, tt, bt, $t, Mt, es, Ut, fs, Wt, as, Zt, ss;
6316
+ return Oe = Fe, J.charCodeAt(Fe) === 123 ? (je = pe, Fe++) : (je = X, yt === 0 && Et(fe)), je !== X ? (tt = jt(), tt !== X ? (bt = Ss(), bt !== X ? ($t = jt(), $t !== X ? (J.charCodeAt(Fe) === 44 ? (Mt = Ge, Fe++) : (Mt = X, yt === 0 && Et(Ke)), Mt !== X ? (es = jt(), es !== X ? (J.substr(Fe, 4) === kt ? (Ut = kt, Fe += 4) : (Ut = X, yt === 0 && Et(It)), Ut === X && (J.substr(Fe, 4) === zt ? (Ut = zt, Fe += 4) : (Ut = X, yt === 0 && Et(Nt))), Ut !== X ? (fs = jt(), fs !== X ? (Wt = Fe, J.charCodeAt(Fe) === 44 ? (as = Ge, Fe++) : (as = X, yt === 0 && Et(Ke)), as !== X ? (Zt = jt(), Zt !== X ? (ss = Ji(), ss !== X ? (as = [as, Zt, ss], Wt = as) : (Fe = Wt, Wt = X)) : (Fe = Wt, Wt = X)) : (Fe = Wt, Wt = X), Wt === X && (Wt = null), Wt !== X ? (as = jt(), as !== X ? (J.charCodeAt(Fe) === 125 ? (Zt = be, Fe++) : (Zt = X, yt === 0 && Et(me)), Zt !== X ? (Gt = Oe, je = Ze(bt, Ut, Wt), Oe = je) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X), Oe;
6274
6317
  }
6275
6318
  function Xi() {
6276
6319
  var Oe;
6277
6320
  return Oe = Ki(), Oe === X && (Oe = Qi()), Oe;
6278
6321
  }
6279
6322
  function sr() {
6280
- var Oe, je, tt, bt, $t, Pt, es, Ut, fs, Wt, as, Zt, ss, gs, ys, Ls;
6323
+ var Oe, je, tt, bt, $t, Mt, es, Ut, fs, Wt, as, Zt, ss, gs, ys, Ls;
6281
6324
  if (Oe = Fe, J.charCodeAt(Fe) === 123 ? (je = pe, Fe++) : (je = X, yt === 0 && Et(fe)), je !== X)
6282
6325
  if (tt = jt(), tt !== X)
6283
6326
  if (bt = Ss(), bt !== X)
6284
6327
  if ($t = jt(), $t !== X)
6285
- if (J.charCodeAt(Fe) === 44 ? (Pt = Ge, Fe++) : (Pt = X, yt === 0 && Et(Ke)), Pt !== X)
6328
+ if (J.charCodeAt(Fe) === 44 ? (Mt = Ge, Fe++) : (Mt = X, yt === 0 && Et(Ke)), Mt !== X)
6286
6329
  if (es = jt(), es !== X)
6287
6330
  if (J.substr(Fe, 6) === Bt ? (Ut = Bt, Fe += 6) : (Ut = X, yt === 0 && Et(rs)), Ut === X && (J.substr(Fe, 13) === Yt ? (Ut = Yt, Fe += 13) : (Ut = X, yt === 0 && Et(gt))), Ut !== X)
6288
6331
  if (fs = jt(), fs !== X)
@@ -6323,12 +6366,12 @@ function peg$parse(J, W) {
6323
6366
  return Oe;
6324
6367
  }
6325
6368
  function ir() {
6326
- var Oe, je, tt, bt, $t, Pt, es, Ut, fs, Wt, as, Zt, ss, gs;
6369
+ var Oe, je, tt, bt, $t, Mt, es, Ut, fs, Wt, as, Zt, ss, gs;
6327
6370
  if (Oe = Fe, J.charCodeAt(Fe) === 123 ? (je = pe, Fe++) : (je = X, yt === 0 && Et(fe)), je !== X)
6328
6371
  if (tt = jt(), tt !== X)
6329
6372
  if (bt = Ss(), bt !== X)
6330
6373
  if ($t = jt(), $t !== X)
6331
- if (J.charCodeAt(Fe) === 44 ? (Pt = Ge, Fe++) : (Pt = X, yt === 0 && Et(Ke)), Pt !== X)
6374
+ if (J.charCodeAt(Fe) === 44 ? (Mt = Ge, Fe++) : (Mt = X, yt === 0 && Et(Ke)), Mt !== X)
6332
6375
  if (es = jt(), es !== X)
6333
6376
  if (J.substr(Fe, 6) === wt ? (Ut = wt, Fe += 6) : (Ut = X, yt === 0 && Et(Lt)), Ut !== X)
6334
6377
  if (fs = jt(), fs !== X)
@@ -6339,7 +6382,7 @@ function peg$parse(J, W) {
6339
6382
  Zt.push(ss), ss = gi();
6340
6383
  else
6341
6384
  Zt = X;
6342
- Zt !== X ? (ss = jt(), ss !== X ? (J.charCodeAt(Fe) === 125 ? (gs = be, Fe++) : (gs = X, yt === 0 && Et(me)), gs !== X ? (Gt = Oe, je = Mt(bt, Zt), Oe = je) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X);
6385
+ Zt !== X ? (ss = jt(), ss !== X ? (J.charCodeAt(Fe) === 125 ? (gs = be, Fe++) : (gs = X, yt === 0 && Et(me)), gs !== X ? (Gt = Oe, je = Pt(bt, Zt), Oe = je) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X);
6343
6386
  } else
6344
6387
  Fe = Oe, Oe = X;
6345
6388
  else
@@ -6364,15 +6407,15 @@ function peg$parse(J, W) {
6364
6407
  }
6365
6408
  function rr() {
6366
6409
  var Oe, je, tt, bt;
6367
- return Oe = Fe, je = Fe, J.charCodeAt(Fe) === 61 ? (tt = Ft, Fe++) : (tt = X, yt === 0 && Et(cs)), tt !== X ? (bt = _i(), bt !== X ? (tt = [tt, bt], je = tt) : (Fe = je, je = X)) : (Fe = je, je = X), je !== X ? Oe = J.substring(Oe, Fe) : Oe = je, Oe === X && (Oe = Ms()), Oe;
6410
+ return Oe = Fe, je = Fe, J.charCodeAt(Fe) === 61 ? (tt = Ft, Fe++) : (tt = X, yt === 0 && Et(cs)), tt !== X ? (bt = _i(), bt !== X ? (tt = [tt, bt], je = tt) : (Fe = je, je = X)) : (Fe = je, je = X), je !== X ? Oe = J.substring(Oe, Fe) : Oe = je, Oe === X && (Oe = Ps()), Oe;
6368
6411
  }
6369
6412
  function gi() {
6370
- var Oe, je, tt, bt, $t, Pt, es, Ut;
6371
- return Oe = Fe, je = jt(), je !== X ? (tt = Ms(), tt !== X ? (bt = jt(), bt !== X ? (J.charCodeAt(Fe) === 123 ? ($t = pe, Fe++) : ($t = X, yt === 0 && Et(fe)), $t !== X ? (Gt = Fe, Pt = ds(), Pt ? Pt = void 0 : Pt = X, Pt !== X ? (es = qs(), es !== X ? (J.charCodeAt(Fe) === 125 ? (Ut = be, Fe++) : (Ut = X, yt === 0 && Et(me)), Ut !== X ? (Gt = Oe, je = Kt(tt, es), Oe = je) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X), Oe;
6413
+ var Oe, je, tt, bt, $t, Mt, es, Ut;
6414
+ return Oe = Fe, je = jt(), je !== X ? (tt = Ps(), tt !== X ? (bt = jt(), bt !== X ? (J.charCodeAt(Fe) === 123 ? ($t = pe, Fe++) : ($t = X, yt === 0 && Et(fe)), $t !== X ? (Gt = Fe, Mt = ds(), Mt ? Mt = void 0 : Mt = X, Mt !== X ? (es = qs(), es !== X ? (J.charCodeAt(Fe) === 125 ? (Ut = be, Fe++) : (Ut = X, yt === 0 && Et(me)), Ut !== X ? (Gt = Oe, je = Kt(tt, es), Oe = je) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X), Oe;
6372
6415
  }
6373
6416
  function mi() {
6374
- var Oe, je, tt, bt, $t, Pt, es, Ut;
6375
- return Oe = Fe, je = jt(), je !== X ? (tt = rr(), tt !== X ? (bt = jt(), bt !== X ? (J.charCodeAt(Fe) === 123 ? ($t = pe, Fe++) : ($t = X, yt === 0 && Et(fe)), $t !== X ? (Gt = Fe, Pt = ks(), Pt ? Pt = void 0 : Pt = X, Pt !== X ? (es = qs(), es !== X ? (J.charCodeAt(Fe) === 125 ? (Ut = be, Fe++) : (Ut = X, yt === 0 && Et(me)), Ut !== X ? (Gt = Oe, je = ts(tt, es), Oe = je) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X), Oe;
6417
+ var Oe, je, tt, bt, $t, Mt, es, Ut;
6418
+ return Oe = Fe, je = jt(), je !== X ? (tt = rr(), tt !== X ? (bt = jt(), bt !== X ? (J.charCodeAt(Fe) === 123 ? ($t = pe, Fe++) : ($t = X, yt === 0 && Et(fe)), $t !== X ? (Gt = Fe, Mt = ks(), Mt ? Mt = void 0 : Mt = X, Mt !== X ? (es = qs(), es !== X ? (J.charCodeAt(Fe) === 125 ? (Ut = be, Fe++) : (Ut = X, yt === 0 && Et(me)), Ut !== X ? (Gt = Oe, je = ts(tt, es), Oe = je) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X), Oe;
6376
6419
  }
6377
6420
  function $s() {
6378
6421
  var Oe;
@@ -6397,11 +6440,11 @@ function peg$parse(J, W) {
6397
6440
  return yt++, Oe = Fe, J.substr(Fe, 2) === Ot ? (je = Ot, Fe += 2) : (je = X, yt === 0 && Et(Ht)), je !== X && (Gt = Oe, je = Xt()), Oe = je, yt--, Oe === X && (je = X, yt === 0 && Et(Dt)), Oe;
6398
6441
  }
6399
6442
  function yi() {
6400
- var Oe, je, tt, bt, $t, Pt;
6443
+ var Oe, je, tt, bt, $t, Mt;
6401
6444
  if (Oe = Fe, J.charCodeAt(Fe) === 39 ? (je = Le, Fe++) : (je = X, yt === 0 && Et(Ue)), je !== X)
6402
6445
  if (tt = or(), tt !== X) {
6403
- for (bt = Fe, $t = [], J.substr(Fe, 2) === Ot ? (Pt = Ot, Fe += 2) : (Pt = X, yt === 0 && Et(Ht)), Pt === X && (Ve.test(J.charAt(Fe)) ? (Pt = J.charAt(Fe), Fe++) : (Pt = X, yt === 0 && Et(Qe))); Pt !== X; )
6404
- $t.push(Pt), J.substr(Fe, 2) === Ot ? (Pt = Ot, Fe += 2) : (Pt = X, yt === 0 && Et(Ht)), Pt === X && (Ve.test(J.charAt(Fe)) ? (Pt = J.charAt(Fe), Fe++) : (Pt = X, yt === 0 && Et(Qe)));
6446
+ for (bt = Fe, $t = [], J.substr(Fe, 2) === Ot ? (Mt = Ot, Fe += 2) : (Mt = X, yt === 0 && Et(Ht)), Mt === X && (Ve.test(J.charAt(Fe)) ? (Mt = J.charAt(Fe), Fe++) : (Mt = X, yt === 0 && Et(Qe))); Mt !== X; )
6447
+ $t.push(Mt), J.substr(Fe, 2) === Ot ? (Mt = Ot, Fe += 2) : (Mt = X, yt === 0 && Et(Ht)), Mt === X && (Ve.test(J.charAt(Fe)) ? (Mt = J.charAt(Fe), Fe++) : (Mt = X, yt === 0 && Et(Qe)));
6405
6448
  $t !== X ? bt = J.substring(bt, Fe) : bt = $t, bt !== X ? (J.charCodeAt(Fe) === 39 ? ($t = Le, Fe++) : ($t = X, yt === 0 && Et(Ue)), $t === X && ($t = null), $t !== X ? (Gt = Oe, je = ns(tt, bt), Oe = je) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X);
6406
6449
  } else
6407
6450
  Fe = Oe, Oe = X;
@@ -6419,12 +6462,12 @@ function peg$parse(J, W) {
6419
6462
  }
6420
6463
  function Ss() {
6421
6464
  var Oe, je;
6422
- return yt++, Oe = Fe, je = $i(), je === X && (je = Ms()), je !== X ? Oe = J.substring(Oe, Fe) : Oe = je, yt--, Oe === X && (je = X, yt === 0 && Et(Di)), Oe;
6465
+ return yt++, Oe = Fe, je = $i(), je === X && (je = Ps()), je !== X ? Oe = J.substring(Oe, Fe) : Oe = je, yt--, Oe === X && (je = X, yt === 0 && Et(Di)), Oe;
6423
6466
  }
6424
6467
  function $i() {
6425
6468
  var Oe, je, tt, bt, $t;
6426
6469
  if (yt++, Oe = Fe, J.charCodeAt(Fe) === 48 ? (je = Ri, Fe++) : (je = X, yt === 0 && Et(Ii)), je !== X && (Gt = Oe, je = qi()), Oe = je, Oe === X) {
6427
- if (Oe = Fe, je = Fe, Pi.test(J.charAt(Fe)) ? (tt = J.charAt(Fe), Fe++) : (tt = X, yt === 0 && Et(Mi)), tt !== X) {
6470
+ if (Oe = Fe, je = Fe, Mi.test(J.charAt(Fe)) ? (tt = J.charAt(Fe), Fe++) : (tt = X, yt === 0 && Et(Pi)), tt !== X) {
6428
6471
  for (bt = [], ri.test(J.charAt(Fe)) ? ($t = J.charAt(Fe), Fe++) : ($t = X, yt === 0 && Et(oi)); $t !== X; )
6429
6472
  bt.push($t), ri.test(J.charAt(Fe)) ? ($t = J.charAt(Fe), Fe++) : ($t = X, yt === 0 && Et(oi));
6430
6473
  bt !== X ? (tt = [tt, bt], je = tt) : (Fe = je, je = X);
@@ -6434,7 +6477,7 @@ function peg$parse(J, W) {
6434
6477
  }
6435
6478
  return yt--, Oe === X && (je = X, yt === 0 && Et(zi)), Oe;
6436
6479
  }
6437
- function Ms() {
6480
+ function Ps() {
6438
6481
  var Oe, je, tt, bt, $t;
6439
6482
  if (yt++, Oe = Fe, je = [], tt = Fe, bt = Fe, yt++, $t = $s(), $t === X && ($t = vi()), yt--, $t === X ? bt = void 0 : (Fe = bt, bt = X), bt !== X ? (J.length > Fe ? ($t = J.charAt(Fe), Fe++) : ($t = X, yt === 0 && Et(Se)), $t !== X ? (bt = [bt, $t], tt = bt) : (Fe = tt, tt = X)) : (Fe = tt, tt = X), tt !== X)
6440
6483
  for (; tt !== X; )
@@ -9737,20 +9780,17 @@ let token, refreshToken, tokenInitialized = !1;
9737
9780
  class TokenManagerImpl {
9738
9781
  constructor() {
9739
9782
  this.getUrlParams = () => new URLSearchParams(window.location.search), this.initToken = () => {
9740
- if (tokenInitialized)
9741
- throw new Error("Token already initialized");
9783
+ if (tokenInitialized) throw new Error("Token already initialized");
9742
9784
  tokenInitialized = !0;
9743
9785
  const W = this.getUrlParams();
9744
9786
  return token = W.get("access_token") || "", refreshToken = W.get("refresh_token") || "", token;
9745
9787
  }, this.setInitialTokens = (W, X) => {
9746
- if (tokenInitialized)
9747
- throw new Error("Token already initialized");
9788
+ if (tokenInitialized) throw new Error("Token already initialized");
9748
9789
  token = W, refreshToken = X, tokenInitialized = !0;
9749
9790
  }, this.getToken = () => (tokenInitialized || this.initToken(), token), this.refreshToken = async () => {
9750
9791
  tokenInitialized || this.initToken();
9751
9792
  const W = await axios.post("/api/token/refresh", { token: refreshToken }), { access_token: X, refresh_token: te } = W.data;
9752
- if (!X)
9753
- throw new Error("Invalid refresh token response");
9793
+ if (!X) throw new Error("Invalid refresh token response");
9754
9794
  return token = X, refreshToken = te, token;
9755
9795
  };
9756
9796
  }
@@ -9790,7 +9830,7 @@ class ImportDataManagerImpl {
9790
9830
  async import(W, X) {
9791
9831
  this.currentImporterId = W, this.currentImportParams = X, this.selectedItems = {}, this.pluginTexts = {};
9792
9832
  try {
9793
- const { ImportDataManagerModal: te } = await import("./component-DL2s4ook.js"), { confirmed: re } = await this.interactionService.confirm(
9833
+ const { ImportDataManagerModal: te } = await import("./component-DCk1Rgkl.js"), { confirmed: re } = await this.interactionService.confirm(
9794
9834
  void 0,
9795
9835
  { component: te },
9796
9836
  {
@@ -9851,7 +9891,7 @@ class PrimariaContextManagerImpl {
9851
9891
  }
9852
9892
  }
9853
9893
  let contextManager$1;
9854
- const createContextManager = () => contextManager$1 || (contextManager$1 = new PrimariaContextManagerImpl(), contextManager$1), broker$1 = createBroker(), regionManager = f$p("primaria"), PrimariaRegionHost = v$k(regionManager), tokenManager = createTokenManager(), userManager = createUserManager(tokenManager), globalStateManager = createGlobalStateManager(broker$1), contextManager = createContextManager(), pluginBusyManager = new PluginBusyManagerImpl(), exitGuardManager = new ExitGuardManagerImpl(), quickActionBusyManager = new QuickActionBusyManagerImpl(broker$1), interactionService = new ParimariaInteractionServiceImpl(), notificationService = new PrimariaNotificationServiceImpl(), ecapEventManager = createEcapEventManager(globalStateManager), pdfViewerManager = createPdfViewerManager(broker$1, notificationService), importDataManager = new ImportDataManagerImpl(interactionService), primariaApiFactory = (J) => {
9894
+ const createContextManager = () => contextManager$1 || (contextManager$1 = new PrimariaContextManagerImpl(), contextManager$1), broker$1 = createBroker(), regionManager = f$p("primaria"), PrimariaRegionHost = v$k(regionManager), tokenManager = createTokenManager(), userManager = createUserManager(tokenManager), activityMonitor = createActivityMonitor(), sessionRefreshTimer = createSessionRefreshTimer(tokenManager, activityMonitor, broker$1), globalStateManager = createGlobalStateManager(broker$1), contextManager = createContextManager(), pluginBusyManager = new PluginBusyManagerImpl(), exitGuardManager = new ExitGuardManagerImpl(), quickActionBusyManager = new QuickActionBusyManagerImpl(broker$1), interactionService = new ParimariaInteractionServiceImpl(), notificationService = new PrimariaNotificationServiceImpl(), ecapEventManager = createEcapEventManager(globalStateManager), pdfViewerManager = createPdfViewerManager(broker$1, notificationService), importDataManager = new ImportDataManagerImpl(interactionService), primariaApiFactory = (J) => {
9855
9895
  const W = createRegionManagerProxy(J, regionManager, broker$1);
9856
9896
  return {
9857
9897
  pluginInfo: J,
@@ -9875,7 +9915,9 @@ const createContextManager = () => contextManager$1 || (contextManager$1 = new P
9875
9915
  }, shellApi = primariaApiFactory({ pluginId: primariaShellId }), api = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9876
9916
  __proto__: null,
9877
9917
  PrimariaRegionHost,
9918
+ activityMonitor,
9878
9919
  primariaApiFactory,
9920
+ sessionRefreshTimer,
9879
9921
  shellApi
9880
9922
  }, Symbol.toStringTag, { value: "Module" })), registerRequest$1 = (J, W) => (X, te) => {
9881
9923
  W.bind(te).to(te).inTransientScope(), injectable()(te);
@@ -10983,10 +11025,10 @@ function buildCreateSlice({
10983
11025
  function Ce(qe = pe) {
10984
11026
  const De = getOrInsertComputed(fe, Se, () => /* @__PURE__ */ new WeakMap());
10985
11027
  return getOrInsertComputed(De, qe, () => {
10986
- const Me = {};
11028
+ const Pe = {};
10987
11029
  for (const [He, Ie] of Object.entries(te.selectors ?? {}))
10988
- Me[He] = wrapSelector(Ie, qe, ge, Se);
10989
- return Me;
11030
+ Pe[He] = wrapSelector(Ie, qe, ge, Se);
11031
+ return Pe;
10990
11032
  });
10991
11033
  }
10992
11034
  return {
@@ -17514,7 +17556,7 @@ const useGetUserInfo = (J) => {
17514
17556
  }, disposeFeatures = (J) => {
17515
17557
  disposeGetUserInfo(), disposeExitShell(), container$1.unbindAll(), J.regionManager._destroy(), mediatorSettings.resolver.clear();
17516
17558
  }, disposeShell = () => {
17517
- disposeFeatures(shellApi), shellApi.interactionService.dispose();
17559
+ disposeFeatures(shellApi), shellApi.interactionService.dispose(), sessionRefreshTimer.stop(), activityMonitor.stop();
17518
17560
  }, raiseCloseEvent = () => {
17519
17561
  shellApi.ecapEventManager.publish("CLOSE_FORM", "", {});
17520
17562
  }, raiseCustomCloseEvent = (J) => {
@@ -18692,8 +18734,8 @@ var toPaddingObject = function(W, X) {
18692
18734
  function arrow(J) {
18693
18735
  var W, X = J.state, te = J.name, re = J.options, oe = X.elements.arrow, ne = X.modifiersData.popperOffsets, de = getBasePlacement(X.placement), ce = getMainAxisFromPlacement(de), ue = [left, right].indexOf(de) >= 0, he = ue ? "height" : "width";
18694
18736
  if (!(!oe || !ne)) {
18695
- var pe = toPaddingObject(re.padding, X), fe = getLayoutRect(oe), be = ce === "y" ? top : left, me = ce === "y" ? bottom : right, ge = X.rects.reference[he] + X.rects.reference[ce] - ne[ce] - X.rects.popper[he], ve = ne[ce] - X.rects.reference[ce], _e = getOffsetParent(oe), ye = _e ? ce === "y" ? _e.clientHeight || 0 : _e.clientWidth || 0 : 0, Se = ge / 2 - ve / 2, we = pe[be], Ce = ye - fe[he] - pe[me], qe = ye / 2 - fe[he] / 2 + Se, De = within(we, qe, Ce), Me = ce;
18696
- X.modifiersData[te] = (W = {}, W[Me] = De, W.centerOffset = De - qe, W);
18737
+ var pe = toPaddingObject(re.padding, X), fe = getLayoutRect(oe), be = ce === "y" ? top : left, me = ce === "y" ? bottom : right, ge = X.rects.reference[he] + X.rects.reference[ce] - ne[ce] - X.rects.popper[he], ve = ne[ce] - X.rects.reference[ce], _e = getOffsetParent(oe), ye = _e ? ce === "y" ? _e.clientHeight || 0 : _e.clientWidth || 0 : 0, Se = ge / 2 - ve / 2, we = pe[be], Ce = ye - fe[he] - pe[me], qe = ye / 2 - fe[he] / 2 + Se, De = within(we, qe, Ce), Pe = ce;
18738
+ X.modifiersData[te] = (W = {}, W[Pe] = De, W.centerOffset = De - qe, W);
18697
18739
  }
18698
18740
  }
18699
18741
  function effect$1(J) {
@@ -18736,8 +18778,8 @@ function mapToStyles(J) {
18736
18778
  be = ve.x, ge = ve.y;
18737
18779
  var _e = ne.hasOwnProperty("x"), ye = ne.hasOwnProperty("y"), Se = left, we = top, Ce = window;
18738
18780
  if (ue) {
18739
- var qe = getOffsetParent(X), De = "clientHeight", Me = "clientWidth";
18740
- if (qe === getWindow(X) && (qe = getDocumentElement(X), getComputedStyle(qe).position !== "static" && de === "absolute" && (De = "scrollHeight", Me = "scrollWidth")), qe = qe, re === top || (re === left || re === right) && oe === end) {
18781
+ var qe = getOffsetParent(X), De = "clientHeight", Pe = "clientWidth";
18782
+ if (qe === getWindow(X) && (qe = getDocumentElement(X), getComputedStyle(qe).position !== "static" && de === "absolute" && (De = "scrollHeight", Pe = "scrollWidth")), qe = qe, re === top || (re === left || re === right) && oe === end) {
18741
18783
  we = bottom;
18742
18784
  var He = pe && qe === Ce && Ce.visualViewport ? Ce.visualViewport.height : (
18743
18785
  // $FlowFixMe[prop-missing]
@@ -18749,7 +18791,7 @@ function mapToStyles(J) {
18749
18791
  Se = right;
18750
18792
  var Ie = pe && qe === Ce && Ce.visualViewport ? Ce.visualViewport.width : (
18751
18793
  // $FlowFixMe[prop-missing]
18752
- qe[Me]
18794
+ qe[Pe]
18753
18795
  );
18754
18796
  be -= Ie - te.width, be *= ce ? 1 : -1;
18755
18797
  }
@@ -18764,8 +18806,8 @@ function mapToStyles(J) {
18764
18806
  y: ge
18765
18807
  };
18766
18808
  if (be = ze.x, ge = ze.y, ce) {
18767
- var Pe;
18768
- return Object.assign({}, Ae, (Pe = {}, Pe[we] = ye ? "0" : "", Pe[Se] = _e ? "0" : "", Pe.transform = (Ce.devicePixelRatio || 1) <= 1 ? "translate(" + be + "px, " + ge + "px)" : "translate3d(" + be + "px, " + ge + "px, 0)", Pe));
18809
+ var Me;
18810
+ return Object.assign({}, Ae, (Me = {}, Me[we] = ye ? "0" : "", Me[Se] = _e ? "0" : "", Me.transform = (Ce.devicePixelRatio || 1) <= 1 ? "translate(" + be + "px, " + ge + "px)" : "translate3d(" + be + "px, " + ge + "px, 0)", Me));
18769
18811
  }
18770
18812
  return Object.assign({}, Ae, (W = {}, W[we] = ye ? ge + "px" : "", W[Se] = _e ? be + "px" : "", W.transform = "", W));
18771
18813
  }
@@ -18971,7 +19013,7 @@ function detectOverflow(J, W) {
18971
19013
  reference: qe,
18972
19014
  element: Se,
18973
19015
  placement: re
18974
- }), Me = rectToClientRect(Object.assign({}, Se, De)), He = fe === popper ? Me : qe, Ie = {
19016
+ }), Pe = rectToClientRect(Object.assign({}, Se, De)), He = fe === popper ? Pe : qe, Ie = {
18975
19017
  top: Ce.top - He.top + _e.top,
18976
19018
  bottom: He.bottom - Ce.bottom + _e.bottom,
18977
19019
  left: Ce.left - He.left + _e.left,
@@ -18979,9 +19021,9 @@ function detectOverflow(J, W) {
18979
19021
  }, Ae = J.modifiersData.offset;
18980
19022
  if (fe === popper && Ae) {
18981
19023
  var ze = Ae[re];
18982
- Object.keys(Ie).forEach(function(Pe) {
18983
- var Ne = [right, bottom].indexOf(Pe) >= 0 ? 1 : -1, We = [top, bottom].indexOf(Pe) >= 0 ? "y" : "x";
18984
- Ie[Pe] += ze[We] * Ne;
19024
+ Object.keys(Ie).forEach(function(Me) {
19025
+ var Ne = [right, bottom].indexOf(Me) >= 0 ? 1 : -1, We = [top, bottom].indexOf(Me) >= 0 ? "y" : "x";
19026
+ Ie[Me] += ze[We] * Ne;
18985
19027
  });
18986
19028
  }
18987
19029
  return Ie;
@@ -19024,25 +19066,25 @@ function flip(J) {
19024
19066
  flipVariations: me,
19025
19067
  allowedAutoPlacements: ge
19026
19068
  }) : Xe);
19027
- }, []), Ce = W.rects.reference, qe = W.rects.popper, De = /* @__PURE__ */ new Map(), Me = !0, He = we[0], Ie = 0; Ie < we.length; Ie++) {
19028
- var Ae = we[Ie], ze = getBasePlacement(Ae), Pe = getVariation(Ae) === start, Ne = [top, bottom].indexOf(ze) >= 0, We = Ne ? "width" : "height", Ge = detectOverflow(W, {
19069
+ }, []), Ce = W.rects.reference, qe = W.rects.popper, De = /* @__PURE__ */ new Map(), Pe = !0, He = we[0], Ie = 0; Ie < we.length; Ie++) {
19070
+ var Ae = we[Ie], ze = getBasePlacement(Ae), Me = getVariation(Ae) === start, Ne = [top, bottom].indexOf(ze) >= 0, We = Ne ? "width" : "height", Ge = detectOverflow(W, {
19029
19071
  placement: Ae,
19030
19072
  boundary: he,
19031
19073
  rootBoundary: pe,
19032
19074
  altBoundary: fe,
19033
19075
  padding: ue
19034
- }), Ke = Ne ? Pe ? right : left : Pe ? bottom : top;
19076
+ }), Ke = Ne ? Me ? right : left : Me ? bottom : top;
19035
19077
  Ce[We] > qe[We] && (Ke = getOppositePlacement(Ke));
19036
19078
  var ft = getOppositePlacement(Ke), Je = [];
19037
19079
  if (oe && Je.push(Ge[ze] <= 0), de && Je.push(Ge[Ke] <= 0, Ge[ft] <= 0), Je.every(function(Qe) {
19038
19080
  return Qe;
19039
19081
  })) {
19040
- He = Ae, Me = !1;
19082
+ He = Ae, Pe = !1;
19041
19083
  break;
19042
19084
  }
19043
19085
  De.set(Ae, Je);
19044
19086
  }
19045
- if (Me)
19087
+ if (Pe)
19046
19088
  for (var Ze = me ? 3 : 1, Le = function(Xe) {
19047
19089
  var Be = we.find(function(Ye) {
19048
19090
  var rt = De.get(Ye);
@@ -19158,7 +19200,7 @@ function preventOverflow(J) {
19158
19200
  rootBoundary: ue,
19159
19201
  padding: pe,
19160
19202
  altBoundary: he
19161
- }), _e = getBasePlacement(W.placement), ye = getVariation(W.placement), Se = !ye, we = getMainAxisFromPlacement(_e), Ce = getAltAxis(we), qe = W.modifiersData.popperOffsets, De = W.rects.reference, Me = W.rects.popper, He = typeof ge == "function" ? ge(Object.assign({}, W.rects, {
19203
+ }), _e = getBasePlacement(W.placement), ye = getVariation(W.placement), Se = !ye, we = getMainAxisFromPlacement(_e), Ce = getAltAxis(we), qe = W.modifiersData.popperOffsets, De = W.rects.reference, Pe = W.rects.popper, He = typeof ge == "function" ? ge(Object.assign({}, W.rects, {
19162
19204
  placement: W.placement
19163
19205
  })) : ge, Ie = typeof He == "number" ? {
19164
19206
  mainAxis: He,
@@ -19172,14 +19214,14 @@ function preventOverflow(J) {
19172
19214
  };
19173
19215
  if (qe) {
19174
19216
  if (oe) {
19175
- var Pe, Ne = we === "y" ? top : left, We = we === "y" ? bottom : right, Ge = we === "y" ? "height" : "width", Ke = qe[we], ft = Ke + ve[Ne], Je = Ke - ve[We], Ze = be ? -Me[Ge] / 2 : 0, Le = ye === start ? De[Ge] : Me[Ge], Ue = ye === start ? -Me[Ge] : -De[Ge], Ve = W.elements.arrow, Qe = be && Ve ? getLayoutRect(Ve) : {
19217
+ var Me, Ne = we === "y" ? top : left, We = we === "y" ? bottom : right, Ge = we === "y" ? "height" : "width", Ke = qe[we], ft = Ke + ve[Ne], Je = Ke - ve[We], Ze = be ? -Pe[Ge] / 2 : 0, Le = ye === start ? De[Ge] : Pe[Ge], Ue = ye === start ? -Pe[Ge] : -De[Ge], Ve = W.elements.arrow, Qe = be && Ve ? getLayoutRect(Ve) : {
19176
19218
  width: 0,
19177
19219
  height: 0
19178
- }, Xe = W.modifiersData["arrow#persistent"] ? W.modifiersData["arrow#persistent"].padding : getFreshSideObject(), Be = Xe[Ne], Ye = Xe[We], rt = within(0, De[Ge], Qe[Ge]), ot = Se ? De[Ge] / 2 - Ze - rt - Be - Ie.mainAxis : Le - rt - Be - Ie.mainAxis, _t = Se ? -De[Ge] / 2 + Ze + rt + Ye + Ie.mainAxis : Ue + rt + Ye + Ie.mainAxis, kt = W.elements.arrow && getOffsetParent(W.elements.arrow), It = kt ? we === "y" ? kt.clientTop || 0 : kt.clientLeft || 0 : 0, zt = (Pe = Ae?.[we]) != null ? Pe : 0, Nt = Ke + ot - zt - It, Bt = Ke + _t - zt, rs = within(be ? min(ft, Nt) : ft, Ke, be ? max(Je, Bt) : Je);
19220
+ }, Xe = W.modifiersData["arrow#persistent"] ? W.modifiersData["arrow#persistent"].padding : getFreshSideObject(), Be = Xe[Ne], Ye = Xe[We], rt = within(0, De[Ge], Qe[Ge]), ot = Se ? De[Ge] / 2 - Ze - rt - Be - Ie.mainAxis : Le - rt - Be - Ie.mainAxis, _t = Se ? -De[Ge] / 2 + Ze + rt + Ye + Ie.mainAxis : Ue + rt + Ye + Ie.mainAxis, kt = W.elements.arrow && getOffsetParent(W.elements.arrow), It = kt ? we === "y" ? kt.clientTop || 0 : kt.clientLeft || 0 : 0, zt = (Me = Ae?.[we]) != null ? Me : 0, Nt = Ke + ot - zt - It, Bt = Ke + _t - zt, rs = within(be ? min(ft, Nt) : ft, Ke, be ? max(Je, Bt) : Je);
19179
19221
  qe[we] = rs, ze[we] = rs - Ke;
19180
19222
  }
19181
19223
  if (de) {
19182
- var Yt, gt = we === "x" ? top : left, mt = we === "x" ? bottom : right, xt = qe[Ce], Ct = Ce === "y" ? "height" : "width", wt = xt + ve[gt], Lt = xt - ve[mt], Mt = [top, left].indexOf(_e) !== -1, Ft = (Yt = Ae?.[Ce]) != null ? Yt : 0, cs = Mt ? wt : xt - De[Ct] - Me[Ct] - Ft + Ie.altAxis, ds = Mt ? xt + De[Ct] + Me[Ct] - Ft - Ie.altAxis : Lt, Kt = be && Mt ? withinMaxClamp(cs, xt, ds) : within(be ? cs : wt, xt, be ? ds : Lt);
19224
+ var Yt, gt = we === "x" ? top : left, mt = we === "x" ? bottom : right, xt = qe[Ce], Ct = Ce === "y" ? "height" : "width", wt = xt + ve[gt], Lt = xt - ve[mt], Pt = [top, left].indexOf(_e) !== -1, Ft = (Yt = Ae?.[Ce]) != null ? Yt : 0, cs = Pt ? wt : xt - De[Ct] - Pe[Ct] - Ft + Ie.altAxis, ds = Pt ? xt + De[Ct] + Pe[Ct] - Ft - Ie.altAxis : Lt, Kt = be && Pt ? withinMaxClamp(cs, xt, ds) : within(be ? cs : wt, xt, be ? ds : Lt);
19183
19225
  qe[Ce] = Kt, ze[Ce] = Kt - xt;
19184
19226
  }
19185
19227
  W.modifiersData[te] = ze;
@@ -19332,10 +19374,10 @@ function popperGenerator(J) {
19332
19374
  he.reset = !1, we = -1;
19333
19375
  continue;
19334
19376
  }
19335
- var Ce = he.orderedModifiers[we], qe = Ce.fn, De = Ce.options, Me = De === void 0 ? {} : De, He = Ce.name;
19377
+ var Ce = he.orderedModifiers[we], qe = Ce.fn, De = Ce.options, Pe = De === void 0 ? {} : De, He = Ce.name;
19336
19378
  typeof qe == "function" && (he = qe({
19337
19379
  state: he,
19338
- options: Me,
19380
+ options: Pe,
19339
19381
  name: He,
19340
19382
  instance: be
19341
19383
  }) || he);
@@ -22813,7 +22855,7 @@ a$k([
22813
22855
  r$J()
22814
22856
  ], l$o.prototype, "_currentSortedData", 2);
22815
22857
  const P$1 = er`dss-calendar${tr(f$o())}`, s$s = er`dss-icon${tr(f$o())}`, r$z = er`dss-icon-button${tr(f$o())}`, aa$1 = (J) => {
22816
- var W, X, te, re, oe, ne, de, ce, ue, he, pe, fe, be, me, ge, ve, _e, ye, Se, we, Ce, qe, De, Me, He, Ie, Ae, ze, Pe, Ne, We;
22858
+ var W, X, te, re, oe, ne, de, ce, ue, he, pe, fe, be, me, ge, ve, _e, ye, Se, we, Ce, qe, De, Pe, He, Ie, Ae, ze, Me, Ne, We;
22817
22859
  const Ge = {
22818
22860
  "dss-datepicker-range--sm": J.inputSize !== "lg"
22819
22861
  }, Ke = {
@@ -22849,7 +22891,7 @@ const P$1 = er`dss-calendar${tr(f$o())}`, s$s = er`dss-icon${tr(f$o())}`, r$z =
22849
22891
  // 'dss-input-group--no-label': Boolean(!component._label),
22850
22892
  }, Ue = {
22851
22893
  "dss-calendar": !0,
22852
- "dss-calendar--visible": J._showCalendar && !((De = J._inputRangeStart) != null && De.readOnly) && !((Me = J._inputRangeEnd) != null && Me.readOnly),
22894
+ "dss-calendar--visible": J._showCalendar && !((De = J._inputRangeStart) != null && De.readOnly) && !((Pe = J._inputRangeEnd) != null && Pe.readOnly),
22853
22895
  "dss-calendar--disabled": ((He = J._inputRangeStart) == null ? void 0 : He.disabled) && ((Ie = J._inputRangeEnd) == null ? void 0 : Ie.disabled),
22854
22896
  "dss-calendar--sm": J.inputSize !== "lg"
22855
22897
  };
@@ -22949,7 +22991,7 @@ const P$1 = er`dss-calendar${tr(f$o())}`, s$s = er`dss-icon${tr(f$o())}`, r$z =
22949
22991
  aria-label="Datepicker Range Calendar"
22950
22992
  id="datepicker-range-calendar"
22951
22993
  class="${Rt(Ue)}"
22952
- .selectedDate="${(Pe = J._inputRangeStart) == null ? void 0 : Pe.value}"
22994
+ .selectedDate="${(Me = J._inputRangeStart) == null ? void 0 : Me.value}"
22953
22995
  .rangeStartDate="${(Ne = J._inputRangeStart) == null ? void 0 : Ne.value}"
22954
22996
  .rangeEndDate="${(We = J._inputRangeEnd) == null ? void 0 : We.value}"
22955
22997
  .customCalendar=${J.customCalendar}
@@ -39463,7 +39505,7 @@ i$a([
39463
39505
  r$J()
39464
39506
  ], t$4.prototype, "defaultValue");
39465
39507
  const s$6 = ':host{max-width:100%}.dss-input-wrapper{display:flex;flex-direction:column;gap:var(--dss-spacing-xxs);width:100%;max-width:100%}.dss-input-wrapper--sm{gap:var(--dss-spacing-tiny)}.dss-input-icon{color:var(--color-neutral-900)}.dss-input-dropdown-wrapper{width:100%;max-width:100%}.dss-input-group{height:48px;width:100%;max-width:100%;box-sizing:border-box;padding:0 var(--dss-spacing-sm);border:var(--dss-border-width-sm) solid var(--color-neutral-100);border-radius:var(--dss-radius-sm);display:flex;align-items:center;gap:var(--dss-spacing-xs);background-color:var(--color-white);font-family:var(--font-family)}.dss-input-group--read-only{border-top-color:transparent;border-left-color:transparent;border-right-color:transparent;border-radius:0}.dss-input-group:not(.dss-input-group--read-only):focus-within{border-color:transparent;outline:var(--dss-border-width-lg) solid var(--color-blue-200)}.dss-input-group--read-only:focus-within{outline:none;position:relative}.dss-input-group--read-only:focus-within:before{pointer-events:none;content:"";position:absolute;top:100%;left:0;right:0;height:var(--dss-border-width-lg);background-color:var(--color-blue-200)}.dss-input-field{flex:1;min-width:0;display:flex;height:45px;position:relative}.dss-input-group--md{height:40px}.dss-input-group--md .dss-input-field{height:37px}.dss-input-group--sm{height:32px;padding:0 var(--dss-spacing-xs)}.dss-input-group--sm .dss-input-field{height:29px}.dss-wrapper-label label.dss-label{font-size:14px;font-weight:var(--font-semibold);line-height:24px;color:var(--color-neutral-700);background-color:transparent}.dss-wrapper-label.dss-wrapper-label--invalid label.dss-label{color:var(--color-red-500)}.dss-input-wrapper--disabled .dss-wrapper-label label.dss-label{color:var(--color-neutral-500)}.dss-input-field label.dss-label{position:absolute;top:50%;transform:translateY(-50%);left:0;font-size:14px;color:var(--color-neutral-600);transition:all .3s ease-in-out;max-height:24px;width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.dss-input-field:focus-within label.dss-label,.dss-input-group--focused label.dss-label{font-size:12px;top:0;transform:translateY(0)}.dss-input-group.dss-input-group--focused.dss-input-group--read-only-empty label.dss-label{font-size:14px;top:50%;transform:translateY(-50%)}.dss-input-group--md .dss-input-field:focus-within label.dss-label,.dss-input-group--md.dss-input-group--focused label.dss-label{top:0}.dss-input-field input.dss-input{border:none;height:100%;padding:0;box-sizing:border-box;color:var(--color-neutral-900);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-size:14px;width:100%;max-width:100%;background-color:transparent}.dss-input-field input.dss-input::-webkit-outer-spin-button,.dss-input-field input.dss-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.dss-input-field input.dss-input[type=number]{-moz-appearance:textfield}.dss-input-field input.dss-input::-moz-placeholder{color:var(--color-neutral-700)}.dss-input-field input.dss-input::-moz-placeholder,.dss-input-field input.dss-input::-ms-input-placeholder,.dss-input-field input.dss-input::placeholder{color:var(--color-neutral-700)}.dss-input-group:not(.dss-input-group--sm) .dss-input-field input.dss-input{padding-top:var(--dss-spacing-md)!important;padding-bottom:0!important}.dss-input-field input.dss-input:-moz-placeholder-shown{border:none;outline:none;height:100%}.dss-input-field input.dss-input:focus-visible,.dss-input-field input.dss-input:placeholder-shown{border:none;outline:none;height:100%}.dss-input-field input.dss-input::-moz-placeholder{color:var(--color-neutral-600)}.dss-input-field input.dss-input::placeholder{color:var(--color-neutral-600)}.dss-input-group--disabled{cursor:not-allowed;background-color:var(--color-neutral-50);color:var(--color-neutral-500)}.dss-input-group--disabled .dss-input-field label.dss-label{cursor:not-allowed!important;color:var(--color-neutral-500)}.dss-input-group--disabled .dss-input-field input.dss-input{cursor:not-allowed!important;background-color:var(--color-neutral-50);color:var(--color-neutral-500)}.dss-input-help{display:flex;justify-content:space-between;font-family:var(--font-family);font-size:12px;color:var(--color-neutral-700);padding:0 var(--dss-spacing-sm)}.dss-input-help--invalid{color:var(--color-red-500)}.dss-input-help--disabled{color:var(--color-neutral-500)}.dss-input-group--invalid:not(.dss-input-group--disabled):not(.dss-input-group--read-only):not(:focus-within){background-color:var(--color-red-50);border-color:var(--color-red-500)}.dss-input-group--invalid.dss-input-group--read-only:not(.dss-input-group--disabled):not(:focus-within){border-bottom-color:var(--color-red-500)}.dss-input-group--invalid:not(.dss-input-group--disabled) .dss-input-field label.dss-label{color:var(--color-red-500)}.dss-input-group--invalid:not(.dss-input-group--disabled):not(.dss-input-group--read-only):not(:focus-within) .dss-input-field input.dss-input{background-color:var(--color-red-50)}.dss-input-wrapper--required label.dss-label:before,.dss-input-group--required label.dss-label:before{content:"*"}.dss-input-numeric-buttons{padding:0;display:flex;flex-direction:column;justify-content:center;transition:all .3s ease-in;height:100%}.dss-input-numeric-buttons .dss-icon-button{display:flex;justify-content:center;text-align:center;width:18px;height:18px;align-items:center;font-size:16px}.dss-input-group.dss-input-group--no-label .dss-input-field input.dss-input{padding-top:0!important;padding-bottom:0!important}.dss-input-wrapper--sm.dss-input-wrapper--no-label{gap:0}.dss-input-unit{font-size:14px;font-weight:var(--font-regular);color:var(--color-neutral-700);margin-top:0;transition:margin var(--animation-delay) ease-in-out}.dss-input-wrapper:not(.dss-input-wrapper--sm):not(.dss-input-wrapper--no-label) .dss-input-group--focused .dss-input-unit{margin-top:14px}.dss-input-group--disabled .dss-input-unit{color:var(--color-neutral-500)}.dss-input-inputPrefix{font-size:14px;font-weight:var(--font-regular);color:var(--color-neutral-700);padding-right:var(--dss-spacing-xxs);opacity:0;visibility:hidden;transition:opacity var(--animation-delay) ease-in-out,visibility var(--animation-delay) ease-in-out}.dss-input-wrapper.dss-input-wrapper--sm .dss-input-inputPrefix{align-self:center}.dss-input-wrapper:not(.dss-input-wrapper--sm) .dss-input-inputPrefix{align-self:flex-end}.dss-input-wrapper.dss-input-wrapper--no-label.dss-input-wrapper--lg .dss-input-inputPrefix{padding-bottom:10px!important}.dss-input-wrapper.dss-input-wrapper--no-label.dss-input-wrapper--md .dss-input-inputPrefix{padding-bottom:6px!important}.dss-input-wrapper.dss-input-wrapper--md:not(.dss-input-wrapper--no-label) .dss-input-inputPrefix{margin-bottom:-2px}.dss-input-wrapper.dss-input-wrapper--lg:not(.dss-input-wrapper--no-label) .dss-input-inputPrefix{padding-bottom:var(--dss-spacing-tiny)!important}.dss-input-wrapper .dss-input-group--focused .dss-input-inputPrefix{opacity:1;visibility:visible}.dss-input-actions{position:relative;padding-left:var(--dss-spacing-xs);display:flex;align-items:center;gap:var(--dss-spacing-xs)}.dss-input-actions:before{content:"";position:absolute;top:50%;left:0;transform:translateY(-50%);height:24px;width:var(--dss-border-width-sm);background-color:var(--color-neutral-500)}.dss-input-tooltip{display:none}.dss-input-tooltip--visible{display:block}', i$9 = ":host{display:block;width:100%;min-width:257px}.dss-datepicker-range{font-family:var(--font-family)}.dss-datepicker-range-inputs{display:grid;grid-template-columns:1fr 1fr;gap:var(--dss-spacing-md)}.dss-datepicker-range-help{font-family:var(--font-family)}.dss-datepicker-range-help{font-family:inherit;font-size:12px;color:var(--color-neutral-700);padding:var(--dss-spacing-xxs) var(--dss-spacing-sm)}.dss-datepicker-range-help--disabled{color:var(--color-neutral-500)}.dss-datepicker-range-help--invalid{color:var(--color-red-500)}.dss-calendar{z-index:999;width:-moz-fit-content;width:fit-content;opacity:0;visibility:hidden;transition:opacity var(--animation-delay) ease-out}.dss-calendar--visible{opacity:1;visibility:visible}", P = er`dss-calendar${tr(f$o())}`, i$8 = er`dss-icon${tr(f$o())}`, l$2 = er`dss-icon-button${tr(f$o())}`, aa = (J) => {
39466
- var W, X, te, re, oe, ne, de, ce, ue, he, pe, fe, be, me, ge, ve, _e, ye, Se, we, Ce, qe, De, Me, He, Ie, Ae, ze, Pe, Ne, We;
39508
+ var W, X, te, re, oe, ne, de, ce, ue, he, pe, fe, be, me, ge, ve, _e, ye, Se, we, Ce, qe, De, Pe, He, Ie, Ae, ze, Me, Ne, We;
39467
39509
  const Ge = {
39468
39510
  "dss-datepicker-range--sm": J.size !== "lg"
39469
39511
  }, Ke = {
@@ -39499,7 +39541,7 @@ const s$6 = ':host{max-width:100%}.dss-input-wrapper{display:flex;flex-direction
39499
39541
  // 'dss-input-group--no-label': Boolean(!component._label),
39500
39542
  }, Ue = {
39501
39543
  "dss-calendar": !0,
39502
- "dss-calendar--visible": J.showCalendar && !((De = J._inputRangeStart) != null && De.readOnly) && !((Me = J._inputRangeEnd) != null && Me.readOnly),
39544
+ "dss-calendar--visible": J.showCalendar && !((De = J._inputRangeStart) != null && De.readOnly) && !((Pe = J._inputRangeEnd) != null && Pe.readOnly),
39503
39545
  "dss-calendar--disabled": ((He = J._inputRangeStart) == null ? void 0 : He.disabled) && ((Ie = J._inputRangeEnd) == null ? void 0 : Ie.disabled),
39504
39546
  "dss-calendar--sm": J.size !== "lg"
39505
39547
  };
@@ -39640,7 +39682,7 @@ const s$6 = ':host{max-width:100%}.dss-input-wrapper{display:flex;flex-direction
39640
39682
  aria-label="Datepicker Range Calendar"
39641
39683
  id="datepicker-range-calendar"
39642
39684
  class="${Rt(Ue)}"
39643
- .selectedDate="${(Pe = J._inputRangeStart) == null ? void 0 : Pe.value}"
39685
+ .selectedDate="${(Me = J._inputRangeStart) == null ? void 0 : Me.value}"
39644
39686
  .rangeStartDate="${(Ne = J._inputRangeStart) == null ? void 0 : Ne.value}"
39645
39687
  .rangeEndDate="${(We = J._inputRangeEnd) == null ? void 0 : We.value}"
39646
39688
  .customCalendar=${J.customCalendar}
@@ -45170,21 +45212,21 @@ function requireQuill() {
45170
45212
  value: !0
45171
45213
  }), te.default = te.BlockEmbed = te.bubbleFormats = void 0;
45172
45214
  var oe = /* @__PURE__ */ (function() {
45173
- function Ae(ze, Pe) {
45174
- for (var Ne = 0; Ne < Pe.length; Ne++) {
45175
- var We = Pe[Ne];
45215
+ function Ae(ze, Me) {
45216
+ for (var Ne = 0; Ne < Me.length; Ne++) {
45217
+ var We = Me[Ne];
45176
45218
  We.enumerable = We.enumerable || !1, We.configurable = !0, "value" in We && (We.writable = !0), Object.defineProperty(ze, We.key, We);
45177
45219
  }
45178
45220
  }
45179
- return function(ze, Pe, Ne) {
45180
- return Pe && Ae(ze.prototype, Pe), Ne && Ae(ze, Ne), ze;
45221
+ return function(ze, Me, Ne) {
45222
+ return Me && Ae(ze.prototype, Me), Ne && Ae(ze, Ne), ze;
45181
45223
  };
45182
- })(), ne = function Ae(ze, Pe, Ne) {
45224
+ })(), ne = function Ae(ze, Me, Ne) {
45183
45225
  ze === null && (ze = Function.prototype);
45184
- var We = Object.getOwnPropertyDescriptor(ze, Pe);
45226
+ var We = Object.getOwnPropertyDescriptor(ze, Me);
45185
45227
  if (We === void 0) {
45186
45228
  var Ge = Object.getPrototypeOf(ze);
45187
- return Ge === null ? void 0 : Ae(Ge, Pe, Ne);
45229
+ return Ge === null ? void 0 : Ae(Ge, Me, Ne);
45188
45230
  } else {
45189
45231
  if ("value" in We)
45190
45232
  return We.value;
@@ -45209,7 +45251,7 @@ function requireQuill() {
45209
45251
  throw new TypeError("Super expression must either be null or a function, not " + typeof ze);
45210
45252
  Ae.prototype = Object.create(ze && ze.prototype, { constructor: { value: Ae, enumerable: !1, writable: !0, configurable: !0 } }), ze && (Object.setPrototypeOf ? Object.setPrototypeOf(Ae, ze) : Ae.__proto__ = ze);
45211
45253
  }
45212
- var De = 1, Me = (function(Ae) {
45254
+ var De = 1, Pe = (function(Ae) {
45213
45255
  qe(ze, Ae);
45214
45256
  function ze() {
45215
45257
  return we(this, ze), Ce(this, (ze.__proto__ || Object.getPrototypeOf(ze)).apply(this, arguments));
@@ -45247,12 +45289,12 @@ function requireQuill() {
45247
45289
  }
45248
45290
  }]), ze;
45249
45291
  })(fe.default.Embed);
45250
- Me.scope = fe.default.Scope.BLOCK_BLOT;
45292
+ Pe.scope = fe.default.Scope.BLOCK_BLOT;
45251
45293
  var He = (function(Ae) {
45252
45294
  qe(ze, Ae);
45253
- function ze(Pe) {
45295
+ function ze(Me) {
45254
45296
  we(this, ze);
45255
- var Ne = Ce(this, (ze.__proto__ || Object.getPrototypeOf(ze)).call(this, Pe));
45297
+ var Ne = Ce(this, (ze.__proto__ || Object.getPrototypeOf(ze)).call(this, Me));
45256
45298
  return Ne.cache = {}, Ne;
45257
45299
  }
45258
45300
  return oe(ze, [{
@@ -45337,7 +45379,7 @@ function requireQuill() {
45337
45379
  var ze = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
45338
45380
  return Ae == null || (typeof Ae.formats == "function" && (ze = (0, ce.default)(ze, Ae.formats())), Ae.parent == null || Ae.parent.blotName == "scroll" || Ae.parent.statics.scope !== Ae.statics.scope) ? ze : Ie(Ae.parent, ze);
45339
45381
  }
45340
- te.bubbleFormats = Ie, te.BlockEmbed = Me, te.default = He;
45382
+ te.bubbleFormats = Ie, te.BlockEmbed = Pe, te.default = He;
45341
45383
  }),
45342
45384
  /* 5 */
45343
45385
  /***/
@@ -45385,7 +45427,7 @@ function requireQuill() {
45385
45427
  };
45386
45428
  })();
45387
45429
  re(51);
45388
- var ce = re(2), ue = Ie(ce), he = re(14), pe = Ie(he), fe = re(8), be = Ie(fe), me = re(9), ge = Ie(me), ve = re(0), _e = Ie(ve), ye = re(15), Se = Ie(ye), we = re(3), Ce = Ie(we), qe = re(10), De = Ie(qe), Me = re(35), He = Ie(Me);
45430
+ var ce = re(2), ue = Ie(ce), he = re(14), pe = Ie(he), fe = re(8), be = Ie(fe), me = re(9), ge = Ie(me), ve = re(0), _e = Ie(ve), ye = re(15), Se = Ie(ye), we = re(3), Ce = Ie(we), qe = re(10), De = Ie(qe), Pe = re(35), He = Ie(Pe);
45389
45431
  function Ie(Je) {
45390
45432
  return Je && Je.__esModule ? Je : { default: Je };
45391
45433
  }
@@ -45396,7 +45438,7 @@ function requireQuill() {
45396
45438
  if (!(Je instanceof Ze))
45397
45439
  throw new TypeError("Cannot call a class as a function");
45398
45440
  }
45399
- var Pe = (0, De.default)("quill"), Ne = (function() {
45441
+ var Me = (0, De.default)("quill"), Ne = (function() {
45400
45442
  de(Je, null, [{
45401
45443
  key: "debug",
45402
45444
  value: function(Le) {
@@ -45410,7 +45452,7 @@ function requireQuill() {
45410
45452
  }, {
45411
45453
  key: "import",
45412
45454
  value: function(Le) {
45413
- return this.imports[Le] == null && Pe.error("Cannot import " + Le + ". Are you sure it was registered?"), this.imports[Le];
45455
+ return this.imports[Le] == null && Me.error("Cannot import " + Le + ". Are you sure it was registered?"), this.imports[Le];
45414
45456
  }
45415
45457
  }, {
45416
45458
  key: "register",
@@ -45422,13 +45464,13 @@ function requireQuill() {
45422
45464
  Ve.register(Be, Le[Be], Ue);
45423
45465
  });
45424
45466
  } else
45425
- this.imports[Le] != null && !Qe && Pe.warn("Overwriting " + Le + " with", Ue), this.imports[Le] = Ue, (Le.startsWith("blots/") || Le.startsWith("formats/")) && Ue.blotName !== "abstract" ? _e.default.register(Ue) : Le.startsWith("modules") && typeof Ue.register == "function" && Ue.register();
45467
+ this.imports[Le] != null && !Qe && Me.warn("Overwriting " + Le + " with", Ue), this.imports[Le] = Ue, (Le.startsWith("blots/") || Le.startsWith("formats/")) && Ue.blotName !== "abstract" ? _e.default.register(Ue) : Le.startsWith("modules") && typeof Ue.register == "function" && Ue.register();
45426
45468
  }
45427
45469
  }]);
45428
45470
  function Je(Ze) {
45429
45471
  var Le = this, Ue = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
45430
45472
  if (ze(this, Je), this.options = We(Ze, Ue), this.container = this.options.container, this.container == null)
45431
- return Pe.error("Invalid Quill container", Ze);
45473
+ return Me.error("Invalid Quill container", Ze);
45432
45474
  this.options.debug && Je.debug(this.options.debug);
45433
45475
  var Ve = this.container.innerHTML.trim();
45434
45476
  this.container.classList.add("ql-container"), this.container.innerHTML = "", this.container.__quill = this, this.root = this.addContainer("ql-editor"), this.root.classList.add("ql-blank"), this.root.setAttribute("data-gramm", !1), this.scrollingContainer = this.options.scrollingContainer || this.root, this.emitter = new be.default(), this.scroll = _e.default.create(this.root, {
@@ -45728,7 +45770,7 @@ function requireQuill() {
45728
45770
  });
45729
45771
  var Ue = Object.keys(Le.modules).concat(Object.keys(Ze.modules)), Ve = Ue.reduce(function(Qe, Xe) {
45730
45772
  var Be = Ne.import("modules/" + Xe);
45731
- return Be == null ? Pe.error("Cannot load " + Xe + " module. Are you sure you registered it?") : Qe[Xe] = Be.DEFAULTS || {}, Qe;
45773
+ return Be == null ? Me.error("Cannot load " + Xe + " module. Are you sure you registered it?") : Qe[Xe] = Be.DEFAULTS || {}, Qe;
45732
45774
  }, {});
45733
45775
  return Ze.modules != null && Ze.modules.toolbar && Ze.modules.toolbar.constructor !== Object && (Ze.modules.toolbar = {
45734
45776
  container: Ze.modules.toolbar
@@ -45904,25 +45946,25 @@ function requireQuill() {
45904
45946
  });
45905
45947
  var oe = /* @__PURE__ */ (function() {
45906
45948
  function Ce(qe, De) {
45907
- for (var Me = 0; Me < De.length; Me++) {
45908
- var He = De[Me];
45949
+ for (var Pe = 0; Pe < De.length; Pe++) {
45950
+ var He = De[Pe];
45909
45951
  He.enumerable = He.enumerable || !1, He.configurable = !0, "value" in He && (He.writable = !0), Object.defineProperty(qe, He.key, He);
45910
45952
  }
45911
45953
  }
45912
- return function(qe, De, Me) {
45913
- return De && Ce(qe.prototype, De), Me && Ce(qe, Me), qe;
45954
+ return function(qe, De, Pe) {
45955
+ return De && Ce(qe.prototype, De), Pe && Ce(qe, Pe), qe;
45914
45956
  };
45915
- })(), ne = function Ce(qe, De, Me) {
45957
+ })(), ne = function Ce(qe, De, Pe) {
45916
45958
  qe === null && (qe = Function.prototype);
45917
45959
  var He = Object.getOwnPropertyDescriptor(qe, De);
45918
45960
  if (He === void 0) {
45919
45961
  var Ie = Object.getPrototypeOf(qe);
45920
- return Ie === null ? void 0 : Ce(Ie, De, Me);
45962
+ return Ie === null ? void 0 : Ce(Ie, De, Pe);
45921
45963
  } else {
45922
45964
  if ("value" in He)
45923
45965
  return He.value;
45924
45966
  var Ae = He.get;
45925
- return Ae === void 0 ? void 0 : Ae.call(Me);
45967
+ return Ae === void 0 ? void 0 : Ae.call(Pe);
45926
45968
  }
45927
45969
  }, de = re(55), ce = fe(de), ue = re(10), he = fe(ue), pe = re(34);
45928
45970
  function fe(Ce) {
@@ -45945,8 +45987,8 @@ function requireQuill() {
45945
45987
  var ve = (0, he.default)("quill:events"), _e = [pe.SHADOW_SELECTIONCHANGE, "mousedown", "mouseup", "click"], ye = [], Se = "getRootNode" in document;
45946
45988
  _e.forEach(function(Ce) {
45947
45989
  document.addEventListener(Ce, function() {
45948
- for (var qe = arguments.length, De = Array(qe), Me = 0; Me < qe; Me++)
45949
- De[Me] = arguments[Me];
45990
+ for (var qe = arguments.length, De = Array(qe), Pe = 0; Pe < qe; Pe++)
45991
+ De[Pe] = arguments[Pe];
45950
45992
  ye.forEach(function(He) {
45951
45993
  He.handleDOM.apply(He, De);
45952
45994
  });
@@ -45966,10 +46008,10 @@ function requireQuill() {
45966
46008
  }
45967
46009
  }, {
45968
46010
  key: "handleDOM",
45969
- value: function(Me) {
46011
+ value: function(Pe) {
45970
46012
  for (var He = arguments.length, Ie = Array(He > 1 ? He - 1 : 0), Ae = 1; Ae < He; Ae++)
45971
46013
  Ie[Ae - 1] = arguments[Ae];
45972
- var ze = Me.composedPath ? Me.composedPath()[0] : Me.target, Pe = function(We, Ge) {
46014
+ var ze = Pe.composedPath ? Pe.composedPath()[0] : Pe.target, Me = function(We, Ge) {
45973
46015
  if (!Se || Ge.getRootNode() === document)
45974
46016
  return We.contains(Ge);
45975
46017
  for (; !We.contains(Ge); ) {
@@ -45980,15 +46022,15 @@ function requireQuill() {
45980
46022
  }
45981
46023
  return !0;
45982
46024
  };
45983
- (this.listeners[Me.type] || []).forEach(function(Ne) {
46025
+ (this.listeners[Pe.type] || []).forEach(function(Ne) {
45984
46026
  var We = Ne.node, Ge = Ne.handler;
45985
- (ze === We || Pe(We, ze)) && Ge.apply(void 0, [Me].concat(Ie));
46027
+ (ze === We || Me(We, ze)) && Ge.apply(void 0, [Pe].concat(Ie));
45986
46028
  });
45987
46029
  }
45988
46030
  }, {
45989
46031
  key: "listenDOM",
45990
- value: function(Me, He, Ie) {
45991
- this.listeners[Me] || (this.listeners[Me] = []), this.listeners[Me].push({ node: He, handler: Ie });
46032
+ value: function(Pe, He, Ie) {
46033
+ this.listeners[Pe] || (this.listeners[Pe] = []), this.listeners[Pe].push({ node: He, handler: Ie });
45992
46034
  }
45993
46035
  }]), qe;
45994
46036
  })(ce.default);
@@ -46120,18 +46162,18 @@ function requireQuill() {
46120
46162
  value: !0
46121
46163
  }), te.default = te.Code = void 0;
46122
46164
  var oe = /* @__PURE__ */ (function() {
46123
- function Me(He, Ie) {
46124
- var Ae = [], ze = !0, Pe = !1, Ne = void 0;
46165
+ function Pe(He, Ie) {
46166
+ var Ae = [], ze = !0, Me = !1, Ne = void 0;
46125
46167
  try {
46126
46168
  for (var We = He[Symbol.iterator](), Ge; !(ze = (Ge = We.next()).done) && (Ae.push(Ge.value), !(Ie && Ae.length === Ie)); ze = !0)
46127
46169
  ;
46128
46170
  } catch (Ke) {
46129
- Pe = !0, Ne = Ke;
46171
+ Me = !0, Ne = Ke;
46130
46172
  } finally {
46131
46173
  try {
46132
46174
  !ze && We.return && We.return();
46133
46175
  } finally {
46134
- if (Pe) throw Ne;
46176
+ if (Me) throw Ne;
46135
46177
  }
46136
46178
  }
46137
46179
  return Ae;
@@ -46140,25 +46182,25 @@ function requireQuill() {
46140
46182
  if (Array.isArray(He))
46141
46183
  return He;
46142
46184
  if (Symbol.iterator in Object(He))
46143
- return Me(He, Ie);
46185
+ return Pe(He, Ie);
46144
46186
  throw new TypeError("Invalid attempt to destructure non-iterable instance");
46145
46187
  };
46146
46188
  })(), ne = /* @__PURE__ */ (function() {
46147
- function Me(He, Ie) {
46189
+ function Pe(He, Ie) {
46148
46190
  for (var Ae = 0; Ae < Ie.length; Ae++) {
46149
46191
  var ze = Ie[Ae];
46150
46192
  ze.enumerable = ze.enumerable || !1, ze.configurable = !0, "value" in ze && (ze.writable = !0), Object.defineProperty(He, ze.key, ze);
46151
46193
  }
46152
46194
  }
46153
46195
  return function(He, Ie, Ae) {
46154
- return Ie && Me(He.prototype, Ie), Ae && Me(He, Ae), He;
46196
+ return Ie && Pe(He.prototype, Ie), Ae && Pe(He, Ae), He;
46155
46197
  };
46156
- })(), de = function Me(He, Ie, Ae) {
46198
+ })(), de = function Pe(He, Ie, Ae) {
46157
46199
  He === null && (He = Function.prototype);
46158
46200
  var ze = Object.getOwnPropertyDescriptor(He, Ie);
46159
46201
  if (ze === void 0) {
46160
- var Pe = Object.getPrototypeOf(He);
46161
- return Pe === null ? void 0 : Me(Pe, Ie, Ae);
46202
+ var Me = Object.getPrototypeOf(He);
46203
+ return Me === null ? void 0 : Pe(Me, Ie, Ae);
46162
46204
  } else {
46163
46205
  if ("value" in ze)
46164
46206
  return ze.value;
@@ -46166,33 +46208,33 @@ function requireQuill() {
46166
46208
  return Ne === void 0 ? void 0 : Ne.call(Ae);
46167
46209
  }
46168
46210
  }, ce = re(2), ue = ye(ce), he = re(0), pe = ye(he), fe = re(4), be = ye(fe), me = re(6), ge = ye(me), ve = re(7), _e = ye(ve);
46169
- function ye(Me) {
46170
- return Me && Me.__esModule ? Me : { default: Me };
46211
+ function ye(Pe) {
46212
+ return Pe && Pe.__esModule ? Pe : { default: Pe };
46171
46213
  }
46172
- function Se(Me, He) {
46173
- if (!(Me instanceof He))
46214
+ function Se(Pe, He) {
46215
+ if (!(Pe instanceof He))
46174
46216
  throw new TypeError("Cannot call a class as a function");
46175
46217
  }
46176
- function we(Me, He) {
46177
- if (!Me)
46218
+ function we(Pe, He) {
46219
+ if (!Pe)
46178
46220
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
46179
- return He && (typeof He == "object" || typeof He == "function") ? He : Me;
46221
+ return He && (typeof He == "object" || typeof He == "function") ? He : Pe;
46180
46222
  }
46181
- function Ce(Me, He) {
46223
+ function Ce(Pe, He) {
46182
46224
  if (typeof He != "function" && He !== null)
46183
46225
  throw new TypeError("Super expression must either be null or a function, not " + typeof He);
46184
- Me.prototype = Object.create(He && He.prototype, { constructor: { value: Me, enumerable: !1, writable: !0, configurable: !0 } }), He && (Object.setPrototypeOf ? Object.setPrototypeOf(Me, He) : Me.__proto__ = He);
46226
+ Pe.prototype = Object.create(He && He.prototype, { constructor: { value: Pe, enumerable: !1, writable: !0, configurable: !0 } }), He && (Object.setPrototypeOf ? Object.setPrototypeOf(Pe, He) : Pe.__proto__ = He);
46185
46227
  }
46186
- var qe = (function(Me) {
46187
- Ce(He, Me);
46228
+ var qe = (function(Pe) {
46229
+ Ce(He, Pe);
46188
46230
  function He() {
46189
46231
  return Se(this, He), we(this, (He.__proto__ || Object.getPrototypeOf(He)).apply(this, arguments));
46190
46232
  }
46191
46233
  return He;
46192
46234
  })(ge.default);
46193
46235
  qe.blotName = "code", qe.tagName = "CODE";
46194
- var De = (function(Me) {
46195
- Ce(He, Me);
46236
+ var De = (function(Pe) {
46237
+ Ce(He, Pe);
46196
46238
  function He() {
46197
46239
  return Se(this, He), we(this, (He.__proto__ || Object.getPrototypeOf(He)).apply(this, arguments));
46198
46240
  }
@@ -46202,8 +46244,8 @@ function requireQuill() {
46202
46244
  var Ae = this, ze = this.domNode.textContent;
46203
46245
  return ze.endsWith(`
46204
46246
  `) && (ze = ze.slice(0, -1)), ze.split(`
46205
- `).reduce(function(Pe, Ne) {
46206
- return Pe.insert(Ne).insert(`
46247
+ `).reduce(function(Me, Ne) {
46248
+ return Me.insert(Ne).insert(`
46207
46249
  `, Ae.formats());
46208
46250
  }, new ue.default());
46209
46251
  }
@@ -46211,25 +46253,25 @@ function requireQuill() {
46211
46253
  key: "format",
46212
46254
  value: function(Ae, ze) {
46213
46255
  if (!(Ae === this.statics.blotName && ze)) {
46214
- var Pe = this.descendant(_e.default, this.length() - 1), Ne = oe(Pe, 1), We = Ne[0];
46256
+ var Me = this.descendant(_e.default, this.length() - 1), Ne = oe(Me, 1), We = Ne[0];
46215
46257
  We?.deleteAt(We.length() - 1, 1), de(He.prototype.__proto__ || Object.getPrototypeOf(He.prototype), "format", this).call(this, Ae, ze);
46216
46258
  }
46217
46259
  }
46218
46260
  }, {
46219
46261
  key: "formatAt",
46220
- value: function(Ae, ze, Pe, Ne) {
46221
- if (ze !== 0 && !(pe.default.query(Pe, pe.default.Scope.BLOCK) == null || Pe === this.statics.blotName && Ne === this.statics.formats(this.domNode))) {
46262
+ value: function(Ae, ze, Me, Ne) {
46263
+ if (ze !== 0 && !(pe.default.query(Me, pe.default.Scope.BLOCK) == null || Me === this.statics.blotName && Ne === this.statics.formats(this.domNode))) {
46222
46264
  var We = this.newlineIndex(Ae);
46223
46265
  if (!(We < 0 || We >= Ae + ze)) {
46224
46266
  var Ge = this.newlineIndex(Ae, !0) + 1, Ke = We - Ge + 1, ft = this.isolate(Ge, Ke), Je = ft.next;
46225
- ft.format(Pe, Ne), Je instanceof He && Je.formatAt(0, Ae - Ge + ze - Ke, Pe, Ne);
46267
+ ft.format(Me, Ne), Je instanceof He && Je.formatAt(0, Ae - Ge + ze - Ke, Me, Ne);
46226
46268
  }
46227
46269
  }
46228
46270
  }
46229
46271
  }, {
46230
46272
  key: "insertAt",
46231
- value: function(Ae, ze, Pe) {
46232
- if (Pe == null) {
46273
+ value: function(Ae, ze, Me) {
46274
+ if (Me == null) {
46233
46275
  var Ne = this.descendant(_e.default, Ae), We = oe(Ne, 2), Ge = We[0], Ke = We[1];
46234
46276
  Ge.insertAt(Ke, ze);
46235
46277
  }
@@ -46248,9 +46290,9 @@ function requireQuill() {
46248
46290
  if (ze)
46249
46291
  return this.domNode.textContent.slice(0, Ae).lastIndexOf(`
46250
46292
  `);
46251
- var Pe = this.domNode.textContent.slice(Ae).indexOf(`
46293
+ var Me = this.domNode.textContent.slice(Ae).indexOf(`
46252
46294
  `);
46253
- return Pe > -1 ? Ae + Pe : -1;
46295
+ return Me > -1 ? Ae + Me : -1;
46254
46296
  }
46255
46297
  }, {
46256
46298
  key: "optimize",
@@ -46265,8 +46307,8 @@ function requireQuill() {
46265
46307
  key: "replace",
46266
46308
  value: function(Ae) {
46267
46309
  de(He.prototype.__proto__ || Object.getPrototypeOf(He.prototype), "replace", this).call(this, Ae), [].slice.call(this.domNode.querySelectorAll("*")).forEach(function(ze) {
46268
- var Pe = pe.default.find(ze);
46269
- Pe == null ? ze.parentNode.removeChild(ze) : Pe instanceof pe.default.Embed ? Pe.remove() : Pe.unwrap();
46310
+ var Me = pe.default.find(ze);
46311
+ Me == null ? ze.parentNode.removeChild(ze) : Me instanceof pe.default.Embed ? Me.remove() : Me.unwrap();
46270
46312
  });
46271
46313
  }
46272
46314
  }], [{
@@ -46328,11 +46370,11 @@ function requireQuill() {
46328
46370
  return function(Ze, Le, Ue) {
46329
46371
  return Le && Je(Ze.prototype, Le), Ue && Je(Ze, Ue), Ze;
46330
46372
  };
46331
- })(), ce = re(2), ue = ze(ce), he = re(20), pe = ze(he), fe = re(0), be = ze(fe), me = re(13), ge = ze(me), ve = re(24), _e = ze(ve), ye = re(4), Se = ze(ye), we = re(16), Ce = ze(we), qe = re(21), De = ze(qe), Me = re(11), He = ze(Me), Ie = re(3), Ae = ze(Ie);
46373
+ })(), ce = re(2), ue = ze(ce), he = re(20), pe = ze(he), fe = re(0), be = ze(fe), me = re(13), ge = ze(me), ve = re(24), _e = ze(ve), ye = re(4), Se = ze(ye), we = re(16), Ce = ze(we), qe = re(21), De = ze(qe), Pe = re(11), He = ze(Pe), Ie = re(3), Ae = ze(Ie);
46332
46374
  function ze(Je) {
46333
46375
  return Je && Je.__esModule ? Je : { default: Je };
46334
46376
  }
46335
- function Pe(Je, Ze, Le) {
46377
+ function Me(Je, Ze, Le) {
46336
46378
  return Ze in Je ? Object.defineProperty(Je, Ze, { value: Le, enumerable: !0, configurable: !0, writable: !0 }) : Je[Ze] = Le, Je;
46337
46379
  }
46338
46380
  function Ne(Je, Ze) {
@@ -46453,7 +46495,7 @@ function requireQuill() {
46453
46495
  }, {
46454
46496
  key: "insertEmbed",
46455
46497
  value: function(Le, Ue, Ve) {
46456
- return this.scroll.insertAt(Le, Ue, Ve), this.update(new ue.default().retain(Le).insert(Pe({}, Ue, Ve)));
46498
+ return this.scroll.insertAt(Le, Ue, Ve), this.update(new ue.default().retain(Le).insert(Me({}, Ue, Ve)));
46457
46499
  }
46458
46500
  }, {
46459
46501
  key: "insertText",
@@ -46527,15 +46569,15 @@ function requireQuill() {
46527
46569
  }), te.default = te.Range = void 0;
46528
46570
  var oe = /* @__PURE__ */ (function() {
46529
46571
  function He(Ie, Ae) {
46530
- var ze = [], Pe = !0, Ne = !1, We = void 0;
46572
+ var ze = [], Me = !0, Ne = !1, We = void 0;
46531
46573
  try {
46532
- for (var Ge = Ie[Symbol.iterator](), Ke; !(Pe = (Ke = Ge.next()).done) && (ze.push(Ke.value), !(Ae && ze.length === Ae)); Pe = !0)
46574
+ for (var Ge = Ie[Symbol.iterator](), Ke; !(Me = (Ke = Ge.next()).done) && (ze.push(Ke.value), !(Ae && ze.length === Ae)); Me = !0)
46533
46575
  ;
46534
46576
  } catch (ft) {
46535
46577
  Ne = !0, We = ft;
46536
46578
  } finally {
46537
46579
  try {
46538
- !Pe && Ge.return && Ge.return();
46580
+ !Me && Ge.return && Ge.return();
46539
46581
  } finally {
46540
46582
  if (Ne) throw We;
46541
46583
  }
@@ -46552,8 +46594,8 @@ function requireQuill() {
46552
46594
  })(), ne = /* @__PURE__ */ (function() {
46553
46595
  function He(Ie, Ae) {
46554
46596
  for (var ze = 0; ze < Ae.length; ze++) {
46555
- var Pe = Ae[ze];
46556
- Pe.enumerable = Pe.enumerable || !1, Pe.configurable = !0, "value" in Pe && (Pe.writable = !0), Object.defineProperty(Ie, Pe.key, Pe);
46597
+ var Me = Ae[ze];
46598
+ Me.enumerable = Me.enumerable || !1, Me.configurable = !0, "value" in Me && (Me.writable = !0), Object.defineProperty(Ie, Me.key, Me);
46557
46599
  }
46558
46600
  }
46559
46601
  return function(Ie, Ae, ze) {
@@ -46583,19 +46625,19 @@ function requireQuill() {
46583
46625
  var ze = this;
46584
46626
  we(this, He), this.emitter = Ae, this.scroll = Ie, this.composing = !1, this.mouseDown = !1, this.root = this.scroll.domNode, this.rootDocument = this.root.getRootNode ? this.root.getRootNode() : document, this.cursor = ce.default.create("cursor", this), this.lastRange = this.savedRange = new qe(0, 0), this.handleComposition(), this.handleDragging(), this.emitter.listenDOM(_e.SHADOW_SELECTIONCHANGE, document, function() {
46585
46627
  ze.mouseDown || setTimeout(ze.update.bind(ze, me.default.sources.USER), 1);
46586
- }), this.emitter.on(me.default.events.EDITOR_CHANGE, function(Pe, Ne) {
46587
- Pe === me.default.events.TEXT_CHANGE && Ne.length() > 0 && ze.update(me.default.sources.SILENT);
46628
+ }), this.emitter.on(me.default.events.EDITOR_CHANGE, function(Me, Ne) {
46629
+ Me === me.default.events.TEXT_CHANGE && Ne.length() > 0 && ze.update(me.default.sources.SILENT);
46588
46630
  }), this.emitter.on(me.default.events.SCROLL_BEFORE_UPDATE, function() {
46589
46631
  if (ze.hasFocus()) {
46590
- var Pe = ze.getNativeRange();
46591
- Pe != null && Pe.start.node !== ze.cursor.textNode && ze.emitter.once(me.default.events.SCROLL_UPDATE, function() {
46632
+ var Me = ze.getNativeRange();
46633
+ Me != null && Me.start.node !== ze.cursor.textNode && ze.emitter.once(me.default.events.SCROLL_UPDATE, function() {
46592
46634
  try {
46593
- ze.setNativeRange(Pe.start.node, Pe.start.offset, Pe.end.node, Pe.end.offset);
46635
+ ze.setNativeRange(Me.start.node, Me.start.offset, Me.end.node, Me.end.offset);
46594
46636
  } catch {
46595
46637
  }
46596
46638
  });
46597
46639
  }
46598
- }), this.emitter.on(me.default.events.SCROLL_OPTIMIZE, function(Pe, Ne) {
46640
+ }), this.emitter.on(me.default.events.SCROLL_OPTIMIZE, function(Me, Ne) {
46599
46641
  if (Ne.range) {
46600
46642
  var We = Ne.range, Ge = We.startNode, Ke = We.startOffset, ft = We.endNode, Je = We.endOffset;
46601
46643
  ze.setNativeRange(Ge, Ke, ft, Je);
@@ -46638,16 +46680,16 @@ function requireQuill() {
46638
46680
  value: function(Ae, ze) {
46639
46681
  if (!(this.scroll.whitelist != null && !this.scroll.whitelist[Ae])) {
46640
46682
  this.scroll.update();
46641
- var Pe = this.getNativeRange();
46642
- if (!(Pe == null || !Pe.native.collapsed || ce.default.query(Ae, ce.default.Scope.BLOCK))) {
46643
- if (Pe.start.node !== this.cursor.textNode) {
46644
- var Ne = ce.default.find(Pe.start.node, !1);
46683
+ var Me = this.getNativeRange();
46684
+ if (!(Me == null || !Me.native.collapsed || ce.default.query(Ae, ce.default.Scope.BLOCK))) {
46685
+ if (Me.start.node !== this.cursor.textNode) {
46686
+ var Ne = ce.default.find(Me.start.node, !1);
46645
46687
  if (Ne == null) return;
46646
46688
  if (Ne instanceof ce.default.Leaf) {
46647
- var We = Ne.split(Pe.start.offset);
46689
+ var We = Ne.split(Me.start.offset);
46648
46690
  Ne.parent.insertBefore(this.cursor, We);
46649
46691
  } else
46650
- Ne.insertBefore(this.cursor, Pe.start.node);
46692
+ Ne.insertBefore(this.cursor, Me.start.node);
46651
46693
  this.cursor.attach();
46652
46694
  }
46653
46695
  this.cursor.format(Ae, ze), this.scroll.optimize(), this.setNativeRange(this.cursor.textNode, this.cursor.textNode.data.length), this.update();
@@ -46657,8 +46699,8 @@ function requireQuill() {
46657
46699
  }, {
46658
46700
  key: "getBounds",
46659
46701
  value: function(Ae) {
46660
- var ze = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, Pe = this.scroll.length();
46661
- Ae = Math.min(Ae, Pe - 1), ze = Math.min(Ae + ze, Pe - 1) - Ae;
46702
+ var ze = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, Me = this.scroll.length();
46703
+ Ae = Math.min(Ae, Me - 1), ze = Math.min(Ae + ze, Me - 1) - Ae;
46662
46704
  var Ne = void 0, We = this.scroll.leaf(Ae), Ge = oe(We, 2), Ke = Ge[0], ft = Ge[1];
46663
46705
  if (Ke == null) return null;
46664
46706
  var Je = Ke.position(ft, !0), Ze = oe(Je, 2);
@@ -46706,9 +46748,9 @@ function requireQuill() {
46706
46748
  }, {
46707
46749
  key: "normalizedToRange",
46708
46750
  value: function(Ae) {
46709
- var ze = this, Pe = [[Ae.start.node, Ae.start.offset]];
46710
- Ae.native.collapsed || Pe.push([Ae.end.node, Ae.end.offset]);
46711
- var Ne = Pe.map(function(Ke) {
46751
+ var ze = this, Me = [[Ae.start.node, Ae.start.offset]];
46752
+ Ae.native.collapsed || Me.push([Ae.end.node, Ae.end.offset]);
46753
+ var Ne = Me.map(function(Ke) {
46712
46754
  var ft = oe(Ke, 2), Je = ft[0], Ze = ft[1], Le = ce.default.find(Je, !0), Ue = Le.offset(ze.scroll);
46713
46755
  return Ze === 0 ? Ue : Le instanceof ce.default.Container ? Ue + Le.length() : Ue + Le.index(Je, Ze);
46714
46756
  }), We = Math.min(Math.max.apply(Math, Se(Ne)), this.scroll.length() - 1), Ge = Math.min.apply(Math, [We].concat(Se(Ne)));
@@ -46717,29 +46759,29 @@ function requireQuill() {
46717
46759
  }, {
46718
46760
  key: "normalizeNative",
46719
46761
  value: function(Ae) {
46720
- if (!Me(this.root, Ae.startContainer) || !Ae.collapsed && !Me(this.root, Ae.endContainer))
46762
+ if (!Pe(this.root, Ae.startContainer) || !Ae.collapsed && !Pe(this.root, Ae.endContainer))
46721
46763
  return null;
46722
46764
  var ze = {
46723
46765
  start: { node: Ae.startContainer, offset: Ae.startOffset },
46724
46766
  end: { node: Ae.endContainer, offset: Ae.endOffset },
46725
46767
  native: Ae
46726
46768
  };
46727
- return [ze.start, ze.end].forEach(function(Pe) {
46728
- for (var Ne = Pe.node, We = Pe.offset; !(Ne instanceof Text) && Ne.childNodes.length > 0; )
46769
+ return [ze.start, ze.end].forEach(function(Me) {
46770
+ for (var Ne = Me.node, We = Me.offset; !(Ne instanceof Text) && Ne.childNodes.length > 0; )
46729
46771
  if (Ne.childNodes.length > We)
46730
46772
  Ne = Ne.childNodes[We], We = 0;
46731
46773
  else if (Ne.childNodes.length === We)
46732
46774
  Ne = Ne.lastChild, We = Ne instanceof Text ? Ne.data.length : Ne.childNodes.length + 1;
46733
46775
  else
46734
46776
  break;
46735
- Pe.node = Ne, Pe.offset = We;
46777
+ Me.node = Ne, Me.offset = We;
46736
46778
  }), ze;
46737
46779
  }
46738
46780
  }, {
46739
46781
  key: "rangeToNative",
46740
46782
  value: function(Ae) {
46741
- var ze = this, Pe = Ae.collapsed ? [Ae.index] : [Ae.index, Ae.index + Ae.length], Ne = [], We = this.scroll.length();
46742
- return Pe.forEach(function(Ge, Ke) {
46783
+ var ze = this, Me = Ae.collapsed ? [Ae.index] : [Ae.index, Ae.index + Ae.length], Ne = [], We = this.scroll.length();
46784
+ return Me.forEach(function(Ge, Ke) {
46743
46785
  Ge = Math.min(We - 1, Ge);
46744
46786
  var ft = void 0, Je = ze.scroll.leaf(Ge), Ze = oe(Je, 2), Le = Ze[0], Ue = Ze[1], Ve = Le.position(Ue, Ke !== 0), Qe = oe(Ve, 2);
46745
46787
  ft = Qe[0], Ue = Qe[1], Ne.push(ft, Ue);
@@ -46750,8 +46792,8 @@ function requireQuill() {
46750
46792
  value: function(Ae) {
46751
46793
  var ze = this.lastRange;
46752
46794
  if (ze != null) {
46753
- var Pe = this.getBounds(ze.index, ze.length);
46754
- if (Pe != null) {
46795
+ var Me = this.getBounds(ze.index, ze.length);
46796
+ if (Me != null) {
46755
46797
  var Ne = this.scroll.length() - 1, We = this.scroll.line(Math.min(ze.index, Ne)), Ge = oe(We, 1), Ke = Ge[0], ft = Ke;
46756
46798
  if (ze.length > 0) {
46757
46799
  var Je = this.scroll.line(Math.min(ze.index + ze.length, Ne)), Ze = oe(Je, 1);
@@ -46759,7 +46801,7 @@ function requireQuill() {
46759
46801
  }
46760
46802
  if (!(Ke == null || ft == null)) {
46761
46803
  var Le = Ae.getBoundingClientRect();
46762
- Pe.top < Le.top ? Ae.scrollTop -= Le.top - Pe.top : Pe.bottom > Le.bottom && (Ae.scrollTop += Pe.bottom - Le.bottom);
46804
+ Me.top < Le.top ? Ae.scrollTop -= Le.top - Me.top : Me.bottom > Le.bottom && (Ae.scrollTop += Me.bottom - Le.bottom);
46763
46805
  }
46764
46806
  }
46765
46807
  }
@@ -46767,17 +46809,17 @@ function requireQuill() {
46767
46809
  }, {
46768
46810
  key: "setNativeRange",
46769
46811
  value: function(Ae, ze) {
46770
- var Pe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Ae, Ne = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ze, We = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1;
46771
- if (Ce.info("setNativeRange", Ae, ze, Pe, Ne), !(Ae != null && (this.root.parentNode == null || Ae.parentNode == null || Pe.parentNode == null))) {
46812
+ var Me = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Ae, Ne = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ze, We = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1;
46813
+ if (Ce.info("setNativeRange", Ae, ze, Me, Ne), !(Ae != null && (this.root.parentNode == null || Ae.parentNode == null || Me.parentNode == null))) {
46772
46814
  var Ge = typeof this.rootDocument.getSelection == "function" ? this.rootDocument.getSelection() : document.getSelection();
46773
46815
  if (Ge != null)
46774
46816
  if (Ae != null) {
46775
46817
  this.hasFocus() || this.root.focus();
46776
46818
  var Ke = (this.getNativeRange() || {}).native;
46777
- if (Ke == null || We || Ae !== Ke.startContainer || ze !== Ke.startOffset || Pe !== Ke.endContainer || Ne !== Ke.endOffset) {
46778
- Ae.tagName == "BR" && (ze = [].indexOf.call(Ae.parentNode.childNodes, Ae), Ae = Ae.parentNode), Pe.tagName == "BR" && (Ne = [].indexOf.call(Pe.parentNode.childNodes, Pe), Pe = Pe.parentNode);
46819
+ if (Ke == null || We || Ae !== Ke.startContainer || ze !== Ke.startOffset || Me !== Ke.endContainer || Ne !== Ke.endOffset) {
46820
+ Ae.tagName == "BR" && (ze = [].indexOf.call(Ae.parentNode.childNodes, Ae), Ae = Ae.parentNode), Me.tagName == "BR" && (Ne = [].indexOf.call(Me.parentNode.childNodes, Me), Me = Me.parentNode);
46779
46821
  var ft = document.createRange();
46780
- ft.setStart(Ae, ze), ft.setEnd(Pe, Ne), Ge.removeAllRanges(), Ge.addRange(ft);
46822
+ ft.setStart(Ae, ze), ft.setEnd(Me, Ne), Ge.removeAllRanges(), Ge.addRange(ft);
46781
46823
  }
46782
46824
  } else
46783
46825
  Ge.removeAllRanges(), this.root.blur(), document.body.focus();
@@ -46786,18 +46828,18 @@ function requireQuill() {
46786
46828
  }, {
46787
46829
  key: "setRange",
46788
46830
  value: function(Ae) {
46789
- var ze = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, Pe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : me.default.sources.API;
46790
- if (typeof ze == "string" && (Pe = ze, ze = !1), Ce.info("setRange", Ae), Ae != null) {
46831
+ var ze = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, Me = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : me.default.sources.API;
46832
+ if (typeof ze == "string" && (Me = ze, ze = !1), Ce.info("setRange", Ae), Ae != null) {
46791
46833
  var Ne = this.rangeToNative(Ae);
46792
46834
  this.setNativeRange.apply(this, Se(Ne).concat([ze]));
46793
46835
  } else
46794
46836
  this.setNativeRange(null);
46795
- this.update(Pe);
46837
+ this.update(Me);
46796
46838
  }
46797
46839
  }, {
46798
46840
  key: "update",
46799
46841
  value: function() {
46800
- var Ae = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : me.default.sources.USER, ze = this.lastRange, Pe = this.getRange(), Ne = oe(Pe, 2), We = Ne[0], Ge = Ne[1];
46842
+ var Ae = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : me.default.sources.USER, ze = this.lastRange, Me = this.getRange(), Ne = oe(Me, 2), We = Ne[0], Ge = Ne[1];
46801
46843
  if (this.lastRange = We, this.lastRange != null && (this.savedRange = this.lastRange), !(0, fe.default)(ze, this.lastRange)) {
46802
46844
  var Ke;
46803
46845
  !this.composing && Ge != null && Ge.native.collapsed && Ge.start.node !== this.cursor.textNode && this.cursor.restore();
@@ -46810,7 +46852,7 @@ function requireQuill() {
46810
46852
  }
46811
46853
  }]), He;
46812
46854
  })();
46813
- function Me(He, Ie) {
46855
+ function Pe(He, Ie) {
46814
46856
  try {
46815
46857
  Ie.parentNode;
46816
46858
  } catch {
@@ -47244,65 +47286,65 @@ function requireQuill() {
47244
47286
  typeof ve == "object" && (_e = ve.depth, ye = ve.prototype, Se = ve.includeNonEnumerable, ve = ve.circular);
47245
47287
  var we = [], Ce = [], qe = typeof Buffer < "u";
47246
47288
  typeof ve > "u" && (ve = !0), typeof _e > "u" && (_e = 1 / 0);
47247
- function De(Me, He) {
47248
- if (Me === null)
47289
+ function De(Pe, He) {
47290
+ if (Pe === null)
47249
47291
  return null;
47250
47292
  if (He === 0)
47251
- return Me;
47293
+ return Pe;
47252
47294
  var Ie, Ae;
47253
- if (typeof Me != "object")
47254
- return Me;
47255
- if (oe(Me, ne))
47295
+ if (typeof Pe != "object")
47296
+ return Pe;
47297
+ if (oe(Pe, ne))
47256
47298
  Ie = new ne();
47257
- else if (oe(Me, de))
47299
+ else if (oe(Pe, de))
47258
47300
  Ie = new de();
47259
- else if (oe(Me, ce))
47301
+ else if (oe(Pe, ce))
47260
47302
  Ie = new ce(function(Ze, Le) {
47261
- Me.then(function(Ue) {
47303
+ Pe.then(function(Ue) {
47262
47304
  Ze(De(Ue, He - 1));
47263
47305
  }, function(Ue) {
47264
47306
  Le(De(Ue, He - 1));
47265
47307
  });
47266
47308
  });
47267
- else if (ue.__isArray(Me))
47309
+ else if (ue.__isArray(Pe))
47268
47310
  Ie = [];
47269
- else if (ue.__isRegExp(Me))
47270
- Ie = new RegExp(Me.source, me(Me)), Me.lastIndex && (Ie.lastIndex = Me.lastIndex);
47271
- else if (ue.__isDate(Me))
47272
- Ie = new Date(Me.getTime());
47311
+ else if (ue.__isRegExp(Pe))
47312
+ Ie = new RegExp(Pe.source, me(Pe)), Pe.lastIndex && (Ie.lastIndex = Pe.lastIndex);
47313
+ else if (ue.__isDate(Pe))
47314
+ Ie = new Date(Pe.getTime());
47273
47315
  else {
47274
- if (qe && Buffer.isBuffer(Me))
47275
- return Buffer.allocUnsafe ? Ie = Buffer.allocUnsafe(Me.length) : Ie = new Buffer(Me.length), Me.copy(Ie), Ie;
47276
- oe(Me, Error) ? Ie = Object.create(Me) : typeof ye > "u" ? (Ae = Object.getPrototypeOf(Me), Ie = Object.create(Ae)) : (Ie = Object.create(ye), Ae = ye);
47316
+ if (qe && Buffer.isBuffer(Pe))
47317
+ return Buffer.allocUnsafe ? Ie = Buffer.allocUnsafe(Pe.length) : Ie = new Buffer(Pe.length), Pe.copy(Ie), Ie;
47318
+ oe(Pe, Error) ? Ie = Object.create(Pe) : typeof ye > "u" ? (Ae = Object.getPrototypeOf(Pe), Ie = Object.create(Ae)) : (Ie = Object.create(ye), Ae = ye);
47277
47319
  }
47278
47320
  if (ve) {
47279
- var ze = we.indexOf(Me);
47321
+ var ze = we.indexOf(Pe);
47280
47322
  if (ze != -1)
47281
47323
  return Ce[ze];
47282
- we.push(Me), Ce.push(Ie);
47324
+ we.push(Pe), Ce.push(Ie);
47283
47325
  }
47284
- oe(Me, ne) && Me.forEach(function(Ze, Le) {
47326
+ oe(Pe, ne) && Pe.forEach(function(Ze, Le) {
47285
47327
  var Ue = De(Le, He - 1), Ve = De(Ze, He - 1);
47286
47328
  Ie.set(Ue, Ve);
47287
- }), oe(Me, de) && Me.forEach(function(Ze) {
47329
+ }), oe(Pe, de) && Pe.forEach(function(Ze) {
47288
47330
  var Le = De(Ze, He - 1);
47289
47331
  Ie.add(Le);
47290
47332
  });
47291
- for (var Pe in Me) {
47333
+ for (var Me in Pe) {
47292
47334
  var Ne;
47293
- Ae && (Ne = Object.getOwnPropertyDescriptor(Ae, Pe)), !(Ne && Ne.set == null) && (Ie[Pe] = De(Me[Pe], He - 1));
47335
+ Ae && (Ne = Object.getOwnPropertyDescriptor(Ae, Me)), !(Ne && Ne.set == null) && (Ie[Me] = De(Pe[Me], He - 1));
47294
47336
  }
47295
47337
  if (Object.getOwnPropertySymbols)
47296
- for (var We = Object.getOwnPropertySymbols(Me), Pe = 0; Pe < We.length; Pe++) {
47297
- var Ge = We[Pe], Ke = Object.getOwnPropertyDescriptor(Me, Ge);
47298
- Ke && !Ke.enumerable && !Se || (Ie[Ge] = De(Me[Ge], He - 1), Ke.enumerable || Object.defineProperty(Ie, Ge, {
47338
+ for (var We = Object.getOwnPropertySymbols(Pe), Me = 0; Me < We.length; Me++) {
47339
+ var Ge = We[Me], Ke = Object.getOwnPropertyDescriptor(Pe, Ge);
47340
+ Ke && !Ke.enumerable && !Se || (Ie[Ge] = De(Pe[Ge], He - 1), Ke.enumerable || Object.defineProperty(Ie, Ge, {
47299
47341
  enumerable: !1
47300
47342
  }));
47301
47343
  }
47302
47344
  if (Se)
47303
- for (var ft = Object.getOwnPropertyNames(Me), Pe = 0; Pe < ft.length; Pe++) {
47304
- var Je = ft[Pe], Ke = Object.getOwnPropertyDescriptor(Me, Je);
47305
- Ke && Ke.enumerable || (Ie[Je] = De(Me[Je], He - 1), Object.defineProperty(Ie, Je, {
47345
+ for (var ft = Object.getOwnPropertyNames(Pe), Me = 0; Me < ft.length; Me++) {
47346
+ var Je = ft[Me], Ke = Object.getOwnPropertyDescriptor(Pe, Je);
47347
+ Ke && Ke.enumerable || (Ie[Je] = De(Pe[Je], He - 1), Object.defineProperty(Ie, Je, {
47306
47348
  enumerable: !1
47307
47349
  }));
47308
47350
  }
@@ -47349,9 +47391,9 @@ function requireQuill() {
47349
47391
  });
47350
47392
  var oe = /* @__PURE__ */ (function() {
47351
47393
  function Ie(Ae, ze) {
47352
- var Pe = [], Ne = !0, We = !1, Ge = void 0;
47394
+ var Me = [], Ne = !0, We = !1, Ge = void 0;
47353
47395
  try {
47354
- for (var Ke = Ae[Symbol.iterator](), ft; !(Ne = (ft = Ke.next()).done) && (Pe.push(ft.value), !(ze && Pe.length === ze)); Ne = !0)
47396
+ for (var Ke = Ae[Symbol.iterator](), ft; !(Ne = (ft = Ke.next()).done) && (Me.push(ft.value), !(ze && Me.length === ze)); Ne = !0)
47355
47397
  ;
47356
47398
  } catch (Je) {
47357
47399
  We = !0, Ge = Je;
@@ -47362,7 +47404,7 @@ function requireQuill() {
47362
47404
  if (We) throw Ge;
47363
47405
  }
47364
47406
  }
47365
- return Pe;
47407
+ return Me;
47366
47408
  }
47367
47409
  return function(Ae, ze) {
47368
47410
  if (Array.isArray(Ae))
@@ -47373,25 +47415,25 @@ function requireQuill() {
47373
47415
  };
47374
47416
  })(), ne = /* @__PURE__ */ (function() {
47375
47417
  function Ie(Ae, ze) {
47376
- for (var Pe = 0; Pe < ze.length; Pe++) {
47377
- var Ne = ze[Pe];
47418
+ for (var Me = 0; Me < ze.length; Me++) {
47419
+ var Ne = ze[Me];
47378
47420
  Ne.enumerable = Ne.enumerable || !1, Ne.configurable = !0, "value" in Ne && (Ne.writable = !0), Object.defineProperty(Ae, Ne.key, Ne);
47379
47421
  }
47380
47422
  }
47381
- return function(Ae, ze, Pe) {
47382
- return ze && Ie(Ae.prototype, ze), Pe && Ie(Ae, Pe), Ae;
47423
+ return function(Ae, ze, Me) {
47424
+ return ze && Ie(Ae.prototype, ze), Me && Ie(Ae, Me), Ae;
47383
47425
  };
47384
- })(), de = function Ie(Ae, ze, Pe) {
47426
+ })(), de = function Ie(Ae, ze, Me) {
47385
47427
  Ae === null && (Ae = Function.prototype);
47386
47428
  var Ne = Object.getOwnPropertyDescriptor(Ae, ze);
47387
47429
  if (Ne === void 0) {
47388
47430
  var We = Object.getPrototypeOf(Ae);
47389
- return We === null ? void 0 : Ie(We, ze, Pe);
47431
+ return We === null ? void 0 : Ie(We, ze, Me);
47390
47432
  } else {
47391
47433
  if ("value" in Ne)
47392
47434
  return Ne.value;
47393
47435
  var Ge = Ne.get;
47394
- return Ge === void 0 ? void 0 : Ge.call(Pe);
47436
+ return Ge === void 0 ? void 0 : Ge.call(Me);
47395
47437
  }
47396
47438
  }, ce = re(0), ue = we(ce), he = re(8), pe = we(he), fe = re(4), be = we(fe), me = re(16), ge = we(me), ve = re(13), _e = we(ve), ye = re(25), Se = we(ye);
47397
47439
  function we(Ie) {
@@ -47411,15 +47453,15 @@ function requireQuill() {
47411
47453
  throw new TypeError("Super expression must either be null or a function, not " + typeof Ae);
47412
47454
  Ie.prototype = Object.create(Ae && Ae.prototype, { constructor: { value: Ie, enumerable: !1, writable: !0, configurable: !0 } }), Ae && (Object.setPrototypeOf ? Object.setPrototypeOf(Ie, Ae) : Ie.__proto__ = Ae);
47413
47455
  }
47414
- function Me(Ie) {
47456
+ function Pe(Ie) {
47415
47457
  return Ie instanceof be.default || Ie instanceof fe.BlockEmbed;
47416
47458
  }
47417
47459
  var He = (function(Ie) {
47418
47460
  De(Ae, Ie);
47419
- function Ae(ze, Pe) {
47461
+ function Ae(ze, Me) {
47420
47462
  Ce(this, Ae);
47421
47463
  var Ne = qe(this, (Ae.__proto__ || Object.getPrototypeOf(Ae)).call(this, ze));
47422
- return Ne.emitter = Pe.emitter, Array.isArray(Pe.whitelist) && (Ne.whitelist = Pe.whitelist.reduce(function(We, Ge) {
47464
+ return Ne.emitter = Me.emitter, Array.isArray(Me.whitelist) && (Ne.whitelist = Me.whitelist.reduce(function(We, Ge) {
47423
47465
  return We[Ge] = !0, We;
47424
47466
  }, {})), Ne.domNode.addEventListener("DOMNodeInserted", function() {
47425
47467
  }), Ne.optimize(), Ne.enable(), Ne;
@@ -47436,9 +47478,9 @@ function requireQuill() {
47436
47478
  }
47437
47479
  }, {
47438
47480
  key: "deleteAt",
47439
- value: function(Pe, Ne) {
47440
- var We = this.line(Pe), Ge = oe(We, 2), Ke = Ge[0], ft = Ge[1], Je = this.line(Pe + Ne), Ze = oe(Je, 1), Le = Ze[0];
47441
- if (de(Ae.prototype.__proto__ || Object.getPrototypeOf(Ae.prototype), "deleteAt", this).call(this, Pe, Ne), Le != null && Ke !== Le && ft > 0) {
47481
+ value: function(Me, Ne) {
47482
+ var We = this.line(Me), Ge = oe(We, 2), Ke = Ge[0], ft = Ge[1], Je = this.line(Me + Ne), Ze = oe(Je, 1), Le = Ze[0];
47483
+ if (de(Ae.prototype.__proto__ || Object.getPrototypeOf(Ae.prototype), "deleteAt", this).call(this, Me, Ne), Le != null && Ke !== Le && ft > 0) {
47442
47484
  if (Ke instanceof fe.BlockEmbed || Le instanceof fe.BlockEmbed) {
47443
47485
  this.optimize();
47444
47486
  return;
@@ -47461,19 +47503,19 @@ function requireQuill() {
47461
47503
  }, {
47462
47504
  key: "enable",
47463
47505
  value: function() {
47464
- var Pe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
47465
- this.domNode.setAttribute("contenteditable", Pe);
47506
+ var Me = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
47507
+ this.domNode.setAttribute("contenteditable", Me);
47466
47508
  }
47467
47509
  }, {
47468
47510
  key: "formatAt",
47469
- value: function(Pe, Ne, We, Ge) {
47470
- this.whitelist != null && !this.whitelist[We] || (de(Ae.prototype.__proto__ || Object.getPrototypeOf(Ae.prototype), "formatAt", this).call(this, Pe, Ne, We, Ge), this.optimize());
47511
+ value: function(Me, Ne, We, Ge) {
47512
+ this.whitelist != null && !this.whitelist[We] || (de(Ae.prototype.__proto__ || Object.getPrototypeOf(Ae.prototype), "formatAt", this).call(this, Me, Ne, We, Ge), this.optimize());
47471
47513
  }
47472
47514
  }, {
47473
47515
  key: "insertAt",
47474
- value: function(Pe, Ne, We) {
47516
+ value: function(Me, Ne, We) {
47475
47517
  if (!(We != null && this.whitelist != null && !this.whitelist[Ne])) {
47476
- if (Pe >= this.length())
47518
+ if (Me >= this.length())
47477
47519
  if (We == null || ue.default.query(Ne, ue.default.Scope.BLOCK) == null) {
47478
47520
  var Ge = ue.default.create(this.statics.defaultChild);
47479
47521
  this.appendChild(Ge), We == null && Ne.endsWith(`
@@ -47483,57 +47525,57 @@ function requireQuill() {
47483
47525
  this.appendChild(Ke);
47484
47526
  }
47485
47527
  else
47486
- de(Ae.prototype.__proto__ || Object.getPrototypeOf(Ae.prototype), "insertAt", this).call(this, Pe, Ne, We);
47528
+ de(Ae.prototype.__proto__ || Object.getPrototypeOf(Ae.prototype), "insertAt", this).call(this, Me, Ne, We);
47487
47529
  this.optimize();
47488
47530
  }
47489
47531
  }
47490
47532
  }, {
47491
47533
  key: "insertBefore",
47492
- value: function(Pe, Ne) {
47493
- if (Pe.statics.scope === ue.default.Scope.INLINE_BLOT) {
47534
+ value: function(Me, Ne) {
47535
+ if (Me.statics.scope === ue.default.Scope.INLINE_BLOT) {
47494
47536
  var We = ue.default.create(this.statics.defaultChild);
47495
- We.appendChild(Pe), Pe = We;
47537
+ We.appendChild(Me), Me = We;
47496
47538
  }
47497
- de(Ae.prototype.__proto__ || Object.getPrototypeOf(Ae.prototype), "insertBefore", this).call(this, Pe, Ne);
47539
+ de(Ae.prototype.__proto__ || Object.getPrototypeOf(Ae.prototype), "insertBefore", this).call(this, Me, Ne);
47498
47540
  }
47499
47541
  }, {
47500
47542
  key: "leaf",
47501
- value: function(Pe) {
47502
- return this.path(Pe).pop() || [null, -1];
47543
+ value: function(Me) {
47544
+ return this.path(Me).pop() || [null, -1];
47503
47545
  }
47504
47546
  }, {
47505
47547
  key: "line",
47506
- value: function(Pe) {
47507
- return Pe === this.length() ? this.line(Pe - 1) : this.descendant(Me, Pe);
47548
+ value: function(Me) {
47549
+ return Me === this.length() ? this.line(Me - 1) : this.descendant(Pe, Me);
47508
47550
  }
47509
47551
  }, {
47510
47552
  key: "lines",
47511
47553
  value: function() {
47512
- var Pe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, Ne = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE, We = function Ge(Ke, ft, Je) {
47554
+ var Me = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, Ne = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE, We = function Ge(Ke, ft, Je) {
47513
47555
  var Ze = [], Le = Je;
47514
47556
  return Ke.children.forEachAt(ft, Je, function(Ue, Ve, Qe) {
47515
- Me(Ue) ? Ze.push(Ue) : Ue instanceof ue.default.Container && (Ze = Ze.concat(Ge(Ue, Ve, Le))), Le -= Qe;
47557
+ Pe(Ue) ? Ze.push(Ue) : Ue instanceof ue.default.Container && (Ze = Ze.concat(Ge(Ue, Ve, Le))), Le -= Qe;
47516
47558
  }), Ze;
47517
47559
  };
47518
- return We(this, Pe, Ne);
47560
+ return We(this, Me, Ne);
47519
47561
  }
47520
47562
  }, {
47521
47563
  key: "optimize",
47522
47564
  value: function() {
47523
- var Pe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], Ne = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
47524
- this.batch !== !0 && (de(Ae.prototype.__proto__ || Object.getPrototypeOf(Ae.prototype), "optimize", this).call(this, Pe, Ne), Pe.length > 0 && this.emitter.emit(pe.default.events.SCROLL_OPTIMIZE, Pe, Ne));
47565
+ var Me = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], Ne = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
47566
+ this.batch !== !0 && (de(Ae.prototype.__proto__ || Object.getPrototypeOf(Ae.prototype), "optimize", this).call(this, Me, Ne), Me.length > 0 && this.emitter.emit(pe.default.events.SCROLL_OPTIMIZE, Me, Ne));
47525
47567
  }
47526
47568
  }, {
47527
47569
  key: "path",
47528
- value: function(Pe) {
47529
- return de(Ae.prototype.__proto__ || Object.getPrototypeOf(Ae.prototype), "path", this).call(this, Pe).slice(1);
47570
+ value: function(Me) {
47571
+ return de(Ae.prototype.__proto__ || Object.getPrototypeOf(Ae.prototype), "path", this).call(this, Me).slice(1);
47530
47572
  }
47531
47573
  }, {
47532
47574
  key: "update",
47533
- value: function(Pe) {
47575
+ value: function(Me) {
47534
47576
  if (this.batch !== !0) {
47535
47577
  var Ne = pe.default.sources.USER;
47536
- typeof Pe == "string" && (Ne = Pe), Array.isArray(Pe) || (Pe = this.observer.takeRecords()), Pe.length > 0 && this.emitter.emit(pe.default.events.SCROLL_BEFORE_UPDATE, Ne, Pe), de(Ae.prototype.__proto__ || Object.getPrototypeOf(Ae.prototype), "update", this).call(this, Pe.concat([])), Pe.length > 0 && this.emitter.emit(pe.default.events.SCROLL_UPDATE, Ne, Pe);
47578
+ typeof Me == "string" && (Ne = Me), Array.isArray(Me) || (Me = this.observer.takeRecords()), Me.length > 0 && this.emitter.emit(pe.default.events.SCROLL_BEFORE_UPDATE, Ne, Me), de(Ae.prototype.__proto__ || Object.getPrototypeOf(Ae.prototype), "update", this).call(this, Me.concat([])), Me.length > 0 && this.emitter.emit(pe.default.events.SCROLL_UPDATE, Ne, Me);
47537
47579
  }
47538
47580
  }
47539
47581
  }]), Ae;
@@ -47584,7 +47626,7 @@ function requireQuill() {
47584
47626
  return function(Ye, rt, ot) {
47585
47627
  return rt && Be(Ye.prototype, rt), ot && Be(Ye, ot), Ye;
47586
47628
  };
47587
- })(), 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), ye = re(0), Se = Ie(ye), we = re(5), Ce = Ie(we), qe = re(10), De = Ie(qe), Me = re(9), He = Ie(Me);
47629
+ })(), 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), ye = re(0), Se = Ie(ye), we = re(5), Ce = Ie(we), qe = re(10), De = Ie(qe), Pe = re(9), He = Ie(Pe);
47588
47630
  function Ie(Be) {
47589
47631
  return Be && Be.__esModule ? Be : { default: Be };
47590
47632
  }
@@ -47595,7 +47637,7 @@ function requireQuill() {
47595
47637
  if (!(Be instanceof Ye))
47596
47638
  throw new TypeError("Cannot call a class as a function");
47597
47639
  }
47598
- function Pe(Be, Ye) {
47640
+ function Me(Be, Ye) {
47599
47641
  if (!Be)
47600
47642
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
47601
47643
  return Ye && (typeof Ye == "object" || typeof Ye == "function") ? Ye : Be;
@@ -47616,7 +47658,7 @@ function requireQuill() {
47616
47658
  }]);
47617
47659
  function Ye(rt, ot) {
47618
47660
  ze(this, Ye);
47619
- var _t = Pe(this, (Ye.__proto__ || Object.getPrototypeOf(Ye)).call(this, rt, ot));
47661
+ var _t = Me(this, (Ye.__proto__ || Object.getPrototypeOf(Ye)).call(this, rt, ot));
47620
47662
  return _t.bindings = {}, Object.keys(_t.options.bindings).forEach(function(kt) {
47621
47663
  kt === "list autofill" && rt.scroll.whitelist != null && !rt.scroll.whitelist.list || _t.options.bindings[kt] && _t.addBinding(_t.options.bindings[kt]);
47622
47664
  }), _t.addBinding({ key: Ye.keys.ENTER, shiftKey: null }, Ue), _t.addBinding({ key: Ye.keys.ENTER, metaKey: null, ctrlKey: null, altKey: null }, function() {
@@ -47642,7 +47684,7 @@ function requireQuill() {
47642
47684
  if (It.length !== 0) {
47643
47685
  var zt = ot.quill.getSelection();
47644
47686
  if (!(zt == null || !ot.quill.hasFocus())) {
47645
- var Nt = ot.quill.getLine(zt.index), Bt = ne(Nt, 2), rs = Bt[0], Yt = Bt[1], gt = ot.quill.getLeaf(zt.index), mt = ne(gt, 2), xt = mt[0], Ct = mt[1], wt = zt.length === 0 ? [xt, Ct] : ot.quill.getLeaf(zt.index + zt.length), Lt = ne(wt, 2), Mt = Lt[0], Ft = Lt[1], cs = xt instanceof Se.default.Text ? xt.value().slice(0, Ct) : "", ds = Mt instanceof Se.default.Text ? Mt.value().slice(Ft) : "", Kt = {
47687
+ var Nt = ot.quill.getLine(zt.index), Bt = ne(Nt, 2), rs = Bt[0], Yt = Bt[1], gt = ot.quill.getLeaf(zt.index), mt = ne(gt, 2), xt = mt[0], Ct = mt[1], wt = zt.length === 0 ? [xt, Ct] : ot.quill.getLeaf(zt.index + zt.length), Lt = ne(wt, 2), Pt = Lt[0], Ft = Lt[1], cs = xt instanceof Se.default.Text ? xt.value().slice(0, Ct) : "", ds = Pt instanceof Se.default.Text ? Pt.value().slice(Ft) : "", Kt = {
47646
47688
  collapsed: zt.length === 0,
47647
47689
  empty: zt.length === 0 && rs.length() <= 1,
47648
47690
  format: ot.quill.getFormat(zt),
@@ -47922,13 +47964,13 @@ function requireQuill() {
47922
47964
  function _e(ye, Se) {
47923
47965
  var we = [], Ce = !0, qe = !1, De = void 0;
47924
47966
  try {
47925
- for (var Me = ye[Symbol.iterator](), He; !(Ce = (He = Me.next()).done) && (we.push(He.value), !(Se && we.length === Se)); Ce = !0)
47967
+ for (var Pe = ye[Symbol.iterator](), He; !(Ce = (He = Pe.next()).done) && (we.push(He.value), !(Se && we.length === Se)); Ce = !0)
47926
47968
  ;
47927
47969
  } catch (Ie) {
47928
47970
  qe = !0, De = Ie;
47929
47971
  } finally {
47930
47972
  try {
47931
- !Ce && Me.return && Me.return();
47973
+ !Ce && Pe.return && Pe.return();
47932
47974
  } finally {
47933
47975
  if (qe) throw De;
47934
47976
  }
@@ -48031,10 +48073,10 @@ function requireQuill() {
48031
48073
  key: "restore",
48032
48074
  value: function() {
48033
48075
  if (!(this.selection.composing || this.parent == null)) {
48034
- var we = this.textNode, Ce = this.selection.getNativeRange(), qe = void 0, De = void 0, Me = void 0;
48076
+ var we = this.textNode, Ce = this.selection.getNativeRange(), qe = void 0, De = void 0, Pe = void 0;
48035
48077
  if (Ce != null && Ce.start.node === we && Ce.end.node === we) {
48036
48078
  var He = [we, Ce.start.offset, Ce.end.offset];
48037
- qe = He[0], De = He[1], Me = He[2];
48079
+ qe = He[0], De = He[1], Pe = He[2];
48038
48080
  }
48039
48081
  for (; this.domNode.lastChild != null && this.domNode.lastChild !== this.textNode; )
48040
48082
  this.domNode.parentNode.insertBefore(this.domNode.lastChild, this.domNode);
@@ -48043,14 +48085,14 @@ function requireQuill() {
48043
48085
  this.next instanceof pe.default ? (qe = this.next.domNode, this.next.insertAt(0, Ie), this.textNode.data = ye.CONTENTS) : (this.textNode.data = Ie, this.parent.insertBefore(ue.default.create(this.textNode), this), this.textNode = document.createTextNode(ye.CONTENTS), this.domNode.appendChild(this.textNode));
48044
48086
  }
48045
48087
  if (this.remove(), De != null) {
48046
- var Ae = [De, Me].map(function(Pe) {
48047
- return Math.max(0, Math.min(qe.data.length, Pe - 1));
48088
+ var Ae = [De, Pe].map(function(Me) {
48089
+ return Math.max(0, Math.min(qe.data.length, Me - 1));
48048
48090
  }), ze = oe(Ae, 2);
48049
- return De = ze[0], Me = ze[1], {
48091
+ return De = ze[0], Pe = ze[1], {
48050
48092
  startNode: qe,
48051
48093
  startOffset: De,
48052
48094
  endNode: qe,
48053
- endOffset: Me
48095
+ endOffset: Pe
48054
48096
  };
48055
48097
  }
48056
48098
  }
@@ -48059,8 +48101,8 @@ function requireQuill() {
48059
48101
  key: "update",
48060
48102
  value: function(we, Ce) {
48061
48103
  var qe = this;
48062
- if (we.some(function(Me) {
48063
- return Me.type === "characterData" && Me.target === qe.textNode;
48104
+ if (we.some(function(Pe) {
48105
+ return Pe.type === "characterData" && Pe.target === qe.textNode;
48064
48106
  })) {
48065
48107
  var De = this.restore();
48066
48108
  De && (Ce.range = De);
@@ -48405,7 +48447,7 @@ function requireQuill() {
48405
48447
  Object.defineProperty(te, "__esModule", {
48406
48448
  value: !0
48407
48449
  });
48408
- var oe = re(0), ne = We(oe), de = re(5), ce = We(de), ue = re(4), he = We(ue), pe = re(16), fe = We(pe), be = re(25), me = We(be), ge = re(24), ve = We(ge), _e = re(36), ye = We(_e), Se = re(6), we = We(Se), Ce = re(22), qe = We(Ce), De = re(7), Me = We(De), He = re(56), Ie = We(He), Ae = re(43), ze = We(Ae), Pe = re(23), Ne = We(Pe);
48450
+ var oe = re(0), ne = We(oe), de = re(5), ce = We(de), ue = re(4), he = We(ue), pe = re(16), fe = We(pe), be = re(25), me = We(be), ge = re(24), ve = We(ge), _e = re(36), ye = We(_e), Se = re(6), we = We(Se), Ce = re(22), qe = We(Ce), De = re(7), Pe = We(De), He = re(56), Ie = We(He), Ae = re(43), ze = We(Ae), Me = re(23), Ne = We(Me);
48409
48451
  function We(Ge) {
48410
48452
  return Ge && Ge.__esModule ? Ge : { default: Ge };
48411
48453
  }
@@ -48418,11 +48460,11 @@ function requireQuill() {
48418
48460
  "blots/embed": ye.default,
48419
48461
  "blots/inline": we.default,
48420
48462
  "blots/scroll": qe.default,
48421
- "blots/text": Me.default,
48463
+ "blots/text": Pe.default,
48422
48464
  "modules/clipboard": Ie.default,
48423
48465
  "modules/history": ze.default,
48424
48466
  "modules/keyboard": Ne.default
48425
- }), ne.default.register(he.default, fe.default, ve.default, we.default, qe.default, Me.default), te.default = ce.default;
48467
+ }), ne.default.register(he.default, fe.default, ve.default, we.default, qe.default, Pe.default), te.default = ce.default;
48426
48468
  }),
48427
48469
  /* 30 */
48428
48470
  /***/
@@ -48650,11 +48692,11 @@ function requireQuill() {
48650
48692
  return pe.includes(Ie.nodeType);
48651
48693
  }
48652
48694
  function be(Ie, Ae, ze) {
48653
- var Pe = Ae.childNodes || Ae.children;
48654
- if (!Pe)
48695
+ var Me = Ae.childNodes || Ae.children;
48696
+ if (!Me)
48655
48697
  return Ae;
48656
- for (var Ne = 0; Ne < Pe.length; ++Ne) {
48657
- var We = ze ? Ne : Pe.length - 1 - Ne, Ge = Pe[We];
48698
+ for (var Ne = 0; Ne < Me.length; ++Ne) {
48699
+ var We = ze ? Ne : Me.length - 1 - Ne, Ge = Me[We];
48658
48700
  if (fe(Ge) && Ie.containsNode(Ge, !0))
48659
48701
  return Ie.containsNode(Ge, !1) ? Ge : be(Ie, Ge, ze);
48660
48702
  }
@@ -48670,8 +48712,8 @@ function requireQuill() {
48670
48712
  return document.addEventListener("selectionchange", function(ze) {
48671
48713
  Ie || (document.dispatchEvent(new CustomEvent(oe)), Ie = !0, window.setTimeout(function() {
48672
48714
  Ie = !1;
48673
- }, 2), Ae.forEach(function(Pe) {
48674
- return Pe(ze);
48715
+ }, 2), Ae.forEach(function(Me) {
48716
+ return Me(ze);
48675
48717
  }));
48676
48718
  }), function(ze) {
48677
48719
  return Ae.push(ze);
@@ -48684,25 +48726,25 @@ function requireQuill() {
48684
48726
  }));
48685
48727
  });
48686
48728
  function _e(Ie, Ae, ze) {
48687
- for (var Pe = Ae; (Ae = Se(Ae, ze)) && Ae.contains(Pe); )
48729
+ for (var Me = Ae; (Ae = Se(Ae, ze)) && Ae.contains(Me); )
48688
48730
  ;
48689
48731
  return Ae ? Ae instanceof Element && Ie.containsNode(Ae, !0) : !1;
48690
48732
  }
48691
48733
  function ye(Ie, Ae, ze) {
48692
48734
  if (Ie.type === "Range") {
48693
- var Pe = function() {
48735
+ var Me = function() {
48694
48736
  return Ie.toString().length;
48695
- }, Ne = Pe();
48737
+ }, Ne = Me();
48696
48738
  if (Ne === 1 && ge && Ae === ze) {
48697
48739
  Ie.extend(Ae, 0), Ie.collapseToEnd();
48698
48740
  return;
48699
48741
  }
48700
48742
  var We = void 0;
48701
- if (Ie.modify("extend", "forward", "character"), We = Pe(), We > Ne || _e(Ie, ze, !0))
48743
+ if (Ie.modify("extend", "forward", "character"), We = Me(), We > Ne || _e(Ie, ze, !0))
48702
48744
  return Ie.modify("extend", "backward", "character"), !0;
48703
48745
  if (We < Ne || !Ie.containsNode(Ae))
48704
48746
  return Ie.modify("extend", "backward", "character"), !1;
48705
- if (Ie.modify("extend", "backward", "character"), We = Pe(), We > Ne || _e(Ie, Ae, !1))
48747
+ if (Ie.modify("extend", "backward", "character"), We = Me(), We > Ne || _e(Ie, Ae, !1))
48706
48748
  return Ie.modify("extend", "forward", "character"), !1;
48707
48749
  if (We < Ne || !Ie.containsNode(ze))
48708
48750
  return Ie.modify("extend", "forward", "character"), !0;
@@ -48736,23 +48778,23 @@ function requireQuill() {
48736
48778
  var ze = qe.get(Ie);
48737
48779
  if (ze)
48738
48780
  return ze;
48739
- var Pe = He(Ie);
48740
- return qe.set(Ie, Pe.range), window.setTimeout(function() {
48781
+ var Me = He(Ie);
48782
+ return qe.set(Ie, Me.range), window.setTimeout(function() {
48741
48783
  qe.delete(Ie);
48742
- }, 0), Pe.range;
48784
+ }, 0), Me.range;
48743
48785
  }
48744
- var Me = document.createTextNode("");
48786
+ var Pe = document.createTextNode("");
48745
48787
  function He(Ie) {
48746
48788
  var Ae = document.createRange(), ze = window.getSelection();
48747
48789
  if (!ze.containsNode(Ie.host, !0))
48748
48790
  return { range: null, mode: "none" };
48749
- Ie.insertBefore(Me, Ie.childNodes[0]);
48750
- var Pe = ze.containsNode(Me);
48751
- if (Me.remove(), Pe)
48791
+ Ie.insertBefore(Pe, Ie.childNodes[0]);
48792
+ var Me = ze.containsNode(Pe);
48793
+ if (Pe.remove(), Me)
48752
48794
  return { range: null, mode: "outside-before" };
48753
- Ie.appendChild(Me);
48754
- var Ne = ze.containsNode(Me);
48755
- if (Me.remove(), Ne)
48795
+ Ie.appendChild(Pe);
48796
+ var Ne = ze.containsNode(Pe);
48797
+ if (Pe.remove(), Ne)
48756
48798
  return { range: null, mode: "outside-after" };
48757
48799
  var We = function() {
48758
48800
  return ze.toString().length;
@@ -48889,10 +48931,10 @@ function requireQuill() {
48889
48931
  var Ce = void 0, qe = void 0, De = we.data.split(ge).join("");
48890
48932
  if (we === this.leftGuard)
48891
48933
  if (this.prev instanceof he.default) {
48892
- var Me = this.prev.length();
48893
- this.prev.insertAt(Me, De), Ce = {
48934
+ var Pe = this.prev.length();
48935
+ this.prev.insertAt(Pe, De), Ce = {
48894
48936
  startNode: this.prev.domNode,
48895
- startOffset: Me + De.length
48937
+ startOffset: Pe + De.length
48896
48938
  };
48897
48939
  } else
48898
48940
  qe = document.createTextNode(De), this.parent.insertBefore(ce.default.create(qe), this), Ce = {
@@ -48914,8 +48956,8 @@ function requireQuill() {
48914
48956
  var qe = this;
48915
48957
  we.forEach(function(De) {
48916
48958
  if (De.type === "characterData" && (De.target === qe.leftGuard || De.target === qe.rightGuard)) {
48917
- var Me = qe.restore(De.target);
48918
- Me && (Ce.range = Me);
48959
+ var Pe = qe.restore(De.target);
48960
+ Pe && (Ce.range = Pe);
48919
48961
  }
48920
48962
  });
48921
48963
  }
@@ -49146,17 +49188,17 @@ function requireQuill() {
49146
49188
  function we(Ce, qe) {
49147
49189
  be(this, we);
49148
49190
  var De = me(this, (we.__proto__ || Object.getPrototypeOf(we)).call(this, Ce, qe));
49149
- return De.lastRecorded = 0, De.ignoreChange = !1, De.clear(), De.quill.on(ue.default.events.EDITOR_CHANGE, function(Me, He, Ie, Ae) {
49150
- Me !== ue.default.events.TEXT_CHANGE || De.ignoreChange || (!De.options.userOnly || Ae === ue.default.sources.USER ? De.record(He, Ie) : De.transform(He));
49191
+ return De.lastRecorded = 0, De.ignoreChange = !1, De.clear(), De.quill.on(ue.default.events.EDITOR_CHANGE, function(Pe, He, Ie, Ae) {
49192
+ Pe !== ue.default.events.TEXT_CHANGE || De.ignoreChange || (!De.options.userOnly || Ae === ue.default.sources.USER ? De.record(He, Ie) : De.transform(He));
49151
49193
  }), De.quill.keyboard.addBinding({ key: "Z", shortKey: !0 }, De.undo.bind(De)), De.quill.keyboard.addBinding({ key: "Z", shortKey: !0, shiftKey: !0 }, De.redo.bind(De)), /Win/i.test(navigator.platform) && De.quill.keyboard.addBinding({ key: "Y", shortKey: !0 }, De.redo.bind(De)), De;
49152
49194
  }
49153
49195
  return oe(we, [{
49154
49196
  key: "change",
49155
49197
  value: function(qe, De) {
49156
49198
  if (this.stack[qe].length !== 0) {
49157
- var Me = this.stack[qe].pop();
49158
- this.stack[De].push(Me), this.lastRecorded = 0, this.ignoreChange = !0, this.quill.updateContents(Me[qe], ue.default.sources.USER), this.ignoreChange = !1;
49159
- var He = ye(Me[qe]);
49199
+ var Pe = this.stack[qe].pop();
49200
+ this.stack[De].push(Pe), this.lastRecorded = 0, this.ignoreChange = !0, this.quill.updateContents(Pe[qe], ue.default.sources.USER), this.ignoreChange = !1;
49201
+ var He = ye(Pe[qe]);
49160
49202
  this.quill.setSelection(He);
49161
49203
  }
49162
49204
  }
@@ -49175,15 +49217,15 @@ function requireQuill() {
49175
49217
  value: function(qe, De) {
49176
49218
  if (qe.ops.length !== 0) {
49177
49219
  this.stack.redo = [];
49178
- var Me = this.quill.getContents().diff(De), He = Date.now();
49220
+ var Pe = this.quill.getContents().diff(De), He = Date.now();
49179
49221
  if (this.lastRecorded + this.options.delay > He && this.stack.undo.length > 0) {
49180
49222
  var Ie = this.stack.undo.pop();
49181
- Me = Me.compose(Ie.undo), qe = Ie.redo.compose(qe);
49223
+ Pe = Pe.compose(Ie.undo), qe = Ie.redo.compose(qe);
49182
49224
  } else
49183
49225
  this.lastRecorded = He;
49184
49226
  this.stack.undo.push({
49185
49227
  redo: qe,
49186
- undo: Me
49228
+ undo: Pe
49187
49229
  }), this.stack.undo.length > this.options.maxStack && this.stack.undo.shift();
49188
49230
  }
49189
49231
  }
@@ -49256,7 +49298,7 @@ function requireQuill() {
49256
49298
  var rt = Be.get;
49257
49299
  return rt === void 0 ? void 0 : rt.call(Xe);
49258
49300
  }
49259
- }, 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), ye = He(_e), Se = re(61), we = He(Se), Ce = re(28), qe = He(Ce), De = re(62), Me = He(De);
49301
+ }, 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), ye = He(_e), Se = re(61), we = He(Se), Ce = re(28), qe = He(Ce), De = re(62), Pe = He(De);
49260
49302
  function He(Ue) {
49261
49303
  return Ue && Ue.__esModule ? Ue : { default: Ue };
49262
49304
  }
@@ -49274,7 +49316,7 @@ function requireQuill() {
49274
49316
  throw new TypeError("Super expression must either be null or a function, not " + typeof Ve);
49275
49317
  Ue.prototype = Object.create(Ve && Ve.prototype, { constructor: { value: Ue, enumerable: !1, writable: !0, configurable: !0 } }), Ve && (Object.setPrototypeOf ? Object.setPrototypeOf(Ue, Ve) : Ue.__proto__ = Ve);
49276
49318
  }
49277
- var Pe = [!1, "center", "right", "justify"], Ne = ["#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) {
49319
+ var Me = [!1, "center", "right", "justify"], Ne = ["#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) {
49278
49320
  ze(Ve, Ue);
49279
49321
  function Ve(Qe, Xe) {
49280
49322
  Ie(this, Ve);
@@ -49317,7 +49359,7 @@ function requireQuill() {
49317
49359
  var Ye = this;
49318
49360
  this.pickers = Xe.map(function(ot) {
49319
49361
  if (ot.classList.contains("ql-align"))
49320
- return ot.querySelector("option") == null && Le(ot, Pe), new we.default(ot, Be.align);
49362
+ return ot.querySelector("option") == null && Le(ot, Me), new we.default(ot, Be.align);
49321
49363
  if (ot.classList.contains("ql-background") || ot.classList.contains("ql-color")) {
49322
49364
  var _t = ot.classList.contains("ql-background") ? "background" : "color";
49323
49365
  return ot.querySelector("option") == null && Le(ot, Ne, _t === "background" ? "#ffffff" : "#000000"), new ye.default(ot, Be[_t]);
@@ -49417,7 +49459,7 @@ function requireQuill() {
49417
49459
  this.textbox.value = "", this.hide();
49418
49460
  }
49419
49461
  }]), Ve;
49420
- })(Me.default);
49462
+ })(Pe.default);
49421
49463
  function Ze(Ue) {
49422
49464
  var Ve = Ue.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/) || Ue.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);
49423
49465
  return Ve ? (Ve[1] || "https") + "://www.youtube.com/embed/" + Ve[2] + "?showinfo=0" : (Ve = Ue.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/)) ? (Ve[1] || "https") + "://player.vimeo.com/video/" + Ve[2] + "/" : Ue;
@@ -49558,8 +49600,8 @@ function requireQuill() {
49558
49600
  for (Se.forEach(function(Ce) {
49559
49601
  var qe = de.find(Ce.target, !0);
49560
49602
  qe != null && (qe.domNode === Ce.target && (Ce.type === "childList" ? (_e(de.find(Ce.previousSibling, !1)), [].forEach.call(Ce.addedNodes, function(De) {
49561
- var Me = de.find(De, !1);
49562
- _e(Me, !1), Me instanceof ne.default && Me.children.forEach(function(He) {
49603
+ var Pe = de.find(De, !1);
49604
+ _e(Pe, !1), Pe instanceof ne.default && Pe.children.forEach(function(He) {
49563
49605
  _e(He, !1);
49564
49606
  });
49565
49607
  })) : Ce.type === "attributes" && _e(qe.prev)), _e(qe));
@@ -49827,12 +49869,12 @@ function requireQuill() {
49827
49869
  if (we == Ce)
49828
49870
  return we ? [[ne, we]] : [];
49829
49871
  (qe < 0 || we.length < qe) && (qe = null);
49830
- var De = pe(we, Ce), Me = we.substring(0, De);
49872
+ var De = pe(we, Ce), Pe = we.substring(0, De);
49831
49873
  we = we.substring(De), Ce = Ce.substring(De), De = fe(we, Ce);
49832
49874
  var He = we.substring(we.length - De);
49833
49875
  we = we.substring(0, we.length - De), Ce = Ce.substring(0, Ce.length - De);
49834
49876
  var Ie = ce(we, Ce);
49835
- return Me && Ie.unshift([ne, Me]), He && Ie.push([ne, He]), me(Ie), qe != null && (Ie = _e(Ie, qe)), Ie = ye(Ie), Ie;
49877
+ return Pe && Ie.unshift([ne, Pe]), He && Ie.push([ne, He]), me(Ie), qe != null && (Ie = _e(Ie, qe)), Ie = ye(Ie), Ie;
49836
49878
  }
49837
49879
  function ce(we, Ce) {
49838
49880
  var qe;
@@ -49840,27 +49882,27 @@ function requireQuill() {
49840
49882
  return [[oe, Ce]];
49841
49883
  if (!Ce)
49842
49884
  return [[re, we]];
49843
- var De = we.length > Ce.length ? we : Ce, Me = we.length > Ce.length ? Ce : we, He = De.indexOf(Me);
49885
+ var De = we.length > Ce.length ? we : Ce, Pe = we.length > Ce.length ? Ce : we, He = De.indexOf(Pe);
49844
49886
  if (He != -1)
49845
49887
  return qe = [
49846
49888
  [oe, De.substring(0, He)],
49847
- [ne, Me],
49848
- [oe, De.substring(He + Me.length)]
49889
+ [ne, Pe],
49890
+ [oe, De.substring(He + Pe.length)]
49849
49891
  ], we.length > Ce.length && (qe[0][0] = qe[2][0] = re), qe;
49850
- if (Me.length == 1)
49892
+ if (Pe.length == 1)
49851
49893
  return [[re, we], [oe, Ce]];
49852
49894
  var Ie = be(we, Ce);
49853
49895
  if (Ie) {
49854
- var Ae = Ie[0], ze = Ie[1], Pe = Ie[2], Ne = Ie[3], We = Ie[4], Ge = de(Ae, Pe), Ke = de(ze, Ne);
49896
+ var Ae = Ie[0], ze = Ie[1], Me = Ie[2], Ne = Ie[3], We = Ie[4], Ge = de(Ae, Me), Ke = de(ze, Ne);
49855
49897
  return Ge.concat([[ne, We]], Ke);
49856
49898
  }
49857
49899
  return ue(we, Ce);
49858
49900
  }
49859
49901
  function ue(we, Ce) {
49860
- for (var qe = we.length, De = Ce.length, Me = Math.ceil((qe + De) / 2), He = Me, Ie = 2 * Me, Ae = new Array(Ie), ze = new Array(Ie), Pe = 0; Pe < Ie; Pe++)
49861
- Ae[Pe] = -1, ze[Pe] = -1;
49902
+ for (var qe = we.length, De = Ce.length, Pe = Math.ceil((qe + De) / 2), He = Pe, Ie = 2 * Pe, Ae = new Array(Ie), ze = new Array(Ie), Me = 0; Me < Ie; Me++)
49903
+ Ae[Me] = -1, ze[Me] = -1;
49862
49904
  Ae[He + 1] = 0, ze[He + 1] = 0;
49863
- for (var Ne = qe - De, We = Ne % 2 != 0, Ge = 0, Ke = 0, ft = 0, Je = 0, Ze = 0; Ze < Me; Ze++) {
49905
+ for (var Ne = qe - De, We = Ne % 2 != 0, Ge = 0, Ke = 0, ft = 0, Je = 0, Ze = 0; Ze < Pe; Ze++) {
49864
49906
  for (var Le = -Ze + Ge; Le <= Ze - Ke; Le += 2) {
49865
49907
  var Ue = He + Le, Ve;
49866
49908
  Le == -Ze || Le != Ze && Ae[Ue - 1] < Ae[Ue + 1] ? Ve = Ae[Ue + 1] : Ve = Ae[Ue - 1] + 1;
@@ -49901,28 +49943,28 @@ function requireQuill() {
49901
49943
  return [[re, we], [oe, Ce]];
49902
49944
  }
49903
49945
  function he(we, Ce, qe, De) {
49904
- var Me = we.substring(0, qe), He = Ce.substring(0, De), Ie = we.substring(qe), Ae = Ce.substring(De), ze = de(Me, He), Pe = de(Ie, Ae);
49905
- return ze.concat(Pe);
49946
+ var Pe = we.substring(0, qe), He = Ce.substring(0, De), Ie = we.substring(qe), Ae = Ce.substring(De), ze = de(Pe, He), Me = de(Ie, Ae);
49947
+ return ze.concat(Me);
49906
49948
  }
49907
49949
  function pe(we, Ce) {
49908
49950
  if (!we || !Ce || we.charAt(0) != Ce.charAt(0))
49909
49951
  return 0;
49910
- for (var qe = 0, De = Math.min(we.length, Ce.length), Me = De, He = 0; qe < Me; )
49911
- we.substring(He, Me) == Ce.substring(He, Me) ? (qe = Me, He = qe) : De = Me, Me = Math.floor((De - qe) / 2 + qe);
49912
- return Me;
49952
+ for (var qe = 0, De = Math.min(we.length, Ce.length), Pe = De, He = 0; qe < Pe; )
49953
+ we.substring(He, Pe) == Ce.substring(He, Pe) ? (qe = Pe, He = qe) : De = Pe, Pe = Math.floor((De - qe) / 2 + qe);
49954
+ return Pe;
49913
49955
  }
49914
49956
  function fe(we, Ce) {
49915
49957
  if (!we || !Ce || we.charAt(we.length - 1) != Ce.charAt(Ce.length - 1))
49916
49958
  return 0;
49917
- for (var qe = 0, De = Math.min(we.length, Ce.length), Me = De, He = 0; qe < Me; )
49918
- we.substring(we.length - Me, we.length - He) == Ce.substring(Ce.length - Me, Ce.length - He) ? (qe = Me, He = qe) : De = Me, Me = Math.floor((De - qe) / 2 + qe);
49919
- return Me;
49959
+ for (var qe = 0, De = Math.min(we.length, Ce.length), Pe = De, He = 0; qe < Pe; )
49960
+ we.substring(we.length - Pe, we.length - He) == Ce.substring(Ce.length - Pe, Ce.length - He) ? (qe = Pe, He = qe) : De = Pe, Pe = Math.floor((De - qe) / 2 + qe);
49961
+ return Pe;
49920
49962
  }
49921
49963
  function be(we, Ce) {
49922
49964
  var qe = we.length > Ce.length ? we : Ce, De = we.length > Ce.length ? Ce : we;
49923
49965
  if (qe.length < 4 || De.length * 2 < qe.length)
49924
49966
  return null;
49925
- function Me(Ke, ft, Je) {
49967
+ function Pe(Ke, ft, Je) {
49926
49968
  for (var Ze = Ke.substring(Je, Je + Math.floor(Ke.length / 4)), Le = -1, Ue = "", Ve, Qe, Xe, Be; (Le = ft.indexOf(Ze, Le + 1)) != -1; ) {
49927
49969
  var Ye = pe(
49928
49970
  Ke.substring(Je),
@@ -49941,11 +49983,11 @@ function requireQuill() {
49941
49983
  Ue
49942
49984
  ] : null;
49943
49985
  }
49944
- var He = Me(
49986
+ var He = Pe(
49945
49987
  qe,
49946
49988
  De,
49947
49989
  Math.ceil(qe.length / 4)
49948
- ), Ie = Me(
49990
+ ), Ie = Pe(
49949
49991
  qe,
49950
49992
  De,
49951
49993
  Math.ceil(qe.length / 2)
@@ -49953,39 +49995,39 @@ function requireQuill() {
49953
49995
  if (!He && !Ie)
49954
49996
  return null;
49955
49997
  Ie ? He ? Ae = He[4].length > Ie[4].length ? He : Ie : Ae = Ie : Ae = He;
49956
- var ze, Pe, Ne, We;
49957
- we.length > Ce.length ? (ze = Ae[0], Pe = Ae[1], Ne = Ae[2], We = Ae[3]) : (Ne = Ae[0], We = Ae[1], ze = Ae[2], Pe = Ae[3]);
49998
+ var ze, Me, Ne, We;
49999
+ we.length > Ce.length ? (ze = Ae[0], Me = Ae[1], Ne = Ae[2], We = Ae[3]) : (Ne = Ae[0], We = Ae[1], ze = Ae[2], Me = Ae[3]);
49958
50000
  var Ge = Ae[4];
49959
- return [ze, Pe, Ne, We, Ge];
50001
+ return [ze, Me, Ne, We, Ge];
49960
50002
  }
49961
50003
  function me(we) {
49962
50004
  we.push([ne, ""]);
49963
- for (var Ce = 0, qe = 0, De = 0, Me = "", He = "", Ie; Ce < we.length; )
50005
+ for (var Ce = 0, qe = 0, De = 0, Pe = "", He = "", Ie; Ce < we.length; )
49964
50006
  switch (we[Ce][0]) {
49965
50007
  case oe:
49966
50008
  De++, He += we[Ce][1], Ce++;
49967
50009
  break;
49968
50010
  case re:
49969
- qe++, Me += we[Ce][1], Ce++;
50011
+ qe++, Pe += we[Ce][1], Ce++;
49970
50012
  break;
49971
50013
  case ne:
49972
- qe + De > 1 ? (qe !== 0 && De !== 0 && (Ie = pe(He, Me), Ie !== 0 && (Ce - qe - De > 0 && we[Ce - qe - De - 1][0] == ne ? we[Ce - qe - De - 1][1] += He.substring(0, Ie) : (we.splice(0, 0, [
50014
+ qe + De > 1 ? (qe !== 0 && De !== 0 && (Ie = pe(He, Pe), Ie !== 0 && (Ce - qe - De > 0 && we[Ce - qe - De - 1][0] == ne ? we[Ce - qe - De - 1][1] += He.substring(0, Ie) : (we.splice(0, 0, [
49973
50015
  ne,
49974
50016
  He.substring(0, Ie)
49975
- ]), Ce++), He = He.substring(Ie), Me = Me.substring(Ie)), Ie = fe(He, Me), Ie !== 0 && (we[Ce][1] = He.substring(He.length - Ie) + we[Ce][1], He = He.substring(0, He.length - Ie), Me = Me.substring(0, Me.length - Ie))), qe === 0 ? we.splice(
50017
+ ]), Ce++), He = He.substring(Ie), Pe = Pe.substring(Ie)), Ie = fe(He, Pe), Ie !== 0 && (we[Ce][1] = He.substring(He.length - Ie) + we[Ce][1], He = He.substring(0, He.length - Ie), Pe = Pe.substring(0, Pe.length - Ie))), qe === 0 ? we.splice(
49976
50018
  Ce - De,
49977
50019
  qe + De,
49978
50020
  [oe, He]
49979
50021
  ) : De === 0 ? we.splice(
49980
50022
  Ce - qe,
49981
50023
  qe + De,
49982
- [re, Me]
50024
+ [re, Pe]
49983
50025
  ) : we.splice(
49984
50026
  Ce - qe - De,
49985
50027
  qe + De,
49986
- [re, Me],
50028
+ [re, Pe],
49987
50029
  [oe, He]
49988
- ), Ce = Ce - qe - De + (qe ? 1 : 0) + (De ? 1 : 0) + 1) : Ce !== 0 && we[Ce - 1][0] == ne ? (we[Ce - 1][1] += we[Ce][1], we.splice(Ce, 1)) : Ce++, De = 0, qe = 0, Me = "", He = "";
50030
+ ), Ce = Ce - qe - De + (qe ? 1 : 0) + (De ? 1 : 0) + 1) : Ce !== 0 && we[Ce - 1][0] == ne ? (we[Ce - 1][1] += we[Ce][1], we.splice(Ce, 1)) : Ce++, De = 0, qe = 0, Pe = "", He = "";
49989
50031
  break;
49990
50032
  }
49991
50033
  we[we.length - 1][1] === "" && we.pop();
@@ -50000,14 +50042,14 @@ function requireQuill() {
50000
50042
  if (Ce === 0)
50001
50043
  return [ne, we];
50002
50044
  for (var qe = 0, De = 0; De < we.length; De++) {
50003
- var Me = we[De];
50004
- if (Me[0] === re || Me[0] === ne) {
50005
- var He = qe + Me[1].length;
50045
+ var Pe = we[De];
50046
+ if (Pe[0] === re || Pe[0] === ne) {
50047
+ var He = qe + Pe[1].length;
50006
50048
  if (Ce === He)
50007
50049
  return [De + 1, we];
50008
50050
  if (Ce < He) {
50009
50051
  we = we.slice();
50010
- var Ie = Ce - qe, Ae = [Me[0], Me[1].slice(0, Ie)], ze = [Me[0], Me[1].slice(Ie)];
50052
+ var Ie = Ce - qe, Ae = [Pe[0], Pe[1].slice(0, Ie)], ze = [Pe[0], Pe[1].slice(Ie)];
50011
50053
  return we.splice(De, 1, Ae, ze), [De + 1, we];
50012
50054
  } else
50013
50055
  qe = He;
@@ -50016,17 +50058,17 @@ function requireQuill() {
50016
50058
  throw new Error("cursor_pos is out of bounds!");
50017
50059
  }
50018
50060
  function _e(we, Ce) {
50019
- var qe = ve(we, Ce), De = qe[1], Me = qe[0], He = De[Me], Ie = De[Me + 1];
50061
+ var qe = ve(we, Ce), De = qe[1], Pe = qe[0], He = De[Pe], Ie = De[Pe + 1];
50020
50062
  if (He == null)
50021
50063
  return we;
50022
50064
  if (He[0] !== ne)
50023
50065
  return we;
50024
50066
  if (Ie != null && He[1] + Ie[1] === Ie[1] + He[1])
50025
- return De.splice(Me, 2, Ie, He), Se(De, Me, 2);
50067
+ return De.splice(Pe, 2, Ie, He), Se(De, Pe, 2);
50026
50068
  if (Ie != null && Ie[1].indexOf(He[1]) === 0) {
50027
- De.splice(Me, 2, [Ie[0], He[1]], [0, He[1]]);
50069
+ De.splice(Pe, 2, [Ie[0], He[1]], [0, He[1]]);
50028
50070
  var Ae = Ie[1].slice(He[1].length);
50029
- return Ae.length > 0 && De.splice(Me + 2, 0, [Ie[0], Ae]), Se(De, Me, 3);
50071
+ return Ae.length > 0 && De.splice(Pe + 2, 0, [Ie[0], Ae]), Se(De, Pe, 3);
50030
50072
  } else
50031
50073
  return we;
50032
50074
  }
@@ -50035,19 +50077,19 @@ function requireQuill() {
50035
50077
  return Ie.charCodeAt(0) >= 56320 && Ie.charCodeAt(0) <= 57343;
50036
50078
  }, De = function(Ie) {
50037
50079
  return Ie.charCodeAt(Ie.length - 1) >= 55296 && Ie.charCodeAt(Ie.length - 1) <= 56319;
50038
- }, Me = 2; Me < we.length; Me += 1)
50039
- we[Me - 2][0] === ne && De(we[Me - 2][1]) && we[Me - 1][0] === re && qe(we[Me - 1][1]) && we[Me][0] === oe && qe(we[Me][1]) && (Ce = !0, we[Me - 1][1] = we[Me - 2][1].slice(-1) + we[Me - 1][1], we[Me][1] = we[Me - 2][1].slice(-1) + we[Me][1], we[Me - 2][1] = we[Me - 2][1].slice(0, -1));
50080
+ }, Pe = 2; Pe < we.length; Pe += 1)
50081
+ we[Pe - 2][0] === ne && De(we[Pe - 2][1]) && we[Pe - 1][0] === re && qe(we[Pe - 1][1]) && we[Pe][0] === oe && qe(we[Pe][1]) && (Ce = !0, we[Pe - 1][1] = we[Pe - 2][1].slice(-1) + we[Pe - 1][1], we[Pe][1] = we[Pe - 2][1].slice(-1) + we[Pe][1], we[Pe - 2][1] = we[Pe - 2][1].slice(0, -1));
50040
50082
  if (!Ce)
50041
50083
  return we;
50042
- for (var He = [], Me = 0; Me < we.length; Me += 1)
50043
- we[Me][1].length > 0 && He.push(we[Me]);
50084
+ for (var He = [], Pe = 0; Pe < we.length; Pe += 1)
50085
+ we[Pe][1].length > 0 && He.push(we[Pe]);
50044
50086
  return He;
50045
50087
  }
50046
50088
  function Se(we, Ce, qe) {
50047
50089
  for (var De = Ce + qe - 1; De >= 0 && De >= Ce - 1; De--)
50048
50090
  if (De + 1 < we.length) {
50049
- var Me = we[De], He = we[De + 1];
50050
- Me[0] === He[1] && we.splice(De, 2, [Me[0], Me[1] + He[1]]);
50091
+ var Pe = we[De], He = we[De + 1];
50092
+ Pe[0] === He[1] && we.splice(De, 2, [Pe[0], Pe[1] + He[1]]);
50051
50093
  }
50052
50094
  return we;
50053
50095
  }
@@ -50188,17 +50230,17 @@ function requireQuill() {
50188
50230
  return gt && typeof Symbol == "function" && gt.constructor === Symbol && gt !== Symbol.prototype ? "symbol" : typeof gt;
50189
50231
  }, ne = /* @__PURE__ */ (function() {
50190
50232
  function gt(mt, xt) {
50191
- var Ct = [], wt = !0, Lt = !1, Mt = void 0;
50233
+ var Ct = [], wt = !0, Lt = !1, Pt = void 0;
50192
50234
  try {
50193
50235
  for (var Ft = mt[Symbol.iterator](), cs; !(wt = (cs = Ft.next()).done) && (Ct.push(cs.value), !(xt && Ct.length === xt)); wt = !0)
50194
50236
  ;
50195
50237
  } catch (ds) {
50196
- Lt = !0, Mt = ds;
50238
+ Lt = !0, Pt = ds;
50197
50239
  } finally {
50198
50240
  try {
50199
50241
  !wt && Ft.return && Ft.return();
50200
50242
  } finally {
50201
- if (Lt) throw Mt;
50243
+ if (Lt) throw Pt;
50202
50244
  }
50203
50245
  }
50204
50246
  return Ct;
@@ -50220,11 +50262,11 @@ function requireQuill() {
50220
50262
  return function(mt, xt, Ct) {
50221
50263
  return xt && gt(mt.prototype, xt), Ct && gt(mt, Ct), mt;
50222
50264
  };
50223
- })(), ce = re(3), ue = ze(ce), he = re(2), pe = ze(he), fe = re(0), be = ze(fe), me = re(5), ge = ze(me), ve = re(10), _e = ze(ve), ye = re(9), Se = ze(ye), we = re(37), Ce = re(38), qe = re(13), De = ze(qe), Me = re(26), He = re(39), Ie = re(40), Ae = re(41);
50265
+ })(), ce = re(3), ue = ze(ce), he = re(2), pe = ze(he), fe = re(0), be = ze(fe), me = re(5), ge = ze(me), ve = re(10), _e = ze(ve), ye = re(9), Se = ze(ye), we = re(37), Ce = re(38), qe = re(13), De = ze(qe), Pe = re(26), He = re(39), Ie = re(40), Ae = re(41);
50224
50266
  function ze(gt) {
50225
50267
  return gt && gt.__esModule ? gt : { default: gt };
50226
50268
  }
50227
- function Pe(gt, mt, xt) {
50269
+ function Me(gt, mt, xt) {
50228
50270
  return mt in gt ? Object.defineProperty(gt, mt, { value: xt, enumerable: !0, configurable: !0, writable: !0 }) : gt[mt] = xt, gt;
50229
50271
  }
50230
50272
  function Ne(gt, mt) {
@@ -50243,7 +50285,7 @@ function requireQuill() {
50243
50285
  }
50244
50286
  var Ke = (0, _e.default)("quill:clipboard"), ft = "__ql-matcher", Je = [[Node.TEXT_NODE, Yt], [Node.TEXT_NODE, Nt], ["br", kt], [Node.ELEMENT_NODE, Nt], [Node.ELEMENT_NODE, _t], [Node.ELEMENT_NODE, Bt], [Node.ELEMENT_NODE, ot], [Node.ELEMENT_NODE, rs], ["li", zt], ["b", rt.bind(rt, "bold")], ["i", rt.bind(rt, "italic")], ["style", It]], Ze = [we.AlignAttribute, He.DirectionAttribute].reduce(function(gt, mt) {
50245
50287
  return gt[mt.keyName] = mt, gt;
50246
- }, {}), Le = [we.AlignStyle, Ce.BackgroundStyle, Me.ColorStyle, He.DirectionStyle, Ie.FontStyle, Ae.SizeStyle].reduce(function(gt, mt) {
50288
+ }, {}), Le = [we.AlignStyle, Ce.BackgroundStyle, Pe.ColorStyle, He.DirectionStyle, Ie.FontStyle, Ae.SizeStyle].reduce(function(gt, mt) {
50247
50289
  return gt[mt.keyName] = mt, gt;
50248
50290
  }, {}), Ue = (function(gt) {
50249
50291
  Ge(mt, gt);
@@ -50251,7 +50293,7 @@ function requireQuill() {
50251
50293
  Ne(this, mt);
50252
50294
  var wt = We(this, (mt.__proto__ || Object.getPrototypeOf(mt)).call(this, xt, Ct));
50253
50295
  return wt.quill.root.addEventListener("paste", wt.onPaste.bind(wt)), wt.container = wt.quill.addContainer("ql-clipboard"), wt.container.setAttribute("contenteditable", !0), wt.container.setAttribute("tabindex", -1), wt.matchers = [], Je.concat(wt.options.matchers).forEach(function(Lt) {
50254
- var Mt = ne(Lt, 2), Ft = Mt[0], cs = Mt[1];
50296
+ var Pt = ne(Lt, 2), Ft = Pt[0], cs = Pt[1];
50255
50297
  !Ct.matchVisual && cs === Bt || wt.addMatcher(Ft, cs);
50256
50298
  }), wt;
50257
50299
  }
@@ -50268,9 +50310,9 @@ function requireQuill() {
50268
50310
  var wt = this.quill.getFormat(this.quill.selection.savedRange.index);
50269
50311
  if (wt[De.default.blotName]) {
50270
50312
  var Lt = this.container.innerText;
50271
- return this.container.innerHTML = "", new pe.default().insert(Lt, Pe({}, De.default.blotName, wt[De.default.blotName]));
50313
+ return this.container.innerHTML = "", new pe.default().insert(Lt, Me({}, De.default.blotName, wt[De.default.blotName]));
50272
50314
  }
50273
- var Mt = this.prepareMatching(), Ft = ne(Mt, 2), cs = Ft[0], ds = Ft[1], Kt = Ye(this.container, cs, ds);
50315
+ var Pt = this.prepareMatching(), Ft = ne(Pt, 2), cs = Ft[0], ds = Ft[1], Kt = Ye(this.container, cs, ds);
50274
50316
  return Xe(Kt, `
50275
50317
  `) && Kt.ops[Kt.ops.length - 1].attributes == null && (Kt = Kt.compose(new pe.default().retain(Kt.length() - 1).delete(1))), Ke.log("convert", this.container.innerHTML, Kt), this.container.innerHTML = "", Kt;
50276
50318
  }
@@ -50281,8 +50323,8 @@ function requireQuill() {
50281
50323
  if (typeof Ct == "string")
50282
50324
  this.quill.setContents(this.convert(Ct), wt), this.quill.setSelection(0, ge.default.sources.SILENT);
50283
50325
  else {
50284
- var Mt = this.convert(wt);
50285
- this.quill.updateContents(new pe.default().retain(Ct).concat(Mt), Lt), this.quill.setSelection(Ct + Mt.length(), ge.default.sources.SILENT);
50326
+ var Pt = this.convert(wt);
50327
+ this.quill.updateContents(new pe.default().retain(Ct).concat(Pt), Lt), this.quill.setSelection(Ct + Pt.length(), ge.default.sources.SILENT);
50286
50328
  }
50287
50329
  }
50288
50330
  }, {
@@ -50290,9 +50332,9 @@ function requireQuill() {
50290
50332
  value: function(Ct) {
50291
50333
  var wt = this;
50292
50334
  if (!(Ct.defaultPrevented || !this.quill.isEnabled())) {
50293
- var Lt = this.quill.getSelection(), Mt = new pe.default().retain(Lt.index), Ft = this.quill.scrollingContainer.scrollTop;
50335
+ var Lt = this.quill.getSelection(), Pt = new pe.default().retain(Lt.index), Ft = this.quill.scrollingContainer.scrollTop;
50294
50336
  this.container.focus(), this.quill.selection.update(ge.default.sources.SILENT), setTimeout(function() {
50295
- Mt = Mt.concat(wt.convert()).delete(Lt.length), wt.quill.updateContents(Mt, ge.default.sources.USER), wt.quill.setSelection(Mt.length() - Lt.length, ge.default.sources.SILENT), wt.quill.scrollingContainer.scrollTop = Ft, wt.quill.focus();
50337
+ Pt = Pt.concat(wt.convert()).delete(Lt.length), wt.quill.updateContents(Pt, ge.default.sources.USER), wt.quill.setSelection(Pt.length() - Lt.length, ge.default.sources.SILENT), wt.quill.scrollingContainer.scrollTop = Ft, wt.quill.focus();
50296
50338
  }, 1);
50297
50339
  }
50298
50340
  }
@@ -50300,8 +50342,8 @@ function requireQuill() {
50300
50342
  key: "prepareMatching",
50301
50343
  value: function() {
50302
50344
  var Ct = this, wt = [], Lt = [];
50303
- return this.matchers.forEach(function(Mt) {
50304
- var Ft = ne(Mt, 2), cs = Ft[0], ds = Ft[1];
50345
+ return this.matchers.forEach(function(Pt) {
50346
+ var Ft = ne(Pt, 2), cs = Ft[0], ds = Ft[1];
50305
50347
  switch (cs) {
50306
50348
  case Node.TEXT_NODE:
50307
50349
  Lt.push(ds);
@@ -50327,7 +50369,7 @@ function requireQuill() {
50327
50369
  return (typeof mt > "u" ? "undefined" : oe(mt)) === "object" ? Object.keys(mt).reduce(function(Ct, wt) {
50328
50370
  return Ve(Ct, wt, mt[wt]);
50329
50371
  }, gt) : gt.reduce(function(Ct, wt) {
50330
- return wt.attributes && wt.attributes[mt] ? Ct.push(wt) : Ct.insert(wt.insert, (0, ue.default)({}, Pe({}, mt, xt), wt.attributes));
50372
+ return wt.attributes && wt.attributes[mt] ? Ct.push(wt) : Ct.insert(wt.insert, (0, ue.default)({}, Me({}, mt, xt), wt.attributes));
50331
50373
  }, new pe.default());
50332
50374
  }
50333
50375
  function Qe(gt) {
@@ -50353,10 +50395,10 @@ function requireQuill() {
50353
50395
  return wt(gt, Ct);
50354
50396
  }, new pe.default()) : gt.nodeType === gt.ELEMENT_NODE ? [].reduce.call(gt.childNodes || [], function(Ct, wt) {
50355
50397
  var Lt = Ye(wt, mt, xt);
50356
- return wt.nodeType === gt.ELEMENT_NODE && (Lt = mt.reduce(function(Mt, Ft) {
50357
- return Ft(wt, Mt);
50358
- }, Lt), Lt = (wt[ft] || []).reduce(function(Mt, Ft) {
50359
- return Ft(wt, Mt);
50398
+ return wt.nodeType === gt.ELEMENT_NODE && (Lt = mt.reduce(function(Pt, Ft) {
50399
+ return Ft(wt, Pt);
50400
+ }, Lt), Lt = (wt[ft] || []).reduce(function(Pt, Ft) {
50401
+ return Ft(wt, Pt);
50360
50402
  }, Lt)), Ct.concat(Lt);
50361
50403
  }, new pe.default()) : new pe.default();
50362
50404
  }
@@ -50365,9 +50407,9 @@ function requireQuill() {
50365
50407
  }
50366
50408
  function ot(gt, mt) {
50367
50409
  var xt = be.default.Attributor.Attribute.keys(gt), Ct = be.default.Attributor.Class.keys(gt), wt = be.default.Attributor.Style.keys(gt), Lt = {};
50368
- return xt.concat(Ct).concat(wt).forEach(function(Mt) {
50369
- var Ft = be.default.query(Mt, be.default.Scope.ATTRIBUTE);
50370
- Ft != null && (Lt[Ft.attrName] = Ft.value(gt), Lt[Ft.attrName]) || (Ft = Ze[Mt], Ft != null && (Ft.attrName === Mt || Ft.keyName === Mt) && (Lt[Ft.attrName] = Ft.value(gt) || void 0), Ft = Le[Mt], Ft != null && (Ft.attrName === Mt || Ft.keyName === Mt) && (Ft = Le[Mt], Lt[Ft.attrName] = Ft.value(gt) || void 0));
50410
+ return xt.concat(Ct).concat(wt).forEach(function(Pt) {
50411
+ var Ft = be.default.query(Pt, be.default.Scope.ATTRIBUTE);
50412
+ Ft != null && (Lt[Ft.attrName] = Ft.value(gt), Lt[Ft.attrName]) || (Ft = Ze[Pt], Ft != null && (Ft.attrName === Pt || Ft.keyName === Pt) && (Lt[Ft.attrName] = Ft.value(gt) || void 0), Ft = Le[Pt], Ft != null && (Ft.attrName === Pt || Ft.keyName === Pt) && (Ft = Le[Pt], Lt[Ft.attrName] = Ft.value(gt) || void 0));
50371
50413
  }), Object.keys(Lt).length > 0 && (mt = Ve(mt, Lt)), mt;
50372
50414
  }
50373
50415
  function _t(gt, mt) {
@@ -50422,8 +50464,8 @@ function requireQuill() {
50422
50464
  if (xt.trim().length === 0 && gt.parentNode.classList.contains("ql-clipboard"))
50423
50465
  return mt;
50424
50466
  if (!Qe(gt.parentNode).whiteSpace.startsWith("pre")) {
50425
- var Ct = function(Lt, Mt) {
50426
- return Mt = Mt.replace(/[^\u00a0]/g, ""), Mt.length < 1 && Lt ? " " : Mt;
50467
+ var Ct = function(Lt, Pt) {
50468
+ return Pt = Pt.replace(/[^\u00a0]/g, ""), Pt.length < 1 && Lt ? " " : Pt;
50427
50469
  };
50428
50470
  xt = xt.replace(/\r\n/g, " ").replace(/\n/g, " "), xt = xt.replace(/\s\s+/g, Ct.bind(Ct, !0)), (gt.previousSibling == null && Be(gt.parentNode) || gt.previousSibling != null && Be(gt.previousSibling)) && (xt = xt.replace(/^\s+/, Ct.bind(Ct, !1))), (gt.nextSibling == null && Be(gt.parentNode) || gt.nextSibling != null && Be(gt.nextSibling)) && (xt = xt.replace(/\s+$/, Ct.bind(Ct, !1)));
50429
50471
  }
@@ -50508,10 +50550,10 @@ function requireQuill() {
50508
50550
  value: !0
50509
50551
  }), te.addControls = te.default = void 0;
50510
50552
  var oe = /* @__PURE__ */ (function() {
50511
- function ze(Pe, Ne) {
50553
+ function ze(Me, Ne) {
50512
50554
  var We = [], Ge = !0, Ke = !1, ft = void 0;
50513
50555
  try {
50514
- for (var Je = Pe[Symbol.iterator](), Ze; !(Ge = (Ze = Je.next()).done) && (We.push(Ze.value), !(Ne && We.length === Ne)); Ge = !0)
50556
+ for (var Je = Me[Symbol.iterator](), Ze; !(Ge = (Ze = Je.next()).done) && (We.push(Ze.value), !(Ne && We.length === Ne)); Ge = !0)
50515
50557
  ;
50516
50558
  } catch (Le) {
50517
50559
  Ke = !0, ft = Le;
@@ -50524,49 +50566,49 @@ function requireQuill() {
50524
50566
  }
50525
50567
  return We;
50526
50568
  }
50527
- return function(Pe, Ne) {
50528
- if (Array.isArray(Pe))
50529
- return Pe;
50530
- if (Symbol.iterator in Object(Pe))
50531
- return ze(Pe, Ne);
50569
+ return function(Me, Ne) {
50570
+ if (Array.isArray(Me))
50571
+ return Me;
50572
+ if (Symbol.iterator in Object(Me))
50573
+ return ze(Me, Ne);
50532
50574
  throw new TypeError("Invalid attempt to destructure non-iterable instance");
50533
50575
  };
50534
50576
  })(), ne = /* @__PURE__ */ (function() {
50535
- function ze(Pe, Ne) {
50577
+ function ze(Me, Ne) {
50536
50578
  for (var We = 0; We < Ne.length; We++) {
50537
50579
  var Ge = Ne[We];
50538
- Ge.enumerable = Ge.enumerable || !1, Ge.configurable = !0, "value" in Ge && (Ge.writable = !0), Object.defineProperty(Pe, Ge.key, Ge);
50580
+ Ge.enumerable = Ge.enumerable || !1, Ge.configurable = !0, "value" in Ge && (Ge.writable = !0), Object.defineProperty(Me, Ge.key, Ge);
50539
50581
  }
50540
50582
  }
50541
- return function(Pe, Ne, We) {
50542
- return Ne && ze(Pe.prototype, Ne), We && ze(Pe, We), Pe;
50583
+ return function(Me, Ne, We) {
50584
+ return Ne && ze(Me.prototype, Ne), We && ze(Me, We), Me;
50543
50585
  };
50544
50586
  })(), de = re(2), ce = _e(de), ue = re(0), he = _e(ue), pe = re(5), fe = _e(pe), be = re(10), me = _e(be), ge = re(9), ve = _e(ge);
50545
50587
  function _e(ze) {
50546
50588
  return ze && ze.__esModule ? ze : { default: ze };
50547
50589
  }
50548
- function ye(ze, Pe, Ne) {
50549
- return Pe in ze ? Object.defineProperty(ze, Pe, { value: Ne, enumerable: !0, configurable: !0, writable: !0 }) : ze[Pe] = Ne, ze;
50590
+ function ye(ze, Me, Ne) {
50591
+ return Me in ze ? Object.defineProperty(ze, Me, { value: Ne, enumerable: !0, configurable: !0, writable: !0 }) : ze[Me] = Ne, ze;
50550
50592
  }
50551
- function Se(ze, Pe) {
50552
- if (!(ze instanceof Pe))
50593
+ function Se(ze, Me) {
50594
+ if (!(ze instanceof Me))
50553
50595
  throw new TypeError("Cannot call a class as a function");
50554
50596
  }
50555
- function we(ze, Pe) {
50597
+ function we(ze, Me) {
50556
50598
  if (!ze)
50557
50599
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
50558
- return Pe && (typeof Pe == "object" || typeof Pe == "function") ? Pe : ze;
50600
+ return Me && (typeof Me == "object" || typeof Me == "function") ? Me : ze;
50559
50601
  }
50560
- function Ce(ze, Pe) {
50561
- if (typeof Pe != "function" && Pe !== null)
50562
- throw new TypeError("Super expression must either be null or a function, not " + typeof Pe);
50563
- ze.prototype = Object.create(Pe && Pe.prototype, { constructor: { value: ze, enumerable: !1, writable: !0, configurable: !0 } }), Pe && (Object.setPrototypeOf ? Object.setPrototypeOf(ze, Pe) : ze.__proto__ = Pe);
50602
+ function Ce(ze, Me) {
50603
+ if (typeof Me != "function" && Me !== null)
50604
+ throw new TypeError("Super expression must either be null or a function, not " + typeof Me);
50605
+ ze.prototype = Object.create(Me && Me.prototype, { constructor: { value: ze, enumerable: !1, writable: !0, configurable: !0 } }), Me && (Object.setPrototypeOf ? Object.setPrototypeOf(ze, Me) : ze.__proto__ = Me);
50564
50606
  }
50565
- var qe = "getRootNode" in document, De = (0, me.default)("quill:toolbar"), Me = (function(ze) {
50566
- Ce(Pe, ze);
50567
- function Pe(Ne, We) {
50568
- Se(this, Pe);
50569
- var Ge = we(this, (Pe.__proto__ || Object.getPrototypeOf(Pe)).call(this, Ne, We));
50607
+ var qe = "getRootNode" in document, De = (0, me.default)("quill:toolbar"), Pe = (function(ze) {
50608
+ Ce(Me, ze);
50609
+ function Me(Ne, We) {
50610
+ Se(this, Me);
50611
+ var Ge = we(this, (Me.__proto__ || Object.getPrototypeOf(Me)).call(this, Ne, We));
50570
50612
  if (Array.isArray(Ge.options.container)) {
50571
50613
  var Ke = document.createElement("div");
50572
50614
  Ie(Ke, Ge.options.container), Ne.container.parentNode.insertBefore(Ke, Ne.container), Ge.container = Ke;
@@ -50590,7 +50632,7 @@ function requireQuill() {
50590
50632
  Ge.update(Ue);
50591
50633
  }), Ge;
50592
50634
  }
50593
- return ne(Pe, [{
50635
+ return ne(Me, [{
50594
50636
  key: "addHandler",
50595
50637
  value: function(We, Ge) {
50596
50638
  this.handlers[We] = Ge;
@@ -50660,15 +50702,15 @@ function requireQuill() {
50660
50702
  Ze.classList.toggle("ql-active", Ge[Je] != null);
50661
50703
  });
50662
50704
  }
50663
- }]), Pe;
50705
+ }]), Me;
50664
50706
  })(ve.default);
50665
- Me.DEFAULTS = {};
50666
- function He(ze, Pe, Ne) {
50707
+ Pe.DEFAULTS = {};
50708
+ function He(ze, Me, Ne) {
50667
50709
  var We = document.createElement("button");
50668
- We.setAttribute("type", "button"), We.classList.add("ql-" + Pe), Ne != null && (We.value = Ne), ze.appendChild(We);
50710
+ We.setAttribute("type", "button"), We.classList.add("ql-" + Me), Ne != null && (We.value = Ne), ze.appendChild(We);
50669
50711
  }
50670
- function Ie(ze, Pe) {
50671
- Array.isArray(Pe[0]) || (Pe = [Pe]), Pe.forEach(function(Ne) {
50712
+ function Ie(ze, Me) {
50713
+ Array.isArray(Me[0]) || (Me = [Me]), Me.forEach(function(Ne) {
50672
50714
  var We = document.createElement("span");
50673
50715
  We.classList.add("ql-formats"), Ne.forEach(function(Ge) {
50674
50716
  if (typeof Ge == "string")
@@ -50680,47 +50722,47 @@ function requireQuill() {
50680
50722
  }), ze.appendChild(We);
50681
50723
  });
50682
50724
  }
50683
- function Ae(ze, Pe, Ne) {
50725
+ function Ae(ze, Me, Ne) {
50684
50726
  var We = document.createElement("select");
50685
- We.classList.add("ql-" + Pe), Ne.forEach(function(Ge) {
50727
+ We.classList.add("ql-" + Me), Ne.forEach(function(Ge) {
50686
50728
  var Ke = document.createElement("option");
50687
50729
  Ge !== !1 ? Ke.setAttribute("value", Ge) : Ke.setAttribute("selected", "selected"), We.appendChild(Ke);
50688
50730
  }), ze.appendChild(We);
50689
50731
  }
50690
- Me.DEFAULTS = {
50732
+ Pe.DEFAULTS = {
50691
50733
  container: null,
50692
50734
  handlers: {
50693
50735
  clean: function() {
50694
- var Pe = this, Ne = this.quill.getSelection();
50736
+ var Me = this, Ne = this.quill.getSelection();
50695
50737
  if (Ne != null)
50696
50738
  if (Ne.length == 0) {
50697
50739
  var We = this.quill.getFormat();
50698
50740
  Object.keys(We).forEach(function(Ge) {
50699
- he.default.query(Ge, he.default.Scope.INLINE) != null && Pe.quill.format(Ge, !1);
50741
+ he.default.query(Ge, he.default.Scope.INLINE) != null && Me.quill.format(Ge, !1);
50700
50742
  });
50701
50743
  } else
50702
50744
  this.quill.removeFormat(Ne, fe.default.sources.USER);
50703
50745
  },
50704
- direction: function(Pe) {
50746
+ direction: function(Me) {
50705
50747
  var Ne = this.quill.getFormat().align;
50706
- Pe === "rtl" && Ne == null ? this.quill.format("align", "right", fe.default.sources.USER) : !Pe && Ne === "right" && this.quill.format("align", !1, fe.default.sources.USER), this.quill.format("direction", Pe, fe.default.sources.USER);
50748
+ Me === "rtl" && Ne == null ? this.quill.format("align", "right", fe.default.sources.USER) : !Me && Ne === "right" && this.quill.format("align", !1, fe.default.sources.USER), this.quill.format("direction", Me, fe.default.sources.USER);
50707
50749
  },
50708
- indent: function(Pe) {
50750
+ indent: function(Me) {
50709
50751
  var Ne = this.quill.getSelection(), We = this.quill.getFormat(Ne), Ge = parseInt(We.indent || 0);
50710
- if (Pe === "+1" || Pe === "-1") {
50711
- var Ke = Pe === "+1" ? 1 : -1;
50752
+ if (Me === "+1" || Me === "-1") {
50753
+ var Ke = Me === "+1" ? 1 : -1;
50712
50754
  We.direction === "rtl" && (Ke *= -1), this.quill.format("indent", Ge + Ke, fe.default.sources.USER);
50713
50755
  }
50714
50756
  },
50715
- link: function(Pe) {
50716
- Pe === !0 && (Pe = prompt("Enter link URL:")), this.quill.format("link", Pe, fe.default.sources.USER);
50757
+ link: function(Me) {
50758
+ Me === !0 && (Me = prompt("Enter link URL:")), this.quill.format("link", Me, fe.default.sources.USER);
50717
50759
  },
50718
- list: function(Pe) {
50760
+ list: function(Me) {
50719
50761
  var Ne = this.quill.getSelection(), We = this.quill.getFormat(Ne);
50720
- Pe === "check" ? We.list === "checked" || We.list === "unchecked" ? this.quill.format("list", !1, fe.default.sources.USER) : this.quill.format("list", "unchecked", fe.default.sources.USER) : this.quill.format("list", Pe, fe.default.sources.USER);
50762
+ Me === "check" ? We.list === "checked" || We.list === "unchecked" ? this.quill.format("list", !1, fe.default.sources.USER) : this.quill.format("list", "unchecked", fe.default.sources.USER) : this.quill.format("list", Me, fe.default.sources.USER);
50721
50763
  }
50722
50764
  }
50723
- }, te.default = Me, te.addControls = Ie;
50765
+ }, te.default = Pe, te.addControls = Ie;
50724
50766
  }),
50725
50767
  /* 59 */
50726
50768
  /***/
@@ -50925,9 +50967,9 @@ function requireQuill() {
50925
50967
  });
50926
50968
  var oe = /* @__PURE__ */ (function() {
50927
50969
  function Ie(Ae, ze) {
50928
- var Pe = [], Ne = !0, We = !1, Ge = void 0;
50970
+ var Me = [], Ne = !0, We = !1, Ge = void 0;
50929
50971
  try {
50930
- for (var Ke = Ae[Symbol.iterator](), ft; !(Ne = (ft = Ke.next()).done) && (Pe.push(ft.value), !(ze && Pe.length === ze)); Ne = !0)
50972
+ for (var Ke = Ae[Symbol.iterator](), ft; !(Ne = (ft = Ke.next()).done) && (Me.push(ft.value), !(ze && Me.length === ze)); Ne = !0)
50931
50973
  ;
50932
50974
  } catch (Je) {
50933
50975
  We = !0, Ge = Je;
@@ -50938,7 +50980,7 @@ function requireQuill() {
50938
50980
  if (We) throw Ge;
50939
50981
  }
50940
50982
  }
50941
- return Pe;
50983
+ return Me;
50942
50984
  }
50943
50985
  return function(Ae, ze) {
50944
50986
  if (Array.isArray(Ae))
@@ -50947,27 +50989,27 @@ function requireQuill() {
50947
50989
  return Ie(Ae, ze);
50948
50990
  throw new TypeError("Invalid attempt to destructure non-iterable instance");
50949
50991
  };
50950
- })(), ne = function Ie(Ae, ze, Pe) {
50992
+ })(), ne = function Ie(Ae, ze, Me) {
50951
50993
  Ae === null && (Ae = Function.prototype);
50952
50994
  var Ne = Object.getOwnPropertyDescriptor(Ae, ze);
50953
50995
  if (Ne === void 0) {
50954
50996
  var We = Object.getPrototypeOf(Ae);
50955
- return We === null ? void 0 : Ie(We, ze, Pe);
50997
+ return We === null ? void 0 : Ie(We, ze, Me);
50956
50998
  } else {
50957
50999
  if ("value" in Ne)
50958
51000
  return Ne.value;
50959
51001
  var Ge = Ne.get;
50960
- return Ge === void 0 ? void 0 : Ge.call(Pe);
51002
+ return Ge === void 0 ? void 0 : Ge.call(Me);
50961
51003
  }
50962
51004
  }, de = /* @__PURE__ */ (function() {
50963
51005
  function Ie(Ae, ze) {
50964
- for (var Pe = 0; Pe < ze.length; Pe++) {
50965
- var Ne = ze[Pe];
51006
+ for (var Me = 0; Me < ze.length; Me++) {
51007
+ var Ne = ze[Me];
50966
51008
  Ne.enumerable = Ne.enumerable || !1, Ne.configurable = !0, "value" in Ne && (Ne.writable = !0), Object.defineProperty(Ae, Ne.key, Ne);
50967
51009
  }
50968
51010
  }
50969
- return function(Ae, ze, Pe) {
50970
- return ze && Ie(Ae.prototype, ze), Pe && Ie(Ae, Pe), Ae;
51011
+ return function(Ae, ze, Me) {
51012
+ return ze && Ie(Ae.prototype, ze), Me && Ie(Ae, Me), Ae;
50971
51013
  };
50972
51014
  })(), ce = re(3), ue = Se(ce), he = re(8), pe = Se(he), fe = re(44), be = Se(fe), me = re(27), ge = Se(me), ve = re(15), _e = re(42), ye = Se(_e);
50973
51015
  function Se(Ie) {
@@ -50987,23 +51029,23 @@ function requireQuill() {
50987
51029
  throw new TypeError("Super expression must either be null or a function, not " + typeof Ae);
50988
51030
  Ie.prototype = Object.create(Ae && Ae.prototype, { constructor: { value: Ie, enumerable: !1, writable: !0, configurable: !0 } }), Ae && (Object.setPrototypeOf ? Object.setPrototypeOf(Ie, Ae) : Ie.__proto__ = Ae);
50989
51031
  }
50990
- var De = [[{ header: ["1", "2", "3", !1] }], ["bold", "italic", "underline", "link"], [{ list: "ordered" }, { list: "bullet" }], ["clean"]], Me = (function(Ie) {
51032
+ var De = [[{ header: ["1", "2", "3", !1] }], ["bold", "italic", "underline", "link"], [{ list: "ordered" }, { list: "bullet" }], ["clean"]], Pe = (function(Ie) {
50991
51033
  qe(Ae, Ie);
50992
- function Ae(ze, Pe) {
50993
- we(this, Ae), Pe.modules.toolbar != null && Pe.modules.toolbar.container == null && (Pe.modules.toolbar.container = De);
50994
- var Ne = Ce(this, (Ae.__proto__ || Object.getPrototypeOf(Ae)).call(this, ze, Pe));
51034
+ function Ae(ze, Me) {
51035
+ we(this, Ae), Me.modules.toolbar != null && Me.modules.toolbar.container == null && (Me.modules.toolbar.container = De);
51036
+ var Ne = Ce(this, (Ae.__proto__ || Object.getPrototypeOf(Ae)).call(this, ze, Me));
50995
51037
  return Ne.quill.container.classList.add("ql-snow"), Ne;
50996
51038
  }
50997
51039
  return de(Ae, [{
50998
51040
  key: "extendToolbar",
50999
- value: function(Pe) {
51000
- Pe.container.classList.add("ql-snow"), this.buildButtons([].slice.call(Pe.container.querySelectorAll("button")), ye.default), this.buildPickers([].slice.call(Pe.container.querySelectorAll("select")), ye.default), this.tooltip = new He(this.quill, this.options.bounds), Pe.container.querySelector(".ql-link") && this.quill.keyboard.addBinding({ key: "K", shortKey: !0 }, function(Ne, We) {
51001
- Pe.handlers.link.call(Pe, !We.format.link);
51041
+ value: function(Me) {
51042
+ Me.container.classList.add("ql-snow"), this.buildButtons([].slice.call(Me.container.querySelectorAll("button")), ye.default), this.buildPickers([].slice.call(Me.container.querySelectorAll("select")), ye.default), this.tooltip = new He(this.quill, this.options.bounds), Me.container.querySelector(".ql-link") && this.quill.keyboard.addBinding({ key: "K", shortKey: !0 }, function(Ne, We) {
51043
+ Me.handlers.link.call(Me, !We.format.link);
51002
51044
  });
51003
51045
  }
51004
51046
  }]), Ae;
51005
51047
  })(be.default);
51006
- Me.DEFAULTS = (0, ue.default)(!0, {}, be.default.DEFAULTS, {
51048
+ Pe.DEFAULTS = (0, ue.default)(!0, {}, be.default.DEFAULTS, {
51007
51049
  modules: {
51008
51050
  toolbar: {
51009
51051
  handlers: {
@@ -51011,10 +51053,10 @@ function requireQuill() {
51011
51053
  if (Ae) {
51012
51054
  var ze = this.quill.getSelection();
51013
51055
  if (ze == null || ze.length == 0) return;
51014
- var Pe = this.quill.getText(ze);
51015
- /^\S+@\S+\.\S+$/.test(Pe) && Pe.indexOf("mailto:") !== 0 && (Pe = "mailto:" + Pe);
51056
+ var Me = this.quill.getText(ze);
51057
+ /^\S+@\S+\.\S+$/.test(Me) && Me.indexOf("mailto:") !== 0 && (Me = "mailto:" + Me);
51016
51058
  var Ne = this.quill.theme.tooltip;
51017
- Ne.edit("link", Pe);
51059
+ Ne.edit("link", Me);
51018
51060
  } else
51019
51061
  this.quill.format("link", !1);
51020
51062
  }
@@ -51024,36 +51066,36 @@ function requireQuill() {
51024
51066
  });
51025
51067
  var He = (function(Ie) {
51026
51068
  qe(Ae, Ie);
51027
- function Ae(ze, Pe) {
51069
+ function Ae(ze, Me) {
51028
51070
  we(this, Ae);
51029
- var Ne = Ce(this, (Ae.__proto__ || Object.getPrototypeOf(Ae)).call(this, ze, Pe));
51071
+ var Ne = Ce(this, (Ae.__proto__ || Object.getPrototypeOf(Ae)).call(this, ze, Me));
51030
51072
  return Ne.preview = Ne.root.querySelector("a.ql-preview"), Ne;
51031
51073
  }
51032
51074
  return de(Ae, [{
51033
51075
  key: "listen",
51034
51076
  value: function() {
51035
- var Pe = this;
51077
+ var Me = this;
51036
51078
  ne(Ae.prototype.__proto__ || Object.getPrototypeOf(Ae.prototype), "listen", this).call(this), this.root.querySelector("a.ql-action").addEventListener("click", function(Ne) {
51037
- Pe.root.classList.contains("ql-editing") ? Pe.save() : Pe.edit("link", Pe.preview.textContent), Ne.preventDefault();
51079
+ Me.root.classList.contains("ql-editing") ? Me.save() : Me.edit("link", Me.preview.textContent), Ne.preventDefault();
51038
51080
  }), this.root.querySelector("a.ql-remove").addEventListener("click", function(Ne) {
51039
- if (Pe.linkRange != null) {
51040
- var We = Pe.linkRange;
51041
- Pe.restoreFocus(), Pe.quill.formatText(We, "link", !1, pe.default.sources.USER), delete Pe.linkRange;
51081
+ if (Me.linkRange != null) {
51082
+ var We = Me.linkRange;
51083
+ Me.restoreFocus(), Me.quill.formatText(We, "link", !1, pe.default.sources.USER), delete Me.linkRange;
51042
51084
  }
51043
- Ne.preventDefault(), Pe.hide();
51085
+ Ne.preventDefault(), Me.hide();
51044
51086
  }), this.quill.on(pe.default.events.SELECTION_CHANGE, function(Ne, We, Ge) {
51045
51087
  if (Ne != null) {
51046
51088
  if (Ne.length === 0 && Ge === pe.default.sources.USER) {
51047
- var Ke = Pe.quill.scroll.descendant(ge.default, Ne.index), ft = oe(Ke, 2), Je = ft[0], Ze = ft[1];
51089
+ var Ke = Me.quill.scroll.descendant(ge.default, Ne.index), ft = oe(Ke, 2), Je = ft[0], Ze = ft[1];
51048
51090
  if (Je != null) {
51049
- Pe.linkRange = new ve.Range(Ne.index - Ze, Je.length());
51091
+ Me.linkRange = new ve.Range(Ne.index - Ze, Je.length());
51050
51092
  var Le = ge.default.formats(Je.domNode);
51051
- Pe.preview.textContent = Le, Pe.preview.setAttribute("href", Le), Pe.show(), Pe.position(Pe.quill.getBounds(Pe.linkRange));
51093
+ Me.preview.textContent = Le, Me.preview.setAttribute("href", Le), Me.show(), Me.position(Me.quill.getBounds(Me.linkRange));
51052
51094
  return;
51053
51095
  }
51054
51096
  } else
51055
- delete Pe.linkRange;
51056
- Pe.hide();
51097
+ delete Me.linkRange;
51098
+ Me.hide();
51057
51099
  }
51058
51100
  });
51059
51101
  }
@@ -51064,7 +51106,7 @@ function requireQuill() {
51064
51106
  }
51065
51107
  }]), Ae;
51066
51108
  })(fe.BaseTooltip);
51067
- He.TEMPLATE = ['<a class="ql-preview" target="_blank" href="about:blank"></a>', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-action"></a>', '<a class="ql-remove"></a>'].join(""), te.default = Me;
51109
+ He.TEMPLATE = ['<a class="ql-preview" target="_blank" href="about:blank"></a>', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-action"></a>', '<a class="ql-remove"></a>'].join(""), te.default = Pe;
51068
51110
  }),
51069
51111
  /* 64 */
51070
51112
  /***/
@@ -51072,7 +51114,7 @@ function requireQuill() {
51072
51114
  Object.defineProperty(te, "__esModule", {
51073
51115
  value: !0
51074
51116
  });
51075
- var oe = re(29), ne = wt(oe), de = re(37), ce = re(39), ue = re(65), he = re(66), pe = wt(he), fe = re(67), be = wt(fe), me = re(68), ge = wt(me), ve = re(38), _e = re(26), ye = re(40), Se = re(41), we = re(57), Ce = wt(we), qe = re(69), De = wt(qe), Me = re(27), He = wt(Me), Ie = re(70), Ae = wt(Ie), ze = re(71), Pe = wt(ze), Ne = re(72), We = wt(Ne), Ge = re(73), Ke = wt(Ge), ft = re(74), Je = wt(ft), Ze = re(13), Le = wt(Ze), Ue = re(75), Ve = wt(Ue), Qe = re(76), Xe = wt(Qe), Be = re(58), Ye = wt(Be), rt = re(42), ot = wt(rt), _t = re(28), kt = wt(_t), It = re(60), zt = wt(It), Nt = re(61), Bt = wt(Nt), rs = re(62), Yt = wt(rs), gt = re(109), mt = wt(gt), xt = re(63), Ct = wt(xt);
51117
+ var oe = re(29), ne = wt(oe), de = re(37), ce = re(39), ue = re(65), he = re(66), pe = wt(he), fe = re(67), be = wt(fe), me = re(68), ge = wt(me), ve = re(38), _e = re(26), ye = re(40), Se = re(41), we = re(57), Ce = wt(we), qe = re(69), De = wt(qe), Pe = re(27), He = wt(Pe), Ie = re(70), Ae = wt(Ie), ze = re(71), Me = wt(ze), Ne = re(72), We = wt(Ne), Ge = re(73), Ke = wt(Ge), ft = re(74), Je = wt(ft), Ze = re(13), Le = wt(Ze), Ue = re(75), Ve = wt(Ue), Qe = re(76), Xe = wt(Qe), Be = re(58), Ye = wt(Be), rt = re(42), ot = wt(rt), _t = re(28), kt = wt(_t), It = re(60), zt = wt(It), Nt = re(61), Bt = wt(Nt), rs = re(62), Yt = wt(rs), gt = re(109), mt = wt(gt), xt = re(63), Ct = wt(xt);
51076
51118
  function wt(Lt) {
51077
51119
  return Lt && Lt.__esModule ? Lt : { default: Lt };
51078
51120
  }
@@ -51107,7 +51149,7 @@ function requireQuill() {
51107
51149
  "formats/italic": De.default,
51108
51150
  "formats/link": He.default,
51109
51151
  "formats/script": Ae.default,
51110
- "formats/strike": Pe.default,
51152
+ "formats/strike": Me.default,
51111
51153
  "formats/underline": We.default,
51112
51154
  "formats/image": Ke.default,
51113
51155
  "formats/video": Je.default,
@@ -51291,8 +51333,8 @@ function requireQuill() {
51291
51333
  var oe = /* @__PURE__ */ (function() {
51292
51334
  function we(Ce, qe) {
51293
51335
  for (var De = 0; De < qe.length; De++) {
51294
- var Me = qe[De];
51295
- Me.enumerable = Me.enumerable || !1, Me.configurable = !0, "value" in Me && (Me.writable = !0), Object.defineProperty(Ce, Me.key, Me);
51336
+ var Pe = qe[De];
51337
+ Pe.enumerable = Pe.enumerable || !1, Pe.configurable = !0, "value" in Pe && (Pe.writable = !0), Object.defineProperty(Ce, Pe.key, Pe);
51296
51338
  }
51297
51339
  }
51298
51340
  return function(Ce, qe, De) {
@@ -51300,14 +51342,14 @@ function requireQuill() {
51300
51342
  };
51301
51343
  })(), ne = function we(Ce, qe, De) {
51302
51344
  Ce === null && (Ce = Function.prototype);
51303
- var Me = Object.getOwnPropertyDescriptor(Ce, qe);
51304
- if (Me === void 0) {
51345
+ var Pe = Object.getOwnPropertyDescriptor(Ce, qe);
51346
+ if (Pe === void 0) {
51305
51347
  var He = Object.getPrototypeOf(Ce);
51306
51348
  return He === null ? void 0 : we(He, qe, De);
51307
51349
  } else {
51308
- if ("value" in Me)
51309
- return Me.value;
51310
- var Ie = Me.get;
51350
+ if ("value" in Pe)
51351
+ return Pe.value;
51352
+ var Ie = Pe.get;
51311
51353
  return Ie === void 0 ? void 0 : Ie.call(De);
51312
51354
  }
51313
51355
  }, de = re(0), ce = be(de), ue = re(4), he = be(ue), pe = re(25), fe = be(pe);
@@ -51338,8 +51380,8 @@ function requireQuill() {
51338
51380
  }
51339
51381
  return oe(Ce, [{
51340
51382
  key: "format",
51341
- value: function(De, Me) {
51342
- De === Se.blotName && !Me ? this.replaceWith(ce.default.create(this.statics.scope)) : ne(Ce.prototype.__proto__ || Object.getPrototypeOf(Ce.prototype), "format", this).call(this, De, Me);
51383
+ value: function(De, Pe) {
51384
+ De === Se.blotName && !Pe ? this.replaceWith(ce.default.create(this.statics.scope)) : ne(Ce.prototype.__proto__ || Object.getPrototypeOf(Ce.prototype), "format", this).call(this, De, Pe);
51343
51385
  }
51344
51386
  }, {
51345
51387
  key: "remove",
@@ -51348,8 +51390,8 @@ function requireQuill() {
51348
51390
  }
51349
51391
  }, {
51350
51392
  key: "replaceWith",
51351
- value: function(De, Me) {
51352
- return this.parent.isolate(this.offset(this.parent), this.length()), De === this.parent.statics.blotName ? (this.parent.replaceWith(De, Me), this) : (this.parent.unwrap(), ne(Ce.prototype.__proto__ || Object.getPrototypeOf(Ce.prototype), "replaceWith", this).call(this, De, Me));
51393
+ value: function(De, Pe) {
51394
+ return this.parent.isolate(this.offset(this.parent), this.length()), De === this.parent.statics.blotName ? (this.parent.replaceWith(De, Pe), this) : (this.parent.unwrap(), ne(Ce.prototype.__proto__ || Object.getPrototypeOf(Ce.prototype), "replaceWith", this).call(this, De, Pe));
51353
51395
  }
51354
51396
  }], [{
51355
51397
  key: "formats",
@@ -51363,7 +51405,7 @@ function requireQuill() {
51363
51405
  _e(Ce, we), oe(Ce, null, [{
51364
51406
  key: "create",
51365
51407
  value: function(De) {
51366
- var Me = De === "ordered" ? "OL" : "UL", He = ne(Ce.__proto__ || Object.getPrototypeOf(Ce), "create", this).call(this, Me);
51408
+ var Pe = De === "ordered" ? "OL" : "UL", He = ne(Ce.__proto__ || Object.getPrototypeOf(Ce), "create", this).call(this, Pe);
51367
51409
  return (De === "checked" || De === "unchecked") && He.setAttribute("data-checked", De === "checked"), He;
51368
51410
  }
51369
51411
  }, {
@@ -51376,18 +51418,18 @@ function requireQuill() {
51376
51418
  }]);
51377
51419
  function Ce(qe) {
51378
51420
  ge(this, Ce);
51379
- var De = ve(this, (Ce.__proto__ || Object.getPrototypeOf(Ce)).call(this, qe)), Me = function(Ie) {
51421
+ var De = ve(this, (Ce.__proto__ || Object.getPrototypeOf(Ce)).call(this, qe)), Pe = function(Ie) {
51380
51422
  if (Ie.target.parentNode === qe) {
51381
51423
  var Ae = De.statics.formats(qe), ze = ce.default.find(Ie.target);
51382
51424
  Ae === "checked" ? ze.format("list", "unchecked") : Ae === "unchecked" && ze.format("list", "checked");
51383
51425
  }
51384
51426
  };
51385
- return qe.addEventListener("touchstart", Me), qe.addEventListener("mousedown", Me), De;
51427
+ return qe.addEventListener("touchstart", Pe), qe.addEventListener("mousedown", Pe), De;
51386
51428
  }
51387
51429
  return oe(Ce, [{
51388
51430
  key: "format",
51389
- value: function(De, Me) {
51390
- this.children.length > 0 && this.children.tail.format(De, Me);
51431
+ value: function(De, Pe) {
51432
+ this.children.length > 0 && this.children.tail.format(De, Pe);
51391
51433
  }
51392
51434
  }, {
51393
51435
  key: "formats",
@@ -51396,11 +51438,11 @@ function requireQuill() {
51396
51438
  }
51397
51439
  }, {
51398
51440
  key: "insertBefore",
51399
- value: function(De, Me) {
51441
+ value: function(De, Pe) {
51400
51442
  if (De instanceof ye)
51401
- ne(Ce.prototype.__proto__ || Object.getPrototypeOf(Ce.prototype), "insertBefore", this).call(this, De, Me);
51443
+ ne(Ce.prototype.__proto__ || Object.getPrototypeOf(Ce.prototype), "insertBefore", this).call(this, De, Pe);
51402
51444
  else {
51403
- var He = Me == null ? this.length() : Me.offset(this), Ie = this.split(He);
51445
+ var He = Pe == null ? this.length() : Pe.offset(this), Ie = this.split(He);
51404
51446
  Ie.parent.insertBefore(De, Ie);
51405
51447
  }
51406
51448
  }
@@ -51408,15 +51450,15 @@ function requireQuill() {
51408
51450
  key: "optimize",
51409
51451
  value: function(De) {
51410
51452
  ne(Ce.prototype.__proto__ || Object.getPrototypeOf(Ce.prototype), "optimize", this).call(this, De);
51411
- var Me = this.next;
51412
- Me != null && Me.prev === this && Me.statics.blotName === this.statics.blotName && Me.domNode.tagName === this.domNode.tagName && Me.domNode.getAttribute("data-checked") === this.domNode.getAttribute("data-checked") && (Me.moveChildren(this), Me.remove());
51453
+ var Pe = this.next;
51454
+ Pe != null && Pe.prev === this && Pe.statics.blotName === this.statics.blotName && Pe.domNode.tagName === this.domNode.tagName && Pe.domNode.getAttribute("data-checked") === this.domNode.getAttribute("data-checked") && (Pe.moveChildren(this), Pe.remove());
51413
51455
  }
51414
51456
  }, {
51415
51457
  key: "replace",
51416
51458
  value: function(De) {
51417
51459
  if (De.statics.blotName !== this.statics.blotName) {
51418
- var Me = ce.default.create(this.statics.defaultChild);
51419
- De.moveChildren(Me), this.appendChild(Me);
51460
+ var Pe = ce.default.create(this.statics.defaultChild);
51461
+ De.moveChildren(Pe), this.appendChild(Pe);
51420
51462
  }
51421
51463
  ne(Ce.prototype.__proto__ || Object.getPrototypeOf(Ce.prototype), "replace", this).call(this, De);
51422
51464
  }
@@ -51780,8 +51822,8 @@ function requireQuill() {
51780
51822
  we === null && (we = Function.prototype);
51781
51823
  var De = Object.getOwnPropertyDescriptor(we, Ce);
51782
51824
  if (De === void 0) {
51783
- var Me = Object.getPrototypeOf(we);
51784
- return Me === null ? void 0 : Se(Me, Ce, qe);
51825
+ var Pe = Object.getPrototypeOf(we);
51826
+ return Pe === null ? void 0 : Se(Pe, Ce, qe);
51785
51827
  } else {
51786
51828
  if ("value" in De)
51787
51829
  return De.value;
@@ -51853,21 +51895,21 @@ function requireQuill() {
51853
51895
  value: !0
51854
51896
  }), te.default = te.CodeToken = te.CodeBlock = void 0;
51855
51897
  var oe = /* @__PURE__ */ (function() {
51856
- function qe(De, Me) {
51857
- for (var He = 0; He < Me.length; He++) {
51858
- var Ie = Me[He];
51898
+ function qe(De, Pe) {
51899
+ for (var He = 0; He < Pe.length; He++) {
51900
+ var Ie = Pe[He];
51859
51901
  Ie.enumerable = Ie.enumerable || !1, Ie.configurable = !0, "value" in Ie && (Ie.writable = !0), Object.defineProperty(De, Ie.key, Ie);
51860
51902
  }
51861
51903
  }
51862
- return function(De, Me, He) {
51863
- return Me && qe(De.prototype, Me), He && qe(De, He), De;
51904
+ return function(De, Pe, He) {
51905
+ return Pe && qe(De.prototype, Pe), He && qe(De, He), De;
51864
51906
  };
51865
- })(), ne = function qe(De, Me, He) {
51907
+ })(), ne = function qe(De, Pe, He) {
51866
51908
  De === null && (De = Function.prototype);
51867
- var Ie = Object.getOwnPropertyDescriptor(De, Me);
51909
+ var Ie = Object.getOwnPropertyDescriptor(De, Pe);
51868
51910
  if (Ie === void 0) {
51869
51911
  var Ae = Object.getPrototypeOf(De);
51870
- return Ae === null ? void 0 : qe(Ae, Me, He);
51912
+ return Ae === null ? void 0 : qe(Ae, Pe, He);
51871
51913
  } else {
51872
51914
  if ("value" in Ie)
51873
51915
  return Ie.value;
@@ -51920,9 +51962,9 @@ function requireQuill() {
51920
51962
  he.default.register(we, !0), he.default.register(Se, !0);
51921
51963
  }
51922
51964
  }]);
51923
- function De(Me, He) {
51965
+ function De(Pe, He) {
51924
51966
  ve(this, De);
51925
- var Ie = _e(this, (De.__proto__ || Object.getPrototypeOf(De)).call(this, Me, He));
51967
+ var Ie = _e(this, (De.__proto__ || Object.getPrototypeOf(De)).call(this, Pe, He));
51926
51968
  if (typeof Ie.options.highlight != "function")
51927
51969
  throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");
51928
51970
  var Ae = null;
@@ -52122,95 +52164,95 @@ function requireQuill() {
52122
52164
  Object.defineProperty(te, "__esModule", {
52123
52165
  value: !0
52124
52166
  }), te.default = te.BubbleTooltip = void 0;
52125
- var oe = function De(Me, He, Ie) {
52126
- Me === null && (Me = Function.prototype);
52127
- var Ae = Object.getOwnPropertyDescriptor(Me, He);
52167
+ var oe = function De(Pe, He, Ie) {
52168
+ Pe === null && (Pe = Function.prototype);
52169
+ var Ae = Object.getOwnPropertyDescriptor(Pe, He);
52128
52170
  if (Ae === void 0) {
52129
- var ze = Object.getPrototypeOf(Me);
52171
+ var ze = Object.getPrototypeOf(Pe);
52130
52172
  return ze === null ? void 0 : De(ze, He, Ie);
52131
52173
  } else {
52132
52174
  if ("value" in Ae)
52133
52175
  return Ae.value;
52134
- var Pe = Ae.get;
52135
- return Pe === void 0 ? void 0 : Pe.call(Ie);
52176
+ var Me = Ae.get;
52177
+ return Me === void 0 ? void 0 : Me.call(Ie);
52136
52178
  }
52137
52179
  }, ne = /* @__PURE__ */ (function() {
52138
- function De(Me, He) {
52180
+ function De(Pe, He) {
52139
52181
  for (var Ie = 0; Ie < He.length; Ie++) {
52140
52182
  var Ae = He[Ie];
52141
- Ae.enumerable = Ae.enumerable || !1, Ae.configurable = !0, "value" in Ae && (Ae.writable = !0), Object.defineProperty(Me, Ae.key, Ae);
52183
+ Ae.enumerable = Ae.enumerable || !1, Ae.configurable = !0, "value" in Ae && (Ae.writable = !0), Object.defineProperty(Pe, Ae.key, Ae);
52142
52184
  }
52143
52185
  }
52144
- return function(Me, He, Ie) {
52145
- return He && De(Me.prototype, He), Ie && De(Me, Ie), Me;
52186
+ return function(Pe, He, Ie) {
52187
+ return He && De(Pe.prototype, He), Ie && De(Pe, Ie), Pe;
52146
52188
  };
52147
52189
  })(), de = re(3), ce = ve(de), ue = re(8), he = ve(ue), pe = re(44), fe = ve(pe), be = re(15), me = re(42), ge = ve(me);
52148
52190
  function ve(De) {
52149
52191
  return De && De.__esModule ? De : { default: De };
52150
52192
  }
52151
- function _e(De, Me) {
52152
- if (!(De instanceof Me))
52193
+ function _e(De, Pe) {
52194
+ if (!(De instanceof Pe))
52153
52195
  throw new TypeError("Cannot call a class as a function");
52154
52196
  }
52155
- function ye(De, Me) {
52197
+ function ye(De, Pe) {
52156
52198
  if (!De)
52157
52199
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
52158
- return Me && (typeof Me == "object" || typeof Me == "function") ? Me : De;
52200
+ return Pe && (typeof Pe == "object" || typeof Pe == "function") ? Pe : De;
52159
52201
  }
52160
- function Se(De, Me) {
52161
- if (typeof Me != "function" && Me !== null)
52162
- throw new TypeError("Super expression must either be null or a function, not " + typeof Me);
52163
- De.prototype = Object.create(Me && Me.prototype, { constructor: { value: De, enumerable: !1, writable: !0, configurable: !0 } }), Me && (Object.setPrototypeOf ? Object.setPrototypeOf(De, Me) : De.__proto__ = Me);
52202
+ function Se(De, Pe) {
52203
+ if (typeof Pe != "function" && Pe !== null)
52204
+ throw new TypeError("Super expression must either be null or a function, not " + typeof Pe);
52205
+ De.prototype = Object.create(Pe && Pe.prototype, { constructor: { value: De, enumerable: !1, writable: !0, configurable: !0 } }), Pe && (Object.setPrototypeOf ? Object.setPrototypeOf(De, Pe) : De.__proto__ = Pe);
52164
52206
  }
52165
52207
  var we = [["bold", "italic", "link"], [{ header: 1 }, { header: 2 }, "blockquote"]], Ce = (function(De) {
52166
- Se(Me, De);
52167
- function Me(He, Ie) {
52168
- _e(this, Me), Ie.modules.toolbar != null && Ie.modules.toolbar.container == null && (Ie.modules.toolbar.container = we);
52169
- var Ae = ye(this, (Me.__proto__ || Object.getPrototypeOf(Me)).call(this, He, Ie));
52208
+ Se(Pe, De);
52209
+ function Pe(He, Ie) {
52210
+ _e(this, Pe), Ie.modules.toolbar != null && Ie.modules.toolbar.container == null && (Ie.modules.toolbar.container = we);
52211
+ var Ae = ye(this, (Pe.__proto__ || Object.getPrototypeOf(Pe)).call(this, He, Ie));
52170
52212
  return Ae.quill.container.classList.add("ql-bubble"), Ae;
52171
52213
  }
52172
- return ne(Me, [{
52214
+ return ne(Pe, [{
52173
52215
  key: "extendToolbar",
52174
52216
  value: function(Ie) {
52175
52217
  this.tooltip = new qe(this.quill, this.options.bounds), this.tooltip.root.appendChild(Ie.container), this.buildButtons([].slice.call(Ie.container.querySelectorAll("button")), ge.default), this.buildPickers([].slice.call(Ie.container.querySelectorAll("select")), ge.default);
52176
52218
  }
52177
- }]), Me;
52219
+ }]), Pe;
52178
52220
  })(fe.default);
52179
52221
  Ce.DEFAULTS = (0, ce.default)(!0, {}, fe.default.DEFAULTS, {
52180
52222
  modules: {
52181
52223
  toolbar: {
52182
52224
  handlers: {
52183
- link: function(Me) {
52184
- Me ? this.quill.theme.tooltip.edit() : this.quill.format("link", !1);
52225
+ link: function(Pe) {
52226
+ Pe ? this.quill.theme.tooltip.edit() : this.quill.format("link", !1);
52185
52227
  }
52186
52228
  }
52187
52229
  }
52188
52230
  }
52189
52231
  });
52190
52232
  var qe = (function(De) {
52191
- Se(Me, De);
52192
- function Me(He, Ie) {
52193
- _e(this, Me);
52194
- var Ae = ye(this, (Me.__proto__ || Object.getPrototypeOf(Me)).call(this, He, Ie));
52195
- return Ae.quill.on(he.default.events.EDITOR_CHANGE, function(ze, Pe, Ne, We) {
52233
+ Se(Pe, De);
52234
+ function Pe(He, Ie) {
52235
+ _e(this, Pe);
52236
+ var Ae = ye(this, (Pe.__proto__ || Object.getPrototypeOf(Pe)).call(this, He, Ie));
52237
+ return Ae.quill.on(he.default.events.EDITOR_CHANGE, function(ze, Me, Ne, We) {
52196
52238
  if (ze === he.default.events.SELECTION_CHANGE)
52197
- if (Pe != null && Pe.length > 0 && We === he.default.sources.USER) {
52239
+ if (Me != null && Me.length > 0 && We === he.default.sources.USER) {
52198
52240
  Ae.show(), Ae.root.style.left = "0px", Ae.root.style.width = "", Ae.root.style.width = Ae.root.offsetWidth + "px";
52199
- var Ge = Ae.quill.getLines(Pe.index, Pe.length);
52241
+ var Ge = Ae.quill.getLines(Me.index, Me.length);
52200
52242
  if (Ge.length === 1)
52201
- Ae.position(Ae.quill.getBounds(Pe));
52243
+ Ae.position(Ae.quill.getBounds(Me));
52202
52244
  else {
52203
- var Ke = Ge[Ge.length - 1], ft = Ae.quill.getIndex(Ke), Je = Math.min(Ke.length() - 1, Pe.index + Pe.length - ft), Ze = Ae.quill.getBounds(new be.Range(ft, Je));
52245
+ var Ke = Ge[Ge.length - 1], ft = Ae.quill.getIndex(Ke), Je = Math.min(Ke.length() - 1, Me.index + Me.length - ft), Ze = Ae.quill.getBounds(new be.Range(ft, Je));
52204
52246
  Ae.position(Ze);
52205
52247
  }
52206
52248
  } else document.activeElement !== Ae.textbox && Ae.quill.hasFocus() && Ae.hide();
52207
52249
  }), Ae;
52208
52250
  }
52209
- return ne(Me, [{
52251
+ return ne(Pe, [{
52210
52252
  key: "listen",
52211
52253
  value: function() {
52212
52254
  var Ie = this;
52213
- oe(Me.prototype.__proto__ || Object.getPrototypeOf(Me.prototype), "listen", this).call(this), this.root.querySelector(".ql-close").addEventListener("click", function() {
52255
+ oe(Pe.prototype.__proto__ || Object.getPrototypeOf(Pe.prototype), "listen", this).call(this), this.root.querySelector(".ql-close").addEventListener("click", function() {
52214
52256
  Ie.root.classList.remove("ql-editing");
52215
52257
  }), this.quill.on(he.default.events.SCROLL_OPTIMIZE, function() {
52216
52258
  setTimeout(function() {
@@ -52229,11 +52271,11 @@ function requireQuill() {
52229
52271
  }, {
52230
52272
  key: "position",
52231
52273
  value: function(Ie) {
52232
- var Ae = oe(Me.prototype.__proto__ || Object.getPrototypeOf(Me.prototype), "position", this).call(this, Ie), ze = this.root.querySelector(".ql-tooltip-arrow");
52274
+ var Ae = oe(Pe.prototype.__proto__ || Object.getPrototypeOf(Pe.prototype), "position", this).call(this, Ie), ze = this.root.querySelector(".ql-tooltip-arrow");
52233
52275
  if (ze.style.marginLeft = "", Ae === 0) return Ae;
52234
52276
  ze.style.marginLeft = -1 * Ae - ze.offsetWidth / 2 + "px";
52235
52277
  }
52236
- }]), Me;
52278
+ }]), Pe;
52237
52279
  })(pe.BaseTooltip);
52238
52280
  qe.TEMPLATE = ['<span class="ql-tooltip-arrow"></span>', '<div class="ql-tooltip-editor">', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-close"></a>', "</div>"].join(""), te.BubbleTooltip = qe, te.default = Ce;
52239
52281
  }),
@@ -53317,7 +53359,7 @@ const commonNavMenuItems = [
53317
53359
  d$z
53318
53360
  ), useSharedUI(), useComponents(), useInternalViews();
53319
53361
  }, initializeShell = (J, W) => {
53320
- W && shellApi.contextManager.initializeContext(W), useLocalization(shellApi), useUI(), useFeatures(shellApi);
53362
+ W && shellApi.contextManager.initializeContext(W), activityMonitor.start(), sessionRefreshTimer.start(), useLocalization(shellApi), useUI(), useFeatures(shellApi);
53321
53363
  const X = new PrimariaShell();
53322
53364
  J.appendChild(X);
53323
53365
  };
@@ -53346,6 +53388,8 @@ if (typeof document < "u") {
53346
53388
  ` + dssCSS, document.head.appendChild(J);
53347
53389
  }
53348
53390
  export {
53391
+ l as A,
53392
+ PrimariaInteractionService as B,
53349
53393
  EcapEventManager as E,
53350
53394
  PrimariaNavItem as P,
53351
53395
  QuickActionItem as Q,
@@ -53371,9 +53415,9 @@ export {
53371
53415
  translate$1 as t,
53372
53416
  disposePlugins as u,
53373
53417
  PrimariaRegionHost as v,
53374
- primariaApiFactory as w,
53375
- PrimariaContentSwitcher as x,
53376
- l as y,
53377
- PrimariaInteractionService as z
53418
+ activityMonitor as w,
53419
+ sessionRefreshTimer as x,
53420
+ primariaApiFactory as y,
53421
+ PrimariaContentSwitcher as z
53378
53422
  };
53379
- //# sourceMappingURL=index-DHrGHdzq.js.map
53423
+ //# sourceMappingURL=index-BPXzFbQm.js.map