@uxland/primary-shell 7.40.4 → 7.41.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,7 +68,7 @@ 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 = Ft(), we = zt(_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 = Mt(), we = zt(_e);
72
72
  function Ae(it, nt, vt, At) {
73
73
  if (Be(vt)) {
74
74
  if (!It(it))
@@ -116,12 +116,12 @@ function require_Reflect() {
116
116
  return Be(vt) || (vt = kt(vt)), Ge(it, nt, vt);
117
117
  }
118
118
  J("hasOwnMetadata", De);
119
- function Fe(it, nt, vt) {
119
+ function Me(it, nt, vt) {
120
120
  if (!Ue(nt))
121
121
  throw new TypeError();
122
122
  return Be(vt) || (vt = kt(vt)), Ke(it, nt, vt);
123
123
  }
124
- J("getMetadata", Fe);
124
+ J("getMetadata", Me);
125
125
  function He(it, nt, vt) {
126
126
  if (!Ue(nt))
127
127
  throw new TypeError();
@@ -137,7 +137,7 @@ function require_Reflect() {
137
137
  function Ce(it, nt) {
138
138
  if (!Ue(it))
139
139
  throw new TypeError();
140
- return Be(nt) || (nt = kt(nt)), Me(it, nt);
140
+ return Be(nt) || (nt = kt(nt)), Fe(it, nt);
141
141
  }
142
142
  J("getOwnMetadataKeys", Ce);
143
143
  function qe(it, nt, vt) {
@@ -221,7 +221,7 @@ function require_Reflect() {
221
221
  Lt.OrdinaryDefineOwnMetadata(it, nt, vt, At);
222
222
  }
223
223
  function Ze(it, nt) {
224
- var vt = Me(it, nt), At = $t(it);
224
+ var vt = Fe(it, nt), At = $t(it);
225
225
  if (At === null)
226
226
  return vt;
227
227
  var Lt = Ze(At, nt);
@@ -239,7 +239,7 @@ function require_Reflect() {
239
239
  }
240
240
  return ls;
241
241
  }
242
- function Me(it, nt) {
242
+ function Fe(it, nt) {
243
243
  var vt = ds(
244
244
  it,
245
245
  nt,
@@ -392,7 +392,7 @@ function require_Reflect() {
392
392
  var Lt = At.constructor;
393
393
  return typeof Lt != "function" || Lt === it ? nt : Lt;
394
394
  }
395
- function Mt() {
395
+ function Ft() {
396
396
  var it;
397
397
  !Be(ve) && typeof te.Reflect < "u" && !(ve in te.Reflect) && typeof te.Reflect.defineMetadata == "function" && (it = cs(te.Reflect));
398
398
  var nt, vt, At, Lt = new ge(), os = {
@@ -465,9 +465,9 @@ function require_Reflect() {
465
465
  return !0;
466
466
  }
467
467
  }
468
- function Ft() {
468
+ function Mt() {
469
469
  var it;
470
- return !Be(ve) && Ue(te.Reflect) && Object.isExtensible(te.Reflect) && (it = te.Reflect[ve]), Be(it) && (it = Mt()), !Be(ve) && Ue(te.Reflect) && Object.isExtensible(te.Reflect) && Object.defineProperty(te.Reflect, ve, {
470
+ return !Be(ve) && Ue(te.Reflect) && Object.isExtensible(te.Reflect) && (it = te.Reflect[ve]), Be(it) && (it = Ft()), !Be(ve) && Ue(te.Reflect) && Object.isExtensible(te.Reflect) && Object.defineProperty(te.Reflect, ve, {
471
471
  enumerable: !1,
472
472
  configurable: !1,
473
473
  writable: !1,
@@ -4801,7 +4801,7 @@ const resolveConfig = (X) => {
4801
4801
  onDownloadProgress: Se,
4802
4802
  onUploadProgress: Pe,
4803
4803
  responseType: De,
4804
- headers: Fe,
4804
+ headers: Me,
4805
4805
  withCredentials: He = "same-origin",
4806
4806
  fetchOptions: Ie
4807
4807
  } = resolveConfig(me), Ce = W || fetch;
@@ -4812,18 +4812,18 @@ const resolveConfig = (X) => {
4812
4812
  });
4813
4813
  let We;
4814
4814
  try {
4815
- if (Pe && ue && ve !== "get" && ve !== "head" && (We = await be(Fe, _e)) !== 0) {
4816
- let Me = new J(ge, {
4815
+ if (Pe && ue && ve !== "get" && ve !== "head" && (We = await be(Me, _e)) !== 0) {
4816
+ let Fe = new J(ge, {
4817
4817
  method: "POST",
4818
4818
  body: _e,
4819
4819
  duplex: "half"
4820
4820
  }), Ve;
4821
- if (utils$1.isFormData(_e) && (Ve = Me.headers.get("content-type")) && Fe.setContentType(Ve), Me.body) {
4821
+ if (utils$1.isFormData(_e) && (Ve = Fe.headers.get("content-type")) && Me.setContentType(Ve), Fe.body) {
4822
4822
  const [Be, Xe] = progressEventDecorator(
4823
4823
  We,
4824
4824
  progressEventReducer(asyncDecorator(Pe))
4825
4825
  );
4826
- _e = trackStream(Me.body, DEFAULT_CHUNK_SIZE, Be, Xe);
4826
+ _e = trackStream(Fe.body, DEFAULT_CHUNK_SIZE, Be, Xe);
4827
4827
  }
4828
4828
  }
4829
4829
  utils$1.isString(He) || (He = He ? "include" : "omit");
@@ -4831,7 +4831,7 @@ const resolveConfig = (X) => {
4831
4831
  ...Ie,
4832
4832
  signal: qe,
4833
4833
  method: ve.toUpperCase(),
4834
- headers: Fe.normalize().toJSON(),
4834
+ headers: Me.normalize().toJSON(),
4835
4835
  body: _e,
4836
4836
  duplex: "half",
4837
4837
  credentials: Ge ? He : void 0
@@ -4840,9 +4840,9 @@ const resolveConfig = (X) => {
4840
4840
  let ft = await (oe ? Ce(Le, Ie) : Ce(ge, Ke));
4841
4841
  const Qe = he && (De === "stream" || De === "response");
4842
4842
  if (he && (Se || Qe && ze)) {
4843
- const Me = {};
4843
+ const Fe = {};
4844
4844
  ["status", "statusText", "headers"].forEach((Je) => {
4845
- Me[Je] = ft[Je];
4845
+ Fe[Je] = ft[Je];
4846
4846
  });
4847
4847
  const Ve = utils$1.toFiniteNumber(ft.headers.get("content-length")), [Be, Xe] = Se && progressEventDecorator(
4848
4848
  Ve,
@@ -4852,13 +4852,13 @@ const resolveConfig = (X) => {
4852
4852
  trackStream(ft.body, DEFAULT_CHUNK_SIZE, Be, () => {
4853
4853
  Xe && Xe(), ze && ze();
4854
4854
  }),
4855
- Me
4855
+ Fe
4856
4856
  );
4857
4857
  }
4858
4858
  De = De || "text";
4859
4859
  let Ze = await pe[utils$1.findKey(pe, De) || "text"](ft, me);
4860
- return !Qe && ze && ze(), await new Promise((Me, Ve) => {
4861
- settle(Me, Ve, {
4860
+ return !Qe && ze && ze(), await new Promise((Fe, Ve) => {
4861
+ settle(Fe, Ve, {
4862
4862
  data: Ze,
4863
4863
  headers: AxiosHeaders$1.from(ft.headers),
4864
4864
  status: ft.status,
@@ -5565,14 +5565,14 @@ class ParimariaInteractionServiceImpl extends PrimariaInteractionService {
5565
5565
  useEffect(() => {
5566
5566
  if (ye && _e.current) {
5567
5567
  const Le = _e.current, ze = new ce();
5568
- return ze.data = W, ze.setResult = me, ze.setIsValid = ve, ze.confirm = () => ge && De(!0), ze.confirmResult = (We) => ge && Fe(We), ze.cancel = () => De(!1), Le.appendChild(ze), () => {
5568
+ return ze.data = W, ze.setResult = me, ze.setIsValid = ve, ze.confirm = () => ge && De(!0), ze.confirmResult = (We) => ge && Me(We), ze.cancel = () => De(!1), Le.appendChild(ze), () => {
5569
5569
  Le.removeChild(ze);
5570
5570
  };
5571
5571
  }
5572
5572
  }, [ce, W]);
5573
5573
  const De = (Le) => {
5574
5574
  He(be, Le);
5575
- }, Fe = (Le) => {
5575
+ }, Me = (Le) => {
5576
5576
  He(Le, !0);
5577
5577
  }, He = (Le, ze) => {
5578
5578
  setTimeout(() => {
@@ -5588,7 +5588,7 @@ class ParimariaInteractionServiceImpl extends PrimariaInteractionService {
5588
5588
  setResult: me,
5589
5589
  setIsValid: ve,
5590
5590
  confirm: () => ge && De(!0),
5591
- confirmResult: (Le) => ge && Fe(Le),
5591
+ confirmResult: (Le) => ge && Me(Le),
5592
5592
  cancel: () => De(!1)
5593
5593
  }
5594
5594
  );
@@ -5922,7 +5922,7 @@ function peg$parse(X, W) {
5922
5922
  return __assign$4({ type: TYPE.argument, value: Oe }, _s());
5923
5923
  }, ve = bs("numberSkeletonId"), _e = /^['\/{}]/, we = $s(["'", "/", "{", "}"], !1, !1), Ae = zi(), ye = bs("numberSkeletonTokenOption"), Se = "/", Pe = us("/", !1), De = function(Oe) {
5924
5924
  return Oe;
5925
- }, Fe = bs("numberSkeletonToken"), He = function(Oe, je) {
5925
+ }, Me = bs("numberSkeletonToken"), He = function(Oe, je) {
5926
5926
  return { stem: Oe, options: je };
5927
5927
  }, Ie = function(Oe) {
5928
5928
  return __assign$4({ type: 0, tokens: Oe }, _s());
@@ -5934,7 +5934,7 @@ function peg$parse(X, W) {
5934
5934
  return vs.pop(), Oe.replace(/\s*$/, "");
5935
5935
  }, Ge = ",", Ke = us(",", !1), ft = "number", Qe = us("number", !1), Ze = function(Oe, je, tt) {
5936
5936
  return __assign$4({ type: je === "number" ? TYPE.number : je === "date" ? TYPE.date : TYPE.time, style: tt && tt[2], value: Oe }, _s());
5937
- }, Me = "'", Ve = us("'", !1), Be = /^[^']/, Xe = $s(["'"], !0, !1), Je = /^[^a-zA-Z'{}]/, Ue = $s([["a", "z"], ["A", "Z"], "'", "{", "}"], !0, !1), Ye = /^[a-zA-Z]/, rt = $s([["a", "z"], ["A", "Z"]], !1, !1), ot = function(Oe) {
5937
+ }, Fe = "'", Ve = us("'", !1), Be = /^[^']/, Xe = $s(["'"], !0, !1), Je = /^[^a-zA-Z'{}]/, Ue = $s([["a", "z"], ["A", "Z"], "'", "{", "}"], !0, !1), Ye = /^[a-zA-Z]/, rt = $s([["a", "z"], ["A", "Z"]], !1, !1), ot = function(Oe) {
5938
5938
  return __assign$4({ type: 1, pattern: Oe }, _s());
5939
5939
  }, _t = function() {
5940
5940
  return vs.push("dateOrTimeArgStyle"), !0;
@@ -5946,7 +5946,7 @@ function peg$parse(X, W) {
5946
5946
  location: fs
5947
5947
  }, wt;
5948
5948
  }, {}) }, _s());
5949
- }, $t = "select", Mt = us("select", !1), Ft = function(Oe, je) {
5949
+ }, $t = "select", Ft = us("select", !1), Mt = function(Oe, je) {
5950
5950
  return __assign$4({ type: TYPE.select, value: Oe, options: je.reduce(function(tt, bt) {
5951
5951
  var wt = bt.id, Pt = bt.value, es = bt.location;
5952
5952
  return wt in tt && ai('Duplicate option "' + wt + '" in select element: "' + ni() + '"', Is()), tt[wt] = {
@@ -5982,9 +5982,9 @@ function peg$parse(X, W) {
5982
5982
  return Oe === "{" || Oe === "}" || xi() && Oe === "#";
5983
5983
  }, Oi = bs("argNameOrNumber"), Di = bs("argNumber"), Ri = "0", qi = us("0", !1), Ii = function() {
5984
5984
  return 0;
5985
- }, Li = /^[1-9]/, Pi = $s([["1", "9"]], !1, !1), ri = /^[0-9]/, oi = $s([["0", "9"]], !1, !1), Fi = function(Oe) {
5985
+ }, Li = /^[1-9]/, Pi = $s([["1", "9"]], !1, !1), ri = /^[0-9]/, oi = $s([["0", "9"]], !1, !1), Mi = function(Oe) {
5986
5986
  return parseInt(Oe.join(""), 10);
5987
- }, Mi = bs("argName"), Ne = 0, Gt = 0, Es = [{ line: 1, column: 1 }], ms = 0, qs = [], yt = 0, Ts;
5987
+ }, Fi = bs("argName"), Ne = 0, Gt = 0, Es = [{ line: 1, column: 1 }], ms = 0, qs = [], yt = 0, Ts;
5988
5988
  if (W.startRule !== void 0) {
5989
5989
  if (!(W.startRule in te))
5990
5990
  throw new Error(`Can't start parsing from rule "` + W.startRule + '".');
@@ -6110,7 +6110,7 @@ function peg$parse(X, W) {
6110
6110
  Ne = Oe, Oe = J;
6111
6111
  else
6112
6112
  Ne = Oe, Oe = J;
6113
- return yt--, Oe === J && (je = J, yt === 0 && Ct(Fe)), Oe;
6113
+ return yt--, Oe === J && (je = J, yt === 0 && Ct(Me)), Oe;
6114
6114
  }
6115
6115
  function Wi() {
6116
6116
  var Oe, je, tt;
@@ -6131,13 +6131,13 @@ function peg$parse(X, W) {
6131
6131
  }
6132
6132
  function fi() {
6133
6133
  var Oe, je, tt, bt;
6134
- if (Oe = Ne, X.charCodeAt(Ne) === 39 ? (je = Me, Ne++) : (je = J, yt === 0 && Ct(Ve)), je !== J) {
6134
+ if (Oe = Ne, X.charCodeAt(Ne) === 39 ? (je = Fe, Ne++) : (je = J, yt === 0 && Ct(Ve)), je !== J) {
6135
6135
  if (tt = [], bt = xs(), bt === J && (Be.test(X.charAt(Ne)) ? (bt = X.charAt(Ne), Ne++) : (bt = J, yt === 0 && Ct(Xe))), bt !== J)
6136
6136
  for (; bt !== J; )
6137
6137
  tt.push(bt), bt = xs(), bt === J && (Be.test(X.charAt(Ne)) ? (bt = X.charAt(Ne), Ne++) : (bt = J, yt === 0 && Ct(Xe)));
6138
6138
  else
6139
6139
  tt = J;
6140
- tt !== J ? (X.charCodeAt(Ne) === 39 ? (bt = Me, Ne++) : (bt = J, yt === 0 && Ct(Ve)), bt !== J ? (je = [je, tt, bt], Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J);
6140
+ tt !== J ? (X.charCodeAt(Ne) === 39 ? (bt = Fe, Ne++) : (bt = J, yt === 0 && Ct(Ve)), bt !== J ? (je = [je, tt, bt], Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J);
6141
6141
  } else
6142
6142
  Ne = Oe, Oe = J;
6143
6143
  if (Oe === J)
@@ -6179,7 +6179,7 @@ function peg$parse(X, W) {
6179
6179
  return Oe = Zi(), Oe === J && (Oe = Qi()), Oe;
6180
6180
  }
6181
6181
  function Ji() {
6182
- var Oe, je, tt, bt, wt, Pt, es, Vt, fs, Wt, as, Zt, ss, gs, ys, Ms;
6182
+ var Oe, je, tt, bt, wt, Pt, es, Vt, fs, Wt, as, Zt, ss, gs, ys, Fs;
6183
6183
  if (Oe = Ne, X.charCodeAt(Ne) === 123 ? (je = pe, Ne++) : (je = J, yt === 0 && Ct(fe)), je !== J)
6184
6184
  if (tt = jt(), tt !== J)
6185
6185
  if (bt = As(), bt !== J)
@@ -6197,7 +6197,7 @@ function peg$parse(X, W) {
6197
6197
  gs.push(ys), ys = mi();
6198
6198
  else
6199
6199
  gs = J;
6200
- gs !== J ? (ys = jt(), ys !== J ? (X.charCodeAt(Ne) === 125 ? (Ms = be, Ne++) : (Ms = J, yt === 0 && Ct(me)), Ms !== J ? (Gt = Oe, je = St(bt, Vt, Zt, gs), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J);
6200
+ gs !== J ? (ys = jt(), ys !== J ? (X.charCodeAt(Ne) === 125 ? (Fs = be, Ne++) : (Fs = J, yt === 0 && Ct(me)), Fs !== J ? (Gt = Oe, je = St(bt, Vt, Zt, gs), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J);
6201
6201
  } else
6202
6202
  Ne = Oe, Oe = J;
6203
6203
  else
@@ -6232,7 +6232,7 @@ function peg$parse(X, W) {
6232
6232
  if (wt = jt(), wt !== J)
6233
6233
  if (X.charCodeAt(Ne) === 44 ? (Pt = Ge, Ne++) : (Pt = J, yt === 0 && Ct(Ke)), Pt !== J)
6234
6234
  if (es = jt(), es !== J)
6235
- if (X.substr(Ne, 6) === $t ? (Vt = $t, Ne += 6) : (Vt = J, yt === 0 && Ct(Mt)), Vt !== J)
6235
+ if (X.substr(Ne, 6) === $t ? (Vt = $t, Ne += 6) : (Vt = J, yt === 0 && Ct(Ft)), Vt !== J)
6236
6236
  if (fs = jt(), fs !== J)
6237
6237
  if (X.charCodeAt(Ne) === 44 ? (Wt = Ge, Ne++) : (Wt = J, yt === 0 && Ct(Ke)), Wt !== J)
6238
6238
  if (as = jt(), as !== J) {
@@ -6241,7 +6241,7 @@ function peg$parse(X, W) {
6241
6241
  Zt.push(ss), ss = gi();
6242
6242
  else
6243
6243
  Zt = J;
6244
- Zt !== J ? (ss = jt(), ss !== J ? (X.charCodeAt(Ne) === 125 ? (gs = be, Ne++) : (gs = J, yt === 0 && Ct(me)), gs !== J ? (Gt = Oe, je = Ft(bt, Zt), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J);
6244
+ Zt !== J ? (ss = jt(), ss !== J ? (X.charCodeAt(Ne) === 125 ? (gs = be, Ne++) : (gs = J, yt === 0 && Ct(me)), gs !== J ? (Gt = Oe, je = Mt(bt, Zt), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J);
6245
6245
  } else
6246
6246
  Ne = Oe, Oe = J;
6247
6247
  else
@@ -6266,11 +6266,11 @@ function peg$parse(X, W) {
6266
6266
  }
6267
6267
  function ir() {
6268
6268
  var Oe, je, tt, bt;
6269
- return Oe = Ne, je = Ne, X.charCodeAt(Ne) === 61 ? (tt = zt, Ne++) : (tt = J, yt === 0 && Ct(cs)), tt !== J ? (bt = _i(), bt !== J ? (tt = [tt, bt], je = tt) : (Ne = je, je = J)) : (Ne = je, je = J), je !== J ? Oe = X.substring(Oe, Ne) : Oe = je, Oe === J && (Oe = Fs()), Oe;
6269
+ return Oe = Ne, je = Ne, X.charCodeAt(Ne) === 61 ? (tt = zt, Ne++) : (tt = J, yt === 0 && Ct(cs)), tt !== J ? (bt = _i(), bt !== J ? (tt = [tt, bt], je = tt) : (Ne = je, je = J)) : (Ne = je, je = J), je !== J ? Oe = X.substring(Oe, Ne) : Oe = je, Oe === J && (Oe = Ms()), Oe;
6270
6270
  }
6271
6271
  function gi() {
6272
6272
  var Oe, je, tt, bt, wt, Pt, es, Vt;
6273
- return Oe = Ne, je = jt(), je !== J ? (tt = Fs(), tt !== J ? (bt = jt(), bt !== J ? (X.charCodeAt(Ne) === 123 ? (wt = pe, Ne++) : (wt = J, yt === 0 && Ct(fe)), wt !== J ? (Gt = Ne, Pt = ds(), Pt ? Pt = void 0 : Pt = J, Pt !== J ? (es = Ls(), es !== J ? (X.charCodeAt(Ne) === 125 ? (Vt = be, Ne++) : (Vt = J, yt === 0 && Ct(me)), Vt !== J ? (Gt = Oe, je = Kt(tt, es), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J), Oe;
6273
+ return Oe = Ne, je = jt(), je !== J ? (tt = Ms(), tt !== J ? (bt = jt(), bt !== J ? (X.charCodeAt(Ne) === 123 ? (wt = pe, Ne++) : (wt = J, yt === 0 && Ct(fe)), wt !== J ? (Gt = Ne, Pt = ds(), Pt ? Pt = void 0 : Pt = J, Pt !== J ? (es = Ls(), es !== J ? (X.charCodeAt(Ne) === 125 ? (Vt = be, Ne++) : (Vt = J, yt === 0 && Ct(me)), Vt !== J ? (Gt = Oe, je = Kt(tt, es), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J), Oe;
6274
6274
  }
6275
6275
  function mi() {
6276
6276
  var Oe, je, tt, bt, wt, Pt, es, Vt;
@@ -6300,11 +6300,11 @@ function peg$parse(X, W) {
6300
6300
  }
6301
6301
  function yi() {
6302
6302
  var Oe, je, tt, bt, wt, Pt;
6303
- if (Oe = Ne, X.charCodeAt(Ne) === 39 ? (je = Me, Ne++) : (je = J, yt === 0 && Ct(Ve)), je !== J)
6303
+ if (Oe = Ne, X.charCodeAt(Ne) === 39 ? (je = Fe, Ne++) : (je = J, yt === 0 && Ct(Ve)), je !== J)
6304
6304
  if (tt = rr(), tt !== J) {
6305
6305
  for (bt = Ne, wt = [], X.substr(Ne, 2) === Ot ? (Pt = Ot, Ne += 2) : (Pt = J, yt === 0 && Ct(Ht)), Pt === J && (Be.test(X.charAt(Ne)) ? (Pt = X.charAt(Ne), Ne++) : (Pt = J, yt === 0 && Ct(Xe))); Pt !== J; )
6306
6306
  wt.push(Pt), X.substr(Ne, 2) === Ot ? (Pt = Ot, Ne += 2) : (Pt = J, yt === 0 && Ct(Ht)), Pt === J && (Be.test(X.charAt(Ne)) ? (Pt = X.charAt(Ne), Ne++) : (Pt = J, yt === 0 && Ct(Xe)));
6307
- wt !== J ? bt = X.substring(bt, Ne) : bt = wt, bt !== J ? (X.charCodeAt(Ne) === 39 ? (wt = Me, Ne++) : (wt = J, yt === 0 && Ct(Ve)), wt === J && (wt = null), wt !== J ? (Gt = Oe, je = ns(tt, bt), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J);
6307
+ wt !== J ? bt = X.substring(bt, Ne) : bt = wt, bt !== J ? (X.charCodeAt(Ne) === 39 ? (wt = Fe, Ne++) : (wt = J, yt === 0 && Ct(Ve)), wt === J && (wt = null), wt !== J ? (Gt = Oe, je = ns(tt, bt), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J);
6308
6308
  } else
6309
6309
  Ne = Oe, Oe = J;
6310
6310
  else
@@ -6321,7 +6321,7 @@ function peg$parse(X, W) {
6321
6321
  }
6322
6322
  function As() {
6323
6323
  var Oe, je;
6324
- return yt++, Oe = Ne, je = wi(), je === J && (je = Fs()), je !== J ? Oe = X.substring(Oe, Ne) : Oe = je, yt--, Oe === J && (je = J, yt === 0 && Ct(Oi)), Oe;
6324
+ return yt++, Oe = Ne, je = wi(), je === J && (je = Ms()), je !== J ? Oe = X.substring(Oe, Ne) : Oe = je, yt--, Oe === J && (je = J, yt === 0 && Ct(Oi)), Oe;
6325
6325
  }
6326
6326
  function wi() {
6327
6327
  var Oe, je, tt, bt, wt;
@@ -6332,18 +6332,18 @@ function peg$parse(X, W) {
6332
6332
  bt !== J ? (tt = [tt, bt], je = tt) : (Ne = je, je = J);
6333
6333
  } else
6334
6334
  Ne = je, je = J;
6335
- je !== J && (Gt = Oe, je = Fi(je)), Oe = je;
6335
+ je !== J && (Gt = Oe, je = Mi(je)), Oe = je;
6336
6336
  }
6337
6337
  return yt--, Oe === J && (je = J, yt === 0 && Ct(Di)), Oe;
6338
6338
  }
6339
- function Fs() {
6339
+ function Ms() {
6340
6340
  var Oe, je, tt, bt, wt;
6341
6341
  if (yt++, Oe = Ne, je = [], tt = Ne, bt = Ne, yt++, wt = ws(), wt === J && (wt = vi()), yt--, wt === J ? bt = void 0 : (Ne = bt, bt = J), bt !== J ? (X.length > Ne ? (wt = X.charAt(Ne), Ne++) : (wt = J, yt === 0 && Ct(Ae)), wt !== J ? (bt = [bt, wt], tt = bt) : (Ne = tt, tt = J)) : (Ne = tt, tt = J), tt !== J)
6342
6342
  for (; tt !== J; )
6343
6343
  je.push(tt), tt = Ne, bt = Ne, yt++, wt = ws(), wt === J && (wt = vi()), yt--, wt === J ? bt = void 0 : (Ne = bt, bt = J), bt !== J ? (X.length > Ne ? (wt = X.charAt(Ne), Ne++) : (wt = J, yt === 0 && Ct(Ae)), wt !== J ? (bt = [bt, wt], tt = bt) : (Ne = tt, tt = J)) : (Ne = tt, tt = J);
6344
6344
  else
6345
6345
  je = J;
6346
- return je !== J ? Oe = X.substring(Oe, Ne) : Oe = je, yt--, Oe === J && (je = J, yt === 0 && Ct(Mi)), Oe;
6346
+ return je !== J ? Oe = X.substring(Oe, Ne) : Oe = je, yt--, Oe === J && (je = J, yt === 0 && Ct(Fi)), Oe;
6347
6347
  }
6348
6348
  var vs = ["root"];
6349
6349
  function or() {
@@ -9595,6 +9595,21 @@ class RegionManagerProxy {
9595
9595
  activateMainView(W) {
9596
9596
  return this.regionManager.getRegion(this.regions.shell.main).activate(`${this.pluginInfo.pluginId}::${W}`), this._notifyMainViewChanged(W), Promise.resolve();
9597
9597
  }
9598
+ /**
9599
+ * Activates a view that was registered by another plugin.
9600
+ *
9601
+ * Unlike `activateView`, which always prefixes with the calling plugin's id, this method
9602
+ * lets an orchestrator activate views owned by a different plugin by passing the owner's
9603
+ * pluginId explicitly. Use only when crossing plugin boundaries.
9604
+ *
9605
+ * @param {string} regionName - The name of the region where the view is located.
9606
+ * @param {string} pluginId - The id of the plugin that registered the view.
9607
+ * @param {string} viewId - The id of the view to be activated.
9608
+ * @return {Promise<void>} A promise that resolves when the view is successfully activated.
9609
+ */
9610
+ activatePluginView(W, J, te) {
9611
+ return this.regionManager.getRegion(W).activate(`${J}::${te}`), W === this.regions.shell.main && this._notifyMainViewChanged(te), Promise.resolve();
9612
+ }
9598
9613
  getCurrentMainViewActive() {
9599
9614
  return this.regionManager.getRegion(this.regions.shell.main).currentActiveViews[0]?.id;
9600
9615
  }
@@ -9677,7 +9692,7 @@ class ImportDataManagerImpl {
9677
9692
  async import(W, J) {
9678
9693
  this.currentImporterId = W, this.currentImportParams = J, this.selectedItems = {}, this.pluginTexts = {};
9679
9694
  try {
9680
- const { ImportDataManagerModal: te } = await import("./component-WwbxsvZ9.js"), { confirmed: re } = await this.interactionService.confirm(
9695
+ const { ImportDataManagerModal: te } = await import("./component-Bp6026Db.js"), { confirmed: re } = await this.interactionService.confirm(
9681
9696
  void 0,
9682
9697
  { component: te },
9683
9698
  {
@@ -10870,10 +10885,10 @@ function buildCreateSlice({
10870
10885
  function Se(Pe = pe) {
10871
10886
  const De = getOrInsertComputed(fe, Ae, () => /* @__PURE__ */ new WeakMap());
10872
10887
  return getOrInsertComputed(De, Pe, () => {
10873
- const Fe = {};
10888
+ const Me = {};
10874
10889
  for (const [He, Ie] of Object.entries(te.selectors ?? {}))
10875
- Fe[He] = wrapSelector(Ie, Pe, ge, Ae);
10876
- return Fe;
10890
+ Me[He] = wrapSelector(Ie, Pe, ge, Ae);
10891
+ return Me;
10877
10892
  });
10878
10893
  }
10879
10894
  return {
@@ -17991,8 +18006,8 @@ var toPaddingObject = function(W, J) {
17991
18006
  function arrow(X) {
17992
18007
  var W, J = X.state, te = X.name, re = X.options, oe = J.elements.arrow, ne = J.modifiersData.popperOffsets, de = getBasePlacement(J.placement), ce = getMainAxisFromPlacement(de), ue = [left, right].indexOf(de) >= 0, he = ue ? "height" : "width";
17993
18008
  if (!(!oe || !ne)) {
17994
- var pe = toPaddingObject(re.padding, J), fe = getLayoutRect(oe), be = ce === "y" ? top : left, me = ce === "y" ? bottom : right, ge = J.rects.reference[he] + J.rects.reference[ce] - ne[ce] - J.rects.popper[he], ve = ne[ce] - J.rects.reference[ce], _e = getOffsetParent(oe), we = _e ? ce === "y" ? _e.clientHeight || 0 : _e.clientWidth || 0 : 0, Ae = ge / 2 - ve / 2, ye = pe[be], Se = we - fe[he] - pe[me], Pe = we / 2 - fe[he] / 2 + Ae, De = within(ye, Pe, Se), Fe = ce;
17995
- J.modifiersData[te] = (W = {}, W[Fe] = De, W.centerOffset = De - Pe, W);
18009
+ var pe = toPaddingObject(re.padding, J), fe = getLayoutRect(oe), be = ce === "y" ? top : left, me = ce === "y" ? bottom : right, ge = J.rects.reference[he] + J.rects.reference[ce] - ne[ce] - J.rects.popper[he], ve = ne[ce] - J.rects.reference[ce], _e = getOffsetParent(oe), we = _e ? ce === "y" ? _e.clientHeight || 0 : _e.clientWidth || 0 : 0, Ae = ge / 2 - ve / 2, ye = pe[be], Se = we - fe[he] - pe[me], Pe = we / 2 - fe[he] / 2 + Ae, De = within(ye, Pe, Se), Me = ce;
18010
+ J.modifiersData[te] = (W = {}, W[Me] = De, W.centerOffset = De - Pe, W);
17996
18011
  }
17997
18012
  }
17998
18013
  function effect$1(X) {
@@ -18035,8 +18050,8 @@ function mapToStyles(X) {
18035
18050
  be = ve.x, ge = ve.y;
18036
18051
  var _e = ne.hasOwnProperty("x"), we = ne.hasOwnProperty("y"), Ae = left, ye = top, Se = window;
18037
18052
  if (ue) {
18038
- var Pe = getOffsetParent(J), De = "clientHeight", Fe = "clientWidth";
18039
- if (Pe === getWindow(J) && (Pe = getDocumentElement(J), getComputedStyle(Pe).position !== "static" && de === "absolute" && (De = "scrollHeight", Fe = "scrollWidth")), Pe = Pe, re === top || (re === left || re === right) && oe === end) {
18053
+ var Pe = getOffsetParent(J), De = "clientHeight", Me = "clientWidth";
18054
+ if (Pe === getWindow(J) && (Pe = getDocumentElement(J), getComputedStyle(Pe).position !== "static" && de === "absolute" && (De = "scrollHeight", Me = "scrollWidth")), Pe = Pe, re === top || (re === left || re === right) && oe === end) {
18040
18055
  ye = bottom;
18041
18056
  var He = pe && Pe === Se && Se.visualViewport ? Se.visualViewport.height : (
18042
18057
  // $FlowFixMe[prop-missing]
@@ -18048,7 +18063,7 @@ function mapToStyles(X) {
18048
18063
  Ae = right;
18049
18064
  var Ie = pe && Pe === Se && Se.visualViewport ? Se.visualViewport.width : (
18050
18065
  // $FlowFixMe[prop-missing]
18051
- Pe[Fe]
18066
+ Pe[Me]
18052
18067
  );
18053
18068
  be -= Ie - te.width, be *= ce ? 1 : -1;
18054
18069
  }
@@ -18270,7 +18285,7 @@ function detectOverflow(X, W) {
18270
18285
  reference: Pe,
18271
18286
  element: Ae,
18272
18287
  placement: re
18273
- }), Fe = rectToClientRect(Object.assign({}, Ae, De)), He = fe === popper ? Fe : Pe, Ie = {
18288
+ }), Me = rectToClientRect(Object.assign({}, Ae, De)), He = fe === popper ? Me : Pe, Ie = {
18274
18289
  top: Se.top - He.top + _e.top,
18275
18290
  bottom: He.bottom - Se.bottom + _e.bottom,
18276
18291
  left: Se.left - He.left + _e.left,
@@ -18323,7 +18338,7 @@ function flip(X) {
18323
18338
  flipVariations: me,
18324
18339
  allowedAutoPlacements: ge
18325
18340
  }) : Je);
18326
- }, []), Se = W.rects.reference, Pe = W.rects.popper, De = /* @__PURE__ */ new Map(), Fe = !0, He = ye[0], Ie = 0; Ie < ye.length; Ie++) {
18341
+ }, []), Se = W.rects.reference, Pe = W.rects.popper, De = /* @__PURE__ */ new Map(), Me = !0, He = ye[0], Ie = 0; Ie < ye.length; Ie++) {
18327
18342
  var Ce = ye[Ie], qe = getBasePlacement(Ce), Le = getVariation(Ce) === start, ze = [top, bottom].indexOf(qe) >= 0, We = ze ? "width" : "height", Ge = detectOverflow(W, {
18328
18343
  placement: Ce,
18329
18344
  boundary: he,
@@ -18336,13 +18351,13 @@ function flip(X) {
18336
18351
  if (oe && Qe.push(Ge[qe] <= 0), de && Qe.push(Ge[Ke] <= 0, Ge[ft] <= 0), Qe.every(function(Xe) {
18337
18352
  return Xe;
18338
18353
  })) {
18339
- He = Ce, Fe = !1;
18354
+ He = Ce, Me = !1;
18340
18355
  break;
18341
18356
  }
18342
18357
  De.set(Ce, Qe);
18343
18358
  }
18344
- if (Fe)
18345
- for (var Ze = me ? 3 : 1, Me = function(Je) {
18359
+ if (Me)
18360
+ for (var Ze = me ? 3 : 1, Fe = function(Je) {
18346
18361
  var Ue = ye.find(function(Ye) {
18347
18362
  var rt = De.get(Ye);
18348
18363
  if (rt)
@@ -18353,7 +18368,7 @@ function flip(X) {
18353
18368
  if (Ue)
18354
18369
  return He = Ue, "break";
18355
18370
  }, Ve = Ze; Ve > 0; Ve--) {
18356
- var Be = Me(Ve);
18371
+ var Be = Fe(Ve);
18357
18372
  if (Be === "break") break;
18358
18373
  }
18359
18374
  W.placement !== He && (W.modifiersData[te]._skip = !0, W.placement = He, W.reset = !0);
@@ -18457,7 +18472,7 @@ function preventOverflow(X) {
18457
18472
  rootBoundary: ue,
18458
18473
  padding: pe,
18459
18474
  altBoundary: he
18460
- }), _e = getBasePlacement(W.placement), we = getVariation(W.placement), Ae = !we, ye = getMainAxisFromPlacement(_e), Se = getAltAxis(ye), Pe = W.modifiersData.popperOffsets, De = W.rects.reference, Fe = W.rects.popper, He = typeof ge == "function" ? ge(Object.assign({}, W.rects, {
18475
+ }), _e = getBasePlacement(W.placement), we = getVariation(W.placement), Ae = !we, ye = getMainAxisFromPlacement(_e), Se = getAltAxis(ye), Pe = W.modifiersData.popperOffsets, De = W.rects.reference, Me = W.rects.popper, He = typeof ge == "function" ? ge(Object.assign({}, W.rects, {
18461
18476
  placement: W.placement
18462
18477
  })) : ge, Ie = typeof He == "number" ? {
18463
18478
  mainAxis: He,
@@ -18471,14 +18486,14 @@ function preventOverflow(X) {
18471
18486
  };
18472
18487
  if (Pe) {
18473
18488
  if (oe) {
18474
- var Le, ze = ye === "y" ? top : left, We = ye === "y" ? bottom : right, Ge = ye === "y" ? "height" : "width", Ke = Pe[ye], ft = Ke + ve[ze], Qe = Ke - ve[We], Ze = be ? -Fe[Ge] / 2 : 0, Me = we === start ? De[Ge] : Fe[Ge], Ve = we === start ? -Fe[Ge] : -De[Ge], Be = W.elements.arrow, Xe = be && Be ? getLayoutRect(Be) : {
18489
+ var Le, ze = ye === "y" ? top : left, We = ye === "y" ? bottom : right, Ge = ye === "y" ? "height" : "width", Ke = Pe[ye], ft = Ke + ve[ze], Qe = Ke - ve[We], Ze = be ? -Me[Ge] / 2 : 0, Fe = we === start ? De[Ge] : Me[Ge], Ve = we === start ? -Me[Ge] : -De[Ge], Be = W.elements.arrow, Xe = be && Be ? getLayoutRect(Be) : {
18475
18490
  width: 0,
18476
18491
  height: 0
18477
- }, Je = W.modifiersData["arrow#persistent"] ? W.modifiersData["arrow#persistent"].padding : getFreshSideObject(), Ue = Je[ze], Ye = Je[We], rt = within(0, De[Ge], Xe[Ge]), ot = Ae ? De[Ge] / 2 - Ze - rt - Ue - Ie.mainAxis : Me - rt - Ue - Ie.mainAxis, _t = Ae ? -De[Ge] / 2 + Ze + rt + Ye + Ie.mainAxis : Ve + rt + Ye + Ie.mainAxis, kt = W.elements.arrow && getOffsetParent(W.elements.arrow), It = kt ? ye === "y" ? kt.clientTop || 0 : kt.clientLeft || 0 : 0, qt = (Le = Ce?.[ye]) != null ? Le : 0, Nt = Ke + ot - qt - It, Ut = Ke + _t - qt, rs = within(be ? min(ft, Nt) : ft, Ke, be ? max(Qe, Ut) : Qe);
18492
+ }, Je = W.modifiersData["arrow#persistent"] ? W.modifiersData["arrow#persistent"].padding : getFreshSideObject(), Ue = Je[ze], Ye = Je[We], rt = within(0, De[Ge], Xe[Ge]), ot = Ae ? De[Ge] / 2 - Ze - rt - Ue - Ie.mainAxis : Fe - rt - Ue - Ie.mainAxis, _t = Ae ? -De[Ge] / 2 + Ze + rt + Ye + Ie.mainAxis : Ve + rt + Ye + Ie.mainAxis, kt = W.elements.arrow && getOffsetParent(W.elements.arrow), It = kt ? ye === "y" ? kt.clientTop || 0 : kt.clientLeft || 0 : 0, qt = (Le = Ce?.[ye]) != null ? Le : 0, Nt = Ke + ot - qt - It, Ut = Ke + _t - qt, rs = within(be ? min(ft, Nt) : ft, Ke, be ? max(Qe, Ut) : Qe);
18478
18493
  Pe[ye] = rs, qe[ye] = rs - Ke;
18479
18494
  }
18480
18495
  if (de) {
18481
- var Yt, gt = ye === "x" ? top : left, mt = ye === "x" ? bottom : right, xt = Pe[Se], St = Se === "y" ? "height" : "width", $t = xt + ve[gt], Mt = xt - ve[mt], Ft = [top, left].indexOf(_e) !== -1, zt = (Yt = Ce?.[Se]) != null ? Yt : 0, cs = Ft ? $t : xt - De[St] - Fe[St] - zt + Ie.altAxis, ds = Ft ? xt + De[St] + Fe[St] - zt - Ie.altAxis : Mt, Kt = be && Ft ? withinMaxClamp(cs, xt, ds) : within(be ? cs : $t, xt, be ? ds : Mt);
18496
+ var Yt, gt = ye === "x" ? top : left, mt = ye === "x" ? bottom : right, xt = Pe[Se], St = Se === "y" ? "height" : "width", $t = xt + ve[gt], Ft = xt - ve[mt], Mt = [top, left].indexOf(_e) !== -1, zt = (Yt = Ce?.[Se]) != null ? Yt : 0, cs = Mt ? $t : xt - De[St] - Me[St] - zt + Ie.altAxis, ds = Mt ? xt + De[St] + Me[St] - zt - Ie.altAxis : Ft, Kt = be && Mt ? withinMaxClamp(cs, xt, ds) : within(be ? cs : $t, xt, be ? ds : Ft);
18482
18497
  Pe[Se] = Kt, qe[Se] = Kt - xt;
18483
18498
  }
18484
18499
  W.modifiersData[te] = qe;
@@ -18631,10 +18646,10 @@ function popperGenerator(X) {
18631
18646
  he.reset = !1, ye = -1;
18632
18647
  continue;
18633
18648
  }
18634
- var Se = he.orderedModifiers[ye], Pe = Se.fn, De = Se.options, Fe = De === void 0 ? {} : De, He = Se.name;
18649
+ var Se = he.orderedModifiers[ye], Pe = Se.fn, De = Se.options, Me = De === void 0 ? {} : De, He = Se.name;
18635
18650
  typeof Pe == "function" && (he = Pe({
18636
18651
  state: he,
18637
- options: Fe,
18652
+ options: Me,
18638
18653
  name: He,
18639
18654
  instance: be
18640
18655
  }) || he);
@@ -22106,7 +22121,7 @@ a$j([
22106
22121
  r$I()
22107
22122
  ], l$n.prototype, "_currentSortedData", 2);
22108
22123
  const P$1 = er`dss-calendar${tr(f$n())}`, s$r = er`dss-icon${tr(f$n())}`, r$y = er`dss-icon-button${tr(f$n())}`, aa$1 = (X) => {
22109
- var W, J, te, re, oe, ne, de, ce, ue, he, pe, fe, be, me, ge, ve, _e, we, Ae, ye, Se, Pe, De, Fe, He, Ie, Ce, qe, Le, ze, We;
22124
+ var W, J, te, re, oe, ne, de, ce, ue, he, pe, fe, be, me, ge, ve, _e, we, Ae, ye, Se, Pe, De, Me, He, Ie, Ce, qe, Le, ze, We;
22110
22125
  const Ge = {
22111
22126
  "dss-datepicker-range--sm": X.inputSize !== "lg"
22112
22127
  }, Ke = {
@@ -22131,7 +22146,7 @@ const P$1 = er`dss-calendar${tr(f$n())}`, s$r = er`dss-icon${tr(f$n())}`, r$y =
22131
22146
  "dss-input-group--focused": ((ge = X._inputRangeStart) == null ? void 0 : ge.value) || X._isStartFocused || X._copyInputRangeStartPlaceholder,
22132
22147
  "dss-input-group--read-only": (ve = X._inputRangeStart) == null ? void 0 : ve.readOnly
22133
22148
  // 'dss-input-group--no-label': Boolean(!component._label),
22134
- }, Me = {
22149
+ }, Fe = {
22135
22150
  "dss-input-group": !0,
22136
22151
  [`dss-input-group--${X.inputSize}`]: !!X.inputSize,
22137
22152
  "dss-input-group--invalid": X._invalid || !((_e = X._inputRangeEnd) != null && _e.validity.valid) && ((we = X._inputRangeEnd) == null ? void 0 : we.value) !== "",
@@ -22142,7 +22157,7 @@ const P$1 = er`dss-calendar${tr(f$n())}`, s$r = er`dss-icon${tr(f$n())}`, r$y =
22142
22157
  // 'dss-input-group--no-label': Boolean(!component._label),
22143
22158
  }, Ve = {
22144
22159
  "dss-calendar": !0,
22145
- "dss-calendar--visible": X._showCalendar && !((De = X._inputRangeStart) != null && De.readOnly) && !((Fe = X._inputRangeEnd) != null && Fe.readOnly),
22160
+ "dss-calendar--visible": X._showCalendar && !((De = X._inputRangeStart) != null && De.readOnly) && !((Me = X._inputRangeEnd) != null && Me.readOnly),
22146
22161
  "dss-calendar--disabled": ((He = X._inputRangeStart) == null ? void 0 : He.disabled) && ((Ie = X._inputRangeEnd) == null ? void 0 : Ie.disabled),
22147
22162
  "dss-calendar--sm": X.inputSize !== "lg"
22148
22163
  };
@@ -22200,7 +22215,7 @@ const P$1 = er`dss-calendar${tr(f$n())}`, s$r = er`dss-icon${tr(f$n())}`, r$y =
22200
22215
  <slot name="label-range-end"></slot>
22201
22216
  </div>
22202
22217
  ` : D$4}
22203
- <div class="${Rt(Me)}">
22218
+ <div class="${Rt(Fe)}">
22204
22219
  ${X._iconRangeEnd && X._iconRangeEnd !== "" ? ke`
22205
22220
  <${s$r} icon="${X._iconRangeEnd}" class="dss-input-icon"></${s$r}>
22206
22221
  ` : D$4}
@@ -38620,7 +38635,7 @@ i$b([
38620
38635
  r$I()
38621
38636
  ], t$4.prototype, "defaultValue");
38622
38637
  const s$5 = ':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:var(--dss-spacing-tiny);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:var(--dss-spacing-xxs)!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:10px}.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--lg:not(.dss-input-wrapper--no-label) .dss-input-inputPrefix{padding-bottom:var(--dss-spacing-xxs)!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$a = ":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$n())}`, i$9 = er`dss-icon${tr(f$n())}`, l$2 = er`dss-icon-button${tr(f$n())}`, aa = (X) => {
38623
- var W, J, te, re, oe, ne, de, ce, ue, he, pe, fe, be, me, ge, ve, _e, we, Ae, ye, Se, Pe, De, Fe, He, Ie, Ce, qe, Le, ze, We;
38638
+ var W, J, te, re, oe, ne, de, ce, ue, he, pe, fe, be, me, ge, ve, _e, we, Ae, ye, Se, Pe, De, Me, He, Ie, Ce, qe, Le, ze, We;
38624
38639
  const Ge = {
38625
38640
  "dss-datepicker-range--sm": X.size !== "lg"
38626
38641
  }, Ke = {
@@ -38645,7 +38660,7 @@ const s$5 = ':host{max-width:100%}.dss-input-wrapper{display:flex;flex-direction
38645
38660
  "dss-input-group--focused": ((ge = X._inputRangeStart) == null ? void 0 : ge.value) || X._isStartFocused || X._copyInputRangeStartPlaceholder,
38646
38661
  "dss-input-group--read-only": (ve = X._inputRangeStart) == null ? void 0 : ve.readOnly
38647
38662
  // 'dss-input-group--no-label': Boolean(!component._label),
38648
- }, Me = {
38663
+ }, Fe = {
38649
38664
  "dss-input-group": !0,
38650
38665
  [`dss-input-group--${X.size}`]: !!X.size,
38651
38666
  "dss-input-group--invalid": X.invalid || !((_e = X._inputRangeEnd) != null && _e.validity.valid) && ((we = X._inputRangeEnd) == null ? void 0 : we.value) !== "",
@@ -38656,7 +38671,7 @@ const s$5 = ':host{max-width:100%}.dss-input-wrapper{display:flex;flex-direction
38656
38671
  // 'dss-input-group--no-label': Boolean(!component._label),
38657
38672
  }, Ve = {
38658
38673
  "dss-calendar": !0,
38659
- "dss-calendar--visible": X.showCalendar && !((De = X._inputRangeStart) != null && De.readOnly) && !((Fe = X._inputRangeEnd) != null && Fe.readOnly),
38674
+ "dss-calendar--visible": X.showCalendar && !((De = X._inputRangeStart) != null && De.readOnly) && !((Me = X._inputRangeEnd) != null && Me.readOnly),
38660
38675
  "dss-calendar--disabled": ((He = X._inputRangeStart) == null ? void 0 : He.disabled) && ((Ie = X._inputRangeEnd) == null ? void 0 : Ie.disabled),
38661
38676
  "dss-calendar--sm": X.size !== "lg"
38662
38677
  };
@@ -38738,7 +38753,7 @@ const s$5 = ':host{max-width:100%}.dss-input-wrapper{display:flex;flex-direction
38738
38753
  <label class="dss-label dss-label--end" for="${X._getEffectiveEndId()}">${X.labelRangeEnd}</label>
38739
38754
  </div>
38740
38755
  ` : D$4}
38741
- <div class="${Rt(Me)}">
38756
+ <div class="${Rt(Fe)}">
38742
38757
  ${X.iconRangeEnd && X.iconRangeEnd !== "" ? ke`
38743
38758
  <${i$9} icon="${X.iconRangeEnd}" class="dss-input-icon"></${i$9}>
38744
38759
  ` : D$4}
@@ -44273,7 +44288,7 @@ function requireQuill() {
44273
44288
  throw new TypeError("Super expression must either be null or a function, not " + typeof qe);
44274
44289
  Ce.prototype = Object.create(qe && qe.prototype, { constructor: { value: Ce, enumerable: !1, writable: !0, configurable: !0 } }), qe && (Object.setPrototypeOf ? Object.setPrototypeOf(Ce, qe) : Ce.__proto__ = qe);
44275
44290
  }
44276
- var De = 1, Fe = (function(Ce) {
44291
+ var De = 1, Me = (function(Ce) {
44277
44292
  Pe(qe, Ce);
44278
44293
  function qe() {
44279
44294
  return ye(this, qe), Se(this, (qe.__proto__ || Object.getPrototypeOf(qe)).apply(this, arguments));
@@ -44311,7 +44326,7 @@ function requireQuill() {
44311
44326
  }
44312
44327
  }]), qe;
44313
44328
  })(fe.default.Embed);
44314
- Fe.scope = fe.default.Scope.BLOCK_BLOT;
44329
+ Me.scope = fe.default.Scope.BLOCK_BLOT;
44315
44330
  var He = (function(Ce) {
44316
44331
  Pe(qe, Ce);
44317
44332
  function qe(Le) {
@@ -44346,8 +44361,8 @@ function requireQuill() {
44346
44361
  `), ft = Ke.shift();
44347
44362
  ft.length > 0 && (ze < this.length() - 1 || this.children.tail == null ? ne(qe.prototype.__proto__ || Object.getPrototypeOf(qe.prototype), "insertAt", this).call(this, Math.min(ze, this.length() - 1), ft) : this.children.tail.insertAt(this.children.tail.length(), ft), this.cache = {});
44348
44363
  var Qe = this;
44349
- Ke.reduce(function(Ze, Me) {
44350
- return Qe = Qe.split(Ze, !0), Qe.insertAt(0, Me), Me.length;
44364
+ Ke.reduce(function(Ze, Fe) {
44365
+ return Qe = Qe.split(Ze, !0), Qe.insertAt(0, Fe), Fe.length;
44351
44366
  }, ze + ft.length);
44352
44367
  }
44353
44368
  }
@@ -44401,7 +44416,7 @@ function requireQuill() {
44401
44416
  var qe = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
44402
44417
  return Ce == null || (typeof Ce.formats == "function" && (qe = (0, ce.default)(qe, Ce.formats())), Ce.parent == null || Ce.parent.blotName == "scroll" || Ce.parent.statics.scope !== Ce.statics.scope) ? qe : Ie(Ce.parent, qe);
44403
44418
  }
44404
- te.bubbleFormats = Ie, te.BlockEmbed = Fe, te.default = He;
44419
+ te.bubbleFormats = Ie, te.BlockEmbed = Me, te.default = He;
44405
44420
  }),
44406
44421
  /* 5 */
44407
44422
  /***/
@@ -44414,10 +44429,10 @@ function requireQuill() {
44414
44429
  } : function(Qe) {
44415
44430
  return Qe && typeof Symbol == "function" && Qe.constructor === Symbol && Qe !== Symbol.prototype ? "symbol" : typeof Qe;
44416
44431
  }, ne = /* @__PURE__ */ (function() {
44417
- function Qe(Ze, Me) {
44432
+ function Qe(Ze, Fe) {
44418
44433
  var Ve = [], Be = !0, Xe = !1, Je = void 0;
44419
44434
  try {
44420
- for (var Ue = Ze[Symbol.iterator](), Ye; !(Be = (Ye = Ue.next()).done) && (Ve.push(Ye.value), !(Me && Ve.length === Me)); Be = !0)
44435
+ for (var Ue = Ze[Symbol.iterator](), Ye; !(Be = (Ye = Ue.next()).done) && (Ve.push(Ye.value), !(Fe && Ve.length === Fe)); Be = !0)
44421
44436
  ;
44422
44437
  } catch (rt) {
44423
44438
  Xe = !0, Je = rt;
@@ -44430,31 +44445,31 @@ function requireQuill() {
44430
44445
  }
44431
44446
  return Ve;
44432
44447
  }
44433
- return function(Ze, Me) {
44448
+ return function(Ze, Fe) {
44434
44449
  if (Array.isArray(Ze))
44435
44450
  return Ze;
44436
44451
  if (Symbol.iterator in Object(Ze))
44437
- return Qe(Ze, Me);
44452
+ return Qe(Ze, Fe);
44438
44453
  throw new TypeError("Invalid attempt to destructure non-iterable instance");
44439
44454
  };
44440
44455
  })(), de = /* @__PURE__ */ (function() {
44441
- function Qe(Ze, Me) {
44442
- for (var Ve = 0; Ve < Me.length; Ve++) {
44443
- var Be = Me[Ve];
44456
+ function Qe(Ze, Fe) {
44457
+ for (var Ve = 0; Ve < Fe.length; Ve++) {
44458
+ var Be = Fe[Ve];
44444
44459
  Be.enumerable = Be.enumerable || !1, Be.configurable = !0, "value" in Be && (Be.writable = !0), Object.defineProperty(Ze, Be.key, Be);
44445
44460
  }
44446
44461
  }
44447
- return function(Ze, Me, Ve) {
44448
- return Me && Qe(Ze.prototype, Me), Ve && Qe(Ze, Ve), Ze;
44462
+ return function(Ze, Fe, Ve) {
44463
+ return Fe && Qe(Ze.prototype, Fe), Ve && Qe(Ze, Ve), Ze;
44449
44464
  };
44450
44465
  })();
44451
44466
  re(51);
44452
- 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), we = re(15), Ae = Ie(we), ye = re(3), Se = Ie(ye), Pe = re(10), De = Ie(Pe), Fe = re(35), He = Ie(Fe);
44467
+ 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), we = re(15), Ae = Ie(we), ye = re(3), Se = Ie(ye), Pe = re(10), De = Ie(Pe), Me = re(35), He = Ie(Me);
44453
44468
  function Ie(Qe) {
44454
44469
  return Qe && Qe.__esModule ? Qe : { default: Qe };
44455
44470
  }
44456
- function Ce(Qe, Ze, Me) {
44457
- return Ze in Qe ? Object.defineProperty(Qe, Ze, { value: Me, enumerable: !0, configurable: !0, writable: !0 }) : Qe[Ze] = Me, Qe;
44471
+ function Ce(Qe, Ze, Fe) {
44472
+ return Ze in Qe ? Object.defineProperty(Qe, Ze, { value: Fe, enumerable: !0, configurable: !0, writable: !0 }) : Qe[Ze] = Fe, Qe;
44458
44473
  }
44459
44474
  function qe(Qe, Ze) {
44460
44475
  if (!(Qe instanceof Ze))
@@ -44463,34 +44478,34 @@ function requireQuill() {
44463
44478
  var Le = (0, De.default)("quill"), ze = (function() {
44464
44479
  de(Qe, null, [{
44465
44480
  key: "debug",
44466
- value: function(Me) {
44467
- Me === !0 && (Me = "log"), De.default.level(Me);
44481
+ value: function(Fe) {
44482
+ Fe === !0 && (Fe = "log"), De.default.level(Fe);
44468
44483
  }
44469
44484
  }, {
44470
44485
  key: "find",
44471
- value: function(Me) {
44472
- return Me.__quill || _e.default.find(Me);
44486
+ value: function(Fe) {
44487
+ return Fe.__quill || _e.default.find(Fe);
44473
44488
  }
44474
44489
  }, {
44475
44490
  key: "import",
44476
- value: function(Me) {
44477
- return this.imports[Me] == null && Le.error("Cannot import " + Me + ". Are you sure it was registered?"), this.imports[Me];
44491
+ value: function(Fe) {
44492
+ return this.imports[Fe] == null && Le.error("Cannot import " + Fe + ". Are you sure it was registered?"), this.imports[Fe];
44478
44493
  }
44479
44494
  }, {
44480
44495
  key: "register",
44481
- value: function(Me, Ve) {
44496
+ value: function(Fe, Ve) {
44482
44497
  var Be = this, Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
44483
- if (typeof Me != "string") {
44484
- var Je = Me.attrName || Me.blotName;
44485
- typeof Je == "string" ? this.register("formats/" + Je, Me, Ve) : Object.keys(Me).forEach(function(Ue) {
44486
- Be.register(Ue, Me[Ue], Ve);
44498
+ if (typeof Fe != "string") {
44499
+ var Je = Fe.attrName || Fe.blotName;
44500
+ typeof Je == "string" ? this.register("formats/" + Je, Fe, Ve) : Object.keys(Fe).forEach(function(Ue) {
44501
+ Be.register(Ue, Fe[Ue], Ve);
44487
44502
  });
44488
44503
  } else
44489
- this.imports[Me] != null && !Xe && Le.warn("Overwriting " + Me + " with", Ve), this.imports[Me] = Ve, (Me.startsWith("blots/") || Me.startsWith("formats/")) && Ve.blotName !== "abstract" ? _e.default.register(Ve) : Me.startsWith("modules") && typeof Ve.register == "function" && Ve.register();
44504
+ this.imports[Fe] != null && !Xe && Le.warn("Overwriting " + Fe + " with", Ve), this.imports[Fe] = Ve, (Fe.startsWith("blots/") || Fe.startsWith("formats/")) && Ve.blotName !== "abstract" ? _e.default.register(Ve) : Fe.startsWith("modules") && typeof Ve.register == "function" && Ve.register();
44490
44505
  }
44491
44506
  }]);
44492
44507
  function Qe(Ze) {
44493
- var Me = this, Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
44508
+ var Fe = this, Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
44494
44509
  if (qe(this, Qe), this.options = We(Ze, Ve), this.container = this.options.container, this.container == null)
44495
44510
  return Le.error("Invalid Quill container", Ze);
44496
44511
  this.options.debug && Qe.debug(this.options.debug);
@@ -44499,11 +44514,11 @@ function requireQuill() {
44499
44514
  emitter: this.emitter,
44500
44515
  whitelist: this.options.formats
44501
44516
  }), this.editor = new pe.default(this.scroll), this.selection = new Ae.default(this.scroll, this.emitter), this.theme = new this.options.theme(this, this.options), this.keyboard = this.theme.addModule("keyboard"), this.clipboard = this.theme.addModule("clipboard"), this.history = this.theme.addModule("history"), this.theme.init(), this.emitter.on(be.default.events.EDITOR_CHANGE, function(Je) {
44502
- Je === be.default.events.TEXT_CHANGE && Me.root.classList.toggle("ql-blank", Me.editor.isBlank());
44517
+ Je === be.default.events.TEXT_CHANGE && Fe.root.classList.toggle("ql-blank", Fe.editor.isBlank());
44503
44518
  }), this.emitter.on(be.default.events.SCROLL_UPDATE, function(Je, Ue) {
44504
- var Ye = Me.selection.lastRange, rt = Ye && Ye.length === 0 ? Ye.index : void 0;
44505
- Ge.call(Me, function() {
44506
- return Me.editor.update(null, Ue, rt);
44519
+ var Ye = Fe.selection.lastRange, rt = Ye && Ye.length === 0 ? Ye.index : void 0;
44520
+ Ge.call(Fe, function() {
44521
+ return Fe.editor.update(null, Ue, rt);
44507
44522
  }, Je);
44508
44523
  });
44509
44524
  var Xe = this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">` + Be + "<p><br></p></div>");
@@ -44511,13 +44526,13 @@ function requireQuill() {
44511
44526
  }
44512
44527
  return de(Qe, [{
44513
44528
  key: "addContainer",
44514
- value: function(Me) {
44529
+ value: function(Fe) {
44515
44530
  var Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
44516
- if (typeof Me == "string") {
44517
- var Be = Me;
44518
- Me = document.createElement("div"), Me.classList.add(Be);
44531
+ if (typeof Fe == "string") {
44532
+ var Be = Fe;
44533
+ Fe = document.createElement("div"), Fe.classList.add(Be);
44519
44534
  }
44520
- return this.container.insertBefore(Me, Ve), Me;
44535
+ return this.container.insertBefore(Fe, Ve), Fe;
44521
44536
  }
44522
44537
  }, {
44523
44538
  key: "blur",
@@ -44526,11 +44541,11 @@ function requireQuill() {
44526
44541
  }
44527
44542
  }, {
44528
44543
  key: "deleteText",
44529
- value: function(Me, Ve, Be) {
44530
- var Xe = this, Je = Ke(Me, Ve, Be), Ue = ne(Je, 4);
44531
- return Me = Ue[0], Ve = Ue[1], Be = Ue[3], Ge.call(this, function() {
44532
- return Xe.editor.deleteText(Me, Ve);
44533
- }, Be, Me, -1 * Ve);
44544
+ value: function(Fe, Ve, Be) {
44545
+ var Xe = this, Je = Ke(Fe, Ve, Be), Ue = ne(Je, 4);
44546
+ return Fe = Ue[0], Ve = Ue[1], Be = Ue[3], Ge.call(this, function() {
44547
+ return Xe.editor.deleteText(Fe, Ve);
44548
+ }, Be, Fe, -1 * Ve);
44534
44549
  }
44535
44550
  }, {
44536
44551
  key: "disable",
@@ -44540,54 +44555,54 @@ function requireQuill() {
44540
44555
  }, {
44541
44556
  key: "enable",
44542
44557
  value: function() {
44543
- var Me = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
44544
- this.scroll.enable(Me), this.container.classList.toggle("ql-disabled", !Me);
44558
+ var Fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
44559
+ this.scroll.enable(Fe), this.container.classList.toggle("ql-disabled", !Fe);
44545
44560
  }
44546
44561
  }, {
44547
44562
  key: "focus",
44548
44563
  value: function() {
44549
- var Me = this.scrollingContainer.scrollTop;
44550
- this.selection.focus(), this.scrollingContainer.scrollTop = Me, this.scrollIntoView();
44564
+ var Fe = this.scrollingContainer.scrollTop;
44565
+ this.selection.focus(), this.scrollingContainer.scrollTop = Fe, this.scrollIntoView();
44551
44566
  }
44552
44567
  }, {
44553
44568
  key: "format",
44554
- value: function(Me, Ve) {
44569
+ value: function(Fe, Ve) {
44555
44570
  var Be = this, Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : be.default.sources.API;
44556
44571
  return Ge.call(this, function() {
44557
44572
  var Je = Be.getSelection(!0), Ue = new ue.default();
44558
44573
  if (Je == null)
44559
44574
  return Ue;
44560
- if (_e.default.query(Me, _e.default.Scope.BLOCK))
44561
- Ue = Be.editor.formatLine(Je.index, Je.length, Ce({}, Me, Ve));
44575
+ if (_e.default.query(Fe, _e.default.Scope.BLOCK))
44576
+ Ue = Be.editor.formatLine(Je.index, Je.length, Ce({}, Fe, Ve));
44562
44577
  else {
44563
44578
  if (Je.length === 0)
44564
- return Be.selection.format(Me, Ve), Ue;
44565
- Ue = Be.editor.formatText(Je.index, Je.length, Ce({}, Me, Ve));
44579
+ return Be.selection.format(Fe, Ve), Ue;
44580
+ Ue = Be.editor.formatText(Je.index, Je.length, Ce({}, Fe, Ve));
44566
44581
  }
44567
44582
  return Be.setSelection(Je, be.default.sources.SILENT), Ue;
44568
44583
  }, Xe);
44569
44584
  }
44570
44585
  }, {
44571
44586
  key: "formatLine",
44572
- value: function(Me, Ve, Be, Xe, Je) {
44573
- var Ue = this, Ye = void 0, rt = Ke(Me, Ve, Be, Xe, Je), ot = ne(rt, 4);
44574
- return Me = ot[0], Ve = ot[1], Ye = ot[2], Je = ot[3], Ge.call(this, function() {
44575
- return Ue.editor.formatLine(Me, Ve, Ye);
44576
- }, Je, Me, 0);
44587
+ value: function(Fe, Ve, Be, Xe, Je) {
44588
+ var Ue = this, Ye = void 0, rt = Ke(Fe, Ve, Be, Xe, Je), ot = ne(rt, 4);
44589
+ return Fe = ot[0], Ve = ot[1], Ye = ot[2], Je = ot[3], Ge.call(this, function() {
44590
+ return Ue.editor.formatLine(Fe, Ve, Ye);
44591
+ }, Je, Fe, 0);
44577
44592
  }
44578
44593
  }, {
44579
44594
  key: "formatText",
44580
- value: function(Me, Ve, Be, Xe, Je) {
44581
- var Ue = this, Ye = void 0, rt = Ke(Me, Ve, Be, Xe, Je), ot = ne(rt, 4);
44582
- return Me = ot[0], Ve = ot[1], Ye = ot[2], Je = ot[3], Ge.call(this, function() {
44583
- return Ue.editor.formatText(Me, Ve, Ye);
44584
- }, Je, Me, 0);
44595
+ value: function(Fe, Ve, Be, Xe, Je) {
44596
+ var Ue = this, Ye = void 0, rt = Ke(Fe, Ve, Be, Xe, Je), ot = ne(rt, 4);
44597
+ return Fe = ot[0], Ve = ot[1], Ye = ot[2], Je = ot[3], Ge.call(this, function() {
44598
+ return Ue.editor.formatText(Fe, Ve, Ye);
44599
+ }, Je, Fe, 0);
44585
44600
  }
44586
44601
  }, {
44587
44602
  key: "getBounds",
44588
- value: function(Me) {
44603
+ value: function(Fe) {
44589
44604
  var Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, Be = void 0;
44590
- typeof Me == "number" ? Be = this.selection.getBounds(Me, Ve) : Be = this.selection.getBounds(Me.index, Me.length);
44605
+ typeof Fe == "number" ? Be = this.selection.getBounds(Fe, Ve) : Be = this.selection.getBounds(Fe.index, Fe.length);
44591
44606
  var Xe = this.container.getBoundingClientRect();
44592
44607
  return {
44593
44608
  bottom: Be.bottom - Xe.top,
@@ -44601,19 +44616,19 @@ function requireQuill() {
44601
44616
  }, {
44602
44617
  key: "getContents",
44603
44618
  value: function() {
44604
- var Me = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - Me, Be = Ke(Me, Ve), Xe = ne(Be, 2);
44605
- return Me = Xe[0], Ve = Xe[1], this.editor.getContents(Me, Ve);
44619
+ var Fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - Fe, Be = Ke(Fe, Ve), Xe = ne(Be, 2);
44620
+ return Fe = Xe[0], Ve = Xe[1], this.editor.getContents(Fe, Ve);
44606
44621
  }
44607
44622
  }, {
44608
44623
  key: "getFormat",
44609
44624
  value: function() {
44610
- var Me = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.getSelection(!0), Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
44611
- return typeof Me == "number" ? this.editor.getFormat(Me, Ve) : this.editor.getFormat(Me.index, Me.length);
44625
+ var Fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.getSelection(!0), Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
44626
+ return typeof Fe == "number" ? this.editor.getFormat(Fe, Ve) : this.editor.getFormat(Fe.index, Fe.length);
44612
44627
  }
44613
44628
  }, {
44614
44629
  key: "getIndex",
44615
- value: function(Me) {
44616
- return Me.offset(this.scroll);
44630
+ value: function(Fe) {
44631
+ return Fe.offset(this.scroll);
44617
44632
  }
44618
44633
  }, {
44619
44634
  key: "getLength",
@@ -44622,36 +44637,36 @@ function requireQuill() {
44622
44637
  }
44623
44638
  }, {
44624
44639
  key: "getLeaf",
44625
- value: function(Me) {
44626
- return this.scroll.leaf(Me);
44640
+ value: function(Fe) {
44641
+ return this.scroll.leaf(Fe);
44627
44642
  }
44628
44643
  }, {
44629
44644
  key: "getLine",
44630
- value: function(Me) {
44631
- return this.scroll.line(Me);
44645
+ value: function(Fe) {
44646
+ return this.scroll.line(Fe);
44632
44647
  }
44633
44648
  }, {
44634
44649
  key: "getLines",
44635
44650
  value: function() {
44636
- var Me = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE;
44637
- return typeof Me != "number" ? this.scroll.lines(Me.index, Me.length) : this.scroll.lines(Me, Ve);
44651
+ var Fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE;
44652
+ return typeof Fe != "number" ? this.scroll.lines(Fe.index, Fe.length) : this.scroll.lines(Fe, Ve);
44638
44653
  }
44639
44654
  }, {
44640
44655
  key: "getModule",
44641
- value: function(Me) {
44642
- return this.theme.modules[Me];
44656
+ value: function(Fe) {
44657
+ return this.theme.modules[Fe];
44643
44658
  }
44644
44659
  }, {
44645
44660
  key: "getSelection",
44646
44661
  value: function() {
44647
- var Me = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
44648
- return Me && this.focus(), this.update(), this.selection.getRange()[0];
44662
+ var Fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
44663
+ return Fe && this.focus(), this.update(), this.selection.getRange()[0];
44649
44664
  }
44650
44665
  }, {
44651
44666
  key: "getText",
44652
44667
  value: function() {
44653
- var Me = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - Me, Be = Ke(Me, Ve), Xe = ne(Be, 2);
44654
- return Me = Xe[0], Ve = Xe[1], this.editor.getText(Me, Ve);
44668
+ var Fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - Fe, Be = Ke(Fe, Ve), Xe = ne(Be, 2);
44669
+ return Fe = Xe[0], Ve = Xe[1], this.editor.getText(Fe, Ve);
44655
44670
  }
44656
44671
  }, {
44657
44672
  key: "hasFocus",
@@ -44660,19 +44675,19 @@ function requireQuill() {
44660
44675
  }
44661
44676
  }, {
44662
44677
  key: "insertEmbed",
44663
- value: function(Me, Ve, Be) {
44678
+ value: function(Fe, Ve, Be) {
44664
44679
  var Xe = this, Je = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : Qe.sources.API;
44665
44680
  return Ge.call(this, function() {
44666
- return Xe.editor.insertEmbed(Me, Ve, Be);
44667
- }, Je, Me);
44681
+ return Xe.editor.insertEmbed(Fe, Ve, Be);
44682
+ }, Je, Fe);
44668
44683
  }
44669
44684
  }, {
44670
44685
  key: "insertText",
44671
- value: function(Me, Ve, Be, Xe, Je) {
44672
- var Ue = this, Ye = void 0, rt = Ke(Me, 0, Be, Xe, Je), ot = ne(rt, 4);
44673
- return Me = ot[0], Ye = ot[2], Je = ot[3], Ge.call(this, function() {
44674
- return Ue.editor.insertText(Me, Ve, Ye);
44675
- }, Je, Me, Ve.length);
44686
+ value: function(Fe, Ve, Be, Xe, Je) {
44687
+ var Ue = this, Ye = void 0, rt = Ke(Fe, 0, Be, Xe, Je), ot = ne(rt, 4);
44688
+ return Fe = ot[0], Ye = ot[2], Je = ot[3], Ge.call(this, function() {
44689
+ return Ue.editor.insertText(Fe, Ve, Ye);
44690
+ }, Je, Fe, Ve.length);
44676
44691
  }
44677
44692
  }, {
44678
44693
  key: "isEnabled",
@@ -44696,16 +44711,16 @@ function requireQuill() {
44696
44711
  }
44697
44712
  }, {
44698
44713
  key: "pasteHTML",
44699
- value: function(Me, Ve, Be) {
44700
- this.clipboard.dangerouslyPasteHTML(Me, Ve, Be);
44714
+ value: function(Fe, Ve, Be) {
44715
+ this.clipboard.dangerouslyPasteHTML(Fe, Ve, Be);
44701
44716
  }
44702
44717
  }, {
44703
44718
  key: "removeFormat",
44704
- value: function(Me, Ve, Be) {
44705
- var Xe = this, Je = Ke(Me, Ve, Be), Ue = ne(Je, 4);
44706
- return Me = Ue[0], Ve = Ue[1], Be = Ue[3], Ge.call(this, function() {
44707
- return Xe.editor.removeFormat(Me, Ve);
44708
- }, Be, Me);
44719
+ value: function(Fe, Ve, Be) {
44720
+ var Xe = this, Je = Ke(Fe, Ve, Be), Ue = ne(Je, 4);
44721
+ return Fe = Ue[0], Ve = Ue[1], Be = Ue[3], Ge.call(this, function() {
44722
+ return Xe.editor.removeFormat(Fe, Ve);
44723
+ }, Be, Fe);
44709
44724
  }
44710
44725
  }, {
44711
44726
  key: "scrollIntoView",
@@ -44714,11 +44729,11 @@ function requireQuill() {
44714
44729
  }
44715
44730
  }, {
44716
44731
  key: "setContents",
44717
- value: function(Me) {
44732
+ value: function(Fe) {
44718
44733
  var Ve = this, Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : be.default.sources.API;
44719
44734
  return Ge.call(this, function() {
44720
- Me = new ue.default(Me);
44721
- var Xe = Ve.getLength(), Je = Ve.editor.deleteText(0, Xe), Ue = Ve.editor.applyDelta(Me), Ye = Ue.ops[Ue.ops.length - 1];
44735
+ Fe = new ue.default(Fe);
44736
+ var Xe = Ve.getLength(), Je = Ve.editor.deleteText(0, Xe), Ue = Ve.editor.applyDelta(Fe), Ye = Ue.ops[Ue.ops.length - 1];
44722
44737
  Ye != null && typeof Ye.insert == "string" && Ye.insert[Ye.insert.length - 1] === `
44723
44738
  ` && (Ve.editor.deleteText(Ve.getLength() - 1, 1), Ue.delete(1));
44724
44739
  var rt = Je.compose(Ue);
@@ -44727,32 +44742,32 @@ function requireQuill() {
44727
44742
  }
44728
44743
  }, {
44729
44744
  key: "setSelection",
44730
- value: function(Me, Ve, Be) {
44731
- if (Me == null)
44745
+ value: function(Fe, Ve, Be) {
44746
+ if (Fe == null)
44732
44747
  this.selection.setRange(null, Ve || Qe.sources.API);
44733
44748
  else {
44734
- var Xe = Ke(Me, Ve, Be), Je = ne(Xe, 4);
44735
- Me = Je[0], Ve = Je[1], Be = Je[3], this.selection.setRange(new we.Range(Me, Ve), Be), Be !== be.default.sources.SILENT && this.selection.scrollIntoView(this.scrollingContainer);
44749
+ var Xe = Ke(Fe, Ve, Be), Je = ne(Xe, 4);
44750
+ Fe = Je[0], Ve = Je[1], Be = Je[3], this.selection.setRange(new we.Range(Fe, Ve), Be), Be !== be.default.sources.SILENT && this.selection.scrollIntoView(this.scrollingContainer);
44736
44751
  }
44737
44752
  }
44738
44753
  }, {
44739
44754
  key: "setText",
44740
- value: function(Me) {
44741
- var Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : be.default.sources.API, Be = new ue.default().insert(Me);
44755
+ value: function(Fe) {
44756
+ var Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : be.default.sources.API, Be = new ue.default().insert(Fe);
44742
44757
  return this.setContents(Be, Ve);
44743
44758
  }
44744
44759
  }, {
44745
44760
  key: "update",
44746
44761
  value: function() {
44747
- var Me = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : be.default.sources.USER, Ve = this.scroll.update(Me);
44748
- return this.selection.update(Me), Ve;
44762
+ var Fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : be.default.sources.USER, Ve = this.scroll.update(Fe);
44763
+ return this.selection.update(Fe), Ve;
44749
44764
  }
44750
44765
  }, {
44751
44766
  key: "updateContents",
44752
- value: function(Me) {
44767
+ value: function(Fe) {
44753
44768
  var Ve = this, Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : be.default.sources.API;
44754
44769
  return Ge.call(this, function() {
44755
- return Me = new ue.default(Me), Ve.editor.applyDelta(Me, Be);
44770
+ return Fe = new ue.default(Fe), Ve.editor.applyDelta(Fe, Be);
44756
44771
  }, Be, !0);
44757
44772
  }
44758
44773
  }]), Qe;
@@ -44784,29 +44799,29 @@ function requireQuill() {
44784
44799
  Ze.theme = He.default;
44785
44800
  else if (Ze.theme = ze.import("themes/" + Ze.theme), Ze.theme == null)
44786
44801
  throw new Error("Invalid theme " + Ze.theme + ". Did you register it?");
44787
- var Me = (0, Se.default)(!0, {}, Ze.theme.DEFAULTS);
44788
- [Me, Ze].forEach(function(Xe) {
44802
+ var Fe = (0, Se.default)(!0, {}, Ze.theme.DEFAULTS);
44803
+ [Fe, Ze].forEach(function(Xe) {
44789
44804
  Xe.modules = Xe.modules || {}, Object.keys(Xe.modules).forEach(function(Je) {
44790
44805
  Xe.modules[Je] === !0 && (Xe.modules[Je] = {});
44791
44806
  });
44792
44807
  });
44793
- var Ve = Object.keys(Me.modules).concat(Object.keys(Ze.modules)), Be = Ve.reduce(function(Xe, Je) {
44808
+ var Ve = Object.keys(Fe.modules).concat(Object.keys(Ze.modules)), Be = Ve.reduce(function(Xe, Je) {
44794
44809
  var Ue = ze.import("modules/" + Je);
44795
44810
  return Ue == null ? Le.error("Cannot load " + Je + " module. Are you sure you registered it?") : Xe[Je] = Ue.DEFAULTS || {}, Xe;
44796
44811
  }, {});
44797
44812
  return Ze.modules != null && Ze.modules.toolbar && Ze.modules.toolbar.constructor !== Object && (Ze.modules.toolbar = {
44798
44813
  container: Ze.modules.toolbar
44799
- }), Ze = (0, Se.default)(!0, {}, ze.DEFAULTS, { modules: Be }, Me, Ze), ["bounds", "container", "scrollingContainer"].forEach(function(Xe) {
44814
+ }), Ze = (0, Se.default)(!0, {}, ze.DEFAULTS, { modules: Be }, Fe, Ze), ["bounds", "container", "scrollingContainer"].forEach(function(Xe) {
44800
44815
  typeof Ze[Xe] == "string" && (Ze[Xe] = document.querySelector(Ze[Xe]));
44801
44816
  }), Ze.modules = Object.keys(Ze.modules).reduce(function(Xe, Je) {
44802
44817
  return Ze.modules[Je] && (Xe[Je] = Ze.modules[Je]), Xe;
44803
44818
  }, {}), Ze;
44804
44819
  }
44805
- function Ge(Qe, Ze, Me, Ve) {
44820
+ function Ge(Qe, Ze, Fe, Ve) {
44806
44821
  if (this.options.strict && !this.isEnabled() && Ze === be.default.sources.USER)
44807
44822
  return new ue.default();
44808
- var Be = Me == null ? null : this.getSelection(), Xe = this.editor.delta, Je = Qe();
44809
- if (Be != null && (Me === !0 && (Me = Be.index), Ve == null ? Be = ft(Be, Je, Ze) : Ve !== 0 && (Be = ft(Be, Me, Ve, Ze)), this.setSelection(Be, be.default.sources.SILENT)), Je.length() > 0) {
44823
+ var Be = Fe == null ? null : this.getSelection(), Xe = this.editor.delta, Je = Qe();
44824
+ if (Be != null && (Fe === !0 && (Fe = Be.index), Ve == null ? Be = ft(Be, Je, Ze) : Ve !== 0 && (Be = ft(Be, Fe, Ve, Ze)), this.setSelection(Be, be.default.sources.SILENT)), Je.length() > 0) {
44810
44825
  var Ue, Ye = [be.default.events.TEXT_CHANGE, Je, Xe, Ze];
44811
44826
  if ((Ue = this.emitter).emit.apply(Ue, [be.default.events.EDITOR_CHANGE].concat(Ye)), Ze !== be.default.sources.SILENT) {
44812
44827
  var rt;
@@ -44815,11 +44830,11 @@ function requireQuill() {
44815
44830
  }
44816
44831
  return Je;
44817
44832
  }
44818
- function Ke(Qe, Ze, Me, Ve, Be) {
44833
+ function Ke(Qe, Ze, Fe, Ve, Be) {
44819
44834
  var Xe = {};
44820
- return typeof Qe.index == "number" && typeof Qe.length == "number" ? typeof Ze != "number" ? (Be = Ve, Ve = Me, Me = Ze, Ze = Qe.length, Qe = Qe.index) : (Ze = Qe.length, Qe = Qe.index) : typeof Ze != "number" && (Be = Ve, Ve = Me, Me = Ze, Ze = 0), (typeof Me > "u" ? "undefined" : oe(Me)) === "object" ? (Xe = Me, Be = Ve) : typeof Me == "string" && (Ve != null ? Xe[Me] = Ve : Be = Me), Be = Be || be.default.sources.API, [Qe, Ze, Xe, Be];
44835
+ return typeof Qe.index == "number" && typeof Qe.length == "number" ? typeof Ze != "number" ? (Be = Ve, Ve = Fe, Fe = Ze, Ze = Qe.length, Qe = Qe.index) : (Ze = Qe.length, Qe = Qe.index) : typeof Ze != "number" && (Be = Ve, Ve = Fe, Fe = Ze, Ze = 0), (typeof Fe > "u" ? "undefined" : oe(Fe)) === "object" ? (Xe = Fe, Be = Ve) : typeof Fe == "string" && (Ve != null ? Xe[Fe] = Ve : Be = Fe), Be = Be || be.default.sources.API, [Qe, Ze, Xe, Be];
44821
44836
  }
44822
- function ft(Qe, Ze, Me, Ve) {
44837
+ function ft(Qe, Ze, Fe, Ve) {
44823
44838
  if (Qe == null) return null;
44824
44839
  var Be = void 0, Xe = void 0;
44825
44840
  if (Ze instanceof ue.default) {
@@ -44829,7 +44844,7 @@ function requireQuill() {
44829
44844
  Be = Ue[0], Xe = Ue[1];
44830
44845
  } else {
44831
44846
  var Ye = [Qe.index, Qe.index + Qe.length].map(function(ot) {
44832
- return ot < Ze || ot === Ze && Ve === be.default.sources.USER ? ot : Me >= 0 ? ot + Me : Math.max(Ze, ot + Me);
44847
+ return ot < Ze || ot === Ze && Ve === be.default.sources.USER ? ot : Fe >= 0 ? ot + Fe : Math.max(Ze, ot + Fe);
44833
44848
  }), rt = ne(Ye, 2);
44834
44849
  Be = rt[0], Xe = rt[1];
44835
44850
  }
@@ -44968,25 +44983,25 @@ function requireQuill() {
44968
44983
  });
44969
44984
  var oe = /* @__PURE__ */ (function() {
44970
44985
  function Se(Pe, De) {
44971
- for (var Fe = 0; Fe < De.length; Fe++) {
44972
- var He = De[Fe];
44986
+ for (var Me = 0; Me < De.length; Me++) {
44987
+ var He = De[Me];
44973
44988
  He.enumerable = He.enumerable || !1, He.configurable = !0, "value" in He && (He.writable = !0), Object.defineProperty(Pe, He.key, He);
44974
44989
  }
44975
44990
  }
44976
- return function(Pe, De, Fe) {
44977
- return De && Se(Pe.prototype, De), Fe && Se(Pe, Fe), Pe;
44991
+ return function(Pe, De, Me) {
44992
+ return De && Se(Pe.prototype, De), Me && Se(Pe, Me), Pe;
44978
44993
  };
44979
- })(), ne = function Se(Pe, De, Fe) {
44994
+ })(), ne = function Se(Pe, De, Me) {
44980
44995
  Pe === null && (Pe = Function.prototype);
44981
44996
  var He = Object.getOwnPropertyDescriptor(Pe, De);
44982
44997
  if (He === void 0) {
44983
44998
  var Ie = Object.getPrototypeOf(Pe);
44984
- return Ie === null ? void 0 : Se(Ie, De, Fe);
44999
+ return Ie === null ? void 0 : Se(Ie, De, Me);
44985
45000
  } else {
44986
45001
  if ("value" in He)
44987
45002
  return He.value;
44988
45003
  var Ce = He.get;
44989
- return Ce === void 0 ? void 0 : Ce.call(Fe);
45004
+ return Ce === void 0 ? void 0 : Ce.call(Me);
44990
45005
  }
44991
45006
  }, de = re(55), ce = fe(de), ue = re(10), he = fe(ue), pe = re(34);
44992
45007
  function fe(Se) {
@@ -45009,8 +45024,8 @@ function requireQuill() {
45009
45024
  var ve = (0, he.default)("quill:events"), _e = [pe.SHADOW_SELECTIONCHANGE, "mousedown", "mouseup", "click"], we = [], Ae = "getRootNode" in document;
45010
45025
  _e.forEach(function(Se) {
45011
45026
  document.addEventListener(Se, function() {
45012
- for (var Pe = arguments.length, De = Array(Pe), Fe = 0; Fe < Pe; Fe++)
45013
- De[Fe] = arguments[Fe];
45027
+ for (var Pe = arguments.length, De = Array(Pe), Me = 0; Me < Pe; Me++)
45028
+ De[Me] = arguments[Me];
45014
45029
  we.forEach(function(He) {
45015
45030
  He.handleDOM.apply(He, De);
45016
45031
  });
@@ -45030,10 +45045,10 @@ function requireQuill() {
45030
45045
  }
45031
45046
  }, {
45032
45047
  key: "handleDOM",
45033
- value: function(Fe) {
45048
+ value: function(Me) {
45034
45049
  for (var He = arguments.length, Ie = Array(He > 1 ? He - 1 : 0), Ce = 1; Ce < He; Ce++)
45035
45050
  Ie[Ce - 1] = arguments[Ce];
45036
- var qe = Fe.composedPath ? Fe.composedPath()[0] : Fe.target, Le = function(We, Ge) {
45051
+ var qe = Me.composedPath ? Me.composedPath()[0] : Me.target, Le = function(We, Ge) {
45037
45052
  if (!Ae || Ge.getRootNode() === document)
45038
45053
  return We.contains(Ge);
45039
45054
  for (; !We.contains(Ge); ) {
@@ -45044,15 +45059,15 @@ function requireQuill() {
45044
45059
  }
45045
45060
  return !0;
45046
45061
  };
45047
- (this.listeners[Fe.type] || []).forEach(function(ze) {
45062
+ (this.listeners[Me.type] || []).forEach(function(ze) {
45048
45063
  var We = ze.node, Ge = ze.handler;
45049
- (qe === We || Le(We, qe)) && Ge.apply(void 0, [Fe].concat(Ie));
45064
+ (qe === We || Le(We, qe)) && Ge.apply(void 0, [Me].concat(Ie));
45050
45065
  });
45051
45066
  }
45052
45067
  }, {
45053
45068
  key: "listenDOM",
45054
- value: function(Fe, He, Ie) {
45055
- this.listeners[Fe] || (this.listeners[Fe] = []), this.listeners[Fe].push({ node: He, handler: Ie });
45069
+ value: function(Me, He, Ie) {
45070
+ this.listeners[Me] || (this.listeners[Me] = []), this.listeners[Me].push({ node: He, handler: Ie });
45056
45071
  }
45057
45072
  }]), Pe;
45058
45073
  })(ce.default);
@@ -45184,7 +45199,7 @@ function requireQuill() {
45184
45199
  value: !0
45185
45200
  }), te.default = te.Code = void 0;
45186
45201
  var oe = /* @__PURE__ */ (function() {
45187
- function Fe(He, Ie) {
45202
+ function Me(He, Ie) {
45188
45203
  var Ce = [], qe = !0, Le = !1, ze = void 0;
45189
45204
  try {
45190
45205
  for (var We = He[Symbol.iterator](), Ge; !(qe = (Ge = We.next()).done) && (Ce.push(Ge.value), !(Ie && Ce.length === Ie)); qe = !0)
@@ -45204,25 +45219,25 @@ function requireQuill() {
45204
45219
  if (Array.isArray(He))
45205
45220
  return He;
45206
45221
  if (Symbol.iterator in Object(He))
45207
- return Fe(He, Ie);
45222
+ return Me(He, Ie);
45208
45223
  throw new TypeError("Invalid attempt to destructure non-iterable instance");
45209
45224
  };
45210
45225
  })(), ne = /* @__PURE__ */ (function() {
45211
- function Fe(He, Ie) {
45226
+ function Me(He, Ie) {
45212
45227
  for (var Ce = 0; Ce < Ie.length; Ce++) {
45213
45228
  var qe = Ie[Ce];
45214
45229
  qe.enumerable = qe.enumerable || !1, qe.configurable = !0, "value" in qe && (qe.writable = !0), Object.defineProperty(He, qe.key, qe);
45215
45230
  }
45216
45231
  }
45217
45232
  return function(He, Ie, Ce) {
45218
- return Ie && Fe(He.prototype, Ie), Ce && Fe(He, Ce), He;
45233
+ return Ie && Me(He.prototype, Ie), Ce && Me(He, Ce), He;
45219
45234
  };
45220
- })(), de = function Fe(He, Ie, Ce) {
45235
+ })(), de = function Me(He, Ie, Ce) {
45221
45236
  He === null && (He = Function.prototype);
45222
45237
  var qe = Object.getOwnPropertyDescriptor(He, Ie);
45223
45238
  if (qe === void 0) {
45224
45239
  var Le = Object.getPrototypeOf(He);
45225
- return Le === null ? void 0 : Fe(Le, Ie, Ce);
45240
+ return Le === null ? void 0 : Me(Le, Ie, Ce);
45226
45241
  } else {
45227
45242
  if ("value" in qe)
45228
45243
  return qe.value;
@@ -45230,33 +45245,33 @@ function requireQuill() {
45230
45245
  return ze === void 0 ? void 0 : ze.call(Ce);
45231
45246
  }
45232
45247
  }, ce = re(2), ue = we(ce), he = re(0), pe = we(he), fe = re(4), be = we(fe), me = re(6), ge = we(me), ve = re(7), _e = we(ve);
45233
- function we(Fe) {
45234
- return Fe && Fe.__esModule ? Fe : { default: Fe };
45248
+ function we(Me) {
45249
+ return Me && Me.__esModule ? Me : { default: Me };
45235
45250
  }
45236
- function Ae(Fe, He) {
45237
- if (!(Fe instanceof He))
45251
+ function Ae(Me, He) {
45252
+ if (!(Me instanceof He))
45238
45253
  throw new TypeError("Cannot call a class as a function");
45239
45254
  }
45240
- function ye(Fe, He) {
45241
- if (!Fe)
45255
+ function ye(Me, He) {
45256
+ if (!Me)
45242
45257
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
45243
- return He && (typeof He == "object" || typeof He == "function") ? He : Fe;
45258
+ return He && (typeof He == "object" || typeof He == "function") ? He : Me;
45244
45259
  }
45245
- function Se(Fe, He) {
45260
+ function Se(Me, He) {
45246
45261
  if (typeof He != "function" && He !== null)
45247
45262
  throw new TypeError("Super expression must either be null or a function, not " + typeof He);
45248
- Fe.prototype = Object.create(He && He.prototype, { constructor: { value: Fe, enumerable: !1, writable: !0, configurable: !0 } }), He && (Object.setPrototypeOf ? Object.setPrototypeOf(Fe, He) : Fe.__proto__ = He);
45263
+ 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);
45249
45264
  }
45250
- var Pe = (function(Fe) {
45251
- Se(He, Fe);
45265
+ var Pe = (function(Me) {
45266
+ Se(He, Me);
45252
45267
  function He() {
45253
45268
  return Ae(this, He), ye(this, (He.__proto__ || Object.getPrototypeOf(He)).apply(this, arguments));
45254
45269
  }
45255
45270
  return He;
45256
45271
  })(ge.default);
45257
45272
  Pe.blotName = "code", Pe.tagName = "CODE";
45258
- var De = (function(Fe) {
45259
- Se(He, Fe);
45273
+ var De = (function(Me) {
45274
+ Se(He, Me);
45260
45275
  function He() {
45261
45276
  return Ae(this, He), ye(this, (He.__proto__ || Object.getPrototypeOf(He)).apply(this, arguments));
45262
45277
  }
@@ -45359,10 +45374,10 @@ function requireQuill() {
45359
45374
  } : function(Qe) {
45360
45375
  return Qe && typeof Symbol == "function" && Qe.constructor === Symbol && Qe !== Symbol.prototype ? "symbol" : typeof Qe;
45361
45376
  }, ne = /* @__PURE__ */ (function() {
45362
- function Qe(Ze, Me) {
45377
+ function Qe(Ze, Fe) {
45363
45378
  var Ve = [], Be = !0, Xe = !1, Je = void 0;
45364
45379
  try {
45365
- for (var Ue = Ze[Symbol.iterator](), Ye; !(Be = (Ye = Ue.next()).done) && (Ve.push(Ye.value), !(Me && Ve.length === Me)); Be = !0)
45380
+ for (var Ue = Ze[Symbol.iterator](), Ye; !(Be = (Ye = Ue.next()).done) && (Ve.push(Ye.value), !(Fe && Ve.length === Fe)); Be = !0)
45366
45381
  ;
45367
45382
  } catch (rt) {
45368
45383
  Xe = !0, Je = rt;
@@ -45375,29 +45390,29 @@ function requireQuill() {
45375
45390
  }
45376
45391
  return Ve;
45377
45392
  }
45378
- return function(Ze, Me) {
45393
+ return function(Ze, Fe) {
45379
45394
  if (Array.isArray(Ze))
45380
45395
  return Ze;
45381
45396
  if (Symbol.iterator in Object(Ze))
45382
- return Qe(Ze, Me);
45397
+ return Qe(Ze, Fe);
45383
45398
  throw new TypeError("Invalid attempt to destructure non-iterable instance");
45384
45399
  };
45385
45400
  })(), de = /* @__PURE__ */ (function() {
45386
- function Qe(Ze, Me) {
45387
- for (var Ve = 0; Ve < Me.length; Ve++) {
45388
- var Be = Me[Ve];
45401
+ function Qe(Ze, Fe) {
45402
+ for (var Ve = 0; Ve < Fe.length; Ve++) {
45403
+ var Be = Fe[Ve];
45389
45404
  Be.enumerable = Be.enumerable || !1, Be.configurable = !0, "value" in Be && (Be.writable = !0), Object.defineProperty(Ze, Be.key, Be);
45390
45405
  }
45391
45406
  }
45392
- return function(Ze, Me, Ve) {
45393
- return Me && Qe(Ze.prototype, Me), Ve && Qe(Ze, Ve), Ze;
45407
+ return function(Ze, Fe, Ve) {
45408
+ return Fe && Qe(Ze.prototype, Fe), Ve && Qe(Ze, Ve), Ze;
45394
45409
  };
45395
- })(), ce = re(2), ue = qe(ce), he = re(20), pe = qe(he), fe = re(0), be = qe(fe), me = re(13), ge = qe(me), ve = re(24), _e = qe(ve), we = re(4), Ae = qe(we), ye = re(16), Se = qe(ye), Pe = re(21), De = qe(Pe), Fe = re(11), He = qe(Fe), Ie = re(3), Ce = qe(Ie);
45410
+ })(), ce = re(2), ue = qe(ce), he = re(20), pe = qe(he), fe = re(0), be = qe(fe), me = re(13), ge = qe(me), ve = re(24), _e = qe(ve), we = re(4), Ae = qe(we), ye = re(16), Se = qe(ye), Pe = re(21), De = qe(Pe), Me = re(11), He = qe(Me), Ie = re(3), Ce = qe(Ie);
45396
45411
  function qe(Qe) {
45397
45412
  return Qe && Qe.__esModule ? Qe : { default: Qe };
45398
45413
  }
45399
- function Le(Qe, Ze, Me) {
45400
- return Ze in Qe ? Object.defineProperty(Qe, Ze, { value: Me, enumerable: !0, configurable: !0, writable: !0 }) : Qe[Ze] = Me, Qe;
45414
+ function Le(Qe, Ze, Fe) {
45415
+ return Ze in Qe ? Object.defineProperty(Qe, Ze, { value: Fe, enumerable: !0, configurable: !0, writable: !0 }) : Qe[Ze] = Fe, Qe;
45401
45416
  }
45402
45417
  function ze(Qe, Ze) {
45403
45418
  if (!(Qe instanceof Ze))
@@ -45409,11 +45424,11 @@ function requireQuill() {
45409
45424
  }
45410
45425
  return de(Qe, [{
45411
45426
  key: "applyDelta",
45412
- value: function(Me) {
45427
+ value: function(Fe) {
45413
45428
  var Ve = this, Be = !1;
45414
45429
  this.scroll.update();
45415
45430
  var Xe = this.scroll.length();
45416
- return this.scroll.batchStart(), Me = ft(Me), Me.reduce(function(Je, Ue) {
45431
+ return this.scroll.batchStart(), Fe = ft(Fe), Fe.reduce(function(Je, Ue) {
45417
45432
  var Ye = Ue.retain || Ue.delete || Ue.insert.length || 1, rt = Ue.attributes || {};
45418
45433
  if (Ue.insert != null) {
45419
45434
  if (typeof Ue.insert == "string") {
@@ -45437,63 +45452,63 @@ function requireQuill() {
45437
45452
  return Object.keys(rt).forEach(function(mt) {
45438
45453
  Ve.scroll.formatAt(Je, Ye, mt, rt[mt]);
45439
45454
  }), Je + Ye;
45440
- }, 0), Me.reduce(function(Je, Ue) {
45455
+ }, 0), Fe.reduce(function(Je, Ue) {
45441
45456
  return typeof Ue.delete == "number" ? (Ve.scroll.deleteAt(Je, Ue.delete), Je) : Je + (Ue.retain || Ue.insert.length || 1);
45442
- }, 0), this.scroll.batchEnd(), this.update(Me);
45457
+ }, 0), this.scroll.batchEnd(), this.update(Fe);
45443
45458
  }
45444
45459
  }, {
45445
45460
  key: "deleteText",
45446
- value: function(Me, Ve) {
45447
- return this.scroll.deleteAt(Me, Ve), this.update(new ue.default().retain(Me).delete(Ve));
45461
+ value: function(Fe, Ve) {
45462
+ return this.scroll.deleteAt(Fe, Ve), this.update(new ue.default().retain(Fe).delete(Ve));
45448
45463
  }
45449
45464
  }, {
45450
45465
  key: "formatLine",
45451
- value: function(Me, Ve) {
45466
+ value: function(Fe, Ve) {
45452
45467
  var Be = this, Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
45453
45468
  return this.scroll.update(), Object.keys(Xe).forEach(function(Je) {
45454
45469
  if (!(Be.scroll.whitelist != null && !Be.scroll.whitelist[Je])) {
45455
- var Ue = Be.scroll.lines(Me, Math.max(Ve, 1)), Ye = Ve;
45470
+ var Ue = Be.scroll.lines(Fe, Math.max(Ve, 1)), Ye = Ve;
45456
45471
  Ue.forEach(function(rt) {
45457
45472
  var ot = rt.length();
45458
45473
  if (!(rt instanceof ge.default))
45459
45474
  rt.format(Je, Xe[Je]);
45460
45475
  else {
45461
- var _t = Me - rt.offset(Be.scroll), kt = rt.newlineIndex(_t + Ye) - _t + 1;
45476
+ var _t = Fe - rt.offset(Be.scroll), kt = rt.newlineIndex(_t + Ye) - _t + 1;
45462
45477
  rt.formatAt(_t, kt, Je, Xe[Je]);
45463
45478
  }
45464
45479
  Ye -= ot;
45465
45480
  });
45466
45481
  }
45467
- }), this.scroll.optimize(), this.update(new ue.default().retain(Me).retain(Ve, (0, De.default)(Xe)));
45482
+ }), this.scroll.optimize(), this.update(new ue.default().retain(Fe).retain(Ve, (0, De.default)(Xe)));
45468
45483
  }
45469
45484
  }, {
45470
45485
  key: "formatText",
45471
- value: function(Me, Ve) {
45486
+ value: function(Fe, Ve) {
45472
45487
  var Be = this, Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
45473
45488
  return Object.keys(Xe).forEach(function(Je) {
45474
- Be.scroll.formatAt(Me, Ve, Je, Xe[Je]);
45475
- }), this.update(new ue.default().retain(Me).retain(Ve, (0, De.default)(Xe)));
45489
+ Be.scroll.formatAt(Fe, Ve, Je, Xe[Je]);
45490
+ }), this.update(new ue.default().retain(Fe).retain(Ve, (0, De.default)(Xe)));
45476
45491
  }
45477
45492
  }, {
45478
45493
  key: "getContents",
45479
- value: function(Me, Ve) {
45480
- return this.delta.slice(Me, Me + Ve);
45494
+ value: function(Fe, Ve) {
45495
+ return this.delta.slice(Fe, Fe + Ve);
45481
45496
  }
45482
45497
  }, {
45483
45498
  key: "getDelta",
45484
45499
  value: function() {
45485
- return this.scroll.lines().reduce(function(Me, Ve) {
45486
- return Me.concat(Ve.delta());
45500
+ return this.scroll.lines().reduce(function(Fe, Ve) {
45501
+ return Fe.concat(Ve.delta());
45487
45502
  }, new ue.default());
45488
45503
  }
45489
45504
  }, {
45490
45505
  key: "getFormat",
45491
- value: function(Me) {
45506
+ value: function(Fe) {
45492
45507
  var Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, Be = [], Xe = [];
45493
- Ve === 0 ? this.scroll.path(Me).forEach(function(Ue) {
45508
+ Ve === 0 ? this.scroll.path(Fe).forEach(function(Ue) {
45494
45509
  var Ye = ne(Ue, 1), rt = Ye[0];
45495
45510
  rt instanceof Ae.default ? Be.push(rt) : rt instanceof be.default.Leaf && Xe.push(rt);
45496
- }) : (Be = this.scroll.lines(Me, Ve), Xe = this.scroll.descendants(be.default.Leaf, Me, Ve));
45511
+ }) : (Be = this.scroll.lines(Fe, Ve), Xe = this.scroll.descendants(be.default.Leaf, Fe, Ve));
45497
45512
  var Je = [Be, Xe].map(function(Ue) {
45498
45513
  if (Ue.length === 0) return {};
45499
45514
  for (var Ye = (0, we.bubbleFormats)(Ue.shift()); Object.keys(Ye).length > 0; ) {
@@ -45507,8 +45522,8 @@ function requireQuill() {
45507
45522
  }
45508
45523
  }, {
45509
45524
  key: "getText",
45510
- value: function(Me, Ve) {
45511
- return this.getContents(Me, Ve).filter(function(Be) {
45525
+ value: function(Fe, Ve) {
45526
+ return this.getContents(Fe, Ve).filter(function(Be) {
45512
45527
  return typeof Be.insert == "string";
45513
45528
  }).map(function(Be) {
45514
45529
  return Be.insert;
@@ -45516,69 +45531,69 @@ function requireQuill() {
45516
45531
  }
45517
45532
  }, {
45518
45533
  key: "insertEmbed",
45519
- value: function(Me, Ve, Be) {
45520
- return this.scroll.insertAt(Me, Ve, Be), this.update(new ue.default().retain(Me).insert(Le({}, Ve, Be)));
45534
+ value: function(Fe, Ve, Be) {
45535
+ return this.scroll.insertAt(Fe, Ve, Be), this.update(new ue.default().retain(Fe).insert(Le({}, Ve, Be)));
45521
45536
  }
45522
45537
  }, {
45523
45538
  key: "insertText",
45524
- value: function(Me, Ve) {
45539
+ value: function(Fe, Ve) {
45525
45540
  var Be = this, Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
45526
45541
  return Ve = Ve.replace(/\r\n/g, `
45527
45542
  `).replace(/\r/g, `
45528
- `), this.scroll.insertAt(Me, Ve), Object.keys(Xe).forEach(function(Je) {
45529
- Be.scroll.formatAt(Me, Ve.length, Je, Xe[Je]);
45530
- }), this.update(new ue.default().retain(Me).insert(Ve, (0, De.default)(Xe)));
45543
+ `), this.scroll.insertAt(Fe, Ve), Object.keys(Xe).forEach(function(Je) {
45544
+ Be.scroll.formatAt(Fe, Ve.length, Je, Xe[Je]);
45545
+ }), this.update(new ue.default().retain(Fe).insert(Ve, (0, De.default)(Xe)));
45531
45546
  }
45532
45547
  }, {
45533
45548
  key: "isBlank",
45534
45549
  value: function() {
45535
45550
  if (this.scroll.children.length == 0) return !0;
45536
45551
  if (this.scroll.children.length > 1) return !1;
45537
- var Me = this.scroll.children.head;
45538
- return Me.statics.blotName !== Ae.default.blotName || Me.children.length > 1 ? !1 : Me.children.head instanceof Se.default;
45552
+ var Fe = this.scroll.children.head;
45553
+ return Fe.statics.blotName !== Ae.default.blotName || Fe.children.length > 1 ? !1 : Fe.children.head instanceof Se.default;
45539
45554
  }
45540
45555
  }, {
45541
45556
  key: "removeFormat",
45542
- value: function(Me, Ve) {
45543
- var Be = this.getText(Me, Ve), Xe = this.scroll.line(Me + Ve), Je = ne(Xe, 2), Ue = Je[0], Ye = Je[1], rt = 0, ot = new ue.default();
45557
+ value: function(Fe, Ve) {
45558
+ var Be = this.getText(Fe, Ve), Xe = this.scroll.line(Fe + Ve), Je = ne(Xe, 2), Ue = Je[0], Ye = Je[1], rt = 0, ot = new ue.default();
45544
45559
  Ue != null && (Ue instanceof ge.default ? rt = Ue.newlineIndex(Ye) - Ye + 1 : rt = Ue.length() - Ye, ot = Ue.delta().slice(Ye, Ye + rt - 1).insert(`
45545
45560
  `));
45546
- var _t = this.getContents(Me, Ve + rt), kt = _t.diff(new ue.default().insert(Be).concat(ot)), It = new ue.default().retain(Me).concat(kt);
45561
+ var _t = this.getContents(Fe, Ve + rt), kt = _t.diff(new ue.default().insert(Be).concat(ot)), It = new ue.default().retain(Fe).concat(kt);
45547
45562
  return this.applyDelta(It);
45548
45563
  }
45549
45564
  }, {
45550
45565
  key: "update",
45551
- value: function(Me) {
45566
+ value: function(Fe) {
45552
45567
  var Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], Be = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : void 0, Xe = this.delta;
45553
45568
  if (Ve.length === 1 && Ve[0].type === "characterData" && Ve[0].target.data.match(We) && be.default.find(Ve[0].target)) {
45554
45569
  var Je = be.default.find(Ve[0].target), Ue = (0, we.bubbleFormats)(Je), Ye = Je.offset(this.scroll), rt = Ve[0].oldValue.replace(_e.default.CONTENTS, ""), ot = new ue.default().insert(rt), _t = new ue.default().insert(Je.value()), kt = new ue.default().retain(Ye).concat(ot.diff(_t, Be));
45555
- Me = kt.reduce(function(It, qt) {
45570
+ Fe = kt.reduce(function(It, qt) {
45556
45571
  return qt.insert ? It.insert(qt.insert, Ue) : It.push(qt);
45557
- }, new ue.default()), this.delta = Xe.compose(Me);
45572
+ }, new ue.default()), this.delta = Xe.compose(Fe);
45558
45573
  } else
45559
- this.delta = this.getDelta(), (!Me || !(0, He.default)(Xe.compose(Me), this.delta)) && (Me = Xe.diff(this.delta, Be));
45560
- return Me;
45574
+ this.delta = this.getDelta(), (!Fe || !(0, He.default)(Xe.compose(Fe), this.delta)) && (Fe = Xe.diff(this.delta, Be));
45575
+ return Fe;
45561
45576
  }
45562
45577
  }]), Qe;
45563
45578
  })();
45564
45579
  function Ke(Qe, Ze) {
45565
- return Object.keys(Ze).reduce(function(Me, Ve) {
45566
- return Qe[Ve] == null || (Ze[Ve] === Qe[Ve] ? Me[Ve] = Ze[Ve] : Array.isArray(Ze[Ve]) ? Ze[Ve].indexOf(Qe[Ve]) < 0 && (Me[Ve] = Ze[Ve].concat([Qe[Ve]])) : Me[Ve] = [Ze[Ve], Qe[Ve]]), Me;
45580
+ return Object.keys(Ze).reduce(function(Fe, Ve) {
45581
+ return Qe[Ve] == null || (Ze[Ve] === Qe[Ve] ? Fe[Ve] = Ze[Ve] : Array.isArray(Ze[Ve]) ? Ze[Ve].indexOf(Qe[Ve]) < 0 && (Fe[Ve] = Ze[Ve].concat([Qe[Ve]])) : Fe[Ve] = [Ze[Ve], Qe[Ve]]), Fe;
45567
45582
  }, {});
45568
45583
  }
45569
45584
  function ft(Qe) {
45570
- return Qe.reduce(function(Ze, Me) {
45571
- if (Me.insert === 1) {
45572
- var Ve = (0, De.default)(Me.attributes);
45573
- return delete Ve.image, Ze.insert({ image: Me.attributes.image }, Ve);
45585
+ return Qe.reduce(function(Ze, Fe) {
45586
+ if (Fe.insert === 1) {
45587
+ var Ve = (0, De.default)(Fe.attributes);
45588
+ return delete Ve.image, Ze.insert({ image: Fe.attributes.image }, Ve);
45574
45589
  }
45575
- if (Me.attributes != null && (Me.attributes.list === !0 || Me.attributes.bullet === !0) && (Me = (0, De.default)(Me), Me.attributes.list ? Me.attributes.list = "ordered" : (Me.attributes.list = "bullet", delete Me.attributes.bullet)), typeof Me.insert == "string") {
45576
- var Be = Me.insert.replace(/\r\n/g, `
45590
+ if (Fe.attributes != null && (Fe.attributes.list === !0 || Fe.attributes.bullet === !0) && (Fe = (0, De.default)(Fe), Fe.attributes.list ? Fe.attributes.list = "ordered" : (Fe.attributes.list = "bullet", delete Fe.attributes.bullet)), typeof Fe.insert == "string") {
45591
+ var Be = Fe.insert.replace(/\r\n/g, `
45577
45592
  `).replace(/\r/g, `
45578
45593
  `);
45579
- return Ze.insert(Be, Me.attributes);
45594
+ return Ze.insert(Be, Fe.attributes);
45580
45595
  }
45581
- return Ze.push(Me);
45596
+ return Ze.push(Fe);
45582
45597
  }, new ue.default());
45583
45598
  }
45584
45599
  te.default = Ge;
@@ -45727,16 +45742,16 @@ function requireQuill() {
45727
45742
  if (Ke == null) return null;
45728
45743
  var Qe = Ke.position(ft, !0), Ze = oe(Qe, 2);
45729
45744
  ze = Ze[0], ft = Ze[1];
45730
- var Me = document.createRange();
45745
+ var Fe = document.createRange();
45731
45746
  if (qe > 0) {
45732
- Me.setStart(ze, ft);
45747
+ Fe.setStart(ze, ft);
45733
45748
  var Ve = this.scroll.leaf(Ce + qe), Be = oe(Ve, 2);
45734
45749
  if (Ke = Be[0], ft = Be[1], Ke == null) return null;
45735
45750
  var Xe = Ke.position(ft, !0), Je = oe(Xe, 2);
45736
- return ze = Je[0], ft = Je[1], Me.setEnd(ze, ft), Me.getBoundingClientRect();
45751
+ return ze = Je[0], ft = Je[1], Fe.setEnd(ze, ft), Fe.getBoundingClientRect();
45737
45752
  } else {
45738
45753
  var Ue = "left", Ye = void 0;
45739
- return ze instanceof Text ? (ft < ze.data.length ? (Me.setStart(ze, ft), Me.setEnd(ze, ft + 1)) : (Me.setStart(ze, ft - 1), Me.setEnd(ze, ft), Ue = "right"), Ye = Me.getBoundingClientRect()) : (Ye = Ke.domNode.getBoundingClientRect(), ft > 0 && (Ue = "right")), {
45754
+ return ze instanceof Text ? (ft < ze.data.length ? (Fe.setStart(ze, ft), Fe.setEnd(ze, ft + 1)) : (Fe.setStart(ze, ft - 1), Fe.setEnd(ze, ft), Ue = "right"), Ye = Fe.getBoundingClientRect()) : (Ye = Ke.domNode.getBoundingClientRect(), ft > 0 && (Ue = "right")), {
45740
45755
  bottom: Ye.top + Ye.height,
45741
45756
  height: Ye.height,
45742
45757
  left: Ye[Ue],
@@ -45773,15 +45788,15 @@ function requireQuill() {
45773
45788
  var qe = this, Le = [[Ce.start.node, Ce.start.offset]];
45774
45789
  Ce.native.collapsed || Le.push([Ce.end.node, Ce.end.offset]);
45775
45790
  var ze = Le.map(function(Ke) {
45776
- var ft = oe(Ke, 2), Qe = ft[0], Ze = ft[1], Me = ce.default.find(Qe, !0), Ve = Me.offset(qe.scroll);
45777
- return Ze === 0 ? Ve : Me instanceof ce.default.Container ? Ve + Me.length() : Ve + Me.index(Qe, Ze);
45791
+ var ft = oe(Ke, 2), Qe = ft[0], Ze = ft[1], Fe = ce.default.find(Qe, !0), Ve = Fe.offset(qe.scroll);
45792
+ return Ze === 0 ? Ve : Fe instanceof ce.default.Container ? Ve + Fe.length() : Ve + Fe.index(Qe, Ze);
45778
45793
  }), We = Math.min(Math.max.apply(Math, Ae(ze)), this.scroll.length() - 1), Ge = Math.min.apply(Math, [We].concat(Ae(ze)));
45779
45794
  return new Pe(Ge, We - Ge);
45780
45795
  }
45781
45796
  }, {
45782
45797
  key: "normalizeNative",
45783
45798
  value: function(Ce) {
45784
- if (!Fe(this.root, Ce.startContainer) || !Ce.collapsed && !Fe(this.root, Ce.endContainer))
45799
+ if (!Me(this.root, Ce.startContainer) || !Ce.collapsed && !Me(this.root, Ce.endContainer))
45785
45800
  return null;
45786
45801
  var qe = {
45787
45802
  start: { node: Ce.startContainer, offset: Ce.startOffset },
@@ -45805,7 +45820,7 @@ function requireQuill() {
45805
45820
  var qe = this, Le = Ce.collapsed ? [Ce.index] : [Ce.index, Ce.index + Ce.length], ze = [], We = this.scroll.length();
45806
45821
  return Le.forEach(function(Ge, Ke) {
45807
45822
  Ge = Math.min(We - 1, Ge);
45808
- var ft = void 0, Qe = qe.scroll.leaf(Ge), Ze = oe(Qe, 2), Me = Ze[0], Ve = Ze[1], Be = Me.position(Ve, Ke !== 0), Xe = oe(Be, 2);
45823
+ var ft = void 0, Qe = qe.scroll.leaf(Ge), Ze = oe(Qe, 2), Fe = Ze[0], Ve = Ze[1], Be = Fe.position(Ve, Ke !== 0), Xe = oe(Be, 2);
45809
45824
  ft = Xe[0], Ve = Xe[1], ze.push(ft, Ve);
45810
45825
  }), ze.length < 2 && (ze = ze.concat(ze)), ze;
45811
45826
  }
@@ -45822,8 +45837,8 @@ function requireQuill() {
45822
45837
  ft = Ze[0];
45823
45838
  }
45824
45839
  if (!(Ke == null || ft == null)) {
45825
- var Me = Ce.getBoundingClientRect();
45826
- Le.top < Me.top ? Ce.scrollTop -= Me.top - Le.top : Le.bottom > Me.bottom && (Ce.scrollTop += Le.bottom - Me.bottom);
45840
+ var Fe = Ce.getBoundingClientRect();
45841
+ Le.top < Fe.top ? Ce.scrollTop -= Fe.top - Le.top : Le.bottom > Fe.bottom && (Ce.scrollTop += Le.bottom - Fe.bottom);
45827
45842
  }
45828
45843
  }
45829
45844
  }
@@ -45874,7 +45889,7 @@ function requireQuill() {
45874
45889
  }
45875
45890
  }]), He;
45876
45891
  })();
45877
- function Fe(He, Ie) {
45892
+ function Me(He, Ie) {
45878
45893
  try {
45879
45894
  Ie.parentNode;
45880
45895
  } catch {
@@ -46308,65 +46323,65 @@ function requireQuill() {
46308
46323
  typeof ve == "object" && (_e = ve.depth, we = ve.prototype, Ae = ve.includeNonEnumerable, ve = ve.circular);
46309
46324
  var ye = [], Se = [], Pe = typeof Buffer < "u";
46310
46325
  typeof ve > "u" && (ve = !0), typeof _e > "u" && (_e = 1 / 0);
46311
- function De(Fe, He) {
46312
- if (Fe === null)
46326
+ function De(Me, He) {
46327
+ if (Me === null)
46313
46328
  return null;
46314
46329
  if (He === 0)
46315
- return Fe;
46330
+ return Me;
46316
46331
  var Ie, Ce;
46317
- if (typeof Fe != "object")
46318
- return Fe;
46319
- if (oe(Fe, ne))
46332
+ if (typeof Me != "object")
46333
+ return Me;
46334
+ if (oe(Me, ne))
46320
46335
  Ie = new ne();
46321
- else if (oe(Fe, de))
46336
+ else if (oe(Me, de))
46322
46337
  Ie = new de();
46323
- else if (oe(Fe, ce))
46324
- Ie = new ce(function(Ze, Me) {
46325
- Fe.then(function(Ve) {
46338
+ else if (oe(Me, ce))
46339
+ Ie = new ce(function(Ze, Fe) {
46340
+ Me.then(function(Ve) {
46326
46341
  Ze(De(Ve, He - 1));
46327
46342
  }, function(Ve) {
46328
- Me(De(Ve, He - 1));
46343
+ Fe(De(Ve, He - 1));
46329
46344
  });
46330
46345
  });
46331
- else if (ue.__isArray(Fe))
46346
+ else if (ue.__isArray(Me))
46332
46347
  Ie = [];
46333
- else if (ue.__isRegExp(Fe))
46334
- Ie = new RegExp(Fe.source, me(Fe)), Fe.lastIndex && (Ie.lastIndex = Fe.lastIndex);
46335
- else if (ue.__isDate(Fe))
46336
- Ie = new Date(Fe.getTime());
46348
+ else if (ue.__isRegExp(Me))
46349
+ Ie = new RegExp(Me.source, me(Me)), Me.lastIndex && (Ie.lastIndex = Me.lastIndex);
46350
+ else if (ue.__isDate(Me))
46351
+ Ie = new Date(Me.getTime());
46337
46352
  else {
46338
- if (Pe && Buffer.isBuffer(Fe))
46339
- return Buffer.allocUnsafe ? Ie = Buffer.allocUnsafe(Fe.length) : Ie = new Buffer(Fe.length), Fe.copy(Ie), Ie;
46340
- oe(Fe, Error) ? Ie = Object.create(Fe) : typeof we > "u" ? (Ce = Object.getPrototypeOf(Fe), Ie = Object.create(Ce)) : (Ie = Object.create(we), Ce = we);
46353
+ if (Pe && Buffer.isBuffer(Me))
46354
+ return Buffer.allocUnsafe ? Ie = Buffer.allocUnsafe(Me.length) : Ie = new Buffer(Me.length), Me.copy(Ie), Ie;
46355
+ oe(Me, Error) ? Ie = Object.create(Me) : typeof we > "u" ? (Ce = Object.getPrototypeOf(Me), Ie = Object.create(Ce)) : (Ie = Object.create(we), Ce = we);
46341
46356
  }
46342
46357
  if (ve) {
46343
- var qe = ye.indexOf(Fe);
46358
+ var qe = ye.indexOf(Me);
46344
46359
  if (qe != -1)
46345
46360
  return Se[qe];
46346
- ye.push(Fe), Se.push(Ie);
46361
+ ye.push(Me), Se.push(Ie);
46347
46362
  }
46348
- oe(Fe, ne) && Fe.forEach(function(Ze, Me) {
46349
- var Ve = De(Me, He - 1), Be = De(Ze, He - 1);
46363
+ oe(Me, ne) && Me.forEach(function(Ze, Fe) {
46364
+ var Ve = De(Fe, He - 1), Be = De(Ze, He - 1);
46350
46365
  Ie.set(Ve, Be);
46351
- }), oe(Fe, de) && Fe.forEach(function(Ze) {
46352
- var Me = De(Ze, He - 1);
46353
- Ie.add(Me);
46366
+ }), oe(Me, de) && Me.forEach(function(Ze) {
46367
+ var Fe = De(Ze, He - 1);
46368
+ Ie.add(Fe);
46354
46369
  });
46355
- for (var Le in Fe) {
46370
+ for (var Le in Me) {
46356
46371
  var ze;
46357
- Ce && (ze = Object.getOwnPropertyDescriptor(Ce, Le)), !(ze && ze.set == null) && (Ie[Le] = De(Fe[Le], He - 1));
46372
+ Ce && (ze = Object.getOwnPropertyDescriptor(Ce, Le)), !(ze && ze.set == null) && (Ie[Le] = De(Me[Le], He - 1));
46358
46373
  }
46359
46374
  if (Object.getOwnPropertySymbols)
46360
- for (var We = Object.getOwnPropertySymbols(Fe), Le = 0; Le < We.length; Le++) {
46361
- var Ge = We[Le], Ke = Object.getOwnPropertyDescriptor(Fe, Ge);
46362
- Ke && !Ke.enumerable && !Ae || (Ie[Ge] = De(Fe[Ge], He - 1), Ke.enumerable || Object.defineProperty(Ie, Ge, {
46375
+ for (var We = Object.getOwnPropertySymbols(Me), Le = 0; Le < We.length; Le++) {
46376
+ var Ge = We[Le], Ke = Object.getOwnPropertyDescriptor(Me, Ge);
46377
+ Ke && !Ke.enumerable && !Ae || (Ie[Ge] = De(Me[Ge], He - 1), Ke.enumerable || Object.defineProperty(Ie, Ge, {
46363
46378
  enumerable: !1
46364
46379
  }));
46365
46380
  }
46366
46381
  if (Ae)
46367
- for (var ft = Object.getOwnPropertyNames(Fe), Le = 0; Le < ft.length; Le++) {
46368
- var Qe = ft[Le], Ke = Object.getOwnPropertyDescriptor(Fe, Qe);
46369
- Ke && Ke.enumerable || (Ie[Qe] = De(Fe[Qe], He - 1), Object.defineProperty(Ie, Qe, {
46382
+ for (var ft = Object.getOwnPropertyNames(Me), Le = 0; Le < ft.length; Le++) {
46383
+ var Qe = ft[Le], Ke = Object.getOwnPropertyDescriptor(Me, Qe);
46384
+ Ke && Ke.enumerable || (Ie[Qe] = De(Me[Qe], He - 1), Object.defineProperty(Ie, Qe, {
46370
46385
  enumerable: !1
46371
46386
  }));
46372
46387
  }
@@ -46475,7 +46490,7 @@ function requireQuill() {
46475
46490
  throw new TypeError("Super expression must either be null or a function, not " + typeof Ce);
46476
46491
  Ie.prototype = Object.create(Ce && Ce.prototype, { constructor: { value: Ie, enumerable: !1, writable: !0, configurable: !0 } }), Ce && (Object.setPrototypeOf ? Object.setPrototypeOf(Ie, Ce) : Ie.__proto__ = Ce);
46477
46492
  }
46478
- function Fe(Ie) {
46493
+ function Me(Ie) {
46479
46494
  return Ie instanceof be.default || Ie instanceof fe.BlockEmbed;
46480
46495
  }
46481
46496
  var He = (function(Ie) {
@@ -46501,24 +46516,24 @@ function requireQuill() {
46501
46516
  }, {
46502
46517
  key: "deleteAt",
46503
46518
  value: function(Le, ze) {
46504
- var We = this.line(Le), Ge = oe(We, 2), Ke = Ge[0], ft = Ge[1], Qe = this.line(Le + ze), Ze = oe(Qe, 1), Me = Ze[0];
46505
- if (de(Ce.prototype.__proto__ || Object.getPrototypeOf(Ce.prototype), "deleteAt", this).call(this, Le, ze), Me != null && Ke !== Me && ft > 0) {
46506
- if (Ke instanceof fe.BlockEmbed || Me instanceof fe.BlockEmbed) {
46519
+ var We = this.line(Le), Ge = oe(We, 2), Ke = Ge[0], ft = Ge[1], Qe = this.line(Le + ze), Ze = oe(Qe, 1), Fe = Ze[0];
46520
+ if (de(Ce.prototype.__proto__ || Object.getPrototypeOf(Ce.prototype), "deleteAt", this).call(this, Le, ze), Fe != null && Ke !== Fe && ft > 0) {
46521
+ if (Ke instanceof fe.BlockEmbed || Fe instanceof fe.BlockEmbed) {
46507
46522
  this.optimize();
46508
46523
  return;
46509
46524
  }
46510
46525
  if (Ke instanceof _e.default) {
46511
46526
  var Ve = Ke.newlineIndex(Ke.length(), !0);
46512
- if (Ve > -1 && (Ke = Ke.split(Ve + 1), Ke === Me)) {
46527
+ if (Ve > -1 && (Ke = Ke.split(Ve + 1), Ke === Fe)) {
46513
46528
  this.optimize();
46514
46529
  return;
46515
46530
  }
46516
- } else if (Me instanceof _e.default) {
46517
- var Be = Me.newlineIndex(0);
46518
- Be > -1 && Me.split(Be + 1);
46531
+ } else if (Fe instanceof _e.default) {
46532
+ var Be = Fe.newlineIndex(0);
46533
+ Be > -1 && Fe.split(Be + 1);
46519
46534
  }
46520
- var Xe = Me.children.head instanceof ge.default ? null : Me.children.head;
46521
- Ke.moveChildren(Me, Xe), Ke.remove();
46535
+ var Xe = Fe.children.head instanceof ge.default ? null : Fe.children.head;
46536
+ Ke.moveChildren(Fe, Xe), Ke.remove();
46522
46537
  }
46523
46538
  this.optimize();
46524
46539
  }
@@ -46568,15 +46583,15 @@ function requireQuill() {
46568
46583
  }, {
46569
46584
  key: "line",
46570
46585
  value: function(Le) {
46571
- return Le === this.length() ? this.line(Le - 1) : this.descendant(Fe, Le);
46586
+ return Le === this.length() ? this.line(Le - 1) : this.descendant(Me, Le);
46572
46587
  }
46573
46588
  }, {
46574
46589
  key: "lines",
46575
46590
  value: function() {
46576
46591
  var Le = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, ze = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE, We = function Ge(Ke, ft, Qe) {
46577
- var Ze = [], Me = Qe;
46592
+ var Ze = [], Fe = Qe;
46578
46593
  return Ke.children.forEachAt(ft, Qe, function(Ve, Be, Xe) {
46579
- Fe(Ve) ? Ze.push(Ve) : Ve instanceof ue.default.Container && (Ze = Ze.concat(Ge(Ve, Be, Me))), Me -= Xe;
46594
+ Me(Ve) ? Ze.push(Ve) : Ve instanceof ue.default.Container && (Ze = Ze.concat(Ge(Ve, Be, Fe))), Fe -= Xe;
46580
46595
  }), Ze;
46581
46596
  };
46582
46597
  return We(this, Le, ze);
@@ -46648,7 +46663,7 @@ function requireQuill() {
46648
46663
  return function(Ye, rt, ot) {
46649
46664
  return rt && Ue(Ye.prototype, rt), ot && Ue(Ye, ot), Ye;
46650
46665
  };
46651
- })(), ce = re(21), ue = Ie(ce), he = re(11), pe = Ie(he), fe = re(3), be = Ie(fe), me = re(2), ge = Ie(me), ve = re(20), _e = Ie(ve), we = re(0), Ae = Ie(we), ye = re(5), Se = Ie(ye), Pe = re(10), De = Ie(Pe), Fe = re(9), He = Ie(Fe);
46666
+ })(), ce = re(21), ue = Ie(ce), he = re(11), pe = Ie(he), fe = re(3), be = Ie(fe), me = re(2), ge = Ie(me), ve = re(20), _e = Ie(ve), we = re(0), Ae = Ie(we), ye = re(5), Se = Ie(ye), Pe = re(10), De = Ie(Pe), Me = re(9), He = Ie(Me);
46652
46667
  function Ie(Ue) {
46653
46668
  return Ue && Ue.__esModule ? Ue : { default: Ue };
46654
46669
  }
@@ -46684,7 +46699,7 @@ function requireQuill() {
46684
46699
  return _t.bindings = {}, Object.keys(_t.options.bindings).forEach(function(kt) {
46685
46700
  kt === "list autofill" && rt.scroll.whitelist != null && !rt.scroll.whitelist.list || _t.options.bindings[kt] && _t.addBinding(_t.options.bindings[kt]);
46686
46701
  }), _t.addBinding({ key: Ye.keys.ENTER, shiftKey: null }, Ve), _t.addBinding({ key: Ye.keys.ENTER, metaKey: null, ctrlKey: null, altKey: null }, function() {
46687
- }), /Firefox/i.test(navigator.userAgent) ? (_t.addBinding({ key: Ye.keys.BACKSPACE }, { collapsed: !0 }, Qe), _t.addBinding({ key: Ye.keys.DELETE }, { collapsed: !0 }, Ze)) : (_t.addBinding({ key: Ye.keys.BACKSPACE }, { collapsed: !0, prefix: /^.?$/ }, Qe), _t.addBinding({ key: Ye.keys.DELETE }, { collapsed: !0, suffix: /^.?$/ }, Ze)), _t.addBinding({ key: Ye.keys.BACKSPACE }, { collapsed: !1 }, Me), _t.addBinding({ key: Ye.keys.DELETE }, { collapsed: !1 }, Me), _t.addBinding({ key: Ye.keys.BACKSPACE, altKey: null, ctrlKey: null, metaKey: null, shiftKey: null }, { collapsed: !0, offset: 0 }, Qe), _t.listen(), _t;
46702
+ }), /Firefox/i.test(navigator.userAgent) ? (_t.addBinding({ key: Ye.keys.BACKSPACE }, { collapsed: !0 }, Qe), _t.addBinding({ key: Ye.keys.DELETE }, { collapsed: !0 }, Ze)) : (_t.addBinding({ key: Ye.keys.BACKSPACE }, { collapsed: !0, prefix: /^.?$/ }, Qe), _t.addBinding({ key: Ye.keys.DELETE }, { collapsed: !0, suffix: /^.?$/ }, Ze)), _t.addBinding({ key: Ye.keys.BACKSPACE }, { collapsed: !1 }, Fe), _t.addBinding({ key: Ye.keys.DELETE }, { collapsed: !1 }, Fe), _t.addBinding({ key: Ye.keys.BACKSPACE, altKey: null, ctrlKey: null, metaKey: null, shiftKey: null }, { collapsed: !0, offset: 0 }, Qe), _t.listen(), _t;
46688
46703
  }
46689
46704
  return de(Ye, [{
46690
46705
  key: "addBinding",
@@ -46706,7 +46721,7 @@ function requireQuill() {
46706
46721
  if (It.length !== 0) {
46707
46722
  var qt = ot.quill.getSelection();
46708
46723
  if (!(qt == null || !ot.quill.hasFocus())) {
46709
- var Nt = ot.quill.getLine(qt.index), Ut = ne(Nt, 2), rs = Ut[0], Yt = Ut[1], gt = ot.quill.getLeaf(qt.index), mt = ne(gt, 2), xt = mt[0], St = mt[1], $t = qt.length === 0 ? [xt, St] : ot.quill.getLeaf(qt.index + qt.length), Mt = ne($t, 2), Ft = Mt[0], zt = Mt[1], cs = xt instanceof Ae.default.Text ? xt.value().slice(0, St) : "", ds = Ft instanceof Ae.default.Text ? Ft.value().slice(zt) : "", Kt = {
46724
+ var Nt = ot.quill.getLine(qt.index), Ut = ne(Nt, 2), rs = Ut[0], Yt = Ut[1], gt = ot.quill.getLeaf(qt.index), mt = ne(gt, 2), xt = mt[0], St = mt[1], $t = qt.length === 0 ? [xt, St] : ot.quill.getLeaf(qt.index + qt.length), Ft = ne($t, 2), Mt = Ft[0], zt = Ft[1], cs = xt instanceof Ae.default.Text ? xt.value().slice(0, St) : "", ds = Mt instanceof Ae.default.Text ? Mt.value().slice(zt) : "", Kt = {
46710
46725
  collapsed: qt.length === 0,
46711
46726
  empty: qt.length === 0 && rs.length() <= 1,
46712
46727
  format: ot.quill.getFormat(qt),
@@ -46917,7 +46932,7 @@ function requireQuill() {
46917
46932
  this.quill.deleteText(Ue.index, rt, Se.default.sources.USER), Object.keys(ot).length > 0 && this.quill.formatLine(Ue.index + _t - 1, rt, ot, Se.default.sources.USER);
46918
46933
  }
46919
46934
  }
46920
- function Me(Ue) {
46935
+ function Fe(Ue) {
46921
46936
  var Ye = this.quill.getLines(Ue), rt = {};
46922
46937
  if (Ye.length > 1) {
46923
46938
  var ot = Ye[0].formats(), _t = Ye[Ye.length - 1].formats();
@@ -46986,13 +47001,13 @@ function requireQuill() {
46986
47001
  function _e(we, Ae) {
46987
47002
  var ye = [], Se = !0, Pe = !1, De = void 0;
46988
47003
  try {
46989
- for (var Fe = we[Symbol.iterator](), He; !(Se = (He = Fe.next()).done) && (ye.push(He.value), !(Ae && ye.length === Ae)); Se = !0)
47004
+ for (var Me = we[Symbol.iterator](), He; !(Se = (He = Me.next()).done) && (ye.push(He.value), !(Ae && ye.length === Ae)); Se = !0)
46990
47005
  ;
46991
47006
  } catch (Ie) {
46992
47007
  Pe = !0, De = Ie;
46993
47008
  } finally {
46994
47009
  try {
46995
- !Se && Fe.return && Fe.return();
47010
+ !Se && Me.return && Me.return();
46996
47011
  } finally {
46997
47012
  if (Pe) throw De;
46998
47013
  }
@@ -47095,10 +47110,10 @@ function requireQuill() {
47095
47110
  key: "restore",
47096
47111
  value: function() {
47097
47112
  if (!(this.selection.composing || this.parent == null)) {
47098
- var ye = this.textNode, Se = this.selection.getNativeRange(), Pe = void 0, De = void 0, Fe = void 0;
47113
+ var ye = this.textNode, Se = this.selection.getNativeRange(), Pe = void 0, De = void 0, Me = void 0;
47099
47114
  if (Se != null && Se.start.node === ye && Se.end.node === ye) {
47100
47115
  var He = [ye, Se.start.offset, Se.end.offset];
47101
- Pe = He[0], De = He[1], Fe = He[2];
47116
+ Pe = He[0], De = He[1], Me = He[2];
47102
47117
  }
47103
47118
  for (; this.domNode.lastChild != null && this.domNode.lastChild !== this.textNode; )
47104
47119
  this.domNode.parentNode.insertBefore(this.domNode.lastChild, this.domNode);
@@ -47107,14 +47122,14 @@ function requireQuill() {
47107
47122
  this.next instanceof pe.default ? (Pe = this.next.domNode, this.next.insertAt(0, Ie), this.textNode.data = we.CONTENTS) : (this.textNode.data = Ie, this.parent.insertBefore(ue.default.create(this.textNode), this), this.textNode = document.createTextNode(we.CONTENTS), this.domNode.appendChild(this.textNode));
47108
47123
  }
47109
47124
  if (this.remove(), De != null) {
47110
- var Ce = [De, Fe].map(function(Le) {
47125
+ var Ce = [De, Me].map(function(Le) {
47111
47126
  return Math.max(0, Math.min(Pe.data.length, Le - 1));
47112
47127
  }), qe = oe(Ce, 2);
47113
- return De = qe[0], Fe = qe[1], {
47128
+ return De = qe[0], Me = qe[1], {
47114
47129
  startNode: Pe,
47115
47130
  startOffset: De,
47116
47131
  endNode: Pe,
47117
- endOffset: Fe
47132
+ endOffset: Me
47118
47133
  };
47119
47134
  }
47120
47135
  }
@@ -47123,8 +47138,8 @@ function requireQuill() {
47123
47138
  key: "update",
47124
47139
  value: function(ye, Se) {
47125
47140
  var Pe = this;
47126
- if (ye.some(function(Fe) {
47127
- return Fe.type === "characterData" && Fe.target === Pe.textNode;
47141
+ if (ye.some(function(Me) {
47142
+ return Me.type === "characterData" && Me.target === Pe.textNode;
47128
47143
  })) {
47129
47144
  var De = this.restore();
47130
47145
  De && (Se.range = De);
@@ -47469,7 +47484,7 @@ function requireQuill() {
47469
47484
  Object.defineProperty(te, "__esModule", {
47470
47485
  value: !0
47471
47486
  });
47472
- 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), we = We(_e), Ae = re(6), ye = We(Ae), Se = re(22), Pe = We(Se), De = re(7), Fe = We(De), He = re(56), Ie = We(He), Ce = re(43), qe = We(Ce), Le = re(23), ze = We(Le);
47487
+ 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), we = We(_e), Ae = re(6), ye = We(Ae), Se = re(22), Pe = We(Se), De = re(7), Me = We(De), He = re(56), Ie = We(He), Ce = re(43), qe = We(Ce), Le = re(23), ze = We(Le);
47473
47488
  function We(Ge) {
47474
47489
  return Ge && Ge.__esModule ? Ge : { default: Ge };
47475
47490
  }
@@ -47482,11 +47497,11 @@ function requireQuill() {
47482
47497
  "blots/embed": we.default,
47483
47498
  "blots/inline": ye.default,
47484
47499
  "blots/scroll": Pe.default,
47485
- "blots/text": Fe.default,
47500
+ "blots/text": Me.default,
47486
47501
  "modules/clipboard": Ie.default,
47487
47502
  "modules/history": qe.default,
47488
47503
  "modules/keyboard": ze.default
47489
- }), ne.default.register(he.default, fe.default, ve.default, ye.default, Pe.default, Fe.default), te.default = ce.default;
47504
+ }), ne.default.register(he.default, fe.default, ve.default, ye.default, Pe.default, Me.default), te.default = ce.default;
47490
47505
  }),
47491
47506
  /* 30 */
47492
47507
  /***/
@@ -47805,18 +47820,18 @@ function requireQuill() {
47805
47820
  Pe.delete(Ie);
47806
47821
  }, 0), Le.range;
47807
47822
  }
47808
- var Fe = document.createTextNode("");
47823
+ var Me = document.createTextNode("");
47809
47824
  function He(Ie) {
47810
47825
  var Ce = document.createRange(), qe = window.getSelection();
47811
47826
  if (!qe.containsNode(Ie.host, !0))
47812
47827
  return { range: null, mode: "none" };
47813
- Ie.insertBefore(Fe, Ie.childNodes[0]);
47814
- var Le = qe.containsNode(Fe);
47815
- if (Fe.remove(), Le)
47828
+ Ie.insertBefore(Me, Ie.childNodes[0]);
47829
+ var Le = qe.containsNode(Me);
47830
+ if (Me.remove(), Le)
47816
47831
  return { range: null, mode: "outside-before" };
47817
- Ie.appendChild(Fe);
47818
- var ze = qe.containsNode(Fe);
47819
- if (Fe.remove(), ze)
47832
+ Ie.appendChild(Me);
47833
+ var ze = qe.containsNode(Me);
47834
+ if (Me.remove(), ze)
47820
47835
  return { range: null, mode: "outside-after" };
47821
47836
  var We = function() {
47822
47837
  return qe.toString().length;
@@ -47833,8 +47848,8 @@ function requireQuill() {
47833
47848
  throw new TypeError("unexpected type: " + qe.type);
47834
47849
  return Ce.setStart(Ge, 0), Ce.setEnd(Ke, Ke.length), { range: Ce, mode: "all" };
47835
47850
  }
47836
- var Ze = We(), Me = void 0, Ve = void 0, Be = Ke.length - Se(Ke);
47837
- return ft ? (qe.extend(Ge, 0), Me = We() + ye(Ge), qe.extend(Ke, Be), Ve = Be - (We() - Ze), qe.extend(Ke, Ve)) : (qe.extend(Ke, Be), Ve = Be - We(), qe.extend(Ge, 0), Me = We() - Ze + ye(Ge), qe.extend(Ge, Me)), Ce.setStart(Ge, Me), Ce.setEnd(Ke, Ve), {
47851
+ var Ze = We(), Fe = void 0, Ve = void 0, Be = Ke.length - Se(Ke);
47852
+ return ft ? (qe.extend(Ge, 0), Fe = We() + ye(Ge), qe.extend(Ke, Be), Ve = Be - (We() - Ze), qe.extend(Ke, Ve)) : (qe.extend(Ke, Be), Ve = Be - We(), qe.extend(Ge, 0), Fe = We() - Ze + ye(Ge), qe.extend(Ge, Fe)), Ce.setStart(Ge, Fe), Ce.setEnd(Ke, Ve), {
47838
47853
  mode: ft ? "right" : "left",
47839
47854
  range: Ce
47840
47855
  };
@@ -47953,10 +47968,10 @@ function requireQuill() {
47953
47968
  var Se = void 0, Pe = void 0, De = ye.data.split(ge).join("");
47954
47969
  if (ye === this.leftGuard)
47955
47970
  if (this.prev instanceof he.default) {
47956
- var Fe = this.prev.length();
47957
- this.prev.insertAt(Fe, De), Se = {
47971
+ var Me = this.prev.length();
47972
+ this.prev.insertAt(Me, De), Se = {
47958
47973
  startNode: this.prev.domNode,
47959
- startOffset: Fe + De.length
47974
+ startOffset: Me + De.length
47960
47975
  };
47961
47976
  } else
47962
47977
  Pe = document.createTextNode(De), this.parent.insertBefore(ce.default.create(Pe), this), Se = {
@@ -47978,8 +47993,8 @@ function requireQuill() {
47978
47993
  var Pe = this;
47979
47994
  ye.forEach(function(De) {
47980
47995
  if (De.type === "characterData" && (De.target === Pe.leftGuard || De.target === Pe.rightGuard)) {
47981
- var Fe = Pe.restore(De.target);
47982
- Fe && (Se.range = Fe);
47996
+ var Me = Pe.restore(De.target);
47997
+ Me && (Se.range = Me);
47983
47998
  }
47984
47999
  });
47985
48000
  }
@@ -48210,17 +48225,17 @@ function requireQuill() {
48210
48225
  function ye(Se, Pe) {
48211
48226
  be(this, ye);
48212
48227
  var De = me(this, (ye.__proto__ || Object.getPrototypeOf(ye)).call(this, Se, Pe));
48213
- return De.lastRecorded = 0, De.ignoreChange = !1, De.clear(), De.quill.on(ue.default.events.EDITOR_CHANGE, function(Fe, He, Ie, Ce) {
48214
- Fe !== ue.default.events.TEXT_CHANGE || De.ignoreChange || (!De.options.userOnly || Ce === ue.default.sources.USER ? De.record(He, Ie) : De.transform(He));
48228
+ return De.lastRecorded = 0, De.ignoreChange = !1, De.clear(), De.quill.on(ue.default.events.EDITOR_CHANGE, function(Me, He, Ie, Ce) {
48229
+ Me !== ue.default.events.TEXT_CHANGE || De.ignoreChange || (!De.options.userOnly || Ce === ue.default.sources.USER ? De.record(He, Ie) : De.transform(He));
48215
48230
  }), 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;
48216
48231
  }
48217
48232
  return oe(ye, [{
48218
48233
  key: "change",
48219
48234
  value: function(Pe, De) {
48220
48235
  if (this.stack[Pe].length !== 0) {
48221
- var Fe = this.stack[Pe].pop();
48222
- this.stack[De].push(Fe), this.lastRecorded = 0, this.ignoreChange = !0, this.quill.updateContents(Fe[Pe], ue.default.sources.USER), this.ignoreChange = !1;
48223
- var He = we(Fe[Pe]);
48236
+ var Me = this.stack[Pe].pop();
48237
+ this.stack[De].push(Me), this.lastRecorded = 0, this.ignoreChange = !0, this.quill.updateContents(Me[Pe], ue.default.sources.USER), this.ignoreChange = !1;
48238
+ var He = we(Me[Pe]);
48224
48239
  this.quill.setSelection(He);
48225
48240
  }
48226
48241
  }
@@ -48239,15 +48254,15 @@ function requireQuill() {
48239
48254
  value: function(Pe, De) {
48240
48255
  if (Pe.ops.length !== 0) {
48241
48256
  this.stack.redo = [];
48242
- var Fe = this.quill.getContents().diff(De), He = Date.now();
48257
+ var Me = this.quill.getContents().diff(De), He = Date.now();
48243
48258
  if (this.lastRecorded + this.options.delay > He && this.stack.undo.length > 0) {
48244
48259
  var Ie = this.stack.undo.pop();
48245
- Fe = Fe.compose(Ie.undo), Pe = Ie.redo.compose(Pe);
48260
+ Me = Me.compose(Ie.undo), Pe = Ie.redo.compose(Pe);
48246
48261
  } else
48247
48262
  this.lastRecorded = He;
48248
48263
  this.stack.undo.push({
48249
48264
  redo: Pe,
48250
- undo: Fe
48265
+ undo: Me
48251
48266
  }), this.stack.undo.length > this.options.maxStack && this.stack.undo.shift();
48252
48267
  }
48253
48268
  }
@@ -48320,7 +48335,7 @@ function requireQuill() {
48320
48335
  var rt = Ue.get;
48321
48336
  return rt === void 0 ? void 0 : rt.call(Je);
48322
48337
  }
48323
- }, de = re(3), ce = He(de), ue = re(2), he = He(ue), pe = re(8), fe = He(pe), be = re(23), me = He(be), ge = re(35), ve = He(ge), _e = re(60), we = He(_e), Ae = re(61), ye = He(Ae), Se = re(28), Pe = He(Se), De = re(62), Fe = He(De);
48338
+ }, de = re(3), ce = He(de), ue = re(2), he = He(ue), pe = re(8), fe = He(pe), be = re(23), me = He(be), ge = re(35), ve = He(ge), _e = re(60), we = He(_e), Ae = re(61), ye = He(Ae), Se = re(28), Pe = He(Se), De = re(62), Me = He(De);
48324
48339
  function He(Ve) {
48325
48340
  return Ve && Ve.__esModule ? Ve : { default: Ve };
48326
48341
  }
@@ -48381,12 +48396,12 @@ function requireQuill() {
48381
48396
  var Ye = this;
48382
48397
  this.pickers = Je.map(function(ot) {
48383
48398
  if (ot.classList.contains("ql-align"))
48384
- return ot.querySelector("option") == null && Me(ot, Le), new ye.default(ot, Ue.align);
48399
+ return ot.querySelector("option") == null && Fe(ot, Le), new ye.default(ot, Ue.align);
48385
48400
  if (ot.classList.contains("ql-background") || ot.classList.contains("ql-color")) {
48386
48401
  var _t = ot.classList.contains("ql-background") ? "background" : "color";
48387
- return ot.querySelector("option") == null && Me(ot, ze, _t === "background" ? "#ffffff" : "#000000"), new we.default(ot, Ue[_t]);
48402
+ return ot.querySelector("option") == null && Fe(ot, ze, _t === "background" ? "#ffffff" : "#000000"), new we.default(ot, Ue[_t]);
48388
48403
  } else
48389
- return ot.querySelector("option") == null && (ot.classList.contains("ql-font") ? Me(ot, We) : ot.classList.contains("ql-header") ? Me(ot, Ge) : ot.classList.contains("ql-size") && Me(ot, Ke)), new Pe.default(ot);
48404
+ return ot.querySelector("option") == null && (ot.classList.contains("ql-font") ? Fe(ot, We) : ot.classList.contains("ql-header") ? Fe(ot, Ge) : ot.classList.contains("ql-size") && Fe(ot, Ke)), new Pe.default(ot);
48390
48405
  });
48391
48406
  var rt = function() {
48392
48407
  Ye.pickers.forEach(function(_t) {
@@ -48481,12 +48496,12 @@ function requireQuill() {
48481
48496
  this.textbox.value = "", this.hide();
48482
48497
  }
48483
48498
  }]), Be;
48484
- })(Fe.default);
48499
+ })(Me.default);
48485
48500
  function Ze(Ve) {
48486
48501
  var Be = Ve.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/) || Ve.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);
48487
48502
  return Be ? (Be[1] || "https") + "://www.youtube.com/embed/" + Be[2] + "?showinfo=0" : (Be = Ve.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/)) ? (Be[1] || "https") + "://player.vimeo.com/video/" + Be[2] + "/" : Ve;
48488
48503
  }
48489
- function Me(Ve, Be) {
48504
+ function Fe(Ve, Be) {
48490
48505
  var Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
48491
48506
  Be.forEach(function(Je) {
48492
48507
  var Ue = document.createElement("option");
@@ -48622,8 +48637,8 @@ function requireQuill() {
48622
48637
  for (Ae.forEach(function(Se) {
48623
48638
  var Pe = de.find(Se.target, !0);
48624
48639
  Pe != null && (Pe.domNode === Se.target && (Se.type === "childList" ? (_e(de.find(Se.previousSibling, !1)), [].forEach.call(Se.addedNodes, function(De) {
48625
- var Fe = de.find(De, !1);
48626
- _e(Fe, !1), Fe instanceof ne.default && Fe.children.forEach(function(He) {
48640
+ var Me = de.find(De, !1);
48641
+ _e(Me, !1), Me instanceof ne.default && Me.children.forEach(function(He) {
48627
48642
  _e(He, !1);
48628
48643
  });
48629
48644
  })) : Se.type === "attributes" && _e(Pe.prev)), _e(Pe));
@@ -48891,12 +48906,12 @@ function requireQuill() {
48891
48906
  if (ye == Se)
48892
48907
  return ye ? [[ne, ye]] : [];
48893
48908
  (Pe < 0 || ye.length < Pe) && (Pe = null);
48894
- var De = pe(ye, Se), Fe = ye.substring(0, De);
48909
+ var De = pe(ye, Se), Me = ye.substring(0, De);
48895
48910
  ye = ye.substring(De), Se = Se.substring(De), De = fe(ye, Se);
48896
48911
  var He = ye.substring(ye.length - De);
48897
48912
  ye = ye.substring(0, ye.length - De), Se = Se.substring(0, Se.length - De);
48898
48913
  var Ie = ce(ye, Se);
48899
- return Fe && Ie.unshift([ne, Fe]), He && Ie.push([ne, He]), me(Ie), Pe != null && (Ie = _e(Ie, Pe)), Ie = we(Ie), Ie;
48914
+ return Me && Ie.unshift([ne, Me]), He && Ie.push([ne, He]), me(Ie), Pe != null && (Ie = _e(Ie, Pe)), Ie = we(Ie), Ie;
48900
48915
  }
48901
48916
  function ce(ye, Se) {
48902
48917
  var Pe;
@@ -48904,14 +48919,14 @@ function requireQuill() {
48904
48919
  return [[oe, Se]];
48905
48920
  if (!Se)
48906
48921
  return [[re, ye]];
48907
- var De = ye.length > Se.length ? ye : Se, Fe = ye.length > Se.length ? Se : ye, He = De.indexOf(Fe);
48922
+ var De = ye.length > Se.length ? ye : Se, Me = ye.length > Se.length ? Se : ye, He = De.indexOf(Me);
48908
48923
  if (He != -1)
48909
48924
  return Pe = [
48910
48925
  [oe, De.substring(0, He)],
48911
- [ne, Fe],
48912
- [oe, De.substring(He + Fe.length)]
48926
+ [ne, Me],
48927
+ [oe, De.substring(He + Me.length)]
48913
48928
  ], ye.length > Se.length && (Pe[0][0] = Pe[2][0] = re), Pe;
48914
- if (Fe.length == 1)
48929
+ if (Me.length == 1)
48915
48930
  return [[re, ye], [oe, Se]];
48916
48931
  var Ie = be(ye, Se);
48917
48932
  if (Ie) {
@@ -48921,21 +48936,21 @@ function requireQuill() {
48921
48936
  return ue(ye, Se);
48922
48937
  }
48923
48938
  function ue(ye, Se) {
48924
- for (var Pe = ye.length, De = Se.length, Fe = Math.ceil((Pe + De) / 2), He = Fe, Ie = 2 * Fe, Ce = new Array(Ie), qe = new Array(Ie), Le = 0; Le < Ie; Le++)
48939
+ for (var Pe = ye.length, De = Se.length, Me = Math.ceil((Pe + De) / 2), He = Me, Ie = 2 * Me, Ce = new Array(Ie), qe = new Array(Ie), Le = 0; Le < Ie; Le++)
48925
48940
  Ce[Le] = -1, qe[Le] = -1;
48926
48941
  Ce[He + 1] = 0, qe[He + 1] = 0;
48927
- for (var ze = Pe - De, We = ze % 2 != 0, Ge = 0, Ke = 0, ft = 0, Qe = 0, Ze = 0; Ze < Fe; Ze++) {
48928
- for (var Me = -Ze + Ge; Me <= Ze - Ke; Me += 2) {
48929
- var Ve = He + Me, Be;
48930
- Me == -Ze || Me != Ze && Ce[Ve - 1] < Ce[Ve + 1] ? Be = Ce[Ve + 1] : Be = Ce[Ve - 1] + 1;
48931
- for (var Xe = Be - Me; Be < Pe && Xe < De && ye.charAt(Be) == Se.charAt(Xe); )
48942
+ for (var ze = Pe - De, We = ze % 2 != 0, Ge = 0, Ke = 0, ft = 0, Qe = 0, Ze = 0; Ze < Me; Ze++) {
48943
+ for (var Fe = -Ze + Ge; Fe <= Ze - Ke; Fe += 2) {
48944
+ var Ve = He + Fe, Be;
48945
+ Fe == -Ze || Fe != Ze && Ce[Ve - 1] < Ce[Ve + 1] ? Be = Ce[Ve + 1] : Be = Ce[Ve - 1] + 1;
48946
+ for (var Xe = Be - Fe; Be < Pe && Xe < De && ye.charAt(Be) == Se.charAt(Xe); )
48932
48947
  Be++, Xe++;
48933
48948
  if (Ce[Ve] = Be, Be > Pe)
48934
48949
  Ke += 2;
48935
48950
  else if (Xe > De)
48936
48951
  Ge += 2;
48937
48952
  else if (We) {
48938
- var Je = He + ze - Me;
48953
+ var Je = He + ze - Fe;
48939
48954
  if (Je >= 0 && Je < Ie && qe[Je] != -1) {
48940
48955
  var Ue = Pe - qe[Je];
48941
48956
  if (Be >= Ue)
@@ -48965,37 +48980,37 @@ function requireQuill() {
48965
48980
  return [[re, ye], [oe, Se]];
48966
48981
  }
48967
48982
  function he(ye, Se, Pe, De) {
48968
- var Fe = ye.substring(0, Pe), He = Se.substring(0, De), Ie = ye.substring(Pe), Ce = Se.substring(De), qe = de(Fe, He), Le = de(Ie, Ce);
48983
+ var Me = ye.substring(0, Pe), He = Se.substring(0, De), Ie = ye.substring(Pe), Ce = Se.substring(De), qe = de(Me, He), Le = de(Ie, Ce);
48969
48984
  return qe.concat(Le);
48970
48985
  }
48971
48986
  function pe(ye, Se) {
48972
48987
  if (!ye || !Se || ye.charAt(0) != Se.charAt(0))
48973
48988
  return 0;
48974
- for (var Pe = 0, De = Math.min(ye.length, Se.length), Fe = De, He = 0; Pe < Fe; )
48975
- ye.substring(He, Fe) == Se.substring(He, Fe) ? (Pe = Fe, He = Pe) : De = Fe, Fe = Math.floor((De - Pe) / 2 + Pe);
48976
- return Fe;
48989
+ for (var Pe = 0, De = Math.min(ye.length, Se.length), Me = De, He = 0; Pe < Me; )
48990
+ ye.substring(He, Me) == Se.substring(He, Me) ? (Pe = Me, He = Pe) : De = Me, Me = Math.floor((De - Pe) / 2 + Pe);
48991
+ return Me;
48977
48992
  }
48978
48993
  function fe(ye, Se) {
48979
48994
  if (!ye || !Se || ye.charAt(ye.length - 1) != Se.charAt(Se.length - 1))
48980
48995
  return 0;
48981
- for (var Pe = 0, De = Math.min(ye.length, Se.length), Fe = De, He = 0; Pe < Fe; )
48982
- ye.substring(ye.length - Fe, ye.length - He) == Se.substring(Se.length - Fe, Se.length - He) ? (Pe = Fe, He = Pe) : De = Fe, Fe = Math.floor((De - Pe) / 2 + Pe);
48983
- return Fe;
48996
+ for (var Pe = 0, De = Math.min(ye.length, Se.length), Me = De, He = 0; Pe < Me; )
48997
+ ye.substring(ye.length - Me, ye.length - He) == Se.substring(Se.length - Me, Se.length - He) ? (Pe = Me, He = Pe) : De = Me, Me = Math.floor((De - Pe) / 2 + Pe);
48998
+ return Me;
48984
48999
  }
48985
49000
  function be(ye, Se) {
48986
49001
  var Pe = ye.length > Se.length ? ye : Se, De = ye.length > Se.length ? Se : ye;
48987
49002
  if (Pe.length < 4 || De.length * 2 < Pe.length)
48988
49003
  return null;
48989
- function Fe(Ke, ft, Qe) {
48990
- for (var Ze = Ke.substring(Qe, Qe + Math.floor(Ke.length / 4)), Me = -1, Ve = "", Be, Xe, Je, Ue; (Me = ft.indexOf(Ze, Me + 1)) != -1; ) {
49004
+ function Me(Ke, ft, Qe) {
49005
+ for (var Ze = Ke.substring(Qe, Qe + Math.floor(Ke.length / 4)), Fe = -1, Ve = "", Be, Xe, Je, Ue; (Fe = ft.indexOf(Ze, Fe + 1)) != -1; ) {
48991
49006
  var Ye = pe(
48992
49007
  Ke.substring(Qe),
48993
- ft.substring(Me)
49008
+ ft.substring(Fe)
48994
49009
  ), rt = fe(
48995
49010
  Ke.substring(0, Qe),
48996
- ft.substring(0, Me)
49011
+ ft.substring(0, Fe)
48997
49012
  );
48998
- Ve.length < rt + Ye && (Ve = ft.substring(Me - rt, Me) + ft.substring(Me, Me + Ye), Be = Ke.substring(0, Qe - rt), Xe = Ke.substring(Qe + Ye), Je = ft.substring(0, Me - rt), Ue = ft.substring(Me + Ye));
49013
+ Ve.length < rt + Ye && (Ve = ft.substring(Fe - rt, Fe) + ft.substring(Fe, Fe + Ye), Be = Ke.substring(0, Qe - rt), Xe = Ke.substring(Qe + Ye), Je = ft.substring(0, Fe - rt), Ue = ft.substring(Fe + Ye));
48999
49014
  }
49000
49015
  return Ve.length * 2 >= Ke.length ? [
49001
49016
  Be,
@@ -49005,11 +49020,11 @@ function requireQuill() {
49005
49020
  Ve
49006
49021
  ] : null;
49007
49022
  }
49008
- var He = Fe(
49023
+ var He = Me(
49009
49024
  Pe,
49010
49025
  De,
49011
49026
  Math.ceil(Pe.length / 4)
49012
- ), Ie = Fe(
49027
+ ), Ie = Me(
49013
49028
  Pe,
49014
49029
  De,
49015
49030
  Math.ceil(Pe.length / 2)
@@ -49024,32 +49039,32 @@ function requireQuill() {
49024
49039
  }
49025
49040
  function me(ye) {
49026
49041
  ye.push([ne, ""]);
49027
- for (var Se = 0, Pe = 0, De = 0, Fe = "", He = "", Ie; Se < ye.length; )
49042
+ for (var Se = 0, Pe = 0, De = 0, Me = "", He = "", Ie; Se < ye.length; )
49028
49043
  switch (ye[Se][0]) {
49029
49044
  case oe:
49030
49045
  De++, He += ye[Se][1], Se++;
49031
49046
  break;
49032
49047
  case re:
49033
- Pe++, Fe += ye[Se][1], Se++;
49048
+ Pe++, Me += ye[Se][1], Se++;
49034
49049
  break;
49035
49050
  case ne:
49036
- Pe + De > 1 ? (Pe !== 0 && De !== 0 && (Ie = pe(He, Fe), Ie !== 0 && (Se - Pe - De > 0 && ye[Se - Pe - De - 1][0] == ne ? ye[Se - Pe - De - 1][1] += He.substring(0, Ie) : (ye.splice(0, 0, [
49051
+ Pe + De > 1 ? (Pe !== 0 && De !== 0 && (Ie = pe(He, Me), Ie !== 0 && (Se - Pe - De > 0 && ye[Se - Pe - De - 1][0] == ne ? ye[Se - Pe - De - 1][1] += He.substring(0, Ie) : (ye.splice(0, 0, [
49037
49052
  ne,
49038
49053
  He.substring(0, Ie)
49039
- ]), Se++), He = He.substring(Ie), Fe = Fe.substring(Ie)), Ie = fe(He, Fe), Ie !== 0 && (ye[Se][1] = He.substring(He.length - Ie) + ye[Se][1], He = He.substring(0, He.length - Ie), Fe = Fe.substring(0, Fe.length - Ie))), Pe === 0 ? ye.splice(
49054
+ ]), Se++), He = He.substring(Ie), Me = Me.substring(Ie)), Ie = fe(He, Me), Ie !== 0 && (ye[Se][1] = He.substring(He.length - Ie) + ye[Se][1], He = He.substring(0, He.length - Ie), Me = Me.substring(0, Me.length - Ie))), Pe === 0 ? ye.splice(
49040
49055
  Se - De,
49041
49056
  Pe + De,
49042
49057
  [oe, He]
49043
49058
  ) : De === 0 ? ye.splice(
49044
49059
  Se - Pe,
49045
49060
  Pe + De,
49046
- [re, Fe]
49061
+ [re, Me]
49047
49062
  ) : ye.splice(
49048
49063
  Se - Pe - De,
49049
49064
  Pe + De,
49050
- [re, Fe],
49065
+ [re, Me],
49051
49066
  [oe, He]
49052
- ), Se = Se - Pe - De + (Pe ? 1 : 0) + (De ? 1 : 0) + 1) : Se !== 0 && ye[Se - 1][0] == ne ? (ye[Se - 1][1] += ye[Se][1], ye.splice(Se, 1)) : Se++, De = 0, Pe = 0, Fe = "", He = "";
49067
+ ), Se = Se - Pe - De + (Pe ? 1 : 0) + (De ? 1 : 0) + 1) : Se !== 0 && ye[Se - 1][0] == ne ? (ye[Se - 1][1] += ye[Se][1], ye.splice(Se, 1)) : Se++, De = 0, Pe = 0, Me = "", He = "";
49053
49068
  break;
49054
49069
  }
49055
49070
  ye[ye.length - 1][1] === "" && ye.pop();
@@ -49064,14 +49079,14 @@ function requireQuill() {
49064
49079
  if (Se === 0)
49065
49080
  return [ne, ye];
49066
49081
  for (var Pe = 0, De = 0; De < ye.length; De++) {
49067
- var Fe = ye[De];
49068
- if (Fe[0] === re || Fe[0] === ne) {
49069
- var He = Pe + Fe[1].length;
49082
+ var Me = ye[De];
49083
+ if (Me[0] === re || Me[0] === ne) {
49084
+ var He = Pe + Me[1].length;
49070
49085
  if (Se === He)
49071
49086
  return [De + 1, ye];
49072
49087
  if (Se < He) {
49073
49088
  ye = ye.slice();
49074
- var Ie = Se - Pe, Ce = [Fe[0], Fe[1].slice(0, Ie)], qe = [Fe[0], Fe[1].slice(Ie)];
49089
+ var Ie = Se - Pe, Ce = [Me[0], Me[1].slice(0, Ie)], qe = [Me[0], Me[1].slice(Ie)];
49075
49090
  return ye.splice(De, 1, Ce, qe), [De + 1, ye];
49076
49091
  } else
49077
49092
  Pe = He;
@@ -49080,17 +49095,17 @@ function requireQuill() {
49080
49095
  throw new Error("cursor_pos is out of bounds!");
49081
49096
  }
49082
49097
  function _e(ye, Se) {
49083
- var Pe = ve(ye, Se), De = Pe[1], Fe = Pe[0], He = De[Fe], Ie = De[Fe + 1];
49098
+ var Pe = ve(ye, Se), De = Pe[1], Me = Pe[0], He = De[Me], Ie = De[Me + 1];
49084
49099
  if (He == null)
49085
49100
  return ye;
49086
49101
  if (He[0] !== ne)
49087
49102
  return ye;
49088
49103
  if (Ie != null && He[1] + Ie[1] === Ie[1] + He[1])
49089
- return De.splice(Fe, 2, Ie, He), Ae(De, Fe, 2);
49104
+ return De.splice(Me, 2, Ie, He), Ae(De, Me, 2);
49090
49105
  if (Ie != null && Ie[1].indexOf(He[1]) === 0) {
49091
- De.splice(Fe, 2, [Ie[0], He[1]], [0, He[1]]);
49106
+ De.splice(Me, 2, [Ie[0], He[1]], [0, He[1]]);
49092
49107
  var Ce = Ie[1].slice(He[1].length);
49093
- return Ce.length > 0 && De.splice(Fe + 2, 0, [Ie[0], Ce]), Ae(De, Fe, 3);
49108
+ return Ce.length > 0 && De.splice(Me + 2, 0, [Ie[0], Ce]), Ae(De, Me, 3);
49094
49109
  } else
49095
49110
  return ye;
49096
49111
  }
@@ -49099,19 +49114,19 @@ function requireQuill() {
49099
49114
  return Ie.charCodeAt(0) >= 56320 && Ie.charCodeAt(0) <= 57343;
49100
49115
  }, De = function(Ie) {
49101
49116
  return Ie.charCodeAt(Ie.length - 1) >= 55296 && Ie.charCodeAt(Ie.length - 1) <= 56319;
49102
- }, Fe = 2; Fe < ye.length; Fe += 1)
49103
- ye[Fe - 2][0] === ne && De(ye[Fe - 2][1]) && ye[Fe - 1][0] === re && Pe(ye[Fe - 1][1]) && ye[Fe][0] === oe && Pe(ye[Fe][1]) && (Se = !0, ye[Fe - 1][1] = ye[Fe - 2][1].slice(-1) + ye[Fe - 1][1], ye[Fe][1] = ye[Fe - 2][1].slice(-1) + ye[Fe][1], ye[Fe - 2][1] = ye[Fe - 2][1].slice(0, -1));
49117
+ }, Me = 2; Me < ye.length; Me += 1)
49118
+ ye[Me - 2][0] === ne && De(ye[Me - 2][1]) && ye[Me - 1][0] === re && Pe(ye[Me - 1][1]) && ye[Me][0] === oe && Pe(ye[Me][1]) && (Se = !0, ye[Me - 1][1] = ye[Me - 2][1].slice(-1) + ye[Me - 1][1], ye[Me][1] = ye[Me - 2][1].slice(-1) + ye[Me][1], ye[Me - 2][1] = ye[Me - 2][1].slice(0, -1));
49104
49119
  if (!Se)
49105
49120
  return ye;
49106
- for (var He = [], Fe = 0; Fe < ye.length; Fe += 1)
49107
- ye[Fe][1].length > 0 && He.push(ye[Fe]);
49121
+ for (var He = [], Me = 0; Me < ye.length; Me += 1)
49122
+ ye[Me][1].length > 0 && He.push(ye[Me]);
49108
49123
  return He;
49109
49124
  }
49110
49125
  function Ae(ye, Se, Pe) {
49111
49126
  for (var De = Se + Pe - 1; De >= 0 && De >= Se - 1; De--)
49112
49127
  if (De + 1 < ye.length) {
49113
- var Fe = ye[De], He = ye[De + 1];
49114
- Fe[0] === He[1] && ye.splice(De, 2, [Fe[0], Fe[1] + He[1]]);
49128
+ var Me = ye[De], He = ye[De + 1];
49129
+ Me[0] === He[1] && ye.splice(De, 2, [Me[0], Me[1] + He[1]]);
49115
49130
  }
49116
49131
  return ye;
49117
49132
  }
@@ -49252,17 +49267,17 @@ function requireQuill() {
49252
49267
  return gt && typeof Symbol == "function" && gt.constructor === Symbol && gt !== Symbol.prototype ? "symbol" : typeof gt;
49253
49268
  }, ne = /* @__PURE__ */ (function() {
49254
49269
  function gt(mt, xt) {
49255
- var St = [], $t = !0, Mt = !1, Ft = void 0;
49270
+ var St = [], $t = !0, Ft = !1, Mt = void 0;
49256
49271
  try {
49257
49272
  for (var zt = mt[Symbol.iterator](), cs; !($t = (cs = zt.next()).done) && (St.push(cs.value), !(xt && St.length === xt)); $t = !0)
49258
49273
  ;
49259
49274
  } catch (ds) {
49260
- Mt = !0, Ft = ds;
49275
+ Ft = !0, Mt = ds;
49261
49276
  } finally {
49262
49277
  try {
49263
49278
  !$t && zt.return && zt.return();
49264
49279
  } finally {
49265
- if (Mt) throw Ft;
49280
+ if (Ft) throw Mt;
49266
49281
  }
49267
49282
  }
49268
49283
  return St;
@@ -49284,7 +49299,7 @@ function requireQuill() {
49284
49299
  return function(mt, xt, St) {
49285
49300
  return xt && gt(mt.prototype, xt), St && gt(mt, St), mt;
49286
49301
  };
49287
- })(), ce = re(3), ue = qe(ce), he = re(2), pe = qe(he), fe = re(0), be = qe(fe), me = re(5), ge = qe(me), ve = re(10), _e = qe(ve), we = re(9), Ae = qe(we), ye = re(37), Se = re(38), Pe = re(13), De = qe(Pe), Fe = re(26), He = re(39), Ie = re(40), Ce = re(41);
49302
+ })(), ce = re(3), ue = qe(ce), he = re(2), pe = qe(he), fe = re(0), be = qe(fe), me = re(5), ge = qe(me), ve = re(10), _e = qe(ve), we = re(9), Ae = qe(we), ye = re(37), Se = re(38), Pe = re(13), De = qe(Pe), Me = re(26), He = re(39), Ie = re(40), Ce = re(41);
49288
49303
  function qe(gt) {
49289
49304
  return gt && gt.__esModule ? gt : { default: gt };
49290
49305
  }
@@ -49307,15 +49322,15 @@ function requireQuill() {
49307
49322
  }
49308
49323
  var Ke = (0, _e.default)("quill:clipboard"), ft = "__ql-matcher", Qe = [[Node.TEXT_NODE, Yt], [Node.TEXT_NODE, Nt], ["br", kt], [Node.ELEMENT_NODE, Nt], [Node.ELEMENT_NODE, _t], [Node.ELEMENT_NODE, Ut], [Node.ELEMENT_NODE, ot], [Node.ELEMENT_NODE, rs], ["li", qt], ["b", rt.bind(rt, "bold")], ["i", rt.bind(rt, "italic")], ["style", It]], Ze = [ye.AlignAttribute, He.DirectionAttribute].reduce(function(gt, mt) {
49309
49324
  return gt[mt.keyName] = mt, gt;
49310
- }, {}), Me = [ye.AlignStyle, Se.BackgroundStyle, Fe.ColorStyle, He.DirectionStyle, Ie.FontStyle, Ce.SizeStyle].reduce(function(gt, mt) {
49325
+ }, {}), Fe = [ye.AlignStyle, Se.BackgroundStyle, Me.ColorStyle, He.DirectionStyle, Ie.FontStyle, Ce.SizeStyle].reduce(function(gt, mt) {
49311
49326
  return gt[mt.keyName] = mt, gt;
49312
49327
  }, {}), Ve = (function(gt) {
49313
49328
  Ge(mt, gt);
49314
49329
  function mt(xt, St) {
49315
49330
  ze(this, mt);
49316
49331
  var $t = We(this, (mt.__proto__ || Object.getPrototypeOf(mt)).call(this, xt, St));
49317
- return $t.quill.root.addEventListener("paste", $t.onPaste.bind($t)), $t.container = $t.quill.addContainer("ql-clipboard"), $t.container.setAttribute("contenteditable", !0), $t.container.setAttribute("tabindex", -1), $t.matchers = [], Qe.concat($t.options.matchers).forEach(function(Mt) {
49318
- var Ft = ne(Mt, 2), zt = Ft[0], cs = Ft[1];
49332
+ return $t.quill.root.addEventListener("paste", $t.onPaste.bind($t)), $t.container = $t.quill.addContainer("ql-clipboard"), $t.container.setAttribute("contenteditable", !0), $t.container.setAttribute("tabindex", -1), $t.matchers = [], Qe.concat($t.options.matchers).forEach(function(Ft) {
49333
+ var Mt = ne(Ft, 2), zt = Mt[0], cs = Mt[1];
49319
49334
  !St.matchVisual && cs === Ut || $t.addMatcher(zt, cs);
49320
49335
  }), $t;
49321
49336
  }
@@ -49331,22 +49346,22 @@ function requireQuill() {
49331
49346
  return this.container.innerHTML = St.replace(/\>\r?\n +\</g, "><"), this.convert();
49332
49347
  var $t = this.quill.getFormat(this.quill.selection.savedRange.index);
49333
49348
  if ($t[De.default.blotName]) {
49334
- var Mt = this.container.innerText;
49335
- return this.container.innerHTML = "", new pe.default().insert(Mt, Le({}, De.default.blotName, $t[De.default.blotName]));
49349
+ var Ft = this.container.innerText;
49350
+ return this.container.innerHTML = "", new pe.default().insert(Ft, Le({}, De.default.blotName, $t[De.default.blotName]));
49336
49351
  }
49337
- var Ft = this.prepareMatching(), zt = ne(Ft, 2), cs = zt[0], ds = zt[1], Kt = Ye(this.container, cs, ds);
49352
+ var Mt = this.prepareMatching(), zt = ne(Mt, 2), cs = zt[0], ds = zt[1], Kt = Ye(this.container, cs, ds);
49338
49353
  return Je(Kt, `
49339
49354
  `) && 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;
49340
49355
  }
49341
49356
  }, {
49342
49357
  key: "dangerouslyPasteHTML",
49343
49358
  value: function(St, $t) {
49344
- var Mt = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ge.default.sources.API;
49359
+ var Ft = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ge.default.sources.API;
49345
49360
  if (typeof St == "string")
49346
49361
  this.quill.setContents(this.convert(St), $t), this.quill.setSelection(0, ge.default.sources.SILENT);
49347
49362
  else {
49348
- var Ft = this.convert($t);
49349
- this.quill.updateContents(new pe.default().retain(St).concat(Ft), Mt), this.quill.setSelection(St + Ft.length(), ge.default.sources.SILENT);
49363
+ var Mt = this.convert($t);
49364
+ this.quill.updateContents(new pe.default().retain(St).concat(Mt), Ft), this.quill.setSelection(St + Mt.length(), ge.default.sources.SILENT);
49350
49365
  }
49351
49366
  }
49352
49367
  }, {
@@ -49354,21 +49369,21 @@ function requireQuill() {
49354
49369
  value: function(St) {
49355
49370
  var $t = this;
49356
49371
  if (!(St.defaultPrevented || !this.quill.isEnabled())) {
49357
- var Mt = this.quill.getSelection(), Ft = new pe.default().retain(Mt.index), zt = this.quill.scrollingContainer.scrollTop;
49372
+ var Ft = this.quill.getSelection(), Mt = new pe.default().retain(Ft.index), zt = this.quill.scrollingContainer.scrollTop;
49358
49373
  this.container.focus(), this.quill.selection.update(ge.default.sources.SILENT), setTimeout(function() {
49359
- Ft = Ft.concat($t.convert()).delete(Mt.length), $t.quill.updateContents(Ft, ge.default.sources.USER), $t.quill.setSelection(Ft.length() - Mt.length, ge.default.sources.SILENT), $t.quill.scrollingContainer.scrollTop = zt, $t.quill.focus();
49374
+ Mt = Mt.concat($t.convert()).delete(Ft.length), $t.quill.updateContents(Mt, ge.default.sources.USER), $t.quill.setSelection(Mt.length() - Ft.length, ge.default.sources.SILENT), $t.quill.scrollingContainer.scrollTop = zt, $t.quill.focus();
49360
49375
  }, 1);
49361
49376
  }
49362
49377
  }
49363
49378
  }, {
49364
49379
  key: "prepareMatching",
49365
49380
  value: function() {
49366
- var St = this, $t = [], Mt = [];
49367
- return this.matchers.forEach(function(Ft) {
49368
- var zt = ne(Ft, 2), cs = zt[0], ds = zt[1];
49381
+ var St = this, $t = [], Ft = [];
49382
+ return this.matchers.forEach(function(Mt) {
49383
+ var zt = ne(Mt, 2), cs = zt[0], ds = zt[1];
49369
49384
  switch (cs) {
49370
49385
  case Node.TEXT_NODE:
49371
- Mt.push(ds);
49386
+ Ft.push(ds);
49372
49387
  break;
49373
49388
  case Node.ELEMENT_NODE:
49374
49389
  $t.push(ds);
@@ -49379,7 +49394,7 @@ function requireQuill() {
49379
49394
  });
49380
49395
  break;
49381
49396
  }
49382
- }), [$t, Mt];
49397
+ }), [$t, Ft];
49383
49398
  }
49384
49399
  }]), mt;
49385
49400
  })(Ae.default);
@@ -49416,23 +49431,23 @@ function requireQuill() {
49416
49431
  return gt.nodeType === gt.TEXT_NODE ? xt.reduce(function(St, $t) {
49417
49432
  return $t(gt, St);
49418
49433
  }, new pe.default()) : gt.nodeType === gt.ELEMENT_NODE ? [].reduce.call(gt.childNodes || [], function(St, $t) {
49419
- var Mt = Ye($t, mt, xt);
49420
- return $t.nodeType === gt.ELEMENT_NODE && (Mt = mt.reduce(function(Ft, zt) {
49421
- return zt($t, Ft);
49422
- }, Mt), Mt = ($t[ft] || []).reduce(function(Ft, zt) {
49423
- return zt($t, Ft);
49424
- }, Mt)), St.concat(Mt);
49434
+ var Ft = Ye($t, mt, xt);
49435
+ return $t.nodeType === gt.ELEMENT_NODE && (Ft = mt.reduce(function(Mt, zt) {
49436
+ return zt($t, Mt);
49437
+ }, Ft), Ft = ($t[ft] || []).reduce(function(Mt, zt) {
49438
+ return zt($t, Mt);
49439
+ }, Ft)), St.concat(Ft);
49425
49440
  }, new pe.default()) : new pe.default();
49426
49441
  }
49427
49442
  function rt(gt, mt, xt) {
49428
49443
  return Be(xt, gt, !0);
49429
49444
  }
49430
49445
  function ot(gt, mt) {
49431
- var xt = be.default.Attributor.Attribute.keys(gt), St = be.default.Attributor.Class.keys(gt), $t = be.default.Attributor.Style.keys(gt), Mt = {};
49432
- return xt.concat(St).concat($t).forEach(function(Ft) {
49433
- var zt = be.default.query(Ft, be.default.Scope.ATTRIBUTE);
49434
- zt != null && (Mt[zt.attrName] = zt.value(gt), Mt[zt.attrName]) || (zt = Ze[Ft], zt != null && (zt.attrName === Ft || zt.keyName === Ft) && (Mt[zt.attrName] = zt.value(gt) || void 0), zt = Me[Ft], zt != null && (zt.attrName === Ft || zt.keyName === Ft) && (zt = Me[Ft], Mt[zt.attrName] = zt.value(gt) || void 0));
49435
- }), Object.keys(Mt).length > 0 && (mt = Be(mt, Mt)), mt;
49446
+ var xt = be.default.Attributor.Attribute.keys(gt), St = be.default.Attributor.Class.keys(gt), $t = be.default.Attributor.Style.keys(gt), Ft = {};
49447
+ return xt.concat(St).concat($t).forEach(function(Mt) {
49448
+ var zt = be.default.query(Mt, be.default.Scope.ATTRIBUTE);
49449
+ zt != null && (Ft[zt.attrName] = zt.value(gt), Ft[zt.attrName]) || (zt = Ze[Mt], zt != null && (zt.attrName === Mt || zt.keyName === Mt) && (Ft[zt.attrName] = zt.value(gt) || void 0), zt = Fe[Mt], zt != null && (zt.attrName === Mt || zt.keyName === Mt) && (zt = Fe[Mt], Ft[zt.attrName] = zt.value(gt) || void 0));
49450
+ }), Object.keys(Ft).length > 0 && (mt = Be(mt, Ft)), mt;
49436
49451
  }
49437
49452
  function _t(gt, mt) {
49438
49453
  var xt = be.default.query(gt);
@@ -49486,8 +49501,8 @@ function requireQuill() {
49486
49501
  if (xt.trim().length === 0 && gt.parentNode.classList.contains("ql-clipboard"))
49487
49502
  return mt;
49488
49503
  if (!Xe(gt.parentNode).whiteSpace.startsWith("pre")) {
49489
- var St = function(Mt, Ft) {
49490
- return Ft = Ft.replace(/[^\u00a0]/g, ""), Ft.length < 1 && Mt ? " " : Ft;
49504
+ var St = function(Ft, Mt) {
49505
+ return Mt = Mt.replace(/[^\u00a0]/g, ""), Mt.length < 1 && Ft ? " " : Mt;
49491
49506
  };
49492
49507
  xt = xt.replace(/\r\n/g, " ").replace(/\n/g, " "), xt = xt.replace(/\s\s+/g, St.bind(St, !0)), (gt.previousSibling == null && Ue(gt.parentNode) || gt.previousSibling != null && Ue(gt.previousSibling)) && (xt = xt.replace(/^\s+/, St.bind(St, !1))), (gt.nextSibling == null && Ue(gt.parentNode) || gt.nextSibling != null && Ue(gt.nextSibling)) && (xt = xt.replace(/\s+$/, St.bind(St, !1)));
49493
49508
  }
@@ -49577,8 +49592,8 @@ function requireQuill() {
49577
49592
  try {
49578
49593
  for (var Qe = Le[Symbol.iterator](), Ze; !(Ge = (Ze = Qe.next()).done) && (We.push(Ze.value), !(ze && We.length === ze)); Ge = !0)
49579
49594
  ;
49580
- } catch (Me) {
49581
- Ke = !0, ft = Me;
49595
+ } catch (Fe) {
49596
+ Ke = !0, ft = Fe;
49582
49597
  } finally {
49583
49598
  try {
49584
49599
  !Ge && Qe.return && Qe.return();
@@ -49626,7 +49641,7 @@ function requireQuill() {
49626
49641
  throw new TypeError("Super expression must either be null or a function, not " + typeof Le);
49627
49642
  qe.prototype = Object.create(Le && Le.prototype, { constructor: { value: qe, enumerable: !1, writable: !0, configurable: !0 } }), Le && (Object.setPrototypeOf ? Object.setPrototypeOf(qe, Le) : qe.__proto__ = Le);
49628
49643
  }
49629
- var Pe = "getRootNode" in document, De = (0, me.default)("quill:toolbar"), Fe = (function(qe) {
49644
+ var Pe = "getRootNode" in document, De = (0, me.default)("quill:toolbar"), Me = (function(qe) {
49630
49645
  Se(Le, qe);
49631
49646
  function Le(ze, We) {
49632
49647
  Ae(this, Le);
@@ -49647,10 +49662,10 @@ function requireQuill() {
49647
49662
  Ge.addHandler(Ze, Ge.options.handlers[Ze]);
49648
49663
  }), [].forEach.call(Ge.container.querySelectorAll("button, select"), function(Ze) {
49649
49664
  Ge.attach(Ze);
49650
- }), Ge.quill.on(fe.default.events.EDITOR_CHANGE, function(Ze, Me) {
49651
- Ze === fe.default.events.SELECTION_CHANGE && Ge.update(Me);
49665
+ }), Ge.quill.on(fe.default.events.EDITOR_CHANGE, function(Ze, Fe) {
49666
+ Ze === fe.default.events.SELECTION_CHANGE && Ge.update(Fe);
49652
49667
  }), Ge.quill.on(fe.default.events.SCROLL_OPTIMIZE, function() {
49653
- var Ze = Ge.quill.selection.getRange(), Me = oe(Ze, 1), Ve = Me[0];
49668
+ var Ze = Ge.quill.selection.getRange(), Fe = oe(Ze, 1), Ve = Fe[0];
49654
49669
  Ge.update(Ve);
49655
49670
  }), Ge;
49656
49671
  }
@@ -49681,8 +49696,8 @@ function requireQuill() {
49681
49696
  var Ze = void 0;
49682
49697
  if (We.tagName === "SELECT") {
49683
49698
  if (We.selectedIndex < 0) return;
49684
- var Me = We.options[We.selectedIndex];
49685
- Me.hasAttribute("selected") ? Ze = !1 : Ze = Me.value || !1;
49699
+ var Fe = We.options[We.selectedIndex];
49700
+ Fe.hasAttribute("selected") ? Ze = !1 : Ze = Fe.value || !1;
49686
49701
  } else
49687
49702
  We.classList.contains("ql-active") ? Ze = !1 : Ze = We.value || !We.hasAttribute("value"), Qe.preventDefault();
49688
49703
  Ge.quill.focus();
@@ -49705,16 +49720,16 @@ function requireQuill() {
49705
49720
  this.controls.forEach(function(Ke) {
49706
49721
  var ft = oe(Ke, 2), Qe = ft[0], Ze = ft[1];
49707
49722
  if (Ze.tagName === "SELECT") {
49708
- var Me = void 0;
49723
+ var Fe = void 0;
49709
49724
  if (We == null)
49710
- Me = null;
49725
+ Fe = null;
49711
49726
  else if (Ge[Qe] == null)
49712
- Me = Ze.querySelector("option[selected]");
49727
+ Fe = Ze.querySelector("option[selected]");
49713
49728
  else if (!Array.isArray(Ge[Qe])) {
49714
49729
  var Ve = Ge[Qe];
49715
- typeof Ve == "string" && (Ve = Ve.replace(/\"/g, '\\"')), Me = Ze.querySelector('option[value="' + Ve + '"]');
49730
+ typeof Ve == "string" && (Ve = Ve.replace(/\"/g, '\\"')), Fe = Ze.querySelector('option[value="' + Ve + '"]');
49716
49731
  }
49717
- Me == null ? (Ze.value = "", Ze.selectedIndex = -1) : Me.selected = !0;
49732
+ Fe == null ? (Ze.value = "", Ze.selectedIndex = -1) : Fe.selected = !0;
49718
49733
  } else if (We == null)
49719
49734
  Ze.classList.remove("ql-active");
49720
49735
  else if (Ze.hasAttribute("value")) {
@@ -49726,7 +49741,7 @@ function requireQuill() {
49726
49741
  }
49727
49742
  }]), Le;
49728
49743
  })(ve.default);
49729
- Fe.DEFAULTS = {};
49744
+ Me.DEFAULTS = {};
49730
49745
  function He(qe, Le, ze) {
49731
49746
  var We = document.createElement("button");
49732
49747
  We.setAttribute("type", "button"), We.classList.add("ql-" + Le), ze != null && (We.value = ze), qe.appendChild(We);
@@ -49751,7 +49766,7 @@ function requireQuill() {
49751
49766
  Ge !== !1 ? Ke.setAttribute("value", Ge) : Ke.setAttribute("selected", "selected"), We.appendChild(Ke);
49752
49767
  }), qe.appendChild(We);
49753
49768
  }
49754
- Fe.DEFAULTS = {
49769
+ Me.DEFAULTS = {
49755
49770
  container: null,
49756
49771
  handlers: {
49757
49772
  clean: function() {
@@ -49784,7 +49799,7 @@ function requireQuill() {
49784
49799
  Le === "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", Le, fe.default.sources.USER);
49785
49800
  }
49786
49801
  }
49787
- }, te.default = Fe, te.addControls = Ie;
49802
+ }, te.default = Me, te.addControls = Ie;
49788
49803
  }),
49789
49804
  /* 59 */
49790
49805
  /***/
@@ -50051,7 +50066,7 @@ function requireQuill() {
50051
50066
  throw new TypeError("Super expression must either be null or a function, not " + typeof Ce);
50052
50067
  Ie.prototype = Object.create(Ce && Ce.prototype, { constructor: { value: Ie, enumerable: !1, writable: !0, configurable: !0 } }), Ce && (Object.setPrototypeOf ? Object.setPrototypeOf(Ie, Ce) : Ie.__proto__ = Ce);
50053
50068
  }
50054
- var De = [[{ header: ["1", "2", "3", !1] }], ["bold", "italic", "underline", "link"], [{ list: "ordered" }, { list: "bullet" }], ["clean"]], Fe = (function(Ie) {
50069
+ var De = [[{ header: ["1", "2", "3", !1] }], ["bold", "italic", "underline", "link"], [{ list: "ordered" }, { list: "bullet" }], ["clean"]], Me = (function(Ie) {
50055
50070
  Pe(Ce, Ie);
50056
50071
  function Ce(qe, Le) {
50057
50072
  ye(this, Ce), Le.modules.toolbar != null && Le.modules.toolbar.container == null && (Le.modules.toolbar.container = De);
@@ -50067,7 +50082,7 @@ function requireQuill() {
50067
50082
  }
50068
50083
  }]), Ce;
50069
50084
  })(be.default);
50070
- Fe.DEFAULTS = (0, ue.default)(!0, {}, be.default.DEFAULTS, {
50085
+ Me.DEFAULTS = (0, ue.default)(!0, {}, be.default.DEFAULTS, {
50071
50086
  modules: {
50072
50087
  toolbar: {
50073
50088
  handlers: {
@@ -50111,8 +50126,8 @@ function requireQuill() {
50111
50126
  var Ke = Le.quill.scroll.descendant(ge.default, ze.index), ft = oe(Ke, 2), Qe = ft[0], Ze = ft[1];
50112
50127
  if (Qe != null) {
50113
50128
  Le.linkRange = new ve.Range(ze.index - Ze, Qe.length());
50114
- var Me = ge.default.formats(Qe.domNode);
50115
- Le.preview.textContent = Me, Le.preview.setAttribute("href", Me), Le.show(), Le.position(Le.quill.getBounds(Le.linkRange));
50129
+ var Fe = ge.default.formats(Qe.domNode);
50130
+ Le.preview.textContent = Fe, Le.preview.setAttribute("href", Fe), Le.show(), Le.position(Le.quill.getBounds(Le.linkRange));
50116
50131
  return;
50117
50132
  }
50118
50133
  } else
@@ -50128,7 +50143,7 @@ function requireQuill() {
50128
50143
  }
50129
50144
  }]), Ce;
50130
50145
  })(fe.BaseTooltip);
50131
- 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 = Fe;
50146
+ 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;
50132
50147
  }),
50133
50148
  /* 64 */
50134
50149
  /***/
@@ -50136,9 +50151,9 @@ function requireQuill() {
50136
50151
  Object.defineProperty(te, "__esModule", {
50137
50152
  value: !0
50138
50153
  });
50139
- var oe = re(29), ne = $t(oe), de = re(37), ce = re(39), ue = re(65), he = re(66), pe = $t(he), fe = re(67), be = $t(fe), me = re(68), ge = $t(me), ve = re(38), _e = re(26), we = re(40), Ae = re(41), ye = re(57), Se = $t(ye), Pe = re(69), De = $t(Pe), Fe = re(27), He = $t(Fe), Ie = re(70), Ce = $t(Ie), qe = re(71), Le = $t(qe), ze = re(72), We = $t(ze), Ge = re(73), Ke = $t(Ge), ft = re(74), Qe = $t(ft), Ze = re(13), Me = $t(Ze), Ve = re(75), Be = $t(Ve), Xe = re(76), Je = $t(Xe), Ue = re(58), Ye = $t(Ue), rt = re(42), ot = $t(rt), _t = re(28), kt = $t(_t), It = re(60), qt = $t(It), Nt = re(61), Ut = $t(Nt), rs = re(62), Yt = $t(rs), gt = re(109), mt = $t(gt), xt = re(63), St = $t(xt);
50140
- function $t(Mt) {
50141
- return Mt && Mt.__esModule ? Mt : { default: Mt };
50154
+ var oe = re(29), ne = $t(oe), de = re(37), ce = re(39), ue = re(65), he = re(66), pe = $t(he), fe = re(67), be = $t(fe), me = re(68), ge = $t(me), ve = re(38), _e = re(26), we = re(40), Ae = re(41), ye = re(57), Se = $t(ye), Pe = re(69), De = $t(Pe), Me = re(27), He = $t(Me), Ie = re(70), Ce = $t(Ie), qe = re(71), Le = $t(qe), ze = re(72), We = $t(ze), Ge = re(73), Ke = $t(Ge), ft = re(74), Qe = $t(ft), Ze = re(13), Fe = $t(Ze), Ve = re(75), Be = $t(Ve), Xe = re(76), Je = $t(Xe), Ue = re(58), Ye = $t(Ue), rt = re(42), ot = $t(rt), _t = re(28), kt = $t(_t), It = re(60), qt = $t(It), Nt = re(61), Ut = $t(Nt), rs = re(62), Yt = $t(rs), gt = re(109), mt = $t(gt), xt = re(63), St = $t(xt);
50155
+ function $t(Ft) {
50156
+ return Ft && Ft.__esModule ? Ft : { default: Ft };
50142
50157
  }
50143
50158
  ne.default.register({
50144
50159
  "attributors/attribute/direction": ce.DirectionAttribute,
@@ -50163,7 +50178,7 @@ function requireQuill() {
50163
50178
  "formats/font": we.FontClass,
50164
50179
  "formats/size": Ae.SizeClass,
50165
50180
  "formats/blockquote": pe.default,
50166
- "formats/code-block": Me.default,
50181
+ "formats/code-block": Fe.default,
50167
50182
  "formats/header": be.default,
50168
50183
  "formats/list": ge.default,
50169
50184
  "formats/bold": Se.default,
@@ -50355,8 +50370,8 @@ function requireQuill() {
50355
50370
  var oe = /* @__PURE__ */ (function() {
50356
50371
  function ye(Se, Pe) {
50357
50372
  for (var De = 0; De < Pe.length; De++) {
50358
- var Fe = Pe[De];
50359
- Fe.enumerable = Fe.enumerable || !1, Fe.configurable = !0, "value" in Fe && (Fe.writable = !0), Object.defineProperty(Se, Fe.key, Fe);
50373
+ var Me = Pe[De];
50374
+ Me.enumerable = Me.enumerable || !1, Me.configurable = !0, "value" in Me && (Me.writable = !0), Object.defineProperty(Se, Me.key, Me);
50360
50375
  }
50361
50376
  }
50362
50377
  return function(Se, Pe, De) {
@@ -50364,14 +50379,14 @@ function requireQuill() {
50364
50379
  };
50365
50380
  })(), ne = function ye(Se, Pe, De) {
50366
50381
  Se === null && (Se = Function.prototype);
50367
- var Fe = Object.getOwnPropertyDescriptor(Se, Pe);
50368
- if (Fe === void 0) {
50382
+ var Me = Object.getOwnPropertyDescriptor(Se, Pe);
50383
+ if (Me === void 0) {
50369
50384
  var He = Object.getPrototypeOf(Se);
50370
50385
  return He === null ? void 0 : ye(He, Pe, De);
50371
50386
  } else {
50372
- if ("value" in Fe)
50373
- return Fe.value;
50374
- var Ie = Fe.get;
50387
+ if ("value" in Me)
50388
+ return Me.value;
50389
+ var Ie = Me.get;
50375
50390
  return Ie === void 0 ? void 0 : Ie.call(De);
50376
50391
  }
50377
50392
  }, de = re(0), ce = be(de), ue = re(4), he = be(ue), pe = re(25), fe = be(pe);
@@ -50402,8 +50417,8 @@ function requireQuill() {
50402
50417
  }
50403
50418
  return oe(Se, [{
50404
50419
  key: "format",
50405
- value: function(De, Fe) {
50406
- De === Ae.blotName && !Fe ? this.replaceWith(ce.default.create(this.statics.scope)) : ne(Se.prototype.__proto__ || Object.getPrototypeOf(Se.prototype), "format", this).call(this, De, Fe);
50420
+ value: function(De, Me) {
50421
+ De === Ae.blotName && !Me ? this.replaceWith(ce.default.create(this.statics.scope)) : ne(Se.prototype.__proto__ || Object.getPrototypeOf(Se.prototype), "format", this).call(this, De, Me);
50407
50422
  }
50408
50423
  }, {
50409
50424
  key: "remove",
@@ -50412,8 +50427,8 @@ function requireQuill() {
50412
50427
  }
50413
50428
  }, {
50414
50429
  key: "replaceWith",
50415
- value: function(De, Fe) {
50416
- return this.parent.isolate(this.offset(this.parent), this.length()), De === this.parent.statics.blotName ? (this.parent.replaceWith(De, Fe), this) : (this.parent.unwrap(), ne(Se.prototype.__proto__ || Object.getPrototypeOf(Se.prototype), "replaceWith", this).call(this, De, Fe));
50430
+ value: function(De, Me) {
50431
+ 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(Se.prototype.__proto__ || Object.getPrototypeOf(Se.prototype), "replaceWith", this).call(this, De, Me));
50417
50432
  }
50418
50433
  }], [{
50419
50434
  key: "formats",
@@ -50427,7 +50442,7 @@ function requireQuill() {
50427
50442
  _e(Se, ye), oe(Se, null, [{
50428
50443
  key: "create",
50429
50444
  value: function(De) {
50430
- var Fe = De === "ordered" ? "OL" : "UL", He = ne(Se.__proto__ || Object.getPrototypeOf(Se), "create", this).call(this, Fe);
50445
+ var Me = De === "ordered" ? "OL" : "UL", He = ne(Se.__proto__ || Object.getPrototypeOf(Se), "create", this).call(this, Me);
50431
50446
  return (De === "checked" || De === "unchecked") && He.setAttribute("data-checked", De === "checked"), He;
50432
50447
  }
50433
50448
  }, {
@@ -50440,18 +50455,18 @@ function requireQuill() {
50440
50455
  }]);
50441
50456
  function Se(Pe) {
50442
50457
  ge(this, Se);
50443
- var De = ve(this, (Se.__proto__ || Object.getPrototypeOf(Se)).call(this, Pe)), Fe = function(Ie) {
50458
+ var De = ve(this, (Se.__proto__ || Object.getPrototypeOf(Se)).call(this, Pe)), Me = function(Ie) {
50444
50459
  if (Ie.target.parentNode === Pe) {
50445
50460
  var Ce = De.statics.formats(Pe), qe = ce.default.find(Ie.target);
50446
50461
  Ce === "checked" ? qe.format("list", "unchecked") : Ce === "unchecked" && qe.format("list", "checked");
50447
50462
  }
50448
50463
  };
50449
- return Pe.addEventListener("touchstart", Fe), Pe.addEventListener("mousedown", Fe), De;
50464
+ return Pe.addEventListener("touchstart", Me), Pe.addEventListener("mousedown", Me), De;
50450
50465
  }
50451
50466
  return oe(Se, [{
50452
50467
  key: "format",
50453
- value: function(De, Fe) {
50454
- this.children.length > 0 && this.children.tail.format(De, Fe);
50468
+ value: function(De, Me) {
50469
+ this.children.length > 0 && this.children.tail.format(De, Me);
50455
50470
  }
50456
50471
  }, {
50457
50472
  key: "formats",
@@ -50460,11 +50475,11 @@ function requireQuill() {
50460
50475
  }
50461
50476
  }, {
50462
50477
  key: "insertBefore",
50463
- value: function(De, Fe) {
50478
+ value: function(De, Me) {
50464
50479
  if (De instanceof we)
50465
- ne(Se.prototype.__proto__ || Object.getPrototypeOf(Se.prototype), "insertBefore", this).call(this, De, Fe);
50480
+ ne(Se.prototype.__proto__ || Object.getPrototypeOf(Se.prototype), "insertBefore", this).call(this, De, Me);
50466
50481
  else {
50467
- var He = Fe == null ? this.length() : Fe.offset(this), Ie = this.split(He);
50482
+ var He = Me == null ? this.length() : Me.offset(this), Ie = this.split(He);
50468
50483
  Ie.parent.insertBefore(De, Ie);
50469
50484
  }
50470
50485
  }
@@ -50472,15 +50487,15 @@ function requireQuill() {
50472
50487
  key: "optimize",
50473
50488
  value: function(De) {
50474
50489
  ne(Se.prototype.__proto__ || Object.getPrototypeOf(Se.prototype), "optimize", this).call(this, De);
50475
- var Fe = this.next;
50476
- Fe != null && Fe.prev === this && Fe.statics.blotName === this.statics.blotName && Fe.domNode.tagName === this.domNode.tagName && Fe.domNode.getAttribute("data-checked") === this.domNode.getAttribute("data-checked") && (Fe.moveChildren(this), Fe.remove());
50490
+ var Me = this.next;
50491
+ 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());
50477
50492
  }
50478
50493
  }, {
50479
50494
  key: "replace",
50480
50495
  value: function(De) {
50481
50496
  if (De.statics.blotName !== this.statics.blotName) {
50482
- var Fe = ce.default.create(this.statics.defaultChild);
50483
- De.moveChildren(Fe), this.appendChild(Fe);
50497
+ var Me = ce.default.create(this.statics.defaultChild);
50498
+ De.moveChildren(Me), this.appendChild(Me);
50484
50499
  }
50485
50500
  ne(Se.prototype.__proto__ || Object.getPrototypeOf(Se.prototype), "replace", this).call(this, De);
50486
50501
  }
@@ -50844,8 +50859,8 @@ function requireQuill() {
50844
50859
  ye === null && (ye = Function.prototype);
50845
50860
  var De = Object.getOwnPropertyDescriptor(ye, Se);
50846
50861
  if (De === void 0) {
50847
- var Fe = Object.getPrototypeOf(ye);
50848
- return Fe === null ? void 0 : Ae(Fe, Se, Pe);
50862
+ var Me = Object.getPrototypeOf(ye);
50863
+ return Me === null ? void 0 : Ae(Me, Se, Pe);
50849
50864
  } else {
50850
50865
  if ("value" in De)
50851
50866
  return De.value;
@@ -50917,21 +50932,21 @@ function requireQuill() {
50917
50932
  value: !0
50918
50933
  }), te.default = te.CodeToken = te.CodeBlock = void 0;
50919
50934
  var oe = /* @__PURE__ */ (function() {
50920
- function Pe(De, Fe) {
50921
- for (var He = 0; He < Fe.length; He++) {
50922
- var Ie = Fe[He];
50935
+ function Pe(De, Me) {
50936
+ for (var He = 0; He < Me.length; He++) {
50937
+ var Ie = Me[He];
50923
50938
  Ie.enumerable = Ie.enumerable || !1, Ie.configurable = !0, "value" in Ie && (Ie.writable = !0), Object.defineProperty(De, Ie.key, Ie);
50924
50939
  }
50925
50940
  }
50926
- return function(De, Fe, He) {
50927
- return Fe && Pe(De.prototype, Fe), He && Pe(De, He), De;
50941
+ return function(De, Me, He) {
50942
+ return Me && Pe(De.prototype, Me), He && Pe(De, He), De;
50928
50943
  };
50929
- })(), ne = function Pe(De, Fe, He) {
50944
+ })(), ne = function Pe(De, Me, He) {
50930
50945
  De === null && (De = Function.prototype);
50931
- var Ie = Object.getOwnPropertyDescriptor(De, Fe);
50946
+ var Ie = Object.getOwnPropertyDescriptor(De, Me);
50932
50947
  if (Ie === void 0) {
50933
50948
  var Ce = Object.getPrototypeOf(De);
50934
- return Ce === null ? void 0 : Pe(Ce, Fe, He);
50949
+ return Ce === null ? void 0 : Pe(Ce, Me, He);
50935
50950
  } else {
50936
50951
  if ("value" in Ie)
50937
50952
  return Ie.value;
@@ -50984,9 +50999,9 @@ function requireQuill() {
50984
50999
  he.default.register(ye, !0), he.default.register(Ae, !0);
50985
51000
  }
50986
51001
  }]);
50987
- function De(Fe, He) {
51002
+ function De(Me, He) {
50988
51003
  ve(this, De);
50989
- var Ie = _e(this, (De.__proto__ || Object.getPrototypeOf(De)).call(this, Fe, He));
51004
+ var Ie = _e(this, (De.__proto__ || Object.getPrototypeOf(De)).call(this, Me, He));
50990
51005
  if (typeof Ie.options.highlight != "function")
50991
51006
  throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");
50992
51007
  var Ce = null;
@@ -51186,11 +51201,11 @@ function requireQuill() {
51186
51201
  Object.defineProperty(te, "__esModule", {
51187
51202
  value: !0
51188
51203
  }), te.default = te.BubbleTooltip = void 0;
51189
- var oe = function De(Fe, He, Ie) {
51190
- Fe === null && (Fe = Function.prototype);
51191
- var Ce = Object.getOwnPropertyDescriptor(Fe, He);
51204
+ var oe = function De(Me, He, Ie) {
51205
+ Me === null && (Me = Function.prototype);
51206
+ var Ce = Object.getOwnPropertyDescriptor(Me, He);
51192
51207
  if (Ce === void 0) {
51193
- var qe = Object.getPrototypeOf(Fe);
51208
+ var qe = Object.getPrototypeOf(Me);
51194
51209
  return qe === null ? void 0 : De(qe, He, Ie);
51195
51210
  } else {
51196
51211
  if ("value" in Ce)
@@ -51199,63 +51214,63 @@ function requireQuill() {
51199
51214
  return Le === void 0 ? void 0 : Le.call(Ie);
51200
51215
  }
51201
51216
  }, ne = /* @__PURE__ */ (function() {
51202
- function De(Fe, He) {
51217
+ function De(Me, He) {
51203
51218
  for (var Ie = 0; Ie < He.length; Ie++) {
51204
51219
  var Ce = He[Ie];
51205
- Ce.enumerable = Ce.enumerable || !1, Ce.configurable = !0, "value" in Ce && (Ce.writable = !0), Object.defineProperty(Fe, Ce.key, Ce);
51220
+ Ce.enumerable = Ce.enumerable || !1, Ce.configurable = !0, "value" in Ce && (Ce.writable = !0), Object.defineProperty(Me, Ce.key, Ce);
51206
51221
  }
51207
51222
  }
51208
- return function(Fe, He, Ie) {
51209
- return He && De(Fe.prototype, He), Ie && De(Fe, Ie), Fe;
51223
+ return function(Me, He, Ie) {
51224
+ return He && De(Me.prototype, He), Ie && De(Me, Ie), Me;
51210
51225
  };
51211
51226
  })(), 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);
51212
51227
  function ve(De) {
51213
51228
  return De && De.__esModule ? De : { default: De };
51214
51229
  }
51215
- function _e(De, Fe) {
51216
- if (!(De instanceof Fe))
51230
+ function _e(De, Me) {
51231
+ if (!(De instanceof Me))
51217
51232
  throw new TypeError("Cannot call a class as a function");
51218
51233
  }
51219
- function we(De, Fe) {
51234
+ function we(De, Me) {
51220
51235
  if (!De)
51221
51236
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
51222
- return Fe && (typeof Fe == "object" || typeof Fe == "function") ? Fe : De;
51237
+ return Me && (typeof Me == "object" || typeof Me == "function") ? Me : De;
51223
51238
  }
51224
- function Ae(De, Fe) {
51225
- if (typeof Fe != "function" && Fe !== null)
51226
- throw new TypeError("Super expression must either be null or a function, not " + typeof Fe);
51227
- De.prototype = Object.create(Fe && Fe.prototype, { constructor: { value: De, enumerable: !1, writable: !0, configurable: !0 } }), Fe && (Object.setPrototypeOf ? Object.setPrototypeOf(De, Fe) : De.__proto__ = Fe);
51239
+ function Ae(De, Me) {
51240
+ if (typeof Me != "function" && Me !== null)
51241
+ throw new TypeError("Super expression must either be null or a function, not " + typeof Me);
51242
+ 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);
51228
51243
  }
51229
51244
  var ye = [["bold", "italic", "link"], [{ header: 1 }, { header: 2 }, "blockquote"]], Se = (function(De) {
51230
- Ae(Fe, De);
51231
- function Fe(He, Ie) {
51232
- _e(this, Fe), Ie.modules.toolbar != null && Ie.modules.toolbar.container == null && (Ie.modules.toolbar.container = ye);
51233
- var Ce = we(this, (Fe.__proto__ || Object.getPrototypeOf(Fe)).call(this, He, Ie));
51245
+ Ae(Me, De);
51246
+ function Me(He, Ie) {
51247
+ _e(this, Me), Ie.modules.toolbar != null && Ie.modules.toolbar.container == null && (Ie.modules.toolbar.container = ye);
51248
+ var Ce = we(this, (Me.__proto__ || Object.getPrototypeOf(Me)).call(this, He, Ie));
51234
51249
  return Ce.quill.container.classList.add("ql-bubble"), Ce;
51235
51250
  }
51236
- return ne(Fe, [{
51251
+ return ne(Me, [{
51237
51252
  key: "extendToolbar",
51238
51253
  value: function(Ie) {
51239
51254
  this.tooltip = new Pe(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);
51240
51255
  }
51241
- }]), Fe;
51256
+ }]), Me;
51242
51257
  })(fe.default);
51243
51258
  Se.DEFAULTS = (0, ce.default)(!0, {}, fe.default.DEFAULTS, {
51244
51259
  modules: {
51245
51260
  toolbar: {
51246
51261
  handlers: {
51247
- link: function(Fe) {
51248
- Fe ? this.quill.theme.tooltip.edit() : this.quill.format("link", !1);
51262
+ link: function(Me) {
51263
+ Me ? this.quill.theme.tooltip.edit() : this.quill.format("link", !1);
51249
51264
  }
51250
51265
  }
51251
51266
  }
51252
51267
  }
51253
51268
  });
51254
51269
  var Pe = (function(De) {
51255
- Ae(Fe, De);
51256
- function Fe(He, Ie) {
51257
- _e(this, Fe);
51258
- var Ce = we(this, (Fe.__proto__ || Object.getPrototypeOf(Fe)).call(this, He, Ie));
51270
+ Ae(Me, De);
51271
+ function Me(He, Ie) {
51272
+ _e(this, Me);
51273
+ var Ce = we(this, (Me.__proto__ || Object.getPrototypeOf(Me)).call(this, He, Ie));
51259
51274
  return Ce.quill.on(he.default.events.EDITOR_CHANGE, function(qe, Le, ze, We) {
51260
51275
  if (qe === he.default.events.SELECTION_CHANGE)
51261
51276
  if (Le != null && Le.length > 0 && We === he.default.sources.USER) {
@@ -51270,11 +51285,11 @@ function requireQuill() {
51270
51285
  } else document.activeElement !== Ce.textbox && Ce.quill.hasFocus() && Ce.hide();
51271
51286
  }), Ce;
51272
51287
  }
51273
- return ne(Fe, [{
51288
+ return ne(Me, [{
51274
51289
  key: "listen",
51275
51290
  value: function() {
51276
51291
  var Ie = this;
51277
- oe(Fe.prototype.__proto__ || Object.getPrototypeOf(Fe.prototype), "listen", this).call(this), this.root.querySelector(".ql-close").addEventListener("click", function() {
51292
+ oe(Me.prototype.__proto__ || Object.getPrototypeOf(Me.prototype), "listen", this).call(this), this.root.querySelector(".ql-close").addEventListener("click", function() {
51278
51293
  Ie.root.classList.remove("ql-editing");
51279
51294
  }), this.quill.on(he.default.events.SCROLL_OPTIMIZE, function() {
51280
51295
  setTimeout(function() {
@@ -51293,11 +51308,11 @@ function requireQuill() {
51293
51308
  }, {
51294
51309
  key: "position",
51295
51310
  value: function(Ie) {
51296
- var Ce = oe(Fe.prototype.__proto__ || Object.getPrototypeOf(Fe.prototype), "position", this).call(this, Ie), qe = this.root.querySelector(".ql-tooltip-arrow");
51311
+ var Ce = oe(Me.prototype.__proto__ || Object.getPrototypeOf(Me.prototype), "position", this).call(this, Ie), qe = this.root.querySelector(".ql-tooltip-arrow");
51297
51312
  if (qe.style.marginLeft = "", Ce === 0) return Ce;
51298
51313
  qe.style.marginLeft = -1 * Ce - qe.offsetWidth / 2 + "px";
51299
51314
  }
51300
- }]), Fe;
51315
+ }]), Me;
51301
51316
  })(pe.BaseTooltip);
51302
51317
  Pe.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 = Pe, te.default = Se;
51303
51318
  }),
@@ -52411,4 +52426,4 @@ export {
52411
52426
  l as y,
52412
52427
  PrimariaInteractionService as z
52413
52428
  };
52414
- //# sourceMappingURL=index-BPEC-whC.js.map
52429
+ //# sourceMappingURL=index-Cm7NCvML.js.map