@bbki.ng/components 2.6.16 → 3.0.0
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/dist/Button.d.ts +1 -0
- package/dist/_virtual/_commonjsHelpers.mjs +6 -0
- package/dist/_virtual/index.mjs +4 -0
- package/dist/_virtual/jsx-runtime.mjs +7 -0
- package/dist/_virtual/jsx-runtime2.mjs +4 -0
- package/dist/_virtual/react-jsx-runtime.development.mjs +4 -0
- package/dist/_virtual/react-jsx-runtime.production.min.mjs +4 -0
- package/dist/article/Article.d.ts +11 -0
- package/dist/article/Article.mjs +43 -0
- package/dist/blink-dot/BlinkDot.d.ts +5 -0
- package/dist/blink-dot/BlinkDot.mjs +20 -0
- package/dist/blur-cover/BlurCover.d.ts +6 -0
- package/dist/blur-cover/BlurCover.mjs +28 -0
- package/dist/breadcrumb/Breadcrumb.d.ts +9 -0
- package/dist/breadcrumb/Breadcrumb.mjs +35 -0
- package/dist/button/Button.d.ts +18 -0
- package/dist/button/Button.mjs +35 -0
- package/dist/canvas/Canvas.d.ts +23 -0
- package/dist/canvas/Canvas.mjs +85 -0
- package/dist/canvas/useRenderer.d.ts +10 -0
- package/dist/canvas/useRenderer.mjs +31 -0
- package/dist/context-menu/index.d.ts +27 -0
- package/dist/context-menu/index.mjs +131 -0
- package/dist/drop-image/DropImage.d.ts +25 -0
- package/dist/drop-image/DropImage.mjs +151 -0
- package/dist/drop-image/useDropImage.d.ts +19 -0
- package/dist/drop-image/useDropImage.mjs +67 -0
- package/dist/drop-image/utils.d.ts +2 -0
- package/dist/drop-image/utils.mjs +4 -0
- package/dist/drop-zone/DropZone.d.ts +9 -0
- package/dist/drop-zone/DropZone.mjs +44 -0
- package/dist/img/Gallery.d.ts +11 -0
- package/dist/img/Gallery.mjs +37 -0
- package/dist/img/Img.d.ts +3 -0
- package/dist/img/Img.mjs +80 -0
- package/dist/img/RandomRowsLayout.d.ts +9 -0
- package/dist/img/RandomRowsLayout.mjs +49 -0
- package/dist/img/types.d.ts +21 -0
- package/dist/img/types.mjs +4 -0
- package/dist/img/utils.d.ts +7 -0
- package/dist/img/utils.mjs +15 -0
- package/dist/index.d.ts +25 -380
- package/dist/index.mjs +79 -0
- package/dist/input/index.d.ts +3 -0
- package/dist/input/index.mjs +17 -0
- package/dist/label/index.d.ts +5 -0
- package/dist/label/index.mjs +17 -0
- package/dist/layout/layout.d.ts +7 -0
- package/dist/layout/layout.mjs +27 -0
- package/dist/link/Link.d.ts +17 -0
- package/dist/link/Link.mjs +83 -0
- package/dist/list/list.d.ts +23 -0
- package/dist/list/list.mjs +76 -0
- package/dist/loading-spiral/LoadingSpiral.d.ts +5 -0
- package/dist/loading-spiral/LoadingSpiral.mjs +37 -0
- package/dist/loading-spiral/constants.d.ts +6 -0
- package/dist/loading-spiral/constants.mjs +61 -0
- package/dist/loading-spiral/createOptions.d.ts +17 -0
- package/dist/loading-spiral/createOptions.mjs +30 -0
- package/dist/loading-spiral/createSettings.d.ts +16 -0
- package/dist/loading-spiral/createSettings.mjs +21 -0
- package/dist/loading-spiral/useCanvasRef.d.ts +4 -0
- package/dist/loading-spiral/utils.d.ts +1 -0
- package/dist/logo/Logo.d.ts +6 -0
- package/dist/logo/Logo.mjs +36 -0
- package/dist/nav/Nav.d.ts +10 -0
- package/dist/nav/Nav.mjs +27 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.18.9/node_modules/@babel/runtime/helpers/esm/extends.mjs +13 -0
- package/dist/node_modules/.pnpm/@floating-ui_core@1.6.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +519 -0
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.6.3/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +373 -0
- package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.0.8_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs +182 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.1/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +108 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.1/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +120 -0
- package/dist/node_modules/.pnpm/@radix-ui_primitive@1.0.1/node_modules/@radix-ui/primitive/dist/index.mjs +9 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-arrow@1.0.3_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-arrow/dist/index.mjs +19 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-collection@1.0.3_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom_04e7d2b59cf7ec97f40d26a998d7601d/node_modules/@radix-ui/react-collection/dist/index.mjs +60 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.mjs +16 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.mjs +25 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-context-menu@2.1.5_@types_react-dom@18.0.6_@types_react@18.0.15_react-d_1ce4db5e792f73d797e22c043cc3d326/node_modules/@radix-ui/react-context-menu/dist/index.mjs +213 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-context@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-context/dist/index.mjs +88 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-direction@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-direction/dist/index.mjs +9 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.0.5_@types_react-dom@18.0.6_@types_react@18.0.15_re_0263a24376d55e4c2bb8fa2f75f1db3c/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs +136 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-focus-guards/dist/index.mjs +20 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.0.4_@types_react-dom@18.0.6_@types_react@18.0.15_react-do_a79d961df31bbecb3b2c94878dbb0724/node_modules/@radix-ui/react-focus-scope/dist/index.mjs +188 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-icons@1.3.0_react@18.2.0/node_modules/@radix-ui/react-icons/dist/react-icons.esm.mjs +61 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-id@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-id/dist/index.mjs +18 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-label@2.1.1_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-label/dist/index.mjs +20 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-menu@2.0.6_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-menu/dist/index.mjs +657 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.1.3_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-popper/dist/index.mjs +218 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.0.4_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-portal/dist/index.mjs +14 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-presence@1.0.1_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-presence/dist/index.mjs +81 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@1.0.3_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-primitive/dist/index.mjs +44 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.0.1_@types_react-dom@18.0.6_@types_react@18.0.15_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-primitive/dist/index.mjs +31 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-roving-focus@1.0.4_@types_react-dom@18.0.6_@types_react@18.0.15_react-d_69cf2e3e4b4e2c2fefdb8ea262543b5e/node_modules/@radix-ui/react-roving-focus/dist/index.mjs +199 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.0.2_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.mjs +53 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.1.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.mjs +48 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs +16 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs +37 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.0.3_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs +17 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs +6 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1.0.1_@types_react@18.0.15_react@18.2.0/node_modules/@radix-ui/react-use-size/dist/index.mjs +37 -0
- package/dist/node_modules/.pnpm/aria-hidden@1.2.3/node_modules/aria-hidden/dist/es2015/index.mjs +49 -0
- package/dist/node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.mjs +6 -0
- package/dist/node_modules/.pnpm/classnames@2.3.1/node_modules/classnames/index.mjs +40 -0
- package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs +23 -0
- package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.mjs +7 -0
- package/dist/node_modules/.pnpm/phenomenon@1.6.0/node_modules/phenomenon/dist/phenomenon.mjs +109 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.5_@types_react@18.0.15_react@18.2.0/node_modules/react-remove-scroll-bar/dist/es2015/component.mjs +61 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.5_@types_react@18.0.15_react@18.2.0/node_modules/react-remove-scroll-bar/dist/es2015/constants.mjs +7 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.5_@types_react@18.0.15_react@18.2.0/node_modules/react-remove-scroll-bar/dist/es2015/utils.mjs +25 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.5.5_@types_react@18.0.15_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/Combination.mjs +17 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.5.5_@types_react@18.0.15_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.mjs +116 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.5.5_@types_react@18.0.15_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/UI.mjs +46 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.5.5_@types_react@18.0.15_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.mjs +16 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.5.5_@types_react@18.0.15_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/handleScroll.mjs +62 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.5.5_@types_react@18.0.15_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/medium.mjs +5 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.5.5_@types_react@18.0.15_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/sidecar.mjs +7 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.1_@types_react@18.0.15_react@18.2.0/node_modules/react-style-singleton/dist/es2015/component.mjs +11 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.1_@types_react@18.0.15_react@18.2.0/node_modules/react-style-singleton/dist/es2015/hook.mjs +15 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.1_@types_react@18.0.15_react@18.2.0/node_modules/react-style-singleton/dist/es2015/singleton.mjs +30 -0
- package/dist/node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react-jsx-runtime.development.mjs +589 -0
- package/dist/node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react-jsx-runtime.production.min.mjs +32 -0
- package/dist/node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.mjs +8 -0
- package/dist/node_modules/.pnpm/tslib@2.4.1/node_modules/tslib/tslib.es6.mjs +29 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.1_@types_react@18.0.15_react@18.2.0/node_modules/use-callback-ref/dist/es2015/assignRef.mjs +6 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.1_@types_react@18.0.15_react@18.2.0/node_modules/use-callback-ref/dist/es2015/useMergeRef.mjs +26 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.1_@types_react@18.0.15_react@18.2.0/node_modules/use-callback-ref/dist/es2015/useRef.mjs +25 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.2_@types_react@18.0.15_react@18.2.0/node_modules/use-sidecar/dist/es2015/exports.mjs +21 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.2_@types_react@18.0.15_react@18.2.0/node_modules/use-sidecar/dist/es2015/medium.mjs +67 -0
- package/dist/page/Page.d.ts +28 -0
- package/dist/page/Page.mjs +67 -0
- package/dist/panel/Panel.d.ts +6 -0
- package/dist/panel/Panel.mjs +17 -0
- package/dist/pop-confirm/PopConfirm.d.ts +10 -0
- package/dist/pop-confirm/PopConfirm.mjs +40 -0
- package/dist/skeleton/Seleton.d.ts +23 -0
- package/dist/skeleton/Seleton.mjs +69 -0
- package/dist/spinner/Spinner.d.ts +7 -0
- package/dist/table/Table.d.ts +18 -0
- package/dist/table/Table.mjs +34 -0
- package/dist/tag/Tag.d.ts +10 -0
- package/dist/tag/Tag.mjs +33 -0
- package/package.json +22 -13
- package/dist/index.cjs +0 -1816
- package/dist/index.cjs.map +0 -1
- package/dist/index.css +0 -1821
- package/dist/index.css.map +0 -1
- package/dist/index.js +0 -1738
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
import { shift as P, flip as tt, size as et, hide as it, computePosition as ot, arrow as nt, limitShift as st } from "../../../../../@floating-ui_core@1.6.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs";
|
|
2
|
+
import { detectOverflow as Vt, offset as St } from "../../../../../@floating-ui_core@1.6.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs";
|
|
3
|
+
import { createCoords as x, round as A, max as T, min as H, rectToClientRect as q, floor as z } from "../../../../../@floating-ui_utils@0.2.1/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs";
|
|
4
|
+
import { isElement as b, getDocumentElement as C, getOverflowAncestors as I, getComputedStyle as y, isHTMLElement as R, getWindow as E, isTableElement as rt, getNodeName as W, isContainingBlock as U, getContainingBlock as ct, isOverflowElement as S, getNodeScroll as N, getParentNode as V, isLastTraversableNode as K, isWebKit as X } from "../../../../../@floating-ui_utils@0.2.1/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs";
|
|
5
|
+
function j(t) {
|
|
6
|
+
const e = y(t);
|
|
7
|
+
let o = parseFloat(e.width) || 0, i = parseFloat(e.height) || 0;
|
|
8
|
+
const s = R(t), c = s ? t.offsetWidth : o, n = s ? t.offsetHeight : i, r = A(o) !== c || A(i) !== n;
|
|
9
|
+
return r && (o = c, i = n), {
|
|
10
|
+
width: o,
|
|
11
|
+
height: i,
|
|
12
|
+
$: r
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function $(t) {
|
|
16
|
+
return b(t) ? t : t.contextElement;
|
|
17
|
+
}
|
|
18
|
+
function F(t) {
|
|
19
|
+
const e = $(t);
|
|
20
|
+
if (!R(e))
|
|
21
|
+
return x(1);
|
|
22
|
+
const o = e.getBoundingClientRect(), {
|
|
23
|
+
width: i,
|
|
24
|
+
height: s,
|
|
25
|
+
$: c
|
|
26
|
+
} = j(e);
|
|
27
|
+
let n = (c ? A(o.width) : o.width) / i, r = (c ? A(o.height) : o.height) / s;
|
|
28
|
+
return (!n || !Number.isFinite(n)) && (n = 1), (!r || !Number.isFinite(r)) && (r = 1), {
|
|
29
|
+
x: n,
|
|
30
|
+
y: r
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
const lt = /* @__PURE__ */ x(0);
|
|
34
|
+
function G(t) {
|
|
35
|
+
const e = E(t);
|
|
36
|
+
return !X() || !e.visualViewport ? lt : {
|
|
37
|
+
x: e.visualViewport.offsetLeft,
|
|
38
|
+
y: e.visualViewport.offsetTop
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function ft(t, e, o) {
|
|
42
|
+
return e === void 0 && (e = !1), !o || e && o !== E(t) ? !1 : e;
|
|
43
|
+
}
|
|
44
|
+
function L(t, e, o, i) {
|
|
45
|
+
e === void 0 && (e = !1), o === void 0 && (o = !1);
|
|
46
|
+
const s = t.getBoundingClientRect(), c = $(t);
|
|
47
|
+
let n = x(1);
|
|
48
|
+
e && (i ? b(i) && (n = F(i)) : n = F(t));
|
|
49
|
+
const r = ft(c, o, i) ? G(c) : x(0);
|
|
50
|
+
let l = (s.left + r.x) / n.x, f = (s.top + r.y) / n.y, u = s.width / n.x, h = s.height / n.y;
|
|
51
|
+
if (c) {
|
|
52
|
+
const w = E(c), g = i && b(i) ? E(i) : i;
|
|
53
|
+
let v = w, a = v.frameElement;
|
|
54
|
+
for (; a && i && g !== v; ) {
|
|
55
|
+
const p = F(a), d = a.getBoundingClientRect(), m = y(a), O = d.left + (a.clientLeft + parseFloat(m.paddingLeft)) * p.x, B = d.top + (a.clientTop + parseFloat(m.paddingTop)) * p.y;
|
|
56
|
+
l *= p.x, f *= p.y, u *= p.x, h *= p.y, l += O, f += B, v = E(a), a = v.frameElement;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return q({
|
|
60
|
+
width: u,
|
|
61
|
+
height: h,
|
|
62
|
+
x: l,
|
|
63
|
+
y: f
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
const ut = [":popover-open", ":modal"];
|
|
67
|
+
function J(t) {
|
|
68
|
+
return ut.some((e) => {
|
|
69
|
+
try {
|
|
70
|
+
return t.matches(e);
|
|
71
|
+
} catch {
|
|
72
|
+
return !1;
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
function ht(t) {
|
|
77
|
+
let {
|
|
78
|
+
elements: e,
|
|
79
|
+
rect: o,
|
|
80
|
+
offsetParent: i,
|
|
81
|
+
strategy: s
|
|
82
|
+
} = t;
|
|
83
|
+
const c = s === "fixed", n = C(i), r = e ? J(e.floating) : !1;
|
|
84
|
+
if (i === n || r && c)
|
|
85
|
+
return o;
|
|
86
|
+
let l = {
|
|
87
|
+
scrollLeft: 0,
|
|
88
|
+
scrollTop: 0
|
|
89
|
+
}, f = x(1);
|
|
90
|
+
const u = x(0), h = R(i);
|
|
91
|
+
if ((h || !h && !c) && ((W(i) !== "body" || S(n)) && (l = N(i)), R(i))) {
|
|
92
|
+
const w = L(i);
|
|
93
|
+
f = F(i), u.x = w.x + i.clientLeft, u.y = w.y + i.clientTop;
|
|
94
|
+
}
|
|
95
|
+
return {
|
|
96
|
+
width: o.width * f.x,
|
|
97
|
+
height: o.height * f.y,
|
|
98
|
+
x: o.x * f.x - l.scrollLeft * f.x + u.x,
|
|
99
|
+
y: o.y * f.y - l.scrollTop * f.y + u.y
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
function at(t) {
|
|
103
|
+
return Array.from(t.getClientRects());
|
|
104
|
+
}
|
|
105
|
+
function Q(t) {
|
|
106
|
+
return L(C(t)).left + N(t).scrollLeft;
|
|
107
|
+
}
|
|
108
|
+
function dt(t) {
|
|
109
|
+
const e = C(t), o = N(t), i = t.ownerDocument.body, s = T(e.scrollWidth, e.clientWidth, i.scrollWidth, i.clientWidth), c = T(e.scrollHeight, e.clientHeight, i.scrollHeight, i.clientHeight);
|
|
110
|
+
let n = -o.scrollLeft + Q(t);
|
|
111
|
+
const r = -o.scrollTop;
|
|
112
|
+
return y(i).direction === "rtl" && (n += T(e.clientWidth, i.clientWidth) - s), {
|
|
113
|
+
width: s,
|
|
114
|
+
height: c,
|
|
115
|
+
x: n,
|
|
116
|
+
y: r
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
function gt(t, e) {
|
|
120
|
+
const o = E(t), i = C(t), s = o.visualViewport;
|
|
121
|
+
let c = i.clientWidth, n = i.clientHeight, r = 0, l = 0;
|
|
122
|
+
if (s) {
|
|
123
|
+
c = s.width, n = s.height;
|
|
124
|
+
const f = X();
|
|
125
|
+
(!f || f && e === "fixed") && (r = s.offsetLeft, l = s.offsetTop);
|
|
126
|
+
}
|
|
127
|
+
return {
|
|
128
|
+
width: c,
|
|
129
|
+
height: n,
|
|
130
|
+
x: r,
|
|
131
|
+
y: l
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
function pt(t, e) {
|
|
135
|
+
const o = L(t, !0, e === "fixed"), i = o.top + t.clientTop, s = o.left + t.clientLeft, c = R(t) ? F(t) : x(1), n = t.clientWidth * c.x, r = t.clientHeight * c.y, l = s * c.x, f = i * c.y;
|
|
136
|
+
return {
|
|
137
|
+
width: n,
|
|
138
|
+
height: r,
|
|
139
|
+
x: l,
|
|
140
|
+
y: f
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
function _(t, e, o) {
|
|
144
|
+
let i;
|
|
145
|
+
if (e === "viewport")
|
|
146
|
+
i = gt(t, o);
|
|
147
|
+
else if (e === "document")
|
|
148
|
+
i = dt(C(t));
|
|
149
|
+
else if (b(e))
|
|
150
|
+
i = pt(e, o);
|
|
151
|
+
else {
|
|
152
|
+
const s = G(t);
|
|
153
|
+
i = {
|
|
154
|
+
...e,
|
|
155
|
+
x: e.x - s.x,
|
|
156
|
+
y: e.y - s.y
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
return q(i);
|
|
160
|
+
}
|
|
161
|
+
function Y(t, e) {
|
|
162
|
+
const o = V(t);
|
|
163
|
+
return o === e || !b(o) || K(o) ? !1 : y(o).position === "fixed" || Y(o, e);
|
|
164
|
+
}
|
|
165
|
+
function mt(t, e) {
|
|
166
|
+
const o = e.get(t);
|
|
167
|
+
if (o)
|
|
168
|
+
return o;
|
|
169
|
+
let i = I(t, [], !1).filter((r) => b(r) && W(r) !== "body"), s = null;
|
|
170
|
+
const c = y(t).position === "fixed";
|
|
171
|
+
let n = c ? V(t) : t;
|
|
172
|
+
for (; b(n) && !K(n); ) {
|
|
173
|
+
const r = y(n), l = U(n);
|
|
174
|
+
!l && r.position === "fixed" && (s = null), (c ? !l && !s : !l && r.position === "static" && !!s && ["absolute", "fixed"].includes(s.position) || S(n) && !l && Y(t, n)) ? i = i.filter((u) => u !== n) : s = r, n = V(n);
|
|
175
|
+
}
|
|
176
|
+
return e.set(t, i), i;
|
|
177
|
+
}
|
|
178
|
+
function wt(t) {
|
|
179
|
+
let {
|
|
180
|
+
element: e,
|
|
181
|
+
boundary: o,
|
|
182
|
+
rootBoundary: i,
|
|
183
|
+
strategy: s
|
|
184
|
+
} = t;
|
|
185
|
+
const n = [...o === "clippingAncestors" ? mt(e, this._c) : [].concat(o), i], r = n[0], l = n.reduce((f, u) => {
|
|
186
|
+
const h = _(e, u, s);
|
|
187
|
+
return f.top = T(h.top, f.top), f.right = H(h.right, f.right), f.bottom = H(h.bottom, f.bottom), f.left = T(h.left, f.left), f;
|
|
188
|
+
}, _(e, r, s));
|
|
189
|
+
return {
|
|
190
|
+
width: l.right - l.left,
|
|
191
|
+
height: l.bottom - l.top,
|
|
192
|
+
x: l.left,
|
|
193
|
+
y: l.top
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
function yt(t) {
|
|
197
|
+
const {
|
|
198
|
+
width: e,
|
|
199
|
+
height: o
|
|
200
|
+
} = j(t);
|
|
201
|
+
return {
|
|
202
|
+
width: e,
|
|
203
|
+
height: o
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
function vt(t, e, o) {
|
|
207
|
+
const i = R(e), s = C(e), c = o === "fixed", n = L(t, !0, c, e);
|
|
208
|
+
let r = {
|
|
209
|
+
scrollLeft: 0,
|
|
210
|
+
scrollTop: 0
|
|
211
|
+
};
|
|
212
|
+
const l = x(0);
|
|
213
|
+
if (i || !i && !c)
|
|
214
|
+
if ((W(e) !== "body" || S(s)) && (r = N(e)), i) {
|
|
215
|
+
const h = L(e, !0, c, e);
|
|
216
|
+
l.x = h.x + e.clientLeft, l.y = h.y + e.clientTop;
|
|
217
|
+
} else
|
|
218
|
+
s && (l.x = Q(s));
|
|
219
|
+
const f = n.left + r.scrollLeft - l.x, u = n.top + r.scrollTop - l.y;
|
|
220
|
+
return {
|
|
221
|
+
x: f,
|
|
222
|
+
y: u,
|
|
223
|
+
width: n.width,
|
|
224
|
+
height: n.height
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
function k(t, e) {
|
|
228
|
+
return !R(t) || y(t).position === "fixed" ? null : e ? e(t) : t.offsetParent;
|
|
229
|
+
}
|
|
230
|
+
function Z(t, e) {
|
|
231
|
+
const o = E(t);
|
|
232
|
+
if (!R(t) || J(t))
|
|
233
|
+
return o;
|
|
234
|
+
let i = k(t, e);
|
|
235
|
+
for (; i && rt(i) && y(i).position === "static"; )
|
|
236
|
+
i = k(i, e);
|
|
237
|
+
return i && (W(i) === "html" || W(i) === "body" && y(i).position === "static" && !U(i)) ? o : i || ct(t) || o;
|
|
238
|
+
}
|
|
239
|
+
const xt = async function(t) {
|
|
240
|
+
const e = this.getOffsetParent || Z, o = this.getDimensions;
|
|
241
|
+
return {
|
|
242
|
+
reference: vt(t.reference, await e(t.floating), t.strategy),
|
|
243
|
+
floating: {
|
|
244
|
+
x: 0,
|
|
245
|
+
y: 0,
|
|
246
|
+
...await o(t.floating)
|
|
247
|
+
}
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
function bt(t) {
|
|
251
|
+
return y(t).direction === "rtl";
|
|
252
|
+
}
|
|
253
|
+
const Rt = {
|
|
254
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: ht,
|
|
255
|
+
getDocumentElement: C,
|
|
256
|
+
getClippingRect: wt,
|
|
257
|
+
getOffsetParent: Z,
|
|
258
|
+
getElementRects: xt,
|
|
259
|
+
getClientRects: at,
|
|
260
|
+
getDimensions: yt,
|
|
261
|
+
getScale: F,
|
|
262
|
+
isElement: b,
|
|
263
|
+
isRTL: bt
|
|
264
|
+
};
|
|
265
|
+
function Ct(t, e) {
|
|
266
|
+
let o = null, i;
|
|
267
|
+
const s = C(t);
|
|
268
|
+
function c() {
|
|
269
|
+
var r;
|
|
270
|
+
clearTimeout(i), (r = o) == null || r.disconnect(), o = null;
|
|
271
|
+
}
|
|
272
|
+
function n(r, l) {
|
|
273
|
+
r === void 0 && (r = !1), l === void 0 && (l = 1), c();
|
|
274
|
+
const {
|
|
275
|
+
left: f,
|
|
276
|
+
top: u,
|
|
277
|
+
width: h,
|
|
278
|
+
height: w
|
|
279
|
+
} = t.getBoundingClientRect();
|
|
280
|
+
if (r || e(), !h || !w)
|
|
281
|
+
return;
|
|
282
|
+
const g = z(u), v = z(s.clientWidth - (f + h)), a = z(s.clientHeight - (u + w)), p = z(f), m = {
|
|
283
|
+
rootMargin: -g + "px " + -v + "px " + -a + "px " + -p + "px",
|
|
284
|
+
threshold: T(0, H(1, l)) || 1
|
|
285
|
+
};
|
|
286
|
+
let O = !0;
|
|
287
|
+
function B(M) {
|
|
288
|
+
const D = M[0].intersectionRatio;
|
|
289
|
+
if (D !== l) {
|
|
290
|
+
if (!O)
|
|
291
|
+
return n();
|
|
292
|
+
D ? n(!1, D) : i = setTimeout(() => {
|
|
293
|
+
n(!1, 1e-7);
|
|
294
|
+
}, 100);
|
|
295
|
+
}
|
|
296
|
+
O = !1;
|
|
297
|
+
}
|
|
298
|
+
try {
|
|
299
|
+
o = new IntersectionObserver(B, {
|
|
300
|
+
...m,
|
|
301
|
+
// Handle <iframe>s
|
|
302
|
+
root: s.ownerDocument
|
|
303
|
+
});
|
|
304
|
+
} catch {
|
|
305
|
+
o = new IntersectionObserver(B, m);
|
|
306
|
+
}
|
|
307
|
+
o.observe(t);
|
|
308
|
+
}
|
|
309
|
+
return n(!0), c;
|
|
310
|
+
}
|
|
311
|
+
function Tt(t, e, o, i) {
|
|
312
|
+
i === void 0 && (i = {});
|
|
313
|
+
const {
|
|
314
|
+
ancestorScroll: s = !0,
|
|
315
|
+
ancestorResize: c = !0,
|
|
316
|
+
elementResize: n = typeof ResizeObserver == "function",
|
|
317
|
+
layoutShift: r = typeof IntersectionObserver == "function",
|
|
318
|
+
animationFrame: l = !1
|
|
319
|
+
} = i, f = $(t), u = s || c ? [...f ? I(f) : [], ...I(e)] : [];
|
|
320
|
+
u.forEach((d) => {
|
|
321
|
+
s && d.addEventListener("scroll", o, {
|
|
322
|
+
passive: !0
|
|
323
|
+
}), c && d.addEventListener("resize", o);
|
|
324
|
+
});
|
|
325
|
+
const h = f && r ? Ct(f, o) : null;
|
|
326
|
+
let w = -1, g = null;
|
|
327
|
+
n && (g = new ResizeObserver((d) => {
|
|
328
|
+
let [m] = d;
|
|
329
|
+
m && m.target === f && g && (g.unobserve(e), cancelAnimationFrame(w), w = requestAnimationFrame(() => {
|
|
330
|
+
var O;
|
|
331
|
+
(O = g) == null || O.observe(e);
|
|
332
|
+
})), o();
|
|
333
|
+
}), f && !l && g.observe(f), g.observe(e));
|
|
334
|
+
let v, a = l ? L(t) : null;
|
|
335
|
+
l && p();
|
|
336
|
+
function p() {
|
|
337
|
+
const d = L(t);
|
|
338
|
+
a && (d.x !== a.x || d.y !== a.y || d.width !== a.width || d.height !== a.height) && o(), a = d, v = requestAnimationFrame(p);
|
|
339
|
+
}
|
|
340
|
+
return o(), () => {
|
|
341
|
+
var d;
|
|
342
|
+
u.forEach((m) => {
|
|
343
|
+
s && m.removeEventListener("scroll", o), c && m.removeEventListener("resize", o);
|
|
344
|
+
}), h == null || h(), (d = g) == null || d.disconnect(), g = null, l && cancelAnimationFrame(v);
|
|
345
|
+
};
|
|
346
|
+
}
|
|
347
|
+
const Ft = P, Wt = tt, Bt = et, zt = it, At = nt, Nt = st, Dt = (t, e, o) => {
|
|
348
|
+
const i = /* @__PURE__ */ new Map(), s = {
|
|
349
|
+
platform: Rt,
|
|
350
|
+
...o
|
|
351
|
+
}, c = {
|
|
352
|
+
...s.platform,
|
|
353
|
+
_c: i
|
|
354
|
+
};
|
|
355
|
+
return ot(t, e, {
|
|
356
|
+
...s,
|
|
357
|
+
platform: c
|
|
358
|
+
});
|
|
359
|
+
};
|
|
360
|
+
export {
|
|
361
|
+
At as arrow,
|
|
362
|
+
Tt as autoUpdate,
|
|
363
|
+
Dt as computePosition,
|
|
364
|
+
Vt as detectOverflow,
|
|
365
|
+
Wt as flip,
|
|
366
|
+
I as getOverflowAncestors,
|
|
367
|
+
zt as hide,
|
|
368
|
+
Nt as limitShift,
|
|
369
|
+
St as offset,
|
|
370
|
+
Rt as platform,
|
|
371
|
+
Ft as shift,
|
|
372
|
+
Bt as size
|
|
373
|
+
};
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { computePosition as H, arrow as L } from "../../../../../@floating-ui_dom@1.6.3/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs";
|
|
2
|
+
import { autoUpdate as b, flip as ee, hide as te, limitShift as re, platform as ne, shift as fe, size as oe } from "../../../../../@floating-ui_dom@1.6.3/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs";
|
|
3
|
+
import * as f from "react";
|
|
4
|
+
import { useLayoutEffect as I, useEffect as J } from "react";
|
|
5
|
+
import * as K from "react-dom";
|
|
6
|
+
const T = (e) => {
|
|
7
|
+
function t(r) {
|
|
8
|
+
return {}.hasOwnProperty.call(r, "current");
|
|
9
|
+
}
|
|
10
|
+
return {
|
|
11
|
+
name: "arrow",
|
|
12
|
+
options: e,
|
|
13
|
+
fn(r) {
|
|
14
|
+
const {
|
|
15
|
+
element: n,
|
|
16
|
+
padding: i
|
|
17
|
+
} = typeof e == "function" ? e(r) : e;
|
|
18
|
+
return n && t(n) ? n.current != null ? L({
|
|
19
|
+
element: n.current,
|
|
20
|
+
padding: i
|
|
21
|
+
}).fn(r) : {} : n ? L({
|
|
22
|
+
element: n,
|
|
23
|
+
padding: i
|
|
24
|
+
}).fn(r) : {};
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
var R = typeof document < "u" ? I : J;
|
|
29
|
+
function h(e, t) {
|
|
30
|
+
if (e === t)
|
|
31
|
+
return !0;
|
|
32
|
+
if (typeof e != typeof t)
|
|
33
|
+
return !1;
|
|
34
|
+
if (typeof e == "function" && e.toString() === t.toString())
|
|
35
|
+
return !0;
|
|
36
|
+
let r, n, i;
|
|
37
|
+
if (e && t && typeof e == "object") {
|
|
38
|
+
if (Array.isArray(e)) {
|
|
39
|
+
if (r = e.length, r !== t.length)
|
|
40
|
+
return !1;
|
|
41
|
+
for (n = r; n-- !== 0; )
|
|
42
|
+
if (!h(e[n], t[n]))
|
|
43
|
+
return !1;
|
|
44
|
+
return !0;
|
|
45
|
+
}
|
|
46
|
+
if (i = Object.keys(e), r = i.length, r !== Object.keys(t).length)
|
|
47
|
+
return !1;
|
|
48
|
+
for (n = r; n-- !== 0; )
|
|
49
|
+
if (!{}.hasOwnProperty.call(t, i[n]))
|
|
50
|
+
return !1;
|
|
51
|
+
for (n = r; n-- !== 0; ) {
|
|
52
|
+
const p = i[n];
|
|
53
|
+
if (!(p === "_owner" && e.$$typeof) && !h(e[p], t[p]))
|
|
54
|
+
return !1;
|
|
55
|
+
}
|
|
56
|
+
return !0;
|
|
57
|
+
}
|
|
58
|
+
return e !== e && t !== t;
|
|
59
|
+
}
|
|
60
|
+
function A(e) {
|
|
61
|
+
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
62
|
+
}
|
|
63
|
+
function $(e, t) {
|
|
64
|
+
const r = A(e);
|
|
65
|
+
return Math.round(t * r) / r;
|
|
66
|
+
}
|
|
67
|
+
function v(e) {
|
|
68
|
+
const t = f.useRef(e);
|
|
69
|
+
return R(() => {
|
|
70
|
+
t.current = e;
|
|
71
|
+
}), t;
|
|
72
|
+
}
|
|
73
|
+
function X(e) {
|
|
74
|
+
e === void 0 && (e = {});
|
|
75
|
+
const {
|
|
76
|
+
placement: t = "bottom",
|
|
77
|
+
strategy: r = "absolute",
|
|
78
|
+
middleware: n = [],
|
|
79
|
+
platform: i,
|
|
80
|
+
elements: {
|
|
81
|
+
reference: p,
|
|
82
|
+
floating: q
|
|
83
|
+
} = {},
|
|
84
|
+
transform: E = !0,
|
|
85
|
+
whileElementsMounted: k,
|
|
86
|
+
open: D
|
|
87
|
+
} = e, [u, O] = f.useState({
|
|
88
|
+
x: 0,
|
|
89
|
+
y: 0,
|
|
90
|
+
strategy: r,
|
|
91
|
+
placement: t,
|
|
92
|
+
middlewareData: {},
|
|
93
|
+
isPositioned: !1
|
|
94
|
+
}), [x, z] = f.useState(n);
|
|
95
|
+
h(x, n) || z(n);
|
|
96
|
+
const [B, U] = f.useState(null), [V, W] = f.useState(null), _ = f.useCallback((o) => {
|
|
97
|
+
o !== a.current && (a.current = o, U(o));
|
|
98
|
+
}, []), C = f.useCallback((o) => {
|
|
99
|
+
o !== d.current && (d.current = o, W(o));
|
|
100
|
+
}, []), s = p || B, l = q || V, a = f.useRef(null), d = f.useRef(null), y = f.useRef(u), G = k != null, M = v(k), P = v(i), g = f.useCallback(() => {
|
|
101
|
+
if (!a.current || !d.current)
|
|
102
|
+
return;
|
|
103
|
+
const o = {
|
|
104
|
+
placement: t,
|
|
105
|
+
strategy: r,
|
|
106
|
+
middleware: x
|
|
107
|
+
};
|
|
108
|
+
P.current && (o.platform = P.current), H(a.current, d.current, o).then((w) => {
|
|
109
|
+
const m = {
|
|
110
|
+
...w,
|
|
111
|
+
isPositioned: !0
|
|
112
|
+
};
|
|
113
|
+
S.current && !h(y.current, m) && (y.current = m, K.flushSync(() => {
|
|
114
|
+
O(m);
|
|
115
|
+
}));
|
|
116
|
+
});
|
|
117
|
+
}, [x, t, r, P]);
|
|
118
|
+
R(() => {
|
|
119
|
+
D === !1 && y.current.isPositioned && (y.current.isPositioned = !1, O((o) => ({
|
|
120
|
+
...o,
|
|
121
|
+
isPositioned: !1
|
|
122
|
+
})));
|
|
123
|
+
}, [D]);
|
|
124
|
+
const S = f.useRef(!1);
|
|
125
|
+
R(() => (S.current = !0, () => {
|
|
126
|
+
S.current = !1;
|
|
127
|
+
}), []), R(() => {
|
|
128
|
+
if (s && (a.current = s), l && (d.current = l), s && l) {
|
|
129
|
+
if (M.current)
|
|
130
|
+
return M.current(s, l, g);
|
|
131
|
+
g();
|
|
132
|
+
}
|
|
133
|
+
}, [s, l, g, M, G]);
|
|
134
|
+
const F = f.useMemo(() => ({
|
|
135
|
+
reference: a,
|
|
136
|
+
floating: d,
|
|
137
|
+
setReference: _,
|
|
138
|
+
setFloating: C
|
|
139
|
+
}), [_, C]), c = f.useMemo(() => ({
|
|
140
|
+
reference: s,
|
|
141
|
+
floating: l
|
|
142
|
+
}), [s, l]), j = f.useMemo(() => {
|
|
143
|
+
const o = {
|
|
144
|
+
position: r,
|
|
145
|
+
left: 0,
|
|
146
|
+
top: 0
|
|
147
|
+
};
|
|
148
|
+
if (!c.floating)
|
|
149
|
+
return o;
|
|
150
|
+
const w = $(c.floating, u.x), m = $(c.floating, u.y);
|
|
151
|
+
return E ? {
|
|
152
|
+
...o,
|
|
153
|
+
transform: "translate(" + w + "px, " + m + "px)",
|
|
154
|
+
...A(c.floating) >= 1.5 && {
|
|
155
|
+
willChange: "transform"
|
|
156
|
+
}
|
|
157
|
+
} : {
|
|
158
|
+
position: r,
|
|
159
|
+
left: w,
|
|
160
|
+
top: m
|
|
161
|
+
};
|
|
162
|
+
}, [r, E, c.floating, u.x, u.y]);
|
|
163
|
+
return f.useMemo(() => ({
|
|
164
|
+
...u,
|
|
165
|
+
update: g,
|
|
166
|
+
refs: F,
|
|
167
|
+
elements: c,
|
|
168
|
+
floatingStyles: j
|
|
169
|
+
}), [u, g, F, c, j]);
|
|
170
|
+
}
|
|
171
|
+
export {
|
|
172
|
+
T as arrow,
|
|
173
|
+
b as autoUpdate,
|
|
174
|
+
H as computePosition,
|
|
175
|
+
ee as flip,
|
|
176
|
+
te as hide,
|
|
177
|
+
re as limitShift,
|
|
178
|
+
ne as platform,
|
|
179
|
+
fe as shift,
|
|
180
|
+
oe as size,
|
|
181
|
+
X as useFloating
|
|
182
|
+
};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
function l(n) {
|
|
2
|
+
return a(n) ? (n.nodeName || "").toLowerCase() : "#document";
|
|
3
|
+
}
|
|
4
|
+
function i(n) {
|
|
5
|
+
var t;
|
|
6
|
+
return (n == null || (t = n.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
7
|
+
}
|
|
8
|
+
function y(n) {
|
|
9
|
+
var t;
|
|
10
|
+
return (t = (a(n) ? n.ownerDocument : n.document) || window.document) == null ? void 0 : t.documentElement;
|
|
11
|
+
}
|
|
12
|
+
function a(n) {
|
|
13
|
+
return n instanceof Node || n instanceof i(n).Node;
|
|
14
|
+
}
|
|
15
|
+
function S(n) {
|
|
16
|
+
return n instanceof Element || n instanceof i(n).Element;
|
|
17
|
+
}
|
|
18
|
+
function d(n) {
|
|
19
|
+
return n instanceof HTMLElement || n instanceof i(n).HTMLElement;
|
|
20
|
+
}
|
|
21
|
+
function s(n) {
|
|
22
|
+
return typeof ShadowRoot > "u" ? !1 : n instanceof ShadowRoot || n instanceof i(n).ShadowRoot;
|
|
23
|
+
}
|
|
24
|
+
function m(n) {
|
|
25
|
+
const {
|
|
26
|
+
overflow: t,
|
|
27
|
+
overflowX: e,
|
|
28
|
+
overflowY: o,
|
|
29
|
+
display: r
|
|
30
|
+
} = p(n);
|
|
31
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + o + e) && !["inline", "contents"].includes(r);
|
|
32
|
+
}
|
|
33
|
+
function E(n) {
|
|
34
|
+
return ["table", "td", "th"].includes(l(n));
|
|
35
|
+
}
|
|
36
|
+
function N(n) {
|
|
37
|
+
const t = h(), e = p(n);
|
|
38
|
+
return e.transform !== "none" || e.perspective !== "none" || (e.containerType ? e.containerType !== "normal" : !1) || !t && (e.backdropFilter ? e.backdropFilter !== "none" : !1) || !t && (e.filter ? e.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((o) => (e.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (e.contain || "").includes(o));
|
|
39
|
+
}
|
|
40
|
+
function T(n) {
|
|
41
|
+
let t = u(n);
|
|
42
|
+
for (; d(t) && !w(t); ) {
|
|
43
|
+
if (N(t))
|
|
44
|
+
return t;
|
|
45
|
+
t = u(t);
|
|
46
|
+
}
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
function h() {
|
|
50
|
+
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
51
|
+
}
|
|
52
|
+
function w(n) {
|
|
53
|
+
return ["html", "body", "#document"].includes(l(n));
|
|
54
|
+
}
|
|
55
|
+
function p(n) {
|
|
56
|
+
return i(n).getComputedStyle(n);
|
|
57
|
+
}
|
|
58
|
+
function C(n) {
|
|
59
|
+
return S(n) ? {
|
|
60
|
+
scrollLeft: n.scrollLeft,
|
|
61
|
+
scrollTop: n.scrollTop
|
|
62
|
+
} : {
|
|
63
|
+
scrollLeft: n.pageXOffset,
|
|
64
|
+
scrollTop: n.pageYOffset
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
function u(n) {
|
|
68
|
+
if (l(n) === "html")
|
|
69
|
+
return n;
|
|
70
|
+
const t = (
|
|
71
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
|
72
|
+
n.assignedSlot || // DOM Element detected.
|
|
73
|
+
n.parentNode || // ShadowRoot detected.
|
|
74
|
+
s(n) && n.host || // Fallback.
|
|
75
|
+
y(n)
|
|
76
|
+
);
|
|
77
|
+
return s(t) ? t.host : t;
|
|
78
|
+
}
|
|
79
|
+
function g(n) {
|
|
80
|
+
const t = u(n);
|
|
81
|
+
return w(t) ? n.ownerDocument ? n.ownerDocument.body : n.body : d(t) && m(t) ? t : g(t);
|
|
82
|
+
}
|
|
83
|
+
function f(n, t, e) {
|
|
84
|
+
var o;
|
|
85
|
+
t === void 0 && (t = []), e === void 0 && (e = !0);
|
|
86
|
+
const r = g(n), b = r === ((o = n.ownerDocument) == null ? void 0 : o.body), c = i(r);
|
|
87
|
+
return b ? t.concat(c, c.visualViewport || [], m(r) ? r : [], c.frameElement && e ? f(c.frameElement) : []) : t.concat(r, f(r, [], e));
|
|
88
|
+
}
|
|
89
|
+
export {
|
|
90
|
+
p as getComputedStyle,
|
|
91
|
+
T as getContainingBlock,
|
|
92
|
+
y as getDocumentElement,
|
|
93
|
+
g as getNearestOverflowAncestor,
|
|
94
|
+
l as getNodeName,
|
|
95
|
+
C as getNodeScroll,
|
|
96
|
+
f as getOverflowAncestors,
|
|
97
|
+
u as getParentNode,
|
|
98
|
+
i as getWindow,
|
|
99
|
+
N as isContainingBlock,
|
|
100
|
+
S as isElement,
|
|
101
|
+
d as isHTMLElement,
|
|
102
|
+
w as isLastTraversableNode,
|
|
103
|
+
a as isNode,
|
|
104
|
+
m as isOverflowElement,
|
|
105
|
+
s as isShadowRoot,
|
|
106
|
+
E as isTableElement,
|
|
107
|
+
h as isWebKit
|
|
108
|
+
};
|