@annotorious/openseadragon 3.0.18 → 3.0.19

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.
@@ -120,8 +120,8 @@ let lp = () => ({
120
120
  }
121
121
  });
122
122
  const hp = 250, cp = (r, t) => {
123
- const e = lp(), i = t || [];
124
- let s = i.length - 1, n = !1, o = 0;
123
+ const e = lp(), i = (t == null ? void 0 : t.changes) || [];
124
+ let s = t ? t.pointer : -1, n = !1, o = 0;
125
125
  const a = (f) => {
126
126
  if (!n) {
127
127
  const { changes: m } = f, _ = performance.now();
@@ -141,7 +141,7 @@ const hp = 250, cp = (r, t) => {
141
141
  canRedo: () => i.length - 1 > s,
142
142
  canUndo: () => s > -1,
143
143
  destroy: () => r.unobserve(a),
144
- getHistory: () => [...i],
144
+ getHistory: () => ({ changes: [...i], pointer: s }),
145
145
  on: (f, m) => e.on(f, m),
146
146
  redo: () => {
147
147
  if (i.length - 1 > s) {
@@ -1295,8 +1295,8 @@ let mm = () => ({
1295
1295
  }
1296
1296
  });
1297
1297
  const gm = 250, ym = (r, t) => {
1298
- const e = mm(), i = t || [];
1299
- let s = i.length - 1, n = !1, o = 0;
1298
+ const e = mm(), i = (t == null ? void 0 : t.changes) || [];
1299
+ let s = t ? t.pointer : -1, n = !1, o = 0;
1300
1300
  const a = (f) => {
1301
1301
  if (!n) {
1302
1302
  const { changes: m } = f, _ = performance.now();
@@ -1316,7 +1316,7 @@ const gm = 250, ym = (r, t) => {
1316
1316
  canRedo: () => i.length - 1 > s,
1317
1317
  canUndo: () => s > -1,
1318
1318
  destroy: () => r.unobserve(a),
1319
- getHistory: () => [...i],
1319
+ getHistory: () => ({ changes: [...i], pointer: s }),
1320
1320
  on: (f, m) => e.on(f, m),
1321
1321
  redo: () => {
1322
1322
  if (i.length - 1 > s) {
@@ -5743,16 +5743,19 @@ var wy = bn.exports, Ey = Error, Ty = EvalError, Ay = RangeError, Sy = Reference
5743
5743
  return !1;
5744
5744
  var s = 42;
5745
5745
  t[e] = s;
5746
- for (e in t)
5746
+ for (var n in t)
5747
5747
  return !1;
5748
5748
  if (typeof Object.keys == "function" && Object.keys(t).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(t).length !== 0)
5749
5749
  return !1;
5750
- var n = Object.getOwnPropertySymbols(t);
5751
- if (n.length !== 1 || n[0] !== e || !Object.prototype.propertyIsEnumerable.call(t, e))
5750
+ var o = Object.getOwnPropertySymbols(t);
5751
+ if (o.length !== 1 || o[0] !== e || !Object.prototype.propertyIsEnumerable.call(t, e))
5752
5752
  return !1;
5753
5753
  if (typeof Object.getOwnPropertyDescriptor == "function") {
5754
- var o = Object.getOwnPropertyDescriptor(t, e);
5755
- if (o.value !== s || o.enumerable !== !0)
5754
+ var a = (
5755
+ /** @type {PropertyDescriptor} */
5756
+ Object.getOwnPropertyDescriptor(t, e)
5757
+ );
5758
+ if (a.value !== s || a.enumerable !== !0)
5756
5759
  return !1;
5757
5760
  }
5758
5761
  return !0;
@@ -5761,8 +5764,8 @@ var wy = bn.exports, Ey = Error, Ty = EvalError, Ay = RangeError, Sy = Reference
5761
5764
  }, xo = {
5762
5765
  __proto__: null,
5763
5766
  foo: {}
5764
- }, My = Object, By = function() {
5765
- return { __proto__: xo }.foo === xo.foo && !(xo instanceof My);
5767
+ }, My = { __proto__: xo }.foo === xo.foo && !(xo instanceof Object), By = function() {
5768
+ return My;
5766
5769
  }, Dy = "Function.prototype.bind called on incompatible ", Oy = Object.prototype.toString, Fy = Math.max, Ly = "[object Function]", Mh = function(t, e) {
5767
5770
  for (var i = [], s = 0; s < t.length; s += 1)
5768
5771
  i[s] = t[s];