194 lines
4.9 KiB
JavaScript
194 lines
4.9 KiB
JavaScript
/*
|
|
* Extracted from browser-delivered Turbopack chunk: 20293dbce215808d.10cf9e27a9.js
|
|
* Module id: 888659
|
|
* For reading/searching only; this factory depends on the original Turbopack runtime.
|
|
*/
|
|
|
|
const moduleFactory = (e) => {
|
|
"use strict";
|
|
function t() {
|
|
return "u" > typeof window;
|
|
}
|
|
function n(e) {
|
|
return i(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
}
|
|
function r(e) {
|
|
var t;
|
|
return (
|
|
(null == e || null == (t = e.ownerDocument) ? void 0 : t.defaultView) ||
|
|
window
|
|
);
|
|
}
|
|
function o(e) {
|
|
var t;
|
|
return null ==
|
|
(t = (i(e) ? e.ownerDocument : e.document) || window.document)
|
|
? void 0
|
|
: t.documentElement;
|
|
}
|
|
function i(e) {
|
|
return !!t() && (e instanceof Node || e instanceof r(e).Node);
|
|
}
|
|
function l(e) {
|
|
return !!t() && (e instanceof Element || e instanceof r(e).Element);
|
|
}
|
|
function a(e) {
|
|
return (
|
|
!!t() && (e instanceof HTMLElement || e instanceof r(e).HTMLElement)
|
|
);
|
|
}
|
|
function u(e) {
|
|
return (
|
|
!(!t() || "u" < typeof ShadowRoot) &&
|
|
(e instanceof ShadowRoot || e instanceof r(e).ShadowRoot)
|
|
);
|
|
}
|
|
let s = new Set(["inline", "contents"]);
|
|
function c(e) {
|
|
let { overflow: t, overflowX: n, overflowY: r, display: o } = S(e);
|
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !s.has(o);
|
|
}
|
|
let d = new Set(["table", "td", "th"]);
|
|
function f(e) {
|
|
return d.has(n(e));
|
|
}
|
|
let m = [":popover-open", ":modal"];
|
|
function p(e) {
|
|
return m.some((t) => {
|
|
try {
|
|
return e.matches(t);
|
|
} catch (e) {
|
|
return !1;
|
|
}
|
|
});
|
|
}
|
|
let v = ["transform", "translate", "scale", "rotate", "perspective"],
|
|
g = [
|
|
"transform",
|
|
"translate",
|
|
"scale",
|
|
"rotate",
|
|
"perspective",
|
|
"filter",
|
|
],
|
|
h = ["paint", "layout", "strict", "content"];
|
|
function y(e) {
|
|
let t = b(),
|
|
n = l(e) ? S(e) : e;
|
|
return (
|
|
v.some((e) => !!n[e] && "none" !== n[e]) ||
|
|
(!!n.containerType && "normal" !== n.containerType) ||
|
|
(!t && !!n.backdropFilter && "none" !== n.backdropFilter) ||
|
|
(!t && !!n.filter && "none" !== n.filter) ||
|
|
g.some((e) => (n.willChange || "").includes(e)) ||
|
|
h.some((e) => (n.contain || "").includes(e))
|
|
);
|
|
}
|
|
function w(e) {
|
|
let t = R(e);
|
|
for (; a(t) && !E(t); ) {
|
|
if (y(t)) return t;
|
|
if (p(t)) break;
|
|
t = R(t);
|
|
}
|
|
return null;
|
|
}
|
|
function b() {
|
|
return (
|
|
!("u" < typeof CSS) &&
|
|
!!CSS.supports &&
|
|
CSS.supports("-webkit-backdrop-filter", "none")
|
|
);
|
|
}
|
|
let x = new Set(["html", "body", "#document"]);
|
|
function E(e) {
|
|
return x.has(n(e));
|
|
}
|
|
function S(e) {
|
|
return r(e).getComputedStyle(e);
|
|
}
|
|
function C(e) {
|
|
return l(e)
|
|
? { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop }
|
|
: { scrollLeft: e.scrollX, scrollTop: e.scrollY };
|
|
}
|
|
function R(e) {
|
|
if ("html" === n(e)) return e;
|
|
let t = e.assignedSlot || e.parentNode || (u(e) && e.host) || o(e);
|
|
return u(t) ? t.host : t;
|
|
}
|
|
function T(e) {
|
|
return e.parent && Object.getPrototypeOf(e.parent)
|
|
? e.frameElement
|
|
: null;
|
|
}
|
|
e.s([
|
|
"getComputedStyle",
|
|
() => S,
|
|
"getContainingBlock",
|
|
() => w,
|
|
"getDocumentElement",
|
|
() => o,
|
|
"getFrameElement",
|
|
() => T,
|
|
"getNodeName",
|
|
() => n,
|
|
"getNodeScroll",
|
|
() => C,
|
|
"getOverflowAncestors",
|
|
() =>
|
|
function e(t, n, o) {
|
|
var i;
|
|
void 0 === n && (n = []), void 0 === o && (o = !0);
|
|
let l = (function e(t) {
|
|
let n = R(t);
|
|
return E(n)
|
|
? t.ownerDocument
|
|
? t.ownerDocument.body
|
|
: t.body
|
|
: a(n) && c(n)
|
|
? n
|
|
: e(n);
|
|
})(t),
|
|
u = l === (null == (i = t.ownerDocument) ? void 0 : i.body),
|
|
s = r(l);
|
|
if (u) {
|
|
let t = T(s);
|
|
return n.concat(
|
|
s,
|
|
s.visualViewport || [],
|
|
c(l) ? l : [],
|
|
t && o ? e(t) : [],
|
|
);
|
|
}
|
|
return n.concat(l, e(l, [], o));
|
|
},
|
|
"getParentNode",
|
|
() => R,
|
|
"getWindow",
|
|
() => r,
|
|
"isContainingBlock",
|
|
() => y,
|
|
"isElement",
|
|
() => l,
|
|
"isHTMLElement",
|
|
() => a,
|
|
"isLastTraversableNode",
|
|
() => E,
|
|
"isNode",
|
|
() => i,
|
|
"isOverflowElement",
|
|
() => c,
|
|
"isShadowRoot",
|
|
() => u,
|
|
"isTableElement",
|
|
() => f,
|
|
"isTopLayer",
|
|
() => p,
|
|
"isWebKit",
|
|
() => b,
|
|
]);
|
|
};
|
|
|
|
export default moduleFactory;
|