@quoreadmin/ui 1.3.0 → 1.3.1

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.
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ var gr = (n, e, t, r) => ({
13
13
  return p(n, e, r);
14
14
  }
15
15
  });
16
- import { defineComponent as Ae, computed as q, resolveComponent as G, createElementBlock as A, openBlock as w, normalizeClass as B, renderSlot as H, createVNode as _, normalizeProps as Nn, guardReactiveProps as Gr, createElementVNode as D, createCommentVNode as L, toDisplayString as X, Transition as cn, withCtx as J, ref as $, getCurrentInstance as ka, onMounted as yt, onUnmounted as Pr, unref as Ii, nextTick as ln, inject as ei, cloneVNode as jN, h as Pn, Fragment as fe, provide as ya, watchEffect as wn, watch as dt, getCurrentScope as VN, onScopeDispose as HN, isRef as zN, reactive as Ai, shallowRef as qg, useSlots as ry, onUpdated as UN, mergeProps as P, readonly as zM, resolveDirective as fr, renderList as Te, withDirectives as gt, createBlock as z, Text as ZN, Teleport as np, resolveDynamicComponent as Ee, withKeys as ir, toHandlerKey as Si, withModifiers as tt, createTextVNode as Pe, normalizeStyle as yn, onBeforeUnmount as J2, markRaw as WN, customRef as qN, toRaw as UM, vShow as Ha, vModelText as GN, TransitionGroup as KN, createSlots as $0, toRef as YN, isVNode as QN, toHandlers as Pp, render as Mv } from "vue";
16
+ import { defineComponent as Ae, computed as q, resolveComponent as G, createElementBlock as A, openBlock as w, normalizeClass as B, renderSlot as H, createVNode as _, normalizeProps as yn, guardReactiveProps as kr, createElementVNode as D, createCommentVNode as L, toDisplayString as X, Transition as cn, withCtx as J, ref as $, getCurrentInstance as ka, onMounted as yt, onUnmounted as Lr, unref as Ii, nextTick as ln, inject as ei, cloneVNode as jN, h as Pn, Fragment as fe, provide as ya, watchEffect as Cn, watch as dt, getCurrentScope as VN, onScopeDispose as HN, isRef as zN, reactive as Ai, shallowRef as qg, useSlots as ry, onUpdated as UN, mergeProps as P, readonly as zM, resolveDirective as fr, renderList as Te, withDirectives as gt, createBlock as z, Text as ZN, Teleport as np, resolveDynamicComponent as Ee, withKeys as ir, toHandlerKey as Si, withModifiers as tt, createTextVNode as Pe, normalizeStyle as vn, onBeforeUnmount as J2, markRaw as WN, customRef as qN, toRaw as UM, vShow as Ha, vModelText as GN, TransitionGroup as KN, createSlots as $0, toRef as YN, isVNode as QN, toHandlers as Pp, render as Mv } from "vue";
17
17
  const XN = Ae({
18
18
  name: "QAccordion",
19
19
  props: {
@@ -110,7 +110,7 @@ function nP(n, e, t, r, i, s) {
110
110
  { "is-open": !!n.modelValue }
111
111
  ])
112
112
  }, [
113
- H(n.$slots, "toggle", Nn(Gr({ onToggle: n.onToggle })), () => [
113
+ H(n.$slots, "toggle", yn(kr({ onToggle: n.onToggle })), () => [
114
114
  D("div", {
115
115
  class: B([
116
116
  "accordion-trigger",
@@ -546,10 +546,10 @@ function u6() {
546
546
  });
547
547
  return { shared: n, drag: e, pinch: t, wheel: r, move: i, scroll: s };
548
548
  }
549
- var AP = Object.defineProperty, EP = (n, e, t) => e in n ? AP(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, _r = (n, e, t) => (EP(n, typeof e != "symbol" ? e + "" : e, t), t);
549
+ var AP = Object.defineProperty, EP = (n, e, t) => e in n ? AP(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, Rr = (n, e, t) => (EP(n, typeof e != "symbol" ? e + "" : e, t), t);
550
550
  class TP {
551
551
  constructor(e) {
552
- this.classes = e, _r(this, "nativeRefs"), _r(this, "config"), _r(this, "handlers"), _r(this, "state"), _r(this, "timeouts"), _r(this, "domListeners"), _r(this, "windowListeners"), _r(this, "pointerIds", /* @__PURE__ */ new Set()), _r(this, "touchIds", /* @__PURE__ */ new Set()), _r(this, "supportsTouchEvents", ZM()), _r(this, "supportsGestureEvents", MP()), _r(this, "bind", (...t) => {
552
+ this.classes = e, Rr(this, "nativeRefs"), Rr(this, "config"), Rr(this, "handlers"), Rr(this, "state"), Rr(this, "timeouts"), Rr(this, "domListeners"), Rr(this, "windowListeners"), Rr(this, "pointerIds", /* @__PURE__ */ new Set()), Rr(this, "touchIds", /* @__PURE__ */ new Set()), Rr(this, "supportsTouchEvents", ZM()), Rr(this, "supportsGestureEvents", MP()), Rr(this, "bind", (...t) => {
553
553
  const r = {};
554
554
  for (let i of this.classes)
555
555
  new i(this, t).addBindings(r);
@@ -560,10 +560,10 @@ class TP {
560
560
  (s) => this.nativeRefs[i]({ ...this.state.shared, event: s, args: t })
561
561
  );
562
562
  return this.config.domTarget ? PP(this, r) : LP(this, r);
563
- }), _r(this, "clean", () => {
563
+ }), Rr(this, "clean", () => {
564
564
  const { eventOptions: t, domTarget: r } = this.config, i = Ii(r);
565
565
  i && rp(i, YM(this.domListeners), t), Object.values(this.timeouts).forEach(clearTimeout), xP(this);
566
- }), _r(this, "reset", () => {
566
+ }), Rr(this, "reset", () => {
567
567
  this.state = u6();
568
568
  }), this.classes = e, this.state = u6(), this.timeouts = {}, this.domListeners = [], this.windowListeners = {};
569
569
  }
@@ -1162,7 +1162,7 @@ function aL({
1162
1162
  }
1163
1163
  function lL(n, e, t = {}) {
1164
1164
  const r = uL(n), i = new TP(r);
1165
- return i.config = e, i.handlers = n, i.nativeRefs = t, ka() && !e.manual && (yt(i.bind), Pr(i.clean)), i;
1165
+ return i.config = e, i.handlers = n, i.nativeRefs = t, ka() && !e.manual && (yt(i.bind), Lr(i.clean)), i;
1166
1166
  }
1167
1167
  function uL(n) {
1168
1168
  const e = /* @__PURE__ */ new Set();
@@ -1386,7 +1386,7 @@ function Gg(n) {
1386
1386
  }
1387
1387
  function ak(n) {
1388
1388
  let e = $([]), t = $(!1);
1389
- yt(() => t.value = !0), Pr(() => t.value = !1);
1389
+ yt(() => t.value = !0), Lr(() => t.value = !1);
1390
1390
  function r(s, o = k0.Hidden) {
1391
1391
  let a = e.value.findIndex(({ id: l }) => l === s);
1392
1392
  a !== -1 && (Md(o, { [k0.Unmount]() {
@@ -1423,8 +1423,8 @@ let lk = ek.RenderStrategy, TL = Ae({ props: { as: { type: [Object, String], def
1423
1423
  });
1424
1424
  yt(() => {
1425
1425
  let te = m(b);
1426
- Pr(te);
1427
- }), wn(() => {
1426
+ Lr(te);
1427
+ }), Cn(() => {
1428
1428
  if (d.value === k0.Hidden && b) {
1429
1429
  if (f.value && g.value !== "visible") {
1430
1430
  g.value = "visible";
@@ -1435,7 +1435,7 @@ let lk = ek.RenderStrategy, TL = Ae({ props: { as: { type: [Object, String], def
1435
1435
  });
1436
1436
  let T = nl(n.enter), M = nl(n.enterFrom), E = nl(n.enterTo), N = nl(n.entered), x = nl(n.leave), F = nl(n.leaveFrom), R = nl(n.leaveTo);
1437
1437
  yt(() => {
1438
- wn(() => {
1438
+ Cn(() => {
1439
1439
  if (g.value === "visible") {
1440
1440
  let te = Nv(c);
1441
1441
  if (te instanceof Comment && te.data === "") throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
@@ -1460,14 +1460,14 @@ let lk = ek.RenderStrategy, TL = Ae({ props: { as: { type: [Object, String], def
1460
1460
  };
1461
1461
  } }), IL = TL, uk = Ae({ inheritAttrs: !1, props: { as: { type: [Object, String], default: "div" }, show: { type: [Boolean], default: null }, unmount: { type: [Boolean], default: !0 }, appear: { type: [Boolean], default: !1 }, enter: { type: [String], default: "" }, enterFrom: { type: [String], default: "" }, enterTo: { type: [String], default: "" }, entered: { type: [String], default: "" }, leave: { type: [String], default: "" }, leaveFrom: { type: [String], default: "" }, leaveTo: { type: [String], default: "" } }, emits: { beforeEnter: () => !0, afterEnter: () => !0, beforeLeave: () => !0, afterLeave: () => !0 }, setup(n, { emit: e, attrs: t, slots: r }) {
1462
1462
  let i = ok(), s = q(() => n.show === null && i !== null ? (i.value & Ro.Open) === Ro.Open : n.show);
1463
- wn(() => {
1463
+ Cn(() => {
1464
1464
  if (![!0, !1].includes(s.value)) throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.');
1465
1465
  });
1466
1466
  let o = $(s.value ? "visible" : "hidden"), a = ak(() => {
1467
1467
  o.value = "hidden";
1468
1468
  }), l = $(!0), u = { show: s, appear: q(() => n.appear || !l.value) };
1469
1469
  return yt(() => {
1470
- wn(() => {
1470
+ Cn(() => {
1471
1471
  l.value = !1, s.value ? o.value = "visible" : Gg(a) || (o.value = "hidden");
1472
1472
  });
1473
1473
  }), ya(ly, a), ya(ay, u), () => {
@@ -1483,7 +1483,7 @@ function ar(n) {
1483
1483
  }
1484
1484
  const uy = typeof window < "u" && typeof document < "u";
1485
1485
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
1486
- const cy = (n) => n != null, OL = Object.prototype.toString, ck = (n) => OL.call(n) === "[object Object]", Er = () => {
1486
+ const cy = (n) => n != null, OL = Object.prototype.toString, ck = (n) => OL.call(n) === "[object Object]", Tr = () => {
1487
1487
  }, xL = /* @__PURE__ */ DL();
1488
1488
  function DL() {
1489
1489
  var n, e;
@@ -1498,9 +1498,9 @@ function dk(n, e) {
1498
1498
  return t;
1499
1499
  }
1500
1500
  function NL(n, e = {}) {
1501
- let t, r, i = Er;
1501
+ let t, r, i = Tr;
1502
1502
  const s = (a) => {
1503
- clearTimeout(a), i(), i = Er;
1503
+ clearTimeout(a), i(), i = Tr;
1504
1504
  };
1505
1505
  return (a) => {
1506
1506
  const l = ar(n), u = ar(e.maxWait);
@@ -1514,10 +1514,10 @@ function NL(n, e = {}) {
1514
1514
  };
1515
1515
  }
1516
1516
  function PL(...n) {
1517
- let e = 0, t, r = !0, i = Er, s, o, a, l, u;
1517
+ let e = 0, t, r = !0, i = Tr, s, o, a, l, u;
1518
1518
  !zN(n[0]) && typeof n[0] == "object" ? { delay: o, trailing: a = !0, leading: l = !0, rejectOnCancel: u = !1 } = n[0] : [o, a = !0, l = !0, u = !1] = n;
1519
1519
  const c = () => {
1520
- t && (clearTimeout(t), t = void 0, i(), i = Er);
1520
+ t && (clearTimeout(t), t = void 0, i(), i = Tr);
1521
1521
  };
1522
1522
  return (f) => {
1523
1523
  const h = ar(o), m = Date.now() - e, y = () => s = f();
@@ -1554,9 +1554,9 @@ function hk(n, e = !0, t) {
1554
1554
  fk() ? yt(n, t) : e ? n() : ln(n);
1555
1555
  }
1556
1556
  function RL(n, e) {
1557
- fk() && Pr(n, e);
1557
+ fk() && Lr(n, e);
1558
1558
  }
1559
- function kr(n) {
1559
+ function Ar(n) {
1560
1560
  var e;
1561
1561
  const t = ar(n);
1562
1562
  return (e = t == null ? void 0 : t.$el) != null ? e : t;
@@ -1565,12 +1565,12 @@ const So = uy ? window : void 0;
1565
1565
  function Dt(...n) {
1566
1566
  let e, t, r, i;
1567
1567
  if (typeof n[0] == "string" || Array.isArray(n[0]) ? ([t, r, i] = n, e = So) : [e, t, r, i] = n, !e)
1568
- return Er;
1568
+ return Tr;
1569
1569
  Array.isArray(t) || (t = [t]), Array.isArray(r) || (r = [r]);
1570
1570
  const s = [], o = () => {
1571
1571
  s.forEach((c) => c()), s.length = 0;
1572
1572
  }, a = (c, d, f, h) => (c.addEventListener(d, f, h), () => c.removeEventListener(d, f, h)), l = dt(
1573
- () => [kr(e), ar(i)],
1573
+ () => [Ar(e), ar(i)],
1574
1574
  ([c, d]) => {
1575
1575
  if (o(), !c)
1576
1576
  return;
@@ -1589,19 +1589,19 @@ let _v = !1;
1589
1589
  function l3(n, e, t = {}) {
1590
1590
  const { window: r = So, ignore: i = [], capture: s = !0, detectIframe: o = !1 } = t;
1591
1591
  if (!r)
1592
- return Er;
1593
- xL && !_v && (_v = !0, Array.from(r.document.body.children).forEach((f) => f.addEventListener("click", Er)), r.document.documentElement.addEventListener("click", Er));
1592
+ return Tr;
1593
+ xL && !_v && (_v = !0, Array.from(r.document.body.children).forEach((f) => f.addEventListener("click", Tr)), r.document.documentElement.addEventListener("click", Tr));
1594
1594
  let a = !0;
1595
1595
  const l = (f) => i.some((h) => {
1596
1596
  if (typeof h == "string")
1597
1597
  return Array.from(r.document.querySelectorAll(h)).some((m) => m === f.target || f.composedPath().includes(m));
1598
1598
  {
1599
- const m = kr(h);
1599
+ const m = Ar(h);
1600
1600
  return m && (f.target === m || f.composedPath().includes(m));
1601
1601
  }
1602
1602
  }), c = [
1603
1603
  Dt(r, "click", (f) => {
1604
- const h = kr(n);
1604
+ const h = Ar(n);
1605
1605
  if (!(!h || h === f.target || f.composedPath().includes(h))) {
1606
1606
  if (f.detail === 0 && (a = !l(f)), !a) {
1607
1607
  a = !0;
@@ -1611,13 +1611,13 @@ function l3(n, e, t = {}) {
1611
1611
  }
1612
1612
  }, { passive: !0, capture: s }),
1613
1613
  Dt(r, "pointerdown", (f) => {
1614
- const h = kr(n);
1614
+ const h = Ar(n);
1615
1615
  a = !l(f) && !!(h && !f.composedPath().includes(h));
1616
1616
  }, { passive: !0 }),
1617
1617
  o && Dt(r, "blur", (f) => {
1618
1618
  setTimeout(() => {
1619
1619
  var h;
1620
- const m = kr(n);
1620
+ const m = Ar(n);
1621
1621
  ((h = r.document.activeElement) == null ? void 0 : h.tagName) === "IFRAME" && !(m != null && m.contains(r.document.activeElement)) && e(f);
1622
1622
  }, 0);
1623
1623
  })
@@ -1641,7 +1641,7 @@ function S1(n, e = {}) {
1641
1641
  s.value = u.matches;
1642
1642
  }, a = () => {
1643
1643
  i && ("removeEventListener" in i ? i.removeEventListener("change", o) : i.removeListener(o));
1644
- }, l = wn(() => {
1644
+ }, l = Cn(() => {
1645
1645
  r.value && (a(), i = t.matchMedia(ar(n)), "addEventListener" in i ? i.addEventListener("change", o) : i.addListener(o), s.value = i.matches);
1646
1646
  });
1647
1647
  return ip(() => {
@@ -1713,7 +1713,7 @@ function BL(n, e, t = {}) {
1713
1713
  const o = Kg(() => r && "MutationObserver" in r), a = () => {
1714
1714
  s && (s.disconnect(), s = void 0);
1715
1715
  }, l = q(() => {
1716
- const f = ar(n), h = (Array.isArray(f) ? f : [f]).map(kr).filter(cy);
1716
+ const f = ar(n), h = (Array.isArray(f) ? f : [f]).map(Ar).filter(cy);
1717
1717
  return new Set(h);
1718
1718
  }), u = dt(
1719
1719
  () => l.value,
@@ -1769,7 +1769,7 @@ function VL(n, e, t = {}) {
1769
1769
  let s;
1770
1770
  const o = Kg(() => r && "ResizeObserver" in r), a = () => {
1771
1771
  s && (s.disconnect(), s = void 0);
1772
- }, l = q(() => Array.isArray(n) ? n.map((d) => kr(d)) : [kr(n)]), u = dt(
1772
+ }, l = q(() => Array.isArray(n) ? n.map((d) => Ar(d)) : [Ar(n)]), u = dt(
1773
1773
  l,
1774
1774
  (d) => {
1775
1775
  if (a(), o.value && r) {
@@ -1795,7 +1795,7 @@ function HL(n, e = {}) {
1795
1795
  immediate: s = !0
1796
1796
  } = e, o = $(0), a = $(0), l = $(0), u = $(0), c = $(0), d = $(0), f = $(0), h = $(0);
1797
1797
  function m() {
1798
- const y = kr(n);
1798
+ const y = Ar(n);
1799
1799
  if (!y) {
1800
1800
  t && (o.value = 0, a.value = 0, l.value = 0, u.value = 0, c.value = 0, d.value = 0, f.value = 0, h.value = 0);
1801
1801
  return;
@@ -1803,7 +1803,7 @@ function HL(n, e = {}) {
1803
1803
  const g = y.getBoundingClientRect();
1804
1804
  o.value = g.height, a.value = g.bottom, l.value = g.left, u.value = g.right, c.value = g.top, d.value = g.width, f.value = g.x, h.value = g.y;
1805
1805
  }
1806
- return VL(n, m), dt(() => kr(n), (y) => !y && m()), BL(n, m, {
1806
+ return VL(n, m), dt(() => Ar(n), (y) => !y && m()), BL(n, m, {
1807
1807
  attributeFilter: ["style", "class"]
1808
1808
  }), i && Dt("scroll", m, { capture: !0, passive: !0 }), r && Dt("resize", m, { passive: !0 }), hk(() => {
1809
1809
  s && m();
@@ -1828,28 +1828,28 @@ function zL(n, e, t = {}) {
1828
1828
  immediate: a = !0
1829
1829
  } = t, l = Kg(() => o && "IntersectionObserver" in o), u = q(() => {
1830
1830
  const m = ar(n);
1831
- return (Array.isArray(m) ? m : [m]).map(kr).filter(cy);
1831
+ return (Array.isArray(m) ? m : [m]).map(Ar).filter(cy);
1832
1832
  });
1833
- let c = Er;
1833
+ let c = Tr;
1834
1834
  const d = $(a), f = l.value ? dt(
1835
- () => [u.value, kr(r), d.value],
1835
+ () => [u.value, Ar(r), d.value],
1836
1836
  ([m, y]) => {
1837
1837
  if (c(), !d.value || !m.length)
1838
1838
  return;
1839
1839
  const g = new IntersectionObserver(
1840
1840
  e,
1841
1841
  {
1842
- root: kr(y),
1842
+ root: Ar(y),
1843
1843
  rootMargin: i,
1844
1844
  threshold: s
1845
1845
  }
1846
1846
  );
1847
1847
  m.forEach((v) => v && g.observe(v)), c = () => {
1848
- g.disconnect(), c = Er;
1848
+ g.disconnect(), c = Tr;
1849
1849
  };
1850
1850
  },
1851
1851
  { immediate: a, flush: "post" }
1852
- ) : Er, h = () => {
1852
+ ) : Tr, h = () => {
1853
1853
  c(), f(), d.value = !1;
1854
1854
  };
1855
1855
  return ip(h), {
@@ -1869,8 +1869,8 @@ function u3(n, e = {}) {
1869
1869
  const {
1870
1870
  throttle: t = 0,
1871
1871
  idle: r = 200,
1872
- onStop: i = Er,
1873
- onScroll: s = Er,
1872
+ onStop: i = Tr,
1873
+ onScroll: s = Tr,
1874
1874
  offset: o = {
1875
1875
  left: 0,
1876
1876
  right: 0,
@@ -1928,7 +1928,7 @@ function u3(n, e = {}) {
1928
1928
  var N;
1929
1929
  if (!u)
1930
1930
  return;
1931
- const x = ((N = E == null ? void 0 : E.document) == null ? void 0 : N.documentElement) || (E == null ? void 0 : E.documentElement) || kr(E), { display: F, flexDirection: R } = getComputedStyle(x), U = x.scrollLeft;
1931
+ const x = ((N = E == null ? void 0 : E.document) == null ? void 0 : N.documentElement) || (E == null ? void 0 : E.documentElement) || Ar(E), { display: F, flexDirection: R } = getComputedStyle(x), U = x.scrollLeft;
1932
1932
  b.left = U < d.value, b.right = U > d.value;
1933
1933
  const te = Math.abs(U) <= (o.left || 0), K = Math.abs(U) + x.clientWidth >= x.scrollWidth - (o.right || 0) - Rv;
1934
1934
  F === "flex" && R === "row-reverse" ? (v.left = K, v.right = te) : (v.left = te, v.right = K), d.value = U;
@@ -2028,7 +2028,7 @@ function ZL(n) {
2028
2028
  return e = !0, !1;
2029
2029
  }
2030
2030
  };
2031
- return n.addEventListener("x", Er, t), n.removeEventListener("x", Er), e;
2031
+ return n.addEventListener("x", Tr, t), n.removeEventListener("x", Tr), e;
2032
2032
  }
2033
2033
  function fy(n = {}) {
2034
2034
  const { window: e = So, behavior: t = "auto" } = n;
@@ -2274,7 +2274,7 @@ const w6 = {
2274
2274
  test: yy("#"),
2275
2275
  parse: u_,
2276
2276
  transform: A0.transform
2277
- }, zr = {
2277
+ }, Ur = {
2278
2278
  test: (n) => A0.test(n) || w6.test(n) || Cl.test(n),
2279
2279
  parse: (n) => A0.test(n) ? A0.parse(n) : Cl.test(n) ? Cl.parse(n) : w6.parse(n),
2280
2280
  transform: (n) => op(n) ? n : n.hasOwnProperty("red") ? A0.transform(n) : Cl.transform(n)
@@ -2288,7 +2288,7 @@ function Ak(n) {
2288
2288
  const e = [];
2289
2289
  let t = 0;
2290
2290
  const r = n.match(b6);
2291
- r && (t = r.length, n = n.replace(b6, Mk), e.push(...r.map(zr.parse)));
2291
+ r && (t = r.length, n = n.replace(b6, Mk), e.push(...r.map(Ur.parse)));
2292
2292
  const i = n.match(Ed);
2293
2293
  return i && (n = n.replace(Ed, kk), e.push(...i.map(ap.parse))), { values: e, numColors: t, tokenised: n };
2294
2294
  }
@@ -2300,7 +2300,7 @@ function Tk(n) {
2300
2300
  return (s) => {
2301
2301
  let o = r;
2302
2302
  for (let a = 0; a < i; a++)
2303
- o = o.replace(a < t ? Mk : kk, a < t ? zr.transform(s[a]) : rd(s[a]));
2303
+ o = o.replace(a < t ? Mk : kk, a < t ? Ur.transform(s[a]) : rd(s[a]));
2304
2304
  return o;
2305
2305
  };
2306
2306
  }
@@ -2360,7 +2360,7 @@ const g_ = (n, e, t) => {
2360
2360
  };
2361
2361
  }, v_ = (n) => typeof n == "number", b_ = (n, e) => (t) => e(n(t)), Ok = (...n) => n.reduce(b_);
2362
2362
  function xk(n, e) {
2363
- return v_(n) ? (t) => my(n, e, t) : zr.test(n) ? Ik(n, e) : Nk(n, e);
2363
+ return v_(n) ? (t) => my(n, e, t) : Ur.test(n) ? Ik(n, e) : Nk(n, e);
2364
2364
  }
2365
2365
  const Dk = (n, e) => {
2366
2366
  const t = [...n], r = t.length, i = n.map((s, o) => xk(s, e[o]));
@@ -2394,7 +2394,7 @@ function S_(n) {
2394
2394
  if (typeof n == "number")
2395
2395
  return C_;
2396
2396
  if (typeof n == "string")
2397
- return zr.test(n) ? Ik : Nk;
2397
+ return Ur.test(n) ? Ik : Nk;
2398
2398
  if (Array.isArray(n))
2399
2399
  return Dk;
2400
2400
  if (typeof n == "object")
@@ -2844,17 +2844,17 @@ const Kv = {
2844
2844
  transform: Math.round
2845
2845
  }, Gk = {
2846
2846
  // Color props
2847
- color: zr,
2848
- backgroundColor: zr,
2849
- outlineColor: zr,
2850
- fill: zr,
2851
- stroke: zr,
2847
+ color: Ur,
2848
+ backgroundColor: Ur,
2849
+ outlineColor: Ur,
2850
+ fill: Ur,
2851
+ stroke: Ur,
2852
2852
  // Border props
2853
- borderColor: zr,
2854
- borderTopColor: zr,
2855
- borderRightColor: zr,
2856
- borderBottomColor: zr,
2857
- borderLeftColor: zr,
2853
+ borderColor: Ur,
2854
+ borderTopColor: Ur,
2855
+ borderRightColor: Ur,
2856
+ borderBottomColor: Ur,
2857
+ borderLeftColor: Ur,
2858
2858
  borderWidth: qe,
2859
2859
  borderTopWidth: qe,
2860
2860
  borderRightWidth: qe,
@@ -3153,7 +3153,7 @@ function Yk(n = {}) {
3153
3153
  }
3154
3154
  function My(n, e) {
3155
3155
  dt(
3156
- () => kr(n),
3156
+ () => Ar(n),
3157
3157
  (t) => {
3158
3158
  t && e(t);
3159
3159
  },
@@ -3896,7 +3896,7 @@ const T$ = Ae({
3896
3896
  return;
3897
3897
  }
3898
3898
  };
3899
- return Pr(() => {
3899
+ return Lr(() => {
3900
3900
  n.setNoScroll && (document.body.classList.remove("scroll-disabled"), document.documentElement.classList.remove("overscroll-none")), b();
3901
3901
  }), yt(() => {
3902
3902
  v(), n.setNoScroll && (document.body.classList.add("scroll-disabled"), document.documentElement.classList.add("overscroll-none")), window.addEventListener("resize", y);
@@ -3963,7 +3963,7 @@ function P$(n, e, t, r, i, s) {
3963
3963
  ]))) : L("", !0),
3964
3964
  D("div", x$, [
3965
3965
  n.showCloseButton ? (w(), A("div", D$, [
3966
- H(n.$slots, "backAction", Nn(Gr({ onClose: n.onClose })), () => [
3966
+ H(n.$slots, "backAction", yn(kr({ onClose: n.onClose })), () => [
3967
3967
  _(o, {
3968
3968
  icon: "close",
3969
3969
  type: "line",
@@ -6679,7 +6679,7 @@ function MB(n, e, t, r, i, s) {
6679
6679
  width: n.width,
6680
6680
  height: n.height
6681
6681
  }, [
6682
- D("use", Nn(Gr({ href: n.iconPath })), null, 16)
6682
+ D("use", yn(kr({ href: n.iconPath })), null, 16)
6683
6683
  ], 10, SB))
6684
6684
  ], 2)) : L("", !0);
6685
6685
  }
@@ -6854,7 +6854,7 @@ class uA extends eu {
6854
6854
  super(`Invalid unit ${e}`);
6855
6855
  }
6856
6856
  }
6857
- class Wr extends eu {
6857
+ class qr extends eu {
6858
6858
  }
6859
6859
  class xa extends eu {
6860
6860
  constructor() {
@@ -7510,13 +7510,13 @@ class Mt {
7510
7510
  }
7511
7511
  }
7512
7512
  let i4 = null;
7513
- class Ar extends up {
7513
+ class Er extends up {
7514
7514
  /**
7515
7515
  * Get a singleton instance of UTC
7516
7516
  * @return {FixedOffsetZone}
7517
7517
  */
7518
7518
  static get utcInstance() {
7519
- return i4 === null && (i4 = new Ar(0)), i4;
7519
+ return i4 === null && (i4 = new Er(0)), i4;
7520
7520
  }
7521
7521
  /**
7522
7522
  * Get an instance with a specified offset
@@ -7524,7 +7524,7 @@ class Ar extends up {
7524
7524
  * @return {FixedOffsetZone}
7525
7525
  */
7526
7526
  static instance(e) {
7527
- return e === 0 ? Ar.utcInstance : new Ar(e);
7527
+ return e === 0 ? Er.utcInstance : new Er(e);
7528
7528
  }
7529
7529
  /**
7530
7530
  * Get an instance of FixedOffsetZone from a UTC offset string, like "UTC+6"
@@ -7538,7 +7538,7 @@ class Ar extends up {
7538
7538
  if (e) {
7539
7539
  const t = e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);
7540
7540
  if (t)
7541
- return new Ar(r5(t[1], t[2]));
7541
+ return new Er(r5(t[1], t[2]));
7542
7542
  }
7543
7543
  return null;
7544
7544
  }
@@ -7625,8 +7625,8 @@ function Ua(n, e) {
7625
7625
  return n;
7626
7626
  if (tj(n)) {
7627
7627
  const t = n.toLowerCase();
7628
- return t === "default" ? e : t === "local" || t === "system" ? e5.instance : t === "utc" || t === "gmt" ? Ar.utcInstance : Ar.parseSpecifier(t) || va.create(n);
7629
- } else return P2(n) ? Ar.instance(n) : typeof n == "object" && "offset" in n && typeof n.offset == "function" ? n : new XB(n);
7628
+ return t === "default" ? e : t === "local" || t === "system" ? e5.instance : t === "utc" || t === "gmt" ? Er.utcInstance : Er.parseSpecifier(t) || va.create(n);
7629
+ } else return P2(n) ? Er.instance(n) : typeof n == "object" && "offset" in n && typeof n.offset == "function" ? n : new XB(n);
7630
7630
  }
7631
7631
  let pb = () => Date.now(), mb = "system", gb = null, yb = null, vb = null, bb = 60, wb, Cb = null;
7632
7632
  class Jt {
@@ -7900,9 +7900,9 @@ function P6(n) {
7900
7900
  if (n == null)
7901
7901
  return null;
7902
7902
  if (typeof n != "object")
7903
- throw new Wr("Week settings must be an object");
7903
+ throw new qr("Week settings must be an object");
7904
7904
  if (!Gi(n.firstDay, 1, 7) || !Gi(n.minimalDays, 1, 7) || !Array.isArray(n.weekend) || n.weekend.some((e) => !Gi(e, 1, 7)))
7905
- throw new Wr("Invalid week settings");
7905
+ throw new qr("Invalid week settings");
7906
7906
  return {
7907
7907
  firstDay: n.firstDay,
7908
7908
  minimalDays: n.minimalDays,
@@ -7992,7 +7992,7 @@ function r5(n, e) {
7992
7992
  function FA(n) {
7993
7993
  const e = Number(n);
7994
7994
  if (typeof n == "boolean" || n === "" || Number.isNaN(e))
7995
- throw new Wr(`Invalid unit value ${n}`);
7995
+ throw new qr(`Invalid unit value ${n}`);
7996
7996
  return e;
7997
7997
  }
7998
7998
  function m3(n, e) {
@@ -8448,7 +8448,7 @@ function p1(n, e) {
8448
8448
  }, null, e + 4];
8449
8449
  }
8450
8450
  function dp(n, e) {
8451
- const t = !n[e] && !n[e + 1], r = r5(n[e + 1], n[e + 2]), i = t ? null : Ar.instance(r);
8451
+ const t = !n[e] && !n[e + 1], r = r5(n[e + 1], n[e + 2]), i = t ? null : Er.instance(r);
8452
8452
  return [{}, i, e + 3];
8453
8453
  }
8454
8454
  function fp(n, e) {
@@ -8509,7 +8509,7 @@ function Nj(n) {
8509
8509
  d
8510
8510
  ] = n, f = Py(e, i, r, t, s, o, a);
8511
8511
  let h;
8512
- return l ? h = xj[l] : u ? h = 0 : h = r5(c, d), [f, new Ar(h)];
8512
+ return l ? h = xj[l] : u ? h = 0 : h = r5(c, d), [f, new Er(h)];
8513
8513
  }
8514
8514
  function Pj(n) {
8515
8515
  return n.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").trim();
@@ -8517,11 +8517,11 @@ function Pj(n) {
8517
8517
  const Lj = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/, _j = /^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/, Rj = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;
8518
8518
  function Ib(n) {
8519
8519
  const [, e, t, r, i, s, o, a] = n;
8520
- return [Py(e, i, r, t, s, o, a), Ar.utcInstance];
8520
+ return [Py(e, i, r, t, s, o, a), Er.utcInstance];
8521
8521
  }
8522
8522
  function $j(n) {
8523
8523
  const [, e, t, r, i, s, o, a] = n;
8524
- return [Py(e, a, t, r, i, s, o), Ar.utcInstance];
8524
+ return [Py(e, a, t, r, i, s, o), Er.utcInstance];
8525
8525
  }
8526
8526
  const Fj = d1(bj, Ny), Bj = d1(wj, Ny), jj = d1(Cj, Ny), Vj = d1(KA), QA = f1(
8527
8527
  Ej,
@@ -8752,7 +8752,7 @@ class lt {
8752
8752
  */
8753
8753
  static fromObject(e, t = {}) {
8754
8754
  if (e == null || typeof e != "object")
8755
- throw new Wr(
8755
+ throw new qr(
8756
8756
  `Duration.fromObject: argument expected to be an object, got ${e === null ? "null" : typeof e}`
8757
8757
  );
8758
8758
  return new lt({
@@ -8779,7 +8779,7 @@ class lt {
8779
8779
  return e;
8780
8780
  if (typeof e == "object")
8781
8781
  return lt.fromObject(e);
8782
- throw new Wr(
8782
+ throw new qr(
8783
8783
  `Unknown duration argument ${e} of type ${typeof e}`
8784
8784
  );
8785
8785
  }
@@ -8829,7 +8829,7 @@ class lt {
8829
8829
  */
8830
8830
  static invalid(e, t = null) {
8831
8831
  if (!e)
8832
- throw new Wr("need to specify a reason the Duration is invalid");
8832
+ throw new qr("need to specify a reason the Duration is invalid");
8833
8833
  const r = e instanceof Es ? e : new Es(e, t);
8834
8834
  if (Jt.throwOnInvalid)
8835
8835
  throw new DB(r);
@@ -9311,7 +9311,7 @@ class Kt {
9311
9311
  */
9312
9312
  static invalid(e, t = null) {
9313
9313
  if (!e)
9314
- throw new Wr("need to specify a reason the Interval is invalid");
9314
+ throw new qr("need to specify a reason the Interval is invalid");
9315
9315
  const r = e instanceof Es ? e : new Es(e, t);
9316
9316
  if (Jt.throwOnInvalid)
9317
9317
  throw new xB(r);
@@ -10277,7 +10277,7 @@ function bV(n) {
10277
10277
  }
10278
10278
  };
10279
10279
  let t = null, r;
10280
- return He(n.z) || (t = va.create(n.z)), He(n.Z) || (t || (t = new Ar(n.Z)), r = n.Z), He(n.q) || (n.M = (n.q - 1) * 3 + 1), He(n.h) || (n.h < 12 && n.a === 1 ? n.h += 12 : n.h === 12 && n.a === 0 && (n.h = 0)), n.G === 0 && n.y && (n.y = -n.y), He(n.u) || (n.S = Oy(n.u)), [Object.keys(n).reduce((s, o) => {
10280
+ return He(n.z) || (t = va.create(n.z)), He(n.Z) || (t || (t = new Er(n.Z)), r = n.Z), He(n.q) || (n.M = (n.q - 1) * 3 + 1), He(n.h) || (n.h < 12 && n.a === 1 ? n.h += 12 : n.h === 12 && n.a === 0 && (n.h = 0)), n.G === 0 && n.y && (n.y = -n.y), He(n.u) || (n.S = Oy(n.u)), [Object.keys(n).reduce((s, o) => {
10281
10281
  const a = e(o);
10282
10282
  return a && (s[a] = n[o]), s;
10283
10283
  }, {}), t, r];
@@ -10602,7 +10602,7 @@ let Zt = class qt {
10602
10602
  */
10603
10603
  static utc() {
10604
10604
  const [e, t] = jb(arguments), [r, i, s, o, a, l, u] = t;
10605
- return e.zone = Ar.utcInstance, Fb({ year: r, month: i, day: s, hour: o, minute: a, second: l, millisecond: u }, e);
10605
+ return e.zone = Er.utcInstance, Fb({ year: r, month: i, day: s, hour: o, minute: a, second: l, millisecond: u }, e);
10606
10606
  }
10607
10607
  /**
10608
10608
  * Create a DateTime from a JavaScript Date object. Uses the default zone.
@@ -10639,7 +10639,7 @@ let Zt = class qt {
10639
10639
  zone: Ua(t.zone, Jt.defaultZone),
10640
10640
  loc: Mt.fromObject(t)
10641
10641
  });
10642
- throw new Wr(
10642
+ throw new qr(
10643
10643
  `fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`
10644
10644
  );
10645
10645
  }
@@ -10660,7 +10660,7 @@ let Zt = class qt {
10660
10660
  zone: Ua(t.zone, Jt.defaultZone),
10661
10661
  loc: Mt.fromObject(t)
10662
10662
  });
10663
- throw new Wr("fromSeconds requires a numerical input");
10663
+ throw new qr("fromSeconds requires a numerical input");
10664
10664
  }
10665
10665
  /**
10666
10666
  * Create a DateTime from a JavaScript object with keys like 'year' and 'hour' with reasonable defaults.
@@ -10800,7 +10800,7 @@ let Zt = class qt {
10800
10800
  */
10801
10801
  static fromFormat(e, t, r = {}) {
10802
10802
  if (He(e) || He(t))
10803
- throw new Wr("fromFormat requires an input string and a format");
10803
+ throw new qr("fromFormat requires an input string and a format");
10804
10804
  const { locale: i = null, numberingSystem: s = null } = r, o = Mt.fromOpts({
10805
10805
  locale: i,
10806
10806
  numberingSystem: s,
@@ -10846,7 +10846,7 @@ let Zt = class qt {
10846
10846
  */
10847
10847
  static invalid(e, t = null) {
10848
10848
  if (!e)
10849
- throw new Wr("need to specify a reason the DateTime is invalid");
10849
+ throw new qr("need to specify a reason the DateTime is invalid");
10850
10850
  const r = e instanceof Es ? e : new Es(e, t);
10851
10851
  if (Jt.throwOnInvalid)
10852
10852
  throw new OB(r);
@@ -11255,7 +11255,7 @@ let Zt = class qt {
11255
11255
  * @return {DateTime}
11256
11256
  */
11257
11257
  toUTC(e = 0, t = {}) {
11258
- return this.setZone(Ar.instance(e), t);
11258
+ return this.setZone(Er.instance(e), t);
11259
11259
  }
11260
11260
  /**
11261
11261
  * "Set" the DateTime's zone to the host's local zone. Returns a newly-constructed DateTime.
@@ -11821,7 +11821,7 @@ let Zt = class qt {
11821
11821
  */
11822
11822
  static min(...e) {
11823
11823
  if (!e.every(qt.isDateTime))
11824
- throw new Wr("min requires all arguments be DateTimes");
11824
+ throw new qr("min requires all arguments be DateTimes");
11825
11825
  return Ab(e, (t) => t.valueOf(), Math.min);
11826
11826
  }
11827
11827
  /**
@@ -11831,7 +11831,7 @@ let Zt = class qt {
11831
11831
  */
11832
11832
  static max(...e) {
11833
11833
  if (!e.every(qt.isDateTime))
11834
- throw new Wr("max requires all arguments be DateTimes");
11834
+ throw new qr("max requires all arguments be DateTimes");
11835
11835
  return Ab(e, (t) => t.valueOf(), Math.max);
11836
11836
  }
11837
11837
  // MISC
@@ -12019,7 +12019,7 @@ function k1(n) {
12019
12019
  return Zt.fromJSDate(n);
12020
12020
  if (n && typeof n == "object")
12021
12021
  return Zt.fromObject(n);
12022
- throw new Wr(
12022
+ throw new qr(
12023
12023
  `Unknown datetime argument: ${n}, of type ${typeof n}`
12024
12024
  );
12025
12025
  }
@@ -12157,7 +12157,7 @@ const lE = {
12157
12157
  md: Number(Wp.md.replace("px", "")),
12158
12158
  lg: Number(Wp.lg.replace("px", "")),
12159
12159
  xl: Number(Wp.xl.replace("px", ""))
12160
- }, Ao = pk(OV), Cn = Ai({
12160
+ }, Ao = pk(OV), Sn = Ai({
12161
12161
  xs: Ao.smaller("sm"),
12162
12162
  sm: Ao.greaterOrEqual("sm"),
12163
12163
  md: Ao.greaterOrEqual("md"),
@@ -12198,12 +12198,12 @@ const _V = Object.prototype.hasOwnProperty;
12198
12198
  function H2(n, e) {
12199
12199
  return _V.call(n, e);
12200
12200
  }
12201
- const vn = Array.isArray, zt = (n) => typeof n == "function", xe = (n) => typeof n == "string", sn = (n) => typeof n == "boolean", ct = (n) => n !== null && typeof n == "object", RV = (n) => ct(n) && zt(n.then) && zt(n.catch), cE = Object.prototype.toString, dE = (n) => cE.call(n), ft = (n) => {
12201
+ const bn = Array.isArray, zt = (n) => typeof n == "function", xe = (n) => typeof n == "string", sn = (n) => typeof n == "boolean", ct = (n) => n !== null && typeof n == "object", RV = (n) => ct(n) && zt(n.then) && zt(n.catch), cE = Object.prototype.toString, dE = (n) => cE.call(n), ft = (n) => {
12202
12202
  if (!ct(n))
12203
12203
  return !1;
12204
12204
  const e = Object.getPrototypeOf(n);
12205
12205
  return e === null || e.constructor === Object;
12206
- }, $V = (n) => n == null ? "" : vn(n) || ft(n) && n.toString === cE ? JSON.stringify(n, null, 2) : String(n);
12206
+ }, $V = (n) => n == null ? "" : bn(n) || ft(n) && n.toString === cE ? JSON.stringify(n, null, 2) : String(n);
12207
12207
  function FV(n, e = "") {
12208
12208
  return n.reduce((t, r, i) => i === 0 ? t + r : t + e + r, "");
12209
12209
  }
@@ -12264,7 +12264,7 @@ function jV() {
12264
12264
  }
12265
12265
  };
12266
12266
  }
12267
- const qp = (n) => !ct(n) || vn(n);
12267
+ const qp = (n) => !ct(n) || bn(n);
12268
12268
  function Cm(n, e) {
12269
12269
  if (qp(n) || qp(e))
12270
12270
  throw new Error("Invalid value");
@@ -12689,7 +12689,7 @@ function yH(n = {}) {
12689
12689
  b.length === 1 ? ct(S) ? (M = S.modifier || M, T = S.type || T) : xe(S) && (M = S || M) : b.length === 2 && (xe(S) && (M = S || M), xe(C) && (T = C || T));
12690
12690
  const E = c(v)(g), N = (
12691
12691
  // The message in vnode resolved with linked are returned as an array by processor.nomalize
12692
- T === "vnode" && vn(E) && M ? E[0] : E
12692
+ T === "vnode" && bn(E) && M ? E[0] : E
12693
12693
  );
12694
12694
  return M ? d(M)(N, T) : N;
12695
12695
  },
@@ -12802,7 +12802,7 @@ function qb(n) {
12802
12802
  function kH(n, e, t) {
12803
12803
  return [.../* @__PURE__ */ new Set([
12804
12804
  t,
12805
- ...vn(e) ? e : ct(e) ? Object.keys(e) : xe(e) ? [e] : [t]
12805
+ ...bn(e) ? e : ct(e) ? Object.keys(e) : xe(e) ? [e] : [t]
12806
12806
  ])];
12807
12807
  }
12808
12808
  function vE(n, e, t) {
@@ -12812,10 +12812,10 @@ function vE(n, e, t) {
12812
12812
  if (!s) {
12813
12813
  s = [];
12814
12814
  let o = [t];
12815
- for (; vn(o); )
12815
+ for (; bn(o); )
12816
12816
  o = Gb(s, o, e);
12817
- const a = vn(e) || !ft(e) ? e : e.default ? e.default : null;
12818
- o = xe(a) ? [a] : a, vn(o) && Gb(s, o, !1), i.__localeChainCache.set(r, s);
12817
+ const a = bn(e) || !ft(e) ? e : e.default ? e.default : null;
12818
+ o = xe(a) ? [a] : a, bn(o) && Gb(s, o, !1), i.__localeChainCache.set(r, s);
12819
12819
  }
12820
12820
  return s;
12821
12821
  }
@@ -12841,7 +12841,7 @@ function EH(n, e, t) {
12841
12841
  if (!n.includes(e) && (r = !0, e)) {
12842
12842
  r = e[e.length - 1] !== "!";
12843
12843
  const i = e.replace(/!/g, "");
12844
- n.push(i), (vn(t) || ft(t)) && t[i] && (r = t[i]);
12844
+ n.push(i), (bn(t) || ft(t)) && t[i] && (r = t[i]);
12845
12845
  }
12846
12846
  return r;
12847
12847
  }
@@ -12871,7 +12871,7 @@ const Yb = (n) => {
12871
12871
  }, LH = () => SE;
12872
12872
  let Qb = 0;
12873
12873
  function _H(n = {}) {
12874
- const e = zt(n.onWarn) ? n.onWarn : m1, t = xe(n.version) ? n.version : TH, r = xe(n.locale) || zt(n.locale) ? n.locale : y3, i = zt(r) ? y3 : r, s = vn(n.fallbackLocale) || ft(n.fallbackLocale) || xe(n.fallbackLocale) || n.fallbackLocale === !1 ? n.fallbackLocale : i, o = ft(n.messages) ? n.messages : f4(i), a = ft(n.datetimeFormats) ? n.datetimeFormats : f4(i), l = ft(n.numberFormats) ? n.numberFormats : f4(i), u = dr(It(), n.modifiers, IH()), c = n.pluralRules || It(), d = zt(n.missing) ? n.missing : null, f = sn(n.missingWarn) || g3(n.missingWarn) ? n.missingWarn : !0, h = sn(n.fallbackWarn) || g3(n.fallbackWarn) ? n.fallbackWarn : !0, m = !!n.fallbackFormat, y = !!n.unresolving, g = zt(n.postTranslation) ? n.postTranslation : null, v = ft(n.processor) ? n.processor : null, b = sn(n.warnHtmlMessage) ? n.warnHtmlMessage : !0, S = !!n.escapeParameter, C = zt(n.messageCompiler) ? n.messageCompiler : OH;
12874
+ const e = zt(n.onWarn) ? n.onWarn : m1, t = xe(n.version) ? n.version : TH, r = xe(n.locale) || zt(n.locale) ? n.locale : y3, i = zt(r) ? y3 : r, s = bn(n.fallbackLocale) || ft(n.fallbackLocale) || xe(n.fallbackLocale) || n.fallbackLocale === !1 ? n.fallbackLocale : i, o = ft(n.messages) ? n.messages : f4(i), a = ft(n.datetimeFormats) ? n.datetimeFormats : f4(i), l = ft(n.numberFormats) ? n.numberFormats : f4(i), u = dr(It(), n.modifiers, IH()), c = n.pluralRules || It(), d = zt(n.missing) ? n.missing : null, f = sn(n.missingWarn) || g3(n.missingWarn) ? n.missingWarn : !0, h = sn(n.fallbackWarn) || g3(n.fallbackWarn) ? n.fallbackWarn : !0, m = !!n.fallbackFormat, y = !!n.unresolving, g = zt(n.postTranslation) ? n.postTranslation : null, v = ft(n.processor) ? n.processor : null, b = sn(n.warnHtmlMessage) ? n.warnHtmlMessage : !0, S = !!n.escapeParameter, C = zt(n.messageCompiler) ? n.messageCompiler : OH;
12875
12875
  process.env.NODE_ENV !== "production" && zt(n.messageCompiler) && fE(z2(Sr.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
12876
12876
  const T = zt(n.messageResolver) ? n.messageResolver : bE || lH, M = zt(n.localeFallbacker) ? n.localeFallbacker : wE || kH, E = ct(n.fallbackContext) ? n.fallbackContext : void 0, N = n, x = ct(N.__datetimeFormatters) ? N.__datetimeFormatters : /* @__PURE__ */ new Map(), F = ct(N.__numberFormatters) ? N.__numberFormatters : /* @__PURE__ */ new Map(), R = ct(N.__meta) ? N.__meta : {};
12877
12877
  Qb++;
@@ -12974,7 +12974,7 @@ function Jb(n, ...e) {
12974
12974
  return U;
12975
12975
  }
12976
12976
  function $H(n) {
12977
- vn(n.list) ? n.list = n.list.map((e) => xe(e) ? Hb(e) : e) : ct(n.named) && Object.keys(n.named).forEach((e) => {
12977
+ bn(n.list) ? n.list = n.list.map((e) => xe(e) ? Hb(e) : e) : ct(n.named) && Object.keys(n.named).forEach((e) => {
12978
12978
  xe(n.named[e]) && (n.named[e] = Hb(n.named[e]));
12979
12979
  });
12980
12980
  }
@@ -13069,7 +13069,7 @@ function _6(...n) {
13069
13069
  if (!xe(e) && !ur(e) && !Ui(e) && !ho(e))
13070
13070
  throw ua(qn.INVALID_ARGUMENT);
13071
13071
  const s = ur(e) ? String(e) : (Ui(e), e);
13072
- return ur(t) ? i.plural = t : xe(t) ? i.default = t : ft(t) && !s5(t) ? i.named = t : vn(t) && (i.list = t), ur(r) ? i.plural = r : xe(r) ? i.default = r : ft(r) && dr(i, r), [s, i];
13072
+ return ur(t) ? i.plural = t : xe(t) ? i.default = t : ft(t) && !s5(t) ? i.named = t : bn(t) && (i.list = t), ur(r) ? i.plural = r : xe(r) ? i.default = r : ft(r) && dr(i, r), [s, i];
13073
13073
  }
13074
13074
  function BH(n, e, t, r, i, s) {
13075
13075
  return {
@@ -13307,7 +13307,7 @@ const HH = "9.14.4";
13307
13307
  function zH() {
13308
13308
  typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (_y().__INTLIFY_PROD_DEVTOOLS__ = !1);
13309
13309
  }
13310
- const xE = Sr.__EXTEND_POINT__, Eo = o5(xE), Ur = {
13310
+ const xE = Sr.__EXTEND_POINT__, Eo = o5(xE), Zr = {
13311
13311
  FALLBACK_TO_ROOT: xE,
13312
13312
  // 9
13313
13313
  NOT_SUPPORTED_PRESERVE: Eo(),
@@ -13329,61 +13329,61 @@ const xE = Sr.__EXTEND_POINT__, Eo = o5(xE), Ur = {
13329
13329
  NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG: Eo()
13330
13330
  // 18
13331
13331
  }, UH = {
13332
- [Ur.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
13333
- [Ur.NOT_SUPPORTED_PRESERVE]: "Not supported 'preserve'.",
13334
- [Ur.NOT_SUPPORTED_FORMATTER]: "Not supported 'formatter'.",
13335
- [Ur.NOT_SUPPORTED_PRESERVE_DIRECTIVE]: "Not supported 'preserveDirectiveContent'.",
13336
- [Ur.NOT_SUPPORTED_GET_CHOICE_INDEX]: "Not supported 'getChoiceIndex'.",
13337
- [Ur.COMPONENT_NAME_LEGACY_COMPATIBLE]: "Component name legacy compatible: '{name}' -> 'i18n'",
13338
- [Ur.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
13339
- [Ur.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
13340
- [Ur.NOTICE_DROP_ALLOW_COMPOSITION]: "'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",
13341
- [Ur.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]: "'translateExistCompatible' option will be dropped in the next major version."
13332
+ [Zr.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
13333
+ [Zr.NOT_SUPPORTED_PRESERVE]: "Not supported 'preserve'.",
13334
+ [Zr.NOT_SUPPORTED_FORMATTER]: "Not supported 'formatter'.",
13335
+ [Zr.NOT_SUPPORTED_PRESERVE_DIRECTIVE]: "Not supported 'preserveDirectiveContent'.",
13336
+ [Zr.NOT_SUPPORTED_GET_CHOICE_INDEX]: "Not supported 'getChoiceIndex'.",
13337
+ [Zr.COMPONENT_NAME_LEGACY_COMPATIBLE]: "Component name legacy compatible: '{name}' -> 'i18n'",
13338
+ [Zr.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
13339
+ [Zr.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
13340
+ [Zr.NOTICE_DROP_ALLOW_COMPOSITION]: "'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",
13341
+ [Zr.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]: "'translateExistCompatible' option will be dropped in the next major version."
13342
13342
  };
13343
13343
  function b3(n, ...e) {
13344
13344
  return uE(UH[n], ...e);
13345
13345
  }
13346
- const DE = qn.__EXTEND_POINT__, Rr = o5(DE), nn = {
13346
+ const DE = qn.__EXTEND_POINT__, $r = o5(DE), nn = {
13347
13347
  // composer module errors
13348
13348
  UNEXPECTED_RETURN_TYPE: DE,
13349
13349
  // 24
13350
13350
  // legacy module errors
13351
- INVALID_ARGUMENT: Rr(),
13351
+ INVALID_ARGUMENT: $r(),
13352
13352
  // 25
13353
13353
  // i18n module errors
13354
- MUST_BE_CALL_SETUP_TOP: Rr(),
13354
+ MUST_BE_CALL_SETUP_TOP: $r(),
13355
13355
  // 26
13356
- NOT_INSTALLED: Rr(),
13356
+ NOT_INSTALLED: $r(),
13357
13357
  // 27
13358
- NOT_AVAILABLE_IN_LEGACY_MODE: Rr(),
13358
+ NOT_AVAILABLE_IN_LEGACY_MODE: $r(),
13359
13359
  // 28
13360
13360
  // directive module errors
13361
- REQUIRED_VALUE: Rr(),
13361
+ REQUIRED_VALUE: $r(),
13362
13362
  // 29
13363
- INVALID_VALUE: Rr(),
13363
+ INVALID_VALUE: $r(),
13364
13364
  // 30
13365
13365
  // vue-devtools errors
13366
- CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN: Rr(),
13366
+ CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN: $r(),
13367
13367
  // 31
13368
- NOT_INSTALLED_WITH_PROVIDE: Rr(),
13368
+ NOT_INSTALLED_WITH_PROVIDE: $r(),
13369
13369
  // 32
13370
13370
  // unexpected error
13371
- UNEXPECTED_ERROR: Rr(),
13371
+ UNEXPECTED_ERROR: $r(),
13372
13372
  // 33
13373
13373
  // not compatible legacy vue-i18n constructor
13374
- NOT_COMPATIBLE_LEGACY_VUE_I18N: Rr(),
13374
+ NOT_COMPATIBLE_LEGACY_VUE_I18N: $r(),
13375
13375
  // 34
13376
13376
  // bridge support vue 2.x only
13377
- BRIDGE_SUPPORT_VUE_2_ONLY: Rr(),
13377
+ BRIDGE_SUPPORT_VUE_2_ONLY: $r(),
13378
13378
  // 35
13379
13379
  // need to define `i18n` option in `allowComposition: true` and `useScope: 'local' at `useI18n``
13380
- MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION: Rr(),
13380
+ MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION: $r(),
13381
13381
  // 36
13382
13382
  // Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly
13383
- NOT_AVAILABLE_COMPOSITION_IN_LEGACY: Rr(),
13383
+ NOT_AVAILABLE_COMPOSITION_IN_LEGACY: $r(),
13384
13384
  // 37
13385
13385
  // for enhancement
13386
- __EXTEND_POINT__: Rr()
13386
+ __EXTEND_POINT__: $r()
13387
13387
  // 38
13388
13388
  };
13389
13389
  function Rd(n, ...e) {
@@ -13419,7 +13419,7 @@ function $d(n) {
13419
13419
  if (t[o] === "__proto__")
13420
13420
  throw new Error(`unsafe key: ${t[o]}`);
13421
13421
  if (t[o] in i || (i[t[o]] = It()), !ct(i[t[o]])) {
13422
- process.env.NODE_ENV !== "production" && m1(b3(Ur.IGNORE_OBJ_FLATTEN, {
13422
+ process.env.NODE_ENV !== "production" && m1(b3(Zr.IGNORE_OBJ_FLATTEN, {
13423
13423
  key: t[o]
13424
13424
  })), s = !0;
13425
13425
  break;
@@ -13434,8 +13434,8 @@ function $d(n) {
13434
13434
  return n;
13435
13435
  }
13436
13436
  function NE(n, e) {
13437
- const { messages: t, __i18n: r, messageResolver: i, flatJson: s } = e, o = ft(t) ? t : vn(r) ? It() : { [n]: It() };
13438
- if (vn(r) && r.forEach((a) => {
13437
+ const { messages: t, __i18n: r, messageResolver: i, flatJson: s } = e, o = ft(t) ? t : bn(r) ? It() : { [n]: It() };
13438
+ if (bn(r) && r.forEach((a) => {
13439
13439
  if ("locale" in a && "resource" in a) {
13440
13440
  const { locale: l, resource: u } = a;
13441
13441
  l ? (o[l] = o[l] || It(), Cm(u, o[l])) : Cm(u, o);
@@ -13489,14 +13489,14 @@ const YH = /* @__NO_SIDE_EFFECTS__ */ () => {
13489
13489
  };
13490
13490
  function QH(n = {}, e) {
13491
13491
  const { __root: t, __injectWithOption: r } = n, i = t === void 0, s = n.flatJson, o = ba ? $ : qg, a = !!n.translateExistCompatible;
13492
- process.env.NODE_ENV !== "production" && a && fE(b3(Ur.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));
13492
+ process.env.NODE_ENV !== "production" && a && fE(b3(Zr.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));
13493
13493
  let l = sn(n.inheritLocale) ? n.inheritLocale : !0;
13494
13494
  const u = o(
13495
13495
  // prettier-ignore
13496
13496
  t && l ? t.locale.value : xe(n.locale) ? n.locale : y3
13497
13497
  ), c = o(
13498
13498
  // prettier-ignore
13499
- t && l ? t.fallbackLocale.value : xe(n.fallbackLocale) || vn(n.fallbackLocale) || ft(n.fallbackLocale) || n.fallbackLocale === !1 ? n.fallbackLocale : u.value
13499
+ t && l ? t.fallbackLocale.value : xe(n.fallbackLocale) || bn(n.fallbackLocale) || ft(n.fallbackLocale) || n.fallbackLocale === !1 ? n.fallbackLocale : u.value
13500
13500
  ), d = o(NE(u.value, n)), f = o(ft(n.datetimeFormats) ? n.datetimeFormats : { [u.value]: {} }), h = o(ft(n.numberFormats) ? n.numberFormats : { [u.value]: {} });
13501
13501
  let m = t ? t.missingWarn : sn(n.missingWarn) || g3(n.missingWarn) ? n.missingWarn : !0, y = t ? t.fallbackWarn : sn(n.fallbackWarn) || g3(n.fallbackWarn) ? n.fallbackWarn : !0, g = t ? t.fallbackRoot : sn(n.fallbackRoot) ? n.fallbackRoot : !0, v = !!n.fallbackFormat, b = zt(n.missing) ? n.missing : null, S = zt(n.missing) ? uw(n.missing) : null, C = zt(n.postTranslation) ? n.postTranslation : null, T = t ? t.warnHtmlMessage : sn(n.warnHtmlMessage) ? n.warnHtmlMessage : !0, M = !!n.escapeParameter;
13502
13502
  const E = t ? t.modifiers : ft(n.modifiers) ? n.modifiers : {};
@@ -13572,7 +13572,7 @@ function QH(n = {}, e) {
13572
13572
  if (st !== "translate exists" && // for not `te` (e.g `t`)
13573
13573
  ur(Oa) && Oa === a5 || st === "translate exists" && !Oa) {
13574
13574
  const [se, Oe] = he();
13575
- if (process.env.NODE_ENV !== "production" && t && xe(se) && ge(st, Oe) && (g && (l5(y, se) || ME(m, se)) && m1(b3(Ur.FALLBACK_TO_ROOT, {
13575
+ if (process.env.NODE_ENV !== "production" && t && xe(se) && ge(st, Oe) && (g && (l5(y, se) || ME(m, se)) && m1(b3(Zr.FALLBACK_TO_ROOT, {
13576
13576
  key: se,
13577
13577
  type: st
13578
13578
  })), process.env.NODE_ENV !== "production")) {
@@ -13631,7 +13631,7 @@ function QH(n = {}, e) {
13631
13631
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
13632
13632
  (he) => he[F6](...ae),
13633
13633
  (he) => [sw(he)],
13634
- (he) => vn(he)
13634
+ (he) => bn(he)
13635
13635
  );
13636
13636
  }
13637
13637
  function De(...ae) {
@@ -13642,7 +13642,7 @@ function QH(n = {}, e) {
13642
13642
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
13643
13643
  (he) => he[j6](...ae),
13644
13644
  aw,
13645
- (he) => xe(he) || vn(he)
13645
+ (he) => xe(he) || bn(he)
13646
13646
  );
13647
13647
  }
13648
13648
  function Ue(...ae) {
@@ -13653,7 +13653,7 @@ function QH(n = {}, e) {
13653
13653
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
13654
13654
  (he) => he[B6](...ae),
13655
13655
  aw,
13656
- (he) => xe(he) || vn(he)
13656
+ (he) => xe(he) || bn(he)
13657
13657
  );
13658
13658
  }
13659
13659
  function it(ae) {
@@ -13679,7 +13679,7 @@ function QH(n = {}, e) {
13679
13679
  }
13680
13680
  return he;
13681
13681
  }
13682
- function Sn(ae) {
13682
+ function Mn(ae) {
13683
13683
  const he = Yn(ae);
13684
13684
  return he ?? (t ? t.tm(ae) || {} : {});
13685
13685
  }
@@ -13795,7 +13795,7 @@ function QH(n = {}, e) {
13795
13795
  setMissingHandler: oe,
13796
13796
  [WH]: it
13797
13797
  };
13798
- return St.datetimeFormats = re, St.numberFormats = ie, St.rt = Y, St.te = fn, St.tm = Sn, St.d = Q, St.n = j, St.getDateTimeFormat = hn, St.setDateTimeFormat = pr, St.mergeDateTimeFormat = Ls, St.getNumberFormat = xi, St.setNumberFormat = as, St.mergeNumberFormat = ko, St[qH] = r, St[F6] = pe, St[B6] = Ue, St[j6] = De, process.env.NODE_ENV !== "production" && (St[V6] = (ae) => {
13798
+ return St.datetimeFormats = re, St.numberFormats = ie, St.rt = Y, St.te = fn, St.tm = Mn, St.d = Q, St.n = j, St.getDateTimeFormat = hn, St.setDateTimeFormat = pr, St.mergeDateTimeFormat = Ls, St.getNumberFormat = xi, St.setNumberFormat = as, St.mergeNumberFormat = ko, St[qH] = r, St[F6] = pe, St[B6] = Ue, St[j6] = De, process.env.NODE_ENV !== "production" && (St[V6] = (ae) => {
13799
13799
  x.__v_emitter = ae;
13800
13800
  }, St[H6] = () => {
13801
13801
  x.__v_emitter = void 0;
@@ -13844,7 +13844,7 @@ dr({
13844
13844
  }
13845
13845
  }, Fy);
13846
13846
  function JH(n) {
13847
- return vn(n) && !xe(n[0]);
13847
+ return bn(n) && !xe(n[0]);
13848
13848
  }
13849
13849
  function _E(n, e, t, r) {
13850
13850
  const { slots: i, attrs: s } = e;
@@ -13854,7 +13854,7 @@ function _E(n, e, t, r) {
13854
13854
  n.locale && (o.locale = n.locale), xe(n.format) ? o.key = n.format : ct(n.format) && (xe(n.format.key) && (o.key = n.format.key), a = Object.keys(n.format).reduce((f, h) => t.includes(h) ? dr(It(), f, { [h]: n.format[h] }) : f, It()));
13855
13855
  const l = r(n.value, o, a);
13856
13856
  let u = [o.key];
13857
- vn(l) ? u = l.map((f, h) => {
13857
+ bn(l) ? u = l.map((f, h) => {
13858
13858
  const m = i[f.type], y = m ? m({ [f.type]: f.value, index: h, parts: l }) : [f.value];
13859
13859
  return JH(y) && (y[0].key = `${f.type}-${h}`), y;
13860
13860
  }) : xe(l) && (u = [l]);
@@ -13894,7 +13894,7 @@ function Mo(n = {}) {
13894
13894
  return GH(r, n, i), r;
13895
13895
  if (s === "parent") {
13896
13896
  let l = iz(t, e, n.__useComponent);
13897
- return l == null && (process.env.NODE_ENV !== "production" && m1(b3(Ur.NOT_FOUND_PARENT_SCOPE)), l = r), l;
13897
+ return l == null && (process.env.NODE_ENV !== "production" && m1(b3(Zr.NOT_FOUND_PARENT_SCOPE)), l = r), l;
13898
13898
  }
13899
13899
  const o = t;
13900
13900
  let a = o.__getInstance(e);
@@ -13941,7 +13941,7 @@ function oz(n, e, t) {
13941
13941
  const i = t;
13942
13942
  i[V6] && i[V6](r), r.on("*", cw);
13943
13943
  }
13944
- }, e), Pr(() => {
13944
+ }, e), Lr(() => {
13945
13945
  const i = t;
13946
13946
  process.env.NODE_ENV !== "production" && e.vnode.el && e.vnode.el.__VUE_I18N__ && (r && r.off("*", cw), i[H6] && i[H6](), delete e.vnode.el.__VUE_I18N__), n.__deleteInstance(e);
13947
13947
  const s = i[z6];
@@ -15668,7 +15668,7 @@ const gU = Ae({
15668
15668
  const t = () => {
15669
15669
  n.dismissible && e("close");
15670
15670
  };
15671
- return Pr(() => {
15671
+ return Lr(() => {
15672
15672
  document.body.classList.remove("scroll-disabled");
15673
15673
  }), yt(() => {
15674
15674
  document.body.classList.add("scroll-disabled");
@@ -15742,7 +15742,7 @@ const jy = /* @__PURE__ */ Be(gU, [["render", vU], ["__scopeId", "data-v-ebc1534
15742
15742
  }
15743
15743
  }),
15744
15744
  // Composables
15745
- mq: Cn
15745
+ mq: Sn
15746
15746
  };
15747
15747
  }
15748
15748
  }), wU = { class: "flex flex-col gap-2 text-center" }, CU = { class: "text-lg font-bold text-inkwell-30 leading-6" }, SU = { class: "text-inkwell-0 mb-2 md:mb-6" };
@@ -15838,7 +15838,7 @@ const HE = /* @__PURE__ */ Be(bU, [["render", MU], ["__scopeId", "data-v-3aa658e
15838
15838
  },
15839
15839
  emits: ["click:link", "click:action"],
15840
15840
  setup() {
15841
- return Pr(() => {
15841
+ return Lr(() => {
15842
15842
  document.body.classList.remove("scroll-disabled");
15843
15843
  }), yt(() => {
15844
15844
  document.body.classList.add("scroll-disabled");
@@ -17237,12 +17237,12 @@ var DU = { 9306: (n, e, t) => {
17237
17237
  var r = t(6518), i = t(3724), s = t(4576), o = t(7751), a = t(9504), l = t(9565), u = t(4901), c = t(34), d = t(4376), f = t(9297), h = t(655), m = t(6198), y = t(4659), g = t(9039), v = t(8235), b = t(4495), S = s.JSON, C = s.Number, T = s.SyntaxError, M = S && S.parse, E = o("Object", "keys"), N = Object.getOwnPropertyDescriptor, x = a("".charAt), F = a("".slice), R = a(/./.exec), U = a([].push), te = /^\d$/, K = /^[1-9]$/, re = /^[\d-]$/, ie = /^[\t\n\r ]$/, W = function(ee, Y, Q, j) {
17238
17238
  var le, ve, de, pe, De, Ue = ee[Y], it = j && Ue === j.value, fn = it && typeof j.source == "string" ? { source: j.source } : {};
17239
17239
  if (c(Ue)) {
17240
- var Yn = d(Ue), Sn = it ? j.nodes : Yn ? [] : {};
17240
+ var Yn = d(Ue), Mn = it ? j.nodes : Yn ? [] : {};
17241
17241
  if (Yn)
17242
- for (le = Sn.length, de = m(Ue), pe = 0; pe < de; pe++) ue(Ue, pe, W(Ue, "" + pe, Q, pe < le ? Sn[pe] : void 0));
17242
+ for (le = Mn.length, de = m(Ue), pe = 0; pe < de; pe++) ue(Ue, pe, W(Ue, "" + pe, Q, pe < le ? Mn[pe] : void 0));
17243
17243
  else
17244
17244
  for (ve = E(Ue), de = m(ve), pe = 0; pe < de; pe++)
17245
- De = ve[pe], ue(Ue, De, W(Ue, De, Q, f(Sn, De) ? Sn[De] : void 0));
17245
+ De = ve[pe], ue(Ue, De, W(Ue, De, Q, f(Mn, De) ? Mn[De] : void 0));
17246
17246
  }
17247
17247
  return l(Q, ee, Y, Ue, fn);
17248
17248
  }, ue = function(ee, Y, Q) {
@@ -17411,7 +17411,7 @@ rt.d = (n, e) => {
17411
17411
  };
17412
17412
  rt.o = (n, e) => Object.prototype.hasOwnProperty.call(n, e);
17413
17413
  var je = globalThis.pdfjsLib = {};
17414
- rt.d(je, { AbortException: () => F0, AnnotationEditorLayer: () => t8, AnnotationEditorParamsType: () => nt, AnnotationEditorType: () => Ge, AnnotationEditorUIManager: () => Z2, AnnotationLayer: () => IW, AnnotationMode: () => Za, ColorPicker: () => T3, DOMSVGFactory: () => Ky, DrawLayer: () => i8, FeatureTest: () => Tr, GlobalWorkerOptions: () => la, ImageKind: () => Mm, InvalidPDFException: () => q6, MissingPDFException: () => zd, OPS: () => ds, OutputScale: () => Y6, PDFDataRangeTransport: () => UT, PDFDateString: () => Wy, PDFWorker: () => Ru, PasswordResponses: () => uZ, PermissionFlag: () => FU, PixelsPerInch: () => B0, RenderingCancelledException: () => Uy, TextLayer: () => Ud, TouchManager: () => k3, UnexpectedResponseException: () => C3, Util: () => Le, VerbosityLevel: () => c5, XfaLayer: () => WT, build: () => uW, createValidAbsoluteUrl: () => fZ, fetchData: () => p5, getDocument: () => nW, getFilenameFromUrl: () => mZ, getPdfFilenameFromUrl: () => gZ, getXfaPageViewport: () => yZ, isDataScheme: () => m5, isPdfFile: () => Zy, noContextMenu: () => xs, normalizeUnicode: () => pZ, setLayerDimensions: () => U2, shadow: () => et, stopEvent: () => yi, version: () => lW });
17414
+ rt.d(je, { AbortException: () => F0, AnnotationEditorLayer: () => t8, AnnotationEditorParamsType: () => nt, AnnotationEditorType: () => Ge, AnnotationEditorUIManager: () => Z2, AnnotationLayer: () => IW, AnnotationMode: () => Za, ColorPicker: () => T3, DOMSVGFactory: () => Ky, DrawLayer: () => i8, FeatureTest: () => Ir, GlobalWorkerOptions: () => la, ImageKind: () => Mm, InvalidPDFException: () => q6, MissingPDFException: () => zd, OPS: () => ds, OutputScale: () => Y6, PDFDataRangeTransport: () => UT, PDFDateString: () => Wy, PDFWorker: () => Ru, PasswordResponses: () => uZ, PermissionFlag: () => FU, PixelsPerInch: () => B0, RenderingCancelledException: () => Uy, TextLayer: () => Ud, TouchManager: () => k3, UnexpectedResponseException: () => C3, Util: () => Le, VerbosityLevel: () => c5, XfaLayer: () => WT, build: () => uW, createValidAbsoluteUrl: () => fZ, fetchData: () => p5, getDocument: () => nW, getFilenameFromUrl: () => mZ, getPdfFilenameFromUrl: () => gZ, getXfaPageViewport: () => yZ, isDataScheme: () => m5, isPdfFile: () => Zy, noContextMenu: () => xs, normalizeUnicode: () => pZ, setLayerDimensions: () => U2, shadow: () => et, stopEvent: () => yi, version: () => lW });
17415
17415
  rt(4114), rt(6573), rt(8100), rt(7936), rt(7467), rt(4732), rt(9577), rt(5247), rt(4979), rt(4603), rt(7566), rt(8721);
17416
17416
  const or = !(typeof process != "object" || process + "" != "[object process]" || process.versions.nw || process.versions.electron && process.type && process.type !== "browser"), UE = [1, 0, 0, 1, 0, 0], W6 = [1e-3, 0, 0, 1e-3, 0, 0], p4 = 1.35, NU = 1, Vy = 2, w3 = 4, PU = 16, LU = 32, _U = 64, RU = 128, $U = 256, Za = { DISABLE: 0, ENABLE: 1, ENABLE_FORMS: 2, ENABLE_STORAGE: 3 }, Ge = { DISABLE: -1, NONE: 0, FREETEXT: 3, HIGHLIGHT: 9, STAMP: 13, INK: 15 }, nt = { RESIZE: 1, CREATE: 2, FREETEXT_SIZE: 11, FREETEXT_COLOR: 12, FREETEXT_OPACITY: 13, INK_COLOR: 21, INK_THICKNESS: 22, INK_OPACITY: 23, HIGHLIGHT_COLOR: 31, HIGHLIGHT_DEFAULT_COLOR: 32, HIGHLIGHT_THICKNESS: 33, HIGHLIGHT_FREE: 34, HIGHLIGHT_SHOW_ALL: 35, DRAW_STEP: 41 }, FU = { PRINT: 4, MODIFY_CONTENTS: 8, COPY: 16, MODIFY_ANNOTATIONS: 32, FILL_INTERACTIVE_FORMS: 256, COPY_FOR_ACCESSIBILITY: 512, ASSEMBLE: 1024, PRINT_HIGH_QUALITY: 2048 }, Sm = 0, m4 = 1, T1 = 2, BU = 3, Cw = 3, jU = 4, Mm = { GRAYSCALE_1BPP: 1, RGB_24BPP: 2, RGBA_32BPP: 3 }, VU = 1, HU = 2, zU = 3, UU = 4, ZU = 5, WU = 6, qU = 7, GU = 8, KU = 9, YU = 10, QU = 11, XU = 12, JU = 13, eZ = 14, tZ = 15, ZE = 16, nZ = 17, rZ = 20, iZ = 1, sZ = 2, oZ = 3, aZ = 4, lZ = 5, c5 = { ERRORS: 0, WARNINGS: 1, INFOS: 5 }, ds = { dependency: 1, setLineWidth: 2, setLineCap: 3, setLineJoin: 4, setMiterLimit: 5, setDash: 6, setRenderingIntent: 7, setFlatness: 8, setGState: 9, save: 10, restore: 11, transform: 12, moveTo: 13, lineTo: 14, curveTo: 15, curveTo2: 16, curveTo3: 17, closePath: 18, rectangle: 19, stroke: 20, closeStroke: 21, fill: 22, eoFill: 23, fillStroke: 24, eoFillStroke: 25, closeFillStroke: 26, closeEOFillStroke: 27, endPath: 28, clip: 29, eoClip: 30, beginText: 31, endText: 32, setCharSpacing: 33, setWordSpacing: 34, setHScale: 35, setLeading: 36, setFont: 37, setTextRenderingMode: 38, setTextRise: 39, moveText: 40, setLeadingMoveText: 41, setTextMatrix: 42, nextLine: 43, showText: 44, showSpacedText: 45, nextLineShowText: 46, nextLineSetSpacingShowText: 47, setCharWidth: 48, setCharWidthAndBounds: 49, setStrokeColorSpace: 50, setFillColorSpace: 51, setStrokeColor: 52, setStrokeColorN: 53, setFillColor: 54, setFillColorN: 55, setStrokeGray: 56, setFillGray: 57, setStrokeRGBColor: 58, setFillRGBColor: 59, setStrokeCMYKColor: 60, setFillCMYKColor: 61, shadingFill: 62, beginInlineImage: 63, beginImageData: 64, endInlineImage: 65, paintXObject: 66, markPoint: 67, markPointProps: 68, beginMarkedContent: 69, beginMarkedContentProps: 70, endMarkedContent: 71, beginCompat: 72, endCompat: 73, paintFormXObjectBegin: 74, paintFormXObjectEnd: 75, beginGroup: 76, endGroup: 77, beginAnnotation: 80, endAnnotation: 81, paintImageMaskXObject: 83, paintImageMaskXObjectGroup: 84, paintImageXObject: 85, paintInlineImageXObject: 86, paintInlineImageXObjectGroup: 87, paintImageXObjectRepeat: 88, paintImageMaskXObjectRepeat: 89, paintSolidColorImageMask: 90, constructPath: 91, setStrokeTransparent: 92, setFillTransparent: 93 }, uZ = { NEED_PASSWORD: 1, INCORRECT_PASSWORD: 2 };
17417
17417
  let d5 = c5.WARNINGS;
@@ -17531,7 +17531,7 @@ function Hy(n) {
17531
17531
  for (const [t, r] of n) e[t] = r;
17532
17532
  return e;
17533
17533
  }
17534
- class Tr {
17534
+ class Ir {
17535
17535
  static get isLittleEndian() {
17536
17536
  return et(this, "isLittleEndian", function() {
17537
17537
  const t = new Uint8Array(4);
@@ -17814,7 +17814,7 @@ function $s(n) {
17814
17814
  }
17815
17815
  function U2(n, e, t = !1, r = !0) {
17816
17816
  if (e instanceof mp) {
17817
- const { pageWidth: i, pageHeight: s } = e.rawDims, { style: o } = n, a = Tr.isCSSRoundSupported, l = `var(--scale-factor) * ${i}px`, u = `var(--scale-factor) * ${s}px`, c = a ? `round(down, ${l}, var(--scale-round-x, 1px))` : `calc(${l})`, d = a ? `round(down, ${u}, var(--scale-round-y, 1px))` : `calc(${u})`;
17817
+ const { pageWidth: i, pageHeight: s } = e.rawDims, { style: o } = n, a = Ir.isCSSRoundSupported, l = `var(--scale-factor) * ${i}px`, u = `var(--scale-factor) * ${s}px`, c = a ? `round(down, ${l}, var(--scale-round-x, 1px))` : `calc(${l})`, d = a ? `round(down, ${u}, var(--scale-round-y, 1px))` : `calc(${u})`;
17818
17818
  t && e.rotation % 180 != 0 ? (o.width = d, o.height = c) : (o.width = c, o.height = d);
17819
17819
  }
17820
17820
  r && n.setAttribute("data-main-rotation", e.rotation);
@@ -17831,10 +17831,10 @@ class Y6 {
17831
17831
  return this.sx === this.sy;
17832
17832
  }
17833
17833
  }
17834
- var Ga, Ol, fs, xl, Nf, Pf, Ig, qE, Ir, GE, KE, Am, YE, X6;
17834
+ var Ga, Ol, fs, xl, Nf, Pf, Ig, qE, Or, GE, KE, Am, YE, X6;
17835
17835
  const Lo = class Lo {
17836
17836
  constructor(e) {
17837
- I(this, Ir);
17837
+ I(this, Or);
17838
17838
  I(this, Ga, null);
17839
17839
  I(this, Ol, null);
17840
17840
  I(this, fs);
@@ -17854,7 +17854,7 @@ const Lo = class Lo {
17854
17854
  const { style: s } = e, o = p(this, fs)._uiManager.direction === "ltr" ? 1 - i[0] : i[0];
17855
17855
  s.insetInlineEnd = 100 * o + "%", s.top = `calc(${100 * i[1]}% + var(--editor-toolbar-vert-offset))`;
17856
17856
  }
17857
- return O(this, Ir, YE).call(this), e;
17857
+ return O(this, Or, YE).call(this), e;
17858
17858
  }
17859
17859
  get div() {
17860
17860
  return p(this, Ga);
@@ -17869,12 +17869,12 @@ const Lo = class Lo {
17869
17869
  }
17870
17870
  async addAltText(e) {
17871
17871
  const t = await e.render();
17872
- O(this, Ir, Am).call(this, t), p(this, xl).prepend(t, p(this, Ir, X6)), k(this, Nf, e);
17872
+ O(this, Or, Am).call(this, t), p(this, xl).prepend(t, p(this, Or, X6)), k(this, Nf, e);
17873
17873
  }
17874
17874
  addColorPicker(e) {
17875
17875
  k(this, Ol, e);
17876
17876
  const t = e.renderButton();
17877
- O(this, Ir, Am).call(this, t), p(this, xl).prepend(t, p(this, Ir, X6));
17877
+ O(this, Or, Am).call(this, t), p(this, xl).prepend(t, p(this, Or, X6));
17878
17878
  }
17879
17879
  remove() {
17880
17880
  var e;
@@ -17883,16 +17883,16 @@ const Lo = class Lo {
17883
17883
  };
17884
17884
  Ga = new WeakMap(), Ol = new WeakMap(), fs = new WeakMap(), xl = new WeakMap(), Nf = new WeakMap(), Pf = new WeakMap(), Ig = new WeakSet(), qE = function(e) {
17885
17885
  e.stopPropagation();
17886
- }, Ir = new WeakSet(), GE = function(e) {
17886
+ }, Or = new WeakSet(), GE = function(e) {
17887
17887
  p(this, fs)._focusEventsAllowed = !1, yi(e);
17888
17888
  }, KE = function(e) {
17889
17889
  p(this, fs)._focusEventsAllowed = !0, yi(e);
17890
17890
  }, Am = function(e) {
17891
17891
  const t = p(this, fs)._uiManager._signal;
17892
- e.addEventListener("focusin", O(this, Ir, GE).bind(this), { capture: !0, signal: t }), e.addEventListener("focusout", O(this, Ir, KE).bind(this), { capture: !0, signal: t }), e.addEventListener("contextmenu", xs, { signal: t });
17892
+ e.addEventListener("focusin", O(this, Or, GE).bind(this), { capture: !0, signal: t }), e.addEventListener("focusout", O(this, Or, KE).bind(this), { capture: !0, signal: t }), e.addEventListener("contextmenu", xs, { signal: t });
17893
17893
  }, YE = function() {
17894
17894
  const { editorType: e, _uiManager: t } = p(this, fs), r = document.createElement("button");
17895
- r.className = "delete", r.tabIndex = 0, r.setAttribute("data-l10n-id", p(Lo, Pf)[e]), O(this, Ir, Am).call(this, r), r.addEventListener("click", (i) => {
17895
+ r.className = "delete", r.tabIndex = 0, r.setAttribute("data-l10n-id", p(Lo, Pf)[e]), O(this, Or, Am).call(this, r), r.addEventListener("click", (i) => {
17896
17896
  t.delete();
17897
17897
  }, { signal: t._signal }), p(this, xl).append(r);
17898
17898
  }, X6 = function() {
@@ -18109,7 +18109,7 @@ class gp {
18109
18109
  constructor(e) {
18110
18110
  I(this, xg);
18111
18111
  this.buffer = [], this.callbacks = /* @__PURE__ */ new Map(), this.allKeys = /* @__PURE__ */ new Set();
18112
- const { isMac: t } = Tr.platform;
18112
+ const { isMac: t } = Ir.platform;
18113
18113
  for (const [r, i, s = {}] of e) for (const o of r) {
18114
18114
  const a = o.startsWith("mac+");
18115
18115
  t && a ? (this.callbacks.set(o.slice(4), { callback: i, options: s }), this.allKeys.add(o.split("+").at(-1))) : !t && !a && (this.callbacks.set(o, { callback: i, options: s }), this.allKeys.add(o.split("+").at(-1)));
@@ -18155,7 +18155,7 @@ const Dg = class Dg {
18155
18155
  };
18156
18156
  Re(Dg, "_colorsMapping", /* @__PURE__ */ new Map([["CanvasText", [0, 0, 0]], ["Canvas", [255, 255, 255]]]));
18157
18157
  let e7 = Dg;
18158
- var Hu, ii, mn, jn, zu, $o, Uu, Ri, Ya, Pl, Zu, Ll, Zs, hs, _l, $f, Ff, Wu, Bf, Ws, Qa, qu, Xa, qs, Ng, Ja, jf, e0, Rl, Vf, Hf, kn, wt, Fo, $l, zf, Uf, t0, Gs, Bo, Zf, $i, be, Tm, t7, tT, nT, Im, rT, iT, sT, n7, oT, r7, i7, aT, yr, Oo, lT, uT, s7, cT, F1, o7;
18158
+ var Hu, ii, mn, jn, zu, $o, Uu, Ri, Ya, Pl, Zu, Ll, Zs, hs, _l, $f, Ff, Wu, Bf, Ws, Qa, qu, Xa, qs, Ng, Ja, jf, e0, Rl, Vf, Hf, An, wt, Fo, $l, zf, Uf, t0, Gs, Bo, Zf, $i, be, Tm, t7, tT, nT, Im, rT, iT, sT, n7, oT, r7, i7, aT, yr, Oo, lT, uT, s7, cT, F1, o7;
18159
18159
  const xu = class xu {
18160
18160
  constructor(e, t, r, i, s, o, a, l, u, c, d, f, h) {
18161
18161
  I(this, be);
@@ -18191,7 +18191,7 @@ const xu = class xu {
18191
18191
  I(this, Rl, null);
18192
18192
  I(this, Vf, null);
18193
18193
  I(this, Hf, null);
18194
- I(this, kn, Ge.NONE);
18194
+ I(this, An, Ge.NONE);
18195
18195
  I(this, wt, /* @__PURE__ */ new Set());
18196
18196
  I(this, Fo, null);
18197
18197
  I(this, $l, null);
@@ -18301,7 +18301,7 @@ const xu = class xu {
18301
18301
  const { anchorNode: r, anchorOffset: i, focusNode: s, focusOffset: o } = t, a = t.toString(), l = O(this, be, Tm).call(this, t).closest(".textLayer"), u = this.getSelectionBoxes(l);
18302
18302
  if (!u) return;
18303
18303
  t.empty();
18304
- const c = O(this, be, t7).call(this, l), d = p(this, kn) === Ge.NONE, f = () => {
18304
+ const c = O(this, be, t7).call(this, l), d = p(this, An) === Ge.NONE, f = () => {
18305
18305
  c == null || c.createAndAddNewEditor({ x: 0, y: 0 }, !1, { methodOfCreation: e, boxes: u, anchorNode: r, anchorOffset: i, focusNode: s, focusOffset: o, text: a }), d && this.showAllEditors("highlight", !0, !0);
18306
18306
  };
18307
18307
  d ? this.switchToMode(Ge.HIGHLIGHT, f) : f();
@@ -18392,7 +18392,7 @@ const xu = class xu {
18392
18392
  }
18393
18393
  }
18394
18394
  keydown(e) {
18395
- this.isShiftKeyDown || e.key !== "Shift" || (this.isShiftKeyDown = !0), p(this, kn) === Ge.NONE || this.isEditorHandlingKeyboard || xu._keyboardManager.exec(this, e);
18395
+ this.isShiftKeyDown || e.key !== "Shift" || (this.isShiftKeyDown = !0), p(this, An) === Ge.NONE || this.isEditorHandlingKeyboard || xu._keyboardManager.exec(this, e);
18396
18396
  }
18397
18397
  keyup(e) {
18398
18398
  this.isShiftKeyDown && e.key === "Shift" && (this.isShiftKeyDown = !1, p(this, Xa) && (k(this, Xa, !1), O(this, be, Im).call(this, "main_toolbar")));
@@ -18410,7 +18410,7 @@ const xu = class xu {
18410
18410
  }
18411
18411
  }
18412
18412
  setEditingState(e) {
18413
- e ? (O(this, be, iT).call(this), O(this, be, r7).call(this), O(this, be, yr).call(this, { isEditing: p(this, kn) !== Ge.NONE, isEmpty: O(this, be, F1).call(this), hasSomethingToUndo: p(this, Ri).hasSomethingToUndo(), hasSomethingToRedo: p(this, Ri).hasSomethingToRedo(), hasSelectedEditor: !1 })) : (O(this, be, sT).call(this), O(this, be, i7).call(this), O(this, be, yr).call(this, { isEditing: !1 }), this.disableUserSelect(!1));
18413
+ e ? (O(this, be, iT).call(this), O(this, be, r7).call(this), O(this, be, yr).call(this, { isEditing: p(this, An) !== Ge.NONE, isEmpty: O(this, be, F1).call(this), hasSomethingToUndo: p(this, Ri).hasSomethingToUndo(), hasSomethingToRedo: p(this, Ri).hasSomethingToRedo(), hasSelectedEditor: !1 })) : (O(this, be, sT).call(this), O(this, be, i7).call(this), O(this, be, yr).call(this, { isEditing: !1 }), this.disableUserSelect(!1));
18414
18414
  }
18415
18415
  registerEditorTypes(e) {
18416
18416
  if (!p(this, hs)) {
@@ -18438,10 +18438,10 @@ const xu = class xu {
18438
18438
  }
18439
18439
  async updateMode(e, t = null, r = !1) {
18440
18440
  var i;
18441
- if (p(this, kn) !== e) {
18441
+ if (p(this, An) !== e) {
18442
18442
  if (p(this, $i) && (await p(this, $i).promise, !p(this, $i)))
18443
18443
  return;
18444
- if (k(this, $i, Promise.withResolvers()), k(this, kn, e), e !== Ge.NONE) {
18444
+ if (k(this, $i, Promise.withResolvers()), k(this, An, e), e !== Ge.NONE) {
18445
18445
  this.setEditingState(!0), await O(this, be, lT).call(this), this.unselectAll();
18446
18446
  for (const s of p(this, jn).values()) s.updateMode(e);
18447
18447
  if (t) {
@@ -18457,7 +18457,7 @@ const xu = class xu {
18457
18457
  this.currentLayer.canCreateNewEmptyEditor() && this.currentLayer.addNewEditor();
18458
18458
  }
18459
18459
  updateToolbar(e) {
18460
- e !== p(this, kn) && this._eventBus.dispatch("switchannotationeditormode", { source: this, mode: e });
18460
+ e !== p(this, An) && this._eventBus.dispatch("switchannotationeditormode", { source: this, mode: e });
18461
18461
  }
18462
18462
  updateParams(e, t) {
18463
18463
  var r;
@@ -18587,7 +18587,7 @@ const xu = class xu {
18587
18587
  }
18588
18588
  unselectAll() {
18589
18589
  var e;
18590
- if (!(p(this, ii) && (p(this, ii).commitOrRemove(), p(this, kn) !== Ge.NONE)) && !((e = p(this, Pl)) != null && e.commitOrRemove()) && this.hasSelection) {
18590
+ if (!(p(this, ii) && (p(this, ii).commitOrRemove(), p(this, An) !== Ge.NONE)) && !((e = p(this, Pl)) != null && e.commitOrRemove()) && this.hasSelection) {
18591
18591
  for (const t of p(this, wt)) t.unselect();
18592
18592
  p(this, wt).clear(), O(this, be, yr).call(this, { hasSelectedEditor: !1 });
18593
18593
  }
@@ -18652,7 +18652,7 @@ const xu = class xu {
18652
18652
  return p(this, ii);
18653
18653
  }
18654
18654
  getMode() {
18655
- return p(this, kn);
18655
+ return p(this, An);
18656
18656
  }
18657
18657
  get imageManager() {
18658
18658
  return et(this, "imageManager", new J6());
@@ -18695,10 +18695,10 @@ const xu = class xu {
18695
18695
  const t = (i = p(this, Uu)) == null ? void 0 : i.get(e.data.id);
18696
18696
  if (!t) return;
18697
18697
  const r = p(this, $o).getRawValue(t);
18698
- r && (p(this, kn) !== Ge.NONE || r.hasBeenModified) && r.renderAnnotationElement(e);
18698
+ r && (p(this, An) !== Ge.NONE || r.hasBeenModified) && r.renderAnnotationElement(e);
18699
18699
  }
18700
18700
  };
18701
- Hu = new WeakMap(), ii = new WeakMap(), mn = new WeakMap(), jn = new WeakMap(), zu = new WeakMap(), $o = new WeakMap(), Uu = new WeakMap(), Ri = new WeakMap(), Ya = new WeakMap(), Pl = new WeakMap(), Zu = new WeakMap(), Ll = new WeakMap(), Zs = new WeakMap(), hs = new WeakMap(), _l = new WeakMap(), $f = new WeakMap(), Ff = new WeakMap(), Wu = new WeakMap(), Bf = new WeakMap(), Ws = new WeakMap(), Qa = new WeakMap(), qu = new WeakMap(), Xa = new WeakMap(), qs = new WeakMap(), Ng = new WeakMap(), Ja = new WeakMap(), jf = new WeakMap(), e0 = new WeakMap(), Rl = new WeakMap(), Vf = new WeakMap(), Hf = new WeakMap(), kn = new WeakMap(), wt = new WeakMap(), Fo = new WeakMap(), $l = new WeakMap(), zf = new WeakMap(), Uf = new WeakMap(), t0 = new WeakMap(), Gs = new WeakMap(), Bo = new WeakMap(), Zf = new WeakMap(), $i = new WeakMap(), be = new WeakSet(), Tm = function({ anchorNode: e }) {
18701
+ Hu = new WeakMap(), ii = new WeakMap(), mn = new WeakMap(), jn = new WeakMap(), zu = new WeakMap(), $o = new WeakMap(), Uu = new WeakMap(), Ri = new WeakMap(), Ya = new WeakMap(), Pl = new WeakMap(), Zu = new WeakMap(), Ll = new WeakMap(), Zs = new WeakMap(), hs = new WeakMap(), _l = new WeakMap(), $f = new WeakMap(), Ff = new WeakMap(), Wu = new WeakMap(), Bf = new WeakMap(), Ws = new WeakMap(), Qa = new WeakMap(), qu = new WeakMap(), Xa = new WeakMap(), qs = new WeakMap(), Ng = new WeakMap(), Ja = new WeakMap(), jf = new WeakMap(), e0 = new WeakMap(), Rl = new WeakMap(), Vf = new WeakMap(), Hf = new WeakMap(), An = new WeakMap(), wt = new WeakMap(), Fo = new WeakMap(), $l = new WeakMap(), zf = new WeakMap(), Uf = new WeakMap(), t0 = new WeakMap(), Gs = new WeakMap(), Bo = new WeakMap(), Zf = new WeakMap(), $i = new WeakMap(), be = new WeakSet(), Tm = function({ anchorNode: e }) {
18702
18702
  return e.nodeType === Node.TEXT_NODE ? e.parentElement : e;
18703
18703
  }, t7 = function(e) {
18704
18704
  const { currentLayer: t } = this;
@@ -18721,8 +18721,8 @@ Hu = new WeakMap(), ii = new WeakMap(), mn = new WeakMap(), jn = new WeakMap(),
18721
18721
  if (t === p(this, Fo)) return;
18722
18722
  const r = O(this, be, Tm).call(this, e).closest(".textLayer");
18723
18723
  if (r) {
18724
- if ((s = p(this, qs)) == null || s.hide(), k(this, Fo, t), O(this, be, yr).call(this, { hasSelectedText: !0 }), (p(this, kn) === Ge.HIGHLIGHT || p(this, kn) === Ge.NONE) && (p(this, kn) === Ge.HIGHLIGHT && this.showAllEditors("highlight", !0, !0), k(this, Xa, this.isShiftKeyDown), !this.isShiftKeyDown)) {
18725
- const a = p(this, kn) === Ge.HIGHLIGHT ? O(this, be, t7).call(this, r) : null;
18724
+ if ((s = p(this, qs)) == null || s.hide(), k(this, Fo, t), O(this, be, yr).call(this, { hasSelectedText: !0 }), (p(this, An) === Ge.HIGHLIGHT || p(this, An) === Ge.NONE) && (p(this, An) === Ge.HIGHLIGHT && this.showAllEditors("highlight", !0, !0), k(this, Xa, this.isShiftKeyDown), !this.isShiftKeyDown)) {
18725
+ const a = p(this, An) === Ge.HIGHLIGHT ? O(this, be, t7).call(this, r) : null;
18726
18726
  a == null || a.toggleDrawing();
18727
18727
  const l = new AbortController(), u = this.combinedSignal(l), c = (d) => {
18728
18728
  (d.type !== "pointerup" || d.button === 0) && (l.abort(), a == null || a.toggleDrawing(!0), d.type === "pointerup" && O(this, be, Im).call(this, "main_toolbar"));
@@ -18731,7 +18731,7 @@ Hu = new WeakMap(), ii = new WeakMap(), mn = new WeakMap(), jn = new WeakMap(),
18731
18731
  }
18732
18732
  } else p(this, Fo) && ((o = p(this, qs)) == null || o.hide(), k(this, Fo, null), O(this, be, yr).call(this, { hasSelectedText: !1 }));
18733
18733
  }, Im = function(e = "") {
18734
- p(this, kn) === Ge.HIGHLIGHT ? this.highlightSelection(e) : p(this, $f) && O(this, be, tT).call(this);
18734
+ p(this, An) === Ge.HIGHLIGHT ? this.highlightSelection(e) : p(this, $f) && O(this, be, tT).call(this);
18735
18735
  }, rT = function() {
18736
18736
  document.addEventListener("selectionchange", O(this, be, nT).bind(this), { signal: this._signal });
18737
18737
  }, iT = function() {
@@ -18762,7 +18762,7 @@ Hu = new WeakMap(), ii = new WeakMap(), mn = new WeakMap(), jn = new WeakMap(),
18762
18762
  const e = this._signal;
18763
18763
  document.addEventListener("dragover", this.dragOver.bind(this), { signal: e }), document.addEventListener("drop", this.drop.bind(this), { signal: e });
18764
18764
  }, yr = function(e) {
18765
- Object.entries(e).some(([t, r]) => p(this, Uf)[t] !== r) && (this._eventBus.dispatch("annotationeditorstateschanged", { source: this, details: Object.assign(p(this, Uf), e) }), p(this, kn) === Ge.HIGHLIGHT && e.hasSelectedEditor === !1 && O(this, be, Oo).call(this, [[nt.HIGHLIGHT_FREE, !0]]));
18765
+ Object.entries(e).some(([t, r]) => p(this, Uf)[t] !== r) && (this._eventBus.dispatch("annotationeditorstateschanged", { source: this, details: Object.assign(p(this, Uf), e) }), p(this, An) === Ge.HIGHLIGHT && e.hasSelectedEditor === !1 && O(this, be, Oo).call(this, [[nt.HIGHLIGHT_FREE, !0]]));
18766
18766
  }, Oo = function(e) {
18767
18767
  this._eventBus.dispatch("annotationeditorparamschanged", { source: this, details: e });
18768
18768
  }, lT = async function() {
@@ -18797,11 +18797,11 @@ Hu = new WeakMap(), ii = new WeakMap(), mn = new WeakMap(), jn = new WeakMap(),
18797
18797
  O(this, be, yr).call(this, { hasSelectedEditor: this.hasSelection });
18798
18798
  }, Re(xu, "TRANSLATE_SMALL", 1), Re(xu, "TRANSLATE_BIG", 10);
18799
18799
  let Z2 = xu;
18800
- var An, Ks, ps, Gu, Ys, si, Ku, Qs, jr, jo, Fl, Xs, n0, Ts, B1, Om;
18800
+ var En, Ks, ps, Gu, Ys, si, Ku, Qs, Vr, jo, Fl, Xs, n0, Ts, B1, Om;
18801
18801
  const vr = class vr {
18802
18802
  constructor(e) {
18803
18803
  I(this, Ts);
18804
- I(this, An, null);
18804
+ I(this, En, null);
18805
18805
  I(this, Ks, !1);
18806
18806
  I(this, ps, null);
18807
18807
  I(this, Gu, null);
@@ -18809,11 +18809,11 @@ const vr = class vr {
18809
18809
  I(this, si, null);
18810
18810
  I(this, Ku, !1);
18811
18811
  I(this, Qs, null);
18812
- I(this, jr, null);
18812
+ I(this, Vr, null);
18813
18813
  I(this, jo, null);
18814
18814
  I(this, Fl, null);
18815
18815
  I(this, Xs, !1);
18816
- k(this, jr, e), k(this, Xs, e._uiManager.useNewAltTextFlow), p(vr, n0) || k(vr, n0, Object.freeze({ added: "pdfjs-editor-new-alt-text-added-button", "added-label": "pdfjs-editor-new-alt-text-added-button-label", missing: "pdfjs-editor-new-alt-text-missing-button", "missing-label": "pdfjs-editor-new-alt-text-missing-button-label", review: "pdfjs-editor-new-alt-text-to-review-button", "review-label": "pdfjs-editor-new-alt-text-to-review-button-label" }));
18816
+ k(this, Vr, e), k(this, Xs, e._uiManager.useNewAltTextFlow), p(vr, n0) || k(vr, n0, Object.freeze({ added: "pdfjs-editor-new-alt-text-added-button", "added-label": "pdfjs-editor-new-alt-text-added-button-label", missing: "pdfjs-editor-new-alt-text-missing-button", "missing-label": "pdfjs-editor-new-alt-text-missing-button-label", review: "pdfjs-editor-new-alt-text-to-review-button", "review-label": "pdfjs-editor-new-alt-text-to-review-button-label" }));
18817
18817
  }
18818
18818
  static initialize(e) {
18819
18819
  vr._l10n ?? (vr._l10n = e);
@@ -18823,10 +18823,10 @@ const vr = class vr {
18823
18823
  e.className = "altText", e.tabIndex = "0";
18824
18824
  const t = k(this, Gu, document.createElement("span"));
18825
18825
  e.append(t), p(this, Xs) ? (e.classList.add("new"), e.setAttribute("data-l10n-id", p(vr, n0).missing), t.setAttribute("data-l10n-id", p(vr, n0)["missing-label"])) : (e.setAttribute("data-l10n-id", "pdfjs-editor-alt-text-button"), t.setAttribute("data-l10n-id", "pdfjs-editor-alt-text-button-label"));
18826
- const r = p(this, jr)._uiManager._signal;
18826
+ const r = p(this, Vr)._uiManager._signal;
18827
18827
  e.addEventListener("contextmenu", xs, { signal: r }), e.addEventListener("pointerdown", (s) => s.stopPropagation(), { signal: r });
18828
18828
  const i = (s) => {
18829
- s.preventDefault(), p(this, jr)._uiManager.editAltText(p(this, jr)), p(this, Xs) && p(this, jr)._reportTelemetry({ action: "pdfjs.image.alt_text.image_status_label_clicked", data: { label: p(this, Ts, B1) } });
18829
+ s.preventDefault(), p(this, Vr)._uiManager.editAltText(p(this, Vr)), p(this, Xs) && p(this, Vr)._reportTelemetry({ action: "pdfjs.image.alt_text.image_status_label_clicked", data: { label: p(this, Ts, B1) } });
18830
18830
  };
18831
18831
  return e.addEventListener("click", i, { capture: !0, signal: r }), e.addEventListener("keydown", (s) => {
18832
18832
  s.target === e && s.key === "Enter" && (k(this, Ku, !0), i(s));
@@ -18836,62 +18836,62 @@ const vr = class vr {
18836
18836
  p(this, ps) && (p(this, ps).focus({ focusVisible: p(this, Ku) }), k(this, Ku, !1));
18837
18837
  }
18838
18838
  isEmpty() {
18839
- return p(this, Xs) ? p(this, An) === null : !p(this, An) && !p(this, Ks);
18839
+ return p(this, Xs) ? p(this, En) === null : !p(this, En) && !p(this, Ks);
18840
18840
  }
18841
18841
  hasData() {
18842
- return p(this, Xs) ? p(this, An) !== null || !!p(this, jo) : this.isEmpty();
18842
+ return p(this, Xs) ? p(this, En) !== null || !!p(this, jo) : this.isEmpty();
18843
18843
  }
18844
18844
  get guessedText() {
18845
18845
  return p(this, jo);
18846
18846
  }
18847
18847
  async setGuessedText(e) {
18848
- p(this, An) === null && (k(this, jo, e), k(this, Fl, await vr._l10n.get("pdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer", { generatedAltText: e })), O(this, Ts, Om).call(this));
18848
+ p(this, En) === null && (k(this, jo, e), k(this, Fl, await vr._l10n.get("pdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer", { generatedAltText: e })), O(this, Ts, Om).call(this));
18849
18849
  }
18850
18850
  toggleAltTextBadge(e = !1) {
18851
18851
  var t;
18852
- if (p(this, Xs) && !p(this, An)) {
18852
+ if (p(this, Xs) && !p(this, En)) {
18853
18853
  if (!p(this, Qs)) {
18854
18854
  const r = k(this, Qs, document.createElement("div"));
18855
- r.className = "noAltTextBadge", p(this, jr).div.append(r);
18855
+ r.className = "noAltTextBadge", p(this, Vr).div.append(r);
18856
18856
  }
18857
18857
  p(this, Qs).classList.toggle("hidden", !e);
18858
18858
  } else
18859
18859
  (t = p(this, Qs)) == null || t.remove(), k(this, Qs, null);
18860
18860
  }
18861
18861
  serialize(e) {
18862
- let t = p(this, An);
18862
+ let t = p(this, En);
18863
18863
  return e || p(this, jo) !== t || (t = p(this, Fl)), { altText: t, decorative: p(this, Ks), guessedText: p(this, jo), textWithDisclaimer: p(this, Fl) };
18864
18864
  }
18865
18865
  get data() {
18866
- return { altText: p(this, An), decorative: p(this, Ks) };
18866
+ return { altText: p(this, En), decorative: p(this, Ks) };
18867
18867
  }
18868
18868
  set data({ altText: e, decorative: t, guessedText: r, textWithDisclaimer: i, cancel: s = !1 }) {
18869
- r && (k(this, jo, r), k(this, Fl, i)), (p(this, An) !== e || p(this, Ks) !== t) && (s || (k(this, An, e), k(this, Ks, t)), O(this, Ts, Om).call(this));
18869
+ r && (k(this, jo, r), k(this, Fl, i)), (p(this, En) !== e || p(this, Ks) !== t) && (s || (k(this, En, e), k(this, Ks, t)), O(this, Ts, Om).call(this));
18870
18870
  }
18871
18871
  toggle(e = !1) {
18872
18872
  p(this, ps) && (!e && p(this, si) && (clearTimeout(p(this, si)), k(this, si, null)), p(this, ps).disabled = !e);
18873
18873
  }
18874
18874
  shown() {
18875
- p(this, jr)._reportTelemetry({ action: "pdfjs.image.alt_text.image_status_label_displayed", data: { label: p(this, Ts, B1) } });
18875
+ p(this, Vr)._reportTelemetry({ action: "pdfjs.image.alt_text.image_status_label_displayed", data: { label: p(this, Ts, B1) } });
18876
18876
  }
18877
18877
  destroy() {
18878
18878
  var e, t;
18879
18879
  (e = p(this, ps)) == null || e.remove(), k(this, ps, null), k(this, Gu, null), k(this, Ys, null), (t = p(this, Qs)) == null || t.remove(), k(this, Qs, null);
18880
18880
  }
18881
18881
  };
18882
- An = new WeakMap(), Ks = new WeakMap(), ps = new WeakMap(), Gu = new WeakMap(), Ys = new WeakMap(), si = new WeakMap(), Ku = new WeakMap(), Qs = new WeakMap(), jr = new WeakMap(), jo = new WeakMap(), Fl = new WeakMap(), Xs = new WeakMap(), n0 = new WeakMap(), Ts = new WeakSet(), B1 = function() {
18883
- return (p(this, An) ? "added" : p(this, An) === null && this.guessedText && "review") || "missing";
18882
+ En = new WeakMap(), Ks = new WeakMap(), ps = new WeakMap(), Gu = new WeakMap(), Ys = new WeakMap(), si = new WeakMap(), Ku = new WeakMap(), Qs = new WeakMap(), Vr = new WeakMap(), jo = new WeakMap(), Fl = new WeakMap(), Xs = new WeakMap(), n0 = new WeakMap(), Ts = new WeakSet(), B1 = function() {
18883
+ return (p(this, En) ? "added" : p(this, En) === null && this.guessedText && "review") || "missing";
18884
18884
  }, Om = async function() {
18885
18885
  var i, s, o;
18886
18886
  const e = p(this, ps);
18887
18887
  if (!e) return;
18888
18888
  if (p(this, Xs)) {
18889
- if (e.classList.toggle("done", !!p(this, An)), e.setAttribute("data-l10n-id", p(vr, n0)[p(this, Ts, B1)]), (i = p(this, Gu)) == null || i.setAttribute("data-l10n-id", p(vr, n0)[`${p(this, Ts, B1)}-label`]), !p(this, An)) {
18889
+ if (e.classList.toggle("done", !!p(this, En)), e.setAttribute("data-l10n-id", p(vr, n0)[p(this, Ts, B1)]), (i = p(this, Gu)) == null || i.setAttribute("data-l10n-id", p(vr, n0)[`${p(this, Ts, B1)}-label`]), !p(this, En)) {
18890
18890
  (s = p(this, Ys)) == null || s.remove();
18891
18891
  return;
18892
18892
  }
18893
18893
  } else {
18894
- if (!p(this, An) && !p(this, Ks)) {
18894
+ if (!p(this, En) && !p(this, Ks)) {
18895
18895
  e.classList.remove("done"), (o = p(this, Ys)) == null || o.remove();
18896
18896
  return;
18897
18897
  }
@@ -18899,21 +18899,21 @@ An = new WeakMap(), Ks = new WeakMap(), ps = new WeakMap(), Gu = new WeakMap(),
18899
18899
  }
18900
18900
  let t = p(this, Ys);
18901
18901
  if (!t) {
18902
- k(this, Ys, t = document.createElement("span")), t.className = "tooltip", t.setAttribute("role", "tooltip"), t.id = `alt-text-tooltip-${p(this, jr).id}`;
18903
- const a = 100, l = p(this, jr)._uiManager._signal;
18902
+ k(this, Ys, t = document.createElement("span")), t.className = "tooltip", t.setAttribute("role", "tooltip"), t.id = `alt-text-tooltip-${p(this, Vr).id}`;
18903
+ const a = 100, l = p(this, Vr)._uiManager._signal;
18904
18904
  l.addEventListener("abort", () => {
18905
18905
  clearTimeout(p(this, si)), k(this, si, null);
18906
18906
  }, { once: !0 }), e.addEventListener("mouseenter", () => {
18907
18907
  k(this, si, setTimeout(() => {
18908
- k(this, si, null), p(this, Ys).classList.add("show"), p(this, jr)._reportTelemetry({ action: "alt_text_tooltip" });
18908
+ k(this, si, null), p(this, Ys).classList.add("show"), p(this, Vr)._reportTelemetry({ action: "alt_text_tooltip" });
18909
18909
  }, a));
18910
18910
  }, { signal: l }), e.addEventListener("mouseleave", () => {
18911
18911
  var u;
18912
18912
  p(this, si) && (clearTimeout(p(this, si)), k(this, si, null)), (u = p(this, Ys)) == null || u.classList.remove("show");
18913
18913
  }, { signal: l });
18914
18914
  }
18915
- p(this, Ks) ? t.setAttribute("data-l10n-id", "pdfjs-editor-alt-text-decorative-tooltip") : (t.removeAttribute("data-l10n-id"), t.textContent = p(this, An)), t.parentNode || e.append(t);
18916
- const r = p(this, jr).getImageForAltText();
18915
+ p(this, Ks) ? t.setAttribute("data-l10n-id", "pdfjs-editor-alt-text-decorative-tooltip") : (t.removeAttribute("data-l10n-id"), t.textContent = p(this, En)), t.parentNode || e.append(t);
18916
+ const r = p(this, Vr).getImageForAltText();
18917
18917
  r == null || r.setAttribute("aria-describedby", t.id);
18918
18918
  }, I(vr, n0, null), Re(vr, "_l10n", null);
18919
18919
  let M3 = vr;
@@ -19274,7 +19274,7 @@ const Ye = class Ye {
19274
19274
  return this.translate(r, i), S3(this, this.div, ["pointerdown"]), this.isResizable && this._uiManager._supportsPinchToZoom && (p(this, Wl) || k(this, Wl, new k3({ container: this.div, isPinchingDisabled: () => !this.isSelected, onPinchStart: O(this, $e, mT).bind(this), onPinching: O(this, $e, gT).bind(this), onPinchEnd: O(this, $e, yT).bind(this), signal: this._uiManager._signal }))), (s = this._uiManager._editorUndoBar) == null || s.hide(), this.div;
19275
19275
  }
19276
19276
  pointerdown(e) {
19277
- const { isMac: t } = Tr.platform;
19277
+ const { isMac: t } = Ir.platform;
19278
19278
  e.button !== 0 || e.ctrlKey && t ? e.preventDefault() : (k(this, Ul, !0), this._isDraggable ? O(this, $e, vT).call(this, e) : O(this, $e, f7).call(this, e));
19279
19279
  }
19280
19280
  get isSelected() {
@@ -19547,7 +19547,7 @@ Vl = new WeakMap(), ms = new WeakMap(), Pt = new WeakMap(), Qu = new WeakMap(),
19547
19547
  }, pT = function(e, t) {
19548
19548
  var c;
19549
19549
  t.preventDefault();
19550
- const { isMac: r } = Tr.platform;
19550
+ const { isMac: r } = Ir.platform;
19551
19551
  if (t.button !== 0 || t.ctrlKey && r) return;
19552
19552
  (c = p(this, Pt)) == null || c.toggle(!1);
19553
19553
  const i = this._isDraggable;
@@ -19635,7 +19635,7 @@ Vl = new WeakMap(), ms = new WeakMap(), Pt = new WeakMap(), Qu = new WeakMap(),
19635
19635
  var e;
19636
19636
  (e = p(this, Pt)) == null || e.toggle(!0), this.parent.togglePointerEvents(!0), O(this, $e, Dm).call(this);
19637
19637
  }, f7 = function(e) {
19638
- const { isMac: t } = Tr.platform;
19638
+ const { isMac: t } = Ir.platform;
19639
19639
  e.ctrlKey && !t || e.shiftKey || e.metaKey && t ? this.parent.toggleSelected(this) : this.parent.setSelected(this);
19640
19640
  }, vT = function(e) {
19641
19641
  const { isSelected: t } = this;
@@ -19723,48 +19723,48 @@ class ST {
19723
19723
  }
19724
19724
  }
19725
19725
  const m7 = Object.freeze({ map: null, hash: "", transfer: void 0 });
19726
- var ql, Gl, En, Lg, MT;
19726
+ var ql, Gl, Tn, Lg, MT;
19727
19727
  class qy {
19728
19728
  constructor() {
19729
19729
  I(this, Lg);
19730
19730
  I(this, ql, !1);
19731
19731
  I(this, Gl, null);
19732
- I(this, En, /* @__PURE__ */ new Map());
19732
+ I(this, Tn, /* @__PURE__ */ new Map());
19733
19733
  this.onSetModified = null, this.onResetModified = null, this.onAnnotationEditor = null;
19734
19734
  }
19735
19735
  getValue(e, t) {
19736
- const r = p(this, En).get(e);
19736
+ const r = p(this, Tn).get(e);
19737
19737
  return r === void 0 ? t : Object.assign(t, r);
19738
19738
  }
19739
19739
  getRawValue(e) {
19740
- return p(this, En).get(e);
19740
+ return p(this, Tn).get(e);
19741
19741
  }
19742
19742
  remove(e) {
19743
- if (p(this, En).delete(e), p(this, En).size === 0 && this.resetModified(), typeof this.onAnnotationEditor == "function") {
19744
- for (const t of p(this, En).values()) if (t instanceof Ut) return;
19743
+ if (p(this, Tn).delete(e), p(this, Tn).size === 0 && this.resetModified(), typeof this.onAnnotationEditor == "function") {
19744
+ for (const t of p(this, Tn).values()) if (t instanceof Ut) return;
19745
19745
  this.onAnnotationEditor(null);
19746
19746
  }
19747
19747
  }
19748
19748
  setValue(e, t) {
19749
- const r = p(this, En).get(e);
19749
+ const r = p(this, Tn).get(e);
19750
19750
  let i = !1;
19751
19751
  if (r !== void 0)
19752
19752
  for (const [s, o] of Object.entries(t)) r[s] !== o && (i = !0, r[s] = o);
19753
19753
  else
19754
- i = !0, p(this, En).set(e, t);
19754
+ i = !0, p(this, Tn).set(e, t);
19755
19755
  i && O(this, Lg, MT).call(this), t instanceof Ut && typeof this.onAnnotationEditor == "function" && this.onAnnotationEditor(t.constructor._type);
19756
19756
  }
19757
19757
  has(e) {
19758
- return p(this, En).has(e);
19758
+ return p(this, Tn).has(e);
19759
19759
  }
19760
19760
  getAll() {
19761
- return p(this, En).size > 0 ? Hy(p(this, En)) : null;
19761
+ return p(this, Tn).size > 0 ? Hy(p(this, Tn)) : null;
19762
19762
  }
19763
19763
  setAll(e) {
19764
19764
  for (const [t, r] of Object.entries(e)) this.setValue(t, r);
19765
19765
  }
19766
19766
  get size() {
19767
- return p(this, En).size;
19767
+ return p(this, Tn).size;
19768
19768
  }
19769
19769
  resetModified() {
19770
19770
  p(this, ql) && (k(this, ql, !1), typeof this.onResetModified == "function" && this.onResetModified());
@@ -19773,10 +19773,10 @@ class qy {
19773
19773
  return new kT(this);
19774
19774
  }
19775
19775
  get serializable() {
19776
- if (p(this, En).size === 0) return m7;
19776
+ if (p(this, Tn).size === 0) return m7;
19777
19777
  const e = /* @__PURE__ */ new Map(), t = new ST(), r = [], i = /* @__PURE__ */ Object.create(null);
19778
19778
  let s = !1;
19779
- for (const [o, a] of p(this, En)) {
19779
+ for (const [o, a] of p(this, Tn)) {
19780
19780
  const l = a instanceof Ut ? a.serialize(!1, i) : a;
19781
19781
  l && (e.set(o, l), t.update(`${o}:${JSON.stringify(l)}`), s || (s = !!l.bitmap));
19782
19782
  }
@@ -19786,7 +19786,7 @@ class qy {
19786
19786
  get editorStats() {
19787
19787
  let e = null;
19788
19788
  const t = /* @__PURE__ */ new Map();
19789
- for (const r of p(this, En).values()) {
19789
+ for (const r of p(this, Tn).values()) {
19790
19790
  if (!(r instanceof Ut)) continue;
19791
19791
  const i = r.telemetryFinalData;
19792
19792
  if (!i) continue;
@@ -19810,11 +19810,11 @@ class qy {
19810
19810
  get modifiedIds() {
19811
19811
  if (p(this, Gl)) return p(this, Gl);
19812
19812
  const e = [];
19813
- for (const t of p(this, En).values()) t instanceof Ut && t.annotationElementId && t.serialize() && e.push(t.annotationElementId);
19813
+ for (const t of p(this, Tn).values()) t instanceof Ut && t.annotationElementId && t.serialize() && e.push(t.annotationElementId);
19814
19814
  return k(this, Gl, { ids: new Set(e), hash: e.join(",") });
19815
19815
  }
19816
19816
  }
19817
- ql = new WeakMap(), Gl = new WeakMap(), En = new WeakMap(), Lg = new WeakSet(), MT = function() {
19817
+ ql = new WeakMap(), Gl = new WeakMap(), Tn = new WeakMap(), Lg = new WeakSet(), MT = function() {
19818
19818
  p(this, ql) || (k(this, ql, !0), typeof this.onSetModified == "function" && this.onSetModified());
19819
19819
  };
19820
19820
  var rh;
@@ -20002,7 +20002,7 @@ class MZ {
20002
20002
  const Ew = 1, Tw = 2, Iw = 1, b4 = 2, Ow = 3, xw = 4, Dw = 5, Nw = 6, Kp = 7, w4 = 8;
20003
20003
  function Pw() {
20004
20004
  }
20005
- function Fr(n) {
20005
+ function Br(n) {
20006
20006
  if (n instanceof F0 || n instanceof q6 || n instanceof zd || n instanceof Sw || n instanceof C3 || n instanceof g4) return n;
20007
20007
  switch (n instanceof Error || typeof n == "object" && n !== null || Ot('wrapReason: Expected "reason" to be a (possibly cloned) Error.'), n.name) {
20008
20008
  case "AbortException":
@@ -20056,7 +20056,7 @@ class V1 {
20056
20056
  }, cancel: (u) => {
20057
20057
  an(u instanceof Error, "cancel must have a valid reason");
20058
20058
  const c = Promise.withResolvers();
20059
- return this.streamControllers[s].cancelCall = c, this.streamControllers[s].isClosed = !0, l.postMessage({ sourceName: o, targetName: a, stream: Iw, streamId: s, reason: Fr(u) }), c.promise;
20059
+ return this.streamControllers[s].cancelCall = c, this.streamControllers[s].isClosed = !0, l.postMessage({ sourceName: o, targetName: a, stream: Iw, streamId: s, reason: Br(u) }), c.promise;
20060
20060
  } }, r);
20061
20061
  }
20062
20062
  destroy() {
@@ -20076,7 +20076,7 @@ tc = new WeakMap(), Ji = new WeakSet(), AT = function({ data: e }) {
20076
20076
  if (delete this.callbackCapabilities[r], e.callback === Ew) i.resolve(e.data);
20077
20077
  else {
20078
20078
  if (e.callback !== Tw) throw new Error("Unexpected callback case");
20079
- i.reject(Fr(e.reason));
20079
+ i.reject(Br(e.reason));
20080
20080
  }
20081
20081
  return;
20082
20082
  }
@@ -20087,7 +20087,7 @@ tc = new WeakMap(), Ji = new WeakSet(), AT = function({ data: e }) {
20087
20087
  Promise.try(t, e.data).then(function(o) {
20088
20088
  s.postMessage({ sourceName: r, targetName: i, callback: Ew, callbackId: e.callbackId, data: o });
20089
20089
  }, function(o) {
20090
- s.postMessage({ sourceName: r, targetName: i, callback: Tw, callbackId: e.callbackId, reason: Fr(o) });
20090
+ s.postMessage({ sourceName: r, targetName: i, callback: Tw, callbackId: e.callbackId, reason: Br(o) });
20091
20091
  });
20092
20092
  } else e.streamId ? O(this, Ji, ET).call(this, e) : t(e.data);
20093
20093
  }, ET = function(e) {
@@ -20098,21 +20098,21 @@ tc = new WeakMap(), Ji = new WeakSet(), AT = function({ data: e }) {
20098
20098
  }, close() {
20099
20099
  this.isCancelled || (this.isCancelled = !0, s.postMessage({ sourceName: r, targetName: i, stream: Ow, streamId: t }), delete o.streamSinks[t]);
20100
20100
  }, error(u) {
20101
- an(u instanceof Error, "error must have a valid reason"), this.isCancelled || (this.isCancelled = !0, s.postMessage({ sourceName: r, targetName: i, stream: Dw, streamId: t, reason: Fr(u) }));
20101
+ an(u instanceof Error, "error must have a valid reason"), this.isCancelled || (this.isCancelled = !0, s.postMessage({ sourceName: r, targetName: i, stream: Dw, streamId: t, reason: Br(u) }));
20102
20102
  }, sinkCapability: Promise.withResolvers(), onPull: null, onCancel: null, isCancelled: !1, desiredSize: e.desiredSize, ready: null };
20103
20103
  l.sinkCapability.resolve(), l.ready = l.sinkCapability.promise, this.streamSinks[t] = l, Promise.try(a, e.data, l).then(function() {
20104
20104
  s.postMessage({ sourceName: r, targetName: i, stream: w4, streamId: t, success: !0 });
20105
20105
  }, function(u) {
20106
- s.postMessage({ sourceName: r, targetName: i, stream: w4, streamId: t, reason: Fr(u) });
20106
+ s.postMessage({ sourceName: r, targetName: i, stream: w4, streamId: t, reason: Br(u) });
20107
20107
  });
20108
20108
  }, TT = function(e) {
20109
20109
  const t = e.streamId, r = this.sourceName, i = e.sourceName, s = this.comObj, o = this.streamControllers[t], a = this.streamSinks[t];
20110
20110
  switch (e.stream) {
20111
20111
  case w4:
20112
- e.success ? o.startCall.resolve() : o.startCall.reject(Fr(e.reason));
20112
+ e.success ? o.startCall.resolve() : o.startCall.reject(Br(e.reason));
20113
20113
  break;
20114
20114
  case Kp:
20115
- e.success ? o.pullCall.resolve() : o.pullCall.reject(Fr(e.reason));
20115
+ e.success ? o.pullCall.resolve() : o.pullCall.reject(Br(e.reason));
20116
20116
  break;
20117
20117
  case Nw:
20118
20118
  if (!a) {
@@ -20122,7 +20122,7 @@ tc = new WeakMap(), Ji = new WeakSet(), AT = function({ data: e }) {
20122
20122
  a.desiredSize <= 0 && e.desiredSize > 0 && a.sinkCapability.resolve(), a.desiredSize = e.desiredSize, Promise.try(a.onPull || Pw).then(function() {
20123
20123
  s.postMessage({ sourceName: r, targetName: i, stream: Kp, streamId: t, success: !0 });
20124
20124
  }, function(u) {
20125
- s.postMessage({ sourceName: r, targetName: i, stream: Kp, streamId: t, reason: Fr(u) });
20125
+ s.postMessage({ sourceName: r, targetName: i, stream: Kp, streamId: t, reason: Br(u) });
20126
20126
  });
20127
20127
  break;
20128
20128
  case xw:
@@ -20134,18 +20134,18 @@ tc = new WeakMap(), Ji = new WeakSet(), AT = function({ data: e }) {
20134
20134
  o.isClosed = !0, o.controller.close(), O(this, Ji, Nm).call(this, o, t);
20135
20135
  break;
20136
20136
  case Dw:
20137
- an(o, "error should have stream controller"), o.controller.error(Fr(e.reason)), O(this, Ji, Nm).call(this, o, t);
20137
+ an(o, "error should have stream controller"), o.controller.error(Br(e.reason)), O(this, Ji, Nm).call(this, o, t);
20138
20138
  break;
20139
20139
  case b4:
20140
- e.success ? o.cancelCall.resolve() : o.cancelCall.reject(Fr(e.reason)), O(this, Ji, Nm).call(this, o, t);
20140
+ e.success ? o.cancelCall.resolve() : o.cancelCall.reject(Br(e.reason)), O(this, Ji, Nm).call(this, o, t);
20141
20141
  break;
20142
20142
  case Iw:
20143
20143
  if (!a) break;
20144
- const l = Fr(e.reason);
20144
+ const l = Br(e.reason);
20145
20145
  Promise.try(a.onCancel || Pw, l).then(function() {
20146
20146
  s.postMessage({ sourceName: r, targetName: i, stream: b4, streamId: t, success: !0 });
20147
20147
  }, function(u) {
20148
- s.postMessage({ sourceName: r, targetName: i, stream: b4, streamId: t, reason: Fr(u) });
20148
+ s.postMessage({ sourceName: r, targetName: i, stream: b4, streamId: t, reason: Br(u) });
20149
20149
  }), a.sinkCapability.reject(l), a.isCancelled = !0, delete this.streamSinks[t];
20150
20150
  break;
20151
20151
  default:
@@ -20428,7 +20428,7 @@ const IZ = 1, OZ = 2, _g = class _g {
20428
20428
  Re(_g, "MAX_PATTERN_SIZE", 3e3);
20429
20429
  let y7 = _g;
20430
20430
  function xZ({ src: n, srcPos: e = 0, dest: t, width: r, height: i, nonBlackColor: s = 4294967295, inverseDecode: o = !1 }) {
20431
- const a = Tr.isLittleEndian ? 4278190080 : 255, [l, u] = o ? [s, a] : [a, s], c = r >> 3, d = 7 & r, f = n.length;
20431
+ const a = Ir.isLittleEndian ? 4278190080 : 255, [l, u] = o ? [s, a] : [a, s], c = r >> 3, d = 7 & r, f = n.length;
20432
20432
  t = new Uint32Array(t.buffer);
20433
20433
  let h = 0;
20434
20434
  for (let m = 0; m < i; m++) {
@@ -20442,7 +20442,7 @@ function xZ({ src: n, srcPos: e = 0, dest: t, width: r, height: i, nonBlackColor
20442
20442
  }
20443
20443
  return { srcPos: e, destPos: h };
20444
20444
  }
20445
- const Zr = 16;
20445
+ const Wr = 16;
20446
20446
  class DZ {
20447
20447
  constructor(e) {
20448
20448
  this.canvasFactory = e, this.cache = /* @__PURE__ */ Object.create(null);
@@ -20526,14 +20526,14 @@ function $w(n, e) {
20526
20526
  n.putImageData(e, 0, 0);
20527
20527
  return;
20528
20528
  }
20529
- const t = e.height, r = e.width, i = t % Zr, s = (t - i) / Zr, o = i === 0 ? s : s + 1, a = n.createImageData(r, Zr);
20529
+ const t = e.height, r = e.width, i = t % Wr, s = (t - i) / Wr, o = i === 0 ? s : s + 1, a = n.createImageData(r, Wr);
20530
20530
  let l, u = 0;
20531
20531
  const c = e.data, d = a.data;
20532
20532
  let f, h, m, y;
20533
20533
  if (e.kind === Mm.GRAYSCALE_1BPP) {
20534
- const g = c.byteLength, v = new Uint32Array(d.buffer, 0, d.byteLength >> 2), b = v.length, S = r + 7 >> 3, C = 4294967295, T = Tr.isLittleEndian ? 4278190080 : 255;
20534
+ const g = c.byteLength, v = new Uint32Array(d.buffer, 0, d.byteLength >> 2), b = v.length, S = r + 7 >> 3, C = 4294967295, T = Ir.isLittleEndian ? 4278190080 : 255;
20535
20535
  for (f = 0; f < o; f++) {
20536
- for (m = f < s ? Zr : i, l = 0, h = 0; h < m; h++) {
20536
+ for (m = f < s ? Wr : i, l = 0, h = 0; h < m; h++) {
20537
20537
  const M = g - u;
20538
20538
  let E = 0;
20539
20539
  const N = M > S ? r : 8 * M - 7, x = -8 & N;
@@ -20544,18 +20544,18 @@ function $w(n, e) {
20544
20544
  F === 0 && (R = c[u++], F = 128), v[l++] = R & F ? C : T, F >>= 1;
20545
20545
  }
20546
20546
  for (; l < b; ) v[l++] = 0;
20547
- n.putImageData(a, 0, f * Zr);
20547
+ n.putImageData(a, 0, f * Wr);
20548
20548
  }
20549
20549
  } else if (e.kind === Mm.RGBA_32BPP) {
20550
- for (h = 0, y = r * Zr * 4, f = 0; f < s; f++)
20551
- d.set(c.subarray(u, u + y)), u += y, n.putImageData(a, 0, h), h += Zr;
20550
+ for (h = 0, y = r * Wr * 4, f = 0; f < s; f++)
20551
+ d.set(c.subarray(u, u + y)), u += y, n.putImageData(a, 0, h), h += Wr;
20552
20552
  f < o && (y = r * i * 4, d.set(c.subarray(u, u + y)), n.putImageData(a, 0, h));
20553
20553
  } else {
20554
20554
  if (e.kind !== Mm.RGB_24BPP) throw new Error(`bad image kind: ${e.kind}`);
20555
- for (m = Zr, y = r * m, f = 0; f < o; f++) {
20555
+ for (m = Wr, y = r * m, f = 0; f < o; f++) {
20556
20556
  for (f >= s && (m = i, y = r * m), l = 0, h = y; h--; )
20557
20557
  d[l++] = c[u++], d[l++] = c[u++], d[l++] = c[u++], d[l++] = 255;
20558
- n.putImageData(a, 0, f * Zr);
20558
+ n.putImageData(a, 0, f * Wr);
20559
20559
  }
20560
20560
  }
20561
20561
  }
@@ -20564,12 +20564,12 @@ function Fw(n, e) {
20564
20564
  n.drawImage(e.bitmap, 0, 0);
20565
20565
  return;
20566
20566
  }
20567
- const t = e.height, r = e.width, i = t % Zr, s = (t - i) / Zr, o = i === 0 ? s : s + 1, a = n.createImageData(r, Zr);
20567
+ const t = e.height, r = e.width, i = t % Wr, s = (t - i) / Wr, o = i === 0 ? s : s + 1, a = n.createImageData(r, Wr);
20568
20568
  let l = 0;
20569
20569
  const u = e.data, c = a.data;
20570
20570
  for (let d = 0; d < o; d++) {
20571
- const f = d < s ? Zr : i;
20572
- ({ srcPos: l } = xZ({ src: u, srcPos: l, dest: c, width: r, height: f, nonBlackColor: 0 })), n.putImageData(a, 0, d * Zr);
20571
+ const f = d < s ? Wr : i;
20572
+ ({ srcPos: l } = xZ({ src: u, srcPos: l, dest: c, width: r, height: f, nonBlackColor: 0 })), n.putImageData(a, 0, d * Wr);
20573
20573
  }
20574
20574
  }
20575
20575
  function I1(n, e) {
@@ -22250,13 +22250,13 @@ class YZ {
22250
22250
  }), this._storedError && this._readableStream.destroy(this._storedError);
22251
22251
  }
22252
22252
  }
22253
- const $r = 30;
22254
- var VM, a0, Vr, fh, hh, Yl, Uo, ph, mh, Ql, sc, oc, l0, ac, gh, lc, Xl, yh, vh, Jl, e2, bh, u0, uc, Ma, BT, jT, S7, ki, Pm, M7, VT, HT;
22253
+ const Fr = 30;
22254
+ var VM, a0, Hr, fh, hh, Yl, Uo, ph, mh, Ql, sc, oc, l0, ac, gh, lc, Xl, yh, vh, Jl, e2, bh, u0, uc, Ma, BT, jT, S7, ki, Pm, M7, VT, HT;
22255
22255
  const pn = class pn {
22256
22256
  constructor({ textContentSource: e, container: t, viewport: r }) {
22257
22257
  I(this, Ma);
22258
22258
  I(this, a0, Promise.withResolvers());
22259
- I(this, Vr, null);
22259
+ I(this, Hr, null);
22260
22260
  I(this, fh, !1);
22261
22261
  I(this, hh, !!((VM = globalThis.FontInspector) != null && VM.enabled));
22262
22262
  I(this, Yl, null);
@@ -22281,7 +22281,7 @@ const pn = class pn {
22281
22281
  u.enqueue(e), u.close();
22282
22282
  } }));
22283
22283
  }
22284
- k(this, Vr, k(this, sc, t)), k(this, l0, r.scale * (globalThis.devicePixelRatio || 1)), k(this, oc, r.rotation), k(this, Uo, { div: null, properties: null, ctx: null });
22284
+ k(this, Hr, k(this, sc, t)), k(this, l0, r.scale * (globalThis.devicePixelRatio || 1)), k(this, oc, r.rotation), k(this, Uo, { div: null, properties: null, ctx: null });
22285
22285
  const { pageWidth: i, pageHeight: s, pageX: o, pageY: a } = r.rawDims;
22286
22286
  k(this, vh, [1, 0, 0, -1, -o, a + s]), k(this, mh, i), k(this, ph, s), O(l = pn, ki, VT).call(l), U2(t, r), p(this, a0).promise.finally(() => {
22287
22287
  p(pn, uc).delete(this), k(this, Uo, null), k(this, ac, null);
@@ -22289,7 +22289,7 @@ const pn = class pn {
22289
22289
  });
22290
22290
  }
22291
22291
  static get fontFamilyMap() {
22292
- const { isWindows: e, isFirefox: t } = Tr.platform;
22292
+ const { isWindows: e, isFirefox: t } = Ir.platform;
22293
22293
  return et(this, "fontFamilyMap", /* @__PURE__ */ new Map([["sans-serif", (e && t ? "Calibri, " : "") + "sans-serif"], ["monospace", (e && t ? "Lucida Console, " : "") + "monospace"]]));
22294
22294
  }
22295
22295
  render() {
@@ -22330,7 +22330,7 @@ const pn = class pn {
22330
22330
  }
22331
22331
  }
22332
22332
  };
22333
- a0 = new WeakMap(), Vr = new WeakMap(), fh = new WeakMap(), hh = new WeakMap(), Yl = new WeakMap(), Uo = new WeakMap(), ph = new WeakMap(), mh = new WeakMap(), Ql = new WeakMap(), sc = new WeakMap(), oc = new WeakMap(), l0 = new WeakMap(), ac = new WeakMap(), gh = new WeakMap(), lc = new WeakMap(), Xl = new WeakMap(), yh = new WeakMap(), vh = new WeakMap(), Jl = new WeakMap(), e2 = new WeakMap(), bh = new WeakMap(), u0 = new WeakMap(), uc = new WeakMap(), Ma = new WeakSet(), BT = function(e) {
22333
+ a0 = new WeakMap(), Hr = new WeakMap(), fh = new WeakMap(), hh = new WeakMap(), Yl = new WeakMap(), Uo = new WeakMap(), ph = new WeakMap(), mh = new WeakMap(), Ql = new WeakMap(), sc = new WeakMap(), oc = new WeakMap(), l0 = new WeakMap(), ac = new WeakMap(), gh = new WeakMap(), lc = new WeakMap(), Xl = new WeakMap(), yh = new WeakMap(), vh = new WeakMap(), Jl = new WeakMap(), e2 = new WeakMap(), bh = new WeakMap(), u0 = new WeakMap(), uc = new WeakMap(), Ma = new WeakSet(), BT = function(e) {
22334
22334
  var i, s;
22335
22335
  if (p(this, fh)) return;
22336
22336
  (s = p(this, Uo)).ctx ?? (s.ctx = O(i = pn, ki, Pm).call(i, p(this, Yl)));
@@ -22343,9 +22343,9 @@ a0 = new WeakMap(), Vr = new WeakMap(), fh = new WeakMap(), hh = new WeakMap(),
22343
22343
  if (o.str !== void 0)
22344
22344
  r.push(o.str), O(this, Ma, jT).call(this, o);
22345
22345
  else if (o.type === "beginMarkedContentProps" || o.type === "beginMarkedContent") {
22346
- const a = p(this, Vr);
22347
- k(this, Vr, document.createElement("span")), p(this, Vr).classList.add("markedContent"), o.id !== null && p(this, Vr).setAttribute("id", `${o.id}`), a.append(p(this, Vr));
22348
- } else o.type === "endMarkedContent" && k(this, Vr, p(this, Vr).parentNode);
22346
+ const a = p(this, Hr);
22347
+ k(this, Hr, document.createElement("span")), p(this, Hr).classList.add("markedContent"), o.id !== null && p(this, Hr).setAttribute("id", `${o.id}`), a.append(p(this, Hr));
22348
+ } else o.type === "endMarkedContent" && k(this, Hr, p(this, Hr).parentNode);
22349
22349
  }
22350
22350
  }, jT = function(e) {
22351
22351
  var y;
@@ -22361,16 +22361,16 @@ a0 = new WeakMap(), Vr = new WeakMap(), fh = new WeakMap(), hh = new WeakMap(),
22361
22361
  let c, d;
22362
22362
  s === 0 ? (c = i[4], d = i[5] - u) : (c = i[4] + u * Math.sin(s), d = i[5] - u * Math.cos(s));
22363
22363
  const f = "calc(var(--scale-factor)*", h = t.style;
22364
- p(this, Vr) === p(this, sc) ? (h.left = `${(100 * c / p(this, mh)).toFixed(2)}%`, h.top = `${(100 * d / p(this, ph)).toFixed(2)}%`) : (h.left = `${f}${c.toFixed(2)}px)`, h.top = `${f}${d.toFixed(2)}px)`), h.fontSize = `${f}${(p(pn, u0) * l).toFixed(2)}px)`, h.fontFamily = a, r.fontSize = l, t.setAttribute("role", "presentation"), t.textContent = e.str, t.dir = e.dir, p(this, hh) && (t.dataset.fontName = o.fontSubstitutionLoadedName || e.fontName), s !== 0 && (r.angle = s * (180 / Math.PI));
22364
+ p(this, Hr) === p(this, sc) ? (h.left = `${(100 * c / p(this, mh)).toFixed(2)}%`, h.top = `${(100 * d / p(this, ph)).toFixed(2)}%`) : (h.left = `${f}${c.toFixed(2)}px)`, h.top = `${f}${d.toFixed(2)}px)`), h.fontSize = `${f}${(p(pn, u0) * l).toFixed(2)}px)`, h.fontFamily = a, r.fontSize = l, t.setAttribute("role", "presentation"), t.textContent = e.str, t.dir = e.dir, p(this, hh) && (t.dataset.fontName = o.fontSubstitutionLoadedName || e.fontName), s !== 0 && (r.angle = s * (180 / Math.PI));
22365
22365
  let m = !1;
22366
22366
  if (e.str.length > 1) m = !0;
22367
22367
  else if (e.str !== " " && e.transform[0] !== e.transform[3]) {
22368
22368
  const g = Math.abs(e.transform[0]), v = Math.abs(e.transform[3]);
22369
22369
  g !== v && Math.max(g, v) / Math.min(g, v) > 1.5 && (m = !0);
22370
22370
  }
22371
- if (m && (r.canvasWidth = o.vertical ? e.height : e.width), p(this, yh).set(t, r), p(this, Uo).div = t, p(this, Uo).properties = r, O(this, Ma, S7).call(this, p(this, Uo)), r.hasText && p(this, Vr).append(t), r.hasEOL) {
22371
+ if (m && (r.canvasWidth = o.vertical ? e.height : e.width), p(this, yh).set(t, r), p(this, Uo).div = t, p(this, Uo).properties = r, O(this, Ma, S7).call(this, p(this, Uo)), r.hasText && p(this, Hr).append(t), r.hasEOL) {
22372
22372
  const g = document.createElement("br");
22373
- g.setAttribute("role", "presentation"), p(this, Vr).append(g);
22373
+ g.setAttribute("role", "presentation"), p(this, Hr).append(g);
22374
22374
  }
22375
22375
  }, S7 = function(e) {
22376
22376
  var a;
@@ -22401,23 +22401,23 @@ a0 = new WeakMap(), Vr = new WeakMap(), fh = new WeakMap(), hh = new WeakMap(),
22401
22401
  const r = p(this, Jl).get(e);
22402
22402
  if (r) return r;
22403
22403
  const i = O(this, ki, Pm).call(this, t);
22404
- i.canvas.width = i.canvas.height = $r, O(this, ki, M7).call(this, i, $r, e);
22404
+ i.canvas.width = i.canvas.height = Fr, O(this, ki, M7).call(this, i, Fr, e);
22405
22405
  const s = i.measureText("");
22406
22406
  let o = s.fontBoundingBoxAscent, a = Math.abs(s.fontBoundingBoxDescent);
22407
22407
  if (o) {
22408
22408
  const c = o / (o + a);
22409
22409
  return p(this, Jl).set(e, c), i.canvas.width = i.canvas.height = 0, c;
22410
22410
  }
22411
- i.strokeStyle = "red", i.clearRect(0, 0, $r, $r), i.strokeText("g", 0, 0);
22412
- let l = i.getImageData(0, 0, $r, $r).data;
22411
+ i.strokeStyle = "red", i.clearRect(0, 0, Fr, Fr), i.strokeText("g", 0, 0);
22412
+ let l = i.getImageData(0, 0, Fr, Fr).data;
22413
22413
  a = 0;
22414
22414
  for (let c = l.length - 1 - 3; c >= 0; c -= 4) if (l[c] > 0) {
22415
- a = Math.ceil(c / 4 / $r);
22415
+ a = Math.ceil(c / 4 / Fr);
22416
22416
  break;
22417
22417
  }
22418
- i.clearRect(0, 0, $r, $r), i.strokeText("A", 0, $r), l = i.getImageData(0, 0, $r, $r).data, o = 0;
22418
+ i.clearRect(0, 0, Fr, Fr), i.strokeText("A", 0, Fr), l = i.getImageData(0, 0, Fr, Fr).data, o = 0;
22419
22419
  for (let c = 0, d = l.length; c < d; c += 4) if (l[c] > 0) {
22420
- o = $r - Math.floor(c / 4 / $r);
22420
+ o = Fr - Math.floor(c / 4 / Fr);
22421
22421
  break;
22422
22422
  }
22423
22423
  i.canvas.width = i.canvas.height = 0;
@@ -22631,7 +22631,7 @@ function nW(n = {}) {
22631
22631
  throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.");
22632
22632
  }(n.data) : null, s = n.httpHeaders || null, o = n.withCredentials === !0, a = n.password ?? null, l = n.range instanceof UT ? n.range : null, u = Number.isInteger(n.rangeChunkSize) && n.rangeChunkSize > 0 ? n.rangeChunkSize : QZ;
22633
22633
  let c = n.worker instanceof Ru ? n.worker : null;
22634
- const d = n.verbosity, f = typeof n.docBaseUrl != "string" || m5(n.docBaseUrl) ? null : n.docBaseUrl, h = typeof n.cMapUrl == "string" ? n.cMapUrl : null, m = n.cMapPacked !== !1, y = n.CMapReaderFactory || JZ, g = typeof n.standardFontDataUrl == "string" ? n.standardFontDataUrl : null, v = n.StandardFontDataFactory || tW, b = n.stopAtErrors !== !0, S = Number.isInteger(n.maxImageSize) && n.maxImageSize > -1 ? n.maxImageSize : -1, C = n.isEvalSupported !== !1, T = typeof n.isOffscreenCanvasSupported == "boolean" ? n.isOffscreenCanvasSupported : !or, M = typeof n.isImageDecoderSupported == "boolean" ? n.isImageDecoderSupported : !or && (Tr.platform.isFirefox || !globalThis.chrome), E = Number.isInteger(n.canvasMaxAreaInBytes) ? n.canvasMaxAreaInBytes : -1, N = typeof n.disableFontFace == "boolean" ? n.disableFontFace : or, x = n.fontExtraProperties === !0, F = n.enableXfa === !0, R = n.ownerDocument || globalThis.document, U = n.disableRange === !0, te = n.disableStream === !0, K = n.disableAutoFetch === !0, re = n.pdfBug === !0, ie = n.CanvasFactory || XZ, W = n.FilterFactory || eW, ue = n.enableHWA === !0, Z = l ? l.length : n.length ?? NaN, oe = typeof n.useSystemFonts == "boolean" ? n.useSystemFonts : !or && !N, ge = typeof n.useWorkerFetch == "boolean" ? n.useWorkerFetch : y === OT && v === DT && h && g && $1(h, document.baseURI) && $1(g, document.baseURI);
22634
+ const d = n.verbosity, f = typeof n.docBaseUrl != "string" || m5(n.docBaseUrl) ? null : n.docBaseUrl, h = typeof n.cMapUrl == "string" ? n.cMapUrl : null, m = n.cMapPacked !== !1, y = n.CMapReaderFactory || JZ, g = typeof n.standardFontDataUrl == "string" ? n.standardFontDataUrl : null, v = n.StandardFontDataFactory || tW, b = n.stopAtErrors !== !0, S = Number.isInteger(n.maxImageSize) && n.maxImageSize > -1 ? n.maxImageSize : -1, C = n.isEvalSupported !== !1, T = typeof n.isOffscreenCanvasSupported == "boolean" ? n.isOffscreenCanvasSupported : !or, M = typeof n.isImageDecoderSupported == "boolean" ? n.isImageDecoderSupported : !or && (Ir.platform.isFirefox || !globalThis.chrome), E = Number.isInteger(n.canvasMaxAreaInBytes) ? n.canvasMaxAreaInBytes : -1, N = typeof n.disableFontFace == "boolean" ? n.disableFontFace : or, x = n.fontExtraProperties === !0, F = n.enableXfa === !0, R = n.ownerDocument || globalThis.document, U = n.disableRange === !0, te = n.disableStream === !0, K = n.disableAutoFetch === !0, re = n.pdfBug === !0, ie = n.CanvasFactory || XZ, W = n.FilterFactory || eW, ue = n.enableHWA === !0, Z = l ? l.length : n.length ?? NaN, oe = typeof n.useSystemFonts == "boolean" ? n.useSystemFonts : !or && !N, ge = typeof n.useWorkerFetch == "boolean" ? n.useWorkerFetch : y === OT && v === DT && h && g && $1(h, document.baseURI) && $1(g, document.baseURI);
22635
22635
  cZ(d);
22636
22636
  const ce = { canvasFactory: new ie({ ownerDocument: R, enableHWA: ue }), filterFactory: new W({ docId: t, ownerDocument: R }), cMapReaderFactory: ge ? null : new y({ baseUrl: h, isCompressed: m }), standardFontDataFactory: ge ? null : new v({ baseUrl: g }) };
22637
22637
  if (!c) {
@@ -23269,11 +23269,11 @@ class oW {
23269
23269
  }), e.on("GetDoc", ({ pdfInfo: r }) => {
23270
23270
  this._numPages = r.numPages, this._htmlForXfa = r.htmlForXfa, delete r.htmlForXfa, t._capability.resolve(new rW(r, this));
23271
23271
  }), e.on("DocException", (r) => {
23272
- t._capability.reject(Fr(r));
23272
+ t._capability.reject(Br(r));
23273
23273
  }), e.on("PasswordRequest", (r) => {
23274
23274
  k(this, Yo, Promise.withResolvers());
23275
23275
  try {
23276
- if (!t.onPassword) throw Fr(r);
23276
+ if (!t.onPassword) throw Br(r);
23277
23277
  const i = (s) => {
23278
23278
  s instanceof Error ? p(this, Yo).reject(s) : p(this, Yo).resolve({ password: s });
23279
23279
  };
@@ -24126,7 +24126,7 @@ class nu extends tn {
24126
24126
  this.data.hasOwnCanvas && (((t = e.previousSibling) == null ? void 0 : t.nodeName) === "CANVAS" && (e.previousSibling.hidden = !0), e.hidden = !1);
24127
24127
  }
24128
24128
  _getKeyModifier(e) {
24129
- return Tr.platform.isMac ? e.metaKey : e.ctrlKey;
24129
+ return Ir.platform.isMac ? e.metaKey : e.ctrlKey;
24130
24130
  }
24131
24131
  _setEventListener(e, t, r, i, s) {
24132
24132
  r.includes("mouse") ? e.addEventListener(r, (o) => {
@@ -24778,7 +24778,7 @@ class TW extends tn {
24778
24778
  const { container: t, data: r } = this;
24779
24779
  let i;
24780
24780
  r.hasAppearance || r.fillAlpha === 0 ? i = document.createElement("div") : (i = document.createElement("img"), i.src = `${this.imageResourcesPath}annotation-${/paperclip/i.test(r.name) ? "paperclip" : "pushpin"}.svg`, r.fillAlpha && r.fillAlpha < 1 && (i.style = `filter: opacity(${Math.round(100 * r.fillAlpha)}%);`)), i.addEventListener("dblclick", O(this, Ph, L7).bind(this)), k(this, Nh, i);
24781
- const { isMac: s } = Tr.platform;
24781
+ const { isMac: s } = Ir.platform;
24782
24782
  return t.addEventListener("keydown", (o) => {
24783
24783
  o.key === "Enter" && (s ? o.metaKey : o.ctrlKey) && O(this, Ph, L7).call(this);
24784
24784
  }), !r.popupRef && this.hasPopupData ? this._createPopup() : i.classList.add("popupTriggerArea"), t.append(i), t;
@@ -25206,10 +25206,10 @@ class Me {
25206
25206
  }
25207
25207
  }
25208
25208
  Re(Me, "PRECISION", 1e-4);
25209
- var ci, vs, Cc, Sc, to, Je, g2, y2, $h, Fh, Mc, kc, h0, Bh, Hg, zg, bn, q1, dI, fI, hI, pI, mI, gI;
25209
+ var ci, vs, Cc, Sc, to, Je, g2, y2, $h, Fh, Mc, kc, h0, Bh, Hg, zg, wn, q1, dI, fI, hI, pI, mI, gI;
25210
25210
  const _o = class _o {
25211
25211
  constructor({ x: e, y: t }, r, i, s, o, a = 0) {
25212
- I(this, bn);
25212
+ I(this, wn);
25213
25213
  I(this, ci);
25214
25214
  I(this, vs, []);
25215
25215
  I(this, Cc);
@@ -25244,13 +25244,13 @@ const _o = class _o {
25244
25244
  toSVGPath() {
25245
25245
  if (this.isEmpty()) return "";
25246
25246
  const e = p(this, to), t = p(this, vs);
25247
- if (isNaN(p(this, Je)[6]) && !this.isEmpty()) return O(this, bn, dI).call(this);
25247
+ if (isNaN(p(this, Je)[6]) && !this.isEmpty()) return O(this, wn, dI).call(this);
25248
25248
  const r = [];
25249
25249
  r.push(`M${e[4]} ${e[5]}`);
25250
25250
  for (let i = 6; i < e.length; i += 6) isNaN(e[i]) ? r.push(`L${e[i + 4]} ${e[i + 5]}`) : r.push(`C${e[i]} ${e[i + 1]} ${e[i + 2]} ${e[i + 3]} ${e[i + 4]} ${e[i + 5]}`);
25251
- O(this, bn, hI).call(this, r);
25251
+ O(this, wn, hI).call(this, r);
25252
25252
  for (let i = t.length - 6; i >= 6; i -= 6) isNaN(t[i]) ? r.push(`L${t[i + 4]} ${t[i + 5]}`) : r.push(`C${t[i]} ${t[i + 1]} ${t[i + 2]} ${t[i + 3]} ${t[i + 4]} ${t[i + 5]}`);
25253
- return O(this, bn, fI).call(this, r), r.join(" ");
25253
+ return O(this, wn, fI).call(this, r), r.join(" ");
25254
25254
  }
25255
25255
  newFreeDrawOutline(e, t, r, i, s, o) {
25256
25256
  return new yI(e, t, r, i, s, o);
@@ -25260,35 +25260,35 @@ const _o = class _o {
25260
25260
  const e = p(this, to), t = p(this, vs), r = p(this, Je), [i, s, o, a] = p(this, ci), l = new Float32Array((((d = p(this, h0)) == null ? void 0 : d.length) ?? 0) + 2);
25261
25261
  for (let f = 0, h = l.length - 2; f < h; f += 2)
25262
25262
  l[f] = (p(this, h0)[f] - i) / o, l[f + 1] = (p(this, h0)[f + 1] - s) / a;
25263
- if (l[l.length - 2] = (p(this, g2) - i) / o, l[l.length - 1] = (p(this, y2) - s) / a, isNaN(r[6]) && !this.isEmpty()) return O(this, bn, pI).call(this, l);
25263
+ if (l[l.length - 2] = (p(this, g2) - i) / o, l[l.length - 1] = (p(this, y2) - s) / a, isNaN(r[6]) && !this.isEmpty()) return O(this, wn, pI).call(this, l);
25264
25264
  const u = new Float32Array(p(this, to).length + 24 + p(this, vs).length);
25265
25265
  let c = e.length;
25266
25266
  for (let f = 0; f < c; f += 2) isNaN(e[f]) ? u[f] = u[f + 1] = NaN : (u[f] = e[f], u[f + 1] = e[f + 1]);
25267
- c = O(this, bn, gI).call(this, u, c);
25267
+ c = O(this, wn, gI).call(this, u, c);
25268
25268
  for (let f = t.length - 6; f >= 6; f -= 6) for (let h = 0; h < 6; h += 2) isNaN(t[f + h]) ? (u[c] = u[c + 1] = NaN, c += 2) : (u[c] = t[f + h], u[c + 1] = t[f + h + 1], c += 2);
25269
- return O(this, bn, mI).call(this, u, c), this.newFreeDrawOutline(u, l, p(this, ci), p(this, Mc), p(this, Cc), p(this, Sc));
25269
+ return O(this, wn, mI).call(this, u, c), this.newFreeDrawOutline(u, l, p(this, ci), p(this, Mc), p(this, Cc), p(this, Sc));
25270
25270
  }
25271
25271
  };
25272
- ci = new WeakMap(), vs = new WeakMap(), Cc = new WeakMap(), Sc = new WeakMap(), to = new WeakMap(), Je = new WeakMap(), g2 = new WeakMap(), y2 = new WeakMap(), $h = new WeakMap(), Fh = new WeakMap(), Mc = new WeakMap(), kc = new WeakMap(), h0 = new WeakMap(), Bh = new WeakMap(), Hg = new WeakMap(), zg = new WeakMap(), bn = new WeakSet(), q1 = function() {
25272
+ ci = new WeakMap(), vs = new WeakMap(), Cc = new WeakMap(), Sc = new WeakMap(), to = new WeakMap(), Je = new WeakMap(), g2 = new WeakMap(), y2 = new WeakMap(), $h = new WeakMap(), Fh = new WeakMap(), Mc = new WeakMap(), kc = new WeakMap(), h0 = new WeakMap(), Bh = new WeakMap(), Hg = new WeakMap(), zg = new WeakMap(), wn = new WeakSet(), q1 = function() {
25273
25273
  const e = p(this, Je).subarray(4, 6), t = p(this, Je).subarray(16, 18), [r, i, s, o] = p(this, ci);
25274
25274
  return [(p(this, g2) + (e[0] - t[0]) / 2 - r) / s, (p(this, y2) + (e[1] - t[1]) / 2 - i) / o, (p(this, g2) + (t[0] - e[0]) / 2 - r) / s, (p(this, y2) + (t[1] - e[1]) / 2 - i) / o];
25275
25275
  }, dI = function() {
25276
- const [e, t, r, i] = p(this, ci), [s, o, a, l] = O(this, bn, q1).call(this);
25276
+ const [e, t, r, i] = p(this, ci), [s, o, a, l] = O(this, wn, q1).call(this);
25277
25277
  return `M${(p(this, Je)[2] - e) / r} ${(p(this, Je)[3] - t) / i} L${(p(this, Je)[4] - e) / r} ${(p(this, Je)[5] - t) / i} L${s} ${o} L${a} ${l} L${(p(this, Je)[16] - e) / r} ${(p(this, Je)[17] - t) / i} L${(p(this, Je)[14] - e) / r} ${(p(this, Je)[15] - t) / i} Z`;
25278
25278
  }, fI = function(e) {
25279
25279
  const t = p(this, vs);
25280
25280
  e.push(`L${t[4]} ${t[5]} Z`);
25281
25281
  }, hI = function(e) {
25282
- const [t, r, i, s] = p(this, ci), o = p(this, Je).subarray(4, 6), a = p(this, Je).subarray(16, 18), [l, u, c, d] = O(this, bn, q1).call(this);
25282
+ const [t, r, i, s] = p(this, ci), o = p(this, Je).subarray(4, 6), a = p(this, Je).subarray(16, 18), [l, u, c, d] = O(this, wn, q1).call(this);
25283
25283
  e.push(`L${(o[0] - t) / i} ${(o[1] - r) / s} L${l} ${u} L${c} ${d} L${(a[0] - t) / i} ${(a[1] - r) / s}`);
25284
25284
  }, pI = function(e) {
25285
- const t = p(this, Je), [r, i, s, o] = p(this, ci), [a, l, u, c] = O(this, bn, q1).call(this), d = new Float32Array(36);
25285
+ const t = p(this, Je), [r, i, s, o] = p(this, ci), [a, l, u, c] = O(this, wn, q1).call(this), d = new Float32Array(36);
25286
25286
  return d.set([NaN, NaN, NaN, NaN, (t[2] - r) / s, (t[3] - i) / o, NaN, NaN, NaN, NaN, (t[4] - r) / s, (t[5] - i) / o, NaN, NaN, NaN, NaN, a, l, NaN, NaN, NaN, NaN, u, c, NaN, NaN, NaN, NaN, (t[16] - r) / s, (t[17] - i) / o, NaN, NaN, NaN, NaN, (t[14] - r) / s, (t[15] - i) / o], 0), this.newFreeDrawOutline(d, e, p(this, ci), p(this, Mc), p(this, Cc), p(this, Sc));
25287
25287
  }, mI = function(e, t) {
25288
25288
  const r = p(this, vs);
25289
25289
  return e.set([NaN, NaN, NaN, NaN, r[4], r[5]], t), t + 6;
25290
25290
  }, gI = function(e, t) {
25291
- const r = p(this, Je).subarray(4, 6), i = p(this, Je).subarray(16, 18), [s, o, a, l] = p(this, ci), [u, c, d, f] = O(this, bn, q1).call(this);
25291
+ const r = p(this, Je).subarray(4, 6), i = p(this, Je).subarray(16, 18), [s, o, a, l] = p(this, ci), [u, c, d, f] = O(this, wn, q1).call(this);
25292
25292
  return e.set([NaN, NaN, NaN, NaN, (r[0] - s) / a, (r[1] - o) / l, NaN, NaN, NaN, NaN, u, c, NaN, NaN, NaN, NaN, d, f, NaN, NaN, NaN, NaN, (i[0] - s) / a, (i[1] - o) / l], t), t + 24;
25293
25293
  }, I(_o, Bh, 8), I(_o, Hg, 2), I(_o, zg, p(_o, Bh) + p(_o, Hg));
25294
25294
  let E3 = _o;
@@ -25362,10 +25362,10 @@ Ac = new WeakMap(), v2 = new WeakMap(), ta = new WeakMap(), jh = new WeakMap(),
25362
25362
  const h = p(this, v2);
25363
25363
  h[0] = o - p(this, ta), h[1] = a - p(this, ta), h[2] = l - o + 2 * p(this, ta), h[3] = u - a + 2 * p(this, ta), this.lastPoint = [c, d];
25364
25364
  };
25365
- var Hh, zh, p0, bs, Or, bI, Um, wI, CI, B7;
25365
+ var Hh, zh, p0, bs, xr, bI, Um, wI, CI, B7;
25366
25366
  class F7 {
25367
25367
  constructor(e, t = 0, r = 0, i = !0) {
25368
- I(this, Or);
25368
+ I(this, xr);
25369
25369
  I(this, Hh);
25370
25370
  I(this, zh);
25371
25371
  I(this, p0, []);
@@ -25386,11 +25386,11 @@ class F7 {
25386
25386
  getOutlines() {
25387
25387
  p(this, p0).sort((t, r) => t[0] - r[0] || t[1] - r[1] || t[2] - r[2]);
25388
25388
  const e = [];
25389
- for (const t of p(this, p0)) t[3] ? (e.push(...O(this, Or, B7).call(this, t)), O(this, Or, wI).call(this, t)) : (O(this, Or, CI).call(this, t), e.push(...O(this, Or, B7).call(this, t)));
25390
- return O(this, Or, bI).call(this, e);
25389
+ for (const t of p(this, p0)) t[3] ? (e.push(...O(this, xr, B7).call(this, t)), O(this, xr, wI).call(this, t)) : (O(this, xr, CI).call(this, t), e.push(...O(this, xr, B7).call(this, t)));
25390
+ return O(this, xr, bI).call(this, e);
25391
25391
  }
25392
25392
  }
25393
- Hh = new WeakMap(), zh = new WeakMap(), p0 = new WeakMap(), bs = new WeakMap(), Or = new WeakSet(), bI = function(e) {
25393
+ Hh = new WeakMap(), zh = new WeakMap(), p0 = new WeakMap(), bs = new WeakMap(), xr = new WeakSet(), bI = function(e) {
25394
25394
  const t = [], r = /* @__PURE__ */ new Set();
25395
25395
  for (const o of e) {
25396
25396
  const [a, l, u] = o;
@@ -25430,10 +25430,10 @@ Hh = new WeakMap(), zh = new WeakMap(), p0 = new WeakMap(), bs = new WeakMap(),
25430
25430
  }
25431
25431
  return i + 1;
25432
25432
  }, wI = function([, e, t]) {
25433
- const r = O(this, Or, Um).call(this, e);
25433
+ const r = O(this, xr, Um).call(this, e);
25434
25434
  p(this, bs).splice(r, 0, [e, t]);
25435
25435
  }, CI = function([, e, t]) {
25436
- const r = O(this, Or, Um).call(this, e);
25436
+ const r = O(this, xr, Um).call(this, e);
25437
25437
  for (let i = r; i < p(this, bs).length; i++) {
25438
25438
  const [s, o] = p(this, bs)[i];
25439
25439
  if (s !== e) break;
@@ -25451,7 +25451,7 @@ Hh = new WeakMap(), zh = new WeakMap(), p0 = new WeakMap(), bs = new WeakMap(),
25451
25451
  }
25452
25452
  }
25453
25453
  }, B7 = function(e) {
25454
- const [t, r, i] = e, s = [[t, r, i]], o = O(this, Or, Um).call(this, i);
25454
+ const [t, r, i] = e, s = [[t, r, i]], o = O(this, xr, Um).call(this, i);
25455
25455
  for (let a = 0; a < o; a++) {
25456
25456
  const [l, u] = p(this, bs)[a];
25457
25457
  for (let c = 0, d = s.length; c < d; c++) {
@@ -25517,7 +25517,7 @@ class xW extends yI {
25517
25517
  }
25518
25518
  }
25519
25519
  var ws, b2, Tc, gn, Zh, Ic, Wh, qh, m0, Cs, Oc, Gh, At, V7, H7, z7, pl, SI, Ra;
25520
- const Br = class Br {
25520
+ const jr = class jr {
25521
25521
  constructor({ editor: e = null, uiManager: t = null }) {
25522
25522
  I(this, At);
25523
25523
  I(this, ws, null);
@@ -25532,10 +25532,10 @@ const Br = class Br {
25532
25532
  I(this, Cs, null);
25533
25533
  I(this, Oc);
25534
25534
  var r;
25535
- e ? (k(this, Ic, !1), k(this, Oc, nt.HIGHLIGHT_COLOR), k(this, Wh, e)) : (k(this, Ic, !0), k(this, Oc, nt.HIGHLIGHT_DEFAULT_COLOR)), k(this, Cs, (e == null ? void 0 : e._uiManager) || t), k(this, qh, p(this, Cs)._eventBus), k(this, Tc, (e == null ? void 0 : e.color) || ((r = p(this, Cs)) == null ? void 0 : r.highlightColors.values().next().value) || "#FFFF98"), p(Br, Gh) || k(Br, Gh, Object.freeze({ blue: "pdfjs-editor-colorpicker-blue", green: "pdfjs-editor-colorpicker-green", pink: "pdfjs-editor-colorpicker-pink", red: "pdfjs-editor-colorpicker-red", yellow: "pdfjs-editor-colorpicker-yellow" }));
25535
+ e ? (k(this, Ic, !1), k(this, Oc, nt.HIGHLIGHT_COLOR), k(this, Wh, e)) : (k(this, Ic, !0), k(this, Oc, nt.HIGHLIGHT_DEFAULT_COLOR)), k(this, Cs, (e == null ? void 0 : e._uiManager) || t), k(this, qh, p(this, Cs)._eventBus), k(this, Tc, (e == null ? void 0 : e.color) || ((r = p(this, Cs)) == null ? void 0 : r.highlightColors.values().next().value) || "#FFFF98"), p(jr, Gh) || k(jr, Gh, Object.freeze({ blue: "pdfjs-editor-colorpicker-blue", green: "pdfjs-editor-colorpicker-green", pink: "pdfjs-editor-colorpicker-pink", red: "pdfjs-editor-colorpicker-red", yellow: "pdfjs-editor-colorpicker-yellow" }));
25536
25536
  }
25537
25537
  static get _keyboardManager() {
25538
- return et(this, "_keyboardManager", new gp([[["Escape", "mac+Escape"], Br.prototype._hideDropdownFromKeyboard], [[" ", "mac+ "], Br.prototype._colorSelectFromKeyboard], [["ArrowDown", "ArrowRight", "mac+ArrowDown", "mac+ArrowRight"], Br.prototype._moveToNext], [["ArrowUp", "ArrowLeft", "mac+ArrowUp", "mac+ArrowLeft"], Br.prototype._moveToPrevious], [["Home", "mac+Home"], Br.prototype._moveToBeginning], [["End", "mac+End"], Br.prototype._moveToEnd]]));
25538
+ return et(this, "_keyboardManager", new gp([[["Escape", "mac+Escape"], jr.prototype._hideDropdownFromKeyboard], [[" ", "mac+ "], jr.prototype._colorSelectFromKeyboard], [["ArrowDown", "ArrowRight", "mac+ArrowDown", "mac+ArrowRight"], jr.prototype._moveToNext], [["ArrowUp", "ArrowLeft", "mac+ArrowUp", "mac+ArrowLeft"], jr.prototype._moveToPrevious], [["Home", "mac+Home"], jr.prototype._moveToBeginning], [["End", "mac+End"], jr.prototype._moveToEnd]]));
25539
25539
  }
25540
25540
  renderButton() {
25541
25541
  const e = k(this, ws, document.createElement("button"));
@@ -25596,7 +25596,7 @@ ws = new WeakMap(), b2 = new WeakMap(), Tc = new WeakMap(), gn = new WeakMap(),
25596
25596
  e.addEventListener("contextmenu", xs, { signal: t }), e.className = "dropdown", e.role = "listbox", e.setAttribute("aria-multiselectable", !1), e.setAttribute("aria-orientation", "vertical"), e.setAttribute("data-l10n-id", "pdfjs-editor-colorpicker-dropdown");
25597
25597
  for (const [r, i] of p(this, Cs).highlightColors) {
25598
25598
  const s = document.createElement("button");
25599
- s.tabIndex = "0", s.role = "option", s.setAttribute("data-color", i), s.title = r, s.setAttribute("data-l10n-id", p(Br, Gh)[r]);
25599
+ s.tabIndex = "0", s.role = "option", s.setAttribute("data-color", i), s.title = r, s.setAttribute("data-l10n-id", p(jr, Gh)[r]);
25600
25600
  const o = document.createElement("span");
25601
25601
  s.append(o), o.className = "swatch", o.style.backgroundColor = i, s.setAttribute("aria-selected", i === p(this, Tc)), s.addEventListener("click", O(this, At, H7).bind(this, i), { signal: t }), e.append(s);
25602
25602
  }
@@ -25604,7 +25604,7 @@ ws = new WeakMap(), b2 = new WeakMap(), Tc = new WeakMap(), gn = new WeakMap(),
25604
25604
  }, H7 = function(e, t) {
25605
25605
  t.stopPropagation(), p(this, qh).dispatch("switchannotationeditorparams", { source: this, type: p(this, Oc), value: e });
25606
25606
  }, z7 = function(e) {
25607
- Br._keyboardManager.exec(this, e);
25607
+ jr._keyboardManager.exec(this, e);
25608
25608
  }, pl = function(e) {
25609
25609
  if (p(this, At, Ra)) {
25610
25610
  this.hideDropdown();
@@ -25621,9 +25621,9 @@ ws = new WeakMap(), b2 = new WeakMap(), Tc = new WeakMap(), gn = new WeakMap(),
25621
25621
  (t = p(this, gn)) != null && t.contains(e.target) || this.hideDropdown();
25622
25622
  }, Ra = function() {
25623
25623
  return p(this, gn) && !p(this, gn).classList.contains("hidden");
25624
- }, I(Br, Gh, null);
25625
- let T3 = Br;
25626
- var xc, Kh, na, w2, Dc, Hr, Yh, Qh, C2, Bi, fi, Hn, Nc, ra, nr, Pc, ji, Xh, We, U7, Zm, MI, kI, AI, Z7, ml, Wi, bu, EI, Wm, G1, TI, II, OI, xI, DI;
25624
+ }, I(jr, Gh, null);
25625
+ let T3 = jr;
25626
+ var xc, Kh, na, w2, Dc, zr, Yh, Qh, C2, Bi, fi, Hn, Nc, ra, nr, Pc, ji, Xh, We, U7, Zm, MI, kI, AI, Z7, ml, Wi, bu, EI, Wm, G1, TI, II, OI, xI, DI;
25627
25627
  const mt = class mt extends Ut {
25628
25628
  constructor(t) {
25629
25629
  super({ ...t, name: "highlightEditor" });
@@ -25633,7 +25633,7 @@ const mt = class mt extends Ut {
25633
25633
  I(this, na);
25634
25634
  I(this, w2, null);
25635
25635
  I(this, Dc, null);
25636
- I(this, Hr, null);
25636
+ I(this, zr, null);
25637
25637
  I(this, Yh, null);
25638
25638
  I(this, Qh, 0);
25639
25639
  I(this, C2, null);
@@ -25731,7 +25731,7 @@ const mt = class mt extends Ut {
25731
25731
  var s, o, a;
25732
25732
  const { drawLayer: r } = this.parent;
25733
25733
  let i;
25734
- p(this, Hn) ? (t = (t - this.rotation + 360) % 360, i = O(s = mt, Wi, bu).call(s, p(this, Bi).box, t)) : i = O(o = mt, Wi, bu).call(o, [this.x, this.y, this.width, this.height], t), r.updateProperties(p(this, fi), { bbox: i, root: { "data-main-rotation": t } }), r.updateProperties(p(this, nr), { bbox: O(a = mt, Wi, bu).call(a, p(this, Hr).box, t), root: { "data-main-rotation": t } });
25734
+ p(this, Hn) ? (t = (t - this.rotation + 360) % 360, i = O(s = mt, Wi, bu).call(s, p(this, Bi).box, t)) : i = O(o = mt, Wi, bu).call(o, [this.x, this.y, this.width, this.height], t), r.updateProperties(p(this, fi), { bbox: i, root: { "data-main-rotation": t } }), r.updateProperties(p(this, nr), { bbox: O(a = mt, Wi, bu).call(a, p(this, zr).box, t), root: { "data-main-rotation": t } });
25735
25735
  }
25736
25736
  render() {
25737
25737
  if (this.div) return this.div;
@@ -25821,20 +25821,20 @@ const mt = class mt extends Ut {
25821
25821
  return !1;
25822
25822
  }
25823
25823
  };
25824
- xc = new WeakMap(), Kh = new WeakMap(), na = new WeakMap(), w2 = new WeakMap(), Dc = new WeakMap(), Hr = new WeakMap(), Yh = new WeakMap(), Qh = new WeakMap(), C2 = new WeakMap(), Bi = new WeakMap(), fi = new WeakMap(), Hn = new WeakMap(), Nc = new WeakMap(), ra = new WeakMap(), nr = new WeakMap(), Pc = new WeakMap(), ji = new WeakMap(), Xh = new WeakMap(), We = new WeakSet(), U7 = function() {
25824
+ xc = new WeakMap(), Kh = new WeakMap(), na = new WeakMap(), w2 = new WeakMap(), Dc = new WeakMap(), zr = new WeakMap(), Yh = new WeakMap(), Qh = new WeakMap(), C2 = new WeakMap(), Bi = new WeakMap(), fi = new WeakMap(), Hn = new WeakMap(), Nc = new WeakMap(), ra = new WeakMap(), nr = new WeakMap(), Pc = new WeakMap(), ji = new WeakMap(), Xh = new WeakMap(), We = new WeakSet(), U7 = function() {
25825
25825
  const t = new F7(p(this, na), 1e-3);
25826
25826
  k(this, Bi, t.getOutlines()), [this.x, this.y, this.width, this.height] = p(this, Bi).box;
25827
25827
  const r = new F7(p(this, na), 25e-4, 1e-3, this._uiManager.direction === "ltr");
25828
- k(this, Hr, r.getOutlines());
25829
- const { lastPoint: i } = p(this, Hr);
25828
+ k(this, zr, r.getOutlines());
25829
+ const { lastPoint: i } = p(this, zr);
25830
25830
  k(this, Nc, [(i[0] - this.x) / this.width, (i[1] - this.y) / this.height]);
25831
25831
  }, Zm = function({ highlightOutlines: t, highlightId: r, clipPathId: i }) {
25832
25832
  var c, d;
25833
- if (k(this, Bi, t), k(this, Hr, t.getNewOutline(p(this, ji) / 2 + 1.5, 25e-4)), r >= 0)
25834
- k(this, fi, r), k(this, w2, i), this.parent.drawLayer.finalizeDraw(r, { bbox: t.box, path: { d: t.toSVGPath() } }), k(this, nr, this.parent.drawLayer.drawOutline({ rootClass: { highlightOutline: !0, free: !0 }, bbox: p(this, Hr).box, path: { d: p(this, Hr).toSVGPath() } }, !0));
25833
+ if (k(this, Bi, t), k(this, zr, t.getNewOutline(p(this, ji) / 2 + 1.5, 25e-4)), r >= 0)
25834
+ k(this, fi, r), k(this, w2, i), this.parent.drawLayer.finalizeDraw(r, { bbox: t.box, path: { d: t.toSVGPath() } }), k(this, nr, this.parent.drawLayer.drawOutline({ rootClass: { highlightOutline: !0, free: !0 }, bbox: p(this, zr).box, path: { d: p(this, zr).toSVGPath() } }, !0));
25835
25835
  else if (this.parent) {
25836
25836
  const f = this.parent.viewport.rotation;
25837
- this.parent.drawLayer.updateProperties(p(this, fi), { bbox: O(c = mt, Wi, bu).call(c, p(this, Bi).box, (f - this.rotation + 360) % 360), path: { d: t.toSVGPath() } }), this.parent.drawLayer.updateProperties(p(this, nr), { bbox: O(d = mt, Wi, bu).call(d, p(this, Hr).box, f), path: { d: p(this, Hr).toSVGPath() } });
25837
+ this.parent.drawLayer.updateProperties(p(this, fi), { bbox: O(c = mt, Wi, bu).call(c, p(this, Bi).box, (f - this.rotation + 360) % 360), path: { d: t.toSVGPath() } }), this.parent.drawLayer.updateProperties(p(this, nr), { bbox: O(d = mt, Wi, bu).call(d, p(this, zr).box, f), path: { d: p(this, zr).toSVGPath() } });
25838
25838
  }
25839
25839
  const [s, o, a, l] = t.box;
25840
25840
  switch (this.rotation) {
@@ -25855,7 +25855,7 @@ xc = new WeakMap(), Kh = new WeakMap(), na = new WeakMap(), w2 = new WeakMap(),
25855
25855
  break;
25856
25856
  }
25857
25857
  }
25858
- const { lastPoint: u } = p(this, Hr);
25858
+ const { lastPoint: u } = p(this, zr);
25859
25859
  k(this, Nc, [(u[0] - s) / a, (u[1] - o) / l]);
25860
25860
  }, MI = function(t) {
25861
25861
  const r = (o, a) => {
@@ -25876,7 +25876,7 @@ xc = new WeakMap(), Kh = new WeakMap(), na = new WeakMap(), w2 = new WeakMap(),
25876
25876
  }, Z7 = function() {
25877
25877
  p(this, fi) !== null && this.parent && (this.parent.drawLayer.remove(p(this, fi)), k(this, fi, null), this.parent.drawLayer.remove(p(this, nr)), k(this, nr, null));
25878
25878
  }, ml = function(t = this.parent) {
25879
- p(this, fi) === null && ({ id: gr(this, fi)._, clipPathId: gr(this, w2)._ } = t.drawLayer.draw({ bbox: p(this, Bi).box, root: { viewBox: "0 0 1 1", fill: this.color, "fill-opacity": p(this, ra) }, rootClass: { highlight: !0, free: p(this, Hn) }, path: { d: p(this, Bi).toSVGPath() } }, !1, !0), k(this, nr, t.drawLayer.drawOutline({ rootClass: { highlightOutline: !0, free: p(this, Hn) }, bbox: p(this, Hr).box, path: { d: p(this, Hr).toSVGPath() } }, p(this, Hn))), p(this, C2) && (p(this, C2).style.clipPath = p(this, w2)));
25879
+ p(this, fi) === null && ({ id: gr(this, fi)._, clipPathId: gr(this, w2)._ } = t.drawLayer.draw({ bbox: p(this, Bi).box, root: { viewBox: "0 0 1 1", fill: this.color, "fill-opacity": p(this, ra) }, rootClass: { highlight: !0, free: p(this, Hn) }, path: { d: p(this, Bi).toSVGPath() } }, !1, !0), k(this, nr, t.drawLayer.drawOutline({ rootClass: { highlightOutline: !0, free: p(this, Hn) }, bbox: p(this, zr).box, path: { d: p(this, zr).toSVGPath() } }, p(this, Hn))), p(this, C2) && (p(this, C2).style.clipPath = p(this, w2)));
25880
25880
  }, Wi = new WeakSet(), bu = function([t, r, i, s], o) {
25881
25881
  switch (o) {
25882
25882
  case 90:
@@ -25944,7 +25944,7 @@ class DW {
25944
25944
  }
25945
25945
  }
25946
25946
  S2 = new WeakMap();
25947
- var hi, Lc, Tn, M2, k2, g0, y0, v0, A2, ut, q7, G7, K7, K1, NI, qm, Y1, wu;
25947
+ var hi, Lc, In, M2, k2, g0, y0, v0, A2, ut, q7, G7, K7, K1, NI, qm, Y1, wu;
25948
25948
  const ke = class ke extends Ut {
25949
25949
  constructor(t) {
25950
25950
  super(t);
@@ -25973,7 +25973,7 @@ const ke = class ke extends Ut {
25973
25973
  }
25974
25974
  static updateDefaultParams(t, r) {
25975
25975
  const i = this.typesMap.get(t);
25976
- i && this._defaultDrawingOptions.updateProperty(i, r), this._currentParent && (p(ke, Tn).updateProperty(i, r), this._currentParent.drawLayer.updateProperties(this._currentDrawId, this._defaultDrawingOptions.toSVGProperties()));
25976
+ i && this._defaultDrawingOptions.updateProperty(i, r), this._currentParent && (p(ke, In).updateProperty(i, r), this._currentParent.drawLayer.updateProperties(this._currentDrawId, this._defaultDrawingOptions.toSVGProperties()));
25977
25977
  }
25978
25978
  updateParams(t, r) {
25979
25979
  const i = this.constructor.typesMap.get(t);
@@ -26083,25 +26083,25 @@ const ke = class ke extends Ut {
26083
26083
  var b;
26084
26084
  p(ke, g0) === v.pointerId ? this._currentParent.endDrawingSession() : (b = p(ke, v0)) == null || b.delete(v.pointerId);
26085
26085
  }, { signal: y }), window.addEventListener("pointerdown", (v) => {
26086
- p(ke, y0) === v.pointerType && ((p(ke, v0) || k(ke, v0, /* @__PURE__ */ new Set())).add(v.pointerId), p(ke, Tn).isCancellable() && (p(ke, Tn).removeLastElement(), p(ke, Tn).isEmpty() ? this._currentParent.endDrawingSession(!0) : this._endDraw(null)));
26086
+ p(ke, y0) === v.pointerType && ((p(ke, v0) || k(ke, v0, /* @__PURE__ */ new Set())).add(v.pointerId), p(ke, In).isCancellable() && (p(ke, In).removeLastElement(), p(ke, In).isEmpty() ? this._currentParent.endDrawingSession(!0) : this._endDraw(null)));
26087
26087
  }, { capture: !0, passive: !1, signal: y }), window.addEventListener("contextmenu", xs, { signal: y }), o.addEventListener("pointermove", this._drawMove.bind(this), { signal: y }), o.addEventListener("touchmove", (v) => {
26088
26088
  v.timeStamp === p(ke, A2) && yi(v);
26089
- }, { signal: y }), t.toggleDrawing(), (g = r._editorUndoBar) == null || g.hide(), p(ke, Tn) ? t.drawLayer.updateProperties(this._currentDrawId, p(ke, Tn).startNew(a, l, f, h, d)) : (r.updateUIForDefaultProperties(this), k(ke, Tn, this.createDrawerInstance(a, l, f, h, d)), k(ke, k2, this.getDefaultDrawingOptions()), this._currentParent = t, { id: this._currentDrawId } = t.drawLayer.draw(this._mergeSVGProperties(p(ke, k2).toSVGProperties(), p(ke, Tn).defaultSVGProperties), !0, !1));
26089
+ }, { signal: y }), t.toggleDrawing(), (g = r._editorUndoBar) == null || g.hide(), p(ke, In) ? t.drawLayer.updateProperties(this._currentDrawId, p(ke, In).startNew(a, l, f, h, d)) : (r.updateUIForDefaultProperties(this), k(ke, In, this.createDrawerInstance(a, l, f, h, d)), k(ke, k2, this.getDefaultDrawingOptions()), this._currentParent = t, { id: this._currentDrawId } = t.drawLayer.draw(this._mergeSVGProperties(p(ke, k2).toSVGProperties(), p(ke, In).defaultSVGProperties), !0, !1));
26090
26090
  }
26091
26091
  static _drawMove(t) {
26092
26092
  var o;
26093
- if (k(ke, A2, -1), !p(ke, Tn)) return;
26093
+ if (k(ke, A2, -1), !p(ke, In)) return;
26094
26094
  const { offsetX: r, offsetY: i, pointerId: s } = t;
26095
- p(ke, g0) === s && (((o = p(ke, v0)) == null ? void 0 : o.size) >= 1 ? this._endDraw(t) : (this._currentParent.drawLayer.updateProperties(this._currentDrawId, p(ke, Tn).add(r, i)), k(ke, A2, t.timeStamp), yi(t)));
26095
+ p(ke, g0) === s && (((o = p(ke, v0)) == null ? void 0 : o.size) >= 1 ? this._endDraw(t) : (this._currentParent.drawLayer.updateProperties(this._currentDrawId, p(ke, In).add(r, i)), k(ke, A2, t.timeStamp), yi(t)));
26096
26096
  }
26097
26097
  static _cleanup(t) {
26098
- t && (this._currentDrawId = -1, this._currentParent = null, k(ke, Tn, null), k(ke, k2, null), k(ke, y0, null), k(ke, A2, NaN)), p(ke, M2) && (p(ke, M2).abort(), k(ke, M2, null), k(ke, g0, NaN), k(ke, v0, null));
26098
+ t && (this._currentDrawId = -1, this._currentParent = null, k(ke, In, null), k(ke, k2, null), k(ke, y0, null), k(ke, A2, NaN)), p(ke, M2) && (p(ke, M2).abort(), k(ke, M2, null), k(ke, g0, NaN), k(ke, v0, null));
26099
26099
  }
26100
26100
  static _endDraw(t) {
26101
26101
  const r = this._currentParent;
26102
26102
  if (r)
26103
- if (r.toggleDrawing(!0), this._cleanup(!1), t && r.drawLayer.updateProperties(this._currentDrawId, p(ke, Tn).end(t.offsetX, t.offsetY)), this.supportMultipleDrawings) {
26104
- const i = p(ke, Tn), s = this._currentDrawId, o = i.getLastElement();
26103
+ if (r.toggleDrawing(!0), this._cleanup(!1), t && r.drawLayer.updateProperties(this._currentDrawId, p(ke, In).end(t.offsetX, t.offsetY)), this.supportMultipleDrawings) {
26104
+ const i = p(ke, In), s = this._currentDrawId, o = i.getLastElement();
26105
26105
  r.addCommands({ cmd: () => {
26106
26106
  r.drawLayer.updateProperties(s, i.setLastElement(o));
26107
26107
  }, undo: () => {
@@ -26112,8 +26112,8 @@ const ke = class ke extends Ut {
26112
26112
  static endDrawing(t) {
26113
26113
  const r = this._currentParent;
26114
26114
  if (!r) return null;
26115
- if (r.toggleDrawing(!0), r.cleanUndoStack(nt.DRAW_STEP), !p(ke, Tn).isEmpty()) {
26116
- const { pageDimensions: [i, s], scale: o } = r, a = r.createAndAddNewEditor({ offsetX: 0, offsetY: 0 }, !1, { drawId: this._currentDrawId, drawOutlines: p(ke, Tn).getOutlines(i * o, s * o, o, this._INNER_MARGIN), drawingOptions: p(ke, k2), mustBeCommitted: !t });
26115
+ if (r.toggleDrawing(!0), r.cleanUndoStack(nt.DRAW_STEP), !p(ke, In).isEmpty()) {
26116
+ const { pageDimensions: [i, s], scale: o } = r, a = r.createAndAddNewEditor({ offsetX: 0, offsetY: 0 }, !1, { drawId: this._currentDrawId, drawOutlines: p(ke, In).getOutlines(i * o, s * o, o, this._INNER_MARGIN), drawingOptions: p(ke, k2), mustBeCommitted: !t });
26117
26117
  return this._cleanup(!0), a;
26118
26118
  }
26119
26119
  return r.drawLayer.remove(this._currentDrawId), this._cleanup(!0), null;
@@ -26139,7 +26139,7 @@ const ke = class ke extends Ut {
26139
26139
  return !1;
26140
26140
  }
26141
26141
  };
26142
- hi = new WeakMap(), Lc = new WeakMap(), Tn = new WeakMap(), M2 = new WeakMap(), k2 = new WeakMap(), g0 = new WeakMap(), y0 = new WeakMap(), v0 = new WeakMap(), A2 = new WeakMap(), ut = new WeakSet(), q7 = function({ drawOutlines: t, drawId: r, drawingOptions: i }) {
26142
+ hi = new WeakMap(), Lc = new WeakMap(), In = new WeakMap(), M2 = new WeakMap(), k2 = new WeakMap(), g0 = new WeakMap(), y0 = new WeakMap(), v0 = new WeakMap(), A2 = new WeakMap(), ut = new WeakSet(), q7 = function({ drawOutlines: t, drawId: r, drawingOptions: i }) {
26143
26143
  k(this, hi, t), this._drawingOptions || (this._drawingOptions = i), r >= 0 ? (this._drawId = r, this.parent.drawLayer.finalizeDraw(r, t.defaultProperties)) : this._drawId = O(this, ut, G7).call(this, t, this.parent), O(this, ut, Y1).call(this, t.box);
26144
26144
  }, G7 = function(t, r) {
26145
26145
  const { id: i } = r.drawLayer.draw(ke._mergeSVGProperties(this._drawingOptions.toSVGProperties(), t.defaultSVGProperties), !1, !1);
@@ -26215,15 +26215,15 @@ hi = new WeakMap(), Lc = new WeakMap(), Tn = new WeakMap(), M2 = new WeakMap(),
26215
26215
  default:
26216
26216
  return [t, r, i, s];
26217
26217
  }
26218
- }, Re(ke, "_currentDrawId", -1), Re(ke, "_currentParent", null), I(ke, Tn, null), I(ke, M2, null), I(ke, k2, null), I(ke, g0, NaN), I(ke, y0, null), I(ke, v0, null), I(ke, A2, NaN), Re(ke, "_INNER_MARGIN", 3);
26218
+ }, Re(ke, "_currentDrawId", -1), Re(ke, "_currentParent", null), I(ke, In, null), I(ke, M2, null), I(ke, k2, null), I(ke, g0, NaN), I(ke, y0, null), I(ke, v0, null), I(ke, A2, NaN), Re(ke, "_INNER_MARGIN", 3);
26219
26219
  let W7 = ke;
26220
- var no, In, On, E2, _c, br, zn, Vi, T2, I2, O2, Rc, Gm;
26220
+ var no, On, xn, E2, _c, br, zn, Vi, T2, I2, O2, Rc, Gm;
26221
26221
  class NW {
26222
26222
  constructor(e, t, r, i, s, o) {
26223
26223
  I(this, Rc);
26224
26224
  I(this, no, new Float64Array(6));
26225
- I(this, In);
26226
26225
  I(this, On);
26226
+ I(this, xn);
26227
26227
  I(this, E2);
26228
26228
  I(this, _c);
26229
26229
  I(this, br);
@@ -26233,14 +26233,14 @@ class NW {
26233
26233
  I(this, I2);
26234
26234
  I(this, O2);
26235
26235
  k(this, I2, r), k(this, O2, i), k(this, E2, s), k(this, _c, o), [e, t] = O(this, Rc, Gm).call(this, e, t);
26236
- const a = k(this, In, [NaN, NaN, NaN, NaN, e, t]);
26237
- k(this, br, [e, t]), k(this, On, [{ line: a, points: p(this, br) }]), p(this, no).set(a, 0);
26236
+ const a = k(this, On, [NaN, NaN, NaN, NaN, e, t]);
26237
+ k(this, br, [e, t]), k(this, xn, [{ line: a, points: p(this, br) }]), p(this, no).set(a, 0);
26238
26238
  }
26239
26239
  updateProperty(e, t) {
26240
26240
  e === "stroke-width" && k(this, _c, t);
26241
26241
  }
26242
26242
  isEmpty() {
26243
- return !p(this, On) || p(this, On).length === 0;
26243
+ return !p(this, xn) || p(this, xn).length === 0;
26244
26244
  }
26245
26245
  isCancellable() {
26246
26246
  return p(this, br).length <= 10;
@@ -26248,35 +26248,35 @@ class NW {
26248
26248
  add(e, t) {
26249
26249
  [e, t] = O(this, Rc, Gm).call(this, e, t);
26250
26250
  const [r, i, s, o] = p(this, no).subarray(2, 6), a = e - s, l = t - o;
26251
- return Math.hypot(p(this, I2) * a, p(this, O2) * l) <= 2 ? null : (p(this, br).push(e, t), isNaN(r) ? (p(this, no).set([s, o, e, t], 2), p(this, In).push(NaN, NaN, NaN, NaN, e, t), { path: { d: this.toSVGPath() } }) : (isNaN(p(this, no)[0]) && p(this, In).splice(6, 6), p(this, no).set([r, i, s, o, e, t], 0), p(this, In).push(...Me.createBezierPoints(r, i, s, o, e, t)), { path: { d: this.toSVGPath() } }));
26251
+ return Math.hypot(p(this, I2) * a, p(this, O2) * l) <= 2 ? null : (p(this, br).push(e, t), isNaN(r) ? (p(this, no).set([s, o, e, t], 2), p(this, On).push(NaN, NaN, NaN, NaN, e, t), { path: { d: this.toSVGPath() } }) : (isNaN(p(this, no)[0]) && p(this, On).splice(6, 6), p(this, no).set([r, i, s, o, e, t], 0), p(this, On).push(...Me.createBezierPoints(r, i, s, o, e, t)), { path: { d: this.toSVGPath() } }));
26252
26252
  }
26253
26253
  end(e, t) {
26254
26254
  return this.add(e, t) || (p(this, br).length === 2 ? { path: { d: this.toSVGPath() } } : null);
26255
26255
  }
26256
26256
  startNew(e, t, r, i, s) {
26257
26257
  k(this, I2, r), k(this, O2, i), k(this, E2, s), [e, t] = O(this, Rc, Gm).call(this, e, t);
26258
- const o = k(this, In, [NaN, NaN, NaN, NaN, e, t]);
26258
+ const o = k(this, On, [NaN, NaN, NaN, NaN, e, t]);
26259
26259
  k(this, br, [e, t]);
26260
- const a = p(this, On).at(-1);
26261
- return a && (a.line = new Float32Array(a.line), a.points = new Float32Array(a.points)), p(this, On).push({ line: o, points: p(this, br) }), p(this, no).set(o, 0), k(this, Vi, 0), this.toSVGPath(), null;
26260
+ const a = p(this, xn).at(-1);
26261
+ return a && (a.line = new Float32Array(a.line), a.points = new Float32Array(a.points)), p(this, xn).push({ line: o, points: p(this, br) }), p(this, no).set(o, 0), k(this, Vi, 0), this.toSVGPath(), null;
26262
26262
  }
26263
26263
  getLastElement() {
26264
- return p(this, On).at(-1);
26264
+ return p(this, xn).at(-1);
26265
26265
  }
26266
26266
  setLastElement(e) {
26267
- return p(this, On) ? (p(this, On).push(e), k(this, In, e.line), k(this, br, e.points), k(this, Vi, 0), { path: { d: this.toSVGPath() } }) : p(this, T2).setLastElement(e);
26267
+ return p(this, xn) ? (p(this, xn).push(e), k(this, On, e.line), k(this, br, e.points), k(this, Vi, 0), { path: { d: this.toSVGPath() } }) : p(this, T2).setLastElement(e);
26268
26268
  }
26269
26269
  removeLastElement() {
26270
- if (!p(this, On)) return p(this, T2).removeLastElement();
26271
- p(this, On).pop(), k(this, zn, "");
26272
- for (let e = 0, t = p(this, On).length; e < t; e++) {
26273
- const { line: r, points: i } = p(this, On)[e];
26274
- k(this, In, r), k(this, br, i), k(this, Vi, 0), this.toSVGPath();
26270
+ if (!p(this, xn)) return p(this, T2).removeLastElement();
26271
+ p(this, xn).pop(), k(this, zn, "");
26272
+ for (let e = 0, t = p(this, xn).length; e < t; e++) {
26273
+ const { line: r, points: i } = p(this, xn)[e];
26274
+ k(this, On, r), k(this, br, i), k(this, Vi, 0), this.toSVGPath();
26275
26275
  }
26276
26276
  return { path: { d: p(this, zn) } };
26277
26277
  }
26278
26278
  toSVGPath() {
26279
- const e = Me.svgRound(p(this, In)[4]), t = Me.svgRound(p(this, In)[5]);
26279
+ const e = Me.svgRound(p(this, On)[4]), t = Me.svgRound(p(this, On)[5]);
26280
26280
  if (p(this, br).length === 2)
26281
26281
  return k(this, zn, `${p(this, zn)} M ${e} ${t} Z`), p(this, zn);
26282
26282
  if (p(this, br).length <= 6) {
@@ -26284,26 +26284,26 @@ class NW {
26284
26284
  k(this, zn, `${p(this, zn).slice(0, i)} M ${e} ${t}`), k(this, Vi, 6);
26285
26285
  }
26286
26286
  if (p(this, br).length === 4) {
26287
- const i = Me.svgRound(p(this, In)[10]), s = Me.svgRound(p(this, In)[11]);
26287
+ const i = Me.svgRound(p(this, On)[10]), s = Me.svgRound(p(this, On)[11]);
26288
26288
  return k(this, zn, `${p(this, zn)} L ${i} ${s}`), k(this, Vi, 12), p(this, zn);
26289
26289
  }
26290
26290
  const r = [];
26291
26291
  p(this, Vi) === 0 && (r.push(`M ${e} ${t}`), k(this, Vi, 6));
26292
- for (let i = p(this, Vi), s = p(this, In).length; i < s; i += 6) {
26293
- const [o, a, l, u, c, d] = p(this, In).slice(i, i + 6).map(Me.svgRound);
26292
+ for (let i = p(this, Vi), s = p(this, On).length; i < s; i += 6) {
26293
+ const [o, a, l, u, c, d] = p(this, On).slice(i, i + 6).map(Me.svgRound);
26294
26294
  r.push(`C${o} ${a} ${l} ${u} ${c} ${d}`);
26295
26295
  }
26296
- return k(this, zn, p(this, zn) + r.join(" ")), k(this, Vi, p(this, In).length), p(this, zn);
26296
+ return k(this, zn, p(this, zn) + r.join(" ")), k(this, Vi, p(this, On).length), p(this, zn);
26297
26297
  }
26298
26298
  getOutlines(e, t, r, i) {
26299
- const s = p(this, On).at(-1);
26300
- return s.line = new Float32Array(s.line), s.points = new Float32Array(s.points), p(this, T2).build(p(this, On), e, t, r, p(this, E2), p(this, _c), i), k(this, no, null), k(this, In, null), k(this, On, null), k(this, zn, null), p(this, T2);
26299
+ const s = p(this, xn).at(-1);
26300
+ return s.line = new Float32Array(s.line), s.points = new Float32Array(s.points), p(this, T2).build(p(this, xn), e, t, r, p(this, E2), p(this, _c), i), k(this, no, null), k(this, On, null), k(this, xn, null), k(this, zn, null), p(this, T2);
26301
26301
  }
26302
26302
  get defaultSVGProperties() {
26303
26303
  return { root: { viewBox: "0 0 10000 10000" }, rootClass: { draw: !0 }, bbox: [0, 0, 1, 1] };
26304
26304
  }
26305
26305
  }
26306
- no = new WeakMap(), In = new WeakMap(), On = new WeakMap(), E2 = new WeakMap(), _c = new WeakMap(), br = new WeakMap(), zn = new WeakMap(), Vi = new WeakMap(), T2 = new WeakMap(), I2 = new WeakMap(), O2 = new WeakMap(), Rc = new WeakSet(), Gm = function(e, t) {
26306
+ no = new WeakMap(), On = new WeakMap(), xn = new WeakMap(), E2 = new WeakMap(), _c = new WeakMap(), br = new WeakMap(), zn = new WeakMap(), Vi = new WeakMap(), T2 = new WeakMap(), I2 = new WeakMap(), O2 = new WeakMap(), Rc = new WeakSet(), Gm = function(e, t) {
26307
26307
  return Me._normalizePoint(e, t, p(this, I2), p(this, O2), p(this, E2));
26308
26308
  };
26309
26309
  var wr, Jh, ep, pi, ro, io, $c, Fc, Bc, Wn, xo, PI, LI, _I;
@@ -27083,7 +27083,7 @@ const cs = class cs {
27083
27083
  }
27084
27084
  pointerup(e) {
27085
27085
  var r;
27086
- const { isMac: t } = Tr.platform;
27086
+ const { isMac: t } = Ir.platform;
27087
27087
  !(e.button !== 0 || e.ctrlKey && t) && e.target === this.div && p(this, S0) && (k(this, S0, !1), (r = p(this, $t, js)) != null && r.isDrawer && p(this, $t, js).supportMultipleDrawings || (p(this, zc) ? p(this, Ne).getMode() !== Ge.STAMP ? this.createAndAddNewEditor(e, !1) : p(this, Ne).unselectAll() : k(this, zc, !0)));
27088
27088
  }
27089
27089
  pointerdown(e) {
@@ -27092,7 +27092,7 @@ const cs = class cs {
27092
27092
  k(this, S0, !1);
27093
27093
  return;
27094
27094
  }
27095
- const { isMac: t } = Tr.platform;
27095
+ const { isMac: t } = Ir.platform;
27096
27096
  if (e.button !== 0 || e.ctrlKey && t || e.target !== this.div) return;
27097
27097
  if (k(this, S0, !0), (i = p(this, $t, js)) != null && i.isDrawer) {
27098
27098
  this.startDrawingSession(e);
@@ -27164,7 +27164,7 @@ x2 = new WeakMap(), zc = new WeakMap(), ao = new WeakMap(), C0 = new WeakMap(),
27164
27164
  p(this, Ne).unselectAll();
27165
27165
  const { target: t } = e;
27166
27166
  if (t === p(this, rr).div || (t.getAttribute("role") === "img" || t.classList.contains("endOfContent")) && p(this, rr).div.contains(t)) {
27167
- const { isMac: r } = Tr.platform;
27167
+ const { isMac: r } = Ir.platform;
27168
27168
  if (e.button !== 0 || e.ctrlKey && r) return;
27169
27169
  p(this, Ne).showAllEditors("highlight", !0, !0), p(this, rr).div.classList.add("free"), this.toggleDrawing(), I3.startHighlighting(this, p(this, Ne).direction === "ltr", { target: p(this, rr).div, x: e.x, y: e.y }), p(this, rr).div.addEventListener("pointerup", () => {
27170
27170
  p(this, rr).div.classList.remove("free"), this.toggleDrawing(!0);
@@ -27607,7 +27607,7 @@ const vp = /* @__PURE__ */ Be(HW, [["render", ZW], ["__scopeId", "data-v-fac0204
27607
27607
  }, a = $(null), l = q(() => {
27608
27608
  var j;
27609
27609
  return (j = a.value) == null ? void 0 : j.offsetWidth;
27610
- }), u = $(null), c = $([]), d = $(!1), f = $(null), h = $("0"), m = $(1), y = $(Cn.md ? 1 : 0.9), g = $(0), v = $(null), b = $(!1), S = $(), C = $({}), T = $(!1), M = $(!1), E = q(() => [
27610
+ }), u = $(null), c = $([]), d = $(!1), f = $(null), h = $("0"), m = $(1), y = $(Sn.md ? 1 : 0.9), g = $(0), v = $(null), b = $(!1), S = $(), C = $({}), T = $(!1), M = $(!1), E = q(() => [
27611
27611
  `z-[${n.baseZIndex + 1}]`
27612
27612
  ]), N = q(() => n.files.map((j) => {
27613
27613
  const le = j instanceof File, ve = le ? j.name : j.original.url, de = ee(
@@ -27742,7 +27742,7 @@ const vp = /* @__PURE__ */ Be(HW, [["render", ZW], ["__scopeId", "data-v-fac0204
27742
27742
  onLongPressCallbackHook: Y,
27743
27743
  resetHook: Q,
27744
27744
  // Composable
27745
- mq: Cn
27745
+ mq: Sn
27746
27746
  };
27747
27747
  }
27748
27748
  }), qW = ["id"], GW = ["id"], KW = ["src", "alt"], YW = ["id", "alt", "src"], QW = ["id", "onMouseover", "onClick"], XW = ["alt", "src"], JW = {
@@ -27797,7 +27797,7 @@ function aq(n, e, t, r, i, s) {
27797
27797
  src: m == null ? void 0 : m.url,
27798
27798
  alt: m == null ? void 0 : m.alt,
27799
27799
  class: B(n.itemClasses),
27800
- style: yn([
27800
+ style: vn([
27801
27801
  { left: n.left, opacity: n.opacity },
27802
27802
  `transform: scale(${n.scale})`
27803
27803
  ])
@@ -28051,7 +28051,7 @@ const VI = /* @__PURE__ */ Be(WW, [["render", aq], ["__scopeId", "data-v-2a903c0
28051
28051
  }
28052
28052
  }),
28053
28053
  // Composables
28054
- mq: Cn
28054
+ mq: Sn
28055
28055
  };
28056
28056
  }
28057
28057
  }), uq = {
@@ -28290,7 +28290,7 @@ function bq(n, e, t, r, i, s) {
28290
28290
  "popover-on-" + n.positioning,
28291
28291
  { "has-caret": n.hasCaret }
28292
28292
  ]),
28293
- style: yn(n.offsetStyle)
28293
+ style: vn(n.offsetStyle)
28294
28294
  }, [
28295
28295
  H(n.$slots, "content", {}, void 0, !0)
28296
28296
  ], 6)) : L("", !0)
@@ -31549,7 +31549,7 @@ class Kc extends hr {
31549
31549
  }
31550
31550
  }
31551
31551
  hr.jsonID("removeNodeMark", Kc);
31552
- class xn extends hr {
31552
+ class Dn extends hr {
31553
31553
  /**
31554
31554
  The given `slice` should fit the 'gap' between `from` and
31555
31555
  `to`—the depths must line up, and the surrounding nodes must be
@@ -31569,21 +31569,21 @@ class xn extends hr {
31569
31569
  return new vi([this.from, this.to - this.from, this.slice.size]);
31570
31570
  }
31571
31571
  invert(e) {
31572
- return new xn(this.from, this.from + this.slice.size, e.slice(this.from, this.to));
31572
+ return new Dn(this.from, this.from + this.slice.size, e.slice(this.from, this.to));
31573
31573
  }
31574
31574
  map(e) {
31575
31575
  let t = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1);
31576
- return t.deletedAcross && r.deletedAcross ? null : new xn(t.pos, Math.max(t.pos, r.pos), this.slice);
31576
+ return t.deletedAcross && r.deletedAcross ? null : new Dn(t.pos, Math.max(t.pos, r.pos), this.slice);
31577
31577
  }
31578
31578
  merge(e) {
31579
- if (!(e instanceof xn) || e.structure || this.structure)
31579
+ if (!(e instanceof Dn) || e.structure || this.structure)
31580
31580
  return null;
31581
31581
  if (this.from + this.slice.size == e.from && !this.slice.openEnd && !e.slice.openStart) {
31582
31582
  let t = this.slice.size + e.slice.size == 0 ? Ce.empty : new Ce(this.slice.content.append(e.slice.content), this.slice.openStart, e.slice.openEnd);
31583
- return new xn(this.from, this.to + (e.to - e.from), t, this.structure);
31583
+ return new Dn(this.from, this.to + (e.to - e.from), t, this.structure);
31584
31584
  } else if (e.to == this.from && !this.slice.openStart && !e.slice.openEnd) {
31585
31585
  let t = this.slice.size + e.slice.size == 0 ? Ce.empty : new Ce(e.slice.content.append(this.slice.content), e.slice.openStart, this.slice.openEnd);
31586
- return new xn(e.from, this.to, t, this.structure);
31586
+ return new Dn(e.from, this.to, t, this.structure);
31587
31587
  } else
31588
31588
  return null;
31589
31589
  }
@@ -31597,10 +31597,10 @@ class xn extends hr {
31597
31597
  static fromJSON(e, t) {
31598
31598
  if (typeof t.from != "number" || typeof t.to != "number")
31599
31599
  throw new RangeError("Invalid input for ReplaceStep.fromJSON");
31600
- return new xn(t.from, t.to, Ce.fromJSON(e, t.slice), !!t.structure);
31600
+ return new Dn(t.from, t.to, Ce.fromJSON(e, t.slice), !!t.structure);
31601
31601
  }
31602
31602
  }
31603
- hr.jsonID("replace", xn);
31603
+ hr.jsonID("replace", Dn);
31604
31604
  class Ln extends hr {
31605
31605
  /**
31606
31606
  Create a replace-around step with the given range and gap.
@@ -31717,7 +31717,7 @@ function Zq(n, e, t, r = t.contentMatch) {
31717
31717
  for (let a = 0; a < i.childCount; a++) {
31718
31718
  let l = i.child(a), u = o + l.nodeSize, c = r.matchType(l.type);
31719
31719
  if (!c)
31720
- s.push(new xn(o, u, Ce.empty));
31720
+ s.push(new Dn(o, u, Ce.empty));
31721
31721
  else {
31722
31722
  r = c;
31723
31723
  for (let d = 0; d < l.marks.length; d++)
@@ -31725,7 +31725,7 @@ function Zq(n, e, t, r = t.contentMatch) {
31725
31725
  if (l.isText && !t.spec.code) {
31726
31726
  let d, f = /\r?\n|\r/g, h;
31727
31727
  for (; d = f.exec(l.text); )
31728
- h || (h = new Ce(me.from(t.schema.text(" ", t.allowedMarks(l.marks))), 0, 0)), s.push(new xn(o + d.index, o + d.index + d[0].length, h));
31728
+ h || (h = new Ce(me.from(t.schema.text(" ", t.allowedMarks(l.marks))), 0, 0)), s.push(new Dn(o + d.index, o + d.index + d[0].length, h));
31729
31729
  }
31730
31730
  }
31731
31731
  o = u;
@@ -31848,7 +31848,7 @@ function eG(n, e, t = 1, r) {
31848
31848
  let c = r && r[u];
31849
31849
  o = me.from(c ? c.type.create(c.attrs, o) : i.node(a).copy(o));
31850
31850
  }
31851
- n.step(new xn(e, e, new Ce(s.append(o), t, t), !0));
31851
+ n.step(new Dn(e, e, new Ce(s.append(o), t, t), !0));
31852
31852
  }
31853
31853
  function q0(n, e) {
31854
31854
  let t = n.resolve(e), r = t.index();
@@ -31869,7 +31869,7 @@ function b5(n, e, t = -1) {
31869
31869
  }
31870
31870
  }
31871
31871
  function tG(n, e, t) {
31872
- let r = new xn(e - t, e + t, Ce.empty, !0);
31872
+ let r = new Dn(e - t, e + t, Ce.empty, !0);
31873
31873
  n.step(r);
31874
31874
  }
31875
31875
  function nG(n, e, t) {
@@ -31919,7 +31919,7 @@ function w5(n, e, t = e, r = Ce.empty) {
31919
31919
  if (e == t && !r.size)
31920
31920
  return null;
31921
31921
  let i = n.resolve(e), s = n.resolve(t);
31922
- return fO(i, s, r) ? new xn(e, t, r) : new rG(i, s, r).fit();
31922
+ return fO(i, s, r) ? new Dn(e, t, r) : new rG(i, s, r).fit();
31923
31923
  }
31924
31924
  function fO(n, e, t) {
31925
31925
  return !t.openStart && !t.openEnd && n.start() == e.start() && n.parent.canReplace(n.index(), e.index(), t.content);
@@ -31952,7 +31952,7 @@ class rG {
31952
31952
  for (; o && a && s.childCount == 1; )
31953
31953
  s = s.firstChild.content, o--, a--;
31954
31954
  let l = new Ce(s, o, a);
31955
- return e > -1 ? new Ln(r.pos, e, this.$to.pos, this.$to.end(), l, t) : l.size || r.pos != this.$to.pos ? new xn(r.pos, i.pos, l) : null;
31955
+ return e > -1 ? new Ln(r.pos, e, this.$to.pos, this.$to.end(), l, t) : l.size || r.pos != this.$to.pos ? new Dn(r.pos, i.pos, l) : null;
31956
31956
  }
31957
31957
  // Find a position on the start spine of `this.unplaced` that has
31958
31958
  // content that can be moved somewhere on the frontier. Returns two
@@ -32109,7 +32109,7 @@ function oG(n, e, t, r) {
32109
32109
  return n.deleteRange(e, t);
32110
32110
  let i = n.doc.resolve(e), s = n.doc.resolve(t);
32111
32111
  if (fO(i, s, r))
32112
- return n.step(new xn(e, t, r));
32112
+ return n.step(new Dn(e, t, r));
32113
32113
  let o = mO(i, n.doc.resolve(t));
32114
32114
  o[o.length - 1] == 0 && o.pop();
32115
32115
  let a = -(i.depth + 1);
@@ -32882,7 +32882,7 @@ function rC(n, e, t) {
32882
32882
  if (r < e)
32883
32883
  return;
32884
32884
  let i = n.steps[r];
32885
- if (!(i instanceof xn || i instanceof Ln))
32885
+ if (!(i instanceof Dn || i instanceof Ln))
32886
32886
  return;
32887
32887
  let s = n.mapping.maps[r], o;
32888
32888
  s.forEach((a, l, u, c) => {
@@ -33383,7 +33383,7 @@ function gG(n, e, t) {
33383
33383
  }
33384
33384
  const go = typeof navigator < "u" ? navigator : null, cC = typeof document < "u" ? document : null, G0 = go && go.userAgent || "", f8 = /Edge\/(\d+)/.exec(G0), bO = /MSIE \d/.exec(G0), h8 = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(G0), Kr = !!(bO || h8 || f8), N0 = bO ? document.documentMode : h8 ? +h8[1] : f8 ? +f8[1] : 0, Ds = !Kr && /gecko\/(\d+)/i.test(G0);
33385
33385
  Ds && +(/Firefox\/(\d+)/.exec(G0) || [0, 0])[1];
33386
- const p8 = !Kr && /Chrome\/(\d+)/.exec(G0), cr = !!p8, yG = p8 ? +p8[1] : 0, xr = !Kr && !!go && /Apple Computer/.test(go.vendor), Qc = xr && (/Mobile\/\w+/.test(G0) || !!go && go.maxTouchPoints > 2), zi = Qc || (go ? /Mac/.test(go.platform) : !1), vG = go ? /Win/.test(go.platform) : !1, ks = /Android \d/.test(G0), bp = !!cC && "webkitFontSmoothing" in cC.documentElement.style, bG = bp ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
33386
+ const p8 = !Kr && /Chrome\/(\d+)/.exec(G0), cr = !!p8, yG = p8 ? +p8[1] : 0, Dr = !Kr && !!go && /Apple Computer/.test(go.vendor), Qc = Dr && (/Mobile\/\w+/.test(G0) || !!go && go.maxTouchPoints > 2), zi = Qc || (go ? /Mac/.test(go.platform) : !1), vG = go ? /Win/.test(go.platform) : !1, ks = /Android \d/.test(G0), bp = !!cC && "webkitFontSmoothing" in cC.documentElement.style, bG = bp ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
33387
33387
  function wG(n) {
33388
33388
  return {
33389
33389
  left: 0,
@@ -33561,7 +33561,7 @@ function OG(n, e) {
33561
33561
  if (!t9(e, u) || (o = MO(n.dom, e, u), !o))
33562
33562
  return null;
33563
33563
  }
33564
- if (xr)
33564
+ if (Dr)
33565
33565
  for (let u = o; r && u; u = Gd(u))
33566
33566
  u.draggable && (r = void 0);
33567
33567
  if (o = EG(o, e), r) {
@@ -33963,7 +33963,7 @@ class wp {
33963
33963
  h = y;
33964
33964
  }
33965
33965
  let a = this.domFromPos(e, e ? -1 : 1), l = t == e ? a : this.domFromPos(t, t ? -1 : 1), u = r.getSelection(), c = !1;
33966
- if ((Ds || xr) && e == t) {
33966
+ if ((Ds || Dr) && e == t) {
33967
33967
  let { node: f, offset: h } = a;
33968
33968
  if (f.nodeType == 3) {
33969
33969
  if (c = !!(h && f.nodeValue[h - 1] == `
@@ -33986,7 +33986,7 @@ class wp {
33986
33986
  let f = u.focusNode.childNodes[u.focusOffset];
33987
33987
  f && f.contentEditable == "false" && (i = !0);
33988
33988
  }
33989
- if (!(i || c && xr) && G2(a.node, a.offset, u.anchorNode, u.anchorOffset) && G2(l.node, l.offset, u.focusNode, u.focusOffset))
33989
+ if (!(i || c && Dr) && G2(a.node, a.offset, u.anchorNode, u.anchorOffset) && G2(l.node, l.offset, u.focusNode, u.focusOffset))
33990
33990
  return;
33991
33991
  let d = !1;
33992
33992
  if ((u.extend || e == t) && !c) {
@@ -34573,7 +34573,7 @@ class FG {
34573
34573
  for (; e instanceof K2; )
34574
34574
  t = e, e = t.children[t.children.length - 1];
34575
34575
  (!e || // Empty textblock
34576
- !(e instanceof M5) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((xr || cr) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", t), this.addHackNode("BR", this.top));
34576
+ !(e instanceof M5) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((Dr || cr) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", t), this.addHackNode("BR", this.top));
34577
34577
  }
34578
34578
  addHackNode(e, t) {
34579
34579
  if (t == this.top && this.index < t.children.length && t.children[this.index].matchesHack(e))
@@ -34769,10 +34769,10 @@ function ha(n, e = !1) {
34769
34769
  n.domObserver.setCurSelection(), n.domObserver.connectSelection();
34770
34770
  }
34771
34771
  }
34772
- const bC = xr || cr && yG < 63;
34772
+ const bC = Dr || cr && yG < 63;
34773
34773
  function wC(n, e) {
34774
34774
  let { node: t, offset: r } = n.docView.domFromPos(e, 0), i = r < t.childNodes.length ? t.childNodes[r] : null, s = r ? t.childNodes[r - 1] : null;
34775
- if (xr && i && i.contentEditable == "false")
34775
+ if (Dr && i && i.contentEditable == "false")
34776
34776
  return P4(i);
34777
34777
  if ((!i || i.contentEditable == "false") && (!s || s.contentEditable == "false")) {
34778
34778
  if (i)
@@ -34782,7 +34782,7 @@ function wC(n, e) {
34782
34782
  }
34783
34783
  }
34784
34784
  function P4(n) {
34785
- return n.contentEditable = "true", xr && n.draggable && (n.draggable = !1, n.wasDraggable = !0), n;
34785
+ return n.contentEditable = "true", Dr && n.draggable && (n.draggable = !1, n.wasDraggable = !0), n;
34786
34786
  }
34787
34787
  function CC(n) {
34788
34788
  n.contentEditable = "false", n.wasDraggable && (n.draggable = !0, n.wasDraggable = null);
@@ -35044,7 +35044,7 @@ function IC(n, e, t) {
35044
35044
  n.domObserver.stop(), e.contentEditable = t, n.domObserver.start();
35045
35045
  }
35046
35046
  function XG(n) {
35047
- if (!xr || n.state.selection.$head.parentOffset > 0)
35047
+ if (!Dr || n.state.selection.$head.parentOffset > 0)
35048
35048
  return !1;
35049
35049
  let { focusNode: e, focusOffset: t } = n.domSelectionRange();
35050
35050
  if (e && e.nodeType == 1 && t == 0 && e.firstChild && e.firstChild.contentEditable == "false") {
@@ -35264,20 +35264,20 @@ function sK(n, e) {
35264
35264
  }
35265
35265
  return new Ce(i, s, o);
35266
35266
  }
35267
- const Dr = {}, Nr = {}, oK = { touchstart: !0, touchmove: !0 };
35267
+ const Nr = {}, Pr = {}, oK = { touchstart: !0, touchmove: !0 };
35268
35268
  class aK {
35269
35269
  constructor() {
35270
35270
  this.shiftKey = !1, this.mouseDown = null, this.lastKeyCode = null, this.lastKeyCodeTime = 0, this.lastClick = { time: 0, x: 0, y: 0, type: "" }, this.lastSelectionOrigin = null, this.lastSelectionTime = 0, this.lastIOSEnter = 0, this.lastIOSEnterFallbackTimeout = -1, this.lastFocus = 0, this.lastTouch = 0, this.lastAndroidDelete = 0, this.composing = !1, this.composingTimeout = -1, this.compositionNodes = [], this.compositionEndedAt = -2e8, this.compositionID = 1, this.compositionPendingChanges = 0, this.domChangeCount = 0, this.eventHandlers = /* @__PURE__ */ Object.create(null), this.hideSelectionGuard = null;
35271
35271
  }
35272
35272
  }
35273
35273
  function lK(n) {
35274
- for (let e in Dr) {
35275
- let t = Dr[e];
35274
+ for (let e in Nr) {
35275
+ let t = Nr[e];
35276
35276
  n.dom.addEventListener(e, n.input.eventHandlers[e] = (r) => {
35277
- cK(n, r) && !i9(n, r) && (n.editable || !(r.type in Nr)) && t(n, r);
35277
+ cK(n, r) && !i9(n, r) && (n.editable || !(r.type in Pr)) && t(n, r);
35278
35278
  }, oK[e] ? { passive: !0 } : void 0);
35279
35279
  }
35280
- xr && n.dom.addEventListener("input", () => null), C8(n);
35280
+ Dr && n.dom.addEventListener("input", () => null), C8(n);
35281
35281
  }
35282
35282
  function I0(n, e) {
35283
35283
  n.input.lastSelectionOrigin = e, n.input.lastSelectionTime = Date.now();
@@ -35311,9 +35311,9 @@ function cK(n, e) {
35311
35311
  return !0;
35312
35312
  }
35313
35313
  function dK(n, e) {
35314
- !i9(n, e) && Dr[e.type] && (n.editable || !(e.type in Nr)) && Dr[e.type](n, e);
35314
+ !i9(n, e) && Nr[e.type] && (n.editable || !(e.type in Pr)) && Nr[e.type](n, e);
35315
35315
  }
35316
- Nr.keydown = (n, e) => {
35316
+ Pr.keydown = (n, e) => {
35317
35317
  let t = e;
35318
35318
  if (n.input.shiftKey = t.keyCode == 16 || t.shiftKey, !zO(n, t) && (n.input.lastKeyCode = t.keyCode, n.input.lastKeyCodeTime = Date.now(), !(ks && cr && t.keyCode == 13)))
35319
35319
  if (t.keyCode != 229 && n.domObserver.forceFlush(), Qc && t.keyCode == 13 && !t.ctrlKey && !t.altKey && !t.metaKey) {
@@ -35323,10 +35323,10 @@ Nr.keydown = (n, e) => {
35323
35323
  }, 200);
35324
35324
  } else n.someProp("handleKeyDown", (r) => r(n, t)) || eK(n, t) ? t.preventDefault() : I0(n, "key");
35325
35325
  };
35326
- Nr.keyup = (n, e) => {
35326
+ Pr.keyup = (n, e) => {
35327
35327
  e.keyCode == 16 && (n.input.shiftKey = !1);
35328
35328
  };
35329
- Nr.keypress = (n, e) => {
35329
+ Pr.keypress = (n, e) => {
35330
35330
  let t = e;
35331
35331
  if (zO(n, t) || !t.charCode || t.ctrlKey && !t.altKey || zi && t.metaKey)
35332
35332
  return;
@@ -35413,7 +35413,7 @@ function o9(n) {
35413
35413
  return F3(n);
35414
35414
  }
35415
35415
  const HO = zi ? "metaKey" : "ctrlKey";
35416
- Dr.mousedown = (n, e) => {
35416
+ Nr.mousedown = (n, e) => {
35417
35417
  let t = e;
35418
35418
  n.input.shiftKey = t.shiftKey;
35419
35419
  let r = o9(n), i = Date.now(), s = "singleClick";
@@ -35451,7 +35451,7 @@ class bK {
35451
35451
  return;
35452
35452
  let t = this.pos;
35453
35453
  this.view.state.doc != this.startDoc && (t = this.view.posAtCoords(k5(e))), this.updateAllowDefault(e), this.allowDefault || !t ? I0(this.view, "pointer") : mK(this.view, t.pos, t.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
35454
- xr && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
35454
+ Dr && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
35455
35455
  // cursor, but still report that the node is selected
35456
35456
  // when asked through getSelection. You'll then get a
35457
35457
  // situation where clicking at the point where that
@@ -35467,18 +35467,18 @@ class bK {
35467
35467
  !this.allowDefault && (Math.abs(this.event.x - e.clientX) > 4 || Math.abs(this.event.y - e.clientY) > 4) && (this.allowDefault = !0);
35468
35468
  }
35469
35469
  }
35470
- Dr.touchstart = (n) => {
35470
+ Nr.touchstart = (n) => {
35471
35471
  n.input.lastTouch = Date.now(), o9(n), I0(n, "pointer");
35472
35472
  };
35473
- Dr.touchmove = (n) => {
35473
+ Nr.touchmove = (n) => {
35474
35474
  n.input.lastTouch = Date.now(), I0(n, "pointer");
35475
35475
  };
35476
- Dr.contextmenu = (n) => o9(n);
35476
+ Nr.contextmenu = (n) => o9(n);
35477
35477
  function zO(n, e) {
35478
- return n.composing ? !0 : xr && Math.abs(e.timeStamp - n.input.compositionEndedAt) < 500 ? (n.input.compositionEndedAt = -2e8, !0) : !1;
35478
+ return n.composing ? !0 : Dr && Math.abs(e.timeStamp - n.input.compositionEndedAt) < 500 ? (n.input.compositionEndedAt = -2e8, !0) : !1;
35479
35479
  }
35480
35480
  const wK = ks ? 5e3 : -1;
35481
- Nr.compositionstart = Nr.compositionupdate = (n) => {
35481
+ Pr.compositionstart = Pr.compositionupdate = (n) => {
35482
35482
  if (!n.composing) {
35483
35483
  n.domObserver.flush();
35484
35484
  let { state: e } = n, t = e.selection.$from;
@@ -35501,7 +35501,7 @@ Nr.compositionstart = Nr.compositionupdate = (n) => {
35501
35501
  }
35502
35502
  UO(n, wK);
35503
35503
  };
35504
- Nr.compositionend = (n, e) => {
35504
+ Pr.compositionend = (n, e) => {
35505
35505
  n.composing && (n.input.composing = !1, n.input.compositionEndedAt = e.timeStamp, n.input.compositionPendingChanges = n.domObserver.pendingRecords().length ? n.input.compositionID : 0, n.input.compositionPendingChanges && Promise.resolve().then(() => n.domObserver.flush()), n.input.compositionID++, UO(n, 20));
35506
35506
  };
35507
35507
  function UO(n, e) {
@@ -35535,7 +35535,7 @@ function SK(n, e) {
35535
35535
  }, 50);
35536
35536
  }
35537
35537
  const Kd = Kr && N0 < 15 || Qc && bG < 604;
35538
- Dr.copy = Nr.cut = (n, e) => {
35538
+ Nr.copy = Pr.cut = (n, e) => {
35539
35539
  let t = e, r = n.state.selection, i = t.type == "cut";
35540
35540
  if (r.empty)
35541
35541
  return;
@@ -35571,7 +35571,7 @@ function WO(n) {
35571
35571
  let t = n.getData("text/uri-list");
35572
35572
  return t ? t.replace(/\r?\n/g, " ") : "";
35573
35573
  }
35574
- Nr.paste = (n, e) => {
35574
+ Pr.paste = (n, e) => {
35575
35575
  let t = e;
35576
35576
  if (n.composing && !ks)
35577
35577
  return;
@@ -35584,7 +35584,7 @@ class qO {
35584
35584
  }
35585
35585
  }
35586
35586
  const GO = zi ? "altKey" : "ctrlKey";
35587
- Dr.dragstart = (n, e) => {
35587
+ Nr.dragstart = (n, e) => {
35588
35588
  let t = e, r = n.input.mouseDown;
35589
35589
  if (r && r.done(), !t.dataTransfer)
35590
35590
  return;
@@ -35600,14 +35600,14 @@ Dr.dragstart = (n, e) => {
35600
35600
  let a = (o || n.state.selection).content(), { dom: l, text: u } = _O(n, a);
35601
35601
  t.dataTransfer.clearData(), t.dataTransfer.setData(Kd ? "Text" : "text/html", l.innerHTML), t.dataTransfer.effectAllowed = "copyMove", Kd || t.dataTransfer.setData("text/plain", u), n.dragging = new qO(a, !t[GO], o);
35602
35602
  };
35603
- Dr.dragend = (n) => {
35603
+ Nr.dragend = (n) => {
35604
35604
  let e = n.dragging;
35605
35605
  window.setTimeout(() => {
35606
35606
  n.dragging == e && (n.dragging = null);
35607
35607
  }, 50);
35608
35608
  };
35609
- Nr.dragover = Nr.dragenter = (n, e) => e.preventDefault();
35610
- Nr.drop = (n, e) => {
35609
+ Pr.dragover = Pr.dragenter = (n, e) => e.preventDefault();
35610
+ Pr.drop = (n, e) => {
35611
35611
  let t = e, r = n.dragging;
35612
35612
  if (n.dragging = null, !t.dataTransfer)
35613
35613
  return;
@@ -35645,16 +35645,16 @@ Nr.drop = (n, e) => {
35645
35645
  }
35646
35646
  n.focus(), n.dispatch(u.setMeta("uiEvent", "drop"));
35647
35647
  };
35648
- Dr.focus = (n) => {
35648
+ Nr.focus = (n) => {
35649
35649
  n.input.lastFocus = Date.now(), n.focused || (n.domObserver.stop(), n.dom.classList.add("ProseMirror-focused"), n.domObserver.start(), n.focused = !0, setTimeout(() => {
35650
35650
  n.docView && n.hasFocus() && !n.domObserver.currentSelection.eq(n.domSelectionRange()) && ha(n);
35651
35651
  }, 20));
35652
35652
  };
35653
- Dr.blur = (n, e) => {
35653
+ Nr.blur = (n, e) => {
35654
35654
  let t = e;
35655
35655
  n.focused && (n.domObserver.stop(), n.dom.classList.remove("ProseMirror-focused"), n.domObserver.start(), t.relatedTarget && n.dom.contains(t.relatedTarget) && n.domObserver.currentSelection.clear(), n.focused = !1);
35656
35656
  };
35657
- Dr.beforeinput = (n, e) => {
35657
+ Nr.beforeinput = (n, e) => {
35658
35658
  if (cr && ks && e.inputType == "deleteContentBackward") {
35659
35659
  n.domObserver.flushSoon();
35660
35660
  let { domChangeCount: r } = n.input;
@@ -35666,8 +35666,8 @@ Dr.beforeinput = (n, e) => {
35666
35666
  }, 50);
35667
35667
  }
35668
35668
  };
35669
- for (let n in Nr)
35670
- Dr[n] = Nr[n];
35669
+ for (let n in Pr)
35670
+ Nr[n] = Pr[n];
35671
35671
  function Qd(n, e) {
35672
35672
  if (n == e)
35673
35673
  return !0;
@@ -36376,10 +36376,10 @@ function LK(n) {
36376
36376
  if (e)
36377
36377
  return e.parseRule();
36378
36378
  if (n.nodeName == "BR" && n.parentNode) {
36379
- if (xr && /^(ul|ol)$/i.test(n.parentNode.nodeName)) {
36379
+ if (Dr && /^(ul|ol)$/i.test(n.parentNode.nodeName)) {
36380
36380
  let t = document.createElement("div");
36381
36381
  return t.appendChild(document.createElement("li")), { skip: t };
36382
- } else if (n.parentNode.lastChild == n || xr && /^(tr|table)$/i.test(n.parentNode.nodeName))
36382
+ } else if (n.parentNode.lastChild == n || Dr && /^(tr|table)$/i.test(n.parentNode.nodeName))
36383
36383
  return { ignore: !0 };
36384
36384
  } else if (n.nodeName == "IMG" && n.getAttribute("mark-placeholder"))
36385
36385
  return { ignore: !0 };
@@ -36850,7 +36850,7 @@ class jK {
36850
36850
  @internal
36851
36851
  */
36852
36852
  domSelectionRange() {
36853
- return xr && this.root.nodeType === 11 && mG(this.dom.ownerDocument) == this.dom ? NK(this) : this.domSelection();
36853
+ return Dr && this.root.nodeType === 11 && mG(this.dom.ownerDocument) == this.dom ? NK(this) : this.domSelection();
36854
36854
  }
36855
36855
  /**
36856
36856
  @internal
@@ -37108,7 +37108,7 @@ function tx(n, e, t) {
37108
37108
  a = c;
37109
37109
  }
37110
37110
  let u = w5(n.doc, s, l, Ce.empty);
37111
- if (!u || u.from != s || u instanceof xn && u.slice.size >= l - s)
37111
+ if (!u || u.from != s || u instanceof Dn && u.slice.size >= l - s)
37112
37112
  return !1;
37113
37113
  if (t) {
37114
37114
  let c = n.tr.step(u);
@@ -38426,7 +38426,7 @@ function GY(n, e, t) {
38426
38426
  if (r < e)
38427
38427
  return;
38428
38428
  const i = n.steps[r];
38429
- if (!(i instanceof xn || i instanceof Ln))
38429
+ if (!(i instanceof Dn || i instanceof Ln))
38430
38430
  return;
38431
38431
  const s = n.mapping.maps[r];
38432
38432
  let o = 0;
@@ -40580,8 +40580,8 @@ function tJ(n) {
40580
40580
  var te, K = C === "y" ? Yr : Qr, re = C === "y" ? es : ts, ie = C === "y" ? "height" : "width", W = M[C], ue = W + g[K], Z = W - g[re], oe = h ? -N[ie] / 2 : 0, ge = b === e1 ? E[ie] : N[ie], ce = b === e1 ? -N[ie] : -E[ie], ee = e.elements.arrow, Y = h && ee ? M9(ee) : {
40581
40581
  width: 0,
40582
40582
  height: 0
40583
- }, Q = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Ax(), j = Q[K], le = Q[re], ve = hd(0, E[ie], Y[ie]), de = S ? E[ie] / 2 - oe - ve - j - F.mainAxis : ge - ve - j - F.mainAxis, pe = S ? -E[ie] / 2 + oe + ve + le + F.mainAxis : ce + ve + le + F.mainAxis, De = e.elements.arrow && Mp(e.elements.arrow), Ue = De ? C === "y" ? De.clientTop || 0 : De.clientLeft || 0 : 0, it = (te = R == null ? void 0 : R[C]) != null ? te : 0, fn = W + de - it - Ue, Yn = W + pe - it, Sn = hd(h ? U3(ue, fn) : ue, W, h ? B2(Z, Yn) : Z);
40584
- M[C] = Sn, U[C] = Sn - W;
40583
+ }, Q = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Ax(), j = Q[K], le = Q[re], ve = hd(0, E[ie], Y[ie]), de = S ? E[ie] / 2 - oe - ve - j - F.mainAxis : ge - ve - j - F.mainAxis, pe = S ? -E[ie] / 2 + oe + ve + le + F.mainAxis : ce + ve + le + F.mainAxis, De = e.elements.arrow && Mp(e.elements.arrow), Ue = De ? C === "y" ? De.clientTop || 0 : De.clientLeft || 0 : 0, it = (te = R == null ? void 0 : R[C]) != null ? te : 0, fn = W + de - it - Ue, Yn = W + pe - it, Mn = hd(h ? U3(ue, fn) : ue, W, h ? B2(Z, Yn) : Z);
40584
+ M[C] = Mn, U[C] = Mn - W;
40585
40585
  }
40586
40586
  if (a) {
40587
40587
  var Qn, ss = C === "x" ? Yr : Qr, Ia = C === "x" ? es : ts, hn = M[T], pr = T === "y" ? "height" : "width", Ls = hn + g[ss], xi = hn - g[Ia], as = [Yr, Qr].indexOf(v) !== -1, ko = (Qn = R == null ? void 0 : R[T]) != null ? Qn : 0, St = as ? Ls : hn - E[pr] - N[pr] - ko + F.altAxis, ae = as ? hn + E[pr] + N[pr] - ko - F.altAxis : xi, he = h && as ? AX(St, hn, ae) : hd(h ? St : Ls, hn, h ? ae : xi);
@@ -41331,10 +41331,10 @@ function VJ(n, e) {
41331
41331
  pe("mouseleave", Yn);
41332
41332
  break;
41333
41333
  case "focus":
41334
- pe(DJ ? "focusout" : "blur", Sn);
41334
+ pe(DJ ? "focusout" : "blur", Mn);
41335
41335
  break;
41336
41336
  case "focusin":
41337
- pe("focusout", Sn);
41337
+ pe("focusout", Mn);
41338
41338
  break;
41339
41339
  }
41340
41340
  });
@@ -41378,7 +41378,7 @@ function VJ(n, e) {
41378
41378
  xi(se);
41379
41379
  }
41380
41380
  }
41381
- function Sn(se) {
41381
+ function Mn(se) {
41382
41382
  C.props.trigger.indexOf("focusin") < 0 && se.target !== te() || C.props.interactive && se.relatedTarget && M.contains(se.relatedTarget) || xi(se);
41383
41383
  }
41384
41384
  function Qn(se) {
@@ -41900,7 +41900,7 @@ const ZJ = Ae({
41900
41900
  },
41901
41901
  setup(n) {
41902
41902
  const e = $(), t = ka();
41903
- return wn(() => {
41903
+ return Cn(() => {
41904
41904
  const r = n.editor;
41905
41905
  r && r.options.element && e.value && ln(() => {
41906
41906
  if (!e.value || !r.options.element.firstChild)
@@ -54918,8 +54918,8 @@ function vte(n) {
54918
54918
  var te, K = C === "y" ? Xr : Jr, re = C === "y" ? ns : rs, ie = C === "y" ? "height" : "width", W = M[C], ue = W + g[K], Z = W - g[re], oe = h ? -N[ie] / 2 : 0, ge = b === s1 ? E[ie] : N[ie], ce = b === s1 ? -N[ie] : -E[ie], ee = e.elements.arrow, Y = h && ee ? L9(ee) : {
54919
54919
  width: 0,
54920
54920
  height: 0
54921
- }, Q = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Xx(), j = Q[K], le = Q[re], ve = gd(0, E[ie], Y[ie]), de = S ? E[ie] / 2 - oe - ve - j - F.mainAxis : ge - ve - j - F.mainAxis, pe = S ? -E[ie] / 2 + oe + ve + le + F.mainAxis : ce + ve + le + F.mainAxis, De = e.elements.arrow && Ap(e.elements.arrow), Ue = De ? C === "y" ? De.clientTop || 0 : De.clientLeft || 0 : 0, it = (te = R == null ? void 0 : R[C]) != null ? te : 0, fn = W + de - it - Ue, Yn = W + pe - it, Sn = gd(h ? q3(ue, fn) : ue, W, h ? j2(Z, Yn) : Z);
54922
- M[C] = Sn, U[C] = Sn - W;
54921
+ }, Q = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Xx(), j = Q[K], le = Q[re], ve = gd(0, E[ie], Y[ie]), de = S ? E[ie] / 2 - oe - ve - j - F.mainAxis : ge - ve - j - F.mainAxis, pe = S ? -E[ie] / 2 + oe + ve + le + F.mainAxis : ce + ve + le + F.mainAxis, De = e.elements.arrow && Ap(e.elements.arrow), Ue = De ? C === "y" ? De.clientTop || 0 : De.clientLeft || 0 : 0, it = (te = R == null ? void 0 : R[C]) != null ? te : 0, fn = W + de - it - Ue, Yn = W + pe - it, Mn = gd(h ? q3(ue, fn) : ue, W, h ? j2(Z, Yn) : Z);
54922
+ M[C] = Mn, U[C] = Mn - W;
54923
54923
  }
54924
54924
  if (a) {
54925
54925
  var Qn, ss = C === "x" ? Xr : Jr, Ia = C === "x" ? ns : rs, hn = M[T], pr = T === "y" ? "height" : "width", Ls = hn + g[ss], xi = hn - g[Ia], as = [Xr, Jr].indexOf(v) !== -1, ko = (Qn = R == null ? void 0 : R[T]) != null ? Qn : 0, St = as ? Ls : hn - E[pr] - N[pr] - ko + F.altAxis, ae = as ? hn + E[pr] + N[pr] - ko - F.altAxis : xi, he = h && as ? Hee(St, hn, ae) : gd(h ? St : Ls, hn, h ? ae : xi);
@@ -57307,11 +57307,11 @@ function Lre(n, e) {
57307
57307
  e[r].indexOf(n) >= 0 && (t[r] = !0);
57308
57308
  return t;
57309
57309
  }
57310
- function qr(n) {
57310
+ function Gr(n) {
57311
57311
  n === void 0 && (n = null), this.j = {}, this.jr = [], this.jd = null, this.t = n;
57312
57312
  }
57313
- qr.groups = {};
57314
- qr.prototype = {
57313
+ Gr.groups = {};
57314
+ Gr.prototype = {
57315
57315
  accepts() {
57316
57316
  return !!this.t;
57317
57317
  },
@@ -57364,9 +57364,9 @@ qr.prototype = {
57364
57364
  * @returns {State<T>} taken after the given input
57365
57365
  */
57366
57366
  tr(n, e, t, r) {
57367
- r = r || qr.groups;
57367
+ r = r || Gr.groups;
57368
57368
  let i;
57369
- return e && e.j ? i = e : (i = new qr(e), t && r && El(e, t, r)), this.jr.push([n, i]), i;
57369
+ return e && e.j ? i = e : (i = new Gr(e), t && r && El(e, t, r)), this.jr.push([n, i]), i;
57370
57370
  },
57371
57371
  /**
57372
57372
  * Short for "take transitions", will take as many sequential transitions as
@@ -57414,13 +57414,13 @@ qr.prototype = {
57414
57414
  * @returns {State<T>} taken after the given input
57415
57415
  */
57416
57416
  tt(n, e, t, r) {
57417
- r = r || qr.groups;
57417
+ r = r || Gr.groups;
57418
57418
  const i = this;
57419
57419
  if (e && e.j)
57420
57420
  return i.j[n] = e, e;
57421
57421
  const s = e;
57422
57422
  let o, a = i.go(n);
57423
- if (a ? (o = new qr(), c1(o.j, a.j), o.jr.push.apply(o.jr, a.jr), o.jd = a.jd, o.t = a.t) : o = new qr(), s) {
57423
+ if (a ? (o = new Gr(), c1(o.j, a.j), o.jr.push.apply(o.jr, a.jr), o.jd = a.jd, o.t = a.t) : o = new Gr(), s) {
57424
57424
  if (r)
57425
57425
  if (o.t && typeof o.t == "string") {
57426
57426
  const l = c1(Lre(o.t, r), t);
@@ -57493,8 +57493,8 @@ let am = null, lm = null;
57493
57493
  function $re(n) {
57494
57494
  n === void 0 && (n = []);
57495
57495
  const e = {};
57496
- qr.groups = e;
57497
- const t = new qr();
57496
+ Gr.groups = e;
57497
+ const t = new Gr();
57498
57498
  am == null && (am = FS(Ore)), lm == null && (lm = FS(xre)), ye(t, "'", cg), ye(t, "{", vd), ye(t, "}", bd), ye(t, "[", K3), ye(t, "]", Y3), ye(t, "(", Q3), ye(t, ")", X3), ye(t, "<", J3), ye(t, ">", eg), ye(t, "(", tg), ye(t, ")", ng), ye(t, "「", rg), ye(t, "」", ig), ye(t, "『", sg), ye(t, "』", og), ye(t, "<", ag), ye(t, ">", lg), ye(t, "&", ug), ye(t, "*", dg), ye(t, "@", Va), ye(t, "`", hg), ye(t, "^", pg), ye(t, ":", qa), ye(t, ",", H9), ye(t, "$", mg), ye(t, ".", Hs), ye(t, "=", gg), ye(t, "!", z9), ye(t, "-", zs), ye(t, "%", yg), ye(t, "|", vg), ye(t, "+", bg), ye(t, "#", wg), ye(t, "?", Cg), ye(t, '"', U9), ye(t, "/", Us), ye(t, ";", Z9), ye(t, "~", wd), ye(t, "_", Sg), ye(t, "\\", fg);
57499
57499
  const r = Li(t, e6, j9, {
57500
57500
  [_8]: !0
@@ -57548,7 +57548,7 @@ function $re(n) {
57548
57548
  }
57549
57549
  return _S(t, "localhost", lf, {
57550
57550
  ascii: !0
57551
- }), t.jd = new qr(Mg), {
57551
+ }), t.jd = new Gr(Mg), {
57552
57552
  start: t,
57553
57553
  tokens: c1({
57554
57554
  groups: e
@@ -57589,9 +57589,9 @@ function Pa(n, e, t, r, i) {
57589
57589
  const o = e.length;
57590
57590
  for (let a = 0; a < o - 1; a++) {
57591
57591
  const l = e[a];
57592
- n.j[l] ? s = n.j[l] : (s = new qr(r), s.jr = i.slice(), n.j[l] = s), n = s;
57592
+ n.j[l] ? s = n.j[l] : (s = new Gr(r), s.jr = i.slice(), n.j[l] = s), n = s;
57593
57593
  }
57594
- return s = new qr(t), s.jr = i.slice(), n.j[e[o - 1]] = s, s;
57594
+ return s = new Gr(t), s.jr = i.slice(), n.j[e[o - 1]] = s, s;
57595
57595
  }
57596
57596
  function FS(n) {
57597
57597
  const e = [], t = [];
@@ -57842,7 +57842,7 @@ const jS = L5("email", {
57842
57842
  const n = this.tk;
57843
57843
  return n.length >= 2 && n[0].t !== lf && n[1].t === qa;
57844
57844
  }
57845
- }), _i = (n) => new qr(n);
57845
+ }), _i = (n) => new Gr(n);
57846
57846
  function Vre(n) {
57847
57847
  let {
57848
57848
  groups: e
@@ -57938,7 +57938,7 @@ const zre = typeof console < "u" && console && console.warn || (() => {
57938
57938
  initialized: !1
57939
57939
  };
57940
57940
  function Zre() {
57941
- qr.groups = {}, Ht.scanner = null, Ht.parser = null, Ht.tokenQueue = [], Ht.pluginQueue = [], Ht.customSchemes = [], Ht.initialized = !1;
57941
+ Gr.groups = {}, Ht.scanner = null, Ht.parser = null, Ht.tokenQueue = [], Ht.pluginQueue = [], Ht.customSchemes = [], Ht.initialized = !1;
57942
57942
  }
57943
57943
  function HS(n, e) {
57944
57944
  if (e === void 0 && (e = !1), Ht.initialized && zre(`linkifyjs: already initialized - will not register custom scheme "${n}" ${Ure}`), !/^[0-9a-z]+(-[0-9a-z]+)*$/.test(n))
@@ -59825,7 +59825,7 @@ const ase = /* @__PURE__ */ Be(rse, [["render", ose], ["__scopeId", "data-v-01ed
59825
59825
  onRemoveFile: b,
59826
59826
  onSelectedFiles: S,
59827
59827
  // composables
59828
- mq: Cn
59828
+ mq: Sn
59829
59829
  };
59830
59830
  }
59831
59831
  }), use = { class: "file-upload-container w-full" }, cse = {
@@ -59895,7 +59895,7 @@ function wse(n, e, t, r, i, s) {
59895
59895
  "border-red-30": f.messages && f.messages.length > 0
59896
59896
  }
59897
59897
  ]),
59898
- style: yn(`
59898
+ style: vn(`
59899
59899
  height: ${(((m = (h = n.dropZoneRef) == null ? void 0 : h.closest(".editor-container")) == null ? void 0 : m.clientHeight) || 0) + 2}px;
59900
59900
  top: ${(y = n.dropZoneRef) != null && y.closest(".show-formatting-menu") ? -36 : 0}px;
59901
59901
  `)
@@ -60140,7 +60140,7 @@ const Cse = /* @__PURE__ */ Be(lse, [["render", wse]]), Sse = Ae({
60140
60140
  (W = ie.value) == null || W.destroy();
60141
60141
  }), yt(() => {
60142
60142
  visualViewport && n.expands && visualViewport.addEventListener("resize", R);
60143
- }), Pr(() => {
60143
+ }), Lr(() => {
60144
60144
  visualViewport && n.expands && visualViewport.removeEventListener("resize", R);
60145
60145
  }), l3(t, () => {
60146
60146
  r.value = !1;
@@ -60544,7 +60544,7 @@ const CD = /* @__PURE__ */ Be(Sse, [["render", Ise], ["__scopeId", "data-v-6c7a3
60544
60544
  var U, te;
60545
60545
  i.value = !0, s.value = n.comment, await ln(), (te = (U = c.value) == null ? void 0 : U.editor) == null || te.chain().focus("end").run(), o.value = !1;
60546
60546
  const R = document.getElementById(`comment-${n.id}`);
60547
- R && !Cn.md && R.scrollIntoView({ block: "center", behavior: "smooth" });
60547
+ R && !Sn.md && R.scrollIntoView({ block: "center", behavior: "smooth" });
60548
60548
  }, E = () => {
60549
60549
  o.value = !o.value;
60550
60550
  }, N = (R) => {
@@ -60593,7 +60593,7 @@ const CD = /* @__PURE__ */ Be(Sse, [["render", Ise], ["__scopeId", "data-v-6c7a3
60593
60593
  onClickMobileMenuLink: N,
60594
60594
  onClickSave: F,
60595
60595
  // composables
60596
- mq: Cn
60596
+ mq: Sn
60597
60597
  };
60598
60598
  }
60599
60599
  }), Dse = ["id"], Nse = { class: "flex items-start mb-1" }, Pse = { class: "grow" }, Lse = { class: "w-full block text-sm leading-4 font-bold" }, _se = { class: "text-inkwell-0 text-xs leading-4 block" }, Rse = { class: "w-full py-1" }, $se = ["onClick"], Fse = { key: 2 }, Bse = {
@@ -61113,7 +61113,7 @@ const Phe = /* @__PURE__ */ Be(Qse, [["render", eoe]]), US = "eye", ZS = "eye-sl
61113
61113
  );
61114
61114
  },
61115
61115
  // composables
61116
- mq: Cn
61116
+ mq: Sn
61117
61117
  };
61118
61118
  }
61119
61119
  }), noe = ["id", "type", "disabled", "autocomplete", "maxlength", "value", "placeholder"];
@@ -61143,7 +61143,7 @@ function roe(n, e, t, r, i, s) {
61143
61143
  key: 0,
61144
61144
  class: B(["icon-container flex", { "order-first pr-2": n.iconPosition === "left" }])
61145
61145
  }, [
61146
- H(n.$slots, "default", Nn(Gr({ icon: n.icon, onClickIcon: n.onClickIcon })), () => [
61146
+ H(n.$slots, "default", yn(kr({ icon: n.icon, onClickIcon: n.onClickIcon })), () => [
61147
61147
  _(o, {
61148
61148
  icon: n.icon,
61149
61149
  size: "md",
@@ -61348,7 +61348,7 @@ const ioe = /* @__PURE__ */ Be(toe, [["render", roe], ["__scopeId", "data-v-f19b
61348
61348
  // Composables
61349
61349
  deviceType: r,
61350
61350
  filterData: ff,
61351
- mq: Cn
61351
+ mq: Sn
61352
61352
  };
61353
61353
  }
61354
61354
  }), ooe = ["id"], aoe = { class: "search grow" }, loe = {
@@ -61396,7 +61396,7 @@ function boe(n, e, t, r, i, s) {
61396
61396
  ], !0) : L("", !0),
61397
61397
  H(n.$slots, "beforeFilters", {}, void 0, !0),
61398
61398
  (f = n.filters) != null && f.length ? (w(), A("div", coe, [
61399
- H(n.$slots, "filters", Nn(Gr({ filtersCount: n.filtersCount })), () => [
61399
+ H(n.$slots, "filters", yn(kr({ filtersCount: n.filtersCount })), () => [
61400
61400
  n.$slots.filterContent && n.mq.md ? (w(), z(c, {
61401
61401
  key: 0,
61402
61402
  modelValue: n.showFilterPopover,
@@ -61439,7 +61439,7 @@ function boe(n, e, t, r, i, s) {
61439
61439
  }, 1024)
61440
61440
  ]),
61441
61441
  content: J(() => [
61442
- H(n.$slots, "filterContent", Nn(Gr({ closePopover: n.closePopover })), void 0, !0)
61442
+ H(n.$slots, "filterContent", yn(kr({ closePopover: n.closePopover })), void 0, !0)
61443
61443
  ]),
61444
61444
  _: 3
61445
61445
  }, 8, ["modelValue"])) : n.$slots.filterSheetContent && !n.mq.md ? (w(), A("div", hoe, [
@@ -61473,16 +61473,20 @@ function boe(n, e, t, r, i, s) {
61473
61473
  n.showFilterBottomSheet ? (w(), z(d, {
61474
61474
  key: 0,
61475
61475
  modelValue: n.showFilterBottomSheet,
61476
- "onUpdate:modelValue": e[2] || (e[2] = (h) => n.showFilterBottomSheet = h)
61476
+ "onUpdate:modelValue": e[2] || (e[2] = (h) => n.showFilterBottomSheet = h),
61477
+ "background-color": "gray-00"
61477
61478
  }, {
61479
+ backAction: J(() => [
61480
+ H(n.$slots, "filterSheetBackAction", yn(kr({ closeBottomSheet: n.closeBottomSheet })), void 0, !0)
61481
+ ]),
61478
61482
  header: J(() => [
61479
61483
  H(n.$slots, "filterSheetHeader", {}, void 0, !0)
61480
61484
  ]),
61481
61485
  headerAction: J(() => [
61482
- H(n.$slots, "filterSheetHeaderAction", Nn(Gr({ closeBottomSheet: n.closeBottomSheet })), void 0, !0)
61486
+ H(n.$slots, "filterSheetHeaderAction", yn(kr({ closeBottomSheet: n.closeBottomSheet })), void 0, !0)
61483
61487
  ]),
61484
61488
  default: J(() => [
61485
- H(n.$slots, "filterSheetContent", Nn(Gr({ closeBottomSheet: n.closeBottomSheet })), void 0, !0)
61489
+ H(n.$slots, "filterSheetContent", yn(kr({ closeBottomSheet: n.closeBottomSheet })), void 0, !0)
61486
61490
  ]),
61487
61491
  _: 3
61488
61492
  }, 8, ["modelValue"])) : L("", !0)
@@ -61529,7 +61533,7 @@ function boe(n, e, t, r, i, s) {
61529
61533
  ])) : L("", !0)
61530
61534
  ], 8, ooe);
61531
61535
  }
61532
- const woe = /* @__PURE__ */ Be(soe, [["render", boe], ["__scopeId", "data-v-cb3e9f11"]]), Coe = Ae({
61536
+ const woe = /* @__PURE__ */ Be(soe, [["render", boe], ["__scopeId", "data-v-2b49b9e8"]]), Coe = Ae({
61533
61537
  name: "QDataList",
61534
61538
  components: {
61535
61539
  QBadge: U0,
@@ -61590,7 +61594,7 @@ const woe = /* @__PURE__ */ Be(soe, [["render", boe], ["__scopeId", "data-v-cb3e
61590
61594
  },
61591
61595
  emits: ["filters-action", "page-updated", "click:list-item"],
61592
61596
  setup(n, { emit: e }) {
61593
- const { deviceType: t } = g1(), { y: r } = fy(), { y: i } = u3(window, { behavior: "smooth" }), s = $(0), o = $("down"), a = $(null), l = $(0), u = $(!1), c = $(!0), d = $(Cn.md ? !1 : n.hideSearch), f = $(!d.value), h = {
61597
+ const { deviceType: t } = g1(), { y: r } = fy(), { y: i } = u3(window, { behavior: "smooth" }), s = $(0), o = $("down"), a = $(null), l = $(0), u = $(!1), c = $(!0), d = $(Sn.md ? !1 : n.hideSearch), f = $(!d.value), h = {
61594
61598
  type: "keyframe",
61595
61599
  ease: "linear",
61596
61600
  duration: 0,
@@ -61630,7 +61634,7 @@ const woe = /* @__PURE__ */ Be(soe, [["render", boe], ["__scopeId", "data-v-cb3e
61630
61634
  d.value ? (l.value = m.value.offsetTop - 16, window.addEventListener("scroll", te)) : window.addEventListener("scroll", R), window.addEventListener("resize", async () => {
61631
61635
  v.value = window.innerHeight, await ln();
61632
61636
  });
61633
- }), Pr(() => {
61637
+ }), Lr(() => {
61634
61638
  d.value ? window.removeEventListener("scroll", te) : window.removeEventListener("scroll", R);
61635
61639
  }), {
61636
61640
  // Refs
@@ -61658,7 +61662,7 @@ const woe = /* @__PURE__ */ Be(soe, [["render", boe], ["__scopeId", "data-v-cb3e
61658
61662
  toggleSearch: U,
61659
61663
  // Composable
61660
61664
  deviceType: t,
61661
- mq: Cn
61665
+ mq: Sn
61662
61666
  };
61663
61667
  }
61664
61668
  }), Soe = ["id"], Moe = ["id"], koe = ["id"], Aoe = ["id"], Eoe = ["id"], Toe = ["id"], Ioe = ["id"], Ooe = ["id", "onClick"], xoe = {
@@ -61693,7 +61697,7 @@ function Roe(n, e, t, r, i, s) {
61693
61697
  { "is-shown border-b border-gray-20": n.hiddenSearch && n.isSearchVisible },
61694
61698
  { "!hidden h-px": n.hiddenSearch && n.searchHeight <= 16 }
61695
61699
  ]),
61696
- style: yn([
61700
+ style: vn([
61697
61701
  n.hiddenSearch && n.searchHeight >= 0 ? `height: ${n.searchHeight}px;` : "",
61698
61702
  `top: ${n.defaultSearchTop}px;`
61699
61703
  ])
@@ -62121,12 +62125,12 @@ const Zoe = /* @__PURE__ */ Be(Voe, [["render", Uoe], ["__scopeId", "data-v-f327
62121
62125
  var fn;
62122
62126
  l.value = (fn = s.value) == null ? void 0 : fn.scrollWidth, S.value = window.innerHeight, Z(), await ln();
62123
62127
  }), window.addEventListener("scroll", ce), s.value.addEventListener("scroll", oe), i.value.addEventListener("scroll", ge);
62124
- }), Pr(() => {
62128
+ }), Lr(() => {
62125
62129
  window.removeEventListener("resize", async () => await ln()), window.removeEventListener("scroll", async () => await ln());
62126
62130
  }), {
62127
62131
  // Composables
62128
62132
  deviceType: t,
62129
- mq: Cn,
62133
+ mq: Sn,
62130
62134
  noResults: MD,
62131
62135
  // Refs
62132
62136
  allCheckboxSelected: N,
@@ -62222,7 +62226,7 @@ function uae(n, e, t, r, i, s) {
62222
62226
  "data-filter-container rounded-t-lg z-30",
62223
62227
  { "fixed z-20 border border-b-0 border-gray-20 -ml-px -mt-px": n.isFixed && n.pinHeaders }
62224
62228
  ]),
62225
- style: yn(`
62229
+ style: vn(`
62226
62230
  top: ${n.isFixed && n.pinHeaders ? n.fixedTopOffset : 0}px;
62227
62231
  width: ${n.isFixed && n.pinHeaders ? n.scrollableContainerWidth + 2 + "px" : "auto"};
62228
62232
  `),
@@ -62239,7 +62243,7 @@ function uae(n, e, t, r, i, s) {
62239
62243
  n.$slots.dataFilter ? "border-t-0" : "rounded-t-lg",
62240
62244
  { invisible: !(n.isFixed && n.pinHeaders) }
62241
62245
  ]),
62242
- style: yn(`
62246
+ style: vn(`
62243
62247
  top: ${n.fixedTopOffset + (((d = n.dataFilterContainer) == null ? void 0 : d.clientHeight) || 0)}px;
62244
62248
  width: ${n.scrollableContainerWidth + 2}px;
62245
62249
  `)
@@ -62271,7 +62275,7 @@ function uae(n, e, t, r, i, s) {
62271
62275
  }, ["stop"]))
62272
62276
  }, null, 8, ["modelValue", "icon", "onUpdate:checked"])
62273
62277
  ])) : L("", !0),
62274
- H(n.$slots, `head(${h.key})`, Nn(Gr(h)), () => [
62278
+ H(n.$slots, `head(${h.key})`, yn(kr(h)), () => [
62275
62279
  Pe(X(typeof h == "string" ? h : h.name), 1)
62276
62280
  ], !0),
62277
62281
  h.sortable ? (w(), A("div", {
@@ -62324,7 +62328,7 @@ function uae(n, e, t, r, i, s) {
62324
62328
  }, ["stop"]))
62325
62329
  }, null, 8, ["modelValue", "icon", "onUpdate:checked"])
62326
62330
  ])) : L("", !0),
62327
- H(n.$slots, `head(${h.key})`, Nn(Gr(h)), () => [
62331
+ H(n.$slots, `head(${h.key})`, yn(kr(h)), () => [
62328
62332
  Pe(X(typeof h == "string" ? h : h.name), 1)
62329
62333
  ], !0),
62330
62334
  h.sortable ? (w(), A("div", {
@@ -62433,7 +62437,7 @@ function uae(n, e, t, r, i, s) {
62433
62437
  "h-0 z-20 -ml-px",
62434
62438
  n.pinHeaders ? "fixed" : "absolute"
62435
62439
  ]),
62436
- style: yn(`
62440
+ style: vn(`
62437
62441
  top: ${(((f = n.dataFilterContainer) == null ? void 0 : f.clientHeight) || 0) + n.thHeight + (n.pinHeaders ? n.fixedTopOffset : 0)}px;
62438
62442
  width: ${n.scrollableContainerWidth + 2}px;
62439
62443
  `)
@@ -62445,7 +62449,7 @@ function uae(n, e, t, r, i, s) {
62445
62449
  "bg-white border border-gray-20 shadow -mt-5 -ml-5",
62446
62450
  "flex items-center justify-center cursor-pointer"
62447
62451
  ]),
62448
- style: yn(`
62452
+ style: vn(`
62449
62453
  top: ${n.scrollButtonTop}px;
62450
62454
  left: ${n.leftScrollButtonX}px;
62451
62455
  `),
@@ -62466,7 +62470,7 @@ function uae(n, e, t, r, i, s) {
62466
62470
  "flex items-center justify-center cursor-pointer",
62467
62471
  { "!right-8": !n.columns[n.columns.length - 1].frozen }
62468
62472
  ]),
62469
- style: yn(`
62473
+ style: vn(`
62470
62474
  top: ${n.scrollButtonTop}px;
62471
62475
  right: ${n.rightScrollButtonX}px;
62472
62476
  `),
@@ -62905,7 +62909,7 @@ function Lae(n, e) {
62905
62909
  return /* @__PURE__ */ new Date(NaN);
62906
62910
  }
62907
62911
  }
62908
- var _ae = Object.defineProperty, Rae = Object.defineProperties, $ae = Object.getOwnPropertyDescriptors, kg = Object.getOwnPropertySymbols, LD = Object.prototype.hasOwnProperty, _D = Object.prototype.propertyIsEnumerable, QS = (n, e, t) => e in n ? _ae(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, Dn = (n, e) => {
62912
+ var _ae = Object.defineProperty, Rae = Object.defineProperties, $ae = Object.getOwnPropertyDescriptors, kg = Object.getOwnPropertySymbols, LD = Object.prototype.hasOwnProperty, _D = Object.prototype.propertyIsEnumerable, QS = (n, e, t) => e in n ? _ae(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, Nn = (n, e) => {
62909
62913
  for (var t in e || (e = {}))
62910
62914
  LD.call(e, t) && QS(n, t, e[t]);
62911
62915
  if (kg)
@@ -62967,7 +62971,7 @@ function $D(n, e) {
62967
62971
  return O0(e) && Object.keys(e).forEach((r) => {
62968
62972
  let i = e[r];
62969
62973
  const s = n[r];
62970
- O0(i) && O0(s) && (i = $D(s, i)), t = is(Dn({}, t), { [r]: i });
62974
+ O0(i) && O0(s) && (i = $D(s, i)), t = is(Nn({}, t), { [r]: i });
62971
62975
  }), t;
62972
62976
  }
62973
62977
  function r6(n) {
@@ -62989,7 +62993,7 @@ function Vae(n) {
62989
62993
  function Hae(n) {
62990
62994
  ya(BD, n);
62991
62995
  }
62992
- function Lr() {
62996
+ function _r() {
62993
62997
  return ei(BD, "mx");
62994
62998
  }
62995
62999
  function zae(n) {
@@ -63061,7 +63065,7 @@ function Yae(n, {
63061
63065
  }) {
63062
63066
  const t = Ta(n, {
63063
63067
  appendToBody: !0
63064
- }), r = Lr(), i = $(null), s = $({
63068
+ }), r = _r(), i = $(null), s = $({
63065
63069
  left: "",
63066
63070
  top: ""
63067
63071
  }), o = () => {
@@ -63076,9 +63080,9 @@ function Yae(n, {
63076
63080
  } = Zae(i.value);
63077
63081
  s.value = Wae(l, u, c, t.appendToBody);
63078
63082
  };
63079
- wn(o, {
63083
+ Cn(o, {
63080
63084
  flush: "post"
63081
- }), wn((l) => {
63085
+ }), Cn((l) => {
63082
63086
  const u = t.getRelativeElement();
63083
63087
  if (!u)
63084
63088
  return;
@@ -63095,7 +63099,7 @@ function Yae(n, {
63095
63099
  const u = l.target, c = i.value, d = t.getRelativeElement();
63096
63100
  c && !c.contains(u) && d && !d.contains(u) && t.onClickOutside(l);
63097
63101
  };
63098
- return wn((l) => {
63102
+ return Cn((l) => {
63099
63103
  document.addEventListener(JS, a), l(() => {
63100
63104
  document.removeEventListener(JS, a);
63101
63105
  });
@@ -63111,7 +63115,7 @@ function Yae(n, {
63111
63115
  return [t.visible && _("div", {
63112
63116
  ref: i,
63113
63117
  class: `${r}-datepicker-main ${r}-datepicker-popup ${t.className}`,
63114
- style: [Dn({
63118
+ style: [Nn({
63115
63119
  position: "absolute"
63116
63120
  }, s.value), t.style || {}]
63117
63121
  }, [(l = e.default) == null ? void 0 : l.call(e)])];
@@ -63235,7 +63239,7 @@ function g0e(n, {
63235
63239
  clearable: !0,
63236
63240
  range: !1,
63237
63241
  multiple: !1
63238
- }), r = Lr(), i = $(null), s = q(() => t.separator || (t.range ? " ~ " : ",")), o = (h) => t.range ? Il(h) : t.multiple ? f0e(h) : Ca(h), a = (h) => Array.isArray(h) ? h.some((m) => t.disabledDate(m)) : t.disabledDate(h), l = q(() => i.value !== null ? i.value : typeof t.renderInputText == "function" ? t.renderInputText(t.value) : o(t.value) ? Array.isArray(t.value) ? t.value.map((h) => t.formatDate(h)).join(s.value) : t.formatDate(t.value) : ""), u = (h) => {
63242
+ }), r = _r(), i = $(null), s = q(() => t.separator || (t.range ? " ~ " : ",")), o = (h) => t.range ? Il(h) : t.multiple ? f0e(h) : Ca(h), a = (h) => Array.isArray(h) ? h.some((m) => t.disabledDate(m)) : t.disabledDate(h), l = q(() => i.value !== null ? i.value : typeof t.renderInputText == "function" ? t.renderInputText(t.value) : o(t.value) ? Array.isArray(t.value) ? t.value.map((h) => t.formatDate(h)).join(s.value) : t.formatDate(t.value) : ""), u = (h) => {
63239
63243
  var m;
63240
63244
  h && h.stopPropagation(), t.onChange(t.range ? [null, null] : null), (m = t.onClear) == null || m.call(t);
63241
63245
  }, c = () => {
@@ -63263,7 +63267,7 @@ function g0e(n, {
63263
63267
  };
63264
63268
  return () => {
63265
63269
  var h, m, y;
63266
- const g = !t.disabled && t.clearable && l.value, v = is(Dn({
63270
+ const g = !t.disabled && t.clearable && l.value, v = is(Nn({
63267
63271
  name: "date",
63268
63272
  type: "text",
63269
63273
  autocomplete: "off",
@@ -63353,7 +63357,7 @@ function b0e(n, {
63353
63357
  const R = Array.isArray(M) ? M.map(m) : m(M);
63354
63358
  return (x = r["onUpdate:value"]) == null || x.call(r, R), (F = r.onChange) == null || F.call(r, R, E), N && c(), R;
63355
63359
  }, v = $(/* @__PURE__ */ new Date());
63356
- wn(() => {
63360
+ Cn(() => {
63357
63361
  l.value && (v.value = y.value);
63358
63362
  });
63359
63363
  const b = (M, E) => {
@@ -63411,7 +63415,7 @@ function b0e(n, {
63411
63415
  [`${N}-datepicker-range`]: R,
63412
63416
  disabled: x
63413
63417
  }
63414
- }, [_(v0e, is(Dn({}, pa(r, iv)), {
63418
+ }, [_(v0e, is(Nn({}, pa(r, iv)), {
63415
63419
  value: y.value,
63416
63420
  formatDate: d,
63417
63421
  parseDate: f,
@@ -63442,8 +63446,8 @@ function fm(n) {
63442
63446
  } = e, r = Fae(e, [
63443
63447
  "value"
63444
63448
  ]);
63445
- const i = Lr();
63446
- return _("button", is(Dn({}, r), {
63449
+ const i = _r();
63450
+ return _("button", is(Nn({}, r), {
63447
63451
  type: "button",
63448
63452
  class: `${i}-btn ${i}-btn-text ${i}-btn-icon-${t}`
63449
63453
  }), [_("i", {
@@ -63458,7 +63462,7 @@ function sv({
63458
63462
  slots: r
63459
63463
  }) {
63460
63464
  var i;
63461
- const s = Lr(), o = () => {
63465
+ const s = _r(), o = () => {
63462
63466
  t(Ag(e, (f) => f - 1));
63463
63467
  }, a = () => {
63464
63468
  t(Ag(e, (f) => f + 1));
@@ -63502,7 +63506,7 @@ function S0e({
63502
63506
  onDateMouseEnter: u,
63503
63507
  onDateMouseLeave: c
63504
63508
  }) {
63505
- const d = Lr(), f = Uae(), h = nv().value, {
63509
+ const d = _r(), f = Uae(), h = nv().value, {
63506
63510
  yearFormat: m,
63507
63511
  monthBeforeYear: y,
63508
63512
  monthFormat: g = "MMM",
@@ -63580,7 +63584,7 @@ function M0e({
63580
63584
  onUpdateCalendar: r,
63581
63585
  onUpdatePanel: i
63582
63586
  }) {
63583
- const s = Lr(), o = nv().value, a = o.months || o.formatLocale.monthsShort, l = (c) => Tl(n.getFullYear(), c), u = (c) => {
63587
+ const s = _r(), o = nv().value, a = o.months || o.formatLocale.monthsShort, l = (c) => Tl(n.getFullYear(), c), u = (c) => {
63584
63588
  const f = c.currentTarget.getAttribute("data-month");
63585
63589
  t(l(parseInt(f, 10)));
63586
63590
  };
@@ -63625,7 +63629,7 @@ function A0e({
63625
63629
  onSelect: r,
63626
63630
  onUpdateCalendar: i
63627
63631
  }) {
63628
- const s = Lr(), o = (d) => Tl(d, 0), a = (d) => {
63632
+ const s = _r(), o = (d) => Tl(d, 0), a = (d) => {
63629
63633
  const h = d.currentTarget.getAttribute("data-year");
63630
63634
  r(o(parseInt(h, 10)));
63631
63635
  }, l = t(new Date(n)), u = l[0][0], c = XS(XS(l));
@@ -63660,7 +63664,7 @@ function E0e(n) {
63660
63664
  getClasses: () => [],
63661
63665
  titleFormat: "YYYY-MM-DD"
63662
63666
  }), t = q(() => (Array.isArray(e.value) ? e.value : [e.value]).filter(Ca).map((b) => e.type === "year" ? h0e(b) : e.type === "month" ? eM(b) : H0(b))), r = $(/* @__PURE__ */ new Date());
63663
- wn(() => {
63667
+ Cn(() => {
63664
63668
  let v = e.calendar;
63665
63669
  if (!Ca(v)) {
63666
63670
  const {
@@ -63674,7 +63678,7 @@ function E0e(n) {
63674
63678
  var b;
63675
63679
  r.value = v, (b = e.onCalendarChange) == null || b.call(e, v);
63676
63680
  }, s = $("date");
63677
- wn(() => {
63681
+ Cn(() => {
63678
63682
  const v = ["date", "month", "year"], b = Math.max(v.indexOf(e.type), v.indexOf(e.defaultPanel));
63679
63683
  s.value = b !== -1 ? v[b] : "date";
63680
63684
  });
@@ -63755,11 +63759,11 @@ function T0e(n) {
63755
63759
  const e = Ta(n, {
63756
63760
  defaultValue: /* @__PURE__ */ new Date(),
63757
63761
  type: "date"
63758
- }), t = Lr(), r = q(() => {
63762
+ }), t = _r(), r = q(() => {
63759
63763
  let g = Array.isArray(e.defaultValue) ? e.defaultValue : [e.defaultValue, e.defaultValue];
63760
63764
  return g = g.map((v) => H0(v)), Il(g) ? g : [/* @__PURE__ */ new Date(), /* @__PURE__ */ new Date()].map((v) => H0(v));
63761
63765
  }), i = $([/* @__PURE__ */ new Date(NaN), /* @__PURE__ */ new Date(NaN)]);
63762
- wn(() => {
63766
+ Cn(() => {
63763
63767
  Il(e.value) && (i.value = e.value);
63764
63768
  });
63765
63769
  const s = (g, v) => {
@@ -63779,7 +63783,7 @@ function T0e(n) {
63779
63783
  }, d = (g) => {
63780
63784
  u([a.value[0], g], 1);
63781
63785
  };
63782
- wn(() => {
63786
+ Cn(() => {
63783
63787
  const g = Il(e.value) ? e.value : r.value;
63784
63788
  u(g.slice(0, 2));
63785
63789
  });
@@ -63789,7 +63793,7 @@ function T0e(n) {
63789
63793
  };
63790
63794
  return () => {
63791
63795
  const g = a.value.map((v, b) => {
63792
- const S = is(Dn({}, e), {
63796
+ const S = is(Nn({}, e), {
63793
63797
  calendar: v,
63794
63798
  value: i.value,
63795
63799
  defaultValue: r.value[b],
@@ -63814,7 +63818,7 @@ const HD = Ae({
63814
63818
  setup(n, {
63815
63819
  slots: e
63816
63820
  }) {
63817
- const t = Lr(), r = $(), i = $(""), s = $("");
63821
+ const t = _r(), r = $(), i = $(""), s = $("");
63818
63822
  yt(() => {
63819
63823
  if (!r.value)
63820
63824
  return;
@@ -63850,7 +63854,7 @@ const HD = Ae({
63850
63854
  };
63851
63855
  return yt(() => {
63852
63856
  document.addEventListener("mousemove", f), document.addEventListener("mouseup", h);
63853
- }), Pr(() => {
63857
+ }), Lr(() => {
63854
63858
  document.addEventListener("mousemove", f), document.addEventListener("mouseup", h);
63855
63859
  }), () => {
63856
63860
  var m;
@@ -63885,7 +63889,7 @@ function I0e({
63885
63889
  getClasses: e,
63886
63890
  onSelect: t
63887
63891
  }) {
63888
- const r = Lr(), i = (s) => {
63892
+ const r = _r(), i = (s) => {
63889
63893
  const o = s.target, a = s.currentTarget;
63890
63894
  if (o.tagName.toUpperCase() !== "LI")
63891
63895
  return;
@@ -63915,7 +63919,7 @@ function O0e(n) {
63915
63919
  }
63916
63920
  function x0e(n) {
63917
63921
  let e;
63918
- const t = Lr();
63922
+ const t = _r();
63919
63923
  return _(HD, null, O0e(e = n.options.map((r) => _("div", {
63920
63924
  key: r.text,
63921
63925
  class: [`${t}-time-option`, n.getClasses(r.value, "time")],
@@ -64037,10 +64041,10 @@ function P0e(n) {
64037
64041
  timeTitleFormat: "YYYY-MM-DD",
64038
64042
  disabledTime: () => !1,
64039
64043
  scrollDuration: 100
64040
- }), t = Lr(), r = nv(), i = (y, g) => X9(y, g, {
64044
+ }), t = _r(), r = nv(), i = (y, g) => X9(y, g, {
64041
64045
  locale: r.value.formatLocale
64042
64046
  }), s = $(/* @__PURE__ */ new Date());
64043
- wn(() => {
64047
+ Cn(() => {
64044
64048
  s.value = $5(e.value, e.defaultValue);
64045
64049
  });
64046
64050
  const o = (y) => Array.isArray(y) ? y.every((g) => e.disabledTime(new Date(g))) : e.disabledTime(new Date(y)), a = (y) => {
@@ -64107,8 +64111,8 @@ function L0e(n) {
64107
64111
  const e = Ta(n, {
64108
64112
  defaultValue: H0(/* @__PURE__ */ new Date()),
64109
64113
  disabledTime: () => !1
64110
- }), t = Lr(), r = $([/* @__PURE__ */ new Date(NaN), /* @__PURE__ */ new Date(NaN)]);
64111
- wn(() => {
64114
+ }), t = _r(), r = $([/* @__PURE__ */ new Date(NaN), /* @__PURE__ */ new Date(NaN)]);
64115
+ Cn(() => {
64112
64116
  Il(e.value) ? r.value = e.value : r.value = [/* @__PURE__ */ new Date(NaN), /* @__PURE__ */ new Date(NaN)];
64113
64117
  });
64114
64118
  const i = (u, c) => {
@@ -64123,12 +64127,12 @@ function L0e(n) {
64123
64127
  const u = Array.isArray(e.defaultValue) ? e.defaultValue : [e.defaultValue, e.defaultValue];
64124
64128
  return _("div", {
64125
64129
  class: `${t}-time-range`
64126
- }, [_(hf, is(Dn({}, e), {
64130
+ }, [_(hf, is(Nn({}, e), {
64127
64131
  "onUpdate:value": s,
64128
64132
  value: r.value[0],
64129
64133
  defaultValue: u[0],
64130
64134
  disabledTime: a
64131
- }), null), _(hf, is(Dn({}, e), {
64135
+ }), null), _(hf, is(Nn({}, e), {
64132
64136
  "onUpdate:value": o,
64133
64137
  value: r.value[1],
64134
64138
  defaultValue: u[1],
@@ -64153,7 +64157,7 @@ function _0e(n) {
64153
64157
  disabledTime: () => !1,
64154
64158
  defaultValue: H0(/* @__PURE__ */ new Date())
64155
64159
  }), t = $(e.value);
64156
- wn(() => {
64160
+ Cn(() => {
64157
64161
  t.value = e.value;
64158
64162
  });
64159
64163
  const {
@@ -64171,12 +64175,12 @@ function _0e(n) {
64171
64175
  (u = e["onUpdate:value"]) == null || u.call(e, c, l);
64172
64176
  };
64173
64177
  return () => {
64174
- const a = Lr(), l = is(Dn({}, pa(e, F5)), {
64178
+ const a = _r(), l = is(Nn({}, pa(e, F5)), {
64175
64179
  multiple: !1,
64176
64180
  type: "date",
64177
64181
  value: t.value,
64178
64182
  "onUpdate:value": o
64179
- }), u = is(Dn({}, pa(e, j5)), {
64183
+ }), u = is(Nn({}, pa(e, j5)), {
64180
64184
  showTimeHeader: !0,
64181
64185
  value: t.value,
64182
64186
  "onUpdate:value": e["onUpdate:value"],
@@ -64194,7 +64198,7 @@ function $0e(n) {
64194
64198
  defaultValue: H0(/* @__PURE__ */ new Date()),
64195
64199
  disabledTime: () => !1
64196
64200
  }), t = $(e.value);
64197
- wn(() => {
64201
+ Cn(() => {
64198
64202
  t.value = e.value;
64199
64203
  });
64200
64204
  const {
@@ -64216,11 +64220,11 @@ function $0e(n) {
64216
64220
  (u = e["onUpdate:value"]) == null || u.call(e, d, l);
64217
64221
  };
64218
64222
  return () => {
64219
- const a = Lr(), l = is(Dn({}, pa(e, ov)), {
64223
+ const a = _r(), l = is(Nn({}, pa(e, ov)), {
64220
64224
  type: "date",
64221
64225
  value: t.value,
64222
64226
  "onUpdate:value": o
64223
- }), u = is(Dn({}, pa(e, lv)), {
64227
+ }), u = is(Nn({}, pa(e, lv)), {
64224
64228
  showTimeHeader: !0,
64225
64229
  value: t.value,
64226
64230
  "onUpdate:value": e["onUpdate:value"],
@@ -64244,18 +64248,18 @@ const B0e = el()(["range", "open", "appendToBody", "clearable", "confirm", "disa
64244
64248
  function GD(n, {
64245
64249
  slots: e
64246
64250
  }) {
64247
- const t = n.type || "date", r = n.format || rM[t] || rM.date, i = is(Dn({}, Kae(n, B0e)), {
64251
+ const t = n.type || "date", r = n.format || rM[t] || rM.date, i = is(Nn({}, Kae(n, B0e)), {
64248
64252
  type: t,
64249
64253
  format: r
64250
64254
  });
64251
- return _(tM, pa(i, tM.props), Dn({
64255
+ return _(tM, pa(i, tM.props), Nn({
64252
64256
  content: (s) => {
64253
64257
  if (i.range) {
64254
64258
  const o = t === "time" ? uv : t === "datetime" ? qD : av;
64255
- return Pn(o, pa(Dn(Dn({}, i), s), o.props));
64259
+ return Pn(o, pa(Nn(Nn({}, i), s), o.props));
64256
64260
  } else {
64257
64261
  const o = t === "time" ? hf : t === "datetime" ? WD : B5;
64258
- return Pn(o, pa(Dn(Dn({}, i), s), o.props));
64262
+ return Pn(o, pa(Nn(Nn({}, i), s), o.props));
64259
64263
  }
64260
64264
  },
64261
64265
  "icon-calendar": () => t === "time" ? _(d0e, null, null) : _(VD, null, null)
@@ -64747,7 +64751,7 @@ const Bhe = /* @__PURE__ */ Be(ole, [["render", dle], ["__scopeId", "data-v-f2d3
64747
64751
  );
64748
64752
  C && S.push(C);
64749
64753
  }
64750
- if (g.active && S.push("active"), Cn.md) {
64754
+ if (g.active && S.push("active"), Sn.md) {
64751
64755
  const C = d(v);
64752
64756
  Object.entries(C).forEach(
64753
64757
  ([T, M]) => {
@@ -64810,7 +64814,7 @@ const Bhe = /* @__PURE__ */ Be(ole, [["render", dle], ["__scopeId", "data-v-f2d3
64810
64814
  }), g.active = !0, e("select-grid-item", g);
64811
64815
  },
64812
64816
  // Composable
64813
- mq: Cn
64817
+ mq: Sn
64814
64818
  };
64815
64819
  }
64816
64820
  }), hle = ["id"], ple = {
@@ -65027,7 +65031,7 @@ const jhe = /* @__PURE__ */ Be(fle, [["render", Sle], ["__scopeId", "data-v-cc83
65027
65031
  setup(n, { emit: e }) {
65028
65032
  const { deviceType: t } = g1(), r = $(n.currentState), i = $(n.options.length === 1), s = q(() => n.disabled || !!n.loading), o = q(() => n.options.find(
65029
65033
  (u) => u.state === r.value
65030
- )), a = q(() => t.value !== "desktop" || !Cn.md), l = (u, c) => {
65034
+ )), a = q(() => t.value !== "desktop" || !Sn.md), l = (u, c) => {
65031
65035
  r.value = r.value === c ? "default" : c, e("update:state", { state: r.value, event: u });
65032
65036
  };
65033
65037
  return dt(
@@ -65046,7 +65050,7 @@ const jhe = /* @__PURE__ */ Be(fle, [["render", Sle], ["__scopeId", "data-v-cc83
65046
65050
  // Methods
65047
65051
  onSetState: l,
65048
65052
  // Composable
65049
- mq: Cn
65053
+ mq: Sn
65050
65054
  };
65051
65055
  }
65052
65056
  }), kle = {
@@ -65282,7 +65286,7 @@ const Vhe = /* @__PURE__ */ Be(Mle, [["render", Ile], ["__scopeId", "data-v-67cf
65282
65286
  },
65283
65287
  emits: ["filters-action", "filters-updated", "click:list-item"],
65284
65288
  setup(n, { emit: e }) {
65285
- const { y: t } = fy(), { y: r } = u3(window, { behavior: "smooth" }), i = $(0), s = $("down"), o = $(0), a = $(!1), l = $(!0), u = $(Cn.md ? !1 : n.hideSearch), c = $(!u.value), d = {
65289
+ const { y: t } = fy(), { y: r } = u3(window, { behavior: "smooth" }), i = $(0), s = $("down"), o = $(0), a = $(!1), l = $(!0), u = $(Sn.md ? !1 : n.hideSearch), c = $(!u.value), d = {
65286
65290
  type: "keyframe",
65287
65291
  ease: "linear",
65288
65292
  duration: 0,
@@ -65324,7 +65328,7 @@ const Vhe = /* @__PURE__ */ Be(Mle, [["render", Ile], ["__scopeId", "data-v-67cf
65324
65328
  };
65325
65329
  return yt(() => {
65326
65330
  u.value && (o.value = f.value.offsetTop - 16, window.addEventListener("scroll", N));
65327
- }), Pr(() => {
65331
+ }), Lr(() => {
65328
65332
  u.value && window.removeEventListener("scroll", N);
65329
65333
  }), {
65330
65334
  // Refs
@@ -65347,7 +65351,7 @@ const Vhe = /* @__PURE__ */ Be(Mle, [["render", Ile], ["__scopeId", "data-v-67cf
65347
65351
  onScroll: N,
65348
65352
  toggleSearch: E,
65349
65353
  // Composable
65350
- mq: Cn
65354
+ mq: Sn
65351
65355
  };
65352
65356
  }
65353
65357
  }), xle = ["id"], Dle = { key: 0 }, Nle = {
@@ -65387,7 +65391,7 @@ function Ule(n, e, t, r, i, s) {
65387
65391
  { "is-shown border-b border-gray-20": n.hiddenSearch && n.isSearchVisible },
65388
65392
  { "!hidden h-px": n.hiddenSearch && n.searchHeight <= 16 }
65389
65393
  ]),
65390
- style: yn([
65394
+ style: vn([
65391
65395
  n.hiddenSearch && n.searchHeight >= 0 ? `height: ${n.searchHeight}px;` : "",
65392
65396
  `top: ${n.defaultSearchTop}px;`
65393
65397
  ])
@@ -65398,14 +65402,14 @@ function Ule(n, e, t, r, i, s) {
65398
65402
  ]))) : (w(), A("div", Dle, [
65399
65403
  D("div", {
65400
65404
  class: "search-and-filters",
65401
- style: yn(
65405
+ style: vn(
65402
65406
  n.hiddenSearch && n.searchHeight >= 0 ? `height: ${n.searchHeight - 32}px;` : ""
65403
65407
  )
65404
65408
  }, [
65405
65409
  H(n.$slots, "before-search", {}, void 0, !0),
65406
65410
  D("div", {
65407
65411
  class: "list-search",
65408
- style: yn(
65412
+ style: vn(
65409
65413
  n.hiddenSearch && n.searchHeight - 32 < 38 ? "opacity: " + (n.searchHeight - 56) / 14 + ";" : n.hiddenSearch && n.searchHeight - 32 < 24 ? "opacity; 0;" : ""
65410
65414
  )
65411
65415
  }, [
@@ -65602,7 +65606,7 @@ const zhe = /* @__PURE__ */ Be(Zle, [["render", qle], ["__scopeId", "data-v-99e0
65602
65606
  function Yle(n, e, t, r, i, s) {
65603
65607
  return w(), A("div", {
65604
65608
  id: "page-navigation",
65605
- style: yn(`top: ${n.fixedTopOffset}px;`)
65609
+ style: vn(`top: ${n.fixedTopOffset}px;`)
65606
65610
  }, [
65607
65611
  D("div", Kle, [
65608
65612
  H(n.$slots, "default", {}, void 0, !0)
@@ -65672,7 +65676,7 @@ function Jle(n, e, t, r, i, s) {
65672
65676
  n.barColor,
65673
65677
  { "mr-2": n.showLabel && n.percent > 0 }
65674
65678
  ]),
65675
- style: yn({ width: n.percent + "%" })
65679
+ style: vn({ width: n.percent + "%" })
65676
65680
  }, null, 6),
65677
65681
  n.showLabel ? (w(), A("div", {
65678
65682
  key: 0,
@@ -65743,7 +65747,6 @@ function s2e(n, e, t, r, i, s) {
65743
65747
  }
65744
65748
  const Zhe = /* @__PURE__ */ Be(t2e, [["render", s2e], ["__scopeId", "data-v-a11674fa"]]), o2e = Ae({
65745
65749
  name: "QRadio",
65746
- inheritAttrs: !1,
65747
65750
  props: {
65748
65751
  id: {
65749
65752
  type: String,
@@ -65757,26 +65760,47 @@ const Zhe = /* @__PURE__ */ Be(t2e, [["render", s2e], ["__scopeId", "data-v-a116
65757
65760
  type: Array,
65758
65761
  default: () => []
65759
65762
  },
65760
- value: {
65761
- type: [String, Number],
65763
+ modelValue: {
65764
+ type: [String, Number, Object, Array],
65762
65765
  default: ""
65763
65766
  },
65764
- inline: {
65767
+ disabled: {
65765
65768
  type: Boolean,
65766
65769
  default: !1
65767
65770
  },
65768
- disabled: {
65771
+ inline: {
65769
65772
  type: Boolean,
65770
65773
  default: !1
65774
+ },
65775
+ labelClasses: {
65776
+ type: [String, Array, Object, Function],
65777
+ default: ""
65771
65778
  }
65772
65779
  },
65773
- emits: ["input"],
65780
+ emits: ["update:model-value", "change"],
65774
65781
  setup(n, { emit: e }) {
65775
- return {
65776
- handleChange: (r) => {
65777
- const i = r.target;
65778
- i && e("input", i.value);
65782
+ const t = q(() => n.modelValue), r = (a) => {
65783
+ const l = a.target;
65784
+ if (l) {
65785
+ const u = l.value;
65786
+ if (i(u)) {
65787
+ let h;
65788
+ Array.isArray(n.modelValue) ? h = [] : h = "", e("update:model-value", h), e("change", null);
65789
+ return;
65790
+ }
65791
+ const d = n.options.find(
65792
+ (h) => h.value === u
65793
+ );
65794
+ let f;
65795
+ Array.isArray(n.modelValue) ? f = d ? [d] : [] : f = u, e("update:model-value", f), e("change", u);
65779
65796
  }
65797
+ }, i = (a) => Array.isArray(t.value) ? t.value.some((l) => typeof l == "object" && l !== null ? l.value === a : l === a) : t.value === a;
65798
+ return {
65799
+ selectedValue: t,
65800
+ handleClick: r,
65801
+ isSelected: i,
65802
+ getOptionText: (a) => a.label || a.name || "",
65803
+ getLabelClasses: (a, l) => typeof n.labelClasses == "function" ? n.labelClasses(a, l) : n.labelClasses
65780
65804
  };
65781
65805
  }
65782
65806
  }), a2e = ["id"], l2e = ["id", "value", "disabled", "checked", "name"], u2e = {
@@ -65793,21 +65817,21 @@ function d2e(n, e, t, r, i, s) {
65793
65817
  }, [
65794
65818
  (w(!0), A(fe, null, Te(n.options, (o, a) => (w(), A("label", {
65795
65819
  key: a,
65796
- class: B(["radio", { disabled: n.disabled }, { "is-inline": n.inline }])
65820
+ class: B(["radio", { disabled: n.disabled }, { "is-inline": n.inline }, n.getLabelClasses(o, a)])
65797
65821
  }, [
65798
65822
  D("input", {
65799
65823
  id: n.id + "-option-" + a,
65800
65824
  value: o.value,
65801
65825
  disabled: n.disabled,
65802
- checked: o.value === n.value,
65826
+ checked: n.isSelected(o.value),
65803
65827
  name: n.name,
65804
65828
  type: "radio",
65805
- onChange: e[0] || (e[0] = (...l) => n.handleChange && n.handleChange(...l))
65806
- }, null, 40, l2e),
65829
+ onClick: e[0] || (e[0] = (...l) => n.handleClick && n.handleClick(...l))
65830
+ }, null, 8, l2e),
65807
65831
  e[1] || (e[1] = D("span", { class: "radio-display" }, null, -1)),
65808
- o.value && o.label ? (w(), A("p", u2e, [
65832
+ o.value && (o.label || o.name) ? (w(), A("p", u2e, [
65809
65833
  H(n.$slots, "label", { item: o }, () => [
65810
- Pe(X(o.label), 1)
65834
+ Pe(X(n.getOptionText(o)), 1)
65811
65835
  ], !0)
65812
65836
  ])) : (w(), A("p", c2e, [
65813
65837
  H(n.$slots, "default", {}, void 0, !0)
@@ -65815,7 +65839,7 @@ function d2e(n, e, t, r, i, s) {
65815
65839
  ], 2))), 128))
65816
65840
  ], 8, a2e);
65817
65841
  }
65818
- const Whe = /* @__PURE__ */ Be(o2e, [["render", d2e], ["__scopeId", "data-v-89b8cb7f"]]);
65842
+ const Whe = /* @__PURE__ */ Be(o2e, [["render", d2e], ["__scopeId", "data-v-9cb983e0"]]);
65819
65843
  function o6(n) {
65820
65844
  return n === 0 ? !1 : Array.isArray(n) && n.length === 0 ? !0 : !n;
65821
65845
  }
@@ -66801,7 +66825,7 @@ function P2e(n, e, t, r, i, s) {
66801
66825
  spellcheck: t.spellcheck,
66802
66826
  placeholder: n.placeholder,
66803
66827
  required: s.isRequired,
66804
- style: yn(s.inputStyle),
66828
+ style: vn(s.inputStyle),
66805
66829
  value: n.search,
66806
66830
  disabled: t.disabled,
66807
66831
  tabindex: t.tabindex,
@@ -66874,13 +66898,13 @@ function P2e(n, e, t, r, i, s) {
66874
66898
  tabindex: "-1",
66875
66899
  onMousedown: e[13] || (e[13] = tt(() => {
66876
66900
  }, ["prevent"])),
66877
- style: yn({ maxHeight: n.optimizedHeight + "px" }),
66901
+ style: vn({ maxHeight: n.optimizedHeight + "px" }),
66878
66902
  ref: "list"
66879
66903
  },
66880
66904
  [
66881
66905
  D("ul", {
66882
66906
  class: "multiselect__content",
66883
- style: yn(s.contentStyle),
66907
+ style: vn(s.contentStyle),
66884
66908
  role: "listbox",
66885
66909
  id: "listbox-" + n.id,
66886
66910
  "aria-multiselectable": n.multiple
@@ -67367,7 +67391,7 @@ function eue(n, e, t, r, i, s) {
67367
67391
  key: 0,
67368
67392
  icon: c.icon
67369
67393
  }, null, 8, ["icon"])) : L("", !0),
67370
- c && n.showPlaceholderImage ? H(n.$slots, "optionPrefix", Nn(P({ key: 1 }, c)), void 0, !0) : L("", !0),
67394
+ c && n.showPlaceholderImage ? H(n.$slots, "optionPrefix", yn(P({ key: 1 }, c)), void 0, !0) : L("", !0),
67371
67395
  n.selectionControl ? H(n.$slots, "controlPlaceholder", { key: 2 }, () => [
67372
67396
  Pe(X(n.placeholder), 1)
67373
67397
  ], !0) : L("", !0),
@@ -67517,7 +67541,7 @@ function eue(n, e, t, r, i, s) {
67517
67541
  icon: c.icon,
67518
67542
  class: "mr-1"
67519
67543
  }, null, 8, ["icon"])) : L("", !0),
67520
- c ? H(n.$slots, "optionPrefix", Nn(P({ key: 1 }, c)), void 0, !0) : L("", !0),
67544
+ c ? H(n.$slots, "optionPrefix", yn(P({ key: 1 }, c)), void 0, !0) : L("", !0),
67521
67545
  D("div", {
67522
67546
  class: B(["option-name", [
67523
67547
  c.optionClass ? c.optionClass : ""
@@ -67575,7 +67599,7 @@ function eue(n, e, t, r, i, s) {
67575
67599
  ], 8, _2e);
67576
67600
  }
67577
67601
  const qhe = /* @__PURE__ */ Be(L2e, [["render", eue], ["__scopeId", "data-v-7bbffd01"]]);
67578
- var Mn = {
67602
+ var kn = {
67579
67603
  STARTS_WITH: "startsWith",
67580
67604
  CONTAINS: "contains",
67581
67605
  NOT_CONTAINS: "notContains",
@@ -71772,7 +71796,7 @@ var wN = {
71772
71796
  };
71773
71797
  function Zce(n, e, t, r, i, s) {
71774
71798
  var o = G("FirstPageLink"), a = G("PrevPageLink"), l = G("NextPageLink"), u = G("LastPageLink"), c = G("PageLinks"), d = G("CurrentPageReport"), f = G("RowsPerPageDropdown"), h = G("JumpToPageDropdown"), m = G("JumpToPageInput");
71775
- return n.alwaysShow || s.pageLinks && s.pageLinks.length > 1 ? (w(), A("nav", Nn(P({
71799
+ return n.alwaysShow || s.pageLinks && s.pageLinks.length > 1 ? (w(), A("nav", yn(P({
71776
71800
  key: 0
71777
71801
  }, n.ptmi("paginatorWrapper"))), [(w(!0), A(fe, null, Te(s.templateItems, function(y, g) {
71778
71802
  return w(), A("div", P({
@@ -75548,14 +75572,14 @@ function Pde(n, e, t, r, i, s) {
75548
75572
  onKeydown: e[1] || (e[1] = function(c) {
75549
75573
  return s.onToggleButtonKeyDown(c);
75550
75574
  })
75551
- }, s.getColumnPT("filterMenuButton", s.ptmFilterMenuParams)), [(w(), z(Ee(t.filterIconTemplate || "FilterIcon"), Nn(Gr(s.getColumnPT("filterMenuIcon"))), null, 16))], 16, xde)) : L("", !0), t.showClearButton && t.display === "row" ? (w(), A("button", P({
75575
+ }, s.getColumnPT("filterMenuButton", s.ptmFilterMenuParams)), [(w(), z(Ee(t.filterIconTemplate || "FilterIcon"), yn(kr(s.getColumnPT("filterMenuIcon"))), null, 16))], 16, xde)) : L("", !0), t.showClearButton && t.display === "row" ? (w(), A("button", P({
75552
75576
  key: 2,
75553
75577
  class: n.cx("headerFilterClearButton"),
75554
75578
  type: "button",
75555
75579
  onClick: e[2] || (e[2] = function(c) {
75556
75580
  return s.clearFilter();
75557
75581
  })
75558
- }, s.getColumnPT("headerFilterClearButton", s.ptmHeaderFilterClearParams)), [(w(), z(Ee(t.filterClearIconTemplate || "FilterSlashIcon"), Nn(Gr(s.getColumnPT("filterClearIcon"))), null, 16))], 16)) : L("", !0), _(l, null, {
75582
+ }, s.getColumnPT("headerFilterClearButton", s.ptmHeaderFilterClearParams)), [(w(), z(Ee(t.filterClearIconTemplate || "FilterSlashIcon"), yn(kr(s.getColumnPT("filterClearIcon"))), null, 16))], 16)) : L("", !0), _(l, null, {
75559
75583
  default: J(function() {
75560
75584
  return [_(cn, P({
75561
75585
  name: "p-connected-overlay",
@@ -75658,7 +75682,7 @@ function Pde(n, e, t, r, i, s) {
75658
75682
  filterModel: c,
75659
75683
  filterCallback: s.filterCallback,
75660
75684
  applyFilter: s.applyFilter
75661
- }, null, 8, ["field", "filterModel", "filterCallback", "applyFilter"])) : L("", !0), D("div", Nn(Gr(s.getColumnPT("filterRemove"))), [s.showRemoveIcon ? (w(), z(a, {
75685
+ }, null, 8, ["field", "filterModel", "filterCallback", "applyFilter"])) : L("", !0), D("div", yn(kr(s.getColumnPT("filterRemove"))), [s.showRemoveIcon ? (w(), z(a, {
75662
75686
  key: 0,
75663
75687
  type: "button",
75664
75688
  class: B(n.cx("filterRemoveButton")),
@@ -76166,7 +76190,7 @@ function Bde(n, e, t, r, i, s) {
76166
76190
  }, null, 8, ["column"])) : L("", !0), s.columnProp("header") ? (w(), A("span", P({
76167
76191
  key: 1,
76168
76192
  class: n.cx("headerTitle")
76169
- }, s.getColumnPT("headerTitle")), X(s.columnProp("header")), 17)) : L("", !0), s.columnProp("sortable") ? (w(), A("span", Nn(P({
76193
+ }, s.getColumnPT("headerTitle")), X(s.columnProp("header")), 17)) : L("", !0), s.columnProp("sortable") ? (w(), A("span", yn(P({
76170
76194
  key: 2
76171
76195
  }, s.getColumnPT("sort"))), [(w(), z(Ee(t.column.children && t.column.children.sorticon || s.sortableColumnIcon), P({
76172
76196
  sorted: s.sortState.sorted,
@@ -77072,7 +77096,7 @@ var RN = {
77072
77096
  if (a && r.global && !l && i)
77073
77097
  for (var g = 0; g < i.length; g++) {
77074
77098
  var v = i[g];
77075
- if (l = q8.filters[r.global.matchMode || Mn.CONTAINS](ne.resolveFieldData(e[o], v), r.global.value, this.filterLocale), l)
77099
+ if (l = q8.filters[r.global.matchMode || kn.CONTAINS](ne.resolveFieldData(e[o], v), r.global.value, this.filterLocale), l)
77076
77100
  break;
77077
77101
  }
77078
77102
  var b = void 0;
@@ -77086,7 +77110,7 @@ var RN = {
77086
77110
  }
77087
77111
  },
77088
77112
  executeLocalFilter: function(e, t, r) {
77089
- var i = r.value, s = r.matchMode || Mn.STARTS_WITH, o = ne.resolveFieldData(t, e), a = q8.filters[s];
77113
+ var i = r.value, s = r.matchMode || kn.STARTS_WITH, o = ne.resolveFieldData(t, e), a = q8.filters[s];
77090
77114
  return a(o, i, this.filterLocale);
77091
77115
  },
77092
77116
  onRowClick: function(e) {
@@ -78992,13 +79016,13 @@ const hfe = Ae({
78992
79016
  if (m.value && ce && Q) {
78993
79017
  const pe = (ge == null ? void 0 : ge.getBoundingClientRect().width) || 0;
78994
79018
  m.value.style.setProperty("--first-sticky-width", `${pe}px`);
78995
- const De = Q.getBoundingClientRect(), Ue = Math.max(De.top, Y), it = Math.min(De.bottom, window.innerHeight), fn = Ue < window.innerHeight && it > Y, Yn = it - Ue, Sn = Ue + Yn / 2;
79019
+ const De = Q.getBoundingClientRect(), Ue = Math.max(De.top, Y), it = Math.min(De.bottom, window.innerHeight), fn = Ue < window.innerHeight && it > Y, Yn = it - Ue, Mn = Ue + Yn / 2;
78996
79020
  if (Z && oe)
78997
79021
  if (fn && i.value) {
78998
79022
  Z.classList.remove("hidden"), oe.classList.remove("hidden");
78999
79023
  const Qn = Math.max(
79000
79024
  Ue,
79001
- Math.min(Sn, it - Z.offsetHeight)
79025
+ Math.min(Mn, it - Z.offsetHeight)
79002
79026
  );
79003
79027
  Z.style.top = `${Qn}px`, oe.style.top = `${Qn}px`, Z.style.left = `${ce.left + pe + 8}px`, oe.style.right = `${window.innerWidth - ce.right + 8}px`;
79004
79028
  } else
@@ -79010,7 +79034,7 @@ const hfe = Ae({
79010
79034
  }, n.searchDelay);
79011
79035
  return yt(() => {
79012
79036
  d.value = document.querySelector('div[data-pc-section="wrapper"]'), C(), window.addEventListener("resize", C), window.addEventListener("scroll", E), F(), v.value || re();
79013
- }), Pr(() => {
79037
+ }), Lr(() => {
79014
79038
  window.removeEventListener("resize", C), window.removeEventListener("scroll", E);
79015
79039
  }), {
79016
79040
  // Refs
@@ -79043,7 +79067,7 @@ const hfe = Ae({
79043
79067
  removeScrollButtons: ie,
79044
79068
  setSticky: x,
79045
79069
  // Composable
79046
- mq: Cn,
79070
+ mq: Sn,
79047
79071
  deviceType: t,
79048
79072
  debouncedSearch: ue
79049
79073
  };
@@ -79198,7 +79222,7 @@ function kfe(n, e, t, r, i, s) {
79198
79222
  src: n.noResultsPath
79199
79223
  }, null, 8, Mfe)
79200
79224
  ], !0),
79201
- H(n.$slots, "no-results-text", Nn(Gr({ search: n.search })), void 0, !0)
79225
+ H(n.$slots, "no-results-text", yn(kr({ search: n.search })), void 0, !0)
79202
79226
  ])) : L("", !0)
79203
79227
  ], 16, pfe);
79204
79228
  }
@@ -79429,7 +79453,7 @@ const Yhe = /* @__PURE__ */ Be(Tfe, [["render", Dfe], ["__scopeId", "data-v-fda7
79429
79453
  };
79430
79454
  return J2(() => {
79431
79455
  t.value && (clearTimeout(t.value), t.value = null);
79432
- }), wn(() => {
79456
+ }), Cn(() => {
79433
79457
  r.value && n.duration ? l() : t.value && (clearTimeout(t.value), t.value = null);
79434
79458
  }), {
79435
79459
  // Computed
@@ -79853,7 +79877,7 @@ const Qhe = /* @__PURE__ */ Be(Nfe, [["render", Rfe], ["__scopeId", "data-v-3862
79853
79877
  l.value = document.querySelector(
79854
79878
  `#${i}`
79855
79879
  ), h(), n.autoStart && S();
79856
- }), Pr(() => {
79880
+ }), Lr(() => {
79857
79881
  b();
79858
79882
  }), t({
79859
79883
  startTour: S,
@@ -79899,7 +79923,7 @@ function she(n, e, t, r, i, s) {
79899
79923
  return w(), A(fe, null, [
79900
79924
  D("div", {
79901
79925
  class: "tour-popover",
79902
- style: yn({ bottom: n.props.popoverBottom, left: n.props.popoverLeft })
79926
+ style: vn({ bottom: n.props.popoverBottom, left: n.props.popoverLeft })
79903
79927
  }, [
79904
79928
  n.showPopover ? L("", !0) : (w(), A("button", {
79905
79929
  key: 0,
@@ -79978,7 +80002,7 @@ function she(n, e, t, r, i, s) {
79978
80002
  id: n.backdropId,
79979
80003
  class: "tour-backdrop",
79980
80004
  "data-hidden": !0,
79981
- style: yn({ "--tour-backdrop-blur": `${n.props.backdropBlur}px` })
80005
+ style: vn({ "--tour-backdrop-blur": `${n.props.backdropBlur}px` })
79982
80006
  }, e[8] || (e[8] = [
79983
80007
  D("div", { class: "tour-highlight-outline" }, null, -1)
79984
80008
  ]), 12, Kfe),
@@ -80232,9 +80256,9 @@ var BM = {
80232
80256
  }
80233
80257
  },
80234
80258
  filterMatchModeOptions: {
80235
- text: [Mn.STARTS_WITH, Mn.CONTAINS, Mn.NOT_CONTAINS, Mn.ENDS_WITH, Mn.EQUALS, Mn.NOT_EQUALS],
80236
- numeric: [Mn.EQUALS, Mn.NOT_EQUALS, Mn.LESS_THAN, Mn.LESS_THAN_OR_EQUAL_TO, Mn.GREATER_THAN, Mn.GREATER_THAN_OR_EQUAL_TO],
80237
- date: [Mn.DATE_IS, Mn.DATE_IS_NOT, Mn.DATE_BEFORE, Mn.DATE_AFTER]
80259
+ text: [kn.STARTS_WITH, kn.CONTAINS, kn.NOT_CONTAINS, kn.ENDS_WITH, kn.EQUALS, kn.NOT_EQUALS],
80260
+ numeric: [kn.EQUALS, kn.NOT_EQUALS, kn.LESS_THAN, kn.LESS_THAN_OR_EQUAL_TO, kn.GREATER_THAN, kn.GREATER_THAN_OR_EQUAL_TO],
80261
+ date: [kn.DATE_IS, kn.DATE_IS_NOT, kn.DATE_BEFORE, kn.DATE_AFTER]
80238
80262
  },
80239
80263
  zIndex: {
80240
80264
  modal: 1100,
@@ -81739,6 +81763,6 @@ export {
81739
81763
  yq as QWarningModal,
81740
81764
  CD as QWysiwyg,
81741
81765
  ff as filterData,
81742
- Cn as mq,
81766
+ Sn as mq,
81743
81767
  g1 as useDeviceType
81744
81768
  };