sprintify-ui 0.0.109 → 0.0.111

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import cs from "axios";
2
- import { defineComponent as me, inject as ze, resolveComponent as Ke, openBlock as F, createBlock as Se, withCtx as pe, createElementVNode as R, normalizeClass as ue, withModifiers as Bt, renderSlot as ke, createElementBlock as J, createCommentVNode as we, toDisplayString as xe, h as Ge, unref as $, computed as Y, ref as ie, watch as je, Teleport as In, createVNode as he, Transition as kt, TransitionGroup as Pl, Fragment as Le, renderList as Re, normalizeStyle as Qe, onMounted as Ve, withDirectives as lt, isRef as On, vModelSelect as Br, normalizeProps as at, guardReactiveProps as st, vShow as Qt, mergeProps as Lt, resolveDynamicComponent as Nn, createTextVNode as xt, onBeforeUnmount as yn, cloneVNode as fs, provide as $e, watchEffect as _t, nextTick as Ze, onUnmounted as Ut, reactive as ds, withKeys as Yi, vModelText as Qi, useSlots as hs, createStaticVNode as $l, getCurrentInstance as ps, pushScopeId as vs, popScopeId as ms, createSlots as ys, readonly as Rr } from "vue";
2
+ import { defineComponent as me, inject as ze, resolveComponent as Ke, openBlock as F, createBlock as Se, withCtx as pe, createElementVNode as R, normalizeClass as ue, withModifiers as Bt, renderSlot as ke, createElementBlock as J, createCommentVNode as we, toDisplayString as xe, h as Ge, unref as $, computed as Y, ref as ie, watch as je, Teleport as In, createVNode as he, Transition as kt, TransitionGroup as Pl, Fragment as Le, renderList as Re, normalizeStyle as Ze, onMounted as Ve, withDirectives as lt, isRef as On, vModelSelect as Br, normalizeProps as at, guardReactiveProps as st, vShow as Qt, nextTick as We, mergeProps as Lt, resolveDynamicComponent as Nn, createTextVNode as xt, onBeforeUnmount as yn, cloneVNode as fs, provide as $e, watchEffect as _t, onUnmounted as Ut, reactive as ds, withKeys as Yi, vModelText as Qi, useSlots as hs, createStaticVNode as $l, getCurrentInstance as ps, pushScopeId as vs, popScopeId as ms, createSlots as ys, readonly as Rr } from "vue";
3
3
  import { useI18n as Pt, createI18n as gs } from "vue-i18n";
4
4
  import { defineStore as ko } from "pinia";
5
5
  import el from "qs";
@@ -1589,7 +1589,7 @@ var Ur = {}, Du = {
1589
1589
  }), i.d(n, "addScrollableSelector", function() {
1590
1590
  return P;
1591
1591
  }), i.d(n, "removeScrollableSelector", function() {
1592
- return L;
1592
+ return C;
1593
1593
  }), i.d(n, "addLockableTarget", function() {
1594
1594
  return D;
1595
1595
  }), i.d(n, "addLockableSelector", function() {
@@ -1631,7 +1631,7 @@ var Ur = {}, Du = {
1631
1631
  startTouchY: 0,
1632
1632
  startTouchX: 0
1633
1633
  }, b = function(Q) {
1634
- x.queue <= 0 && (x.scroll = !1, C(), Ee()), le(Q), x.queue++;
1634
+ x.queue <= 0 && (x.scroll = !1, L(), Ee()), le(Q), x.queue++;
1635
1635
  }, S = function(Q) {
1636
1636
  x.queue > 0 && x.queue--, x.queue <= 0 && (x.scroll = !0, z(), Oe()), V(Q);
1637
1637
  }, T = function() {
@@ -1690,7 +1690,7 @@ var Ur = {}, Du = {
1690
1690
  x.scrollableSelectors.push(_e);
1691
1691
  });
1692
1692
  }
1693
- }, L = function(Q) {
1693
+ }, C = function(Q) {
1694
1694
  if (Q) {
1695
1695
  var ve = l(Q);
1696
1696
  ve.map(function(_e) {
@@ -1706,14 +1706,14 @@ var Ur = {}, Du = {
1706
1706
  p(_e, function(Ae) {
1707
1707
  a(Ae) ? Ae.setAttribute("data-scroll-lock-lockable", "") : d('"'.concat(Ae, '" is not a Element.'));
1708
1708
  });
1709
- }), T() || C();
1709
+ }), T() || L();
1710
1710
  }
1711
1711
  }, H = function(Q) {
1712
1712
  if (Q) {
1713
1713
  var ve = l(Q);
1714
1714
  ve.map(function(_e) {
1715
1715
  x.lockableSelectors.push(_e);
1716
- }), T() || C(), ee(Q);
1716
+ }), T() || L(), ee(Q);
1717
1717
  }
1718
1718
  }, ne = function(Q) {
1719
1719
  if (Q)
@@ -1760,7 +1760,7 @@ Available fill gap methods: `).concat(ve, "."));
1760
1760
  }
1761
1761
  }, I = function() {
1762
1762
  x.scroll || Ee();
1763
- }, C = function() {
1763
+ }, L = function() {
1764
1764
  var Q = c(x.lockableSelectors);
1765
1765
  te(Q);
1766
1766
  }, z = function() {
@@ -1921,7 +1921,7 @@ Available fill gap methods: `).concat(ve, "."));
1921
1921
  getPageScrollBarWidth: K,
1922
1922
  getCurrentPageScrollBarWidth: G,
1923
1923
  addScrollableSelector: P,
1924
- removeScrollableSelector: L,
1924
+ removeScrollableSelector: C,
1925
1925
  addScrollableTarget: le,
1926
1926
  removeScrollableTarget: V,
1927
1927
  addLockableSelector: H,
@@ -2200,7 +2200,7 @@ const $r = /* @__PURE__ */ me({
2200
2200
  }, [
2201
2201
  R("div", {
2202
2202
  class: "animate-shimmer absolute inset-0 -translate-x-full border-t border-white/80 bg-gradient-to-r from-transparent via-white/80 to-transparent",
2203
- style: Qe({
2203
+ style: Ze({
2204
2204
  animationDelay: e.delay
2205
2205
  })
2206
2206
  }, null, 4),
@@ -2568,9 +2568,9 @@ const ea = /* @__PURE__ */ ht(ec, [["render", ic]]), oc = { class: "relative w-f
2568
2568
  const k = (V) => {
2569
2569
  y(), s.value = !0, _(an(V, "target.value") + ""), r("typing", d.value), d.value == "" && !n.showEmptyOption && E(null);
2570
2570
  }, m = (V) => {
2571
- var L;
2571
+ var C;
2572
2572
  const P = V.key;
2573
- if ((L = u.value) == null || L.onKeydown(V), P === "ArrowUp") {
2573
+ if ((C = u.value) == null || C.onKeydown(V), P === "ArrowUp") {
2574
2574
  V.preventDefault();
2575
2575
  return;
2576
2576
  }
@@ -2608,14 +2608,16 @@ const ea = /* @__PURE__ */ ht(ec, [["render", ic]]), oc = { class: "relative w-f
2608
2608
  je(
2609
2609
  () => n.select,
2610
2610
  (V) => {
2611
- V && V.options.length > 0 && (T.value = V.options[0][V.valueKey]);
2611
+ V ? V.option ? T.value = V.option.value : V.options.length && (T.value = V.options[0].value) : T.value = null;
2612
2612
  },
2613
2613
  { immediate: !0 }
2614
2614
  );
2615
2615
  function N(V) {
2616
- x(), y(), S();
2617
- const P = an(V, "target.value", null);
2618
- n.select && n.select.onChange && n.select.onChange(P), r("select", P);
2616
+ var D;
2617
+ const P = an(V, "target.value", null), C = (D = n.select) == null ? void 0 : D.options.find((H) => H.value == P);
2618
+ n.select && n.select.onChange && n.select.onChange(C ?? null), r("select", P), We(() => {
2619
+ x(), y(), S();
2620
+ });
2619
2621
  }
2620
2622
  const M = {
2621
2623
  focus: x,
@@ -2638,7 +2640,7 @@ const ea = /* @__PURE__ */ ht(ec, [["render", ic]]), oc = { class: "relative w-f
2638
2640
  R("div", yc, [
2639
2641
  e.select ? lt((F(), J("select", {
2640
2642
  key: 0,
2641
- "onUpdate:modelValue": P[0] || (P[0] = (L) => On(T) ? T.value = L : null),
2643
+ "onUpdate:modelValue": P[0] || (P[0] = (C) => On(T) ? T.value = C : null),
2642
2644
  disabled: e.disabled,
2643
2645
  class: ue(["rounded-l border-r-transparent focus:z-[1] focus:border-r-blue-500 disabled:cursor-not-allowed disabled:text-slate-300 disabled:opacity-100", [
2644
2646
  $(i) ? "border-red-600" : "border-slate-300",
@@ -2646,10 +2648,10 @@ const ea = /* @__PURE__ */ ht(ec, [["render", ic]]), oc = { class: "relative w-f
2646
2648
  ]]),
2647
2649
  onChange: N
2648
2650
  }, [
2649
- (F(!0), J(Le, null, Re(e.select.options, (L) => (F(), J("option", {
2650
- key: L[e.select.valueKey],
2651
- value: L[e.select.valueKey]
2652
- }, xe(L[e.select.labelKey]), 9, bc))), 128))
2651
+ (F(!0), J(Le, null, Re(e.select.options, (C) => (F(), J("option", {
2652
+ key: C.value + "",
2653
+ value: C.value
2654
+ }, xe(C.label), 9, bc))), 128))
2653
2655
  ], 42, gc)), [
2654
2656
  [Br, $(T)]
2655
2657
  ]) : we("", !0),
@@ -2689,7 +2691,7 @@ const ea = /* @__PURE__ */ ht(ec, [["render", ic]]), oc = { class: "relative w-f
2689
2691
  R("button", {
2690
2692
  type: "button",
2691
2693
  class: "group flex h-full items-center rounded p-1.5 enabled:hover:bg-slate-100",
2692
- onClick: P[1] || (P[1] = (L) => O())
2694
+ onClick: P[1] || (P[1] = (C) => O())
2693
2695
  }, [
2694
2696
  he($(qe), {
2695
2697
  icon: "heroicons:x-mark",
@@ -2715,16 +2717,16 @@ const ea = /* @__PURE__ */ ht(ec, [["render", ic]]), oc = { class: "relative w-f
2715
2717
  "drawer-class": e.inline ? "pt-1" : "p-1",
2716
2718
  keywords: $(d),
2717
2719
  onSelect: A,
2718
- onScrollBottom: P[2] || (P[2] = (L) => r("scrollBottom"))
2720
+ onScrollBottom: P[2] || (P[2] = (C) => r("scrollBottom"))
2719
2721
  }, {
2720
- empty: pe((L) => [
2721
- ke(V.$slots, "empty", at(st({ ...L, ...M })))
2722
+ empty: pe((C) => [
2723
+ ke(V.$slots, "empty", at(st({ ...C, ...M })))
2722
2724
  ]),
2723
- option: pe((L) => [
2724
- ke(V.$slots, "option", at(st({ ...L, ...M })))
2725
+ option: pe((C) => [
2726
+ ke(V.$slots, "option", at(st({ ...C, ...M })))
2725
2727
  ]),
2726
- footer: pe((L) => [
2727
- ke(V.$slots, "footer", at(st({ ...L, ...M })))
2728
+ footer: pe((C) => [
2729
+ ke(V.$slots, "footer", at(st({ ...C, ...M })))
2728
2730
  ]),
2729
2731
  _: 3
2730
2732
  }, 8, ["selected", "options", "size", "loading", "loading-bottom", "drawer-class", "keywords"])
@@ -2981,7 +2983,7 @@ const ea = /* @__PURE__ */ ht(ec, [["render", ic]]), oc = { class: "relative w-f
2981
2983
  $(n),
2982
2984
  e.detailsPosition == "left" ? "order-1 text-right" : "order-2 text-left"
2983
2985
  ]]),
2984
- style: Qe({
2986
+ style: Ze({
2985
2987
  marginLeft: e.detailsPosition == "right" ? $(i) : "0",
2986
2988
  marginRight: e.detailsPosition == "left" ? $(i) : "0"
2987
2989
  })
@@ -3033,7 +3035,7 @@ const ea = /* @__PURE__ */ ht(ec, [["render", ic]]), oc = { class: "relative w-f
3033
3035
  class: "shrink-0",
3034
3036
  "aria-label": l.full_name + `
3035
3037
  ` + l.email,
3036
- style: Qe({
3038
+ style: Ze({
3037
3039
  marginLeft: a === 0 ? "0" : "-" + $(r)
3038
3040
  })
3039
3041
  }, [
@@ -3081,7 +3083,7 @@ const ea = /* @__PURE__ */ ht(ec, [["render", ic]]), oc = { class: "relative w-f
3081
3083
  }), i = Y(() => o.size == "base" ? "px-2.5 py-0.5 text-xs" : o.size == "lg" ? "px-3 py-0.5 text-sm" : "px-2.5 py-0.5 text-xs"), l = Y(() => o.size == "base" ? "h-3 w-3 mr-1 -ml-0.5" : o.size == "lg" ? "h-4 w-4 mr-1 -ml-0.5" : "h-3 w-3 mr-1 -ml-0.5");
3082
3084
  return (a, u) => (F(), J("span", {
3083
3085
  class: ue(["inline-flex items-center rounded-full font-medium", [$(r), $(i)]]),
3084
- style: Qe($(n))
3086
+ style: Ze($(n))
3085
3087
  }, [
3086
3088
  e.icon ? (F(), Se($(qe), {
3087
3089
  key: 0,
@@ -3485,11 +3487,11 @@ const Qc = /* @__PURE__ */ ht(Hc, [["render", Yc]]), Zc = ["type", "disabled", "
3485
3487
  }
3486
3488
  return (d, c) => (F(), J("div", {
3487
3489
  class: "flex flex-wrap",
3488
- style: Qe({ margin: "-" + e.spacing })
3490
+ style: Ze({ margin: "-" + e.spacing })
3489
3491
  }, [
3490
3492
  (F(!0), J(Le, null, Re($(l), (f) => (F(), J("div", {
3491
3493
  key: f.value ? f.value : "null",
3492
- style: Qe({ padding: e.spacing })
3494
+ style: Ze({ padding: e.spacing })
3493
3495
  }, [
3494
3496
  R("button", {
3495
3497
  type: e.buttonType,
@@ -3748,7 +3750,7 @@ const qo = /* @__PURE__ */ ht(Xc, [["render", ef]]), tf = {
3748
3750
  }, {
3749
3751
  option: pe((a) => [
3750
3752
  R("div", {
3751
- style: Qe({ backgroundColor: a.option.value + "" }),
3753
+ style: Ze({ backgroundColor: a.option.value + "" }),
3752
3754
  class: ue(["rounded-md border-none p-3", [
3753
3755
  a.selected.value ? "text-white" : "text-transparent",
3754
3756
  e.disabled ? " cursor-not-allowed opacity-50" : ""
@@ -4089,17 +4091,17 @@ Use "options.replacer" or "options.ignoreUnknown"
4089
4091
  }, { buffer: 3, lYpoI2: 11 }], 3: [function(r, n, i) {
4090
4092
  (function(l, a, h, p, d, c, f, s, v) {
4091
4093
  var g = r("base64-js"), w = r("ieee754");
4092
- function h(I, C, z) {
4094
+ function h(I, L, z) {
4093
4095
  if (!(this instanceof h))
4094
- return new h(I, C, z);
4096
+ return new h(I, L, z);
4095
4097
  var te, re, se, de, Ee = typeof I;
4096
- if (C === "base64" && Ee == "string")
4098
+ if (L === "base64" && Ee == "string")
4097
4099
  for (I = (de = I).trim ? de.trim() : de.replace(/^\s+|\s+$/g, ""); I.length % 4 != 0; )
4098
4100
  I += "=";
4099
4101
  if (Ee == "number")
4100
4102
  te = le(I);
4101
4103
  else if (Ee == "string")
4102
- te = h.byteLength(I, C);
4104
+ te = h.byteLength(I, L);
4103
4105
  else {
4104
4106
  if (Ee != "object")
4105
4107
  throw new Error("First argument needs to be a number, array or string.");
@@ -4111,87 +4113,87 @@ Use "options.replacer" or "options.ignoreUnknown"
4111
4113
  for (se = 0; se < te; se++)
4112
4114
  h.isBuffer(I) ? re[se] = I.readUInt8(se) : re[se] = I[se];
4113
4115
  else if (Ee == "string")
4114
- re.write(I, 0, C);
4116
+ re.write(I, 0, L);
4115
4117
  else if (Ee == "number" && !h._useTypedArrays && !z)
4116
4118
  for (se = 0; se < te; se++)
4117
4119
  re[se] = 0;
4118
4120
  return re;
4119
4121
  }
4120
- function y(I, C, z, te) {
4122
+ function y(I, L, z, te) {
4121
4123
  return h._charsWritten = H(function(re) {
4122
4124
  for (var se = [], de = 0; de < re.length; de++)
4123
4125
  se.push(255 & re.charCodeAt(de));
4124
4126
  return se;
4125
- }(C), I, z, te);
4127
+ }(L), I, z, te);
4126
4128
  }
4127
- function t(I, C, z, te) {
4129
+ function t(I, L, z, te) {
4128
4130
  return h._charsWritten = H(function(re) {
4129
4131
  for (var se, de, Ee = [], Oe = 0; Oe < re.length; Oe++)
4130
4132
  de = re.charCodeAt(Oe), se = de >> 8, de = de % 256, Ee.push(de), Ee.push(se);
4131
4133
  return Ee;
4132
- }(C), I, z, te);
4134
+ }(L), I, z, te);
4133
4135
  }
4134
- function k(I, C, z) {
4136
+ function k(I, L, z) {
4135
4137
  var te = "";
4136
4138
  z = Math.min(I.length, z);
4137
- for (var re = C; re < z; re++)
4139
+ for (var re = L; re < z; re++)
4138
4140
  te += String.fromCharCode(I[re]);
4139
4141
  return te;
4140
4142
  }
4141
- function m(I, C, z, se) {
4142
- se || (W(typeof z == "boolean", "missing or invalid endian"), W(C != null, "missing offset"), W(C + 1 < I.length, "Trying to read beyond buffer length"));
4143
+ function m(I, L, z, se) {
4144
+ se || (W(typeof z == "boolean", "missing or invalid endian"), W(L != null, "missing offset"), W(L + 1 < I.length, "Trying to read beyond buffer length"));
4143
4145
  var re, se = I.length;
4144
- if (!(se <= C))
4145
- return z ? (re = I[C], C + 1 < se && (re |= I[C + 1] << 8)) : (re = I[C] << 8, C + 1 < se && (re |= I[C + 1])), re;
4146
+ if (!(se <= L))
4147
+ return z ? (re = I[L], L + 1 < se && (re |= I[L + 1] << 8)) : (re = I[L] << 8, L + 1 < se && (re |= I[L + 1])), re;
4146
4148
  }
4147
- function O(I, C, z, se) {
4148
- se || (W(typeof z == "boolean", "missing or invalid endian"), W(C != null, "missing offset"), W(C + 3 < I.length, "Trying to read beyond buffer length"));
4149
+ function O(I, L, z, se) {
4150
+ se || (W(typeof z == "boolean", "missing or invalid endian"), W(L != null, "missing offset"), W(L + 3 < I.length, "Trying to read beyond buffer length"));
4149
4151
  var re, se = I.length;
4150
- if (!(se <= C))
4151
- return z ? (C + 2 < se && (re = I[C + 2] << 16), C + 1 < se && (re |= I[C + 1] << 8), re |= I[C], C + 3 < se && (re += I[C + 3] << 24 >>> 0)) : (C + 1 < se && (re = I[C + 1] << 16), C + 2 < se && (re |= I[C + 2] << 8), C + 3 < se && (re |= I[C + 3]), re += I[C] << 24 >>> 0), re;
4152
+ if (!(se <= L))
4153
+ return z ? (L + 2 < se && (re = I[L + 2] << 16), L + 1 < se && (re |= I[L + 1] << 8), re |= I[L], L + 3 < se && (re += I[L + 3] << 24 >>> 0)) : (L + 1 < se && (re = I[L + 1] << 16), L + 2 < se && (re |= I[L + 2] << 8), L + 3 < se && (re |= I[L + 3]), re += I[L] << 24 >>> 0), re;
4152
4154
  }
4153
- function A(I, C, z, te) {
4154
- if (te || (W(typeof z == "boolean", "missing or invalid endian"), W(C != null, "missing offset"), W(C + 1 < I.length, "Trying to read beyond buffer length")), !(I.length <= C))
4155
- return te = m(I, C, z, !0), 32768 & te ? -1 * (65535 - te + 1) : te;
4155
+ function A(I, L, z, te) {
4156
+ if (te || (W(typeof z == "boolean", "missing or invalid endian"), W(L != null, "missing offset"), W(L + 1 < I.length, "Trying to read beyond buffer length")), !(I.length <= L))
4157
+ return te = m(I, L, z, !0), 32768 & te ? -1 * (65535 - te + 1) : te;
4156
4158
  }
4157
- function E(I, C, z, te) {
4158
- if (te || (W(typeof z == "boolean", "missing or invalid endian"), W(C != null, "missing offset"), W(C + 3 < I.length, "Trying to read beyond buffer length")), !(I.length <= C))
4159
- return te = O(I, C, z, !0), 2147483648 & te ? -1 * (4294967295 - te + 1) : te;
4159
+ function E(I, L, z, te) {
4160
+ if (te || (W(typeof z == "boolean", "missing or invalid endian"), W(L != null, "missing offset"), W(L + 3 < I.length, "Trying to read beyond buffer length")), !(I.length <= L))
4161
+ return te = O(I, L, z, !0), 2147483648 & te ? -1 * (4294967295 - te + 1) : te;
4160
4162
  }
4161
- function _(I, C, z, te) {
4162
- return te || (W(typeof z == "boolean", "missing or invalid endian"), W(C + 3 < I.length, "Trying to read beyond buffer length")), w.read(I, C, z, 23, 4);
4163
+ function _(I, L, z, te) {
4164
+ return te || (W(typeof z == "boolean", "missing or invalid endian"), W(L + 3 < I.length, "Trying to read beyond buffer length")), w.read(I, L, z, 23, 4);
4163
4165
  }
4164
- function x(I, C, z, te) {
4165
- return te || (W(typeof z == "boolean", "missing or invalid endian"), W(C + 7 < I.length, "Trying to read beyond buffer length")), w.read(I, C, z, 52, 8);
4166
+ function x(I, L, z, te) {
4167
+ return te || (W(typeof z == "boolean", "missing or invalid endian"), W(L + 7 < I.length, "Trying to read beyond buffer length")), w.read(I, L, z, 52, 8);
4166
4168
  }
4167
- function b(I, C, z, te, re) {
4168
- if (re || (W(C != null, "missing value"), W(typeof te == "boolean", "missing or invalid endian"), W(z != null, "missing offset"), W(z + 1 < I.length, "trying to write beyond buffer length"), Z(C, 65535)), re = I.length, !(re <= z))
4169
+ function b(I, L, z, te, re) {
4170
+ if (re || (W(L != null, "missing value"), W(typeof te == "boolean", "missing or invalid endian"), W(z != null, "missing offset"), W(z + 1 < I.length, "trying to write beyond buffer length"), Z(L, 65535)), re = I.length, !(re <= z))
4169
4171
  for (var se = 0, de = Math.min(re - z, 2); se < de; se++)
4170
- I[z + se] = (C & 255 << 8 * (te ? se : 1 - se)) >>> 8 * (te ? se : 1 - se);
4172
+ I[z + se] = (L & 255 << 8 * (te ? se : 1 - se)) >>> 8 * (te ? se : 1 - se);
4171
4173
  }
4172
- function S(I, C, z, te, re) {
4173
- if (re || (W(C != null, "missing value"), W(typeof te == "boolean", "missing or invalid endian"), W(z != null, "missing offset"), W(z + 3 < I.length, "trying to write beyond buffer length"), Z(C, 4294967295)), re = I.length, !(re <= z))
4174
+ function S(I, L, z, te, re) {
4175
+ if (re || (W(L != null, "missing value"), W(typeof te == "boolean", "missing or invalid endian"), W(z != null, "missing offset"), W(z + 3 < I.length, "trying to write beyond buffer length"), Z(L, 4294967295)), re = I.length, !(re <= z))
4174
4176
  for (var se = 0, de = Math.min(re - z, 4); se < de; se++)
4175
- I[z + se] = C >>> 8 * (te ? se : 3 - se) & 255;
4177
+ I[z + se] = L >>> 8 * (te ? se : 3 - se) & 255;
4176
4178
  }
4177
- function T(I, C, z, te, re) {
4178
- re || (W(C != null, "missing value"), W(typeof te == "boolean", "missing or invalid endian"), W(z != null, "missing offset"), W(z + 1 < I.length, "Trying to write beyond buffer length"), U(C, 32767, -32768)), I.length <= z || b(I, 0 <= C ? C : 65535 + C + 1, z, te, re);
4179
+ function T(I, L, z, te, re) {
4180
+ re || (W(L != null, "missing value"), W(typeof te == "boolean", "missing or invalid endian"), W(z != null, "missing offset"), W(z + 1 < I.length, "Trying to write beyond buffer length"), U(L, 32767, -32768)), I.length <= z || b(I, 0 <= L ? L : 65535 + L + 1, z, te, re);
4179
4181
  }
4180
- function N(I, C, z, te, re) {
4181
- re || (W(C != null, "missing value"), W(typeof te == "boolean", "missing or invalid endian"), W(z != null, "missing offset"), W(z + 3 < I.length, "Trying to write beyond buffer length"), U(C, 2147483647, -2147483648)), I.length <= z || S(I, 0 <= C ? C : 4294967295 + C + 1, z, te, re);
4182
+ function N(I, L, z, te, re) {
4183
+ re || (W(L != null, "missing value"), W(typeof te == "boolean", "missing or invalid endian"), W(z != null, "missing offset"), W(z + 3 < I.length, "Trying to write beyond buffer length"), U(L, 2147483647, -2147483648)), I.length <= z || S(I, 0 <= L ? L : 4294967295 + L + 1, z, te, re);
4182
4184
  }
4183
- function M(I, C, z, te, re) {
4184
- re || (W(C != null, "missing value"), W(typeof te == "boolean", "missing or invalid endian"), W(z != null, "missing offset"), W(z + 3 < I.length, "Trying to write beyond buffer length"), ee(C, 34028234663852886e22, -34028234663852886e22)), I.length <= z || w.write(I, C, z, te, 23, 4);
4185
+ function M(I, L, z, te, re) {
4186
+ re || (W(L != null, "missing value"), W(typeof te == "boolean", "missing or invalid endian"), W(z != null, "missing offset"), W(z + 3 < I.length, "Trying to write beyond buffer length"), ee(L, 34028234663852886e22, -34028234663852886e22)), I.length <= z || w.write(I, L, z, te, 23, 4);
4185
4187
  }
4186
- function q(I, C, z, te, re) {
4187
- re || (W(C != null, "missing value"), W(typeof te == "boolean", "missing or invalid endian"), W(z != null, "missing offset"), W(z + 7 < I.length, "Trying to write beyond buffer length"), ee(C, 17976931348623157e292, -17976931348623157e292)), I.length <= z || w.write(I, C, z, te, 52, 8);
4188
+ function q(I, L, z, te, re) {
4189
+ re || (W(L != null, "missing value"), W(typeof te == "boolean", "missing or invalid endian"), W(z != null, "missing offset"), W(z + 7 < I.length, "Trying to write beyond buffer length"), ee(L, 17976931348623157e292, -17976931348623157e292)), I.length <= z || w.write(I, L, z, te, 52, 8);
4188
4190
  }
4189
4191
  i.Buffer = h, i.SlowBuffer = h, i.INSPECT_MAX_BYTES = 50, h.poolSize = 8192, h._useTypedArrays = function() {
4190
4192
  try {
4191
- var I = new ArrayBuffer(0), C = new Uint8Array(I);
4192
- return C.foo = function() {
4193
+ var I = new ArrayBuffer(0), L = new Uint8Array(I);
4194
+ return L.foo = function() {
4193
4195
  return 42;
4194
- }, C.foo() === 42 && typeof C.subarray == "function";
4196
+ }, L.foo() === 42 && typeof L.subarray == "function";
4195
4197
  } catch {
4196
4198
  return !1;
4197
4199
  }
@@ -4214,15 +4216,15 @@ Use "options.replacer" or "options.ignoreUnknown"
4214
4216
  }
4215
4217
  }, h.isBuffer = function(I) {
4216
4218
  return !(I == null || !I._isBuffer);
4217
- }, h.byteLength = function(I, C) {
4219
+ }, h.byteLength = function(I, L) {
4218
4220
  var z;
4219
- switch (I += "", C || "utf8") {
4221
+ switch (I += "", L || "utf8") {
4220
4222
  case "hex":
4221
4223
  z = I.length / 2;
4222
4224
  break;
4223
4225
  case "utf8":
4224
4226
  case "utf-8":
4225
- z = L(I).length;
4227
+ z = C(I).length;
4226
4228
  break;
4227
4229
  case "ascii":
4228
4230
  case "binary":
@@ -4242,23 +4244,23 @@ Use "options.replacer" or "options.ignoreUnknown"
4242
4244
  throw new Error("Unknown encoding");
4243
4245
  }
4244
4246
  return z;
4245
- }, h.concat = function(I, C) {
4247
+ }, h.concat = function(I, L) {
4246
4248
  if (W(V(I), `Usage: Buffer.concat(list, [totalLength])
4247
4249
  list should be an Array.`), I.length === 0)
4248
4250
  return new h(0);
4249
4251
  if (I.length === 1)
4250
4252
  return I[0];
4251
- if (typeof C != "number")
4252
- for (re = C = 0; re < I.length; re++)
4253
- C += I[re].length;
4254
- for (var z = new h(C), te = 0, re = 0; re < I.length; re++) {
4253
+ if (typeof L != "number")
4254
+ for (re = L = 0; re < I.length; re++)
4255
+ L += I[re].length;
4256
+ for (var z = new h(L), te = 0, re = 0; re < I.length; re++) {
4255
4257
  var se = I[re];
4256
4258
  se.copy(z, te), te += se.length;
4257
4259
  }
4258
4260
  return z;
4259
- }, h.prototype.write = function(I, C, z, te) {
4260
- isFinite(C) ? isFinite(z) || (te = z, z = void 0) : (Oe = te, te = C, C = z, z = Oe), C = Number(C) || 0;
4261
- var re, se, de, Ee, Oe = this.length - C;
4261
+ }, h.prototype.write = function(I, L, z, te) {
4262
+ isFinite(L) ? isFinite(z) || (te = z, z = void 0) : (Oe = te, te = L, L = z, z = Oe), L = Number(L) || 0;
4263
+ var re, se, de, Ee, Oe = this.length - L;
4262
4264
  switch ((!z || Oe < (z = Number(z))) && (z = Oe), te = String(te || "utf8").toLowerCase()) {
4263
4265
  case "hex":
4264
4266
  re = function(oe, ae, ye, be) {
@@ -4270,32 +4272,32 @@ list should be an Array.`), I.length === 0)
4270
4272
  W(!isNaN(Ie), "Invalid hex string"), oe[ye + Be] = Ie;
4271
4273
  }
4272
4274
  return h._charsWritten = 2 * Be, Be;
4273
- }(this, I, C, z);
4275
+ }(this, I, L, z);
4274
4276
  break;
4275
4277
  case "utf8":
4276
4278
  case "utf-8":
4277
- se = this, de = C, Ee = z, re = h._charsWritten = H(L(I), se, de, Ee);
4279
+ se = this, de = L, Ee = z, re = h._charsWritten = H(C(I), se, de, Ee);
4278
4280
  break;
4279
4281
  case "ascii":
4280
4282
  case "binary":
4281
- re = y(this, I, C, z);
4283
+ re = y(this, I, L, z);
4282
4284
  break;
4283
4285
  case "base64":
4284
- se = this, de = C, Ee = z, re = h._charsWritten = H(D(I), se, de, Ee);
4286
+ se = this, de = L, Ee = z, re = h._charsWritten = H(D(I), se, de, Ee);
4285
4287
  break;
4286
4288
  case "ucs2":
4287
4289
  case "ucs-2":
4288
4290
  case "utf16le":
4289
4291
  case "utf-16le":
4290
- re = t(this, I, C, z);
4292
+ re = t(this, I, L, z);
4291
4293
  break;
4292
4294
  default:
4293
4295
  throw new Error("Unknown encoding");
4294
4296
  }
4295
4297
  return re;
4296
- }, h.prototype.toString = function(I, C, z) {
4298
+ }, h.prototype.toString = function(I, L, z) {
4297
4299
  var te, re, se, de, Ee = this;
4298
- if (I = String(I || "utf8").toLowerCase(), C = Number(C) || 0, (z = z !== void 0 ? Number(z) : Ee.length) === C)
4300
+ if (I = String(I || "utf8").toLowerCase(), L = Number(L) || 0, (z = z !== void 0 ? Number(z) : Ee.length) === L)
4299
4301
  return "";
4300
4302
  switch (I) {
4301
4303
  case "hex":
@@ -4305,7 +4307,7 @@ list should be an Array.`), I.length === 0)
4305
4307
  for (var be = "", fe = oe; fe < ae; fe++)
4306
4308
  be += P(Oe[fe]);
4307
4309
  return be;
4308
- }(Ee, C, z);
4310
+ }(Ee, L, z);
4309
4311
  break;
4310
4312
  case "utf8":
4311
4313
  case "utf-8":
@@ -4315,14 +4317,14 @@ list should be an Array.`), I.length === 0)
4315
4317
  for (var fe = oe; fe < ae; fe++)
4316
4318
  Oe[fe] <= 127 ? (ye += ne(be) + String.fromCharCode(Oe[fe]), be = "") : be += "%" + Oe[fe].toString(16);
4317
4319
  return ye + ne(be);
4318
- }(Ee, C, z);
4320
+ }(Ee, L, z);
4319
4321
  break;
4320
4322
  case "ascii":
4321
4323
  case "binary":
4322
- te = k(Ee, C, z);
4324
+ te = k(Ee, L, z);
4323
4325
  break;
4324
4326
  case "base64":
4325
- re = Ee, de = z, te = (se = C) === 0 && de === re.length ? g.fromByteArray(re) : g.fromByteArray(re.slice(se, de));
4327
+ re = Ee, de = z, te = (se = L) === 0 && de === re.length ? g.fromByteArray(re) : g.fromByteArray(re.slice(se, de));
4326
4328
  break;
4327
4329
  case "ucs2":
4328
4330
  case "ucs-2":
@@ -4332,7 +4334,7 @@ list should be an Array.`), I.length === 0)
4332
4334
  for (var ye = Oe.slice(oe, ae), be = "", fe = 0; fe < ye.length; fe += 2)
4333
4335
  be += String.fromCharCode(ye[fe] + 256 * ye[fe + 1]);
4334
4336
  return be;
4335
- }(Ee, C, z);
4337
+ }(Ee, L, z);
4336
4338
  break;
4337
4339
  default:
4338
4340
  throw new Error("Unknown encoding");
@@ -4340,93 +4342,93 @@ list should be an Array.`), I.length === 0)
4340
4342
  return te;
4341
4343
  }, h.prototype.toJSON = function() {
4342
4344
  return { type: "Buffer", data: Array.prototype.slice.call(this._arr || this, 0) };
4343
- }, h.prototype.copy = function(I, C, z, te) {
4344
- if (C = C || 0, (te = te || te === 0 ? te : this.length) !== (z = z || 0) && I.length !== 0 && this.length !== 0) {
4345
- W(z <= te, "sourceEnd < sourceStart"), W(0 <= C && C < I.length, "targetStart out of bounds"), W(0 <= z && z < this.length, "sourceStart out of bounds"), W(0 <= te && te <= this.length, "sourceEnd out of bounds"), te > this.length && (te = this.length);
4346
- var re = (te = I.length - C < te - z ? I.length - C + z : te) - z;
4345
+ }, h.prototype.copy = function(I, L, z, te) {
4346
+ if (L = L || 0, (te = te || te === 0 ? te : this.length) !== (z = z || 0) && I.length !== 0 && this.length !== 0) {
4347
+ W(z <= te, "sourceEnd < sourceStart"), W(0 <= L && L < I.length, "targetStart out of bounds"), W(0 <= z && z < this.length, "sourceStart out of bounds"), W(0 <= te && te <= this.length, "sourceEnd out of bounds"), te > this.length && (te = this.length);
4348
+ var re = (te = I.length - L < te - z ? I.length - L + z : te) - z;
4347
4349
  if (re < 100 || !h._useTypedArrays)
4348
4350
  for (var se = 0; se < re; se++)
4349
- I[se + C] = this[se + z];
4351
+ I[se + L] = this[se + z];
4350
4352
  else
4351
- I._set(this.subarray(z, z + re), C);
4353
+ I._set(this.subarray(z, z + re), L);
4352
4354
  }
4353
- }, h.prototype.slice = function(I, C) {
4355
+ }, h.prototype.slice = function(I, L) {
4354
4356
  var z = this.length;
4355
- if (I = G(I, z, 0), C = G(C, z, z), h._useTypedArrays)
4356
- return h._augment(this.subarray(I, C));
4357
- for (var te = C - I, re = new h(te, void 0, !0), se = 0; se < te; se++)
4357
+ if (I = G(I, z, 0), L = G(L, z, z), h._useTypedArrays)
4358
+ return h._augment(this.subarray(I, L));
4359
+ for (var te = L - I, re = new h(te, void 0, !0), se = 0; se < te; se++)
4358
4360
  re[se] = this[se + I];
4359
4361
  return re;
4360
4362
  }, h.prototype.get = function(I) {
4361
4363
  return console.log(".get() is deprecated. Access using array indexes instead."), this.readUInt8(I);
4362
- }, h.prototype.set = function(I, C) {
4363
- return console.log(".set() is deprecated. Access using array indexes instead."), this.writeUInt8(I, C);
4364
- }, h.prototype.readUInt8 = function(I, C) {
4365
- if (C || (W(I != null, "missing offset"), W(I < this.length, "Trying to read beyond buffer length")), !(I >= this.length))
4364
+ }, h.prototype.set = function(I, L) {
4365
+ return console.log(".set() is deprecated. Access using array indexes instead."), this.writeUInt8(I, L);
4366
+ }, h.prototype.readUInt8 = function(I, L) {
4367
+ if (L || (W(I != null, "missing offset"), W(I < this.length, "Trying to read beyond buffer length")), !(I >= this.length))
4366
4368
  return this[I];
4367
- }, h.prototype.readUInt16LE = function(I, C) {
4368
- return m(this, I, !0, C);
4369
- }, h.prototype.readUInt16BE = function(I, C) {
4370
- return m(this, I, !1, C);
4371
- }, h.prototype.readUInt32LE = function(I, C) {
4372
- return O(this, I, !0, C);
4373
- }, h.prototype.readUInt32BE = function(I, C) {
4374
- return O(this, I, !1, C);
4375
- }, h.prototype.readInt8 = function(I, C) {
4376
- if (C || (W(I != null, "missing offset"), W(I < this.length, "Trying to read beyond buffer length")), !(I >= this.length))
4369
+ }, h.prototype.readUInt16LE = function(I, L) {
4370
+ return m(this, I, !0, L);
4371
+ }, h.prototype.readUInt16BE = function(I, L) {
4372
+ return m(this, I, !1, L);
4373
+ }, h.prototype.readUInt32LE = function(I, L) {
4374
+ return O(this, I, !0, L);
4375
+ }, h.prototype.readUInt32BE = function(I, L) {
4376
+ return O(this, I, !1, L);
4377
+ }, h.prototype.readInt8 = function(I, L) {
4378
+ if (L || (W(I != null, "missing offset"), W(I < this.length, "Trying to read beyond buffer length")), !(I >= this.length))
4377
4379
  return 128 & this[I] ? -1 * (255 - this[I] + 1) : this[I];
4378
- }, h.prototype.readInt16LE = function(I, C) {
4379
- return A(this, I, !0, C);
4380
- }, h.prototype.readInt16BE = function(I, C) {
4381
- return A(this, I, !1, C);
4382
- }, h.prototype.readInt32LE = function(I, C) {
4383
- return E(this, I, !0, C);
4384
- }, h.prototype.readInt32BE = function(I, C) {
4385
- return E(this, I, !1, C);
4386
- }, h.prototype.readFloatLE = function(I, C) {
4387
- return _(this, I, !0, C);
4388
- }, h.prototype.readFloatBE = function(I, C) {
4389
- return _(this, I, !1, C);
4390
- }, h.prototype.readDoubleLE = function(I, C) {
4391
- return x(this, I, !0, C);
4392
- }, h.prototype.readDoubleBE = function(I, C) {
4393
- return x(this, I, !1, C);
4394
- }, h.prototype.writeUInt8 = function(I, C, z) {
4395
- z || (W(I != null, "missing value"), W(C != null, "missing offset"), W(C < this.length, "trying to write beyond buffer length"), Z(I, 255)), C >= this.length || (this[C] = I);
4396
- }, h.prototype.writeUInt16LE = function(I, C, z) {
4397
- b(this, I, C, !0, z);
4398
- }, h.prototype.writeUInt16BE = function(I, C, z) {
4399
- b(this, I, C, !1, z);
4400
- }, h.prototype.writeUInt32LE = function(I, C, z) {
4401
- S(this, I, C, !0, z);
4402
- }, h.prototype.writeUInt32BE = function(I, C, z) {
4403
- S(this, I, C, !1, z);
4404
- }, h.prototype.writeInt8 = function(I, C, z) {
4405
- z || (W(I != null, "missing value"), W(C != null, "missing offset"), W(C < this.length, "Trying to write beyond buffer length"), U(I, 127, -128)), C >= this.length || (0 <= I ? this.writeUInt8(I, C, z) : this.writeUInt8(255 + I + 1, C, z));
4406
- }, h.prototype.writeInt16LE = function(I, C, z) {
4407
- T(this, I, C, !0, z);
4408
- }, h.prototype.writeInt16BE = function(I, C, z) {
4409
- T(this, I, C, !1, z);
4410
- }, h.prototype.writeInt32LE = function(I, C, z) {
4411
- N(this, I, C, !0, z);
4412
- }, h.prototype.writeInt32BE = function(I, C, z) {
4413
- N(this, I, C, !1, z);
4414
- }, h.prototype.writeFloatLE = function(I, C, z) {
4415
- M(this, I, C, !0, z);
4416
- }, h.prototype.writeFloatBE = function(I, C, z) {
4417
- M(this, I, C, !1, z);
4418
- }, h.prototype.writeDoubleLE = function(I, C, z) {
4419
- q(this, I, C, !0, z);
4420
- }, h.prototype.writeDoubleBE = function(I, C, z) {
4421
- q(this, I, C, !1, z);
4422
- }, h.prototype.fill = function(I, C, z) {
4423
- if (C = C || 0, z = z || this.length, W(typeof (I = typeof (I = I || 0) == "string" ? I.charCodeAt(0) : I) == "number" && !isNaN(I), "value is not a number"), W(C <= z, "end < start"), z !== C && this.length !== 0) {
4424
- W(0 <= C && C < this.length, "start out of bounds"), W(0 <= z && z <= this.length, "end out of bounds");
4425
- for (var te = C; te < z; te++)
4380
+ }, h.prototype.readInt16LE = function(I, L) {
4381
+ return A(this, I, !0, L);
4382
+ }, h.prototype.readInt16BE = function(I, L) {
4383
+ return A(this, I, !1, L);
4384
+ }, h.prototype.readInt32LE = function(I, L) {
4385
+ return E(this, I, !0, L);
4386
+ }, h.prototype.readInt32BE = function(I, L) {
4387
+ return E(this, I, !1, L);
4388
+ }, h.prototype.readFloatLE = function(I, L) {
4389
+ return _(this, I, !0, L);
4390
+ }, h.prototype.readFloatBE = function(I, L) {
4391
+ return _(this, I, !1, L);
4392
+ }, h.prototype.readDoubleLE = function(I, L) {
4393
+ return x(this, I, !0, L);
4394
+ }, h.prototype.readDoubleBE = function(I, L) {
4395
+ return x(this, I, !1, L);
4396
+ }, h.prototype.writeUInt8 = function(I, L, z) {
4397
+ z || (W(I != null, "missing value"), W(L != null, "missing offset"), W(L < this.length, "trying to write beyond buffer length"), Z(I, 255)), L >= this.length || (this[L] = I);
4398
+ }, h.prototype.writeUInt16LE = function(I, L, z) {
4399
+ b(this, I, L, !0, z);
4400
+ }, h.prototype.writeUInt16BE = function(I, L, z) {
4401
+ b(this, I, L, !1, z);
4402
+ }, h.prototype.writeUInt32LE = function(I, L, z) {
4403
+ S(this, I, L, !0, z);
4404
+ }, h.prototype.writeUInt32BE = function(I, L, z) {
4405
+ S(this, I, L, !1, z);
4406
+ }, h.prototype.writeInt8 = function(I, L, z) {
4407
+ z || (W(I != null, "missing value"), W(L != null, "missing offset"), W(L < this.length, "Trying to write beyond buffer length"), U(I, 127, -128)), L >= this.length || (0 <= I ? this.writeUInt8(I, L, z) : this.writeUInt8(255 + I + 1, L, z));
4408
+ }, h.prototype.writeInt16LE = function(I, L, z) {
4409
+ T(this, I, L, !0, z);
4410
+ }, h.prototype.writeInt16BE = function(I, L, z) {
4411
+ T(this, I, L, !1, z);
4412
+ }, h.prototype.writeInt32LE = function(I, L, z) {
4413
+ N(this, I, L, !0, z);
4414
+ }, h.prototype.writeInt32BE = function(I, L, z) {
4415
+ N(this, I, L, !1, z);
4416
+ }, h.prototype.writeFloatLE = function(I, L, z) {
4417
+ M(this, I, L, !0, z);
4418
+ }, h.prototype.writeFloatBE = function(I, L, z) {
4419
+ M(this, I, L, !1, z);
4420
+ }, h.prototype.writeDoubleLE = function(I, L, z) {
4421
+ q(this, I, L, !0, z);
4422
+ }, h.prototype.writeDoubleBE = function(I, L, z) {
4423
+ q(this, I, L, !1, z);
4424
+ }, h.prototype.fill = function(I, L, z) {
4425
+ if (L = L || 0, z = z || this.length, W(typeof (I = typeof (I = I || 0) == "string" ? I.charCodeAt(0) : I) == "number" && !isNaN(I), "value is not a number"), W(L <= z, "end < start"), z !== L && this.length !== 0) {
4426
+ W(0 <= L && L < this.length, "start out of bounds"), W(0 <= z && z <= this.length, "end out of bounds");
4427
+ for (var te = L; te < z; te++)
4426
4428
  this[te] = I;
4427
4429
  }
4428
4430
  }, h.prototype.inspect = function() {
4429
- for (var I = [], C = this.length, z = 0; z < C; z++)
4431
+ for (var I = [], L = this.length, z = 0; z < L; z++)
4430
4432
  if (I[z] = P(this[z]), z === i.INSPECT_MAX_BYTES) {
4431
4433
  I[z + 1] = "...";
4432
4434
  break;
@@ -4437,42 +4439,42 @@ list should be an Array.`), I.length === 0)
4437
4439
  throw new Error("Buffer.toArrayBuffer not supported in this browser");
4438
4440
  if (h._useTypedArrays)
4439
4441
  return new h(this).buffer;
4440
- for (var I = new Uint8Array(this.length), C = 0, z = I.length; C < z; C += 1)
4441
- I[C] = this[C];
4442
+ for (var I = new Uint8Array(this.length), L = 0, z = I.length; L < z; L += 1)
4443
+ I[L] = this[L];
4442
4444
  return I.buffer;
4443
4445
  };
4444
4446
  var K = h.prototype;
4445
- function G(I, C, z) {
4446
- return typeof I != "number" ? z : C <= (I = ~~I) ? C : 0 <= I || 0 <= (I += C) ? I : 0;
4447
+ function G(I, L, z) {
4448
+ return typeof I != "number" ? z : L <= (I = ~~I) ? L : 0 <= I || 0 <= (I += L) ? I : 0;
4447
4449
  }
4448
4450
  function le(I) {
4449
4451
  return (I = ~~Math.ceil(+I)) < 0 ? 0 : I;
4450
4452
  }
4451
4453
  function V(I) {
4452
- return (Array.isArray || function(C) {
4453
- return Object.prototype.toString.call(C) === "[object Array]";
4454
+ return (Array.isArray || function(L) {
4455
+ return Object.prototype.toString.call(L) === "[object Array]";
4454
4456
  })(I);
4455
4457
  }
4456
4458
  function P(I) {
4457
4459
  return I < 16 ? "0" + I.toString(16) : I.toString(16);
4458
4460
  }
4459
- function L(I) {
4460
- for (var C = [], z = 0; z < I.length; z++) {
4461
+ function C(I) {
4462
+ for (var L = [], z = 0; z < I.length; z++) {
4461
4463
  var te = I.charCodeAt(z);
4462
4464
  if (te <= 127)
4463
- C.push(I.charCodeAt(z));
4465
+ L.push(I.charCodeAt(z));
4464
4466
  else
4465
4467
  for (var re = z, se = (55296 <= te && te <= 57343 && z++, encodeURIComponent(I.slice(re, z + 1)).substr(1).split("%")), de = 0; de < se.length; de++)
4466
- C.push(parseInt(se[de], 16));
4468
+ L.push(parseInt(se[de], 16));
4467
4469
  }
4468
- return C;
4470
+ return L;
4469
4471
  }
4470
4472
  function D(I) {
4471
4473
  return g.toByteArray(I);
4472
4474
  }
4473
- function H(I, C, z, te) {
4474
- for (var re = 0; re < te && !(re + z >= C.length || re >= I.length); re++)
4475
- C[re + z] = I[re];
4475
+ function H(I, L, z, te) {
4476
+ for (var re = 0; re < te && !(re + z >= L.length || re >= I.length); re++)
4477
+ L[re + z] = I[re];
4476
4478
  return re;
4477
4479
  }
4478
4480
  function ne(I) {
@@ -4482,18 +4484,18 @@ list should be an Array.`), I.length === 0)
4482
4484
  return String.fromCharCode(65533);
4483
4485
  }
4484
4486
  }
4485
- function Z(I, C) {
4486
- W(typeof I == "number", "cannot write a non-number as a number"), W(0 <= I, "specified a negative value for writing an unsigned value"), W(I <= C, "value is larger than maximum value for type"), W(Math.floor(I) === I, "value has a fractional component");
4487
+ function Z(I, L) {
4488
+ W(typeof I == "number", "cannot write a non-number as a number"), W(0 <= I, "specified a negative value for writing an unsigned value"), W(I <= L, "value is larger than maximum value for type"), W(Math.floor(I) === I, "value has a fractional component");
4487
4489
  }
4488
- function U(I, C, z) {
4489
- W(typeof I == "number", "cannot write a non-number as a number"), W(I <= C, "value larger than maximum allowed value"), W(z <= I, "value smaller than minimum allowed value"), W(Math.floor(I) === I, "value has a fractional component");
4490
+ function U(I, L, z) {
4491
+ W(typeof I == "number", "cannot write a non-number as a number"), W(I <= L, "value larger than maximum allowed value"), W(z <= I, "value smaller than minimum allowed value"), W(Math.floor(I) === I, "value has a fractional component");
4490
4492
  }
4491
- function ee(I, C, z) {
4492
- W(typeof I == "number", "cannot write a non-number as a number"), W(I <= C, "value larger than maximum allowed value"), W(z <= I, "value smaller than minimum allowed value");
4493
+ function ee(I, L, z) {
4494
+ W(typeof I == "number", "cannot write a non-number as a number"), W(I <= L, "value larger than maximum allowed value"), W(z <= I, "value smaller than minimum allowed value");
4493
4495
  }
4494
- function W(I, C) {
4496
+ function W(I, L) {
4495
4497
  if (!I)
4496
- throw new Error(C || "Failed assertion");
4498
+ throw new Error(L || "Failed assertion");
4497
4499
  }
4498
4500
  h._augment = function(I) {
4499
4501
  return I._isBuffer = !0, I._get = I.get, I._set = I.set, I.get = K.get, I.set = K.set, I.write = K.write, I.toString = K.toString, I.toLocaleString = K.toString, I.toJSON = K.toJSON, I.copy = K.copy, I.slice = K.slice, I.readUInt8 = K.readUInt8, I.readUInt16LE = K.readUInt16LE, I.readUInt16BE = K.readUInt16BE, I.readUInt32LE = K.readUInt32LE, I.readUInt32BE = K.readUInt32BE, I.readInt8 = K.readInt8, I.readInt16LE = K.readInt16LE, I.readInt16BE = K.readInt16BE, I.readInt32LE = K.readInt32LE, I.readInt32BE = K.readInt32BE, I.readFloatLE = K.readFloatLE, I.readFloatBE = K.readFloatBE, I.readDoubleLE = K.readDoubleLE, I.readDoubleBE = K.readDoubleBE, I.writeUInt8 = K.writeUInt8, I.writeUInt16LE = K.writeUInt16LE, I.writeUInt16BE = K.writeUInt16BE, I.writeUInt32LE = K.writeUInt32LE, I.writeUInt32BE = K.writeUInt32BE, I.writeInt8 = K.writeInt8, I.writeInt16LE = K.writeInt16LE, I.writeInt16BE = K.writeInt16BE, I.writeInt32LE = K.writeInt32LE, I.writeInt32BE = K.writeInt32BE, I.writeFloatLE = K.writeFloatLE, I.writeFloatBE = K.writeFloatBE, I.writeDoubleLE = K.writeDoubleLE, I.writeDoubleBE = K.writeDoubleBE, I.fill = K.fill, I.inspect = K.inspect, I.toArrayBuffer = K.toArrayBuffer, I;
@@ -4523,8 +4525,8 @@ list should be an Array.`), I.length === 0)
4523
4525
  }, digest: function(M) {
4524
4526
  var q = g.concat(N), q = S ? function(K, G, le) {
4525
4527
  g.isBuffer(G) || (G = new g(G)), g.isBuffer(le) || (le = new g(le)), G.length > k ? G = K(G) : G.length < k && (G = g.concat([G, m], k));
4526
- for (var V = new g(k), P = new g(k), L = 0; L < k; L++)
4527
- V[L] = 54 ^ G[L], P[L] = 92 ^ G[L];
4528
+ for (var V = new g(k), P = new g(k), C = 0; C < k; C++)
4529
+ V[C] = 54 ^ G[C], P[C] = 92 ^ G[C];
4528
4530
  return le = K(g.concat([V, le])), K(g.concat([P, le]));
4529
4531
  }(T, S, q) : T(q);
4530
4532
  return N = null, M ? q.toString(M) : q;
@@ -4791,7 +4793,7 @@ function yf() {
4791
4793
  function It() {
4792
4794
  return yf();
4793
4795
  }
4794
- var Ye = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backspace = "Backspace", e.Delete = "Delete", e.ArrowLeft = "ArrowLeft", e.ArrowUp = "ArrowUp", e.ArrowRight = "ArrowRight", e.ArrowDown = "ArrowDown", e.Home = "Home", e.End = "End", e.PageUp = "PageUp", e.PageDown = "PageDown", e.Tab = "Tab", e))(Ye || {});
4796
+ var Qe = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backspace = "Backspace", e.Delete = "Delete", e.ArrowLeft = "ArrowLeft", e.ArrowUp = "ArrowUp", e.ArrowRight = "ArrowRight", e.ArrowDown = "ArrowDown", e.Home = "Home", e.End = "End", e.PageUp = "PageUp", e.PageDown = "PageDown", e.Tab = "Tab", e))(Qe || {});
4795
4797
  function gf(e) {
4796
4798
  throw new Error("Unexpected object: " + e);
4797
4799
  }
@@ -4903,7 +4905,7 @@ function Fo(e, o = 0) {
4903
4905
  }
4904
4906
  function ca(e) {
4905
4907
  let o = sn(e);
4906
- Ze(() => {
4908
+ We(() => {
4907
4909
  o && !Fo(o.activeElement, 0) && vn(e);
4908
4910
  });
4909
4911
  }
@@ -5348,9 +5350,9 @@ let Sr = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Vf = me({ name: "Dialog", inher
5348
5350
  return [...Array.from((_ = (E = v.value) == null ? void 0 : E.querySelectorAll("body > *, [data-headlessui-portal]")) != null ? _ : []).filter((b) => !(!(b instanceof HTMLElement) || b.contains(Ue(s)) || O.panelRef.value && b.contains(O.panelRef.value))), (x = O.panelRef.value) != null ? x : f.value];
5349
5351
  }
5350
5352
  return da(() => A(), (E, _) => {
5351
- O.close(), Ze(() => _ == null ? void 0 : _.focus());
5353
+ O.close(), We(() => _ == null ? void 0 : _.focus());
5352
5354
  }, Y(() => g.value === 0 && !h.value)), ha((l = v.value) == null ? void 0 : l.defaultView, "keydown", (E) => {
5353
- E.defaultPrevented || E.key === Ye.Escape && g.value === 0 && (h.value || (E.preventDefault(), E.stopPropagation(), O.close()));
5355
+ E.defaultPrevented || E.key === Qe.Escape && g.value === 0 && (h.value || (E.preventDefault(), E.stopPropagation(), O.close()));
5354
5356
  }), _t((E) => {
5355
5357
  var _;
5356
5358
  if (g.value !== 0 || y)
@@ -5499,16 +5501,16 @@ let Yf = me({ name: "Menu", props: { as: { type: [Object, String], default: "tem
5499
5501
  n({ el: i.buttonRef, $el: i.buttonRef });
5500
5502
  function l(d) {
5501
5503
  switch (d.key) {
5502
- case Ye.Space:
5503
- case Ye.Enter:
5504
- case Ye.ArrowDown:
5505
- d.preventDefault(), d.stopPropagation(), i.openMenu(), Ze(() => {
5504
+ case Qe.Space:
5505
+ case Qe.Enter:
5506
+ case Qe.ArrowDown:
5507
+ d.preventDefault(), d.stopPropagation(), i.openMenu(), We(() => {
5506
5508
  var c;
5507
5509
  (c = Ue(i.itemsRef)) == null || c.focus({ preventScroll: !0 }), i.goToItem(Ot.First);
5508
5510
  });
5509
5511
  break;
5510
- case Ye.ArrowUp:
5511
- d.preventDefault(), d.stopPropagation(), i.openMenu(), Ze(() => {
5512
+ case Qe.ArrowUp:
5513
+ d.preventDefault(), d.stopPropagation(), i.openMenu(), We(() => {
5512
5514
  var c;
5513
5515
  (c = Ue(i.itemsRef)) == null || c.focus({ preventScroll: !0 }), i.goToItem(Ot.Last);
5514
5516
  });
@@ -5517,13 +5519,13 @@ let Yf = me({ name: "Menu", props: { as: { type: [Object, String], default: "tem
5517
5519
  }
5518
5520
  function a(d) {
5519
5521
  switch (d.key) {
5520
- case Ye.Space:
5522
+ case Qe.Space:
5521
5523
  d.preventDefault();
5522
5524
  break;
5523
5525
  }
5524
5526
  }
5525
5527
  function u(d) {
5526
- e.disabled || (i.menuState.value === 0 ? (i.closeMenu(), Ze(() => {
5528
+ e.disabled || (i.menuState.value === 0 ? (i.closeMenu(), We(() => {
5527
5529
  var c;
5528
5530
  return (c = Ue(i.buttonRef)) == null ? void 0 : c.focus({ preventScroll: !0 });
5529
5531
  })) : (d.preventDefault(), i.openMenu(), Wf(() => {
@@ -5547,34 +5549,34 @@ let Yf = me({ name: "Menu", props: { as: { type: [Object, String], default: "tem
5547
5549
  function a(c) {
5548
5550
  var f;
5549
5551
  switch (l.value && clearTimeout(l.value), c.key) {
5550
- case Ye.Space:
5552
+ case Qe.Space:
5551
5553
  if (i.searchQuery.value !== "")
5552
5554
  return c.preventDefault(), c.stopPropagation(), i.search(c.key);
5553
- case Ye.Enter:
5555
+ case Qe.Enter:
5554
5556
  if (c.preventDefault(), c.stopPropagation(), i.activeItemIndex.value !== null) {
5555
5557
  let s = i.items.value[i.activeItemIndex.value];
5556
5558
  (f = Ue(s.dataRef.domRef)) == null || f.click();
5557
5559
  }
5558
5560
  i.closeMenu(), ca(Ue(i.buttonRef));
5559
5561
  break;
5560
- case Ye.ArrowDown:
5562
+ case Qe.ArrowDown:
5561
5563
  return c.preventDefault(), c.stopPropagation(), i.goToItem(Ot.Next);
5562
- case Ye.ArrowUp:
5564
+ case Qe.ArrowUp:
5563
5565
  return c.preventDefault(), c.stopPropagation(), i.goToItem(Ot.Previous);
5564
- case Ye.Home:
5565
- case Ye.PageUp:
5566
+ case Qe.Home:
5567
+ case Qe.PageUp:
5566
5568
  return c.preventDefault(), c.stopPropagation(), i.goToItem(Ot.First);
5567
- case Ye.End:
5568
- case Ye.PageDown:
5569
+ case Qe.End:
5570
+ case Qe.PageDown:
5569
5571
  return c.preventDefault(), c.stopPropagation(), i.goToItem(Ot.Last);
5570
- case Ye.Escape:
5571
- c.preventDefault(), c.stopPropagation(), i.closeMenu(), Ze(() => {
5572
+ case Qe.Escape:
5573
+ c.preventDefault(), c.stopPropagation(), i.closeMenu(), We(() => {
5572
5574
  var s;
5573
5575
  return (s = Ue(i.buttonRef)) == null ? void 0 : s.focus({ preventScroll: !0 });
5574
5576
  });
5575
5577
  break;
5576
- case Ye.Tab:
5577
- c.preventDefault(), c.stopPropagation(), i.closeMenu(), Ze(() => Ef(Ue(i.buttonRef), c.shiftKey ? Rt.Previous : Rt.Next));
5578
+ case Qe.Tab:
5579
+ c.preventDefault(), c.stopPropagation(), i.closeMenu(), We(() => Ef(Ue(i.buttonRef), c.shiftKey ? Rt.Previous : Rt.Next));
5578
5580
  break;
5579
5581
  default:
5580
5582
  c.key.length === 1 && (i.search(c.key), l.value = setTimeout(() => i.clearSearch(), 350));
@@ -5583,7 +5585,7 @@ let Yf = me({ name: "Menu", props: { as: { type: [Object, String], default: "tem
5583
5585
  }
5584
5586
  function u(c) {
5585
5587
  switch (c.key) {
5586
- case Ye.Space:
5588
+ case Qe.Space:
5587
5589
  c.preventDefault();
5588
5590
  break;
5589
5591
  }
@@ -5603,7 +5605,7 @@ let Yf = me({ name: "Menu", props: { as: { type: [Object, String], default: "tem
5603
5605
  let h = (w = (g = Ue(l)) == null ? void 0 : g.textContent) == null ? void 0 : w.toLowerCase().trim();
5604
5606
  h !== void 0 && (u.value.textValue = h);
5605
5607
  }), Ve(() => i.registerItem(e.id, u)), Ut(() => i.unregisterItem(e.id)), _t(() => {
5606
- i.menuState.value === 0 && (!a.value || i.activationTrigger.value !== 0 && Ze(() => {
5608
+ i.menuState.value === 0 && (!a.value || i.activationTrigger.value !== 0 && We(() => {
5607
5609
  var g, w;
5608
5610
  return (w = (g = Ue(l)) == null ? void 0 : g.scrollIntoView) == null ? void 0 : w.call(g, { block: "nearest" });
5609
5611
  }));
@@ -5673,7 +5675,7 @@ let Jf = me({ name: "Label", props: { as: { type: [Object, String], default: "la
5673
5675
  h.preventDefault(), p();
5674
5676
  }
5675
5677
  function v(h) {
5676
- h.key === Ye.Space ? (h.preventDefault(), p()) : h.key === Ye.Enter && Of(h.currentTarget);
5678
+ h.key === Qe.Space ? (h.preventDefault(), p()) : h.key === Qe.Enter && Of(h.currentTarget);
5677
5679
  }
5678
5680
  function g(h) {
5679
5681
  h.preventDefault();
@@ -6112,7 +6114,7 @@ const cd = { class: "flex items-center" }, fd = {
6112
6114
  E.preventDefault(), y();
6113
6115
  }
6114
6116
  function y() {
6115
- O(n.value), Ze(() => {
6117
+ O(n.value), We(() => {
6116
6118
  n.value = null;
6117
6119
  });
6118
6120
  }
@@ -6123,7 +6125,7 @@ const cd = { class: "flex items-center" }, fd = {
6123
6125
  E.preventDefault(), m();
6124
6126
  }
6125
6127
  function m() {
6126
- O(i.value), A(i.value) || Ze(() => {
6128
+ O(i.value), A(i.value) || We(() => {
6127
6129
  i.value = r.modelValue;
6128
6130
  });
6129
6131
  }
@@ -6362,7 +6364,7 @@ const Cd = {
6362
6364
  }, {
6363
6365
  default: pe(() => [
6364
6366
  lt(R("div", {
6365
- style: Qe({
6367
+ style: Ze({
6366
6368
  maxWidth: $(i)
6367
6369
  }),
6368
6370
  class: ue(["pb-safe py-safe relative z-[1] ml-auto mr-0 flex h-full w-full flex-col rounded-t-lg bg-white text-left shadow-xl sm:rounded-t-none", [$(l).animationClasses.value]])
@@ -6483,7 +6485,7 @@ const Cd = {
6483
6485
  }), je(
6484
6486
  () => m.value,
6485
6487
  () => {
6486
- Ze(() => {
6488
+ We(() => {
6487
6489
  _();
6488
6490
  });
6489
6491
  }
@@ -6535,7 +6537,7 @@ const Cd = {
6535
6537
  je(
6536
6538
  () => a.query,
6537
6539
  () => {
6538
- Ze(() => {
6540
+ We(() => {
6539
6541
  V();
6540
6542
  });
6541
6543
  }
@@ -6557,7 +6559,7 @@ const Cd = {
6557
6559
  function P(de = !1) {
6558
6560
  D(de, !0);
6559
6561
  }
6560
- function L(de = !1) {
6562
+ function C(de = !1) {
6561
6563
  D(de, !1);
6562
6564
  }
6563
6565
  function D(de = !1, Ee = !0) {
@@ -6590,13 +6592,13 @@ const Cd = {
6590
6592
  }), U = Y(() => t.value.page && parseInt(t.value.page + "") ? parseInt(t.value.page + "") : 1), ee = Y(() => Z.value ? Z.value.last_page : 1), W = Y(() => {
6591
6593
  var de;
6592
6594
  return ((de = t.value.sort) == null ? void 0 : de.trim().replace(/^(-)/, "")) ?? "";
6593
- }), I = Y(() => t.value.sort && t.value.sort.length && t.value.sort[0] == "-" ? "desc" : "asc"), C = Y(() => t.value.search ?? ""), z = () => {
6595
+ }), I = Y(() => t.value.sort && t.value.sort.length && t.value.sort[0] == "-" ? "desc" : "asc"), L = Y(() => t.value.search ?? ""), z = () => {
6594
6596
  i.value != null && i.value.scrollIntoView({
6595
6597
  behavior: "smooth"
6596
6598
  });
6597
6599
  };
6598
6600
  function te() {
6599
- w.value = C.value;
6601
+ w.value = L.value;
6600
6602
  }
6601
6603
  let re = dt(t.value);
6602
6604
  const se = le();
@@ -6605,7 +6607,7 @@ const Cd = {
6605
6607
  }), o({
6606
6608
  fetch: D,
6607
6609
  fetchWithLoading: P,
6608
- fetchWithoutLoading: L,
6610
+ fetchWithoutLoading: C,
6609
6611
  scrollIntoView: z,
6610
6612
  query: t
6611
6613
  }), (de, Ee) => {
@@ -6955,33 +6957,33 @@ const $a = /* @__PURE__ */ ht(Xd, [["render", nh], ["__scopeId", "data-v-945515f
6955
6957
  ), je(
6956
6958
  () => n.sortField,
6957
6959
  () => {
6958
- L();
6960
+ C();
6959
6961
  }
6960
6962
  ), je(
6961
6963
  () => n.sortDirection,
6962
6964
  () => {
6963
- L();
6965
+ C();
6964
6966
  }
6965
6967
  ), Ve(() => {
6966
- Ze(() => {
6967
- L();
6968
+ We(() => {
6969
+ C();
6968
6970
  });
6969
6971
  });
6970
- function O(I, C = !1, z = null) {
6971
- !I || !I.sortable || (C || (d.value = I === p.value ? !d.value : n.sortDirection.toLowerCase() !== "desc"), r("sort", I.field, d.value ? "asc" : "desc", z), p.value = I);
6972
+ function O(I, L = !1, z = null) {
6973
+ !I || !I.sortable || (L || (d.value = I === p.value ? !d.value : n.sortDirection.toLowerCase() !== "desc"), r("sort", I.field, d.value ? "asc" : "desc", z), p.value = I);
6972
6974
  }
6973
6975
  function A(I) {
6974
- return a.value.find((C) => C[n.rowKey] == I[n.rowKey]) !== void 0;
6976
+ return a.value.find((L) => L[n.rowKey] == I[n.rowKey]) !== void 0;
6975
6977
  }
6976
- const E = Y(() => n.data.filter((C) => n.isRowCheckable(C)).length === 0), _ = Y(() => {
6978
+ const E = Y(() => n.data.filter((L) => n.isRowCheckable(L)).length === 0), _ = Y(() => {
6977
6979
  const I = n.data.filter((z) => n.isRowCheckable(z));
6978
6980
  return I.length === 0 ? !1 : !I.some((z) => !A(z));
6979
6981
  });
6980
6982
  function x(I) {
6981
- const C = a.value.findIndex(
6983
+ const L = a.value.findIndex(
6982
6984
  (z) => z[n.rowKey] == I[n.rowKey]
6983
6985
  );
6984
- C >= 0 && a.value.splice(C, 1);
6986
+ L >= 0 && a.value.splice(L, 1);
6985
6987
  }
6986
6988
  function b() {
6987
6989
  _.value ? a.value = [] : n.data.forEach((I) => {
@@ -6994,16 +6996,16 @@ const $a = /* @__PURE__ */ ht(Xd, [["render", nh], ["__scopeId", "data-v-945515f
6994
6996
  function T() {
6995
6997
  r("check", a.value), r("check-all", a.value), r("update:checkedRows", a.value);
6996
6998
  }
6997
- function N(I, C, z) {
6999
+ function N(I, L, z) {
6998
7000
  if (!n.isRowCheckable(I))
6999
7001
  return;
7000
7002
  const te = u.value;
7001
- u.value = C, z.shiftKey && te !== null && C !== te ? M(I, C, te) : A(I) ? x(I) : a.value.push(I), r("check", a.value, I), r("update:checkedRows", a.value);
7003
+ u.value = L, z.shiftKey && te !== null && L !== te ? M(I, L, te) : A(I) ? x(I) : a.value.push(I), r("check", a.value, I), r("update:checkedRows", a.value);
7002
7004
  }
7003
- function M(I, C, z) {
7005
+ function M(I, L, z) {
7004
7006
  const te = n.data.slice(
7005
- Math.min(C, z),
7006
- Math.max(C, z) + 1
7007
+ Math.min(L, z),
7008
+ Math.max(L, z) + 1
7007
7009
  ), re = !A(I);
7008
7010
  te.forEach((se) => {
7009
7011
  x(se), re && n.isRowCheckable(se) && a.value.push(se);
@@ -7013,30 +7015,30 @@ const $a = /* @__PURE__ */ ht(Xd, [["render", nh], ["__scopeId", "data-v-945515f
7013
7015
  le(I) ? (G(I), r("details-close", I)) : (K(I), r("details-open", I)), r("update:openedDetailed", l.value);
7014
7016
  }
7015
7017
  function K(I) {
7016
- const C = P(I);
7017
- l.value.push(C);
7018
+ const L = P(I);
7019
+ l.value.push(L);
7018
7020
  }
7019
7021
  function G(I) {
7020
- const C = P(I), z = l.value.indexOf(C);
7022
+ const L = P(I), z = l.value.indexOf(L);
7021
7023
  z >= 0 && l.value.splice(z, 1);
7022
7024
  }
7023
7025
  function le(I) {
7024
- const C = P(I);
7025
- return l.value.indexOf(C) >= 0;
7026
+ const L = P(I);
7027
+ return l.value.indexOf(L) >= 0;
7026
7028
  }
7027
7029
  function V(I) {
7028
7030
  return n.detailed && le(I);
7029
7031
  }
7030
7032
  function P(I) {
7031
- const C = n.rowKey;
7032
- return !C.length || !I ? I : I[C];
7033
+ const L = n.rowKey;
7034
+ return !L.length || !I ? I : I[L];
7033
7035
  }
7034
- function L() {
7035
- const I = n.sortField, C = n.sortDirection, z = y.value.filter(
7036
+ function C() {
7037
+ const I = n.sortField, L = n.sortDirection, z = y.value.filter(
7036
7038
  (te) => te.field === I
7037
7039
  )[0];
7038
7040
  if (z)
7039
- p.value = z, d.value = C.toLowerCase() !== "desc";
7041
+ p.value = z, d.value = L.toLowerCase() !== "desc";
7040
7042
  else {
7041
7043
  p.value = null;
7042
7044
  return;
@@ -7044,9 +7046,9 @@ const $a = /* @__PURE__ */ ht(Xd, [["render", nh], ["__scopeId", "data-v-945515f
7044
7046
  }
7045
7047
  function D(I) {
7046
7048
  c.value.push(I);
7047
- const C = s.value;
7048
- C && C.children && Ze(() => {
7049
- const z = c.value.map((re) => `[data-id="${re.newKey}"]`).join(","), te = Array.from(C.querySelectorAll(z)).map(
7049
+ const L = s.value;
7050
+ L && L.children && We(() => {
7051
+ const z = c.value.map((re) => `[data-id="${re.newKey}"]`).join(","), te = Array.from(L.querySelectorAll(z)).map(
7050
7052
  (re) => re.getAttribute("data-id")
7051
7053
  );
7052
7054
  c.value = c.value.sort((re, se) => te.indexOf(`${re.newKey}`) - te.indexOf(`${se.newKey}`));
@@ -7054,25 +7056,25 @@ const $a = /* @__PURE__ */ ht(Xd, [["render", nh], ["__scopeId", "data-v-945515f
7054
7056
  }
7055
7057
  function H(I) {
7056
7058
  c.value = c.value.filter(
7057
- (C) => C.newKey !== I.newKey
7059
+ (L) => L.newKey !== I.newKey
7058
7060
  );
7059
7061
  }
7060
7062
  const ne = "border-b border-slate-300";
7061
- function Z(I, C) {
7062
- return I < n.data.length - 1 || V(C) ? ne : "";
7063
+ function Z(I, L) {
7064
+ return I < n.data.length - 1 || V(L) ? ne : "";
7063
7065
  }
7064
7066
  function U(I) {
7065
7067
  return I < n.data.length - 1 ? ne : "";
7066
7068
  }
7067
- function ee(I, C, z, te, re) {
7068
- C.clickable && r("cell-click", I, C, z, te, re);
7069
+ function ee(I, L, z, te, re) {
7070
+ L.clickable && r("cell-click", I, L, z, te, re);
7069
7071
  }
7070
7072
  function W() {
7071
7073
  return f.value++;
7072
7074
  }
7073
7075
  return $e("addColumn", D), $e("removeColumn", H), $e("nextSequence", W), o({
7074
7076
  newColumns: y
7075
- }), (I, C) => {
7077
+ }), (I, L) => {
7076
7078
  const z = Ke("BaseIcon");
7077
7079
  return F(), J("div", ih, [
7078
7080
  R("div", {
@@ -7086,7 +7088,7 @@ const $a = /* @__PURE__ */ ht(Xd, [["render", nh], ["__scopeId", "data-v-945515f
7086
7088
  R("div", {
7087
7089
  class: "overflow-x-auto overflow-y-auto",
7088
7090
  "data-scroll-lock-scrollable": "",
7089
- style: Qe({ maxHeight: e.maxHeight ? e.maxHeight + "px" : void 0 })
7091
+ style: Ze({ maxHeight: e.maxHeight ? e.maxHeight + "px" : void 0 })
7090
7092
  }, [
7091
7093
  R("div", lh, [
7092
7094
  R("div", ah, [
@@ -7154,7 +7156,7 @@ const $a = /* @__PURE__ */ ht(Xd, [["render", nh], ["__scopeId", "data-v-945515f
7154
7156
  R("td", {
7155
7157
  colspan: $(k),
7156
7158
  class: ue(["sticky z-[1] p-0", [ne]]),
7157
- style: Qe({
7159
+ style: Ze({
7158
7160
  top: g.value + "px"
7159
7161
  })
7160
7162
  }, [
@@ -7173,7 +7175,7 @@ const $a = /* @__PURE__ */ ht(Xd, [["render", nh], ["__scopeId", "data-v-945515f
7173
7175
  R("button", {
7174
7176
  type: "button",
7175
7177
  class: "mr-3 inline text-slate-700 underline",
7176
- onClick: C[0] || (C[0] = (re) => S())
7178
+ onClick: L[0] || (L[0] = (re) => S())
7177
7179
  }, xe(I.$t("sui.deselect_all")), 1)
7178
7180
  ]),
7179
7181
  (te = e.checkableActions) != null && te.length ? (F(), Se(Cn, {
@@ -7700,7 +7702,7 @@ const Uh = /* @__PURE__ */ ht(jh, [["render", Fh]]), zh = { class: "flex justify
7700
7702
  type: "button",
7701
7703
  class: "btn btn-white bg-transparent p-2",
7702
7704
  disabled: !v(P),
7703
- onClick: (L) => g(P)
7705
+ onClick: (C) => g(P)
7704
7706
  }, [
7705
7707
  he(S, {
7706
7708
  icon: "heroicons:trash-solid",
@@ -8200,7 +8202,7 @@ const op = { class: "-m-0.5 flex" }, lp = { class: "w-auto p-0.5" }, ap = ["disa
8200
8202
  l.value ? y() : h();
8201
8203
  }
8202
8204
  function h() {
8203
- A(), l.value = !0, Ze(() => {
8205
+ A(), l.value = !0, We(() => {
8204
8206
  g(), Lo(), o("open");
8205
8207
  });
8206
8208
  }
@@ -8262,7 +8264,7 @@ const op = { class: "-m-0.5 flex" }, lp = { class: "w-auto p-0.5" }, ap = ["disa
8262
8264
  ref_key: "dropdown",
8263
8265
  ref: i,
8264
8266
  class: "z-menu",
8265
- style: Qe($(x))
8267
+ style: Ze($(x))
8266
8268
  }, [
8267
8269
  he(kt, {
8268
8270
  "enter-active-class": e.animated ? "transition duration-200 ease-out" : "",
@@ -8391,16 +8393,16 @@ const op = { class: "-m-0.5 flex" }, lp = { class: "w-auto p-0.5" }, ap = ["disa
8391
8393
  m(), v.value = !0, b(an(P, "target.value", "") + ""), r("typing", c.value), w.value = null;
8392
8394
  }, E = (P) => {
8393
8395
  var D;
8394
- const L = P.key;
8395
- if ((D = d.value) == null || D.onKeydown(P), L === "ArrowUp") {
8396
+ const C = P.key;
8397
+ if ((D = d.value) == null || D.onKeydown(P), C === "ArrowUp") {
8396
8398
  P.preventDefault();
8397
8399
  return;
8398
8400
  }
8399
- if (L === "ArrowDown") {
8401
+ if (C === "ArrowDown") {
8400
8402
  P.preventDefault();
8401
8403
  return;
8402
8404
  }
8403
- if (L === "Backspace" && c.value == "") {
8405
+ if (C === "Backspace" && c.value == "") {
8404
8406
  M();
8405
8407
  return;
8406
8408
  }
@@ -8418,7 +8420,7 @@ const op = { class: "-m-0.5 flex" }, lp = { class: "w-auto p-0.5" }, ap = ["disa
8418
8420
  h(P) || (w.value = null, x([...t.value, P]), b(""), r("typing", c.value));
8419
8421
  };
8420
8422
  function x(P) {
8421
- v.value = !1, u(P.map((L) => L.option));
8423
+ v.value = !1, u(P.map((C) => C.option));
8422
8424
  }
8423
8425
  function b(P) {
8424
8426
  c.value = P;
@@ -8443,11 +8445,11 @@ const op = { class: "-m-0.5 flex" }, lp = { class: "w-auto p-0.5" }, ap = ["disa
8443
8445
  q(w.value), w.value = null;
8444
8446
  return;
8445
8447
  }
8446
- w.value = t.value.find((L) => L.value === P.value) ?? null;
8448
+ w.value = t.value.find((C) => C.value === P.value) ?? null;
8447
8449
  }, q = (P) => {
8448
8450
  S();
8449
- let L = dt(t.value);
8450
- L = L.filter((D) => D.value != P.value), x(L);
8451
+ let C = dt(t.value);
8452
+ C = C.filter((D) => D.value != P.value), x(C);
8451
8453
  }, K = Y(() => n.size == "xs" ? "min-h-[34px]" : n.size == "sm" ? "min-h-[38px]" : "min-h-[42px]"), G = Y(() => {
8452
8454
  const P = "h-[32px] text-base";
8453
8455
  return n.size == "xs" ? P + " xs:text-xs xs:h-[22px]" : n.size == "sm" ? P + " xs:text-sm xs:h-[28px]" : P;
@@ -8461,7 +8463,7 @@ const op = { class: "-m-0.5 flex" }, lp = { class: "w-auto p-0.5" }, ap = ["disa
8461
8463
  close: O,
8462
8464
  open: m,
8463
8465
  setKeywords: b
8464
- }), (P, L) => (F(), J("div", {
8466
+ }), (P, C) => (F(), J("div", {
8465
8467
  ref_key: "autocomplete",
8466
8468
  ref: f
8467
8469
  }, [
@@ -8528,7 +8530,7 @@ const op = { class: "-m-0.5 flex" }, lp = { class: "w-auto p-0.5" }, ap = ["disa
8528
8530
  "drawer-class": e.inline ? "pt-1" : "p-1",
8529
8531
  keywords: $(c),
8530
8532
  onSelect: _,
8531
- onScrollBottom: L[0] || (L[0] = (D) => r("scrollBottom"))
8533
+ onScrollBottom: C[0] || (C[0] = (D) => r("scrollBottom"))
8532
8534
  }, {
8533
8535
  empty: pe((D) => [
8534
8536
  ke(P.$slots, "empty", at(st({ ...D, ...N })))
@@ -8749,7 +8751,7 @@ const op = { class: "-m-0.5 flex" }, lp = { class: "w-auto p-0.5" }, ap = ["disa
8749
8751
  { immediate: !0, deep: !0 }
8750
8752
  );
8751
8753
  function u() {
8752
- Ze(() => {
8754
+ We(() => {
8753
8755
  setTimeout(() => {
8754
8756
  var s;
8755
8757
  (s = i.value) == null || s.open();
@@ -8757,7 +8759,7 @@ const op = { class: "-m-0.5 flex" }, lp = { class: "w-auto p-0.5" }, ap = ["disa
8757
8759
  });
8758
8760
  }
8759
8761
  function p() {
8760
- Ze(() => {
8762
+ We(() => {
8761
8763
  setTimeout(() => {
8762
8764
  var s;
8763
8765
  (s = i.value) == null || s.setKeywords("");
@@ -10497,7 +10499,7 @@ const dv = { class: "absolute inset-0 flex items-center justify-center w-full h-
10497
10499
  e.modelValue ? (F(), J("div", {
10498
10500
  key: 0,
10499
10501
  class: ue(["pb-safe relative z-[1] mx-auto block w-full rounded-t-xl bg-white sm:rounded-xl sm:shadow-xl", [$(n).animationClasses.value]]),
10500
- style: Qe({
10502
+ style: Ze({
10501
10503
  maxWidth: e.maxWidth
10502
10504
  })
10503
10505
  }, [
@@ -10856,7 +10858,7 @@ function lm(e, o, r, n, i, l) {
10856
10858
  R("circle", {
10857
10859
  stroke: "currentColor",
10858
10860
  "stroke-dasharray": `${e.circumference} ${e.circumference}`,
10859
- style: Qe({ strokeDashoffset: e.strokeDashoffset }),
10861
+ style: Ze({ strokeDashoffset: e.strokeDashoffset }),
10860
10862
  "stroke-width": e.stroke,
10861
10863
  fill: "transparent",
10862
10864
  r: e.normalizedRadius,
@@ -10868,7 +10870,7 @@ function lm(e, o, r, n, i, l) {
10868
10870
  "alignment-baseline": "middle",
10869
10871
  x: e.radius,
10870
10872
  y: e.radius + e.fontSize / 10,
10871
- style: Qe({ fontSize: e.fontSize + "px", fontWeight: 600 })
10873
+ style: Ze({ fontSize: e.fontSize + "px", fontWeight: 600 })
10872
10874
  }, xe(Math.round(e.progress * 100)) + "% ", 13, om)
10873
10875
  ], 8, nm);
10874
10876
  }
@@ -10978,7 +10980,7 @@ const am = /* @__PURE__ */ ht(tm, [["render", lm], ["__scopeId", "data-v-e5ae83e
10978
10980
  a(), xo(
10979
10981
  r.value,
10980
10982
  () => {
10981
- n.value = !1, Ze(() => {
10983
+ n.value = !1, We(() => {
10982
10984
  a();
10983
10985
  });
10984
10986
  },
@@ -10997,7 +10999,7 @@ const am = /* @__PURE__ */ ht(tm, [["render", lm], ["__scopeId", "data-v-e5ae83e
10997
10999
  ref_key: "content",
10998
11000
  ref: r,
10999
11001
  class: "overflow-hidden whitespace-pre-line",
11000
- style: Qe($(n) ? void 0 : $(l))
11002
+ style: Ze($(n) ? void 0 : $(l))
11001
11003
  }, [
11002
11004
  ke(u.$slots, "default")
11003
11005
  ], 4),
@@ -11497,8 +11499,8 @@ var yo = {}, vm = {
11497
11499
  `), le = G.shift();
11498
11500
  le.length > 0 && (M < this.length() - 1 || this.children.tail == null ? a(T.prototype.__proto__ || Object.getPrototypeOf(T.prototype), "insertAt", this).call(this, Math.min(M, this.length() - 1), le) : this.children.tail.insertAt(this.children.tail.length(), le), this.cache = {});
11499
11501
  var V = this;
11500
- G.reduce(function(P, L) {
11501
- return V = V.split(P, !0), V.insertAt(0, L), L.length;
11502
+ G.reduce(function(P, C) {
11503
+ return V = V.split(P, !0), V.insertAt(0, C), C.length;
11502
11504
  }, M + le.length);
11503
11505
  }
11504
11506
  }
@@ -11563,10 +11565,10 @@ var yo = {}, vm = {
11563
11565
  } : function(V) {
11564
11566
  return V && typeof Symbol == "function" && V.constructor === Symbol && V !== Symbol.prototype ? "symbol" : typeof V;
11565
11567
  }, a = function() {
11566
- function V(P, L) {
11568
+ function V(P, C) {
11567
11569
  var D = [], H = !0, ne = !1, Z = void 0;
11568
11570
  try {
11569
- for (var U = P[Symbol.iterator](), ee; !(H = (ee = U.next()).done) && (D.push(ee.value), !(L && D.length === L)); H = !0)
11571
+ for (var U = P[Symbol.iterator](), ee; !(H = (ee = U.next()).done) && (D.push(ee.value), !(C && D.length === C)); H = !0)
11570
11572
  ;
11571
11573
  } catch (W) {
11572
11574
  ne = !0, Z = W;
@@ -11580,22 +11582,22 @@ var yo = {}, vm = {
11580
11582
  }
11581
11583
  return D;
11582
11584
  }
11583
- return function(P, L) {
11585
+ return function(P, C) {
11584
11586
  if (Array.isArray(P))
11585
11587
  return P;
11586
11588
  if (Symbol.iterator in Object(P))
11587
- return V(P, L);
11589
+ return V(P, C);
11588
11590
  throw new TypeError("Invalid attempt to destructure non-iterable instance");
11589
11591
  };
11590
11592
  }(), u = function() {
11591
- function V(P, L) {
11592
- for (var D = 0; D < L.length; D++) {
11593
- var H = L[D];
11593
+ function V(P, C) {
11594
+ for (var D = 0; D < C.length; D++) {
11595
+ var H = C[D];
11594
11596
  H.enumerable = H.enumerable || !1, H.configurable = !0, "value" in H && (H.writable = !0), Object.defineProperty(P, H.key, H);
11595
11597
  }
11596
11598
  }
11597
- return function(P, L, D) {
11598
- return L && V(P.prototype, L), D && V(P, D), P;
11599
+ return function(P, C, D) {
11600
+ return C && V(P.prototype, C), D && V(P, D), P;
11599
11601
  };
11600
11602
  }();
11601
11603
  i(50);
@@ -11603,8 +11605,8 @@ var yo = {}, vm = {
11603
11605
  function b(V) {
11604
11606
  return V && V.__esModule ? V : { default: V };
11605
11607
  }
11606
- function S(V, P, L) {
11607
- return P in V ? Object.defineProperty(V, P, { value: L, enumerable: !0, configurable: !0, writable: !0 }) : V[P] = L, V;
11608
+ function S(V, P, C) {
11609
+ return P in V ? Object.defineProperty(V, P, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : V[P] = C, V;
11608
11610
  }
11609
11611
  function T(V, P) {
11610
11612
  if (!(V instanceof P))
@@ -11613,34 +11615,34 @@ var yo = {}, vm = {
11613
11615
  var N = (0, E.default)("quill"), M = function() {
11614
11616
  u(V, null, [{
11615
11617
  key: "debug",
11616
- value: function(L) {
11617
- L === !0 && (L = "log"), E.default.level(L);
11618
+ value: function(C) {
11619
+ C === !0 && (C = "log"), E.default.level(C);
11618
11620
  }
11619
11621
  }, {
11620
11622
  key: "find",
11621
- value: function(L) {
11622
- return L.__quill || y.default.find(L);
11623
+ value: function(C) {
11624
+ return C.__quill || y.default.find(C);
11623
11625
  }
11624
11626
  }, {
11625
11627
  key: "import",
11626
- value: function(L) {
11627
- return this.imports[L] == null && N.error("Cannot import " + L + ". Are you sure it was registered?"), this.imports[L];
11628
+ value: function(C) {
11629
+ return this.imports[C] == null && N.error("Cannot import " + C + ". Are you sure it was registered?"), this.imports[C];
11628
11630
  }
11629
11631
  }, {
11630
11632
  key: "register",
11631
- value: function(L, D) {
11633
+ value: function(C, D) {
11632
11634
  var H = this, ne = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
11633
- if (typeof L != "string") {
11634
- var Z = L.attrName || L.blotName;
11635
- typeof Z == "string" ? this.register("formats/" + Z, L, D) : Object.keys(L).forEach(function(U) {
11636
- H.register(U, L[U], D);
11635
+ if (typeof C != "string") {
11636
+ var Z = C.attrName || C.blotName;
11637
+ typeof Z == "string" ? this.register("formats/" + Z, C, D) : Object.keys(C).forEach(function(U) {
11638
+ H.register(U, C[U], D);
11637
11639
  });
11638
11640
  } else
11639
- this.imports[L] != null && !ne && N.warn("Overwriting " + L + " with", D), this.imports[L] = D, (L.startsWith("blots/") || L.startsWith("formats/")) && D.blotName !== "abstract" ? y.default.register(D) : L.startsWith("modules") && typeof D.register == "function" && D.register();
11641
+ this.imports[C] != null && !ne && N.warn("Overwriting " + C + " with", D), this.imports[C] = D, (C.startsWith("blots/") || C.startsWith("formats/")) && D.blotName !== "abstract" ? y.default.register(D) : C.startsWith("modules") && typeof D.register == "function" && D.register();
11640
11642
  }
11641
11643
  }]);
11642
11644
  function V(P) {
11643
- var L = this, D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
11645
+ var C = this, D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
11644
11646
  if (T(this, V), this.options = q(P, D), this.container = this.options.container, this.container == null)
11645
11647
  return N.error("Invalid Quill container", P);
11646
11648
  this.options.debug && V.debug(this.options.debug);
@@ -11649,11 +11651,11 @@ var yo = {}, vm = {
11649
11651
  emitter: this.emitter,
11650
11652
  whitelist: this.options.formats
11651
11653
  }), this.editor = new f.default(this.scroll), this.selection = new k.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(v.default.events.EDITOR_CHANGE, function(Z) {
11652
- Z === v.default.events.TEXT_CHANGE && L.root.classList.toggle("ql-blank", L.editor.isBlank());
11654
+ Z === v.default.events.TEXT_CHANGE && C.root.classList.toggle("ql-blank", C.editor.isBlank());
11653
11655
  }), this.emitter.on(v.default.events.SCROLL_UPDATE, function(Z, U) {
11654
- var ee = L.selection.lastRange, W = ee && ee.length === 0 ? ee.index : void 0;
11655
- K.call(L, function() {
11656
- return L.editor.update(null, U, W);
11656
+ var ee = C.selection.lastRange, W = ee && ee.length === 0 ? ee.index : void 0;
11657
+ K.call(C, function() {
11658
+ return C.editor.update(null, U, W);
11657
11659
  }, Z);
11658
11660
  });
11659
11661
  var ne = this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">` + H + "<p><br></p></div>");
@@ -11661,13 +11663,13 @@ var yo = {}, vm = {
11661
11663
  }
11662
11664
  return u(V, [{
11663
11665
  key: "addContainer",
11664
- value: function(L) {
11666
+ value: function(C) {
11665
11667
  var D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
11666
- if (typeof L == "string") {
11667
- var H = L;
11668
- L = document.createElement("div"), L.classList.add(H);
11668
+ if (typeof C == "string") {
11669
+ var H = C;
11670
+ C = document.createElement("div"), C.classList.add(H);
11669
11671
  }
11670
- return this.container.insertBefore(L, D), L;
11672
+ return this.container.insertBefore(C, D), C;
11671
11673
  }
11672
11674
  }, {
11673
11675
  key: "blur",
@@ -11676,11 +11678,11 @@ var yo = {}, vm = {
11676
11678
  }
11677
11679
  }, {
11678
11680
  key: "deleteText",
11679
- value: function(L, D, H) {
11680
- var ne = this, Z = G(L, D, H), U = a(Z, 4);
11681
- return L = U[0], D = U[1], H = U[3], K.call(this, function() {
11682
- return ne.editor.deleteText(L, D);
11683
- }, H, L, -1 * D);
11681
+ value: function(C, D, H) {
11682
+ var ne = this, Z = G(C, D, H), U = a(Z, 4);
11683
+ return C = U[0], D = U[1], H = U[3], K.call(this, function() {
11684
+ return ne.editor.deleteText(C, D);
11685
+ }, H, C, -1 * D);
11684
11686
  }
11685
11687
  }, {
11686
11688
  key: "disable",
@@ -11690,54 +11692,54 @@ var yo = {}, vm = {
11690
11692
  }, {
11691
11693
  key: "enable",
11692
11694
  value: function() {
11693
- var L = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
11694
- this.scroll.enable(L), this.container.classList.toggle("ql-disabled", !L);
11695
+ var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
11696
+ this.scroll.enable(C), this.container.classList.toggle("ql-disabled", !C);
11695
11697
  }
11696
11698
  }, {
11697
11699
  key: "focus",
11698
11700
  value: function() {
11699
- var L = this.scrollingContainer.scrollTop;
11700
- this.selection.focus(), this.scrollingContainer.scrollTop = L, this.scrollIntoView();
11701
+ var C = this.scrollingContainer.scrollTop;
11702
+ this.selection.focus(), this.scrollingContainer.scrollTop = C, this.scrollIntoView();
11701
11703
  }
11702
11704
  }, {
11703
11705
  key: "format",
11704
- value: function(L, D) {
11706
+ value: function(C, D) {
11705
11707
  var H = this, ne = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : v.default.sources.API;
11706
11708
  return K.call(this, function() {
11707
11709
  var Z = H.getSelection(!0), U = new d.default();
11708
11710
  if (Z == null)
11709
11711
  return U;
11710
- if (y.default.query(L, y.default.Scope.BLOCK))
11711
- U = H.editor.formatLine(Z.index, Z.length, S({}, L, D));
11712
+ if (y.default.query(C, y.default.Scope.BLOCK))
11713
+ U = H.editor.formatLine(Z.index, Z.length, S({}, C, D));
11712
11714
  else {
11713
11715
  if (Z.length === 0)
11714
- return H.selection.format(L, D), U;
11715
- U = H.editor.formatText(Z.index, Z.length, S({}, L, D));
11716
+ return H.selection.format(C, D), U;
11717
+ U = H.editor.formatText(Z.index, Z.length, S({}, C, D));
11716
11718
  }
11717
11719
  return H.setSelection(Z, v.default.sources.SILENT), U;
11718
11720
  }, ne);
11719
11721
  }
11720
11722
  }, {
11721
11723
  key: "formatLine",
11722
- value: function(L, D, H, ne, Z) {
11723
- var U = this, ee = void 0, W = G(L, D, H, ne, Z), I = a(W, 4);
11724
- return L = I[0], D = I[1], ee = I[2], Z = I[3], K.call(this, function() {
11725
- return U.editor.formatLine(L, D, ee);
11726
- }, Z, L, 0);
11724
+ value: function(C, D, H, ne, Z) {
11725
+ var U = this, ee = void 0, W = G(C, D, H, ne, Z), I = a(W, 4);
11726
+ return C = I[0], D = I[1], ee = I[2], Z = I[3], K.call(this, function() {
11727
+ return U.editor.formatLine(C, D, ee);
11728
+ }, Z, C, 0);
11727
11729
  }
11728
11730
  }, {
11729
11731
  key: "formatText",
11730
- value: function(L, D, H, ne, Z) {
11731
- var U = this, ee = void 0, W = G(L, D, H, ne, Z), I = a(W, 4);
11732
- return L = I[0], D = I[1], ee = I[2], Z = I[3], K.call(this, function() {
11733
- return U.editor.formatText(L, D, ee);
11734
- }, Z, L, 0);
11732
+ value: function(C, D, H, ne, Z) {
11733
+ var U = this, ee = void 0, W = G(C, D, H, ne, Z), I = a(W, 4);
11734
+ return C = I[0], D = I[1], ee = I[2], Z = I[3], K.call(this, function() {
11735
+ return U.editor.formatText(C, D, ee);
11736
+ }, Z, C, 0);
11735
11737
  }
11736
11738
  }, {
11737
11739
  key: "getBounds",
11738
- value: function(L) {
11740
+ value: function(C) {
11739
11741
  var D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, H = void 0;
11740
- typeof L == "number" ? H = this.selection.getBounds(L, D) : H = this.selection.getBounds(L.index, L.length);
11742
+ typeof C == "number" ? H = this.selection.getBounds(C, D) : H = this.selection.getBounds(C.index, C.length);
11741
11743
  var ne = this.container.getBoundingClientRect();
11742
11744
  return {
11743
11745
  bottom: H.bottom - ne.top,
@@ -11751,19 +11753,19 @@ var yo = {}, vm = {
11751
11753
  }, {
11752
11754
  key: "getContents",
11753
11755
  value: function() {
11754
- var L = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - L, H = G(L, D), ne = a(H, 2);
11755
- return L = ne[0], D = ne[1], this.editor.getContents(L, D);
11756
+ var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - C, H = G(C, D), ne = a(H, 2);
11757
+ return C = ne[0], D = ne[1], this.editor.getContents(C, D);
11756
11758
  }
11757
11759
  }, {
11758
11760
  key: "getFormat",
11759
11761
  value: function() {
11760
- var L = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.getSelection(!0), D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
11761
- return typeof L == "number" ? this.editor.getFormat(L, D) : this.editor.getFormat(L.index, L.length);
11762
+ var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.getSelection(!0), D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
11763
+ return typeof C == "number" ? this.editor.getFormat(C, D) : this.editor.getFormat(C.index, C.length);
11762
11764
  }
11763
11765
  }, {
11764
11766
  key: "getIndex",
11765
- value: function(L) {
11766
- return L.offset(this.scroll);
11767
+ value: function(C) {
11768
+ return C.offset(this.scroll);
11767
11769
  }
11768
11770
  }, {
11769
11771
  key: "getLength",
@@ -11772,36 +11774,36 @@ var yo = {}, vm = {
11772
11774
  }
11773
11775
  }, {
11774
11776
  key: "getLeaf",
11775
- value: function(L) {
11776
- return this.scroll.leaf(L);
11777
+ value: function(C) {
11778
+ return this.scroll.leaf(C);
11777
11779
  }
11778
11780
  }, {
11779
11781
  key: "getLine",
11780
- value: function(L) {
11781
- return this.scroll.line(L);
11782
+ value: function(C) {
11783
+ return this.scroll.line(C);
11782
11784
  }
11783
11785
  }, {
11784
11786
  key: "getLines",
11785
11787
  value: function() {
11786
- var L = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE;
11787
- return typeof L != "number" ? this.scroll.lines(L.index, L.length) : this.scroll.lines(L, D);
11788
+ var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE;
11789
+ return typeof C != "number" ? this.scroll.lines(C.index, C.length) : this.scroll.lines(C, D);
11788
11790
  }
11789
11791
  }, {
11790
11792
  key: "getModule",
11791
- value: function(L) {
11792
- return this.theme.modules[L];
11793
+ value: function(C) {
11794
+ return this.theme.modules[C];
11793
11795
  }
11794
11796
  }, {
11795
11797
  key: "getSelection",
11796
11798
  value: function() {
11797
- var L = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
11798
- return L && this.focus(), this.update(), this.selection.getRange()[0];
11799
+ var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
11800
+ return C && this.focus(), this.update(), this.selection.getRange()[0];
11799
11801
  }
11800
11802
  }, {
11801
11803
  key: "getText",
11802
11804
  value: function() {
11803
- var L = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - L, H = G(L, D), ne = a(H, 2);
11804
- return L = ne[0], D = ne[1], this.editor.getText(L, D);
11805
+ var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - C, H = G(C, D), ne = a(H, 2);
11806
+ return C = ne[0], D = ne[1], this.editor.getText(C, D);
11805
11807
  }
11806
11808
  }, {
11807
11809
  key: "hasFocus",
@@ -11810,19 +11812,19 @@ var yo = {}, vm = {
11810
11812
  }
11811
11813
  }, {
11812
11814
  key: "insertEmbed",
11813
- value: function(L, D, H) {
11815
+ value: function(C, D, H) {
11814
11816
  var ne = this, Z = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : V.sources.API;
11815
11817
  return K.call(this, function() {
11816
- return ne.editor.insertEmbed(L, D, H);
11817
- }, Z, L);
11818
+ return ne.editor.insertEmbed(C, D, H);
11819
+ }, Z, C);
11818
11820
  }
11819
11821
  }, {
11820
11822
  key: "insertText",
11821
- value: function(L, D, H, ne, Z) {
11822
- var U = this, ee = void 0, W = G(L, 0, H, ne, Z), I = a(W, 4);
11823
- return L = I[0], ee = I[2], Z = I[3], K.call(this, function() {
11824
- return U.editor.insertText(L, D, ee);
11825
- }, Z, L, D.length);
11823
+ value: function(C, D, H, ne, Z) {
11824
+ var U = this, ee = void 0, W = G(C, 0, H, ne, Z), I = a(W, 4);
11825
+ return C = I[0], ee = I[2], Z = I[3], K.call(this, function() {
11826
+ return U.editor.insertText(C, D, ee);
11827
+ }, Z, C, D.length);
11826
11828
  }
11827
11829
  }, {
11828
11830
  key: "isEnabled",
@@ -11846,16 +11848,16 @@ var yo = {}, vm = {
11846
11848
  }
11847
11849
  }, {
11848
11850
  key: "pasteHTML",
11849
- value: function(L, D, H) {
11850
- this.clipboard.dangerouslyPasteHTML(L, D, H);
11851
+ value: function(C, D, H) {
11852
+ this.clipboard.dangerouslyPasteHTML(C, D, H);
11851
11853
  }
11852
11854
  }, {
11853
11855
  key: "removeFormat",
11854
- value: function(L, D, H) {
11855
- var ne = this, Z = G(L, D, H), U = a(Z, 4);
11856
- return L = U[0], D = U[1], H = U[3], K.call(this, function() {
11857
- return ne.editor.removeFormat(L, D);
11858
- }, H, L);
11856
+ value: function(C, D, H) {
11857
+ var ne = this, Z = G(C, D, H), U = a(Z, 4);
11858
+ return C = U[0], D = U[1], H = U[3], K.call(this, function() {
11859
+ return ne.editor.removeFormat(C, D);
11860
+ }, H, C);
11859
11861
  }
11860
11862
  }, {
11861
11863
  key: "scrollIntoView",
@@ -11864,11 +11866,11 @@ var yo = {}, vm = {
11864
11866
  }
11865
11867
  }, {
11866
11868
  key: "setContents",
11867
- value: function(L) {
11869
+ value: function(C) {
11868
11870
  var D = this, H = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : v.default.sources.API;
11869
11871
  return K.call(this, function() {
11870
- L = new d.default(L);
11871
- var ne = D.getLength(), Z = D.editor.deleteText(0, ne), U = D.editor.applyDelta(L), ee = U.ops[U.ops.length - 1];
11872
+ C = new d.default(C);
11873
+ var ne = D.getLength(), Z = D.editor.deleteText(0, ne), U = D.editor.applyDelta(C), ee = U.ops[U.ops.length - 1];
11872
11874
  ee != null && typeof ee.insert == "string" && ee.insert[ee.insert.length - 1] === `
11873
11875
  ` && (D.editor.deleteText(D.getLength() - 1, 1), U.delete(1));
11874
11876
  var W = Z.compose(U);
@@ -11877,32 +11879,32 @@ var yo = {}, vm = {
11877
11879
  }
11878
11880
  }, {
11879
11881
  key: "setSelection",
11880
- value: function(L, D, H) {
11881
- if (L == null)
11882
+ value: function(C, D, H) {
11883
+ if (C == null)
11882
11884
  this.selection.setRange(null, D || V.sources.API);
11883
11885
  else {
11884
- var ne = G(L, D, H), Z = a(ne, 4);
11885
- L = Z[0], D = Z[1], H = Z[3], this.selection.setRange(new t.Range(L, D), H), H !== v.default.sources.SILENT && this.selection.scrollIntoView(this.scrollingContainer);
11886
+ var ne = G(C, D, H), Z = a(ne, 4);
11887
+ C = Z[0], D = Z[1], H = Z[3], this.selection.setRange(new t.Range(C, D), H), H !== v.default.sources.SILENT && this.selection.scrollIntoView(this.scrollingContainer);
11886
11888
  }
11887
11889
  }
11888
11890
  }, {
11889
11891
  key: "setText",
11890
- value: function(L) {
11891
- var D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : v.default.sources.API, H = new d.default().insert(L);
11892
+ value: function(C) {
11893
+ var D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : v.default.sources.API, H = new d.default().insert(C);
11892
11894
  return this.setContents(H, D);
11893
11895
  }
11894
11896
  }, {
11895
11897
  key: "update",
11896
11898
  value: function() {
11897
- var L = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : v.default.sources.USER, D = this.scroll.update(L);
11898
- return this.selection.update(L), D;
11899
+ var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : v.default.sources.USER, D = this.scroll.update(C);
11900
+ return this.selection.update(C), D;
11899
11901
  }
11900
11902
  }, {
11901
11903
  key: "updateContents",
11902
- value: function(L) {
11904
+ value: function(C) {
11903
11905
  var D = this, H = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : v.default.sources.API;
11904
11906
  return K.call(this, function() {
11905
- return L = new d.default(L), D.editor.applyDelta(L, H);
11907
+ return C = new d.default(C), D.editor.applyDelta(C, H);
11906
11908
  }, H, !0);
11907
11909
  }
11908
11910
  }]), V;
@@ -11934,29 +11936,29 @@ var yo = {}, vm = {
11934
11936
  P.theme = x.default;
11935
11937
  else if (P.theme = M.import("themes/" + P.theme), P.theme == null)
11936
11938
  throw new Error("Invalid theme " + P.theme + ". Did you register it?");
11937
- var L = (0, O.default)(!0, {}, P.theme.DEFAULTS);
11938
- [L, P].forEach(function(ne) {
11939
+ var C = (0, O.default)(!0, {}, P.theme.DEFAULTS);
11940
+ [C, P].forEach(function(ne) {
11939
11941
  ne.modules = ne.modules || {}, Object.keys(ne.modules).forEach(function(Z) {
11940
11942
  ne.modules[Z] === !0 && (ne.modules[Z] = {});
11941
11943
  });
11942
11944
  });
11943
- var D = Object.keys(L.modules).concat(Object.keys(P.modules)), H = D.reduce(function(ne, Z) {
11945
+ var D = Object.keys(C.modules).concat(Object.keys(P.modules)), H = D.reduce(function(ne, Z) {
11944
11946
  var U = M.import("modules/" + Z);
11945
11947
  return U == null ? N.error("Cannot load " + Z + " module. Are you sure you registered it?") : ne[Z] = U.DEFAULTS || {}, ne;
11946
11948
  }, {});
11947
11949
  return P.modules != null && P.modules.toolbar && P.modules.toolbar.constructor !== Object && (P.modules.toolbar = {
11948
11950
  container: P.modules.toolbar
11949
- }), P = (0, O.default)(!0, {}, M.DEFAULTS, { modules: H }, L, P), ["bounds", "container", "scrollingContainer"].forEach(function(ne) {
11951
+ }), P = (0, O.default)(!0, {}, M.DEFAULTS, { modules: H }, C, P), ["bounds", "container", "scrollingContainer"].forEach(function(ne) {
11950
11952
  typeof P[ne] == "string" && (P[ne] = document.querySelector(P[ne]));
11951
11953
  }), P.modules = Object.keys(P.modules).reduce(function(ne, Z) {
11952
11954
  return P.modules[Z] && (ne[Z] = P.modules[Z]), ne;
11953
11955
  }, {}), P;
11954
11956
  }
11955
- function K(V, P, L, D) {
11957
+ function K(V, P, C, D) {
11956
11958
  if (this.options.strict && !this.isEnabled() && P === v.default.sources.USER)
11957
11959
  return new d.default();
11958
- var H = L == null ? null : this.getSelection(), ne = this.editor.delta, Z = V();
11959
- if (H != null && (L === !0 && (L = H.index), D == null ? H = le(H, Z, P) : D !== 0 && (H = le(H, L, D, P)), this.setSelection(H, v.default.sources.SILENT)), Z.length() > 0) {
11960
+ var H = C == null ? null : this.getSelection(), ne = this.editor.delta, Z = V();
11961
+ if (H != null && (C === !0 && (C = H.index), D == null ? H = le(H, Z, P) : D !== 0 && (H = le(H, C, D, P)), this.setSelection(H, v.default.sources.SILENT)), Z.length() > 0) {
11960
11962
  var U, ee = [v.default.events.TEXT_CHANGE, Z, ne, P];
11961
11963
  if ((U = this.emitter).emit.apply(U, [v.default.events.EDITOR_CHANGE].concat(ee)), P !== v.default.sources.SILENT) {
11962
11964
  var W;
@@ -11965,11 +11967,11 @@ var yo = {}, vm = {
11965
11967
  }
11966
11968
  return Z;
11967
11969
  }
11968
- function G(V, P, L, D, H) {
11970
+ function G(V, P, C, D, H) {
11969
11971
  var ne = {};
11970
- return typeof V.index == "number" && typeof V.length == "number" ? typeof P != "number" ? (H = D, D = L, L = P, P = V.length, V = V.index) : (P = V.length, V = V.index) : typeof P != "number" && (H = D, D = L, L = P, P = 0), (typeof L > "u" ? "undefined" : l(L)) === "object" ? (ne = L, H = D) : typeof L == "string" && (D != null ? ne[L] = D : H = L), H = H || v.default.sources.API, [V, P, ne, H];
11972
+ return typeof V.index == "number" && typeof V.length == "number" ? typeof P != "number" ? (H = D, D = C, C = P, P = V.length, V = V.index) : (P = V.length, V = V.index) : typeof P != "number" && (H = D, D = C, C = P, P = 0), (typeof C > "u" ? "undefined" : l(C)) === "object" ? (ne = C, H = D) : typeof C == "string" && (D != null ? ne[C] = D : H = C), H = H || v.default.sources.API, [V, P, ne, H];
11971
11973
  }
11972
- function le(V, P, L, D) {
11974
+ function le(V, P, C, D) {
11973
11975
  if (V == null)
11974
11976
  return null;
11975
11977
  var H = void 0, ne = void 0;
@@ -11980,7 +11982,7 @@ var yo = {}, vm = {
11980
11982
  H = U[0], ne = U[1];
11981
11983
  } else {
11982
11984
  var ee = [V.index, V.index + V.length].map(function(I) {
11983
- return I < P || I === P && D === v.default.sources.USER ? I : L >= 0 ? I + L : Math.max(P, I + L);
11985
+ return I < P || I === P && D === v.default.sources.USER ? I : C >= 0 ? I + C : Math.max(P, I + C);
11984
11986
  }), W = a(ee, 2);
11985
11987
  H = W[0], ne = W[1];
11986
11988
  }
@@ -12484,10 +12486,10 @@ var yo = {}, vm = {
12484
12486
  } : function(V) {
12485
12487
  return V && typeof Symbol == "function" && V.constructor === Symbol && V !== Symbol.prototype ? "symbol" : typeof V;
12486
12488
  }, a = function() {
12487
- function V(P, L) {
12489
+ function V(P, C) {
12488
12490
  var D = [], H = !0, ne = !1, Z = void 0;
12489
12491
  try {
12490
- for (var U = P[Symbol.iterator](), ee; !(H = (ee = U.next()).done) && (D.push(ee.value), !(L && D.length === L)); H = !0)
12492
+ for (var U = P[Symbol.iterator](), ee; !(H = (ee = U.next()).done) && (D.push(ee.value), !(C && D.length === C)); H = !0)
12491
12493
  ;
12492
12494
  } catch (W) {
12493
12495
  ne = !0, Z = W;
@@ -12501,29 +12503,29 @@ var yo = {}, vm = {
12501
12503
  }
12502
12504
  return D;
12503
12505
  }
12504
- return function(P, L) {
12506
+ return function(P, C) {
12505
12507
  if (Array.isArray(P))
12506
12508
  return P;
12507
12509
  if (Symbol.iterator in Object(P))
12508
- return V(P, L);
12510
+ return V(P, C);
12509
12511
  throw new TypeError("Invalid attempt to destructure non-iterable instance");
12510
12512
  };
12511
12513
  }(), u = function() {
12512
- function V(P, L) {
12513
- for (var D = 0; D < L.length; D++) {
12514
- var H = L[D];
12514
+ function V(P, C) {
12515
+ for (var D = 0; D < C.length; D++) {
12516
+ var H = C[D];
12515
12517
  H.enumerable = H.enumerable || !1, H.configurable = !0, "value" in H && (H.writable = !0), Object.defineProperty(P, H.key, H);
12516
12518
  }
12517
12519
  }
12518
- return function(P, L, D) {
12519
- return L && V(P.prototype, L), D && V(P, D), P;
12520
+ return function(P, C, D) {
12521
+ return C && V(P.prototype, C), D && V(P, D), P;
12520
12522
  };
12521
12523
  }(), p = i(2), d = T(p), c = i(20), f = T(c), s = i(0), v = T(s), g = i(13), w = T(g), h = i(24), y = T(h), t = i(4), k = T(t), m = i(16), O = T(m), A = i(21), E = T(A), _ = i(11), x = T(_), b = i(3), S = T(b);
12522
12524
  function T(V) {
12523
12525
  return V && V.__esModule ? V : { default: V };
12524
12526
  }
12525
- function N(V, P, L) {
12526
- return P in V ? Object.defineProperty(V, P, { value: L, enumerable: !0, configurable: !0, writable: !0 }) : V[P] = L, V;
12527
+ function N(V, P, C) {
12528
+ return P in V ? Object.defineProperty(V, P, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : V[P] = C, V;
12527
12529
  }
12528
12530
  function M(V, P) {
12529
12531
  if (!(V instanceof P))
@@ -12535,11 +12537,11 @@ var yo = {}, vm = {
12535
12537
  }
12536
12538
  return u(V, [{
12537
12539
  key: "applyDelta",
12538
- value: function(L) {
12540
+ value: function(C) {
12539
12541
  var D = this, H = !1;
12540
12542
  this.scroll.update();
12541
12543
  var ne = this.scroll.length();
12542
- return this.scroll.batchStart(), L = le(L), L.reduce(function(Z, U) {
12544
+ return this.scroll.batchStart(), C = le(C), C.reduce(function(Z, U) {
12543
12545
  var ee = U.retain || U.delete || U.insert.length || 1, W = U.attributes || {};
12544
12546
  if (U.insert != null) {
12545
12547
  if (typeof U.insert == "string") {
@@ -12547,7 +12549,7 @@ var yo = {}, vm = {
12547
12549
  I.endsWith(`
12548
12550
  `) && H && (H = !1, I = I.slice(0, -1)), Z >= ne && !I.endsWith(`
12549
12551
  `) && (H = !0), D.scroll.insertAt(Z, I);
12550
- var C = D.scroll.line(Z), z = a(C, 2), te = z[0], re = z[1], se = (0, S.default)({}, (0, t.bubbleFormats)(te));
12552
+ var L = D.scroll.line(Z), z = a(L, 2), te = z[0], re = z[1], se = (0, S.default)({}, (0, t.bubbleFormats)(te));
12551
12553
  if (te instanceof k.default) {
12552
12554
  var de = te.descendant(v.default.Leaf, re), Ee = a(de, 1), Oe = Ee[0];
12553
12555
  se = (0, S.default)(se, (0, t.bubbleFormats)(Oe));
@@ -12564,63 +12566,63 @@ var yo = {}, vm = {
12564
12566
  return Object.keys(W).forEach(function(ae) {
12565
12567
  D.scroll.formatAt(Z, ee, ae, W[ae]);
12566
12568
  }), Z + ee;
12567
- }, 0), L.reduce(function(Z, U) {
12569
+ }, 0), C.reduce(function(Z, U) {
12568
12570
  return typeof U.delete == "number" ? (D.scroll.deleteAt(Z, U.delete), Z) : Z + (U.retain || U.insert.length || 1);
12569
- }, 0), this.scroll.batchEnd(), this.update(L);
12571
+ }, 0), this.scroll.batchEnd(), this.update(C);
12570
12572
  }
12571
12573
  }, {
12572
12574
  key: "deleteText",
12573
- value: function(L, D) {
12574
- return this.scroll.deleteAt(L, D), this.update(new d.default().retain(L).delete(D));
12575
+ value: function(C, D) {
12576
+ return this.scroll.deleteAt(C, D), this.update(new d.default().retain(C).delete(D));
12575
12577
  }
12576
12578
  }, {
12577
12579
  key: "formatLine",
12578
- value: function(L, D) {
12580
+ value: function(C, D) {
12579
12581
  var H = this, ne = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
12580
12582
  return this.scroll.update(), Object.keys(ne).forEach(function(Z) {
12581
12583
  if (!(H.scroll.whitelist != null && !H.scroll.whitelist[Z])) {
12582
- var U = H.scroll.lines(L, Math.max(D, 1)), ee = D;
12584
+ var U = H.scroll.lines(C, Math.max(D, 1)), ee = D;
12583
12585
  U.forEach(function(W) {
12584
12586
  var I = W.length();
12585
12587
  if (!(W instanceof w.default))
12586
12588
  W.format(Z, ne[Z]);
12587
12589
  else {
12588
- var C = L - W.offset(H.scroll), z = W.newlineIndex(C + ee) - C + 1;
12589
- W.formatAt(C, z, Z, ne[Z]);
12590
+ var L = C - W.offset(H.scroll), z = W.newlineIndex(L + ee) - L + 1;
12591
+ W.formatAt(L, z, Z, ne[Z]);
12590
12592
  }
12591
12593
  ee -= I;
12592
12594
  });
12593
12595
  }
12594
- }), this.scroll.optimize(), this.update(new d.default().retain(L).retain(D, (0, E.default)(ne)));
12596
+ }), this.scroll.optimize(), this.update(new d.default().retain(C).retain(D, (0, E.default)(ne)));
12595
12597
  }
12596
12598
  }, {
12597
12599
  key: "formatText",
12598
- value: function(L, D) {
12600
+ value: function(C, D) {
12599
12601
  var H = this, ne = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
12600
12602
  return Object.keys(ne).forEach(function(Z) {
12601
- H.scroll.formatAt(L, D, Z, ne[Z]);
12602
- }), this.update(new d.default().retain(L).retain(D, (0, E.default)(ne)));
12603
+ H.scroll.formatAt(C, D, Z, ne[Z]);
12604
+ }), this.update(new d.default().retain(C).retain(D, (0, E.default)(ne)));
12603
12605
  }
12604
12606
  }, {
12605
12607
  key: "getContents",
12606
- value: function(L, D) {
12607
- return this.delta.slice(L, L + D);
12608
+ value: function(C, D) {
12609
+ return this.delta.slice(C, C + D);
12608
12610
  }
12609
12611
  }, {
12610
12612
  key: "getDelta",
12611
12613
  value: function() {
12612
- return this.scroll.lines().reduce(function(L, D) {
12613
- return L.concat(D.delta());
12614
+ return this.scroll.lines().reduce(function(C, D) {
12615
+ return C.concat(D.delta());
12614
12616
  }, new d.default());
12615
12617
  }
12616
12618
  }, {
12617
12619
  key: "getFormat",
12618
- value: function(L) {
12620
+ value: function(C) {
12619
12621
  var D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, H = [], ne = [];
12620
- D === 0 ? this.scroll.path(L).forEach(function(U) {
12622
+ D === 0 ? this.scroll.path(C).forEach(function(U) {
12621
12623
  var ee = a(U, 1), W = ee[0];
12622
12624
  W instanceof k.default ? H.push(W) : W instanceof v.default.Leaf && ne.push(W);
12623
- }) : (H = this.scroll.lines(L, D), ne = this.scroll.descendants(v.default.Leaf, L, D));
12625
+ }) : (H = this.scroll.lines(C, D), ne = this.scroll.descendants(v.default.Leaf, C, D));
12624
12626
  var Z = [H, ne].map(function(U) {
12625
12627
  if (U.length === 0)
12626
12628
  return {};
@@ -12636,8 +12638,8 @@ var yo = {}, vm = {
12636
12638
  }
12637
12639
  }, {
12638
12640
  key: "getText",
12639
- value: function(L, D) {
12640
- return this.getContents(L, D).filter(function(H) {
12641
+ value: function(C, D) {
12642
+ return this.getContents(C, D).filter(function(H) {
12641
12643
  return typeof H.insert == "string";
12642
12644
  }).map(function(H) {
12643
12645
  return H.insert;
@@ -12645,18 +12647,18 @@ var yo = {}, vm = {
12645
12647
  }
12646
12648
  }, {
12647
12649
  key: "insertEmbed",
12648
- value: function(L, D, H) {
12649
- return this.scroll.insertAt(L, D, H), this.update(new d.default().retain(L).insert(N({}, D, H)));
12650
+ value: function(C, D, H) {
12651
+ return this.scroll.insertAt(C, D, H), this.update(new d.default().retain(C).insert(N({}, D, H)));
12650
12652
  }
12651
12653
  }, {
12652
12654
  key: "insertText",
12653
- value: function(L, D) {
12655
+ value: function(C, D) {
12654
12656
  var H = this, ne = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
12655
12657
  return D = D.replace(/\r\n/g, `
12656
12658
  `).replace(/\r/g, `
12657
- `), this.scroll.insertAt(L, D), Object.keys(ne).forEach(function(Z) {
12658
- H.scroll.formatAt(L, D.length, Z, ne[Z]);
12659
- }), this.update(new d.default().retain(L).insert(D, (0, E.default)(ne)));
12659
+ `), this.scroll.insertAt(C, D), Object.keys(ne).forEach(function(Z) {
12660
+ H.scroll.formatAt(C, D.length, Z, ne[Z]);
12661
+ }), this.update(new d.default().retain(C).insert(D, (0, E.default)(ne)));
12660
12662
  }
12661
12663
  }, {
12662
12664
  key: "isBlank",
@@ -12665,51 +12667,51 @@ var yo = {}, vm = {
12665
12667
  return !0;
12666
12668
  if (this.scroll.children.length > 1)
12667
12669
  return !1;
12668
- var L = this.scroll.children.head;
12669
- return L.statics.blotName !== k.default.blotName || L.children.length > 1 ? !1 : L.children.head instanceof O.default;
12670
+ var C = this.scroll.children.head;
12671
+ return C.statics.blotName !== k.default.blotName || C.children.length > 1 ? !1 : C.children.head instanceof O.default;
12670
12672
  }
12671
12673
  }, {
12672
12674
  key: "removeFormat",
12673
- value: function(L, D) {
12674
- var H = this.getText(L, D), ne = this.scroll.line(L + D), Z = a(ne, 2), U = Z[0], ee = Z[1], W = 0, I = new d.default();
12675
+ value: function(C, D) {
12676
+ var H = this.getText(C, D), ne = this.scroll.line(C + D), Z = a(ne, 2), U = Z[0], ee = Z[1], W = 0, I = new d.default();
12675
12677
  U != null && (U instanceof w.default ? W = U.newlineIndex(ee) - ee + 1 : W = U.length() - ee, I = U.delta().slice(ee, ee + W - 1).insert(`
12676
12678
  `));
12677
- var C = this.getContents(L, D + W), z = C.diff(new d.default().insert(H).concat(I)), te = new d.default().retain(L).concat(z);
12679
+ var L = this.getContents(C, D + W), z = L.diff(new d.default().insert(H).concat(I)), te = new d.default().retain(C).concat(z);
12678
12680
  return this.applyDelta(te);
12679
12681
  }
12680
12682
  }, {
12681
12683
  key: "update",
12682
- value: function(L) {
12684
+ value: function(C) {
12683
12685
  var D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], H = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : void 0, ne = this.delta;
12684
12686
  if (D.length === 1 && D[0].type === "characterData" && D[0].target.data.match(q) && v.default.find(D[0].target)) {
12685
- var Z = v.default.find(D[0].target), U = (0, t.bubbleFormats)(Z), ee = Z.offset(this.scroll), W = D[0].oldValue.replace(y.default.CONTENTS, ""), I = new d.default().insert(W), C = new d.default().insert(Z.value()), z = new d.default().retain(ee).concat(I.diff(C, H));
12686
- L = z.reduce(function(te, re) {
12687
+ var Z = v.default.find(D[0].target), U = (0, t.bubbleFormats)(Z), ee = Z.offset(this.scroll), W = D[0].oldValue.replace(y.default.CONTENTS, ""), I = new d.default().insert(W), L = new d.default().insert(Z.value()), z = new d.default().retain(ee).concat(I.diff(L, H));
12688
+ C = z.reduce(function(te, re) {
12687
12689
  return re.insert ? te.insert(re.insert, U) : te.push(re);
12688
- }, new d.default()), this.delta = ne.compose(L);
12690
+ }, new d.default()), this.delta = ne.compose(C);
12689
12691
  } else
12690
- this.delta = this.getDelta(), (!L || !(0, x.default)(ne.compose(L), this.delta)) && (L = ne.diff(this.delta, H));
12691
- return L;
12692
+ this.delta = this.getDelta(), (!C || !(0, x.default)(ne.compose(C), this.delta)) && (C = ne.diff(this.delta, H));
12693
+ return C;
12692
12694
  }
12693
12695
  }]), V;
12694
12696
  }();
12695
12697
  function G(V, P) {
12696
- return Object.keys(P).reduce(function(L, D) {
12697
- return V[D] == null || (P[D] === V[D] ? L[D] = P[D] : Array.isArray(P[D]) ? P[D].indexOf(V[D]) < 0 && (L[D] = P[D].concat([V[D]])) : L[D] = [P[D], V[D]]), L;
12698
+ return Object.keys(P).reduce(function(C, D) {
12699
+ return V[D] == null || (P[D] === V[D] ? C[D] = P[D] : Array.isArray(P[D]) ? P[D].indexOf(V[D]) < 0 && (C[D] = P[D].concat([V[D]])) : C[D] = [P[D], V[D]]), C;
12698
12700
  }, {});
12699
12701
  }
12700
12702
  function le(V) {
12701
- return V.reduce(function(P, L) {
12702
- if (L.insert === 1) {
12703
- var D = (0, E.default)(L.attributes);
12704
- return delete D.image, P.insert({ image: L.attributes.image }, D);
12703
+ return V.reduce(function(P, C) {
12704
+ if (C.insert === 1) {
12705
+ var D = (0, E.default)(C.attributes);
12706
+ return delete D.image, P.insert({ image: C.attributes.image }, D);
12705
12707
  }
12706
- if (L.attributes != null && (L.attributes.list === !0 || L.attributes.bullet === !0) && (L = (0, E.default)(L), L.attributes.list ? L.attributes.list = "ordered" : (L.attributes.list = "bullet", delete L.attributes.bullet)), typeof L.insert == "string") {
12707
- var H = L.insert.replace(/\r\n/g, `
12708
+ if (C.attributes != null && (C.attributes.list === !0 || C.attributes.bullet === !0) && (C = (0, E.default)(C), C.attributes.list ? C.attributes.list = "ordered" : (C.attributes.list = "bullet", delete C.attributes.bullet)), typeof C.insert == "string") {
12709
+ var H = C.insert.replace(/\r\n/g, `
12708
12710
  `).replace(/\r/g, `
12709
12711
  `);
12710
- return P.insert(H, L.attributes);
12712
+ return P.insert(H, C.attributes);
12711
12713
  }
12712
- return P.push(L);
12714
+ return P.push(C);
12713
12715
  }, new d.default());
12714
12716
  }
12715
12717
  n.default = K;
@@ -12863,7 +12865,7 @@ var yo = {}, vm = {
12863
12865
  var P = document.createRange();
12864
12866
  if (S > 0) {
12865
12867
  P.setStart(N, G);
12866
- var L = this.scroll.leaf(b + S), D = l(L, 2);
12868
+ var C = this.scroll.leaf(b + S), D = l(C, 2);
12867
12869
  if (K = D[0], G = D[1], K == null)
12868
12870
  return null;
12869
12871
  var H = K.position(G, !0), ne = l(H, 2);
@@ -12912,8 +12914,8 @@ var yo = {}, vm = {
12912
12914
  var S = this, T = [[b.start.node, b.start.offset]];
12913
12915
  b.native.collapsed || T.push([b.end.node, b.end.offset]);
12914
12916
  var N = T.map(function(K) {
12915
- var G = l(K, 2), le = G[0], V = G[1], P = p.default.find(le, !0), L = P.offset(S.scroll);
12916
- return V === 0 ? L : P instanceof p.default.Container ? L + P.length() : L + P.index(le, V);
12917
+ var G = l(K, 2), le = G[0], V = G[1], P = p.default.find(le, !0), C = P.offset(S.scroll);
12918
+ return V === 0 ? C : P instanceof p.default.Container ? C + P.length() : C + P.index(le, V);
12917
12919
  }), M = Math.min(Math.max.apply(Math, t(N)), this.scroll.length() - 1), q = Math.min.apply(Math, [M].concat(t(N)));
12918
12920
  return new O(q, M - q);
12919
12921
  }
@@ -12944,8 +12946,8 @@ var yo = {}, vm = {
12944
12946
  var S = this, T = b.collapsed ? [b.index] : [b.index, b.index + b.length], N = [], M = this.scroll.length();
12945
12947
  return T.forEach(function(q, K) {
12946
12948
  q = Math.min(M - 1, q);
12947
- var G = void 0, le = S.scroll.leaf(q), V = l(le, 2), P = V[0], L = V[1], D = P.position(L, K !== 0), H = l(D, 2);
12948
- G = H[0], L = H[1], N.push(G, L);
12949
+ var G = void 0, le = S.scroll.leaf(q), V = l(le, 2), P = V[0], C = V[1], D = P.position(C, K !== 0), H = l(D, 2);
12950
+ G = H[0], C = H[1], N.push(G, C);
12949
12951
  }), N.length < 2 && (N = N.concat(N)), N;
12950
12952
  }
12951
12953
  }, {
@@ -13444,11 +13446,11 @@ var yo = {}, vm = {
13444
13446
  else if (l(_, u))
13445
13447
  b = new u();
13446
13448
  else if (l(_, p))
13447
- b = new p(function(P, L) {
13449
+ b = new p(function(P, C) {
13448
13450
  _.then(function(D) {
13449
13451
  P(E(D, x - 1));
13450
13452
  }, function(D) {
13451
- L(E(D, x - 1));
13453
+ C(E(D, x - 1));
13452
13454
  });
13453
13455
  });
13454
13456
  else if (d.__isArray(_))
@@ -13468,12 +13470,12 @@ var yo = {}, vm = {
13468
13470
  return O[T];
13469
13471
  m.push(_), O.push(b);
13470
13472
  }
13471
- l(_, a) && _.forEach(function(P, L) {
13472
- var D = E(L, x - 1), H = E(P, x - 1);
13473
+ l(_, a) && _.forEach(function(P, C) {
13474
+ var D = E(C, x - 1), H = E(P, x - 1);
13473
13475
  b.set(D, H);
13474
13476
  }), l(_, u) && _.forEach(function(P) {
13475
- var L = E(P, x - 1);
13476
- b.add(L);
13477
+ var C = E(P, x - 1);
13478
+ b.add(C);
13477
13479
  });
13478
13480
  for (var N in _) {
13479
13481
  var M;
@@ -13623,24 +13625,24 @@ var yo = {}, vm = {
13623
13625
  }, {
13624
13626
  key: "deleteAt",
13625
13627
  value: function(N, M) {
13626
- var q = this.line(N), K = l(q, 2), G = K[0], le = K[1], V = this.line(N + M), P = l(V, 1), L = P[0];
13627
- if (u(S.prototype.__proto__ || Object.getPrototypeOf(S.prototype), "deleteAt", this).call(this, N, M), L != null && G !== L && le > 0) {
13628
- if (G instanceof s.BlockEmbed || L instanceof s.BlockEmbed) {
13628
+ var q = this.line(N), K = l(q, 2), G = K[0], le = K[1], V = this.line(N + M), P = l(V, 1), C = P[0];
13629
+ if (u(S.prototype.__proto__ || Object.getPrototypeOf(S.prototype), "deleteAt", this).call(this, N, M), C != null && G !== C && le > 0) {
13630
+ if (G instanceof s.BlockEmbed || C instanceof s.BlockEmbed) {
13629
13631
  this.optimize();
13630
13632
  return;
13631
13633
  }
13632
13634
  if (G instanceof y.default) {
13633
13635
  var D = G.newlineIndex(G.length(), !0);
13634
- if (D > -1 && (G = G.split(D + 1), G === L)) {
13636
+ if (D > -1 && (G = G.split(D + 1), G === C)) {
13635
13637
  this.optimize();
13636
13638
  return;
13637
13639
  }
13638
- } else if (L instanceof y.default) {
13639
- var H = L.newlineIndex(0);
13640
- H > -1 && L.split(H + 1);
13640
+ } else if (C instanceof y.default) {
13641
+ var H = C.newlineIndex(0);
13642
+ H > -1 && C.split(H + 1);
13641
13643
  }
13642
- var ne = L.children.head instanceof w.default ? null : L.children.head;
13643
- G.moveChildren(L, ne), G.remove();
13644
+ var ne = C.children.head instanceof w.default ? null : C.children.head;
13645
+ G.moveChildren(C, ne), G.remove();
13644
13646
  }
13645
13647
  this.optimize();
13646
13648
  }
@@ -13696,9 +13698,9 @@ var yo = {}, vm = {
13696
13698
  key: "lines",
13697
13699
  value: function() {
13698
13700
  var N = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, M = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE, q = function K(G, le, V) {
13699
- var P = [], L = V;
13701
+ var P = [], C = V;
13700
13702
  return G.children.forEachAt(le, V, function(D, H, ne) {
13701
- _(D) ? P.push(D) : D instanceof d.default.Container && (P = P.concat(K(D, H, L))), L -= ne;
13703
+ _(D) ? P.push(D) : D instanceof d.default.Container && (P = P.concat(K(D, H, C))), C -= ne;
13702
13704
  }), P;
13703
13705
  };
13704
13706
  return q(this, N, M);
@@ -13736,15 +13738,15 @@ var yo = {}, vm = {
13736
13738
  return U && typeof Symbol == "function" && U.constructor === Symbol && U !== Symbol.prototype ? "symbol" : typeof U;
13737
13739
  }, a = function() {
13738
13740
  function U(ee, W) {
13739
- var I = [], C = !0, z = !1, te = void 0;
13741
+ var I = [], L = !0, z = !1, te = void 0;
13740
13742
  try {
13741
- for (var re = ee[Symbol.iterator](), se; !(C = (se = re.next()).done) && (I.push(se.value), !(W && I.length === W)); C = !0)
13743
+ for (var re = ee[Symbol.iterator](), se; !(L = (se = re.next()).done) && (I.push(se.value), !(W && I.length === W)); L = !0)
13742
13744
  ;
13743
13745
  } catch (de) {
13744
13746
  z = !0, te = de;
13745
13747
  } finally {
13746
13748
  try {
13747
- !C && re.return && re.return();
13749
+ !L && re.return && re.return();
13748
13750
  } finally {
13749
13751
  if (z)
13750
13752
  throw te;
@@ -13762,8 +13764,8 @@ var yo = {}, vm = {
13762
13764
  }(), u = function() {
13763
13765
  function U(ee, W) {
13764
13766
  for (var I = 0; I < W.length; I++) {
13765
- var C = W[I];
13766
- C.enumerable = C.enumerable || !1, C.configurable = !0, "value" in C && (C.writable = !0), Object.defineProperty(ee, C.key, C);
13767
+ var L = W[I];
13768
+ L.enumerable = L.enumerable || !1, L.configurable = !0, "value" in L && (L.writable = !0), Object.defineProperty(ee, L.key, L);
13767
13769
  }
13768
13770
  }
13769
13771
  return function(ee, W, I) {
@@ -13793,36 +13795,36 @@ var yo = {}, vm = {
13793
13795
  var q = (0, E.default)("quill:keyboard"), K = /Mac/i.test(navigator.platform) ? "metaKey" : "ctrlKey", G = function(U) {
13794
13796
  M(ee, U), u(ee, null, [{
13795
13797
  key: "match",
13796
- value: function(I, C) {
13797
- return C = Z(C), ["altKey", "ctrlKey", "metaKey", "shiftKey"].some(function(z) {
13798
- return !!C[z] !== I[z] && C[z] !== null;
13799
- }) ? !1 : C.key === (I.which || I.keyCode);
13798
+ value: function(I, L) {
13799
+ return L = Z(L), ["altKey", "ctrlKey", "metaKey", "shiftKey"].some(function(z) {
13800
+ return !!L[z] !== I[z] && L[z] !== null;
13801
+ }) ? !1 : L.key === (I.which || I.keyCode);
13800
13802
  }
13801
13803
  }]);
13802
13804
  function ee(W, I) {
13803
13805
  T(this, ee);
13804
- var C = N(this, (ee.__proto__ || Object.getPrototypeOf(ee)).call(this, W, I));
13805
- return C.bindings = {}, Object.keys(C.options.bindings).forEach(function(z) {
13806
- z === "list autofill" && W.scroll.whitelist != null && !W.scroll.whitelist.list || C.options.bindings[z] && C.addBinding(C.options.bindings[z]);
13807
- }), C.addBinding({ key: ee.keys.ENTER, shiftKey: null }, D), C.addBinding({ key: ee.keys.ENTER, metaKey: null, ctrlKey: null, altKey: null }, function() {
13808
- }), /Firefox/i.test(navigator.userAgent) ? (C.addBinding({ key: ee.keys.BACKSPACE }, { collapsed: !0 }, V), C.addBinding({ key: ee.keys.DELETE }, { collapsed: !0 }, P)) : (C.addBinding({ key: ee.keys.BACKSPACE }, { collapsed: !0, prefix: /^.?$/ }, V), C.addBinding({ key: ee.keys.DELETE }, { collapsed: !0, suffix: /^.?$/ }, P)), C.addBinding({ key: ee.keys.BACKSPACE }, { collapsed: !1 }, L), C.addBinding({ key: ee.keys.DELETE }, { collapsed: !1 }, L), C.addBinding({ key: ee.keys.BACKSPACE, altKey: null, ctrlKey: null, metaKey: null, shiftKey: null }, { collapsed: !0, offset: 0 }, V), C.listen(), C;
13806
+ var L = N(this, (ee.__proto__ || Object.getPrototypeOf(ee)).call(this, W, I));
13807
+ return L.bindings = {}, Object.keys(L.options.bindings).forEach(function(z) {
13808
+ z === "list autofill" && W.scroll.whitelist != null && !W.scroll.whitelist.list || L.options.bindings[z] && L.addBinding(L.options.bindings[z]);
13809
+ }), L.addBinding({ key: ee.keys.ENTER, shiftKey: null }, D), L.addBinding({ key: ee.keys.ENTER, metaKey: null, ctrlKey: null, altKey: null }, function() {
13810
+ }), /Firefox/i.test(navigator.userAgent) ? (L.addBinding({ key: ee.keys.BACKSPACE }, { collapsed: !0 }, V), L.addBinding({ key: ee.keys.DELETE }, { collapsed: !0 }, P)) : (L.addBinding({ key: ee.keys.BACKSPACE }, { collapsed: !0, prefix: /^.?$/ }, V), L.addBinding({ key: ee.keys.DELETE }, { collapsed: !0, suffix: /^.?$/ }, P)), L.addBinding({ key: ee.keys.BACKSPACE }, { collapsed: !1 }, C), L.addBinding({ key: ee.keys.DELETE }, { collapsed: !1 }, C), L.addBinding({ key: ee.keys.BACKSPACE, altKey: null, ctrlKey: null, metaKey: null, shiftKey: null }, { collapsed: !0, offset: 0 }, V), L.listen(), L;
13809
13811
  }
13810
13812
  return u(ee, [{
13811
13813
  key: "addBinding",
13812
13814
  value: function(I) {
13813
- var C = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, z = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, te = Z(I);
13815
+ var L = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, z = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, te = Z(I);
13814
13816
  if (te == null || te.key == null)
13815
13817
  return q.warn("Attempted to add invalid keyboard binding", te);
13816
- typeof C == "function" && (C = { handler: C }), typeof z == "function" && (z = { handler: z }), te = (0, v.default)(te, C, z), this.bindings[te.key] = this.bindings[te.key] || [], this.bindings[te.key].push(te);
13818
+ typeof L == "function" && (L = { handler: L }), typeof z == "function" && (z = { handler: z }), te = (0, v.default)(te, L, z), this.bindings[te.key] = this.bindings[te.key] || [], this.bindings[te.key].push(te);
13817
13819
  }
13818
13820
  }, {
13819
13821
  key: "listen",
13820
13822
  value: function() {
13821
13823
  var I = this;
13822
- this.quill.root.addEventListener("keydown", function(C) {
13823
- if (!C.defaultPrevented) {
13824
- var z = C.which || C.keyCode, te = (I.bindings[z] || []).filter(function(ve) {
13825
- return ee.match(C, ve);
13824
+ this.quill.root.addEventListener("keydown", function(L) {
13825
+ if (!L.defaultPrevented) {
13826
+ var z = L.which || L.keyCode, te = (I.bindings[z] || []).filter(function(ve) {
13827
+ return ee.match(L, ve);
13826
13828
  });
13827
13829
  if (te.length !== 0) {
13828
13830
  var re = I.quill.getSelection();
@@ -13848,7 +13850,7 @@ var yo = {}, vm = {
13848
13850
  return !1;
13849
13851
  return ve.prefix != null && !ve.prefix.test(ge.prefix) || ve.suffix != null && !ve.suffix.test(ge.suffix) ? !1 : ve.handler.call(I, re, ge) !== !0;
13850
13852
  });
13851
- Q && C.preventDefault();
13853
+ Q && L.preventDefault();
13852
13854
  }
13853
13855
  }
13854
13856
  }
@@ -13936,8 +13938,8 @@ var yo = {}, vm = {
13936
13938
  collapsed: !0,
13937
13939
  format: { list: "checked" },
13938
13940
  handler: function(ee) {
13939
- var W = this.quill.getLine(ee.index), I = a(W, 2), C = I[0], z = I[1], te = (0, v.default)({}, C.formats(), { list: "checked" }), re = new w.default().retain(ee.index).insert(`
13940
- `, te).retain(C.length() - z - 1).retain(1, { list: "unchecked" });
13941
+ var W = this.quill.getLine(ee.index), I = a(W, 2), L = I[0], z = I[1], te = (0, v.default)({}, L.formats(), { list: "checked" }), re = new w.default().retain(ee.index).insert(`
13942
+ `, te).retain(L.length() - z - 1).retain(1, { list: "unchecked" });
13941
13943
  this.quill.updateContents(re, O.default.sources.USER), this.quill.setSelection(ee.index + 1, O.default.sources.SILENT), this.quill.scrollIntoView();
13942
13944
  }
13943
13945
  },
@@ -13947,7 +13949,7 @@ var yo = {}, vm = {
13947
13949
  format: ["header"],
13948
13950
  suffix: /^$/,
13949
13951
  handler: function(ee, W) {
13950
- var I = this.quill.getLine(ee.index), C = a(I, 2), z = C[0], te = C[1], re = new w.default().retain(ee.index).insert(`
13952
+ var I = this.quill.getLine(ee.index), L = a(I, 2), z = L[0], te = L[1], re = new w.default().retain(ee.index).insert(`
13951
13953
  `, W.format).retain(z.length() - te - 1).retain(1, { header: null });
13952
13954
  this.quill.updateContents(re, O.default.sources.USER), this.quill.setSelection(ee.index + 1, O.default.sources.SILENT), this.quill.scrollIntoView();
13953
13955
  }
@@ -13958,7 +13960,7 @@ var yo = {}, vm = {
13958
13960
  format: { list: !1 },
13959
13961
  prefix: /^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,
13960
13962
  handler: function(ee, W) {
13961
- var I = W.prefix.length, C = this.quill.getLine(ee.index), z = a(C, 2), te = z[0], re = z[1];
13963
+ var I = W.prefix.length, L = this.quill.getLine(ee.index), z = a(L, 2), te = z[0], re = z[1];
13962
13964
  if (re > I)
13963
13965
  return !0;
13964
13966
  var se = void 0;
@@ -13989,7 +13991,7 @@ var yo = {}, vm = {
13989
13991
  prefix: /\n\n$/,
13990
13992
  suffix: /^\s+$/,
13991
13993
  handler: function(ee) {
13992
- var W = this.quill.getLine(ee.index), I = a(W, 2), C = I[0], z = I[1], te = new w.default().retain(ee.index + C.length() - z - 2).retain(1, { "code-block": null }).delete(1);
13994
+ var W = this.quill.getLine(ee.index), I = a(W, 2), L = I[0], z = I[1], te = new w.default().retain(ee.index + L.length() - z - 2).retain(1, { "code-block": null }).delete(1);
13993
13995
  this.quill.updateContents(te, O.default.sources.USER);
13994
13996
  }
13995
13997
  },
@@ -14014,11 +14016,11 @@ var yo = {}, vm = {
14014
14016
  }
14015
14017
  function V(U, ee) {
14016
14018
  if (!(U.index === 0 || this.quill.getLength() <= 1)) {
14017
- var W = this.quill.getLine(U.index), I = a(W, 1), C = I[0], z = {};
14019
+ var W = this.quill.getLine(U.index), I = a(W, 1), L = I[0], z = {};
14018
14020
  if (ee.offset === 0) {
14019
14021
  var te = this.quill.getLine(U.index - 1), re = a(te, 1), se = re[0];
14020
14022
  if (se != null && se.length() > 1) {
14021
- var de = C.formats(), Ee = this.quill.getFormat(U.index - 1, 1);
14023
+ var de = L.formats(), Ee = this.quill.getFormat(U.index - 1, 1);
14022
14024
  z = y.default.attributes.diff(de, Ee) || {};
14023
14025
  }
14024
14026
  }
@@ -14029,34 +14031,34 @@ var yo = {}, vm = {
14029
14031
  function P(U, ee) {
14030
14032
  var W = /^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(ee.suffix) ? 2 : 1;
14031
14033
  if (!(U.index >= this.quill.getLength() - W)) {
14032
- var I = {}, C = 0, z = this.quill.getLine(U.index), te = a(z, 1), re = te[0];
14034
+ var I = {}, L = 0, z = this.quill.getLine(U.index), te = a(z, 1), re = te[0];
14033
14035
  if (ee.offset >= re.length() - 1) {
14034
14036
  var se = this.quill.getLine(U.index + 1), de = a(se, 1), Ee = de[0];
14035
14037
  if (Ee) {
14036
14038
  var Oe = re.formats(), oe = this.quill.getFormat(U.index, 1);
14037
- I = y.default.attributes.diff(Oe, oe) || {}, C = Ee.length();
14039
+ I = y.default.attributes.diff(Oe, oe) || {}, L = Ee.length();
14038
14040
  }
14039
14041
  }
14040
- this.quill.deleteText(U.index, W, O.default.sources.USER), Object.keys(I).length > 0 && this.quill.formatLine(U.index + C - 1, W, I, O.default.sources.USER);
14042
+ this.quill.deleteText(U.index, W, O.default.sources.USER), Object.keys(I).length > 0 && this.quill.formatLine(U.index + L - 1, W, I, O.default.sources.USER);
14041
14043
  }
14042
14044
  }
14043
- function L(U) {
14045
+ function C(U) {
14044
14046
  var ee = this.quill.getLines(U), W = {};
14045
14047
  if (ee.length > 1) {
14046
- var I = ee[0].formats(), C = ee[ee.length - 1].formats();
14047
- W = y.default.attributes.diff(C, I) || {};
14048
+ var I = ee[0].formats(), L = ee[ee.length - 1].formats();
14049
+ W = y.default.attributes.diff(L, I) || {};
14048
14050
  }
14049
14051
  this.quill.deleteText(U, O.default.sources.USER), Object.keys(W).length > 0 && this.quill.formatLine(U.index, 1, W, O.default.sources.USER), this.quill.setSelection(U.index, O.default.sources.SILENT), this.quill.focus();
14050
14052
  }
14051
14053
  function D(U, ee) {
14052
14054
  var W = this;
14053
14055
  U.length > 0 && this.quill.scroll.deleteAt(U.index, U.length);
14054
- var I = Object.keys(ee.format).reduce(function(C, z) {
14055
- return k.default.query(z, k.default.Scope.BLOCK) && !Array.isArray(ee.format[z]) && (C[z] = ee.format[z]), C;
14056
+ var I = Object.keys(ee.format).reduce(function(L, z) {
14057
+ return k.default.query(z, k.default.Scope.BLOCK) && !Array.isArray(ee.format[z]) && (L[z] = ee.format[z]), L;
14056
14058
  }, {});
14057
14059
  this.quill.insertText(U.index, `
14058
- `, I, O.default.sources.USER), this.quill.setSelection(U.index + 1, O.default.sources.SILENT), this.quill.focus(), Object.keys(ee.format).forEach(function(C) {
14059
- I[C] == null && (Array.isArray(ee.format[C]) || C !== "link" && W.quill.format(C, ee.format[C], O.default.sources.USER));
14060
+ `, I, O.default.sources.USER), this.quill.setSelection(U.index + 1, O.default.sources.SILENT), this.quill.focus(), Object.keys(ee.format).forEach(function(L) {
14061
+ I[L] == null && (Array.isArray(ee.format[L]) || L !== "link" && W.quill.format(L, ee.format[L], O.default.sources.USER));
14060
14062
  });
14061
14063
  }
14062
14064
  function H(U) {
@@ -14065,13 +14067,13 @@ var yo = {}, vm = {
14065
14067
  shiftKey: !U,
14066
14068
  format: { "code-block": !0 },
14067
14069
  handler: function(W) {
14068
- var I = k.default.query("code-block"), C = W.index, z = W.length, te = this.quill.scroll.descendant(I, C), re = a(te, 2), se = re[0], de = re[1];
14070
+ var I = k.default.query("code-block"), L = W.index, z = W.length, te = this.quill.scroll.descendant(I, L), re = a(te, 2), se = re[0], de = re[1];
14069
14071
  if (se != null) {
14070
14072
  var Ee = this.quill.getIndex(se), Oe = se.newlineIndex(de, !0) + 1, oe = se.newlineIndex(Ee + de + z), ae = se.domNode.textContent.slice(Oe, oe).split(`
14071
14073
  `);
14072
14074
  de = 0, ae.forEach(function(ye, be) {
14073
- U ? (se.insertAt(Oe + de, I.TAB), de += I.TAB.length, be === 0 ? C += I.TAB.length : z += I.TAB.length) : ye.startsWith(I.TAB) && (se.deleteAt(Oe + de, I.TAB.length), de -= I.TAB.length, be === 0 ? C -= I.TAB.length : z -= I.TAB.length), de += ye.length + 1;
14074
- }), this.quill.update(O.default.sources.USER), this.quill.setSelection(C, z, O.default.sources.SILENT);
14075
+ U ? (se.insertAt(Oe + de, I.TAB), de += I.TAB.length, be === 0 ? L += I.TAB.length : z += I.TAB.length) : ye.startsWith(I.TAB) && (se.deleteAt(Oe + de, I.TAB.length), de -= I.TAB.length, be === 0 ? L -= I.TAB.length : z -= I.TAB.length), de += ye.length + 1;
14076
+ }), this.quill.update(O.default.sources.USER), this.quill.setSelection(L, z, O.default.sources.SILENT);
14075
14077
  }
14076
14078
  }
14077
14079
  };
@@ -15279,8 +15281,8 @@ var yo = {}, vm = {
15279
15281
  var U = S(this, (H.__proto__ || Object.getPrototypeOf(H)).call(this, ne, Z)), ee = function W(I) {
15280
15282
  if (!document.body.contains(ne.root))
15281
15283
  return document.body.removeEventListener("click", W);
15282
- U.tooltip != null && !U.tooltip.root.contains(I.target) && document.activeElement !== U.tooltip.textbox && !U.quill.hasFocus() && U.tooltip.hide(), U.pickers != null && U.pickers.forEach(function(C) {
15283
- C.container.contains(I.target) || C.close();
15284
+ U.tooltip != null && !U.tooltip.root.contains(I.target) && document.activeElement !== U.tooltip.textbox && !U.quill.hasFocus() && U.tooltip.hide(), U.pickers != null && U.pickers.forEach(function(L) {
15285
+ L.container.contains(I.target) || L.close();
15284
15286
  });
15285
15287
  };
15286
15288
  return ne.emitter.listenDOM("click", document.body, ee), U;
@@ -15303,8 +15305,8 @@ var yo = {}, vm = {
15303
15305
  else if (typeof U[I] == "string")
15304
15306
  ee.innerHTML = U[I];
15305
15307
  else {
15306
- var C = ee.value || "";
15307
- C != null && U[I][C] && (ee.innerHTML = U[I][C]);
15308
+ var L = ee.value || "";
15309
+ L != null && U[I][L] && (ee.innerHTML = U[I][L]);
15308
15310
  }
15309
15311
  });
15310
15312
  });
@@ -15315,16 +15317,16 @@ var yo = {}, vm = {
15315
15317
  var ee = this;
15316
15318
  this.pickers = Z.map(function(I) {
15317
15319
  if (I.classList.contains("ql-align"))
15318
- return I.querySelector("option") == null && L(I, N), new m.default(I, U.align);
15320
+ return I.querySelector("option") == null && C(I, N), new m.default(I, U.align);
15319
15321
  if (I.classList.contains("ql-background") || I.classList.contains("ql-color")) {
15320
- var C = I.classList.contains("ql-background") ? "background" : "color";
15321
- return I.querySelector("option") == null && L(I, M, C === "background" ? "#ffffff" : "#000000"), new t.default(I, U[C]);
15322
+ var L = I.classList.contains("ql-background") ? "background" : "color";
15323
+ return I.querySelector("option") == null && C(I, M, L === "background" ? "#ffffff" : "#000000"), new t.default(I, U[L]);
15322
15324
  } else
15323
- return I.querySelector("option") == null && (I.classList.contains("ql-font") ? L(I, q) : I.classList.contains("ql-header") ? L(I, K) : I.classList.contains("ql-size") && L(I, G)), new A.default(I);
15325
+ return I.querySelector("option") == null && (I.classList.contains("ql-font") ? C(I, q) : I.classList.contains("ql-header") ? C(I, K) : I.classList.contains("ql-size") && C(I, G)), new A.default(I);
15324
15326
  });
15325
15327
  var W = function() {
15326
- ee.pickers.forEach(function(C) {
15327
- C.update();
15328
+ ee.pickers.forEach(function(L) {
15329
+ L.update();
15328
15330
  });
15329
15331
  };
15330
15332
  this.quill.on(s.default.events.EDITOR_CHANGE, W);
@@ -15420,7 +15422,7 @@ var yo = {}, vm = {
15420
15422
  var H = D.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/) || D.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);
15421
15423
  return H ? (H[1] || "https") + "://www.youtube.com/embed/" + H[2] + "?showinfo=0" : (H = D.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/)) ? (H[1] || "https") + "://player.vimeo.com/video/" + H[2] + "/" : D;
15422
15424
  }
15423
- function L(D, H) {
15425
+ function C(D, H) {
15424
15426
  var ne = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
15425
15427
  H.forEach(function(Z) {
15426
15428
  var U = document.createElement("option");
@@ -15827,17 +15829,17 @@ var yo = {}, vm = {
15827
15829
  S[N] = -1, T[N] = -1;
15828
15830
  S[x + 1] = 0, T[x + 1] = 0;
15829
15831
  for (var M = A - E, q = M % 2 != 0, K = 0, G = 0, le = 0, V = 0, P = 0; P < _; P++) {
15830
- for (var L = -P + K; L <= P - G; L += 2) {
15831
- var D = x + L, H;
15832
- L == -P || L != P && S[D - 1] < S[D + 1] ? H = S[D + 1] : H = S[D - 1] + 1;
15833
- for (var ne = H - L; H < A && ne < E && m.charAt(H) == O.charAt(ne); )
15832
+ for (var C = -P + K; C <= P - G; C += 2) {
15833
+ var D = x + C, H;
15834
+ C == -P || C != P && S[D - 1] < S[D + 1] ? H = S[D + 1] : H = S[D - 1] + 1;
15835
+ for (var ne = H - C; H < A && ne < E && m.charAt(H) == O.charAt(ne); )
15834
15836
  H++, ne++;
15835
15837
  if (S[D] = H, H > A)
15836
15838
  G += 2;
15837
15839
  else if (ne > E)
15838
15840
  K += 2;
15839
15841
  else if (q) {
15840
- var Z = x + M - L;
15842
+ var Z = x + M - C;
15841
15843
  if (Z >= 0 && Z < b && T[Z] != -1) {
15842
15844
  var U = A - T[Z];
15843
15845
  if (H >= U)
@@ -15889,15 +15891,15 @@ var yo = {}, vm = {
15889
15891
  if (A.length < 4 || E.length * 2 < A.length)
15890
15892
  return null;
15891
15893
  function _(G, le, V) {
15892
- for (var P = G.substring(V, V + Math.floor(G.length / 4)), L = -1, D = "", H, ne, Z, U; (L = le.indexOf(P, L + 1)) != -1; ) {
15894
+ for (var P = G.substring(V, V + Math.floor(G.length / 4)), C = -1, D = "", H, ne, Z, U; (C = le.indexOf(P, C + 1)) != -1; ) {
15893
15895
  var ee = f(
15894
15896
  G.substring(V),
15895
- le.substring(L)
15897
+ le.substring(C)
15896
15898
  ), W = s(
15897
15899
  G.substring(0, V),
15898
- le.substring(0, L)
15900
+ le.substring(0, C)
15899
15901
  );
15900
- D.length < W + ee && (D = le.substring(L - W, L) + le.substring(L, L + ee), H = G.substring(0, V - W), ne = G.substring(V + ee), Z = le.substring(0, L - W), U = le.substring(L + ee));
15902
+ D.length < W + ee && (D = le.substring(C - W, C) + le.substring(C, C + ee), H = G.substring(0, V - W), ne = G.substring(V + ee), Z = le.substring(0, C - W), U = le.substring(C + ee));
15901
15903
  }
15902
15904
  return D.length * 2 >= G.length ? [
15903
15905
  H,
@@ -16208,9 +16210,9 @@ var yo = {}, vm = {
16208
16210
  throw new TypeError("Super expression must either be null or a function, not " + typeof ae);
16209
16211
  oe.prototype = Object.create(ae && ae.prototype, { constructor: { value: oe, enumerable: !1, writable: !0, configurable: !0 } }), ae && (Object.setPrototypeOf ? Object.setPrototypeOf(oe, ae) : oe.__proto__ = ae);
16210
16212
  }
16211
- var G = (0, y.default)("quill:clipboard"), le = "__ql-matcher", V = [[Node.TEXT_NODE, Oe], [Node.TEXT_NODE, se], ["br", z], [Node.ELEMENT_NODE, se], [Node.ELEMENT_NODE, C], [Node.ELEMENT_NODE, de], [Node.ELEMENT_NODE, I], [Node.ELEMENT_NODE, Ee], ["li", re], ["b", W.bind(W, "bold")], ["i", W.bind(W, "italic")], ["style", te]], P = [m.AlignAttribute, x.DirectionAttribute].reduce(function(oe, ae) {
16213
+ var G = (0, y.default)("quill:clipboard"), le = "__ql-matcher", V = [[Node.TEXT_NODE, Oe], [Node.TEXT_NODE, se], ["br", z], [Node.ELEMENT_NODE, se], [Node.ELEMENT_NODE, L], [Node.ELEMENT_NODE, de], [Node.ELEMENT_NODE, I], [Node.ELEMENT_NODE, Ee], ["li", re], ["b", W.bind(W, "bold")], ["i", W.bind(W, "italic")], ["style", te]], P = [m.AlignAttribute, x.DirectionAttribute].reduce(function(oe, ae) {
16212
16214
  return oe[ae.keyName] = ae, oe;
16213
- }, {}), L = [m.AlignStyle, O.BackgroundStyle, _.ColorStyle, x.DirectionStyle, b.FontStyle, S.SizeStyle].reduce(function(oe, ae) {
16215
+ }, {}), C = [m.AlignStyle, O.BackgroundStyle, _.ColorStyle, x.DirectionStyle, b.FontStyle, S.SizeStyle].reduce(function(oe, ae) {
16214
16216
  return oe[ae.keyName] = ae, oe;
16215
16217
  }, {}), D = function(oe) {
16216
16218
  K(ae, oe);
@@ -16337,10 +16339,10 @@ var yo = {}, vm = {
16337
16339
  var ye = v.default.Attributor.Attribute.keys(oe), be = v.default.Attributor.Class.keys(oe), fe = v.default.Attributor.Style.keys(oe), Be = {};
16338
16340
  return ye.concat(be).concat(fe).forEach(function(Ie) {
16339
16341
  var Ne = v.default.query(Ie, v.default.Scope.ATTRIBUTE);
16340
- Ne != null && (Be[Ne.attrName] = Ne.value(oe), Be[Ne.attrName]) || (Ne = P[Ie], Ne != null && (Ne.attrName === Ie || Ne.keyName === Ie) && (Be[Ne.attrName] = Ne.value(oe) || void 0), Ne = L[Ie], Ne != null && (Ne.attrName === Ie || Ne.keyName === Ie) && (Ne = L[Ie], Be[Ne.attrName] = Ne.value(oe) || void 0));
16342
+ Ne != null && (Be[Ne.attrName] = Ne.value(oe), Be[Ne.attrName]) || (Ne = P[Ie], Ne != null && (Ne.attrName === Ie || Ne.keyName === Ie) && (Be[Ne.attrName] = Ne.value(oe) || void 0), Ne = C[Ie], Ne != null && (Ne.attrName === Ie || Ne.keyName === Ie) && (Ne = C[Ie], Be[Ne.attrName] = Ne.value(oe) || void 0));
16341
16343
  }), Object.keys(Be).length > 0 && (ae = H(ae, Be)), ae;
16342
16344
  }
16343
- function C(oe, ae) {
16345
+ function L(oe, ae) {
16344
16346
  var ye = v.default.query(oe);
16345
16347
  if (ye == null)
16346
16348
  return ae;
@@ -16401,7 +16403,7 @@ var yo = {}, vm = {
16401
16403
  }
16402
16404
  return ae.insert(ye);
16403
16405
  }
16404
- n.default = D, n.matchAttributor = I, n.matchBlot = C, n.matchNewline = se, n.matchSpacing = de, n.matchText = Oe;
16406
+ n.default = D, n.matchAttributor = I, n.matchBlot = L, n.matchNewline = se, n.matchSpacing = de, n.matchText = Oe;
16405
16407
  },
16406
16408
  function(r, n, i) {
16407
16409
  Object.defineProperty(n, "__esModule", {
@@ -16589,7 +16591,7 @@ var yo = {}, vm = {
16589
16591
  } else
16590
16592
  M.classList.contains("ql-active") ? V = !1 : V = M.value || !M.hasAttribute("value"), le.preventDefault();
16591
16593
  q.quill.focus();
16592
- var L = q.quill.selection.getRange(), D = l(L, 1), H = D[0];
16594
+ var C = q.quill.selection.getRange(), D = l(C, 1), H = D[0];
16593
16595
  if (q.handlers[K] != null)
16594
16596
  q.handlers[K].call(q, V);
16595
16597
  else if (c.default.query(K).prototype instanceof c.default.Embed) {
@@ -16615,8 +16617,8 @@ var yo = {}, vm = {
16615
16617
  else if (q[le] == null)
16616
16618
  P = V.querySelector("option[selected]");
16617
16619
  else if (!Array.isArray(q[le])) {
16618
- var L = q[le];
16619
- typeof L == "string" && (L = L.replace(/\"/g, '\\"')), P = V.querySelector('option[value="' + L + '"]');
16620
+ var C = q[le];
16621
+ typeof C == "string" && (C = C.replace(/\"/g, '\\"')), P = V.querySelector('option[value="' + C + '"]');
16620
16622
  }
16621
16623
  P == null ? (V.value = "", V.selectedIndex = -1) : P.selected = !0;
16622
16624
  } else if (M == null)
@@ -17007,8 +17009,8 @@ var yo = {}, vm = {
17007
17009
  var G = N.quill.scroll.descendant(w.default, M.index), le = l(G, 2), V = le[0], P = le[1];
17008
17010
  if (V != null) {
17009
17011
  N.linkRange = new h.Range(M.index - P, V.length());
17010
- var L = w.default.formats(V.domNode);
17011
- N.preview.textContent = L, N.preview.setAttribute("href", L), N.show(), N.position(N.quill.getBounds(N.linkRange));
17012
+ var C = w.default.formats(V.domNode);
17013
+ N.preview.textContent = C, N.preview.setAttribute("href", C), N.show(), N.position(N.quill.getBounds(N.linkRange));
17012
17014
  return;
17013
17015
  }
17014
17016
  } else
@@ -17030,7 +17032,7 @@ var yo = {}, vm = {
17030
17032
  Object.defineProperty(n, "__esModule", {
17031
17033
  value: !0
17032
17034
  });
17033
- var l = i(29), a = fe(l), u = i(36), p = i(38), d = i(64), c = i(65), f = fe(c), s = i(66), v = fe(s), g = i(67), w = fe(g), h = i(37), y = i(26), t = i(39), k = i(40), m = i(56), O = fe(m), A = i(68), E = fe(A), _ = i(27), x = fe(_), b = i(69), S = fe(b), T = i(70), N = fe(T), M = i(71), q = fe(M), K = i(72), G = fe(K), le = i(73), V = fe(le), P = i(13), L = fe(P), D = i(74), H = fe(D), ne = i(75), Z = fe(ne), U = i(57), ee = fe(U), W = i(41), I = fe(W), C = i(28), z = fe(C), te = i(59), re = fe(te), se = i(60), de = fe(se), Ee = i(61), Oe = fe(Ee), oe = i(108), ae = fe(oe), ye = i(62), be = fe(ye);
17035
+ var l = i(29), a = fe(l), u = i(36), p = i(38), d = i(64), c = i(65), f = fe(c), s = i(66), v = fe(s), g = i(67), w = fe(g), h = i(37), y = i(26), t = i(39), k = i(40), m = i(56), O = fe(m), A = i(68), E = fe(A), _ = i(27), x = fe(_), b = i(69), S = fe(b), T = i(70), N = fe(T), M = i(71), q = fe(M), K = i(72), G = fe(K), le = i(73), V = fe(le), P = i(13), C = fe(P), D = i(74), H = fe(D), ne = i(75), Z = fe(ne), U = i(57), ee = fe(U), W = i(41), I = fe(W), L = i(28), z = fe(L), te = i(59), re = fe(te), se = i(60), de = fe(se), Ee = i(61), Oe = fe(Ee), oe = i(108), ae = fe(oe), ye = i(62), be = fe(ye);
17034
17036
  function fe(Be) {
17035
17037
  return Be && Be.__esModule ? Be : { default: Be };
17036
17038
  }
@@ -17057,7 +17059,7 @@ var yo = {}, vm = {
17057
17059
  "formats/font": t.FontClass,
17058
17060
  "formats/size": k.SizeClass,
17059
17061
  "formats/blockquote": f.default,
17060
- "formats/code-block": L.default,
17062
+ "formats/code-block": C.default,
17061
17063
  "formats/header": v.default,
17062
17064
  "formats/list": w.default,
17063
17065
  "formats/bold": O.default,
@@ -18387,7 +18389,7 @@ var km = ei, ir = {}, xm = {
18387
18389
  (function(e, o) {
18388
18390
  var r = 200, n = "__lodash_hash_undefined__", i = 9007199254740991, l = "[object Arguments]", a = "[object Array]", u = "[object Boolean]", p = "[object Date]", d = "[object Error]", c = "[object Function]", f = "[object GeneratorFunction]", s = "[object Map]", v = "[object Number]", g = "[object Object]", w = "[object Promise]", h = "[object RegExp]", y = "[object Set]", t = "[object String]", k = "[object Symbol]", m = "[object WeakMap]", O = "[object ArrayBuffer]", A = "[object DataView]", E = "[object Float32Array]", _ = "[object Float64Array]", x = "[object Int8Array]", b = "[object Int16Array]", S = "[object Int32Array]", T = "[object Uint8Array]", N = "[object Uint8ClampedArray]", M = "[object Uint16Array]", q = "[object Uint32Array]", K = /[\\^$.*+?()[\]{}|]/g, G = /\w*$/, le = /^\[object .+?Constructor\]$/, V = /^(?:0|[1-9]\d*)$/, P = {};
18389
18391
  P[l] = P[a] = P[O] = P[A] = P[u] = P[p] = P[E] = P[_] = P[x] = P[b] = P[S] = P[s] = P[v] = P[g] = P[h] = P[y] = P[t] = P[k] = P[T] = P[N] = P[M] = P[q] = !0, P[d] = P[c] = P[m] = !1;
18390
- var L = typeof nt == "object" && nt && nt.Object === Object && nt, D = typeof self == "object" && self && self.Object === Object && self, H = L || D || Function("return this")(), ne = o && !o.nodeType && o, Z = ne && !0 && e && !e.nodeType && e, U = Z && Z.exports === ne;
18392
+ var C = typeof nt == "object" && nt && nt.Object === Object && nt, D = typeof self == "object" && self && self.Object === Object && self, H = C || D || Function("return this")(), ne = o && !o.nodeType && o, Z = ne && !0 && e && !e.nodeType && e, U = Z && Z.exports === ne;
18391
18393
  function ee(B, j) {
18392
18394
  return B.set(j[0], j[1]), B;
18393
18395
  }
@@ -18399,7 +18401,7 @@ var km = ei, ir = {}, xm = {
18399
18401
  ;
18400
18402
  return B;
18401
18403
  }
18402
- function C(B, j) {
18404
+ function L(B, j) {
18403
18405
  for (var X = -1, ce = j.length, Ce = B.length; ++X < ce; )
18404
18406
  B[Ce + X] = j[X];
18405
18407
  return B;
@@ -18587,8 +18589,8 @@ var km = ei, ir = {}, xm = {
18587
18589
  return Me;
18588
18590
  if (!qt(B))
18589
18591
  return B;
18590
- var We = Un(B);
18591
- if (We) {
18592
+ var Ye = Un(B);
18593
+ if (Ye) {
18592
18594
  if (Me = Ii(B), !j)
18593
18595
  return Ai(B, Me);
18594
18596
  } else {
@@ -18610,7 +18612,7 @@ var km = ei, ir = {}, xm = {
18610
18612
  var bt = Pe.get(B);
18611
18613
  if (bt)
18612
18614
  return bt;
18613
- if (Pe.set(B, Me), !We)
18615
+ if (Pe.set(B, Me), !Ye)
18614
18616
  var et = X ? Bi(B) : Vn(B);
18615
18617
  return I(et || B, function(ft, it) {
18616
18618
  et && (it = ft, ft = B[it]), fr(Me, it, Rn(ft, j, X, ce, it, B, Pe));
@@ -18621,7 +18623,7 @@ var km = ei, ir = {}, xm = {
18621
18623
  }
18622
18624
  function wi(B, j, X) {
18623
18625
  var ce = j(B);
18624
- return Un(B) ? ce : C(ce, X(B));
18626
+ return Un(B) ? ce : L(ce, X(B));
18625
18627
  }
18626
18628
  function ki(B) {
18627
18629
  return Ne.call(B);
@@ -18837,9 +18839,9 @@ var or = {}, _m = {
18837
18839
  }
18838
18840
  };
18839
18841
  (function(e, o) {
18840
- var r = 200, n = "__lodash_hash_undefined__", i = 1, l = 2, a = 9007199254740991, u = "[object Arguments]", p = "[object Array]", d = "[object AsyncFunction]", c = "[object Boolean]", f = "[object Date]", s = "[object Error]", v = "[object Function]", g = "[object GeneratorFunction]", w = "[object Map]", h = "[object Number]", y = "[object Null]", t = "[object Object]", k = "[object Promise]", m = "[object Proxy]", O = "[object RegExp]", A = "[object Set]", E = "[object String]", _ = "[object Symbol]", x = "[object Undefined]", b = "[object WeakMap]", S = "[object ArrayBuffer]", T = "[object DataView]", N = "[object Float32Array]", M = "[object Float64Array]", q = "[object Int8Array]", K = "[object Int16Array]", G = "[object Int32Array]", le = "[object Uint8Array]", V = "[object Uint8ClampedArray]", P = "[object Uint16Array]", L = "[object Uint32Array]", D = /[\\^$.*+?()[\]{}|]/g, H = /^\[object .+?Constructor\]$/, ne = /^(?:0|[1-9]\d*)$/, Z = {};
18841
- Z[N] = Z[M] = Z[q] = Z[K] = Z[G] = Z[le] = Z[V] = Z[P] = Z[L] = !0, Z[u] = Z[p] = Z[S] = Z[c] = Z[T] = Z[f] = Z[s] = Z[v] = Z[w] = Z[h] = Z[t] = Z[O] = Z[A] = Z[E] = Z[b] = !1;
18842
- var U = typeof nt == "object" && nt && nt.Object === Object && nt, ee = typeof self == "object" && self && self.Object === Object && self, W = U || ee || Function("return this")(), I = o && !o.nodeType && o, C = I && !0 && e && !e.nodeType && e, z = C && C.exports === I, te = z && U.process, re = function() {
18842
+ var r = 200, n = "__lodash_hash_undefined__", i = 1, l = 2, a = 9007199254740991, u = "[object Arguments]", p = "[object Array]", d = "[object AsyncFunction]", c = "[object Boolean]", f = "[object Date]", s = "[object Error]", v = "[object Function]", g = "[object GeneratorFunction]", w = "[object Map]", h = "[object Number]", y = "[object Null]", t = "[object Object]", k = "[object Promise]", m = "[object Proxy]", O = "[object RegExp]", A = "[object Set]", E = "[object String]", _ = "[object Symbol]", x = "[object Undefined]", b = "[object WeakMap]", S = "[object ArrayBuffer]", T = "[object DataView]", N = "[object Float32Array]", M = "[object Float64Array]", q = "[object Int8Array]", K = "[object Int16Array]", G = "[object Int32Array]", le = "[object Uint8Array]", V = "[object Uint8ClampedArray]", P = "[object Uint16Array]", C = "[object Uint32Array]", D = /[\\^$.*+?()[\]{}|]/g, H = /^\[object .+?Constructor\]$/, ne = /^(?:0|[1-9]\d*)$/, Z = {};
18843
+ Z[N] = Z[M] = Z[q] = Z[K] = Z[G] = Z[le] = Z[V] = Z[P] = Z[C] = !0, Z[u] = Z[p] = Z[S] = Z[c] = Z[T] = Z[f] = Z[s] = Z[v] = Z[w] = Z[h] = Z[t] = Z[O] = Z[A] = Z[E] = Z[b] = !1;
18844
+ var U = typeof nt == "object" && nt && nt.Object === Object && nt, ee = typeof self == "object" && self && self.Object === Object && self, W = U || ee || Function("return this")(), I = o && !o.nodeType && o, L = I && !0 && e && !e.nodeType && e, z = L && L.exports === I, te = z && U.process, re = function() {
18843
18845
  try {
18844
18846
  return te && te.binding && te.binding("util");
18845
18847
  } catch {
@@ -19032,9 +19034,9 @@ var or = {}, _m = {
19032
19034
  }
19033
19035
  Mt.prototype.clear = Rn, Mt.prototype.delete = bi, Mt.prototype.get = wi, Mt.prototype.has = ki, Mt.prototype.set = xi;
19034
19036
  function _i(B, j) {
19035
- var X = kn(B), ce = !X && mr(B), Ce = !X && !ce && xn(B), Te = !X && !ce && !Ce && br(B), Pe = X || ce || Ce || Te, Me = Pe ? oe(B.length, String) : [], We = Me.length;
19037
+ var X = kn(B), ce = !X && mr(B), Ce = !X && !ce && xn(B), Te = !X && !ce && !Ce && br(B), Pe = X || ce || Ce || Te, Me = Pe ? oe(B.length, String) : [], Ye = Me.length;
19036
19038
  for (var Fe in B)
19037
- (j || ve.call(B, Fe)) && !(Pe && (Fe == "length" || Ce && (Fe == "offset" || Fe == "parent") || Te && (Fe == "buffer" || Fe == "byteLength" || Fe == "byteOffset") || Ni(Fe, We))) && Me.push(Fe);
19039
+ (j || ve.call(B, Fe)) && !(Pe && (Fe == "length" || Ce && (Fe == "offset" || Fe == "parent") || Te && (Fe == "buffer" || Fe == "byteLength" || Fe == "byteOffset") || Ni(Fe, Ye))) && Me.push(Fe);
19038
19040
  return Me;
19039
19041
  }
19040
19042
  function wn(B, j) {
@@ -19057,16 +19059,16 @@ var or = {}, _m = {
19057
19059
  return B === j ? !0 : B == null || j == null || !qt(B) && !qt(j) ? B !== B && j !== j : Si(B, j, X, ce, hr, Ce);
19058
19060
  }
19059
19061
  function Si(B, j, X, ce, Ce, Te) {
19060
- var Pe = kn(B), Me = kn(j), We = Pe ? p : jt(B), Fe = Me ? p : jt(j);
19061
- We = We == u ? t : We, Fe = Fe == u ? t : Fe;
19062
- var ct = We == t, bt = Fe == t, et = We == Fe;
19062
+ var Pe = kn(B), Me = kn(j), Ye = Pe ? p : jt(B), Fe = Me ? p : jt(j);
19063
+ Ye = Ye == u ? t : Ye, Fe = Fe == u ? t : Fe;
19064
+ var ct = Ye == t, bt = Fe == t, et = Ye == Fe;
19063
19065
  if (et && xn(B)) {
19064
19066
  if (!xn(j))
19065
19067
  return !1;
19066
19068
  Pe = !0, ct = !1;
19067
19069
  }
19068
19070
  if (et && !ct)
19069
- return Te || (Te = new Mt()), Pe || br(B) ? Fn(B, j, X, ce, Ce, Te) : Ti(B, j, We, X, ce, Ce, Te);
19071
+ return Te || (Te = new Mt()), Pe || br(B) ? Fn(B, j, X, ce, Ce, Te) : Ti(B, j, Ye, X, ce, Ce, Te);
19070
19072
  if (!(X & i)) {
19071
19073
  var ft = ct && ve.call(B, "__wrapped__"), it = bt && ve.call(j, "__wrapped__");
19072
19074
  if (ft || it) {
@@ -19094,8 +19096,8 @@ var or = {}, _m = {
19094
19096
  return j;
19095
19097
  }
19096
19098
  function Fn(B, j, X, ce, Ce, Te) {
19097
- var Pe = X & i, Me = B.length, We = j.length;
19098
- if (Me != We && !(Pe && We > Me))
19099
+ var Pe = X & i, Me = B.length, Ye = j.length;
19100
+ if (Me != Ye && !(Pe && Ye > Me))
19099
19101
  return !1;
19100
19102
  var Fe = Te.get(B);
19101
19103
  if (Fe && Te.get(j))
@@ -19146,8 +19148,8 @@ var or = {}, _m = {
19146
19148
  case w:
19147
19149
  var Me = fe;
19148
19150
  case A:
19149
- var We = ce & i;
19150
- if (Me || (Me = Ie), B.size != j.size && !We)
19151
+ var Ye = ce & i;
19152
+ if (Me || (Me = Ie), B.size != j.size && !Ye)
19151
19153
  return !1;
19152
19154
  var Fe = Pe.get(B);
19153
19155
  if (Fe)
@@ -19162,10 +19164,10 @@ var or = {}, _m = {
19162
19164
  return !1;
19163
19165
  }
19164
19166
  function Bi(B, j, X, ce, Ce, Te) {
19165
- var Pe = X & i, Me = fn(B), We = Me.length, Fe = fn(j), ct = Fe.length;
19166
- if (We != ct && !Pe)
19167
+ var Pe = X & i, Me = fn(B), Ye = Me.length, Fe = fn(j), ct = Fe.length;
19168
+ if (Ye != ct && !Pe)
19167
19169
  return !1;
19168
- for (var bt = We; bt--; ) {
19170
+ for (var bt = Ye; bt--; ) {
19169
19171
  var et = Me[bt];
19170
19172
  if (!(Pe ? et in j : ve.call(j, et)))
19171
19173
  return !1;
@@ -19175,7 +19177,7 @@ var or = {}, _m = {
19175
19177
  return ft == j;
19176
19178
  var it = !0;
19177
19179
  Te.set(B, j), Te.set(j, B);
19178
- for (var tn = Pe; ++bt < We; ) {
19180
+ for (var tn = Pe; ++bt < Ye; ) {
19179
19181
  et = Me[bt];
19180
19182
  var Wt = B[et], dn = j[et];
19181
19183
  if (ce)
@@ -19805,7 +19807,7 @@ const Nl = {
19805
19807
  const S = r == null ? void 0 : r.clipboard.convert(x);
19806
19808
  S && (r == null || r.setContents(S, b));
19807
19809
  }, _ = () => {
19808
- Ze(() => {
19810
+ We(() => {
19809
19811
  var x;
19810
19812
  !o.slots.toolbar && r && ((x = r.getModule("toolbar")) === null || x === void 0 || x.container.remove()), l();
19811
19813
  });
@@ -19815,7 +19817,7 @@ const Nl = {
19815
19817
  return;
19816
19818
  p = x;
19817
19819
  const b = r.getSelection();
19818
- b && Ze(() => r == null ? void 0 : r.setSelection(b)), t(x);
19820
+ b && We(() => r == null ? void 0 : r.setSelection(b)), t(x);
19819
19821
  }), je(() => e.enable, (x) => {
19820
19822
  r && r.enable(x);
19821
19823
  }), {
@@ -20266,7 +20268,7 @@ const ry = /* @__PURE__ */ ht(Qm, [["render", ny]]), iy = { class: "inline-flex
20266
20268
  "relative inline-flex shrink-0 cursor-pointer items-center rounded-full transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-offset-2 ",
20267
20269
  $(l)
20268
20270
  ]),
20269
- style: Qe({
20271
+ style: Ze({
20270
20272
  width: $(c) + "px",
20271
20273
  height: $(p) + "px"
20272
20274
  }),
@@ -20275,7 +20277,7 @@ const ry = /* @__PURE__ */ ht(Qm, [["render", ny]]), iy = { class: "inline-flex
20275
20277
  default: pe(() => [
20276
20278
  R("span", {
20277
20279
  "aria-hidden": "true",
20278
- style: Qe({
20280
+ style: Ze({
20279
20281
  height: $(a) + "px",
20280
20282
  width: $(a) + "px",
20281
20283
  transform: `translateX(${$(f)}px)`
@@ -20488,7 +20490,7 @@ const vy = /* @__PURE__ */ ht(uy, [["render", py]]), my = { role: "presentation"
20488
20490
  ref_key: "wrapper",
20489
20491
  ref: c,
20490
20492
  class: "wrapper grid",
20491
- style: Qe({ maxHeight: e.maxHeight + "px" })
20493
+ style: Ze({ maxHeight: e.maxHeight + "px" })
20492
20494
  }, [
20493
20495
  R("textarea", {
20494
20496
  value: e.modelValue,
@@ -20500,7 +20502,7 @@ const vy = /* @__PURE__ */ ht(uy, [["render", py]]), my = { role: "presentation"
20500
20502
  n,
20501
20503
  $(p) ? "border-red-500" : "border-slate-300"
20502
20504
  ]]),
20503
- style: Qe({ maxHeight: e.maxHeight + "px", gridArea: i }),
20505
+ style: Ze({ maxHeight: e.maxHeight + "px", gridArea: i }),
20504
20506
  rows: e.rows,
20505
20507
  onInput: s,
20506
20508
  onKeyup: g,
@@ -20512,7 +20514,7 @@ const vy = /* @__PURE__ */ ht(uy, [["render", py]]), my = { role: "presentation"
20512
20514
  n,
20513
20515
  $(p) ? "border-red-500" : "border-slate-300"
20514
20516
  ]]),
20515
- style: Qe({
20517
+ style: Ze({
20516
20518
  content: l,
20517
20519
  maxHeight: e.maxHeight + "px",
20518
20520
  gridArea: i