@annotorious/core 3.0.0-rc.27 → 3.0.0-rc.29

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,24 +1,19 @@
1
- var j = Object.prototype.hasOwnProperty;
1
+ var M = Object.prototype.hasOwnProperty;
2
2
  function B(e, n) {
3
3
  var t, o;
4
- if (e === n)
5
- return !0;
4
+ if (e === n) return !0;
6
5
  if (e && n && (t = e.constructor) === n.constructor) {
7
- if (t === Date)
8
- return e.getTime() === n.getTime();
9
- if (t === RegExp)
10
- return e.toString() === n.toString();
6
+ if (t === Date) return e.getTime() === n.getTime();
7
+ if (t === RegExp) return e.toString() === n.toString();
11
8
  if (t === Array) {
12
9
  if ((o = e.length) === n.length)
13
- for (; o-- && B(e[o], n[o]); )
14
- ;
10
+ for (; o-- && B(e[o], n[o]); ) ;
15
11
  return o === -1;
16
12
  }
17
13
  if (!t || typeof e == "object") {
18
14
  o = 0;
19
15
  for (t in e)
20
- if (j.call(e, t) && ++o && !j.call(n, t) || !(t in n) || !B(e[t], n[t]))
21
- return !1;
16
+ if (M.call(e, t) && ++o && !M.call(n, t) || !(t in n) || !B(e[t], n[t])) return !1;
22
17
  return Object.keys(n).length === o;
23
18
  }
24
19
  }
@@ -26,19 +21,19 @@ function B(e, n) {
26
21
  }
27
22
  function z() {
28
23
  }
29
- function q(e, n) {
24
+ function H(e, n) {
30
25
  return e != e ? n == n : e !== n || e && typeof e == "object" || typeof e == "function";
31
26
  }
32
27
  const k = [];
33
- function _(e, n = z) {
28
+ function Y(e, n = z) {
34
29
  let t;
35
30
  const o = /* @__PURE__ */ new Set();
36
31
  function i(b) {
37
- if (q(e, b) && (e = b, t)) {
38
- const v = !k.length;
32
+ if (H(e, b) && (e = b, t)) {
33
+ const y = !k.length;
39
34
  for (const u of o)
40
35
  u[1](), k.push(u, e);
41
- if (v) {
36
+ if (y) {
42
37
  for (let u = 0; u < k.length; u += 2)
43
38
  k[u][0](k[u + 1]);
44
39
  k.length = 0;
@@ -48,16 +43,16 @@ function _(e, n = z) {
48
43
  function p(b) {
49
44
  i(b(e));
50
45
  }
51
- function w(b, v = z) {
52
- const u = [b, v];
46
+ function w(b, y = z) {
47
+ const u = [b, y];
53
48
  return o.add(u), o.size === 1 && (t = n(i, p) || z), b(e), () => {
54
49
  o.delete(u), o.size === 0 && t && (t(), t = null);
55
50
  };
56
51
  }
57
52
  return { set: i, update: p, subscribe: w };
58
53
  }
59
- const we = (e) => {
60
- const { subscribe: n, set: t } = _();
54
+ const Ce = (e) => {
55
+ const { subscribe: n, set: t } = Y();
61
56
  let o;
62
57
  return n((i) => o = i), e.observe(({ changes: i }) => {
63
58
  if (o) {
@@ -73,9 +68,9 @@ const we = (e) => {
73
68
  set: t
74
69
  };
75
70
  };
76
- var G = /* @__PURE__ */ ((e) => (e.EDIT = "EDIT", e.SELECT = "SELECT", e.NONE = "NONE", e))(G || {});
77
- const V = { selected: [] }, Ce = (e, n = "EDIT") => {
78
- const { subscribe: t, set: o } = _(V);
71
+ var F = /* @__PURE__ */ ((e) => (e.EDIT = "EDIT", e.SELECT = "SELECT", e.NONE = "NONE", e))(F || {});
72
+ const V = { selected: [] }, Le = (e, n = "EDIT") => {
73
+ const { subscribe: t, set: o } = Y(V);
79
74
  let i = V;
80
75
  t((s) => i = s);
81
76
  const p = () => o(V), w = () => {
@@ -86,25 +81,30 @@ const V = { selected: [] }, Ce = (e, n = "EDIT") => {
86
81
  return !1;
87
82
  const h = typeof s == "string" ? s : s.id;
88
83
  return i.selected.some((L) => L.id === h);
89
- }, v = (s, h) => {
84
+ }, y = (s, h) => {
90
85
  const L = e.getAnnotation(s);
91
86
  if (L) {
92
- const E = H(L, n);
93
- o(E === "EDIT" ? { selected: [{ id: s, editable: !0 }], pointerEvent: h } : E === "SELECT" ? { selected: [{ id: s }], pointerEvent: h } : { selected: [], pointerEvent: h });
87
+ const v = P(L, n);
88
+ o(v === "EDIT" ? { selected: [{ id: s, editable: !0 }], pointerEvent: h } : v === "SELECT" ? { selected: [{ id: s }], pointerEvent: h } : { selected: [], pointerEvent: h });
94
89
  } else
95
90
  console.warn("Invalid selection: " + s);
96
- }, u = (s, h = !0) => {
97
- const L = Array.isArray(s) ? s : [s], E = L.map((S) => e.getAnnotation(S)).filter(Boolean);
98
- o({ selected: E.map(({ id: S }) => ({ id: S, editable: h })) }), E.length !== L.length && console.warn("Invalid selection", s);
91
+ }, u = (s, h) => {
92
+ const L = Array.isArray(s) ? s : [s], v = L.map((S) => e.getAnnotation(S)).filter(Boolean);
93
+ o({
94
+ selected: v.map((S) => {
95
+ const E = h === void 0 ? P(S, n) === "EDIT" : h;
96
+ return { id: S.id, editable: E };
97
+ })
98
+ }), v.length !== L.length && console.warn("Invalid selection", s);
99
99
  }, U = (s) => {
100
100
  if (i.selected.length === 0)
101
101
  return !1;
102
102
  const { selected: h } = i;
103
- h.filter(({ id: E }) => s.includes(E)).length > 0 && o({ selected: h.filter(({ id: E }) => !s.includes(E)) });
103
+ h.filter(({ id: v }) => s.includes(v)).length > 0 && o({ selected: h.filter(({ id: v }) => !s.includes(v)) });
104
104
  };
105
105
  return e.observe(({ changes: s }) => U((s.deleted || []).map((h) => h.id))), {
106
106
  clear: p,
107
- clickSelect: v,
107
+ clickSelect: y,
108
108
  get selected() {
109
109
  return i ? [...i.selected] : null;
110
110
  },
@@ -116,73 +116,73 @@ const V = { selected: [] }, Ce = (e, n = "EDIT") => {
116
116
  setSelected: u,
117
117
  subscribe: t
118
118
  };
119
- }, H = (e, n) => typeof n == "function" ? n(e) || "EDIT" : n || "EDIT";
120
- let $;
121
- const F = new Uint8Array(16);
122
- function J() {
119
+ }, P = (e, n) => typeof n == "function" ? n(e) || "EDIT" : n || "EDIT";
120
+ var D = [];
121
+ for (var _ = 0; _ < 256; ++_)
122
+ D.push((_ + 256).toString(16).slice(1));
123
+ function J(e, n = 0) {
124
+ return (D[e[n + 0]] + D[e[n + 1]] + D[e[n + 2]] + D[e[n + 3]] + "-" + D[e[n + 4]] + D[e[n + 5]] + "-" + D[e[n + 6]] + D[e[n + 7]] + "-" + D[e[n + 8]] + D[e[n + 9]] + "-" + D[e[n + 10]] + D[e[n + 11]] + D[e[n + 12]] + D[e[n + 13]] + D[e[n + 14]] + D[e[n + 15]]).toLowerCase();
125
+ }
126
+ var $, Q = new Uint8Array(16);
127
+ function X() {
123
128
  if (!$ && ($ = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !$))
124
129
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
125
- return $(F);
130
+ return $(Q);
126
131
  }
127
- const D = [];
128
- for (let e = 0; e < 256; ++e)
129
- D.push((e + 256).toString(16).slice(1));
130
- function Q(e, n = 0) {
131
- return D[e[n + 0]] + D[e[n + 1]] + D[e[n + 2]] + D[e[n + 3]] + "-" + D[e[n + 4]] + D[e[n + 5]] + "-" + D[e[n + 6]] + D[e[n + 7]] + "-" + D[e[n + 8]] + D[e[n + 9]] + "-" + D[e[n + 10]] + D[e[n + 11]] + D[e[n + 12]] + D[e[n + 13]] + D[e[n + 14]] + D[e[n + 15]];
132
- }
133
- const X = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), M = {
134
- randomUUID: X
132
+ var Z = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
133
+ const W = {
134
+ randomUUID: Z
135
135
  };
136
- function Z(e, n, t) {
137
- if (M.randomUUID && !n && !e)
138
- return M.randomUUID();
136
+ function K(e, n, t) {
137
+ if (W.randomUUID && !n && !e)
138
+ return W.randomUUID();
139
139
  e = e || {};
140
- const o = e.random || (e.rng || J)();
141
- return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, Q(o);
140
+ var o = e.random || (e.rng || X)();
141
+ return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, J(o);
142
142
  }
143
- const Le = (e) => {
143
+ const Ue = (e) => {
144
144
  const { creator: n, updatedBy: t } = e.target, o = e.bodies.reduce((i, p) => [...i, p.creator, p.updatedBy].filter(Boolean), []);
145
145
  return [
146
146
  n,
147
147
  t,
148
148
  ...o
149
149
  ].filter((i) => i);
150
- }, Ue = (e, n, t, o) => ({
151
- id: Z(),
150
+ }, Se = (e, n, t, o) => ({
151
+ id: K(),
152
152
  annotation: e.id,
153
153
  created: t || /* @__PURE__ */ new Date(),
154
154
  creator: o,
155
155
  ...n
156
- }), K = (e, n) => {
156
+ }), ee = (e, n) => {
157
157
  const t = new Set(e.bodies.map((o) => o.id));
158
158
  return n.bodies.filter((o) => !t.has(o.id));
159
- }, ee = (e, n) => {
159
+ }, te = (e, n) => {
160
160
  const t = new Set(n.bodies.map((o) => o.id));
161
161
  return e.bodies.filter((o) => !t.has(o.id));
162
- }, te = (e, n) => n.bodies.map((t) => {
162
+ }, ne = (e, n) => n.bodies.map((t) => {
163
163
  const o = e.bodies.find((i) => i.id === t.id);
164
164
  return { newBody: t, oldBody: o && !B(o, t) ? o : void 0 };
165
- }).filter(({ oldBody: t }) => t).map(({ oldBody: t, newBody: o }) => ({ oldBody: t, newBody: o })), ne = (e, n) => !B(e.target, n.target), P = (e, n) => {
166
- const t = K(e, n), o = ee(e, n), i = te(e, n);
165
+ }).filter(({ oldBody: t }) => t).map(({ oldBody: t, newBody: o }) => ({ oldBody: t, newBody: o })), oe = (e, n) => !B(e.target, n.target), q = (e, n) => {
166
+ const t = ee(e, n), o = te(e, n), i = ne(e, n);
167
167
  return {
168
168
  oldValue: e,
169
169
  newValue: n,
170
170
  bodiesCreated: t.length > 0 ? t : void 0,
171
171
  bodiesDeleted: o.length > 0 ? o : void 0,
172
172
  bodiesUpdated: i.length > 0 ? i : void 0,
173
- targetUpdated: ne(e, n) ? { oldTarget: e.target, newTarget: n.target } : void 0
173
+ targetUpdated: oe(e, n) ? { oldTarget: e.target, newTarget: n.target } : void 0
174
174
  };
175
175
  };
176
- var oe = /* @__PURE__ */ ((e) => (e.BODY_ONLY = "BODY_ONLY", e.TARGET_ONLY = "TARGET_ONLY", e))(oe || {}), O = /* @__PURE__ */ ((e) => (e.LOCAL = "LOCAL", e.REMOTE = "REMOTE", e))(O || {});
177
- const se = (e, n) => {
176
+ var se = /* @__PURE__ */ ((e) => (e.BODY_ONLY = "BODY_ONLY", e.TARGET_ONLY = "TARGET_ONLY", e))(se || {}), O = /* @__PURE__ */ ((e) => (e.LOCAL = "LOCAL", e.REMOTE = "REMOTE", e))(O || {});
177
+ const ie = (e, n) => {
178
178
  var p, w;
179
179
  const { changes: t, origin: o } = n;
180
180
  if (!(!e.options.origin || e.options.origin === o))
181
181
  return !1;
182
182
  if (e.options.ignore) {
183
- const { ignore: b } = e.options, v = (U) => U && U.length > 0;
184
- if (!(v(t.created) || v(t.deleted))) {
185
- const U = (p = t.updated) == null ? void 0 : p.some((h) => v(h.bodiesCreated) || v(h.bodiesDeleted) || v(h.bodiesUpdated)), s = (w = t.updated) == null ? void 0 : w.some((h) => h.targetUpdated);
183
+ const { ignore: b } = e.options, y = (U) => U && U.length > 0;
184
+ if (!(y(t.created) || y(t.deleted))) {
185
+ const U = (p = t.updated) == null ? void 0 : p.some((h) => y(h.bodiesCreated) || y(h.bodiesDeleted) || y(h.bodiesUpdated)), s = (w = t.updated) == null ? void 0 : w.some((h) => h.targetUpdated);
186
186
  if (b === "BODY_ONLY" && U && !s || b === "TARGET_ONLY" && s && !U)
187
187
  return !1;
188
188
  }
@@ -196,8 +196,8 @@ const se = (e, n) => {
196
196
  return !!(Array.isArray(e.options.annotations) ? e.options.annotations : [e.options.annotations]).find((u) => b.has(u));
197
197
  } else
198
198
  return !0;
199
- }, ie = (e, n) => {
200
- const t = new Set((e.created || []).map((s) => s.id)), o = new Set((e.updated || []).map(({ newValue: s }) => s.id)), i = new Set((n.created || []).map((s) => s.id)), p = new Set((n.deleted || []).map((s) => s.id)), w = new Set((n.updated || []).map(({ oldValue: s }) => s.id)), b = new Set((n.updated || []).filter(({ oldValue: s }) => t.has(s.id) || o.has(s.id)).map(({ oldValue: s }) => s.id)), v = [
199
+ }, de = (e, n) => {
200
+ const t = new Set((e.created || []).map((s) => s.id)), o = new Set((e.updated || []).map(({ newValue: s }) => s.id)), i = new Set((n.created || []).map((s) => s.id)), p = new Set((n.deleted || []).map((s) => s.id)), w = new Set((n.updated || []).map(({ oldValue: s }) => s.id)), b = new Set((n.updated || []).filter(({ oldValue: s }) => t.has(s.id) || o.has(s.id)).map(({ oldValue: s }) => s.id)), y = [
201
201
  ...(e.created || []).filter((s) => !p.has(s.id)).map((s) => w.has(s.id) ? n.updated.find(({ oldValue: h }) => h.id === s.id).newValue : s),
202
202
  ...n.created || []
203
203
  ], u = [
@@ -207,15 +207,15 @@ const se = (e, n) => {
207
207
  ...(e.updated || []).filter(({ newValue: s }) => !p.has(s.id)).map((s) => {
208
208
  const { oldValue: h, newValue: L } = s;
209
209
  if (w.has(L.id)) {
210
- const E = n.updated.find((S) => S.oldValue.id === L.id).newValue;
211
- return P(h, E);
210
+ const v = n.updated.find((S) => S.oldValue.id === L.id).newValue;
211
+ return q(h, v);
212
212
  } else
213
213
  return s;
214
214
  }),
215
215
  ...(n.updated || []).filter(({ oldValue: s }) => !b.has(s.id))
216
216
  ];
217
- return { created: v, deleted: u, updated: U };
218
- }, de = (e) => e.id !== void 0, Se = () => {
217
+ return { created: y, deleted: u, updated: U };
218
+ }, ae = (e) => e.id !== void 0, Oe = () => {
219
219
  const e = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), t = [], o = (d, r = {}) => t.push({ onChange: d, options: r }), i = (d) => {
220
220
  const r = t.findIndex((c) => c.onChange == d);
221
221
  r > -1 && t.splice(r, 1);
@@ -230,7 +230,7 @@ const se = (e, n) => {
230
230
  state: [...e.values()]
231
231
  };
232
232
  t.forEach((f) => {
233
- se(f, c) && f.onChange(c);
233
+ ie(f, c) && f.onChange(c);
234
234
  });
235
235
  }, w = (d, r = O.LOCAL) => {
236
236
  if (e.get(d.id))
@@ -239,12 +239,12 @@ const se = (e, n) => {
239
239
  }, b = (d, r) => {
240
240
  const c = typeof d == "string" ? r : d, f = typeof d == "string" ? d : d.id, C = e.get(f);
241
241
  if (C) {
242
- const T = P(C, c);
243
- return f === c.id ? e.set(f, c) : (e.delete(f), e.set(c.id, c)), C.bodies.forEach((I) => n.delete(I.id)), c.bodies.forEach((I) => n.set(I.id, c.id)), T;
242
+ const T = q(C, c);
243
+ return f === c.id ? e.set(f, c) : (e.delete(f), e.set(c.id, c)), C.bodies.forEach((x) => n.delete(x.id)), c.bodies.forEach((x) => n.set(x.id, c.id)), T;
244
244
  } else
245
245
  console.warn(`Cannot update annotation ${f} - does not exist`);
246
- }, v = (d, r = O.LOCAL, c = O.LOCAL) => {
247
- const f = de(r) ? c : r, C = b(d, r);
246
+ }, y = (d, r = O.LOCAL, c = O.LOCAL) => {
247
+ const f = ae(r) ? c : r, C = b(d, r);
248
248
  C && p(f, { updated: [C] });
249
249
  }, u = (d, r = O.LOCAL) => {
250
250
  const c = d.reduce((f, C) => {
@@ -277,8 +277,8 @@ const se = (e, n) => {
277
277
  }), p(c, { created: d, deleted: f });
278
278
  } else {
279
279
  const f = d.reduce((C, T) => {
280
- const I = e.get(T.id);
281
- return I ? [...C, I] : C;
280
+ const x = e.get(T.id);
281
+ return x ? [...C, x] : C;
282
282
  }, []);
283
283
  if (f.length > 0)
284
284
  throw Error(`Bulk insert would overwrite the following annotations: ${f.map((C) => C.id).join(", ")}`);
@@ -286,17 +286,17 @@ const se = (e, n) => {
286
286
  e.set(C.id, C), C.bodies.forEach((T) => n.set(T.id, C.id));
287
287
  }), p(c, { created: d });
288
288
  }
289
- }, E = (d) => {
289
+ }, v = (d) => {
290
290
  const r = typeof d == "string" ? d : d.id, c = e.get(r);
291
291
  if (c)
292
292
  return e.delete(r), c.bodies.forEach((f) => n.delete(f.id)), c;
293
293
  console.warn(`Attempt to delete missing annotation: ${r}`);
294
294
  }, S = (d, r = O.LOCAL) => {
295
- const c = E(d);
295
+ const c = v(d);
296
296
  c && p(r, { deleted: [c] });
297
- }, y = (d, r = O.LOCAL) => {
297
+ }, E = (d, r = O.LOCAL) => {
298
298
  const c = d.reduce((f, C) => {
299
- const T = E(C);
299
+ const T = v(C);
300
300
  return T ? [...f, T] : f;
301
301
  }, []);
302
302
  c.length > 0 && p(r, { deleted: c });
@@ -325,13 +325,13 @@ const se = (e, n) => {
325
325
  }, a = (d, r = O.LOCAL) => {
326
326
  const c = d.map((f) => l(f)).filter(Boolean);
327
327
  c.length > 0 && p(r, { updated: c });
328
- }, A = (d) => {
328
+ }, m = (d) => {
329
329
  const r = e.get(d);
330
330
  return r ? { ...r } : void 0;
331
- }, m = (d) => {
331
+ }, A = (d) => {
332
332
  const r = n.get(d);
333
333
  if (r) {
334
- const f = A(r).bodies.find((C) => C.id === d);
334
+ const f = m(r).bodies.find((C) => C.id === d);
335
335
  if (f)
336
336
  return f;
337
337
  console.error(`Store integrity error: body ${d} in index, but not in annotation`);
@@ -356,10 +356,10 @@ const se = (e, n) => {
356
356
  }, N = (d, r, c = O.LOCAL) => {
357
357
  const f = R(d, r);
358
358
  f && p(c, { updated: [f] });
359
- }, x = (d, r = O.LOCAL) => {
359
+ }, I = (d, r = O.LOCAL) => {
360
360
  const c = d.map((f) => R({ id: f.id, annotation: f.annotation }, f)).filter(Boolean);
361
361
  p(r, { updated: c });
362
- }, Y = (d) => {
362
+ }, j = (d) => {
363
363
  const r = e.get(d.annotation);
364
364
  if (r) {
365
365
  const c = {
@@ -385,36 +385,36 @@ const se = (e, n) => {
385
385
  addBody: U,
386
386
  all: s,
387
387
  bulkAddAnnotation: L,
388
- bulkDeleteAnnotation: y,
388
+ bulkDeleteAnnotation: E,
389
389
  bulkDeleteBodies: a,
390
390
  bulkUpdateAnnotation: u,
391
- bulkUpdateBodies: x,
391
+ bulkUpdateBodies: I,
392
392
  bulkUpdateTargets: (d, r = O.LOCAL) => {
393
- const c = d.map((f) => Y(f)).filter(Boolean);
393
+ const c = d.map((f) => j(f)).filter(Boolean);
394
394
  c.length > 0 && p(r, { updated: c });
395
395
  },
396
396
  clear: h,
397
397
  deleteAnnotation: S,
398
398
  deleteBody: g,
399
- getAnnotation: A,
400
- getBody: m,
399
+ getAnnotation: m,
400
+ getBody: A,
401
401
  observe: o,
402
402
  unobserve: i,
403
- updateAnnotation: v,
403
+ updateAnnotation: y,
404
404
  updateBody: N,
405
405
  updateTarget: (d, r = O.LOCAL) => {
406
- const c = Y(d);
406
+ const c = j(d);
407
407
  c && p(r, { updated: [c] });
408
408
  }
409
409
  };
410
- }, Oe = (e) => ({
410
+ }, Te = (e) => ({
411
411
  ...e,
412
412
  subscribe: (t) => {
413
413
  const o = (i) => t(i.state);
414
414
  return e.observe(o), t(e.all()), () => e.unobserve(o);
415
415
  }
416
416
  });
417
- let W = () => ({
417
+ let G = () => ({
418
418
  emit(e, ...n) {
419
419
  for (let t = 0, o = this.events[e] || [], i = o.length; t < i; t++)
420
420
  o[t](...n);
@@ -428,76 +428,79 @@ let W = () => ({
428
428
  };
429
429
  }
430
430
  });
431
- const ae = 250, Te = (e) => {
432
- const n = W(), t = [];
431
+ const re = 250, De = (e) => {
432
+ const n = G(), t = [];
433
433
  let o = -1, i = !1, p = 0;
434
434
  const w = (a) => {
435
435
  if (!i) {
436
- const { changes: A } = a, m = performance.now();
437
- if (m - p > ae)
438
- t.splice(o + 1), t.push(A), o = t.length - 1;
436
+ const { changes: m } = a, A = performance.now();
437
+ if (A - p > re)
438
+ t.splice(o + 1), t.push(m), o = t.length - 1;
439
439
  else {
440
440
  const R = t.length - 1;
441
- t[R] = ie(t[R], A);
441
+ t[R] = de(t[R], m);
442
442
  }
443
- p = m;
443
+ p = A;
444
444
  }
445
445
  i = !1;
446
446
  };
447
447
  e.observe(w, { origin: O.LOCAL });
448
- const b = (a) => a && a.length > 0 && e.bulkDeleteAnnotation(a), v = (a) => a && a.length > 0 && e.bulkAddAnnotation(a, !1), u = (a) => a && a.length > 0 && e.bulkUpdateAnnotation(a.map(({ oldValue: A }) => A)), U = (a) => a && a.length > 0 && e.bulkUpdateAnnotation(a.map(({ newValue: A }) => A)), s = (a) => a && a.length > 0 && e.bulkAddAnnotation(a, !1), h = (a) => a && a.length > 0 && e.bulkDeleteAnnotation(a);
448
+ const b = (a) => a && a.length > 0 && e.bulkDeleteAnnotation(a), y = (a) => a && a.length > 0 && e.bulkAddAnnotation(a, !1), u = (a) => a && a.length > 0 && e.bulkUpdateAnnotation(a.map(({ oldValue: m }) => m)), U = (a) => a && a.length > 0 && e.bulkUpdateAnnotation(a.map(({ newValue: m }) => m)), s = (a) => a && a.length > 0 && e.bulkAddAnnotation(a, !1), h = (a) => a && a.length > 0 && e.bulkDeleteAnnotation(a);
449
449
  return {
450
450
  canRedo: () => t.length - 1 > o,
451
451
  canUndo: () => o > -1,
452
452
  destroy: () => e.unobserve(w),
453
- on: (a, A) => n.on(a, A),
453
+ on: (a, m) => n.on(a, m),
454
454
  redo: () => {
455
455
  if (t.length - 1 > o) {
456
456
  i = !0;
457
- const { created: a, updated: A, deleted: m } = t[o + 1];
458
- v(a), U(A), h(m), n.emit("redo", t[o + 1]), o += 1;
457
+ const { created: a, updated: m, deleted: A } = t[o + 1];
458
+ y(a), U(m), h(A), n.emit("redo", t[o + 1]), o += 1;
459
459
  }
460
460
  },
461
461
  undo: () => {
462
462
  if (o > -1) {
463
463
  i = !0;
464
- const { created: a, updated: A, deleted: m } = t[o];
465
- b(a), u(A), s(m), n.emit("undo", t[o]), o -= 1;
464
+ const { created: a, updated: m, deleted: A } = t[o];
465
+ b(a), u(m), s(A), n.emit("undo", t[o]), o -= 1;
466
466
  }
467
467
  }
468
468
  };
469
- }, De = () => {
470
- const { subscribe: e, set: n } = _([]);
469
+ }, Re = () => {
470
+ const { subscribe: e, set: n } = Y([]);
471
471
  return {
472
472
  subscribe: e,
473
473
  set: n
474
474
  };
475
- }, Re = (e, n, t, o) => {
476
- const { store: i, selection: p, hover: w, viewport: b } = e, v = /* @__PURE__ */ new Map();
475
+ }, Be = (e, n, t, o) => {
476
+ const { store: i, selection: p, hover: w, viewport: b } = e, y = /* @__PURE__ */ new Map();
477
477
  let u = [], U, s;
478
478
  const h = (l, g) => {
479
- v.has(l) ? v.get(l).push(g) : v.set(l, [g]);
479
+ y.has(l) ? y.get(l).push(g) : y.set(l, [g]);
480
480
  }, L = (l, g) => {
481
- const a = v.get(l);
482
- a && a.indexOf(g) > 0 && a.splice(a.indexOf(g), 1);
483
- }, E = (l, g, a) => {
484
- v.has(l) && setTimeout(() => {
485
- v.get(l).forEach((A) => {
481
+ const a = y.get(l);
482
+ if (a) {
483
+ const m = a.indexOf(g);
484
+ m !== -1 && a.splice(m, 1);
485
+ }
486
+ }, v = (l, g, a) => {
487
+ y.has(l) && setTimeout(() => {
488
+ y.get(l).forEach((m) => {
486
489
  if (t) {
487
- const m = Array.isArray(g) ? g.map((N) => t.serialize(N)) : t.serialize(g), R = a ? a instanceof PointerEvent ? a : t.serialize(a) : void 0;
488
- A(m, R);
490
+ const A = Array.isArray(g) ? g.map((N) => t.serialize(N)) : t.serialize(g), R = a ? a instanceof PointerEvent ? a : t.serialize(a) : void 0;
491
+ m(A, R);
489
492
  } else
490
- A(g, a);
493
+ m(g, a);
491
494
  });
492
495
  }, 1);
493
496
  }, S = () => {
494
497
  const { selected: l } = p, g = (l || []).map(({ id: a }) => i.getAnnotation(a));
495
498
  g.forEach((a) => {
496
- const A = u.find((m) => m.id === a.id);
497
- (!A || !B(A, a)) && E("updateAnnotation", a, A);
499
+ const m = u.find((A) => A.id === a.id);
500
+ (!m || !B(m, a)) && v("updateAnnotation", a, m);
498
501
  }), u = u.map((a) => {
499
- const A = g.find(({ id: m }) => m === a.id);
500
- return A || a;
502
+ const m = g.find(({ id: A }) => A === a.id);
503
+ return m || a;
501
504
  });
502
505
  };
503
506
  p.subscribe(({ selected: l }) => {
@@ -507,50 +510,50 @@ const ae = 250, Te = (e) => {
507
510
  else if (u.length > 0 && l.length === 0)
508
511
  u.forEach((g) => {
509
512
  const a = i.getAnnotation(g.id);
510
- a && !B(a, g) && E("updateAnnotation", a, g);
513
+ a && !B(a, g) && v("updateAnnotation", a, g);
511
514
  }), u = [];
512
515
  else {
513
- const g = new Set(u.map((m) => m.id)), a = new Set(l.map(({ id: m }) => m));
514
- u.filter((m) => !a.has(m.id)).forEach((m) => {
515
- const R = i.getAnnotation(m.id);
516
- R && !B(R, m) && E("updateAnnotation", R, m);
516
+ const g = new Set(u.map((A) => A.id)), a = new Set(l.map(({ id: A }) => A));
517
+ u.filter((A) => !a.has(A.id)).forEach((A) => {
518
+ const R = i.getAnnotation(A.id);
519
+ R && !B(R, A) && v("updateAnnotation", R, A);
517
520
  }), u = [
518
521
  // Remove annotations that were deselected
519
- ...u.filter((m) => a.has(m.id)),
522
+ ...u.filter((A) => a.has(A.id)),
520
523
  // Add editable annotations that were selected
521
- ...l.filter(({ id: m }) => !g.has(m)).map(({ id: m }) => i.getAnnotation(m))
524
+ ...l.filter(({ id: A }) => !g.has(A)).map(({ id: A }) => i.getAnnotation(A))
522
525
  ];
523
526
  }
524
- E("selectionChanged", u);
527
+ v("selectionChanged", u);
525
528
  }
526
529
  }), w.subscribe((l) => {
527
- !U && l ? E("mouseEnterAnnotation", i.getAnnotation(l)) : U && !l ? E("mouseLeaveAnnotation", i.getAnnotation(U)) : U && l && (E("mouseLeaveAnnotation", i.getAnnotation(U)), E("mouseEnterAnnotation", i.getAnnotation(l))), U = l;
528
- }), b == null || b.subscribe((l) => E("viewportIntersect", l.map((g) => i.getAnnotation(g)))), i.observe((l) => {
530
+ !U && l ? v("mouseEnterAnnotation", i.getAnnotation(l)) : U && !l ? v("mouseLeaveAnnotation", i.getAnnotation(U)) : U && l && (v("mouseLeaveAnnotation", i.getAnnotation(U)), v("mouseEnterAnnotation", i.getAnnotation(l))), U = l;
531
+ }), b == null || b.subscribe((l) => v("viewportIntersect", l.map((g) => i.getAnnotation(g)))), i.observe((l) => {
529
532
  o && (s && clearTimeout(s), s = setTimeout(S, 1e3));
530
533
  const { created: g, deleted: a } = l.changes;
531
- (g || []).forEach((m) => E("createAnnotation", m)), (a || []).forEach((m) => E("deleteAnnotation", m)), (l.changes.updated || []).filter((m) => [
532
- ...m.bodiesCreated || [],
533
- ...m.bodiesDeleted || [],
534
- ...m.bodiesUpdated || []
535
- ].length > 0).forEach(({ oldValue: m, newValue: R }) => {
536
- const N = u.find((x) => x.id === m.id) || m;
537
- u = u.map((x) => x.id === m.id ? R : x), E("updateAnnotation", R, N);
534
+ (g || []).forEach((A) => v("createAnnotation", A)), (a || []).forEach((A) => v("deleteAnnotation", A)), (l.changes.updated || []).filter((A) => [
535
+ ...A.bodiesCreated || [],
536
+ ...A.bodiesDeleted || [],
537
+ ...A.bodiesUpdated || []
538
+ ].length > 0).forEach(({ oldValue: A, newValue: R }) => {
539
+ const N = u.find((I) => I.id === A.id) || A;
540
+ u = u.map((I) => I.id === A.id ? R : I), v("updateAnnotation", R, N);
538
541
  });
539
542
  }, { origin: O.LOCAL }), i.observe((l) => {
540
543
  if (u) {
541
- const g = new Set(u.map((A) => A.id)), a = (l.changes.updated || []).filter(({ newValue: A }) => g.has(A.id)).map(({ newValue: A }) => A);
542
- a.length > 0 && (u = u.map((A) => {
543
- const m = a.find((R) => R.id === A.id);
544
- return m || A;
544
+ const g = new Set(u.map((m) => m.id)), a = (l.changes.updated || []).filter(({ newValue: m }) => g.has(m.id)).map(({ newValue: m }) => m);
545
+ a.length > 0 && (u = u.map((m) => {
546
+ const A = a.find((R) => R.id === m.id);
547
+ return A || m;
545
548
  }));
546
549
  }
547
550
  }, { origin: O.REMOTE });
548
- const y = (l) => (g) => {
551
+ const E = (l) => (g) => {
549
552
  const { updated: a } = g;
550
- l ? (a || []).forEach((A) => E("updateAnnotation", A.oldValue, A.newValue)) : (a || []).forEach((A) => E("updateAnnotation", A.newValue, A.oldValue));
553
+ l ? (a || []).forEach((m) => v("updateAnnotation", m.oldValue, m.newValue)) : (a || []).forEach((m) => v("updateAnnotation", m.newValue, m.oldValue));
551
554
  };
552
- return n.on("undo", y(!0)), n.on("redo", y(!1)), { on: h, off: L, emit: E };
553
- }, Be = (e) => (n) => n.map((t) => e.serialize(t)), re = (e) => (n) => n.reduce((t, o) => {
555
+ return n.on("undo", E(!0)), n.on("redo", E(!1)), { on: h, off: L, emit: v };
556
+ }, Ie = (e) => (n) => n.map((t) => e.serialize(t)), ce = (e) => (n) => n.reduce((t, o) => {
554
557
  const { parsed: i, error: p } = e.parse(o);
555
558
  return p ? {
556
559
  parsed: t.parsed,
@@ -562,44 +565,44 @@ const ae = 250, Te = (e) => {
562
565
  ...t
563
566
  };
564
567
  }, { parsed: [], failed: [] }), xe = (e, n, t) => {
565
- const { store: o, selection: i } = e, p = (y) => {
568
+ const { store: o, selection: i } = e, p = (E) => {
566
569
  if (t) {
567
- const { parsed: l, error: g } = t.parse(y);
570
+ const { parsed: l, error: g } = t.parse(E);
568
571
  l ? o.addAnnotation(l, O.REMOTE) : console.error(g);
569
572
  } else
570
- o.addAnnotation(y, O.REMOTE);
571
- }, w = () => i.clear(), b = () => o.clear(), v = (y) => {
572
- const l = o.getAnnotation(y);
573
+ o.addAnnotation(E, O.REMOTE);
574
+ }, w = () => i.clear(), b = () => o.clear(), y = (E) => {
575
+ const l = o.getAnnotation(E);
573
576
  return t && l ? t.serialize(l) : l;
574
577
  }, u = () => t ? o.all().map(t.serialize) : o.all(), U = () => {
575
578
  var g;
576
579
  const l = (((g = i.selected) == null ? void 0 : g.map((a) => a.id)) || []).map((a) => o.getAnnotation(a)).filter(Boolean);
577
580
  return t ? l.map(t.serialize) : l;
578
- }, s = (y, l = !0) => fetch(y).then((g) => g.json()).then((g) => (L(g, l), g)), h = (y) => {
579
- if (typeof y == "string") {
580
- const l = o.getAnnotation(y);
581
- if (o.deleteAnnotation(y), l)
581
+ }, s = (E, l = !0) => fetch(E).then((g) => g.json()).then((g) => (L(g, l), g)), h = (E) => {
582
+ if (typeof E == "string") {
583
+ const l = o.getAnnotation(E);
584
+ if (o.deleteAnnotation(E), l)
582
585
  return t ? t.serialize(l) : l;
583
586
  } else {
584
- const l = t ? t.parse(y).parsed : y;
587
+ const l = t ? t.parse(E).parsed : E;
585
588
  if (l)
586
- return o.deleteAnnotation(l), y;
589
+ return o.deleteAnnotation(l), E;
587
590
  }
588
- }, L = (y, l = !0) => {
591
+ }, L = (E, l = !0) => {
589
592
  if (t) {
590
- const { parsed: g, failed: a } = re(t)(y);
593
+ const { parsed: g, failed: a } = ce(t)(E);
591
594
  a.length > 0 && console.warn(`Discarded ${a.length} invalid annotations`, a), o.bulkAddAnnotation(g, l, O.REMOTE);
592
595
  } else
593
- o.bulkAddAnnotation(y, l, O.REMOTE);
594
- }, E = (y) => {
595
- y ? i.setSelected(y) : i.clear();
596
- }, S = (y) => {
596
+ o.bulkAddAnnotation(E, l, O.REMOTE);
597
+ }, v = (E, l) => {
598
+ E ? i.setSelected(E, l) : i.clear();
599
+ }, S = (E) => {
597
600
  if (t) {
598
- const l = t.parse(y).parsed, g = t.serialize(o.getAnnotation(l.id));
601
+ const l = t.parse(E).parsed, g = t.serialize(o.getAnnotation(l.id));
599
602
  return o.updateAnnotation(l), g;
600
603
  } else {
601
- const l = o.getAnnotation(y.id);
602
- return o.updateAnnotation(y), l;
604
+ const l = o.getAnnotation(E.id);
605
+ return o.updateAnnotation(E), l;
603
606
  }
604
607
  };
605
608
  return {
@@ -608,36 +611,35 @@ const ae = 250, Te = (e) => {
608
611
  canRedo: n.canRedo,
609
612
  canUndo: n.canUndo,
610
613
  clearAnnotations: b,
611
- getAnnotationById: v,
614
+ getAnnotationById: y,
612
615
  getAnnotations: u,
613
616
  getSelected: U,
614
617
  loadAnnotations: s,
615
618
  redo: n.redo,
616
619
  removeAnnotation: h,
617
620
  setAnnotations: L,
618
- setSelected: E,
621
+ setSelected: v,
619
622
  undo: n.undo,
620
623
  updateAnnotation: S
621
624
  };
622
- }, ce = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
623
- let le = (e) => crypto.getRandomValues(new Uint8Array(e)), ue = (e, n, t) => {
625
+ }, le = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
626
+ let ue = (e) => crypto.getRandomValues(new Uint8Array(e)), fe = (e, n, t) => {
624
627
  let o = (2 << Math.log(e.length - 1) / Math.LN2) - 1, i = -~(1.6 * o * n / e.length);
625
628
  return (p = n) => {
626
629
  let w = "";
627
630
  for (; ; ) {
628
- let b = t(i), v = i;
629
- for (; v--; )
630
- if (w += e[b[v] & o] || "", w.length === p)
631
- return w;
631
+ let b = t(i), y = i;
632
+ for (; y--; )
633
+ if (w += e[b[y] & o] || "", w.length === p) return w;
632
634
  }
633
635
  };
634
- }, fe = (e, n = 21) => ue(e, n, le), pe = (e = 21) => {
636
+ }, pe = (e, n = 21) => fe(e, n, ue), he = (e = 21) => {
635
637
  let n = "", t = crypto.getRandomValues(new Uint8Array(e));
636
638
  for (; e--; )
637
- n += ce[t[e] & 63];
639
+ n += le[t[e] & 63];
638
640
  return n;
639
641
  };
640
- const Ie = () => ({ isGuest: !0, id: fe("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_", 20)() }), he = (e) => {
642
+ const ke = () => ({ isGuest: !0, id: pe("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_", 20)() }), ge = (e) => {
641
643
  const n = JSON.stringify(e);
642
644
  let t = 0;
643
645
  for (let o = 0, i = n.length; o < i; o++) {
@@ -645,20 +647,20 @@ const Ie = () => ({ isGuest: !0, id: fe("1234567890abcdefghijklmnopqrstuvwxyzABC
645
647
  t = (t << 5) - t + p, t |= 0;
646
648
  }
647
649
  return `${t}`;
648
- }, ge = (e) => e ? typeof e == "object" ? { ...e } : e : void 0, ke = (e, n) => (Array.isArray(e) ? e : [e]).map((t) => {
649
- const { id: o, type: i, purpose: p, value: w, created: b, modified: v, creator: u, ...U } = t;
650
+ }, me = (e) => e ? typeof e == "object" ? { ...e } : e : void 0, Ne = (e, n) => (Array.isArray(e) ? e : [e]).map((t) => {
651
+ const { id: o, type: i, purpose: p, value: w, created: b, modified: y, creator: u, ...U } = t;
650
652
  return {
651
- id: o || `temp-${he(t)}`,
653
+ id: o || `temp-${ge(t)}`,
652
654
  annotation: n,
653
655
  type: i,
654
656
  purpose: p,
655
657
  value: w,
656
- creator: ge(u),
658
+ creator: me(u),
657
659
  created: b ? new Date(b) : void 0,
658
- updated: v ? new Date(v) : void 0,
660
+ updated: y ? new Date(y) : void 0,
659
661
  ...U
660
662
  };
661
- }), Ne = (e) => e.map((n) => {
663
+ }), $e = (e) => e.map((n) => {
662
664
  var b;
663
665
  const { annotation: t, created: o, updated: i, ...p } = n, w = {
664
666
  ...p,
@@ -666,7 +668,7 @@ const Ie = () => ({ isGuest: !0, id: fe("1234567890abcdefghijklmnopqrstuvwxyzABC
666
668
  modified: i == null ? void 0 : i.toISOString()
667
669
  };
668
670
  return (b = w.id) != null && b.startsWith("temp-") && delete w.id, w;
669
- }), me = [
671
+ }), Ae = [
670
672
  "#ff7c00",
671
673
  // orange
672
674
  "#1ac938",
@@ -685,14 +687,14 @@ const Ie = () => ({ isGuest: !0, id: fe("1234567890abcdefghijklmnopqrstuvwxyzABC
685
687
  // cyan
686
688
  "#023eff"
687
689
  // blue
688
- ], Ae = () => {
689
- const e = [...me];
690
+ ], be = () => {
691
+ const e = [...Ae];
690
692
  return { assignRandomColor: () => {
691
693
  const o = Math.floor(Math.random() * e.length), i = e[o];
692
694
  return e.splice(o, 1), i;
693
695
  }, releaseColor: (o) => e.push(o) };
694
- }, be = () => {
695
- const e = Ae();
696
+ }, ve = () => {
697
+ const e = be();
696
698
  return { addUser: (o, i) => {
697
699
  const p = e.assignRandomColor();
698
700
  return {
@@ -701,8 +703,8 @@ const Ie = () => ({ isGuest: !0, id: fe("1234567890abcdefghijklmnopqrstuvwxyzABC
701
703
  color: p
702
704
  };
703
705
  }, removeUser: (o) => e.releaseColor(o.appearance.color) };
704
- }, Ee = (e, n) => e.every((t) => e.includes(t)) && n.every((t) => e.includes(t)), $e = pe(), ze = (e = be()) => {
705
- const n = W(), t = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), i = (s, h) => {
706
+ }, Ee = (e, n) => e.every((t) => e.includes(t)) && n.every((t) => e.includes(t)), ze = he(), Ve = (e = ve()) => {
707
+ const n = G(), t = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), i = (s, h) => {
706
708
  if (t.has(s)) {
707
709
  console.warn("Attempt to add user that is already present", s, h);
708
710
  return;
@@ -721,20 +723,20 @@ const Ie = () => ({ isGuest: !0, id: fe("1234567890abcdefghijklmnopqrstuvwxyzABC
721
723
  }
722
724
  e.removeUser(h), t.delete(s);
723
725
  }, w = (s) => {
724
- const h = new Set(s.map((S) => S.presenceKey)), L = s.filter(({ presenceKey: S }) => !t.has(S)), E = Array.from(t.values()).filter((S) => !h.has(S.presenceKey));
725
- L.forEach(({ presenceKey: S, user: y }) => i(S, y)), E.forEach((S) => {
726
- const { presenceKey: y } = S;
727
- o.has(y) && n.emit("selectionChange", S, null), p(y);
728
- }), (L.length > 0 || E.length > 0) && n.emit("presence", u());
726
+ const h = new Set(s.map((S) => S.presenceKey)), L = s.filter(({ presenceKey: S }) => !t.has(S)), v = Array.from(t.values()).filter((S) => !h.has(S.presenceKey));
727
+ L.forEach(({ presenceKey: S, user: E }) => i(S, E)), v.forEach((S) => {
728
+ const { presenceKey: E } = S;
729
+ o.has(E) && n.emit("selectionChange", S, null), p(E);
730
+ }), (L.length > 0 || v.length > 0) && n.emit("presence", u());
729
731
  }, b = (s, h) => {
730
732
  const L = t.get(s);
731
733
  if (!L) {
732
734
  console.warn("Activity notification from user that is not present");
733
735
  return;
734
736
  }
735
- const E = o.get(s);
736
- (!E || !Ee(E, h)) && (o.set(s, h), n.emit("selectionChange", L, h));
737
- }, v = (s, h) => {
737
+ const v = o.get(s);
738
+ (!v || !Ee(v, h)) && (o.set(s, h), n.emit("selectionChange", L, h));
739
+ }, y = (s, h) => {
738
740
  const L = t.get(s);
739
741
  if (!L) {
740
742
  console.warn("Selection change for user that is not present", s);
@@ -747,36 +749,36 @@ const Ie = () => ({ isGuest: !0, id: fe("1234567890abcdefghijklmnopqrstuvwxyzABC
747
749
  notifyActivity: b,
748
750
  on: (s, h) => n.on(s, h),
749
751
  syncUsers: w,
750
- updateSelection: v
752
+ updateSelection: y
751
753
  };
752
754
  };
753
755
  export {
754
- oe as Ignore,
756
+ se as Ignore,
755
757
  O as Origin,
756
- $e as PRESENCE_KEY,
757
- G as PointerSelectAction,
758
- Ie as createAnonymousGuest,
758
+ ze as PRESENCE_KEY,
759
+ F as PointerSelectAction,
760
+ ke as createAnonymousGuest,
759
761
  xe as createBaseAnnotator,
760
- Ue as createBody,
761
- be as createDefaultAppearenceProvider,
762
- we as createHoverState,
763
- Re as createLifecyleObserver,
764
- ze as createPresenceState,
765
- Ce as createSelectionState,
766
- Se as createStore,
767
- Te as createUndoStack,
768
- De as createViewportState,
769
- Ae as defaultColorProvider,
770
- P as diffAnnotations,
771
- Le as getContributors,
772
- ie as mergeChanges,
773
- H as onPointerSelect,
774
- re as parseAll,
775
- ke as parseW3CBodies,
776
- ge as parseW3CUser,
777
- Be as serializeAll,
778
- Ne as serializeW3CBodies,
779
- se as shouldNotify,
780
- Oe as toSvelteStore
762
+ Se as createBody,
763
+ ve as createDefaultAppearenceProvider,
764
+ Ce as createHoverState,
765
+ Be as createLifecycleObserver,
766
+ Ve as createPresenceState,
767
+ Le as createSelectionState,
768
+ Oe as createStore,
769
+ De as createUndoStack,
770
+ Re as createViewportState,
771
+ be as defaultColorProvider,
772
+ q as diffAnnotations,
773
+ Ue as getContributors,
774
+ de as mergeChanges,
775
+ P as onPointerSelect,
776
+ ce as parseAll,
777
+ Ne as parseW3CBodies,
778
+ me as parseW3CUser,
779
+ Ie as serializeAll,
780
+ $e as serializeW3CBodies,
781
+ ie as shouldNotify,
782
+ Te as toSvelteStore
781
783
  };
782
784
  //# sourceMappingURL=annotorious-core.es.js.map