New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@annotorious/react

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@annotorious/react - npm Package Compare versions

Comparing version 3.0.22 to 3.1.0

dist/annotorious-react.es29.js

9

dist/annotorious-react.es11.js

@@ -1,9 +0,6 @@

import { __module as e } from "./annotorious-react.es18.js";
import { __require as r } from "./annotorious-react.es19.js";
import { __require as o } from "./annotorious-react.es20.js";
process.env.NODE_ENV === "production" ? e.exports = r() : e.exports = o();
var m = e.exports;
import { __require as r } from "./annotorious-react.es18.js";
var i = r();
export {
m as j
i as j
};
//# sourceMappingURL=annotorious-react.es11.js.map

@@ -1,11 +0,11 @@

import { useState as c, useRef as n, useEffect as s } from "react";
const m = (e, t) => {
const [u, o] = c(e), r = n();
return s(() => (r.current = setTimeout(() => o(e), t), () => {
clearTimeout(r.current);
}), [e, t]), u;
import { useState as o, useRef as c, useEffect as s } from "react";
const i = (e, t) => {
const [r, n] = o(e), u = c(void 0);
return s(() => (u.current = setTimeout(() => n(e), t), () => {
clearTimeout(u.current);
}), [e, t]), r;
};
export {
m as useDebounce
i as useDebounce
};
//# sourceMappingURL=annotorious-react.es12.js.map

@@ -1,71 +0,62 @@

import * as o from "react";
import { useLayoutEffect as q, useEffect as Q } from "react";
import { getComputedStyle as Z, isElement as I } from "./annotorious-react.es21.js";
import { getOverflowAncestors as Re } from "./annotorious-react.es21.js";
import * as s from "react";
import { useLayoutEffect as k, useEffect as q } from "react";
import { j as F } from "./annotorious-react.es11.js";
import { getComputedStyle as Q, isElement as P } from "./annotorious-react.es22.js";
import { getOverflowAncestors as xe } from "./annotorious-react.es22.js";
import "react-dom";
import { useFloating as z } from "./annotorious-react.es15.js";
import { arrow as Ee, flip as ve, inline as we, offset as Ce, shift as Se } from "./annotorious-react.es15.js";
import { useFloating as Z } from "./annotorious-react.es15.js";
import { arrow as ve, flip as we, inline as Ee, offset as Se, shift as Ie } from "./annotorious-react.es15.js";
const $ = {
...o
}, G = $.useInsertionEffect, J = G || ((t) => t());
function K(t) {
const n = o.useRef(() => {
...s
}, z = $.useInsertionEffect, G = z || ((t) => t());
function J(t) {
const n = s.useRef(() => {
if (process.env.NODE_ENV !== "production")
throw new Error("Cannot call an event handler while rendering.");
});
return J(() => {
return G(() => {
n.current = t;
}), o.useCallback(function() {
for (var s = arguments.length, e = new Array(s), r = 0; r < s; r++)
e[r] = arguments[r];
}), s.useCallback(function() {
for (var c = arguments.length, e = new Array(c), o = 0; o < c; o++)
e[o] = arguments[o];
return n.current == null ? void 0 : n.current(...e);
}, []);
}
var b = typeof document < "u" ? q : Q;
function D() {
return D = Object.assign ? Object.assign.bind() : function(t) {
for (var n = 1; n < arguments.length; n++) {
var s = arguments[n];
for (var e in s)
Object.prototype.hasOwnProperty.call(s, e) && (t[e] = s[e]);
}
return t;
}, D.apply(this, arguments);
}
let V = !1, k = 0;
var M = typeof document < "u" ? k : q;
let y = !1, K = 0;
const W = () => (
// Ensure the id is unique with multiple independent versions of Floating UI
// on <React 18
"floating-ui-" + Math.random().toString(36).slice(2, 6) + k++
"floating-ui-" + Math.random().toString(36).slice(2, 6) + K++
);
function _() {
const [t, n] = o.useState(() => V ? W() : void 0);
return b(() => {
const [t, n] = s.useState(() => y ? W() : void 0);
return M(() => {
t == null && n(W());
}, []), o.useEffect(() => {
V = !0;
}, []), s.useEffect(() => {
y = !0;
}, []), t;
}
const ee = $.useId, B = ee || _;
let P;
process.env.NODE_ENV !== "production" && (P = /* @__PURE__ */ new Set());
let O;
process.env.NODE_ENV !== "production" && (O = /* @__PURE__ */ new Set());
function te() {
for (var t, n = arguments.length, s = new Array(n), e = 0; e < n; e++)
s[e] = arguments[e];
const r = "Floating UI: " + s.join(" ");
if (!((t = P) != null && t.has(r))) {
var l;
(l = P) == null || l.add(r), console.warn(r);
for (var t, n = arguments.length, c = new Array(n), e = 0; e < n; e++)
c[e] = arguments[e];
const o = "Floating UI: " + c.join(" ");
if (!((t = O) != null && t.has(o))) {
var i;
(i = O) == null || i.add(o), console.warn(o);
}
}
function ne() {
for (var t, n = arguments.length, s = new Array(n), e = 0; e < n; e++)
s[e] = arguments[e];
const r = "Floating UI: " + s.join(" ");
if (!((t = P) != null && t.has(r))) {
var l;
(l = P) == null || l.add(r), console.error(r);
for (var t, n = arguments.length, c = new Array(n), e = 0; e < n; e++)
c[e] = arguments[e];
const o = "Floating UI: " + c.join(" ");
if (!((t = O) != null && t.has(o))) {
var i;
(i = O) == null || i.add(o), console.error(o);
}
}
const me = /* @__PURE__ */ o.forwardRef(function(n, s) {
const ge = /* @__PURE__ */ s.forwardRef(function(n, c) {
const {

@@ -75,16 +66,16 @@ context: {

elements: {
floating: r
floating: o
},
middlewareData: {
arrow: l,
shift: u
arrow: i,
shift: a
}
},
width: i = 14,
height: a = 7,
tipRadius: O = 0,
width: l = 14,
height: u = 7,
tipRadius: I = 0,
strokeWidth: d = 0,
staticOffset: g,
stroke: h,
d: c,
d: r,
style: {

@@ -96,16 +87,16 @@ transform: p,

} = n;
process.env.NODE_ENV !== "production" && (s || te("The `ref` prop is required for `FloatingArrow`."));
const E = B(), [C, f] = o.useState(!1);
if (b(() => {
if (!r) return;
Z(r).direction === "rtl" && f(!0);
}, [r]), !r)
process.env.NODE_ENV !== "production" && (c || te("The `ref` prop is required for `FloatingArrow`."));
const C = B(), [E, f] = s.useState(!1);
if (M(() => {
if (!o) return;
Q(o).direction === "rtl" && f(!0);
}, [o]), !o)
return null;
const [m, F] = e.split("-"), M = m === "top" || m === "bottom";
const [m, b] = e.split("-"), j = m === "top" || m === "bottom";
let S = g;
(M && u != null && u.x || !M && u != null && u.y) && (S = null);
const v = d * 2, N = v / 2, A = i / 2 * (O / -8 + 1), T = a / 2 * O / 4, w = !!c, U = S && F === "end" ? "bottom" : "top";
let j = S && F === "end" ? "right" : "left";
S && C && (j = F === "end" ? "left" : "right");
const H = (l == null ? void 0 : l.x) != null ? S || l.x : "", X = (l == null ? void 0 : l.y) != null ? S || l.y : "", y = c || "M0,0" + (" H" + i) + (" L" + (i - A) + "," + (a - T)) + (" Q" + i / 2 + "," + a + " " + A + "," + (a - T)) + " Z", Y = {
(j && a != null && a.x || !j && a != null && a.y) && (S = null);
const v = d * 2, D = v / 2, N = l / 2 * (I / -8 + 1), A = u / 2 * I / 4, w = !!r, U = S && b === "end" ? "bottom" : "top";
let T = S && b === "end" ? "right" : "left";
S && E && (T = b === "end" ? "left" : "right");
const H = (i == null ? void 0 : i.x) != null ? S || i.x : "", X = (i == null ? void 0 : i.y) != null ? S || i.y : "", L = r || "M0,0" + (" H" + l) + (" L" + (l - N) + "," + (u - A)) + (" Q" + l / 2 + "," + u + " " + N + "," + (u - A)) + " Z", Y = {
top: w ? "rotate(180deg)" : "",

@@ -116,34 +107,37 @@ left: w ? "rotate(90deg)" : "rotate(-90deg)",

}[m];
return /* @__PURE__ */ o.createElement("svg", D({}, x, {
return /* @__PURE__ */ F.jsxs("svg", {
...x,
"aria-hidden": !0,
ref: s,
width: w ? i : i + v,
height: i,
viewBox: "0 0 " + i + " " + (a > i ? a : i),
ref: c,
width: w ? l : l + v,
height: l,
viewBox: "0 0 " + l + " " + (u > l ? u : l),
style: {
position: "absolute",
pointerEvents: "none",
[j]: H,
[T]: H,
[U]: X,
[m]: M || w ? "100%" : "calc(100% - " + v / 2 + "px)",
transform: [Y, p].filter((L) => !!L).join(" "),
[m]: j || w ? "100%" : "calc(100% - " + v / 2 + "px)",
transform: [Y, p].filter((V) => !!V).join(" "),
...R
}
}), v > 0 && /* @__PURE__ */ o.createElement("path", {
clipPath: "url(#" + E + ")",
fill: "none",
stroke: h,
strokeWidth: v + (c ? 0 : 1),
d: y
}), /* @__PURE__ */ o.createElement("path", {
stroke: v && !c ? x.fill : "none",
d: y
}), /* @__PURE__ */ o.createElement("clipPath", {
id: E
}, /* @__PURE__ */ o.createElement("rect", {
x: -N,
y: N * (w ? -1 : 1),
width: i + v,
height: i
})));
},
children: [v > 0 && /* @__PURE__ */ F.jsx("path", {
clipPath: "url(#" + C + ")",
fill: "none",
stroke: h,
strokeWidth: v + (r ? 0 : 1),
d: L
}), /* @__PURE__ */ F.jsx("path", {
stroke: v && !r ? x.fill : "none",
d: L
}), /* @__PURE__ */ F.jsx("clipPath", {
id: C,
children: /* @__PURE__ */ F.jsx("rect", {
x: -D,
y: D * (w ? -1 : 1),
width: l + v,
height: l
})
})]
});
});

@@ -153,58 +147,58 @@ function oe() {

return {
emit(n, s) {
emit(n, c) {
var e;
(e = t.get(n)) == null || e.forEach((r) => r(s));
(e = t.get(n)) == null || e.forEach((o) => o(c));
},
on(n, s) {
t.set(n, [...t.get(n) || [], s]);
on(n, c) {
t.set(n, [...t.get(n) || [], c]);
},
off(n, s) {
off(n, c) {
var e;
t.set(n, ((e = t.get(n)) == null ? void 0 : e.filter((r) => r !== s)) || []);
t.set(n, ((e = t.get(n)) == null ? void 0 : e.filter((o) => o !== c)) || []);
}
};
}
const re = /* @__PURE__ */ o.createContext(null), se = /* @__PURE__ */ o.createContext(null), ce = () => {
const re = /* @__PURE__ */ s.createContext(null), se = /* @__PURE__ */ s.createContext(null), ce = () => {
var t;
return ((t = o.useContext(re)) == null ? void 0 : t.id) || null;
}, le = () => o.useContext(se);
function ie(t) {
return ((t = s.useContext(re)) == null ? void 0 : t.id) || null;
}, ie = () => s.useContext(se);
function le(t) {
const {
open: n = !1,
onOpenChange: s,
onOpenChange: c,
elements: e
} = t, r = B(), l = o.useRef({}), [u] = o.useState(() => oe()), i = ce() != null;
} = t, o = B(), i = s.useRef({}), [a] = s.useState(() => oe()), l = ce() != null;
if (process.env.NODE_ENV !== "production") {
const c = e.reference;
c && !I(c) && ne("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
const r = e.reference;
r && !P(r) && ne("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
}
const [a, O] = o.useState(e.reference), d = K((c, p, R) => {
l.current.openEvent = c ? p : void 0, u.emit("openchange", {
open: c,
const [u, I] = s.useState(e.reference), d = J((r, p, R) => {
i.current.openEvent = r ? p : void 0, a.emit("openchange", {
open: r,
event: p,
reason: R,
nested: i
}), s == null || s(c, p, R);
}), g = o.useMemo(() => ({
setPositionReference: O
}), []), h = o.useMemo(() => ({
reference: a || e.reference || null,
nested: l
}), c == null || c(r, p, R);
}), g = s.useMemo(() => ({
setPositionReference: I
}), []), h = s.useMemo(() => ({
reference: u || e.reference || null,
floating: e.floating || null,
domReference: e.reference
}), [a, e.reference, e.floating]);
return o.useMemo(() => ({
dataRef: l,
}), [u, e.reference, e.floating]);
return s.useMemo(() => ({
dataRef: i,
open: n,
onOpenChange: d,
elements: h,
events: u,
floatingId: r,
events: a,
floatingId: o,
refs: g
}), [n, d, h, u, r, g]);
}), [n, d, h, a, o, g]);
}
function ge(t) {
function pe(t) {
t === void 0 && (t = {});
const {
nodeId: n
} = t, s = ie({
} = t, c = le({
...t,

@@ -216,65 +210,65 @@ elements: {

}
}), e = t.rootContext || s, r = e.elements, [l, u] = o.useState(null), [i, a] = o.useState(null), d = (r == null ? void 0 : r.domReference) || l, g = o.useRef(null), h = le();
b(() => {
}), e = t.rootContext || c, o = e.elements, [i, a] = s.useState(null), [l, u] = s.useState(null), d = (o == null ? void 0 : o.domReference) || i, g = s.useRef(null), h = ie();
M(() => {
d && (g.current = d);
}, [d]);
const c = z({
const r = Z({
...t,
elements: {
...r,
...i && {
reference: i
...o,
...l && {
reference: l
}
}
}), p = o.useCallback((f) => {
const m = I(f) ? {
}), p = s.useCallback((f) => {
const m = P(f) ? {
getBoundingClientRect: () => f.getBoundingClientRect(),
contextElement: f
} : f;
a(m), c.refs.setReference(m);
}, [c.refs]), R = o.useCallback((f) => {
(I(f) || f === null) && (g.current = f, u(f)), (I(c.refs.reference.current) || c.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
u(m), r.refs.setReference(m);
}, [r.refs]), R = s.useCallback((f) => {
(P(f) || f === null) && (g.current = f, a(f)), (P(r.refs.reference.current) || r.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
// `null` to support `positionReference` + an unstable `reference`
// callback ref.
f !== null && !I(f)) && c.refs.setReference(f);
}, [c.refs]), x = o.useMemo(() => ({
...c.refs,
f !== null && !P(f)) && r.refs.setReference(f);
}, [r.refs]), x = s.useMemo(() => ({
...r.refs,
setReference: R,
setPositionReference: p,
domReference: g
}), [c.refs, R, p]), E = o.useMemo(() => ({
...c.elements,
}), [r.refs, R, p]), C = s.useMemo(() => ({
...r.elements,
domReference: d
}), [c.elements, d]), C = o.useMemo(() => ({
...c,
}), [r.elements, d]), E = s.useMemo(() => ({
...r,
...e,
refs: x,
elements: E,
elements: C,
nodeId: n
}), [c, x, E, n, e]);
return b(() => {
e.dataRef.current.floatingContext = C;
}), [r, x, C, n, e]);
return M(() => {
e.dataRef.current.floatingContext = E;
const f = h == null ? void 0 : h.nodesRef.current.find((m) => m.id === n);
f && (f.context = C);
}), o.useMemo(() => ({
...c,
context: C,
f && (f.context = E);
}), s.useMemo(() => ({
...r,
context: E,
refs: x,
elements: E
}), [c, x, E, C]);
elements: C
}), [r, x, C, E]);
}
export {
me as FloatingArrow,
Ee as arrow,
ve as flip,
Re as getOverflowAncestors,
we as inline,
Ce as offset,
Se as shift,
ge as useFloating,
ge as FloatingArrow,
ve as arrow,
we as flip,
xe as getOverflowAncestors,
Ee as inline,
Se as offset,
Ie as shift,
pe as useFloating,
ce as useFloatingParentNodeId,
ie as useFloatingRootContext,
le as useFloatingTree,
le as useFloatingRootContext,
ie as useFloatingTree,
B as useId
};
//# sourceMappingURL=annotorious-react.es13.js.map

@@ -1,4 +0,4 @@

import { offset as ot, shift as st, flip as rt, inline as ct, arrow as lt, computePosition as ft } from "./annotorious-react.es28.js";
import { createCoords as m, rectToClientRect as J, round as H, floor as A, max as E, min as z } from "./annotorious-react.es27.js";
import { getOverflowAncestors as $, isElement as v, getWindow as L, getFrameElement as K, getComputedStyle as R, getDocumentElement as O, isHTMLElement as b, isWebKit as Q, isTopLayer as M, getNodeName as S, isOverflowElement as _, getNodeScroll as I, getParentNode as W, isLastTraversableNode as N, isTableElement as ut, isContainingBlock as Y, getContainingBlock as ht } from "./annotorious-react.es21.js";
import { offset as ot, shift as st, flip as rt, inline as ct, arrow as lt, computePosition as ft } from "./annotorious-react.es29.js";
import { createCoords as m, rectToClientRect as J, round as H, floor as A, max as E, min as z } from "./annotorious-react.es28.js";
import { getOverflowAncestors as $, isElement as v, getWindow as L, getFrameElement as K, getComputedStyle as R, getDocumentElement as O, isHTMLElement as b, isWebKit as Q, isTopLayer as M, getNodeName as S, isOverflowElement as _, getNodeScroll as I, getParentNode as W, isLastTraversableNode as N, isTableElement as ut, isContainingBlock as Y, getContainingBlock as ht } from "./annotorious-react.es22.js";
function Z(t) {

@@ -5,0 +5,0 @@ const e = R(t);

@@ -1,4 +0,4 @@

import n from "./annotorious-react.es25.js";
import m from "./annotorious-react.es26.js";
import { unsafeStringify as t } from "./annotorious-react.es24.js";
import n from "./annotorious-react.es26.js";
import m from "./annotorious-react.es27.js";
import { unsafeStringify as t } from "./annotorious-react.es25.js";
function x(r, e, a) {

@@ -5,0 +5,0 @@ if (n.randomUUID && !r)

@@ -1,5 +0,11 @@

var e = { exports: {} };
import { __module as e } from "./annotorious-react.es19.js";
import { __require as t } from "./annotorious-react.es20.js";
import { __require as i } from "./annotorious-react.es21.js";
var r;
function m() {
return r ? e.exports : (r = 1, process.env.NODE_ENV === "production" ? e.exports = t() : e.exports = i(), e.exports);
}
export {
e as __module
m as __require
};
//# sourceMappingURL=annotorious-react.es18.js.map

@@ -1,36 +0,5 @@

import { __exports as t } from "./annotorious-react.es22.js";
/**
* @license React
* react-jsx-runtime.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var i;
function R() {
if (i) return t;
i = 1;
var d = Symbol.for("react.transitional.element"), o = Symbol.for("react.fragment");
function s(_, r, e) {
var n = null;
if (e !== void 0 && (n = "" + e), r.key !== void 0 && (n = "" + r.key), "key" in r) {
e = {};
for (var u in r)
u !== "key" && (e[u] = r[u]);
} else e = r;
return r = e.ref, {
$$typeof: d,
type: _,
key: n,
ref: r !== void 0 ? r : null,
props: e
};
}
return t.Fragment = o, t.jsx = s, t.jsxs = s, t;
}
var e = { exports: {} };
export {
R as __require
e as __module
};
//# sourceMappingURL=annotorious-react.es19.js.map

@@ -1,6 +0,5 @@

import { __exports as _ } from "./annotorious-react.es23.js";
import we from "react";
import { __exports as t } from "./annotorious-react.es23.js";
/**
* @license React
* react-jsx-runtime.development.js
* react-jsx-runtime.production.js
*

@@ -12,399 +11,27 @@ * Copyright (c) Meta Platforms, Inc. and affiliates.

*/
var ue;
function he() {
return ue ? _ : (ue = 1, process.env.NODE_ENV !== "production" && function() {
function s(e) {
if (e == null) return null;
if (typeof e == "function")
return e.$$typeof === me ? null : e.displayName || e.name || null;
if (typeof e == "string") return e;
switch (e) {
case j:
return "Fragment";
case ge:
return "Portal";
case K:
return "Profiler";
case H:
return "StrictMode";
case A:
return "Suspense";
case R:
return "SuspenseList";
}
if (typeof e == "object")
switch (typeof e.tag == "number" && console.error(
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
), e.$$typeof) {
case q:
return (e.displayName || "Context") + ".Provider";
case X:
return (e._context.displayName || "Context") + ".Consumer";
case S:
var r = e.render;
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
case k:
return r = e.displayName || null, r !== null ? r : s(e.type) || "Memo";
case p:
r = e._payload, e = e._init;
try {
return s(e(r));
} catch {
}
}
return null;
}
function M(e) {
return "" + e;
}
function W(e) {
try {
M(e);
var r = !1;
} catch {
r = !0;
}
if (r) {
r = console;
var t = r.error, n = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
return t.call(
r,
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
n
), M(e);
}
}
function $() {
}
function le() {
if (v === 0) {
Z = console.log, F = console.info, I = console.warn, L = console.error, Q = console.group, D = console.groupCollapsed, ee = console.groupEnd;
var e = {
configurable: !0,
enumerable: !0,
value: $,
writable: !0
};
Object.defineProperties(console, {
info: e,
log: e,
warn: e,
error: e,
group: e,
groupCollapsed: e,
groupEnd: e
});
}
v++;
}
function fe() {
if (v--, v === 0) {
var e = { configurable: !0, enumerable: !0, writable: !0 };
Object.defineProperties(console, {
log: E({}, e, { value: Z }),
info: E({}, e, { value: F }),
warn: E({}, e, { value: I }),
error: E({}, e, { value: L }),
group: E({}, e, { value: Q }),
groupCollapsed: E({}, e, { value: D }),
groupEnd: E({}, e, { value: ee })
});
}
0 > v && console.error(
"disabledDepth fell below zero. This is a bug in React. Please file an issue."
);
}
function y(e) {
if (x === void 0)
try {
throw Error();
} catch (t) {
var r = t.stack.trim().match(/\n( *(at )?)/);
x = r && r[1] || "", re = -1 < t.stack.indexOf(`
at`) ? " (<anonymous>)" : -1 < t.stack.indexOf("@") ? "@unknown:0:0" : "";
}
return `
` + x + e + re;
}
function U(e, r) {
if (!e || P) return "";
var t = Y.get(e);
if (t !== void 0) return t;
P = !0, t = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
var n = null;
n = d.H, d.H = null, le();
try {
var u = {
DetermineComponentFrameRoot: function() {
try {
if (r) {
var i = function() {
throw Error();
};
if (Object.defineProperty(i.prototype, "props", {
set: function() {
throw Error();
}
}), typeof Reflect == "object" && Reflect.construct) {
try {
Reflect.construct(i, []);
} catch (c) {
var w = c;
}
Reflect.construct(e, [], i);
} else {
try {
i.call();
} catch (c) {
w = c;
}
e.call(i.prototype);
}
} else {
try {
throw Error();
} catch (c) {
w = c;
}
(i = e()) && typeof i.catch == "function" && i.catch(function() {
});
}
} catch (c) {
if (c && w && typeof c.stack == "string")
return [c.stack, w.stack];
}
return [null, null];
}
};
u.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
var a = Object.getOwnPropertyDescriptor(
u.DetermineComponentFrameRoot,
"name"
);
a && a.configurable && Object.defineProperty(
u.DetermineComponentFrameRoot,
"name",
{ value: "DetermineComponentFrameRoot" }
);
var o = u.DetermineComponentFrameRoot(), f = o[0], g = o[1];
if (f && g) {
var l = f.split(`
`), b = g.split(`
`);
for (o = a = 0; a < l.length && !l[a].includes(
"DetermineComponentFrameRoot"
); )
a++;
for (; o < b.length && !b[o].includes(
"DetermineComponentFrameRoot"
); )
o++;
if (a === l.length || o === b.length)
for (a = l.length - 1, o = b.length - 1; 1 <= a && 0 <= o && l[a] !== b[o]; )
o--;
for (; 1 <= a && 0 <= o; a--, o--)
if (l[a] !== b[o]) {
if (a !== 1 || o !== 1)
do
if (a--, o--, 0 > o || l[a] !== b[o]) {
var m = `
` + l[a].replace(
" at new ",
" at "
);
return e.displayName && m.includes("<anonymous>") && (m = m.replace("<anonymous>", e.displayName)), typeof e == "function" && Y.set(e, m), m;
}
while (1 <= a && 0 <= o);
break;
}
}
} finally {
P = !1, d.H = n, fe(), Error.prepareStackTrace = t;
}
return l = (l = e ? e.displayName || e.name : "") ? y(l) : "", typeof e == "function" && Y.set(e, l), l;
}
function T(e) {
if (e == null) return "";
if (typeof e == "function") {
var r = e.prototype;
return U(
e,
!(!r || !r.isReactComponent)
);
}
if (typeof e == "string") return y(e);
switch (e) {
case A:
return y("Suspense");
case R:
return y("SuspenseList");
}
if (typeof e == "object")
switch (e.$$typeof) {
case S:
return e = U(e.render, !1), e;
case k:
return T(e.type);
case p:
r = e._payload, e = e._init;
try {
return T(e(r));
} catch {
}
}
return "";
}
function C() {
var e = d.A;
return e === null ? null : e.getOwner();
}
function ce(e) {
if (J.call(e, "key")) {
var r = Object.getOwnPropertyDescriptor(e, "key").get;
if (r && r.isReactWarning) return !1;
}
return e.key !== void 0;
}
function se(e, r) {
function t() {
te || (te = !0, console.error(
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
r
));
}
t.isReactWarning = !0, Object.defineProperty(e, "key", {
get: t,
configurable: !0
});
}
function ie() {
var e = s(this.type);
return oe[e] || (oe[e] = !0, console.error(
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
)), e = this.props.ref, e !== void 0 ? e : null;
}
function de(e, r, t, n, u, a) {
return t = a.ref, e = {
$$typeof: O,
type: e,
key: r,
props: a,
_owner: u
}, (t !== void 0 ? t : null) !== null ? Object.defineProperty(e, "ref", {
enumerable: !1,
get: ie
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
configurable: !1,
enumerable: !1,
writable: !0,
value: 0
}), Object.defineProperty(e, "_debugInfo", {
configurable: !1,
enumerable: !1,
writable: !0,
value: null
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
}
function z(e, r, t, n, u, a) {
if (typeof e == "string" || typeof e == "function" || e === j || e === K || e === H || e === A || e === R || e === ve || typeof e == "object" && e !== null && (e.$$typeof === p || e.$$typeof === k || e.$$typeof === q || e.$$typeof === X || e.$$typeof === S || e.$$typeof === _e || e.getModuleId !== void 0)) {
var o = r.children;
if (o !== void 0)
if (n)
if (N(o)) {
for (n = 0; n < o.length; n++)
V(o[n], e);
Object.freeze && Object.freeze(o);
} else
console.error(
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
);
else V(o, e);
} else
o = "", (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), e === null ? n = "null" : N(e) ? n = "array" : e !== void 0 && e.$$typeof === O ? (n = "<" + (s(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : n = typeof e, console.error(
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
n,
o
);
if (J.call(r, "key")) {
o = s(e);
var f = Object.keys(r).filter(function(l) {
return l !== "key";
});
n = 0 < f.length ? "{key: someKey, " + f.join(": ..., ") + ": ...}" : "{key: someKey}", ne[o + n] || (f = 0 < f.length ? "{" + f.join(": ..., ") + ": ...}" : "{}", console.error(
`A props object containing a "key" prop is being spread into JSX:
let props = %s;
<%s {...props} />
React keys must be passed directly to JSX without using spread:
let props = %s;
<%s key={someKey} {...props} />`,
n,
o,
f,
o
), ne[o + n] = !0);
}
if (o = null, t !== void 0 && (W(t), o = "" + t), ce(r) && (W(r.key), o = "" + r.key), "key" in r) {
t = {};
for (var g in r)
g !== "key" && (t[g] = r[g]);
} else t = r;
return o && se(
t,
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
), de(e, o, a, u, C(), t);
}
function V(e, r) {
if (typeof e == "object" && e && e.$$typeof !== ye) {
if (N(e))
for (var t = 0; t < e.length; t++) {
var n = e[t];
h(n) && G(n, r);
}
else if (h(e))
e._store && (e._store.validated = 1);
else if (e === null || typeof e != "object" ? t = null : (t = B && e[B] || e["@@iterator"], t = typeof t == "function" ? t : null), typeof t == "function" && t !== e.entries && (t = t.call(e), t !== e))
for (; !(e = t.next()).done; )
h(e.value) && G(e.value, r);
}
}
function h(e) {
return typeof e == "object" && e !== null && e.$$typeof === O;
}
function G(e, r) {
if (e._store && !e._store.validated && e.key == null && (e._store.validated = 1, r = Ee(r), !ae[r])) {
ae[r] = !0;
var t = "";
e && e._owner != null && e._owner !== C() && (t = null, typeof e._owner.tag == "number" ? t = s(e._owner.type) : typeof e._owner.name == "string" && (t = e._owner.name), t = " It was passed a child from " + t + ".");
var n = d.getCurrentStack;
d.getCurrentStack = function() {
var u = T(e.type);
return n && (u += n() || ""), u;
}, console.error(
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
r,
t
), d.getCurrentStack = n;
}
}
function Ee(e) {
var r = "", t = C();
return t && (t = s(t.type)) && (r = `
Check the render method of \`` + t + "`."), r || (e = s(e)) && (r = `
Check the top-level render call using <` + e + ">."), r;
}
var be = we, O = Symbol.for("react.transitional.element"), ge = Symbol.for("react.portal"), j = Symbol.for("react.fragment"), H = Symbol.for("react.strict_mode"), K = Symbol.for("react.profiler"), X = Symbol.for("react.consumer"), q = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), A = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), ve = Symbol.for("react.offscreen"), B = Symbol.iterator, me = Symbol.for("react.client.reference"), d = be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, J = Object.prototype.hasOwnProperty, E = Object.assign, _e = Symbol.for("react.client.reference"), N = Array.isArray, v = 0, Z, F, I, L, Q, D, ee;
$.__reactDisabledLog = !0;
var x, re, P = !1, Y = new (typeof WeakMap == "function" ? WeakMap : Map)(), ye = Symbol.for("react.client.reference"), te, oe = {}, ne = {}, ae = {};
_.Fragment = j, _.jsx = function(e, r, t, n, u) {
return z(e, r, t, !1, n, u);
}, _.jsxs = function(e, r, t, n, u) {
return z(e, r, t, !0, n, u);
var i;
function R() {
if (i) return t;
i = 1;
var d = Symbol.for("react.transitional.element"), o = Symbol.for("react.fragment");
function s(_, r, e) {
var n = null;
if (e !== void 0 && (n = "" + e), r.key !== void 0 && (n = "" + r.key), "key" in r) {
e = {};
for (var u in r)
u !== "key" && (e[u] = r[u]);
} else e = r;
return r = e.ref, {
$$typeof: d,
type: _,
key: n,
ref: r !== void 0 ? r : null,
props: e
};
}(), _);
}
return t.Fragment = o, t.jsx = s, t.jsxs = s, t;
}
export {
he as __require
R as __require
};
//# sourceMappingURL=annotorious-react.es20.js.map

@@ -1,132 +0,409 @@

function c() {
return typeof window < "u";
}
function f(n) {
return p(n) ? (n.nodeName || "").toLowerCase() : "#document";
}
function i(n) {
var e;
return (n == null || (e = n.ownerDocument) == null ? void 0 : e.defaultView) || window;
}
function E(n) {
var e;
return (e = (p(n) ? n.ownerDocument : n.document) || window.document) == null ? void 0 : e.documentElement;
}
function p(n) {
return c() ? n instanceof Node || n instanceof i(n).Node : !1;
}
function m(n) {
return c() ? n instanceof Element || n instanceof i(n).Element : !1;
}
function w(n) {
return c() ? n instanceof HTMLElement || n instanceof i(n).HTMLElement : !1;
}
function a(n) {
return !c() || typeof ShadowRoot > "u" ? !1 : n instanceof ShadowRoot || n instanceof i(n).ShadowRoot;
}
function y(n) {
const {
overflow: e,
overflowX: t,
overflowY: o,
display: r
} = b(n);
return /auto|scroll|overlay|hidden|clip/.test(e + o + t) && !["inline", "contents"].includes(r);
}
function k(n) {
return ["table", "td", "th"].includes(f(n));
}
function N(n) {
return [":popover-open", ":modal"].some((e) => {
try {
return n.matches(e);
} catch {
return !1;
import { __exports as _ } from "./annotorious-react.es24.js";
import we from "react";
/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var ue;
function he() {
return ue ? _ : (ue = 1, process.env.NODE_ENV !== "production" && function() {
function s(e) {
if (e == null) return null;
if (typeof e == "function")
return e.$$typeof === me ? null : e.displayName || e.name || null;
if (typeof e == "string") return e;
switch (e) {
case j:
return "Fragment";
case ge:
return "Portal";
case K:
return "Profiler";
case H:
return "StrictMode";
case A:
return "Suspense";
case R:
return "SuspenseList";
}
if (typeof e == "object")
switch (typeof e.tag == "number" && console.error(
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
), e.$$typeof) {
case q:
return (e.displayName || "Context") + ".Provider";
case X:
return (e._context.displayName || "Context") + ".Consumer";
case S:
var r = e.render;
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
case k:
return r = e.displayName || null, r !== null ? r : s(e.type) || "Memo";
case p:
r = e._payload, e = e._init;
try {
return s(e(r));
} catch {
}
}
return null;
}
});
function M(e) {
return "" + e;
}
function W(e) {
try {
M(e);
var r = !1;
} catch {
r = !0;
}
if (r) {
r = console;
var t = r.error, n = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
return t.call(
r,
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
n
), M(e);
}
}
function $() {
}
function le() {
if (v === 0) {
Z = console.log, F = console.info, I = console.warn, L = console.error, Q = console.group, D = console.groupCollapsed, ee = console.groupEnd;
var e = {
configurable: !0,
enumerable: !0,
value: $,
writable: !0
};
Object.defineProperties(console, {
info: e,
log: e,
warn: e,
error: e,
group: e,
groupCollapsed: e,
groupEnd: e
});
}
v++;
}
function fe() {
if (v--, v === 0) {
var e = { configurable: !0, enumerable: !0, writable: !0 };
Object.defineProperties(console, {
log: E({}, e, { value: Z }),
info: E({}, e, { value: F }),
warn: E({}, e, { value: I }),
error: E({}, e, { value: L }),
group: E({}, e, { value: Q }),
groupCollapsed: E({}, e, { value: D }),
groupEnd: E({}, e, { value: ee })
});
}
0 > v && console.error(
"disabledDepth fell below zero. This is a bug in React. Please file an issue."
);
}
function y(e) {
if (x === void 0)
try {
throw Error();
} catch (t) {
var r = t.stack.trim().match(/\n( *(at )?)/);
x = r && r[1] || "", re = -1 < t.stack.indexOf(`
at`) ? " (<anonymous>)" : -1 < t.stack.indexOf("@") ? "@unknown:0:0" : "";
}
return `
` + x + e + re;
}
function U(e, r) {
if (!e || P) return "";
var t = Y.get(e);
if (t !== void 0) return t;
P = !0, t = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
var n = null;
n = d.H, d.H = null, le();
try {
var u = {
DetermineComponentFrameRoot: function() {
try {
if (r) {
var i = function() {
throw Error();
};
if (Object.defineProperty(i.prototype, "props", {
set: function() {
throw Error();
}
}), typeof Reflect == "object" && Reflect.construct) {
try {
Reflect.construct(i, []);
} catch (c) {
var w = c;
}
Reflect.construct(e, [], i);
} else {
try {
i.call();
} catch (c) {
w = c;
}
e.call(i.prototype);
}
} else {
try {
throw Error();
} catch (c) {
w = c;
}
(i = e()) && typeof i.catch == "function" && i.catch(function() {
});
}
} catch (c) {
if (c && w && typeof c.stack == "string")
return [c.stack, w.stack];
}
return [null, null];
}
};
u.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
var a = Object.getOwnPropertyDescriptor(
u.DetermineComponentFrameRoot,
"name"
);
a && a.configurable && Object.defineProperty(
u.DetermineComponentFrameRoot,
"name",
{ value: "DetermineComponentFrameRoot" }
);
var o = u.DetermineComponentFrameRoot(), f = o[0], g = o[1];
if (f && g) {
var l = f.split(`
`), b = g.split(`
`);
for (o = a = 0; a < l.length && !l[a].includes(
"DetermineComponentFrameRoot"
); )
a++;
for (; o < b.length && !b[o].includes(
"DetermineComponentFrameRoot"
); )
o++;
if (a === l.length || o === b.length)
for (a = l.length - 1, o = b.length - 1; 1 <= a && 0 <= o && l[a] !== b[o]; )
o--;
for (; 1 <= a && 0 <= o; a--, o--)
if (l[a] !== b[o]) {
if (a !== 1 || o !== 1)
do
if (a--, o--, 0 > o || l[a] !== b[o]) {
var m = `
` + l[a].replace(
" at new ",
" at "
);
return e.displayName && m.includes("<anonymous>") && (m = m.replace("<anonymous>", e.displayName)), typeof e == "function" && Y.set(e, m), m;
}
while (1 <= a && 0 <= o);
break;
}
}
} finally {
P = !1, d.H = n, fe(), Error.prepareStackTrace = t;
}
return l = (l = e ? e.displayName || e.name : "") ? y(l) : "", typeof e == "function" && Y.set(e, l), l;
}
function T(e) {
if (e == null) return "";
if (typeof e == "function") {
var r = e.prototype;
return U(
e,
!(!r || !r.isReactComponent)
);
}
if (typeof e == "string") return y(e);
switch (e) {
case A:
return y("Suspense");
case R:
return y("SuspenseList");
}
if (typeof e == "object")
switch (e.$$typeof) {
case S:
return e = U(e.render, !1), e;
case k:
return T(e.type);
case p:
r = e._payload, e = e._init;
try {
return T(e(r));
} catch {
}
}
return "";
}
function C() {
var e = d.A;
return e === null ? null : e.getOwner();
}
function ce(e) {
if (J.call(e, "key")) {
var r = Object.getOwnPropertyDescriptor(e, "key").get;
if (r && r.isReactWarning) return !1;
}
return e.key !== void 0;
}
function se(e, r) {
function t() {
te || (te = !0, console.error(
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
r
));
}
t.isReactWarning = !0, Object.defineProperty(e, "key", {
get: t,
configurable: !0
});
}
function ie() {
var e = s(this.type);
return oe[e] || (oe[e] = !0, console.error(
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
)), e = this.props.ref, e !== void 0 ? e : null;
}
function de(e, r, t, n, u, a) {
return t = a.ref, e = {
$$typeof: O,
type: e,
key: r,
props: a,
_owner: u
}, (t !== void 0 ? t : null) !== null ? Object.defineProperty(e, "ref", {
enumerable: !1,
get: ie
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
configurable: !1,
enumerable: !1,
writable: !0,
value: 0
}), Object.defineProperty(e, "_debugInfo", {
configurable: !1,
enumerable: !1,
writable: !0,
value: null
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
}
function z(e, r, t, n, u, a) {
if (typeof e == "string" || typeof e == "function" || e === j || e === K || e === H || e === A || e === R || e === ve || typeof e == "object" && e !== null && (e.$$typeof === p || e.$$typeof === k || e.$$typeof === q || e.$$typeof === X || e.$$typeof === S || e.$$typeof === _e || e.getModuleId !== void 0)) {
var o = r.children;
if (o !== void 0)
if (n)
if (N(o)) {
for (n = 0; n < o.length; n++)
V(o[n], e);
Object.freeze && Object.freeze(o);
} else
console.error(
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
);
else V(o, e);
} else
o = "", (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), e === null ? n = "null" : N(e) ? n = "array" : e !== void 0 && e.$$typeof === O ? (n = "<" + (s(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : n = typeof e, console.error(
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
n,
o
);
if (J.call(r, "key")) {
o = s(e);
var f = Object.keys(r).filter(function(l) {
return l !== "key";
});
n = 0 < f.length ? "{key: someKey, " + f.join(": ..., ") + ": ...}" : "{key: someKey}", ne[o + n] || (f = 0 < f.length ? "{" + f.join(": ..., ") + ": ...}" : "{}", console.error(
`A props object containing a "key" prop is being spread into JSX:
let props = %s;
<%s {...props} />
React keys must be passed directly to JSX without using spread:
let props = %s;
<%s key={someKey} {...props} />`,
n,
o,
f,
o
), ne[o + n] = !0);
}
if (o = null, t !== void 0 && (W(t), o = "" + t), ce(r) && (W(r.key), o = "" + r.key), "key" in r) {
t = {};
for (var g in r)
g !== "key" && (t[g] = r[g]);
} else t = r;
return o && se(
t,
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
), de(e, o, a, u, C(), t);
}
function V(e, r) {
if (typeof e == "object" && e && e.$$typeof !== ye) {
if (N(e))
for (var t = 0; t < e.length; t++) {
var n = e[t];
h(n) && G(n, r);
}
else if (h(e))
e._store && (e._store.validated = 1);
else if (e === null || typeof e != "object" ? t = null : (t = B && e[B] || e["@@iterator"], t = typeof t == "function" ? t : null), typeof t == "function" && t !== e.entries && (t = t.call(e), t !== e))
for (; !(e = t.next()).done; )
h(e.value) && G(e.value, r);
}
}
function h(e) {
return typeof e == "object" && e !== null && e.$$typeof === O;
}
function G(e, r) {
if (e._store && !e._store.validated && e.key == null && (e._store.validated = 1, r = Ee(r), !ae[r])) {
ae[r] = !0;
var t = "";
e && e._owner != null && e._owner !== C() && (t = null, typeof e._owner.tag == "number" ? t = s(e._owner.type) : typeof e._owner.name == "string" && (t = e._owner.name), t = " It was passed a child from " + t + ".");
var n = d.getCurrentStack;
d.getCurrentStack = function() {
var u = T(e.type);
return n && (u += n() || ""), u;
}, console.error(
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
r,
t
), d.getCurrentStack = n;
}
}
function Ee(e) {
var r = "", t = C();
return t && (t = s(t.type)) && (r = `
Check the render method of \`` + t + "`."), r || (e = s(e)) && (r = `
Check the top-level render call using <` + e + ">."), r;
}
var be = we, O = Symbol.for("react.transitional.element"), ge = Symbol.for("react.portal"), j = Symbol.for("react.fragment"), H = Symbol.for("react.strict_mode"), K = Symbol.for("react.profiler"), X = Symbol.for("react.consumer"), q = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), A = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), ve = Symbol.for("react.offscreen"), B = Symbol.iterator, me = Symbol.for("react.client.reference"), d = be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, J = Object.prototype.hasOwnProperty, E = Object.assign, _e = Symbol.for("react.client.reference"), N = Array.isArray, v = 0, Z, F, I, L, Q, D, ee;
$.__reactDisabledLog = !0;
var x, re, P = !1, Y = new (typeof WeakMap == "function" ? WeakMap : Map)(), ye = Symbol.for("react.client.reference"), te, oe = {}, ne = {}, ae = {};
_.Fragment = j, _.jsx = function(e, r, t, n, u) {
return z(e, r, t, !1, n, u);
}, _.jsxs = function(e, r, t, n, u) {
return z(e, r, t, !0, n, u);
};
}(), _);
}
function T(n) {
const e = L(), t = m(n) ? b(n) : n;
return ["transform", "translate", "scale", "rotate", "perspective"].some((o) => t[o] ? t[o] !== "none" : !1) || (t.containerType ? t.containerType !== "normal" : !1) || !e && (t.backdropFilter ? t.backdropFilter !== "none" : !1) || !e && (t.filter ? t.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((o) => (t.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (t.contain || "").includes(o));
}
function C(n) {
let e = l(n);
for (; w(e) && !g(e); ) {
if (T(e))
return e;
if (N(e))
return null;
e = l(e);
}
return null;
}
function L() {
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
}
function g(n) {
return ["html", "body", "#document"].includes(f(n));
}
function b(n) {
return i(n).getComputedStyle(n);
}
function R(n) {
return m(n) ? {
scrollLeft: n.scrollLeft,
scrollTop: n.scrollTop
} : {
scrollLeft: n.scrollX,
scrollTop: n.scrollY
};
}
function l(n) {
if (f(n) === "html")
return n;
const e = (
// Step into the shadow DOM of the parent of a slotted node.
n.assignedSlot || // DOM Element detected.
n.parentNode || // ShadowRoot detected.
a(n) && n.host || // Fallback.
E(n)
);
return a(e) ? e.host : e;
}
function h(n) {
const e = l(n);
return g(e) ? n.ownerDocument ? n.ownerDocument.body : n.body : w(e) && y(e) ? e : h(e);
}
function d(n, e, t) {
var o;
e === void 0 && (e = []), t === void 0 && (t = !0);
const r = h(n), S = r === ((o = n.ownerDocument) == null ? void 0 : o.body), u = i(r);
if (S) {
const s = D(u);
return e.concat(u, u.visualViewport || [], y(r) ? r : [], s && t ? d(s) : []);
}
return e.concat(r, d(r, [], t));
}
function D(n) {
return n.parent && Object.getPrototypeOf(n.parent) ? n.frameElement : null;
}
export {
b as getComputedStyle,
C as getContainingBlock,
E as getDocumentElement,
D as getFrameElement,
h as getNearestOverflowAncestor,
f as getNodeName,
R as getNodeScroll,
d as getOverflowAncestors,
l as getParentNode,
i as getWindow,
T as isContainingBlock,
m as isElement,
w as isHTMLElement,
g as isLastTraversableNode,
p as isNode,
y as isOverflowElement,
a as isShadowRoot,
k as isTableElement,
N as isTopLayer,
L as isWebKit
he as __require
};
//# sourceMappingURL=annotorious-react.es21.js.map

@@ -1,5 +0,132 @@

var r = {};
function c() {
return typeof window < "u";
}
function f(n) {
return p(n) ? (n.nodeName || "").toLowerCase() : "#document";
}
function i(n) {
var e;
return (n == null || (e = n.ownerDocument) == null ? void 0 : e.defaultView) || window;
}
function E(n) {
var e;
return (e = (p(n) ? n.ownerDocument : n.document) || window.document) == null ? void 0 : e.documentElement;
}
function p(n) {
return c() ? n instanceof Node || n instanceof i(n).Node : !1;
}
function m(n) {
return c() ? n instanceof Element || n instanceof i(n).Element : !1;
}
function w(n) {
return c() ? n instanceof HTMLElement || n instanceof i(n).HTMLElement : !1;
}
function a(n) {
return !c() || typeof ShadowRoot > "u" ? !1 : n instanceof ShadowRoot || n instanceof i(n).ShadowRoot;
}
function y(n) {
const {
overflow: e,
overflowX: t,
overflowY: o,
display: r
} = b(n);
return /auto|scroll|overlay|hidden|clip/.test(e + o + t) && !["inline", "contents"].includes(r);
}
function k(n) {
return ["table", "td", "th"].includes(f(n));
}
function N(n) {
return [":popover-open", ":modal"].some((e) => {
try {
return n.matches(e);
} catch {
return !1;
}
});
}
function T(n) {
const e = L(), t = m(n) ? b(n) : n;
return ["transform", "translate", "scale", "rotate", "perspective"].some((o) => t[o] ? t[o] !== "none" : !1) || (t.containerType ? t.containerType !== "normal" : !1) || !e && (t.backdropFilter ? t.backdropFilter !== "none" : !1) || !e && (t.filter ? t.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((o) => (t.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (t.contain || "").includes(o));
}
function C(n) {
let e = l(n);
for (; w(e) && !g(e); ) {
if (T(e))
return e;
if (N(e))
return null;
e = l(e);
}
return null;
}
function L() {
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
}
function g(n) {
return ["html", "body", "#document"].includes(f(n));
}
function b(n) {
return i(n).getComputedStyle(n);
}
function R(n) {
return m(n) ? {
scrollLeft: n.scrollLeft,
scrollTop: n.scrollTop
} : {
scrollLeft: n.scrollX,
scrollTop: n.scrollY
};
}
function l(n) {
if (f(n) === "html")
return n;
const e = (
// Step into the shadow DOM of the parent of a slotted node.
n.assignedSlot || // DOM Element detected.
n.parentNode || // ShadowRoot detected.
a(n) && n.host || // Fallback.
E(n)
);
return a(e) ? e.host : e;
}
function h(n) {
const e = l(n);
return g(e) ? n.ownerDocument ? n.ownerDocument.body : n.body : w(e) && y(e) ? e : h(e);
}
function d(n, e, t) {
var o;
e === void 0 && (e = []), t === void 0 && (t = !0);
const r = h(n), S = r === ((o = n.ownerDocument) == null ? void 0 : o.body), u = i(r);
if (S) {
const s = D(u);
return e.concat(u, u.visualViewport || [], y(r) ? r : [], s && t ? d(s) : []);
}
return e.concat(r, d(r, [], t));
}
function D(n) {
return n.parent && Object.getPrototypeOf(n.parent) ? n.frameElement : null;
}
export {
r as __exports
b as getComputedStyle,
C as getContainingBlock,
E as getDocumentElement,
D as getFrameElement,
h as getNearestOverflowAncestor,
f as getNodeName,
R as getNodeScroll,
d as getOverflowAncestors,
l as getParentNode,
i as getWindow,
T as isContainingBlock,
m as isElement,
w as isHTMLElement,
g as isLastTraversableNode,
p as isNode,
y as isOverflowElement,
a as isShadowRoot,
k as isTableElement,
N as isTopLayer,
L as isWebKit
};
//# sourceMappingURL=annotorious-react.es22.js.map

@@ -1,5 +0,5 @@

var e = {};
var r = {};
export {
e as __exports
r as __exports
};
//# sourceMappingURL=annotorious-react.es23.js.map

@@ -1,10 +0,5 @@

const i = [];
for (let n = 0; n < 256; ++n)
i.push((n + 256).toString(16).slice(1));
function c(n, u = 0) {
return (i[n[u + 0]] + i[n[u + 1]] + i[n[u + 2]] + i[n[u + 3]] + "-" + i[n[u + 4]] + i[n[u + 5]] + "-" + i[n[u + 6]] + i[n[u + 7]] + "-" + i[n[u + 8]] + i[n[u + 9]] + "-" + i[n[u + 10]] + i[n[u + 11]] + i[n[u + 12]] + i[n[u + 13]] + i[n[u + 14]] + i[n[u + 15]]).toLowerCase();
}
var e = {};
export {
c as unsafeStringify
e as __exports
};
//# sourceMappingURL=annotorious-react.es24.js.map

@@ -1,5 +0,10 @@

const o = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), t = { randomUUID: o };
const i = [];
for (let n = 0; n < 256; ++n)
i.push((n + 256).toString(16).slice(1));
function c(n, u = 0) {
return (i[n[u + 0]] + i[n[u + 1]] + i[n[u + 2]] + i[n[u + 3]] + "-" + i[n[u + 4]] + i[n[u + 5]] + "-" + i[n[u + 6]] + i[n[u + 7]] + "-" + i[n[u + 8]] + i[n[u + 9]] + "-" + i[n[u + 10]] + i[n[u + 11]] + i[n[u + 12]] + i[n[u + 13]] + i[n[u + 14]] + i[n[u + 15]]).toLowerCase();
}
export {
t as default
c as unsafeStringify
};
//# sourceMappingURL=annotorious-react.es25.js.map

@@ -1,14 +0,5 @@

let t;
const e = new Uint8Array(16);
function o() {
if (!t) {
if (typeof crypto > "u" || !crypto.getRandomValues)
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
t = crypto.getRandomValues.bind(crypto);
}
return t(e);
}
const o = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), t = { randomUUID: o };
export {
o as default
t as default
};
//# sourceMappingURL=annotorious-react.es26.js.map

@@ -1,129 +0,14 @@

const l = Math.min, a = Math.max, P = Math.round, M = Math.floor, O = (t) => ({
x: t,
y: t
}), m = {
left: "right",
right: "left",
bottom: "top",
top: "bottom"
}, p = {
start: "end",
end: "start"
};
function S(t, n, e) {
return a(t, l(n, e));
}
function w(t, n) {
return typeof t == "function" ? t(n) : t;
}
function f(t) {
return t.split("-")[0];
}
function g(t) {
return t.split("-")[1];
}
function h(t) {
return t === "x" ? "y" : "x";
}
function x(t) {
return t === "y" ? "height" : "width";
}
function b(t) {
return ["top", "bottom"].includes(f(t)) ? "y" : "x";
}
function d(t) {
return h(b(t));
}
function j(t, n, e) {
e === void 0 && (e = !1);
const r = g(t), o = d(t), i = x(o);
let c = o === "x" ? r === (e ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
return n.reference[i] > n.floating[i] && (c = u(c)), [c, u(c)];
}
function C(t) {
const n = u(t);
return [s(t), n, s(n)];
}
function s(t) {
return t.replace(/start|end/g, (n) => p[n]);
}
function A(t, n, e) {
const r = ["left", "right"], o = ["right", "left"], i = ["top", "bottom"], c = ["bottom", "top"];
switch (t) {
case "top":
case "bottom":
return e ? n ? o : r : n ? r : o;
case "left":
case "right":
return n ? i : c;
default:
return [];
let t;
const e = new Uint8Array(16);
function o() {
if (!t) {
if (typeof crypto > "u" || !crypto.getRandomValues)
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
t = crypto.getRandomValues.bind(crypto);
}
return t(e);
}
function L(t, n, e, r) {
const o = g(t);
let i = A(f(t), e === "start", r);
return o && (i = i.map((c) => c + "-" + o), n && (i = i.concat(i.map(s)))), i;
}
function u(t) {
return t.replace(/left|right|bottom|top/g, (n) => m[n]);
}
function y(t) {
return {
top: 0,
right: 0,
bottom: 0,
left: 0,
...t
};
}
function E(t) {
return typeof t != "number" ? y(t) : {
top: t,
right: t,
bottom: t,
left: t
};
}
function R(t) {
const {
x: n,
y: e,
width: r,
height: o
} = t;
return {
width: r,
height: o,
top: e,
left: n,
right: n + r,
bottom: e + o,
x: n,
y: e
};
}
export {
S as clamp,
O as createCoords,
w as evaluate,
y as expandPaddingObject,
M as floor,
g as getAlignment,
d as getAlignmentAxis,
j as getAlignmentSides,
x as getAxisLength,
C as getExpandedPlacements,
s as getOppositeAlignmentPlacement,
h as getOppositeAxis,
L as getOppositeAxisPlacements,
u as getOppositePlacement,
E as getPaddingObject,
f as getSide,
b as getSideAxis,
a as max,
l as min,
R as rectToClientRect,
P as round
o as default
};
//# sourceMappingURL=annotorious-react.es27.js.map

@@ -1,469 +0,129 @@

import { evaluate as Y, getSide as F, getSideAxis as M, getOppositePlacement as Q, getExpandedPlacements as U, getOppositeAxisPlacements as Z, getAlignmentSides as ee, rectToClientRect as $, getPaddingObject as H, clamp as _, getAlignmentAxis as q, getAlignment as I, min as X, max as z, getOppositeAxis as te, getAxisLength as G } from "./annotorious-react.es27.js";
function W(s, c, l) {
let {
reference: t,
floating: o
} = s;
const e = M(c), a = q(c), r = G(a), d = F(c), u = e === "y", g = t.x + t.width / 2 - o.width / 2, i = t.y + t.height / 2 - o.height / 2, m = t[r] / 2 - o[r] / 2;
let n;
switch (d) {
const l = Math.min, a = Math.max, P = Math.round, M = Math.floor, O = (t) => ({
x: t,
y: t
}), m = {
left: "right",
right: "left",
bottom: "top",
top: "bottom"
}, p = {
start: "end",
end: "start"
};
function S(t, n, e) {
return a(t, l(n, e));
}
function w(t, n) {
return typeof t == "function" ? t(n) : t;
}
function f(t) {
return t.split("-")[0];
}
function g(t) {
return t.split("-")[1];
}
function h(t) {
return t === "x" ? "y" : "x";
}
function x(t) {
return t === "y" ? "height" : "width";
}
function b(t) {
return ["top", "bottom"].includes(f(t)) ? "y" : "x";
}
function d(t) {
return h(b(t));
}
function j(t, n, e) {
e === void 0 && (e = !1);
const r = g(t), o = d(t), i = x(o);
let c = o === "x" ? r === (e ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
return n.reference[i] > n.floating[i] && (c = u(c)), [c, u(c)];
}
function C(t) {
const n = u(t);
return [s(t), n, s(n)];
}
function s(t) {
return t.replace(/start|end/g, (n) => p[n]);
}
function A(t, n, e) {
const r = ["left", "right"], o = ["right", "left"], i = ["top", "bottom"], c = ["bottom", "top"];
switch (t) {
case "top":
n = {
x: g,
y: t.y - o.height
};
break;
case "bottom":
n = {
x: g,
y: t.y + t.height
};
break;
return e ? n ? o : r : n ? r : o;
case "left":
case "right":
n = {
x: t.x + t.width,
y: i
};
break;
case "left":
n = {
x: t.x - o.width,
y: i
};
break;
return n ? i : c;
default:
n = {
x: t.x,
y: t.y
};
return [];
}
switch (I(c)) {
case "start":
n[a] -= m * (l && u ? -1 : 1);
break;
case "end":
n[a] += m * (l && u ? -1 : 1);
break;
}
return n;
}
const oe = async (s, c, l) => {
const {
placement: t = "bottom",
strategy: o = "absolute",
middleware: e = [],
platform: a
} = l, r = e.filter(Boolean), d = await (a.isRTL == null ? void 0 : a.isRTL(c));
let u = await a.getElementRects({
reference: s,
floating: c,
strategy: o
}), {
x: g,
y: i
} = W(u, t, d), m = t, n = {}, f = 0;
for (let h = 0; h < r.length; h++) {
const {
name: x,
fn: w
} = r[h], {
x: b,
y,
data: P,
reset: p
} = await w({
x: g,
y: i,
initialPlacement: t,
placement: m,
strategy: o,
middlewareData: n,
rects: u,
platform: a,
elements: {
reference: s,
floating: c
}
});
g = b ?? g, i = y ?? i, n = {
...n,
[x]: {
...n[x],
...P
}
}, p && f <= 50 && (f++, typeof p == "object" && (p.placement && (m = p.placement), p.rects && (u = p.rects === !0 ? await a.getElementRects({
reference: s,
floating: c,
strategy: o
}) : p.rects), {
x: g,
y: i
} = W(u, m, d)), h = -1);
}
function L(t, n, e, r) {
const o = g(t);
let i = A(f(t), e === "start", r);
return o && (i = i.map((c) => c + "-" + o), n && (i = i.concat(i.map(s)))), i;
}
function u(t) {
return t.replace(/left|right|bottom|top/g, (n) => m[n]);
}
function y(t) {
return {
x: g,
y: i,
placement: m,
strategy: o,
middlewareData: n
top: 0,
right: 0,
bottom: 0,
left: 0,
...t
};
};
async function J(s, c) {
var l;
c === void 0 && (c = {});
const {
x: t,
y: o,
platform: e,
rects: a,
elements: r,
strategy: d
} = s, {
boundary: u = "clippingAncestors",
rootBoundary: g = "viewport",
elementContext: i = "floating",
altBoundary: m = !1,
padding: n = 0
} = Y(c, s), f = H(n), x = r[m ? i === "floating" ? "reference" : "floating" : i], w = $(await e.getClippingRect({
element: (l = await (e.isElement == null ? void 0 : e.isElement(x))) == null || l ? x : x.contextElement || await (e.getDocumentElement == null ? void 0 : e.getDocumentElement(r.floating)),
boundary: u,
rootBoundary: g,
strategy: d
})), b = i === "floating" ? {
x: t,
y: o,
width: a.floating.width,
height: a.floating.height
} : a.reference, y = await (e.getOffsetParent == null ? void 0 : e.getOffsetParent(r.floating)), P = await (e.isElement == null ? void 0 : e.isElement(y)) ? await (e.getScale == null ? void 0 : e.getScale(y)) || {
x: 1,
y: 1
} : {
x: 1,
y: 1
}, p = $(e.convertOffsetParentRelativeRectToViewportRelativeRect ? await e.convertOffsetParentRelativeRectToViewportRelativeRect({
elements: r,
rect: b,
offsetParent: y,
strategy: d
}) : b);
return {
top: (w.top - p.top + f.top) / P.y,
bottom: (p.bottom - w.bottom + f.bottom) / P.y,
left: (w.left - p.left + f.left) / P.x,
right: (p.right - w.right + f.right) / P.x
};
}
const ce = (s) => ({
name: "arrow",
options: s,
async fn(c) {
const {
x: l,
y: t,
placement: o,
rects: e,
platform: a,
elements: r,
middlewareData: d
} = c, {
element: u,
padding: g = 0
} = Y(s, c) || {};
if (u == null)
return {};
const i = H(g), m = {
x: l,
y: t
}, n = q(o), f = G(n), h = await a.getDimensions(u), x = n === "y", w = x ? "top" : "left", b = x ? "bottom" : "right", y = x ? "clientHeight" : "clientWidth", P = e.reference[f] + e.reference[n] - m[n] - e.floating[f], p = m[n] - e.reference[n], C = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(u));
let k = C ? C[y] : 0;
(!k || !await (a.isElement == null ? void 0 : a.isElement(C))) && (k = r.floating[y] || e.floating[f]);
const j = P / 2 - p / 2, T = k / 2 - h[f] / 2 - 1, A = X(i[w], T), L = X(i[b], T), S = A, B = k - h[f] - L, R = k / 2 - h[f] / 2 + j, D = _(S, R, B), v = !d.arrow && I(o) != null && R !== D && e.reference[f] / 2 - (R < S ? A : L) - h[f] / 2 < 0, O = v ? R < S ? R - S : R - B : 0;
return {
[n]: m[n] + O,
data: {
[n]: D,
centerOffset: R - D - O,
...v && {
alignmentOffset: O
}
},
reset: v
};
}
}), le = function(s) {
return s === void 0 && (s = {}), {
name: "flip",
options: s,
async fn(c) {
var l, t;
const {
placement: o,
middlewareData: e,
rects: a,
initialPlacement: r,
platform: d,
elements: u
} = c, {
mainAxis: g = !0,
crossAxis: i = !0,
fallbackPlacements: m,
fallbackStrategy: n = "bestFit",
fallbackAxisSideDirection: f = "none",
flipAlignment: h = !0,
...x
} = Y(s, c);
if ((l = e.arrow) != null && l.alignmentOffset)
return {};
const w = F(o), b = M(r), y = F(r) === r, P = await (d.isRTL == null ? void 0 : d.isRTL(u.floating)), p = m || (y || !h ? [Q(r)] : U(r)), C = f !== "none";
!m && C && p.push(...Z(r, h, f, P));
const k = [r, ...p], j = await J(c, x), T = [];
let A = ((t = e.flip) == null ? void 0 : t.overflows) || [];
if (g && T.push(j[w]), i) {
const R = ee(o, a, P);
T.push(j[R[0]], j[R[1]]);
}
if (A = [...A, {
placement: o,
overflows: T
}], !T.every((R) => R <= 0)) {
var L, S;
const R = (((L = e.flip) == null ? void 0 : L.index) || 0) + 1, D = k[R];
if (D)
return {
data: {
index: R,
overflows: A
},
reset: {
placement: D
}
};
let v = (S = A.filter((O) => O.overflows[0] <= 0).sort((O, E) => O.overflows[1] - E.overflows[1])[0]) == null ? void 0 : S.placement;
if (!v)
switch (n) {
case "bestFit": {
var B;
const O = (B = A.filter((E) => {
if (C) {
const V = M(E.placement);
return V === b || // Create a bias to the `y` side axis due to horizontal
// reading directions favoring greater width.
V === "y";
}
return !0;
}).map((E) => [E.placement, E.overflows.filter((V) => V > 0).reduce((V, N) => V + N, 0)]).sort((E, V) => E[1] - V[1])[0]) == null ? void 0 : B[0];
O && (v = O);
break;
}
case "initialPlacement":
v = r;
break;
}
if (o !== v)
return {
reset: {
placement: v
}
};
}
return {};
}
function E(t) {
return typeof t != "number" ? y(t) : {
top: t,
right: t,
bottom: t,
left: t
};
};
function K(s) {
const c = X(...s.map((e) => e.left)), l = X(...s.map((e) => e.top)), t = z(...s.map((e) => e.right)), o = z(...s.map((e) => e.bottom));
return {
x: c,
y: l,
width: t - c,
height: o - l
};
}
function ne(s) {
const c = s.slice().sort((o, e) => o.y - e.y), l = [];
let t = null;
for (let o = 0; o < c.length; o++) {
const e = c[o];
!t || e.y - t.y > t.height / 2 ? l.push([e]) : l[l.length - 1].push(e), t = e;
}
return l.map((o) => $(K(o)));
}
const ae = function(s) {
return s === void 0 && (s = {}), {
name: "inline",
options: s,
async fn(c) {
const {
placement: l,
elements: t,
rects: o,
platform: e,
strategy: a
} = c, {
padding: r = 2,
x: d,
y: u
} = Y(s, c), g = Array.from(await (e.getClientRects == null ? void 0 : e.getClientRects(t.reference)) || []), i = ne(g), m = $(K(g)), n = H(r);
function f() {
if (i.length === 2 && i[0].left > i[1].right && d != null && u != null)
return i.find((x) => d > x.left - n.left && d < x.right + n.right && u > x.top - n.top && u < x.bottom + n.bottom) || m;
if (i.length >= 2) {
if (M(l) === "y") {
const A = i[0], L = i[i.length - 1], S = F(l) === "top", B = A.top, R = L.bottom, D = S ? A.left : L.left, v = S ? A.right : L.right, O = v - D, E = R - B;
return {
top: B,
bottom: R,
left: D,
right: v,
width: O,
height: E,
x: D,
y: B
};
}
const x = F(l) === "left", w = z(...i.map((A) => A.right)), b = X(...i.map((A) => A.left)), y = i.filter((A) => x ? A.left === b : A.right === w), P = y[0].top, p = y[y.length - 1].bottom, C = b, k = w, j = k - C, T = p - P;
return {
top: P,
bottom: p,
left: C,
right: k,
width: j,
height: T,
x: C,
y: P
};
}
return m;
}
const h = await e.getElementRects({
reference: {
getBoundingClientRect: f
},
floating: t.floating,
strategy: a
});
return o.reference.x !== h.reference.x || o.reference.y !== h.reference.y || o.reference.width !== h.reference.width || o.reference.height !== h.reference.height ? {
reset: {
rects: h
}
} : {};
}
};
};
async function ie(s, c) {
function R(t) {
const {
placement: l,
platform: t,
elements: o
} = s, e = await (t.isRTL == null ? void 0 : t.isRTL(o.floating)), a = F(l), r = I(l), d = M(l) === "y", u = ["left", "top"].includes(a) ? -1 : 1, g = e && d ? -1 : 1, i = Y(c, s);
let {
mainAxis: m,
crossAxis: n,
alignmentAxis: f
} = typeof i == "number" ? {
mainAxis: i,
crossAxis: 0,
alignmentAxis: null
} : {
mainAxis: i.mainAxis || 0,
crossAxis: i.crossAxis || 0,
alignmentAxis: i.alignmentAxis
x: n,
y: e,
width: r,
height: o
} = t;
return {
width: r,
height: o,
top: e,
left: n,
right: n + r,
bottom: e + o,
x: n,
y: e
};
return r && typeof f == "number" && (n = r === "end" ? f * -1 : f), d ? {
x: n * g,
y: m * u
} : {
x: m * u,
y: n * g
};
}
const re = function(s) {
return s === void 0 && (s = 0), {
name: "offset",
options: s,
async fn(c) {
var l, t;
const {
x: o,
y: e,
placement: a,
middlewareData: r
} = c, d = await ie(c, s);
return a === ((l = r.offset) == null ? void 0 : l.placement) && (t = r.arrow) != null && t.alignmentOffset ? {} : {
x: o + d.x,
y: e + d.y,
data: {
...d,
placement: a
}
};
}
};
}, fe = function(s) {
return s === void 0 && (s = {}), {
name: "shift",
options: s,
async fn(c) {
const {
x: l,
y: t,
placement: o
} = c, {
mainAxis: e = !0,
crossAxis: a = !1,
limiter: r = {
fn: (x) => {
let {
x: w,
y: b
} = x;
return {
x: w,
y: b
};
}
},
...d
} = Y(s, c), u = {
x: l,
y: t
}, g = await J(c, d), i = M(F(o)), m = te(i);
let n = u[m], f = u[i];
if (e) {
const x = m === "y" ? "top" : "left", w = m === "y" ? "bottom" : "right", b = n + g[x], y = n - g[w];
n = _(b, n, y);
}
if (a) {
const x = i === "y" ? "top" : "left", w = i === "y" ? "bottom" : "right", b = f + g[x], y = f - g[w];
f = _(b, f, y);
}
const h = r.fn({
...c,
[m]: n,
[i]: f
});
return {
...h,
data: {
x: h.x - l,
y: h.y - t,
enabled: {
[m]: e,
[i]: a
}
}
};
}
};
};
export {
ce as arrow,
oe as computePosition,
J as detectOverflow,
le as flip,
ae as inline,
re as offset,
$ as rectToClientRect,
fe as shift
S as clamp,
O as createCoords,
w as evaluate,
y as expandPaddingObject,
M as floor,
g as getAlignment,
d as getAlignmentAxis,
j as getAlignmentSides,
x as getAxisLength,
C as getExpandedPlacements,
s as getOppositeAlignmentPlacement,
h as getOppositeAxis,
L as getOppositeAxisPlacements,
u as getOppositePlacement,
E as getPaddingObject,
f as getSide,
b as getSideAxis,
a as max,
l as min,
R as rectToClientRect,
P as round
};
//# sourceMappingURL=annotorious-react.es28.js.map
{
"name": "@annotorious/react",
"version": "3.0.22",
"version": "3.1.0",
"description": "Annotorious React bindings",

@@ -29,14 +29,14 @@ "author": "Rainer Simon",

"devDependencies": {
"@types/react": "18.3.12",
"@types/react-dom": "18.3.1",
"@vitejs/plugin-react": "4.3.4",
"typescript": "5.7.2",
"vite": "5.4.11",
"vite-plugin-dts": "4.3.0",
"vite-tsconfig-paths": "5.1.3"
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"@vitejs/plugin-react": "^4.3.4",
"typescript": "5.7.3",
"vite": "^6.0.11",
"vite-plugin-dts": "^4.5.0",
"vite-tsconfig-paths": "^5.1.4"
},
"peerDependencies": {
"openseadragon": "^3.0.0 || ^4.0.0 || ^5.0.0",
"react": "16.8.0 || >=17.x || >=18.x",
"react-dom": "16.8.0 || >=17.x || >=18.x"
"react": "16.8.0 || >=17.x || >=18.x || >=19.x",
"react-dom": "16.8.0 || >=17.x || >=18.x || >=19.x"
},

@@ -49,9 +49,9 @@ "peerDependenciesMeta": {

"dependencies": {
"@annotorious/annotorious": "3.0.22",
"@annotorious/core": "3.0.22",
"@annotorious/openseadragon": "3.0.22",
"@floating-ui/react": "0.26.28",
"zustand": "5.0.1"
"@annotorious/annotorious": "3.1.0",
"@annotorious/core": "3.1.0",
"@annotorious/openseadragon": "3.1.0",
"@floating-ui/react": "^0.27.3",
"zustand": "^5.0.3"
},
"sideEffects": false
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc