dbf-mirador 4.5.4 → 4.5.7

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,6 +1,6 @@
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-CD0HjudG.js";
2
- import { At as _, Ft as v, I as y, Lt as b, Pt as x, Wt as S, _ as C, a as w, an as T, bt as ee, c as E, dn as D, m as te, mt as O, nn as ne, pn as k, sn as A, y as j } from "./canvases-DKeoerqc.js";
3
- import { O as re, c as ie, h as ae, k as M, n as N, r as P, t as F } from "./FailedImageContext-B8nqS86j.js";
2
+ import { At as _, Ft as v, I as y, Lt as b, Pt as x, Wt as S, _ as C, a as w, an as T, bt as E, c as D, dn as O, m as ee, mt as k, nn as te, pn as A, sn as j, y as M } from "./canvases-DKeoerqc.js";
3
+ import { O as ne, c as re, h as ie, k as N, n as P, r as ae, t as F } from "./FailedImageContext-B8nqS86j.js";
4
4
  import { d as I, f as L, l as oe, m as R, n as z, o as se, t as B, u as ce } from "./index.module-B1DwyIwz.js";
5
5
  import { i as V } from "./canvas-DNE0BtDK.js";
6
6
  import { i as H, r as le, t as U } from "./PluginHook-Bs9Qkrjd.js";
@@ -24,7 +24,7 @@ var xe = p([
24
24
  return [[], []];
25
25
  });
26
26
  })), Ce = /* @__PURE__ */ g(((e, t) => {
27
- var n = ne(), i = r();
27
+ var n = te(), i = r();
28
28
  function a(e, t) {
29
29
  var r = -1, a = i(e) ? Array(e.length) : [];
30
30
  return n(e, function(e, n, i) {
@@ -61,7 +61,7 @@ var xe = p([
61
61
  }
62
62
  t.exports = r;
63
63
  })), De = /* @__PURE__ */ g(((t, n) => {
64
- var r = D(), i = A(), a = S(), o = Ce(), s = we(), l = c(), u = Ee(), d = e(), f = m();
64
+ var r = O(), i = j(), a = S(), o = Ce(), s = we(), l = c(), u = Ee(), d = e(), f = m();
65
65
  function p(e, t, n) {
66
66
  t = t.length ? r(t, function(e) {
67
67
  return f(e) ? function(t) {
@@ -83,7 +83,7 @@ var xe = p([
83
83
  }
84
84
  n.exports = p;
85
85
  })), Oe = /* @__PURE__ */ g(((e, n) => {
86
- var i = k(), o = r(), s = t(), c = a();
86
+ var i = A(), o = r(), s = t(), c = a();
87
87
  function l(e, t, n) {
88
88
  if (!c(n)) return !1;
89
89
  var r = typeof t;
@@ -1088,28 +1088,28 @@ var xe = p([
1088
1088
  T(a, e);
1089
1089
  },
1090
1090
  wheel: function(e) {
1091
- ee(a, e);
1091
+ E(a, e);
1092
1092
  },
1093
1093
  mousewheel: function(e) {
1094
- E(a, e);
1094
+ D(a, e);
1095
1095
  },
1096
1096
  DOMMouseScroll: function(e) {
1097
- E(a, e);
1097
+ D(a, e);
1098
1098
  },
1099
1099
  MozMousePixelScroll: function(e) {
1100
- E(a, e);
1100
+ D(a, e);
1101
1101
  },
1102
1102
  losecapture: function(e) {
1103
- te(a, e);
1103
+ ee(a, e);
1104
1104
  },
1105
1105
  mouseenter: function(e) {
1106
- M(a, e);
1106
+ N(a, e);
1107
1107
  },
1108
1108
  mouseleave: function(e) {
1109
- N(a, e);
1109
+ P(a, e);
1110
1110
  },
1111
1111
  mouseover: function(e) {
1112
- P(a, e);
1112
+ ae(a, e);
1113
1113
  },
1114
1114
  mouseout: function(e) {
1115
1115
  F(a, e);
@@ -1124,37 +1124,37 @@ var xe = p([
1124
1124
  z(a, e);
1125
1125
  },
1126
1126
  touchstart: function(e) {
1127
- O(a, e);
1127
+ k(a, e);
1128
1128
  },
1129
1129
  touchend: function(e) {
1130
- ne(a, e);
1130
+ te(a, e);
1131
1131
  },
1132
1132
  touchmove: function(e) {
1133
- k(a, e);
1133
+ A(a, e);
1134
1134
  },
1135
1135
  touchcancel: function(e) {
1136
- A(a, e);
1136
+ j(a, e);
1137
1137
  },
1138
1138
  gesturestart: function(e) {
1139
- j(a, e);
1139
+ M(a, e);
1140
1140
  },
1141
1141
  gesturechange: function(e) {
1142
- re(a, e);
1142
+ ne(a, e);
1143
1143
  },
1144
1144
  gotpointercapture: function(e) {
1145
- ie(a, e);
1145
+ re(a, e);
1146
1146
  },
1147
1147
  lostpointercapture: function(e) {
1148
- ae(a, e);
1148
+ ie(a, e);
1149
1149
  },
1150
1150
  pointerenter: function(e) {
1151
- M(a, e);
1151
+ N(a, e);
1152
1152
  },
1153
1153
  pointerleave: function(e) {
1154
- N(a, e);
1154
+ P(a, e);
1155
1155
  },
1156
1156
  pointerover: function(e) {
1157
- P(a, e);
1157
+ ae(a, e);
1158
1158
  },
1159
1159
  pointerout: function(e) {
1160
1160
  F(a, e);
@@ -1537,10 +1537,10 @@ var xe = p([
1537
1537
  userData: t.userData
1538
1538
  }, t.contextMenuHandler(r)), (r && r.preventDefault || i.preventDefault && !i.defaultPrevented) && e.cancelEvent(n), i.stopPropagation && e.stopEvent(n);
1539
1539
  }
1540
- function ee(e, t) {
1541
- D(e, t, t);
1540
+ function E(e, t) {
1541
+ O(e, t, t);
1542
1542
  }
1543
- function E(t, n) {
1543
+ function D(t, n) {
1544
1544
  var r = {
1545
1545
  target: n.target || n.srcElement,
1546
1546
  type: "wheel",
@@ -1553,9 +1553,9 @@ var xe = p([
1553
1553
  deltaX: 0,
1554
1554
  deltaZ: 0
1555
1555
  };
1556
- r.deltaY = e.MouseTracker.wheelEventName === "mousewheel" ? -n.wheelDelta / e.DEFAULT_SETTINGS.pixelsPerWheelLine : n.detail, D(t, r, n);
1556
+ r.deltaY = e.MouseTracker.wheelEventName === "mousewheel" ? -n.wheelDelta / e.DEFAULT_SETTINGS.pixelsPerWheelLine : n.detail, O(t, r, n);
1557
1557
  }
1558
- function D(t, n, r) {
1558
+ function O(t, n, r) {
1559
1559
  var i = 0, a, o = null;
1560
1560
  i = n.deltaY ? n.deltaY < 0 ? 1 : -1 : 0, a = {
1561
1561
  originalEvent: n,
@@ -1574,7 +1574,7 @@ var xe = p([
1574
1574
  userData: t.userData
1575
1575
  }, t.scrollHandler(o)), a.stopPropagation && e.stopEvent(r), (o && o.preventDefault || a.preventDefault && !a.defaultPrevented) && e.cancelEvent(r);
1576
1576
  }
1577
- function te(t, n) {
1577
+ function ee(t, n) {
1578
1578
  var r = {
1579
1579
  id: e.MouseTracker.mousePointerId,
1580
1580
  type: "mouse"
@@ -1586,7 +1586,7 @@ var xe = p([
1586
1586
  };
1587
1587
  U(t, i), n.target === t.element && W(t, r, !1), i.stopPropagation && e.stopEvent(n);
1588
1588
  }
1589
- function O(t, n) {
1589
+ function k(t, n) {
1590
1590
  var r, i, a = n.changedTouches.length, o, s = t.getActivePointersListByType("touch");
1591
1591
  r = e.now(), s.getLength() > n.touches.length - a && e.console.warn("Tracked touch contact count doesn't match event.touches.length");
1592
1592
  var c = {
@@ -1604,7 +1604,7 @@ var xe = p([
1604
1604
  }, ue(t, c, o), q(t, c, o, 0), W(t, o, !0);
1605
1605
  c.preventDefault && !c.defaultPrevented && e.cancelEvent(n), c.stopPropagation && e.stopEvent(n);
1606
1606
  }
1607
- function ne(t, n) {
1607
+ function te(t, n) {
1608
1608
  var r, i, a = n.changedTouches.length, o;
1609
1609
  r = e.now();
1610
1610
  var s = {
@@ -1621,7 +1621,7 @@ var xe = p([
1621
1621
  }, fe(t, s, o, 0), W(t, o, !1), de(t, s, o);
1622
1622
  s.preventDefault && !s.defaultPrevented && e.cancelEvent(n), s.stopPropagation && e.stopEvent(n);
1623
1623
  }
1624
- function k(t, n) {
1624
+ function A(t, n) {
1625
1625
  var r, i, a = n.changedTouches.length, o;
1626
1626
  r = e.now();
1627
1627
  var s = {
@@ -1638,7 +1638,7 @@ var xe = p([
1638
1638
  }, J(t, s, o);
1639
1639
  s.preventDefault && !s.defaultPrevented && e.cancelEvent(n), s.stopPropagation && e.stopEvent(n);
1640
1640
  }
1641
- function A(t, n) {
1641
+ function j(t, n) {
1642
1642
  var r = n.changedTouches.length, i, a, o = {
1643
1643
  originalEvent: n,
1644
1644
  eventType: "pointercancel",
@@ -1651,13 +1651,13 @@ var xe = p([
1651
1651
  }, pe(t, o, a);
1652
1652
  o.stopPropagation && e.stopEvent(n);
1653
1653
  }
1654
- function j(t, n) {
1654
+ function M(t, n) {
1655
1655
  return e.eventIsCanceled(n) || n.preventDefault(), !1;
1656
1656
  }
1657
- function re(t, n) {
1657
+ function ne(t, n) {
1658
1658
  return e.eventIsCanceled(n) || n.preventDefault(), !1;
1659
1659
  }
1660
- function ie(t, n) {
1660
+ function re(t, n) {
1661
1661
  var r = {
1662
1662
  originalEvent: n,
1663
1663
  eventType: "gotpointercapture",
@@ -1669,7 +1669,7 @@ var xe = p([
1669
1669
  type: f(n)
1670
1670
  }, !0), r.stopPropagation && e.stopEvent(n);
1671
1671
  }
1672
- function ae(t, n) {
1672
+ function ie(t, n) {
1673
1673
  var r = {
1674
1674
  originalEvent: n,
1675
1675
  eventType: "lostpointercapture",
@@ -1681,7 +1681,7 @@ var xe = p([
1681
1681
  type: f(n)
1682
1682
  }, !1), r.stopPropagation && e.stopEvent(n);
1683
1683
  }
1684
- function M(t, n) {
1684
+ function N(t, n) {
1685
1685
  var r = {
1686
1686
  id: d(n),
1687
1687
  type: f(n),
@@ -1696,7 +1696,7 @@ var xe = p([
1696
1696
  };
1697
1697
  U(t, i), ue(t, i, r);
1698
1698
  }
1699
- function N(t, n) {
1699
+ function P(t, n) {
1700
1700
  var r = {
1701
1701
  id: d(n),
1702
1702
  type: f(n),
@@ -1711,7 +1711,7 @@ var xe = p([
1711
1711
  };
1712
1712
  U(t, i), de(t, i, r);
1713
1713
  }
1714
- function P(t, n) {
1714
+ function ae(t, n) {
1715
1715
  var r = {
1716
1716
  id: d(n),
1717
1717
  type: f(n),
@@ -2335,12 +2335,12 @@ var xe = p([
2335
2335
  leaveHandler: e.delegate(this, C),
2336
2336
  pressHandler: e.delegate(this, w),
2337
2337
  releaseHandler: e.delegate(this, T),
2338
- nonPrimaryPressHandler: e.delegate(this, ee),
2339
- nonPrimaryReleaseHandler: e.delegate(this, E),
2340
- scrollHandler: e.delegate(this, ne),
2341
- pinchHandler: e.delegate(this, D),
2342
- focusHandler: e.delegate(this, te),
2343
- blurHandler: e.delegate(this, O)
2338
+ nonPrimaryPressHandler: e.delegate(this, E),
2339
+ nonPrimaryReleaseHandler: e.delegate(this, D),
2340
+ scrollHandler: e.delegate(this, te),
2341
+ pinchHandler: e.delegate(this, O),
2342
+ focusHandler: e.delegate(this, ee),
2343
+ blurHandler: e.delegate(this, k)
2344
2344
  }), this.outerTracker = new e.MouseTracker({
2345
2345
  userData: "Viewer.outerTracker",
2346
2346
  element: this.container,
@@ -2349,12 +2349,12 @@ var xe = p([
2349
2349
  clickDistThreshold: this.clickDistThreshold,
2350
2350
  dblClickTimeThreshold: this.dblClickTimeThreshold,
2351
2351
  dblClickDistThreshold: this.dblClickDistThreshold,
2352
- enterHandler: e.delegate(this, k),
2353
- leaveHandler: e.delegate(this, A)
2352
+ enterHandler: e.delegate(this, A),
2353
+ leaveHandler: e.delegate(this, j)
2354
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() {
2355
2355
  t[o.hash].needsResize = !0;
2356
2356
  }), this._resizeObserver.observe(this.container, {})) : this._autoResizePolling = !0, this.world = new e.World({ viewer: this }), this.world.addHandler("add-item", function(e) {
2357
- o.source = o.world.getItemAt(0).source, t[o.hash].forceRedraw = !0, o._updateRequestId ||= c(o, j);
2357
+ o.source = o.world.getItemAt(0).source, t[o.hash].forceRedraw = !0, o._updateRequestId ||= c(o, M);
2358
2358
  }), this.world.addHandler("remove-item", function(e) {
2359
2359
  o.source = o.world.getItemCount() ? o.world.getItemAt(0).source : null, t[o.hash].forceRedraw = !0;
2360
2360
  }), this.world.addHandler("metrics-change", function(e) {
@@ -2540,7 +2540,7 @@ var xe = p([
2540
2540
  if (this.raiseEvent("pre-full-page", l), l.preventDefaultAction) return this;
2541
2541
  if (n && this.element) {
2542
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]);
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)({});
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, A)({});
2544
2544
  } else {
2545
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());
2546
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;
@@ -2549,7 +2549,7 @@ var xe = p([
2549
2549
  var t = e.getPageScroll();
2550
2550
  u++, u < 10 && (t.x !== o.pageScroll.x || t.y !== o.pageScroll.y) && e.requestAnimationFrame(d);
2551
2551
  };
2552
- e.requestAnimationFrame(d), t[this.hash].fullPage = !1, e.delegate(this, A)({});
2552
+ e.requestAnimationFrame(d), t[this.hash].fullPage = !1, e.delegate(this, j)({});
2553
2553
  }
2554
2554
  return this.navigator && this.viewport && this.navigator.update(this.viewport), this.raiseEvent("full-page", { fullPage: n }), this;
2555
2555
  },
@@ -2726,10 +2726,10 @@ var xe = p([
2726
2726
  clickTimeThreshold: this.clickTimeThreshold,
2727
2727
  clickDistThreshold: this.clickDistThreshold,
2728
2728
  tooltip: e.getString("Tooltips.PreviousPage"),
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),
2729
+ srcRest: N(this.prefixUrl, a.previous.REST),
2730
+ srcGroup: N(this.prefixUrl, a.previous.GROUP),
2731
+ srcHover: N(this.prefixUrl, a.previous.HOVER),
2732
+ srcDown: N(this.prefixUrl, a.previous.DOWN),
2733
2733
  onRelease: i,
2734
2734
  onFocus: t,
2735
2735
  onBlur: n
@@ -2738,10 +2738,10 @@ var xe = p([
2738
2738
  clickTimeThreshold: this.clickTimeThreshold,
2739
2739
  clickDistThreshold: this.clickDistThreshold,
2740
2740
  tooltip: e.getString("Tooltips.NextPage"),
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),
2741
+ srcRest: N(this.prefixUrl, a.next.REST),
2742
+ srcGroup: N(this.prefixUrl, a.next.GROUP),
2743
+ srcHover: N(this.prefixUrl, a.next.HOVER),
2744
+ srcDown: N(this.prefixUrl, a.next.DOWN),
2745
2745
  onRelease: r,
2746
2746
  onFocus: t,
2747
2747
  onBlur: n
@@ -2752,16 +2752,16 @@ var xe = p([
2752
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;
2753
2753
  },
2754
2754
  bindStandardControls: function() {
2755
- var t = e.delegate(this, N), n = e.delegate(this, F), r = e.delegate(this, oe), i = e.delegate(this, P), 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, P), n = e.delegate(this, F), r = e.delegate(this, oe), i = e.delegate(this, ae), 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;
2756
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({
2757
2757
  element: this.zoomInButton ? e.getElement(this.zoomInButton) : null,
2758
2758
  clickTimeThreshold: this.clickTimeThreshold,
2759
2759
  clickDistThreshold: this.clickDistThreshold,
2760
2760
  tooltip: e.getString("Tooltips.ZoomIn"),
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),
2761
+ srcRest: N(this.prefixUrl, h.zoomIn.REST),
2762
+ srcGroup: N(this.prefixUrl, h.zoomIn.GROUP),
2763
+ srcHover: N(this.prefixUrl, h.zoomIn.HOVER),
2764
+ srcDown: N(this.prefixUrl, h.zoomIn.DOWN),
2765
2765
  onPress: t,
2766
2766
  onRelease: n,
2767
2767
  onClick: r,
@@ -2774,10 +2774,10 @@ var xe = p([
2774
2774
  clickTimeThreshold: this.clickTimeThreshold,
2775
2775
  clickDistThreshold: this.clickDistThreshold,
2776
2776
  tooltip: e.getString("Tooltips.ZoomOut"),
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),
2777
+ srcRest: N(this.prefixUrl, h.zoomOut.REST),
2778
+ srcGroup: N(this.prefixUrl, h.zoomOut.GROUP),
2779
+ srcHover: N(this.prefixUrl, h.zoomOut.HOVER),
2780
+ srcDown: N(this.prefixUrl, h.zoomOut.DOWN),
2781
2781
  onPress: i,
2782
2782
  onRelease: n,
2783
2783
  onClick: a,
@@ -2790,10 +2790,10 @@ var xe = p([
2790
2790
  clickTimeThreshold: this.clickTimeThreshold,
2791
2791
  clickDistThreshold: this.clickDistThreshold,
2792
2792
  tooltip: e.getString("Tooltips.Home"),
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),
2793
+ srcRest: N(this.prefixUrl, h.home.REST),
2794
+ srcGroup: N(this.prefixUrl, h.home.GROUP),
2795
+ srcHover: N(this.prefixUrl, h.home.HOVER),
2796
+ srcDown: N(this.prefixUrl, h.home.DOWN),
2797
2797
  onRelease: o,
2798
2798
  onFocus: d,
2799
2799
  onBlur: f
@@ -2802,10 +2802,10 @@ var xe = p([
2802
2802
  clickTimeThreshold: this.clickTimeThreshold,
2803
2803
  clickDistThreshold: this.clickDistThreshold,
2804
2804
  tooltip: e.getString("Tooltips.FullPage"),
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),
2805
+ srcRest: N(this.prefixUrl, h.fullpage.REST),
2806
+ srcGroup: N(this.prefixUrl, h.fullpage.GROUP),
2807
+ srcHover: N(this.prefixUrl, h.fullpage.HOVER),
2808
+ srcDown: N(this.prefixUrl, h.fullpage.DOWN),
2809
2809
  onRelease: s,
2810
2810
  onFocus: d,
2811
2811
  onBlur: f
@@ -2814,10 +2814,10 @@ var xe = p([
2814
2814
  clickTimeThreshold: this.clickTimeThreshold,
2815
2815
  clickDistThreshold: this.clickDistThreshold,
2816
2816
  tooltip: e.getString("Tooltips.RotateLeft"),
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),
2817
+ srcRest: N(this.prefixUrl, h.rotateleft.REST),
2818
+ srcGroup: N(this.prefixUrl, h.rotateleft.GROUP),
2819
+ srcHover: N(this.prefixUrl, h.rotateleft.HOVER),
2820
+ srcDown: N(this.prefixUrl, h.rotateleft.DOWN),
2821
2821
  onRelease: c,
2822
2822
  onFocus: d,
2823
2823
  onBlur: f
@@ -2826,10 +2826,10 @@ var xe = p([
2826
2826
  clickTimeThreshold: this.clickTimeThreshold,
2827
2827
  clickDistThreshold: this.clickDistThreshold,
2828
2828
  tooltip: e.getString("Tooltips.RotateRight"),
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),
2829
+ srcRest: N(this.prefixUrl, h.rotateright.REST),
2830
+ srcGroup: N(this.prefixUrl, h.rotateright.GROUP),
2831
+ srcHover: N(this.prefixUrl, h.rotateright.HOVER),
2832
+ srcDown: N(this.prefixUrl, h.rotateright.DOWN),
2833
2833
  onRelease: l,
2834
2834
  onFocus: d,
2835
2835
  onBlur: f
@@ -2838,10 +2838,10 @@ var xe = p([
2838
2838
  clickTimeThreshold: this.clickTimeThreshold,
2839
2839
  clickDistThreshold: this.clickDistThreshold,
2840
2840
  tooltip: e.getString("Tooltips.Flip"),
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),
2841
+ srcRest: N(this.prefixUrl, h.flip.REST),
2842
+ srcGroup: N(this.prefixUrl, h.flip.GROUP),
2843
+ srcHover: N(this.prefixUrl, h.flip.HOVER),
2844
+ srcDown: N(this.prefixUrl, h.flip.DOWN),
2845
2845
  onRelease: u,
2846
2846
  onFocus: d,
2847
2847
  onBlur: f
@@ -3272,7 +3272,7 @@ var xe = p([
3272
3272
  originalEvent: e.originalEvent
3273
3273
  });
3274
3274
  }
3275
- function ee(e) {
3275
+ function E(e) {
3276
3276
  this.raiseEvent("canvas-nonprimary-press", {
3277
3277
  tracker: e.eventSource,
3278
3278
  position: e.position,
@@ -3282,7 +3282,7 @@ var xe = p([
3282
3282
  originalEvent: e.originalEvent
3283
3283
  });
3284
3284
  }
3285
- function E(e) {
3285
+ function D(e) {
3286
3286
  this.raiseEvent("canvas-nonprimary-release", {
3287
3287
  tracker: e.eventSource,
3288
3288
  position: e.position,
@@ -3292,7 +3292,7 @@ var xe = p([
3292
3292
  originalEvent: e.originalEvent
3293
3293
  });
3294
3294
  }
3295
- function D(e) {
3295
+ function O(e) {
3296
3296
  var t, n, r, i, a = {
3297
3297
  tracker: e.eventSource,
3298
3298
  pointerType: e.pointerType,
@@ -3312,19 +3312,19 @@ var xe = p([
3312
3312
  n = this.viewport.pointFromPixel(e.center, !0), this.viewport.rotateTo(this.viewport.getRotation(!0) + (o - s) * (180 / Math.PI), n, !0);
3313
3313
  }
3314
3314
  }
3315
- function te(e) {
3315
+ function ee(e) {
3316
3316
  this.raiseEvent("canvas-focus", {
3317
3317
  tracker: e.eventSource,
3318
3318
  originalEvent: e.originalEvent
3319
3319
  });
3320
3320
  }
3321
- function O(e) {
3321
+ function k(e) {
3322
3322
  this.raiseEvent("canvas-blur", {
3323
3323
  tracker: e.eventSource,
3324
3324
  originalEvent: e.originalEvent
3325
3325
  });
3326
3326
  }
3327
- function ne(t) {
3327
+ function te(t) {
3328
3328
  var n, r, i, a = e.now();
3329
3329
  a - this._lastScrollTime > this.minScrollDeltaTime ? (this._lastScrollTime = a, n = {
3330
3330
  tracker: t.eventSource,
@@ -3336,7 +3336,7 @@ var xe = p([
3336
3336
  preventDefault: !0
3337
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;
3338
3338
  }
3339
- function k(e) {
3339
+ function A(e) {
3340
3340
  t[this.hash].mouseInside = !0, f(this), this.raiseEvent("container-enter", {
3341
3341
  tracker: e.eventSource,
3342
3342
  pointerType: e.pointerType,
@@ -3348,7 +3348,7 @@ var xe = p([
3348
3348
  originalEvent: e.originalEvent
3349
3349
  });
3350
3350
  }
3351
- function A(e) {
3351
+ function j(e) {
3352
3352
  e.pointers < 1 && (t[this.hash].mouseInside = !1, t[this.hash].animating || u(this)), this.raiseEvent("container-exit", {
3353
3353
  tracker: e.eventSource,
3354
3354
  pointerType: e.pointerType,
@@ -3360,10 +3360,10 @@ var xe = p([
3360
3360
  originalEvent: e.originalEvent
3361
3361
  });
3362
3362
  }
3363
- function j(e) {
3364
- ie(e), e._updateRequestId = e.isOpen() ? c(e, j) : !1;
3363
+ function M(e) {
3364
+ re(e), e._updateRequestId = e.isOpen() ? c(e, M) : !1;
3365
3365
  }
3366
- function re(n, r) {
3366
+ function ne(n, r) {
3367
3367
  var i = n.viewport, a = i.getZoom(), o = i.getCenter();
3368
3368
  i.resize(r, n.preserveImageSizeOnResize), i.panTo(o, !0);
3369
3369
  var s;
@@ -3374,7 +3374,7 @@ var xe = p([
3374
3374
  }
3375
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;
3376
3376
  }
3377
- function ie(e) {
3377
+ function re(e) {
3378
3378
  if (!(e._opening || !t[e.hash])) {
3379
3379
  if (e.autoResize || t[e.hash].forceResize) {
3380
3380
  var n;
@@ -3383,26 +3383,26 @@ var xe = p([
3383
3383
  var r = t[e.hash].prevContainerSize;
3384
3384
  n.equals(r) || (t[e.hash].needsResize = !0);
3385
3385
  }
3386
- t[e.hash].needsResize && re(e, n || i(e.container));
3386
+ t[e.hash].needsResize && ne(e, n || i(e.container));
3387
3387
  }
3388
3388
  var a = e.viewport.update(), o = e.world.update(a) || a;
3389
3389
  a && e.raiseEvent("viewport-change"), e.referenceStrip && (o = e.referenceStrip.update(e.viewport) || o);
3390
3390
  var s = t[e.hash].animating;
3391
3391
  !s && o && (e.raiseEvent("animation-start"), f(e));
3392
3392
  var c = s && !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;
3393
+ c && (t[e.hash].animating = !1), (o || c || t[e.hash].forceRedraw || e.world.needsDraw()) && (ie(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;
3394
3394
  }
3395
3395
  }
3396
- function ae(e) {
3396
+ function ie(e) {
3397
3397
  e.imageLoader.clear(), e.world.draw(), e.raiseEvent("update-viewport", {});
3398
3398
  }
3399
- function M(e, t) {
3399
+ function N(e, t) {
3400
3400
  return e ? e + t : t;
3401
3401
  }
3402
- function N() {
3402
+ function P() {
3403
3403
  t[this.hash].lastZoomTime = e.now(), t[this.hash].zoomFactor = this.zoomPerSecond, t[this.hash].zooming = !0, I(this);
3404
3404
  }
3405
- function P() {
3405
+ function ae() {
3406
3406
  t[this.hash].lastZoomTime = e.now(), t[this.hash].zoomFactor = 1 / this.zoomPerSecond, t[this.hash].zooming = !0, I(this);
3407
3407
  }
3408
3408
  function F() {
@@ -7444,16 +7444,16 @@ function rt(e) {
7444
7444
  (0, Ie.default)(e, (e) => e.journeyOrder).forEach((e, n) => t.set(e.id, n + 1));
7445
7445
  }), t;
7446
7446
  }
7447
- function it({ annotations: e = [], canvasWorld: t, deselectAnnotation: n = () => {}, drawAnnotations: r = !0, drawSearchAnnotations: i = !0, highlightAllAnnotations: a = !1, hoverAnnotation: o = () => {}, hoveredAnnotationIds: s = [], lineStyle: c = null, palette: l = {}, searchAnnotations: u = [], selectAnnotation: d = () => {}, selectedAnnotationId: f = null, viewer: p = null, windowId: m }) {
7448
- let h = Y(), g = J(() => new Re(p, h), [h, p]), _ = G((e) => {
7449
- f === e ? n(m, e) : d(m, e);
7447
+ function it({ annotations: e = [], canvasWorld: t, deselectAnnotation: n = () => {}, drawAnnotations: r = !0, drawSearchAnnotations: i = !0, highlightAllAnnotations: a = !1, hoverAnnotation: o = () => {}, hoveredAnnotationIds: s = [], lineStyle: c = null, onMapClick: l = null, palette: u = {}, searchAnnotations: d = [], selectAnnotation: f = () => {}, selectedAnnotationId: p = null, viewer: m = null, windowId: h }) {
7448
+ let g = Y(), _ = J(() => new Re(m, g), [g, m]), v = G((e) => {
7449
+ p === e ? n(h, e) : f(h, e);
7450
7450
  }, [
7451
- f,
7451
+ p,
7452
7452
  n,
7453
- d,
7454
- m
7455
- ]), v = G((e, n) => {
7456
- let r = g.context2d, i = e.flatMap((e) => e.resources), [o, l] = (0, Fe.default)(i, (e) => !e.pointSelector), [u, d] = (0, Fe.default)(l, (e) => e.id !== f), m = rt(l);
7453
+ f,
7454
+ h
7455
+ ]), y = G((e, n) => {
7456
+ let r = _.context2d, i = e.flatMap((e) => e.resources), [o, l] = (0, Fe.default)(i, (e) => !e.pointSelector), [u, d] = (0, Fe.default)(l, (e) => e.id !== p), f = rt(l);
7457
7457
  [
7458
7458
  ...o,
7459
7459
  ...u,
@@ -7461,12 +7461,12 @@ function it({ annotations: e = [], canvasWorld: t, deselectAnnotation: n = () =>
7461
7461
  ].forEach((e) => {
7462
7462
  let i = t.canvases.findIndex((t) => t.id === e.targetId);
7463
7463
  if (i === -1) return;
7464
- let o = p.world.getItemAt(i);
7464
+ let o = m.world.getItemAt(i);
7465
7465
  if (!o) return;
7466
- let l = t.offsetByCanvas(e.targetId), u = o.viewportToImageZoom(p.viewport.getZoom(!0));
7466
+ let l = t.offsetByCanvas(e.targetId), u = o.viewportToImageZoom(m.viewport.getZoom(!0));
7467
7467
  new et({
7468
7468
  hovered: s.includes(e.id),
7469
- journeyStopNumber: m.get(e.id),
7469
+ journeyStopNumber: f.get(e.id),
7470
7470
  lineStyle: c,
7471
7471
  offset: l,
7472
7472
  palette: {
@@ -7477,48 +7477,52 @@ function it({ annotations: e = [], canvasWorld: t, deselectAnnotation: n = () =>
7477
7477
  }
7478
7478
  },
7479
7479
  resource: e,
7480
- selected: f === e.id,
7480
+ selected: p === e.id,
7481
7481
  zoomRatio: u
7482
7482
  }).toContext(r);
7483
7483
  });
7484
7484
  }, [
7485
- g,
7486
- p,
7485
+ _,
7486
+ m,
7487
7487
  t,
7488
7488
  a,
7489
7489
  s,
7490
7490
  c,
7491
- f
7492
- ]), y = G(() => {
7493
- i && v(u, l.search), r && v(e, l.annotations);
7491
+ p
7492
+ ]), b = G(() => {
7493
+ i && y(d, u.search), r && y(e, u.annotations);
7494
7494
  }, [
7495
7495
  e,
7496
- v,
7496
+ y,
7497
7497
  r,
7498
7498
  i,
7499
- l,
7500
- u
7501
- ]), b = G(() => {
7502
- g && (g.clear(), g.resize(), g.canvasUpdate(y));
7503
- }, [g, y]), x = G((n, r) => [...e, ...u].flatMap((e) => e.resources).filter((e) => n.id === e.targetId && tt({
7499
+ u,
7500
+ d
7501
+ ]), x = G(() => {
7502
+ _ && (_.clear(), _.resize(), _.canvasUpdate(b));
7503
+ }, [_, b]), S = G((n, r) => [...e, ...d].flatMap((e) => e.resources).filter((e) => n.id === e.targetId && tt({
7504
7504
  canvasWorld: t,
7505
- osdCanvasOverlay: g,
7506
- viewer: p
7505
+ osdCanvasOverlay: _,
7506
+ viewer: m
7507
7507
  }, e, n, r)), [
7508
7508
  e,
7509
7509
  t,
7510
- g,
7511
- u,
7512
- p
7513
- ]), S = G((e) => {
7510
+ _,
7511
+ d,
7512
+ m
7513
+ ]), C = G((e) => {
7514
7514
  if (nt(e)) return;
7515
+ if (l) {
7516
+ e.quick && l();
7517
+ return;
7518
+ }
7515
7519
  let { position: n, eventSource: { viewport: r } } = e, i = r.pointFromPixel(n), a = t.canvasAtPoint(i);
7516
7520
  if (!a) return;
7517
- let [o, s, c, l] = t.canvasToWorldCoordinates(a.id), u = x(a, i);
7518
- u.length > 0 && (e.preventDefaultAction = !0);
7519
- let d = u.filter((e) => e.pointSelector), f = d.length > 0 ? d : u;
7520
- if (f.length === 1) _(f[0].id);
7521
- else if (f.length > 0) {
7521
+ let [o, s, c, u] = t.canvasToWorldCoordinates(a.id), d = S(a, i);
7522
+ d.length > 0 && (e.preventDefaultAction = !0);
7523
+ let f = d.filter((e) => e.pointSelector), p = f.length > 0 ? f : d;
7524
+ if (p.length === 1) v(p[0].id);
7525
+ else if (p.length > 0) {
7522
7526
  let e = (e) => {
7523
7527
  let n = Math.PI / 180;
7524
7528
  return (r) => {
@@ -7527,8 +7531,8 @@ function it({ annotations: e = [], canvasWorld: t, deselectAnnotation: n = () =>
7527
7531
  let c = Math.cos(s * n) * e + i.x, l = Math.sin(s * n) * e + i.y;
7528
7532
  tt({
7529
7533
  canvasWorld: t,
7530
- osdCanvasOverlay: g,
7531
- viewer: p
7534
+ osdCanvasOverlay: _,
7535
+ viewer: m
7532
7536
  }, r, a, {
7533
7537
  x: c,
7534
7538
  y: l
@@ -7539,68 +7543,69 @@ function it({ annotations: e = [], canvasWorld: t, deselectAnnotation: n = () =>
7539
7543
  score: o
7540
7544
  };
7541
7545
  };
7542
- }, n = 1, r = (0, Ie.default)(f.map(e(n)), "score");
7543
- for (; n < Math.max(c, l) && r[0].score === r[1].score;) n *= 2, r = (0, Ie.default)(f.map(e(n)), "score");
7544
- _(r[0].anno.id);
7546
+ }, n = 1, r = (0, Ie.default)(p.map(e(n)), "score");
7547
+ for (; n < Math.max(c, u) && r[0].score === r[1].score;) n *= 2, r = (0, Ie.default)(p.map(e(n)), "score");
7548
+ v(r[0].anno.id);
7545
7549
  }
7546
7550
  }, [
7547
- x,
7551
+ S,
7548
7552
  t,
7549
- g,
7553
+ l,
7550
7554
  _,
7551
- p
7552
- ]), C = B(G((n) => {
7553
- if (e.length === 0 && u.length === 0) return;
7554
- let { position: r } = n, i = p.viewport.pointFromPixel(r), a = t.canvasAtPoint(i);
7555
+ v,
7556
+ m
7557
+ ]), w = B(G((n) => {
7558
+ if (e.length === 0 && d.length === 0) return;
7559
+ let { position: r } = n, i = m.viewport.pointFromPixel(r), a = t.canvasAtPoint(i);
7555
7560
  if (!a) {
7556
- o(m, []);
7561
+ o(h, []);
7557
7562
  return;
7558
7563
  }
7559
- let c = x(a, i);
7560
- (0, Le.default)(s, c.map((e) => e.id)).length > 0 && o(m, c.map((e) => e.id));
7564
+ let c = S(a, i);
7565
+ (0, Le.default)(s, c.map((e) => e.id)).length > 0 && o(h, c.map((e) => e.id));
7561
7566
  }, [
7562
7567
  e,
7563
- x,
7568
+ S,
7564
7569
  t,
7565
7570
  o,
7566
7571
  s,
7567
- u,
7568
- p,
7569
- m
7570
- ]), 10), w = G(() => {
7571
- C.cancel(), o(m, []);
7572
+ d,
7573
+ m,
7574
+ h
7575
+ ]), 10), T = G(() => {
7576
+ w.cancel(), o(h, []);
7572
7577
  }, [
7573
7578
  o,
7574
- C,
7575
- m
7576
- ]), T = G(() => {
7577
- b();
7578
- }, [b]);
7579
+ w,
7580
+ h
7581
+ ]), E = G(() => {
7582
+ x();
7583
+ }, [x]);
7579
7584
  return q(() => {
7580
- if (p) return p.addHandler("canvas-click", S), p.addHandler("canvas-exit", w), p.addHandler("mouse-move", C), p.addHandler("update-viewport", T), () => {
7581
- p.removeHandler("canvas-click", S), p.removeHandler("canvas-exit", w), p.removeHandler("mouse-move", C), p.removeHandler("update-viewport", T);
7585
+ if (m) return m.addHandler("canvas-click", C), m.addHandler("canvas-exit", T), m.addHandler("mouse-move", w), m.addHandler("update-viewport", E), () => {
7586
+ m.removeHandler("canvas-click", C), m.removeHandler("canvas-exit", T), m.removeHandler("mouse-move", w), m.removeHandler("update-viewport", E);
7582
7587
  };
7583
7588
  }, [
7584
- S,
7585
- w,
7586
7589
  C,
7587
7590
  T,
7588
- p
7591
+ w,
7592
+ E,
7593
+ m
7589
7594
  ]), q(() => {
7590
- p && p.forceRedraw();
7595
+ m && m.forceRedraw();
7591
7596
  }, [
7592
7597
  e,
7593
7598
  r,
7594
7599
  i,
7595
7600
  a,
7596
7601
  s,
7597
- u,
7598
- f,
7599
- p
7602
+ d,
7603
+ p,
7604
+ m
7600
7605
  ]), q(() => {
7601
- h.current && (s.length > 0 ? h.current.style.cursor = "pointer" : h.current.style.cursor = "");
7602
- }, [s, h]), p ? ye.createPortal(/* @__PURE__ */ X("div", {
7603
- ref: h,
7606
+ g.current && (s.length > 0 ? g.current.style.cursor = "pointer" : g.current.style.cursor = "");
7607
+ }, [s, g]), m ? ye.createPortal(/* @__PURE__ */ X("div", {
7608
+ ref: g,
7604
7609
  style: {
7605
7610
  height: "100%",
7606
7611
  left: 0,
@@ -7609,7 +7614,7 @@ function it({ annotations: e = [], canvasWorld: t, deselectAnnotation: n = () =>
7609
7614
  width: "100%"
7610
7615
  },
7611
7616
  children: /* @__PURE__ */ X("canvas", {})
7612
- }), p.canvas) : null;
7617
+ }), m.canvas) : null;
7613
7618
  }
7614
7619
  it.propTypes = {
7615
7620
  annotations: Z.default.arrayOf(Z.default.object),
@@ -7626,6 +7631,7 @@ it.propTypes = {
7626
7631
  strokeStyle: Z.default.string
7627
7632
  }),
7628
7633
  hoveredAnnotationIds: Z.default.arrayOf(Z.default.string),
7634
+ onMapClick: Z.default.func,
7629
7635
  palette: Z.default.object,
7630
7636
  searchAnnotations: Z.default.arrayOf(Z.default.object),
7631
7637
  selectAnnotation: Z.default.func,
@@ -7660,25 +7666,25 @@ function ot({ imageUrls: e = [] }) {
7660
7666
  }
7661
7667
  ot.propTypes = { imageUrls: Z.default.arrayOf(Z.default.string) };
7662
7668
  var st = i(h((e, { windowId: t }) => ({
7663
- annotations: re(e, { windowId: t }),
7669
+ annotations: ne(e, { windowId: t }),
7664
7670
  canvasWorld: xe(e, { windowId: t }),
7665
- drawAnnotations: O(e).window.forceDrawAnnotations || _(e, {
7671
+ drawAnnotations: k(e).window.forceDrawAnnotations || _(e, {
7666
7672
  content: "annotations",
7667
7673
  windowId: t
7668
7674
  }).length > 0,
7669
- drawSearchAnnotations: O(e).window.forceDrawAnnotations || _(e, {
7675
+ drawSearchAnnotations: k(e).window.forceDrawAnnotations || _(e, {
7670
7676
  content: "search",
7671
7677
  windowId: t
7672
7678
  }).length > 0,
7673
7679
  highlightAllAnnotations: o(e, { windowId: t }).highlightAllAnnotations,
7674
7680
  hoveredAnnotationIds: o(e, { windowId: t }).hoveredAnnotationIds,
7675
- palette: ee(e).palette,
7676
- searchAnnotations: ae(e, { windowId: t }),
7677
- selectedAnnotationId: M(e, { windowId: t })
7681
+ palette: E(e).palette,
7682
+ searchAnnotations: ie(e, { windowId: t }),
7683
+ selectedAnnotationId: N(e, { windowId: t })
7678
7684
  }), {
7679
- deselectAnnotation: N,
7680
- hoverAnnotation: P,
7681
- selectAnnotation: ie
7685
+ deselectAnnotation: P,
7686
+ hoverAnnotation: ae,
7687
+ selectAnnotation: re
7682
7688
  }), d("AnnotationsOverlay"))(it), ct = {
7683
7689
  get(e) {
7684
7690
  return this.refs[e];
@@ -7943,10 +7949,10 @@ pt.propTypes = {
7943
7949
  //#endregion
7944
7950
  //#region src/containers/OpenSeadragonViewer.js
7945
7951
  var mt = /* @__PURE__ */ l({ default: () => ht }), ht = i(h((e, { windowId: t }) => {
7946
- let n = xe(e, { windowId: t }), r = j(e), i = n.canvases.flatMap((e) => e.imageServiceIds);
7952
+ let n = xe(e, { windowId: t }), r = M(e), i = n.canvases.flatMap((e) => e.imageServiceIds);
7947
7953
  return {
7948
7954
  canvasWorld: n,
7949
- drawAnnotations: O(e).window.forceDrawAnnotations || _(e, {
7955
+ drawAnnotations: k(e).window.forceDrawAnnotations || _(e, {
7950
7956
  content: "annotations",
7951
7957
  windowId: t
7952
7958
  }).length > 0 || _(e, {
@@ -7955,16 +7961,16 @@ var mt = /* @__PURE__ */ l({ default: () => ht }), ht = i(h((e, { windowId: t })
7955
7961
  }).length > 0,
7956
7962
  infoResponses: i.map((e) => r[e]).filter((e) => e !== void 0 && e.isFetching === !1 && e.error === void 0),
7957
7963
  label: w(e, {
7958
- canvasId: (E(e, { windowId: t }) || {}).id,
7964
+ canvasId: (D(e, { windowId: t }) || {}).id,
7959
7965
  windowId: t
7960
7966
  }),
7961
- nonTiledImages: te(e, { windowId: t }),
7962
- osdConfig: O(e).osdConfig,
7963
- site: O(e).maps?.site === !0,
7967
+ nonTiledImages: ee(e, { windowId: t }),
7968
+ osdConfig: k(e).osdConfig,
7969
+ site: k(e).maps?.site === !0,
7964
7970
  viewerConfig: f(e, { windowId: t })
7965
7971
  };
7966
7972
  }, { updateViewport: V }), d("OpenSeadragonViewer"))(pt);
7967
7973
  //#endregion
7968
7974
  export { st as a, rt as c, Me as d, xe as f, ct as i, et as l, mt as n, ot as o, pt as r, it as s, ht as t, Re as u };
7969
7975
 
7970
- //# sourceMappingURL=OpenSeadragonViewer-DDT-hCCn.js.map
7976
+ //# sourceMappingURL=OpenSeadragonViewer-BvM9yIiO.js.map