dbf-mirador 4.3.0-testing2 → 4.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.
@@ -1,23 +1,29 @@
1
1
  import { G as e, K as t, Q as n, S as r, U as i, Z as a, a as o, at as s, b as c, dt as l, ft as u, g as d, i as f, m as p, rt as m, st as h, ut as g } from "./getters-B4oepJRC.js";
2
- import { At as _, I as v, It as y, Ut as b, _ as x, a as S, bt as C, c as w, fn as T, in as ee, m as E, mt as D, on as te, tn as ne, un as re, y as O } from "./canvases-DTR37lo-.js";
3
- import { O as k, c as A, h as ie, k as ae, n as oe, r as j, t as M } from "./FailedImageContext-DYZ9cZx9.js";
4
- import { d as N, f as P, l as F, m as I, n as L, o as R, t as z, u as se } from "./index.module-CgUBfaXx.js";
5
- import { i as B } from "./canvas-2ACcnS9Y.js";
6
- import { i as ce, r as V, t as H } from "./PluginHook-DWFCXIIp.js";
7
- import { Children as le, cloneElement as U, createContext as W, useCallback as G, useContext as K, useEffect as q, useId as ue, useMemo as J, useReducer as de, useRef as Y, useState as X } from "react";
8
- import { jsx as Z, jsxs as fe } from "react/jsx-runtime";
9
- import { useTranslation as pe } from "react-i18next";
10
- import { styled as me } from "@mui/material/styles";
11
- import he from "@mui/material/Typography";
12
- import ge from "react-dom";
13
- import _e from "@mui/material/Box";
2
+ import { At as _, I as v, It as y, Pt as b, Ut as x, _ as S, a as C, bt as w, c as T, fn as ee, in as E, m as D, mt as O, on as te, tn as ne, un as k, y as A } from "./canvases-DTR37lo-.js";
3
+ import { O as j, c as re, h as ie, k as ae, n as M, r as N, t as P } from "./FailedImageContext-BhA0TpVp.js";
4
+ import { d as F, f as I, l as oe, m as se, n as L, o as R, t as z, u as B } from "./index.module-CgUBfaXx.js";
5
+ import { i as ce } from "./canvas-2ACcnS9Y.js";
6
+ import { i as V, r as H, t as le } from "./PluginHook-DWFCXIIp.js";
7
+ import { Children as U, cloneElement as W, createContext as ue, useCallback as G, useContext as K, useEffect as q, useId as de, useMemo as J, useReducer as fe, useRef as Y, useState as pe } from "react";
8
+ import { jsx as X, jsxs as me } from "react/jsx-runtime";
9
+ import { useTranslation as he } from "react-i18next";
10
+ import { styled as ge } from "@mui/material/styles";
11
+ import _e from "@mui/material/Typography";
12
+ import ve from "react-dom";
13
+ import ye from "@mui/material/Box";
14
14
  //#region src/state/selectors/viewer.js
15
- var ve = p([
16
- x,
15
+ var be = p([
16
+ S,
17
17
  R,
18
18
  v,
19
19
  y
20
- ], (e, t, n, r) => new L(e.map(r), t, n)), ye = /* @__PURE__ */ g(((e, t) => {
20
+ ], (e, t, n, r) => new L(e.map(r), t, n)), xe = /* @__PURE__ */ g(((e, t) => {
21
+ t.exports = b()(function(e, t, n) {
22
+ e[+!n].push(t);
23
+ }, function() {
24
+ return [[], []];
25
+ });
26
+ })), Se = /* @__PURE__ */ g(((e, t) => {
21
27
  var n = ne(), i = r();
22
28
  function a(e, t) {
23
29
  var r = -1, a = i(e) ? Array(e.length) : [];
@@ -26,14 +32,14 @@ var ve = p([
26
32
  }), a;
27
33
  }
28
34
  t.exports = a;
29
- })), be = /* @__PURE__ */ g(((e, t) => {
35
+ })), Ce = /* @__PURE__ */ g(((e, t) => {
30
36
  function n(e, t) {
31
37
  var n = e.length;
32
38
  for (e.sort(t); n--;) e[n] = e[n].value;
33
39
  return e;
34
40
  }
35
41
  t.exports = n;
36
- })), xe = /* @__PURE__ */ g(((e, t) => {
42
+ })), we = /* @__PURE__ */ g(((e, t) => {
37
43
  var r = n();
38
44
  function i(e, t) {
39
45
  if (e !== t) {
@@ -44,8 +50,8 @@ var ve = p([
44
50
  return 0;
45
51
  }
46
52
  t.exports = i;
47
- })), Se = /* @__PURE__ */ g(((e, t) => {
48
- var n = xe();
53
+ })), Te = /* @__PURE__ */ g(((e, t) => {
54
+ var n = we();
49
55
  function r(e, t, r) {
50
56
  for (var i = -1, a = e.criteria, o = t.criteria, s = a.length, c = r.length; ++i < s;) {
51
57
  var l = n(a[i], o[i]);
@@ -54,8 +60,8 @@ var ve = p([
54
60
  return e.index - t.index;
55
61
  }
56
62
  t.exports = r;
57
- })), Ce = /* @__PURE__ */ g(((t, n) => {
58
- var r = re(), i = te(), a = b(), o = ye(), s = be(), l = c(), u = Se(), d = e(), f = m();
63
+ })), Ee = /* @__PURE__ */ g(((t, n) => {
64
+ var r = k(), i = te(), a = x(), o = Se(), s = Ce(), l = c(), u = Te(), d = e(), f = m();
59
65
  function p(e, t, n) {
60
66
  t = t.length ? r(t, function(e) {
61
67
  return f(e) ? function(t) {
@@ -76,23 +82,23 @@ var ve = p([
76
82
  });
77
83
  }
78
84
  n.exports = p;
79
- })), we = /* @__PURE__ */ g(((e, n) => {
80
- var i = T(), o = r(), s = t(), c = a();
85
+ })), De = /* @__PURE__ */ g(((e, n) => {
86
+ var i = ee(), o = r(), s = t(), c = a();
81
87
  function l(e, t, n) {
82
88
  if (!c(n)) return !1;
83
89
  var r = typeof t;
84
90
  return (r == "number" ? o(n) && s(t, n.length) : r == "string" && t in n) ? i(n[t], e) : !1;
85
91
  }
86
92
  n.exports = l;
87
- })), Te = /* @__PURE__ */ g(((e, t) => {
88
- var n = I(), r = Ce(), i = P(), a = we();
93
+ })), Oe = /* @__PURE__ */ g(((e, t) => {
94
+ var n = se(), r = Ee(), i = I(), a = De();
89
95
  t.exports = i(function(e, t) {
90
96
  if (e == null) return [];
91
97
  var i = t.length;
92
98
  return i > 1 && a(e, t[0], t[1]) ? t = [] : i > 2 && a(t[0], t[1], t[2]) && (t = [t[0]]), r(e, n(t, 1), []);
93
99
  });
94
- })), Ee = /* @__PURE__ */ g(((e, t) => {
95
- var n = F(), r = I(), i = N();
100
+ })), ke = /* @__PURE__ */ g(((e, t) => {
101
+ var n = oe(), r = se(), i = F();
96
102
  function a(e, t, a) {
97
103
  var o = e.length;
98
104
  if (o < 2) return o ? i(e[0]) : [];
@@ -100,12 +106,12 @@ var ve = p([
100
106
  return i(r(c, 1), t, a);
101
107
  }
102
108
  t.exports = a;
103
- })), De = /* @__PURE__ */ g(((e, t) => {
104
- var n = ee(), r = P(), i = Ee(), a = se();
109
+ })), Ae = /* @__PURE__ */ g(((e, t) => {
110
+ var n = E(), r = I(), i = ke(), a = B();
105
111
  t.exports = r(function(e) {
106
112
  return i(n(e, a));
107
113
  });
108
- })), Oe = /* @__PURE__ */ g(((e, t) => {
114
+ })), je = /* @__PURE__ */ g(((e, t) => {
109
115
  function n(e) {
110
116
  return new n.Viewer(e);
111
117
  }
@@ -1094,82 +1100,82 @@ var ve = p([
1094
1100
  E(a, e);
1095
1101
  },
1096
1102
  losecapture: function(e) {
1097
- te(a, e);
1103
+ O(a, e);
1098
1104
  },
1099
1105
  mouseenter: function(e) {
1100
- j(a, e);
1106
+ M(a, e);
1101
1107
  },
1102
1108
  mouseleave: function(e) {
1103
- M(a, e);
1109
+ N(a, e);
1104
1110
  },
1105
1111
  mouseover: function(e) {
1106
- N(a, e);
1112
+ P(a, e);
1107
1113
  },
1108
1114
  mouseout: function(e) {
1109
- P(a, e);
1115
+ F(a, e);
1110
1116
  },
1111
1117
  mousedown: function(e) {
1112
- F(a, e);
1118
+ I(a, e);
1113
1119
  },
1114
1120
  mouseup: function(e) {
1115
- I(a, e);
1121
+ oe(a, e);
1116
1122
  },
1117
1123
  mousemove: function(e) {
1118
- z(a, e);
1124
+ R(a, e);
1119
1125
  },
1120
1126
  touchstart: function(e) {
1121
- ne(a, e);
1127
+ te(a, e);
1122
1128
  },
1123
1129
  touchend: function(e) {
1124
- re(a, e);
1130
+ ne(a, e);
1125
1131
  },
1126
1132
  touchmove: function(e) {
1127
- O(a, e);
1133
+ k(a, e);
1128
1134
  },
1129
1135
  touchcancel: function(e) {
1130
- k(a, e);
1136
+ A(a, e);
1131
1137
  },
1132
1138
  gesturestart: function(e) {
1133
- A(a, e);
1139
+ j(a, e);
1134
1140
  },
1135
1141
  gesturechange: function(e) {
1136
- ie(a, e);
1142
+ re(a, e);
1137
1143
  },
1138
1144
  gotpointercapture: function(e) {
1139
- ae(a, e);
1145
+ ie(a, e);
1140
1146
  },
1141
1147
  lostpointercapture: function(e) {
1142
- oe(a, e);
1148
+ ae(a, e);
1143
1149
  },
1144
1150
  pointerenter: function(e) {
1145
- j(a, e);
1151
+ M(a, e);
1146
1152
  },
1147
1153
  pointerleave: function(e) {
1148
- M(a, e);
1154
+ N(a, e);
1149
1155
  },
1150
1156
  pointerover: function(e) {
1151
- N(a, e);
1157
+ P(a, e);
1152
1158
  },
1153
1159
  pointerout: function(e) {
1154
- P(a, e);
1160
+ F(a, e);
1155
1161
  },
1156
1162
  pointerdown: function(e) {
1157
- F(a, e);
1163
+ I(a, e);
1158
1164
  },
1159
1165
  pointerup: function(e) {
1160
- I(a, e);
1166
+ oe(a, e);
1161
1167
  },
1162
1168
  pointermove: function(e) {
1163
- z(a, e);
1169
+ R(a, e);
1164
1170
  },
1165
1171
  pointercancel: function(e) {
1166
1172
  ce(a, e);
1167
1173
  },
1168
1174
  pointerupcaptured: function(e) {
1169
- L(a, e);
1175
+ se(a, e);
1170
1176
  },
1171
1177
  pointermovecaptured: function(e) {
1172
- se(a, e);
1178
+ z(a, e);
1173
1179
  },
1174
1180
  tracking: !1,
1175
1181
  activePointersLists: [],
@@ -1568,7 +1574,7 @@ var ve = p([
1568
1574
  userData: t.userData
1569
1575
  }, t.scrollHandler(o)), a.stopPropagation && e.stopEvent(r), (o && o.preventDefault || a.preventDefault && !a.defaultPrevented) && e.cancelEvent(r);
1570
1576
  }
1571
- function te(t, n) {
1577
+ function O(t, n) {
1572
1578
  var r = {
1573
1579
  id: e.MouseTracker.mousePointerId,
1574
1580
  type: "mouse"
@@ -1580,7 +1586,7 @@ var ve = p([
1580
1586
  };
1581
1587
  U(t, i), n.target === t.element && W(t, r, !1), i.stopPropagation && e.stopEvent(n);
1582
1588
  }
1583
- function ne(t, n) {
1589
+ function te(t, n) {
1584
1590
  var r, i, a = n.changedTouches.length, o, s = t.getActivePointersListByType("touch");
1585
1591
  r = e.now(), s.getLength() > n.touches.length - a && e.console.warn("Tracked touch contact count doesn't match event.touches.length");
1586
1592
  var c = {
@@ -1595,10 +1601,10 @@ var ve = p([
1595
1601
  isPrimary: s.getLength() === 0,
1596
1602
  currentPos: m(n.changedTouches[i]),
1597
1603
  currentTime: r
1598
- }, G(t, c, o), J(t, c, o, 0), W(t, o, !0);
1604
+ }, ue(t, c, o), de(t, c, o, 0), W(t, o, !0);
1599
1605
  c.preventDefault && !c.defaultPrevented && e.cancelEvent(n), c.stopPropagation && e.stopEvent(n);
1600
1606
  }
1601
- function re(t, n) {
1607
+ function ne(t, n) {
1602
1608
  var r, i, a = n.changedTouches.length, o;
1603
1609
  r = e.now();
1604
1610
  var s = {
@@ -1612,10 +1618,10 @@ var ve = p([
1612
1618
  type: "touch",
1613
1619
  currentPos: m(n.changedTouches[i]),
1614
1620
  currentTime: r
1615
- }, de(t, s, o, 0), W(t, o, !1), K(t, s, o);
1621
+ }, J(t, s, o, 0), W(t, o, !1), G(t, s, o);
1616
1622
  s.preventDefault && !s.defaultPrevented && e.cancelEvent(n), s.stopPropagation && e.stopEvent(n);
1617
1623
  }
1618
- function O(t, n) {
1624
+ function k(t, n) {
1619
1625
  var r, i, a = n.changedTouches.length, o;
1620
1626
  r = e.now();
1621
1627
  var s = {
@@ -1629,10 +1635,10 @@ var ve = p([
1629
1635
  type: "touch",
1630
1636
  currentPos: m(n.changedTouches[i]),
1631
1637
  currentTime: r
1632
- }, Y(t, s, o);
1638
+ }, fe(t, s, o);
1633
1639
  s.preventDefault && !s.defaultPrevented && e.cancelEvent(n), s.stopPropagation && e.stopEvent(n);
1634
1640
  }
1635
- function k(t, n) {
1641
+ function A(t, n) {
1636
1642
  var r = n.changedTouches.length, i, a, o = {
1637
1643
  originalEvent: n,
1638
1644
  eventType: "pointercancel",
@@ -1642,16 +1648,16 @@ var ve = p([
1642
1648
  for (U(t, o), i = 0; i < r; i++) a = {
1643
1649
  id: n.changedTouches[i].identifier,
1644
1650
  type: "touch"
1645
- }, X(t, o, a);
1651
+ }, Y(t, o, a);
1646
1652
  o.stopPropagation && e.stopEvent(n);
1647
1653
  }
1648
- function A(t, n) {
1654
+ function j(t, n) {
1649
1655
  return e.eventIsCanceled(n) || n.preventDefault(), !1;
1650
1656
  }
1651
- function ie(t, n) {
1657
+ function re(t, n) {
1652
1658
  return e.eventIsCanceled(n) || n.preventDefault(), !1;
1653
1659
  }
1654
- function ae(t, n) {
1660
+ function ie(t, n) {
1655
1661
  var r = {
1656
1662
  originalEvent: n,
1657
1663
  eventType: "gotpointercapture",
@@ -1663,7 +1669,7 @@ var ve = p([
1663
1669
  type: f(n)
1664
1670
  }, !0), r.stopPropagation && e.stopEvent(n);
1665
1671
  }
1666
- function oe(t, n) {
1672
+ function ae(t, n) {
1667
1673
  var r = {
1668
1674
  originalEvent: n,
1669
1675
  eventType: "lostpointercapture",
@@ -1675,7 +1681,7 @@ var ve = p([
1675
1681
  type: f(n)
1676
1682
  }, !1), r.stopPropagation && e.stopEvent(n);
1677
1683
  }
1678
- function j(t, n) {
1684
+ function M(t, n) {
1679
1685
  var r = {
1680
1686
  id: d(n),
1681
1687
  type: f(n),
@@ -1688,9 +1694,9 @@ var ve = p([
1688
1694
  pointerType: r.type,
1689
1695
  isEmulated: !1
1690
1696
  };
1691
- U(t, i), G(t, i, r);
1697
+ U(t, i), ue(t, i, r);
1692
1698
  }
1693
- function M(t, n) {
1699
+ function N(t, n) {
1694
1700
  var r = {
1695
1701
  id: d(n),
1696
1702
  type: f(n),
@@ -1703,9 +1709,9 @@ var ve = p([
1703
1709
  pointerType: r.type,
1704
1710
  isEmulated: !1
1705
1711
  };
1706
- U(t, i), K(t, i, r);
1712
+ U(t, i), G(t, i, r);
1707
1713
  }
1708
- function N(t, n) {
1714
+ function P(t, n) {
1709
1715
  var r = {
1710
1716
  id: d(n),
1711
1717
  type: f(n),
@@ -1718,9 +1724,9 @@ var ve = p([
1718
1724
  pointerType: r.type,
1719
1725
  isEmulated: !1
1720
1726
  };
1721
- U(t, i), q(t, i, r), i.preventDefault && !i.defaultPrevented && e.cancelEvent(n), i.stopPropagation && e.stopEvent(n);
1727
+ U(t, i), K(t, i, r), i.preventDefault && !i.defaultPrevented && e.cancelEvent(n), i.stopPropagation && e.stopEvent(n);
1722
1728
  }
1723
- function P(t, n) {
1729
+ function F(t, n) {
1724
1730
  var r = {
1725
1731
  id: d(n),
1726
1732
  type: f(n),
@@ -1733,9 +1739,9 @@ var ve = p([
1733
1739
  pointerType: r.type,
1734
1740
  isEmulated: !1
1735
1741
  };
1736
- U(t, i), ue(t, i, r), i.preventDefault && !i.defaultPrevented && e.cancelEvent(n), i.stopPropagation && e.stopEvent(n);
1742
+ U(t, i), q(t, i, r), i.preventDefault && !i.defaultPrevented && e.cancelEvent(n), i.stopPropagation && e.stopEvent(n);
1737
1743
  }
1738
- function F(t, n) {
1744
+ function I(t, n) {
1739
1745
  var r = {
1740
1746
  id: d(n),
1741
1747
  type: f(n),
@@ -1748,15 +1754,15 @@ var ve = p([
1748
1754
  pointerType: r.type,
1749
1755
  isEmulated: !1
1750
1756
  };
1751
- U(t, a), J(t, a, r, n.button), a.preventDefault && !a.defaultPrevented && e.cancelEvent(n), a.stopPropagation && e.stopEvent(n), a.shouldCapture && (i ? W(t, r, !0) : l(t, r));
1757
+ U(t, a), de(t, a, r, n.button), a.preventDefault && !a.defaultPrevented && e.cancelEvent(n), a.stopPropagation && e.stopEvent(n), a.shouldCapture && (i ? W(t, r, !0) : l(t, r));
1752
1758
  }
1753
- function I(e, t) {
1754
- R(e, t);
1759
+ function oe(e, t) {
1760
+ L(e, t);
1755
1761
  }
1756
- function L(t, n) {
1757
- t.getActivePointersListByType(f(n)).getById(n.pointerId) && R(t, n), e.stopEvent(n);
1762
+ function se(t, n) {
1763
+ t.getActivePointersListByType(f(n)).getById(n.pointerId) && L(t, n), e.stopEvent(n);
1758
1764
  }
1759
- function R(t, n) {
1765
+ function L(t, n) {
1760
1766
  var r = {
1761
1767
  id: d(n),
1762
1768
  type: f(n),
@@ -1769,12 +1775,12 @@ var ve = p([
1769
1775
  pointerType: r.type,
1770
1776
  isEmulated: !1
1771
1777
  };
1772
- U(t, i), de(t, i, r, n.button), i.preventDefault && !i.defaultPrevented && e.cancelEvent(n), i.stopPropagation && e.stopEvent(n), i.shouldReleaseCapture && (n.target === t.element ? u(t, r) : W(t, r, !1));
1778
+ U(t, i), J(t, i, r, n.button), i.preventDefault && !i.defaultPrevented && e.cancelEvent(n), i.stopPropagation && e.stopEvent(n), i.shouldReleaseCapture && (n.target === t.element ? u(t, r) : W(t, r, !1));
1773
1779
  }
1774
- function z(e, t) {
1780
+ function R(e, t) {
1775
1781
  B(e, t);
1776
1782
  }
1777
- function se(t, n) {
1783
+ function z(t, n) {
1778
1784
  t.getActivePointersListByType(f(n)).getById(n.pointerId) && B(t, n), e.stopEvent(n);
1779
1785
  }
1780
1786
  function B(t, n) {
@@ -1790,7 +1796,7 @@ var ve = p([
1790
1796
  pointerType: r.type,
1791
1797
  isEmulated: !1
1792
1798
  };
1793
- U(t, i), Y(t, i, r), i.preventDefault && !i.defaultPrevented && e.cancelEvent(n), i.stopPropagation && e.stopEvent(n);
1799
+ U(t, i), fe(t, i, r), i.preventDefault && !i.defaultPrevented && e.cancelEvent(n), i.stopPropagation && e.stopEvent(n);
1794
1800
  }
1795
1801
  function ce(t, n) {
1796
1802
  var r = {
@@ -1802,7 +1808,7 @@ var ve = p([
1802
1808
  pointerType: r.type,
1803
1809
  isEmulated: !1
1804
1810
  };
1805
- U(t, i), X(t, i, r), i.stopPropagation && e.stopEvent(n);
1811
+ U(t, i), Y(t, i, r), i.stopPropagation && e.stopEvent(n);
1806
1812
  }
1807
1813
  function V(e, t) {
1808
1814
  return t.speed = 0, t.direction = 0, t.contactPos = t.currentPos, t.contactTime = t.currentTime, t.lastPos = t.currentPos, t.lastTime = t.currentTime, e.add(t);
@@ -1854,7 +1860,7 @@ var ve = p([
1854
1860
  var i = t.getActivePointersListByType(n.type), a = i.getById(n.id);
1855
1861
  a ? r && !a.captured ? (a.captured = !0, i.captureCount++) : !r && a.captured && (a.captured = !1, i.captureCount--, i.captureCount < 0 && (i.captureCount = 0, e.console.warn("updatePointerCaptured() - pointsList.captureCount went negative"))) : e.console.warn("updatePointerCaptured() called on untracked pointer");
1856
1862
  }
1857
- function G(e, t, n) {
1863
+ function ue(e, t, n) {
1858
1864
  var r = e.getActivePointersListByType(n.type), i = r.getById(n.id);
1859
1865
  i ? (i.insideElement = !0, i.lastPos = i.currentPos, i.lastTime = i.currentTime, i.currentPos = n.currentPos, i.currentTime = n.currentTime, n = i) : (n.captured = !1, n.insideElementPressed = !1, n.insideElement = !0, V(r, n)), e.enterHandler && e.enterHandler({
1860
1866
  eventSource: e,
@@ -1869,7 +1875,7 @@ var ve = p([
1869
1875
  userData: e.userData
1870
1876
  });
1871
1877
  }
1872
- function K(e, t, n) {
1878
+ function G(e, t, n) {
1873
1879
  var r = e.getActivePointersListByType(n.type), i = r.getById(n.id), a;
1874
1880
  i ? (i.captured ? (i.insideElement = !1, i.lastPos = i.currentPos, i.lastTime = i.currentTime, i.currentPos = n.currentPos, i.currentTime = n.currentTime) : H(e, r, i), n = i) : (n.captured = !1, n.insideElementPressed = !1), (e.leaveHandler || e.exitHandler) && (a = {
1875
1881
  eventSource: e,
@@ -1884,7 +1890,7 @@ var ve = p([
1884
1890
  userData: e.userData
1885
1891
  }, e.leaveHandler && e.leaveHandler(a), e.exitHandler && e.exitHandler(a));
1886
1892
  }
1887
- function q(e, t, n) {
1893
+ function K(e, t, n) {
1888
1894
  var r = e.getActivePointersListByType(n.type), i = r.getById(n.id);
1889
1895
  i ? n = i : (n.captured = !1, n.insideElementPressed = !1), e.overHandler && e.overHandler({
1890
1896
  eventSource: e,
@@ -1899,7 +1905,7 @@ var ve = p([
1899
1905
  userData: e.userData
1900
1906
  });
1901
1907
  }
1902
- function ue(e, t, n) {
1908
+ function q(e, t, n) {
1903
1909
  var r = e.getActivePointersListByType(n.type), i = r.getById(n.id);
1904
1910
  i ? n = i : (n.captured = !1, n.insideElementPressed = !1), e.outHandler && e.outHandler({
1905
1911
  eventSource: e,
@@ -1914,7 +1920,7 @@ var ve = p([
1914
1920
  userData: e.userData
1915
1921
  });
1916
1922
  }
1917
- function J(t, r, i, a) {
1923
+ function de(t, r, i, a) {
1918
1924
  var o = n[t.hash], s = t.getActivePointersListByType(i.type), c;
1919
1925
  if (r.originalEvent.buttons === void 0 ? a === 0 ? s.buttons |= 1 : a === 1 ? s.buttons |= 4 : a === 2 ? s.buttons |= 2 : a === 3 ? s.buttons |= 8 : a === 4 ? s.buttons |= 16 : a === 5 && (s.buttons |= 32) : s.buttons = r.originalEvent.buttons, a !== 0) {
1920
1926
  r.shouldCapture = !1, r.shouldReleaseCapture = !1, t.nonPrimaryPressHandler && !r.preventGesture && !r.defaultPrevented && (r.preventDefault = !0, t.nonPrimaryPressHandler({
@@ -1939,7 +1945,7 @@ var ve = p([
1939
1945
  userData: t.userData
1940
1946
  }) : s.contacts === 2 && t.pinchHandler && i.type === "touch" && (o.pinchGPoints = s.asArray(), o.lastPinchDist = o.currentPinchDist = o.pinchGPoints[0].currentPos.distanceTo(o.pinchGPoints[1].currentPos), o.lastPinchCenter = o.currentPinchCenter = _(o.pinchGPoints[0].currentPos, o.pinchGPoints[1].currentPos))) : (r.shouldCapture = !1, r.shouldReleaseCapture = !1);
1941
1947
  }
1942
- function de(t, r, i, a) {
1948
+ function J(t, r, i, a) {
1943
1949
  var o = n[t.hash], s = t.getActivePointersListByType(i.type), c, l, u, d = !1, f;
1944
1950
  if (r.originalEvent.buttons === void 0 ? a === 0 ? s.buttons ^= -2 : a === 1 ? s.buttons ^= -5 : a === 2 ? s.buttons ^= -3 : a === 3 ? s.buttons ^= -9 : a === 4 ? s.buttons ^= -17 : a === 5 && (s.buttons ^= -33) : s.buttons = r.originalEvent.buttons, r.shouldCapture = !1, a !== 0) {
1945
1951
  r.shouldReleaseCapture = !1, t.nonPrimaryReleaseHandler && !r.preventGesture && !r.defaultPrevented && (r.preventDefault = !0, t.nonPrimaryReleaseHandler({
@@ -2006,12 +2012,12 @@ var ve = p([
2006
2012
  userData: t.userData
2007
2013
  }), r.preventDefault = !0)));
2008
2014
  }
2009
- function Y(e, t, r) {
2015
+ function fe(e, t, r) {
2010
2016
  var i = n[e.hash], a = e.getActivePointersListByType(r.type), o, s, c;
2011
2017
  if (t.originalEvent.buttons !== void 0 && (a.buttons = t.originalEvent.buttons), o = a.getById(r.id), o) o.lastPos = o.currentPos, o.lastTime = o.currentTime, o.currentPos = r.currentPos, o.currentTime = r.currentTime;
2012
2018
  else return;
2013
2019
  t.shouldCapture = !1, t.shouldReleaseCapture = !1, e.stopHandler && r.type === "mouse" && (clearTimeout(e.stopTimeOut), e.stopTimeOut = setTimeout(function() {
2014
- Z(e, t.originalEvent, r.type);
2020
+ pe(e, t.originalEvent, r.type);
2015
2021
  }, e.stopDelay)), a.contacts === 0 ? e.moveHandler && e.moveHandler({
2016
2022
  eventSource: e,
2017
2023
  pointerType: r.type,
@@ -2061,11 +2067,11 @@ var ve = p([
2061
2067
  userData: e.userData
2062
2068
  }), t.preventDefault = !0)));
2063
2069
  }
2064
- function X(e, t, n) {
2070
+ function Y(e, t, n) {
2065
2071
  var r = e.getActivePointersListByType(n.type), i = r.getById(n.id);
2066
2072
  i && H(e, r, i);
2067
2073
  }
2068
- function Z(e, t, n) {
2074
+ function pe(e, t, n) {
2069
2075
  e.stopHandler && e.stopHandler({
2070
2076
  eventSource: e,
2071
2077
  pointerType: n,
@@ -2331,10 +2337,10 @@ var ve = p([
2331
2337
  releaseHandler: e.delegate(this, T),
2332
2338
  nonPrimaryPressHandler: e.delegate(this, ee),
2333
2339
  nonPrimaryReleaseHandler: e.delegate(this, E),
2334
- scrollHandler: e.delegate(this, re),
2340
+ scrollHandler: e.delegate(this, ne),
2335
2341
  pinchHandler: e.delegate(this, D),
2336
- focusHandler: e.delegate(this, te),
2337
- blurHandler: e.delegate(this, ne)
2342
+ focusHandler: e.delegate(this, O),
2343
+ blurHandler: e.delegate(this, te)
2338
2344
  }), this.outerTracker = new e.MouseTracker({
2339
2345
  userData: "Viewer.outerTracker",
2340
2346
  element: this.container,
@@ -2343,12 +2349,12 @@ var ve = p([
2343
2349
  clickDistThreshold: this.clickDistThreshold,
2344
2350
  dblClickTimeThreshold: this.dblClickTimeThreshold,
2345
2351
  dblClickDistThreshold: this.dblClickDistThreshold,
2346
- enterHandler: e.delegate(this, O),
2347
- leaveHandler: e.delegate(this, k)
2352
+ enterHandler: e.delegate(this, k),
2353
+ leaveHandler: e.delegate(this, A)
2348
2354
  }), this.toolbar &&= new e.ControlDock({ element: this.toolbar }), this.bindStandardControls(), t[this.hash].prevContainerSize = i(this.container), window.ResizeObserver ? (this._autoResizePolling = !1, this._resizeObserver = new ResizeObserver(function() {
2349
2355
  t[o.hash].needsResize = !0;
2350
2356
  }), this._resizeObserver.observe(this.container, {})) : this._autoResizePolling = !0, this.world = new e.World({ viewer: this }), this.world.addHandler("add-item", function(e) {
2351
- o.source = o.world.getItemAt(0).source, t[o.hash].forceRedraw = !0, o._updateRequestId ||= c(o, A);
2357
+ o.source = o.world.getItemAt(0).source, t[o.hash].forceRedraw = !0, o._updateRequestId ||= c(o, j);
2352
2358
  }), this.world.addHandler("remove-item", function(e) {
2353
2359
  o.source = o.world.getItemCount() ? o.world.getItemAt(0).source : null, t[o.hash].forceRedraw = !0;
2354
2360
  }), this.world.addHandler("metrics-change", function(e) {
@@ -2534,7 +2540,7 @@ var ve = p([
2534
2540
  if (this.raiseEvent("pre-full-page", l), l.preventDefaultAction) return this;
2535
2541
  if (n && this.element) {
2536
2542
  for (this.elementSize = e.getElementSize(this.element), this.pageScroll = e.getPageScroll(), this.elementMargin = this.element.style.margin, this.element.style.margin = "0", this.elementPadding = this.element.style.padding, this.element.style.padding = "0", this.bodyMargin = i.margin, this.docMargin = a.margin, i.margin = "0", a.margin = "0", this.bodyPadding = i.padding, this.docPadding = a.padding, i.padding = "0", a.padding = "0", this.bodyWidth = i.width, this.docWidth = a.width, i.width = "100%", a.width = "100%", this.bodyHeight = i.height, this.docHeight = a.height, i.height = "100%", a.height = "100%", this.bodyDisplay = i.display, i.display = "block", this.previousBody = [], t[this.hash].prevElementParent = this.element.parentNode, t[this.hash].prevNextSibling = this.element.nextSibling, t[this.hash].prevElementWidth = this.element.style.width, t[this.hash].prevElementHeight = this.element.style.height, s = r.childNodes.length, c = 0; c < s; c++) this.previousBody.push(r.childNodes[0]), r.removeChild(r.childNodes[0]);
2537
- this.toolbar && this.toolbar.element && (this.toolbar.parentNode = this.toolbar.element.parentNode, this.toolbar.nextSibling = this.toolbar.element.nextSibling, r.appendChild(this.toolbar.element), e.addClass(this.toolbar.element, "fullpage")), e.addClass(this.element, "fullpage"), r.appendChild(this.element), this.element.style.height = "100vh", this.element.style.width = "100vw", this.toolbar && this.toolbar.element && (this.element.style.height = e.getElementSize(this.element).y - e.getElementSize(this.toolbar.element).y + "px"), t[this.hash].fullPage = !0, e.delegate(this, O)({});
2543
+ this.toolbar && this.toolbar.element && (this.toolbar.parentNode = this.toolbar.element.parentNode, this.toolbar.nextSibling = this.toolbar.element.nextSibling, r.appendChild(this.toolbar.element), e.addClass(this.toolbar.element, "fullpage")), e.addClass(this.element, "fullpage"), r.appendChild(this.element), this.element.style.height = "100vh", this.element.style.width = "100vw", this.toolbar && this.toolbar.element && (this.element.style.height = e.getElementSize(this.element).y - e.getElementSize(this.toolbar.element).y + "px"), t[this.hash].fullPage = !0, e.delegate(this, k)({});
2538
2544
  } else {
2539
2545
  for (this.element.style.margin = this.elementMargin, this.element.style.padding = this.elementPadding, i.margin = this.bodyMargin, a.margin = this.docMargin, i.padding = this.bodyPadding, a.padding = this.docPadding, i.width = this.bodyWidth, a.width = this.docWidth, i.height = this.bodyHeight, a.height = this.docHeight, i.display = this.bodyDisplay, r.removeChild(this.element), s = this.previousBody.length, c = 0; c < s; c++) r.appendChild(this.previousBody.shift());
2540
2546
  e.removeClass(this.element, "fullpage"), t[this.hash].prevElementParent.insertBefore(this.element, t[this.hash].prevNextSibling), this.toolbar && this.toolbar.element && (r.removeChild(this.toolbar.element), e.removeClass(this.toolbar.element, "fullpage"), this.toolbar.parentNode.insertBefore(this.toolbar.element, this.toolbar.nextSibling), delete this.toolbar.parentNode, delete this.toolbar.nextSibling), this.element.style.width = t[this.hash].prevElementWidth, this.element.style.height = t[this.hash].prevElementHeight;
@@ -2543,7 +2549,7 @@ var ve = p([
2543
2549
  var t = e.getPageScroll();
2544
2550
  u++, u < 10 && (t.x !== o.pageScroll.x || t.y !== o.pageScroll.y) && e.requestAnimationFrame(d);
2545
2551
  };
2546
- e.requestAnimationFrame(d), t[this.hash].fullPage = !1, e.delegate(this, k)({});
2552
+ e.requestAnimationFrame(d), t[this.hash].fullPage = !1, e.delegate(this, A)({});
2547
2553
  }
2548
2554
  return this.navigator && this.viewport && this.navigator.update(this.viewport), this.raiseEvent("full-page", { fullPage: n }), this;
2549
2555
  },
@@ -2720,10 +2726,10 @@ var ve = p([
2720
2726
  clickTimeThreshold: this.clickTimeThreshold,
2721
2727
  clickDistThreshold: this.clickDistThreshold,
2722
2728
  tooltip: e.getString("Tooltips.PreviousPage"),
2723
- srcRest: j(this.prefixUrl, a.previous.REST),
2724
- srcGroup: j(this.prefixUrl, a.previous.GROUP),
2725
- srcHover: j(this.prefixUrl, a.previous.HOVER),
2726
- srcDown: j(this.prefixUrl, a.previous.DOWN),
2729
+ srcRest: M(this.prefixUrl, a.previous.REST),
2730
+ srcGroup: M(this.prefixUrl, a.previous.GROUP),
2731
+ srcHover: M(this.prefixUrl, a.previous.HOVER),
2732
+ srcDown: M(this.prefixUrl, a.previous.DOWN),
2727
2733
  onRelease: i,
2728
2734
  onFocus: t,
2729
2735
  onBlur: n
@@ -2732,10 +2738,10 @@ var ve = p([
2732
2738
  clickTimeThreshold: this.clickTimeThreshold,
2733
2739
  clickDistThreshold: this.clickDistThreshold,
2734
2740
  tooltip: e.getString("Tooltips.NextPage"),
2735
- srcRest: j(this.prefixUrl, a.next.REST),
2736
- srcGroup: j(this.prefixUrl, a.next.GROUP),
2737
- srcHover: j(this.prefixUrl, a.next.HOVER),
2738
- srcDown: j(this.prefixUrl, a.next.DOWN),
2741
+ srcRest: M(this.prefixUrl, a.next.REST),
2742
+ srcGroup: M(this.prefixUrl, a.next.GROUP),
2743
+ srcHover: M(this.prefixUrl, a.next.HOVER),
2744
+ srcDown: M(this.prefixUrl, a.next.DOWN),
2739
2745
  onRelease: r,
2740
2746
  onFocus: t,
2741
2747
  onBlur: n
@@ -2746,16 +2752,16 @@ var ve = p([
2746
2752
  }), this.pagingControl = this.paging.element, this.toolbar ? this.toolbar.addControl(this.pagingControl, { anchor: e.ControlAnchor.BOTTOM_RIGHT }) : this.addControl(this.pagingControl, { anchor: this.sequenceControlAnchor || e.ControlAnchor.TOP_LEFT }))), this;
2747
2753
  },
2748
2754
  bindStandardControls: function() {
2749
- var t = e.delegate(this, M), n = e.delegate(this, P), r = e.delegate(this, L), i = e.delegate(this, N), a = e.delegate(this, R), o = e.delegate(this, se), s = e.delegate(this, B), c = e.delegate(this, ce), l = e.delegate(this, V), u = e.delegate(this, H), d = e.delegate(this, p), f = e.delegate(this, m), h = this.navImages, g = [], _ = !0;
2755
+ var t = e.delegate(this, N), n = e.delegate(this, F), r = e.delegate(this, se), i = e.delegate(this, P), a = e.delegate(this, L), o = e.delegate(this, z), s = e.delegate(this, B), c = e.delegate(this, ce), l = e.delegate(this, V), u = e.delegate(this, H), d = e.delegate(this, p), f = e.delegate(this, m), h = this.navImages, g = [], _ = !0;
2750
2756
  return this.showNavigationControl && ((this.zoomInButton || this.zoomOutButton || this.homeButton || this.fullPageButton || this.rotateLeftButton || this.rotateRightButton || this.flipButton) && (_ = !1), this.showZoomControl && (g.push(this.zoomInButton = new e.Button({
2751
2757
  element: this.zoomInButton ? e.getElement(this.zoomInButton) : null,
2752
2758
  clickTimeThreshold: this.clickTimeThreshold,
2753
2759
  clickDistThreshold: this.clickDistThreshold,
2754
2760
  tooltip: e.getString("Tooltips.ZoomIn"),
2755
- srcRest: j(this.prefixUrl, h.zoomIn.REST),
2756
- srcGroup: j(this.prefixUrl, h.zoomIn.GROUP),
2757
- srcHover: j(this.prefixUrl, h.zoomIn.HOVER),
2758
- srcDown: j(this.prefixUrl, h.zoomIn.DOWN),
2761
+ srcRest: M(this.prefixUrl, h.zoomIn.REST),
2762
+ srcGroup: M(this.prefixUrl, h.zoomIn.GROUP),
2763
+ srcHover: M(this.prefixUrl, h.zoomIn.HOVER),
2764
+ srcDown: M(this.prefixUrl, h.zoomIn.DOWN),
2759
2765
  onPress: t,
2760
2766
  onRelease: n,
2761
2767
  onClick: r,
@@ -2768,10 +2774,10 @@ var ve = p([
2768
2774
  clickTimeThreshold: this.clickTimeThreshold,
2769
2775
  clickDistThreshold: this.clickDistThreshold,
2770
2776
  tooltip: e.getString("Tooltips.ZoomOut"),
2771
- srcRest: j(this.prefixUrl, h.zoomOut.REST),
2772
- srcGroup: j(this.prefixUrl, h.zoomOut.GROUP),
2773
- srcHover: j(this.prefixUrl, h.zoomOut.HOVER),
2774
- srcDown: j(this.prefixUrl, h.zoomOut.DOWN),
2777
+ srcRest: M(this.prefixUrl, h.zoomOut.REST),
2778
+ srcGroup: M(this.prefixUrl, h.zoomOut.GROUP),
2779
+ srcHover: M(this.prefixUrl, h.zoomOut.HOVER),
2780
+ srcDown: M(this.prefixUrl, h.zoomOut.DOWN),
2775
2781
  onPress: i,
2776
2782
  onRelease: n,
2777
2783
  onClick: a,
@@ -2784,10 +2790,10 @@ var ve = p([
2784
2790
  clickTimeThreshold: this.clickTimeThreshold,
2785
2791
  clickDistThreshold: this.clickDistThreshold,
2786
2792
  tooltip: e.getString("Tooltips.Home"),
2787
- srcRest: j(this.prefixUrl, h.home.REST),
2788
- srcGroup: j(this.prefixUrl, h.home.GROUP),
2789
- srcHover: j(this.prefixUrl, h.home.HOVER),
2790
- srcDown: j(this.prefixUrl, h.home.DOWN),
2793
+ srcRest: M(this.prefixUrl, h.home.REST),
2794
+ srcGroup: M(this.prefixUrl, h.home.GROUP),
2795
+ srcHover: M(this.prefixUrl, h.home.HOVER),
2796
+ srcDown: M(this.prefixUrl, h.home.DOWN),
2791
2797
  onRelease: o,
2792
2798
  onFocus: d,
2793
2799
  onBlur: f
@@ -2796,10 +2802,10 @@ var ve = p([
2796
2802
  clickTimeThreshold: this.clickTimeThreshold,
2797
2803
  clickDistThreshold: this.clickDistThreshold,
2798
2804
  tooltip: e.getString("Tooltips.FullPage"),
2799
- srcRest: j(this.prefixUrl, h.fullpage.REST),
2800
- srcGroup: j(this.prefixUrl, h.fullpage.GROUP),
2801
- srcHover: j(this.prefixUrl, h.fullpage.HOVER),
2802
- srcDown: j(this.prefixUrl, h.fullpage.DOWN),
2805
+ srcRest: M(this.prefixUrl, h.fullpage.REST),
2806
+ srcGroup: M(this.prefixUrl, h.fullpage.GROUP),
2807
+ srcHover: M(this.prefixUrl, h.fullpage.HOVER),
2808
+ srcDown: M(this.prefixUrl, h.fullpage.DOWN),
2803
2809
  onRelease: s,
2804
2810
  onFocus: d,
2805
2811
  onBlur: f
@@ -2808,10 +2814,10 @@ var ve = p([
2808
2814
  clickTimeThreshold: this.clickTimeThreshold,
2809
2815
  clickDistThreshold: this.clickDistThreshold,
2810
2816
  tooltip: e.getString("Tooltips.RotateLeft"),
2811
- srcRest: j(this.prefixUrl, h.rotateleft.REST),
2812
- srcGroup: j(this.prefixUrl, h.rotateleft.GROUP),
2813
- srcHover: j(this.prefixUrl, h.rotateleft.HOVER),
2814
- srcDown: j(this.prefixUrl, h.rotateleft.DOWN),
2817
+ srcRest: M(this.prefixUrl, h.rotateleft.REST),
2818
+ srcGroup: M(this.prefixUrl, h.rotateleft.GROUP),
2819
+ srcHover: M(this.prefixUrl, h.rotateleft.HOVER),
2820
+ srcDown: M(this.prefixUrl, h.rotateleft.DOWN),
2815
2821
  onRelease: c,
2816
2822
  onFocus: d,
2817
2823
  onBlur: f
@@ -2820,10 +2826,10 @@ var ve = p([
2820
2826
  clickTimeThreshold: this.clickTimeThreshold,
2821
2827
  clickDistThreshold: this.clickDistThreshold,
2822
2828
  tooltip: e.getString("Tooltips.RotateRight"),
2823
- srcRest: j(this.prefixUrl, h.rotateright.REST),
2824
- srcGroup: j(this.prefixUrl, h.rotateright.GROUP),
2825
- srcHover: j(this.prefixUrl, h.rotateright.HOVER),
2826
- srcDown: j(this.prefixUrl, h.rotateright.DOWN),
2829
+ srcRest: M(this.prefixUrl, h.rotateright.REST),
2830
+ srcGroup: M(this.prefixUrl, h.rotateright.GROUP),
2831
+ srcHover: M(this.prefixUrl, h.rotateright.HOVER),
2832
+ srcDown: M(this.prefixUrl, h.rotateright.DOWN),
2827
2833
  onRelease: l,
2828
2834
  onFocus: d,
2829
2835
  onBlur: f
@@ -2832,10 +2838,10 @@ var ve = p([
2832
2838
  clickTimeThreshold: this.clickTimeThreshold,
2833
2839
  clickDistThreshold: this.clickDistThreshold,
2834
2840
  tooltip: e.getString("Tooltips.Flip"),
2835
- srcRest: j(this.prefixUrl, h.flip.REST),
2836
- srcGroup: j(this.prefixUrl, h.flip.GROUP),
2837
- srcHover: j(this.prefixUrl, h.flip.HOVER),
2838
- srcDown: j(this.prefixUrl, h.flip.DOWN),
2841
+ srcRest: M(this.prefixUrl, h.flip.REST),
2842
+ srcGroup: M(this.prefixUrl, h.flip.GROUP),
2843
+ srcHover: M(this.prefixUrl, h.flip.HOVER),
2844
+ srcDown: M(this.prefixUrl, h.flip.DOWN),
2839
2845
  onRelease: u,
2840
2846
  onFocus: d,
2841
2847
  onBlur: f
@@ -2843,7 +2849,7 @@ var ve = p([
2843
2849
  buttons: g,
2844
2850
  clickTimeThreshold: this.clickTimeThreshold,
2845
2851
  clickDistThreshold: this.clickDistThreshold
2846
- }), this.navControl = this.buttonGroup.element, this.addHandler("open", e.delegate(this, z)), this.toolbar ? this.toolbar.addControl(this.navControl, { anchor: this.navigationControlAnchor || e.ControlAnchor.TOP_LEFT }) : this.addControl(this.navControl, { anchor: this.navigationControlAnchor || e.ControlAnchor.TOP_LEFT })) : this.customButtons = g), this;
2852
+ }), this.navControl = this.buttonGroup.element, this.addHandler("open", e.delegate(this, R)), this.toolbar ? this.toolbar.addControl(this.navControl, { anchor: this.navigationControlAnchor || e.ControlAnchor.TOP_LEFT }) : this.addControl(this.navControl, { anchor: this.navigationControlAnchor || e.ControlAnchor.TOP_LEFT })) : this.customButtons = g), this;
2847
2853
  },
2848
2854
  currentPage: function() {
2849
2855
  return this._sequenceIndex;
@@ -3306,19 +3312,19 @@ var ve = p([
3306
3312
  n = this.viewport.pointFromPixel(e.center, !0), this.viewport.rotateTo(this.viewport.getRotation(!0) + (o - s) * (180 / Math.PI), n, !0);
3307
3313
  }
3308
3314
  }
3309
- function te(e) {
3315
+ function O(e) {
3310
3316
  this.raiseEvent("canvas-focus", {
3311
3317
  tracker: e.eventSource,
3312
3318
  originalEvent: e.originalEvent
3313
3319
  });
3314
3320
  }
3315
- function ne(e) {
3321
+ function te(e) {
3316
3322
  this.raiseEvent("canvas-blur", {
3317
3323
  tracker: e.eventSource,
3318
3324
  originalEvent: e.originalEvent
3319
3325
  });
3320
3326
  }
3321
- function re(t) {
3327
+ function ne(t) {
3322
3328
  var n, r, i, a = e.now();
3323
3329
  a - this._lastScrollTime > this.minScrollDeltaTime ? (this._lastScrollTime = a, n = {
3324
3330
  tracker: t.eventSource,
@@ -3330,7 +3336,7 @@ var ve = p([
3330
3336
  preventDefault: !0
3331
3337
  }, this.raiseEvent("canvas-scroll", n), !n.preventDefaultAction && this.viewport && (this.viewport.flipped && (t.position.x = this.viewport.getContainerSize().x - t.position.x), r = this.gestureSettingsByDeviceType(t.pointerType), r.scrollToZoom && (i = this.zoomPerScroll ** +t.scroll, this.viewport.zoomBy(i, r.zoomToRefPoint ? this.viewport.pointFromPixel(t.position, !0) : null), this.viewport.applyConstraints())), t.preventDefault = n.preventDefault) : t.preventDefault = !0;
3332
3338
  }
3333
- function O(e) {
3339
+ function k(e) {
3334
3340
  t[this.hash].mouseInside = !0, f(this), this.raiseEvent("container-enter", {
3335
3341
  tracker: e.eventSource,
3336
3342
  pointerType: e.pointerType,
@@ -3342,7 +3348,7 @@ var ve = p([
3342
3348
  originalEvent: e.originalEvent
3343
3349
  });
3344
3350
  }
3345
- function k(e) {
3351
+ function A(e) {
3346
3352
  e.pointers < 1 && (t[this.hash].mouseInside = !1, t[this.hash].animating || u(this)), this.raiseEvent("container-exit", {
3347
3353
  tracker: e.eventSource,
3348
3354
  pointerType: e.pointerType,
@@ -3354,10 +3360,10 @@ var ve = p([
3354
3360
  originalEvent: e.originalEvent
3355
3361
  });
3356
3362
  }
3357
- function A(e) {
3358
- ae(e), e._updateRequestId = e.isOpen() ? c(e, A) : !1;
3363
+ function j(e) {
3364
+ ie(e), e._updateRequestId = e.isOpen() ? c(e, j) : !1;
3359
3365
  }
3360
- function ie(n, r) {
3366
+ function re(n, r) {
3361
3367
  var i = n.viewport, a = i.getZoom(), o = i.getCenter();
3362
3368
  i.resize(r, n.preserveImageSizeOnResize), i.panTo(o, !0);
3363
3369
  var s;
@@ -3368,7 +3374,7 @@ var ve = p([
3368
3374
  }
3369
3375
  i.zoomTo(a * s, null, !0), t[n.hash].prevContainerSize = r, t[n.hash].forceRedraw = !0, t[n.hash].needsResize = !1, t[n.hash].forceResize = !1;
3370
3376
  }
3371
- function ae(e) {
3377
+ function ie(e) {
3372
3378
  if (!(e._opening || !t[e.hash])) {
3373
3379
  if (e.autoResize || t[e.hash].forceResize) {
3374
3380
  var n;
@@ -3377,48 +3383,48 @@ var ve = p([
3377
3383
  var r = t[e.hash].prevContainerSize;
3378
3384
  n.equals(r) || (t[e.hash].needsResize = !0);
3379
3385
  }
3380
- t[e.hash].needsResize && ie(e, n || i(e.container));
3386
+ t[e.hash].needsResize && re(e, n || i(e.container));
3381
3387
  }
3382
3388
  var a = e.viewport.update(), o = e.world.update(a) || a;
3383
3389
  a && e.raiseEvent("viewport-change"), e.referenceStrip && (o = e.referenceStrip.update(e.viewport) || o);
3384
3390
  var s = t[e.hash].animating;
3385
3391
  !s && o && (e.raiseEvent("animation-start"), f(e));
3386
3392
  var c = s && !o;
3387
- c && (t[e.hash].animating = !1), (o || c || t[e.hash].forceRedraw || e.world.needsDraw()) && (oe(e), e._drawOverlays(), e.navigator && e.navigator.update(e.viewport), t[e.hash].forceRedraw = !1, o && e.raiseEvent("animation")), c && (e.raiseEvent("animation-finish"), t[e.hash].mouseInside || u(e)), t[e.hash].animating = o;
3393
+ c && (t[e.hash].animating = !1), (o || c || t[e.hash].forceRedraw || e.world.needsDraw()) && (ae(e), e._drawOverlays(), e.navigator && e.navigator.update(e.viewport), t[e.hash].forceRedraw = !1, o && e.raiseEvent("animation")), c && (e.raiseEvent("animation-finish"), t[e.hash].mouseInside || u(e)), t[e.hash].animating = o;
3388
3394
  }
3389
3395
  }
3390
- function oe(e) {
3396
+ function ae(e) {
3391
3397
  e.imageLoader.clear(), e.world.draw(), e.raiseEvent("update-viewport", {});
3392
3398
  }
3393
- function j(e, t) {
3399
+ function M(e, t) {
3394
3400
  return e ? e + t : t;
3395
3401
  }
3396
- function M() {
3397
- t[this.hash].lastZoomTime = e.now(), t[this.hash].zoomFactor = this.zoomPerSecond, t[this.hash].zooming = !0, F(this);
3398
- }
3399
3402
  function N() {
3400
- t[this.hash].lastZoomTime = e.now(), t[this.hash].zoomFactor = 1 / this.zoomPerSecond, t[this.hash].zooming = !0, F(this);
3403
+ t[this.hash].lastZoomTime = e.now(), t[this.hash].zoomFactor = this.zoomPerSecond, t[this.hash].zooming = !0, I(this);
3401
3404
  }
3402
3405
  function P() {
3406
+ t[this.hash].lastZoomTime = e.now(), t[this.hash].zoomFactor = 1 / this.zoomPerSecond, t[this.hash].zooming = !0, I(this);
3407
+ }
3408
+ function F() {
3403
3409
  t[this.hash].zooming = !1;
3404
3410
  }
3405
- function F(t) {
3406
- e.requestAnimationFrame(e.delegate(t, I));
3411
+ function I(t) {
3412
+ e.requestAnimationFrame(e.delegate(t, oe));
3407
3413
  }
3408
- function I() {
3414
+ function oe() {
3409
3415
  var n, r, i;
3410
- t[this.hash].zooming && this.viewport && (n = e.now(), r = n - t[this.hash].lastZoomTime, i = t[this.hash].zoomFactor ** (r / 1e3), this.viewport.zoomBy(i), this.viewport.applyConstraints(), t[this.hash].lastZoomTime = n, F(this));
3416
+ t[this.hash].zooming && this.viewport && (n = e.now(), r = n - t[this.hash].lastZoomTime, i = t[this.hash].zoomFactor ** (r / 1e3), this.viewport.zoomBy(i), this.viewport.applyConstraints(), t[this.hash].lastZoomTime = n, I(this));
3411
3417
  }
3412
- function L() {
3418
+ function se() {
3413
3419
  this.viewport && (t[this.hash].zooming = !1, this.viewport.zoomBy(this.zoomPerClick / 1), this.viewport.applyConstraints());
3414
3420
  }
3415
- function R() {
3421
+ function L() {
3416
3422
  this.viewport && (t[this.hash].zooming = !1, this.viewport.zoomBy(1 / this.zoomPerClick), this.viewport.applyConstraints());
3417
3423
  }
3418
- function z() {
3424
+ function R() {
3419
3425
  this.buttonGroup && (this.buttonGroup.emulateEnter(), this.buttonGroup.emulateLeave());
3420
3426
  }
3421
- function se() {
3427
+ function z() {
3422
3428
  this.viewport && this.viewport.goHome();
3423
3429
  }
3424
3430
  function B() {
@@ -7216,7 +7222,7 @@ var ve = p([
7216
7222
  }
7217
7223
  });
7218
7224
  })(n);
7219
- })), Q = /* @__PURE__ */ u(s(), 1), ke = /* @__PURE__ */ u(ce(), 1), Ae = /* @__PURE__ */ u(Te(), 1), je = /* @__PURE__ */ u(De(), 1), $ = /* @__PURE__ */ u(Oe(), 1), Me = class {
7225
+ })), Z = /* @__PURE__ */ u(s(), 1), Me = /* @__PURE__ */ u(V(), 1), Ne = /* @__PURE__ */ u(xe(), 1), Pe = /* @__PURE__ */ u(Oe(), 1), Fe = /* @__PURE__ */ u(Ae(), 1), Q = /* @__PURE__ */ u(je(), 1), Ie = class {
7220
7226
  constructor(e, t) {
7221
7227
  this.viewer = e, this.ref = t, this.containerWidth = 0, this.containerHeight = 0, this.imgAspectRatio = 1;
7222
7228
  }
@@ -7233,7 +7239,7 @@ var ve = p([
7233
7239
  this.context2d && this.context2d.clearRect(0, 0, this.containerWidth, this.containerHeight);
7234
7240
  }
7235
7241
  resize() {
7236
- this.containerWidth !== this.viewer.container.clientWidth && (this.containerWidth = this.viewer.container.clientWidth, this.canvasDiv.setAttribute("width", this.containerWidth), this.canvas.setAttribute("width", this.containerWidth)), this.containerHeight !== this.viewer.container.clientHeight && (this.containerHeight = this.viewer.container.clientHeight, this.canvasDiv.setAttribute("height", this.containerHeight), this.canvas.setAttribute("height", this.containerHeight)), this.viewportOrigin = new $.default.Point(0, 0);
7242
+ this.containerWidth !== this.viewer.container.clientWidth && (this.containerWidth = this.viewer.container.clientWidth, this.canvasDiv.setAttribute("width", this.containerWidth), this.canvas.setAttribute("width", this.containerWidth)), this.containerHeight !== this.viewer.container.clientHeight && (this.containerHeight = this.viewer.container.clientHeight, this.canvasDiv.setAttribute("height", this.containerHeight), this.canvas.setAttribute("height", this.containerHeight)), this.viewportOrigin = new Q.default.Point(0, 0);
7237
7243
  let e = this.viewer.viewport.getBoundsNoRotateWithMargins(!0);
7238
7244
  this.viewportOrigin.x = e.x, this.viewportOrigin.y = e.y * this.imgAspectRatio, this.viewportWidth = e.width, this.viewportHeight = e.height * this.imgAspectRatio;
7239
7245
  let t = this.viewer.world.getItemAt(0);
@@ -7253,13 +7259,13 @@ var ve = p([
7253
7259
  };
7254
7260
  //#endregion
7255
7261
  //#region src/lib/svgShapesToPath.js
7256
- function Ne(e) {
7262
+ function Le(e) {
7257
7263
  let t = e.tagName.toLowerCase(), n = (t) => parseFloat(e.getAttribute(t)) || 0;
7258
7264
  if (t === "path") return new Path2D(e.getAttribute("d"));
7259
7265
  let r = new Path2D();
7260
- return Pe[t]?.(r, e, n), r;
7266
+ return Re[t]?.(r, e, n), r;
7261
7267
  }
7262
- var Pe = {
7268
+ var Re = {
7263
7269
  circle: (e, t, n) => {
7264
7270
  e.arc(n("cx"), n("cy"), n("r"), 0, 2 * Math.PI);
7265
7271
  },
@@ -7272,27 +7278,57 @@ var Pe = {
7272
7278
  line: (e, t, n) => {
7273
7279
  e.moveTo(n("x1"), n("y1")), e.lineTo(n("x2"), n("y2"));
7274
7280
  },
7275
- polygon: (e, t) => Fe(e, t, !0),
7276
- polyline: (e, t) => Fe(e, t, !1)
7281
+ polygon: (e, t) => ze(e, t, !0),
7282
+ polyline: (e, t) => ze(e, t, !1)
7277
7283
  };
7278
- function Fe(e, t, n) {
7279
- Ie(t.getAttribute("points")).forEach(([t, n], r) => {
7284
+ function ze(e, t, n) {
7285
+ Be(t.getAttribute("points")).forEach(([t, n], r) => {
7280
7286
  r === 0 ? e.moveTo(t, n) : e.lineTo(t, n);
7281
7287
  }), n && e.closePath();
7282
7288
  }
7283
- function Ie(e) {
7289
+ function Be(e) {
7284
7290
  let t = e.trim().split(/[\s,]+/).map(Number), n = [];
7285
7291
  for (let e = 0; e < t.length - 1; e += 2) n.push([t[e], t[e + 1]]);
7286
7292
  return n;
7287
7293
  }
7288
7294
  //#endregion
7289
7295
  //#region src/lib/CanvasAnnotationDisplay.js
7290
- var Le = class {
7296
+ var Ve = "M50.002 0C30.763 0 15 15.718 15 34.902c0 7.432 2.374 14.34 6.392 20.019L45.73 96.994c3.409 4.453 5.675 3.607 8.51-.235l26.843-45.683c.542-.981.967-2.026 1.338-3.092A34.446 34.446 0 0 0 85 34.902C85 15.718 69.24 0 50.002 0zm0 16.354c10.359 0 18.597 8.218 18.597 18.548c0 10.33-8.238 18.544-18.597 18.544c-10.36 0-18.601-8.215-18.601-18.544c0-10.33 8.241-18.548 18.6-18.548z", He = 100, Ue = {
7297
+ x: 50,
7298
+ y: 100
7299
+ }, $ = {
7300
+ x: 50,
7301
+ y: 34.9,
7302
+ radius: 18.6
7303
+ }, We = 1.6, Ge = "#1e88e5";
7304
+ function Ke(e, t, n) {
7305
+ let r = 44 / n / He;
7306
+ return {
7307
+ radius: 32 / n,
7308
+ x: e + ($.x - Ue.x) * r,
7309
+ y: t + ($.y - Ue.y) * r
7310
+ };
7311
+ }
7312
+ var qe = class {
7291
7313
  constructor({ resource: e, palette: t, zoomRatio: n, offset: r, selected: i, hovered: a }) {
7292
7314
  this.resource = e, this.palette = t, this.zoomRatio = n, this.offset = r, this.selected = i, this.hovered = a;
7293
7315
  }
7294
7316
  toContext(e) {
7295
- this.context = e, this.resource.svgSelector ? this.svgContext() : this.resource.fragmentSelector && this.fragmentContext();
7317
+ this.context = e, this.resource.svgSelector ? this.svgContext() : this.resource.pointSelector ? this.pointContext() : this.resource.fragmentSelector && this.fragmentContext();
7318
+ }
7319
+ currentPalette() {
7320
+ return this.hovered ? this.palette.hovered : this.selected ? this.palette.selected : this.palette.default;
7321
+ }
7322
+ pointContext() {
7323
+ let { x: e, y: t } = this.resource.pointSelector, n = this.currentPalette();
7324
+ if (n.globalAlpha === 0) return;
7325
+ let r = 44 / this.zoomRatio / He;
7326
+ this.context.save(), this.context.translate(this.offset.x + e, this.offset.y + t), this.context.scale(r, r), this.context.translate(-Ue.x, -Ue.y), this.context.globalAlpha = n.globalAlpha ?? 1, this.context.fillStyle = n.fillStyle || Ge, this.context.fill(new Path2D(Ve));
7327
+ let { journeyOrder: i } = this.resource;
7328
+ i != null && this.journeyOrderBadgeContext(i), this.context.restore();
7329
+ }
7330
+ journeyOrderBadgeContext(e) {
7331
+ this.context.beginPath(), this.context.arc($.x, $.y, $.radius, 0, Math.PI * 2), this.context.fillStyle = "#ffffff", this.context.fill(), this.context.fillStyle = this.currentPalette().fillStyle || Ge, this.context.font = `bold ${$.radius * We}px sans-serif`, this.context.textAlign = "center", this.context.textBaseline = "middle", this.context.fillText(String(e), $.x, $.y);
7296
7332
  }
7297
7333
  get svgString() {
7298
7334
  return this.resource.svgSelector.value;
@@ -7304,7 +7340,7 @@ var Le = class {
7304
7340
  let e;
7305
7341
  e = this.hovered ? this.palette.hovered : this.selected ? this.palette.selected : this.palette.default, e.globalAlpha !== 0 && [...this.svgPaths].forEach((t) => {
7306
7342
  this.context.save(), this.context.translate(this.offset.x, this.offset.y);
7307
- let n = Ne(t);
7343
+ let n = Le(t);
7308
7344
  this.context.strokeStyle = this.color, t.getAttribute("stroke-dasharray") && this.context.setLineDash(t.getAttribute("stroke-dasharray").split(","));
7309
7345
  let r = {
7310
7346
  fill: "fillStyle",
@@ -7335,24 +7371,30 @@ var Le = class {
7335
7371
  };
7336
7372
  //#endregion
7337
7373
  //#region src/components/AnnotationsOverlay.jsx
7338
- function Re(e, t, n, r, i) {
7339
- let [a, o] = e.canvasToWorldCoordinates(r.id), s = i.x - a, c = i.y - o;
7340
- if (n.svgSelector) {
7341
- let e = t.context2d, { svgPaths: r } = new Le({ resource: n });
7342
- return [...r].some((t) => e.isPointInPath(Ne(t), s, c));
7374
+ function Je({ canvasWorld: e, osdCanvasOverlay: t, viewer: n }, r, i, a) {
7375
+ let [o, s] = e.canvasToWorldCoordinates(i.id), c = a.x - o, l = a.y - s;
7376
+ if (r.svgSelector) {
7377
+ let e = t.context2d, { svgPaths: n } = new qe({ resource: r });
7378
+ return [...n].some((t) => e.isPointInPath(Le(t), c, l));
7343
7379
  }
7344
- if (n.fragmentSelector) {
7345
- let [e, t, r, i] = n.fragmentSelector;
7346
- return e <= s && s <= e + r && t <= c && c <= t + i;
7380
+ if (r.pointSelector) {
7381
+ let { x: t, y: a } = r.pointSelector, o = e.canvases.findIndex((e) => e.id === i.id), s = n.world.getItemAt(o);
7382
+ if (!s) return !1;
7383
+ let u = Ke(t, a, s.viewportToImageZoom(n.viewport.getZoom(!0))), d = c - u.x, f = l - u.y;
7384
+ return d * d + f * f <= u.radius * u.radius;
7385
+ }
7386
+ if (r.fragmentSelector) {
7387
+ let [e, t, n, i] = r.fragmentSelector;
7388
+ return e <= c && c <= e + n && t <= l && l <= t + i;
7347
7389
  }
7348
7390
  return !1;
7349
7391
  }
7350
- function ze(e) {
7392
+ function Ye(e) {
7351
7393
  let t = e.originalEvent?.pointerType;
7352
7394
  return (t === "touch" || t === "pen") && e.quick === !1;
7353
7395
  }
7354
- function Be({ annotations: e = [], canvasWorld: t, deselectAnnotation: n = () => {}, drawAnnotations: r = !0, drawSearchAnnotations: i = !0, highlightAllAnnotations: a = !1, hoverAnnotation: o = () => {}, hoveredAnnotationIds: s = [], palette: c = {}, searchAnnotations: l = [], selectAnnotation: u = () => {}, selectedAnnotationId: d = null, viewer: f = null, windowId: p }) {
7355
- let m = Y(), h = J(() => new Me(f, m), [m, f]), g = G((e) => {
7396
+ function Xe({ annotations: e = [], canvasWorld: t, deselectAnnotation: n = () => {}, drawAnnotations: r = !0, drawSearchAnnotations: i = !0, highlightAllAnnotations: a = !1, hoverAnnotation: o = () => {}, hoveredAnnotationIds: s = [], palette: c = {}, searchAnnotations: l = [], selectAnnotation: u = () => {}, selectedAnnotationId: d = null, viewer: f = null, windowId: p }) {
7397
+ let m = Y(), h = J(() => new Ie(f, m), [m, f]), g = G((e) => {
7356
7398
  d === e ? n(p, e) : u(p, e);
7357
7399
  }, [
7358
7400
  d,
@@ -7360,29 +7402,27 @@ function Be({ annotations: e = [], canvasWorld: t, deselectAnnotation: n = () =>
7360
7402
  u,
7361
7403
  p
7362
7404
  ]), _ = G((e, n) => {
7363
- let r = h.context2d;
7364
- e.forEach((e) => {
7365
- e.resources.forEach((e) => {
7366
- let i = t.canvases.findIndex((t) => t.id === e.targetId);
7367
- if (i === -1) return;
7368
- let o = f.world.getItemAt(i);
7369
- if (!o) return;
7370
- let c = t.offsetByCanvas(e.targetId), l = o.viewportToImageZoom(f.viewport.getZoom(!0));
7371
- new Le({
7372
- hovered: s.includes(e.id),
7373
- offset: c,
7374
- palette: {
7375
- ...n,
7376
- default: {
7377
- ...n.default,
7378
- ...!a && n.hidden
7379
- }
7380
- },
7381
- resource: e,
7382
- selected: d === e.id,
7383
- zoomRatio: l
7384
- }).toContext(r);
7385
- });
7405
+ let r = h.context2d, i = e.flatMap((e) => e.resources), [o, c] = (0, Ne.default)(i, (e) => !e.pointSelector);
7406
+ [...o, ...c].forEach((e) => {
7407
+ let i = t.canvases.findIndex((t) => t.id === e.targetId);
7408
+ if (i === -1) return;
7409
+ let o = f.world.getItemAt(i);
7410
+ if (!o) return;
7411
+ let c = t.offsetByCanvas(e.targetId), l = o.viewportToImageZoom(f.viewport.getZoom(!0));
7412
+ new qe({
7413
+ hovered: s.includes(e.id),
7414
+ offset: c,
7415
+ palette: {
7416
+ ...n,
7417
+ default: {
7418
+ ...n.default,
7419
+ ...!a && n.hidden
7420
+ }
7421
+ },
7422
+ resource: e,
7423
+ selected: d === e.id,
7424
+ zoomRatio: l
7425
+ }).toContext(r);
7386
7426
  });
7387
7427
  }, [
7388
7428
  h,
@@ -7402,13 +7442,18 @@ function Be({ annotations: e = [], canvasWorld: t, deselectAnnotation: n = () =>
7402
7442
  l
7403
7443
  ]), y = G(() => {
7404
7444
  h && (h.clear(), h.resize(), h.canvasUpdate(v));
7405
- }, [h, v]), b = G((n, r) => [...e, ...l].flatMap((e) => e.resources).filter((e) => n.id === e.targetId && Re(t, h, e, n, r)), [
7445
+ }, [h, v]), b = G((n, r) => [...e, ...l].flatMap((e) => e.resources).filter((e) => n.id === e.targetId && Je({
7446
+ canvasWorld: t,
7447
+ osdCanvasOverlay: h,
7448
+ viewer: f
7449
+ }, e, n, r)), [
7406
7450
  e,
7407
7451
  t,
7408
7452
  h,
7409
- l
7453
+ l,
7454
+ f
7410
7455
  ]), x = G((e) => {
7411
- if (ze(e)) return;
7456
+ if (Ye(e)) return;
7412
7457
  let { position: n, eventSource: { viewport: r } } = e, i = r.pointFromPixel(n), a = t.canvasAtPoint(i);
7413
7458
  if (!a) return;
7414
7459
  let [o, s, c, l] = t.canvasToWorldCoordinates(a.id), u = b(a, i);
@@ -7420,7 +7465,11 @@ function Be({ annotations: e = [], canvasWorld: t, deselectAnnotation: n = () =>
7420
7465
  let o = 0;
7421
7466
  for (let s = 0; s < 360; s += 1) {
7422
7467
  let c = Math.cos(s * n) * e + i.x, l = Math.sin(s * n) * e + i.y;
7423
- Re(t, h, r, a, {
7468
+ Je({
7469
+ canvasWorld: t,
7470
+ osdCanvasOverlay: h,
7471
+ viewer: f
7472
+ }, r, a, {
7424
7473
  x: c,
7425
7474
  y: l
7426
7475
  }) && (o += 1);
@@ -7430,15 +7479,16 @@ function Be({ annotations: e = [], canvasWorld: t, deselectAnnotation: n = () =>
7430
7479
  score: o
7431
7480
  };
7432
7481
  };
7433
- }, n = 1, r = (0, Ae.default)(u.map(e(n)), "score");
7434
- for (; n < Math.max(c, l) && r[0].score === r[1].score;) n *= 2, r = (0, Ae.default)(u.map(e(n)), "score");
7482
+ }, n = 1, r = (0, Pe.default)(u.map(e(n)), "score");
7483
+ for (; n < Math.max(c, l) && r[0].score === r[1].score;) n *= 2, r = (0, Pe.default)(u.map(e(n)), "score");
7435
7484
  g(r[0].anno.id);
7436
7485
  }
7437
7486
  }, [
7438
7487
  b,
7439
7488
  t,
7440
7489
  h,
7441
- g
7490
+ g,
7491
+ f
7442
7492
  ]), S = z(G((n) => {
7443
7493
  if (e.length === 0 && l.length === 0) return;
7444
7494
  let { position: r } = n, i = f.viewport.pointFromPixel(r), a = t.canvasAtPoint(i);
@@ -7447,7 +7497,7 @@ function Be({ annotations: e = [], canvasWorld: t, deselectAnnotation: n = () =>
7447
7497
  return;
7448
7498
  }
7449
7499
  let c = b(a, i);
7450
- (0, je.default)(s, c.map((e) => e.id)).length > 0 && o(p, c.map((e) => e.id));
7500
+ (0, Fe.default)(s, c.map((e) => e.id)).length > 0 && o(p, c.map((e) => e.id));
7451
7501
  }, [
7452
7502
  e,
7453
7503
  b,
@@ -7489,7 +7539,7 @@ function Be({ annotations: e = [], canvasWorld: t, deselectAnnotation: n = () =>
7489
7539
  f
7490
7540
  ]), q(() => {
7491
7541
  m.current && (s.length > 0 ? m.current.style.cursor = "pointer" : m.current.style.cursor = "");
7492
- }, [s, m]), f ? ge.createPortal(/* @__PURE__ */ Z("div", {
7542
+ }, [s, m]), f ? ve.createPortal(/* @__PURE__ */ X("div", {
7493
7543
  ref: m,
7494
7544
  style: {
7495
7545
  height: "100%",
@@ -7498,28 +7548,28 @@ function Be({ annotations: e = [], canvasWorld: t, deselectAnnotation: n = () =>
7498
7548
  top: 0,
7499
7549
  width: "100%"
7500
7550
  },
7501
- children: /* @__PURE__ */ Z("canvas", {})
7551
+ children: /* @__PURE__ */ X("canvas", {})
7502
7552
  }), f.canvas) : null;
7503
7553
  }
7504
- Be.propTypes = {
7505
- annotations: Q.default.arrayOf(Q.default.object),
7506
- canvasWorld: Q.default.instanceOf(L).isRequired,
7507
- deselectAnnotation: Q.default.func,
7508
- drawAnnotations: Q.default.bool,
7509
- drawSearchAnnotations: Q.default.bool,
7510
- highlightAllAnnotations: Q.default.bool,
7511
- hoverAnnotation: Q.default.func,
7512
- hoveredAnnotationIds: Q.default.arrayOf(Q.default.string),
7513
- palette: Q.default.object,
7514
- searchAnnotations: Q.default.arrayOf(Q.default.object),
7515
- selectAnnotation: Q.default.func,
7516
- selectedAnnotationId: Q.default.string,
7517
- viewer: Q.default.object,
7518
- windowId: Q.default.string.isRequired
7554
+ Xe.propTypes = {
7555
+ annotations: Z.default.arrayOf(Z.default.object),
7556
+ canvasWorld: Z.default.instanceOf(L).isRequired,
7557
+ deselectAnnotation: Z.default.func,
7558
+ drawAnnotations: Z.default.bool,
7559
+ drawSearchAnnotations: Z.default.bool,
7560
+ highlightAllAnnotations: Z.default.bool,
7561
+ hoverAnnotation: Z.default.func,
7562
+ hoveredAnnotationIds: Z.default.arrayOf(Z.default.string),
7563
+ palette: Z.default.object,
7564
+ searchAnnotations: Z.default.arrayOf(Z.default.object),
7565
+ selectAnnotation: Z.default.func,
7566
+ selectedAnnotationId: Z.default.string,
7567
+ viewer: Z.default.object,
7568
+ windowId: Z.default.string.isRequired
7519
7569
  };
7520
7570
  //#endregion
7521
7571
  //#region src/components/ImageFailureMessage.jsx
7522
- var Ve = me(_e)(({ theme: e }) => ({
7572
+ var Ze = ge(ye)(({ theme: e }) => ({
7523
7573
  position: "absolute",
7524
7574
  top: e.spacing(2),
7525
7575
  left: "50%",
@@ -7531,39 +7581,39 @@ var Ve = me(_e)(({ theme: e }) => ({
7531
7581
  zIndex: 1e3,
7532
7582
  pointerEvents: "none"
7533
7583
  }));
7534
- function He({ imageUrls: e = [] }) {
7535
- let { failedImages: t } = K(M), { t: n } = pe();
7536
- return e.some((e) => t.has(e)) ? /* @__PURE__ */ Z(Ve, {
7584
+ function Qe({ imageUrls: e = [] }) {
7585
+ let { failedImages: t } = K(P), { t: n } = he();
7586
+ return e.some((e) => t.has(e)) ? /* @__PURE__ */ X(Ze, {
7537
7587
  role: "status",
7538
7588
  "aria-live": "polite",
7539
- children: /* @__PURE__ */ Z(he, {
7589
+ children: /* @__PURE__ */ X(_e, {
7540
7590
  variant: "body2",
7541
7591
  children: n("imageFailedToLoad")
7542
7592
  })
7543
7593
  }) : null;
7544
7594
  }
7545
- He.propTypes = { imageUrls: Q.default.arrayOf(Q.default.string) };
7546
- var Ue = i(h((e, { windowId: t }) => ({
7547
- annotations: k(e, { windowId: t }),
7548
- canvasWorld: ve(e, { windowId: t }),
7549
- drawAnnotations: D(e).window.forceDrawAnnotations || _(e, {
7595
+ Qe.propTypes = { imageUrls: Z.default.arrayOf(Z.default.string) };
7596
+ var $e = i(h((e, { windowId: t }) => ({
7597
+ annotations: j(e, { windowId: t }),
7598
+ canvasWorld: be(e, { windowId: t }),
7599
+ drawAnnotations: O(e).window.forceDrawAnnotations || _(e, {
7550
7600
  content: "annotations",
7551
7601
  windowId: t
7552
7602
  }).length > 0,
7553
- drawSearchAnnotations: D(e).window.forceDrawAnnotations || _(e, {
7603
+ drawSearchAnnotations: O(e).window.forceDrawAnnotations || _(e, {
7554
7604
  content: "search",
7555
7605
  windowId: t
7556
7606
  }).length > 0,
7557
7607
  highlightAllAnnotations: o(e, { windowId: t }).highlightAllAnnotations,
7558
7608
  hoveredAnnotationIds: o(e, { windowId: t }).hoveredAnnotationIds,
7559
- palette: C(e).palette,
7609
+ palette: w(e).palette,
7560
7610
  searchAnnotations: ie(e, { windowId: t }),
7561
7611
  selectedAnnotationId: ae(e, { windowId: t })
7562
7612
  }), {
7563
- deselectAnnotation: oe,
7564
- hoverAnnotation: j,
7565
- selectAnnotation: A
7566
- }), d("AnnotationsOverlay"))(Be), We = {
7613
+ deselectAnnotation: M,
7614
+ hoverAnnotation: N,
7615
+ selectAnnotation: re
7616
+ }), d("AnnotationsOverlay"))(Xe), et = {
7567
7617
  get(e) {
7568
7618
  return this.refs[e];
7569
7619
  },
@@ -7574,11 +7624,11 @@ var Ue = i(h((e, { windowId: t }) => ({
7574
7624
  set(e, t) {
7575
7625
  this.refs[e] = t;
7576
7626
  }
7577
- }, Ge = W(void 0);
7627
+ }, tt = ue(void 0);
7578
7628
  //#endregion
7579
7629
  //#region src/components/OpenSeadragonComponent.jsx
7580
- function Ke({ children: e = void 0, Container: t = "div", osdConfig: n = {}, viewerConfig: r = {}, onUpdateViewport: i = () => {}, setViewer: a = () => {}, style: o = {}, ...s }) {
7581
- let c = ue(), l = Y(), [u, d] = X(!1), f = Y(void 0), p = Y(!1), m = Y(null), h = Y(!1), [, g] = de((e) => e + 1, 0), _ = z(G((e) => {
7630
+ function nt({ children: e = void 0, Container: t = "div", osdConfig: n = {}, viewerConfig: r = {}, onUpdateViewport: i = () => {}, setViewer: a = () => {}, style: o = {}, ...s }) {
7631
+ let c = de(), l = Y(), [u, d] = pe(!1), f = Y(void 0), p = Y(!1), m = Y(null), h = Y(!1), [, g] = fe((e) => e + 1, 0), _ = z(G((e) => {
7582
7632
  f.current?.raiseEvent("mouse-move", e);
7583
7633
  }, [f]), 10), v = G((e) => {
7584
7634
  let { viewport: t } = e.eventSource;
@@ -7591,7 +7641,7 @@ function Ke({ children: e = void 0, Container: t = "div", osdConfig: n = {}, vie
7591
7641
  zoom: t.zoomSpring.target.value
7592
7642
  }));
7593
7643
  }, [i, p]), y = G(({ viewport: e }) => {
7594
- p.current || (p.current = !0, r.x != null && r.y != null && e.panTo(new $.default.Point(r.x, r.y), !0), r.zoom != null && e.zoomTo(r.zoom, new $.default.Point(r.x, r.y), !0), r.rotation != null && r.rotation !== e.getRotation() && e.setRotation(r.rotation), r.flip != null && (r.flip || !1) !== e.getFlip() && e.setFlip(r.flip), !r.x && !r.y && !r.zoom && (r.bounds ? (e.fitBounds(new $.default.Rect(...r.bounds), !0), m.current = r.bounds) : e.goHome(!0)));
7644
+ p.current || (p.current = !0, r.x != null && r.y != null && e.panTo(new Q.default.Point(r.x, r.y), !0), r.zoom != null && e.zoomTo(r.zoom, new Q.default.Point(r.x, r.y), !0), r.rotation != null && r.rotation !== e.getRotation() && e.setRotation(r.rotation), r.flip != null && (r.flip || !1) !== e.getFlip() && e.setFlip(r.flip), !r.x && !r.y && !r.zoom && (r.bounds ? (e.fitBounds(new Q.default.Rect(...r.bounds), !0), m.current = r.bounds) : e.goHome(!0)));
7595
7645
  }, [p, r]);
7596
7646
  q(() => {
7597
7647
  let e = f.current;
@@ -7603,19 +7653,19 @@ function Ke({ children: e = void 0, Container: t = "div", osdConfig: n = {}, vie
7603
7653
  }
7604
7654
  if (r.bounds && (!m.current || r.bounds.length !== m.current.length || r.bounds.some((e, t) => e !== m.current[t]))) {
7605
7655
  h.current = !0, m.current = r.bounds, e.addOnceHandler("tile-loaded", () => {
7606
- let e = new $.default.Rect(...r.bounds);
7656
+ let e = new Q.default.Rect(...r.bounds);
7607
7657
  t.fitBoundsWithConstraints(e, !0), h.current = !1;
7608
7658
  });
7609
7659
  return;
7610
7660
  }
7611
- !r.x || !r.y || !r.zoom || (r.x != null && r.y != null && (Math.round(r.x) !== Math.round(t.centerSpringX.target.value) || Math.round(r.y) !== Math.round(t.centerSpringY.target.value)) && t.panTo(new $.default.Point(r.x, r.y), !1), r.zoom != null && r.zoom !== t.zoomSpring.target.value && t.zoomTo(r.zoom, new $.default.Point(r.x, r.y), !1), r.rotation != null && r.rotation !== t.getRotation() && t.setRotation(r.rotation), r.flip != null && (r.flip || !1) !== t.getFlip() && t.setFlip(r.flip));
7661
+ !r.x || !r.y || !r.zoom || (r.x != null && r.y != null && (Math.round(r.x) !== Math.round(t.centerSpringX.target.value) || Math.round(r.y) !== Math.round(t.centerSpringY.target.value)) && t.panTo(new Q.default.Point(r.x, r.y), !1), r.zoom != null && r.zoom !== t.zoomSpring.target.value && t.zoomTo(r.zoom, new Q.default.Point(r.x, r.y), !1), r.rotation != null && r.rotation !== t.getRotation() && t.setRotation(r.rotation), r.flip != null && (r.flip || !1) !== t.getFlip() && t.setFlip(r.flip));
7612
7662
  }, [
7613
7663
  p,
7614
7664
  y,
7615
7665
  r,
7616
7666
  f
7617
7667
  ]), q(() => {
7618
- let e = (0, $.default)({
7668
+ let e = (0, Q.default)({
7619
7669
  element: l.current,
7620
7670
  ...n
7621
7671
  });
@@ -7634,7 +7684,7 @@ function Ke({ children: e = void 0, Container: t = "div", osdConfig: n = {}, vie
7634
7684
  let e = f.current;
7635
7685
  e && (e.innerTracker?.moveHandler === _ && (e.innerTracker.moveHandler = () => {}), e.removeAllHandlers(), e.destroy(), f.current = void 0, a(null));
7636
7686
  }, []);
7637
- let { t: b } = pe();
7687
+ let { t: b } = he();
7638
7688
  return q(() => {
7639
7689
  let e = f?.current?.canvas?.firstElementChild;
7640
7690
  e && (e.setAttribute("role", "img"), e.setAttribute("aria-label", b("digitizedView")), e.setAttribute("aria-describedby", c));
@@ -7642,9 +7692,9 @@ function Ke({ children: e = void 0, Container: t = "div", osdConfig: n = {}, vie
7642
7692
  f?.current?.canvas?.firstElementChild,
7643
7693
  c,
7644
7694
  b
7645
- ]), /* @__PURE__ */ Z(Ge.Provider, {
7695
+ ]), /* @__PURE__ */ X(tt.Provider, {
7646
7696
  value: f,
7647
- children: /* @__PURE__ */ Z(t, {
7697
+ children: /* @__PURE__ */ X(t, {
7648
7698
  id: c,
7649
7699
  ref: l,
7650
7700
  style: {
@@ -7656,30 +7706,30 @@ function Ke({ children: e = void 0, Container: t = "div", osdConfig: n = {}, vie
7656
7706
  })
7657
7707
  });
7658
7708
  }
7659
- Ke.propTypes = {
7660
- children: Q.default.node,
7661
- Container: Q.default.elementType,
7662
- onUpdateViewport: Q.default.func,
7663
- osdConfig: Q.default.object,
7664
- setViewer: Q.default.func,
7665
- style: Q.default.object,
7666
- viewerConfig: Q.default.shape({
7667
- bounds: Q.default.arrayOf(Q.default.number),
7668
- flip: Q.default.bool,
7669
- rotation: Q.default.number,
7670
- x: Q.default.number,
7671
- y: Q.default.number,
7672
- zoom: Q.default.number
7709
+ nt.propTypes = {
7710
+ children: Z.default.node,
7711
+ Container: Z.default.elementType,
7712
+ onUpdateViewport: Z.default.func,
7713
+ osdConfig: Z.default.object,
7714
+ setViewer: Z.default.func,
7715
+ style: Z.default.object,
7716
+ viewerConfig: Z.default.shape({
7717
+ bounds: Z.default.arrayOf(Z.default.number),
7718
+ flip: Z.default.bool,
7719
+ rotation: Z.default.number,
7720
+ x: Z.default.number,
7721
+ y: Z.default.number,
7722
+ zoom: Z.default.number
7673
7723
  })
7674
7724
  };
7675
7725
  //#endregion
7676
7726
  //#region src/components/OpenSeadragonTileSource.jsx
7677
- function qe({ index: e = void 0, opacity: t = void 0, fitBounds: n = void 0, tileSource: r = {}, url: i = void 0 }) {
7678
- let a = K(Ge), { notifyFailure: o, fallbackImage: s } = K(M), c = Y(void 0);
7727
+ function rt({ index: e = void 0, opacity: t = void 0, fitBounds: n = void 0, tileSource: r = {}, url: i = void 0 }) {
7728
+ let a = K(tt), { notifyFailure: o, fallbackImage: s } = K(P), c = Y(void 0);
7679
7729
  return q(() => {
7680
7730
  t != null && c.current?.setOpacity(t);
7681
7731
  }, [t]), q(() => {
7682
- n && c.current?.fitBounds(new $.default.Rect(...n));
7732
+ n && c.current?.fitBounds(new Q.default.Rect(...n));
7683
7733
  }, [n]), q(() => {
7684
7734
  !c.current || !a?.current || e == null || a.current.world.setItemIndex(c.current, e);
7685
7735
  }, [e, a]), q(() => {
@@ -7692,7 +7742,7 @@ function qe({ index: e = void 0, opacity: t = void 0, fitBounds: n = void 0, til
7692
7742
  },
7693
7743
  index: e,
7694
7744
  opacity: t,
7695
- fitBounds: n ? new $.default.Rect(...n) : void 0,
7745
+ fitBounds: n ? new Q.default.Rect(...n) : void 0,
7696
7746
  success: (e) => {
7697
7747
  c.current = e.item;
7698
7748
  }
@@ -7706,7 +7756,7 @@ function qe({ index: e = void 0, opacity: t = void 0, fitBounds: n = void 0, til
7706
7756
  tileSource: u,
7707
7757
  index: e,
7708
7758
  opacity: t,
7709
- fitBounds: n ? new $.default.Rect(...n) : void 0,
7759
+ fitBounds: n ? new Q.default.Rect(...n) : void 0,
7710
7760
  success: (e) => s(e),
7711
7761
  error: (e) => {
7712
7762
  let t = i || (typeof r == "string" ? r : r?.["@id"]);
@@ -7723,22 +7773,22 @@ function qe({ index: e = void 0, opacity: t = void 0, fitBounds: n = void 0, til
7723
7773
  });
7724
7774
  }, [a?.current, i]), null;
7725
7775
  }
7726
- qe.propTypes = {
7727
- fitBounds: Q.default.arrayOf(Q.default.number),
7728
- index: Q.default.number,
7729
- opacity: Q.default.number,
7730
- tileSource: Q.default.oneOfType([Q.default.string, Q.default.object]),
7731
- url: Q.default.string
7776
+ rt.propTypes = {
7777
+ fitBounds: Z.default.arrayOf(Z.default.number),
7778
+ index: Z.default.number,
7779
+ opacity: Z.default.number,
7780
+ tileSource: Z.default.oneOfType([Z.default.string, Z.default.object]),
7781
+ url: Z.default.string
7732
7782
  };
7733
7783
  //#endregion
7734
7784
  //#region src/components/OpenSeadragonViewer.jsx
7735
- var Je = me("section")({
7785
+ var it = ge("section")({
7736
7786
  cursor: "grab",
7737
7787
  flex: 1,
7738
7788
  position: "relative"
7739
7789
  });
7740
- function Ye({ children: e = null, label: t = null, windowId: n, osdConfig: r = {}, viewerConfig: i = null, drawAnnotations: a = !1, infoResponses: o = [], canvasWorld: s, nonTiledImages: c = [], updateViewport: l, ...u }) {
7741
- let { t: d } = pe(), f = Y(), [p, m] = X(null), h = G(({ flip: e, rotation: t, x: r, y: i, zoom: a }) => {
7790
+ function at({ children: e = null, label: t = null, windowId: n, osdConfig: r = {}, viewerConfig: i = null, drawAnnotations: a = !1, infoResponses: o = [], canvasWorld: s, nonTiledImages: c = [], updateViewport: l, ...u }) {
7791
+ let { t: d } = he(), f = Y(), [p, m] = pe(null), h = G(({ flip: e, rotation: t, x: r, y: i, zoom: a }) => {
7742
7792
  l(n, {
7743
7793
  flip: e,
7744
7794
  rotation: t,
@@ -7747,12 +7797,12 @@ function Ye({ children: e = null, label: t = null, windowId: n, osdConfig: r = {
7747
7797
  zoom: a
7748
7798
  });
7749
7799
  }, [l, n]), g = G((e = !0) => {
7750
- f.current?.viewport && f.current.viewport.fitBounds(new $.default.Rect(...s.worldBounds()), e);
7800
+ f.current?.viewport && f.current.viewport.fitBounds(new Q.default.Rect(...s.worldBounds()), e);
7751
7801
  }, [s, f]);
7752
- q(() => (We.set(n, f), () => We.remove(n)), [f, n]), q(() => {
7802
+ q(() => (et.set(n, f), () => et.remove(n)), [f, n]), q(() => {
7753
7803
  f.current = p;
7754
7804
  }, [f, p]);
7755
- let _ = le.map(e, (e) => U(e, { zoomToWorld: g })), v = {
7805
+ let _ = U.map(e, (e) => W(e, { zoomToWorld: g })), v = {
7756
7806
  canvasWorld: s,
7757
7807
  drawAnnotations: a,
7758
7808
  infoResponses: o,
@@ -7765,9 +7815,9 @@ function Ye({ children: e = null, label: t = null, windowId: n, osdConfig: r = {
7765
7815
  windowId: n,
7766
7816
  ...u
7767
7817
  }, y = J(() => [...o.map((e) => e.id), ...c.map((e) => e.id)], [o, c]);
7768
- return /* @__PURE__ */ fe(Ke, {
7769
- className: (0, ke.default)(V("osd-container")),
7770
- Container: Je,
7818
+ return /* @__PURE__ */ me(nt, {
7819
+ className: (0, Me.default)(H("osd-container")),
7820
+ Container: it,
7771
7821
  osdConfig: r,
7772
7822
  viewerConfig: i || (s.hasDimensions() ? { bounds: s.worldBounds() } : void 0),
7773
7823
  onUpdateViewport: h,
@@ -7779,7 +7829,7 @@ function Ye({ children: e = null, label: t = null, windowId: n, osdConfig: r = {
7779
7829
  let t = s.contentResource(e.id);
7780
7830
  if (!t) return null;
7781
7831
  let n = s.contentResourceToWorldCoordinates(t), r = s.layerIndexOfImageResource(t), i = s.layerOpacityOfImageResource(t);
7782
- return /* @__PURE__ */ Z(qe, {
7832
+ return /* @__PURE__ */ X(rt, {
7783
7833
  tileSource: e.json,
7784
7834
  fitBounds: n,
7785
7835
  index: r,
@@ -7790,20 +7840,20 @@ function Ye({ children: e = null, label: t = null, windowId: n, osdConfig: r = {
7790
7840
  let t = e.getProperty("type"), n = e.getProperty("format") || "";
7791
7841
  if (!(t === "Image" || t === "dctypes:Image" || n.startsWith("image/"))) return null;
7792
7842
  let r = s.contentResourceToWorldCoordinates(e), i = s.layerIndexOfImageResource(e), a = s.layerOpacityOfImageResource(e);
7793
- return /* @__PURE__ */ Z(qe, {
7843
+ return /* @__PURE__ */ X(rt, {
7794
7844
  url: e.id,
7795
7845
  fitBounds: r,
7796
7846
  index: i,
7797
7847
  opacity: a
7798
7848
  }, e.id);
7799
7849
  }),
7800
- a && /* @__PURE__ */ Z(Ue, {
7850
+ a && /* @__PURE__ */ X($e, {
7801
7851
  viewer: p,
7802
7852
  windowId: n
7803
7853
  }),
7804
7854
  _,
7805
- /* @__PURE__ */ Z(He, { imageUrls: y }),
7806
- /* @__PURE__ */ Z(H, {
7855
+ /* @__PURE__ */ X(Qe, { imageUrls: y }),
7856
+ /* @__PURE__ */ X(le, {
7807
7857
  targetName: "OpenSeadragonViewer",
7808
7858
  viewer: p,
7809
7859
  ...v
@@ -7811,25 +7861,25 @@ function Ye({ children: e = null, label: t = null, windowId: n, osdConfig: r = {
7811
7861
  ]
7812
7862
  });
7813
7863
  }
7814
- Ye.propTypes = {
7815
- canvasWorld: Q.default.instanceOf(L).isRequired,
7816
- children: Q.default.node,
7817
- drawAnnotations: Q.default.bool,
7818
- infoResponses: Q.default.arrayOf(Q.default.object),
7819
- label: Q.default.string,
7820
- nonTiledImages: Q.default.array,
7821
- osdConfig: Q.default.object,
7822
- updateViewport: Q.default.func.isRequired,
7823
- viewerConfig: Q.default.object,
7824
- windowId: Q.default.string.isRequired
7864
+ at.propTypes = {
7865
+ canvasWorld: Z.default.instanceOf(L).isRequired,
7866
+ children: Z.default.node,
7867
+ drawAnnotations: Z.default.bool,
7868
+ infoResponses: Z.default.arrayOf(Z.default.object),
7869
+ label: Z.default.string,
7870
+ nonTiledImages: Z.default.array,
7871
+ osdConfig: Z.default.object,
7872
+ updateViewport: Z.default.func.isRequired,
7873
+ viewerConfig: Z.default.object,
7874
+ windowId: Z.default.string.isRequired
7825
7875
  };
7826
7876
  //#endregion
7827
7877
  //#region src/containers/OpenSeadragonViewer.js
7828
- var Xe = /* @__PURE__ */ l({ default: () => Ze }), Ze = i(h((e, { windowId: t }) => {
7829
- let n = ve(e, { windowId: t }), r = O(e), i = n.canvases.flatMap((e) => e.imageServiceIds);
7878
+ var ot = /* @__PURE__ */ l({ default: () => st }), st = i(h((e, { windowId: t }) => {
7879
+ let n = be(e, { windowId: t }), r = A(e), i = n.canvases.flatMap((e) => e.imageServiceIds);
7830
7880
  return {
7831
7881
  canvasWorld: n,
7832
- drawAnnotations: D(e).window.forceDrawAnnotations || _(e, {
7882
+ drawAnnotations: O(e).window.forceDrawAnnotations || _(e, {
7833
7883
  content: "annotations",
7834
7884
  windowId: t
7835
7885
  }).length > 0 || _(e, {
@@ -7837,16 +7887,16 @@ var Xe = /* @__PURE__ */ l({ default: () => Ze }), Ze = i(h((e, { windowId: t })
7837
7887
  windowId: t
7838
7888
  }).length > 0,
7839
7889
  infoResponses: i.map((e) => r[e]).filter((e) => e !== void 0 && e.isFetching === !1 && e.error === void 0),
7840
- label: S(e, {
7841
- canvasId: (w(e, { windowId: t }) || {}).id,
7890
+ label: C(e, {
7891
+ canvasId: (T(e, { windowId: t }) || {}).id,
7842
7892
  windowId: t
7843
7893
  }),
7844
- nonTiledImages: E(e, { windowId: t }),
7845
- osdConfig: D(e).osdConfig,
7894
+ nonTiledImages: D(e, { windowId: t }),
7895
+ osdConfig: O(e).osdConfig,
7846
7896
  viewerConfig: f(e, { windowId: t })
7847
7897
  };
7848
- }, { updateViewport: B }), d("OpenSeadragonViewer"))(Ye);
7898
+ }, { updateViewport: ce }), d("OpenSeadragonViewer"))(at);
7849
7899
  //#endregion
7850
- export { Ue as a, Le as c, We as i, Me as l, Xe as n, He as o, Ye as r, Be as s, Ze as t, ve as u };
7900
+ export { $e as a, qe as c, et as i, Ie as l, ot as n, Qe as o, at as r, Xe as s, st as t, be as u };
7851
7901
 
7852
- //# sourceMappingURL=OpenSeadragonViewer-CBmX5sYE.js.map
7902
+ //# sourceMappingURL=OpenSeadragonViewer-4nw8qaVM.js.map