@das-fed/upf-ui 6.4.0-dev.258 → 6.4.0-dev.260
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 +3 -3
- package/packages/business-components/process-configuration/index.js +1 -1
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-configuration/style.css +1 -1
- package/packages/business-components/process-configuration/style.css.gz +0 -0
- package/packages/business-components/process-search-form/hooks/useSearchOptions.d.ts +2 -2
- package/packages/components/button/index.js +216 -262
- package/packages/components/button/index.js.gz +0 -0
- package/packages/components/button/style.css +1 -1
- package/packages/components/button/style.css.gz +0 -0
- package/packages/components/checkbox/index.js +1 -1
- package/packages/components/checkbox/index.js.gz +0 -0
- package/packages/components/checkbox/style.css +1 -1
- package/packages/components/checkbox/style.css.gz +0 -0
- package/packages/components/date-picker/index.js +636 -637
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/date-picker/style.css +1 -1
- package/packages/components/date-picker/style.css.gz +0 -0
- package/packages/components/form-item/index.js +466 -471
- package/packages/components/form-item/index.js.gz +0 -0
- package/packages/components/form-item/src/type.d.ts +0 -3
- package/packages/components/form-item/style.css +1 -1
- package/packages/components/form-item/style.css.gz +0 -0
- package/packages/components/input/index.js +890 -905
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input/src/index.vue.d.ts +2 -3
- package/packages/components/input/src/type.d.ts +1 -1
- package/packages/components/input/style.css +1 -1
- package/packages/components/input/style.css.gz +0 -0
- package/packages/components/search-form/index.js +124 -124
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/search-form/src/InputSelect.vue.d.ts +2 -2
- package/packages/components/search-form/src/SearchDateRange.vue.d.ts +2 -2
- package/packages/components/search-form/src/hooks/searchFormItem.d.ts +1 -1
- package/packages/components/search-form/style.css +1 -1
- package/packages/components/search-form/style.css.gz +0 -0
- package/packages/components/select/index.js +259 -272
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select/src/type.d.ts +0 -2
- package/packages/components/select/style.css +1 -1
- package/packages/components/select/style.css.gz +0 -0
- package/packages/components/tree-select/src/App.vue.d.ts +0 -2
- package/packages/components/tree-select/src/hooks/use-tree-select.d.ts +0 -2
- package/packages/components/tree-v2/index.js +1392 -1407
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/packages/components/tree-v2/style.css +1 -1
- package/packages/components/tree-v2/style.css.gz +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { withInstall as
|
|
2
|
-
import { defineComponent as
|
|
1
|
+
import { withInstall as ys } from "@das-fed/upf-utils/with-install/index";
|
|
2
|
+
import { defineComponent as To, useCssVars as xs, useAttrs as ws, computed as ct, ref as K, onMounted as $o, onBeforeMount as Ss, openBlock as ht, createBlock as Io, unref as Bt, mergeProps as En, withCtx as Dt, createVNode as io, createElementVNode as Re, normalizeClass as Pe, renderSlot as ee, createElementBlock as St, Fragment as Le, createTextVNode as Tn, toDisplayString as ze, createCommentVNode as Lt, normalizeStyle as Ve, nextTick as be, Teleport as Os, getCurrentScope as Cs, onScopeDispose as Es, getCurrentInstance as $n, watch as Gt, createSlots as Ts, withDirectives as $s } from "vue";
|
|
3
3
|
import "element-plus/es/components/input/style/css";
|
|
4
4
|
import { ElTooltip as Is, ElInput as Ls } from "element-plus";
|
|
5
|
-
import { currentLang as
|
|
6
|
-
import { DasScrollbar as
|
|
5
|
+
import { currentLang as Fo, t as Hs, setI18nRule as ks } from "@das-fed/upf-web/packages/i18n/index";
|
|
6
|
+
import { DasScrollbar as Ms } from "@das-fed/upf-ui/packages/components/scrollbar/index";
|
|
7
7
|
import "element-plus/es/components/tooltip/style/css";
|
|
8
|
-
import { createStyle as
|
|
8
|
+
import { createStyle as As } from "@das-fed/upf-utils/style";
|
|
9
9
|
import { useZIndex as Rs } from "@das-fed/upf-utils/hooks/popup-manager/use-zindex"
|
|
10
10
|
import '@das-fed/upf-ui/packages/components/input/style.css';
|
|
11
11
|
;
|
|
12
|
-
const
|
|
12
|
+
const Ps = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "das-tooltip-virtual-placeholder"
|
|
15
|
-
},
|
|
15
|
+
}, zs = ["innerHTML"], Vs = { key: 1 }, Bs = /* @__PURE__ */ To({
|
|
16
16
|
__name: "index",
|
|
17
17
|
props: {
|
|
18
18
|
selfPopperClass: { default: "" },
|
|
@@ -29,34 +29,34 @@ const zs = {
|
|
|
29
29
|
},
|
|
30
30
|
emits: ["show", "hide"],
|
|
31
31
|
setup(t, { expose: e, emit: o }) {
|
|
32
|
-
|
|
33
|
-
v65704ba4:
|
|
32
|
+
xs((m) => ({
|
|
33
|
+
v65704ba4: d.value
|
|
34
34
|
}));
|
|
35
|
-
const n = t, s = o, r =
|
|
36
|
-
const
|
|
37
|
-
return
|
|
38
|
-
}), l =
|
|
39
|
-
a.value =
|
|
40
|
-
},
|
|
41
|
-
s("show",
|
|
42
|
-
},
|
|
43
|
-
s("hide",
|
|
44
|
-
},
|
|
45
|
-
const
|
|
46
|
-
if (!
|
|
47
|
-
const
|
|
48
|
-
if (!
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
|
|
35
|
+
const n = t, s = o, r = ws(), c = ct(() => {
|
|
36
|
+
const m = "virtual-triggering" in r || "virtualTriggering" in r || r["virtual-triggering"] !== void 0 || r.virtualTriggering !== void 0, E = "virtual-ref" in r || "virtualRef" in r || r["virtual-ref"] !== void 0 || r.virtualRef !== void 0;
|
|
37
|
+
return m || E;
|
|
38
|
+
}), l = K(), a = K(!1), d = ct(() => Number(n.row)), i = ct(() => n.disabled ?? (n.text ? !a.value : !1)), u = ct(() => n.content || n.text), f = (m) => {
|
|
39
|
+
a.value = m.target.scrollHeight > m.target.clientHeight;
|
|
40
|
+
}, x = (m) => {
|
|
41
|
+
s("show", m), window.addEventListener("wheel", v);
|
|
42
|
+
}, C = (m) => {
|
|
43
|
+
s("hide", m), window.removeEventListener("wheel", v);
|
|
44
|
+
}, v = (m) => {
|
|
45
|
+
const E = document.querySelector('[id^="el-popper-container"]');
|
|
46
|
+
if (!E) return;
|
|
47
|
+
const w = E.querySelector(".das-ui-tooltip-popper");
|
|
48
|
+
if (!w) return;
|
|
49
|
+
const g = m.clientX, O = m.clientY, p = w == null ? void 0 : w.getBoundingClientRect();
|
|
50
|
+
w && g >= p.left && g <= p.right && O >= p.top && O <= p.bottom || (w.style.display = "none", w.style.opacity = "0", be(() => {
|
|
51
|
+
C();
|
|
52
52
|
}));
|
|
53
53
|
};
|
|
54
|
-
return
|
|
54
|
+
return $o(() => {
|
|
55
55
|
}), Ss(() => {
|
|
56
|
-
window.removeEventListener("wheel",
|
|
56
|
+
window.removeEventListener("wheel", v);
|
|
57
57
|
}), e({
|
|
58
58
|
$tooltipRef: l
|
|
59
|
-
}), (
|
|
59
|
+
}), (m, E) => (ht(), Io(Bt(Is), En({
|
|
60
60
|
ref_key: "$tooltipRef",
|
|
61
61
|
ref: l,
|
|
62
62
|
class: "das-ui-tooltip",
|
|
@@ -66,26 +66,26 @@ const zs = {
|
|
|
66
66
|
"popper-class": `das-ui-tooltip-popper ${t.isMaxheight ? "max-height" : ""} ${t.selfPopperClass}`,
|
|
67
67
|
"hide-after": 100,
|
|
68
68
|
"show-after": 100
|
|
69
|
-
},
|
|
70
|
-
onShow:
|
|
71
|
-
onHide:
|
|
69
|
+
}, m.$attrs, {
|
|
70
|
+
onShow: x,
|
|
71
|
+
onHide: C
|
|
72
72
|
}), {
|
|
73
73
|
content: Dt(() => [
|
|
74
|
-
|
|
74
|
+
io(Bt(Ms), null, {
|
|
75
75
|
default: Dt(() => [
|
|
76
76
|
Re(
|
|
77
77
|
"div",
|
|
78
78
|
{
|
|
79
|
-
class:
|
|
79
|
+
class: Pe({ "max-height": t.isMaxheight, "das-popper-content": !0 })
|
|
80
80
|
},
|
|
81
81
|
[
|
|
82
|
-
ee(
|
|
83
|
-
|
|
82
|
+
ee(m.$slots, "content", {}, void 0, !0),
|
|
83
|
+
u.value && !m.$slots.content ? (ht(), St(
|
|
84
84
|
Le,
|
|
85
85
|
{ key: 0 },
|
|
86
86
|
[
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
Tn(
|
|
88
|
+
ze(u.value),
|
|
89
89
|
1
|
|
90
90
|
/* TEXT */
|
|
91
91
|
)
|
|
@@ -103,28 +103,28 @@ const zs = {
|
|
|
103
103
|
})
|
|
104
104
|
]),
|
|
105
105
|
default: Dt(() => [
|
|
106
|
-
c.value ? (ht(), St("span",
|
|
106
|
+
c.value ? (ht(), St("span", Ps, " ")) : (ht(), St(
|
|
107
107
|
Le,
|
|
108
108
|
{ key: 1 },
|
|
109
109
|
[
|
|
110
110
|
Lt(" 默认 slot 内容 "),
|
|
111
|
-
ee(
|
|
111
|
+
ee(m.$slots, "default", {}, () => [
|
|
112
112
|
t.text ? (ht(), St(
|
|
113
113
|
"div",
|
|
114
114
|
{
|
|
115
115
|
key: 0,
|
|
116
|
-
onMouseenter:
|
|
117
|
-
class:
|
|
118
|
-
style:
|
|
116
|
+
onMouseenter: E[0] || (E[0] = (w) => f(w)),
|
|
117
|
+
class: Pe(`das-tooltip-text-wrap ${t.customClass}`),
|
|
118
|
+
style: Ve({ width: n.textWidth })
|
|
119
119
|
},
|
|
120
120
|
[
|
|
121
121
|
t.textHtml ? (ht(), St("div", {
|
|
122
122
|
key: 0,
|
|
123
123
|
innerHTML: t.text
|
|
124
|
-
}, null, 8,
|
|
124
|
+
}, null, 8, zs)) : (ht(), St(
|
|
125
125
|
"div",
|
|
126
|
-
|
|
127
|
-
|
|
126
|
+
Vs,
|
|
127
|
+
ze(t.text),
|
|
128
128
|
1
|
|
129
129
|
/* TEXT */
|
|
130
130
|
))
|
|
@@ -136,7 +136,7 @@ const zs = {
|
|
|
136
136
|
{ key: 1 },
|
|
137
137
|
[
|
|
138
138
|
Lt(" 当没有 text 且没有 slot 内容时,提供一个占位元素避免 ElOnlyChild 错误 "),
|
|
139
|
-
|
|
139
|
+
E[1] || (E[1] = Re(
|
|
140
140
|
"span",
|
|
141
141
|
{ class: "das-tooltip-virtual-placeholder" },
|
|
142
142
|
" ",
|
|
@@ -157,12 +157,12 @@ const zs = {
|
|
|
157
157
|
/* FORWARDED */
|
|
158
158
|
}, 16, ["disabled", "effect", "placement", "popper-class"]));
|
|
159
159
|
}
|
|
160
|
-
}),
|
|
160
|
+
}), In = (t, e) => {
|
|
161
161
|
const o = t.__vccOpts || t;
|
|
162
162
|
for (const [n, s] of e)
|
|
163
163
|
o[n] = s;
|
|
164
164
|
return o;
|
|
165
|
-
}, Ds = /* @__PURE__ */
|
|
165
|
+
}, Ds = /* @__PURE__ */ In(Bs, [["__scopeId", "data-v-e1652f58"]]), Ws = /* @__PURE__ */ To({
|
|
166
166
|
__name: "index",
|
|
167
167
|
props: {
|
|
168
168
|
getEl: {},
|
|
@@ -171,10 +171,10 @@ const zs = {
|
|
|
171
171
|
errorWidth: { default: void 0 }
|
|
172
172
|
},
|
|
173
173
|
setup(t) {
|
|
174
|
-
const e = t, o =
|
|
174
|
+
const e = t, o = K(null), n = K(), s = K({
|
|
175
175
|
x: 0,
|
|
176
176
|
y: 0
|
|
177
|
-
}), r =
|
|
177
|
+
}), r = ct(() => ({
|
|
178
178
|
"box-sizing": "border-box",
|
|
179
179
|
"font-size": "12px",
|
|
180
180
|
// 错误浮层直接消费 upf 根变量,确保 Teleport 到 body 后仍随主题同步。
|
|
@@ -183,60 +183,60 @@ const zs = {
|
|
|
183
183
|
"border-radius": "var(--upf-border-radius, 4px)",
|
|
184
184
|
padding: "2px 8px",
|
|
185
185
|
"z-index": e.errorModelZIndex
|
|
186
|
-
})), c =
|
|
187
|
-
const
|
|
186
|
+
})), c = ct(() => {
|
|
187
|
+
const d = n.value ?? "0";
|
|
188
188
|
return {
|
|
189
189
|
...r.value,
|
|
190
|
-
width:
|
|
190
|
+
width: d + (/px$/.test(d) ? "" : "px"),
|
|
191
191
|
position: "fixed",
|
|
192
192
|
visibility: "visible",
|
|
193
193
|
top: s.value.y + "px",
|
|
194
194
|
left: s.value.x + "px"
|
|
195
195
|
};
|
|
196
|
-
}), l =
|
|
196
|
+
}), l = K({
|
|
197
197
|
// display: 'block',
|
|
198
198
|
color: "var(--upf-message-error-text, var(--upf-color-error))",
|
|
199
199
|
"white-space": "break-spaces"
|
|
200
200
|
}), a = () => {
|
|
201
|
-
const
|
|
202
|
-
const
|
|
203
|
-
for (let [
|
|
201
|
+
const d = (O = 0) => {
|
|
202
|
+
const p = document.createElement("div");
|
|
203
|
+
for (let [V, I] of Object.entries({
|
|
204
204
|
...r.value,
|
|
205
205
|
...l.value,
|
|
206
|
-
width:
|
|
206
|
+
width: O + "px"
|
|
207
207
|
}))
|
|
208
|
-
|
|
209
|
-
const
|
|
210
|
-
for (let [
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
const
|
|
214
|
-
return document.body.removeChild(
|
|
208
|
+
p.style[V] = I;
|
|
209
|
+
const S = document.createElement("span");
|
|
210
|
+
for (let [V, I] of Object.entries(l.value))
|
|
211
|
+
S.style[V] = I;
|
|
212
|
+
S.textContent = e.errorLabel, p.appendChild(S), document.body.appendChild(p);
|
|
213
|
+
const R = p.offsetHeight, W = S.offsetWidth;
|
|
214
|
+
return document.body.removeChild(p), { height: R, textWidth: W };
|
|
215
215
|
}, i = () => {
|
|
216
|
-
const
|
|
217
|
-
return
|
|
218
|
-
},
|
|
219
|
-
e.errorWidth ? n.value = e.errorWidth :
|
|
220
|
-
const { left:
|
|
221
|
-
s.value.y = Math.ceil(
|
|
216
|
+
const O = document.documentElement.clientHeight, S = document.documentElement.scrollHeight - O;
|
|
217
|
+
return O - S;
|
|
218
|
+
}, u = e.getEl(), f = (u == null ? void 0 : u.clientWidth) ?? 0, x = d(f), C = x.textWidth;
|
|
219
|
+
e.errorWidth ? n.value = e.errorWidth : C > f ? n.value = C + 2 + 8 + "px" : n.value = f + "px";
|
|
220
|
+
const { left: v = 0, bottom: m = 0, height: E = 0 } = (u == null ? void 0 : u.getBoundingClientRect()) ?? {}, w = i(), g = x.height;
|
|
221
|
+
s.value.y = Math.ceil(m + g) >= w ? m - E - g : m, s.value.x = v;
|
|
222
222
|
};
|
|
223
|
-
return
|
|
223
|
+
return $o(async () => {
|
|
224
224
|
await be(), a();
|
|
225
|
-
}), (
|
|
225
|
+
}), (d, i) => (ht(), Io(Os, { to: "body" }, [
|
|
226
226
|
Re(
|
|
227
227
|
"div",
|
|
228
228
|
{
|
|
229
229
|
ref_key: "$errorModel",
|
|
230
230
|
ref: o,
|
|
231
|
-
style:
|
|
231
|
+
style: Ve(c.value)
|
|
232
232
|
},
|
|
233
233
|
[
|
|
234
234
|
Re(
|
|
235
235
|
"span",
|
|
236
236
|
{
|
|
237
|
-
style:
|
|
237
|
+
style: Ve(l.value)
|
|
238
238
|
},
|
|
239
|
-
|
|
239
|
+
ze(t.errorLabel),
|
|
240
240
|
5
|
|
241
241
|
/* TEXT, STYLE */
|
|
242
242
|
)
|
|
@@ -259,12 +259,12 @@ const zs = {
|
|
|
259
259
|
const Ct = (t, e) => {
|
|
260
260
|
const { o, u: n, _: s } = t;
|
|
261
261
|
let r = o, c;
|
|
262
|
-
const l = (i,
|
|
263
|
-
const f = r,
|
|
264
|
-
return (
|
|
262
|
+
const l = (i, u) => {
|
|
263
|
+
const f = r, x = i, C = u || (n ? !n(f, x) : f !== x);
|
|
264
|
+
return (C || s) && (r = x, c = f), [r, C, c];
|
|
265
265
|
};
|
|
266
266
|
return [e ? (i) => l(e(r, c), i) : l, (i) => [r, !!i, c]];
|
|
267
|
-
},
|
|
267
|
+
}, Lo = typeof window < "u", yt = Lo ? window : {}, He = Math.max, _s = Math.min, ao = Math.round, Ln = yt.cancelAnimationFrame, Hn = yt.requestAnimationFrame, uo = yt.setTimeout, fo = yt.clearTimeout, Fe = (t) => typeof yt[t] < "u" ? yt[t] : void 0, Ns = Fe("MutationObserver"), Uo = Fe("IntersectionObserver"), Be = Fe("ResizeObserver"), po = Fe("ScrollTimeline"), kn = Lo && Node.ELEMENT_NODE, { toString: Fs, hasOwnProperty: oo } = Object.prototype, Us = /^\[object (.+)\]$/, we = (t) => t === void 0, Ue = (t) => t === null, js = (t) => we(t) || Ue(t) ? `${t}` : Fs.call(t).replace(Us, "$1").toLowerCase(), Ht = (t) => typeof t == "number", je = (t) => typeof t == "string", Mn = (t) => typeof t == "boolean", kt = (t) => typeof t == "function", Tt = (t) => Array.isArray(t), ye = (t) => typeof t == "object" && !Tt(t) && !Ue(t), Xe = (t) => {
|
|
268
268
|
const e = !!t && t.length, o = Ht(e) && e > -1 && e % 1 == 0;
|
|
269
269
|
return Tt(t) || !kt(t) && o ? e > 0 && ye(t) ? e - 1 in t : !0 : !1;
|
|
270
270
|
}, De = (t) => {
|
|
@@ -279,10 +279,10 @@ const Ct = (t, e) => {
|
|
|
279
279
|
return we(e) || oo.call(t, e);
|
|
280
280
|
}, me = (t) => {
|
|
281
281
|
const e = HTMLElement;
|
|
282
|
-
return t ? e ? t instanceof e : t.nodeType ===
|
|
282
|
+
return t ? e ? t instanceof e : t.nodeType === kn : !1;
|
|
283
283
|
}, Ye = (t) => {
|
|
284
284
|
const e = Element;
|
|
285
|
-
return t ? e ? t instanceof e : t.nodeType ===
|
|
285
|
+
return t ? e ? t instanceof e : t.nodeType === kn : !1;
|
|
286
286
|
};
|
|
287
287
|
function G(t, e) {
|
|
288
288
|
if (Xe(t))
|
|
@@ -291,9 +291,9 @@ function G(t, e) {
|
|
|
291
291
|
else t && G(Object.keys(t), (o) => e(t[o], o, t));
|
|
292
292
|
return t;
|
|
293
293
|
}
|
|
294
|
-
const Ze = (t, e) => t.indexOf(e) >= 0,
|
|
294
|
+
const Ze = (t, e) => t.indexOf(e) >= 0, Mt = (t, e) => t.concat(e), tt = (t, e, o) => (!je(e) && Xe(e) ? Array.prototype.push.apply(t, e) : t.push(e), t), Kt = (t) => Array.from(t || []), An = (t) => Tt(t) ? t : [t], ho = (t) => !!t && !t.length, jo = (t) => Kt(new Set(t)), xt = (t, e, o) => {
|
|
295
295
|
G(t, (s) => s && s.apply(void 0, e || [])), !o && (t.length = 0);
|
|
296
|
-
},
|
|
296
|
+
}, Rn = "paddingTop", Pn = "paddingRight", zn = "paddingLeft", Vn = "paddingBottom", Bn = "marginLeft", Dn = "marginRight", Wn = "marginBottom", Ge = "overflowX", qe = "overflowY", ce = "width", le = "height", ie = "hidden", _n = "visible", Ho = (t, e, o, n) => {
|
|
297
297
|
if (t && e) {
|
|
298
298
|
let s = !0;
|
|
299
299
|
return G(o, (r) => {
|
|
@@ -302,53 +302,53 @@ const Ze = (t, e) => t.indexOf(e) >= 0, At = (t, e) => t.concat(e), et = (t, e,
|
|
|
302
302
|
}), s;
|
|
303
303
|
}
|
|
304
304
|
return !1;
|
|
305
|
-
},
|
|
306
|
-
}, D = (t, ...e) => t.bind(0, ...e),
|
|
305
|
+
}, Nn = (t, e) => Ho(t, e, ["w", "h"]), Fn = (t, e) => Ho(t, e, ["x", "y"]), Xs = (t, e) => Ho(t, e, ["t", "r", "b", "l"]), Et = () => {
|
|
306
|
+
}, D = (t, ...e) => t.bind(0, ...e), zt = (t) => {
|
|
307
307
|
let e;
|
|
308
|
-
const o = t ?
|
|
308
|
+
const o = t ? uo : Hn, n = t ? fo : Ln;
|
|
309
309
|
return [(s) => {
|
|
310
310
|
n(e), e = o(s, kt(t) ? t() : t);
|
|
311
311
|
}, () => n(e)];
|
|
312
|
-
},
|
|
312
|
+
}, Un = (t, e) => {
|
|
313
313
|
let o, n, s, r = Et;
|
|
314
|
-
const { v: c, p: l, S: a } = e || {},
|
|
315
|
-
r(),
|
|
316
|
-
}, i = (
|
|
317
|
-
r !== Et &&
|
|
314
|
+
const { v: c, p: l, S: a } = e || {}, d = function(C) {
|
|
315
|
+
r(), fo(o), o = n = void 0, r = Et, t.apply(this, C);
|
|
316
|
+
}, i = (x) => a && n ? a(n, x) : x, u = () => {
|
|
317
|
+
r !== Et && d(i(s) || s);
|
|
318
318
|
}, f = function() {
|
|
319
|
-
const
|
|
320
|
-
if (Ht(
|
|
321
|
-
const
|
|
319
|
+
const C = Kt(arguments), v = kt(c) ? c() : c;
|
|
320
|
+
if (Ht(v) && v >= 0) {
|
|
321
|
+
const E = kt(l) ? l() : l, w = Ht(E) && E >= 0, g = v > 0 ? uo : Hn, O = v > 0 ? fo : Ln, S = i(C) || C, R = d.bind(0, S);
|
|
322
322
|
r();
|
|
323
|
-
const W =
|
|
324
|
-
r = () =>
|
|
323
|
+
const W = g(R, v);
|
|
324
|
+
r = () => O(W), w && !o && (o = uo(u, E)), n = s = S;
|
|
325
325
|
} else
|
|
326
|
-
|
|
326
|
+
d(C);
|
|
327
327
|
};
|
|
328
|
-
return f.m =
|
|
329
|
-
},
|
|
328
|
+
return f.m = u, f;
|
|
329
|
+
}, jn = (t, e) => Object.prototype.hasOwnProperty.call(t, e), At = (t) => t ? Object.keys(t) : [], Y = (t, e, o, n, s, r, c) => {
|
|
330
330
|
const l = [e, o, n, s, r, c];
|
|
331
331
|
return (typeof t != "object" || Ue(t)) && !kt(t) && (t = {}), G(l, (a) => {
|
|
332
|
-
G(a, (
|
|
333
|
-
const
|
|
334
|
-
if (t ===
|
|
332
|
+
G(a, (d, i) => {
|
|
333
|
+
const u = a[i];
|
|
334
|
+
if (t === u)
|
|
335
335
|
return !0;
|
|
336
|
-
const f = Tt(
|
|
337
|
-
if (
|
|
338
|
-
const
|
|
339
|
-
let
|
|
340
|
-
f && !Tt(
|
|
336
|
+
const f = Tt(u);
|
|
337
|
+
if (u && De(u)) {
|
|
338
|
+
const x = t[i];
|
|
339
|
+
let C = x;
|
|
340
|
+
f && !Tt(x) ? C = [] : !f && !De(x) && (C = {}), t[i] = Y(C, u);
|
|
341
341
|
} else
|
|
342
|
-
t[i] = f ?
|
|
342
|
+
t[i] = f ? u.slice() : u;
|
|
343
343
|
});
|
|
344
344
|
}), t;
|
|
345
|
-
},
|
|
346
|
-
o === void 0 ? delete s[n] : o && De(o) && (s[n] =
|
|
347
|
-
}),
|
|
345
|
+
}, Xn = (t, e) => G(Y({}, t), (o, n, s) => {
|
|
346
|
+
o === void 0 ? delete s[n] : o && De(o) && (s[n] = Xn(o));
|
|
347
|
+
}), ko = (t) => {
|
|
348
348
|
for (const e in t)
|
|
349
349
|
return !1;
|
|
350
350
|
return !0;
|
|
351
|
-
},
|
|
351
|
+
}, vo = (t, e, o) => He(t, _s(e, o)), Yt = (t) => Kt(new Set((Tt(t) ? t : (t || "").split(" ")).filter((e) => e))), Qe = (t, e) => t && t.getAttribute(e), Ot = (t, e, o) => {
|
|
352
352
|
G(Yt(e), (n) => {
|
|
353
353
|
t && t.setAttribute(n, o || "");
|
|
354
354
|
});
|
|
@@ -367,19 +367,19 @@ const Ze = (t, e) => t.indexOf(e) >= 0, At = (t, e) => t.concat(e), et = (t, e,
|
|
|
367
367
|
return c.reduce((l, a) => l && o.includes(a), c.length > 0);
|
|
368
368
|
}
|
|
369
369
|
};
|
|
370
|
-
},
|
|
370
|
+
}, Yn = (t, e, o) => {
|
|
371
371
|
Ke(t, e).O(o);
|
|
372
|
-
}, xe = (t, e, o) => (Ke(t, e).$(o), D(
|
|
373
|
-
(n ? xe :
|
|
374
|
-
}, Ys = (t, e, o) => Ke(t, e).C(o),
|
|
375
|
-
|
|
376
|
-
}, We = (t, e) => (
|
|
372
|
+
}, xe = (t, e, o) => (Ke(t, e).$(o), D(Yn, t, e, o)), ke = (t, e, o, n) => {
|
|
373
|
+
(n ? xe : Yn)(t, e, o);
|
|
374
|
+
}, Ys = (t, e, o) => Ke(t, e).C(o), Zn = (t) => Ke(t, "class"), Mo = (t, e) => {
|
|
375
|
+
Zn(t).O(e);
|
|
376
|
+
}, We = (t, e) => (Zn(t).$(e), D(Mo, t, e)), Xo = Lo && Element.prototype, Gn = (t, e) => {
|
|
377
377
|
const o = [], n = e ? Ye(e) && e : document;
|
|
378
|
-
return n ?
|
|
378
|
+
return n ? tt(o, n.querySelectorAll(t)) : o;
|
|
379
379
|
}, Zs = (t, e) => {
|
|
380
380
|
const o = e ? Ye(e) && e : document;
|
|
381
381
|
return o ? o.querySelector(t) : null;
|
|
382
|
-
},
|
|
382
|
+
}, mo = (t, e) => Ye(t) ? (Xo.matches || Xo.msMatchesSelector).call(t, e) : !1, go = (t) => t ? Kt(t.childNodes) : [], ae = (t) => t && t.parentElement, oe = (t, e) => Ye(t) && t.closest(e), Gs = (t, e, o) => {
|
|
383
383
|
const n = oe(t, e), s = t && Zs(o, n), r = oe(s, e) === n;
|
|
384
384
|
return n && s ? n === t || s === t || r && oe(oe(t, o), e) !== n : !1;
|
|
385
385
|
}, Nt = (t) => {
|
|
@@ -389,7 +389,7 @@ const Ze = (t, e) => t.indexOf(e) >= 0, At = (t, e) => t.concat(e), et = (t, e,
|
|
|
389
389
|
const e = ae(t);
|
|
390
390
|
e && e.removeChild(t);
|
|
391
391
|
}
|
|
392
|
-
},
|
|
392
|
+
}, qn = (t, e, o) => {
|
|
393
393
|
if (o && t) {
|
|
394
394
|
let n = e, s;
|
|
395
395
|
return Xe(o) ? (s = document.createDocumentFragment(), G(o, (r) => {
|
|
@@ -397,20 +397,20 @@ const Ze = (t, e) => t.indexOf(e) >= 0, At = (t, e) => t.concat(e), et = (t, e,
|
|
|
397
397
|
})) : s = o, e && (n ? n !== e && (n = n.nextSibling) : n = t.firstChild), t.insertBefore(s, n || null), () => Nt(o);
|
|
398
398
|
}
|
|
399
399
|
return Et;
|
|
400
|
-
}, bt = (t, e) =>
|
|
400
|
+
}, bt = (t, e) => qn(t, null, e), Yo = (t, e) => qn(ae(t), t && t.nextSibling, e), ne = (t) => {
|
|
401
401
|
const e = document.createElement("div");
|
|
402
402
|
return Ot(e, "class", t), e;
|
|
403
|
-
},
|
|
403
|
+
}, Qn = (t) => {
|
|
404
404
|
const e = ne();
|
|
405
|
-
return e.innerHTML = t.trim(), G(
|
|
406
|
-
}, qs = /^--/,
|
|
405
|
+
return e.innerHTML = t.trim(), G(go(e), (o) => Nt(o));
|
|
406
|
+
}, qs = /^--/, Zo = (t, e) => t.getPropertyValue(e) || t[e] || "", Ao = (t) => {
|
|
407
407
|
const e = t || 0;
|
|
408
408
|
return isFinite(e) ? e : 0;
|
|
409
|
-
}, Te = (t) => Ao(parseFloat(t || "")),
|
|
409
|
+
}, Te = (t) => Ao(parseFloat(t || "")), Go = (t) => `${(Ao(t) * 100).toFixed(3)}%`, bo = (t) => `${Ao(t)}px`;
|
|
410
410
|
function ue(t, e) {
|
|
411
411
|
t && G(e, (o, n) => {
|
|
412
412
|
try {
|
|
413
|
-
const s = t.style, r = Ht(o) ?
|
|
413
|
+
const s = t.style, r = Ht(o) ? bo(o) : (o || "") + "";
|
|
414
414
|
qs.test(n) ? s.setProperty(n, r) : s[n] = r;
|
|
415
415
|
} catch {
|
|
416
416
|
}
|
|
@@ -421,17 +421,17 @@ function qt(t, e, o) {
|
|
|
421
421
|
let s = n ? "" : {};
|
|
422
422
|
if (t) {
|
|
423
423
|
const r = yt.getComputedStyle(t, o) || t.style;
|
|
424
|
-
s = n ?
|
|
424
|
+
s = n ? Zo(r, e) : e.reduce((c, l) => (c[l] = Zo(r, l), c), s);
|
|
425
425
|
}
|
|
426
426
|
return s;
|
|
427
427
|
}
|
|
428
|
-
const _t = (t) => qt(t, "direction") === "rtl",
|
|
429
|
-
const n = e ? `${e}-` : "", s = o ? `-${o}` : "", r = `${n}top${s}`, c = `${n}right${s}`, l = `${n}bottom${s}`, a = `${n}left${s}`,
|
|
428
|
+
const _t = (t) => qt(t, "direction") === "rtl", qo = (t, e, o) => {
|
|
429
|
+
const n = e ? `${e}-` : "", s = o ? `-${o}` : "", r = `${n}top${s}`, c = `${n}right${s}`, l = `${n}bottom${s}`, a = `${n}left${s}`, d = qt(t, [r, c, l, a]);
|
|
430
430
|
return {
|
|
431
|
-
t: Te(
|
|
432
|
-
r: Te(
|
|
433
|
-
b: Te(
|
|
434
|
-
l: Te(
|
|
431
|
+
t: Te(d[r]),
|
|
432
|
+
r: Te(d[c]),
|
|
433
|
+
b: Te(d[l]),
|
|
434
|
+
l: Te(d[a])
|
|
435
435
|
};
|
|
436
436
|
}, no = (t, e) => `translate${ye(t) ? `(${t.x},${t.y})` : `${e ? "X" : "Y"}(${t})`}`, Qs = {
|
|
437
437
|
w: 0,
|
|
@@ -439,32 +439,32 @@ const _t = (t) => qt(t, "direction") === "rtl", Go = (t, e, o) => {
|
|
|
439
439
|
}, Je = (t, e) => e ? {
|
|
440
440
|
w: e[`${t}Width`],
|
|
441
441
|
h: e[`${t}Height`]
|
|
442
|
-
} : Qs, Ks = (t) => Je("inner", t || yt), ge = D(Je, "offset"),
|
|
442
|
+
} : Qs, Ks = (t) => Je("inner", t || yt), ge = D(Je, "offset"), Kn = D(Je, "client"), yo = D(Je, "scroll"), Ro = (t) => {
|
|
443
443
|
const e = parseFloat(qt(t, ce)) || 0, o = parseFloat(qt(t, le)) || 0;
|
|
444
444
|
return {
|
|
445
|
-
w: e -
|
|
446
|
-
h: o -
|
|
445
|
+
w: e - ao(e),
|
|
446
|
+
h: o - ao(o)
|
|
447
447
|
};
|
|
448
|
-
}, se = (t) => t.getBoundingClientRect(),
|
|
449
|
-
const o =
|
|
450
|
-
return !
|
|
451
|
-
},
|
|
448
|
+
}, se = (t) => t.getBoundingClientRect(), xo = (t) => !!(t && (t[le] || t[ce])), Jn = (t, e) => {
|
|
449
|
+
const o = xo(t);
|
|
450
|
+
return !xo(e) && o;
|
|
451
|
+
}, Qo = (t, e, o, n) => {
|
|
452
452
|
G(Yt(e), (s) => {
|
|
453
453
|
t.removeEventListener(s, o, n);
|
|
454
454
|
});
|
|
455
|
-
},
|
|
455
|
+
}, st = (t, e, o, n) => {
|
|
456
456
|
var s;
|
|
457
457
|
const r = (s = n && n.H) != null ? s : !0, c = n && n.I || !1, l = n && n.A || !1, a = {
|
|
458
458
|
passive: r,
|
|
459
459
|
capture: c
|
|
460
460
|
};
|
|
461
|
-
return D(xt, Yt(e).map((
|
|
462
|
-
const i = l ? (
|
|
463
|
-
|
|
461
|
+
return D(xt, Yt(e).map((d) => {
|
|
462
|
+
const i = l ? (u) => {
|
|
463
|
+
Qo(t, d, i, c), o(u);
|
|
464
464
|
} : o;
|
|
465
|
-
return t.addEventListener(
|
|
465
|
+
return t.addEventListener(d, i, a), D(Qo, t, d, i, c);
|
|
466
466
|
}));
|
|
467
|
-
},
|
|
467
|
+
}, Po = (t) => t.stopPropagation(), Ko = (t) => t.preventDefault(), Js = {
|
|
468
468
|
x: 0,
|
|
469
469
|
y: 0
|
|
470
470
|
}, so = (t) => {
|
|
@@ -473,7 +473,7 @@ const _t = (t) => qt(t, "direction") === "rtl", Go = (t, e, o) => {
|
|
|
473
473
|
x: e.left + yt.scrollX,
|
|
474
474
|
y: e.top + yt.scrollY
|
|
475
475
|
} : Js;
|
|
476
|
-
}, _e = (t, e, o) => o ? o.n ? -t + 0 : o.i ? e - t : t : t,
|
|
476
|
+
}, _e = (t, e, o) => o ? o.n ? -t + 0 : o.i ? e - t : t : t, Jo = (t, e) => [_e(0, t, e), _e(t, t, e)], tn = (t, e, o) => vo(0, 1, _e(t, e, o) / e || 0), Ft = (t, e) => {
|
|
477
477
|
const { x: o, y: n } = Ht(e) ? {
|
|
478
478
|
x: e,
|
|
479
479
|
y: e
|
|
@@ -482,13 +482,13 @@ const _t = (t) => qt(t, "direction") === "rtl", Go = (t, e, o) => {
|
|
|
482
482
|
}, de = (t) => ({
|
|
483
483
|
x: t.scrollLeft,
|
|
484
484
|
y: t.scrollTop
|
|
485
|
-
}),
|
|
486
|
-
G(
|
|
487
|
-
},
|
|
485
|
+
}), en = (t, e) => {
|
|
486
|
+
G(An(e), t);
|
|
487
|
+
}, wo = (t) => {
|
|
488
488
|
const e = /* @__PURE__ */ new Map(), o = (r, c) => {
|
|
489
489
|
if (r) {
|
|
490
490
|
const l = e.get(r);
|
|
491
|
-
|
|
491
|
+
en((a) => {
|
|
492
492
|
l && l[a ? "delete" : "clear"](a);
|
|
493
493
|
}, c);
|
|
494
494
|
} else
|
|
@@ -497,28 +497,28 @@ const _t = (t) => qt(t, "direction") === "rtl", Go = (t, e, o) => {
|
|
|
497
497
|
}), e.clear();
|
|
498
498
|
}, n = (r, c) => {
|
|
499
499
|
if (je(r)) {
|
|
500
|
-
const
|
|
501
|
-
return e.set(r,
|
|
502
|
-
kt(i) &&
|
|
500
|
+
const d = e.get(r) || /* @__PURE__ */ new Set();
|
|
501
|
+
return e.set(r, d), en((i) => {
|
|
502
|
+
kt(i) && d.add(i);
|
|
503
503
|
}, c), D(o, r, c);
|
|
504
504
|
}
|
|
505
505
|
Mn(c) && c && o();
|
|
506
|
-
const l =
|
|
507
|
-
return G(l, (
|
|
508
|
-
const i = r[
|
|
509
|
-
i &&
|
|
506
|
+
const l = At(r), a = [];
|
|
507
|
+
return G(l, (d) => {
|
|
508
|
+
const i = r[d];
|
|
509
|
+
i && tt(a, n(d, i));
|
|
510
510
|
}), D(xt, a);
|
|
511
511
|
}, s = (r, c) => {
|
|
512
512
|
G(Kt(e.get(r)), (l) => {
|
|
513
|
-
c && !
|
|
513
|
+
c && !ho(c) ? l.apply(0, c) : l();
|
|
514
514
|
});
|
|
515
515
|
};
|
|
516
516
|
return n(t || {}), [n, o, s];
|
|
517
|
-
},
|
|
517
|
+
}, on = (t) => JSON.stringify(t, (e, o) => {
|
|
518
518
|
if (kt(o))
|
|
519
519
|
throw 0;
|
|
520
520
|
return o;
|
|
521
|
-
}),
|
|
521
|
+
}), nn = (t, e) => t ? `${e}`.split(".").reduce((o, n) => o && jn(o, n) ? o[n] : void 0, t) : void 0, tr = {
|
|
522
522
|
paddingAbsolute: !1,
|
|
523
523
|
showNativeOverlaidScrollbars: !1,
|
|
524
524
|
update: {
|
|
@@ -541,39 +541,39 @@ const _t = (t) => qt(t, "direction") === "rtl", Go = (t, e, o) => {
|
|
|
541
541
|
clickScroll: !1,
|
|
542
542
|
pointers: ["mouse", "touch", "pen"]
|
|
543
543
|
}
|
|
544
|
-
},
|
|
545
|
-
const o = {}, n = At(
|
|
544
|
+
}, ts = (t, e) => {
|
|
545
|
+
const o = {}, n = Mt(At(e), At(t));
|
|
546
546
|
return G(n, (s) => {
|
|
547
547
|
const r = t[s], c = e[s];
|
|
548
548
|
if (ye(r) && ye(c))
|
|
549
|
-
Y(o[s] = {},
|
|
550
|
-
else if (
|
|
549
|
+
Y(o[s] = {}, ts(r, c)), ko(o[s]) && delete o[s];
|
|
550
|
+
else if (jn(e, s) && c !== r) {
|
|
551
551
|
let l = !0;
|
|
552
552
|
if (Tt(r) || Tt(c))
|
|
553
553
|
try {
|
|
554
|
-
|
|
554
|
+
on(r) === on(c) && (l = !1);
|
|
555
555
|
} catch {
|
|
556
556
|
}
|
|
557
557
|
l && (o[s] = c);
|
|
558
558
|
}
|
|
559
559
|
}), o;
|
|
560
|
-
},
|
|
560
|
+
}, sn = (t, e, o) => (n) => [nn(t, n), o || nn(e, n) !== void 0], Se = "data-overlayscrollbars", es = "os-environment", er = `${es}-scrollbar-hidden`, ro = `${Se}-initialize`, gt = Se, os = `${gt}-overflow-x`, ns = `${gt}-overflow-y`, ss = "overflowVisible", or = "scrollbarPressed", So = "updating", nr = "body", Vt = `${Se}-viewport`, sr = "arrange", rs = "scrollbarHidden", re = ss, Oo = `${Se}-padding`, rr = re, rn = `${Se}-content`, zo = "os-size-observer", cr = `${zo}-appear`, lr = `${zo}-listener`, ir = "os-trinsic-observer", ar = "os-theme-none", vt = "os-scrollbar", ur = `${vt}-rtl`, dr = `${vt}-horizontal`, fr = `${vt}-vertical`, cs = `${vt}-track`, Vo = `${vt}-handle`, pr = `${vt}-visible`, hr = `${vt}-cornerless`, cn = `${vt}-interaction`, ln = `${vt}-unusable`, Co = `${vt}-auto-hide`, an = `${Co}-hidden`, un = `${vt}-wheel`, vr = `${cs}-interactive`, mr = `${Vo}-interactive`, ls = {}, is = {}, gr = (t) => {
|
|
561
561
|
G(t, (e) => G(e, (o, n) => {
|
|
562
|
-
|
|
562
|
+
ls[n] = e[n];
|
|
563
563
|
}));
|
|
564
|
-
},
|
|
565
|
-
const { static: s, instance: r } = t[n], [c, l, a] = o || [],
|
|
566
|
-
if (
|
|
567
|
-
const i = o ?
|
|
568
|
-
return (a ||
|
|
564
|
+
}, as = (t, e, o) => At(t).map((n) => {
|
|
565
|
+
const { static: s, instance: r } = t[n], [c, l, a] = o || [], d = o ? r : s;
|
|
566
|
+
if (d) {
|
|
567
|
+
const i = o ? d(c, l, e) : d(e);
|
|
568
|
+
return (a || is)[n] = i;
|
|
569
569
|
}
|
|
570
|
-
}), fe = (t) =>
|
|
570
|
+
}), fe = (t) => is[t], br = "__osOptionsValidationPlugin", yr = "__osSizeObserverPlugin", xr = (t, e) => {
|
|
571
571
|
const { T: o } = e, [n, s] = t("showNativeOverlaidScrollbars");
|
|
572
572
|
return [n && o.x && o.y, s];
|
|
573
|
-
}, Ne = (t) => t.indexOf(
|
|
573
|
+
}, Ne = (t) => t.indexOf(_n) === 0, us = (t, e) => {
|
|
574
574
|
const { D: o } = t, n = (a) => {
|
|
575
|
-
const
|
|
576
|
-
return [
|
|
575
|
+
const d = qt(o, a), u = (e ? e[a] : d) === "scroll";
|
|
576
|
+
return [d, u];
|
|
577
577
|
}, [s, r] = n(Ge), [c, l] = n(qe);
|
|
578
578
|
return {
|
|
579
579
|
k: {
|
|
@@ -586,57 +586,57 @@ const _t = (t) => qt(t, "direction") === "rtl", Go = (t, e, o) => {
|
|
|
586
586
|
}
|
|
587
587
|
};
|
|
588
588
|
}, wr = (t, e, o, n) => {
|
|
589
|
-
const s = e.x || e.y, r = (i,
|
|
590
|
-
const f = Ne(i),
|
|
591
|
-
return [
|
|
592
|
-
}, [c, l] = r(o.x, e.x), [a,
|
|
593
|
-
return n[Ge] = l && a ? l : c, n[qe] =
|
|
589
|
+
const s = e.x || e.y, r = (i, u) => {
|
|
590
|
+
const f = Ne(i), x = f && s ? "hidden" : "", C = u && f && i.replace(`${_n}-`, "") || x;
|
|
591
|
+
return [u && !f ? i : "", Ne(C) ? "hidden" : C];
|
|
592
|
+
}, [c, l] = r(o.x, e.x), [a, d] = r(o.y, e.y);
|
|
593
|
+
return n[Ge] = l && a ? l : c, n[qe] = d && c ? d : a, us(t, n);
|
|
594
594
|
}, Bo = "__osScrollbarsHidingPlugin", Sr = "__osClickScrollPlugin";
|
|
595
595
|
let co;
|
|
596
596
|
const Or = () => {
|
|
597
|
-
const t = (
|
|
598
|
-
bt(
|
|
599
|
-
const
|
|
600
|
-
return
|
|
601
|
-
x: W.h -
|
|
602
|
-
y: W.w -
|
|
597
|
+
const t = (g, O, p, S) => {
|
|
598
|
+
bt(g, O);
|
|
599
|
+
const R = Kn(O), W = ge(O), V = Ro(p);
|
|
600
|
+
return S && Nt(O), {
|
|
601
|
+
x: W.h - R.h + V.h,
|
|
602
|
+
y: W.w - R.w + V.w
|
|
603
603
|
};
|
|
604
|
-
}, e = (
|
|
605
|
-
let
|
|
606
|
-
const
|
|
604
|
+
}, e = (g) => {
|
|
605
|
+
let O = !1;
|
|
606
|
+
const p = We(g, er);
|
|
607
607
|
try {
|
|
608
|
-
|
|
608
|
+
O = qt(g, "scrollbar-width") === "none" || qt(g, "display", "::-webkit-scrollbar") === "none";
|
|
609
609
|
} catch {
|
|
610
610
|
}
|
|
611
|
-
return
|
|
612
|
-
}, o = (
|
|
613
|
-
ue(
|
|
611
|
+
return p(), O;
|
|
612
|
+
}, o = (g, O) => {
|
|
613
|
+
ue(g, {
|
|
614
614
|
[Ge]: ie,
|
|
615
615
|
[qe]: ie,
|
|
616
616
|
direction: "rtl"
|
|
617
|
-
}), Ft(
|
|
617
|
+
}), Ft(g, {
|
|
618
618
|
x: 0
|
|
619
619
|
});
|
|
620
|
-
const
|
|
621
|
-
Ft(
|
|
620
|
+
const p = so(g), S = so(O);
|
|
621
|
+
Ft(g, {
|
|
622
622
|
x: -999
|
|
623
623
|
});
|
|
624
|
-
const
|
|
624
|
+
const R = so(O);
|
|
625
625
|
return {
|
|
626
|
-
i:
|
|
627
|
-
n:
|
|
626
|
+
i: p.x === S.x,
|
|
627
|
+
n: S.x !== R.x
|
|
628
628
|
};
|
|
629
|
-
}, { body: n } = document, r =
|
|
629
|
+
}, { body: n } = document, r = Qn(`<div class="${es}"><div></div></div>`)[0], c = r.firstChild, [l, , a] = wo(), [d, i] = Ct({
|
|
630
630
|
o: t(n, r, c),
|
|
631
|
-
u:
|
|
632
|
-
}, D(t, n, r, c, !0)), [
|
|
633
|
-
x:
|
|
634
|
-
y:
|
|
635
|
-
},
|
|
631
|
+
u: Fn
|
|
632
|
+
}, D(t, n, r, c, !0)), [u] = i(), f = e(r), x = {
|
|
633
|
+
x: u.x === 0,
|
|
634
|
+
y: u.y === 0
|
|
635
|
+
}, C = {
|
|
636
636
|
elements: {
|
|
637
637
|
host: null,
|
|
638
638
|
padding: !f,
|
|
639
|
-
viewport: (
|
|
639
|
+
viewport: (g) => f && g === g.ownerDocument.body && g,
|
|
640
640
|
content: !1
|
|
641
641
|
},
|
|
642
642
|
scrollbars: {
|
|
@@ -646,675 +646,675 @@ const Or = () => {
|
|
|
646
646
|
nativeScrollbarsOverlaid: !1,
|
|
647
647
|
body: null
|
|
648
648
|
}
|
|
649
|
-
},
|
|
650
|
-
P:
|
|
651
|
-
T:
|
|
649
|
+
}, v = Y({}, tr), m = D(Y, {}, v), E = D(Y, {}, C), w = {
|
|
650
|
+
P: u,
|
|
651
|
+
T: x,
|
|
652
652
|
L: f,
|
|
653
|
-
J: !!
|
|
653
|
+
J: !!po,
|
|
654
654
|
K: o(r, c),
|
|
655
655
|
Z: D(l, "r"),
|
|
656
|
-
G:
|
|
657
|
-
tt: (
|
|
658
|
-
nt:
|
|
659
|
-
ot: (
|
|
660
|
-
st: Y({},
|
|
661
|
-
et: Y({},
|
|
656
|
+
G: E,
|
|
657
|
+
tt: (g) => Y(C, g) && E(),
|
|
658
|
+
nt: m,
|
|
659
|
+
ot: (g) => Y(v, g) && m(),
|
|
660
|
+
st: Y({}, C),
|
|
661
|
+
et: Y({}, v)
|
|
662
662
|
};
|
|
663
663
|
return It(r, "style"), Nt(r), yt.addEventListener("resize", () => {
|
|
664
|
-
let
|
|
665
|
-
if (!f && (!
|
|
666
|
-
const
|
|
667
|
-
|
|
664
|
+
let g;
|
|
665
|
+
if (!f && (!x.x || !x.y)) {
|
|
666
|
+
const O = fe(Bo);
|
|
667
|
+
g = !!(O ? O.Y() : Et)(w, d);
|
|
668
668
|
}
|
|
669
|
-
a("r", [
|
|
670
|
-
}),
|
|
671
|
-
}, wt = () => (co || (co = Or()), co),
|
|
669
|
+
a("r", [g]);
|
|
670
|
+
}), w;
|
|
671
|
+
}, wt = () => (co || (co = Or()), co), Do = (t, e) => kt(e) ? e.apply(0, t) : e, Cr = (t, e, o, n) => {
|
|
672
672
|
const s = we(n) ? o : n;
|
|
673
|
-
return
|
|
674
|
-
},
|
|
675
|
-
const s = we(n) ? o : n, r =
|
|
673
|
+
return Do(t, s) || e.apply(0, t);
|
|
674
|
+
}, ds = (t, e, o, n) => {
|
|
675
|
+
const s = we(n) ? o : n, r = Do(t, s);
|
|
676
676
|
return !!r && (me(r) ? r : e.apply(0, t));
|
|
677
677
|
}, Er = (t, e) => {
|
|
678
|
-
const { nativeScrollbarsOverlaid: o, body: n } = e || {}, { T: s, L: r, G: c } = wt(), { nativeScrollbarsOverlaid: l, body: a } = c().cancel,
|
|
679
|
-
return !!
|
|
680
|
-
},
|
|
681
|
-
|
|
678
|
+
const { nativeScrollbarsOverlaid: o, body: n } = e || {}, { T: s, L: r, G: c } = wt(), { nativeScrollbarsOverlaid: l, body: a } = c().cancel, d = o ?? l, i = we(n) ? a : n, u = (s.x || s.y) && d, f = t && (Ue(i) ? !r : i);
|
|
679
|
+
return !!u || !!f;
|
|
680
|
+
}, Wo = /* @__PURE__ */ new WeakMap(), Tr = (t, e) => {
|
|
681
|
+
Wo.set(t, e);
|
|
682
682
|
}, $r = (t) => {
|
|
683
|
-
|
|
684
|
-
},
|
|
683
|
+
Wo.delete(t);
|
|
684
|
+
}, fs = (t) => Wo.get(t), Ir = (t, e, o) => {
|
|
685
685
|
let n = !1;
|
|
686
686
|
const s = o ? /* @__PURE__ */ new WeakMap() : !1, r = () => {
|
|
687
687
|
n = !0;
|
|
688
688
|
}, c = (l) => {
|
|
689
689
|
if (s && o) {
|
|
690
|
-
const a = o.map((
|
|
691
|
-
const [i,
|
|
692
|
-
return [
|
|
690
|
+
const a = o.map((d) => {
|
|
691
|
+
const [i, u] = d || [];
|
|
692
|
+
return [u && i ? (l || Gn)(i, t) : [], u];
|
|
693
693
|
});
|
|
694
|
-
G(a, (
|
|
695
|
-
const
|
|
696
|
-
if (t.contains(i) &&
|
|
697
|
-
const
|
|
698
|
-
n ? (
|
|
694
|
+
G(a, (d) => G(d[0], (i) => {
|
|
695
|
+
const u = d[1], f = s.get(i) || [];
|
|
696
|
+
if (t.contains(i) && u) {
|
|
697
|
+
const C = st(i, u, (v) => {
|
|
698
|
+
n ? (C(), s.delete(i)) : e(v);
|
|
699
699
|
});
|
|
700
|
-
s.set(i,
|
|
700
|
+
s.set(i, tt(f, C));
|
|
701
701
|
} else
|
|
702
702
|
xt(f), s.delete(i);
|
|
703
703
|
}));
|
|
704
704
|
}
|
|
705
705
|
};
|
|
706
706
|
return c(), [r, c];
|
|
707
|
-
},
|
|
707
|
+
}, dn = (t, e, o, n) => {
|
|
708
708
|
let s = !1;
|
|
709
|
-
const { ct: r, rt: c, lt: l, it: a, ut:
|
|
709
|
+
const { ct: r, rt: c, lt: l, it: a, ut: d, ft: i } = n || {}, u = Un(() => s && o(!0), {
|
|
710
710
|
v: 33,
|
|
711
711
|
p: 99
|
|
712
|
-
}), [f,
|
|
713
|
-
if (!
|
|
714
|
-
const
|
|
715
|
-
let
|
|
716
|
-
if (G(
|
|
717
|
-
const { attributeName:
|
|
712
|
+
}), [f, x] = Ir(t, u, l), C = r || [], v = c || [], m = Mt(C, v), E = (g, O) => {
|
|
713
|
+
if (!ho(O)) {
|
|
714
|
+
const p = d || Et, S = i || Et, R = [], W = [];
|
|
715
|
+
let V = !1, I = !1;
|
|
716
|
+
if (G(O, ($) => {
|
|
717
|
+
const { attributeName: A, target: H, type: M, oldValue: L, addedNodes: j, removedNodes: N } = $, U = M === "attributes", Z = M === "childList", _ = t === H, et = U && A, ot = et && Qe(H, A || "") || null, P = et && L !== ot, Q = Ze(v, A) && P;
|
|
718
718
|
if (e && (Z || !_)) {
|
|
719
|
-
const
|
|
720
|
-
G(j, (
|
|
719
|
+
const nt = U && P, ut = nt && a && mo(H, a), b = (ut ? !p(H, A, L, ot) : !U || nt) && !S($, !!ut, t, n);
|
|
720
|
+
G(j, (y) => tt(R, y)), G(N, (y) => tt(R, y)), I = I || b;
|
|
721
721
|
}
|
|
722
|
-
!e && _ &&
|
|
723
|
-
}),
|
|
724
|
-
return !
|
|
725
|
-
if (!
|
|
726
|
-
const
|
|
727
|
-
return !
|
|
722
|
+
!e && _ && P && !p(H, A, L, ot) && (tt(W, A), V = V || Q);
|
|
723
|
+
}), x(($) => jo(R).reduce((A, H) => (tt(A, Gn($, H)), mo(H, $) ? tt(A, H) : A), [])), e)
|
|
724
|
+
return !g && I && o(!1), [!1];
|
|
725
|
+
if (!ho(W) || V) {
|
|
726
|
+
const $ = [jo(W), V];
|
|
727
|
+
return !g && o.apply(0, $), $;
|
|
728
728
|
}
|
|
729
729
|
}
|
|
730
|
-
},
|
|
731
|
-
return [() => (
|
|
730
|
+
}, w = new Ns(D(E, !1));
|
|
731
|
+
return [() => (w.observe(t, {
|
|
732
732
|
attributes: !0,
|
|
733
733
|
attributeOldValue: !0,
|
|
734
|
-
attributeFilter:
|
|
734
|
+
attributeFilter: m,
|
|
735
735
|
subtree: e,
|
|
736
736
|
childList: e,
|
|
737
737
|
characterData: e
|
|
738
738
|
}), s = !0, () => {
|
|
739
|
-
s && (f(),
|
|
739
|
+
s && (f(), w.disconnect(), s = !1);
|
|
740
740
|
}), () => {
|
|
741
741
|
if (s)
|
|
742
|
-
return
|
|
742
|
+
return u.m(), E(!0, w.takeRecords());
|
|
743
743
|
}];
|
|
744
|
-
},
|
|
745
|
-
const { _t: s, dt: r } = o || {}, c = fe(yr), { K: l } = wt(), a = D(_t, t), [
|
|
744
|
+
}, ps = (t, e, o) => {
|
|
745
|
+
const { _t: s, dt: r } = o || {}, c = fe(yr), { K: l } = wt(), a = D(_t, t), [d] = Ct({
|
|
746
746
|
o: !1,
|
|
747
747
|
_: !0
|
|
748
748
|
});
|
|
749
749
|
return () => {
|
|
750
|
-
const i = [], f =
|
|
751
|
-
const
|
|
752
|
-
let
|
|
753
|
-
if (
|
|
754
|
-
const [
|
|
755
|
-
|
|
756
|
-
} else
|
|
757
|
-
if (s &&
|
|
758
|
-
const
|
|
750
|
+
const i = [], f = Qn(`<div class="${zo}"><div class="${lr}"></div></div>`)[0], x = f.firstChild, C = (v) => {
|
|
751
|
+
const m = v instanceof ResizeObserverEntry, E = !m && Tt(v);
|
|
752
|
+
let w = !1, g = !1, O = !0;
|
|
753
|
+
if (m) {
|
|
754
|
+
const [p, , S] = d(v.contentRect), R = xo(p), W = Jn(p, S);
|
|
755
|
+
g = !S || W, w = !g && !R, O = !w;
|
|
756
|
+
} else E ? [, O] = v : g = v === !0;
|
|
757
|
+
if (s && O) {
|
|
758
|
+
const p = E ? v[0] : _t(f);
|
|
759
759
|
Ft(f, {
|
|
760
|
-
x: _e(3333333, 3333333,
|
|
760
|
+
x: _e(3333333, 3333333, p && l),
|
|
761
761
|
y: 3333333
|
|
762
762
|
});
|
|
763
763
|
}
|
|
764
|
-
|
|
765
|
-
vt:
|
|
766
|
-
ht: !
|
|
767
|
-
dt:
|
|
764
|
+
w || e({
|
|
765
|
+
vt: E ? v : void 0,
|
|
766
|
+
ht: !E,
|
|
767
|
+
dt: g
|
|
768
768
|
});
|
|
769
769
|
};
|
|
770
|
-
if (
|
|
771
|
-
const
|
|
772
|
-
|
|
773
|
-
|
|
770
|
+
if (Be) {
|
|
771
|
+
const v = new Be((m) => C(m.pop()));
|
|
772
|
+
v.observe(x), tt(i, () => {
|
|
773
|
+
v.disconnect();
|
|
774
774
|
});
|
|
775
775
|
} else if (c) {
|
|
776
|
-
const [
|
|
777
|
-
|
|
776
|
+
const [v, m] = c(x, C, r);
|
|
777
|
+
tt(i, Mt([We(f, cr), st(f, "animationstart", v)], m));
|
|
778
778
|
} else
|
|
779
779
|
return Et;
|
|
780
780
|
if (s) {
|
|
781
|
-
const [
|
|
781
|
+
const [v] = Ct({
|
|
782
782
|
o: void 0
|
|
783
783
|
}, a);
|
|
784
|
-
|
|
785
|
-
const
|
|
786
|
-
|
|
784
|
+
tt(i, st(f, "scroll", (m) => {
|
|
785
|
+
const E = v(), [w, g, O] = E;
|
|
786
|
+
g && (Mo(x, "ltr rtl"), We(x, w ? "rtl" : "ltr"), C([!!w, g, O])), Po(m);
|
|
787
787
|
}));
|
|
788
788
|
}
|
|
789
|
-
return D(xt,
|
|
789
|
+
return D(xt, tt(i, bt(t, f)));
|
|
790
790
|
};
|
|
791
791
|
}, Lr = (t, e) => {
|
|
792
792
|
let o;
|
|
793
793
|
const n = (a) => a.h === 0 || a.isIntersecting || a.intersectionRatio > 0, s = ne(ir), [r] = Ct({
|
|
794
794
|
o: !1
|
|
795
|
-
}), c = (a,
|
|
795
|
+
}), c = (a, d) => {
|
|
796
796
|
if (a) {
|
|
797
|
-
const i = r(n(a)), [,
|
|
798
|
-
return
|
|
797
|
+
const i = r(n(a)), [, u] = i;
|
|
798
|
+
return u && !d && e(i) && [i];
|
|
799
799
|
}
|
|
800
|
-
}, l = (a,
|
|
800
|
+
}, l = (a, d) => c(d.pop(), a);
|
|
801
801
|
return [() => {
|
|
802
802
|
const a = [];
|
|
803
|
-
if (
|
|
804
|
-
o = new
|
|
803
|
+
if (Uo)
|
|
804
|
+
o = new Uo(D(l, !1), {
|
|
805
805
|
root: t
|
|
806
|
-
}), o.observe(s),
|
|
806
|
+
}), o.observe(s), tt(a, () => {
|
|
807
807
|
o.disconnect();
|
|
808
808
|
});
|
|
809
809
|
else {
|
|
810
|
-
const
|
|
810
|
+
const d = () => {
|
|
811
811
|
const i = ge(s);
|
|
812
812
|
c(i);
|
|
813
813
|
};
|
|
814
|
-
|
|
814
|
+
tt(a, ps(s, d)()), d();
|
|
815
815
|
}
|
|
816
|
-
return D(xt,
|
|
816
|
+
return D(xt, tt(a, bt(t, s)));
|
|
817
817
|
}, () => o && l(!0, o.takeRecords())];
|
|
818
818
|
}, Hr = (t, e, o, n) => {
|
|
819
|
-
let s, r, c, l, a,
|
|
820
|
-
const { L: i } = wt(),
|
|
819
|
+
let s, r, c, l, a, d;
|
|
820
|
+
const { L: i } = wt(), u = `[${gt}]`, f = `[${Vt}]`, x = ["tabindex"], C = ["wrap", "cols", "rows"], v = ["id", "class", "style", "open"], { gt: m, bt: E, D: w, wt: g, St: O, V: p, yt: S, Ot: R } = t, W = {
|
|
821
821
|
$t: !1,
|
|
822
|
-
N: _t(
|
|
823
|
-
},
|
|
824
|
-
u:
|
|
822
|
+
N: _t(m)
|
|
823
|
+
}, V = wt(), I = fe(Bo), [$] = Ct({
|
|
824
|
+
u: Nn,
|
|
825
825
|
o: {
|
|
826
826
|
w: 0,
|
|
827
827
|
h: 0
|
|
828
828
|
}
|
|
829
829
|
}, () => {
|
|
830
|
-
const h =
|
|
831
|
-
|
|
832
|
-
const
|
|
833
|
-
return
|
|
830
|
+
const h = I && I.M(t, e, W, V, o).W, b = S(re), y = !p && S(sr), T = y && de(w);
|
|
831
|
+
R(re), p && R(So, !0);
|
|
832
|
+
const k = y && h && h()[0], z = yo(g), B = yo(w), F = Ro(w);
|
|
833
|
+
return R(re, b), p && R(So), k && k(), Ft(w, T), {
|
|
834
834
|
w: B.w + z.w + F.w,
|
|
835
835
|
h: B.h + z.h + F.h
|
|
836
836
|
};
|
|
837
|
-
}),
|
|
837
|
+
}), A = O ? C : Mt(v, C), H = Un(n, {
|
|
838
838
|
v: () => s,
|
|
839
839
|
p: () => r,
|
|
840
|
-
S(h,
|
|
841
|
-
const [
|
|
842
|
-
return [At(
|
|
840
|
+
S(h, b) {
|
|
841
|
+
const [y] = h, [T] = b;
|
|
842
|
+
return [Mt(At(y), At(T)).reduce((k, z) => (k[z] = y[z] || T[z], k), {})];
|
|
843
843
|
}
|
|
844
|
-
}),
|
|
845
|
-
if (
|
|
846
|
-
const
|
|
844
|
+
}), M = (h) => {
|
|
845
|
+
if (p) {
|
|
846
|
+
const b = _t(m);
|
|
847
847
|
Y(h, {
|
|
848
|
-
Ct:
|
|
848
|
+
Ct: d !== b
|
|
849
849
|
}), Y(W, {
|
|
850
|
-
N:
|
|
851
|
-
}),
|
|
850
|
+
N: b
|
|
851
|
+
}), d = b;
|
|
852
852
|
}
|
|
853
|
-
},
|
|
854
|
-
G(h ||
|
|
855
|
-
if (Ze(
|
|
856
|
-
const
|
|
857
|
-
je(
|
|
853
|
+
}, L = (h) => {
|
|
854
|
+
G(h || x, (b) => {
|
|
855
|
+
if (Ze(x, b)) {
|
|
856
|
+
const y = Qe(E, b);
|
|
857
|
+
je(y) ? Ot(w, b, y) : It(w, b);
|
|
858
858
|
}
|
|
859
859
|
});
|
|
860
|
-
}, j = (h,
|
|
861
|
-
const [
|
|
862
|
-
xt:
|
|
860
|
+
}, j = (h, b) => {
|
|
861
|
+
const [y, T] = h, k = {
|
|
862
|
+
xt: T
|
|
863
863
|
};
|
|
864
864
|
return Y(W, {
|
|
865
|
-
$t:
|
|
866
|
-
}), !
|
|
867
|
-
}, N = ({ ht: h, vt:
|
|
868
|
-
const
|
|
869
|
-
ht: h ||
|
|
870
|
-
dt:
|
|
865
|
+
$t: y
|
|
866
|
+
}), !b && n(k), k;
|
|
867
|
+
}, N = ({ ht: h, vt: b, dt: y }) => {
|
|
868
|
+
const k = !(h && !y && !b) && i ? H : n, [z, B] = b || [], F = {
|
|
869
|
+
ht: h || y,
|
|
870
|
+
dt: y,
|
|
871
871
|
Ct: B
|
|
872
872
|
};
|
|
873
|
-
|
|
873
|
+
M(F), b && Y(W, {
|
|
874
874
|
N: z
|
|
875
|
-
}),
|
|
876
|
-
}, U = (h,
|
|
877
|
-
const [,
|
|
878
|
-
Ht:
|
|
875
|
+
}), k(F);
|
|
876
|
+
}, U = (h, b) => {
|
|
877
|
+
const [, y] = $(), T = {
|
|
878
|
+
Ht: y
|
|
879
879
|
};
|
|
880
|
-
return
|
|
881
|
-
}, Z = (h,
|
|
882
|
-
const
|
|
883
|
-
It:
|
|
880
|
+
return M(T), y && !b && (h ? n : H)(T), T;
|
|
881
|
+
}, Z = (h, b, y) => {
|
|
882
|
+
const T = {
|
|
883
|
+
It: b
|
|
884
884
|
};
|
|
885
|
-
return
|
|
886
|
-
}, { Z: _ } =
|
|
885
|
+
return M(T), b && !y ? H(T) : p || L(h), T;
|
|
886
|
+
}, { Z: _ } = V, [et, ot] = g ? Lr(E, j) : [], P = !p && ps(E, N, {
|
|
887
887
|
dt: !0,
|
|
888
888
|
_t: !0
|
|
889
|
-
}), [Q,
|
|
890
|
-
rt:
|
|
891
|
-
ct:
|
|
892
|
-
}), ut =
|
|
893
|
-
const
|
|
889
|
+
}), [Q, nt] = dn(E, !1, Z, {
|
|
890
|
+
rt: v,
|
|
891
|
+
ct: Mt(v, x)
|
|
892
|
+
}), ut = p && Be && new Be((h) => {
|
|
893
|
+
const b = h[h.length - 1].contentRect;
|
|
894
894
|
N({
|
|
895
895
|
ht: !0,
|
|
896
|
-
dt:
|
|
897
|
-
}), a =
|
|
896
|
+
dt: Jn(b, a)
|
|
897
|
+
}), a = b;
|
|
898
898
|
});
|
|
899
899
|
return [() => {
|
|
900
|
-
|
|
901
|
-
const h =
|
|
902
|
-
const [, z] =
|
|
903
|
-
|
|
904
|
-
zt:
|
|
900
|
+
L(), ut && ut.observe(E);
|
|
901
|
+
const h = P && P(), b = et && et(), y = Q(), T = _((k) => {
|
|
902
|
+
const [, z] = $();
|
|
903
|
+
H({
|
|
904
|
+
zt: k,
|
|
905
905
|
Ht: z
|
|
906
906
|
});
|
|
907
907
|
});
|
|
908
908
|
return () => {
|
|
909
|
-
ut && ut.disconnect(), h && h(),
|
|
909
|
+
ut && ut.disconnect(), h && h(), b && b(), l && l(), y(), T();
|
|
910
910
|
};
|
|
911
|
-
}, ({ Et: h, At:
|
|
912
|
-
const
|
|
913
|
-
if (
|
|
911
|
+
}, ({ Et: h, At: b, Tt: y }) => {
|
|
912
|
+
const T = {}, [k] = h("update.ignoreMutation"), [z, B] = h("update.attributes"), [F, q] = h("update.elementEvents"), [it, dt] = h("update.debounce"), J = q || B, at = b || y, Ut = (X) => kt(k) && k(X);
|
|
913
|
+
if (J) {
|
|
914
914
|
c && c(), l && l();
|
|
915
|
-
const [X, lt] =
|
|
916
|
-
ct:
|
|
915
|
+
const [X, lt] = dn(g || w, !0, U, {
|
|
916
|
+
ct: Mt(A, z || []),
|
|
917
917
|
lt: F,
|
|
918
|
-
it:
|
|
918
|
+
it: u,
|
|
919
919
|
ft: (ft, pt) => {
|
|
920
|
-
const { target:
|
|
921
|
-
return (!pt && mt && !
|
|
920
|
+
const { target: rt, attributeName: mt } = ft;
|
|
921
|
+
return (!pt && mt && !p ? Gs(rt, u, f) : !1) || !!oe(rt, `.${vt}`) || !!Ut(ft);
|
|
922
922
|
}
|
|
923
923
|
});
|
|
924
924
|
l = X(), c = lt;
|
|
925
925
|
}
|
|
926
926
|
if (dt)
|
|
927
|
-
if (
|
|
927
|
+
if (H.m(), Tt(it)) {
|
|
928
928
|
const X = it[0], lt = it[1];
|
|
929
929
|
s = Ht(X) && X, r = Ht(lt) && lt;
|
|
930
930
|
} else Ht(it) ? (s = it, r = !1) : (s = !1, r = !1);
|
|
931
931
|
if (at) {
|
|
932
|
-
const X =
|
|
933
|
-
X && Y(
|
|
932
|
+
const X = nt(), lt = ot && ot(), ft = c && c();
|
|
933
|
+
X && Y(T, Z(X[0], X[1], at)), lt && Y(T, j(lt[0], at)), ft && Y(T, U(ft[0], at));
|
|
934
934
|
}
|
|
935
|
-
return
|
|
935
|
+
return M(T), T;
|
|
936
936
|
}, W];
|
|
937
937
|
}, kr = (t, e, o, n) => {
|
|
938
|
-
const { G: s, K: r } = wt(), { scrollbars: c } = s(), { slot: l } = c, { gt: a, bt:
|
|
938
|
+
const { G: s, K: r } = wt(), { scrollbars: c } = s(), { slot: l } = c, { gt: a, bt: d, D: i, Dt: u, kt: f, Rt: x, V: C } = e, { scrollbars: v } = u ? {} : t, { slot: m } = v || {}, E = /* @__PURE__ */ new Map(), w = (h) => po && new po({
|
|
939
939
|
source: f,
|
|
940
940
|
axis: h
|
|
941
|
-
}),
|
|
942
|
-
if (
|
|
943
|
-
const F = h ? ce : le, { Mt: q, Vt: it } =
|
|
944
|
-
return
|
|
941
|
+
}), g = w("x"), O = w("y"), p = ds([a, d, i], () => C && x ? a : d, l, m), S = (h, b) => {
|
|
942
|
+
if (b) {
|
|
943
|
+
const F = h ? ce : le, { Mt: q, Vt: it } = b, dt = se(it)[F], J = se(q)[F];
|
|
944
|
+
return vo(0, 1, dt / J || 0);
|
|
945
945
|
}
|
|
946
|
-
const
|
|
947
|
-
return
|
|
948
|
-
},
|
|
949
|
-
const
|
|
950
|
-
return 1 /
|
|
951
|
-
}, W = (h,
|
|
946
|
+
const y = h ? "x" : "y", { Lt: T, Pt: k } = o, z = k[y], B = T[y];
|
|
947
|
+
return vo(0, 1, z / (z + B) || 0);
|
|
948
|
+
}, R = (h, b, y, T) => {
|
|
949
|
+
const k = S(y, h);
|
|
950
|
+
return 1 / k * (1 - k) * (T ? 1 - b : b) || 0;
|
|
951
|
+
}, W = (h, b) => Y(h, b ? {
|
|
952
952
|
clear: ["left"]
|
|
953
|
-
} : {}),
|
|
954
|
-
|
|
955
|
-
(h ? Ze(
|
|
956
|
-
|
|
957
|
-
}),
|
|
953
|
+
} : {}), V = (h) => {
|
|
954
|
+
E.forEach((b, y) => {
|
|
955
|
+
(h ? Ze(An(h), y) : !0) && (G(b || [], (k) => {
|
|
956
|
+
k && k.cancel();
|
|
957
|
+
}), E.delete(y));
|
|
958
958
|
});
|
|
959
|
-
},
|
|
960
|
-
const
|
|
961
|
-
z ? z.effect = new KeyframeEffect(h,
|
|
962
|
-
composite:
|
|
963
|
-
}) :
|
|
964
|
-
timeline:
|
|
965
|
-
composite:
|
|
959
|
+
}, I = (h, b, y, T) => {
|
|
960
|
+
const k = E.get(h) || [], z = k.find((B) => B && B.timeline === b);
|
|
961
|
+
z ? z.effect = new KeyframeEffect(h, y, {
|
|
962
|
+
composite: T
|
|
963
|
+
}) : E.set(h, Mt(k, [h.animate(y, {
|
|
964
|
+
timeline: b,
|
|
965
|
+
composite: T
|
|
966
966
|
})]));
|
|
967
|
-
},
|
|
968
|
-
const
|
|
969
|
-
G(h, (
|
|
970
|
-
|
|
967
|
+
}, $ = (h, b, y) => {
|
|
968
|
+
const T = y ? We : Mo;
|
|
969
|
+
G(h, (k) => {
|
|
970
|
+
T(k.Ut, b);
|
|
971
971
|
});
|
|
972
|
-
},
|
|
973
|
-
G(h, (
|
|
974
|
-
const [
|
|
975
|
-
ue(
|
|
972
|
+
}, A = (h, b) => {
|
|
973
|
+
G(h, (y) => {
|
|
974
|
+
const [T, k] = b(y);
|
|
975
|
+
ue(T, k);
|
|
976
976
|
});
|
|
977
|
-
},
|
|
978
|
-
|
|
979
|
-
const { Vt:
|
|
980
|
-
return [
|
|
981
|
-
[
|
|
977
|
+
}, H = (h, b) => {
|
|
978
|
+
A(h, (y) => {
|
|
979
|
+
const { Vt: T } = y;
|
|
980
|
+
return [T, {
|
|
981
|
+
[b ? ce : le]: Go(S(b))
|
|
982
982
|
}];
|
|
983
983
|
});
|
|
984
|
-
},
|
|
985
|
-
const { Lt:
|
|
986
|
-
if (
|
|
984
|
+
}, M = (h, b) => {
|
|
985
|
+
const { Lt: y } = o, T = b ? y.x : y.y, k = (z, B, F) => no(Go(R(z, tn(B, T, F), b, F)), b);
|
|
986
|
+
if (g && O)
|
|
987
987
|
G(h, (z) => {
|
|
988
|
-
const { Ut: B, Vt: F } = z, q =
|
|
989
|
-
|
|
990
|
-
transform:
|
|
988
|
+
const { Ut: B, Vt: F } = z, q = b && _t(B) && r;
|
|
989
|
+
I(F, b ? g : O, W({
|
|
990
|
+
transform: Jo(T, q).map((it) => k(z, it, q))
|
|
991
991
|
}, q));
|
|
992
992
|
});
|
|
993
993
|
else {
|
|
994
994
|
const z = de(f);
|
|
995
|
-
|
|
995
|
+
A(h, (B) => {
|
|
996
996
|
const { Vt: F, Ut: q } = B;
|
|
997
997
|
return [F, {
|
|
998
|
-
transform:
|
|
998
|
+
transform: k(B, b ? z.x : z.y, b && _t(q) && r)
|
|
999
999
|
}];
|
|
1000
1000
|
});
|
|
1001
1001
|
}
|
|
1002
|
-
},
|
|
1003
|
-
const
|
|
1004
|
-
|
|
1002
|
+
}, L = (h) => C && !x && ae(h) === i, j = [], N = [], U = [], Z = (h, b, y) => {
|
|
1003
|
+
const T = Mn(y), k = T ? y : !0, z = T ? !y : !0;
|
|
1004
|
+
k && $(N, h, b), z && $(U, h, b);
|
|
1005
1005
|
}, _ = () => {
|
|
1006
|
-
|
|
1006
|
+
H(N, !0), H(U);
|
|
1007
|
+
}, et = () => {
|
|
1008
|
+
M(N, !0), M(U);
|
|
1007
1009
|
}, ot = () => {
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
L(x, A, W({
|
|
1018
|
-
transform: Ko(z - y, F).map((q) => no(go(q), B))
|
|
1010
|
+
if (C) {
|
|
1011
|
+
const { Lt: h } = o, b = 0.5;
|
|
1012
|
+
if (g && O)
|
|
1013
|
+
G(Mt(U, N), ({ Ut: y }) => {
|
|
1014
|
+
if (L(y)) {
|
|
1015
|
+
const T = (k, z, B) => {
|
|
1016
|
+
const F = B && _t(y) && r;
|
|
1017
|
+
I(y, k, W({
|
|
1018
|
+
transform: Jo(z - b, F).map((q) => no(bo(q), B))
|
|
1019
1019
|
}, F), "add");
|
|
1020
1020
|
};
|
|
1021
|
-
|
|
1021
|
+
T(g, h.x, !0), T(O, h.y);
|
|
1022
1022
|
} else
|
|
1023
|
-
|
|
1023
|
+
V(y);
|
|
1024
1024
|
});
|
|
1025
1025
|
else {
|
|
1026
|
-
const
|
|
1027
|
-
const { Ut: z } =
|
|
1028
|
-
const
|
|
1029
|
-
return
|
|
1026
|
+
const y = de(f), T = (k) => {
|
|
1027
|
+
const { Ut: z } = k, B = L(z) && z, F = (q, it, dt) => {
|
|
1028
|
+
const J = tn(q, it, dt), at = it * J;
|
|
1029
|
+
return bo(dt ? -at : at);
|
|
1030
1030
|
};
|
|
1031
1031
|
return [B, {
|
|
1032
1032
|
transform: B ? no({
|
|
1033
|
-
x: F(
|
|
1034
|
-
y: F(
|
|
1033
|
+
x: F(y.x, h.x, _t(z) && r),
|
|
1034
|
+
y: F(y.y, h.y)
|
|
1035
1035
|
}) : ""
|
|
1036
1036
|
}];
|
|
1037
1037
|
};
|
|
1038
|
-
|
|
1038
|
+
A(N, T), A(U, T);
|
|
1039
1039
|
}
|
|
1040
1040
|
}
|
|
1041
|
-
},
|
|
1042
|
-
const
|
|
1043
|
-
Ut:
|
|
1044
|
-
Mt:
|
|
1045
|
-
Vt:
|
|
1041
|
+
}, P = (h) => {
|
|
1042
|
+
const y = ne(`${vt} ${h ? dr : fr}`), T = ne(cs), k = ne(Vo), z = {
|
|
1043
|
+
Ut: y,
|
|
1044
|
+
Mt: T,
|
|
1045
|
+
Vt: k
|
|
1046
1046
|
};
|
|
1047
|
-
return
|
|
1048
|
-
}, Q = D(
|
|
1049
|
-
return Q(),
|
|
1047
|
+
return tt(h ? N : U, z), tt(j, [bt(y, T), bt(T, k), D(Nt, y), V, n(z, Z, M, h)]), z;
|
|
1048
|
+
}, Q = D(P, !0), nt = D(P, !1), ut = () => (bt(p, N[0].Ut), bt(p, U[0].Ut), D(xt, j));
|
|
1049
|
+
return Q(), nt(), [{
|
|
1050
1050
|
Bt: _,
|
|
1051
|
-
Nt:
|
|
1052
|
-
jt:
|
|
1051
|
+
Nt: et,
|
|
1052
|
+
jt: ot,
|
|
1053
1053
|
Ft: Z,
|
|
1054
1054
|
qt: {
|
|
1055
|
-
J:
|
|
1055
|
+
J: g,
|
|
1056
1056
|
Wt: N,
|
|
1057
1057
|
Xt: Q,
|
|
1058
|
-
Yt: D(
|
|
1058
|
+
Yt: D(A, N)
|
|
1059
1059
|
},
|
|
1060
1060
|
Jt: {
|
|
1061
|
-
J:
|
|
1061
|
+
J: O,
|
|
1062
1062
|
Wt: U,
|
|
1063
|
-
Xt:
|
|
1064
|
-
Yt: D(
|
|
1063
|
+
Xt: nt,
|
|
1064
|
+
Yt: D(A, U)
|
|
1065
1065
|
}
|
|
1066
1066
|
}, ut];
|
|
1067
|
-
},
|
|
1067
|
+
}, Mr = (t, e, o) => {
|
|
1068
1068
|
const { bt: n, kt: s, Kt: r } = e;
|
|
1069
|
-
return (c, l, a,
|
|
1070
|
-
const { Ut: i, Mt:
|
|
1071
|
-
const
|
|
1072
|
-
const { Lt: j } = o, N = ge(
|
|
1069
|
+
return (c, l, a, d) => {
|
|
1070
|
+
const { Ut: i, Mt: u, Vt: f } = c, [x, C] = zt(333), [v, m] = zt(), E = D(a, [c], d), w = !!s.scrollBy, g = `client${d ? "X" : "Y"}`, O = d ? ce : le, p = d ? "left" : "top", S = d ? "w" : "h", R = d ? "x" : "y", W = ($) => $.propertyName.indexOf(O) > -1, V = () => {
|
|
1071
|
+
const $ = "pointerup pointerleave pointercancel lostpointercapture", A = (H, M) => (L) => {
|
|
1072
|
+
const { Lt: j } = o, N = ge(u)[S] - ge(f)[S], Z = M * L / N * j[R];
|
|
1073
1073
|
Ft(s, {
|
|
1074
|
-
[
|
|
1074
|
+
[R]: H + Z
|
|
1075
1075
|
});
|
|
1076
1076
|
};
|
|
1077
|
-
return
|
|
1078
|
-
const
|
|
1079
|
-
if (N === 0 && U && j[
|
|
1080
|
-
const
|
|
1081
|
-
xt(dt),
|
|
1082
|
-
}, dt = [xe(n, gt, or),
|
|
1077
|
+
return st(u, "pointerdown", (H) => {
|
|
1078
|
+
const M = oe(H.target, `.${Vo}`) === f, L = M ? f : u, j = t.scrollbars, { button: N, isPrimary: U, pointerType: Z } = H, { pointers: _ } = j;
|
|
1079
|
+
if (N === 0 && U && j[M ? "dragScroll" : "clickScroll"] && (_ || []).includes(Z)) {
|
|
1080
|
+
const ot = !M && H.shiftKey, P = D(se, f), Q = D(se, u), nt = (J, at) => (J || P())[p] - (at || Q())[p], ut = ao(se(s)[O]) / ge(s)[S] || 1, h = A(de(s)[R] || 0, 1 / ut), b = H[g], y = P(), T = Q(), k = y[O], z = nt(y, T) + k / 2, B = b - T[p], F = M ? 0 : B - z, q = (J) => {
|
|
1081
|
+
xt(dt), L.releasePointerCapture(J.pointerId);
|
|
1082
|
+
}, dt = [xe(n, gt, or), st(r, $, q), st(r, "selectstart", (J) => Ko(J), {
|
|
1083
1083
|
H: !1
|
|
1084
|
-
}),
|
|
1085
|
-
const at =
|
|
1086
|
-
(
|
|
1084
|
+
}), st(u, $, q), st(u, "pointermove", (J) => {
|
|
1085
|
+
const at = J[g] - b;
|
|
1086
|
+
(M || ot) && h(F + at);
|
|
1087
1087
|
})];
|
|
1088
|
-
if (
|
|
1088
|
+
if (L.setPointerCapture(H.pointerId), ot)
|
|
1089
1089
|
h(F);
|
|
1090
|
-
else if (!
|
|
1091
|
-
const
|
|
1092
|
-
|
|
1090
|
+
else if (!M) {
|
|
1091
|
+
const J = fe(Sr);
|
|
1092
|
+
J && tt(dt, J(h, nt, F, k, B));
|
|
1093
1093
|
}
|
|
1094
1094
|
}
|
|
1095
1095
|
});
|
|
1096
1096
|
};
|
|
1097
|
-
let
|
|
1098
|
-
return D(xt, [
|
|
1099
|
-
l(
|
|
1100
|
-
}),
|
|
1101
|
-
l(
|
|
1102
|
-
}),
|
|
1103
|
-
const { deltaX:
|
|
1104
|
-
|
|
1105
|
-
left:
|
|
1106
|
-
top:
|
|
1097
|
+
let I = !0;
|
|
1098
|
+
return D(xt, [st(i, "pointerenter", () => {
|
|
1099
|
+
l(cn, !0);
|
|
1100
|
+
}), st(i, "pointerleave pointercancel", () => {
|
|
1101
|
+
l(cn, !1);
|
|
1102
|
+
}), st(i, "wheel", ($) => {
|
|
1103
|
+
const { deltaX: A, deltaY: H, deltaMode: M } = $;
|
|
1104
|
+
w && I && M === 0 && ae(i) === n && s.scrollBy({
|
|
1105
|
+
left: A,
|
|
1106
|
+
top: H,
|
|
1107
1107
|
behavior: "smooth"
|
|
1108
|
-
}),
|
|
1109
|
-
|
|
1110
|
-
}),
|
|
1108
|
+
}), I = !1, l(un, !0), x(() => {
|
|
1109
|
+
I = !0, l(un);
|
|
1110
|
+
}), Ko($);
|
|
1111
1111
|
}, {
|
|
1112
1112
|
H: !1,
|
|
1113
1113
|
I: !0
|
|
1114
|
-
}),
|
|
1115
|
-
if (W(
|
|
1116
|
-
const
|
|
1117
|
-
|
|
1114
|
+
}), st(f, "transitionstart", ($) => {
|
|
1115
|
+
if (W($)) {
|
|
1116
|
+
const A = () => {
|
|
1117
|
+
E(), v(A);
|
|
1118
1118
|
};
|
|
1119
|
-
|
|
1119
|
+
A();
|
|
1120
1120
|
}
|
|
1121
|
-
}),
|
|
1122
|
-
W(
|
|
1123
|
-
}),
|
|
1121
|
+
}), st(f, "transitionend transitioncancel", ($) => {
|
|
1122
|
+
W($) && (m(), E());
|
|
1123
|
+
}), st(i, "mousedown", D(st, r, "click", Po, {
|
|
1124
1124
|
A: !0,
|
|
1125
1125
|
I: !0
|
|
1126
1126
|
}), {
|
|
1127
1127
|
I: !0
|
|
1128
|
-
}),
|
|
1128
|
+
}), V(), C, m]);
|
|
1129
1129
|
};
|
|
1130
|
-
},
|
|
1131
|
-
let c, l, a,
|
|
1132
|
-
const [
|
|
1133
|
-
|
|
1134
|
-
}, Z = (
|
|
1135
|
-
if (W(),
|
|
1136
|
-
|
|
1130
|
+
}, Ar = (t, e, o, n, s, r) => {
|
|
1131
|
+
let c, l, a, d, i, u = Et, f = 0;
|
|
1132
|
+
const [x, C] = zt(), [v, m] = zt(), [E, w] = zt(100), [g, O] = zt(100), [p, S] = zt(100), [R, W] = zt(() => f), [V, I] = kr(t, s, n, Mr(e, s, n)), { bt: $, Zt: A, Rt: H } = s, { Ft: M, Bt: L, Nt: j, jt: N } = V, U = (P) => {
|
|
1133
|
+
M(Co, P, !0), M(Co, P, !1);
|
|
1134
|
+
}, Z = (P, Q) => {
|
|
1135
|
+
if (W(), P)
|
|
1136
|
+
M(an);
|
|
1137
1137
|
else {
|
|
1138
|
-
const
|
|
1139
|
-
f > 0 && !Q ?
|
|
1138
|
+
const nt = D(M, an, !0);
|
|
1139
|
+
f > 0 && !Q ? R(nt) : nt();
|
|
1140
1140
|
}
|
|
1141
|
-
}, _ = (
|
|
1142
|
-
_(
|
|
1143
|
-
},
|
|
1141
|
+
}, _ = (P) => P.pointerType === "mouse", et = (P) => {
|
|
1142
|
+
_(P) && (d = l, d && Z(!0));
|
|
1143
|
+
}, ot = [w, W, O, S, m, C, () => u(), st($, "pointerover", et, {
|
|
1144
1144
|
A: !0
|
|
1145
|
-
}),
|
|
1146
|
-
_(
|
|
1147
|
-
}),
|
|
1148
|
-
_(
|
|
1149
|
-
|
|
1145
|
+
}), st($, "pointerenter", et), st($, "pointerleave", (P) => {
|
|
1146
|
+
_(P) && (d = !1, l && Z(!1));
|
|
1147
|
+
}), st($, "pointermove", (P) => {
|
|
1148
|
+
_(P) && c && x(() => {
|
|
1149
|
+
w(), Z(!0), g(() => {
|
|
1150
1150
|
c && Z(!1);
|
|
1151
1151
|
});
|
|
1152
1152
|
});
|
|
1153
|
-
}),
|
|
1154
|
-
|
|
1155
|
-
j(), a && Z(!0),
|
|
1156
|
-
a && !
|
|
1153
|
+
}), st(A, "scroll", (P) => {
|
|
1154
|
+
v(() => {
|
|
1155
|
+
j(), a && Z(!0), E(() => {
|
|
1156
|
+
a && !d && Z(!1);
|
|
1157
1157
|
});
|
|
1158
|
-
}), r(
|
|
1158
|
+
}), r(P), N();
|
|
1159
1159
|
})];
|
|
1160
|
-
return [() => D(xt,
|
|
1161
|
-
const { tn: h, nn:
|
|
1162
|
-
const
|
|
1163
|
-
return
|
|
1160
|
+
return [() => D(xt, tt(ot, I())), ({ Et: P, Tt: Q, Gt: nt, Qt: ut }) => {
|
|
1161
|
+
const { tn: h, nn: b, sn: y } = ut || {}, { Ct: T, dt: k } = nt || {}, { N: z } = o, { T: B } = wt(), { k: F, en: q } = n, [it, dt] = P("showNativeOverlaidScrollbars"), [J, at] = P("scrollbars.theme"), [Ut, X] = P("scrollbars.visibility"), [lt, ft] = P("scrollbars.autoHide"), [pt, rt] = P("scrollbars.autoHideSuspend"), [mt] = P("scrollbars.autoHideDelay"), [jt, Jt] = P("scrollbars.dragScroll"), [$t, Xt] = P("scrollbars.clickScroll"), [Rt, to] = P("overflow"), Pt = k && !Q, eo = q.x || q.y, pe = h || b || T || Q, Ce = y || X || to, Ee = it && B.x && B.y, he = (ve, te, _o) => {
|
|
1162
|
+
const No = ve.includes("scroll") && (Ut === "visible" || Ut === "auto" && te === "scroll");
|
|
1163
|
+
return M(pr, No, _o), No;
|
|
1164
1164
|
};
|
|
1165
|
-
if (f = mt,
|
|
1166
|
-
|
|
1165
|
+
if (f = mt, Pt && (pt && eo ? (U(!1), u(), p(() => {
|
|
1166
|
+
u = st(A, "scroll", D(U, !0), {
|
|
1167
1167
|
A: !0
|
|
1168
1168
|
});
|
|
1169
|
-
})) : U(!0)), dt &&
|
|
1169
|
+
})) : U(!0)), dt && M(ar, Ee), at && (M(i), M(J, !0), i = J), rt && !pt && U(!0), ft && (c = lt === "move", l = lt === "leave", a = lt !== "never", Z(!a, !0)), Jt && M(mr, jt), Xt && M(vr, $t), Ce) {
|
|
1170
1170
|
const ve = he(Rt.x, F.x, !0), te = he(Rt.y, F.y, !1);
|
|
1171
|
-
|
|
1171
|
+
M(hr, !(ve && te));
|
|
1172
1172
|
}
|
|
1173
|
-
pe && (
|
|
1174
|
-
}, {},
|
|
1173
|
+
pe && (L(), j(), N(), M(ln, !q.x, !0), M(ln, !q.y, !1), M(ur, z && !H));
|
|
1174
|
+
}, {}, V];
|
|
1175
1175
|
}, Rr = (t) => {
|
|
1176
|
-
const e = wt(), { G: o, L: n } = e, { elements: s } = o(), { host: r, padding: c, viewport: l, content: a } = s,
|
|
1176
|
+
const e = wt(), { G: o, L: n } = e, { elements: s } = o(), { host: r, padding: c, viewport: l, content: a } = s, d = me(t), i = d ? {} : t, { elements: u } = i, { host: f, padding: x, viewport: C, content: v } = u || {}, m = d ? t : i.target, E = mo(m, "textarea"), w = m.ownerDocument, g = w.documentElement, O = m === w.body, p = w.defaultView, S = () => w.activeElement, R = (X) => {
|
|
1177
1177
|
X && X.focus && X.focus();
|
|
1178
|
-
}, W = D(Cr, [
|
|
1179
|
-
gt:
|
|
1180
|
-
bt:
|
|
1181
|
-
D:
|
|
1182
|
-
cn: !
|
|
1178
|
+
}, W = D(Cr, [m]), V = D(ds, [m]), I = D(Do, [m]), $ = D(ne, ""), A = D(W, $, l), H = D(V, $, a), M = A(C), L = M === m, j = L && O, N = !L && H(v), U = !L && me(M) && M === N, Z = U && !!I(a), _ = Z ? A() : M, et = Z ? N : H(), P = j ? g : U ? _ : M, Q = E ? W($, r, f) : m, nt = j ? P : Q, ut = U ? et : N, h = {
|
|
1179
|
+
gt: m,
|
|
1180
|
+
bt: nt,
|
|
1181
|
+
D: P,
|
|
1182
|
+
cn: !L && V($, c, x),
|
|
1183
1183
|
wt: ut,
|
|
1184
|
-
kt: j ?
|
|
1185
|
-
Zt: j ?
|
|
1186
|
-
rn:
|
|
1187
|
-
ln:
|
|
1188
|
-
Kt:
|
|
1189
|
-
St:
|
|
1190
|
-
Rt:
|
|
1191
|
-
Dt:
|
|
1192
|
-
V:
|
|
1184
|
+
kt: j ? g : P,
|
|
1185
|
+
Zt: j ? w : P,
|
|
1186
|
+
rn: O ? g : m,
|
|
1187
|
+
ln: p,
|
|
1188
|
+
Kt: w,
|
|
1189
|
+
St: E,
|
|
1190
|
+
Rt: O,
|
|
1191
|
+
Dt: d,
|
|
1192
|
+
V: L,
|
|
1193
1193
|
an: U,
|
|
1194
|
-
yt: (X) => Ys(
|
|
1195
|
-
Ot: (X, lt) => ke(
|
|
1196
|
-
},
|
|
1194
|
+
yt: (X) => Ys(P, L ? gt : Vt, X),
|
|
1195
|
+
Ot: (X, lt) => ke(P, L ? gt : Vt, X, lt)
|
|
1196
|
+
}, b = At(h).reduce((X, lt) => {
|
|
1197
1197
|
const ft = h[lt];
|
|
1198
|
-
return
|
|
1199
|
-
}, []),
|
|
1200
|
-
It(
|
|
1201
|
-
}], it =
|
|
1202
|
-
let dt =
|
|
1203
|
-
const
|
|
1198
|
+
return tt(X, ft && me(ft) && !ae(ft) ? ft : !1);
|
|
1199
|
+
}, []), y = (X) => X ? Ze(b, X) : null, { gt: T, bt: k, cn: z, D: B, wt: F } = h, q = [() => {
|
|
1200
|
+
It(k, [gt, ro]), It(T, ro), O && It(g, [ro, gt]);
|
|
1201
|
+
}], it = E && y(k);
|
|
1202
|
+
let dt = E ? T : go([F, B, z, k, T].find((X) => y(X) === !1));
|
|
1203
|
+
const J = j ? T : F || B, at = D(xt, q);
|
|
1204
1204
|
return [h, () => {
|
|
1205
|
-
const X =
|
|
1206
|
-
bt(ae(
|
|
1207
|
-
}, ft = (
|
|
1208
|
-
|
|
1205
|
+
const X = S(), lt = (rt) => {
|
|
1206
|
+
bt(ae(rt), go(rt)), Nt(rt);
|
|
1207
|
+
}, ft = (rt) => rt ? st(rt, "focusin focusout focus blur", (mt) => {
|
|
1208
|
+
Po(mt), mt.stopImmediatePropagation();
|
|
1209
1209
|
}, {
|
|
1210
1210
|
I: !0,
|
|
1211
1211
|
H: !1
|
|
1212
1212
|
}) : Et, pt = ft(X);
|
|
1213
|
-
if (Ot(
|
|
1214
|
-
|
|
1215
|
-
})), bt(
|
|
1216
|
-
const
|
|
1217
|
-
It(z,
|
|
1218
|
-
}]), n && !
|
|
1219
|
-
const
|
|
1220
|
-
Ot(B,
|
|
1221
|
-
const jt = () => mt ? Ot(B,
|
|
1213
|
+
if (Ot(k, gt, L ? "viewport" : "host"), Ot(z, Oo, ""), Ot(F, rn, ""), L || (Ot(B, Vt, ""), O && xe(g, gt, nr)), it && (Yo(T, k), tt(q, () => {
|
|
1214
|
+
Yo(k, T), Nt(k);
|
|
1215
|
+
})), bt(J, dt), bt(k, z), bt(z || k, !L && B), bt(B, F), tt(q, [pt, () => {
|
|
1216
|
+
const rt = S(), mt = ft(rt);
|
|
1217
|
+
It(z, Oo), It(F, rn), It(B, [os, ns, Vt]), y(F) && lt(F), y(B) && lt(B), y(z) && lt(z), R(rt), mt();
|
|
1218
|
+
}]), n && !L && (xe(B, Vt, rs), tt(q, D(It, B, Vt))), !L && p.top === p && X === m) {
|
|
1219
|
+
const rt = "tabindex", mt = Qe(B, rt);
|
|
1220
|
+
Ot(B, rt, "-1"), R(B);
|
|
1221
|
+
const jt = () => mt ? Ot(B, rt, mt) : It(B, rt), Jt = st(w, "pointerdown keydown", () => {
|
|
1222
1222
|
jt(), Jt();
|
|
1223
1223
|
});
|
|
1224
|
-
|
|
1224
|
+
tt(q, [jt, Jt]);
|
|
1225
1225
|
} else
|
|
1226
|
-
|
|
1226
|
+
R(X);
|
|
1227
1227
|
return pt(), dt = 0, at;
|
|
1228
1228
|
}, at];
|
|
1229
|
-
},
|
|
1229
|
+
}, Pr = ({ wt: t }) => ({ Gt: e, un: o, Tt: n }) => {
|
|
1230
1230
|
const { xt: s } = e || {}, { $t: r } = o;
|
|
1231
1231
|
t && (s || n) && ue(t, {
|
|
1232
1232
|
[le]: r && "100%"
|
|
1233
1233
|
});
|
|
1234
|
-
},
|
|
1234
|
+
}, zr = ({ bt: t, cn: e, D: o, V: n }, s) => {
|
|
1235
1235
|
const [r, c] = Ct({
|
|
1236
1236
|
u: Xs,
|
|
1237
|
-
o:
|
|
1238
|
-
}, D(
|
|
1239
|
-
return ({ Et: l, Gt: a, un:
|
|
1240
|
-
let [
|
|
1241
|
-
const { L:
|
|
1242
|
-
(
|
|
1243
|
-
const
|
|
1244
|
-
if (
|
|
1245
|
-
const
|
|
1246
|
-
[
|
|
1247
|
-
[
|
|
1248
|
-
[
|
|
1249
|
-
top:
|
|
1250
|
-
right:
|
|
1251
|
-
left:
|
|
1252
|
-
[ce]:
|
|
1253
|
-
},
|
|
1254
|
-
[
|
|
1255
|
-
[Pn]:
|
|
1256
|
-
[Vn]:
|
|
1257
|
-
[
|
|
1237
|
+
o: qo()
|
|
1238
|
+
}, D(qo, t, "padding", ""));
|
|
1239
|
+
return ({ Et: l, Gt: a, un: d, Tt: i }) => {
|
|
1240
|
+
let [u, f] = c(i);
|
|
1241
|
+
const { L: x } = wt(), { ht: C, Ht: v, Ct: m } = a || {}, { N: E } = d, [w, g] = l("paddingAbsolute");
|
|
1242
|
+
(C || f || (i || v)) && ([u, f] = r(i));
|
|
1243
|
+
const p = !n && (g || m || f);
|
|
1244
|
+
if (p) {
|
|
1245
|
+
const S = !w || !e && !x, R = u.r + u.l, W = u.t + u.b, V = {
|
|
1246
|
+
[Dn]: S && !E ? -R : 0,
|
|
1247
|
+
[Wn]: S ? -W : 0,
|
|
1248
|
+
[Bn]: S && E ? -R : 0,
|
|
1249
|
+
top: S ? -u.t : 0,
|
|
1250
|
+
right: S ? E ? -u.r : "auto" : 0,
|
|
1251
|
+
left: S ? E ? "auto" : -u.l : 0,
|
|
1252
|
+
[ce]: S && `calc(100% + ${R}px)`
|
|
1253
|
+
}, I = {
|
|
1254
|
+
[Rn]: S ? u.t : 0,
|
|
1255
|
+
[Pn]: S ? u.r : 0,
|
|
1256
|
+
[Vn]: S ? u.b : 0,
|
|
1257
|
+
[zn]: S ? u.l : 0
|
|
1258
1258
|
};
|
|
1259
|
-
ue(e || o,
|
|
1260
|
-
cn:
|
|
1261
|
-
fn: !
|
|
1262
|
-
j: e ?
|
|
1259
|
+
ue(e || o, V), ue(o, I), Y(s, {
|
|
1260
|
+
cn: u,
|
|
1261
|
+
fn: !S,
|
|
1262
|
+
j: e ? I : Y({}, V, I)
|
|
1263
1263
|
});
|
|
1264
1264
|
}
|
|
1265
1265
|
return {
|
|
1266
|
-
_n:
|
|
1266
|
+
_n: p
|
|
1267
1267
|
};
|
|
1268
1268
|
};
|
|
1269
|
-
},
|
|
1270
|
-
const o = wt(), { bt: n, cn: s, D: r, V: c, Ot: l, Rt: a, ln:
|
|
1271
|
-
u:
|
|
1269
|
+
}, Vr = (t, e) => {
|
|
1270
|
+
const o = wt(), { bt: n, cn: s, D: r, V: c, Ot: l, Rt: a, ln: d } = t, { L: i } = o, u = a && c, f = D(He, 0), x = {
|
|
1271
|
+
u: Nn,
|
|
1272
1272
|
o: {
|
|
1273
1273
|
w: 0,
|
|
1274
1274
|
h: 0
|
|
1275
1275
|
}
|
|
1276
|
-
},
|
|
1277
|
-
u:
|
|
1276
|
+
}, C = {
|
|
1277
|
+
u: Fn,
|
|
1278
1278
|
o: {
|
|
1279
1279
|
x: ie,
|
|
1280
1280
|
y: ie
|
|
1281
1281
|
}
|
|
1282
|
-
},
|
|
1283
|
-
const
|
|
1284
|
-
w: f(
|
|
1285
|
-
h: f(
|
|
1282
|
+
}, v = (I, $) => {
|
|
1283
|
+
const A = yt.devicePixelRatio % 1 !== 0 ? 1 : 0, H = {
|
|
1284
|
+
w: f(I.w - $.w),
|
|
1285
|
+
h: f(I.h - $.h)
|
|
1286
1286
|
};
|
|
1287
1287
|
return {
|
|
1288
|
-
w:
|
|
1289
|
-
h:
|
|
1288
|
+
w: H.w > A ? H.w : 0,
|
|
1289
|
+
h: H.h > A ? H.h : 0
|
|
1290
1290
|
};
|
|
1291
|
-
}, [
|
|
1292
|
-
return ({ Et:
|
|
1293
|
-
const { ht:
|
|
1294
|
-
let
|
|
1295
|
-
if (Q && i && l(
|
|
1296
|
-
|
|
1297
|
-
const [$t, Xt] =
|
|
1298
|
-
$t && $t(), (eo || to || Q) && Xt && !
|
|
1299
|
-
const he = Ks(
|
|
1300
|
-
w: f(He(
|
|
1301
|
-
h: f(He(
|
|
1291
|
+
}, [m, E] = Ct(x, D(Ro, r)), [w, g] = Ct(x, D(yo, r)), [O, p] = Ct(x), [S, R] = Ct(x), [W] = Ct(C), V = fe(Bo);
|
|
1292
|
+
return ({ Et: I, Gt: $, un: A, Tt: H }, { _n: M }) => {
|
|
1293
|
+
const { ht: L, Ht: j, Ct: N, zt: U } = $ || {}, Z = V && V.M(t, e, A, o, I), { q: _, W: et, X: ot } = Z || {}, [P, Q] = xr(I, o), [nt, ut] = I("overflow"), h = L || M || j || N || U || Q, b = Ne(nt.x), y = Ne(nt.y), T = b || y;
|
|
1294
|
+
let k = E(H), z = g(H), B = p(H), F = R(H), q;
|
|
1295
|
+
if (Q && i && l(rs, !P), h) {
|
|
1296
|
+
T && l(re, !1);
|
|
1297
|
+
const [$t, Xt] = et ? et(q) : [], [Rt, to] = k = m(H), [Pt, eo] = z = w(H), pe = Kn(r), Ce = Pt, Ee = pe;
|
|
1298
|
+
$t && $t(), (eo || to || Q) && Xt && !P && _ && _(Xt, Pt, Rt);
|
|
1299
|
+
const he = Ks(d), ve = {
|
|
1300
|
+
w: f(He(Pt.w, Ce.w) + Rt.w),
|
|
1301
|
+
h: f(He(Pt.h, Ce.h) + Rt.h)
|
|
1302
1302
|
}, te = {
|
|
1303
|
-
w: f((
|
|
1304
|
-
h: f((
|
|
1303
|
+
w: f((u ? he.w : Ee.w + f(pe.w - Pt.w)) + Rt.w),
|
|
1304
|
+
h: f((u ? he.h : Ee.h + f(pe.h - Pt.h)) + Rt.h)
|
|
1305
1305
|
};
|
|
1306
|
-
F =
|
|
1306
|
+
F = S(te), B = O(v(ve, te), H);
|
|
1307
1307
|
}
|
|
1308
|
-
const [it, dt] = F, [
|
|
1309
|
-
x:
|
|
1310
|
-
y:
|
|
1311
|
-
},
|
|
1312
|
-
if (
|
|
1313
|
-
const $t = {}, Xt = wr(t, pt,
|
|
1314
|
-
|
|
1308
|
+
const [it, dt] = F, [J, at] = B, [Ut, X] = z, [lt, ft] = k, pt = {
|
|
1309
|
+
x: J.w > 0,
|
|
1310
|
+
y: J.h > 0
|
|
1311
|
+
}, rt = b && y && (pt.x || pt.y) || b && pt.x && !pt.y || y && pt.y && !pt.x;
|
|
1312
|
+
if (M || N || U || ft || X || dt || at || ut || Q || h) {
|
|
1313
|
+
const $t = {}, Xt = wr(t, pt, nt, $t);
|
|
1314
|
+
ot && ot(Xt, A, !!_ && _(Xt, Ut, lt), $t), c ? (Ot(n, os, $t[Ge]), Ot(n, ns, $t[qe])) : ue(r, $t);
|
|
1315
1315
|
}
|
|
1316
|
-
ke(n, gt,
|
|
1317
|
-
const [jt, Jt] = W(
|
|
1316
|
+
ke(n, gt, ss, rt), ke(s, Oo, rr, rt), c || ke(r, Vt, re, T);
|
|
1317
|
+
const [jt, Jt] = W(us(t).k);
|
|
1318
1318
|
return Y(e, {
|
|
1319
1319
|
k: jt,
|
|
1320
1320
|
Pt: {
|
|
@@ -1322,8 +1322,8 @@ const Or = () => {
|
|
|
1322
1322
|
y: it.h
|
|
1323
1323
|
},
|
|
1324
1324
|
Lt: {
|
|
1325
|
-
x:
|
|
1326
|
-
y:
|
|
1325
|
+
x: J.w,
|
|
1326
|
+
y: J.h
|
|
1327
1327
|
},
|
|
1328
1328
|
en: pt
|
|
1329
1329
|
}), {
|
|
@@ -1332,7 +1332,7 @@ const Or = () => {
|
|
|
1332
1332
|
nn: at
|
|
1333
1333
|
};
|
|
1334
1334
|
};
|
|
1335
|
-
},
|
|
1335
|
+
}, Br = (t) => {
|
|
1336
1336
|
const [e, o, n] = Rr(t), s = {
|
|
1337
1337
|
cn: {
|
|
1338
1338
|
t: 0,
|
|
@@ -1342,13 +1342,13 @@ const Or = () => {
|
|
|
1342
1342
|
},
|
|
1343
1343
|
fn: !1,
|
|
1344
1344
|
j: {
|
|
1345
|
-
[Wn]: 0,
|
|
1346
|
-
[_n]: 0,
|
|
1347
1345
|
[Dn]: 0,
|
|
1348
|
-
[
|
|
1346
|
+
[Wn]: 0,
|
|
1347
|
+
[Bn]: 0,
|
|
1348
|
+
[Rn]: 0,
|
|
1349
1349
|
[Pn]: 0,
|
|
1350
1350
|
[Vn]: 0,
|
|
1351
|
-
[
|
|
1351
|
+
[zn]: 0
|
|
1352
1352
|
},
|
|
1353
1353
|
Pt: {
|
|
1354
1354
|
x: 0,
|
|
@@ -1366,157 +1366,157 @@ const Or = () => {
|
|
|
1366
1366
|
x: !1,
|
|
1367
1367
|
y: !1
|
|
1368
1368
|
}
|
|
1369
|
-
}, { gt: r, D: c, V: l } = e, { L: a, T:
|
|
1369
|
+
}, { gt: r, D: c, V: l } = e, { L: a, T: d } = wt(), i = !a && (d.x || d.y), u = [Pr(e), zr(e, s), Vr(e, s)];
|
|
1370
1370
|
return [o, (f) => {
|
|
1371
|
-
const
|
|
1372
|
-
return G(
|
|
1373
|
-
Y(
|
|
1374
|
-
}),
|
|
1371
|
+
const x = {}, v = i && de(c), m = l ? xe(c, gt, So) : Et;
|
|
1372
|
+
return G(u, (E) => {
|
|
1373
|
+
Y(x, E(f, x) || {});
|
|
1374
|
+
}), m(), Ft(c, v), !l && Ft(r, 0), x;
|
|
1375
1375
|
}, s, e, n];
|
|
1376
1376
|
}, Dr = (t, e, o, n) => {
|
|
1377
|
-
const s =
|
|
1378
|
-
|
|
1379
|
-
}), [
|
|
1380
|
-
const { dn:
|
|
1381
|
-
Et:
|
|
1377
|
+
const s = sn(e, {}), [r, c, l, a, d] = Br(t), [i, u, f] = Hr(a, l, s, (w) => {
|
|
1378
|
+
E({}, w);
|
|
1379
|
+
}), [x, C, , v] = Ar(t, e, f, l, a, n), m = (w) => At(w).some((g) => !!w[g]), E = (w, g) => {
|
|
1380
|
+
const { dn: O, Tt: p, At: S, vn: R } = w, W = O || {}, V = !!p, I = {
|
|
1381
|
+
Et: sn(e, W, V),
|
|
1382
1382
|
dn: W,
|
|
1383
|
-
Tt:
|
|
1383
|
+
Tt: V
|
|
1384
1384
|
};
|
|
1385
|
-
if (
|
|
1386
|
-
return
|
|
1387
|
-
const
|
|
1388
|
-
At:
|
|
1389
|
-
})),
|
|
1385
|
+
if (R)
|
|
1386
|
+
return C(I), !1;
|
|
1387
|
+
const $ = g || u(Y({}, I, {
|
|
1388
|
+
At: S
|
|
1389
|
+
})), A = c(Y({}, I, {
|
|
1390
1390
|
un: f,
|
|
1391
|
-
Gt:
|
|
1391
|
+
Gt: $
|
|
1392
1392
|
}));
|
|
1393
|
-
|
|
1394
|
-
Gt:
|
|
1395
|
-
Qt:
|
|
1393
|
+
C(Y({}, I, {
|
|
1394
|
+
Gt: $,
|
|
1395
|
+
Qt: A
|
|
1396
1396
|
}));
|
|
1397
|
-
const
|
|
1398
|
-
return
|
|
1399
|
-
Gt:
|
|
1400
|
-
Qt:
|
|
1401
|
-
}),
|
|
1397
|
+
const H = m($), M = m(A), L = H || M || !ko(W) || V;
|
|
1398
|
+
return L && o(w, {
|
|
1399
|
+
Gt: $,
|
|
1400
|
+
Qt: A
|
|
1401
|
+
}), L;
|
|
1402
1402
|
};
|
|
1403
1403
|
return [() => {
|
|
1404
|
-
const { rn:
|
|
1405
|
-
return Ft(
|
|
1406
|
-
},
|
|
1404
|
+
const { rn: w, D: g } = a, O = de(w), p = [i(), r(), x()];
|
|
1405
|
+
return Ft(g, O), D(xt, p);
|
|
1406
|
+
}, E, () => ({
|
|
1407
1407
|
hn: f,
|
|
1408
1408
|
pn: l
|
|
1409
1409
|
}), {
|
|
1410
1410
|
gn: a,
|
|
1411
|
-
bn:
|
|
1412
|
-
},
|
|
1411
|
+
bn: v
|
|
1412
|
+
}, d];
|
|
1413
1413
|
}, Qt = (t, e, o) => {
|
|
1414
|
-
const { nt: n } = wt(), s = me(t), r = s ? t : t.target, c =
|
|
1414
|
+
const { nt: n } = wt(), s = me(t), r = s ? t : t.target, c = fs(r);
|
|
1415
1415
|
if (e && !c) {
|
|
1416
1416
|
let l = !1;
|
|
1417
|
-
const a = [],
|
|
1418
|
-
const
|
|
1419
|
-
return
|
|
1420
|
-
},
|
|
1421
|
-
|
|
1422
|
-
}, [
|
|
1423
|
-
const { ht:
|
|
1424
|
-
|
|
1417
|
+
const a = [], d = {}, i = (I) => {
|
|
1418
|
+
const $ = Xn(I), A = fe(br);
|
|
1419
|
+
return A ? A($, !0) : $;
|
|
1420
|
+
}, u = Y({}, n(), i(e)), [f, x, C] = wo(), [v, m, E] = wo(o), w = (I, $) => {
|
|
1421
|
+
E(I, $), C(I, $);
|
|
1422
|
+
}, [g, O, p, S, R] = Dr(t, u, ({ dn: I, Tt: $ }, { Gt: A, Qt: H }) => {
|
|
1423
|
+
const { ht: M, Ct: L, xt: j, Ht: N, It: U, dt: Z } = A, { tn: _, nn: et, sn: ot } = H;
|
|
1424
|
+
w("updated", [V, {
|
|
1425
1425
|
updateHints: {
|
|
1426
|
-
sizeChanged: !!
|
|
1427
|
-
directionChanged: !!
|
|
1426
|
+
sizeChanged: !!M,
|
|
1427
|
+
directionChanged: !!L,
|
|
1428
1428
|
heightIntrinsicChanged: !!j,
|
|
1429
1429
|
overflowEdgeChanged: !!_,
|
|
1430
|
-
overflowAmountChanged: !!
|
|
1431
|
-
overflowStyleChanged: !!
|
|
1430
|
+
overflowAmountChanged: !!et,
|
|
1431
|
+
overflowStyleChanged: !!ot,
|
|
1432
1432
|
contentMutation: !!N,
|
|
1433
1433
|
hostMutation: !!U,
|
|
1434
1434
|
appear: !!Z
|
|
1435
1435
|
},
|
|
1436
|
-
changedOptions:
|
|
1437
|
-
force:
|
|
1436
|
+
changedOptions: I || {},
|
|
1437
|
+
force: !!$
|
|
1438
1438
|
}]);
|
|
1439
|
-
}, (
|
|
1440
|
-
$r(r), xt(a), l = !0,
|
|
1441
|
-
},
|
|
1442
|
-
options(
|
|
1443
|
-
if (
|
|
1444
|
-
const
|
|
1445
|
-
|
|
1446
|
-
dn:
|
|
1439
|
+
}, (I) => w("scroll", [V, I])), W = (I) => {
|
|
1440
|
+
$r(r), xt(a), l = !0, w("destroyed", [V, I]), x(), m();
|
|
1441
|
+
}, V = {
|
|
1442
|
+
options(I, $) {
|
|
1443
|
+
if (I) {
|
|
1444
|
+
const A = $ ? n() : {}, H = ts(u, Y(A, i(I)));
|
|
1445
|
+
ko(H) || (Y(u, H), O({
|
|
1446
|
+
dn: H
|
|
1447
1447
|
}));
|
|
1448
1448
|
}
|
|
1449
|
-
return Y({},
|
|
1449
|
+
return Y({}, u);
|
|
1450
1450
|
},
|
|
1451
|
-
on:
|
|
1452
|
-
off: (
|
|
1453
|
-
|
|
1451
|
+
on: v,
|
|
1452
|
+
off: (I, $) => {
|
|
1453
|
+
I && $ && m(I, $);
|
|
1454
1454
|
},
|
|
1455
1455
|
state() {
|
|
1456
|
-
const { hn:
|
|
1456
|
+
const { hn: I, pn: $ } = p(), { N: A } = I, { Pt: H, Lt: M, k: L, en: j, cn: N, fn: U } = $;
|
|
1457
1457
|
return Y({}, {
|
|
1458
|
-
overflowEdge:
|
|
1459
|
-
overflowAmount:
|
|
1460
|
-
overflowStyle:
|
|
1458
|
+
overflowEdge: H,
|
|
1459
|
+
overflowAmount: M,
|
|
1460
|
+
overflowStyle: L,
|
|
1461
1461
|
hasOverflow: j,
|
|
1462
1462
|
padding: N,
|
|
1463
1463
|
paddingAbsolute: U,
|
|
1464
|
-
directionRTL:
|
|
1464
|
+
directionRTL: A,
|
|
1465
1465
|
destroyed: l
|
|
1466
1466
|
});
|
|
1467
1467
|
},
|
|
1468
1468
|
elements() {
|
|
1469
|
-
const { gt:
|
|
1470
|
-
const { Vt:
|
|
1469
|
+
const { gt: I, bt: $, cn: A, D: H, wt: M, kt: L, Zt: j } = S.gn, { qt: N, Jt: U } = S.bn, Z = (et) => {
|
|
1470
|
+
const { Vt: ot, Mt: P, Ut: Q } = et;
|
|
1471
1471
|
return {
|
|
1472
1472
|
scrollbar: Q,
|
|
1473
|
-
track:
|
|
1474
|
-
handle:
|
|
1473
|
+
track: P,
|
|
1474
|
+
handle: ot
|
|
1475
1475
|
};
|
|
1476
|
-
}, _ = (
|
|
1477
|
-
const { Wt:
|
|
1476
|
+
}, _ = (et) => {
|
|
1477
|
+
const { Wt: ot, Xt: P } = et, Q = Z(ot[0]);
|
|
1478
1478
|
return Y({}, Q, {
|
|
1479
1479
|
clone: () => {
|
|
1480
|
-
const
|
|
1481
|
-
return
|
|
1480
|
+
const nt = Z(P());
|
|
1481
|
+
return O({
|
|
1482
1482
|
vn: !0
|
|
1483
|
-
}),
|
|
1483
|
+
}), nt;
|
|
1484
1484
|
}
|
|
1485
1485
|
});
|
|
1486
1486
|
};
|
|
1487
1487
|
return Y({}, {
|
|
1488
|
-
target:
|
|
1489
|
-
host:
|
|
1490
|
-
padding:
|
|
1491
|
-
viewport:
|
|
1492
|
-
content:
|
|
1493
|
-
scrollOffsetElement:
|
|
1488
|
+
target: I,
|
|
1489
|
+
host: $,
|
|
1490
|
+
padding: A || H,
|
|
1491
|
+
viewport: H,
|
|
1492
|
+
content: M || H,
|
|
1493
|
+
scrollOffsetElement: L,
|
|
1494
1494
|
scrollEventElement: j,
|
|
1495
1495
|
scrollbarHorizontal: _(N),
|
|
1496
1496
|
scrollbarVertical: _(U)
|
|
1497
1497
|
});
|
|
1498
1498
|
},
|
|
1499
|
-
update: (
|
|
1500
|
-
Tt:
|
|
1499
|
+
update: (I) => O({
|
|
1500
|
+
Tt: I,
|
|
1501
1501
|
At: !0
|
|
1502
1502
|
}),
|
|
1503
1503
|
destroy: D(W, !1),
|
|
1504
|
-
plugin: (
|
|
1504
|
+
plugin: (I) => d[At(I)[0]]
|
|
1505
1505
|
};
|
|
1506
|
-
return
|
|
1506
|
+
return tt(a, [R]), Tr(r, V), as(ls, Qt, [V, f, d]), Er(S.gn.Rt, !s && t.cancel) ? (W(!0), V) : (tt(a, g()), w("initialized", [V]), V.update(!0), V);
|
|
1507
1507
|
}
|
|
1508
1508
|
return c;
|
|
1509
1509
|
};
|
|
1510
1510
|
Qt.plugin = (t) => {
|
|
1511
|
-
const e = Tt(t), o = e ? t : [t], n = o.map((s) =>
|
|
1511
|
+
const e = Tt(t), o = e ? t : [t], n = o.map((s) => as(s, Qt)[0]);
|
|
1512
1512
|
return gr(o), e ? n : n[0];
|
|
1513
1513
|
};
|
|
1514
1514
|
Qt.valid = (t) => {
|
|
1515
1515
|
const e = t && t.elements, o = kt(e) && e();
|
|
1516
|
-
return De(o) && !!
|
|
1516
|
+
return De(o) && !!fs(o.target);
|
|
1517
1517
|
};
|
|
1518
1518
|
Qt.env = () => {
|
|
1519
|
-
const { P: t, T: e, L: o, K: n, J: s, st: r, et: c, G: l, tt: a, nt:
|
|
1519
|
+
const { P: t, T: e, L: o, K: n, J: s, st: r, et: c, G: l, tt: a, nt: d, ot: i } = wt();
|
|
1520
1520
|
return Y({}, {
|
|
1521
1521
|
scrollbarsSize: t,
|
|
1522
1522
|
scrollbarsOverlaid: e,
|
|
@@ -1527,15 +1527,15 @@ Qt.env = () => {
|
|
|
1527
1527
|
staticDefaultOptions: c,
|
|
1528
1528
|
getDefaultInitialization: l,
|
|
1529
1529
|
setDefaultInitialization: a,
|
|
1530
|
-
getDefaultOptions:
|
|
1530
|
+
getDefaultOptions: d,
|
|
1531
1531
|
setDefaultOptions: i
|
|
1532
1532
|
});
|
|
1533
1533
|
};
|
|
1534
|
-
const
|
|
1534
|
+
const Me = K(999999), $e = K(380), Wr = "var(--upf-text-tooltip-text, var(--upf-text-primary, #212121))", Eo = "var(--upf-text-tooltip-bg, var(--upf-bg-elevated, #ffffff))", fn = "var(--upf-text-tooltip-border, var(--upf-border-color, #D9D9D9))", _r = "var(--upf-border-radius, 4px)", pn = "var(--upf-text-tooltip-shadow-color, rgba(38, 38, 38, 0.16))", Nr = "var(--upf-text-tooltip-scrollbar-thumb, var(--upf-text-disabled, #B2B2B2))", hn = "var(--upf-text-tooltip-scrollbar-thumb-hover, var(--upf-text-secondary, #666666))", Fr = "var(--upf-text-tooltip-scrollbar-padding, 1px)", vn = (t) => {
|
|
1535
1535
|
const e = document.createElement("span"), o = document.createElement("span");
|
|
1536
|
-
return e.style.position = "absolute", e.style.width = "0", e.style.height = "0", e.style.pointerEvents = "none", e.style.zIndex = "2", o.style.position = "absolute", o.style.width = "0", o.style.height = "0", o.style.pointerEvents = "none", t === "top" ? (e.style.borderLeft = "7px solid transparent", e.style.borderRight = "7px solid transparent", e.style.borderBottom = `7px solid ${
|
|
1536
|
+
return e.style.position = "absolute", e.style.width = "0", e.style.height = "0", e.style.pointerEvents = "none", e.style.zIndex = "2", o.style.position = "absolute", o.style.width = "0", o.style.height = "0", o.style.pointerEvents = "none", t === "top" ? (e.style.borderLeft = "7px solid transparent", e.style.borderRight = "7px solid transparent", e.style.borderBottom = `7px solid ${fn}`, e.style.top = "-7px", o.style.borderLeft = "6px solid transparent", o.style.borderRight = "6px solid transparent", o.style.borderBottom = `6px solid ${Eo}`, o.style.top = "1px", o.style.left = "-6px") : (e.style.borderLeft = "7px solid transparent", e.style.borderRight = "7px solid transparent", e.style.borderTop = `7px solid ${fn}`, e.style.bottom = "-7px", o.style.borderLeft = "6px solid transparent", o.style.borderRight = "6px solid transparent", o.style.borderTop = `6px solid ${Eo}`, o.style.bottom = "1px", o.style.left = "-6px"), e.appendChild(o), e;
|
|
1537
1537
|
}, Ur = () => {
|
|
1538
|
-
|
|
1538
|
+
As("das-ui-text", [
|
|
1539
1539
|
{
|
|
1540
1540
|
className: ".das-ui-text-context",
|
|
1541
1541
|
style: { position: "relative", overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap", "letter-spacing": "-0.1px" }
|
|
@@ -1544,7 +1544,7 @@ const Ae = J(999999), $e = J(380), Wr = "var(--upf-text-tooltip-text, var(--upf-
|
|
|
1544
1544
|
className: "#das-ui-text-tooltip",
|
|
1545
1545
|
style: {
|
|
1546
1546
|
position: "fixed",
|
|
1547
|
-
"z-index":
|
|
1547
|
+
"z-index": Me.value
|
|
1548
1548
|
}
|
|
1549
1549
|
},
|
|
1550
1550
|
{
|
|
@@ -1556,7 +1556,7 @@ const Ae = J(999999), $e = J(380), Wr = "var(--upf-text-tooltip-text, var(--upf-
|
|
|
1556
1556
|
padding: "10px",
|
|
1557
1557
|
"font-size": "12px",
|
|
1558
1558
|
color: Wr,
|
|
1559
|
-
background:
|
|
1559
|
+
background: Eo,
|
|
1560
1560
|
// border: `1px solid ${tooltipBorderVar}`,
|
|
1561
1561
|
"border-radius": _r,
|
|
1562
1562
|
"line-height": 1.5,
|
|
@@ -1580,8 +1580,8 @@ const Ae = J(999999), $e = J(380), Wr = "var(--upf-text-tooltip-text, var(--upf-
|
|
|
1580
1580
|
className: ".das-scrollbar",
|
|
1581
1581
|
style: {
|
|
1582
1582
|
"--os-handle-bg": Nr,
|
|
1583
|
-
"--os-handle-bg-hover":
|
|
1584
|
-
"--os-handle-bg-active":
|
|
1583
|
+
"--os-handle-bg-hover": hn,
|
|
1584
|
+
"--os-handle-bg-active": hn,
|
|
1585
1585
|
"--os-padding-perpendicular": Fr,
|
|
1586
1586
|
"--os-size": "10px",
|
|
1587
1587
|
"box-sizing": "border-box",
|
|
@@ -1592,23 +1592,23 @@ const Ae = J(999999), $e = J(380), Wr = "var(--upf-text-tooltip-text, var(--upf-
|
|
|
1592
1592
|
}
|
|
1593
1593
|
}
|
|
1594
1594
|
]);
|
|
1595
|
-
},
|
|
1595
|
+
}, hs = (t) => {
|
|
1596
1596
|
window.inTextTooltip = !0, t.stopPropagation();
|
|
1597
|
-
}, Ie =
|
|
1598
|
-
let
|
|
1599
|
-
const
|
|
1597
|
+
}, Ie = K(0);
|
|
1598
|
+
let vs = K(null);
|
|
1599
|
+
const Ae = () => {
|
|
1600
1600
|
var o;
|
|
1601
|
-
clearTimeout(
|
|
1601
|
+
clearTimeout(vs.value);
|
|
1602
1602
|
const t = document.getElementById("das-ui-text-tooltip");
|
|
1603
1603
|
t && ((o = document.body) == null || o.removeChild(t)), window.inTextTooltip = !1;
|
|
1604
1604
|
const e = document.getElementById("das-ui-text-tooltip-context");
|
|
1605
|
-
e && e.removeEventListener("mouseover",
|
|
1606
|
-
},
|
|
1605
|
+
e && e.removeEventListener("mouseover", hs);
|
|
1606
|
+
}, mn = (t) => {
|
|
1607
1607
|
let e = document.getElementById("das-ui-text-tooltip");
|
|
1608
1608
|
const o = t.clientX, n = t.clientY, s = e == null ? void 0 : e.getBoundingClientRect();
|
|
1609
1609
|
if (e && o >= s.left && o <= s.right && n >= s.top && n <= s.bottom)
|
|
1610
1610
|
return !0;
|
|
1611
|
-
|
|
1611
|
+
Ae();
|
|
1612
1612
|
}, jr = async (t, e) => {
|
|
1613
1613
|
let o = t;
|
|
1614
1614
|
return e.target && (typeof e.target == "string" && (o = e.target), typeof e.target == "function" && (o = await e.target(t))), o;
|
|
@@ -1625,83 +1625,83 @@ const Me = () => {
|
|
|
1625
1625
|
return;
|
|
1626
1626
|
}
|
|
1627
1627
|
let c = (n == null ? void 0 : n.customContent) || "";
|
|
1628
|
-
Ie.value === 0 && window.addEventListener("wheel",
|
|
1628
|
+
Ie.value === 0 && window.addEventListener("wheel", mn), Ie.value++;
|
|
1629
1629
|
let l = await jr(t, n);
|
|
1630
1630
|
const a = l.classList;
|
|
1631
1631
|
l.dataset.customContent = c;
|
|
1632
|
-
let
|
|
1632
|
+
let d = !0;
|
|
1633
1633
|
a.contains("das-ui-text-context") || a.add("das-ui-text-context"), l.onmouseenter = (i) => {
|
|
1634
|
-
const f = i.composedPath()[0], { x
|
|
1635
|
-
|
|
1636
|
-
const
|
|
1637
|
-
|
|
1634
|
+
const f = i.composedPath()[0], { x, y: C, width: v, height: m, top: E, left: w, bottom: g, right: O } = f.getBoundingClientRect(), p = window.getComputedStyle(f, null), S = parseFloat(p.getPropertyValue("padding-left"));
|
|
1635
|
+
Me.value = Rs().nextZIndex();
|
|
1636
|
+
const R = document.createRange();
|
|
1637
|
+
R.setStart(l, 0);
|
|
1638
1638
|
let W = s ? l.childNodes.length : 1;
|
|
1639
|
-
|
|
1640
|
-
const
|
|
1641
|
-
if (
|
|
1642
|
-
const
|
|
1639
|
+
R.setEnd(l, W);
|
|
1640
|
+
const V = parseFloat(p.paddingRight), I = parseFloat(p.paddingLeft), $ = Math.round(R.getBoundingClientRect().width), A = Math.round(l.getBoundingClientRect().width) - V - I;
|
|
1641
|
+
if ($ > A) {
|
|
1642
|
+
const M = (window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth) - O;
|
|
1643
1643
|
setTimeout(async () => {
|
|
1644
|
-
let
|
|
1645
|
-
if (!
|
|
1646
|
-
|
|
1644
|
+
let L = document.getElementById("das-ui-text-tooltip");
|
|
1645
|
+
if (!L) {
|
|
1646
|
+
L = document.createElement("div"), L.style.cssText = `left: ${x + S}px;`, L.style.zIndex = `${Me.value}`, L.setAttribute("id", "das-ui-text-tooltip");
|
|
1647
1647
|
const _ = document.createElement("div");
|
|
1648
|
-
_.setAttribute("id", "das-ui-text-tooltip-context"), _ && (_.style.wordBreak =
|
|
1649
|
-
const
|
|
1650
|
-
|
|
1651
|
-
const
|
|
1652
|
-
if (
|
|
1653
|
-
|
|
1648
|
+
_.setAttribute("id", "das-ui-text-tooltip-context"), _ && (_.style.wordBreak = Fo.value == "zh-CN" ? "break-all" : "normal"), _.addEventListener("mouseover", hs);
|
|
1649
|
+
const et = document.createElement("div");
|
|
1650
|
+
et.setAttribute("id", "tooltip-scroll-content"), _.appendChild(et), L.appendChild(_), document.body.appendChild(L);
|
|
1651
|
+
const ot = "os-theme-dark das-scrollbar", P = document.getElementById("tooltip-scroll-content");
|
|
1652
|
+
if (P) {
|
|
1653
|
+
P.innerHTML = l.dataset.customContent || l.innerHTML;
|
|
1654
1654
|
const Q = {
|
|
1655
1655
|
scrollbars: {
|
|
1656
1656
|
autoHide: "leave",
|
|
1657
1657
|
autoHideDelay: 0,
|
|
1658
|
-
theme:
|
|
1658
|
+
theme: ot
|
|
1659
1659
|
},
|
|
1660
1660
|
overflow: { y: "scroll" }
|
|
1661
1661
|
};
|
|
1662
|
-
l.dataset.customContent ?
|
|
1662
|
+
l.dataset.customContent ? vs.value = setTimeout(() => {
|
|
1663
1663
|
Qt(_, Q);
|
|
1664
1664
|
}, 10) : Qt(_, Q);
|
|
1665
1665
|
}
|
|
1666
1666
|
}
|
|
1667
|
-
const j =
|
|
1667
|
+
const j = L.querySelector('[data-tooltip-arrow="true"]');
|
|
1668
1668
|
j == null || j.remove();
|
|
1669
|
-
const N =
|
|
1670
|
-
if (N.setAttribute("data-tooltip-arrow", "true"), N.style.left = "14px",
|
|
1671
|
-
let _ =
|
|
1672
|
-
|
|
1669
|
+
const N = vn("bottom");
|
|
1670
|
+
if (N.setAttribute("data-tooltip-arrow", "true"), N.style.left = "14px", M + v <= $e.value) {
|
|
1671
|
+
let _ = L.offsetWidth >= $e.value ? $e.value : L.offsetWidth;
|
|
1672
|
+
L.style.cssText = `left: ${x + S - _ / 4}px;`, L.style.zIndex = `${Me.value}`, N.style.left = `${_ / 2}px`;
|
|
1673
1673
|
}
|
|
1674
|
-
|
|
1675
|
-
let U = l.dataset.customContent &&
|
|
1674
|
+
L.appendChild(N);
|
|
1675
|
+
let U = l.dataset.customContent && Fo.value != "zh-CN" ? L.offsetHeight - 10 : L.offsetHeight, Z = C - 10 - U;
|
|
1676
1676
|
if (Z * 1 < 0) {
|
|
1677
|
-
|
|
1678
|
-
const _ =
|
|
1679
|
-
_.setAttribute("data-tooltip-arrow", "true"), _.style.left =
|
|
1677
|
+
L.style.top = `${g + 5}px`, N.remove();
|
|
1678
|
+
const _ = vn("top");
|
|
1679
|
+
_.setAttribute("data-tooltip-arrow", "true"), _.style.left = M + v <= $e.value ? N.style.left : "14px", L.appendChild(_), L.style.boxShadow = `0px -4px 10px 0px ${pn}`;
|
|
1680
1680
|
} else
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
},
|
|
1685
|
-
|
|
1686
|
-
|
|
1681
|
+
L.style.top = `${Z}px`, L.style.boxShadow = `0px 4px 10px 0px ${pn}`;
|
|
1682
|
+
L.onmouseenter = (_) => {
|
|
1683
|
+
d = !1;
|
|
1684
|
+
}, L.onmouseleave = (_) => {
|
|
1685
|
+
d = !0, setTimeout(() => {
|
|
1686
|
+
Ae();
|
|
1687
1687
|
}, 200);
|
|
1688
1688
|
};
|
|
1689
1689
|
}, 200);
|
|
1690
1690
|
}
|
|
1691
1691
|
}, l.onmouseleave = (i) => {
|
|
1692
1692
|
setTimeout(() => {
|
|
1693
|
-
|
|
1693
|
+
d && Ae();
|
|
1694
1694
|
}, 200);
|
|
1695
1695
|
};
|
|
1696
1696
|
},
|
|
1697
1697
|
// 指令与元素解绑时
|
|
1698
1698
|
unmounted() {
|
|
1699
|
-
|
|
1699
|
+
Ae(), Ie.value--, Ie.value === 0 && window.removeEventListener("wheel", mn);
|
|
1700
1700
|
}
|
|
1701
1701
|
}, Yr = ["auto", "fit-content", "inherit", "initial", "max-content", "min-content", "revert", "unset", "-webkit-fill-available"], Zr = (t) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|%)$/.test(t), Gr = (t) => {
|
|
1702
1702
|
if (t)
|
|
1703
1703
|
return typeof t == "string" && Zr(t) || typeof t == "string" && Yr.includes(t) ? t : t + "px";
|
|
1704
|
-
},
|
|
1704
|
+
}, lo = {
|
|
1705
1705
|
large: {
|
|
1706
1706
|
height: "40px",
|
|
1707
1707
|
fontSize: "14px",
|
|
@@ -1712,11 +1712,6 @@ const Me = () => {
|
|
|
1712
1712
|
fontSize: "14px",
|
|
1713
1713
|
defaultWidth: "230px"
|
|
1714
1714
|
},
|
|
1715
|
-
middle: {
|
|
1716
|
-
height: "32px",
|
|
1717
|
-
fontSize: "14px",
|
|
1718
|
-
defaultWidth: "230px"
|
|
1719
|
-
},
|
|
1720
1715
|
small: {
|
|
1721
1716
|
height: "24px",
|
|
1722
1717
|
fontSize: "12px",
|
|
@@ -1739,27 +1734,27 @@ const Me = () => {
|
|
|
1739
1734
|
}
|
|
1740
1735
|
};
|
|
1741
1736
|
var bn;
|
|
1742
|
-
const
|
|
1737
|
+
const ms = typeof window < "u", qr = (t) => typeof t == "string", Qr = () => {
|
|
1743
1738
|
};
|
|
1744
|
-
|
|
1745
|
-
function
|
|
1746
|
-
return typeof t == "function" ? t() :
|
|
1739
|
+
ms && ((bn = window == null ? void 0 : window.navigator) != null && bn.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
1740
|
+
function gs(t) {
|
|
1741
|
+
return typeof t == "function" ? t() : Bt(t);
|
|
1747
1742
|
}
|
|
1748
1743
|
function Kr(t) {
|
|
1749
1744
|
return t;
|
|
1750
1745
|
}
|
|
1751
|
-
function
|
|
1746
|
+
function bs(t) {
|
|
1752
1747
|
return Cs() ? (Es(t), !0) : !1;
|
|
1753
1748
|
}
|
|
1754
1749
|
function Jr(t, e = !0) {
|
|
1755
|
-
|
|
1750
|
+
$n() ? $o(t) : e ? t() : be(t);
|
|
1756
1751
|
}
|
|
1757
1752
|
function Zt(t) {
|
|
1758
1753
|
var e;
|
|
1759
|
-
const o =
|
|
1754
|
+
const o = gs(t);
|
|
1760
1755
|
return (e = o == null ? void 0 : o.$el) != null ? e : o;
|
|
1761
1756
|
}
|
|
1762
|
-
const Oe =
|
|
1757
|
+
const Oe = ms ? window : void 0;
|
|
1763
1758
|
function Wt(...t) {
|
|
1764
1759
|
let e, o, n, s;
|
|
1765
1760
|
if (qr(t[0]) || Array.isArray(t[0]) ? ([o, n, s] = t, e = Oe) : [e, o, n, s] = t, !e)
|
|
@@ -1767,15 +1762,15 @@ function Wt(...t) {
|
|
|
1767
1762
|
Array.isArray(o) || (o = [o]), Array.isArray(n) || (n = [n]);
|
|
1768
1763
|
const r = [], c = () => {
|
|
1769
1764
|
r.forEach((i) => i()), r.length = 0;
|
|
1770
|
-
}, l = (i,
|
|
1771
|
-
c(), i && r.push(...o.flatMap((f) => n.map((
|
|
1772
|
-
}, { immediate: !0, flush: "post" }),
|
|
1765
|
+
}, l = (i, u, f, x) => (i.addEventListener(u, f, x), () => i.removeEventListener(u, f, x)), a = Gt(() => [Zt(e), gs(s)], ([i, u]) => {
|
|
1766
|
+
c(), i && r.push(...o.flatMap((f) => n.map((x) => l(i, f, x, u))));
|
|
1767
|
+
}, { immediate: !0, flush: "post" }), d = () => {
|
|
1773
1768
|
a(), c();
|
|
1774
1769
|
};
|
|
1775
|
-
return
|
|
1770
|
+
return bs(d), d;
|
|
1776
1771
|
}
|
|
1777
1772
|
function tc(t, e = !1) {
|
|
1778
|
-
const o =
|
|
1773
|
+
const o = K(), n = () => o.value = !!t();
|
|
1779
1774
|
return n(), Jr(n, e), o;
|
|
1780
1775
|
}
|
|
1781
1776
|
const yn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, xn = "__vueuse_ssr_handlers__";
|
|
@@ -1794,32 +1789,32 @@ function sc(t, e, o = {}) {
|
|
|
1794
1789
|
let c;
|
|
1795
1790
|
const l = tc(() => s && "ResizeObserver" in s), a = () => {
|
|
1796
1791
|
c && (c.disconnect(), c = void 0);
|
|
1797
|
-
},
|
|
1798
|
-
a(), l.value && s &&
|
|
1792
|
+
}, d = Gt(() => Zt(t), (u) => {
|
|
1793
|
+
a(), l.value && s && u && (c = new ResizeObserver(e), c.observe(u, r));
|
|
1799
1794
|
}, { immediate: !0, flush: "post" }), i = () => {
|
|
1800
|
-
a(),
|
|
1795
|
+
a(), d();
|
|
1801
1796
|
};
|
|
1802
|
-
return
|
|
1797
|
+
return bs(i), {
|
|
1803
1798
|
isSupported: l,
|
|
1804
1799
|
stop: i
|
|
1805
1800
|
};
|
|
1806
1801
|
}
|
|
1807
1802
|
function rc(t, e = { width: 0, height: 0 }, o = {}) {
|
|
1808
|
-
const { window: n = Oe, box: s = "content-box" } = o, r =
|
|
1809
|
-
var a,
|
|
1810
|
-
return (
|
|
1811
|
-
}), c =
|
|
1803
|
+
const { window: n = Oe, box: s = "content-box" } = o, r = ct(() => {
|
|
1804
|
+
var a, d;
|
|
1805
|
+
return (d = (a = Zt(t)) == null ? void 0 : a.namespaceURI) == null ? void 0 : d.includes("svg");
|
|
1806
|
+
}), c = K(e.width), l = K(e.height);
|
|
1812
1807
|
return sc(t, ([a]) => {
|
|
1813
|
-
const
|
|
1808
|
+
const d = s === "border-box" ? a.borderBoxSize : s === "content-box" ? a.contentBoxSize : a.devicePixelContentBoxSize;
|
|
1814
1809
|
if (n && r.value) {
|
|
1815
1810
|
const i = Zt(t);
|
|
1816
1811
|
if (i) {
|
|
1817
|
-
const
|
|
1818
|
-
c.value = parseFloat(
|
|
1812
|
+
const u = n.getComputedStyle(i);
|
|
1813
|
+
c.value = parseFloat(u.width), l.value = parseFloat(u.height);
|
|
1819
1814
|
}
|
|
1820
|
-
} else if (
|
|
1821
|
-
const i = Array.isArray(
|
|
1822
|
-
c.value = i.reduce((
|
|
1815
|
+
} else if (d) {
|
|
1816
|
+
const i = Array.isArray(d) ? d : [d];
|
|
1817
|
+
c.value = i.reduce((u, { inlineSize: f }) => u + f, 0), l.value = i.reduce((u, { blockSize: f }) => u + f, 0);
|
|
1823
1818
|
} else
|
|
1824
1819
|
c.value = a.contentRect.width, l.value = a.contentRect.height;
|
|
1825
1820
|
}, o), Gt(() => Zt(t), (a) => {
|
|
@@ -1830,9 +1825,9 @@ function rc(t, e = { width: 0, height: 0 }, o = {}) {
|
|
|
1830
1825
|
};
|
|
1831
1826
|
}
|
|
1832
1827
|
function cc(t, e = {}) {
|
|
1833
|
-
const { initialValue: o = !1 } = e, n =
|
|
1828
|
+
const { initialValue: o = !1 } = e, n = K(!1), s = ct(() => Zt(t));
|
|
1834
1829
|
Wt(s, "focus", () => n.value = !0), Wt(s, "blur", () => n.value = !1);
|
|
1835
|
-
const r =
|
|
1830
|
+
const r = ct({
|
|
1836
1831
|
get: () => n.value,
|
|
1837
1832
|
set(c) {
|
|
1838
1833
|
var l, a;
|
|
@@ -1851,56 +1846,56 @@ function lc(t = {}) {
|
|
|
1851
1846
|
initialValue: s = { x: 0, y: 0 },
|
|
1852
1847
|
window: r = Oe,
|
|
1853
1848
|
eventFilter: c
|
|
1854
|
-
} = t, l =
|
|
1855
|
-
e === "page" ? (l.value =
|
|
1856
|
-
},
|
|
1849
|
+
} = t, l = K(s.x), a = K(s.y), d = K(null), i = (v) => {
|
|
1850
|
+
e === "page" ? (l.value = v.pageX, a.value = v.pageY) : e === "client" ? (l.value = v.clientX, a.value = v.clientY) : e === "movement" && (l.value = v.movementX, a.value = v.movementY), d.value = "mouse";
|
|
1851
|
+
}, u = () => {
|
|
1857
1852
|
l.value = s.x, a.value = s.y;
|
|
1858
|
-
}, f = (
|
|
1859
|
-
if (
|
|
1860
|
-
const
|
|
1861
|
-
e === "page" ? (l.value =
|
|
1853
|
+
}, f = (v) => {
|
|
1854
|
+
if (v.touches.length > 0) {
|
|
1855
|
+
const m = v.touches[0];
|
|
1856
|
+
e === "page" ? (l.value = m.pageX, a.value = m.pageY) : e === "client" && (l.value = m.clientX, a.value = m.clientY), d.value = "touch";
|
|
1862
1857
|
}
|
|
1863
|
-
},
|
|
1864
|
-
return r && (Wt(r, "mousemove",
|
|
1858
|
+
}, x = (v) => c === void 0 ? i(v) : c(() => i(v), {}), C = (v) => c === void 0 ? f(v) : c(() => f(v), {});
|
|
1859
|
+
return r && (Wt(r, "mousemove", x, { passive: !0 }), Wt(r, "dragover", x, { passive: !0 }), o && e !== "movement" && (Wt(r, "touchstart", C, { passive: !0 }), Wt(r, "touchmove", C, { passive: !0 }), n && Wt(r, "touchend", u, { passive: !0 }))), {
|
|
1865
1860
|
x: l,
|
|
1866
1861
|
y: a,
|
|
1867
|
-
sourceType:
|
|
1862
|
+
sourceType: d
|
|
1868
1863
|
};
|
|
1869
1864
|
}
|
|
1870
1865
|
function ic(t, e = {}) {
|
|
1871
1866
|
const {
|
|
1872
1867
|
handleOutside: o = !0,
|
|
1873
1868
|
window: n = Oe
|
|
1874
|
-
} = e, { x: s, y: r, sourceType: c } = lc(e), l =
|
|
1875
|
-
let
|
|
1869
|
+
} = e, { x: s, y: r, sourceType: c } = lc(e), l = K(t ?? (n == null ? void 0 : n.document.body)), a = K(0), d = K(0), i = K(0), u = K(0), f = K(0), x = K(0), C = K(!0);
|
|
1870
|
+
let v = () => {
|
|
1876
1871
|
};
|
|
1877
|
-
return n && (
|
|
1878
|
-
const
|
|
1879
|
-
if (!
|
|
1872
|
+
return n && (v = Gt([l, s, r], () => {
|
|
1873
|
+
const m = Zt(l);
|
|
1874
|
+
if (!m)
|
|
1880
1875
|
return;
|
|
1881
1876
|
const {
|
|
1882
|
-
left:
|
|
1883
|
-
top:
|
|
1884
|
-
width:
|
|
1885
|
-
height:
|
|
1886
|
-
} =
|
|
1887
|
-
i.value =
|
|
1888
|
-
const
|
|
1889
|
-
|
|
1877
|
+
left: E,
|
|
1878
|
+
top: w,
|
|
1879
|
+
width: g,
|
|
1880
|
+
height: O
|
|
1881
|
+
} = m.getBoundingClientRect();
|
|
1882
|
+
i.value = E + n.pageXOffset, u.value = w + n.pageYOffset, f.value = O, x.value = g;
|
|
1883
|
+
const p = s.value - i.value, S = r.value - u.value;
|
|
1884
|
+
C.value = g === 0 || O === 0 || p < 0 || S < 0 || p > g || S > O, (o || !C.value) && (a.value = p, d.value = S);
|
|
1890
1885
|
}, { immediate: !0 }), Wt(document, "mouseleave", () => {
|
|
1891
|
-
|
|
1886
|
+
C.value = !0;
|
|
1892
1887
|
})), {
|
|
1893
1888
|
x: s,
|
|
1894
1889
|
y: r,
|
|
1895
1890
|
sourceType: c,
|
|
1896
1891
|
elementX: a,
|
|
1897
|
-
elementY:
|
|
1892
|
+
elementY: d,
|
|
1898
1893
|
elementPositionX: i,
|
|
1899
|
-
elementPositionY:
|
|
1894
|
+
elementPositionY: u,
|
|
1900
1895
|
elementHeight: f,
|
|
1901
|
-
elementWidth:
|
|
1902
|
-
isOutside:
|
|
1903
|
-
stop:
|
|
1896
|
+
elementWidth: x,
|
|
1897
|
+
isOutside: C,
|
|
1898
|
+
stop: v
|
|
1904
1899
|
};
|
|
1905
1900
|
}
|
|
1906
1901
|
var Sn;
|
|
@@ -1950,19 +1945,19 @@ function hc({
|
|
|
1950
1945
|
placeholder: o
|
|
1951
1946
|
}) {
|
|
1952
1947
|
var i;
|
|
1953
|
-
const n = (i =
|
|
1954
|
-
var
|
|
1955
|
-
return (
|
|
1956
|
-
}), { focused: r } = cc(s), c =
|
|
1957
|
-
const
|
|
1958
|
-
|
|
1948
|
+
const n = (i = $n()) == null ? void 0 : i.props, s = ct(() => {
|
|
1949
|
+
var u;
|
|
1950
|
+
return (u = t.value) == null ? void 0 : u.ref;
|
|
1951
|
+
}), { focused: r } = cc(s), c = K(!1), l = ct(() => c.value && !r.value && n.isTitle), a = ct(() => e.value ? e.value : o.value), d = async () => {
|
|
1952
|
+
const u = s.value;
|
|
1953
|
+
u && (e.value || (u.value = o.value, await be()), c.value = u.scrollWidth > u.clientWidth, u.value = e.value);
|
|
1959
1954
|
};
|
|
1960
1955
|
return Gt(t, () => {
|
|
1961
|
-
t.value &&
|
|
1956
|
+
t.value && d();
|
|
1962
1957
|
}), Gt(
|
|
1963
1958
|
() => [e.value, o.value],
|
|
1964
1959
|
() => {
|
|
1965
|
-
be(
|
|
1960
|
+
be(d);
|
|
1966
1961
|
}
|
|
1967
1962
|
), {
|
|
1968
1963
|
showToolTip: l,
|
|
@@ -1972,7 +1967,7 @@ function hc({
|
|
|
1972
1967
|
const vc = {
|
|
1973
1968
|
key: 0,
|
|
1974
1969
|
class: "das-input-message"
|
|
1975
|
-
}, mc = ["title"], gc = /* @__PURE__ */
|
|
1970
|
+
}, mc = ["title"], gc = /* @__PURE__ */ To({
|
|
1976
1971
|
inheritAttrs: !1,
|
|
1977
1972
|
__name: "index",
|
|
1978
1973
|
props: {
|
|
@@ -2000,25 +1995,16 @@ const vc = {
|
|
|
2000
1995
|
},
|
|
2001
1996
|
emits: ["update:modelValue", "change"],
|
|
2002
1997
|
setup(t, { expose: e, emit: o }) {
|
|
2003
|
-
const n = t, s =
|
|
2004
|
-
|
|
2005
|
-
default: "default",
|
|
2006
|
-
middle: "default",
|
|
2007
|
-
small: "small",
|
|
2008
|
-
table: "default"
|
|
2009
|
-
}, a = (p) => p && p in mn ? p : "default", u = K(() => a(n.size)), i = K(() => mn[u.value]), d = K(() => l[u.value]), f = K(() => {
|
|
2010
|
-
const p = { ...s };
|
|
2011
|
-
return delete p.size, delete p.formSize, delete p.class, delete p.style, p;
|
|
2012
|
-
}), w = K(() => {
|
|
2013
|
-
var p, O;
|
|
1998
|
+
const n = t, s = ct(() => n.placeholder || Hs("请输入")), r = ct(() => n.disabled ? "disabled" : n.isView ? "view" : n.error ? "error" : "default"), c = ct(() => {
|
|
1999
|
+
var p, S, R, W, V;
|
|
2014
2000
|
return {
|
|
2015
|
-
"--das-input-width": Gr(n.width ??
|
|
2016
|
-
"--das-input-height":
|
|
2017
|
-
"--das-input-font-size":
|
|
2018
|
-
"--das-input-border-color": (
|
|
2019
|
-
"--das-input-message-color": (
|
|
2001
|
+
"--das-input-width": Gr(n.width ?? ((p = lo[n.size]) == null ? void 0 : p.defaultWidth)),
|
|
2002
|
+
"--das-input-height": (S = lo[n.size]) == null ? void 0 : S.height,
|
|
2003
|
+
"--das-input-font-size": (R = lo[n.size]) == null ? void 0 : R.fontSize,
|
|
2004
|
+
"--das-input-border-color": (W = gn[r.value]) == null ? void 0 : W.color,
|
|
2005
|
+
"--das-input-message-color": (V = gn[r.value]) == null ? void 0 : V.color
|
|
2020
2006
|
};
|
|
2021
|
-
}),
|
|
2007
|
+
}), l = ct(() => [
|
|
2022
2008
|
"das-ui-input",
|
|
2023
2009
|
`das-ui-input--border-type-${n.borderType}`,
|
|
2024
2010
|
{
|
|
@@ -2026,54 +2012,53 @@ const vc = {
|
|
|
2026
2012
|
"das-ui-input--disabled": n.disabled,
|
|
2027
2013
|
"das-ui-textarea": n.type === "textarea"
|
|
2028
2014
|
}
|
|
2029
|
-
]),
|
|
2015
|
+
]), a = o, d = ct({
|
|
2030
2016
|
get: () => n.modelValue,
|
|
2031
|
-
set: (p) =>
|
|
2032
|
-
}),
|
|
2017
|
+
set: (p) => a("update:modelValue", p)
|
|
2018
|
+
}), i = K(null), u = K(), { isOutside: f } = ic(ct(() => {
|
|
2033
2019
|
var p;
|
|
2034
|
-
return (p =
|
|
2035
|
-
})),
|
|
2036
|
-
elInputRef:
|
|
2037
|
-
inputValue:
|
|
2038
|
-
placeholder:
|
|
2039
|
-
}), { width:
|
|
2040
|
-
let
|
|
2041
|
-
n.type !== "textarea" && n.filterSpace && (
|
|
2020
|
+
return (p = u.value) == null ? void 0 : p.$el;
|
|
2021
|
+
})), x = ct(() => !f.value && n.errorMode === "overlay"), C = ct(() => n.type === "textarea" ? n.showWordLimit : n.showTextWordLimit), v = ct(() => n.isView || n.disabled), m = ct(() => v.value ? n.noSetDefaultVal ? "" : "-" : s.value ?? ""), { showToolTip: E, tooltipContent: w } = hc({
|
|
2022
|
+
elInputRef: u,
|
|
2023
|
+
inputValue: d,
|
|
2024
|
+
placeholder: s
|
|
2025
|
+
}), { width: g } = rc(i), O = (p) => {
|
|
2026
|
+
let S = p + "";
|
|
2027
|
+
n.type !== "textarea" && n.filterSpace && (S = S.trim()), d.value = S, a("change", S);
|
|
2042
2028
|
};
|
|
2043
2029
|
return e({
|
|
2044
|
-
elInputRef:
|
|
2045
|
-
}), (p,
|
|
2030
|
+
elInputRef: u
|
|
2031
|
+
}), (p, S) => (ht(), St(
|
|
2046
2032
|
"div",
|
|
2047
2033
|
{
|
|
2048
2034
|
ref_key: "containerRef",
|
|
2049
|
-
ref:
|
|
2050
|
-
style:
|
|
2051
|
-
class:
|
|
2035
|
+
ref: i,
|
|
2036
|
+
style: Ve(c.value),
|
|
2037
|
+
class: Pe(l.value)
|
|
2052
2038
|
},
|
|
2053
2039
|
[
|
|
2054
2040
|
Lt(" 这里tooltip不能使用v-model:visible 有响应问题 "),
|
|
2055
|
-
|
|
2041
|
+
io(Ds, {
|
|
2056
2042
|
effect: "light",
|
|
2057
2043
|
placement: "top",
|
|
2058
|
-
disabled: !
|
|
2059
|
-
content:
|
|
2044
|
+
disabled: !Bt(E),
|
|
2045
|
+
content: Bt(w)
|
|
2060
2046
|
}, {
|
|
2061
2047
|
default: Dt(() => [
|
|
2062
|
-
|
|
2048
|
+
io(Bt(Ls), En({
|
|
2063
2049
|
ref_key: "elInputRef",
|
|
2064
|
-
ref:
|
|
2065
|
-
},
|
|
2066
|
-
|
|
2067
|
-
modelValue:
|
|
2068
|
-
|
|
2069
|
-
placeholder: P.value,
|
|
2050
|
+
ref: u
|
|
2051
|
+
}, p.$attrs, {
|
|
2052
|
+
modelValue: d.value,
|
|
2053
|
+
"onUpdate:modelValue": S[0] || (S[0] = (R) => d.value = R),
|
|
2054
|
+
placeholder: m.value,
|
|
2070
2055
|
disabled: t.disabled,
|
|
2071
2056
|
readonly: t.isView,
|
|
2072
2057
|
type: n.type,
|
|
2073
2058
|
autosize: n.autosize,
|
|
2074
|
-
showWordLimit:
|
|
2059
|
+
showWordLimit: C.value,
|
|
2075
2060
|
maxlength: n.maxlength,
|
|
2076
|
-
onChange:
|
|
2061
|
+
onChange: O
|
|
2077
2062
|
}), Ts({
|
|
2078
2063
|
_: 2
|
|
2079
2064
|
/* DYNAMIC */
|
|
@@ -2108,7 +2093,7 @@ const vc = {
|
|
|
2108
2093
|
]),
|
|
2109
2094
|
key: "3"
|
|
2110
2095
|
} : void 0
|
|
2111
|
-
]), 1040, ["
|
|
2096
|
+
]), 1040, ["modelValue", "placeholder", "disabled", "readonly", "type", "autosize", "showWordLimit", "maxlength"])
|
|
2112
2097
|
]),
|
|
2113
2098
|
_: 3
|
|
2114
2099
|
/* FORWARDED */
|
|
@@ -2120,25 +2105,25 @@ const vc = {
|
|
|
2120
2105
|
t.errorMode === "default" ? (ht(), St("div", vc, [
|
|
2121
2106
|
t.error ? $s((ht(), St("span", {
|
|
2122
2107
|
key: 0,
|
|
2123
|
-
class:
|
|
2108
|
+
class: Pe(["das-input-message_content", { "is-ellipsis": t.isErrorTitle }]),
|
|
2124
2109
|
title: t.isErrorTitle ? t.errorLabel : ""
|
|
2125
2110
|
}, [
|
|
2126
|
-
|
|
2127
|
-
|
|
2111
|
+
Tn(
|
|
2112
|
+
ze(t.errorLabel),
|
|
2128
2113
|
1
|
|
2129
2114
|
/* TEXT */
|
|
2130
2115
|
)
|
|
2131
2116
|
], 10, mc)), [
|
|
2132
|
-
[
|
|
2117
|
+
[Bt(Xr)]
|
|
2133
2118
|
]) : Lt("v-if", !0)
|
|
2134
2119
|
])) : Lt("v-if", !0),
|
|
2135
|
-
|
|
2120
|
+
x.value ? (ht(), Io(Ws, {
|
|
2136
2121
|
key: 1,
|
|
2137
2122
|
errorLabel: t.errorLabel,
|
|
2138
|
-
errorWidth: `${
|
|
2123
|
+
errorWidth: `${Bt(g)}`,
|
|
2139
2124
|
getEl: () => {
|
|
2140
|
-
var
|
|
2141
|
-
return (
|
|
2125
|
+
var R;
|
|
2126
|
+
return (R = u.value) == null ? void 0 : R.$el;
|
|
2142
2127
|
},
|
|
2143
2128
|
errorModelZIndex: t.errorModelZIndex
|
|
2144
2129
|
}, null, 8, ["errorLabel", "errorWidth", "getEl", "errorModelZIndex"])) : Lt("v-if", !0)
|
|
@@ -2151,13 +2136,13 @@ const vc = {
|
|
|
2151
2136
|
/* CLASS, STYLE */
|
|
2152
2137
|
));
|
|
2153
2138
|
}
|
|
2154
|
-
}), bc = /* @__PURE__ */
|
|
2139
|
+
}), bc = /* @__PURE__ */ In(gc, [["__scopeId", "data-v-bcb6665b"]]), yc = {
|
|
2155
2140
|
共: { "zh-CN": "共", en: "Total", "zh-MO": "共", _appCode: "framework" },
|
|
2156
2141
|
项: { "zh-CN": "项", en: "Item", "zh-MO": "項", _appCode: "framework" },
|
|
2157
2142
|
请输入: { "zh-CN": "请输入", en: "Please enter", "zh-MO": "請輸入", _appCode: "framework" }
|
|
2158
2143
|
};
|
|
2159
2144
|
ks(yc);
|
|
2160
|
-
const Lc =
|
|
2145
|
+
const Lc = ys(bc);
|
|
2161
2146
|
export {
|
|
2162
2147
|
Lc as DasInput,
|
|
2163
2148
|
Lc as default
|