sprintify-ui 0.0.0 → 0.0.1
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/README.md +47 -158
- package/dist/sprintify-ui.es.js +2239 -0
- package/dist/style.css +4 -0
- package/dist/types/src/components/BaseAutocomplete.vue.d.ts +4 -4
- package/dist/types/src/components/index.d.ts +4 -1
- package/dist/types/src/index.d.ts +2 -1
- package/package.json +3 -2
- package/src/assets/main.css +1 -1
- package/src/components/BaseAutocomplete.vue +1 -1
- package/src/components/BaseBelongsTo.vue +1 -1
- package/src/components/BaseDataIterator.vue +1 -1
- package/src/components/BaseDataTable.vue +9 -9
- package/src/components/BaseDatePicker.vue +1 -1
- package/src/components/BaseFileUploader.vue +7 -7
- package/src/components/BaseMediaLibrary.vue +11 -10
- package/src/components/BaseTagAutocomplete.vue +4 -4
- package/src/components/BaseTagAutocompleteFetch.vue +1 -1
- package/src/components/index.ts +5 -4
- package/src/index.ts +8 -6
- package/src/utils/fileSizeFormat.ts +1 -1
- package/src/utils/toHumanList.ts +1 -1
|
@@ -0,0 +1,2239 @@
|
|
|
1
|
+
import Jt from "axios";
|
|
2
|
+
import { defineComponent as te, resolveComponent as yt, openBlock as O, createElementBlock as M, normalizeClass as G, createBlock as Z, createCommentVNode as R, createElementVNode as F, toDisplayString as Ee, renderSlot as H, normalizeStyle as Zt, ref as K, onMounted as Xt, computed as ce, watch as $t, unref as _, createVNode as U, withDirectives as eo, Fragment as to, renderList as oo, Transition as no, withCtx as bt, vShow as ro, resolveDynamicComponent as lo, h as tt } from "vue";
|
|
3
|
+
import { get as io } from "lodash";
|
|
4
|
+
import { useInfiniteScroll as so } from "@vueuse/core";
|
|
5
|
+
import ot from "qs";
|
|
6
|
+
import { createI18n as co } from "vue-i18n";
|
|
7
|
+
const ao = te({
|
|
8
|
+
props: {
|
|
9
|
+
title: {
|
|
10
|
+
required: !1,
|
|
11
|
+
default: "",
|
|
12
|
+
type: String
|
|
13
|
+
},
|
|
14
|
+
color: {
|
|
15
|
+
default: "success",
|
|
16
|
+
type: String
|
|
17
|
+
},
|
|
18
|
+
showIcon: {
|
|
19
|
+
default: !0,
|
|
20
|
+
type: Boolean
|
|
21
|
+
},
|
|
22
|
+
bordered: {
|
|
23
|
+
default: !1,
|
|
24
|
+
type: Boolean
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
computed: {
|
|
28
|
+
backgroundClass() {
|
|
29
|
+
return this.color == "info" ? "bg-blue-50" : this.color == "success" ? "bg-green-50" : this.color == "danger" ? "bg-red-50" : this.color == "warning" ? "bg-yellow-50" : "bg-slate-900";
|
|
30
|
+
},
|
|
31
|
+
borderClass() {
|
|
32
|
+
return this.bordered ? this.color == "info" ? "border border-blue-400" : this.color == "success" ? "border border-green-400" : this.color == "danger" ? "border border-red-400" : this.color == "warning" ? "border border-yellow-400" : "borer border-slate-900" : "";
|
|
33
|
+
},
|
|
34
|
+
titleClass() {
|
|
35
|
+
return this.color == "info" ? "text-blue-800" : this.color == "success" ? "text-green-800" : this.color == "warning" ? "text-yellow-800" : this.color == "danger" ? "text-red-800" : "text-white";
|
|
36
|
+
},
|
|
37
|
+
textClass() {
|
|
38
|
+
return this.color == "info" ? "text-blue-700" : this.color == "success" ? "text-green-700" : this.color == "warning" ? "text-yellow-700" : this.color == "danger" ? "text-red-700" : "text-white";
|
|
39
|
+
},
|
|
40
|
+
iconClass() {
|
|
41
|
+
return this.icon + " w-5 h-5";
|
|
42
|
+
},
|
|
43
|
+
icon() {
|
|
44
|
+
return this.color == "info" ? "text-blue-400" : this.color == "success" ? "text-green-500" : this.color == "warning" ? "text-yellow-500" : this.color == "danger" ? "text-red-500" : "text-white";
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}), St = (e, t) => {
|
|
48
|
+
const n = e.__vccOpts || e;
|
|
49
|
+
for (const [l, o] of t)
|
|
50
|
+
n[l] = o;
|
|
51
|
+
return n;
|
|
52
|
+
}, uo = {
|
|
53
|
+
key: 0,
|
|
54
|
+
class: "mr-3"
|
|
55
|
+
};
|
|
56
|
+
function fo(e, t, n, l, o, i) {
|
|
57
|
+
const s = yt("Icon");
|
|
58
|
+
return O(), M("div", {
|
|
59
|
+
class: G(["flex w-full items-start rounded-md p-4", [e.backgroundClass, e.borderClass]])
|
|
60
|
+
}, [
|
|
61
|
+
e.showIcon ? (O(), M("div", uo, [
|
|
62
|
+
e.color == "warning" ? (O(), Z(s, {
|
|
63
|
+
key: 0,
|
|
64
|
+
icon: "heroicons-solid:exclamation",
|
|
65
|
+
class: G(e.iconClass)
|
|
66
|
+
}, null, 8, ["class"])) : e.color == "danger" ? (O(), Z(s, {
|
|
67
|
+
key: 1,
|
|
68
|
+
icon: "heroicons-solid:exclamation-circle",
|
|
69
|
+
class: G(e.iconClass)
|
|
70
|
+
}, null, 8, ["class"])) : e.color == "success" ? (O(), Z(s, {
|
|
71
|
+
key: 2,
|
|
72
|
+
icon: "heroicons-solid:check-circle",
|
|
73
|
+
class: G(e.iconClass)
|
|
74
|
+
}, null, 8, ["class"])) : e.color == "info" ? (O(), Z(s, {
|
|
75
|
+
key: 3,
|
|
76
|
+
icon: "heroicons-solid:information-circle",
|
|
77
|
+
class: G(e.iconClass)
|
|
78
|
+
}, null, 8, ["class"])) : R("", !0)
|
|
79
|
+
])) : R("", !0),
|
|
80
|
+
F("div", null, [
|
|
81
|
+
e.title ? (O(), M("h3", {
|
|
82
|
+
key: 0,
|
|
83
|
+
class: G(["mb-1 font-medium leading-tight", [e.titleClass]])
|
|
84
|
+
}, Ee(e.title), 3)) : R("", !0),
|
|
85
|
+
e.$slots.default ? (O(), M("div", {
|
|
86
|
+
key: 1,
|
|
87
|
+
class: G([e.textClass, "text-sm leading-tight"])
|
|
88
|
+
}, [
|
|
89
|
+
H(e.$slots, "default")
|
|
90
|
+
], 2)) : R("", !0)
|
|
91
|
+
])
|
|
92
|
+
], 2);
|
|
93
|
+
}
|
|
94
|
+
const po = /* @__PURE__ */ St(ao, [["render", fo]]), Ie = /* @__PURE__ */ te({
|
|
95
|
+
__name: "BaseSkeleton",
|
|
96
|
+
props: {
|
|
97
|
+
delay: {
|
|
98
|
+
default: "0s",
|
|
99
|
+
type: String
|
|
100
|
+
},
|
|
101
|
+
background: {
|
|
102
|
+
default: "bg-slate-200",
|
|
103
|
+
type: String
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
setup(e) {
|
|
107
|
+
return (t, n) => (O(), M("div", {
|
|
108
|
+
class: G(["relative isolate overflow-hidden rounded", [e.background]])
|
|
109
|
+
}, [
|
|
110
|
+
F("div", {
|
|
111
|
+
class: "absolute inset-0 -translate-x-full animate-[shimmer_2s_infinite] border-t border-white/80 bg-gradient-to-r from-transparent via-white/80 to-transparent",
|
|
112
|
+
style: Zt({
|
|
113
|
+
animationDelay: e.delay
|
|
114
|
+
})
|
|
115
|
+
}, null, 4),
|
|
116
|
+
H(t.$slots, "default")
|
|
117
|
+
], 2));
|
|
118
|
+
}
|
|
119
|
+
}), ho = { class: "relative" }, go = { class: "relative" }, mo = ["value", "placeholder", "disabled"], vo = { class: "pointer-events-none absolute top-0 left-0 flex h-full items-center justify-center pl-2.5" }, yo = {
|
|
120
|
+
key: 0,
|
|
121
|
+
class: "absolute top-0 right-0 flex h-full items-center p-1"
|
|
122
|
+
}, bo = { class: "relative" }, So = { class: "absolute top-1 z-[1] min-h-[110px] w-full overflow-hidden rounded border border-slate-300 bg-white shadow-md" }, wo = { class: "flex items-center justify-center px-5 py-10 text-center text-slate-600" }, ko = { key: 1 }, xo = ["onClick"], To = {
|
|
123
|
+
key: 0,
|
|
124
|
+
class: "absolute inset-0 h-full w-full space-y-1 bg-white p-2"
|
|
125
|
+
}, Co = { class: "space-y-1" }, Io = /* @__PURE__ */ te({
|
|
126
|
+
__name: "BaseAutocomplete",
|
|
127
|
+
props: {
|
|
128
|
+
modelValue: {
|
|
129
|
+
required: !0,
|
|
130
|
+
type: [Object, null, void 0]
|
|
131
|
+
},
|
|
132
|
+
options: {
|
|
133
|
+
required: !0,
|
|
134
|
+
type: Array
|
|
135
|
+
},
|
|
136
|
+
labelKey: {
|
|
137
|
+
required: !0,
|
|
138
|
+
type: String
|
|
139
|
+
},
|
|
140
|
+
valueKey: {
|
|
141
|
+
required: !0,
|
|
142
|
+
type: String
|
|
143
|
+
},
|
|
144
|
+
inputClass: {
|
|
145
|
+
default: "border-slate-300 w-full",
|
|
146
|
+
type: String
|
|
147
|
+
},
|
|
148
|
+
placeholder: {
|
|
149
|
+
default: void 0,
|
|
150
|
+
type: String
|
|
151
|
+
},
|
|
152
|
+
loading: {
|
|
153
|
+
default: !1,
|
|
154
|
+
type: Boolean
|
|
155
|
+
},
|
|
156
|
+
required: {
|
|
157
|
+
default: !1,
|
|
158
|
+
type: Boolean
|
|
159
|
+
},
|
|
160
|
+
disabled: {
|
|
161
|
+
default: !1,
|
|
162
|
+
type: Boolean
|
|
163
|
+
},
|
|
164
|
+
filter: {
|
|
165
|
+
default: void 0,
|
|
166
|
+
type: Function
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
emits: [
|
|
170
|
+
"update:modelValue",
|
|
171
|
+
"typing",
|
|
172
|
+
"focus",
|
|
173
|
+
"scrollBottom",
|
|
174
|
+
"clear"
|
|
175
|
+
],
|
|
176
|
+
setup(e, { emit: t }) {
|
|
177
|
+
const n = e, l = K(0), o = K(""), i = K(!1), s = K(0), c = K(null), u = K(null);
|
|
178
|
+
Xt(() => {
|
|
179
|
+
so(
|
|
180
|
+
u.value,
|
|
181
|
+
() => {
|
|
182
|
+
t("scrollBottom");
|
|
183
|
+
},
|
|
184
|
+
{ distance: 10 }
|
|
185
|
+
);
|
|
186
|
+
});
|
|
187
|
+
const f = ce(() => {
|
|
188
|
+
var m;
|
|
189
|
+
return (m = w.value[Math.min(s.value, w.value.length - 1)]) != null ? m : null;
|
|
190
|
+
}), g = ce(() => n.modelValue ? {
|
|
191
|
+
label: n.modelValue[n.labelKey],
|
|
192
|
+
value: n.modelValue[n.valueKey],
|
|
193
|
+
option: n.modelValue
|
|
194
|
+
} : null);
|
|
195
|
+
$t(
|
|
196
|
+
() => g.value,
|
|
197
|
+
() => {
|
|
198
|
+
var m;
|
|
199
|
+
g.value ? o.value = (m = g.value) == null ? void 0 : m.label : o.value = "";
|
|
200
|
+
},
|
|
201
|
+
{ immediate: !0 }
|
|
202
|
+
);
|
|
203
|
+
const b = ce(() => n.options.map((m) => ({
|
|
204
|
+
label: m[n.labelKey],
|
|
205
|
+
value: m[n.valueKey],
|
|
206
|
+
option: m
|
|
207
|
+
}))), w = ce(() => b.value.filter((m) => n.filter !== void 0 ? n.filter(m) : m.label ? m.label.toLowerCase().includes(o.value.toLowerCase()) : !1)), x = (m, d = null) => {
|
|
208
|
+
var A;
|
|
209
|
+
m.preventDefault(), (A = c.value) == null || A.focus(), d && d();
|
|
210
|
+
}, k = () => {
|
|
211
|
+
clearTimeout(l.value), i.value = !0, t("focus");
|
|
212
|
+
}, C = () => {
|
|
213
|
+
l.value = setTimeout(() => {
|
|
214
|
+
i.value = !1, g.value && S(g.value.label);
|
|
215
|
+
}, 10);
|
|
216
|
+
}, y = (m) => {
|
|
217
|
+
var d;
|
|
218
|
+
s.value = 0, L(io(m, "target.value") + ""), (d = u.value) == null || d.scrollTo({
|
|
219
|
+
top: 0
|
|
220
|
+
}), o.value == "" && B(null);
|
|
221
|
+
}, I = (m) => {
|
|
222
|
+
const d = m.key;
|
|
223
|
+
if (!n.loading) {
|
|
224
|
+
if (d === "ArrowDown") {
|
|
225
|
+
s.value < n.options.length - 1 ? s.value++ : s.value = 0;
|
|
226
|
+
return;
|
|
227
|
+
}
|
|
228
|
+
if (d === "ArrowUp") {
|
|
229
|
+
s.value > 0 ? s.value-- : s.value = Math.max(0, n.options.length - 1);
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
232
|
+
if (d === "Enter") {
|
|
233
|
+
m.preventDefault(), f.value && Y(f.value);
|
|
234
|
+
return;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}, T = (m) => {
|
|
238
|
+
const d = f.value && f.value.value == m.value;
|
|
239
|
+
return g.value && g.value.value == m.value ? d ? "bg-blue-600 hover:bg-blue-700 text-white" : "bg-blue-500 hover:bg-blue-600 text-white" : d ? "bg-slate-200 hover:bg-slate-300" : "bg-white hover:bg-slate-100";
|
|
240
|
+
}, V = () => {
|
|
241
|
+
var m;
|
|
242
|
+
t("clear"), S(""), B(null), (m = c.value) == null || m.focus();
|
|
243
|
+
}, Y = (m) => {
|
|
244
|
+
var d;
|
|
245
|
+
B(m), (d = c.value) == null || d.blur();
|
|
246
|
+
}, B = (m) => {
|
|
247
|
+
const d = m ? m.option : null;
|
|
248
|
+
m && S(m.label), t("update:modelValue", d);
|
|
249
|
+
}, S = (m) => {
|
|
250
|
+
o.value = m;
|
|
251
|
+
}, L = (m) => {
|
|
252
|
+
o.value = m, t("typing", m);
|
|
253
|
+
};
|
|
254
|
+
return (m, d) => {
|
|
255
|
+
const A = yt("Icon");
|
|
256
|
+
return O(), M("div", null, [
|
|
257
|
+
F("div", ho, [
|
|
258
|
+
F("div", go, [
|
|
259
|
+
F("input", {
|
|
260
|
+
ref_key: "inputElement",
|
|
261
|
+
ref: c,
|
|
262
|
+
value: _(o),
|
|
263
|
+
type: "text",
|
|
264
|
+
class: G([e.inputClass + " pl-9", "rounded disabled:cursor-not-allowed disabled:text-slate-300"]),
|
|
265
|
+
placeholder: e.placeholder ? e.placeholder : m.$t("sui.autocomplete_placeholder"),
|
|
266
|
+
autocomplete: "off",
|
|
267
|
+
disabled: e.disabled,
|
|
268
|
+
onFocus: k,
|
|
269
|
+
onBlur: C,
|
|
270
|
+
onInput: y,
|
|
271
|
+
onKeydown: I
|
|
272
|
+
}, null, 42, mo),
|
|
273
|
+
F("div", vo, [
|
|
274
|
+
U(A, {
|
|
275
|
+
class: "h-5 w-5 text-slate-400",
|
|
276
|
+
icon: "heroicons:magnifying-glass-solid"
|
|
277
|
+
})
|
|
278
|
+
])
|
|
279
|
+
]),
|
|
280
|
+
_(g) && !e.disabled ? (O(), M("div", yo, [
|
|
281
|
+
F("button", {
|
|
282
|
+
type: "button",
|
|
283
|
+
class: "group flex h-full items-center rounded p-1.5 enabled:hover:bg-slate-100",
|
|
284
|
+
onClick: d[0] || (d[0] = (P) => V())
|
|
285
|
+
}, [
|
|
286
|
+
U(A, {
|
|
287
|
+
icon: "heroicons:x-mark",
|
|
288
|
+
class: "h-5 w-5 text-slate-500 group-hover:text-slate-700"
|
|
289
|
+
})
|
|
290
|
+
])
|
|
291
|
+
])) : R("", !0)
|
|
292
|
+
]),
|
|
293
|
+
F("div", bo, [
|
|
294
|
+
eo(F("div", So, [
|
|
295
|
+
F("div", {
|
|
296
|
+
ref_key: "dropdown",
|
|
297
|
+
ref: u,
|
|
298
|
+
class: "max-h-[214px] w-full overflow-y-auto p-1"
|
|
299
|
+
}, [
|
|
300
|
+
_(w).length == 0 ? H(m.$slots, "empty", { key: 0 }, () => [
|
|
301
|
+
F("div", wo, Ee(m.$t("sui.nothing_found")), 1)
|
|
302
|
+
]) : (O(), M("ul", ko, [
|
|
303
|
+
(O(!0), M(to, null, oo(_(w), (P) => (O(), M("li", {
|
|
304
|
+
key: P.value,
|
|
305
|
+
class: "block"
|
|
306
|
+
}, [
|
|
307
|
+
F("button", {
|
|
308
|
+
class: "block w-full cursor-pointer appearance-none border-none text-left focus:outline-none",
|
|
309
|
+
type: "button",
|
|
310
|
+
tabindex: "-1",
|
|
311
|
+
onClick: (D) => Y(P),
|
|
312
|
+
onMousedown: x
|
|
313
|
+
}, [
|
|
314
|
+
H(m.$slots, "option", {
|
|
315
|
+
option: P.option,
|
|
316
|
+
selected: _(g) && _(g).value == P.value,
|
|
317
|
+
active: _(f) && _(f).value == P.value
|
|
318
|
+
}, () => [
|
|
319
|
+
F("div", {
|
|
320
|
+
class: G(["rounded px-2 py-1 text-sm", T(P)])
|
|
321
|
+
}, Ee(P.label), 3)
|
|
322
|
+
])
|
|
323
|
+
], 40, xo)
|
|
324
|
+
]))), 128))
|
|
325
|
+
])),
|
|
326
|
+
H(m.$slots, "footer", {
|
|
327
|
+
options: _(w),
|
|
328
|
+
dontLooseFocus: x
|
|
329
|
+
})
|
|
330
|
+
], 512),
|
|
331
|
+
U(no, null, {
|
|
332
|
+
default: bt(() => [
|
|
333
|
+
e.loading ? (O(), M("div", To, [
|
|
334
|
+
F("div", Co, [
|
|
335
|
+
U(Ie, {
|
|
336
|
+
class: "h-7 w-full",
|
|
337
|
+
delay: "0ms"
|
|
338
|
+
}),
|
|
339
|
+
U(Ie, {
|
|
340
|
+
class: "h-7 w-full opacity-70",
|
|
341
|
+
delay: "50ms"
|
|
342
|
+
}),
|
|
343
|
+
U(Ie, {
|
|
344
|
+
class: "h-7 w-full opacity-30",
|
|
345
|
+
delay: "100ms"
|
|
346
|
+
})
|
|
347
|
+
])
|
|
348
|
+
])) : R("", !0)
|
|
349
|
+
]),
|
|
350
|
+
_: 1
|
|
351
|
+
})
|
|
352
|
+
], 512), [
|
|
353
|
+
[ro, _(i)]
|
|
354
|
+
])
|
|
355
|
+
])
|
|
356
|
+
]);
|
|
357
|
+
};
|
|
358
|
+
}
|
|
359
|
+
}), Ao = te({
|
|
360
|
+
props: {
|
|
361
|
+
loading: {
|
|
362
|
+
type: Boolean,
|
|
363
|
+
default: !1
|
|
364
|
+
},
|
|
365
|
+
as: {
|
|
366
|
+
default: "button",
|
|
367
|
+
type: String
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}), Lo = {
|
|
371
|
+
key: 0,
|
|
372
|
+
class: "absolute inset-0 flex h-full w-full items-center justify-center"
|
|
373
|
+
}, Eo = /* @__PURE__ */ F("svg", {
|
|
374
|
+
class: "h-4 w-4 animate-spin",
|
|
375
|
+
viewBox: "0 0 24 24"
|
|
376
|
+
}, [
|
|
377
|
+
/* @__PURE__ */ F("path", {
|
|
378
|
+
fill: "currentColor",
|
|
379
|
+
d: "M12,4V2A10,10 0 0,0 2,12H4A8,8 0 0,1 12,4Z"
|
|
380
|
+
})
|
|
381
|
+
], -1), Fo = [
|
|
382
|
+
Eo
|
|
383
|
+
];
|
|
384
|
+
function Oo(e, t, n, l, o, i) {
|
|
385
|
+
return O(), Z(lo(e.as), {
|
|
386
|
+
ref: "button",
|
|
387
|
+
class: "btn"
|
|
388
|
+
}, {
|
|
389
|
+
default: bt(() => [
|
|
390
|
+
F("div", {
|
|
391
|
+
class: G(["flex items-center justify-center", { "opacity-0": e.loading }])
|
|
392
|
+
}, [
|
|
393
|
+
H(e.$slots, "default")
|
|
394
|
+
], 2),
|
|
395
|
+
e.loading ? (O(), M("div", Lo, Fo)) : R("", !0)
|
|
396
|
+
]),
|
|
397
|
+
_: 3
|
|
398
|
+
}, 512);
|
|
399
|
+
}
|
|
400
|
+
const Po = /* @__PURE__ */ St(Ao, [["render", Oo]]), X = /^[a-z0-9]+(-[a-z0-9]+)*$/, ge = (e, t, n, l = "") => {
|
|
401
|
+
const o = e.split(":");
|
|
402
|
+
if (e.slice(0, 1) === "@") {
|
|
403
|
+
if (o.length < 2 || o.length > 3)
|
|
404
|
+
return null;
|
|
405
|
+
l = o.shift().slice(1);
|
|
406
|
+
}
|
|
407
|
+
if (o.length > 3 || !o.length)
|
|
408
|
+
return null;
|
|
409
|
+
if (o.length > 1) {
|
|
410
|
+
const c = o.pop(), u = o.pop(), f = {
|
|
411
|
+
provider: o.length > 0 ? o[0] : l,
|
|
412
|
+
prefix: u,
|
|
413
|
+
name: c
|
|
414
|
+
};
|
|
415
|
+
return t && !ue(f) ? null : f;
|
|
416
|
+
}
|
|
417
|
+
const i = o[0], s = i.split("-");
|
|
418
|
+
if (s.length > 1) {
|
|
419
|
+
const c = {
|
|
420
|
+
provider: l,
|
|
421
|
+
prefix: s.shift(),
|
|
422
|
+
name: s.join("-")
|
|
423
|
+
};
|
|
424
|
+
return t && !ue(c) ? null : c;
|
|
425
|
+
}
|
|
426
|
+
if (n && l === "") {
|
|
427
|
+
const c = {
|
|
428
|
+
provider: l,
|
|
429
|
+
prefix: "",
|
|
430
|
+
name: i
|
|
431
|
+
};
|
|
432
|
+
return t && !ue(c, n) ? null : c;
|
|
433
|
+
}
|
|
434
|
+
return null;
|
|
435
|
+
}, ue = (e, t) => e ? !!((e.provider === "" || e.provider.match(X)) && (t && e.prefix === "" || e.prefix.match(X)) && e.name.match(X)) : !1, wt = Object.freeze(
|
|
436
|
+
{
|
|
437
|
+
left: 0,
|
|
438
|
+
top: 0,
|
|
439
|
+
width: 16,
|
|
440
|
+
height: 16
|
|
441
|
+
}
|
|
442
|
+
), pe = Object.freeze({
|
|
443
|
+
rotate: 0,
|
|
444
|
+
vFlip: !1,
|
|
445
|
+
hFlip: !1
|
|
446
|
+
}), me = Object.freeze({
|
|
447
|
+
...wt,
|
|
448
|
+
...pe
|
|
449
|
+
}), Fe = Object.freeze({
|
|
450
|
+
...me,
|
|
451
|
+
body: "",
|
|
452
|
+
hidden: !1
|
|
453
|
+
});
|
|
454
|
+
function Mo(e, t) {
|
|
455
|
+
const n = {};
|
|
456
|
+
!e.hFlip != !t.hFlip && (n.hFlip = !0), !e.vFlip != !t.vFlip && (n.vFlip = !0);
|
|
457
|
+
const l = ((e.rotate || 0) + (t.rotate || 0)) % 4;
|
|
458
|
+
return l && (n.rotate = l), n;
|
|
459
|
+
}
|
|
460
|
+
function nt(e, t) {
|
|
461
|
+
const n = Mo(e, t);
|
|
462
|
+
for (const l in Fe)
|
|
463
|
+
l in pe ? l in e && !(l in n) && (n[l] = pe[l]) : l in t ? n[l] = t[l] : l in e && (n[l] = e[l]);
|
|
464
|
+
return n;
|
|
465
|
+
}
|
|
466
|
+
function Go(e, t) {
|
|
467
|
+
const n = e.icons, l = e.aliases || {}, o = /* @__PURE__ */ Object.create(null);
|
|
468
|
+
function i(s) {
|
|
469
|
+
if (n[s])
|
|
470
|
+
return o[s] = [];
|
|
471
|
+
if (!(s in o)) {
|
|
472
|
+
o[s] = null;
|
|
473
|
+
const c = l[s] && l[s].parent, u = c && i(c);
|
|
474
|
+
u && (o[s] = [c].concat(u));
|
|
475
|
+
}
|
|
476
|
+
return o[s];
|
|
477
|
+
}
|
|
478
|
+
return (t || Object.keys(n).concat(Object.keys(l))).forEach(i), o;
|
|
479
|
+
}
|
|
480
|
+
function jo(e, t, n) {
|
|
481
|
+
const l = e.icons, o = e.aliases || {};
|
|
482
|
+
let i = {};
|
|
483
|
+
function s(c) {
|
|
484
|
+
i = nt(
|
|
485
|
+
l[c] || o[c],
|
|
486
|
+
i
|
|
487
|
+
);
|
|
488
|
+
}
|
|
489
|
+
return s(t), n.forEach(s), nt(e, i);
|
|
490
|
+
}
|
|
491
|
+
function kt(e, t) {
|
|
492
|
+
const n = [];
|
|
493
|
+
if (typeof e != "object" || typeof e.icons != "object")
|
|
494
|
+
return n;
|
|
495
|
+
e.not_found instanceof Array && e.not_found.forEach((o) => {
|
|
496
|
+
t(o, null), n.push(o);
|
|
497
|
+
});
|
|
498
|
+
const l = Go(e);
|
|
499
|
+
for (const o in l) {
|
|
500
|
+
const i = l[o];
|
|
501
|
+
i && (t(o, jo(e, o, i)), n.push(o));
|
|
502
|
+
}
|
|
503
|
+
return n;
|
|
504
|
+
}
|
|
505
|
+
const _o = {
|
|
506
|
+
provider: "",
|
|
507
|
+
aliases: {},
|
|
508
|
+
not_found: {},
|
|
509
|
+
...wt
|
|
510
|
+
};
|
|
511
|
+
function Ae(e, t) {
|
|
512
|
+
for (const n in t)
|
|
513
|
+
if (n in e && typeof e[n] != typeof t[n])
|
|
514
|
+
return !1;
|
|
515
|
+
return !0;
|
|
516
|
+
}
|
|
517
|
+
function xt(e) {
|
|
518
|
+
if (typeof e != "object" || e === null)
|
|
519
|
+
return null;
|
|
520
|
+
const t = e;
|
|
521
|
+
if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !Ae(e, _o))
|
|
522
|
+
return null;
|
|
523
|
+
const n = t.icons;
|
|
524
|
+
for (const o in n) {
|
|
525
|
+
const i = n[o];
|
|
526
|
+
if (!o.match(X) || typeof i.body != "string" || !Ae(
|
|
527
|
+
i,
|
|
528
|
+
Fe
|
|
529
|
+
))
|
|
530
|
+
return null;
|
|
531
|
+
}
|
|
532
|
+
const l = t.aliases || {};
|
|
533
|
+
for (const o in l) {
|
|
534
|
+
const i = l[o], s = i.parent;
|
|
535
|
+
if (!o.match(X) || typeof s != "string" || !n[s] && !l[s] || !Ae(
|
|
536
|
+
i,
|
|
537
|
+
Fe
|
|
538
|
+
))
|
|
539
|
+
return null;
|
|
540
|
+
}
|
|
541
|
+
return t;
|
|
542
|
+
}
|
|
543
|
+
const rt = /* @__PURE__ */ Object.create(null);
|
|
544
|
+
function Bo(e, t) {
|
|
545
|
+
return {
|
|
546
|
+
provider: e,
|
|
547
|
+
prefix: t,
|
|
548
|
+
icons: /* @__PURE__ */ Object.create(null),
|
|
549
|
+
missing: /* @__PURE__ */ new Set()
|
|
550
|
+
};
|
|
551
|
+
}
|
|
552
|
+
function Q(e, t) {
|
|
553
|
+
const n = rt[e] || (rt[e] = /* @__PURE__ */ Object.create(null));
|
|
554
|
+
return n[t] || (n[t] = Bo(e, t));
|
|
555
|
+
}
|
|
556
|
+
function Be(e, t) {
|
|
557
|
+
return xt(t) ? kt(t, (n, l) => {
|
|
558
|
+
l ? e.icons[n] = l : e.missing.add(n);
|
|
559
|
+
}) : [];
|
|
560
|
+
}
|
|
561
|
+
function No(e, t, n) {
|
|
562
|
+
try {
|
|
563
|
+
if (typeof n.body == "string")
|
|
564
|
+
return e.icons[t] = { ...n }, !0;
|
|
565
|
+
} catch {
|
|
566
|
+
}
|
|
567
|
+
return !1;
|
|
568
|
+
}
|
|
569
|
+
let $ = !1;
|
|
570
|
+
function Tt(e) {
|
|
571
|
+
return typeof e == "boolean" && ($ = e), $;
|
|
572
|
+
}
|
|
573
|
+
function Do(e) {
|
|
574
|
+
const t = typeof e == "string" ? ge(e, !0, $) : e;
|
|
575
|
+
if (t) {
|
|
576
|
+
const n = Q(t.provider, t.prefix), l = t.name;
|
|
577
|
+
return n.icons[l] || (n.missing.has(l) ? null : void 0);
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
function zo(e, t) {
|
|
581
|
+
const n = ge(e, !0, $);
|
|
582
|
+
if (!n)
|
|
583
|
+
return !1;
|
|
584
|
+
const l = Q(n.provider, n.prefix);
|
|
585
|
+
return No(l, n.name, t);
|
|
586
|
+
}
|
|
587
|
+
function Wo(e, t) {
|
|
588
|
+
if (typeof e != "object")
|
|
589
|
+
return !1;
|
|
590
|
+
if (typeof t != "string" && (t = e.provider || ""), $ && !t && !e.prefix) {
|
|
591
|
+
let o = !1;
|
|
592
|
+
return xt(e) && (e.prefix = "", kt(e, (i, s) => {
|
|
593
|
+
s && zo(i, s) && (o = !0);
|
|
594
|
+
})), o;
|
|
595
|
+
}
|
|
596
|
+
const n = e.prefix;
|
|
597
|
+
if (!ue({
|
|
598
|
+
provider: t,
|
|
599
|
+
prefix: n,
|
|
600
|
+
name: "a"
|
|
601
|
+
}))
|
|
602
|
+
return !1;
|
|
603
|
+
const l = Q(t, n);
|
|
604
|
+
return !!Be(l, e);
|
|
605
|
+
}
|
|
606
|
+
const Ct = Object.freeze({
|
|
607
|
+
width: null,
|
|
608
|
+
height: null
|
|
609
|
+
}), It = Object.freeze({
|
|
610
|
+
...Ct,
|
|
611
|
+
...pe
|
|
612
|
+
}), Ro = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Qo = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
613
|
+
function lt(e, t, n) {
|
|
614
|
+
if (t === 1)
|
|
615
|
+
return e;
|
|
616
|
+
if (n = n || 100, typeof e == "number")
|
|
617
|
+
return Math.ceil(e * t * n) / n;
|
|
618
|
+
if (typeof e != "string")
|
|
619
|
+
return e;
|
|
620
|
+
const l = e.split(Ro);
|
|
621
|
+
if (l === null || !l.length)
|
|
622
|
+
return e;
|
|
623
|
+
const o = [];
|
|
624
|
+
let i = l.shift(), s = Qo.test(i);
|
|
625
|
+
for (; ; ) {
|
|
626
|
+
if (s) {
|
|
627
|
+
const c = parseFloat(i);
|
|
628
|
+
isNaN(c) ? o.push(i) : o.push(Math.ceil(c * t * n) / n);
|
|
629
|
+
} else
|
|
630
|
+
o.push(i);
|
|
631
|
+
if (i = l.shift(), i === void 0)
|
|
632
|
+
return o.join("");
|
|
633
|
+
s = !s;
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
function Vo(e, t) {
|
|
637
|
+
const n = {
|
|
638
|
+
...me,
|
|
639
|
+
...e
|
|
640
|
+
}, l = {
|
|
641
|
+
...It,
|
|
642
|
+
...t
|
|
643
|
+
}, o = {
|
|
644
|
+
left: n.left,
|
|
645
|
+
top: n.top,
|
|
646
|
+
width: n.width,
|
|
647
|
+
height: n.height
|
|
648
|
+
};
|
|
649
|
+
let i = n.body;
|
|
650
|
+
[n, l].forEach((x) => {
|
|
651
|
+
const k = [], C = x.hFlip, y = x.vFlip;
|
|
652
|
+
let I = x.rotate;
|
|
653
|
+
C ? y ? I += 2 : (k.push(
|
|
654
|
+
"translate(" + (o.width + o.left).toString() + " " + (0 - o.top).toString() + ")"
|
|
655
|
+
), k.push("scale(-1 1)"), o.top = o.left = 0) : y && (k.push(
|
|
656
|
+
"translate(" + (0 - o.left).toString() + " " + (o.height + o.top).toString() + ")"
|
|
657
|
+
), k.push("scale(1 -1)"), o.top = o.left = 0);
|
|
658
|
+
let T;
|
|
659
|
+
switch (I < 0 && (I -= Math.floor(I / 4) * 4), I = I % 4, I) {
|
|
660
|
+
case 1:
|
|
661
|
+
T = o.height / 2 + o.top, k.unshift(
|
|
662
|
+
"rotate(90 " + T.toString() + " " + T.toString() + ")"
|
|
663
|
+
);
|
|
664
|
+
break;
|
|
665
|
+
case 2:
|
|
666
|
+
k.unshift(
|
|
667
|
+
"rotate(180 " + (o.width / 2 + o.left).toString() + " " + (o.height / 2 + o.top).toString() + ")"
|
|
668
|
+
);
|
|
669
|
+
break;
|
|
670
|
+
case 3:
|
|
671
|
+
T = o.width / 2 + o.left, k.unshift(
|
|
672
|
+
"rotate(-90 " + T.toString() + " " + T.toString() + ")"
|
|
673
|
+
);
|
|
674
|
+
break;
|
|
675
|
+
}
|
|
676
|
+
I % 2 === 1 && (o.left !== o.top && (T = o.left, o.left = o.top, o.top = T), o.width !== o.height && (T = o.width, o.width = o.height, o.height = T)), k.length && (i = '<g transform="' + k.join(" ") + '">' + i + "</g>");
|
|
677
|
+
});
|
|
678
|
+
const s = l.width, c = l.height, u = o.width, f = o.height;
|
|
679
|
+
let g, b;
|
|
680
|
+
return s === null ? (b = c === null ? "1em" : c === "auto" ? f : c, g = lt(b, u / f)) : (g = s === "auto" ? u : s, b = c === null ? lt(g, f / u) : c === "auto" ? f : c), {
|
|
681
|
+
attributes: {
|
|
682
|
+
width: g.toString(),
|
|
683
|
+
height: b.toString(),
|
|
684
|
+
viewBox: o.left.toString() + " " + o.top.toString() + " " + u.toString() + " " + f.toString()
|
|
685
|
+
},
|
|
686
|
+
body: i
|
|
687
|
+
};
|
|
688
|
+
}
|
|
689
|
+
const Yo = /\sid="(\S+)"/g, Ko = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
|
|
690
|
+
let Uo = 0;
|
|
691
|
+
function Ho(e, t = Ko) {
|
|
692
|
+
const n = [];
|
|
693
|
+
let l;
|
|
694
|
+
for (; l = Yo.exec(e); )
|
|
695
|
+
n.push(l[1]);
|
|
696
|
+
return n.length && n.forEach((o) => {
|
|
697
|
+
const i = typeof t == "function" ? t(o) : t + (Uo++).toString(), s = o.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
698
|
+
e = e.replace(
|
|
699
|
+
new RegExp('([#;"])(' + s + ')([")]|\\.[a-z])', "g"),
|
|
700
|
+
"$1" + i + "$3"
|
|
701
|
+
);
|
|
702
|
+
}), e;
|
|
703
|
+
}
|
|
704
|
+
const Oe = /* @__PURE__ */ Object.create(null);
|
|
705
|
+
function qo(e, t) {
|
|
706
|
+
Oe[e] = t;
|
|
707
|
+
}
|
|
708
|
+
function Pe(e) {
|
|
709
|
+
return Oe[e] || Oe[""];
|
|
710
|
+
}
|
|
711
|
+
function Ne(e) {
|
|
712
|
+
let t;
|
|
713
|
+
if (typeof e.resources == "string")
|
|
714
|
+
t = [e.resources];
|
|
715
|
+
else if (t = e.resources, !(t instanceof Array) || !t.length)
|
|
716
|
+
return null;
|
|
717
|
+
return {
|
|
718
|
+
resources: t,
|
|
719
|
+
path: e.path || "/",
|
|
720
|
+
maxURL: e.maxURL || 500,
|
|
721
|
+
rotate: e.rotate || 750,
|
|
722
|
+
timeout: e.timeout || 5e3,
|
|
723
|
+
random: e.random === !0,
|
|
724
|
+
index: e.index || 0,
|
|
725
|
+
dataAfterTimeout: e.dataAfterTimeout !== !1
|
|
726
|
+
};
|
|
727
|
+
}
|
|
728
|
+
const De = /* @__PURE__ */ Object.create(null), J = [
|
|
729
|
+
"https://api.simplesvg.com",
|
|
730
|
+
"https://api.unisvg.com"
|
|
731
|
+
], fe = [];
|
|
732
|
+
for (; J.length > 0; )
|
|
733
|
+
J.length === 1 || Math.random() > 0.5 ? fe.push(J.shift()) : fe.push(J.pop());
|
|
734
|
+
De[""] = Ne({
|
|
735
|
+
resources: ["https://api.iconify.design"].concat(fe)
|
|
736
|
+
});
|
|
737
|
+
function Jo(e, t) {
|
|
738
|
+
const n = Ne(t);
|
|
739
|
+
return n === null ? !1 : (De[e] = n, !0);
|
|
740
|
+
}
|
|
741
|
+
function ze(e) {
|
|
742
|
+
return De[e];
|
|
743
|
+
}
|
|
744
|
+
const Zo = () => {
|
|
745
|
+
let e;
|
|
746
|
+
try {
|
|
747
|
+
if (e = fetch, typeof e == "function")
|
|
748
|
+
return e;
|
|
749
|
+
} catch {
|
|
750
|
+
}
|
|
751
|
+
};
|
|
752
|
+
let it = Zo();
|
|
753
|
+
function Xo(e, t) {
|
|
754
|
+
const n = ze(e);
|
|
755
|
+
if (!n)
|
|
756
|
+
return 0;
|
|
757
|
+
let l;
|
|
758
|
+
if (!n.maxURL)
|
|
759
|
+
l = 0;
|
|
760
|
+
else {
|
|
761
|
+
let o = 0;
|
|
762
|
+
n.resources.forEach((s) => {
|
|
763
|
+
o = Math.max(o, s.length);
|
|
764
|
+
});
|
|
765
|
+
const i = t + ".json?icons=";
|
|
766
|
+
l = n.maxURL - o - n.path.length - i.length;
|
|
767
|
+
}
|
|
768
|
+
return l;
|
|
769
|
+
}
|
|
770
|
+
function $o(e) {
|
|
771
|
+
return e === 404;
|
|
772
|
+
}
|
|
773
|
+
const en = (e, t, n) => {
|
|
774
|
+
const l = [], o = Xo(e, t), i = "icons";
|
|
775
|
+
let s = {
|
|
776
|
+
type: i,
|
|
777
|
+
provider: e,
|
|
778
|
+
prefix: t,
|
|
779
|
+
icons: []
|
|
780
|
+
}, c = 0;
|
|
781
|
+
return n.forEach((u, f) => {
|
|
782
|
+
c += u.length + 1, c >= o && f > 0 && (l.push(s), s = {
|
|
783
|
+
type: i,
|
|
784
|
+
provider: e,
|
|
785
|
+
prefix: t,
|
|
786
|
+
icons: []
|
|
787
|
+
}, c = u.length), s.icons.push(u);
|
|
788
|
+
}), l.push(s), l;
|
|
789
|
+
};
|
|
790
|
+
function tn(e) {
|
|
791
|
+
if (typeof e == "string") {
|
|
792
|
+
const t = ze(e);
|
|
793
|
+
if (t)
|
|
794
|
+
return t.path;
|
|
795
|
+
}
|
|
796
|
+
return "/";
|
|
797
|
+
}
|
|
798
|
+
const on = (e, t, n) => {
|
|
799
|
+
if (!it) {
|
|
800
|
+
n("abort", 424);
|
|
801
|
+
return;
|
|
802
|
+
}
|
|
803
|
+
let l = tn(t.provider);
|
|
804
|
+
switch (t.type) {
|
|
805
|
+
case "icons": {
|
|
806
|
+
const i = t.prefix, c = t.icons.join(","), u = new URLSearchParams({
|
|
807
|
+
icons: c
|
|
808
|
+
});
|
|
809
|
+
l += i + ".json?" + u.toString();
|
|
810
|
+
break;
|
|
811
|
+
}
|
|
812
|
+
case "custom": {
|
|
813
|
+
const i = t.uri;
|
|
814
|
+
l += i.slice(0, 1) === "/" ? i.slice(1) : i;
|
|
815
|
+
break;
|
|
816
|
+
}
|
|
817
|
+
default:
|
|
818
|
+
n("abort", 400);
|
|
819
|
+
return;
|
|
820
|
+
}
|
|
821
|
+
let o = 503;
|
|
822
|
+
it(e + l).then((i) => {
|
|
823
|
+
const s = i.status;
|
|
824
|
+
if (s !== 200) {
|
|
825
|
+
setTimeout(() => {
|
|
826
|
+
n($o(s) ? "abort" : "next", s);
|
|
827
|
+
});
|
|
828
|
+
return;
|
|
829
|
+
}
|
|
830
|
+
return o = 501, i.json();
|
|
831
|
+
}).then((i) => {
|
|
832
|
+
if (typeof i != "object" || i === null) {
|
|
833
|
+
setTimeout(() => {
|
|
834
|
+
n("next", o);
|
|
835
|
+
});
|
|
836
|
+
return;
|
|
837
|
+
}
|
|
838
|
+
setTimeout(() => {
|
|
839
|
+
n("success", i);
|
|
840
|
+
});
|
|
841
|
+
}).catch(() => {
|
|
842
|
+
n("next", o);
|
|
843
|
+
});
|
|
844
|
+
}, nn = {
|
|
845
|
+
prepare: en,
|
|
846
|
+
send: on
|
|
847
|
+
};
|
|
848
|
+
function rn(e) {
|
|
849
|
+
const t = {
|
|
850
|
+
loaded: [],
|
|
851
|
+
missing: [],
|
|
852
|
+
pending: []
|
|
853
|
+
}, n = /* @__PURE__ */ Object.create(null);
|
|
854
|
+
e.sort((o, i) => o.provider !== i.provider ? o.provider.localeCompare(i.provider) : o.prefix !== i.prefix ? o.prefix.localeCompare(i.prefix) : o.name.localeCompare(i.name));
|
|
855
|
+
let l = {
|
|
856
|
+
provider: "",
|
|
857
|
+
prefix: "",
|
|
858
|
+
name: ""
|
|
859
|
+
};
|
|
860
|
+
return e.forEach((o) => {
|
|
861
|
+
if (l.name === o.name && l.prefix === o.prefix && l.provider === o.provider)
|
|
862
|
+
return;
|
|
863
|
+
l = o;
|
|
864
|
+
const i = o.provider, s = o.prefix, c = o.name, u = n[i] || (n[i] = /* @__PURE__ */ Object.create(null)), f = u[s] || (u[s] = Q(i, s));
|
|
865
|
+
let g;
|
|
866
|
+
c in f.icons ? g = t.loaded : s === "" || f.missing.has(c) ? g = t.missing : g = t.pending;
|
|
867
|
+
const b = {
|
|
868
|
+
provider: i,
|
|
869
|
+
prefix: s,
|
|
870
|
+
name: c
|
|
871
|
+
};
|
|
872
|
+
g.push(b);
|
|
873
|
+
}), t;
|
|
874
|
+
}
|
|
875
|
+
function At(e, t) {
|
|
876
|
+
e.forEach((n) => {
|
|
877
|
+
const l = n.loaderCallbacks;
|
|
878
|
+
l && (n.loaderCallbacks = l.filter((o) => o.id !== t));
|
|
879
|
+
});
|
|
880
|
+
}
|
|
881
|
+
function ln(e) {
|
|
882
|
+
e.pendingCallbacksFlag || (e.pendingCallbacksFlag = !0, setTimeout(() => {
|
|
883
|
+
e.pendingCallbacksFlag = !1;
|
|
884
|
+
const t = e.loaderCallbacks ? e.loaderCallbacks.slice(0) : [];
|
|
885
|
+
if (!t.length)
|
|
886
|
+
return;
|
|
887
|
+
let n = !1;
|
|
888
|
+
const l = e.provider, o = e.prefix;
|
|
889
|
+
t.forEach((i) => {
|
|
890
|
+
const s = i.icons, c = s.pending.length;
|
|
891
|
+
s.pending = s.pending.filter((u) => {
|
|
892
|
+
if (u.prefix !== o)
|
|
893
|
+
return !0;
|
|
894
|
+
const f = u.name;
|
|
895
|
+
if (e.icons[f])
|
|
896
|
+
s.loaded.push({
|
|
897
|
+
provider: l,
|
|
898
|
+
prefix: o,
|
|
899
|
+
name: f
|
|
900
|
+
});
|
|
901
|
+
else if (e.missing.has(f))
|
|
902
|
+
s.missing.push({
|
|
903
|
+
provider: l,
|
|
904
|
+
prefix: o,
|
|
905
|
+
name: f
|
|
906
|
+
});
|
|
907
|
+
else
|
|
908
|
+
return n = !0, !0;
|
|
909
|
+
return !1;
|
|
910
|
+
}), s.pending.length !== c && (n || At([e], i.id), i.callback(
|
|
911
|
+
s.loaded.slice(0),
|
|
912
|
+
s.missing.slice(0),
|
|
913
|
+
s.pending.slice(0),
|
|
914
|
+
i.abort
|
|
915
|
+
));
|
|
916
|
+
});
|
|
917
|
+
}));
|
|
918
|
+
}
|
|
919
|
+
let sn = 0;
|
|
920
|
+
function cn(e, t, n) {
|
|
921
|
+
const l = sn++, o = At.bind(null, n, l);
|
|
922
|
+
if (!t.pending.length)
|
|
923
|
+
return o;
|
|
924
|
+
const i = {
|
|
925
|
+
id: l,
|
|
926
|
+
icons: t,
|
|
927
|
+
callback: e,
|
|
928
|
+
abort: o
|
|
929
|
+
};
|
|
930
|
+
return n.forEach((s) => {
|
|
931
|
+
(s.loaderCallbacks || (s.loaderCallbacks = [])).push(i);
|
|
932
|
+
}), o;
|
|
933
|
+
}
|
|
934
|
+
function an(e, t = !0, n = !1) {
|
|
935
|
+
const l = [];
|
|
936
|
+
return e.forEach((o) => {
|
|
937
|
+
const i = typeof o == "string" ? ge(o, t, n) : o;
|
|
938
|
+
i && l.push(i);
|
|
939
|
+
}), l;
|
|
940
|
+
}
|
|
941
|
+
var un = {
|
|
942
|
+
resources: [],
|
|
943
|
+
index: 0,
|
|
944
|
+
timeout: 2e3,
|
|
945
|
+
rotate: 750,
|
|
946
|
+
random: !1,
|
|
947
|
+
dataAfterTimeout: !1
|
|
948
|
+
};
|
|
949
|
+
function fn(e, t, n, l) {
|
|
950
|
+
const o = e.resources.length, i = e.random ? Math.floor(Math.random() * o) : e.index;
|
|
951
|
+
let s;
|
|
952
|
+
if (e.random) {
|
|
953
|
+
let S = e.resources.slice(0);
|
|
954
|
+
for (s = []; S.length > 1; ) {
|
|
955
|
+
const L = Math.floor(Math.random() * S.length);
|
|
956
|
+
s.push(S[L]), S = S.slice(0, L).concat(S.slice(L + 1));
|
|
957
|
+
}
|
|
958
|
+
s = s.concat(S);
|
|
959
|
+
} else
|
|
960
|
+
s = e.resources.slice(i).concat(e.resources.slice(0, i));
|
|
961
|
+
const c = Date.now();
|
|
962
|
+
let u = "pending", f = 0, g, b = null, w = [], x = [];
|
|
963
|
+
typeof l == "function" && x.push(l);
|
|
964
|
+
function k() {
|
|
965
|
+
b && (clearTimeout(b), b = null);
|
|
966
|
+
}
|
|
967
|
+
function C() {
|
|
968
|
+
u === "pending" && (u = "aborted"), k(), w.forEach((S) => {
|
|
969
|
+
S.status === "pending" && (S.status = "aborted");
|
|
970
|
+
}), w = [];
|
|
971
|
+
}
|
|
972
|
+
function y(S, L) {
|
|
973
|
+
L && (x = []), typeof S == "function" && x.push(S);
|
|
974
|
+
}
|
|
975
|
+
function I() {
|
|
976
|
+
return {
|
|
977
|
+
startTime: c,
|
|
978
|
+
payload: t,
|
|
979
|
+
status: u,
|
|
980
|
+
queriesSent: f,
|
|
981
|
+
queriesPending: w.length,
|
|
982
|
+
subscribe: y,
|
|
983
|
+
abort: C
|
|
984
|
+
};
|
|
985
|
+
}
|
|
986
|
+
function T() {
|
|
987
|
+
u = "failed", x.forEach((S) => {
|
|
988
|
+
S(void 0, g);
|
|
989
|
+
});
|
|
990
|
+
}
|
|
991
|
+
function V() {
|
|
992
|
+
w.forEach((S) => {
|
|
993
|
+
S.status === "pending" && (S.status = "aborted");
|
|
994
|
+
}), w = [];
|
|
995
|
+
}
|
|
996
|
+
function Y(S, L, m) {
|
|
997
|
+
const d = L !== "success";
|
|
998
|
+
switch (w = w.filter((A) => A !== S), u) {
|
|
999
|
+
case "pending":
|
|
1000
|
+
break;
|
|
1001
|
+
case "failed":
|
|
1002
|
+
if (d || !e.dataAfterTimeout)
|
|
1003
|
+
return;
|
|
1004
|
+
break;
|
|
1005
|
+
default:
|
|
1006
|
+
return;
|
|
1007
|
+
}
|
|
1008
|
+
if (L === "abort") {
|
|
1009
|
+
g = m, T();
|
|
1010
|
+
return;
|
|
1011
|
+
}
|
|
1012
|
+
if (d) {
|
|
1013
|
+
g = m, w.length || (s.length ? B() : T());
|
|
1014
|
+
return;
|
|
1015
|
+
}
|
|
1016
|
+
if (k(), V(), !e.random) {
|
|
1017
|
+
const A = e.resources.indexOf(S.resource);
|
|
1018
|
+
A !== -1 && A !== e.index && (e.index = A);
|
|
1019
|
+
}
|
|
1020
|
+
u = "completed", x.forEach((A) => {
|
|
1021
|
+
A(m);
|
|
1022
|
+
});
|
|
1023
|
+
}
|
|
1024
|
+
function B() {
|
|
1025
|
+
if (u !== "pending")
|
|
1026
|
+
return;
|
|
1027
|
+
k();
|
|
1028
|
+
const S = s.shift();
|
|
1029
|
+
if (S === void 0) {
|
|
1030
|
+
if (w.length) {
|
|
1031
|
+
b = setTimeout(() => {
|
|
1032
|
+
k(), u === "pending" && (V(), T());
|
|
1033
|
+
}, e.timeout);
|
|
1034
|
+
return;
|
|
1035
|
+
}
|
|
1036
|
+
T();
|
|
1037
|
+
return;
|
|
1038
|
+
}
|
|
1039
|
+
const L = {
|
|
1040
|
+
status: "pending",
|
|
1041
|
+
resource: S,
|
|
1042
|
+
callback: (m, d) => {
|
|
1043
|
+
Y(L, m, d);
|
|
1044
|
+
}
|
|
1045
|
+
};
|
|
1046
|
+
w.push(L), f++, b = setTimeout(B, e.rotate), n(S, t, L.callback);
|
|
1047
|
+
}
|
|
1048
|
+
return setTimeout(B), I;
|
|
1049
|
+
}
|
|
1050
|
+
function Lt(e) {
|
|
1051
|
+
const t = {
|
|
1052
|
+
...un,
|
|
1053
|
+
...e
|
|
1054
|
+
};
|
|
1055
|
+
let n = [];
|
|
1056
|
+
function l() {
|
|
1057
|
+
n = n.filter((c) => c().status === "pending");
|
|
1058
|
+
}
|
|
1059
|
+
function o(c, u, f) {
|
|
1060
|
+
const g = fn(
|
|
1061
|
+
t,
|
|
1062
|
+
c,
|
|
1063
|
+
u,
|
|
1064
|
+
(b, w) => {
|
|
1065
|
+
l(), f && f(b, w);
|
|
1066
|
+
}
|
|
1067
|
+
);
|
|
1068
|
+
return n.push(g), g;
|
|
1069
|
+
}
|
|
1070
|
+
function i(c) {
|
|
1071
|
+
return n.find((u) => c(u)) || null;
|
|
1072
|
+
}
|
|
1073
|
+
return {
|
|
1074
|
+
query: o,
|
|
1075
|
+
find: i,
|
|
1076
|
+
setIndex: (c) => {
|
|
1077
|
+
t.index = c;
|
|
1078
|
+
},
|
|
1079
|
+
getIndex: () => t.index,
|
|
1080
|
+
cleanup: l
|
|
1081
|
+
};
|
|
1082
|
+
}
|
|
1083
|
+
function st() {
|
|
1084
|
+
}
|
|
1085
|
+
const Le = /* @__PURE__ */ Object.create(null);
|
|
1086
|
+
function dn(e) {
|
|
1087
|
+
if (!Le[e]) {
|
|
1088
|
+
const t = ze(e);
|
|
1089
|
+
if (!t)
|
|
1090
|
+
return;
|
|
1091
|
+
const n = Lt(t), l = {
|
|
1092
|
+
config: t,
|
|
1093
|
+
redundancy: n
|
|
1094
|
+
};
|
|
1095
|
+
Le[e] = l;
|
|
1096
|
+
}
|
|
1097
|
+
return Le[e];
|
|
1098
|
+
}
|
|
1099
|
+
function pn(e, t, n) {
|
|
1100
|
+
let l, o;
|
|
1101
|
+
if (typeof e == "string") {
|
|
1102
|
+
const i = Pe(e);
|
|
1103
|
+
if (!i)
|
|
1104
|
+
return n(void 0, 424), st;
|
|
1105
|
+
o = i.send;
|
|
1106
|
+
const s = dn(e);
|
|
1107
|
+
s && (l = s.redundancy);
|
|
1108
|
+
} else {
|
|
1109
|
+
const i = Ne(e);
|
|
1110
|
+
if (i) {
|
|
1111
|
+
l = Lt(i);
|
|
1112
|
+
const s = e.resources ? e.resources[0] : "", c = Pe(s);
|
|
1113
|
+
c && (o = c.send);
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
return !l || !o ? (n(void 0, 424), st) : l.query(t, o, n)().abort;
|
|
1117
|
+
}
|
|
1118
|
+
const ct = "iconify2", ee = "iconify", Et = ee + "-count", at = ee + "-version", Ft = 36e5, hn = 168;
|
|
1119
|
+
function Me(e, t) {
|
|
1120
|
+
try {
|
|
1121
|
+
return e.getItem(t);
|
|
1122
|
+
} catch {
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
function We(e, t, n) {
|
|
1126
|
+
try {
|
|
1127
|
+
return e.setItem(t, n), !0;
|
|
1128
|
+
} catch {
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
function ut(e, t) {
|
|
1132
|
+
try {
|
|
1133
|
+
e.removeItem(t);
|
|
1134
|
+
} catch {
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
function Ge(e, t) {
|
|
1138
|
+
return We(e, Et, t.toString());
|
|
1139
|
+
}
|
|
1140
|
+
function je(e) {
|
|
1141
|
+
return parseInt(Me(e, Et)) || 0;
|
|
1142
|
+
}
|
|
1143
|
+
const ve = {
|
|
1144
|
+
local: !0,
|
|
1145
|
+
session: !0
|
|
1146
|
+
}, Ot = {
|
|
1147
|
+
local: /* @__PURE__ */ new Set(),
|
|
1148
|
+
session: /* @__PURE__ */ new Set()
|
|
1149
|
+
};
|
|
1150
|
+
let Re = !1;
|
|
1151
|
+
function gn(e) {
|
|
1152
|
+
Re = e;
|
|
1153
|
+
}
|
|
1154
|
+
let ae = typeof window > "u" ? {} : window;
|
|
1155
|
+
function Pt(e) {
|
|
1156
|
+
const t = e + "Storage";
|
|
1157
|
+
try {
|
|
1158
|
+
if (ae && ae[t] && typeof ae[t].length == "number")
|
|
1159
|
+
return ae[t];
|
|
1160
|
+
} catch {
|
|
1161
|
+
}
|
|
1162
|
+
ve[e] = !1;
|
|
1163
|
+
}
|
|
1164
|
+
function Mt(e, t) {
|
|
1165
|
+
const n = Pt(e);
|
|
1166
|
+
if (!n)
|
|
1167
|
+
return;
|
|
1168
|
+
const l = Me(n, at);
|
|
1169
|
+
if (l !== ct) {
|
|
1170
|
+
if (l) {
|
|
1171
|
+
const c = je(n);
|
|
1172
|
+
for (let u = 0; u < c; u++)
|
|
1173
|
+
ut(n, ee + u.toString());
|
|
1174
|
+
}
|
|
1175
|
+
We(n, at, ct), Ge(n, 0);
|
|
1176
|
+
return;
|
|
1177
|
+
}
|
|
1178
|
+
const o = Math.floor(Date.now() / Ft) - hn, i = (c) => {
|
|
1179
|
+
const u = ee + c.toString(), f = Me(n, u);
|
|
1180
|
+
if (typeof f == "string") {
|
|
1181
|
+
try {
|
|
1182
|
+
const g = JSON.parse(f);
|
|
1183
|
+
if (typeof g == "object" && typeof g.cached == "number" && g.cached > o && typeof g.provider == "string" && typeof g.data == "object" && typeof g.data.prefix == "string" && t(g, c))
|
|
1184
|
+
return !0;
|
|
1185
|
+
} catch {
|
|
1186
|
+
}
|
|
1187
|
+
ut(n, u);
|
|
1188
|
+
}
|
|
1189
|
+
};
|
|
1190
|
+
let s = je(n);
|
|
1191
|
+
for (let c = s - 1; c >= 0; c--)
|
|
1192
|
+
i(c) || (c === s - 1 ? (s--, Ge(n, s)) : Ot[e].add(c));
|
|
1193
|
+
}
|
|
1194
|
+
function Gt() {
|
|
1195
|
+
if (!Re) {
|
|
1196
|
+
gn(!0);
|
|
1197
|
+
for (const e in ve)
|
|
1198
|
+
Mt(e, (t) => {
|
|
1199
|
+
const n = t.data, l = t.provider, o = n.prefix, i = Q(
|
|
1200
|
+
l,
|
|
1201
|
+
o
|
|
1202
|
+
);
|
|
1203
|
+
if (!Be(i, n).length)
|
|
1204
|
+
return !1;
|
|
1205
|
+
const s = n.lastModified || -1;
|
|
1206
|
+
return i.lastModifiedCached = i.lastModifiedCached ? Math.min(i.lastModifiedCached, s) : s, !0;
|
|
1207
|
+
});
|
|
1208
|
+
}
|
|
1209
|
+
}
|
|
1210
|
+
function mn(e, t) {
|
|
1211
|
+
const n = e.lastModifiedCached;
|
|
1212
|
+
if (n && n >= t)
|
|
1213
|
+
return n === t;
|
|
1214
|
+
if (e.lastModifiedCached = t, n)
|
|
1215
|
+
for (const l in ve)
|
|
1216
|
+
Mt(l, (o) => {
|
|
1217
|
+
const i = o.data;
|
|
1218
|
+
return o.provider !== e.provider || i.prefix !== e.prefix || i.lastModified === t;
|
|
1219
|
+
});
|
|
1220
|
+
return !0;
|
|
1221
|
+
}
|
|
1222
|
+
function vn(e, t) {
|
|
1223
|
+
Re || Gt();
|
|
1224
|
+
function n(l) {
|
|
1225
|
+
let o;
|
|
1226
|
+
if (!ve[l] || !(o = Pt(l)))
|
|
1227
|
+
return;
|
|
1228
|
+
const i = Ot[l];
|
|
1229
|
+
let s;
|
|
1230
|
+
if (i.size)
|
|
1231
|
+
i.delete(s = Array.from(i).shift());
|
|
1232
|
+
else if (s = je(o), !Ge(o, s + 1))
|
|
1233
|
+
return;
|
|
1234
|
+
const c = {
|
|
1235
|
+
cached: Math.floor(Date.now() / Ft),
|
|
1236
|
+
provider: e.provider,
|
|
1237
|
+
data: t
|
|
1238
|
+
};
|
|
1239
|
+
return We(
|
|
1240
|
+
o,
|
|
1241
|
+
ee + s.toString(),
|
|
1242
|
+
JSON.stringify(c)
|
|
1243
|
+
);
|
|
1244
|
+
}
|
|
1245
|
+
t.lastModified && !mn(e, t.lastModified) || !Object.keys(t.icons).length || (t.not_found && (t = Object.assign({}, t), delete t.not_found), n("local") || n("session"));
|
|
1246
|
+
}
|
|
1247
|
+
function ft() {
|
|
1248
|
+
}
|
|
1249
|
+
function yn(e) {
|
|
1250
|
+
e.iconsLoaderFlag || (e.iconsLoaderFlag = !0, setTimeout(() => {
|
|
1251
|
+
e.iconsLoaderFlag = !1, ln(e);
|
|
1252
|
+
}));
|
|
1253
|
+
}
|
|
1254
|
+
function bn(e, t) {
|
|
1255
|
+
e.iconsToLoad ? e.iconsToLoad = e.iconsToLoad.concat(t).sort() : e.iconsToLoad = t, e.iconsQueueFlag || (e.iconsQueueFlag = !0, setTimeout(() => {
|
|
1256
|
+
e.iconsQueueFlag = !1;
|
|
1257
|
+
const { provider: n, prefix: l } = e, o = e.iconsToLoad;
|
|
1258
|
+
delete e.iconsToLoad;
|
|
1259
|
+
let i;
|
|
1260
|
+
if (!o || !(i = Pe(n)))
|
|
1261
|
+
return;
|
|
1262
|
+
i.prepare(n, l, o).forEach((c) => {
|
|
1263
|
+
pn(n, c, (u, f) => {
|
|
1264
|
+
if (typeof u != "object") {
|
|
1265
|
+
if (f !== 404)
|
|
1266
|
+
return;
|
|
1267
|
+
c.icons.forEach((g) => {
|
|
1268
|
+
e.missing.add(g);
|
|
1269
|
+
});
|
|
1270
|
+
} else
|
|
1271
|
+
try {
|
|
1272
|
+
const g = Be(
|
|
1273
|
+
e,
|
|
1274
|
+
u
|
|
1275
|
+
);
|
|
1276
|
+
if (!g.length)
|
|
1277
|
+
return;
|
|
1278
|
+
const b = e.pendingIcons;
|
|
1279
|
+
b && g.forEach((w) => {
|
|
1280
|
+
b.delete(w);
|
|
1281
|
+
}), vn(e, u);
|
|
1282
|
+
} catch (g) {
|
|
1283
|
+
console.error(g);
|
|
1284
|
+
}
|
|
1285
|
+
yn(e);
|
|
1286
|
+
});
|
|
1287
|
+
});
|
|
1288
|
+
}));
|
|
1289
|
+
}
|
|
1290
|
+
const Sn = (e, t) => {
|
|
1291
|
+
const n = an(e, !0, Tt()), l = rn(n);
|
|
1292
|
+
if (!l.pending.length) {
|
|
1293
|
+
let u = !0;
|
|
1294
|
+
return t && setTimeout(() => {
|
|
1295
|
+
u && t(
|
|
1296
|
+
l.loaded,
|
|
1297
|
+
l.missing,
|
|
1298
|
+
l.pending,
|
|
1299
|
+
ft
|
|
1300
|
+
);
|
|
1301
|
+
}), () => {
|
|
1302
|
+
u = !1;
|
|
1303
|
+
};
|
|
1304
|
+
}
|
|
1305
|
+
const o = /* @__PURE__ */ Object.create(null), i = [];
|
|
1306
|
+
let s, c;
|
|
1307
|
+
return l.pending.forEach((u) => {
|
|
1308
|
+
const { provider: f, prefix: g } = u;
|
|
1309
|
+
if (g === c && f === s)
|
|
1310
|
+
return;
|
|
1311
|
+
s = f, c = g, i.push(Q(f, g));
|
|
1312
|
+
const b = o[f] || (o[f] = /* @__PURE__ */ Object.create(null));
|
|
1313
|
+
b[g] || (b[g] = []);
|
|
1314
|
+
}), l.pending.forEach((u) => {
|
|
1315
|
+
const { provider: f, prefix: g, name: b } = u, w = Q(f, g), x = w.pendingIcons || (w.pendingIcons = /* @__PURE__ */ new Set());
|
|
1316
|
+
x.has(b) || (x.add(b), o[f][g].push(b));
|
|
1317
|
+
}), i.forEach((u) => {
|
|
1318
|
+
const { provider: f, prefix: g } = u;
|
|
1319
|
+
o[f][g].length && bn(u, o[f][g]);
|
|
1320
|
+
}), t ? cn(t, l, i) : ft;
|
|
1321
|
+
};
|
|
1322
|
+
function wn(e, t) {
|
|
1323
|
+
const n = {
|
|
1324
|
+
...e
|
|
1325
|
+
};
|
|
1326
|
+
for (const l in t) {
|
|
1327
|
+
const o = t[l], i = typeof o;
|
|
1328
|
+
l in Ct ? (o === null || o && (i === "string" || i === "number")) && (n[l] = o) : i === typeof n[l] && (n[l] = l === "rotate" ? o % 4 : o);
|
|
1329
|
+
}
|
|
1330
|
+
return n;
|
|
1331
|
+
}
|
|
1332
|
+
const kn = /[\s,]+/;
|
|
1333
|
+
function xn(e, t) {
|
|
1334
|
+
t.split(kn).forEach((n) => {
|
|
1335
|
+
switch (n.trim()) {
|
|
1336
|
+
case "horizontal":
|
|
1337
|
+
e.hFlip = !0;
|
|
1338
|
+
break;
|
|
1339
|
+
case "vertical":
|
|
1340
|
+
e.vFlip = !0;
|
|
1341
|
+
break;
|
|
1342
|
+
}
|
|
1343
|
+
});
|
|
1344
|
+
}
|
|
1345
|
+
function Tn(e, t = 0) {
|
|
1346
|
+
const n = e.replace(/^-?[0-9.]*/, "");
|
|
1347
|
+
function l(o) {
|
|
1348
|
+
for (; o < 0; )
|
|
1349
|
+
o += 4;
|
|
1350
|
+
return o % 4;
|
|
1351
|
+
}
|
|
1352
|
+
if (n === "") {
|
|
1353
|
+
const o = parseInt(e);
|
|
1354
|
+
return isNaN(o) ? 0 : l(o);
|
|
1355
|
+
} else if (n !== e) {
|
|
1356
|
+
let o = 0;
|
|
1357
|
+
switch (n) {
|
|
1358
|
+
case "%":
|
|
1359
|
+
o = 25;
|
|
1360
|
+
break;
|
|
1361
|
+
case "deg":
|
|
1362
|
+
o = 90;
|
|
1363
|
+
}
|
|
1364
|
+
if (o) {
|
|
1365
|
+
let i = parseFloat(e.slice(0, e.length - n.length));
|
|
1366
|
+
return isNaN(i) ? 0 : (i = i / o, i % 1 === 0 ? l(i) : 0);
|
|
1367
|
+
}
|
|
1368
|
+
}
|
|
1369
|
+
return t;
|
|
1370
|
+
}
|
|
1371
|
+
function Cn(e, t) {
|
|
1372
|
+
let n = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
|
|
1373
|
+
for (const l in t)
|
|
1374
|
+
n += " " + l + '="' + t[l] + '"';
|
|
1375
|
+
return '<svg xmlns="http://www.w3.org/2000/svg"' + n + ">" + e + "</svg>";
|
|
1376
|
+
}
|
|
1377
|
+
function In(e) {
|
|
1378
|
+
return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
|
|
1379
|
+
}
|
|
1380
|
+
function An(e) {
|
|
1381
|
+
return 'url("data:image/svg+xml,' + In(e) + '")';
|
|
1382
|
+
}
|
|
1383
|
+
const dt = {
|
|
1384
|
+
...It,
|
|
1385
|
+
inline: !1
|
|
1386
|
+
}, Ln = {
|
|
1387
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1388
|
+
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
1389
|
+
"aria-hidden": !0,
|
|
1390
|
+
role: "img"
|
|
1391
|
+
}, En = {
|
|
1392
|
+
display: "inline-block"
|
|
1393
|
+
}, _e = {
|
|
1394
|
+
backgroundColor: "currentColor"
|
|
1395
|
+
}, jt = {
|
|
1396
|
+
backgroundColor: "transparent"
|
|
1397
|
+
}, pt = {
|
|
1398
|
+
Image: "var(--svg)",
|
|
1399
|
+
Repeat: "no-repeat",
|
|
1400
|
+
Size: "100% 100%"
|
|
1401
|
+
}, ht = {
|
|
1402
|
+
webkitMask: _e,
|
|
1403
|
+
mask: _e,
|
|
1404
|
+
background: jt
|
|
1405
|
+
};
|
|
1406
|
+
for (const e in ht) {
|
|
1407
|
+
const t = ht[e];
|
|
1408
|
+
for (const n in pt)
|
|
1409
|
+
t[e + n] = pt[n];
|
|
1410
|
+
}
|
|
1411
|
+
const de = {};
|
|
1412
|
+
["horizontal", "vertical"].forEach((e) => {
|
|
1413
|
+
const t = e.slice(0, 1) + "Flip";
|
|
1414
|
+
de[e + "-flip"] = t, de[e.slice(0, 1) + "-flip"] = t, de[e + "Flip"] = t;
|
|
1415
|
+
});
|
|
1416
|
+
function gt(e) {
|
|
1417
|
+
return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
|
|
1418
|
+
}
|
|
1419
|
+
const mt = (e, t) => {
|
|
1420
|
+
const n = wn(dt, t), l = { ...Ln }, o = t.mode || "svg", i = {}, s = t.style, c = typeof s == "object" && !(s instanceof Array) ? s : {};
|
|
1421
|
+
for (let C in t) {
|
|
1422
|
+
const y = t[C];
|
|
1423
|
+
if (y !== void 0)
|
|
1424
|
+
switch (C) {
|
|
1425
|
+
case "icon":
|
|
1426
|
+
case "style":
|
|
1427
|
+
case "onLoad":
|
|
1428
|
+
case "mode":
|
|
1429
|
+
break;
|
|
1430
|
+
case "inline":
|
|
1431
|
+
case "hFlip":
|
|
1432
|
+
case "vFlip":
|
|
1433
|
+
n[C] = y === !0 || y === "true" || y === 1;
|
|
1434
|
+
break;
|
|
1435
|
+
case "flip":
|
|
1436
|
+
typeof y == "string" && xn(n, y);
|
|
1437
|
+
break;
|
|
1438
|
+
case "color":
|
|
1439
|
+
i.color = y;
|
|
1440
|
+
break;
|
|
1441
|
+
case "rotate":
|
|
1442
|
+
typeof y == "string" ? n[C] = Tn(y) : typeof y == "number" && (n[C] = y);
|
|
1443
|
+
break;
|
|
1444
|
+
case "ariaHidden":
|
|
1445
|
+
case "aria-hidden":
|
|
1446
|
+
y !== !0 && y !== "true" && delete l["aria-hidden"];
|
|
1447
|
+
break;
|
|
1448
|
+
default: {
|
|
1449
|
+
const I = de[C];
|
|
1450
|
+
I ? (y === !0 || y === "true" || y === 1) && (n[I] = !0) : dt[C] === void 0 && (l[C] = y);
|
|
1451
|
+
}
|
|
1452
|
+
}
|
|
1453
|
+
}
|
|
1454
|
+
const u = Vo(e, n), f = u.attributes;
|
|
1455
|
+
if (n.inline && (i.verticalAlign = "-0.125em"), o === "svg") {
|
|
1456
|
+
l.style = {
|
|
1457
|
+
...i,
|
|
1458
|
+
...c
|
|
1459
|
+
}, Object.assign(l, f);
|
|
1460
|
+
let C = 0, y = t.id;
|
|
1461
|
+
return typeof y == "string" && (y = y.replace(/-/g, "_")), l.innerHTML = Ho(u.body, y ? () => y + "ID" + C++ : "iconifyVue"), tt("svg", l);
|
|
1462
|
+
}
|
|
1463
|
+
const { body: g, width: b, height: w } = e, x = o === "mask" || (o === "bg" ? !1 : g.indexOf("currentColor") !== -1), k = Cn(g, {
|
|
1464
|
+
...f,
|
|
1465
|
+
width: b + "",
|
|
1466
|
+
height: w + ""
|
|
1467
|
+
});
|
|
1468
|
+
return l.style = {
|
|
1469
|
+
...i,
|
|
1470
|
+
"--svg": An(k),
|
|
1471
|
+
width: gt(f.width),
|
|
1472
|
+
height: gt(f.height),
|
|
1473
|
+
...En,
|
|
1474
|
+
...x ? _e : jt,
|
|
1475
|
+
...c
|
|
1476
|
+
}, tt("span", l);
|
|
1477
|
+
};
|
|
1478
|
+
Tt(!0);
|
|
1479
|
+
qo("", nn);
|
|
1480
|
+
if (typeof document < "u" && typeof window < "u") {
|
|
1481
|
+
Gt();
|
|
1482
|
+
const e = window;
|
|
1483
|
+
if (e.IconifyPreload !== void 0) {
|
|
1484
|
+
const t = e.IconifyPreload, n = "Invalid IconifyPreload syntax.";
|
|
1485
|
+
typeof t == "object" && t !== null && (t instanceof Array ? t : [t]).forEach((l) => {
|
|
1486
|
+
try {
|
|
1487
|
+
(typeof l != "object" || l === null || l instanceof Array || typeof l.icons != "object" || typeof l.prefix != "string" || !Wo(l)) && console.error(n);
|
|
1488
|
+
} catch {
|
|
1489
|
+
console.error(n);
|
|
1490
|
+
}
|
|
1491
|
+
});
|
|
1492
|
+
}
|
|
1493
|
+
if (e.IconifyProviders !== void 0) {
|
|
1494
|
+
const t = e.IconifyProviders;
|
|
1495
|
+
if (typeof t == "object" && t !== null)
|
|
1496
|
+
for (let n in t) {
|
|
1497
|
+
const l = "IconifyProviders[" + n + "] is invalid.";
|
|
1498
|
+
try {
|
|
1499
|
+
const o = t[n];
|
|
1500
|
+
if (typeof o != "object" || !o || o.resources === void 0)
|
|
1501
|
+
continue;
|
|
1502
|
+
Jo(n, o) || console.error(l);
|
|
1503
|
+
} catch {
|
|
1504
|
+
console.error(l);
|
|
1505
|
+
}
|
|
1506
|
+
}
|
|
1507
|
+
}
|
|
1508
|
+
}
|
|
1509
|
+
const Fn = {
|
|
1510
|
+
...me,
|
|
1511
|
+
body: ""
|
|
1512
|
+
}, On = te({
|
|
1513
|
+
inheritAttrs: !1,
|
|
1514
|
+
data() {
|
|
1515
|
+
return {
|
|
1516
|
+
iconMounted: !1,
|
|
1517
|
+
counter: 0
|
|
1518
|
+
};
|
|
1519
|
+
},
|
|
1520
|
+
mounted() {
|
|
1521
|
+
this._name = "", this._loadingIcon = null, this.iconMounted = !0;
|
|
1522
|
+
},
|
|
1523
|
+
unmounted() {
|
|
1524
|
+
this.abortLoading();
|
|
1525
|
+
},
|
|
1526
|
+
methods: {
|
|
1527
|
+
abortLoading() {
|
|
1528
|
+
this._loadingIcon && (this._loadingIcon.abort(), this._loadingIcon = null);
|
|
1529
|
+
},
|
|
1530
|
+
getIcon(e, t) {
|
|
1531
|
+
if (typeof e == "object" && e !== null && typeof e.body == "string")
|
|
1532
|
+
return this._name = "", this.abortLoading(), {
|
|
1533
|
+
data: e
|
|
1534
|
+
};
|
|
1535
|
+
let n;
|
|
1536
|
+
if (typeof e != "string" || (n = ge(e, !1, !0)) === null)
|
|
1537
|
+
return this.abortLoading(), null;
|
|
1538
|
+
const l = Do(n);
|
|
1539
|
+
if (!l)
|
|
1540
|
+
return (!this._loadingIcon || this._loadingIcon.name !== e) && (this.abortLoading(), this._name = "", l !== null && (this._loadingIcon = {
|
|
1541
|
+
name: e,
|
|
1542
|
+
abort: Sn([n], () => {
|
|
1543
|
+
this.counter++;
|
|
1544
|
+
})
|
|
1545
|
+
})), null;
|
|
1546
|
+
this.abortLoading(), this._name !== e && (this._name = e, t && t(e));
|
|
1547
|
+
const o = ["iconify"];
|
|
1548
|
+
return n.prefix !== "" && o.push("iconify--" + n.prefix), n.provider !== "" && o.push("iconify--" + n.provider), { data: l, classes: o };
|
|
1549
|
+
}
|
|
1550
|
+
},
|
|
1551
|
+
render() {
|
|
1552
|
+
this.counter;
|
|
1553
|
+
const e = this.$attrs, t = this.iconMounted ? this.getIcon(e.icon, e.onLoad) : null;
|
|
1554
|
+
if (!t)
|
|
1555
|
+
return mt(Fn, e);
|
|
1556
|
+
let n = e;
|
|
1557
|
+
return t.classes && (n = {
|
|
1558
|
+
...e,
|
|
1559
|
+
class: (typeof e.class == "string" ? e.class + " " : "") + t.classes.join(" ")
|
|
1560
|
+
}), mt({
|
|
1561
|
+
...me,
|
|
1562
|
+
...t.data
|
|
1563
|
+
}, n);
|
|
1564
|
+
}
|
|
1565
|
+
}), vt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1566
|
+
__proto__: null,
|
|
1567
|
+
BaseAlert: po,
|
|
1568
|
+
BaseAutocomplete: Io,
|
|
1569
|
+
BaseButton: Po,
|
|
1570
|
+
Icon: On
|
|
1571
|
+
}, Symbol.toStringTag, { value: "Module" })), Pn = {
|
|
1572
|
+
and: "and",
|
|
1573
|
+
apply_filters: "Apply filters",
|
|
1574
|
+
autocomplete_placeholder: "Type to start your search",
|
|
1575
|
+
cancel: "Cancel",
|
|
1576
|
+
clear: "Clear",
|
|
1577
|
+
click_or_select_date: "Click or select date",
|
|
1578
|
+
click_to_copy: "Click to copy",
|
|
1579
|
+
columns: "Columns",
|
|
1580
|
+
confirm: "Confirm",
|
|
1581
|
+
copied: "Copied",
|
|
1582
|
+
create_new: "Create new",
|
|
1583
|
+
day: "Day",
|
|
1584
|
+
delete_record: "Delete the record",
|
|
1585
|
+
delete_record_description: "Are you sure to delete this record? This action is irreversible.",
|
|
1586
|
+
deselect_all: "Deselect all",
|
|
1587
|
+
drop_or_click_to_upload: "Drop or click to upload",
|
|
1588
|
+
error: "Error",
|
|
1589
|
+
file_must_be_of_type: "The file must be of type",
|
|
1590
|
+
filters: "Filters",
|
|
1591
|
+
min_x_characters: "{x} characters minimum",
|
|
1592
|
+
month: "Month",
|
|
1593
|
+
next: "Next",
|
|
1594
|
+
next_month: "Next month",
|
|
1595
|
+
nothing_found: "Nothing found",
|
|
1596
|
+
or: "or",
|
|
1597
|
+
pagination_detail: "{page} records of {total}",
|
|
1598
|
+
previous: "Previous",
|
|
1599
|
+
previous_month: "Previous month",
|
|
1600
|
+
read_more: "Read more",
|
|
1601
|
+
remove: "Remove",
|
|
1602
|
+
remove_file: "Remove file?",
|
|
1603
|
+
remove_file_description: "Are you sure you want to remove the file? This action is irreversible.",
|
|
1604
|
+
select_an_item: "Select an item",
|
|
1605
|
+
select_an_option: "Select an option",
|
|
1606
|
+
success: "Success",
|
|
1607
|
+
the_file_size_must_not_exceed_x: "The file size must not exceed {x}",
|
|
1608
|
+
the_file_type_is_invalid: "The file type is invalid",
|
|
1609
|
+
type_to_start_your_search: "Type to start your search",
|
|
1610
|
+
up_to_x: "Up to {x}",
|
|
1611
|
+
whoops: "Whoops",
|
|
1612
|
+
x_rows_selected: "1 item selected | {count} items selected",
|
|
1613
|
+
year: "Year",
|
|
1614
|
+
yes_delete: "Yes, delete",
|
|
1615
|
+
you_can_upload_up_to_n_files: "You can upload one file at most|You can upload up to {count} files",
|
|
1616
|
+
you_cannot_select_more_than_x_items: "You can't select more than one item|You can't select more than {x} items",
|
|
1617
|
+
units: {
|
|
1618
|
+
b: "B",
|
|
1619
|
+
gb: "GB",
|
|
1620
|
+
kb: "kB",
|
|
1621
|
+
mb: "MB",
|
|
1622
|
+
tb: "TB"
|
|
1623
|
+
}
|
|
1624
|
+
}, Mn = {
|
|
1625
|
+
sui: Pn
|
|
1626
|
+
}, Gn = {
|
|
1627
|
+
and: "et",
|
|
1628
|
+
apply_filters: "Appliquer les filtres",
|
|
1629
|
+
autocomplete_placeholder: "Tapez pour lancer votre recherche",
|
|
1630
|
+
cancel: "Annuler",
|
|
1631
|
+
clear: "Effacer",
|
|
1632
|
+
click_or_select_date: "Cliquez ou s\xE9lectionnez la date",
|
|
1633
|
+
click_to_copy: "Cliquez pour copier",
|
|
1634
|
+
columns: "Colonnes",
|
|
1635
|
+
confirm: "Confirmer",
|
|
1636
|
+
copied: "Copi\xE9",
|
|
1637
|
+
create_new: "Cr\xE9er un nouveau",
|
|
1638
|
+
day: "Jour",
|
|
1639
|
+
delete_record: "Supprimer l'item",
|
|
1640
|
+
delete_record_description: `Voulez-vous vraiment supprimer cet item\xA0?
|
|
1641
|
+
Cette action est irr\xE9versible.`,
|
|
1642
|
+
deselect_all: "Tout d\xE9selectionner",
|
|
1643
|
+
drop_or_click_to_upload: "D\xE9posez ou cliquez pour t\xE9l\xE9charger",
|
|
1644
|
+
error: "Erreur",
|
|
1645
|
+
file_must_be_of_type: "Le fichier doit \xEAtre de type",
|
|
1646
|
+
filters: "Filtres",
|
|
1647
|
+
min_x_characters: "{x} caract\xE8res minimum",
|
|
1648
|
+
month: "Mois",
|
|
1649
|
+
next: "Suivant",
|
|
1650
|
+
next_month: "Mois prochain",
|
|
1651
|
+
nothing_found: "Rien n'a \xE9t\xE9 trouv\xE9",
|
|
1652
|
+
or: "ou",
|
|
1653
|
+
pagination_detail: "{page} items de {total}",
|
|
1654
|
+
previous: "Pr\xE9c\xE9dent",
|
|
1655
|
+
previous_month: "Mois pr\xE9c\xE9dent",
|
|
1656
|
+
read_more: "Lire la suite",
|
|
1657
|
+
remove: "Retirer",
|
|
1658
|
+
remove_file: "Retirer le fichier?",
|
|
1659
|
+
remove_file_description: `Voulez-vous vraiment supprimer le fichier\xA0?
|
|
1660
|
+
Cette action est irr\xE9versible.`,
|
|
1661
|
+
select_an_item: "S\xE9lectionner un \xE9l\xE9ment",
|
|
1662
|
+
select_an_option: "S\xE9lectionner une option",
|
|
1663
|
+
success: "Succ\xE8s",
|
|
1664
|
+
the_file_size_must_not_exceed_x: "La taille du fichier ne doit pas d\xE9passer {x}",
|
|
1665
|
+
the_file_type_is_invalid: "Le type de fichier n'est pas valide",
|
|
1666
|
+
type_to_start_your_search: "Tapez pour lancer votre recherche",
|
|
1667
|
+
up_to_x: "Jusqu'\xE0 {x}",
|
|
1668
|
+
whoops: "Oups",
|
|
1669
|
+
x_rows_selected: `1 item s\xE9lectionn\xE9 |
|
|
1670
|
+
{count} items s\xE9lectionn\xE9s`,
|
|
1671
|
+
year: "An",
|
|
1672
|
+
yes_delete: "Oui, supprimer",
|
|
1673
|
+
you_can_upload_up_to_n_files: "Vous pouvez t\xE9l\xE9charger un fichier au maximum|Vous pouvez t\xE9l\xE9charger jusqu'\xE0 {count}\xA0fichiers",
|
|
1674
|
+
you_cannot_select_more_than_x_items: "Vous ne pouvez pas s\xE9lectionner plus de un \xE9l\xE9ment|Vous ne pouvez pas s\xE9lectionner plus de {x} \xE9l\xE9ments",
|
|
1675
|
+
units: {
|
|
1676
|
+
b: "o",
|
|
1677
|
+
gb: "Go",
|
|
1678
|
+
kb: "Ko",
|
|
1679
|
+
mb: "Mo",
|
|
1680
|
+
tb: "To"
|
|
1681
|
+
}
|
|
1682
|
+
}, jn = {
|
|
1683
|
+
sui: Gn
|
|
1684
|
+
};
|
|
1685
|
+
const _n = 100, Yn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1686
|
+
__proto__: null,
|
|
1687
|
+
MAGIC_NUM: _n
|
|
1688
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
1689
|
+
function Kn(e, t) {
|
|
1690
|
+
let n = "";
|
|
1691
|
+
t = t || j.i18n.global.t("sui.and");
|
|
1692
|
+
for (let l = 0; l < e.length; l++) {
|
|
1693
|
+
const o = e[l];
|
|
1694
|
+
n += o, l < e.length - 2 ? n += ", " : l == e.length - 2 && (n += " " + t + " ");
|
|
1695
|
+
}
|
|
1696
|
+
return n;
|
|
1697
|
+
}
|
|
1698
|
+
function Un(e) {
|
|
1699
|
+
const t = Math.floor(Math.log(e) / Math.log(1024)), n = [
|
|
1700
|
+
j.i18n.global.t("sui.units.b"),
|
|
1701
|
+
j.i18n.global.t("sui.units.kb"),
|
|
1702
|
+
j.i18n.global.t("sui.units.mb"),
|
|
1703
|
+
j.i18n.global.t("sui.units.gb"),
|
|
1704
|
+
j.i18n.global.t("sui.units.tb")
|
|
1705
|
+
];
|
|
1706
|
+
return +(e / Math.pow(1024, t)).toFixed(2) * 1 + " " + n[t];
|
|
1707
|
+
}
|
|
1708
|
+
var Bn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, he = { exports: {} };
|
|
1709
|
+
(function(e, t) {
|
|
1710
|
+
(function(l, o) {
|
|
1711
|
+
e.exports = o();
|
|
1712
|
+
})(Bn, function() {
|
|
1713
|
+
return function(n) {
|
|
1714
|
+
var l = {};
|
|
1715
|
+
function o(i) {
|
|
1716
|
+
if (l[i])
|
|
1717
|
+
return l[i].exports;
|
|
1718
|
+
var s = l[i] = {
|
|
1719
|
+
i,
|
|
1720
|
+
l: !1,
|
|
1721
|
+
exports: {}
|
|
1722
|
+
};
|
|
1723
|
+
return n[i].call(s.exports, s, s.exports, o), s.l = !0, s.exports;
|
|
1724
|
+
}
|
|
1725
|
+
return o.m = n, o.c = l, o.d = function(i, s, c) {
|
|
1726
|
+
o.o(i, s) || Object.defineProperty(i, s, { enumerable: !0, get: c });
|
|
1727
|
+
}, o.r = function(i) {
|
|
1728
|
+
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(i, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(i, "__esModule", { value: !0 });
|
|
1729
|
+
}, o.t = function(i, s) {
|
|
1730
|
+
if (s & 1 && (i = o(i)), s & 8 || s & 4 && typeof i == "object" && i && i.__esModule)
|
|
1731
|
+
return i;
|
|
1732
|
+
var c = /* @__PURE__ */ Object.create(null);
|
|
1733
|
+
if (o.r(c), Object.defineProperty(c, "default", { enumerable: !0, value: i }), s & 2 && typeof i != "string")
|
|
1734
|
+
for (var u in i)
|
|
1735
|
+
o.d(c, u, function(f) {
|
|
1736
|
+
return i[f];
|
|
1737
|
+
}.bind(null, u));
|
|
1738
|
+
return c;
|
|
1739
|
+
}, o.n = function(i) {
|
|
1740
|
+
var s = i && i.__esModule ? function() {
|
|
1741
|
+
return i.default;
|
|
1742
|
+
} : function() {
|
|
1743
|
+
return i;
|
|
1744
|
+
};
|
|
1745
|
+
return o.d(s, "a", s), s;
|
|
1746
|
+
}, o.o = function(i, s) {
|
|
1747
|
+
return Object.prototype.hasOwnProperty.call(i, s);
|
|
1748
|
+
}, o.p = "", o(o.s = 0);
|
|
1749
|
+
}([
|
|
1750
|
+
function(n, l, o) {
|
|
1751
|
+
o.r(l);
|
|
1752
|
+
var i = function(r) {
|
|
1753
|
+
return Array.isArray(r) ? r : [r];
|
|
1754
|
+
}, s = function(r) {
|
|
1755
|
+
return r instanceof Node;
|
|
1756
|
+
}, c = function(r) {
|
|
1757
|
+
return r instanceof NodeList;
|
|
1758
|
+
}, u = function(r, a) {
|
|
1759
|
+
if (r && a) {
|
|
1760
|
+
r = c(r) ? r : [r];
|
|
1761
|
+
for (var h = 0; h < r.length && a(r[h], h, r.length) !== !0; h++)
|
|
1762
|
+
;
|
|
1763
|
+
}
|
|
1764
|
+
}, f = function(r) {
|
|
1765
|
+
return console.error("[scroll-lock] ".concat(r));
|
|
1766
|
+
}, g = function(r) {
|
|
1767
|
+
if (Array.isArray(r)) {
|
|
1768
|
+
var a = r.join(", ");
|
|
1769
|
+
return a;
|
|
1770
|
+
}
|
|
1771
|
+
}, b = function(r) {
|
|
1772
|
+
var a = [];
|
|
1773
|
+
return u(r, function(h) {
|
|
1774
|
+
return a.push(h);
|
|
1775
|
+
}), a;
|
|
1776
|
+
}, w = function(r, a) {
|
|
1777
|
+
var h = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, v = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : document;
|
|
1778
|
+
if (h && b(v.querySelectorAll(a)).indexOf(r) !== -1)
|
|
1779
|
+
return r;
|
|
1780
|
+
for (; (r = r.parentElement) && b(v.querySelectorAll(a)).indexOf(r) === -1; )
|
|
1781
|
+
;
|
|
1782
|
+
return r;
|
|
1783
|
+
}, x = function(r, a) {
|
|
1784
|
+
var h = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : document, v = b(h.querySelectorAll(a)).indexOf(r) !== -1;
|
|
1785
|
+
return v;
|
|
1786
|
+
}, k = function(r) {
|
|
1787
|
+
if (r) {
|
|
1788
|
+
var a = getComputedStyle(r), h = a.overflow === "hidden";
|
|
1789
|
+
return h;
|
|
1790
|
+
}
|
|
1791
|
+
}, C = function(r) {
|
|
1792
|
+
if (r) {
|
|
1793
|
+
if (k(r))
|
|
1794
|
+
return !0;
|
|
1795
|
+
var a = r.scrollTop;
|
|
1796
|
+
return a <= 0;
|
|
1797
|
+
}
|
|
1798
|
+
}, y = function(r) {
|
|
1799
|
+
if (r) {
|
|
1800
|
+
if (k(r))
|
|
1801
|
+
return !0;
|
|
1802
|
+
var a = r.scrollTop, h = r.scrollHeight, v = a + r.offsetHeight;
|
|
1803
|
+
return v >= h;
|
|
1804
|
+
}
|
|
1805
|
+
}, I = function(r) {
|
|
1806
|
+
if (r) {
|
|
1807
|
+
if (k(r))
|
|
1808
|
+
return !0;
|
|
1809
|
+
var a = r.scrollLeft;
|
|
1810
|
+
return a <= 0;
|
|
1811
|
+
}
|
|
1812
|
+
}, T = function(r) {
|
|
1813
|
+
if (r) {
|
|
1814
|
+
if (k(r))
|
|
1815
|
+
return !0;
|
|
1816
|
+
var a = r.scrollLeft, h = r.scrollWidth, v = a + r.offsetWidth;
|
|
1817
|
+
return v >= h;
|
|
1818
|
+
}
|
|
1819
|
+
}, V = function(r) {
|
|
1820
|
+
var a = 'textarea, [contenteditable="true"]';
|
|
1821
|
+
return x(r, a);
|
|
1822
|
+
}, Y = function(r) {
|
|
1823
|
+
var a = 'input[type="range"]';
|
|
1824
|
+
return x(r, a);
|
|
1825
|
+
};
|
|
1826
|
+
o.d(l, "disablePageScroll", function() {
|
|
1827
|
+
return A;
|
|
1828
|
+
}), o.d(l, "enablePageScroll", function() {
|
|
1829
|
+
return P;
|
|
1830
|
+
}), o.d(l, "getScrollState", function() {
|
|
1831
|
+
return D;
|
|
1832
|
+
}), o.d(l, "clearQueueScrollLocks", function() {
|
|
1833
|
+
return ye;
|
|
1834
|
+
}), o.d(l, "getTargetScrollBarWidth", function() {
|
|
1835
|
+
return q;
|
|
1836
|
+
}), o.d(l, "getCurrentTargetScrollBarWidth", function() {
|
|
1837
|
+
return oe;
|
|
1838
|
+
}), o.d(l, "getPageScrollBarWidth", function() {
|
|
1839
|
+
return be;
|
|
1840
|
+
}), o.d(l, "getCurrentPageScrollBarWidth", function() {
|
|
1841
|
+
return Se;
|
|
1842
|
+
}), o.d(l, "addScrollableTarget", function() {
|
|
1843
|
+
return ne;
|
|
1844
|
+
}), o.d(l, "removeScrollableTarget", function() {
|
|
1845
|
+
return we;
|
|
1846
|
+
}), o.d(l, "addScrollableSelector", function() {
|
|
1847
|
+
return Qe;
|
|
1848
|
+
}), o.d(l, "removeScrollableSelector", function() {
|
|
1849
|
+
return Ve;
|
|
1850
|
+
}), o.d(l, "addLockableTarget", function() {
|
|
1851
|
+
return Ye;
|
|
1852
|
+
}), o.d(l, "addLockableSelector", function() {
|
|
1853
|
+
return Ke;
|
|
1854
|
+
}), o.d(l, "setFillGapMethod", function() {
|
|
1855
|
+
return Ue;
|
|
1856
|
+
}), o.d(l, "addFillGapTarget", function() {
|
|
1857
|
+
return ke;
|
|
1858
|
+
}), o.d(l, "removeFillGapTarget", function() {
|
|
1859
|
+
return He;
|
|
1860
|
+
}), o.d(l, "addFillGapSelector", function() {
|
|
1861
|
+
return re;
|
|
1862
|
+
}), o.d(l, "removeFillGapSelector", function() {
|
|
1863
|
+
return qe;
|
|
1864
|
+
}), o.d(l, "refillGaps", function() {
|
|
1865
|
+
return le;
|
|
1866
|
+
});
|
|
1867
|
+
function B(p) {
|
|
1868
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
1869
|
+
var a = arguments[r] != null ? arguments[r] : {}, h = Object.keys(a);
|
|
1870
|
+
typeof Object.getOwnPropertySymbols == "function" && (h = h.concat(Object.getOwnPropertySymbols(a).filter(function(v) {
|
|
1871
|
+
return Object.getOwnPropertyDescriptor(a, v).enumerable;
|
|
1872
|
+
}))), h.forEach(function(v) {
|
|
1873
|
+
S(p, v, a[v]);
|
|
1874
|
+
});
|
|
1875
|
+
}
|
|
1876
|
+
return p;
|
|
1877
|
+
}
|
|
1878
|
+
function S(p, r, a) {
|
|
1879
|
+
return r in p ? Object.defineProperty(p, r, { value: a, enumerable: !0, configurable: !0, writable: !0 }) : p[r] = a, p;
|
|
1880
|
+
}
|
|
1881
|
+
var L = ["padding", "margin", "width", "max-width", "none"], m = 3, d = {
|
|
1882
|
+
scroll: !0,
|
|
1883
|
+
queue: 0,
|
|
1884
|
+
scrollableSelectors: ["[data-scroll-lock-scrollable]"],
|
|
1885
|
+
lockableSelectors: ["body", "[data-scroll-lock-lockable]"],
|
|
1886
|
+
fillGapSelectors: ["body", "[data-scroll-lock-fill-gap]", "[data-scroll-lock-lockable]"],
|
|
1887
|
+
fillGapMethod: L[0],
|
|
1888
|
+
startTouchY: 0,
|
|
1889
|
+
startTouchX: 0
|
|
1890
|
+
}, A = function(r) {
|
|
1891
|
+
d.queue <= 0 && (d.scroll = !1, xe(), Je()), ne(r), d.queue++;
|
|
1892
|
+
}, P = function(r) {
|
|
1893
|
+
d.queue > 0 && d.queue--, d.queue <= 0 && (d.scroll = !0, _t(), Wt()), we(r);
|
|
1894
|
+
}, D = function() {
|
|
1895
|
+
return d.scroll;
|
|
1896
|
+
}, ye = function() {
|
|
1897
|
+
d.queue = 0;
|
|
1898
|
+
}, q = function(r) {
|
|
1899
|
+
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
1900
|
+
if (s(r)) {
|
|
1901
|
+
var h = r.style.overflowY;
|
|
1902
|
+
a ? D() || (r.style.overflowY = r.getAttribute("data-scroll-lock-saved-overflow-y-property")) : r.style.overflowY = "scroll";
|
|
1903
|
+
var v = oe(r);
|
|
1904
|
+
return r.style.overflowY = h, v;
|
|
1905
|
+
} else
|
|
1906
|
+
return 0;
|
|
1907
|
+
}, oe = function(r) {
|
|
1908
|
+
if (s(r))
|
|
1909
|
+
if (r === document.body) {
|
|
1910
|
+
var a = document.documentElement.clientWidth, h = window.innerWidth, v = h - a;
|
|
1911
|
+
return v;
|
|
1912
|
+
} else {
|
|
1913
|
+
var N = r.style.borderLeftWidth, W = r.style.borderRightWidth;
|
|
1914
|
+
r.style.borderLeftWidth = "0px", r.style.borderRightWidth = "0px";
|
|
1915
|
+
var z = r.offsetWidth - r.clientWidth;
|
|
1916
|
+
return r.style.borderLeftWidth = N, r.style.borderRightWidth = W, z;
|
|
1917
|
+
}
|
|
1918
|
+
else
|
|
1919
|
+
return 0;
|
|
1920
|
+
}, be = function() {
|
|
1921
|
+
var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
1922
|
+
return q(document.body, r);
|
|
1923
|
+
}, Se = function() {
|
|
1924
|
+
return oe(document.body);
|
|
1925
|
+
}, ne = function(r) {
|
|
1926
|
+
if (r) {
|
|
1927
|
+
var a = i(r);
|
|
1928
|
+
a.map(function(h) {
|
|
1929
|
+
u(h, function(v) {
|
|
1930
|
+
s(v) ? v.setAttribute("data-scroll-lock-scrollable", "") : f('"'.concat(v, '" is not a Element.'));
|
|
1931
|
+
});
|
|
1932
|
+
});
|
|
1933
|
+
}
|
|
1934
|
+
}, we = function(r) {
|
|
1935
|
+
if (r) {
|
|
1936
|
+
var a = i(r);
|
|
1937
|
+
a.map(function(h) {
|
|
1938
|
+
u(h, function(v) {
|
|
1939
|
+
s(v) ? v.removeAttribute("data-scroll-lock-scrollable") : f('"'.concat(v, '" is not a Element.'));
|
|
1940
|
+
});
|
|
1941
|
+
});
|
|
1942
|
+
}
|
|
1943
|
+
}, Qe = function(r) {
|
|
1944
|
+
if (r) {
|
|
1945
|
+
var a = i(r);
|
|
1946
|
+
a.map(function(h) {
|
|
1947
|
+
d.scrollableSelectors.push(h);
|
|
1948
|
+
});
|
|
1949
|
+
}
|
|
1950
|
+
}, Ve = function(r) {
|
|
1951
|
+
if (r) {
|
|
1952
|
+
var a = i(r);
|
|
1953
|
+
a.map(function(h) {
|
|
1954
|
+
d.scrollableSelectors = d.scrollableSelectors.filter(function(v) {
|
|
1955
|
+
return v !== h;
|
|
1956
|
+
});
|
|
1957
|
+
});
|
|
1958
|
+
}
|
|
1959
|
+
}, Ye = function(r) {
|
|
1960
|
+
if (r) {
|
|
1961
|
+
var a = i(r);
|
|
1962
|
+
a.map(function(h) {
|
|
1963
|
+
u(h, function(v) {
|
|
1964
|
+
s(v) ? v.setAttribute("data-scroll-lock-lockable", "") : f('"'.concat(v, '" is not a Element.'));
|
|
1965
|
+
});
|
|
1966
|
+
}), D() || xe();
|
|
1967
|
+
}
|
|
1968
|
+
}, Ke = function(r) {
|
|
1969
|
+
if (r) {
|
|
1970
|
+
var a = i(r);
|
|
1971
|
+
a.map(function(h) {
|
|
1972
|
+
d.lockableSelectors.push(h);
|
|
1973
|
+
}), D() || xe(), re(r);
|
|
1974
|
+
}
|
|
1975
|
+
}, Ue = function(r) {
|
|
1976
|
+
if (r)
|
|
1977
|
+
if (L.indexOf(r) !== -1)
|
|
1978
|
+
d.fillGapMethod = r, le();
|
|
1979
|
+
else {
|
|
1980
|
+
var a = L.join(", ");
|
|
1981
|
+
f('"'.concat(r, `" method is not available!
|
|
1982
|
+
Available fill gap methods: `).concat(a, "."));
|
|
1983
|
+
}
|
|
1984
|
+
}, ke = function(r) {
|
|
1985
|
+
if (r) {
|
|
1986
|
+
var a = i(r);
|
|
1987
|
+
a.map(function(h) {
|
|
1988
|
+
u(h, function(v) {
|
|
1989
|
+
s(v) ? (v.setAttribute("data-scroll-lock-fill-gap", ""), d.scroll || Xe(v)) : f('"'.concat(v, '" is not a Element.'));
|
|
1990
|
+
});
|
|
1991
|
+
});
|
|
1992
|
+
}
|
|
1993
|
+
}, He = function(r) {
|
|
1994
|
+
if (r) {
|
|
1995
|
+
var a = i(r);
|
|
1996
|
+
a.map(function(h) {
|
|
1997
|
+
u(h, function(v) {
|
|
1998
|
+
s(v) ? (v.removeAttribute("data-scroll-lock-fill-gap"), d.scroll || Te(v)) : f('"'.concat(v, '" is not a Element.'));
|
|
1999
|
+
});
|
|
2000
|
+
});
|
|
2001
|
+
}
|
|
2002
|
+
}, re = function(r) {
|
|
2003
|
+
if (r) {
|
|
2004
|
+
var a = i(r);
|
|
2005
|
+
a.map(function(h) {
|
|
2006
|
+
d.fillGapSelectors.indexOf(h) === -1 && (d.fillGapSelectors.push(h), d.scroll || Ze(h));
|
|
2007
|
+
});
|
|
2008
|
+
}
|
|
2009
|
+
}, qe = function(r) {
|
|
2010
|
+
if (r) {
|
|
2011
|
+
var a = i(r);
|
|
2012
|
+
a.map(function(h) {
|
|
2013
|
+
d.fillGapSelectors = d.fillGapSelectors.filter(function(v) {
|
|
2014
|
+
return v !== h;
|
|
2015
|
+
}), d.scroll || $e(h);
|
|
2016
|
+
});
|
|
2017
|
+
}
|
|
2018
|
+
}, le = function() {
|
|
2019
|
+
d.scroll || Je();
|
|
2020
|
+
}, xe = function() {
|
|
2021
|
+
var r = g(d.lockableSelectors);
|
|
2022
|
+
Bt(r);
|
|
2023
|
+
}, _t = function() {
|
|
2024
|
+
var r = g(d.lockableSelectors);
|
|
2025
|
+
Nt(r);
|
|
2026
|
+
}, Bt = function(r) {
|
|
2027
|
+
var a = document.querySelectorAll(r);
|
|
2028
|
+
u(a, function(h) {
|
|
2029
|
+
Dt(h);
|
|
2030
|
+
});
|
|
2031
|
+
}, Nt = function(r) {
|
|
2032
|
+
var a = document.querySelectorAll(r);
|
|
2033
|
+
u(a, function(h) {
|
|
2034
|
+
zt(h);
|
|
2035
|
+
});
|
|
2036
|
+
}, Dt = function(r) {
|
|
2037
|
+
if (s(r) && r.getAttribute("data-scroll-lock-locked") !== "true") {
|
|
2038
|
+
var a = window.getComputedStyle(r);
|
|
2039
|
+
r.setAttribute("data-scroll-lock-saved-overflow-y-property", a.overflowY), r.setAttribute("data-scroll-lock-saved-inline-overflow-property", r.style.overflow), r.setAttribute("data-scroll-lock-saved-inline-overflow-y-property", r.style.overflowY), r.style.overflow = "hidden", r.setAttribute("data-scroll-lock-locked", "true");
|
|
2040
|
+
}
|
|
2041
|
+
}, zt = function(r) {
|
|
2042
|
+
s(r) && r.getAttribute("data-scroll-lock-locked") === "true" && (r.style.overflow = r.getAttribute("data-scroll-lock-saved-inline-overflow-property"), r.style.overflowY = r.getAttribute("data-scroll-lock-saved-inline-overflow-y-property"), r.removeAttribute("data-scroll-lock-saved-overflow-property"), r.removeAttribute("data-scroll-lock-saved-inline-overflow-property"), r.removeAttribute("data-scroll-lock-saved-inline-overflow-y-property"), r.removeAttribute("data-scroll-lock-locked"));
|
|
2043
|
+
}, Je = function() {
|
|
2044
|
+
d.fillGapSelectors.map(function(r) {
|
|
2045
|
+
Ze(r);
|
|
2046
|
+
});
|
|
2047
|
+
}, Wt = function() {
|
|
2048
|
+
d.fillGapSelectors.map(function(r) {
|
|
2049
|
+
$e(r);
|
|
2050
|
+
});
|
|
2051
|
+
}, Ze = function(r) {
|
|
2052
|
+
var a = document.querySelectorAll(r), h = d.lockableSelectors.indexOf(r) !== -1;
|
|
2053
|
+
u(a, function(v) {
|
|
2054
|
+
Xe(v, h);
|
|
2055
|
+
});
|
|
2056
|
+
}, Xe = function(r) {
|
|
2057
|
+
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
2058
|
+
if (s(r)) {
|
|
2059
|
+
var h;
|
|
2060
|
+
if (r.getAttribute("data-scroll-lock-lockable") === "" || a)
|
|
2061
|
+
h = q(r, !0);
|
|
2062
|
+
else {
|
|
2063
|
+
var v = w(r, g(d.lockableSelectors));
|
|
2064
|
+
h = q(v, !0);
|
|
2065
|
+
}
|
|
2066
|
+
r.getAttribute("data-scroll-lock-filled-gap") === "true" && Te(r);
|
|
2067
|
+
var N = window.getComputedStyle(r);
|
|
2068
|
+
if (r.setAttribute("data-scroll-lock-filled-gap", "true"), r.setAttribute("data-scroll-lock-current-fill-gap-method", d.fillGapMethod), d.fillGapMethod === "margin") {
|
|
2069
|
+
var W = parseFloat(N.marginRight);
|
|
2070
|
+
r.style.marginRight = "".concat(W + h, "px");
|
|
2071
|
+
} else if (d.fillGapMethod === "width")
|
|
2072
|
+
r.style.width = "calc(100% - ".concat(h, "px)");
|
|
2073
|
+
else if (d.fillGapMethod === "max-width")
|
|
2074
|
+
r.style.maxWidth = "calc(100% - ".concat(h, "px)");
|
|
2075
|
+
else if (d.fillGapMethod === "padding") {
|
|
2076
|
+
var z = parseFloat(N.paddingRight);
|
|
2077
|
+
r.style.paddingRight = "".concat(z + h, "px");
|
|
2078
|
+
}
|
|
2079
|
+
}
|
|
2080
|
+
}, $e = function(r) {
|
|
2081
|
+
var a = document.querySelectorAll(r);
|
|
2082
|
+
u(a, function(h) {
|
|
2083
|
+
Te(h);
|
|
2084
|
+
});
|
|
2085
|
+
}, Te = function(r) {
|
|
2086
|
+
if (s(r) && r.getAttribute("data-scroll-lock-filled-gap") === "true") {
|
|
2087
|
+
var a = r.getAttribute("data-scroll-lock-current-fill-gap-method");
|
|
2088
|
+
r.removeAttribute("data-scroll-lock-filled-gap"), r.removeAttribute("data-scroll-lock-current-fill-gap-method"), a === "margin" ? r.style.marginRight = "" : a === "width" ? r.style.width = "" : a === "max-width" ? r.style.maxWidth = "" : a === "padding" && (r.style.paddingRight = "");
|
|
2089
|
+
}
|
|
2090
|
+
}, Rt = function(r) {
|
|
2091
|
+
le();
|
|
2092
|
+
}, Qt = function(r) {
|
|
2093
|
+
d.scroll || (d.startTouchY = r.touches[0].clientY, d.startTouchX = r.touches[0].clientX);
|
|
2094
|
+
}, Vt = function(r) {
|
|
2095
|
+
if (!d.scroll) {
|
|
2096
|
+
var a = d.startTouchY, h = d.startTouchX, v = r.touches[0].clientY, N = r.touches[0].clientX;
|
|
2097
|
+
if (r.touches.length < 2) {
|
|
2098
|
+
var W = g(d.scrollableSelectors), z = {
|
|
2099
|
+
up: a < v,
|
|
2100
|
+
down: a > v,
|
|
2101
|
+
left: h < N,
|
|
2102
|
+
right: h > N
|
|
2103
|
+
}, ie = {
|
|
2104
|
+
up: a + m < v,
|
|
2105
|
+
down: a - m > v,
|
|
2106
|
+
left: h + m < N,
|
|
2107
|
+
right: h - m > N
|
|
2108
|
+
}, Ht = function et(E) {
|
|
2109
|
+
var qt = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
2110
|
+
if (E) {
|
|
2111
|
+
var Ce = w(E, W, !1);
|
|
2112
|
+
if (Y(E))
|
|
2113
|
+
return !1;
|
|
2114
|
+
if (qt || V(E) && w(E, W) || x(E, W)) {
|
|
2115
|
+
var se = !1;
|
|
2116
|
+
I(E) && T(E) ? (z.up && C(E) || z.down && y(E)) && (se = !0) : C(E) && y(E) ? (z.left && I(E) || z.right && T(E)) && (se = !0) : (ie.up && C(E) || ie.down && y(E) || ie.left && I(E) || ie.right && T(E)) && (se = !0), se && (Ce ? et(Ce, !0) : r.cancelable && r.preventDefault());
|
|
2117
|
+
} else
|
|
2118
|
+
et(Ce);
|
|
2119
|
+
} else
|
|
2120
|
+
r.cancelable && r.preventDefault();
|
|
2121
|
+
};
|
|
2122
|
+
Ht(r.target);
|
|
2123
|
+
}
|
|
2124
|
+
}
|
|
2125
|
+
}, Yt = function(r) {
|
|
2126
|
+
d.scroll || (d.startTouchY = 0, d.startTouchX = 0);
|
|
2127
|
+
};
|
|
2128
|
+
typeof window < "u" && window.addEventListener("resize", Rt), typeof document < "u" && (document.addEventListener("touchstart", Qt), document.addEventListener("touchmove", Vt, {
|
|
2129
|
+
passive: !1
|
|
2130
|
+
}), document.addEventListener("touchend", Yt));
|
|
2131
|
+
var Kt = {
|
|
2132
|
+
hide: function(r) {
|
|
2133
|
+
f(`"hide" is deprecated! Use "disablePageScroll" instead.
|
|
2134
|
+
https://github.com/FL3NKEY/scroll-lock#disablepagescrollscrollabletarget`), A(r);
|
|
2135
|
+
},
|
|
2136
|
+
show: function(r) {
|
|
2137
|
+
f(`"show" is deprecated! Use "enablePageScroll" instead.
|
|
2138
|
+
https://github.com/FL3NKEY/scroll-lock#enablepagescrollscrollabletarget`), P(r);
|
|
2139
|
+
},
|
|
2140
|
+
toggle: function(r) {
|
|
2141
|
+
f('"toggle" is deprecated! Do not use it.'), D() ? A() : P(r);
|
|
2142
|
+
},
|
|
2143
|
+
getState: function() {
|
|
2144
|
+
return f(`"getState" is deprecated! Use "getScrollState" instead.
|
|
2145
|
+
https://github.com/FL3NKEY/scroll-lock#getscrollstate`), D();
|
|
2146
|
+
},
|
|
2147
|
+
getWidth: function() {
|
|
2148
|
+
return f(`"getWidth" is deprecated! Use "getPageScrollBarWidth" instead.
|
|
2149
|
+
https://github.com/FL3NKEY/scroll-lock#getpagescrollbarwidth`), be();
|
|
2150
|
+
},
|
|
2151
|
+
getCurrentWidth: function() {
|
|
2152
|
+
return f(`"getCurrentWidth" is deprecated! Use "getCurrentPageScrollBarWidth" instead.
|
|
2153
|
+
https://github.com/FL3NKEY/scroll-lock#getcurrentpagescrollbarwidth`), Se();
|
|
2154
|
+
},
|
|
2155
|
+
setScrollableTargets: function(r) {
|
|
2156
|
+
f(`"setScrollableTargets" is deprecated! Use "addScrollableTarget" instead.
|
|
2157
|
+
https://github.com/FL3NKEY/scroll-lock#addscrollabletargetscrollabletarget`), ne(r);
|
|
2158
|
+
},
|
|
2159
|
+
setFillGapSelectors: function(r) {
|
|
2160
|
+
f(`"setFillGapSelectors" is deprecated! Use "addFillGapSelector" instead.
|
|
2161
|
+
https://github.com/FL3NKEY/scroll-lock#addfillgapselectorfillgapselector`), re(r);
|
|
2162
|
+
},
|
|
2163
|
+
setFillGapTargets: function(r) {
|
|
2164
|
+
f(`"setFillGapTargets" is deprecated! Use "addFillGapTarget" instead.
|
|
2165
|
+
https://github.com/FL3NKEY/scroll-lock#addfillgaptargetfillgaptarget`), ke(r);
|
|
2166
|
+
},
|
|
2167
|
+
clearQueue: function() {
|
|
2168
|
+
f(`"clearQueue" is deprecated! Use "clearQueueScrollLocks" instead.
|
|
2169
|
+
https://github.com/FL3NKEY/scroll-lock#clearqueuescrolllocks`), ye();
|
|
2170
|
+
}
|
|
2171
|
+
}, Ut = B({
|
|
2172
|
+
disablePageScroll: A,
|
|
2173
|
+
enablePageScroll: P,
|
|
2174
|
+
getScrollState: D,
|
|
2175
|
+
clearQueueScrollLocks: ye,
|
|
2176
|
+
getTargetScrollBarWidth: q,
|
|
2177
|
+
getCurrentTargetScrollBarWidth: oe,
|
|
2178
|
+
getPageScrollBarWidth: be,
|
|
2179
|
+
getCurrentPageScrollBarWidth: Se,
|
|
2180
|
+
addScrollableSelector: Qe,
|
|
2181
|
+
removeScrollableSelector: Ve,
|
|
2182
|
+
addScrollableTarget: ne,
|
|
2183
|
+
removeScrollableTarget: we,
|
|
2184
|
+
addLockableSelector: Ke,
|
|
2185
|
+
addLockableTarget: Ye,
|
|
2186
|
+
addFillGapSelector: re,
|
|
2187
|
+
removeFillGapSelector: qe,
|
|
2188
|
+
addFillGapTarget: ke,
|
|
2189
|
+
removeFillGapTarget: He,
|
|
2190
|
+
setFillGapMethod: Ue,
|
|
2191
|
+
refillGaps: le,
|
|
2192
|
+
_state: d
|
|
2193
|
+
}, Kt);
|
|
2194
|
+
l.default = Ut;
|
|
2195
|
+
}
|
|
2196
|
+
]).default;
|
|
2197
|
+
});
|
|
2198
|
+
})(he);
|
|
2199
|
+
function Hn(e = null) {
|
|
2200
|
+
e == null && (e = document.querySelectorAll("[scroll-lock-target]")), he.exports.disablePageScroll(e);
|
|
2201
|
+
}
|
|
2202
|
+
function qn() {
|
|
2203
|
+
he.exports.clearQueueScrollLocks(), he.exports.enablePageScroll();
|
|
2204
|
+
}
|
|
2205
|
+
const j = {
|
|
2206
|
+
i18n: co({
|
|
2207
|
+
messages: { en: Mn, fr: jn }
|
|
2208
|
+
}),
|
|
2209
|
+
http: Jt.create(),
|
|
2210
|
+
upload_url: "/api/upload",
|
|
2211
|
+
formatQueryString(e) {
|
|
2212
|
+
return ot.stringify(e, {
|
|
2213
|
+
arrayFormat: "comma",
|
|
2214
|
+
encode: !0
|
|
2215
|
+
});
|
|
2216
|
+
},
|
|
2217
|
+
parseQueryString(e) {
|
|
2218
|
+
return ot.parse(e);
|
|
2219
|
+
}
|
|
2220
|
+
};
|
|
2221
|
+
function Nn(e, t) {
|
|
2222
|
+
for (const n in vt)
|
|
2223
|
+
e.component(n, vt[n]);
|
|
2224
|
+
t != null && t.i18n && (j.i18n = t.i18n), t != null && t.http && (j.http = t.http), t != null && t.upload_url && (j.upload_url = t.upload_url), t != null && t.formatQueryString && (j.formatQueryString = t.formatQueryString), t != null && t.parseQueryString && (j.parseQueryString = t.parseQueryString);
|
|
2225
|
+
}
|
|
2226
|
+
const Jn = { install: Nn };
|
|
2227
|
+
export {
|
|
2228
|
+
po as BaseAlert,
|
|
2229
|
+
Io as BaseAutocomplete,
|
|
2230
|
+
Po as BaseButton,
|
|
2231
|
+
On as Icon,
|
|
2232
|
+
Yn as MyConstants,
|
|
2233
|
+
j as config,
|
|
2234
|
+
Jn as default,
|
|
2235
|
+
Hn as disableScroll,
|
|
2236
|
+
qn as enableScroll,
|
|
2237
|
+
Un as fileSizeFormat,
|
|
2238
|
+
Kn as toHumanList
|
|
2239
|
+
};
|