@annotorious/react-manifold 0.0.8 → 0.0.10
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.
- package/package.json +2 -12
- package/src/Annotorious.tsx +48 -0
- package/src/AnnotoriousManifold.tsx +141 -0
- package/src/AnnotoriousManifoldInstance.ts +106 -0
- package/src/index.ts +3 -0
- package/src/synchronizeInstances.tsx +11 -0
- package/test/33054-000002-0001.jpg +0 -0
- package/test/App.tsx +50 -0
- package/test/index.css +18 -0
- package/test/index.html +12 -0
- package/test/index.tsx +13 -0
- package/tsconfig.json +26 -0
- package/tsconfig.node.json +10 -0
- package/vite.config.js +40 -0
- package/dist/Annotorious.d.ts +0 -13
- package/dist/Annotorious.d.ts.map +0 -1
- package/dist/AnnotoriousManifold.d.ts +0 -26
- package/dist/AnnotoriousManifold.d.ts.map +0 -1
- package/dist/AnnotoriousManifoldInstance.d.ts +0 -16
- package/dist/AnnotoriousManifoldInstance.d.ts.map +0 -1
- package/dist/annotorious-react-manifold.es.js +0 -13
- package/dist/annotorious-react-manifold.es.js.map +0 -1
- package/dist/annotorious-react-manifold.es10.js +0 -5
- package/dist/annotorious-react-manifold.es10.js.map +0 -1
- package/dist/annotorious-react-manifold.es2.js +0 -15
- package/dist/annotorious-react-manifold.es2.js.map +0 -1
- package/dist/annotorious-react-manifold.es3.js +0 -58
- package/dist/annotorious-react-manifold.es3.js.map +0 -1
- package/dist/annotorious-react-manifold.es4.js +0 -31
- package/dist/annotorious-react-manifold.es4.js.map +0 -1
- package/dist/annotorious-react-manifold.es5.js +0 -9
- package/dist/annotorious-react-manifold.es5.js.map +0 -1
- package/dist/annotorious-react-manifold.es6.js +0 -5
- package/dist/annotorious-react-manifold.es6.js.map +0 -1
- package/dist/annotorious-react-manifold.es7.js +0 -33
- package/dist/annotorious-react-manifold.es7.js.map +0 -1
- package/dist/annotorious-react-manifold.es8.js +0 -602
- package/dist/annotorious-react-manifold.es8.js.map +0 -1
- package/dist/annotorious-react-manifold.es9.js +0 -5
- package/dist/annotorious-react-manifold.es9.js.map +0 -1
- package/dist/index.d.ts +0 -4
- package/dist/index.d.ts.map +0 -1
- package/dist/synchronizeInstances.d.ts +0 -3
- package/dist/synchronizeInstances.d.ts.map +0 -1
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { j as _ } from "./annotorious-react-manifold.es5.js";
|
|
2
|
-
import { createContext as I, useState as A, useRef as O, useEffect as P, useContext as M } from "react";
|
|
3
|
-
import { createManifoldInstance as k } from "./annotorious-react-manifold.es4.js";
|
|
4
|
-
const l = I(), D = (n) => {
|
|
5
|
-
const [u, S] = A(/* @__PURE__ */ new Map()), [C, f] = A(/* @__PURE__ */ new Map()), [c, b] = A({ selected: [] }), d = O(!1), g = (t, r) => {
|
|
6
|
-
S((e) => new Map(e.entries()).set(t, r));
|
|
7
|
-
const { store: o } = r.state, j = r.state.selection;
|
|
8
|
-
f((e) => new Map(e.entries()).set(t, o.all()));
|
|
9
|
-
const v = () => f((e) => new Map(e.entries()).set(t, o.all()));
|
|
10
|
-
o.observe(v);
|
|
11
|
-
let i;
|
|
12
|
-
const y = j.subscribe(({ selected: e, pointerEvent: s }) => {
|
|
13
|
-
i && o.unobserve(i);
|
|
14
|
-
const p = (e || []).map(({ id: a, editable: m }) => ({ annotation: o.getAnnotation(a), editable: m }));
|
|
15
|
-
d.current || b({ source: t, selected: p, pointerEvent: s }), i = (a) => {
|
|
16
|
-
const { updated: m } = a.changes;
|
|
17
|
-
b(({ source: E, selected: R }) => ({
|
|
18
|
-
source: E,
|
|
19
|
-
selected: R.map(({ annotation: w, editable: x }) => {
|
|
20
|
-
const h = m.find((V) => V.oldValue.id === w.id);
|
|
21
|
-
return h ? { annotation: h.newValue, editable: x } : { annotation: w, editable: x };
|
|
22
|
-
}),
|
|
23
|
-
pointerEvent: s
|
|
24
|
-
}));
|
|
25
|
-
}, o.observe(i, { annotations: e.map(({ id: a }) => a) });
|
|
26
|
-
});
|
|
27
|
-
return () => {
|
|
28
|
-
S((e) => new Map(Array.from(e.entries()).filter(([s, p]) => s !== t))), f((e) => new Map(Array.from(e.entries()).filter(([s, p]) => s !== t))), o.unobserve(v), y();
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
return P(() => {
|
|
32
|
-
c.source && (d.current = !0, Array.from(u.entries()).forEach(([t, r]) => {
|
|
33
|
-
t !== c.source && r.setSelected();
|
|
34
|
-
}), d.current = !1);
|
|
35
|
-
}, [c, u]), /* @__PURE__ */ _.jsx(l.Provider, { value: {
|
|
36
|
-
annotators: u,
|
|
37
|
-
annotations: C,
|
|
38
|
-
selection: c,
|
|
39
|
-
connectAnnotator: g
|
|
40
|
-
}, children: n.children });
|
|
41
|
-
}, F = () => {
|
|
42
|
-
const { annotators: n } = M(l);
|
|
43
|
-
return k(n);
|
|
44
|
-
}, G = () => {
|
|
45
|
-
const { annotations: n } = M(l);
|
|
46
|
-
return n;
|
|
47
|
-
}, H = () => {
|
|
48
|
-
const { selection: n } = M(l);
|
|
49
|
-
return n;
|
|
50
|
-
};
|
|
51
|
-
export {
|
|
52
|
-
D as AnnotoriousManifold,
|
|
53
|
-
l as AnnotoriousManifoldContext,
|
|
54
|
-
G as useAnnotations,
|
|
55
|
-
F as useAnnotoriousManifold,
|
|
56
|
-
H as useSelection
|
|
57
|
-
};
|
|
58
|
-
//# sourceMappingURL=annotorious-react-manifold.es3.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"annotorious-react-manifold.es3.js","sources":["../src/AnnotoriousManifold.tsx"],"sourcesContent":["import { ReactNode, createContext, useContext, useEffect, useRef, useState } from 'react';\nimport type { Annotation, Annotator } from '@annotorious/core/src/model';\nimport type { StoreChangeEvent } from '@annotorious/core/src/state';\nimport { AnnotoriousManifoldInstance, createManifoldInstance } from './AnnotoriousManifoldInstance';\n\ninterface AnnotoriousManifoldContextValue {\n\n annotators: Map<string, Annotator<any, unknown>>;\n\n annotations: Map<string, Annotation[]>;\n\n selection: ManifoldSelection;\n\n connectAnnotator(source: string, anno: Annotator<any, unknown>): () => void;\n\n}\n\ninterface ManifoldSelection<T extends Annotation = Annotation> {\n\n source?: string;\n\n selected: { annotation: T, editable?: boolean }[],\n\n pointerEvent?: PointerEvent;\n\n}\n\n// @ts-ignore\nexport const AnnotoriousManifoldContext = createContext<AnnotoriousManifoldContextValue>();\n\nexport const AnnotoriousManifold = (props: { children: ReactNode }) => {\n\n const [annotators, setAnnotators] = useState<Map<string, Annotator<any, unknown>>>(new Map());\n\n const [annotations, setAnnotations] = useState<Map<string, Annotation[]>>(new Map());\n\n const [selection, setSelection] = \n useState<ManifoldSelection>({ selected: [] });\n\n // To prevent selection state updates when de-selecting other annotators\n const muteSelectionEvents = useRef<boolean>(false);\n\n const connectAnnotator = (source: string, anno: Annotator<any, unknown>) => {\n // Add the annotator to the state\n setAnnotators(m => new Map(m.entries()).set(source, anno))\n\n const { store } = anno.state;\n const selectionState = anno.state.selection;\n\n // Add the annotations to the state\n setAnnotations(m => new Map(m.entries()).set(source, store.all()));\n\n const onStoreChange = () =>\n setAnnotations(m => new Map(m.entries()).set(source, store.all()));\n\n store.observe(onStoreChange);\n\n // Track selection\n let selectionStoreObserver: (event: StoreChangeEvent<Annotation>) => void;\n\n const unsubscribeSelection = selectionState.subscribe(({ selected, pointerEvent }) => {\n if (selectionStoreObserver) \n store.unobserve(selectionStoreObserver);\n\n const resolved = (selected || [])\n .map(({ id, editable }) => ({ annotation: store.getAnnotation(id), editable }));\n\n // Set the new selection\n if (!muteSelectionEvents.current)\n setSelection({ source, selected: resolved, pointerEvent });\n\n // Track the state of the selected annotations in the store\n selectionStoreObserver = event => {\n const { updated } = event.changes;\n\n setSelection(({ source, selected }) => ({\n source,\n selected: selected.map(({ annotation, editable }) => {\n const next = updated.find(u => u.oldValue.id === annotation.id);\n return next ? { annotation: next.newValue, editable } : { annotation, editable };\n }),\n pointerEvent\n }));\n }\n\n store.observe(selectionStoreObserver, { annotations: selected.map(({ id }) => id) });\n });\n\n return () => {\n // Remove annotator\n setAnnotators(m => new Map(Array.from(m.entries()).filter(([key, _]) => key !== source)));\n\n // Remove & untrack annotations\n setAnnotations(m => new Map(Array.from(m.entries()).filter(([key, _]) => key !== source)));\n store.unobserve(onStoreChange);\n\n // Un-track selection\n unsubscribeSelection();\n }\n }\n\n useEffect(() => {\n if (selection.source) {\n muteSelectionEvents.current = true;\n\n Array.from(annotators.entries()).forEach(([source, anno]) => {\n if (source !== selection.source)\n anno.setSelected();\n });\n\n muteSelectionEvents.current = false;\n }\n }, [selection, annotators]);\n\n return (\n <AnnotoriousManifoldContext.Provider value={{ \n annotators, \n annotations,\n selection,\n connectAnnotator \n }}>\n {props.children}\n </AnnotoriousManifoldContext.Provider>\n )\n\n}\n\nexport const useAnnotoriousManifold = <I extends Annotation = Annotation, E extends unknown = Annotation>() => {\n const { annotators } = useContext(AnnotoriousManifoldContext);\n return createManifoldInstance(annotators) as AnnotoriousManifoldInstance<I, E>;\n}\n\nexport const useAnnotations = <T extends Annotation>() => {\n const { annotations } = useContext(AnnotoriousManifoldContext);\n return annotations as Map<string, T[]>;\n}\n\nexport const useSelection = <T extends Annotation>() => {\n const { selection } = useContext(AnnotoriousManifoldContext);\n return selection as ManifoldSelection<T>;\n}\n"],"names":["AnnotoriousManifoldContext","createContext","AnnotoriousManifold","props","annotators","setAnnotators","useState","annotations","setAnnotations","selection","setSelection","muteSelectionEvents","useRef","connectAnnotator","source","anno","m","store","selectionState","onStoreChange","selectionStoreObserver","unsubscribeSelection","selected","pointerEvent","resolved","id","editable","event","updated","annotation","next","u","key","_","useEffect","jsx","useAnnotoriousManifold","useContext","createManifoldInstance","useAnnotations","useSelection"],"mappings":";;;AA4BO,MAAMA,IAA6BC,EAA+C,GAE5EC,IAAsB,CAACC,MAAmC;AAErE,QAAM,CAACC,GAAYC,CAAa,IAAIC,EAA+C,oBAAI,KAAK,GAEtF,CAACC,GAAaC,CAAc,IAAIF,EAAoC,oBAAI,KAAK,GAE7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AAA,IAAgB8B,EAAWrC,CAA0B;AACtD,SAAAO;AACT,GAEaiC,IAAe,MAA4B;AACtD,QAAM,EAAE,WAAA/B,EAAA,IAAc4B,EAAWrC,CAA0B;AACpD,SAAAS;AACT;"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Origin as s } from "@annotorious/react";
|
|
2
|
-
const y = (e) => {
|
|
3
|
-
const a = (t) => Array.from(e.values()).reduce((n, o) => {
|
|
4
|
-
if (n)
|
|
5
|
-
return n;
|
|
6
|
-
const r = o.getAnnotationById(t);
|
|
7
|
-
if (r)
|
|
8
|
-
return { annotation: r, annotator: o };
|
|
9
|
-
}, void 0) || { annotation: void 0, annotator: void 0 }, i = (t, n = s.LOCAL) => {
|
|
10
|
-
const { annotator: o } = a(t.annotation);
|
|
11
|
-
o && o.state.store.addBody(t, n);
|
|
12
|
-
}, c = (t = s.LOCAL) => Array.from(e.values()).forEach((n) => n.state.store.clear(t)), d = (t, n = s.LOCAL) => {
|
|
13
|
-
const { annotation: o, annotator: r } = a(t);
|
|
14
|
-
if (r)
|
|
15
|
-
return r.state.store.deleteAnnotation(t, n), o;
|
|
16
|
-
}, A = () => Array.from(e.values()).forEach((t) => t.destroy()), f = (t) => a(t).annotation, u = () => Array.from(e.values()).reduce((t, n) => [...t, ...n.getAnnotations()], []);
|
|
17
|
-
return {
|
|
18
|
-
annotators: [...e.values()],
|
|
19
|
-
sources: [...e.keys()],
|
|
20
|
-
addBody: i,
|
|
21
|
-
clear: c,
|
|
22
|
-
deleteAnnotation: d,
|
|
23
|
-
destroy: A,
|
|
24
|
-
getAnnotationById: f,
|
|
25
|
-
getAnnotations: u
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
export {
|
|
29
|
-
y as createManifoldInstance
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=annotorious-react-manifold.es4.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"annotorious-react-manifold.es4.js","sources":["../src/AnnotoriousManifoldInstance.ts"],"sourcesContent":["import { Origin } from '@annotorious/react';\nimport type { \n Annotation, \n AnnotationBody, \n Annotator, \n LifecycleEvents\n} from '@annotorious/core/src';\n\nexport interface AnnotoriousManifoldInstance<I extends Annotation = Annotation, E extends unknown = Annotation> {\n\n annotators: Annotator<I, E>[];\n\n sources: string[];\n\n // style: DrawingStyle | ((annotation: I) => DrawingStyle) | undefined;\n\n addBody(body: AnnotationBody, origin?: Origin): void;\n\n clear(origin: Origin): void;\n\n deleteAnnotation(id: string, origin?: Origin): E | undefined;\n\n destroy(): void;\n\n getAnnotationById(id: string): E | undefined;\n\n getAnnotations(): E[];\n \n on<T extends keyof LifecycleEvents<E>>(event: T, callback: LifecycleEvents<E>[T]): void;\n\n off<T extends keyof LifecycleEvents<E>>(event: T, callback: LifecycleEvents<E>[T]): void;\n\n}\n\nexport const createManifoldInstance = <I extends Annotation = Annotation, E extends unknown = Annotation>(\n annotators: Map<string, Annotator<I, E>>\n): AnnotoriousManifoldInstance<I, E> => {\n\n const find = (annotationId: string): { annotation?: E, annotator?: Annotator<I, E> } =>\n Array.from(annotators.values()).reduce((found, annotator) => {\n if (found)\n return found;\n\n const annotation = annotator.getAnnotationById(annotationId);\n if (annotation) \n return { annotation, annotator };\n }, undefined as { annotation: E, annotator: Annotator<I, E> } | undefined ) || \n\n { annotation: undefined, annotator: undefined };\n\n /*********/\n /** API **/\n /*********/\n\n const addBody = (body: AnnotationBody, origin = Origin.LOCAL) => {\n const { annotator } = find(body.annotation);\n if (annotator)\n annotator.state.store.addBody(body, origin);\n }\n\n const clear = (origin = Origin.LOCAL) =>\n Array.from(annotators.values()).forEach(a => a.state.store.clear(origin));\n\n const deleteAnnotation = (id: string, origin = Origin.LOCAL) => {\n const { annotation, annotator } = find(id);\n\n if (annotator) {\n annotator.state.store.deleteAnnotation(id, origin);\n return annotation;\n }\n }\n\n const destroy = () =>\n Array.from(annotators.values()).forEach(a => a.destroy());\n\n const getAnnotationById = (id: string) => \n find(id).annotation;\n\n const getAnnotations = () => \n Array.from(annotators.values()).reduce((all, annotator) =>\n [...all, ...annotator.getAnnotations()], [] as E[])\n\n // @ts-ignore\n return {\n annotators: [...annotators.values()],\n sources: [...annotators.keys()],\n addBody,\n clear,\n deleteAnnotation,\n destroy,\n getAnnotationById,\n getAnnotations\n }\n\n}"],"names":["createManifoldInstance","annotators","find","annotationId","found","annotator","annotation","addBody","body","origin","Origin","clear","a","deleteAnnotation","id","destroy","getAnnotationById","getAnnotations","all"],"mappings":";AAkCa,MAAAA,IAAyB,CACpCC,MACsC;AAEtC,QAAMC,IAAO,CAACC,MACZ,MAAM,KAAKF,EAAW,OAAO,CAAC,EAAE,OAAO,CAACG,GAAOC,MAAc;AACvD,QAAAD;AACK,aAAAA;AAEH,UAAAE,IAAaD,EAAU,kBAAkBF,CAAY;AACvD,QAAAG;AACK,aAAA,EAAE,YAAAA,GAAY,WAAAD;EAAU,GAChC,MAAuE,KAE1E,EAAE,YAAY,QAAW,WAAW,UAMhCE,IAAU,CAACC,GAAsBC,IAASC,EAAO,UAAU;AAC/D,UAAM,EAAE,WAAAL,EAAc,IAAAH,EAAKM,EAAK,UAAU;AACtC,IAAAH,KACFA,EAAU,MAAM,MAAM,QAAQG,GAAMC,CAAM;AAAA,EAAA,GAGxCE,IAAQ,CAACF,IAASC,EAAO,UAC7B,MAAM,KAAKT,EAAW,OAAA,CAAQ,EAAE,QAAQ,CAAKW,MAAAA,EAAE,MAAM,MAAM,MAAMH,CAAM,CAAC,GAEpEI,IAAmB,CAACC,GAAYL,IAASC,EAAO,UAAU;AAC9D,UAAM,EAAE,YAAAJ,GAAY,WAAAD,EAAU,IAAIH,EAAKY,CAAE;AAEzC,QAAIT;AACF,aAAAA,EAAU,MAAM,MAAM,iBAAiBS,GAAIL,CAAM,GAC1CH;AAAA,EACT,GAGIS,IAAU,MACd,MAAM,KAAKd,EAAW,OAAA,CAAQ,EAAE,QAAQ,CAAAW,MAAKA,EAAE,QAAS,CAAA,GAEpDI,IAAoB,CAACF,MACzBZ,EAAKY,CAAE,EAAE,YAELG,IAAiB,MACrB,MAAM,KAAKhB,EAAW,OAAO,CAAC,EAAE,OAAO,CAACiB,GAAKb,MAC3C,CAAC,GAAGa,GAAK,GAAGb,EAAU,eAAgB,CAAA,GAAG,CAAA,CAAS;AAG/C,SAAA;AAAA,IACL,YAAY,CAAC,GAAGJ,EAAW,QAAQ;AAAA,IACnC,SAAS,CAAC,GAAGA,EAAW,MAAM;AAAA,IAC9B,SAAAM;AAAA,IACA,OAAAI;AAAA,IACA,kBAAAE;AAAA,IACA,SAAAE;AAAA,IACA,mBAAAC;AAAA,IACA,gBAAAC;AAAA,EAAA;AAGJ;"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { __module as e } from "./annotorious-react-manifold.es6.js";
|
|
2
|
-
import { __require as r } from "./annotorious-react-manifold.es7.js";
|
|
3
|
-
import { __require as o } from "./annotorious-react-manifold.es8.js";
|
|
4
|
-
process.env.NODE_ENV === "production" ? e.exports = r() : e.exports = o();
|
|
5
|
-
var m = e.exports;
|
|
6
|
-
export {
|
|
7
|
-
m as j
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=annotorious-react-manifold.es5.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"annotorious-react-manifold.es5.js","sources":["../node_modules/react/jsx-runtime.js"],"sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n"],"names":["jsxRuntimeModule","require$$0","require$$1"],"mappings":";;;AAEI,QAAQ,IAAI,aAAa,eAC3BA,EAAA,UAAiBC,MAEjBD,EAAA,UAAiBE;;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"annotorious-react-manifold.es6.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { __exports as t } from "./annotorious-react-manifold.es9.js";
|
|
2
|
-
import R from "react";
|
|
3
|
-
/**
|
|
4
|
-
* @license React
|
|
5
|
-
* react-jsx-runtime.production.min.js
|
|
6
|
-
*
|
|
7
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
8
|
-
*
|
|
9
|
-
* This source code is licensed under the MIT license found in the
|
|
10
|
-
* LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/
|
|
12
|
-
var p;
|
|
13
|
-
function v() {
|
|
14
|
-
if (p)
|
|
15
|
-
return t;
|
|
16
|
-
p = 1;
|
|
17
|
-
var s = R, m = Symbol.for("react.element"), l = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, d = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, y = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
|
-
function i(o, r, u) {
|
|
19
|
-
var e, n = {}, _ = null, f = null;
|
|
20
|
-
u !== void 0 && (_ = "" + u), r.key !== void 0 && (_ = "" + r.key), r.ref !== void 0 && (f = r.ref);
|
|
21
|
-
for (e in r)
|
|
22
|
-
c.call(r, e) && !y.hasOwnProperty(e) && (n[e] = r[e]);
|
|
23
|
-
if (o && o.defaultProps)
|
|
24
|
-
for (e in r = o.defaultProps, r)
|
|
25
|
-
n[e] === void 0 && (n[e] = r[e]);
|
|
26
|
-
return { $$typeof: m, type: o, key: _, ref: f, props: n, _owner: d.current };
|
|
27
|
-
}
|
|
28
|
-
return t.Fragment = l, t.jsx = i, t.jsxs = i, t;
|
|
29
|
-
}
|
|
30
|
-
export {
|
|
31
|
-
v as __require
|
|
32
|
-
};
|
|
33
|
-
//# sourceMappingURL=annotorious-react-manifold.es7.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"annotorious-react-manifold.es7.js","sources":["../node_modules/react/cjs/react-jsx-runtime.production.min.js"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n"],"names":["f","require$$0","k","m","n","p","q","c","a","g","b","d","e","h","reactJsxRuntime_production_min"],"mappings":";;;;;;;;;;;;;;;;AASa,MAAIA,IAAEC,GAAiBC,IAAE,OAAO,IAAI,eAAe,GAAE,IAAE,OAAO,IAAI,gBAAgB,GAAEC,IAAE,OAAO,UAAU,gBAAeC,IAAEJ,EAAE,mDAAmD,mBAAkBK,IAAE,EAAC,KAAI,IAAG,KAAI,IAAG,QAAO,IAAG,UAAS,GAAE;AAClP,WAASC,EAAEC,GAAEC,GAAEC,GAAE;AAAC,QAAIC,GAAEC,IAAE,IAAGC,IAAE,MAAKC,IAAE;AAAK,IAASJ,MAAT,WAAaG,IAAE,KAAGH,IAAYD,EAAE,QAAX,WAAiBI,IAAE,KAAGJ,EAAE,MAAcA,EAAE,QAAX,WAAiBK,IAAEL,EAAE;AAAK,SAAIE,KAAKF;AAAE,MAAAL,EAAE,KAAKK,GAAEE,CAAC,KAAG,CAACL,EAAE,eAAeK,CAAC,MAAIC,EAAED,CAAC,IAAEF,EAAEE,CAAC;AAAG,QAAGH,KAAGA,EAAE;AAAa,WAAIG,KAAKF,IAAED,EAAE,cAAaC;AAAE,QAASG,EAAED,CAAC,MAAZ,WAAgBC,EAAED,CAAC,IAAEF,EAAEE,CAAC;AAAG,WAAM,EAAC,UAASR,GAAE,MAAKK,GAAE,KAAIK,GAAE,KAAIC,GAAE,OAAMF,GAAE,QAAOP,EAAE,QAAO;AAAA,EAAC;AAAC,SAAAU,aAAiB,GAAEA,EAAW,MAACR,GAAEQ,EAAA,OAAaR;;","x_google_ignoreList":[0]}
|