@sohail2001/klinecharts-pro
Version:
Use KLineChart like a Pro
1,822 lines • 218 kB
JavaScript
var g5 = Object.defineProperty;
var d5 = (e, t, n) => t in e ? g5(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
var E1 = (e, t, n) => (d5(e, typeof t != "symbol" ? t + "" : t, n), n);
import { utils as B, init as y5, FormatDateType as V1, DomPosition as Z0, ActionType as h5, dispose as p5, TooltipIconPosition as H1, registerOverlay as m5 } from "klinecharts";
function j1(e, t, n) {
const r = (e.x - t.x) * Math.cos(n) - (e.y - t.y) * Math.sin(n) + t.x, a = (e.x - t.x) * Math.sin(n) + (e.y - t.y) * Math.cos(n) + t.y;
return { x: r, y: a };
}
function m0(e, t) {
if (e.length > 1) {
let n;
return e[0].x === e[1].x && e[0].y !== e[1].y ? e[0].y < e[1].y ? n = {
x: e[0].x,
y: t.height
} : n = {
x: e[0].x,
y: 0
} : e[0].x > e[1].x ? n = {
x: 0,
y: B.getLinearYFromCoordinates(e[0], e[1], { x: 0, y: e[0].y })
} : n = {
x: t.width,
y: B.getLinearYFromCoordinates(e[0], e[1], { x: t.width, y: e[0].y })
}, { coordinates: [e[0], n] };
}
return [];
}
function w9(e, t) {
const n = Math.abs(e.x - t.x), r = Math.abs(e.y - t.y);
return Math.sqrt(n * n + r * r);
}
const v5 = {
name: "arrow",
totalStep: 3,
needDefaultPointFigure: !0,
needDefaultXAxisFigure: !0,
needDefaultYAxisFigure: !0,
createPointFigures: ({ coordinates: e }) => {
if (e.length > 1) {
const t = e[1].x > e[0].x ? 0 : 1, n = B.getLinearSlopeIntercept(e[0], e[1]);
let r;
n ? r = Math.atan(n[0]) + Math.PI * t : e[1].y > e[0].y ? r = Math.PI / 2 : r = Math.PI / 2 * 3;
const a = j1({ x: e[1].x - 8, y: e[1].y + 4 }, e[1], r), i = j1({ x: e[1].x - 8, y: e[1].y - 4 }, e[1], r);
return [
{
type: "line",
attrs: { coordinates: e }
},
{
type: "line",
ignoreEvent: !0,
attrs: { coordinates: [a, e[1], i] }
}
];
}
return [];
}
}, _5 = {
name: "circle",
totalStep: 3,
needDefaultPointFigure: !0,
needDefaultXAxisFigure: !0,
needDefaultYAxisFigure: !0,
styles: {
circle: {
color: "rgba(22, 119, 255, 0.15)"
}
},
createPointFigures: ({ coordinates: e }) => {
if (e.length > 1) {
const t = w9(e[0], e[1]);
return {
type: "circle",
attrs: {
...e[0],
r: t
},
styles: { style: "stroke_fill" }
};
}
return [];
}
}, L5 = {
name: "rect",
totalStep: 3,
needDefaultPointFigure: !0,
needDefaultXAxisFigure: !0,
needDefaultYAxisFigure: !0,
styles: {
polygon: {
color: "rgba(22, 119, 255, 0.15)"
}
},
createPointFigures: ({ coordinates: e }) => e.length > 1 ? [
{
type: "polygon",
attrs: {
coordinates: [
e[0],
{ x: e[1].x, y: e[0].y },
e[1],
{ x: e[0].x, y: e[1].y }
]
},
styles: { style: "stroke_fill" }
}
] : []
}, $5 = {
name: "parallelogram",
totalStep: 4,
needDefaultPointFigure: !0,
needDefaultXAxisFigure: !0,
needDefaultYAxisFigure: !0,
styles: {
polygon: {
color: "rgba(22, 119, 255, 0.15)"
}
},
createPointFigures: ({ coordinates: e }) => {
if (e.length === 2)
return [
{
type: "line",
ignoreEvent: !0,
attrs: { coordinates: e }
}
];
if (e.length === 3) {
const t = { x: e[0].x + (e[2].x - e[1].x), y: e[2].y };
return [
{
type: "polygon",
attrs: { coordinates: [e[0], e[1], e[2], t] },
styles: { style: "stroke_fill" }
}
];
}
return [];
},
performEventPressedMove: ({ points: e, performPointIndex: t, performPoint: n }) => {
t < 2 && (e[0].price = n.price, e[1].price = n.price);
},
performEventMoveForDrawing: ({ currentStep: e, points: t, performPoint: n }) => {
e === 2 && (t[0].price = n.price);
}
}, b5 = {
name: "triangle",
totalStep: 4,
needDefaultPointFigure: !0,
needDefaultXAxisFigure: !0,
needDefaultYAxisFigure: !0,
styles: {
polygon: {
color: "rgba(22, 119, 255, 0.15)"
}
},
createPointFigures: ({ coordinates: e }) => [
{
type: "polygon",
attrs: { coordinates: e },
styles: { style: "stroke_fill" }
}
]
}, x5 = {
name: "fibonacciCircle",
totalStep: 3,
needDefaultPointFigure: !0,
needDefaultXAxisFigure: !0,
needDefaultYAxisFigure: !0,
createPointFigures: ({ coordinates: e }) => {
if (e.length > 1) {
const t = Math.abs(e[0].x - e[1].x), n = Math.abs(e[0].y - e[1].y), r = Math.sqrt(t * t + n * n), a = [0.236, 0.382, 0.5, 0.618, 0.786, 1], i = [], o = [];
return a.forEach((s) => {
const c = r * s;
i.push(
{ ...e[0], r: c }
), o.push({
x: e[0].x,
y: e[0].y + c + 6,
text: `${(s * 100).toFixed(1)}%`
});
}), [
{
type: "circle",
attrs: i,
styles: { style: "stroke" }
},
{
type: "text",
ignoreEvent: !0,
attrs: o
}
];
}
return [];
}
}, k5 = {
name: "fibonacciSegment",
totalStep: 3,
needDefaultPointFigure: !0,
needDefaultXAxisFigure: !0,
needDefaultYAxisFigure: !0,
createPointFigures: ({ coordinates: e, overlay: t, precision: n }) => {
const r = [], a = [];
if (e.length > 1) {
const i = e[1].x > e[0].x ? e[0].x : e[1].x, o = [1, 0.786, 0.618, 0.5, 0.382, 0.236, 0], s = e[0].y - e[1].y, c = t.points, C = c[0].value - c[1].value;
o.forEach((l) => {
const y = e[1].y + s * l, p = (c[1].value + C * l).toFixed(n.price);
r.push({ coordinates: [{ x: e[0].x, y }, { x: e[1].x, y }] }), a.push({
x: i,
y,
text: `${p} (${(l * 100).toFixed(1)}%)`,
baseline: "bottom"
});
});
}
return [
{
type: "line",
attrs: r
},
{
type: "text",
ignoreEvent: !0,
attrs: a
}
];
}
}, A5 = {
name: "fibonacciSpiral",
totalStep: 3,
needDefaultPointFigure: !0,
needDefaultXAxisFigure: !0,
needDefaultYAxisFigure: !0,
createPointFigures: ({ coordinates: e, bounding: t }) => {
if (e.length > 1) {
const n = w9(e[0], e[1]) / Math.sqrt(24), r = e[1].x > e[0].x ? 0 : 1, a = B.getLinearSlopeIntercept(e[0], e[1]);
let i;
a ? i = Math.atan(a[0]) + Math.PI * r : e[1].y > e[0].y ? i = Math.PI / 2 : i = Math.PI / 2 * 3;
const o = j1(
{ x: e[0].x - n, y: e[0].y },
e[0],
i
), s = j1(
{ x: e[0].x - n, y: e[0].y - n },
e[0],
i
), c = [{
...o,
r: n,
startAngle: i,
endAngle: i + Math.PI / 2
}, {
...s,
r: n * 2,
startAngle: i + Math.PI / 2,
endAngle: i + Math.PI
}];
let C = e[0].x - n, l = e[0].y - n;
for (let y = 2; y < 9; y++) {
const p = c[y - 2].r + c[y - 1].r;
let $ = 0;
switch (y % 4) {
case 0: {
$ = i, C -= c[y - 2].r;
break;
}
case 1: {
$ = i + Math.PI / 2, l -= c[y - 2].r;
break;
}
case 2: {
$ = i + Math.PI, C += c[y - 2].r;
break;
}
case 3: {
$ = i + Math.PI / 2 * 3, l += c[y - 2].r;
break;
}
}
const A = $ + Math.PI / 2, b = j1({ x: C, y: l }, e[0], i);
c.push({
...b,
r: p,
startAngle: $,
endAngle: A
});
}
return [
{
type: "arc",
attrs: c
},
{
type: "line",
attrs: m0(e, t)
}
];
}
return [];
}
}, M5 = {
name: "fibonacciSpeedResistanceFan",
totalStep: 3,
needDefaultPointFigure: !0,
needDefaultXAxisFigure: !0,
needDefaultYAxisFigure: !0,
createPointFigures: ({ coordinates: e, bounding: t }) => {
const n = [];
let r = [];
const a = [];
if (e.length > 1) {
const i = e[1].x > e[0].x ? -38 : 4, o = e[1].y > e[0].y ? -2 : 20, s = e[1].x - e[0].x, c = e[1].y - e[0].y;
[1, 0.75, 0.618, 0.5, 0.382, 0.25, 0].forEach((l) => {
const y = e[1].x - s * l, p = e[1].y - c * l;
n.push({ coordinates: [{ x: y, y: e[0].y }, { x: y, y: e[1].y }] }), n.push({ coordinates: [{ x: e[0].x, y: p }, { x: e[1].x, y: p }] }), r = r.concat(m0([e[0], { x: y, y: e[1].y }], t)), r = r.concat(m0([e[0], { x: e[1].x, y: p }], t)), a.unshift({
x: e[0].x + i,
y: p + 10,
text: `${l.toFixed(3)}`
}), a.unshift({
x: y - 18,
y: e[0].y + o,
text: `${l.toFixed(3)}`
});
});
}
return [
{
type: "line",
attrs: n
},
{
type: "line",
attrs: r
},
{
type: "text",
ignoreEvent: !0,
attrs: a
}
];
}
}, w5 = {
name: "fibonacciExtension",
totalStep: 4,
needDefaultPointFigure: !0,
needDefaultXAxisFigure: !0,
needDefaultYAxisFigure: !0,
createPointFigures: ({ coordinates: e, overlay: t, precision: n }) => {
const r = [], a = [];
if (e.length > 2) {
const i = t.points, o = i[1].value - i[0].value, s = e[1].y - e[0].y, c = [0, 0.236, 0.382, 0.5, 0.618, 0.786, 1], C = e[2].x > e[1].x ? e[1].x : e[2].x;
c.forEach((l) => {
const y = e[2].y + s * l, p = (i[2].value + o * l).toFixed(n.price);
r.push({ coordinates: [{ x: e[1].x, y }, { x: e[2].x, y }] }), a.push({
x: C,
y,
text: `${p} (${(l * 100).toFixed(1)}%)`,
baseline: "bottom"
});
});
}
return [
{
type: "line",
attrs: { coordinates: e },
styles: { style: "dashed" }
},
{
type: "line",
attrs: r
},
{
type: "text",
ignoreEvent: !0,
attrs: a
}
];
}
}, S5 = {
name: "gannBox",
totalStep: 3,
needDefaultPointFigure: !0,
needDefaultXAxisFigure: !0,
needDefaultYAxisFigure: !0,
styles: {
polygon: {
color: "rgba(22, 119, 255, 0.15)"
}
},
createPointFigures: ({ coordinates: e }) => {
if (e.length > 1) {
const t = (e[1].y - e[0].y) / 4, n = e[1].x - e[0].x, r = [
{ coordinates: [e[0], { x: e[1].x, y: e[1].y - t }] },
{ coordinates: [e[0], { x: e[1].x, y: e[1].y - t * 2 }] },
{ coordinates: [{ x: e[0].x, y: e[1].y }, { x: e[1].x, y: e[0].y + t }] },
{ coordinates: [{ x: e[0].x, y: e[1].y }, { x: e[1].x, y: e[0].y + t * 2 }] },
{ coordinates: [{ ...e[0] }, { x: e[0].x + n * 0.236, y: e[1].y }] },
{ coordinates: [{ ...e[0] }, { x: e[0].x + n * 0.5, y: e[1].y }] },
{ coordinates: [{ x: e[0].x, y: e[1].y }, { x: e[0].x + n * 0.236, y: e[0].y }] },
{ coordinates: [{ x: e[0].x, y: e[1].y }, { x: e[0].x + n * 0.5, y: e[0].y }] }
], a = [
{ coordinates: [e[0], e[1]] },
{ coordinates: [{ x: e[0].x, y: e[1].y }, { x: e[1].x, y: e[0].y }] }
];
return [
{
type: "line",
attrs: [
{ coordinates: [e[0], { x: e[1].x, y: e[0].y }] },
{ coordinates: [{ x: e[1].x, y: e[0].y }, e[1]] },
{ coordinates: [e[1], { x: e[0].x, y: e[1].y }] },
{ coordinates: [{ x: e[0].x, y: e[1].y }, e[0]] }
]
},
{
type: "polygon",
ignoreEvent: !0,
attrs: {
coordinates: [
e[0],
{ x: e[1].x, y: e[0].y },
e[1],
{ x: e[0].x, y: e[1].y }
]
},
styles: { style: "fill" }
},
{
type: "line",
attrs: r,
styles: { style: "dashed" }
},
{
type: "line",
attrs: a
}
];
}
return [];
}
}, T5 = {
name: "threeWaves",
totalStep: 5,
needDefaultPointFigure: !0,
needDefaultXAxisFigure: !0,
needDefaultYAxisFigure: !0,
createPointFigures: ({ coordinates: e }) => {
const t = e.map((n, r) => ({
...n,
text: `(${r})`,
baseline: "bottom"
}));
return [
{
type: "line",
attrs: { coordinates: e }
},
{
type: "text",
ignoreEvent: !0,
attrs: t
}
];
}
}, I5 = {
name: "fiveWaves",
totalStep: 7,
needDefaultPointFigure: !0,
needDefaultXAxisFigure: !0,
needDefaultYAxisFigure: !0,
createPointFigures: ({ coordinates: e }) => {
const t = e.map((n, r) => ({
...n,
text: `(${r})`,
baseline: "bottom"
}));
return [
{
type: "line",
attrs: { coordinates: e }
},
{
type: "text",
ignoreEvent: !0,
attrs: t
}
];
}
}, N5 = {
name: "eightWaves",
totalStep: 10,
needDefaultPointFigure: !0,
needDefaultXAxisFigure: !0,
needDefaultYAxisFigure: !0,
createPointFigures: ({ coordinates: e }) => {
const t = e.map((n, r) => ({
...n,
text: `(${r})`,
baseline: "bottom"
}));
return [
{
type: "line",
attrs: { coordinates: e }
},
{
type: "text",
ignoreEvent: !0,
attrs: t
}
];
}
}, D5 = {
name: "anyWaves",
totalStep: Number.MAX_SAFE_INTEGER,
needDefaultPointFigure: !0,
needDefaultXAxisFigure: !0,
needDefaultYAxisFigure: !0,
createPointFigures: ({ coordinates: e }) => {
const t = e.map((n, r) => ({
...n,
text: `(${r})`,
baseline: "bottom"
}));
return [
{
type: "line",
attrs: { coordinates: e }
},
{
type: "text",
ignoreEvent: !0,
attrs: t
}
];
}
}, P5 = {
name: "abcd",
totalStep: 5,
needDefaultPointFigure: !0,
needDefaultXAxisFigure: !0,
needDefaultYAxisFigure: !0,
createPointFigures: ({ coordinates: e }) => {
let t = [], n = [];
const r = ["A", "B", "C", "D"], a = e.map((i, o) => ({
...i,
baseline: "bottom",
text: `(${r[o]})`
}));
return e.length > 2 && (t = [e[0], e[2]], e.length > 3 && (n = [e[1], e[3]])), [
{
type: "line",
attrs: { coordinates: e }
},
{
type: "line",
attrs: [{ coordinates: t }, { coordinates: n }],
styles: { style: "dashed" }
},
{
type: "text",
ignoreEvent: !0,
attrs: a
}
];
}
}, B5 = {
name: "xabcd",
totalStep: 6,
needDefaultPointFigure: !0,
needDefaultXAxisFigure: !0,
needDefaultYAxisFigure: !0,
styles: {
polygon: {
color: "rgba(22, 119, 255, 0.15)"
}
},
createPointFigures: ({ coordinates: e, overlay: t }) => {
const n = [], r = [], a = ["X", "A", "B", "C", "D"], i = e.map((o, s) => ({
...o,
baseline: "bottom",
text: `(${a[s]})`
}));
return e.length > 2 && (n.push({ coordinates: [e[0], e[2]] }), r.push({ coordinates: [e[0], e[1], e[2]] }), e.length > 3 && (n.push({ coordinates: [e[1], e[3]] }), e.length > 4 && (n.push({ coordinates: [e[2], e[4]] }), r.push({ coordinates: [e[2], e[3], e[4]] })))), [
{
type: "line",
attrs: { coordinates: e }
},
{
type: "line",
attrs: n,
styles: { style: "dashed" }
},
{
type: "polygon",
ignoreEvent: !0,
attrs: r
},
{
type: "text",
ignoreEvent: !0,
attrs: i
}
];
}
}, O5 = [
v5,
_5,
L5,
b5,
$5,
x5,
k5,
A5,
M5,
w5,
S5,
T5,
I5,
N5,
D5,
P5,
B5
], V = {};
function E5(e) {
V.context = e;
}
const K5 = (e, t) => e === t, v0 = Symbol("solid-proxy"), j5 = Symbol("solid-track"), e0 = {
equals: K5
};
let S9 = P9;
const c1 = 1, t0 = 2, T9 = {
owned: null,
cleanups: null,
context: null,
owner: null
}, y0 = {};
var j = null;
let h1 = null, I = null, z = null, s1 = null, M0 = 0;
function W1(e, t) {
const n = I, r = j, a = e.length === 0, i = a ? T9 : {
owned: null,
cleanups: null,
context: null,
owner: t === void 0 ? r : t
}, o = a ? e : () => e(() => o1(() => c0(i)));
j = i, I = null;
try {
return u1(o, !0);
} finally {
I = n, j = r;
}
}
function L(e, t) {
t = t ? Object.assign({}, e0, t) : e0;
const n = {
value: e,
observers: null,
observerSlots: null,
comparator: t.equals || void 0
}, r = (a) => (typeof a == "function" && (a = a(n.value)), D9(n, a));
return [N9.bind(n), r];
}
function Q0(e, t, n) {
const r = o0(e, t, !0, c1);
b1(r);
}
function F(e, t, n) {
const r = o0(e, t, !1, c1);
b1(r);
}
function a1(e, t, n) {
S9 = U5;
const r = o0(e, t, !1, c1);
r.user = !0, s1 ? s1.push(r) : b1(r);
}
function E(e, t, n) {
n = n ? Object.assign({}, e0, n) : e0;
const r = o0(e, t, !0, 0);
return r.observers = null, r.observerSlots = null, r.comparator = n.equals || void 0, b1(r), N9.bind(r);
}
function F5(e, t, n) {
let r, a, i;
arguments.length === 2 && typeof t == "object" || arguments.length === 1 ? (r = !0, a = e, i = t || {}) : (r = e, a = t, i = n || {});
let o = null, s = y0, c = null, C = !1, l = "initialValue" in i, y = typeof r == "function" && E(r);
const p = /* @__PURE__ */ new Set(), [$, A] = (i.storage || L)(i.initialValue), [b, M] = L(void 0), [O, Q] = L(void 0, {
equals: !1
}), [N, S] = L(l ? "ready" : "unresolved");
if (V.context) {
c = `${V.context.id}${V.context.count++}`;
let x;
i.ssrLoadFrom === "initial" ? s = i.initialValue : V.load && (x = V.load(c)) && (s = x[0]);
}
function U(x, D, K, n1) {
return o === x && (o = null, l = !0, (x === s || D === s) && i.onHydrated && queueMicrotask(() => i.onHydrated(n1, {
value: D
})), s = y0, l1(D, K)), D;
}
function l1(x, D) {
u1(() => {
D === void 0 && A(() => x), S(D !== void 0 ? "errored" : "ready"), M(D);
for (const K of p.keys())
K.decrement();
p.clear();
}, !1);
}
function W() {
const x = Q5, D = $(), K = b();
if (K !== void 0 && !o)
throw K;
return I && !I.user && x && Q0(() => {
O(), o && (x.resolved || p.has(x) || (x.increment(), p.add(x)));
}), D;
}
function t1(x = !0) {
if (x !== !1 && C)
return;
C = !1;
const D = y ? y() : r;
if (D == null || D === !1) {
U(o, o1($));
return;
}
const K = s !== y0 ? s : o1(() => a(D, {
value: $(),
refetching: x
}));
return typeof K != "object" || !(K && "then" in K) ? (U(o, K, void 0, D), K) : (o = K, C = !0, queueMicrotask(() => C = !1), u1(() => {
S(l ? "refreshing" : "pending"), Q();
}, !1), K.then((n1) => U(K, n1, void 0, D), (n1) => U(K, void 0, O9(n1), D)));
}
return Object.defineProperties(W, {
state: {
get: () => N()
},
error: {
get: () => b()
},
loading: {
get() {
const x = N();
return x === "pending" || x === "refreshing";
}
},
latest: {
get() {
if (!l)
return W();
const x = b();
if (x && !o)
throw x;
return $();
}
}
}), y ? Q0(() => t1(!1)) : t1(!1), [W, {
refetch: t1,
mutate: A
}];
}
function o1(e) {
if (I === null)
return e();
const t = I;
I = null;
try {
return e();
} finally {
I = t;
}
}
function I9(e) {
a1(() => o1(e));
}
function w0(e) {
return j === null || (j.cleanups === null ? j.cleanups = [e] : j.cleanups.push(e)), e;
}
function Z5(e) {
const t = I, n = j;
return Promise.resolve().then(() => {
I = t, j = n;
let r;
return u1(e, !1), I = j = null, r ? r.done : void 0;
});
}
let Q5;
function N9() {
const e = h1;
if (this.sources && (this.state || e))
if (this.state === c1 || e)
b1(this);
else {
const t = z;
z = null, u1(() => r0(this), !1), z = t;
}
if (I) {
const t = this.observers ? this.observers.length : 0;
I.sources ? (I.sources.push(this), I.sourceSlots.push(t)) : (I.sources = [this], I.sourceSlots = [t]), this.observers ? (this.observers.push(I), this.observerSlots.push(I.sources.length - 1)) : (this.observers = [I], this.observerSlots = [I.sources.length - 1]);
}
return this.value;
}
function D9(e, t, n) {
let r = e.value;
return (!e.comparator || !e.comparator(r, t)) && (e.value = t, e.observers && e.observers.length && u1(() => {
for (let a = 0; a < e.observers.length; a += 1) {
const i = e.observers[a], o = h1 && h1.running;
o && h1.disposed.has(i), (o && !i.tState || !o && !i.state) && (i.pure ? z.push(i) : s1.push(i), i.observers && B9(i)), o || (i.state = c1);
}
if (z.length > 1e6)
throw z = [], new Error();
}, !1)), t;
}
function b1(e) {
if (!e.fn)
return;
c0(e);
const t = j, n = I, r = M0;
I = j = e, R5(e, e.value, r), I = n, j = t;
}
function R5(e, t, n) {
let r;
try {
r = e.fn(t);
} catch (a) {
e.pure && (e.state = c1, e.owned && e.owned.forEach(c0), e.owned = null), E9(a);
}
(!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ? D9(e, r) : e.value = r, e.updatedAt = n);
}
function o0(e, t, n, r = c1, a) {
const i = {
fn: e,
state: r,
updatedAt: null,
owned: null,
sources: null,
sourceSlots: null,
cleanups: null,
value: t,
owner: j,
context: null,
pure: n
};
return j === null || j !== T9 && (j.owned ? j.owned.push(i) : j.owned = [i]), i;
}
function n0(e) {
const t = h1;
if (e.state === 0 || t)
return;
if (e.state === t0 || t)
return r0(e);
if (e.suspense && o1(e.suspense.inFallback))
return e.suspense.effects.push(e);
const n = [e];
for (; (e = e.owner) && (!e.updatedAt || e.updatedAt < M0); )
(e.state || t) && n.push(e);
for (let r = n.length - 1; r >= 0; r--)
if (e = n[r], e.state === c1 || t)
b1(e);
else if (e.state === t0 || t) {
const a = z;
z = null, u1(() => r0(e, n[0]), !1), z = a;
}
}
function u1(e, t) {
if (z)
return e();
let n = !1;
t || (z = []), s1 ? n = !0 : s1 = [], M0++;
try {
const r = e();
return z5(n), r;
} catch (r) {
n || (s1 = null), z = null, E9(r);
}
}
function z5(e) {
if (z && (P9(z), z = null), e)
return;
const t = s1;
s1 = null, t.length && u1(() => S9(t), !1);
}
function P9(e) {
for (let t = 0; t < e.length; t++)
n0(e[t]);
}
function U5(e) {
let t, n = 0;
for (t = 0; t < e.length; t++) {
const r = e[t];
r.user ? e[n++] = r : n0(r);
}
for (V.context && E5(), t = 0; t < n; t++)
n0(e[t]);
}
function r0(e, t) {
const n = h1;
e.state = 0;
for (let r = 0; r < e.sources.length; r += 1) {
const a = e.sources[r];
a.sources && (a.state === c1 || n ? a !== t && n0(a) : (a.state === t0 || n) && r0(a, t));
}
}
function B9(e) {
const t = h1;
for (let n = 0; n < e.observers.length; n += 1) {
const r = e.observers[n];
(!r.state || t) && (r.state = t0, r.pure ? z.push(r) : s1.push(r), r.observers && B9(r));
}
}
function c0(e) {
let t;
if (e.sources)
for (; e.sources.length; ) {
const n = e.sources.pop(), r = e.sourceSlots.pop(), a = n.observers;
if (a && a.length) {
const i = a.pop(), o = n.observerSlots.pop();
r < a.length && (i.sourceSlots[o] = r, a[r] = i, n.observerSlots[r] = o);
}
}
if (e.owned) {
for (t = 0; t < e.owned.length; t++)
c0(e.owned[t]);
e.owned = null;
}
if (e.cleanups) {
for (t = 0; t < e.cleanups.length; t++)
e.cleanups[t]();
e.cleanups = null;
}
e.state = 0, e.context = null;
}
function O9(e) {
return e instanceof Error || typeof e == "string" ? e : new Error("Unknown error");
}
function E9(e) {
throw e = O9(e), e;
}
const Y5 = Symbol("fallback");
function R0(e) {
for (let t = 0; t < e.length; t++)
e[t]();
}
function V5(e, t, n = {}) {
let r = [], a = [], i = [], o = 0, s = t.length > 1 ? [] : null;
return w0(() => R0(i)), () => {
let c = e() || [], C, l;
return c[j5], o1(() => {
let p = c.length, $, A, b, M, O, Q, N, S, U;
if (p === 0)
o !== 0 && (R0(i), i = [], r = [], a = [], o = 0, s && (s = [])), n.fallback && (r = [Y5], a[0] = W1((l1) => (i[0] = l1, n.fallback())), o = 1);
else if (o === 0) {
for (a = new Array(p), l = 0; l < p; l++)
r[l] = c[l], a[l] = W1(y);
o = p;
} else {
for (b = new Array(p), M = new Array(p), s && (O = new Array(p)), Q = 0, N = Math.min(o, p); Q < N && r[Q] === c[Q]; Q++)
;
for (N = o - 1, S = p - 1; N >= Q && S >= Q && r[N] === c[S]; N--, S--)
b[S] = a[N], M[S] = i[N], s && (O[S] = s[N]);
for ($ = /* @__PURE__ */ new Map(), A = new Array(S + 1), l = S; l >= Q; l--)
U = c[l], C = $.get(U), A[l] = C === void 0 ? -1 : C, $.set(U, l);
for (C = Q; C <= N; C++)
U = r[C], l = $.get(U), l !== void 0 && l !== -1 ? (b[l] = a[C], M[l] = i[C], s && (O[l] = s[C]), l = A[l], $.set(U, l)) : i[C]();
for (l = Q; l < p; l++)
l in b ? (a[l] = b[l], i[l] = M[l], s && (s[l] = O[l], s[l](l))) : a[l] = W1(y);
a = a.slice(0, o = p), r = c.slice(0);
}
return a;
});
function y(p) {
if (i[l] = p, s) {
const [$, A] = L(l);
return s[l] = A, t(c[l], $);
}
return t(c[l]);
}
};
}
function h(e, t) {
return o1(() => e(t || {}));
}
function G1() {
return !0;
}
const H5 = {
get(e, t, n) {
return t === v0 ? n : e.get(t);
},
has(e, t) {
return t === v0 ? !0 : e.has(t);
},
set: G1,
deleteProperty: G1,
getOwnPropertyDescriptor(e, t) {
return {
configurable: !0,
enumerable: !0,
get() {
return e.get(t);
},
set: G1,
deleteProperty: G1
};
},
ownKeys(e) {
return e.keys();
}
};
function h0(e) {
return (e = typeof e == "function" ? e() : e) ? e : {};
}
function K9(...e) {
let t = !1;
for (let r = 0; r < e.length; r++) {
const a = e[r];
t = t || !!a && v0 in a, e[r] = typeof a == "function" ? (t = !0, E(a)) : a;
}
if (t)
return new Proxy({
get(r) {
for (let a = e.length - 1; a >= 0; a--) {
const i = h0(e[a])[r];
if (i !== void 0)
return i;
}
},
has(r) {
for (let a = e.length - 1; a >= 0; a--)
if (r in h0(e[a]))
return !0;
return !1;
},
keys() {
const r = [];
for (let a = 0; a < e.length; a++)
r.push(...Object.keys(h0(e[a])));
return [...new Set(r)];
}
}, H5);
const n = {};
for (let r = e.length - 1; r >= 0; r--)
if (e[r]) {
const a = Object.getOwnPropertyDescriptors(e[r]);
for (const i in a)
i in n || Object.defineProperty(n, i, {
enumerable: !0,
get() {
for (let o = e.length - 1; o >= 0; o--) {
const s = (e[o] || {})[i];
if (s !== void 0)
return s;
}
}
});
}
return n;
}
function G5(e) {
const t = "fallback" in e && {
fallback: () => e.fallback
};
return E(V5(() => e.each, e.children, t || void 0));
}
function R(e) {
let t = !1;
const n = e.keyed, r = E(() => e.when, void 0, {
equals: (a, i) => t ? a === i : !a == !i
});
return E(() => {
const a = r();
if (a) {
const i = e.children, o = typeof i == "function" && i.length > 0;
return t = n || o, o ? o1(() => i(a)) : i;
}
return e.fallback;
}, void 0, void 0);
}
function X5(e, t, n) {
let r = n.length, a = t.length, i = r, o = 0, s = 0, c = t[a - 1].nextSibling, C = null;
for (; o < a || s < i; ) {
if (t[o] === n[s]) {
o++, s++;
continue;
}
for (; t[a - 1] === n[i - 1]; )
a--, i--;
if (a === o) {
const l = i < r ? s ? n[s - 1].nextSibling : n[i - s] : c;
for (; s < i; )
e.insertBefore(n[s++], l);
} else if (i === s)
for (; o < a; )
(!C || !C.has(t[o])) && t[o].remove(), o++;
else if (t[o] === n[i - 1] && n[s] === t[a - 1]) {
const l = t[--a].nextSibling;
e.insertBefore(n[s++], t[o++].nextSibling), e.insertBefore(n[--i], l), t[a] = n[i];
} else {
if (!C) {
C = /* @__PURE__ */ new Map();
let y = s;
for (; y < i; )
C.set(n[y], y++);
}
const l = C.get(t[o]);
if (l != null)
if (s < l && l < i) {
let y = o, p = 1, $;
for (; ++y < a && y < i && !(($ = C.get(t[y])) == null || $ !== l + p); )
p++;
if (p > l - s) {
const A = t[o];
for (; s < l; )
e.insertBefore(n[s++], A);
} else
e.replaceChild(n[s++], t[o++]);
} else
o++;
else
t[o++].remove();
}
}
}
const z0 = "_$DX_DELEGATE";
function J5(e, t, n, r = {}) {
let a;
return W1((i) => {
a = i, t === document ? e() : m(t, e(), t.firstChild ? null : void 0, n);
}, r.owner), () => {
a(), t.textContent = "";
};
}
function f(e, t, n) {
const r = document.createElement("template");
r.innerHTML = e;
let a = r.content.firstChild;
return n && (a = a.firstChild), a;
}
function J(e, t = window.document) {
const n = t[z0] || (t[z0] = /* @__PURE__ */ new Set());
for (let r = 0, a = e.length; r < a; r++) {
const i = e[r];
n.has(i) || (n.add(i), t.addEventListener(i, W5));
}
}
function H(e, t, n) {
n == null ? e.removeAttribute(t) : e.setAttribute(t, n);
}
function p1(e, t) {
t == null ? e.removeAttribute("class") : e.className = t;
}
function i1(e, t, n, r) {
if (r)
Array.isArray(n) ? (e[`$$${t}`] = n[0], e[`$$${t}Data`] = n[1]) : e[`$$${t}`] = n;
else if (Array.isArray(n)) {
const a = n[0];
e.addEventListener(t, n[0] = (i) => a.call(e, n[1], i));
} else
e.addEventListener(t, n);
}
function x1(e, t, n) {
if (!t)
return n ? H(e, "style") : t;
const r = e.style;
if (typeof t == "string")
return r.cssText = t;
typeof n == "string" && (r.cssText = n = void 0), n || (n = {}), t || (t = {});
let a, i;
for (i in n)
t[i] == null && r.removeProperty(i), delete n[i];
for (i in t)
a = t[i], a !== n[i] && (r.setProperty(i, a), n[i] = a);
return n;
}
function S0(e, t, n) {
return o1(() => e(t, n));
}
function m(e, t, n, r) {
if (n !== void 0 && !r && (r = []), typeof t != "function")
return a0(e, t, r, n);
F((a) => a0(e, t(), a, n), r);
}
function W5(e) {
const t = `$$${e.type}`;
let n = e.composedPath && e.composedPath()[0] || e.target;
for (e.target !== n && Object.defineProperty(e, "target", {
configurable: !0,
value: n
}), Object.defineProperty(e, "currentTarget", {
configurable: !0,
get() {
return n || document;
}
}), V.registry && !V.done && (V.done = !0, document.querySelectorAll("[id^=pl-]").forEach((r) => {
for (; r && r.nodeType !== 8 && r.nodeValue !== "pl-" + e; ) {
let a = r.nextSibling;
r.remove(), r = a;
}
r && r.remove();
})); n; ) {
const r = n[t];
if (r && !n.disabled) {
const a = n[`${t}Data`];
if (a !== void 0 ? r.call(n, a, e) : r.call(n, e), e.cancelBubble)
return;
}
n = n._$host || n.parentNode || n.host;
}
}
function a0(e, t, n, r, a) {
for (V.context && !n && (n = [...e.childNodes]); typeof n == "function"; )
n = n();
if (t === n)
return n;
const i = typeof t, o = r !== void 0;
if (e = o && n[0] && n[0].parentNode || e, i === "string" || i === "number") {
if (V.context)
return n;
if (i === "number" && (t = t.toString()), o) {
let s = n[0];
s && s.nodeType === 3 ? s.data = t : s = document.createTextNode(t), n = L1(e, n, r, s);
} else
n !== "" && typeof n == "string" ? n = e.firstChild.data = t : n = e.textContent = t;
} else if (t == null || i === "boolean") {
if (V.context)
return n;
n = L1(e, n, r);
} else {
if (i === "function")
return F(() => {
let s = t();
for (; typeof s == "function"; )
s = s();
n = a0(e, s, n, r);
}), () => n;
if (Array.isArray(t)) {
const s = [], c = n && Array.isArray(n);
if (_0(s, t, n, a))
return F(() => n = a0(e, s, n, r, !0)), () => n;
if (V.context) {
if (!s.length)
return n;
for (let C = 0; C < s.length; C++)
if (s[C].parentNode)
return n = s;
}
if (s.length === 0) {
if (n = L1(e, n, r), o)
return n;
} else
c ? n.length === 0 ? U0(e, s, r) : X5(e, n, s) : (n && L1(e), U0(e, s));
n = s;
} else if (t instanceof Node) {
if (V.context && t.parentNode)
return n = o ? [t] : t;
if (Array.isArray(n)) {
if (o)
return n = L1(e, n, r, t);
L1(e, n, null, t);
} else
n == null || n === "" || !e.firstChild ? e.appendChild(t) : e.replaceChild(t, e.firstChild);
n = t;
}
}
return n;
}
function _0(e, t, n, r) {
let a = !1;
for (let i = 0, o = t.length; i < o; i++) {
let s = t[i], c = n && n[i];
if (s instanceof Node)
e.push(s);
else if (!(s == null || s === !0 || s === !1))
if (Array.isArray(s))
a = _0(e, s, c) || a;
else if (typeof s == "function")
if (r) {
for (; typeof s == "function"; )
s = s();
a = _0(e, Array.isArray(s) ? s : [s], Array.isArray(c) ? c : [c]) || a;
} else
e.push(s), a = !0;
else {
const C = String(s);
c && c.nodeType === 3 && c.data === C ? e.push(c) : e.push(document.createTextNode(C));
}
}
return a;
}
function U0(e, t, n = null) {
for (let r = 0, a = t.length; r < a; r++)
e.insertBefore(t[r], n);
}
function L1(e, t, n, r) {
if (n === void 0)
return e.textContent = "";
const a = r || document.createTextNode("");
if (t.length) {
let i = !1;
for (let o = t.length - 1; o >= 0; o--) {
const s = t[o];
if (a !== s) {
const c = s.parentNode === e;
!i && !o ? c ? e.replaceChild(a, s) : e.insertBefore(a, n) : c && s.remove();
} else
i = !0;
}
} else
e.insertBefore(a, n);
return [a];
}
var X1 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, q5 = typeof X1 == "object" && X1 && X1.Object === Object && X1, j9 = q5, e6 = j9, t6 = typeof self == "object" && self && self.Object === Object && self, n6 = e6 || t6 || Function("return this")(), e1 = n6, r6 = e1, a6 = r6.Symbol, l0 = a6, Y0 = l0, F9 = Object.prototype, i6 = F9.hasOwnProperty, s6 = F9.toString, K1 = Y0 ? Y0.toStringTag : void 0;
function o6(e) {
var t = i6.call(e, K1), n = e[K1];
try {
e[K1] = void 0;
var r = !0;
} catch {
}
var a = s6.call(e);
return r && (t ? e[K1] = n : delete e[K1]), a;
}
var c6 = o6, l6 = Object.prototype, u6 = l6.toString;
function C6(e) {
return u6.call(e);
}
var f6 = C6, V0 = l0, g6 = c6, d6 = f6, y6 = "[object Null]", h6 = "[object Undefined]", H0 = V0 ? V0.toStringTag : void 0;
function p6(e) {
return e == null ? e === void 0 ? h6 : y6 : H0 && H0 in Object(e) ? g6(e) : d6(e);
}
var Z1 = p6;
function m6(e) {
var t = typeof e;
return e != null && (t == "object" || t == "function");
}
var k1 = m6, v6 = Z1, _6 = k1, L6 = "[object AsyncFunction]", $6 = "[object Function]", b6 = "[object GeneratorFunction]", x6 = "[object Proxy]";
function k6(e) {
if (!_6(e))
return !1;
var t = v6(e);
return t == $6 || t == b6 || t == L6 || t == x6;
}
var Z9 = k6, A6 = e1, M6 = A6["__core-js_shared__"], w6 = M6, p0 = w6, G0 = function() {
var e = /[^.]+$/.exec(p0 && p0.keys && p0.keys.IE_PROTO || "");
return e ? "Symbol(src)_1." + e : "";
}();
function S6(e) {
return !!G0 && G0 in e;
}
var T6 = S6, I6 = Function.prototype, N6 = I6.toString;
function D6(e) {
if (e != null) {
try {
return N6.call(e);
} catch {
}
try {
return e + "";
} catch {
}
}
return "";
}
var Q9 = D6, P6 = Z9, B6 = T6, O6 = k1, E6 = Q9, K6 = /[\\^$.*+?()[\]{}|]/g, j6 = /^\[object .+?Constructor\]$/, F6 = Function.prototype, Z6 = Object.prototype, Q6 = F6.toString, R6 = Z6.hasOwnProperty, z6 = RegExp(
"^" + Q6.call(R6).replace(K6, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
);
function U6(e) {
if (!O6(e) || B6(e))
return !1;
var t = P6(e) ? z6 : j6;
return t.test(E6(e));
}
var Y6 = U6;
function V6(e, t) {
return e == null ? void 0 : e[t];
}
var H6 = V6, G6 = Y6, X6 = H6;
function J6(e, t) {
var n = X6(e, t);
return G6(n) ? n : void 0;
}
var m1 = J6, W6 = m1, q6 = function() {
try {
var e = W6(Object, "defineProperty");
return e({}, "", {}), e;
} catch {
}
}(), e2 = q6, X0 = e2;
function t2(e, t, n) {
t == "__proto__" && X0 ? X0(e, t, {
configurable: !0,
enumerable: !0,
value: n,
writable: !0
}) : e[t] = n;
}
var R9 = t2;
function n2(e, t) {
return e === t || e !== e && t !== t;
}
var z9 = n2, r2 = R9, a2 = z9, i2 = Object.prototype, s2 = i2.hasOwnProperty;
function o2(e, t, n) {
var r = e[t];
(!(s2.call(e, t) && a2(r, n)) || n === void 0 && !(t in e)) && r2(e, t, n);
}
var T0 = o2, c2 = Array.isArray, A1 = c2;
function l2(e) {
return e != null && typeof e == "object";
}
var M1 = l2, u2 = Z1, C2 = M1, f2 = "[object Symbol]";
function g2(e) {
return typeof e == "symbol" || C2(e) && u2(e) == f2;
}
var I0 = g2, d2 = A1, y2 = I0, h2 = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, p2 = /^\w*$/;
function m2(e, t) {
if (d2(e))
return !1;
var n = typeof e;
return n == "number" || n == "symbol" || n == "boolean" || e == null || y2(e) ? !0 : p2.test(e) || !h2.test(e) || t != null && e in Object(t);
}
var v2 = m2, _2 = m1, L2 = _2(Object, "create"), u0 = L2, J0 = u0;
function $2() {
this.__data__ = J0 ? J0(null) : {}, this.size = 0;
}
var b2 = $2;
function x2(e) {
var t = this.has(e) && delete this.__data__[e];
return this.size -= t ? 1 : 0, t;
}
var k2 = x2, A2 = u0, M2 = "__lodash_hash_undefined__", w2 = Object.prototype, S2 = w2.hasOwnProperty;
function T2(e) {
var t = this.__data__;
if (A2) {
var n = t[e];
return n === M2 ? void 0 : n;
}
return S2.call(t, e) ? t[e] : void 0;
}
var I2 = T2, N2 = u0, D2 = Object.prototype, P2 = D2.hasOwnProperty;
function B2(e) {
var t = this.__data__;
return N2 ? t[e] !== void 0 : P2.call(t, e);
}
var O2 = B2, E2 = u0, K2 = "__lodash_hash_undefined__";
function j2(e, t) {
var n = this.__data__;
return this.size += this.has(e) ? 0 : 1, n[e] = E2 && t === void 0 ? K2 : t, this;
}
var F2 = j2, Z2 = b2, Q2 = k2, R2 = I2, z2 = O2, U2 = F2;
function w1(e) {
var t = -1, n = e == null ? 0 : e.length;
for (this.clear(); ++t < n; ) {
var r = e[t];
this.set(r[0], r[1]);
}
}
w1.prototype.clear = Z2;
w1.prototype.delete = Q2;
w1.prototype.get = R2;
w1.prototype.has = z2;
w1.prototype.set = U2;
var Y2 = w1;
function V2() {
this.__data__ = [], this.size = 0;
}
var H2 = V2, G2 = z9;
function X2(e, t) {
for (var n = e.length; n--; )
if (G2(e[n][0], t))
return n;
return -1;
}
var C0 = X2, J2 = C0, W2 = Array.prototype, q2 = W2.splice;
function ee(e) {
var t = this.__data__, n = J2(t, e);
if (n < 0)
return !1;
var r = t.length - 1;
return n == r ? t.pop() : q2.call(t, n, 1), --this.size, !0;
}
var te = ee, ne = C0;
function re(e) {
var t = this.__data__, n = ne(t, e);
return n < 0 ? void 0 : t[n][1];
}
var ae = re, ie = C0;
function se(e) {
return ie(this.__data__, e) > -1;
}
var oe = se, ce = C0;
function le(e, t) {
var n = this.__data__, r = ce(n, e);
return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
}
var ue = le, Ce = H2, fe = te, ge = ae, de = oe, ye = ue;
function S1(e) {
var t = -1, n = e == null ? 0 : e.length;
for (this.clear(); ++t < n; ) {
var r = e[t];
this.set(r[0], r[1]);
}
}
S1.prototype.clear = Ce;
S1.prototype.delete = fe;
S1.prototype.get = ge;
S1.prototype.has = de;
S1.prototype.set = ye;
var f0 = S1, he = m1, pe = e1, me = he(pe, "Map"), N0 = me, W0 = Y2, ve = f0, _e = N0;
function Le() {
this.size = 0, this.__data__ = {
hash: new W0(),
map: new (_e || ve)(),
string: new W0()
};
}
var $e = Le;
function be(e) {
var t = typeof e;
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
}
var xe = be, ke = xe;
function Ae(e, t) {
var n = e.__data__;
return ke(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
}
var g0 = Ae, Me = g0;
function we(e) {
var t = Me(this, e).delete(e);
return this.size -= t ? 1 : 0, t;
}
var Se = we, Te = g0;
function Ie(e) {
return Te(this, e).get(e);
}
var Ne = Ie, De = g0;
function Pe(e) {
return De(this, e).has(e);
}
var Be = Pe, Oe = g0;
function Ee(e, t) {
var n = Oe(this, e), r = n.size;
return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
}
var Ke = Ee, je = $e, Fe = Se, Ze = Ne, Qe = Be, Re = Ke;
function T1(e) {
var t = -1, n = e == null ? 0 : e.length;
for (this.clear(); ++t < n; ) {
var r = e[t];
this.set(r[0], r[1]);
}
}
T1.prototype.clear = je;
T1.prototype.delete = Fe;
T1.prototype.get = Ze;
T1.prototype.has = Qe;
T1.prototype.set = Re;
var U9 = T1, Y9 = U9, ze = "Expected a function";
function D0(e, t) {
if (typeof e != "function" || t != null && typeof t != "function")
throw new TypeError(ze);
var n = function() {
var r = arguments, a = t ? t.apply(this, r) : r[0], i = n.cache;
if (i.has(a))
return i.get(a);
var o = e.apply(this, r);
return n.cache = i.set(a, o) || i, o;
};
return n.cache = new (D0.Cache || Y9)(), n;
}
D0.Cache = Y9;
var Ue = D0, Ye = Ue, Ve = 500;
function He(e) {
var t = Ye(e, function(r) {
return n.size === Ve && n.clear(), r;
}), n = t.cache;
return t;
}
var Ge = He, Xe = Ge, Je = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, We = /\\(\\)?/g, qe = Xe(function(e) {
var t = [];
return e.charCodeAt(0) === 46 && t.push(""), e.replace(Je, function(n, r, a, i) {
t.push(a ? i.replace(We, "$1") : r || n);
}), t;
}), e3 = qe;
function t3(e, t) {
for (var n = -1, r = e == null ? 0 : e.length, a = Array(r); ++n < r; )
a[n] = t(e[n], n, e);
return a;
}
var n3 = t3, q0 = l0, r3 = n3, a3 = A1, i3 = I0, s3 = 1 / 0, e9 = q0 ? q0.prototype : void 0, t9 = e9 ? e9.toString : void 0;
function V9(e) {
if (typeof e == "string")
return e;
if (a3(e))
return r3(e, V9) + "";
if (i3(e))
return t9 ? t9.call(e) : "";
var t = e + "";
return t == "0" && 1 / e == -s3 ? "-0" : t;
}
var o3 = V9, c3 = o3;
function l3(e) {
return e == null ? "" : c3(e);
}
var u3 = l3, C3 = A1, f3 = v2, g3 = e3, d3 = u3;
function y3(e, t) {
return C3(e) ? e : f3(e, t) ? [e] : g3(d3(e));
}
var h3 = y3, p3 = 9007199254740991, m3 = /^(?:0|[1-9]\d*)$/;
function v3(e, t) {
var n = typeof e;
return t = t ?? p3, !!t && (n == "number" || n != "symbol" && m3.test(e)) && e > -1 && e % 1 == 0 && e < t;
}
var H9 = v3, _3 = I0, L3 = 1 / 0;
function $3(e) {
if (typeof e == "string" || _3(e))
return e;
var t = e + "";
return t == "0" && 1 / e == -L3 ? "-0" : t;
}
var b3 = $3, x3 = T0, k3 = h3, A3 = H9, n9 = k1, M3 = b3;
function w3(e, t, n, r) {
if (!n9(e))
return e;
t = k3(t, e);
for (var a = -1, i = t.length, o = i - 1, s = e; s != null && ++a < i; ) {
var c = M3(t[a]), C = n;
if (c === "__proto__" || c === "constructor" || c === "prototype")
return e;
if (a != o) {
var l = s[c];
C = r ? r(l, c, s) : void 0, C === void 0 && (C = n9(l) ? l : A3(t[a + 1]) ? [] : {});
}
x3(s, c, C), s = s[c];
}
return e;
}
var S3 = w3, T3 = S3;
function I3(e, t, n) {
return e == null ? e : T3(e, t, n);
}
var L0 = I3, N3 = f0;
function D3() {
this.__data__ = new N3(), this.size = 0;
}
var P3 = D3;
function B3(e) {
var t = this.__data__, n = t.delete(e);
return this.size = t.size, n;
}
var O3 = B3;
function E3(e) {
return this.__data__.get(e);
}
var K3 = E3;
function j3(e) {
return this.__data__.has(e);
}
var F3 = j3, Z3 = f0, Q3 = N0, R3 = U9, z3 = 200;
function U3(e, t) {
var n = this.__data__;
if (n instanceof Z3) {
var r = n.__data__;
if (!Q3 || r.length < z3 - 1)
return r.push([e, t]), this.size = ++n.size, this;
n = this.__data__ = new R3(r);
}
return n.set(e, t), this.size = n.size, this;
}
var Y3 = U3, V3 = f0, H3 = P3, G3 = O3, X3 = K3, J3 = F3, W3 = Y3;
function I1(e) {
var t = this.__data__ = new V3(e);
this.size = t.size;
}
I1.prototype.clear = H3;
I1.prototype.delete = G3;
I1.prototype.get = X3;
I1.prototype.has = J3;
I1.prototype.set = W3;
var q3 = I1;
function e8(e, t) {
for (var n = -1, r = e == null ? 0 : e.length; ++n < r && t(e[n], n, e) !== !1; )
;
return e;
}
var t8 = e8, n8 = T0, r8 = R9;
function a8(e, t, n, r) {
var a = !n;
n || (n = {});
for (var i = -1, o = t.length; ++i < o; ) {
var s = t[i], c = r ? r(n[s], e[s], s, n, e) : void 0;
c === void 0 && (c = e[s]), a ? r8(n, s, c) : n8(n, s, c);
}
return n;
}
var d0 = a8;
function i8(e, t) {
for (var n = -1, r = Array(e); ++n < e; )
r[n] = t(n);
return r;
}
var s8 = i8, o8 = Z1, c8 = M1, l8 = "[object Arguments]";
function u8(e) {
return c8(e) && o8(e) == l8;
}
var C8 = u8, r9 = C8, f8 = M1, G9 = Object.prototype, g8 = G9.hasOwnProperty, d8 = G9.propertyIsEnumerable, y8 = r9(function() {
return arguments;
}()) ? r9 : function(e) {
return f8(e) && g8.call(e, "callee") && !d8.call(e, "callee");
}, h8 = y8, F1 = {}, p8 = {
get exports() {
return F1;
},
set exports(e) {
F1 = e;
}
};
function m8() {
return !1;
}
var v8 = m8;
(function(e, t) {
var n = e1, r = v8, a = t && !t.nodeType && t, i = a && !0 && e && !e.nodeType && e, o = i && i.exports === a, s = o ? n.Buffer : void 0, c = s ? s.isBuffer : void 0, C = c || r;
e.exports = C;
})(p8, F1);
var _8 = 9007199254740991;
function L8(e) {
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= _8;
}
var X9 = L8, $8 = Z1, b8 = X9, x8 = M1, k8 = "[object Arguments]", A8 = "[object Array]", M8 = "[object Boolean]", w8 = "[object Date]", S8 = "[object Error]", T8 = "[object Function]", I8 = "[object Map]", N8 = "[object Number]", D8 = "[object Object]", P8 = "[object RegExp]", B8 = "[object Set]", O8 = "[object String]", E8 = "[object WeakMap]", K8 = "[object ArrayBuffer]", j8 = "[object DataView]", F8 = "[object Float32Array]", Z8 = "[object Float64Array]", Q8 = "[object Int8Array]", R8 = "[object Int16Array]", z8 = "[object Int32Array]", U8 = "[object Uint8Array]", Y8 = "[object Uint8ClampedArray]", V8 = "[object Uint16Array]", H8 = "[object Uint32Array]", T = {};
T[F8] = T[Z8] = T[Q8] = T[R8] = T[z8] = T[U8] = T[Y8] = T[V8] = T[H8] = !0;
T[k8] = T[A8] = T[K8] = T[M8] = T[j8] = T[w8] = T[S8] = T[T8] = T[I8] = T[N8] = T[D8] = T[P8] = T[B8] = T[O8] = T[E8] = !1;
function G8(e) {
return x8(e) && b8(e.length) && !!T[$8(e)];
}
var X8 = G8;
function J8(e) {
return function(t) {
return e(t);
};
}
var P0 = J8, $1 = {}, W8 = {
get exports() {
return $1;
},
set exports(e) {
$1 = e;
}
};
(function(e, t) {
var n = j9, r = t && !t.nodeType && t, a = r && !0 && e && !e.nodeType && e, i = a && a.exports === r, o = i && n.process, s = function() {
try {
var c = a && a.require && a.require("util").types;
return c || o && o.binding && o.binding("util");
} catch {
}
}();
e.exports = s;
})(W8, $1);
var q8 = X8, e7 = P0, a9 = $1, i9 = a9 && a9.isTypedArray, t7 = i9 ? e7(i9) : q8, n7 = t7, r7 = s8, a7 = h8, i7 = A1, s7 = F1, o7 = H9, c7 = n7, l7 = Object.prototype, u7 = l7.hasOwnProperty;
function C7(e, t) {
var n = i7(e), r = !n && a7(e), a = !n && !r && s7(e), i = !n && !r && !a && c7(e), o = n || r || a || i, s = o ? r7(e.length, String) : [], c = s.length;
for (var C in e)
(t || u7.call(e, C)) && !(o && // Safari 9 has enumerable `arguments.length` in strict mode.
(C == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
a && (C == "offset" || C == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
i && (C == "buffer" || C == "byteLength" || C == "byteOffset") || // Skip index properties.
o7(C, c))) && s.push(C);
return s;
}
var J9 = C7, f7 = Object.prototype;
function g7(e) {
var t = e && e.constructor, n = typeof t == "function" && t.prototype || f7;
return e === n;
}
var B0 = g7;
function d7(e, t) {
return function(n) {
return e(t(n));
};
}
var W9 = d7, y7 = W9, h7 = y7(Object.keys, Object), p7 = h7, m7 = B0, v7 = p7, _7 = Object.prototype, L7 = _7.hasOwnProperty;
function $7(e) {
if (!m7(e))
return v7(e);
var t = [];
for (var n in Object(e))
L7.call(e, n) && n != "constructor" && t.push(n);
return t;
}
var b7 = $7, x7 = Z9, k7 = X9;
function A7(e) {
return e != null && k7(e.length) && !x7(e);
}
var q9 = A7, M7 = J9, w7 = b7, S7 = q9;
function T7(e) {
return S7(e) ? M7(e) : w7(e);
}
var O0 = T7, I7 = d0, N7 = O0;
function D7(e, t) {
return e && I7(t, N7(t), e);
}
var P7 = D7;
function B7(e) {
var t = [];
if (e != null)
for (var n in Object(e))
t.push(n);
return t;
}
var O7 = B7, E7 = k1, K7 = B0, j7 = O7, F7 = Object.prototype, Z7 = F7.hasOwnProperty;
function Q7(e) {
if (!E7(e))
return j7(e);
var t = K7(e), n = [];
for (var r in e)
r == "constructor" && (t || !Z7.call(e, r)) || n.push(r);
return n;
}
var R7 = Q7, z7 = J9, U7 = R7, Y7 = q9;
function V7(e) {
return Y7(e) ? z7(e, !0) : U7(e);
}
va