@uxland/primary-shell 8.6.3 → 8.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import r$Y, { useState, useRef, useEffect } from "react";
1
+ import r$X, { useState, useRef, useEffect } from "react";
2
2
  import c$w, { createRoot } from "react-dom/client";
3
3
  var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
4
4
  function getDefaultExportFromCjs(W) {
@@ -54,7 +54,7 @@ function require_Reflect() {
54
54
  } : function(tt, ot) {
55
55
  return tt[ot];
56
56
  }
57
- }, he = Object.getPrototypeOf(Function), fe = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : Yt(), be = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : wi(), ve = typeof WeakMap == "function" ? WeakMap : Zt(), _e = re ? /* @__PURE__ */ Symbol.for("@reflect-metadata:registry") : void 0, me = Ct(), ye = It(me);
57
+ }, he = Object.getPrototypeOf(Function), fe = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : Zt(), be = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : wi(), ve = typeof WeakMap == "function" ? WeakMap : Yt(), _e = re ? /* @__PURE__ */ Symbol.for("@reflect-metadata:registry") : void 0, me = Ct(), ye = It(me);
58
58
  function we(tt, ot, yt, St) {
59
59
  if (Ve(yt)) {
60
60
  if (!qt(tt))
@@ -67,9 +67,9 @@ function require_Reflect() {
67
67
  throw new TypeError();
68
68
  if (!Ue(ot))
69
69
  throw new TypeError();
70
- if (!Ue(St) && !Ve(St) && !Ze(St))
70
+ if (!Ue(St) && !Ve(St) && !Ye(St))
71
71
  throw new TypeError();
72
- return Ze(St) && (St = void 0), yt = wt(yt), Ne(tt, ot, yt, St);
72
+ return Ye(St) && (St = void 0), yt = wt(yt), Ne(tt, ot, yt, St);
73
73
  }
74
74
  }
75
75
  J("decorate", we);
@@ -144,7 +144,7 @@ function require_Reflect() {
144
144
  function Ie(tt, ot) {
145
145
  for (var yt = tt.length - 1; yt >= 0; --yt) {
146
146
  var St = tt[yt], Mt = St(ot);
147
- if (!Ve(Mt) && !Ze(Mt)) {
147
+ if (!Ve(Mt) && !Ye(Mt)) {
148
148
  if (!Nt(Mt))
149
149
  throw new TypeError();
150
150
  ot = Mt;
@@ -155,7 +155,7 @@ function require_Reflect() {
155
155
  function Ne(tt, ot, yt, St) {
156
156
  for (var Mt = tt.length - 1; Mt >= 0; --Mt) {
157
157
  var ci = tt[Mt], di = ci(ot, yt, St);
158
- if (!Ve(di) && !Ze(di)) {
158
+ if (!Ve(di) && !Ye(di)) {
159
159
  if (!Ue(di))
160
160
  throw new TypeError();
161
161
  St = di;
@@ -168,7 +168,7 @@ function require_Reflect() {
168
168
  if (St)
169
169
  return !0;
170
170
  var Mt = $t(ot);
171
- return Ze(Mt) ? !1 : je(tt, Mt, yt);
171
+ return Ye(Mt) ? !1 : je(tt, Mt, yt);
172
172
  }
173
173
  function We(tt, ot, yt) {
174
174
  var St = ti(
@@ -184,7 +184,7 @@ function require_Reflect() {
184
184
  if (St)
185
185
  return ft(tt, ot, yt);
186
186
  var Mt = $t(ot);
187
- if (!Ze(Mt))
187
+ if (!Ye(Mt))
188
188
  return Ge(tt, Mt, yt);
189
189
  }
190
190
  function ft(tt, ot, yt) {
@@ -257,7 +257,7 @@ function require_Reflect() {
257
257
  function Ve(tt) {
258
258
  return tt === void 0;
259
259
  }
260
- function Ze(tt) {
260
+ function Ye(tt) {
261
261
  return tt === null;
262
262
  }
263
263
  function Qe(tt) {
@@ -266,7 +266,7 @@ function require_Reflect() {
266
266
  function Ue(tt) {
267
267
  return typeof tt == "object" ? tt !== null : typeof tt == "function";
268
268
  }
269
- function Ye(tt, ot) {
269
+ function Ze(tt, ot) {
270
270
  switch (Be(tt)) {
271
271
  case 0:
272
272
  return tt;
@@ -315,7 +315,7 @@ function require_Reflect() {
315
315
  return "" + tt;
316
316
  }
317
317
  function wt(tt) {
318
- var ot = Ye(tt);
318
+ var ot = Ze(tt);
319
319
  return Qe(ot) ? ot : mt(ot);
320
320
  }
321
321
  function qt(tt) {
@@ -583,7 +583,7 @@ function require_Reflect() {
583
583
  throw new Error("Illegal state.");
584
584
  }
585
585
  }
586
- function Yt() {
586
+ function Zt() {
587
587
  var tt = {}, ot = [], yt = (
588
588
  /** @class */
589
589
  (function() {
@@ -723,7 +723,7 @@ function require_Reflect() {
723
723
  );
724
724
  return tt;
725
725
  }
726
- function Zt() {
726
+ function Yt() {
727
727
  var tt = 16, ot = pe.create(), yt = St();
728
728
  return (
729
729
  /** @class */
@@ -899,12 +899,13 @@ class SelectableAdapter extends SingleActiveAdapter {
899
899
  this.host[this.selectedProperty] === H.viewKey && (this.host[this.selectedProperty] = null, await super.deactivateView(H));
900
900
  }
901
901
  }
902
- const factory$1 = (W, H) => new SelectableAdapter(H), a$y = (W, H) => {
903
- if (W = typeof W == "function" ? W() : W, !W) throw new Error(H);
902
+ const factory$1 = (W, H) => new SelectableAdapter(H), invariant = (W, H) => {
903
+ if (!(typeof W == "function" ? W() : W))
904
+ throw new Error(H);
904
905
  }, isDomElement = (W) => typeof HTMLElement == "object" ? W instanceof HTMLElement : W && typeof W == "object" && W != null && W.nodeType === 1 && typeof W.nodeName == "string", validateView = (W) => {
905
906
  if (!W.htmlTag && !W.element && !W.factory)
906
907
  throw new Error("One of properties htmlTag, factory or element must be set");
907
- return W.htmlTag && a$y(typeof W.htmlTag == "string", "htmlTag property must be an string"), W.factory && a$y(typeof W.factory == "function", "factory property must be a function"), W.element && a$y(isDomElement(W.element), "element property must be an HTMLElement"), !0;
908
+ return W.htmlTag && invariant(typeof W.htmlTag == "string", "htmlTag property must be an string"), W.factory && invariant(typeof W.factory == "function", "factory property must be a function"), W.element && invariant(isDomElement(W.element), "element property must be an HTMLElement"), !0;
908
909
  }, viewFactory = async (W, H, J) => {
909
910
  let X;
910
911
  return W.element ? X = W.element : W.factory ? X = await W.factory() : W.htmlTag && (W.htmlUrl && await import(W.htmlUrl), X = window.document.createElement(W.htmlTag)), X.view = W, X.region = H, X.viewKey = J, X;
@@ -914,7 +915,7 @@ class Region {
914
915
  this.name = H, this.regionManager = J, this.host = X, this.adapter = te, this.definition = re, this.views = {}, this.activeViews = [], this.components = /* @__PURE__ */ new WeakMap(), this.host.uxlRegion = this;
915
916
  }
916
917
  async addView(H, J) {
917
- return validateView(J), a$y(typeof this.getView(H) > "u", `Already exists a view with key ${H}`), this.views[H] = J, await this.adapter.viewAdded(J), this;
918
+ return validateView(J), invariant(typeof this.getView(H) > "u", `Already exists a view with key ${H}`), this.views[H] = J, await this.adapter.viewAdded(J), this;
918
919
  }
919
920
  async removeView(H) {
920
921
  await this.deactivate(H), this.remove(H), delete this.views[H];
@@ -936,7 +937,7 @@ class Region {
936
937
  }
937
938
  async activate(H) {
938
939
  let J = H;
939
- if (typeof H == "string" ? (J = this.getView(H), a$y(J, `Region does not contain a view with key ${H}`)) : a$y(Object.keys(this.views).some((X) => typeof this.views[X] < "u"), "Region does not contain this view"), !this.activeViews.some((X) => X === J)) {
940
+ if (typeof H == "string" ? (J = this.getView(H), invariant(J, `Region does not contain a view with key ${H}`)) : invariant(Object.keys(this.views).some((X) => typeof this.views[X] < "u"), "Region does not contain this view"), !this.activeViews.some((X) => X === J)) {
940
941
  if (!this.components.has(J)) {
941
942
  const te = await viewFactory(J, this, typeof H == "string" ? H : this.getKey(J));
942
943
  te.regionContext = this.context, this.components.set(J, te);
@@ -1019,7 +1020,7 @@ const regionAdapterRegistry = new RegionAdapterRegistry(), regionsProperty = "__
1019
1020
  };
1020
1021
  }, createAdapter = (W, H, J) => {
1021
1022
  const X = J.getAdapterFactory(H);
1022
- return a$y(typeof X == "function", "No region adapter factory found for the host"), X(W, H);
1023
+ return invariant(typeof X == "function", "No region adapter factory found for the host"), X(W, H);
1023
1024
  }, findRegionTarget = (W, H) => (W.renderRoot ?? W.shadowRoot ?? W).querySelector(`#${CSS.escape(H)}`), regionFactory = async (W, H, J, X) => {
1024
1025
  await H.updateComplete;
1025
1026
  const te = findRegionTarget(H, W.targetId);
@@ -1028,44 +1029,42 @@ const regionAdapterRegistry = new RegionAdapterRegistry(), regionsProperty = "__
1028
1029
  return;
1029
1030
  }
1030
1031
  const re = W.adapterFactory ? W.adapterFactory(W, te) : createAdapter(W, te, X);
1031
- a$y(re, "No region adapter found for the host");
1032
+ invariant(re, "No region adapter found for the host");
1032
1033
  const ne = W.scoped ? J.createRegionManager() : J, de = new Region(W.name, ne, te, re, W);
1033
1034
  return ne.add(W.name, de), de;
1034
1035
  };
1035
- let i$15 = class {
1036
+ class AsyncQueue {
1036
1037
  constructor(H) {
1037
- this._ownQueue = [], this.isProcessing = !1, this.executor = H;
1038
+ this.executor = H, this.queue = [], this.isProcessing = !1;
1038
1039
  }
1039
1040
  enqueueItem(...H) {
1040
- this._ownQueue.push([...H]), this.tryProcessQueue();
1041
+ this.queue.push([...H]), this.tryProcessQueue();
1041
1042
  }
1042
1043
  async tryProcessQueue() {
1043
- if (!this.isProcessing && this._ownQueue.length) {
1044
- this.isProcessing = !0;
1045
- const H = this._ownQueue.pop();
1046
- await this.executor.apply(void 0, [...H]), this.isProcessing = !1, this.tryProcessQueue();
1047
- }
1044
+ if (this.isProcessing || !this.queue.length)
1045
+ return;
1046
+ this.isProcessing = !0;
1047
+ const H = this.queue.pop();
1048
+ await this.executor(...H), this.isProcessing = !1, this.tryProcessQueue();
1048
1049
  }
1049
- };
1050
- const r$X = /* @__PURE__ */ new WeakMap();
1051
- function o$14(W, H) {
1050
+ }
1051
+ const appliedMixins = /* @__PURE__ */ new WeakMap(), wasApplied = (W, H) => {
1052
1052
  let J = H;
1053
1053
  for (; J; ) {
1054
- if (r$X.get(J) === W) return !0;
1054
+ if (appliedMixins.get(J) === W)
1055
+ return !0;
1055
1056
  J = Object.getPrototypeOf(J);
1056
1057
  }
1057
1058
  return !1;
1058
- }
1059
- function i$14(W) {
1059
+ };
1060
+ function dedupeMixin(W) {
1060
1061
  return (H) => {
1061
- if (o$14(W, H)) return H;
1062
+ if (wasApplied(W, H))
1063
+ return H;
1062
1064
  const J = W(H);
1063
- return r$X.set(J, W), J;
1065
+ return appliedMixins.set(J, W), J;
1064
1066
  };
1065
1067
  }
1066
- function dedupeMixin(W) {
1067
- return i$14(W);
1068
- }
1069
1068
  const notEqual = (W, H) => (
1070
1069
  // biome-ignore lint/suspicious/noSelfCompare: NaN check
1071
1070
  H !== W && (H === H || W === W)
@@ -1110,7 +1109,7 @@ class RegionManager {
1110
1109
  this._regions = {};
1111
1110
  }
1112
1111
  add(H, J) {
1113
- return a$y(!this.getRegion(H), "A region with the same name already exists"), this._regions[H] = J, viewRegistry.registerRegion(H, J), this;
1112
+ return invariant(!this.getRegion(H), "A region with the same name already exists"), this._regions[H] = J, viewRegistry.registerRegion(H, J), this;
1114
1113
  }
1115
1114
  getRegion(H) {
1116
1115
  return this._regions[H];
@@ -1121,7 +1120,7 @@ class RegionManager {
1121
1120
  }
1122
1121
  addViewToRegion(H, J, X) {
1123
1122
  const te = this.getRegion(H);
1124
- return a$y(te, `Couldn't find a region with name: ${H}`), te.addView(J, X), this;
1123
+ return invariant(te, `Couldn't find a region with name: ${H}`), te.addView(J, X), this;
1125
1124
  }
1126
1125
  registerViewWithRegion(H, J, X) {
1127
1126
  return viewRegistry.registerView(H, J, X), viewRegistry.getRegionsByName(H).forEach((te) => te.addView(J, X)), this;
@@ -1159,7 +1158,7 @@ const regionManager$1 = new MainRegionManager(), getDeclaredRegions = (W) => W.c
1159
1158
  }, regionHostMixin = (W, H) => dedupeMixin((J) => {
1160
1159
  class X extends J {
1161
1160
  constructor(...re) {
1162
- super(...re), this.enqueuer = new i$15(() => this.syncRegions());
1161
+ super(...re), this.enqueuer = new AsyncQueue(() => this.syncRegions());
1163
1162
  }
1164
1163
  get regionDefinitions() {
1165
1164
  return getDeclaredRegions(this);
@@ -6176,16 +6175,16 @@ const VERSION$1 = "1.21.1", DEFAULT_CHUNK_SIZE = 64 * 1024, DEFAULT_REQUEST_OPTI
6176
6175
  let Ve = composeSignals(
6177
6176
  [Le, Fe && Fe.toAbortSignal()],
6178
6177
  ze
6179
- ), Ze = null;
6178
+ ), Ye = null;
6180
6179
  const Qe = Ve && Ve.unsubscribe && (() => {
6181
6180
  Ve.unsubscribe();
6182
6181
  });
6183
- let Ue, Ye = null, it = null;
6182
+ let Ue, Ze = null, it = null;
6184
6183
  const nt = () => new AxiosError$1(
6185
6184
  "Request body larger than maxBodyLength limit",
6186
6185
  AxiosError$1.ERR_BAD_REQUEST,
6187
6186
  we,
6188
- Ze
6187
+ Ye
6189
6188
  );
6190
6189
  try {
6191
6190
  let mt;
@@ -6216,7 +6215,7 @@ const VERSION$1 = "1.21.1", DEFAULT_CHUNK_SIZE = 64 * 1024, DEFAULT_REQUEST_OPTI
6216
6215
  "maxContentLength size of " + We + " exceeded",
6217
6216
  AxiosError$1.ERR_BAD_RESPONSE,
6218
6217
  we,
6219
- Ze
6218
+ Ye
6220
6219
  );
6221
6220
  const Ft = utils$1.isSpecCompliantForm(qe) && AxiosHeaders$1.from(Me("headers")).getContentType();
6222
6221
  let Nt;
@@ -6240,7 +6239,7 @@ const VERSION$1 = "1.21.1", DEFAULT_CHUNK_SIZE = 64 * 1024, DEFAULT_REQUEST_OPTI
6240
6239
  DEFAULT_CHUNK_SIZE,
6241
6240
  (ti) => {
6242
6241
  if (Ke && ti > Ge)
6243
- throw Ye = nt();
6242
+ throw Ze = nt();
6244
6243
  It && It(ti);
6245
6244
  },
6246
6245
  oi
@@ -6267,7 +6266,7 @@ const VERSION$1 = "1.21.1", DEFAULT_CHUNK_SIZE = 64 * 1024, DEFAULT_REQUEST_OPTI
6267
6266
  "Stream request bodies are not supported by the current fetch implementation",
6268
6267
  AxiosError$1.ERR_NOT_SUPPORT,
6269
6268
  we,
6270
- Ze
6269
+ Ye
6271
6270
  );
6272
6271
  utils$1.isString(Ne) || (Ne = Ne ? "include" : "omit");
6273
6272
  const Xt = ue && "credentials" in re.prototype;
@@ -6288,8 +6287,8 @@ const VERSION$1 = "1.21.1", DEFAULT_CHUNK_SIZE = 64 * 1024, DEFAULT_REQUEST_OPTI
6288
6287
  });
6289
6288
  ue && (utils$1.forEach(ve, (Ct, It) => {
6290
6289
  bt[It] === void 0 && (bt[It] = Ct);
6291
- }), bt.signal === void 0 && (bt.signal = null), bt.body === void 0 && (bt.body = null)), ft === 0 && (bt.redirect = "manual", gt && (gt.redirect = "manual")), Ze = ue && new re(ge, bt);
6292
- let xt = await (ue ? Be(Ze, gt) : Be(ge, bt));
6290
+ }), bt.signal === void 0 && (bt.signal = null), bt.body === void 0 && (bt.body = null)), ft === 0 && (bt.redirect = "manual", gt && (gt.redirect = "manual")), Ye = ue && new re(ge, bt);
6291
+ let xt = await (ue ? Be(Ye, gt) : Be(ge, bt));
6293
6292
  const At = AxiosHeaders$1.from(xt.headers);
6294
6293
  if (Je) {
6295
6294
  const Ct = utils$1.toFiniteNumber(At.getContentLength());
@@ -6298,29 +6297,29 @@ const VERSION$1 = "1.21.1", DEFAULT_CHUNK_SIZE = 64 * 1024, DEFAULT_REQUEST_OPTI
6298
6297
  "maxContentLength size of " + We + " exceeded",
6299
6298
  AxiosError$1.ERR_BAD_RESPONSE,
6300
6299
  we,
6301
- Ze
6300
+ Ye
6302
6301
  );
6303
6302
  }
6304
6303
  const $t = be && (Oe === "stream" || Oe === "response");
6305
6304
  if (be && xt.body && (De || Je || $t && Qe)) {
6306
6305
  const Ct = {};
6307
- ["status", "statusText", "headers"].forEach((Zt) => {
6308
- Ct[Zt] = xt[Zt];
6306
+ ["status", "statusText", "headers"].forEach((Yt) => {
6307
+ Ct[Yt] = xt[Yt];
6309
6308
  });
6310
6309
  const It = utils$1.toFiniteNumber(At.getContentLength()), [oi, ti] = De && progressEventDecorator(
6311
6310
  It,
6312
6311
  progressEventReducer(asyncDecorator(De), !0)
6313
6312
  ) || [];
6314
- let Yt = 0;
6315
- const wi = (Zt) => {
6316
- if (Je && (Yt = Zt, Yt > We))
6313
+ let Zt = 0;
6314
+ const wi = (Yt) => {
6315
+ if (Je && (Zt = Yt, Zt > We))
6317
6316
  throw it = new AxiosError$1(
6318
6317
  "maxContentLength size of " + We + " exceeded",
6319
6318
  AxiosError$1.ERR_BAD_RESPONSE,
6320
6319
  we,
6321
- Ze
6320
+ Ye
6322
6321
  );
6323
- oi && oi(Zt);
6322
+ oi && oi(Yt);
6324
6323
  };
6325
6324
  xt = new ne(
6326
6325
  trackStream(xt.body, DEFAULT_CHUNK_SIZE, wi, () => {
@@ -6341,7 +6340,7 @@ const VERSION$1 = "1.21.1", DEFAULT_CHUNK_SIZE = 64 * 1024, DEFAULT_REQUEST_OPTI
6341
6340
  "maxContentLength size of " + We + " exceeded",
6342
6341
  AxiosError$1.ERR_BAD_RESPONSE,
6343
6342
  we,
6344
- Ze
6343
+ Ye
6345
6344
  );
6346
6345
  }
6347
6346
  return !$t && Qe && Qe(), await new Promise((Ct, It) => {
@@ -6351,13 +6350,13 @@ const VERSION$1 = "1.21.1", DEFAULT_CHUNK_SIZE = 64 * 1024, DEFAULT_REQUEST_OPTI
6351
6350
  status: xt.status,
6352
6351
  statusText: xt.statusText,
6353
6352
  config: we,
6354
- request: Ze
6353
+ request: Ye
6355
6354
  });
6356
6355
  });
6357
6356
  } catch (mt) {
6358
6357
  if (Qe && Qe(), Ve && Ve.aborted && Ve.reason instanceof AxiosError$1) {
6359
6358
  const wt = Ve.reason;
6360
- throw wt.config = we, Ze && (wt.request = Ze), mt !== wt && Object.defineProperty(wt, "cause", {
6359
+ throw wt.config = we, Ye && (wt.request = Ye), mt !== wt && Object.defineProperty(wt, "cause", {
6361
6360
  __proto__: null,
6362
6361
  value: mt,
6363
6362
  writable: !0,
@@ -6365,18 +6364,18 @@ const VERSION$1 = "1.21.1", DEFAULT_CHUNK_SIZE = 64 * 1024, DEFAULT_REQUEST_OPTI
6365
6364
  configurable: !0
6366
6365
  }), wt;
6367
6366
  }
6368
- if (Ye)
6369
- throw Ze && !Ye.request && (Ye.request = Ze), Ye;
6367
+ if (Ze)
6368
+ throw Ye && !Ze.request && (Ze.request = Ye), Ze;
6370
6369
  if (it)
6371
6370
  throw it;
6372
6371
  if (mt instanceof AxiosError$1)
6373
- throw Ze && !mt.request && (mt.request = Ze), mt;
6372
+ throw Ye && !mt.request && (mt.request = Ye), mt;
6374
6373
  if (mt && mt.name === "TypeError" && /Load failed|fetch/i.test(mt.message)) {
6375
6374
  const wt = new AxiosError$1(
6376
6375
  "Network Error",
6377
6376
  AxiosError$1.ERR_NETWORK,
6378
6377
  we,
6379
- Ze,
6378
+ Ye,
6380
6379
  mt && mt.response
6381
6380
  );
6382
6381
  throw Object.defineProperty(wt, "cause", {
@@ -6387,7 +6386,7 @@ const VERSION$1 = "1.21.1", DEFAULT_CHUNK_SIZE = 64 * 1024, DEFAULT_REQUEST_OPTI
6387
6386
  configurable: !0
6388
6387
  }), wt;
6389
6388
  }
6390
- throw AxiosError$1.from(mt, mt && mt.code, we, Ze, mt && mt.response);
6389
+ throw AxiosError$1.from(mt, mt && mt.code, we, Ye, mt && mt.response);
6391
6390
  }
6392
6391
  };
6393
6392
  }, seedCache = /* @__PURE__ */ new Map(), getFetch = (W) => {
@@ -7942,7 +7941,7 @@ function peg$parse(W, H) {
7942
7941
  return vi.pop(), Ae.replace(/\s*$/, "");
7943
7942
  }, We = ",", Ge = ui(",", !1), ft = "number", Je = ui("number", !1), Ke = function(Ae, He, Xe) {
7944
7943
  return __assign$2({ type: He === "number" ? TYPE.number : He === "date" ? TYPE.date : TYPE.time, style: Xe && Xe[2], value: Ae }, yi());
7945
- }, Me = "'", Be = ui("'", !1), Ve = /^[^']/, Ze = $i(["'"], !0, !1), Qe = /^[^a-zA-Z'{}]/, Ue = $i([["a", "z"], ["A", "Z"], "'", "{", "}"], !0, !1), Ye = /^[a-zA-Z]/, it = $i([["a", "z"], ["A", "Z"]], !1, !1), nt = function(Ae) {
7944
+ }, Me = "'", Be = ui("'", !1), Ve = /^[^']/, Ye = $i(["'"], !0, !1), Qe = /^[^a-zA-Z'{}]/, Ue = $i([["a", "z"], ["A", "Z"], "'", "{", "}"], !0, !1), Ze = /^[a-zA-Z]/, it = $i([["a", "z"], ["A", "Z"]], !1, !1), nt = function(Ae) {
7946
7945
  return __assign$2({ type: 1, pattern: Ae }, yi());
7947
7946
  }, mt = function() {
7948
7947
  return vi.push("dateOrTimeArgStyle"), !0;
@@ -7964,14 +7963,14 @@ function peg$parse(W, H) {
7964
7963
  }, {}) }, yi());
7965
7964
  }, It = "=", oi = ui("=", !1), ti = function(Ae) {
7966
7965
  return vi.push("select"), !0;
7967
- }, Yt = function(Ae, He) {
7966
+ }, Zt = function(Ae, He) {
7968
7967
  return vi.pop(), __assign$2({
7969
7968
  id: Ae,
7970
7969
  value: He
7971
7970
  }, yi());
7972
7971
  }, wi = function(Ae) {
7973
7972
  return vi.push("plural"), !0;
7974
- }, Zt = function(Ae, He) {
7973
+ }, Yt = function(Ae, He) {
7975
7974
  return vi.pop(), __assign$2({
7976
7975
  id: Ae,
7977
7976
  value: He
@@ -7983,7 +7982,7 @@ function peg$parse(W, H) {
7983
7982
  }, ai = function(Ae, He) {
7984
7983
  return Ae + He.replace("''", "'");
7985
7984
  }, pi = function(Ae) {
7986
- return Ae !== "{" && !(bs() && Ae === "#") && !(Zs() && Ae === "}");
7985
+ return Ae !== "{" && !(bs() && Ae === "#") && !(Ys() && Ae === "}");
7987
7986
  }, Si = `
7988
7987
  `, Ri = ui(`
7989
7988
  `, !1), Oi = function(Ae) {
@@ -8140,9 +8139,9 @@ function peg$parse(W, H) {
8140
8139
  function ls() {
8141
8140
  var Ae, He, Xe, vt;
8142
8141
  if (Ae = Pe, W.charCodeAt(Pe) === 39 ? (He = Me, Pe++) : (He = J, _t === 0 && Et(Be)), He !== J) {
8143
- if (Xe = [], vt = ki(), vt === J && (Ve.test(W.charAt(Pe)) ? (vt = W.charAt(Pe), Pe++) : (vt = J, _t === 0 && Et(Ze))), vt !== J)
8142
+ if (Xe = [], vt = ki(), vt === J && (Ve.test(W.charAt(Pe)) ? (vt = W.charAt(Pe), Pe++) : (vt = J, _t === 0 && Et(Ye))), vt !== J)
8144
8143
  for (; vt !== J; )
8145
- Xe.push(vt), vt = ki(), vt === J && (Ve.test(W.charAt(Pe)) ? (vt = W.charAt(Pe), Pe++) : (vt = J, _t === 0 && Et(Ze)));
8144
+ Xe.push(vt), vt = ki(), vt === J && (Ve.test(W.charAt(Pe)) ? (vt = W.charAt(Pe), Pe++) : (vt = J, _t === 0 && Et(Ye)));
8146
8145
  else
8147
8146
  Xe = J;
8148
8147
  Xe !== J ? (W.charCodeAt(Pe) === 39 ? (vt = Me, Pe++) : (vt = J, _t === 0 && Et(Be)), vt !== J ? (He = [He, Xe, vt], Ae = He) : (Pe = Ae, Ae = J)) : (Pe = Ae, Ae = J);
@@ -8158,9 +8157,9 @@ function peg$parse(W, H) {
8158
8157
  }
8159
8158
  function ds() {
8160
8159
  var Ae, He;
8161
- if (Ae = [], Ye.test(W.charAt(Pe)) ? (He = W.charAt(Pe), Pe++) : (He = J, _t === 0 && Et(it)), He !== J)
8160
+ if (Ae = [], Ze.test(W.charAt(Pe)) ? (He = W.charAt(Pe), Pe++) : (He = J, _t === 0 && Et(it)), He !== J)
8162
8161
  for (; He !== J; )
8163
- Ae.push(He), Ye.test(W.charAt(Pe)) ? (He = W.charAt(Pe), Pe++) : (He = J, _t === 0 && Et(it));
8162
+ Ae.push(He), Ze.test(W.charAt(Pe)) ? (He = W.charAt(Pe), Pe++) : (He = J, _t === 0 && Et(it));
8164
8163
  else
8165
8164
  Ae = J;
8166
8165
  return Ae;
@@ -8278,11 +8277,11 @@ function peg$parse(W, H) {
8278
8277
  }
8279
8278
  function cs() {
8280
8279
  var Ae, He, Xe, vt, kt, zt, ii, Bt;
8281
- return Ae = Pe, He = jt(), He !== J ? (Xe = Fi(), Xe !== J ? (vt = jt(), vt !== J ? (W.charCodeAt(Pe) === 123 ? (kt = pe, Pe++) : (kt = J, _t === 0 && Et(he)), kt !== J ? (Kt = Pe, zt = ti(), zt ? zt = void 0 : zt = J, zt !== J ? (ii = qi(), ii !== J ? (W.charCodeAt(Pe) === 125 ? (Bt = fe, Pe++) : (Bt = J, _t === 0 && Et(be)), Bt !== J ? (Kt = Ae, He = Yt(Xe, ii), Ae = He) : (Pe = Ae, Ae = J)) : (Pe = Ae, Ae = J)) : (Pe = Ae, Ae = J)) : (Pe = Ae, Ae = J)) : (Pe = Ae, Ae = J)) : (Pe = Ae, Ae = J)) : (Pe = Ae, Ae = J), Ae;
8280
+ return Ae = Pe, He = jt(), He !== J ? (Xe = Fi(), Xe !== J ? (vt = jt(), vt !== J ? (W.charCodeAt(Pe) === 123 ? (kt = pe, Pe++) : (kt = J, _t === 0 && Et(he)), kt !== J ? (Kt = Pe, zt = ti(), zt ? zt = void 0 : zt = J, zt !== J ? (ii = qi(), ii !== J ? (W.charCodeAt(Pe) === 125 ? (Bt = fe, Pe++) : (Bt = J, _t === 0 && Et(be)), Bt !== J ? (Kt = Ae, He = Zt(Xe, ii), Ae = He) : (Pe = Ae, Ae = J)) : (Pe = Ae, Ae = J)) : (Pe = Ae, Ae = J)) : (Pe = Ae, Ae = J)) : (Pe = Ae, Ae = J)) : (Pe = Ae, Ae = J)) : (Pe = Ae, Ae = J), Ae;
8282
8281
  }
8283
8282
  function us() {
8284
8283
  var Ae, He, Xe, vt, kt, zt, ii, Bt;
8285
- return Ae = Pe, He = jt(), He !== J ? (Xe = Gs(), Xe !== J ? (vt = jt(), vt !== J ? (W.charCodeAt(Pe) === 123 ? (kt = pe, Pe++) : (kt = J, _t === 0 && Et(he)), kt !== J ? (Kt = Pe, zt = wi(), zt ? zt = void 0 : zt = J, zt !== J ? (ii = qi(), ii !== J ? (W.charCodeAt(Pe) === 125 ? (Bt = fe, Pe++) : (Bt = J, _t === 0 && Et(be)), Bt !== J ? (Kt = Ae, He = Zt(Xe, ii), Ae = He) : (Pe = Ae, Ae = J)) : (Pe = Ae, Ae = J)) : (Pe = Ae, Ae = J)) : (Pe = Ae, Ae = J)) : (Pe = Ae, Ae = J)) : (Pe = Ae, Ae = J)) : (Pe = Ae, Ae = J), Ae;
8284
+ return Ae = Pe, He = jt(), He !== J ? (Xe = Gs(), Xe !== J ? (vt = jt(), vt !== J ? (W.charCodeAt(Pe) === 123 ? (kt = pe, Pe++) : (kt = J, _t === 0 && Et(he)), kt !== J ? (Kt = Pe, zt = wi(), zt ? zt = void 0 : zt = J, zt !== J ? (ii = qi(), ii !== J ? (W.charCodeAt(Pe) === 125 ? (Bt = fe, Pe++) : (Bt = J, _t === 0 && Et(be)), Bt !== J ? (Kt = Ae, He = Yt(Xe, ii), Ae = He) : (Pe = Ae, Ae = J)) : (Pe = Ae, Ae = J)) : (Pe = Ae, Ae = J)) : (Pe = Ae, Ae = J)) : (Pe = Ae, Ae = J)) : (Pe = Ae, Ae = J)) : (Pe = Ae, Ae = J), Ae;
8286
8285
  }
8287
8286
  function xi() {
8288
8287
  var Ae;
@@ -8309,9 +8308,9 @@ function peg$parse(W, H) {
8309
8308
  function fs() {
8310
8309
  var Ae, He, Xe, vt, kt, zt;
8311
8310
  if (Ae = Pe, W.charCodeAt(Pe) === 39 ? (He = Me, Pe++) : (He = J, _t === 0 && Et(Be)), He !== J)
8312
- if (Xe = Ys(), Xe !== J) {
8313
- for (vt = Pe, kt = [], W.substr(Pe, 2) === Dt ? (zt = Dt, Pe += 2) : (zt = J, _t === 0 && Et(Vt)), zt === J && (Ve.test(W.charAt(Pe)) ? (zt = W.charAt(Pe), Pe++) : (zt = J, _t === 0 && Et(Ze))); zt !== J; )
8314
- kt.push(zt), W.substr(Pe, 2) === Dt ? (zt = Dt, Pe += 2) : (zt = J, _t === 0 && Et(Vt)), zt === J && (Ve.test(W.charAt(Pe)) ? (zt = W.charAt(Pe), Pe++) : (zt = J, _t === 0 && Et(Ze)));
8311
+ if (Xe = Zs(), Xe !== J) {
8312
+ for (vt = Pe, kt = [], W.substr(Pe, 2) === Dt ? (zt = Dt, Pe += 2) : (zt = J, _t === 0 && Et(Vt)), zt === J && (Ve.test(W.charAt(Pe)) ? (zt = W.charAt(Pe), Pe++) : (zt = J, _t === 0 && Et(Ye))); zt !== J; )
8313
+ kt.push(zt), W.substr(Pe, 2) === Dt ? (zt = Dt, Pe += 2) : (zt = J, _t === 0 && Et(Vt)), zt === J && (Ve.test(W.charAt(Pe)) ? (zt = W.charAt(Pe), Pe++) : (zt = J, _t === 0 && Et(Ye)));
8315
8314
  kt !== J ? vt = W.substring(vt, Pe) : vt = kt, vt !== J ? (W.charCodeAt(Pe) === 39 ? (kt = Me, Pe++) : (kt = J, _t === 0 && Et(Be)), kt === J && (kt = null), kt !== J ? (Kt = Ae, He = ai(Xe, vt), Ae = He) : (Pe = Ae, Ae = J)) : (Pe = Ae, Ae = J);
8316
8315
  } else
8317
8316
  Pe = Ae, Ae = J;
@@ -8323,7 +8322,7 @@ function peg$parse(W, H) {
8323
8322
  var Ae, He, Xe, vt;
8324
8323
  return Ae = Pe, He = Pe, W.length > Pe ? (Xe = W.charAt(Pe), Pe++) : (Xe = J, _t === 0 && Et(we)), Xe !== J ? (Kt = Pe, vt = pi(Xe), vt ? vt = void 0 : vt = J, vt !== J ? (Xe = [Xe, vt], He = Xe) : (Pe = He, He = J)) : (Pe = He, He = J), He === J && (W.charCodeAt(Pe) === 10 ? (He = Si, Pe++) : (He = J, _t === 0 && Et(Ri))), He !== J ? Ae = W.substring(Ae, Pe) : Ae = He, Ae;
8325
8324
  }
8326
- function Ys() {
8325
+ function Zs() {
8327
8326
  var Ae, He, Xe, vt;
8328
8327
  return Ae = Pe, He = Pe, W.length > Pe ? (Xe = W.charAt(Pe), Pe++) : (Xe = J, _t === 0 && Et(we)), Xe !== J ? (Kt = Pe, vt = Oi(Xe), vt ? vt = void 0 : vt = J, vt !== J ? (Xe = [Xe, vt], He = Xe) : (Pe = He, He = J)) : (Pe = He, He = J), He !== J ? Ae = W.substring(Ae, Pe) : Ae = He, Ae;
8329
8328
  }
@@ -8354,7 +8353,7 @@ function peg$parse(W, H) {
8354
8353
  return He !== J ? Ae = W.substring(Ae, Pe) : Ae = He, _t--, Ae === J && (He = J, _t === 0 && Et(Os)), Ae;
8355
8354
  }
8356
8355
  var vi = ["root"];
8357
- function Zs() {
8356
+ function Ys() {
8358
8357
  return vi.length > 1;
8359
8358
  }
8360
8359
  function bs() {
@@ -9716,7 +9715,7 @@ class ImportDataManagerImpl {
9716
9715
  async import(H, J) {
9717
9716
  this.currentImporterId = H, this.currentImportParams = J, this.selectedItems = {}, this.pluginTexts = {};
9718
9717
  try {
9719
- const { ImportDataManagerModal: X } = await import("./component-Cmv1mmHb.js"), { confirmed: te } = await this.interactionService.confirm(
9718
+ const { ImportDataManagerModal: X } = await import("./component-Bg-0sjMa.js"), { confirmed: te } = await this.interactionService.confirm(
9720
9719
  void 0,
9721
9720
  { component: X },
9722
9721
  {
@@ -9857,7 +9856,7 @@ const createContextManager = () => contextManager$1 || (contextManager$1 = new P
9857
9856
  let bootstrappedPlugins = [];
9858
9857
  const CORE_FIRST_ID = "activity-history", bundledActivityHistory = {
9859
9858
  pluginId: CORE_FIRST_ID,
9860
- importer: () => import("./plugin-ByTEvLVh.js")
9859
+ importer: () => import("./plugin-BXb4IuOh.js")
9861
9860
  };
9862
9861
  let pluginsBootstrapped = !1;
9863
9862
  const bootstrapPlugins = async (W, H) => {
@@ -37114,17 +37113,17 @@ function requireQuill() {
37114
37113
  return Je && typeof Symbol == "function" && Je.constructor === Symbol && Je !== Symbol.prototype ? "symbol" : typeof Je;
37115
37114
  }, ne = /* @__PURE__ */ (function() {
37116
37115
  function Je(Ke, Me) {
37117
- var Be = [], Ve = !0, Ze = !1, Qe = void 0;
37116
+ var Be = [], Ve = !0, Ye = !1, Qe = void 0;
37118
37117
  try {
37119
- for (var Ue = Ke[Symbol.iterator](), Ye; !(Ve = (Ye = Ue.next()).done) && (Be.push(Ye.value), !(Me && Be.length === Me)); Ve = !0)
37118
+ for (var Ue = Ke[Symbol.iterator](), Ze; !(Ve = (Ze = Ue.next()).done) && (Be.push(Ze.value), !(Me && Be.length === Me)); Ve = !0)
37120
37119
  ;
37121
37120
  } catch (it) {
37122
- Ze = !0, Qe = it;
37121
+ Ye = !0, Qe = it;
37123
37122
  } finally {
37124
37123
  try {
37125
37124
  !Ve && Ue.return && Ue.return();
37126
37125
  } finally {
37127
- if (Ze) throw Qe;
37126
+ if (Ye) throw Qe;
37128
37127
  }
37129
37128
  }
37130
37129
  return Be;
@@ -37178,14 +37177,14 @@ function requireQuill() {
37178
37177
  }, {
37179
37178
  key: "register",
37180
37179
  value: function(Me, Be) {
37181
- var Ve = this, Ze = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
37180
+ var Ve = this, Ye = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
37182
37181
  if (typeof Me != "string") {
37183
37182
  var Qe = Me.attrName || Me.blotName;
37184
37183
  typeof Qe == "string" ? this.register("formats/" + Qe, Me, Be) : Object.keys(Me).forEach(function(Ue) {
37185
37184
  Ve.register(Ue, Me[Ue], Be);
37186
37185
  });
37187
37186
  } else
37188
- this.imports[Me] != null && !Ze && Ie.warn("Overwriting " + Me + " with", Be), this.imports[Me] = Be, (Me.startsWith("blots/") || Me.startsWith("formats/")) && Be.blotName !== "abstract" ? me.default.register(Be) : Me.startsWith("modules") && typeof Be.register == "function" && Be.register();
37187
+ this.imports[Me] != null && !Ye && Ie.warn("Overwriting " + Me + " with", Be), this.imports[Me] = Be, (Me.startsWith("blots/") || Me.startsWith("formats/")) && Be.blotName !== "abstract" ? me.default.register(Be) : Me.startsWith("modules") && typeof Be.register == "function" && Be.register();
37189
37188
  }
37190
37189
  }]);
37191
37190
  function Je(Ke) {
@@ -37200,13 +37199,13 @@ function requireQuill() {
37200
37199
  }), this.editor = new pe.default(this.scroll), this.selection = new we.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(fe.default.events.EDITOR_CHANGE, function(Qe) {
37201
37200
  Qe === fe.default.events.TEXT_CHANGE && Me.root.classList.toggle("ql-blank", Me.editor.isBlank());
37202
37201
  }), this.emitter.on(fe.default.events.SCROLL_UPDATE, function(Qe, Ue) {
37203
- var Ye = Me.selection.lastRange, it = Ye && Ye.length === 0 ? Ye.index : void 0;
37202
+ var Ze = Me.selection.lastRange, it = Ze && Ze.length === 0 ? Ze.index : void 0;
37204
37203
  We.call(Me, function() {
37205
37204
  return Me.editor.update(null, Ue, it);
37206
37205
  }, Qe);
37207
37206
  });
37208
- var Ze = this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">` + Ve + "<p><br></p></div>");
37209
- this.setContents(Ze), this.history.clear(), this.options.placeholder && this.root.setAttribute("data-placeholder", this.options.placeholder), this.options.readOnly && this.disable();
37207
+ var Ye = this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">` + Ve + "<p><br></p></div>");
37208
+ this.setContents(Ye), this.history.clear(), this.options.placeholder && this.root.setAttribute("data-placeholder", this.options.placeholder), this.options.readOnly && this.disable();
37210
37209
  }
37211
37210
  return de(Je, [{
37212
37211
  key: "addContainer",
@@ -37226,9 +37225,9 @@ function requireQuill() {
37226
37225
  }, {
37227
37226
  key: "deleteText",
37228
37227
  value: function(Me, Be, Ve) {
37229
- var Ze = this, Qe = Ge(Me, Be, Ve), Ue = ne(Qe, 4);
37228
+ var Ye = this, Qe = Ge(Me, Be, Ve), Ue = ne(Qe, 4);
37230
37229
  return Me = Ue[0], Be = Ue[1], Ve = Ue[3], We.call(this, function() {
37231
- return Ze.editor.deleteText(Me, Be);
37230
+ return Ye.editor.deleteText(Me, Be);
37232
37231
  }, Ve, Me, -1 * Be);
37233
37232
  }
37234
37233
  }, {
@@ -37251,7 +37250,7 @@ function requireQuill() {
37251
37250
  }, {
37252
37251
  key: "format",
37253
37252
  value: function(Me, Be) {
37254
- var Ve = this, Ze = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : fe.default.sources.API;
37253
+ var Ve = this, Ye = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : fe.default.sources.API;
37255
37254
  return We.call(this, function() {
37256
37255
  var Qe = Ve.getSelection(!0), Ue = new ue.default();
37257
37256
  if (Qe == null)
@@ -37264,22 +37263,22 @@ function requireQuill() {
37264
37263
  Ue = Ve.editor.formatText(Qe.index, Qe.length, Se({}, Me, Be));
37265
37264
  }
37266
37265
  return Ve.setSelection(Qe, fe.default.sources.SILENT), Ue;
37267
- }, Ze);
37266
+ }, Ye);
37268
37267
  }
37269
37268
  }, {
37270
37269
  key: "formatLine",
37271
- value: function(Me, Be, Ve, Ze, Qe) {
37272
- var Ue = this, Ye = void 0, it = Ge(Me, Be, Ve, Ze, Qe), nt = ne(it, 4);
37273
- return Me = nt[0], Be = nt[1], Ye = nt[2], Qe = nt[3], We.call(this, function() {
37274
- return Ue.editor.formatLine(Me, Be, Ye);
37270
+ value: function(Me, Be, Ve, Ye, Qe) {
37271
+ var Ue = this, Ze = void 0, it = Ge(Me, Be, Ve, Ye, Qe), nt = ne(it, 4);
37272
+ return Me = nt[0], Be = nt[1], Ze = nt[2], Qe = nt[3], We.call(this, function() {
37273
+ return Ue.editor.formatLine(Me, Be, Ze);
37275
37274
  }, Qe, Me, 0);
37276
37275
  }
37277
37276
  }, {
37278
37277
  key: "formatText",
37279
- value: function(Me, Be, Ve, Ze, Qe) {
37280
- var Ue = this, Ye = void 0, it = Ge(Me, Be, Ve, Ze, Qe), nt = ne(it, 4);
37281
- return Me = nt[0], Be = nt[1], Ye = nt[2], Qe = nt[3], We.call(this, function() {
37282
- return Ue.editor.formatText(Me, Be, Ye);
37278
+ value: function(Me, Be, Ve, Ye, Qe) {
37279
+ var Ue = this, Ze = void 0, it = Ge(Me, Be, Ve, Ye, Qe), nt = ne(it, 4);
37280
+ return Me = nt[0], Be = nt[1], Ze = nt[2], Qe = nt[3], We.call(this, function() {
37281
+ return Ue.editor.formatText(Me, Be, Ze);
37283
37282
  }, Qe, Me, 0);
37284
37283
  }
37285
37284
  }, {
@@ -37287,21 +37286,21 @@ function requireQuill() {
37287
37286
  value: function(Me) {
37288
37287
  var Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, Ve = void 0;
37289
37288
  typeof Me == "number" ? Ve = this.selection.getBounds(Me, Be) : Ve = this.selection.getBounds(Me.index, Me.length);
37290
- var Ze = this.container.getBoundingClientRect();
37289
+ var Ye = this.container.getBoundingClientRect();
37291
37290
  return {
37292
- bottom: Ve.bottom - Ze.top,
37291
+ bottom: Ve.bottom - Ye.top,
37293
37292
  height: Ve.height,
37294
- left: Ve.left - Ze.left,
37295
- right: Ve.right - Ze.left,
37296
- top: Ve.top - Ze.top,
37293
+ left: Ve.left - Ye.left,
37294
+ right: Ve.right - Ye.left,
37295
+ top: Ve.top - Ye.top,
37297
37296
  width: Ve.width
37298
37297
  };
37299
37298
  }
37300
37299
  }, {
37301
37300
  key: "getContents",
37302
37301
  value: function() {
37303
- var Me = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - Me, Ve = Ge(Me, Be), Ze = ne(Ve, 2);
37304
- return Me = Ze[0], Be = Ze[1], this.editor.getContents(Me, Be);
37302
+ var Me = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - Me, Ve = Ge(Me, Be), Ye = ne(Ve, 2);
37303
+ return Me = Ye[0], Be = Ye[1], this.editor.getContents(Me, Be);
37305
37304
  }
37306
37305
  }, {
37307
37306
  key: "getFormat",
@@ -37349,8 +37348,8 @@ function requireQuill() {
37349
37348
  }, {
37350
37349
  key: "getText",
37351
37350
  value: function() {
37352
- var Me = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - Me, Ve = Ge(Me, Be), Ze = ne(Ve, 2);
37353
- return Me = Ze[0], Be = Ze[1], this.editor.getText(Me, Be);
37351
+ var Me = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - Me, Ve = Ge(Me, Be), Ye = ne(Ve, 2);
37352
+ return Me = Ye[0], Be = Ye[1], this.editor.getText(Me, Be);
37354
37353
  }
37355
37354
  }, {
37356
37355
  key: "hasFocus",
@@ -37360,17 +37359,17 @@ function requireQuill() {
37360
37359
  }, {
37361
37360
  key: "insertEmbed",
37362
37361
  value: function(Me, Be, Ve) {
37363
- var Ze = this, Qe = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : Je.sources.API;
37362
+ var Ye = this, Qe = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : Je.sources.API;
37364
37363
  return We.call(this, function() {
37365
- return Ze.editor.insertEmbed(Me, Be, Ve);
37364
+ return Ye.editor.insertEmbed(Me, Be, Ve);
37366
37365
  }, Qe, Me);
37367
37366
  }
37368
37367
  }, {
37369
37368
  key: "insertText",
37370
- value: function(Me, Be, Ve, Ze, Qe) {
37371
- var Ue = this, Ye = void 0, it = Ge(Me, 0, Ve, Ze, Qe), nt = ne(it, 4);
37372
- return Me = nt[0], Ye = nt[2], Qe = nt[3], We.call(this, function() {
37373
- return Ue.editor.insertText(Me, Be, Ye);
37369
+ value: function(Me, Be, Ve, Ye, Qe) {
37370
+ var Ue = this, Ze = void 0, it = Ge(Me, 0, Ve, Ye, Qe), nt = ne(it, 4);
37371
+ return Me = nt[0], Ze = nt[2], Qe = nt[3], We.call(this, function() {
37372
+ return Ue.editor.insertText(Me, Be, Ze);
37374
37373
  }, Qe, Me, Be.length);
37375
37374
  }
37376
37375
  }, {
@@ -37401,9 +37400,9 @@ function requireQuill() {
37401
37400
  }, {
37402
37401
  key: "removeFormat",
37403
37402
  value: function(Me, Be, Ve) {
37404
- var Ze = this, Qe = Ge(Me, Be, Ve), Ue = ne(Qe, 4);
37403
+ var Ye = this, Qe = Ge(Me, Be, Ve), Ue = ne(Qe, 4);
37405
37404
  return Me = Ue[0], Be = Ue[1], Ve = Ue[3], We.call(this, function() {
37406
- return Ze.editor.removeFormat(Me, Be);
37405
+ return Ye.editor.removeFormat(Me, Be);
37407
37406
  }, Ve, Me);
37408
37407
  }
37409
37408
  }, {
@@ -37417,8 +37416,8 @@ function requireQuill() {
37417
37416
  var Be = this, Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : fe.default.sources.API;
37418
37417
  return We.call(this, function() {
37419
37418
  Me = new ue.default(Me);
37420
- var Ze = Be.getLength(), Qe = Be.editor.deleteText(0, Ze), Ue = Be.editor.applyDelta(Me), Ye = Ue.ops[Ue.ops.length - 1];
37421
- Ye != null && typeof Ye.insert == "string" && Ye.insert[Ye.insert.length - 1] === `
37419
+ var Ye = Be.getLength(), Qe = Be.editor.deleteText(0, Ye), Ue = Be.editor.applyDelta(Me), Ze = Ue.ops[Ue.ops.length - 1];
37420
+ Ze != null && typeof Ze.insert == "string" && Ze.insert[Ze.insert.length - 1] === `
37422
37421
  ` && (Be.editor.deleteText(Be.getLength() - 1, 1), Ue.delete(1));
37423
37422
  var it = Qe.compose(Ue);
37424
37423
  return it;
@@ -37430,7 +37429,7 @@ function requireQuill() {
37430
37429
  if (Me == null)
37431
37430
  this.selection.setRange(null, Be || Je.sources.API);
37432
37431
  else {
37433
- var Ze = Ge(Me, Be, Ve), Qe = ne(Ze, 4);
37432
+ var Ye = Ge(Me, Be, Ve), Qe = ne(Ye, 4);
37434
37433
  Me = Qe[0], Be = Qe[1], Ve = Qe[3], this.selection.setRange(new ye.Range(Me, Be), Ve), Ve !== fe.default.sources.SILENT && this.selection.scrollIntoView(this.scrollingContainer);
37435
37434
  }
37436
37435
  }
@@ -37484,55 +37483,55 @@ function requireQuill() {
37484
37483
  else if (Ke.theme = Ne.import("themes/" + Ke.theme), Ke.theme == null)
37485
37484
  throw new Error("Invalid theme " + Ke.theme + ". Did you register it?");
37486
37485
  var Me = (0, Ce.default)(!0, {}, Ke.theme.DEFAULTS);
37487
- [Me, Ke].forEach(function(Ze) {
37488
- Ze.modules = Ze.modules || {}, Object.keys(Ze.modules).forEach(function(Qe) {
37489
- Ze.modules[Qe] === !0 && (Ze.modules[Qe] = {});
37486
+ [Me, Ke].forEach(function(Ye) {
37487
+ Ye.modules = Ye.modules || {}, Object.keys(Ye.modules).forEach(function(Qe) {
37488
+ Ye.modules[Qe] === !0 && (Ye.modules[Qe] = {});
37490
37489
  });
37491
37490
  });
37492
- var Be = Object.keys(Me.modules).concat(Object.keys(Ke.modules)), Ve = Be.reduce(function(Ze, Qe) {
37491
+ var Be = Object.keys(Me.modules).concat(Object.keys(Ke.modules)), Ve = Be.reduce(function(Ye, Qe) {
37493
37492
  var Ue = Ne.import("modules/" + Qe);
37494
- return Ue == null ? Ie.error("Cannot load " + Qe + " module. Are you sure you registered it?") : Ze[Qe] = Ue.DEFAULTS || {}, Ze;
37493
+ return Ue == null ? Ie.error("Cannot load " + Qe + " module. Are you sure you registered it?") : Ye[Qe] = Ue.DEFAULTS || {}, Ye;
37495
37494
  }, {});
37496
37495
  return Ke.modules != null && Ke.modules.toolbar && Ke.modules.toolbar.constructor !== Object && (Ke.modules.toolbar = {
37497
37496
  container: Ke.modules.toolbar
37498
- }), Ke = (0, Ce.default)(!0, {}, Ne.DEFAULTS, { modules: Ve }, Me, Ke), ["bounds", "container", "scrollingContainer"].forEach(function(Ze) {
37499
- typeof Ke[Ze] == "string" && (Ke[Ze] = document.querySelector(Ke[Ze]));
37500
- }), Ke.modules = Object.keys(Ke.modules).reduce(function(Ze, Qe) {
37501
- return Ke.modules[Qe] && (Ze[Qe] = Ke.modules[Qe]), Ze;
37497
+ }), Ke = (0, Ce.default)(!0, {}, Ne.DEFAULTS, { modules: Ve }, Me, Ke), ["bounds", "container", "scrollingContainer"].forEach(function(Ye) {
37498
+ typeof Ke[Ye] == "string" && (Ke[Ye] = document.querySelector(Ke[Ye]));
37499
+ }), Ke.modules = Object.keys(Ke.modules).reduce(function(Ye, Qe) {
37500
+ return Ke.modules[Qe] && (Ye[Qe] = Ke.modules[Qe]), Ye;
37502
37501
  }, {}), Ke;
37503
37502
  }
37504
37503
  function We(Je, Ke, Me, Be) {
37505
37504
  if (this.options.strict && !this.isEnabled() && Ke === fe.default.sources.USER)
37506
37505
  return new ue.default();
37507
- var Ve = Me == null ? null : this.getSelection(), Ze = this.editor.delta, Qe = Je();
37506
+ var Ve = Me == null ? null : this.getSelection(), Ye = this.editor.delta, Qe = Je();
37508
37507
  if (Ve != null && (Me === !0 && (Me = Ve.index), Be == null ? Ve = ft(Ve, Qe, Ke) : Be !== 0 && (Ve = ft(Ve, Me, Be, Ke)), this.setSelection(Ve, fe.default.sources.SILENT)), Qe.length() > 0) {
37509
- var Ue, Ye = [fe.default.events.TEXT_CHANGE, Qe, Ze, Ke];
37510
- if ((Ue = this.emitter).emit.apply(Ue, [fe.default.events.EDITOR_CHANGE].concat(Ye)), Ke !== fe.default.sources.SILENT) {
37508
+ var Ue, Ze = [fe.default.events.TEXT_CHANGE, Qe, Ye, Ke];
37509
+ if ((Ue = this.emitter).emit.apply(Ue, [fe.default.events.EDITOR_CHANGE].concat(Ze)), Ke !== fe.default.sources.SILENT) {
37511
37510
  var it;
37512
- (it = this.emitter).emit.apply(it, Ye);
37511
+ (it = this.emitter).emit.apply(it, Ze);
37513
37512
  }
37514
37513
  }
37515
37514
  return Qe;
37516
37515
  }
37517
37516
  function Ge(Je, Ke, Me, Be, Ve) {
37518
- var Ze = {};
37519
- return typeof Je.index == "number" && typeof Je.length == "number" ? typeof Ke != "number" ? (Ve = Be, Be = Me, Me = Ke, Ke = Je.length, Je = Je.index) : (Ke = Je.length, Je = Je.index) : typeof Ke != "number" && (Ve = Be, Be = Me, Me = Ke, Ke = 0), (typeof Me > "u" ? "undefined" : re(Me)) === "object" ? (Ze = Me, Ve = Be) : typeof Me == "string" && (Be != null ? Ze[Me] = Be : Ve = Me), Ve = Ve || fe.default.sources.API, [Je, Ke, Ze, Ve];
37517
+ var Ye = {};
37518
+ return typeof Je.index == "number" && typeof Je.length == "number" ? typeof Ke != "number" ? (Ve = Be, Be = Me, Me = Ke, Ke = Je.length, Je = Je.index) : (Ke = Je.length, Je = Je.index) : typeof Ke != "number" && (Ve = Be, Be = Me, Me = Ke, Ke = 0), (typeof Me > "u" ? "undefined" : re(Me)) === "object" ? (Ye = Me, Ve = Be) : typeof Me == "string" && (Be != null ? Ye[Me] = Be : Ve = Me), Ve = Ve || fe.default.sources.API, [Je, Ke, Ye, Ve];
37520
37519
  }
37521
37520
  function ft(Je, Ke, Me, Be) {
37522
37521
  if (Je == null) return null;
37523
- var Ve = void 0, Ze = void 0;
37522
+ var Ve = void 0, Ye = void 0;
37524
37523
  if (Ke instanceof ue.default) {
37525
37524
  var Qe = [Je.index, Je.index + Je.length].map(function(nt) {
37526
37525
  return Ke.transformPosition(nt, Be !== fe.default.sources.USER);
37527
37526
  }), Ue = ne(Qe, 2);
37528
- Ve = Ue[0], Ze = Ue[1];
37527
+ Ve = Ue[0], Ye = Ue[1];
37529
37528
  } else {
37530
- var Ye = [Je.index, Je.index + Je.length].map(function(nt) {
37529
+ var Ze = [Je.index, Je.index + Je.length].map(function(nt) {
37531
37530
  return nt < Ke || nt === Ke && Be === fe.default.sources.USER ? nt : Me >= 0 ? nt + Me : Math.max(Ke, nt + Me);
37532
- }), it = ne(Ye, 2);
37533
- Ve = it[0], Ze = it[1];
37531
+ }), it = ne(Ze, 2);
37532
+ Ve = it[0], Ye = it[1];
37534
37533
  }
37535
- return new ye.Range(Ve, Ze - Ve);
37534
+ return new ye.Range(Ve, Ye - Ve);
37536
37535
  }
37537
37536
  X.expandConfig = je, X.overload = Ge, X.default = Ne;
37538
37537
  }),
@@ -38059,17 +38058,17 @@ function requireQuill() {
38059
38058
  return Je && typeof Symbol == "function" && Je.constructor === Symbol && Je !== Symbol.prototype ? "symbol" : typeof Je;
38060
38059
  }, ne = /* @__PURE__ */ (function() {
38061
38060
  function Je(Ke, Me) {
38062
- var Be = [], Ve = !0, Ze = !1, Qe = void 0;
38061
+ var Be = [], Ve = !0, Ye = !1, Qe = void 0;
38063
38062
  try {
38064
- for (var Ue = Ke[Symbol.iterator](), Ye; !(Ve = (Ye = Ue.next()).done) && (Be.push(Ye.value), !(Me && Be.length === Me)); Ve = !0)
38063
+ for (var Ue = Ke[Symbol.iterator](), Ze; !(Ve = (Ze = Ue.next()).done) && (Be.push(Ze.value), !(Me && Be.length === Me)); Ve = !0)
38065
38064
  ;
38066
38065
  } catch (it) {
38067
- Ze = !0, Qe = it;
38066
+ Ye = !0, Qe = it;
38068
38067
  } finally {
38069
38068
  try {
38070
38069
  !Ve && Ue.return && Ue.return();
38071
38070
  } finally {
38072
- if (Ze) throw Qe;
38071
+ if (Ye) throw Qe;
38073
38072
  }
38074
38073
  }
38075
38074
  return Be;
@@ -38111,14 +38110,14 @@ function requireQuill() {
38111
38110
  value: function(Me) {
38112
38111
  var Be = this, Ve = !1;
38113
38112
  this.scroll.update();
38114
- var Ze = this.scroll.length();
38113
+ var Ye = this.scroll.length();
38115
38114
  return this.scroll.batchStart(), Me = ft(Me), Me.reduce(function(Qe, Ue) {
38116
- var Ye = Ue.retain || Ue.delete || Ue.insert.length || 1, it = Ue.attributes || {};
38115
+ var Ze = Ue.retain || Ue.delete || Ue.insert.length || 1, it = Ue.attributes || {};
38117
38116
  if (Ue.insert != null) {
38118
38117
  if (typeof Ue.insert == "string") {
38119
38118
  var nt = Ue.insert;
38120
38119
  nt.endsWith(`
38121
- `) && Ve && (Ve = !1, nt = nt.slice(0, -1)), Qe >= Ze && !nt.endsWith(`
38120
+ `) && Ve && (Ve = !1, nt = nt.slice(0, -1)), Qe >= Ye && !nt.endsWith(`
38122
38121
  `) && (Ve = !0), Be.scroll.insertAt(Qe, nt);
38123
38122
  var mt = Be.scroll.line(Qe), wt = ne(mt, 2), qt = wt[0], Ft = wt[1], Nt = (0, Se.default)({}, (0, ye.bubbleFormats)(qt));
38124
38123
  if (qt instanceof we.default) {
@@ -38131,11 +38130,11 @@ function requireQuill() {
38131
38130
  if (gt == null) return Qe;
38132
38131
  Be.scroll.insertAt(Qe, gt, Ue.insert[gt]);
38133
38132
  }
38134
- Ze += Ye;
38133
+ Ye += Ze;
38135
38134
  }
38136
38135
  return Object.keys(it).forEach(function(bt) {
38137
- Be.scroll.formatAt(Qe, Ye, bt, it[bt]);
38138
- }), Qe + Ye;
38136
+ Be.scroll.formatAt(Qe, Ze, bt, it[bt]);
38137
+ }), Qe + Ze;
38139
38138
  }, 0), Me.reduce(function(Qe, Ue) {
38140
38139
  return typeof Ue.delete == "number" ? (Be.scroll.deleteAt(Qe, Ue.delete), Qe) : Qe + (Ue.retain || Ue.insert.length || 1);
38141
38140
  }, 0), this.scroll.batchEnd(), this.update(Me);
@@ -38148,30 +38147,30 @@ function requireQuill() {
38148
38147
  }, {
38149
38148
  key: "formatLine",
38150
38149
  value: function(Me, Be) {
38151
- var Ve = this, Ze = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
38152
- return this.scroll.update(), Object.keys(Ze).forEach(function(Qe) {
38150
+ var Ve = this, Ye = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
38151
+ return this.scroll.update(), Object.keys(Ye).forEach(function(Qe) {
38153
38152
  if (!(Ve.scroll.whitelist != null && !Ve.scroll.whitelist[Qe])) {
38154
- var Ue = Ve.scroll.lines(Me, Math.max(Be, 1)), Ye = Be;
38153
+ var Ue = Ve.scroll.lines(Me, Math.max(Be, 1)), Ze = Be;
38155
38154
  Ue.forEach(function(it) {
38156
38155
  var nt = it.length();
38157
38156
  if (!(it instanceof ve.default))
38158
- it.format(Qe, Ze[Qe]);
38157
+ it.format(Qe, Ye[Qe]);
38159
38158
  else {
38160
- var mt = Me - it.offset(Ve.scroll), wt = it.newlineIndex(mt + Ye) - mt + 1;
38161
- it.formatAt(mt, wt, Qe, Ze[Qe]);
38159
+ var mt = Me - it.offset(Ve.scroll), wt = it.newlineIndex(mt + Ze) - mt + 1;
38160
+ it.formatAt(mt, wt, Qe, Ye[Qe]);
38162
38161
  }
38163
- Ye -= nt;
38162
+ Ze -= nt;
38164
38163
  });
38165
38164
  }
38166
- }), this.scroll.optimize(), this.update(new ue.default().retain(Me).retain(Be, (0, Le.default)(Ze)));
38165
+ }), this.scroll.optimize(), this.update(new ue.default().retain(Me).retain(Be, (0, Le.default)(Ye)));
38167
38166
  }
38168
38167
  }, {
38169
38168
  key: "formatText",
38170
38169
  value: function(Me, Be) {
38171
- var Ve = this, Ze = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
38172
- return Object.keys(Ze).forEach(function(Qe) {
38173
- Ve.scroll.formatAt(Me, Be, Qe, Ze[Qe]);
38174
- }), this.update(new ue.default().retain(Me).retain(Be, (0, Le.default)(Ze)));
38170
+ var Ve = this, Ye = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
38171
+ return Object.keys(Ye).forEach(function(Qe) {
38172
+ Ve.scroll.formatAt(Me, Be, Qe, Ye[Qe]);
38173
+ }), this.update(new ue.default().retain(Me).retain(Be, (0, Le.default)(Ye)));
38175
38174
  }
38176
38175
  }, {
38177
38176
  key: "getContents",
@@ -38188,19 +38187,19 @@ function requireQuill() {
38188
38187
  }, {
38189
38188
  key: "getFormat",
38190
38189
  value: function(Me) {
38191
- var Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, Ve = [], Ze = [];
38190
+ var Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, Ve = [], Ye = [];
38192
38191
  Be === 0 ? this.scroll.path(Me).forEach(function(Ue) {
38193
- var Ye = ne(Ue, 1), it = Ye[0];
38194
- it instanceof we.default ? Ve.push(it) : it instanceof fe.default.Leaf && Ze.push(it);
38195
- }) : (Ve = this.scroll.lines(Me, Be), Ze = this.scroll.descendants(fe.default.Leaf, Me, Be));
38196
- var Qe = [Ve, Ze].map(function(Ue) {
38192
+ var Ze = ne(Ue, 1), it = Ze[0];
38193
+ it instanceof we.default ? Ve.push(it) : it instanceof fe.default.Leaf && Ye.push(it);
38194
+ }) : (Ve = this.scroll.lines(Me, Be), Ye = this.scroll.descendants(fe.default.Leaf, Me, Be));
38195
+ var Qe = [Ve, Ye].map(function(Ue) {
38197
38196
  if (Ue.length === 0) return {};
38198
- for (var Ye = (0, ye.bubbleFormats)(Ue.shift()); Object.keys(Ye).length > 0; ) {
38197
+ for (var Ze = (0, ye.bubbleFormats)(Ue.shift()); Object.keys(Ze).length > 0; ) {
38199
38198
  var it = Ue.shift();
38200
- if (it == null) return Ye;
38201
- Ye = Ge((0, ye.bubbleFormats)(it), Ye);
38199
+ if (it == null) return Ze;
38200
+ Ze = Ge((0, ye.bubbleFormats)(it), Ze);
38202
38201
  }
38203
- return Ye;
38202
+ return Ze;
38204
38203
  });
38205
38204
  return Se.default.apply(Se.default, Qe);
38206
38205
  }
@@ -38221,12 +38220,12 @@ function requireQuill() {
38221
38220
  }, {
38222
38221
  key: "insertText",
38223
38222
  value: function(Me, Be) {
38224
- var Ve = this, Ze = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
38223
+ var Ve = this, Ye = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
38225
38224
  return Be = Be.replace(/\r\n/g, `
38226
38225
  `).replace(/\r/g, `
38227
- `), this.scroll.insertAt(Me, Be), Object.keys(Ze).forEach(function(Qe) {
38228
- Ve.scroll.formatAt(Me, Be.length, Qe, Ze[Qe]);
38229
- }), this.update(new ue.default().retain(Me).insert(Be, (0, Le.default)(Ze)));
38226
+ `), this.scroll.insertAt(Me, Be), Object.keys(Ye).forEach(function(Qe) {
38227
+ Ve.scroll.formatAt(Me, Be.length, Qe, Ye[Qe]);
38228
+ }), this.update(new ue.default().retain(Me).insert(Be, (0, Le.default)(Ye)));
38230
38229
  }
38231
38230
  }, {
38232
38231
  key: "isBlank",
@@ -38239,8 +38238,8 @@ function requireQuill() {
38239
38238
  }, {
38240
38239
  key: "removeFormat",
38241
38240
  value: function(Me, Be) {
38242
- var Ve = this.getText(Me, Be), Ze = this.scroll.line(Me + Be), Qe = ne(Ze, 2), Ue = Qe[0], Ye = Qe[1], it = 0, nt = new ue.default();
38243
- Ue != null && (Ue instanceof ve.default ? it = Ue.newlineIndex(Ye) - Ye + 1 : it = Ue.length() - Ye, nt = Ue.delta().slice(Ye, Ye + it - 1).insert(`
38241
+ var Ve = this.getText(Me, Be), Ye = this.scroll.line(Me + Be), Qe = ne(Ye, 2), Ue = Qe[0], Ze = Qe[1], it = 0, nt = new ue.default();
38242
+ Ue != null && (Ue instanceof ve.default ? it = Ue.newlineIndex(Ze) - Ze + 1 : it = Ue.length() - Ze, nt = Ue.delta().slice(Ze, Ze + it - 1).insert(`
38244
38243
  `));
38245
38244
  var mt = this.getContents(Me, Be + it), wt = mt.diff(new ue.default().insert(Ve).concat(nt)), qt = new ue.default().retain(Me).concat(wt);
38246
38245
  return this.applyDelta(qt);
@@ -38248,14 +38247,14 @@ function requireQuill() {
38248
38247
  }, {
38249
38248
  key: "update",
38250
38249
  value: function(Me) {
38251
- var Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], Ve = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : void 0, Ze = this.delta;
38250
+ var Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], Ve = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : void 0, Ye = this.delta;
38252
38251
  if (Be.length === 1 && Be[0].type === "characterData" && Be[0].target.data.match(je) && fe.default.find(Be[0].target)) {
38253
- var Qe = fe.default.find(Be[0].target), Ue = (0, ye.bubbleFormats)(Qe), Ye = Qe.offset(this.scroll), it = Be[0].oldValue.replace(me.default.CONTENTS, ""), nt = new ue.default().insert(it), mt = new ue.default().insert(Qe.value()), wt = new ue.default().retain(Ye).concat(nt.diff(mt, Ve));
38252
+ var Qe = fe.default.find(Be[0].target), Ue = (0, ye.bubbleFormats)(Qe), Ze = Qe.offset(this.scroll), it = Be[0].oldValue.replace(me.default.CONTENTS, ""), nt = new ue.default().insert(it), mt = new ue.default().insert(Qe.value()), wt = new ue.default().retain(Ze).concat(nt.diff(mt, Ve));
38254
38253
  Me = wt.reduce(function(qt, Ft) {
38255
38254
  return Ft.insert ? qt.insert(Ft.insert, Ue) : qt.push(Ft);
38256
- }, new ue.default()), this.delta = Ze.compose(Me);
38255
+ }, new ue.default()), this.delta = Ye.compose(Me);
38257
38256
  } else
38258
- this.delta = this.getDelta(), (!Me || !(0, ze.default)(Ze.compose(Me), this.delta)) && (Me = Ze.diff(this.delta, Ve));
38257
+ this.delta = this.getDelta(), (!Me || !(0, ze.default)(Ye.compose(Me), this.delta)) && (Me = Ye.diff(this.delta, Ve));
38259
38258
  return Me;
38260
38259
  }
38261
38260
  }]), Je;
@@ -38431,16 +38430,16 @@ function requireQuill() {
38431
38430
  Me.setStart(Ne, ft);
38432
38431
  var Be = this.scroll.leaf(Se + Oe), Ve = re(Be, 2);
38433
38432
  if (Ge = Ve[0], ft = Ve[1], Ge == null) return null;
38434
- var Ze = Ge.position(ft, !0), Qe = re(Ze, 2);
38433
+ var Ye = Ge.position(ft, !0), Qe = re(Ye, 2);
38435
38434
  return Ne = Qe[0], ft = Qe[1], Me.setEnd(Ne, ft), Me.getBoundingClientRect();
38436
38435
  } else {
38437
- var Ue = "left", Ye = void 0;
38438
- return Ne instanceof Text ? (ft < Ne.data.length ? (Me.setStart(Ne, ft), Me.setEnd(Ne, ft + 1)) : (Me.setStart(Ne, ft - 1), Me.setEnd(Ne, ft), Ue = "right"), Ye = Me.getBoundingClientRect()) : (Ye = Ge.domNode.getBoundingClientRect(), ft > 0 && (Ue = "right")), {
38439
- bottom: Ye.top + Ye.height,
38440
- height: Ye.height,
38441
- left: Ye[Ue],
38442
- right: Ye[Ue],
38443
- top: Ye.top,
38436
+ var Ue = "left", Ze = void 0;
38437
+ return Ne instanceof Text ? (ft < Ne.data.length ? (Me.setStart(Ne, ft), Me.setEnd(Ne, ft + 1)) : (Me.setStart(Ne, ft - 1), Me.setEnd(Ne, ft), Ue = "right"), Ze = Me.getBoundingClientRect()) : (Ze = Ge.domNode.getBoundingClientRect(), ft > 0 && (Ue = "right")), {
38438
+ bottom: Ze.top + Ze.height,
38439
+ height: Ze.height,
38440
+ left: Ze[Ue],
38441
+ right: Ze[Ue],
38442
+ top: Ze.top,
38444
38443
  width: 0
38445
38444
  };
38446
38445
  }
@@ -38504,8 +38503,8 @@ function requireQuill() {
38504
38503
  var Oe = this, Ie = Se.collapsed ? [Se.index] : [Se.index, Se.index + Se.length], Ne = [], je = this.scroll.length();
38505
38504
  return Ie.forEach(function(We, Ge) {
38506
38505
  We = Math.min(je - 1, We);
38507
- var ft = void 0, Je = Oe.scroll.leaf(We), Ke = re(Je, 2), Me = Ke[0], Be = Ke[1], Ve = Me.position(Be, Ge !== 0), Ze = re(Ve, 2);
38508
- ft = Ze[0], Be = Ze[1], Ne.push(ft, Be);
38506
+ var ft = void 0, Je = Oe.scroll.leaf(We), Ke = re(Je, 2), Me = Ke[0], Be = Ke[1], Ve = Me.position(Be, Ge !== 0), Ye = re(Ve, 2);
38507
+ ft = Ye[0], Be = Ye[1], Ne.push(ft, Be);
38509
38508
  }), Ne.length < 2 && (Ne = Ne.concat(Ne)), Ne;
38510
38509
  }
38511
38510
  }, {
@@ -39216,8 +39215,8 @@ function requireQuill() {
39216
39215
  var Ve = Me.newlineIndex(0);
39217
39216
  Ve > -1 && Me.split(Ve + 1);
39218
39217
  }
39219
- var Ze = Me.children.head instanceof ve.default ? null : Me.children.head;
39220
- Ge.moveChildren(Me, Ze), Ge.remove();
39218
+ var Ye = Me.children.head instanceof ve.default ? null : Me.children.head;
39219
+ Ge.moveChildren(Me, Ye), Ge.remove();
39221
39220
  }
39222
39221
  this.optimize();
39223
39222
  }
@@ -39274,8 +39273,8 @@ function requireQuill() {
39274
39273
  value: function() {
39275
39274
  var Ie = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, Ne = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE, je = function We(Ge, ft, Je) {
39276
39275
  var Ke = [], Me = Je;
39277
- return Ge.children.forEachAt(ft, Je, function(Be, Ve, Ze) {
39278
- Fe(Be) ? Ke.push(Be) : Be instanceof ue.default.Container && (Ke = Ke.concat(We(Be, Ve, Me))), Me -= Ze;
39276
+ return Ge.children.forEachAt(ft, Je, function(Be, Ve, Ye) {
39277
+ Fe(Be) ? Ke.push(Be) : Be instanceof ue.default.Container && (Ke = Ke.concat(We(Be, Ve, Me))), Me -= Ye;
39279
39278
  }), Ke;
39280
39279
  };
39281
39280
  return je(this, Ie, Ne);
@@ -39314,10 +39313,10 @@ function requireQuill() {
39314
39313
  } : function(Ue) {
39315
39314
  return Ue && typeof Symbol == "function" && Ue.constructor === Symbol && Ue !== Symbol.prototype ? "symbol" : typeof Ue;
39316
39315
  }, ne = /* @__PURE__ */ (function() {
39317
- function Ue(Ye, it) {
39316
+ function Ue(Ze, it) {
39318
39317
  var nt = [], mt = !0, wt = !1, qt = void 0;
39319
39318
  try {
39320
- for (var Ft = Ye[Symbol.iterator](), Nt; !(mt = (Nt = Ft.next()).done) && (nt.push(Nt.value), !(it && nt.length === it)); mt = !0)
39319
+ for (var Ft = Ze[Symbol.iterator](), Nt; !(mt = (Nt = Ft.next()).done) && (nt.push(Nt.value), !(it && nt.length === it)); mt = !0)
39321
39320
  ;
39322
39321
  } catch (Ut) {
39323
39322
  wt = !0, qt = Ut;
@@ -39330,46 +39329,46 @@ function requireQuill() {
39330
39329
  }
39331
39330
  return nt;
39332
39331
  }
39333
- return function(Ye, it) {
39334
- if (Array.isArray(Ye))
39335
- return Ye;
39336
- if (Symbol.iterator in Object(Ye))
39337
- return Ue(Ye, it);
39332
+ return function(Ze, it) {
39333
+ if (Array.isArray(Ze))
39334
+ return Ze;
39335
+ if (Symbol.iterator in Object(Ze))
39336
+ return Ue(Ze, it);
39338
39337
  throw new TypeError("Invalid attempt to destructure non-iterable instance");
39339
39338
  };
39340
39339
  })(), de = /* @__PURE__ */ (function() {
39341
- function Ue(Ye, it) {
39340
+ function Ue(Ze, it) {
39342
39341
  for (var nt = 0; nt < it.length; nt++) {
39343
39342
  var mt = it[nt];
39344
- mt.enumerable = mt.enumerable || !1, mt.configurable = !0, "value" in mt && (mt.writable = !0), Object.defineProperty(Ye, mt.key, mt);
39343
+ mt.enumerable = mt.enumerable || !1, mt.configurable = !0, "value" in mt && (mt.writable = !0), Object.defineProperty(Ze, mt.key, mt);
39345
39344
  }
39346
39345
  }
39347
- return function(Ye, it, nt) {
39348
- return it && Ue(Ye.prototype, it), nt && Ue(Ye, nt), Ye;
39346
+ return function(Ze, it, nt) {
39347
+ return it && Ue(Ze.prototype, it), nt && Ue(Ze, nt), Ze;
39349
39348
  };
39350
39349
  })(), oe = te(21), ue = De(oe), ce = te(11), pe = De(ce), he = te(3), fe = De(he), be = te(2), ve = De(be), _e = te(20), me = De(_e), ye = te(0), we = De(ye), ge = te(5), Ce = De(ge), qe = te(10), Le = De(qe), Fe = te(9), ze = De(Fe);
39351
39350
  function De(Ue) {
39352
39351
  return Ue && Ue.__esModule ? Ue : { default: Ue };
39353
39352
  }
39354
- function Se(Ue, Ye, it) {
39355
- return Ye in Ue ? Object.defineProperty(Ue, Ye, { value: it, enumerable: !0, configurable: !0, writable: !0 }) : Ue[Ye] = it, Ue;
39353
+ function Se(Ue, Ze, it) {
39354
+ return Ze in Ue ? Object.defineProperty(Ue, Ze, { value: it, enumerable: !0, configurable: !0, writable: !0 }) : Ue[Ze] = it, Ue;
39356
39355
  }
39357
- function Oe(Ue, Ye) {
39358
- if (!(Ue instanceof Ye))
39356
+ function Oe(Ue, Ze) {
39357
+ if (!(Ue instanceof Ze))
39359
39358
  throw new TypeError("Cannot call a class as a function");
39360
39359
  }
39361
- function Ie(Ue, Ye) {
39360
+ function Ie(Ue, Ze) {
39362
39361
  if (!Ue)
39363
39362
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
39364
- return Ye && (typeof Ye == "object" || typeof Ye == "function") ? Ye : Ue;
39363
+ return Ze && (typeof Ze == "object" || typeof Ze == "function") ? Ze : Ue;
39365
39364
  }
39366
- function Ne(Ue, Ye) {
39367
- if (typeof Ye != "function" && Ye !== null)
39368
- throw new TypeError("Super expression must either be null or a function, not " + typeof Ye);
39369
- Ue.prototype = Object.create(Ye && Ye.prototype, { constructor: { value: Ue, enumerable: !1, writable: !0, configurable: !0 } }), Ye && (Object.setPrototypeOf ? Object.setPrototypeOf(Ue, Ye) : Ue.__proto__ = Ye);
39365
+ function Ne(Ue, Ze) {
39366
+ if (typeof Ze != "function" && Ze !== null)
39367
+ throw new TypeError("Super expression must either be null or a function, not " + typeof Ze);
39368
+ Ue.prototype = Object.create(Ze && Ze.prototype, { constructor: { value: Ue, enumerable: !1, writable: !0, configurable: !0 } }), Ze && (Object.setPrototypeOf ? Object.setPrototypeOf(Ue, Ze) : Ue.__proto__ = Ze);
39370
39369
  }
39371
39370
  var je = (0, Le.default)("quill:keyboard"), We = /Mac/i.test(navigator.platform) ? "metaKey" : "ctrlKey", Ge = (function(Ue) {
39372
- Ne(Ye, Ue), de(Ye, null, [{
39371
+ Ne(Ze, Ue), de(Ze, null, [{
39373
39372
  key: "match",
39374
39373
  value: function(nt, mt) {
39375
39374
  return mt = Qe(mt), ["altKey", "ctrlKey", "metaKey", "shiftKey"].some(function(wt) {
@@ -39377,15 +39376,15 @@ function requireQuill() {
39377
39376
  }) ? !1 : mt.key === (nt.which || nt.keyCode);
39378
39377
  }
39379
39378
  }]);
39380
- function Ye(it, nt) {
39381
- Oe(this, Ye);
39382
- var mt = Ie(this, (Ye.__proto__ || Object.getPrototypeOf(Ye)).call(this, it, nt));
39379
+ function Ze(it, nt) {
39380
+ Oe(this, Ze);
39381
+ var mt = Ie(this, (Ze.__proto__ || Object.getPrototypeOf(Ze)).call(this, it, nt));
39383
39382
  return mt.bindings = {}, Object.keys(mt.options.bindings).forEach(function(wt) {
39384
39383
  wt === "list autofill" && it.scroll.whitelist != null && !it.scroll.whitelist.list || mt.options.bindings[wt] && mt.addBinding(mt.options.bindings[wt]);
39385
- }), mt.addBinding({ key: Ye.keys.ENTER, shiftKey: null }, Be), mt.addBinding({ key: Ye.keys.ENTER, metaKey: null, ctrlKey: null, altKey: null }, function() {
39386
- }), /Firefox/i.test(navigator.userAgent) ? (mt.addBinding({ key: Ye.keys.BACKSPACE }, { collapsed: !0 }, Je), mt.addBinding({ key: Ye.keys.DELETE }, { collapsed: !0 }, Ke)) : (mt.addBinding({ key: Ye.keys.BACKSPACE }, { collapsed: !0, prefix: /^.?$/ }, Je), mt.addBinding({ key: Ye.keys.DELETE }, { collapsed: !0, suffix: /^.?$/ }, Ke)), mt.addBinding({ key: Ye.keys.BACKSPACE }, { collapsed: !1 }, Me), mt.addBinding({ key: Ye.keys.DELETE }, { collapsed: !1 }, Me), mt.addBinding({ key: Ye.keys.BACKSPACE, altKey: null, ctrlKey: null, metaKey: null, shiftKey: null }, { collapsed: !0, offset: 0 }, Je), mt.listen(), mt;
39384
+ }), mt.addBinding({ key: Ze.keys.ENTER, shiftKey: null }, Be), mt.addBinding({ key: Ze.keys.ENTER, metaKey: null, ctrlKey: null, altKey: null }, function() {
39385
+ }), /Firefox/i.test(navigator.userAgent) ? (mt.addBinding({ key: Ze.keys.BACKSPACE }, { collapsed: !0 }, Je), mt.addBinding({ key: Ze.keys.DELETE }, { collapsed: !0 }, Ke)) : (mt.addBinding({ key: Ze.keys.BACKSPACE }, { collapsed: !0, prefix: /^.?$/ }, Je), mt.addBinding({ key: Ze.keys.DELETE }, { collapsed: !0, suffix: /^.?$/ }, Ke)), mt.addBinding({ key: Ze.keys.BACKSPACE }, { collapsed: !1 }, Me), mt.addBinding({ key: Ze.keys.DELETE }, { collapsed: !1 }, Me), mt.addBinding({ key: Ze.keys.BACKSPACE, altKey: null, ctrlKey: null, metaKey: null, shiftKey: null }, { collapsed: !0, offset: 0 }, Je), mt.listen(), mt;
39387
39386
  }
39388
- return de(Ye, [{
39387
+ return de(Ze, [{
39389
39388
  key: "addBinding",
39390
39389
  value: function(nt) {
39391
39390
  var mt = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, wt = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, qt = Qe(nt);
@@ -39399,31 +39398,31 @@ function requireQuill() {
39399
39398
  var nt = this;
39400
39399
  this.quill.root.addEventListener("keydown", function(mt) {
39401
39400
  if (!mt.defaultPrevented) {
39402
- var wt = mt.which || mt.keyCode, qt = (nt.bindings[wt] || []).filter(function(Zt) {
39403
- return Ye.match(mt, Zt);
39401
+ var wt = mt.which || mt.keyCode, qt = (nt.bindings[wt] || []).filter(function(Yt) {
39402
+ return Ze.match(mt, Yt);
39404
39403
  });
39405
39404
  if (qt.length !== 0) {
39406
39405
  var Ft = nt.quill.getSelection();
39407
39406
  if (!(Ft == null || !nt.quill.hasFocus())) {
39408
- var Nt = nt.quill.getLine(Ft.index), Ut = ne(Nt, 2), ni = Ut[0], Xt = Ut[1], gt = nt.quill.getLeaf(Ft.index), bt = ne(gt, 2), xt = bt[0], At = bt[1], $t = Ft.length === 0 ? [xt, At] : nt.quill.getLeaf(Ft.index + Ft.length), Pt = ne($t, 2), Ct = Pt[0], It = Pt[1], oi = xt instanceof we.default.Text ? xt.value().slice(0, At) : "", ti = Ct instanceof we.default.Text ? Ct.value().slice(It) : "", Yt = {
39407
+ var Nt = nt.quill.getLine(Ft.index), Ut = ne(Nt, 2), ni = Ut[0], Xt = Ut[1], gt = nt.quill.getLeaf(Ft.index), bt = ne(gt, 2), xt = bt[0], At = bt[1], $t = Ft.length === 0 ? [xt, At] : nt.quill.getLeaf(Ft.index + Ft.length), Pt = ne($t, 2), Ct = Pt[0], It = Pt[1], oi = xt instanceof we.default.Text ? xt.value().slice(0, At) : "", ti = Ct instanceof we.default.Text ? Ct.value().slice(It) : "", Zt = {
39409
39408
  collapsed: Ft.length === 0,
39410
39409
  empty: Ft.length === 0 && ni.length() <= 1,
39411
39410
  format: nt.quill.getFormat(Ft),
39412
39411
  offset: Xt,
39413
39412
  prefix: oi,
39414
39413
  suffix: ti
39415
- }, wi = qt.some(function(Zt) {
39416
- if (Zt.collapsed != null && Zt.collapsed !== Yt.collapsed || Zt.empty != null && Zt.empty !== Yt.empty || Zt.offset != null && Zt.offset !== Yt.offset) return !1;
39417
- if (Array.isArray(Zt.format)) {
39418
- if (Zt.format.every(function(hi) {
39419
- return Yt.format[hi] == null;
39414
+ }, wi = qt.some(function(Yt) {
39415
+ if (Yt.collapsed != null && Yt.collapsed !== Zt.collapsed || Yt.empty != null && Yt.empty !== Zt.empty || Yt.offset != null && Yt.offset !== Zt.offset) return !1;
39416
+ if (Array.isArray(Yt.format)) {
39417
+ if (Yt.format.every(function(hi) {
39418
+ return Zt.format[hi] == null;
39420
39419
  }))
39421
39420
  return !1;
39422
- } else if (re(Zt.format) === "object" && !Object.keys(Zt.format).every(function(hi) {
39423
- return Zt.format[hi] === !0 ? Yt.format[hi] != null : Zt.format[hi] === !1 ? Yt.format[hi] == null : (0, pe.default)(Zt.format[hi], Yt.format[hi]);
39421
+ } else if (re(Yt.format) === "object" && !Object.keys(Yt.format).every(function(hi) {
39422
+ return Yt.format[hi] === !0 ? Zt.format[hi] != null : Yt.format[hi] === !1 ? Zt.format[hi] == null : (0, pe.default)(Yt.format[hi], Zt.format[hi]);
39424
39423
  }))
39425
39424
  return !1;
39426
- return Zt.prefix != null && !Zt.prefix.test(Yt.prefix) || Zt.suffix != null && !Zt.suffix.test(Yt.suffix) ? !1 : Zt.handler.call(nt, Ft, Yt) !== !0;
39425
+ return Yt.prefix != null && !Yt.prefix.test(Zt.prefix) || Yt.suffix != null && !Yt.suffix.test(Zt.suffix) ? !1 : Yt.handler.call(nt, Ft, Zt) !== !0;
39427
39426
  });
39428
39427
  wi && mt.preventDefault();
39429
39428
  }
@@ -39431,7 +39430,7 @@ function requireQuill() {
39431
39430
  }
39432
39431
  });
39433
39432
  }
39434
- }]), Ye;
39433
+ }]), Ze;
39435
39434
  })(ze.default);
39436
39435
  Ge.keys = {
39437
39436
  BACKSPACE: 8,
@@ -39445,14 +39444,14 @@ function requireQuill() {
39445
39444
  DELETE: 46
39446
39445
  }, Ge.DEFAULTS = {
39447
39446
  bindings: {
39448
- bold: Ze("bold"),
39449
- italic: Ze("italic"),
39450
- underline: Ze("underline"),
39447
+ bold: Ye("bold"),
39448
+ italic: Ye("italic"),
39449
+ underline: Ye("underline"),
39451
39450
  indent: {
39452
39451
  // highlight tab or tab at beginning of list, indent or blockquote
39453
39452
  key: Ge.keys.TAB,
39454
39453
  format: ["blockquote", "indent", "list"],
39455
- handler: function(Ye, it) {
39454
+ handler: function(Ze, it) {
39456
39455
  if (it.collapsed && it.offset !== 0) return !0;
39457
39456
  this.quill.format("indent", "+1", Ce.default.sources.USER);
39458
39457
  }
@@ -39462,7 +39461,7 @@ function requireQuill() {
39462
39461
  shiftKey: !0,
39463
39462
  format: ["blockquote", "indent", "list"],
39464
39463
  // highlight tab or tab at beginning of list, indent or blockquote
39465
- handler: function(Ye, it) {
39464
+ handler: function(Ze, it) {
39466
39465
  if (it.collapsed && it.offset !== 0) return !0;
39467
39466
  this.quill.format("indent", "-1", Ce.default.sources.USER);
39468
39467
  }
@@ -39476,7 +39475,7 @@ function requireQuill() {
39476
39475
  altKey: null,
39477
39476
  format: ["indent", "list"],
39478
39477
  offset: 0,
39479
- handler: function(Ye, it) {
39478
+ handler: function(Ze, it) {
39480
39479
  it.format.indent != null ? this.quill.format("indent", "-1", Ce.default.sources.USER) : it.format.list != null && this.quill.format("list", !1, Ce.default.sources.USER);
39481
39480
  }
39482
39481
  },
@@ -39487,16 +39486,16 @@ function requireQuill() {
39487
39486
  shiftKey: !0,
39488
39487
  collapsed: !0,
39489
39488
  prefix: /\t$/,
39490
- handler: function(Ye) {
39491
- this.quill.deleteText(Ye.index - 1, 1, Ce.default.sources.USER);
39489
+ handler: function(Ze) {
39490
+ this.quill.deleteText(Ze.index - 1, 1, Ce.default.sources.USER);
39492
39491
  }
39493
39492
  },
39494
39493
  tab: {
39495
39494
  key: Ge.keys.TAB,
39496
- handler: function(Ye) {
39495
+ handler: function(Ze) {
39497
39496
  this.quill.history.cutoff();
39498
- var it = new ve.default().retain(Ye.index).delete(Ye.length).insert(" ");
39499
- this.quill.updateContents(it, Ce.default.sources.USER), this.quill.history.cutoff(), this.quill.setSelection(Ye.index + 1, Ce.default.sources.SILENT);
39497
+ var it = new ve.default().retain(Ze.index).delete(Ze.length).insert(" ");
39498
+ this.quill.updateContents(it, Ce.default.sources.USER), this.quill.history.cutoff(), this.quill.setSelection(Ze.index + 1, Ce.default.sources.SILENT);
39500
39499
  }
39501
39500
  },
39502
39501
  "list empty enter": {
@@ -39504,7 +39503,7 @@ function requireQuill() {
39504
39503
  collapsed: !0,
39505
39504
  format: ["list"],
39506
39505
  empty: !0,
39507
- handler: function(Ye, it) {
39506
+ handler: function(Ze, it) {
39508
39507
  this.quill.format("list", !1, Ce.default.sources.USER), it.format.indent && this.quill.format("indent", !1, Ce.default.sources.USER);
39509
39508
  }
39510
39509
  },
@@ -39512,10 +39511,10 @@ function requireQuill() {
39512
39511
  key: Ge.keys.ENTER,
39513
39512
  collapsed: !0,
39514
39513
  format: { list: "checked" },
39515
- handler: function(Ye) {
39516
- var it = this.quill.getLine(Ye.index), nt = ne(it, 2), mt = nt[0], wt = nt[1], qt = (0, fe.default)({}, mt.formats(), { list: "checked" }), Ft = new ve.default().retain(Ye.index).insert(`
39514
+ handler: function(Ze) {
39515
+ var it = this.quill.getLine(Ze.index), nt = ne(it, 2), mt = nt[0], wt = nt[1], qt = (0, fe.default)({}, mt.formats(), { list: "checked" }), Ft = new ve.default().retain(Ze.index).insert(`
39517
39516
  `, qt).retain(mt.length() - wt - 1).retain(1, { list: "unchecked" });
39518
- this.quill.updateContents(Ft, Ce.default.sources.USER), this.quill.setSelection(Ye.index + 1, Ce.default.sources.SILENT), this.quill.scrollIntoView();
39517
+ this.quill.updateContents(Ft, Ce.default.sources.USER), this.quill.setSelection(Ze.index + 1, Ce.default.sources.SILENT), this.quill.scrollIntoView();
39519
39518
  }
39520
39519
  },
39521
39520
  "header enter": {
@@ -39523,10 +39522,10 @@ function requireQuill() {
39523
39522
  collapsed: !0,
39524
39523
  format: ["header"],
39525
39524
  suffix: /^$/,
39526
- handler: function(Ye, it) {
39527
- var nt = this.quill.getLine(Ye.index), mt = ne(nt, 2), wt = mt[0], qt = mt[1], Ft = new ve.default().retain(Ye.index).insert(`
39525
+ handler: function(Ze, it) {
39526
+ var nt = this.quill.getLine(Ze.index), mt = ne(nt, 2), wt = mt[0], qt = mt[1], Ft = new ve.default().retain(Ze.index).insert(`
39528
39527
  `, it.format).retain(wt.length() - qt - 1).retain(1, { header: null });
39529
- this.quill.updateContents(Ft, Ce.default.sources.USER), this.quill.setSelection(Ye.index + 1, Ce.default.sources.SILENT), this.quill.scrollIntoView();
39528
+ this.quill.updateContents(Ft, Ce.default.sources.USER), this.quill.setSelection(Ze.index + 1, Ce.default.sources.SILENT), this.quill.scrollIntoView();
39530
39529
  }
39531
39530
  },
39532
39531
  "list autofill": {
@@ -39534,8 +39533,8 @@ function requireQuill() {
39534
39533
  collapsed: !0,
39535
39534
  format: { list: !1 },
39536
39535
  prefix: /^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,
39537
- handler: function(Ye, it) {
39538
- var nt = it.prefix.length, mt = this.quill.getLine(Ye.index), wt = ne(mt, 2), qt = wt[0], Ft = wt[1];
39536
+ handler: function(Ze, it) {
39537
+ var nt = it.prefix.length, mt = this.quill.getLine(Ze.index), wt = ne(mt, 2), qt = wt[0], Ft = wt[1];
39539
39538
  if (Ft > nt) return !0;
39540
39539
  var Nt = void 0;
39541
39540
  switch (it.prefix.trim()) {
@@ -39553,9 +39552,9 @@ function requireQuill() {
39553
39552
  default:
39554
39553
  Nt = "ordered";
39555
39554
  }
39556
- this.quill.insertText(Ye.index, " ", Ce.default.sources.USER), this.quill.history.cutoff();
39557
- var Ut = new ve.default().retain(Ye.index - Ft).delete(nt + 1).retain(qt.length() - 2 - Ft).retain(1, { list: Nt });
39558
- this.quill.updateContents(Ut, Ce.default.sources.USER), this.quill.history.cutoff(), this.quill.setSelection(Ye.index - nt, Ce.default.sources.SILENT);
39555
+ this.quill.insertText(Ze.index, " ", Ce.default.sources.USER), this.quill.history.cutoff();
39556
+ var Ut = new ve.default().retain(Ze.index - Ft).delete(nt + 1).retain(qt.length() - 2 - Ft).retain(1, { list: Nt });
39557
+ this.quill.updateContents(Ut, Ce.default.sources.USER), this.quill.history.cutoff(), this.quill.setSelection(Ze.index - nt, Ce.default.sources.SILENT);
39559
39558
  }
39560
39559
  },
39561
39560
  "code exit": {
@@ -39564,8 +39563,8 @@ function requireQuill() {
39564
39563
  format: ["code-block"],
39565
39564
  prefix: /\n\n$/,
39566
39565
  suffix: /^\s+$/,
39567
- handler: function(Ye) {
39568
- var it = this.quill.getLine(Ye.index), nt = ne(it, 2), mt = nt[0], wt = nt[1], qt = new ve.default().retain(Ye.index + mt.length() - wt - 2).retain(1, { "code-block": null }).delete(1);
39566
+ handler: function(Ze) {
39567
+ var it = this.quill.getLine(Ze.index), nt = ne(it, 2), mt = nt[0], wt = nt[1], qt = new ve.default().retain(Ze.index + mt.length() - wt - 2).retain(1, { "code-block": null }).delete(1);
39569
39568
  this.quill.updateContents(qt, Ce.default.sources.USER);
39570
39569
  }
39571
39570
  },
@@ -39575,38 +39574,38 @@ function requireQuill() {
39575
39574
  "embed right shift": ft(Ge.keys.RIGHT, !0)
39576
39575
  }
39577
39576
  };
39578
- function ft(Ue, Ye) {
39577
+ function ft(Ue, Ze) {
39579
39578
  var it, nt = Ue === Ge.keys.LEFT ? "prefix" : "suffix";
39580
39579
  return it = {
39581
39580
  key: Ue,
39582
- shiftKey: Ye,
39581
+ shiftKey: Ze,
39583
39582
  altKey: null
39584
39583
  }, Se(it, nt, /^$/), Se(it, "handler", function(wt) {
39585
39584
  var qt = wt.index;
39586
39585
  Ue === Ge.keys.RIGHT && (qt += wt.length + 1);
39587
39586
  var Ft = this.quill.getLeaf(qt), Nt = ne(Ft, 1), Ut = Nt[0];
39588
- return Ut instanceof we.default.Embed ? (Ue === Ge.keys.LEFT ? Ye ? this.quill.setSelection(wt.index - 1, wt.length + 1, Ce.default.sources.USER) : this.quill.setSelection(wt.index - 1, Ce.default.sources.USER) : Ye ? this.quill.setSelection(wt.index, wt.length + 1, Ce.default.sources.USER) : this.quill.setSelection(wt.index + wt.length + 1, Ce.default.sources.USER), !1) : !0;
39587
+ return Ut instanceof we.default.Embed ? (Ue === Ge.keys.LEFT ? Ze ? this.quill.setSelection(wt.index - 1, wt.length + 1, Ce.default.sources.USER) : this.quill.setSelection(wt.index - 1, Ce.default.sources.USER) : Ze ? this.quill.setSelection(wt.index, wt.length + 1, Ce.default.sources.USER) : this.quill.setSelection(wt.index + wt.length + 1, Ce.default.sources.USER), !1) : !0;
39589
39588
  }), it;
39590
39589
  }
39591
- function Je(Ue, Ye) {
39590
+ function Je(Ue, Ze) {
39592
39591
  if (!(Ue.index === 0 || this.quill.getLength() <= 1)) {
39593
39592
  var it = this.quill.getLine(Ue.index), nt = ne(it, 1), mt = nt[0], wt = {};
39594
- if (Ye.offset === 0) {
39593
+ if (Ze.offset === 0) {
39595
39594
  var qt = this.quill.getLine(Ue.index - 1), Ft = ne(qt, 1), Nt = Ft[0];
39596
39595
  if (Nt != null && Nt.length() > 1) {
39597
39596
  var Ut = mt.formats(), ni = this.quill.getFormat(Ue.index - 1, 1);
39598
39597
  wt = me.default.attributes.diff(Ut, ni) || {};
39599
39598
  }
39600
39599
  }
39601
- var Xt = /[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(Ye.prefix) ? 2 : 1;
39600
+ var Xt = /[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(Ze.prefix) ? 2 : 1;
39602
39601
  this.quill.deleteText(Ue.index - Xt, Xt, Ce.default.sources.USER), Object.keys(wt).length > 0 && this.quill.formatLine(Ue.index - Xt, Xt, wt, Ce.default.sources.USER), this.quill.focus();
39603
39602
  }
39604
39603
  }
39605
- function Ke(Ue, Ye) {
39606
- var it = /^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(Ye.suffix) ? 2 : 1;
39604
+ function Ke(Ue, Ze) {
39605
+ var it = /^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(Ze.suffix) ? 2 : 1;
39607
39606
  if (!(Ue.index >= this.quill.getLength() - it)) {
39608
39607
  var nt = {}, mt = 0, wt = this.quill.getLine(Ue.index), qt = ne(wt, 1), Ft = qt[0];
39609
- if (Ye.offset >= Ft.length() - 1) {
39608
+ if (Ze.offset >= Ft.length() - 1) {
39610
39609
  var Nt = this.quill.getLine(Ue.index + 1), Ut = ne(Nt, 1), ni = Ut[0];
39611
39610
  if (ni) {
39612
39611
  var Xt = Ft.formats(), gt = this.quill.getFormat(Ue.index, 1);
@@ -39617,22 +39616,22 @@ function requireQuill() {
39617
39616
  }
39618
39617
  }
39619
39618
  function Me(Ue) {
39620
- var Ye = this.quill.getLines(Ue), it = {};
39621
- if (Ye.length > 1) {
39622
- var nt = Ye[0].formats(), mt = Ye[Ye.length - 1].formats();
39619
+ var Ze = this.quill.getLines(Ue), it = {};
39620
+ if (Ze.length > 1) {
39621
+ var nt = Ze[0].formats(), mt = Ze[Ze.length - 1].formats();
39623
39622
  it = me.default.attributes.diff(mt, nt) || {};
39624
39623
  }
39625
39624
  this.quill.deleteText(Ue, Ce.default.sources.USER), Object.keys(it).length > 0 && this.quill.formatLine(Ue.index, 1, it, Ce.default.sources.USER), this.quill.setSelection(Ue.index, Ce.default.sources.SILENT), this.quill.focus();
39626
39625
  }
39627
- function Be(Ue, Ye) {
39626
+ function Be(Ue, Ze) {
39628
39627
  var it = this;
39629
39628
  Ue.length > 0 && this.quill.scroll.deleteAt(Ue.index, Ue.length);
39630
- var nt = Object.keys(Ye.format).reduce(function(mt, wt) {
39631
- return we.default.query(wt, we.default.Scope.BLOCK) && !Array.isArray(Ye.format[wt]) && (mt[wt] = Ye.format[wt]), mt;
39629
+ var nt = Object.keys(Ze.format).reduce(function(mt, wt) {
39630
+ return we.default.query(wt, we.default.Scope.BLOCK) && !Array.isArray(Ze.format[wt]) && (mt[wt] = Ze.format[wt]), mt;
39632
39631
  }, {});
39633
39632
  this.quill.insertText(Ue.index, `
39634
- `, nt, Ce.default.sources.USER), this.quill.setSelection(Ue.index + 1, Ce.default.sources.SILENT), this.quill.focus(), Object.keys(Ye.format).forEach(function(mt) {
39635
- nt[mt] == null && (Array.isArray(Ye.format[mt]) || mt !== "link" && it.quill.format(mt, Ye.format[mt], Ce.default.sources.USER));
39633
+ `, nt, Ce.default.sources.USER), this.quill.setSelection(Ue.index + 1, Ce.default.sources.SILENT), this.quill.focus(), Object.keys(Ze.format).forEach(function(mt) {
39634
+ nt[mt] == null && (Array.isArray(Ze.format[mt]) || mt !== "link" && it.quill.format(mt, Ze.format[mt], Ce.default.sources.USER));
39636
39635
  });
39637
39636
  }
39638
39637
  function Ve(Ue) {
@@ -39652,7 +39651,7 @@ function requireQuill() {
39652
39651
  }
39653
39652
  };
39654
39653
  }
39655
- function Ze(Ue) {
39654
+ function Ye(Ue) {
39656
39655
  return {
39657
39656
  key: Ue[0].toUpperCase(),
39658
39657
  shortKey: !0,
@@ -40998,21 +40997,21 @@ function requireQuill() {
40998
40997
  value: !0
40999
40998
  }), X.default = X.BaseTooltip = void 0;
41000
40999
  var re = /* @__PURE__ */ (function() {
41001
- function Be(Ve, Ze) {
41002
- for (var Qe = 0; Qe < Ze.length; Qe++) {
41003
- var Ue = Ze[Qe];
41000
+ function Be(Ve, Ye) {
41001
+ for (var Qe = 0; Qe < Ye.length; Qe++) {
41002
+ var Ue = Ye[Qe];
41004
41003
  Ue.enumerable = Ue.enumerable || !1, Ue.configurable = !0, "value" in Ue && (Ue.writable = !0), Object.defineProperty(Ve, Ue.key, Ue);
41005
41004
  }
41006
41005
  }
41007
- return function(Ve, Ze, Qe) {
41008
- return Ze && Be(Ve.prototype, Ze), Qe && Be(Ve, Qe), Ve;
41006
+ return function(Ve, Ye, Qe) {
41007
+ return Ye && Be(Ve.prototype, Ye), Qe && Be(Ve, Qe), Ve;
41009
41008
  };
41010
- })(), ne = function Be(Ve, Ze, Qe) {
41009
+ })(), ne = function Be(Ve, Ye, Qe) {
41011
41010
  Ve === null && (Ve = Function.prototype);
41012
- var Ue = Object.getOwnPropertyDescriptor(Ve, Ze);
41011
+ var Ue = Object.getOwnPropertyDescriptor(Ve, Ye);
41013
41012
  if (Ue === void 0) {
41014
- var Ye = Object.getPrototypeOf(Ve);
41015
- return Ye === null ? void 0 : Be(Ye, Ze, Qe);
41013
+ var Ze = Object.getPrototypeOf(Ve);
41014
+ return Ze === null ? void 0 : Be(Ze, Ye, Qe);
41016
41015
  } else {
41017
41016
  if ("value" in Ue)
41018
41017
  return Ue.value;
@@ -41039,16 +41038,16 @@ function requireQuill() {
41039
41038
  }
41040
41039
  var Ie = [!1, "center", "right", "justify"], Ne = ["#000000", "#e60000", "#ff9900", "#ffff00", "#008a00", "#0066cc", "#9933ff", "#ffffff", "#facccc", "#ffebcc", "#ffffcc", "#cce8cc", "#cce0f5", "#ebd6ff", "#bbbbbb", "#f06666", "#ffc266", "#ffff66", "#66b966", "#66a3e0", "#c285ff", "#888888", "#a10000", "#b26b00", "#b2b200", "#006100", "#0047b2", "#6b24b2", "#444444", "#5c0000", "#663d00", "#666600", "#003700", "#002966", "#3d1466"], je = [!1, "serif", "monospace"], We = ["1", "2", "3", !1], Ge = ["petita", !1, "gran", "enorme"], ft = (function(Be) {
41041
41040
  Oe(Ve, Be);
41042
- function Ve(Ze, Qe) {
41041
+ function Ve(Ye, Qe) {
41043
41042
  De(this, Ve);
41044
- var Ue = Se(this, (Ve.__proto__ || Object.getPrototypeOf(Ve)).call(this, Ze, Qe)), Ye = function it(nt) {
41045
- if (!document.body.contains(Ze.root))
41043
+ var Ue = Se(this, (Ve.__proto__ || Object.getPrototypeOf(Ve)).call(this, Ye, Qe)), Ze = function it(nt) {
41044
+ if (!document.body.contains(Ye.root))
41046
41045
  return document.body.removeEventListener("click", it);
41047
41046
  Ue.tooltip != null && !Ue.tooltip.root.contains(nt.target) && document.activeElement !== Ue.tooltip.textbox && !Ue.quill.hasFocus() && Ue.tooltip.hide(), Ue.pickers != null && Ue.pickers.forEach(function(mt) {
41048
41047
  mt.container.contains(nt.target) || mt.close();
41049
41048
  });
41050
41049
  };
41051
- return Ze.emitter.listenDOM("click", document.body, Ye), Ue;
41050
+ return Ye.emitter.listenDOM("click", document.body, Ze), Ue;
41052
41051
  }
41053
41052
  return re(Ve, [{
41054
41053
  key: "addModule",
@@ -41059,17 +41058,17 @@ function requireQuill() {
41059
41058
  }, {
41060
41059
  key: "buildButtons",
41061
41060
  value: function(Qe, Ue) {
41062
- Qe.forEach(function(Ye) {
41063
- var it = Ye.getAttribute("class") || "";
41061
+ Qe.forEach(function(Ze) {
41062
+ var it = Ze.getAttribute("class") || "";
41064
41063
  it.split(/\s+/).forEach(function(nt) {
41065
41064
  if (nt.startsWith("ql-") && (nt = nt.slice(3), Ue[nt] != null))
41066
41065
  if (nt === "direction")
41067
- Ye.innerHTML = Ue[nt][""] + Ue[nt].rtl;
41066
+ Ze.innerHTML = Ue[nt][""] + Ue[nt].rtl;
41068
41067
  else if (typeof Ue[nt] == "string")
41069
- Ye.innerHTML = Ue[nt];
41068
+ Ze.innerHTML = Ue[nt];
41070
41069
  else {
41071
- var mt = Ye.value || "";
41072
- mt != null && Ue[nt][mt] && (Ye.innerHTML = Ue[nt][mt]);
41070
+ var mt = Ze.value || "";
41071
+ mt != null && Ue[nt][mt] && (Ze.innerHTML = Ue[nt][mt]);
41073
41072
  }
41074
41073
  });
41075
41074
  });
@@ -41077,7 +41076,7 @@ function requireQuill() {
41077
41076
  }, {
41078
41077
  key: "buildPickers",
41079
41078
  value: function(Qe, Ue) {
41080
- var Ye = this;
41079
+ var Ze = this;
41081
41080
  this.pickers = Qe.map(function(nt) {
41082
41081
  if (nt.classList.contains("ql-align"))
41083
41082
  return nt.querySelector("option") == null && Me(nt, Ie), new ge.default(nt, Ue.align);
@@ -41088,7 +41087,7 @@ function requireQuill() {
41088
41087
  return nt.querySelector("option") == null && (nt.classList.contains("ql-font") ? Me(nt, je) : nt.classList.contains("ql-header") ? Me(nt, We) : nt.classList.contains("ql-size") && Me(nt, Ge)), new qe.default(nt);
41089
41088
  });
41090
41089
  var it = function() {
41091
- Ye.pickers.forEach(function(mt) {
41090
+ Ze.pickers.forEach(function(mt) {
41092
41091
  mt.update();
41093
41092
  });
41094
41093
  };
@@ -41104,16 +41103,16 @@ function requireQuill() {
41104
41103
  this.quill.theme.tooltip.edit("formula");
41105
41104
  },
41106
41105
  image: function() {
41107
- var Ve = this, Ze = this.container.querySelector("input.ql-image[type=file]");
41108
- Ze == null && (Ze = document.createElement("input"), Ze.setAttribute("type", "file"), Ze.setAttribute("accept", "image/png, image/gif, image/jpeg, image/bmp, image/x-icon"), Ze.classList.add("ql-image"), Ze.addEventListener("change", function() {
41109
- if (Ze.files != null && Ze.files[0] != null) {
41106
+ var Ve = this, Ye = this.container.querySelector("input.ql-image[type=file]");
41107
+ Ye == null && (Ye = document.createElement("input"), Ye.setAttribute("type", "file"), Ye.setAttribute("accept", "image/png, image/gif, image/jpeg, image/bmp, image/x-icon"), Ye.classList.add("ql-image"), Ye.addEventListener("change", function() {
41108
+ if (Ye.files != null && Ye.files[0] != null) {
41110
41109
  var Qe = new FileReader();
41111
41110
  Qe.onload = function(Ue) {
41112
- var Ye = Ve.quill.getSelection(!0);
41113
- Ve.quill.updateContents(new ce.default().retain(Ye.index).delete(Ye.length).insert({ image: Ue.target.result }), he.default.sources.USER), Ve.quill.setSelection(Ye.index + 1, he.default.sources.SILENT), Ze.value = "";
41114
- }, Qe.readAsDataURL(Ze.files[0]);
41111
+ var Ze = Ve.quill.getSelection(!0);
41112
+ Ve.quill.updateContents(new ce.default().retain(Ze.index).delete(Ze.length).insert({ image: Ue.target.result }), he.default.sources.USER), Ve.quill.setSelection(Ze.index + 1, he.default.sources.SILENT), Ye.value = "";
41113
+ }, Qe.readAsDataURL(Ye.files[0]);
41115
41114
  }
41116
- }), this.container.appendChild(Ze)), Ze.click();
41115
+ }), this.container.appendChild(Ye)), Ye.click();
41117
41116
  },
41118
41117
  video: function() {
41119
41118
  this.quill.theme.tooltip.edit("video");
@@ -41124,9 +41123,9 @@ function requireQuill() {
41124
41123
  });
41125
41124
  var Je = (function(Be) {
41126
41125
  Oe(Ve, Be);
41127
- function Ve(Ze, Qe) {
41126
+ function Ve(Ye, Qe) {
41128
41127
  De(this, Ve);
41129
- var Ue = Se(this, (Ve.__proto__ || Object.getPrototypeOf(Ve)).call(this, Ze, Qe));
41128
+ var Ue = Se(this, (Ve.__proto__ || Object.getPrototypeOf(Ve)).call(this, Ye, Qe));
41130
41129
  return Ue.textbox = Ue.root.querySelector('input[type="text"]'), Ue.listen(), Ue;
41131
41130
  }
41132
41131
  return re(Ve, [{
@@ -41169,9 +41168,9 @@ function requireQuill() {
41169
41168
  // eslint-disable-next-line no-fallthrough
41170
41169
  case "formula": {
41171
41170
  if (!Qe) break;
41172
- var Ye = this.quill.getSelection(!0);
41173
- if (Ye != null) {
41174
- var it = Ye.index + Ye.length;
41171
+ var Ze = this.quill.getSelection(!0);
41172
+ if (Ze != null) {
41173
+ var it = Ze.index + Ze.length;
41175
41174
  this.quill.insertEmbed(it, this.root.getAttribute("data-mode"), Qe, he.default.sources.USER), this.root.getAttribute("data-mode") === "formula" && this.quill.insertText(it + 1, " ", he.default.sources.USER), this.quill.setSelection(it + 2, he.default.sources.USER);
41176
41175
  }
41177
41176
  break;
@@ -41186,10 +41185,10 @@ function requireQuill() {
41186
41185
  return Ve ? (Ve[1] || "https") + "://www.youtube.com/embed/" + Ve[2] + "?showinfo=0" : (Ve = Be.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/)) ? (Ve[1] || "https") + "://player.vimeo.com/video/" + Ve[2] + "/" : Be;
41187
41186
  }
41188
41187
  function Me(Be, Ve) {
41189
- var Ze = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
41188
+ var Ye = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
41190
41189
  Ve.forEach(function(Qe) {
41191
41190
  var Ue = document.createElement("option");
41192
- Qe === Ze ? Ue.setAttribute("selected", "selected") : Ue.setAttribute("value", Qe), Be.appendChild(Ue);
41191
+ Qe === Ye ? Ue.setAttribute("selected", "selected") : Ue.setAttribute("value", Qe), Be.appendChild(Ue);
41193
41192
  });
41194
41193
  }
41195
41194
  X.BaseTooltip = Je, X.default = ft;
@@ -41627,36 +41626,36 @@ function requireQuill() {
41627
41626
  for (var Me = -Ke + We; Me <= Ke - Ge; Me += 2) {
41628
41627
  var Be = ze + Me, Ve;
41629
41628
  Me == -Ke || Me != Ke && Se[Be - 1] < Se[Be + 1] ? Ve = Se[Be + 1] : Ve = Se[Be - 1] + 1;
41630
- for (var Ze = Ve - Me; Ve < qe && Ze < Le && ge.charAt(Ve) == Ce.charAt(Ze); )
41631
- Ve++, Ze++;
41629
+ for (var Ye = Ve - Me; Ve < qe && Ye < Le && ge.charAt(Ve) == Ce.charAt(Ye); )
41630
+ Ve++, Ye++;
41632
41631
  if (Se[Be] = Ve, Ve > qe)
41633
41632
  Ge += 2;
41634
- else if (Ze > Le)
41633
+ else if (Ye > Le)
41635
41634
  We += 2;
41636
41635
  else if (je) {
41637
41636
  var Qe = ze + Ne - Me;
41638
41637
  if (Qe >= 0 && Qe < De && Oe[Qe] != -1) {
41639
41638
  var Ue = qe - Oe[Qe];
41640
41639
  if (Ve >= Ue)
41641
- return ce(ge, Ce, Ve, Ze);
41640
+ return ce(ge, Ce, Ve, Ye);
41642
41641
  }
41643
41642
  }
41644
41643
  }
41645
- for (var Ye = -Ke + ft; Ye <= Ke - Je; Ye += 2) {
41646
- var Qe = ze + Ye, Ue;
41647
- Ye == -Ke || Ye != Ke && Oe[Qe - 1] < Oe[Qe + 1] ? Ue = Oe[Qe + 1] : Ue = Oe[Qe - 1] + 1;
41648
- for (var it = Ue - Ye; Ue < qe && it < Le && ge.charAt(qe - Ue - 1) == Ce.charAt(Le - it - 1); )
41644
+ for (var Ze = -Ke + ft; Ze <= Ke - Je; Ze += 2) {
41645
+ var Qe = ze + Ze, Ue;
41646
+ Ze == -Ke || Ze != Ke && Oe[Qe - 1] < Oe[Qe + 1] ? Ue = Oe[Qe + 1] : Ue = Oe[Qe - 1] + 1;
41647
+ for (var it = Ue - Ze; Ue < qe && it < Le && ge.charAt(qe - Ue - 1) == Ce.charAt(Le - it - 1); )
41649
41648
  Ue++, it++;
41650
41649
  if (Oe[Qe] = Ue, Ue > qe)
41651
41650
  Je += 2;
41652
41651
  else if (it > Le)
41653
41652
  ft += 2;
41654
41653
  else if (!je) {
41655
- var Be = ze + Ne - Ye;
41654
+ var Be = ze + Ne - Ze;
41656
41655
  if (Be >= 0 && Be < De && Se[Be] != -1) {
41657
- var Ve = Se[Be], Ze = ze + Ve - Be;
41656
+ var Ve = Se[Be], Ye = ze + Ve - Be;
41658
41657
  if (Ue = qe - Ue, Ve >= Ue)
41659
- return ce(ge, Ce, Ve, Ze);
41658
+ return ce(ge, Ce, Ve, Ye);
41660
41659
  }
41661
41660
  }
41662
41661
  }
@@ -41686,19 +41685,19 @@ function requireQuill() {
41686
41685
  if (qe.length < 4 || Le.length * 2 < qe.length)
41687
41686
  return null;
41688
41687
  function Fe(Ge, ft, Je) {
41689
- for (var Ke = Ge.substring(Je, Je + Math.floor(Ge.length / 4)), Me = -1, Be = "", Ve, Ze, Qe, Ue; (Me = ft.indexOf(Ke, Me + 1)) != -1; ) {
41690
- var Ye = pe(
41688
+ for (var Ke = Ge.substring(Je, Je + Math.floor(Ge.length / 4)), Me = -1, Be = "", Ve, Ye, Qe, Ue; (Me = ft.indexOf(Ke, Me + 1)) != -1; ) {
41689
+ var Ze = pe(
41691
41690
  Ge.substring(Je),
41692
41691
  ft.substring(Me)
41693
41692
  ), it = he(
41694
41693
  Ge.substring(0, Je),
41695
41694
  ft.substring(0, Me)
41696
41695
  );
41697
- Be.length < it + Ye && (Be = ft.substring(Me - it, Me) + ft.substring(Me, Me + Ye), Ve = Ge.substring(0, Je - it), Ze = Ge.substring(Je + Ye), Qe = ft.substring(0, Me - it), Ue = ft.substring(Me + Ye));
41696
+ Be.length < it + Ze && (Be = ft.substring(Me - it, Me) + ft.substring(Me, Me + Ze), Ve = Ge.substring(0, Je - it), Ye = Ge.substring(Je + Ze), Qe = ft.substring(0, Me - it), Ue = ft.substring(Me + Ze));
41698
41697
  }
41699
41698
  return Be.length * 2 >= Ge.length ? [
41700
41699
  Ve,
41701
- Ze,
41700
+ Ye,
41702
41701
  Qe,
41703
41702
  Ue,
41704
41703
  Be
@@ -42033,9 +42032,9 @@ function requireQuill() {
42033
42032
  var Pt = this.container.innerText;
42034
42033
  return this.container.innerHTML = "", new pe.default().insert(Pt, Ie({}, Le.default.blotName, $t[Le.default.blotName]));
42035
42034
  }
42036
- var Ct = this.prepareMatching(), It = ne(Ct, 2), oi = It[0], ti = It[1], Yt = Ye(this.container, oi, ti);
42037
- return Qe(Yt, `
42038
- `) && Yt.ops[Yt.ops.length - 1].attributes == null && (Yt = Yt.compose(new pe.default().retain(Yt.length() - 1).delete(1))), Ge.log("convert", this.container.innerHTML, Yt), this.container.innerHTML = "", Yt;
42035
+ var Ct = this.prepareMatching(), It = ne(Ct, 2), oi = It[0], ti = It[1], Zt = Ze(this.container, oi, ti);
42036
+ return Qe(Zt, `
42037
+ `) && Zt.ops[Zt.ops.length - 1].attributes == null && (Zt = Zt.compose(new pe.default().retain(Zt.length() - 1).delete(1))), Ge.log("convert", this.container.innerHTML, Zt), this.container.innerHTML = "", Zt;
42039
42038
  }
42040
42039
  }, {
42041
42040
  key: "dangerouslyPasteHTML",
@@ -42073,8 +42072,8 @@ function requireQuill() {
42073
42072
  $t.push(ti);
42074
42073
  break;
42075
42074
  default:
42076
- [].forEach.call(At.container.querySelectorAll(oi), function(Yt) {
42077
- Yt[ft] = Yt[ft] || [], Yt[ft].push(ti);
42075
+ [].forEach.call(At.container.querySelectorAll(oi), function(Zt) {
42076
+ Zt[ft] = Zt[ft] || [], Zt[ft].push(ti);
42078
42077
  });
42079
42078
  break;
42080
42079
  }
@@ -42093,7 +42092,7 @@ function requireQuill() {
42093
42092
  return $t.attributes && $t.attributes[bt] ? At.push($t) : At.insert($t.insert, (0, ue.default)({}, Ie({}, bt, xt), $t.attributes));
42094
42093
  }, new pe.default());
42095
42094
  }
42096
- function Ze(gt) {
42095
+ function Ye(gt) {
42097
42096
  if (gt.nodeType !== Node.ELEMENT_NODE) return {};
42098
42097
  var bt = "__ql-computed-style";
42099
42098
  return gt[bt] || (gt[bt] = window.getComputedStyle(gt));
@@ -42108,14 +42107,14 @@ function requireQuill() {
42108
42107
  }
42109
42108
  function Ue(gt) {
42110
42109
  if (gt.childNodes.length === 0) return !1;
42111
- var bt = Ze(gt);
42110
+ var bt = Ye(gt);
42112
42111
  return ["block", "list-item"].indexOf(bt.display) > -1;
42113
42112
  }
42114
- function Ye(gt, bt, xt) {
42113
+ function Ze(gt, bt, xt) {
42115
42114
  return gt.nodeType === gt.TEXT_NODE ? xt.reduce(function(At, $t) {
42116
42115
  return $t(gt, At);
42117
42116
  }, new pe.default()) : gt.nodeType === gt.ELEMENT_NODE ? [].reduce.call(gt.childNodes || [], function(At, $t) {
42118
- var Pt = Ye($t, bt, xt);
42117
+ var Pt = Ze($t, bt, xt);
42119
42118
  return $t.nodeType === gt.ELEMENT_NODE && (Pt = bt.reduce(function(Ct, It) {
42120
42119
  return It($t, Ct);
42121
42120
  }, Pt), Pt = ($t[ft] || []).reduce(function(Ct, It) {
@@ -42168,7 +42167,7 @@ function requireQuill() {
42168
42167
  if (Ue(gt) && gt.nextElementSibling != null && !Qe(bt, `
42169
42168
 
42170
42169
  `)) {
42171
- var xt = gt.offsetHeight + parseFloat(Ze(gt).marginTop) + parseFloat(Ze(gt).marginBottom);
42170
+ var xt = gt.offsetHeight + parseFloat(Ye(gt).marginTop) + parseFloat(Ye(gt).marginBottom);
42172
42171
  gt.nextElementSibling.offsetTop > gt.offsetTop + xt * 1.5 && bt.insert(`
42173
42172
  `);
42174
42173
  }
@@ -42176,7 +42175,7 @@ function requireQuill() {
42176
42175
  }
42177
42176
  function ni(gt, bt) {
42178
42177
  var xt = {}, At = gt.style || {};
42179
- return At.fontStyle && Ze(gt).fontStyle === "italic" && (xt.italic = !0), At.fontWeight && (Ze(gt).fontWeight.startsWith("bold") || parseInt(Ze(gt).fontWeight) >= 700) && (xt.bold = !0), Object.keys(xt).length > 0 && (bt = Ve(bt, xt)), parseFloat(At.textIndent || 0) > 0 && (bt = new pe.default().insert(" ").concat(bt)), bt;
42178
+ return At.fontStyle && Ye(gt).fontStyle === "italic" && (xt.italic = !0), At.fontWeight && (Ye(gt).fontWeight.startsWith("bold") || parseInt(Ye(gt).fontWeight) >= 700) && (xt.bold = !0), Object.keys(xt).length > 0 && (bt = Ve(bt, xt)), parseFloat(At.textIndent || 0) > 0 && (bt = new pe.default().insert(" ").concat(bt)), bt;
42180
42179
  }
42181
42180
  function Xt(gt, bt) {
42182
42181
  var xt = gt.data;
@@ -42184,7 +42183,7 @@ function requireQuill() {
42184
42183
  return bt.insert(xt.trim());
42185
42184
  if (xt.trim().length === 0 && gt.parentNode.classList.contains("ql-clipboard"))
42186
42185
  return bt;
42187
- if (!Ze(gt.parentNode).whiteSpace.startsWith("pre")) {
42186
+ if (!Ye(gt.parentNode).whiteSpace.startsWith("pre")) {
42188
42187
  var At = function(Pt, Ct) {
42189
42188
  return Ct = Ct.replace(/[^\u00a0]/g, ""), Ct.length < 1 && Pt ? " " : Ct;
42190
42189
  };
@@ -42385,15 +42384,15 @@ function requireQuill() {
42385
42384
  } else
42386
42385
  je.classList.contains("ql-active") ? Ke = !1 : Ke = je.value || !je.hasAttribute("value"), Je.preventDefault();
42387
42386
  We.quill.focus();
42388
- var Be = We.quill.selection.getRange(), Ve = re(Be, 1), Ze = Ve[0];
42387
+ var Be = We.quill.selection.getRange(), Ve = re(Be, 1), Ye = Ve[0];
42389
42388
  if (We.handlers[Ge] != null)
42390
42389
  We.handlers[Ge].call(We, Ke);
42391
42390
  else if (ce.default.query(Ge).prototype instanceof ce.default.Embed) {
42392
42391
  if (Ke = prompt("Enter " + Ge), !Ke) return;
42393
- We.quill.updateContents(new oe.default().retain(Ze.index).delete(Ze.length).insert(ye({}, Ge, Ke)), he.default.sources.USER);
42392
+ We.quill.updateContents(new oe.default().retain(Ye.index).delete(Ye.length).insert(ye({}, Ge, Ke)), he.default.sources.USER);
42394
42393
  } else
42395
42394
  We.quill.format(Ge, Ke, he.default.sources.USER);
42396
- We.update(Ze);
42395
+ We.update(Ye);
42397
42396
  }), this.controls.push([Ge, je]);
42398
42397
  }
42399
42398
  }
@@ -42835,7 +42834,7 @@ function requireQuill() {
42835
42834
  Object.defineProperty(X, "__esModule", {
42836
42835
  value: !0
42837
42836
  });
42838
- var re = te(29), ne = $t(re), de = te(37), oe = te(39), ue = te(65), ce = te(66), pe = $t(ce), he = te(67), fe = $t(he), be = te(68), ve = $t(be), _e = te(38), me = te(26), ye = te(40), we = te(41), ge = te(57), Ce = $t(ge), qe = te(69), Le = $t(qe), Fe = te(27), ze = $t(Fe), De = te(70), Se = $t(De), Oe = te(71), Ie = $t(Oe), Ne = te(72), je = $t(Ne), We = te(73), Ge = $t(We), ft = te(74), Je = $t(ft), Ke = te(13), Me = $t(Ke), Be = te(75), Ve = $t(Be), Ze = te(76), Qe = $t(Ze), Ue = te(58), Ye = $t(Ue), it = te(42), nt = $t(it), mt = te(28), wt = $t(mt), qt = te(60), Ft = $t(qt), Nt = te(61), Ut = $t(Nt), ni = te(62), Xt = $t(ni), gt = te(109), bt = $t(gt), xt = te(63), At = $t(xt);
42837
+ var re = te(29), ne = $t(re), de = te(37), oe = te(39), ue = te(65), ce = te(66), pe = $t(ce), he = te(67), fe = $t(he), be = te(68), ve = $t(be), _e = te(38), me = te(26), ye = te(40), we = te(41), ge = te(57), Ce = $t(ge), qe = te(69), Le = $t(qe), Fe = te(27), ze = $t(Fe), De = te(70), Se = $t(De), Oe = te(71), Ie = $t(Oe), Ne = te(72), je = $t(Ne), We = te(73), Ge = $t(We), ft = te(74), Je = $t(ft), Ke = te(13), Me = $t(Ke), Be = te(75), Ve = $t(Be), Ye = te(76), Qe = $t(Ye), Ue = te(58), Ze = $t(Ue), it = te(42), nt = $t(it), mt = te(28), wt = $t(mt), qt = te(60), Ft = $t(qt), Nt = te(61), Ut = $t(Nt), ni = te(62), Xt = $t(ni), gt = te(109), bt = $t(gt), xt = te(63), At = $t(xt);
42839
42838
  function $t(Pt) {
42840
42839
  return Pt && Pt.__esModule ? Pt : { default: Pt };
42841
42840
  }
@@ -42877,7 +42876,7 @@ function requireQuill() {
42877
42876
  "formats/list/item": be.ListItem,
42878
42877
  "modules/formula": Ve.default,
42879
42878
  "modules/syntax": Qe.default,
42880
- "modules/toolbar": Ye.default,
42879
+ "modules/toolbar": Ze.default,
42881
42880
  "themes/bubble": bt.default,
42882
42881
  "themes/snow": At.default,
42883
42882
  "ui/icons": nt.default,
@@ -44055,7 +44054,7 @@ const TOOLBAR_OPTION_ALIASES = {
44055
44054
  background: { background: [] },
44056
44055
  font: { font: [] },
44057
44056
  align: { align: [] }
44058
- }, Yi = class Yi extends h$t {
44057
+ }, Zi = class Zi extends h$t {
44059
44058
  constructor() {
44060
44059
  super(...arguments), this.textChangeTimeout = null, this.availableOptions = [
44061
44060
  "bold",
@@ -44207,10 +44206,10 @@ const TOOLBAR_OPTION_ALIASES = {
44207
44206
  return this.quill.getSelection();
44208
44207
  }
44209
44208
  };
44210
- Yi.styles = i$13`
44209
+ Zi.styles = i$13`
44211
44210
  ${r$W(styles$2)}
44212
44211
  `;
44213
- let PrimariaRichTextEditor = Yi;
44212
+ let PrimariaRichTextEditor = Zi;
44214
44213
  __decorateClass$4([
44215
44214
  n$C()
44216
44215
  ], PrimariaRichTextEditor.prototype, "quill");
@@ -44235,7 +44234,7 @@ var __defProp$3 = Object.defineProperty, __decorateClass$3 = (W, H, J, X) => {
44235
44234
  (ne = W[re]) && (te = ne(H, J, te) || te);
44236
44235
  return te && __defProp$3(H, J, te), te;
44237
44236
  };
44238
- const Zi = class Zi extends h$t {
44237
+ const Yi = class Yi extends h$t {
44239
44238
  constructor() {
44240
44239
  super(...arguments), this.characterCount = 0, this.characterLimit = 0, this.label = "";
44241
44240
  }
@@ -44250,10 +44249,10 @@ const Zi = class Zi extends h$t {
44250
44249
  ` : D$3;
44251
44250
  }
44252
44251
  };
44253
- Zi.styles = i$13`
44252
+ Yi.styles = i$13`
44254
44253
  ${r$W(styles$1)}
44255
44254
  `;
44256
- let PrimariaCharacterLimitBadge = Zi;
44255
+ let PrimariaCharacterLimitBadge = Yi;
44257
44256
  __decorateClass$3([
44258
44257
  n$C({ type: Number })
44259
44258
  ], PrimariaCharacterLimitBadge.prototype, "characterCount");
@@ -45165,7 +45164,7 @@ class a extends HTMLElement {
45165
45164
  this.reactRoot && this.reactRoot.unmount();
45166
45165
  }
45167
45166
  renderReact() {
45168
- this.reactRoot && this.reactRoot.render(r$Y.createElement(this.jsx, { ...this.props }));
45167
+ this.reactRoot && this.reactRoot.render(r$X.createElement(this.jsx, { ...this.props }));
45169
45168
  }
45170
45169
  }
45171
45170
  const s = "ux-react-web-component";
@@ -45223,4 +45222,4 @@ export {
45223
45222
  ExitShell as y,
45224
45223
  PrimariaContentSwitcher as z
45225
45224
  };
45226
- //# sourceMappingURL=index-xt4GWX2V.js.map
45225
+ //# sourceMappingURL=index-CC8ByFz7.js.map