@dcodegroup-au/page-builder 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/page-builder.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Sc = Object.defineProperty;
|
|
2
2
|
var Tc = (n, e, t) => e in n ? Sc(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
3
|
var we = (n, e, t) => Tc(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { createElementBlock as Te, openBlock as be, createElementVNode as oe, createStaticVNode as Oc, ref as _e, resolveDirective as Nc, withDirectives as
|
|
4
|
+
import { createElementBlock as Te, openBlock as be, createElementVNode as oe, createStaticVNode as Oc, ref as _e, resolveDirective as Nc, withDirectives as Nn, createCommentVNode as pt, createVNode as qe, unref as ft, defineComponent as nr, reactive as Zr, computed as je, normalizeClass as Rn, Transition as Rc, withCtx as Bt, renderSlot as Ir, toDisplayString as tt, withModifiers as Ma, Fragment as Pt, renderList as rn, createTextVNode as Ba, mergeModels as kl, useModel as Qr, vModelSelect as Cc, createBlock as On, vModelText as Jr, vModelRadio as Ic, resolveDynamicComponent as ri, nextTick as Lc, markRaw as ss, inject as hs, h as wt, shallowReactive as ta, watch as Wr, watchEffect as Mi, onMounted as si, onBeforeUnmount as Pl, provide as Fl, toRefs as kc, useId as Pc, getCurrentInstance as Fc, onUnmounted as Mc, onUpdated as Bc, cloneVNode as Uc, vShow as Dc } from "vue";
|
|
5
5
|
const jc = {
|
|
6
6
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7
7
|
fill: "none",
|
|
@@ -34,7 +34,7 @@ function qc(n, e) {
|
|
|
34
34
|
}, null, -1)
|
|
35
35
|
]));
|
|
36
36
|
}
|
|
37
|
-
const zc = { render: qc },
|
|
37
|
+
const zc = { render: qc }, ii = (n, e) => {
|
|
38
38
|
const t = n.__vccOpts || n;
|
|
39
39
|
for (const [r, s] of e)
|
|
40
40
|
t[r] = s;
|
|
@@ -43,7 +43,7 @@ const zc = { render: qc }, ai = (n, e) => {
|
|
|
43
43
|
function Vc(n, e) {
|
|
44
44
|
return e[0] || (e[0] = Oc('<div class="text-lg pb-6 font-semibold text-gray-900 border-b border-gray-200">Instruction</div><div class="flex flex-col gap-3 py-6 text-gray-600"><div class="font-semibold text-gray-900">Modules</div><p>Modules are fixed and for internal reference only, and admin users cannot make the following changes:</p><ul class="list-inside list-disc pl-3"><li>Edit the title of any module (e.g., "Hero header").</li><li>Change the order of the modules.</li><li>Add new module.</li></ul><p>For any changes at the module level, please contact the development team.</p></div><div class="flex flex-col gap-3 py-6 text-gray-600"><div class="font-semibold text-gray-900">Edit sub-modules or edit nested items</div><p>Click any sub-module to edit its settings and any nested items within it.</p></div>', 3));
|
|
45
45
|
}
|
|
46
|
-
const Gc = /* @__PURE__ */
|
|
46
|
+
const Gc = /* @__PURE__ */ ii(Hc, [["render", Vc]]), Wc = {
|
|
47
47
|
xmlns: "http://www.w3.org/2000/svg",
|
|
48
48
|
fill: "none",
|
|
49
49
|
stroke: "currentColor",
|
|
@@ -162,7 +162,7 @@ const sf = { render: rf }, af = {
|
|
|
162
162
|
}
|
|
163
163
|
}, of = { class: "relative z-50" }, lf = {
|
|
164
164
|
key: 0,
|
|
165
|
-
class: "absolute -left-60 top-6 w-[240px] rounded-lg border border-gray-200 bg-white"
|
|
165
|
+
class: "absolute -left-60 top-6 w-[240px] rounded-lg border border-gray-200 bg-white text-sm"
|
|
166
166
|
}, uf = {
|
|
167
167
|
directives: {
|
|
168
168
|
clickOutside: af
|
|
@@ -186,27 +186,29 @@ const sf = { render: rf }, af = {
|
|
|
186
186
|
};
|
|
187
187
|
return (u, i) => {
|
|
188
188
|
const l = Nc("click-outside");
|
|
189
|
-
return
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
}
|
|
189
|
+
return Nn((be(), Te("div", of, [
|
|
190
|
+
oe("div", {
|
|
191
|
+
class: "cursor-pointer text-gray-600 rounded-full hover:bg-gray-50 p-2.5 block",
|
|
192
|
+
onClick: i[0] || (i[0] = (c) => t.value = !t.value)
|
|
193
|
+
}, [
|
|
194
|
+
qe(ft(Jc), { class: "w-5" })
|
|
195
|
+
]),
|
|
194
196
|
t.value ? (be(), Te("div", lf, [
|
|
195
197
|
n.enableEdit ? (be(), Te("a", {
|
|
196
198
|
key: 0,
|
|
197
|
-
class: "flex items-center gap-2
|
|
199
|
+
class: "flex items-center gap-2 px-2.5 cursor-pointer h-[48px] w-auto hover:bg-gray-100 rounded-lg m-1.5 text-gray-700",
|
|
198
200
|
onClick: a
|
|
199
201
|
}, [
|
|
200
|
-
qe(ft(sf), { class: "w-
|
|
201
|
-
i[1] || (i[1] =
|
|
202
|
+
qe(ft(sf), { class: "w-4 text-gray-500" }),
|
|
203
|
+
i[1] || (i[1] = oe("span", { class: "font-medium" }, " Edit ", -1))
|
|
202
204
|
])) : pt("", !0),
|
|
203
205
|
oe("a", {
|
|
204
|
-
class:
|
|
206
|
+
class: "flex items-center gap-2 px-2.5 cursor-pointer h-[48px] w-auto hover:bg-gray-100 rounded-lg m-1.5 text-gray-700",
|
|
205
207
|
onClick: o
|
|
206
208
|
}, [
|
|
207
|
-
qe(ft(Ul), { class: "w-
|
|
208
|
-
i[2] || (i[2] =
|
|
209
|
-
]
|
|
209
|
+
qe(ft(Ul), { class: "w-4 text-gray-500" }),
|
|
210
|
+
i[2] || (i[2] = oe("span", { class: "font-medium" }, " Delete ", -1))
|
|
211
|
+
])
|
|
210
212
|
])) : pt("", !0)
|
|
211
213
|
])), [
|
|
212
214
|
[l, s]
|
|
@@ -267,14 +269,14 @@ const df = { render: ff }, hf = {
|
|
|
267
269
|
open: u,
|
|
268
270
|
close: i
|
|
269
271
|
}), (c, d) => (be(), Te("div", {
|
|
270
|
-
class:
|
|
272
|
+
class: Rn([{ "-open": r.value }, "v-modal"])
|
|
271
273
|
}, [
|
|
272
274
|
qe(Rc, { name: "fade" }, {
|
|
273
275
|
default: Bt(() => [
|
|
274
276
|
r.value ? (be(), Te("div", hf, [
|
|
275
277
|
Ir(c.$slots, "default", {}, () => [
|
|
276
278
|
oe("div", {
|
|
277
|
-
class:
|
|
279
|
+
class: Rn(["relative min-h-[260px] overflow-y-auto flex", { "overflow-y-visible": !c.scrollable }])
|
|
278
280
|
}, [
|
|
279
281
|
oe("div", pf, [
|
|
280
282
|
oe("div", null, [
|
|
@@ -297,7 +299,7 @@ const df = { render: ff }, hf = {
|
|
|
297
299
|
textContent: tt(o.value)
|
|
298
300
|
}, null, 8, xf),
|
|
299
301
|
oe("a", {
|
|
300
|
-
onClick:
|
|
302
|
+
onClick: Ma(l, ["prevent"]),
|
|
301
303
|
class: "w-1/2 py-[9px] rounded-full shadow-xs text-md font-semibold text-white bg-error-600 hover:bg-error-700 border border-error-600 text-center cursor-pointer",
|
|
302
304
|
textContent: tt(a.value)
|
|
303
305
|
}, null, 8, Ef)
|
|
@@ -311,7 +313,7 @@ const df = { render: ff }, hf = {
|
|
|
311
313
|
})
|
|
312
314
|
], 2));
|
|
313
315
|
}
|
|
314
|
-
}), jl = /* @__PURE__ */
|
|
316
|
+
}), jl = /* @__PURE__ */ ii(wf, [["__scopeId", "data-v-0ca1257f"]]), Af = { class: "flex justify-between pb-2" }, Sf = { class: "text-lg font-semibold text-gray-900" }, Tf = { class: "flex flex-col gap-4" }, Of = { class: "text-gray-600 border-b border-gray-200 pb-4 text-sm" }, Nf = { class: "flex flex-col gap-3" }, Rf = { class: "flex justify-between" }, Cf = { class: "flex flex-col gap-1" }, If = { class: "text-sm text-gray-600" }, Lf = ["disabled"], kf = { class: "flex flex-col gap-3" }, Pf = ["onClick"], Ff = ["onClick"], Mf = { class: "text-xs text-gray-600" }, Bf = { class: "text-sm font-medium text-gray-900" }, Uf = {
|
|
315
317
|
__name: "VSliders",
|
|
316
318
|
props: {
|
|
317
319
|
...Bl
|
|
@@ -321,7 +323,7 @@ const df = { render: ff }, hf = {
|
|
|
321
323
|
const t = e, r = n, s = _e(r.data.component), o = _e(null), a = _e(JSON.parse(window.localStorage.getItem("openSlideStates")));
|
|
322
324
|
a.value || (a.value = {}, s.value.data.forEach((f, g) => {
|
|
323
325
|
a.value[g] = !1;
|
|
324
|
-
}),
|
|
326
|
+
}), window.localStorage.setItem("openSlideStates", JSON.stringify(a.value)));
|
|
325
327
|
const u = (f) => {
|
|
326
328
|
Object.keys(a.value).forEach((g) => {
|
|
327
329
|
a.value[g] = !1;
|
|
@@ -354,7 +356,7 @@ const df = { render: ff }, hf = {
|
|
|
354
356
|
disabled: s.value.data.length >= s.value.max_items,
|
|
355
357
|
onClick: i,
|
|
356
358
|
type: "button",
|
|
357
|
-
class:
|
|
359
|
+
class: Rn(["text-sm cursor-pointer flex items-center justify-center gap-1 rounded-[99px] border border-brand-600 bg-brand-500 px-3.5 py-2 font-semibold text-white hover:bg-brand-600", { "border-gray-100 bg-gray-100 !text-gray-400 hover:bg-gray-100": s.value.data.length >= s.value.max_items }])
|
|
358
360
|
}, [
|
|
359
361
|
qe(ft(Ml), { class: "h-5 w-5" }),
|
|
360
362
|
g[1] || (g[1] = oe("span", null, "Add", -1))
|
|
@@ -363,16 +365,21 @@ const df = { render: ff }, hf = {
|
|
|
363
365
|
]),
|
|
364
366
|
oe("div", kf, [
|
|
365
367
|
(be(!0), Te(Pt, null, rn(s.value.data, (p, v) => (be(), Te("div", {
|
|
366
|
-
class:
|
|
368
|
+
class: Rn(["flex items-center gap-4 px-2 py-1 hover:bg-gray-100 rounded-lg", { "bg-gray-200 hover:bg-gray-200": a.value[v] }])
|
|
367
369
|
}, [
|
|
368
370
|
oe("div", {
|
|
369
|
-
class: "flex flex-1
|
|
370
|
-
onClick: (b) =>
|
|
371
|
+
class: "flex flex-1 items-center justify-between relative",
|
|
372
|
+
onClick: (b) => {
|
|
373
|
+
u(v);
|
|
374
|
+
}
|
|
371
375
|
}, [
|
|
372
|
-
oe("div",
|
|
376
|
+
oe("div", {
|
|
377
|
+
class: "flex flex-1 flex-col cursor-pointer",
|
|
378
|
+
onClick: (b) => d(p, v)
|
|
379
|
+
}, [
|
|
373
380
|
oe("div", Mf, " Slider #" + tt(v + 1), 1),
|
|
374
381
|
oe("div", Bf, tt(p.title), 1)
|
|
375
|
-
]),
|
|
382
|
+
], 8, Ff),
|
|
376
383
|
qe(Dl, {
|
|
377
384
|
onRemoveItem: (b) => l(v),
|
|
378
385
|
"enable-edit": !0,
|
|
@@ -441,7 +448,7 @@ const df = { render: ff }, hf = {
|
|
|
441
448
|
}, [
|
|
442
449
|
n.labelText || e.$slots.label ? (be(), Te("span", jf, [
|
|
443
450
|
e.$slots.label ? Ir(e.$slots, "label", { key: 0 }) : (be(), Te(Pt, { key: 1 }, [
|
|
444
|
-
|
|
451
|
+
Ba(tt(n.labelText) + " ", 1),
|
|
445
452
|
n.isRequired ? (be(), Te("span", $f, " *")) : pt("", !0)
|
|
446
453
|
], 64))
|
|
447
454
|
])) : pt("", !0),
|
|
@@ -454,7 +461,7 @@ const df = { render: ff }, hf = {
|
|
|
454
461
|
}, zf = { class: "flex items-center gap-2" }, Hf = ["aria-checked"], Vf = {
|
|
455
462
|
key: 0,
|
|
456
463
|
class: "text-sm text-gray-700 font-medium"
|
|
457
|
-
},
|
|
464
|
+
}, zs = {
|
|
458
465
|
__name: "VToggle",
|
|
459
466
|
props: {
|
|
460
467
|
modelValue: {
|
|
@@ -485,14 +492,14 @@ const df = { render: ff }, hf = {
|
|
|
485
492
|
return (a, u) => (be(), Te("div", zf, [
|
|
486
493
|
oe("button", {
|
|
487
494
|
type: "button",
|
|
488
|
-
class:
|
|
495
|
+
class: Rn(["relative inline-flex h-5 w-10 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent bg-gray-100 transition-colors duration-200 ease-in-out", s.value]),
|
|
489
496
|
role: "switch",
|
|
490
497
|
"aria-checked": n.modelValue,
|
|
491
498
|
onClick: o
|
|
492
499
|
}, [
|
|
493
500
|
oe("span", {
|
|
494
501
|
"aria-hidden": "true",
|
|
495
|
-
class:
|
|
502
|
+
class: Rn(["pointer-events-none inline-block h-4 w-4 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out", {
|
|
496
503
|
"translate-x-5": n.modelValue,
|
|
497
504
|
"translate-x-0": !n.modelValue,
|
|
498
505
|
"!translate-x-3": n.small && n.modelValue,
|
|
@@ -517,7 +524,7 @@ const df = { render: ff }, hf = {
|
|
|
517
524
|
const e = Qr(n, "url");
|
|
518
525
|
return (t, r) => (be(), Te("div", Gf, [
|
|
519
526
|
r[1] || (r[1] = oe("label", { class: "text-sm font-medium text-gray-700" }, "Select a page from the site*", -1)),
|
|
520
|
-
|
|
527
|
+
Nn(oe("select", {
|
|
521
528
|
"onUpdate:modelValue": r[0] || (r[0] = (s) => e.value = s),
|
|
522
529
|
name: "url"
|
|
523
530
|
}, [
|
|
@@ -538,14 +545,14 @@ const df = { render: ff }, hf = {
|
|
|
538
545
|
emits: ["update:url"],
|
|
539
546
|
setup(n) {
|
|
540
547
|
const e = Qr(n, "url");
|
|
541
|
-
return (t, r) => (be(),
|
|
548
|
+
return (t, r) => (be(), On(Or, {
|
|
542
549
|
"is-vertical": "",
|
|
543
550
|
field: "title",
|
|
544
551
|
"label-text": "URL *",
|
|
545
552
|
class: "w-full"
|
|
546
553
|
}, {
|
|
547
554
|
default: Bt(() => [
|
|
548
|
-
|
|
555
|
+
Nn(oe("input", {
|
|
549
556
|
"onUpdate:modelValue": r[0] || (r[0] = (s) => e.value = s),
|
|
550
557
|
name: "title",
|
|
551
558
|
type: "text",
|
|
@@ -561,7 +568,7 @@ const df = { render: ff }, hf = {
|
|
|
561
568
|
}, Yf = { class: "flex flex-col gap-5" }, Zf = {
|
|
562
569
|
key: 0,
|
|
563
570
|
class: "text-sm text-gray-700 font-medium py-2"
|
|
564
|
-
}, Qf = { class: "text-sm flex items-center gap-6 font-medium text-gray-700" }, Jf = { class: "flex items-center gap-2 cursor-pointer" }, ed = ["name", "value", "disabled"], td = { class: "flex flex-col gap-2" }, nd = ["value"], rd = { class: "flex items-center gap-2" },
|
|
571
|
+
}, Qf = { class: "text-sm flex items-center gap-6 font-medium text-gray-700" }, Jf = { class: "flex items-center gap-2 cursor-pointer" }, ed = ["name", "value", "disabled"], td = { class: "flex flex-col gap-2" }, nd = ["value"], rd = { class: "flex items-center gap-2" }, na = {
|
|
565
572
|
__name: "LinkedTo",
|
|
566
573
|
props: /* @__PURE__ */ kl({
|
|
567
574
|
label: { type: Object, required: !1 },
|
|
@@ -587,7 +594,7 @@ const df = { render: ff }, hf = {
|
|
|
587
594
|
n.label ? (be(), Te("p", Zf, tt(n.label), 1)) : pt("", !0),
|
|
588
595
|
oe("div", Qf, [
|
|
589
596
|
(be(!0), Te(Pt, null, rn(n.options, (i) => (be(), Te("label", Jf, [
|
|
590
|
-
|
|
597
|
+
Nn(oe("input", {
|
|
591
598
|
name: n.name,
|
|
592
599
|
type: "radio",
|
|
593
600
|
value: i,
|
|
@@ -602,7 +609,7 @@ const df = { render: ff }, hf = {
|
|
|
602
609
|
])
|
|
603
610
|
]),
|
|
604
611
|
oe("div", td, [
|
|
605
|
-
(be(),
|
|
612
|
+
(be(), On(ri(o(e.value)), {
|
|
606
613
|
url: t.value,
|
|
607
614
|
"onUpdate:url": u[1] || (u[1] = (i) => t.value = i),
|
|
608
615
|
sites: n.sites
|
|
@@ -614,7 +621,7 @@ const df = { render: ff }, hf = {
|
|
|
614
621
|
}, null, 8, nd)
|
|
615
622
|
]),
|
|
616
623
|
oe("div", rd, [
|
|
617
|
-
qe(
|
|
624
|
+
qe(zs, {
|
|
618
625
|
class: "mb-1",
|
|
619
626
|
name: "open_in_new_tab",
|
|
620
627
|
modelValue: r.value,
|
|
@@ -653,7 +660,7 @@ const df = { render: ff }, hf = {
|
|
|
653
660
|
oe("div", null, [
|
|
654
661
|
oe("a", {
|
|
655
662
|
onClick: i,
|
|
656
|
-
class:
|
|
663
|
+
class: Rn(["text-sm cursor-pointer flex items-center justify-center gap-1 rounded-[99px] border border-brand-600 bg-brand-500 px-3.5 py-2 font-semibold text-white hover:bg-brand-600", { "border-gray-100 bg-gray-100 !text-gray-400 hover:bg-gray-100": s.value.data.length >= s.value.max_items }])
|
|
657
664
|
}, [
|
|
658
665
|
qe(ft(Ml), { class: "h-5 w-5" }),
|
|
659
666
|
f[0] || (f[0] = oe("span", null, "Add", -1))
|
|
@@ -687,7 +694,7 @@ const df = { render: ff }, hf = {
|
|
|
687
694
|
limit: 20
|
|
688
695
|
}, {
|
|
689
696
|
default: Bt(() => [
|
|
690
|
-
|
|
697
|
+
Nn(oe("input", {
|
|
691
698
|
"onUpdate:modelValue": (v) => g.title = v,
|
|
692
699
|
name: "title",
|
|
693
700
|
type: "text",
|
|
@@ -700,7 +707,7 @@ const df = { render: ff }, hf = {
|
|
|
700
707
|
]),
|
|
701
708
|
_: 2
|
|
702
709
|
}, 1032, ["value"]),
|
|
703
|
-
qe(
|
|
710
|
+
qe(na, {
|
|
704
711
|
label: "Linked to",
|
|
705
712
|
name: `link_${p + 1}`,
|
|
706
713
|
type: g.type,
|
|
@@ -753,8 +760,8 @@ const df = { render: ff }, hf = {
|
|
|
753
760
|
const t = e, r = n, s = _e(JSON.parse(window.localStorage.getItem("pageBuilderOpenStates"))), o = _e(((f = r.modelValue) == null ? void 0 : f.sections) ?? []);
|
|
754
761
|
let a = _e(null);
|
|
755
762
|
const u = _e({
|
|
756
|
-
sliders:
|
|
757
|
-
links:
|
|
763
|
+
sliders: ss(Uf),
|
|
764
|
+
links: ss(gd)
|
|
758
765
|
});
|
|
759
766
|
s.value || (s.value = {}, o.value.forEach((g, p) => {
|
|
760
767
|
s.value[p] = !0;
|
|
@@ -787,10 +794,10 @@ const df = { render: ff }, hf = {
|
|
|
787
794
|
oe("span", xd, tt(S.title), 1),
|
|
788
795
|
oe("div", Ed, [
|
|
789
796
|
oe("div", wd, [
|
|
790
|
-
s.value[A] ? (be(),
|
|
797
|
+
s.value[A] ? (be(), On(ft(zc), {
|
|
791
798
|
key: 1,
|
|
792
799
|
class: "h-5 w-5"
|
|
793
|
-
})) : (be(),
|
|
800
|
+
})) : (be(), On(ft(oo), {
|
|
794
801
|
key: 0,
|
|
795
802
|
class: "h-5 w-5"
|
|
796
803
|
}))
|
|
@@ -802,7 +809,7 @@ const df = { render: ff }, hf = {
|
|
|
802
809
|
var M, z;
|
|
803
810
|
return be(), Te("div", {
|
|
804
811
|
onClick: (K) => i(A, C, F),
|
|
805
|
-
class:
|
|
812
|
+
class: Rn(["flex cursor-pointer items-center justify-between rounded-lg py-1.5 pl-6 pr-2 hover:bg-gray-100", { "bg-gray-200 hover:bg-gray-200": ((M = ft(a)) == null ? void 0 : M.sectionIndex) === A && ((z = ft(a)) == null ? void 0 : z.componentIndex) === F }])
|
|
806
813
|
}, [
|
|
807
814
|
oe("div", Td, [
|
|
808
815
|
p[0] || (p[0] = oe("div", { class: "text-xs text-gray-600" }, "Sub-module", -1)),
|
|
@@ -817,8 +824,8 @@ const df = { render: ff }, hf = {
|
|
|
817
824
|
]))), 256))
|
|
818
825
|
]),
|
|
819
826
|
oe("div", Rd, [
|
|
820
|
-
ft(a) ? pt("", !0) : (be(),
|
|
821
|
-
(be(),
|
|
827
|
+
ft(a) ? pt("", !0) : (be(), On(Gc, { key: 0 })),
|
|
828
|
+
(be(), On(ri(d.value), {
|
|
822
829
|
key: ((v = ft(a)) == null ? void 0 : v.sectionIndex) + ((b = ft(a)) == null ? void 0 : b.componentIndex),
|
|
823
830
|
data: ft(a),
|
|
824
831
|
sites: n.sites,
|
|
@@ -833,7 +840,7 @@ const df = { render: ff }, hf = {
|
|
|
833
840
|
class: "w-[200px] py-[9px] bg-white rounded-full border border-gray-300 shadow-xs text-md font-semibold hover:bg-gray-100 text-gray-700 text-center cursor-pointer"
|
|
834
841
|
}, " Cancel "),
|
|
835
842
|
oe("a", {
|
|
836
|
-
onClick:
|
|
843
|
+
onClick: Ma(c, ["prevent"]),
|
|
837
844
|
class: "w-full py-[9px] rounded-full shadow-xs text-md font-semibold text-white bg-brand-600 hover:bg-brand-700 border border-brand-600 text-center cursor-pointer"
|
|
838
845
|
}, "Save changes")
|
|
839
846
|
])
|
|
@@ -863,7 +870,7 @@ const $l = { render: Ld };
|
|
|
863
870
|
* (c) 2025
|
|
864
871
|
* @license MIT
|
|
865
872
|
*/
|
|
866
|
-
const _l = ["viewport", "carousel"],
|
|
873
|
+
const _l = ["viewport", "carousel"], Ys = {
|
|
867
874
|
"bottom-to-top": "btt",
|
|
868
875
|
"left-to-right": "ltr",
|
|
869
876
|
"right-to-left": "rtl",
|
|
@@ -894,7 +901,7 @@ const _l = ["viewport", "carousel"], Zs = {
|
|
|
894
901
|
"end",
|
|
895
902
|
"center-even",
|
|
896
903
|
"center-odd"
|
|
897
|
-
], lo = 10,
|
|
904
|
+
], lo = 10, Ls = 0.3, lt = {
|
|
898
905
|
autoplay: 0,
|
|
899
906
|
breakpointMode: _l[0],
|
|
900
907
|
breakpoints: void 0,
|
|
@@ -917,7 +924,7 @@ const _l = ["viewport", "carousel"], Zs = {
|
|
|
917
924
|
transition: 300,
|
|
918
925
|
wrapAround: !1
|
|
919
926
|
}, Zn = Symbol("carousel"), Pd = (n) => {
|
|
920
|
-
const e =
|
|
927
|
+
const e = ta([]), t = (r) => {
|
|
921
928
|
r !== void 0 ? e.slice(r).forEach((s, o) => {
|
|
922
929
|
var a;
|
|
923
930
|
(a = s.exposed) === null || a === void 0 || a.setIndex(r + o);
|
|
@@ -983,7 +990,7 @@ function Ud(n) {
|
|
|
983
990
|
const l = i < 1 ? Math.sign(u) : Math.round(u);
|
|
984
991
|
return t ? l : -l;
|
|
985
992
|
}
|
|
986
|
-
function
|
|
993
|
+
function Sn({ val: n, max: e, min: t }) {
|
|
987
994
|
return e < t ? n : Math.min(Math.max(n, isNaN(t) ? n : t), isNaN(e) ? n : e);
|
|
988
995
|
}
|
|
989
996
|
function Dd(n) {
|
|
@@ -1027,7 +1034,7 @@ function _d(n, e, t) {
|
|
|
1027
1034
|
return 0;
|
|
1028
1035
|
}
|
|
1029
1036
|
}
|
|
1030
|
-
function
|
|
1037
|
+
function ra({ slideSize: n, viewportSize: e, align: t, itemsToShow: r }) {
|
|
1031
1038
|
return r !== void 0 ? $d(t, r) : n !== void 0 && e !== void 0 ? _d(t, n, e) : 0;
|
|
1032
1039
|
}
|
|
1033
1040
|
function Vl(n = "", e = {}) {
|
|
@@ -1037,7 +1044,7 @@ function Gl({ val: n, max: e, min: t = 0 }) {
|
|
|
1037
1044
|
const r = e - t + 1;
|
|
1038
1045
|
return ((n - t) % r + r) % r + t;
|
|
1039
1046
|
}
|
|
1040
|
-
function
|
|
1047
|
+
function sa(n, e = 0) {
|
|
1041
1048
|
let t = !1, r = 0, s = null;
|
|
1042
1049
|
function o(...a) {
|
|
1043
1050
|
if (t)
|
|
@@ -1054,14 +1061,14 @@ function ia(n, e = 0) {
|
|
|
1054
1061
|
s && (cancelAnimationFrame(s), s = null, t = !1);
|
|
1055
1062
|
}, o;
|
|
1056
1063
|
}
|
|
1057
|
-
function
|
|
1064
|
+
function ks(n, e = "px") {
|
|
1058
1065
|
if (!(n == null || n === ""))
|
|
1059
1066
|
return typeof n == "number" || parseFloat(n).toString() === n ? `${n}${e}` : n;
|
|
1060
1067
|
}
|
|
1061
1068
|
const qd = nr({
|
|
1062
1069
|
name: "CarouselAria",
|
|
1063
1070
|
setup() {
|
|
1064
|
-
const n =
|
|
1071
|
+
const n = hs(Zn);
|
|
1065
1072
|
return n ? () => wt("div", {
|
|
1066
1073
|
class: ["carousel__liveregion", "carousel__sr-only"],
|
|
1067
1074
|
"aria-live": "polite",
|
|
@@ -1084,7 +1091,7 @@ function zd(n) {
|
|
|
1084
1091
|
t.x = e ? c.touches[0].clientX : c.clientX, t.y = e ? c.touches[0].clientY : c.clientY;
|
|
1085
1092
|
const g = e ? "touchmove" : "mousemove", p = e ? "touchend" : "mouseup";
|
|
1086
1093
|
document.addEventListener(g, i, { passive: !1 }), document.addEventListener(p, l, { passive: !0 }), (d = n.onDragStart) === null || d === void 0 || d.call(n);
|
|
1087
|
-
}, i =
|
|
1094
|
+
}, i = sa((c) => {
|
|
1088
1095
|
var d;
|
|
1089
1096
|
if (e && c.touches.length > 1)
|
|
1090
1097
|
return;
|
|
@@ -1162,7 +1169,7 @@ const Gd = {
|
|
|
1162
1169
|
validator(n, e) {
|
|
1163
1170
|
if (!ql.includes(n))
|
|
1164
1171
|
return !1;
|
|
1165
|
-
const t = n in
|
|
1172
|
+
const t = n in Ys ? Ys[n] : n;
|
|
1166
1173
|
return ["ttb", "btt"].includes(t) && (!e.height || e.height === "auto") && console.warn(`[vue3-carousel]: The dir "${n}" is not supported with height "auto".`), !0;
|
|
1167
1174
|
}
|
|
1168
1175
|
},
|
|
@@ -1277,28 +1284,28 @@ const Gd = {
|
|
|
1277
1284
|
],
|
|
1278
1285
|
setup(n, { slots: e, emit: t, expose: r }) {
|
|
1279
1286
|
var s;
|
|
1280
|
-
const o = Pd(t), a = o.getSlides(), u = je(() => a.length), i = _e(null), l = _e(null), c = _e(0), d = je(() => Object.assign(Object.assign(Object.assign({}, lt), Bd(n, ["breakpoints", "modelValue"])), { i18n: Object.assign(Object.assign({}, lt.i18n), n.i18n) })), f =
|
|
1287
|
+
const o = Pd(t), a = o.getSlides(), u = je(() => a.length), i = _e(null), l = _e(null), c = _e(0), d = je(() => Object.assign(Object.assign(Object.assign({}, lt), Bd(n, ["breakpoints", "modelValue"])), { i18n: Object.assign(Object.assign({}, lt.i18n), n.i18n) })), f = ta(Object.assign({}, d.value)), g = _e((s = n.modelValue) !== null && s !== void 0 ? s : 0), p = _e(g.value);
|
|
1281
1288
|
Wr(g, (pe) => p.value = pe);
|
|
1282
1289
|
const v = _e(0), b = je(() => Math.ceil((u.value - 1) / 2)), S = je(() => u.value - 1), A = je(() => 0);
|
|
1283
1290
|
let C = null, F = null, M = null;
|
|
1284
1291
|
const z = je(() => c.value + f.gap), K = je(() => {
|
|
1285
1292
|
const pe = f.dir || "ltr";
|
|
1286
|
-
return pe in
|
|
1293
|
+
return pe in Ys ? Ys[pe] : pe;
|
|
1287
1294
|
}), H = je(() => ["rtl", "btt"].includes(K.value)), ne = je(() => ["ttb", "btt"].includes(K.value)), V = je(() => f.itemsToShow === "auto"), x = je(() => ne.value ? "height" : "width");
|
|
1288
1295
|
function P() {
|
|
1289
1296
|
var pe;
|
|
1290
1297
|
if (!he.value)
|
|
1291
1298
|
return;
|
|
1292
1299
|
const xe = (d.value.breakpointMode === "carousel" ? (pe = i.value) === null || pe === void 0 ? void 0 : pe.getBoundingClientRect().width : typeof window < "u" ? window.innerWidth : 0) || 0, Ie = Object.keys(n.breakpoints || {}).map((ke) => Number(ke)).sort((ke, Ge) => +Ge - +ke), Pe = {};
|
|
1293
|
-
Ie.some((ke) => xe >= ke ? (Object.assign(Pe, n.breakpoints[ke]), Pe.i18n && Object.assign(Pe.i18n, d.value.i18n, n.breakpoints[ke].i18n), !0) : !1), Object.assign(f, d.value, Pe), V.value || (f.itemsToShow =
|
|
1300
|
+
Ie.some((ke) => xe >= ke ? (Object.assign(Pe, n.breakpoints[ke]), Pe.i18n && Object.assign(Pe.i18n, d.value.i18n, n.breakpoints[ke].i18n), !0) : !1), Object.assign(f, d.value, Pe), V.value || (f.itemsToShow = Sn({
|
|
1294
1301
|
val: Number(f.itemsToShow),
|
|
1295
1302
|
max: n.clamp ? u.value : 1 / 0,
|
|
1296
1303
|
min: 1
|
|
1297
1304
|
}));
|
|
1298
1305
|
}
|
|
1299
|
-
const O =
|
|
1306
|
+
const O = sa(() => {
|
|
1300
1307
|
P(), J(), Q();
|
|
1301
|
-
}), _ =
|
|
1308
|
+
}), _ = ta(/* @__PURE__ */ new Set()), D = _e([]);
|
|
1302
1309
|
function j({ widthMultiplier: pe, heightMultiplier: xe }) {
|
|
1303
1310
|
D.value = a.map((Ie) => {
|
|
1304
1311
|
var Pe;
|
|
@@ -1333,14 +1340,14 @@ const Gd = {
|
|
|
1333
1340
|
}
|
|
1334
1341
|
}
|
|
1335
1342
|
function J() {
|
|
1336
|
-
!f.wrapAround && u.value > 0 && (g.value =
|
|
1343
|
+
!f.wrapAround && u.value > 0 && (g.value = Sn({
|
|
1337
1344
|
val: g.value,
|
|
1338
1345
|
max: S.value,
|
|
1339
1346
|
min: A.value
|
|
1340
1347
|
}));
|
|
1341
1348
|
}
|
|
1342
1349
|
const ge = je(() => typeof n.ignoreAnimations == "string" ? n.ignoreAnimations.split(",") : Array.isArray(n.ignoreAnimations) ? n.ignoreAnimations : n.ignoreAnimations ? !1 : []);
|
|
1343
|
-
|
|
1350
|
+
Mi(() => J()), Mi(() => {
|
|
1344
1351
|
Q();
|
|
1345
1352
|
});
|
|
1346
1353
|
let ve;
|
|
@@ -1358,14 +1365,14 @@ const Gd = {
|
|
|
1358
1365
|
const xe = pe.target;
|
|
1359
1366
|
xe && _.delete(xe), ve && _.size === 0 && (cancelAnimationFrame(ve), Q());
|
|
1360
1367
|
}, he = _e(!1);
|
|
1361
|
-
typeof document < "u" &&
|
|
1368
|
+
typeof document < "u" && Mi(() => {
|
|
1362
1369
|
he.value && ge.value !== !1 ? (document.addEventListener("animationstart", me), document.addEventListener("animationend", Ee)) : (document.removeEventListener("animationstart", me), document.removeEventListener("animationend", Ee));
|
|
1363
|
-
}),
|
|
1370
|
+
}), si(() => {
|
|
1364
1371
|
he.value = !0, P(), m(), i.value && (M = new ResizeObserver(O), M.observe(i.value)), t("init");
|
|
1365
1372
|
}), Pl(() => {
|
|
1366
1373
|
he.value = !1, o.cleanup(), F && clearTimeout(F), ve && cancelAnimationFrame(ve), C && clearInterval(C), M && (M.disconnect(), M = null), typeof document < "u" && E(), i.value && (i.value.removeEventListener("transitionend", Q), i.value.removeEventListener("animationiteration", Q));
|
|
1367
1374
|
});
|
|
1368
|
-
const { isHover: Re, handleMouseEnter: ye, handleMouseLeave: T } = Hd(), R =
|
|
1375
|
+
const { isHover: Re, handleMouseEnter: ye, handleMouseLeave: T } = Hd(), R = sa((pe) => {
|
|
1369
1376
|
if (!pe.ctrlKey)
|
|
1370
1377
|
switch (pe.key) {
|
|
1371
1378
|
case "ArrowLeft":
|
|
@@ -1396,14 +1403,14 @@ const Gd = {
|
|
|
1396
1403
|
const k = _e(!1), U = ({ deltaX: pe, deltaY: xe, isTouch: Ie }) => {
|
|
1397
1404
|
var Pe, ke, Ge, Je;
|
|
1398
1405
|
t("drag", { deltaX: pe, deltaY: xe });
|
|
1399
|
-
const it = Ie ? typeof f.touchDrag == "object" && (ke = (Pe = f.touchDrag) === null || Pe === void 0 ? void 0 : Pe.threshold) !== null && ke !== void 0 ? ke :
|
|
1406
|
+
const it = Ie ? typeof f.touchDrag == "object" && (ke = (Pe = f.touchDrag) === null || Pe === void 0 ? void 0 : Pe.threshold) !== null && ke !== void 0 ? ke : Ls : typeof f.mouseDrag == "object" && (Je = (Ge = f.mouseDrag) === null || Ge === void 0 ? void 0 : Ge.threshold) !== null && Je !== void 0 ? Je : Ls, yt = Ud({
|
|
1400
1407
|
isVertical: ne.value,
|
|
1401
1408
|
isReversed: H.value,
|
|
1402
1409
|
dragged: { x: pe, y: xe },
|
|
1403
1410
|
effectiveSlideSize: z.value,
|
|
1404
1411
|
threshold: it
|
|
1405
1412
|
});
|
|
1406
|
-
yt !== 0 && (p.value = f.wrapAround ? g.value + yt :
|
|
1413
|
+
yt !== 0 && (p.value = f.wrapAround ? g.value + yt : Sn({
|
|
1407
1414
|
val: g.value + yt,
|
|
1408
1415
|
max: S.value,
|
|
1409
1416
|
min: A.value
|
|
@@ -1434,7 +1441,7 @@ const Gd = {
|
|
|
1434
1441
|
val: Ie,
|
|
1435
1442
|
max: S.value,
|
|
1436
1443
|
min: A.value
|
|
1437
|
-
}) : Ie =
|
|
1444
|
+
}) : Ie = Sn({
|
|
1438
1445
|
val: Ie,
|
|
1439
1446
|
max: S.value,
|
|
1440
1447
|
min: A.value
|
|
@@ -1476,13 +1483,13 @@ const Gd = {
|
|
|
1476
1483
|
var pe;
|
|
1477
1484
|
if (V.value) {
|
|
1478
1485
|
const xe = (g.value % a.length + a.length) % a.length;
|
|
1479
|
-
return
|
|
1486
|
+
return ra({
|
|
1480
1487
|
slideSize: (pe = D.value[xe]) === null || pe === void 0 ? void 0 : pe[x.value],
|
|
1481
1488
|
viewportSize: W.value[x.value],
|
|
1482
1489
|
align: f.snapAlign
|
|
1483
1490
|
});
|
|
1484
1491
|
}
|
|
1485
|
-
return
|
|
1492
|
+
return ra({
|
|
1486
1493
|
align: f.snapAlign,
|
|
1487
1494
|
itemsToShow: +f.itemsToShow
|
|
1488
1495
|
});
|
|
@@ -1491,7 +1498,7 @@ const Gd = {
|
|
|
1491
1498
|
if (V.value) {
|
|
1492
1499
|
if (g.value < 0 ? pe = D.value.slice(g.value).reduce((xe, Ie) => xe + Ie[x.value] + f.gap, 0) * -1 : pe = D.value.slice(0, g.value).reduce((xe, Ie) => xe + Ie[x.value] + f.gap, 0), pe -= Ve.value, !f.wrapAround) {
|
|
1493
1500
|
const xe = D.value.reduce((Ie, Pe) => Ie + Pe[x.value] + f.gap, 0) - W.value[x.value] - f.gap;
|
|
1494
|
-
pe =
|
|
1501
|
+
pe = Sn({
|
|
1495
1502
|
val: pe,
|
|
1496
1503
|
max: xe,
|
|
1497
1504
|
min: 0
|
|
@@ -1499,7 +1506,7 @@ const Gd = {
|
|
|
1499
1506
|
}
|
|
1500
1507
|
} else {
|
|
1501
1508
|
let xe = g.value - Ve.value;
|
|
1502
|
-
f.wrapAround || (xe =
|
|
1509
|
+
f.wrapAround || (xe = Sn({
|
|
1503
1510
|
val: xe,
|
|
1504
1511
|
max: u.value - +f.itemsToShow,
|
|
1505
1512
|
min: 0
|
|
@@ -1514,12 +1521,12 @@ const Gd = {
|
|
|
1514
1521
|
min: Math.floor(ke),
|
|
1515
1522
|
max: Math.ceil(ke + Number(f.itemsToShow) - 1)
|
|
1516
1523
|
} : {
|
|
1517
|
-
min: Math.floor(
|
|
1524
|
+
min: Math.floor(Sn({
|
|
1518
1525
|
val: ke,
|
|
1519
1526
|
max: u.value - Number(f.itemsToShow),
|
|
1520
1527
|
min: 0
|
|
1521
1528
|
})),
|
|
1522
|
-
max: Math.ceil(
|
|
1529
|
+
max: Math.ceil(Sn({
|
|
1523
1530
|
val: ke + Number(f.itemsToShow) - 1,
|
|
1524
1531
|
max: u.value - 1,
|
|
1525
1532
|
min: 0
|
|
@@ -1558,7 +1565,7 @@ const Gd = {
|
|
|
1558
1565
|
let Pe = 0;
|
|
1559
1566
|
V.value ? Pe = D.value.reduce((Je, it) => Je + it[x.value], 0) : Pe = (u.value - Number(f.itemsToShow)) * z.value;
|
|
1560
1567
|
const ke = H.value ? 0 : -1 * Pe, Ge = H.value ? Pe : 0;
|
|
1561
|
-
Ie =
|
|
1568
|
+
Ie = Sn({
|
|
1562
1569
|
val: Ie,
|
|
1563
1570
|
min: ke,
|
|
1564
1571
|
max: Ge
|
|
@@ -1566,10 +1573,10 @@ const Gd = {
|
|
|
1566
1573
|
}
|
|
1567
1574
|
return `translate${pe}(${Ie}px)`;
|
|
1568
1575
|
}), St = je(() => ({
|
|
1569
|
-
"--vc-carousel-height":
|
|
1570
|
-
"--vc-cloned-offset":
|
|
1571
|
-
"--vc-slide-gap":
|
|
1572
|
-
"--vc-transition-duration": k.value ?
|
|
1576
|
+
"--vc-carousel-height": ks(f.height),
|
|
1577
|
+
"--vc-cloned-offset": ks(Me.value),
|
|
1578
|
+
"--vc-slide-gap": ks(f.gap),
|
|
1579
|
+
"--vc-transition-duration": k.value ? ks(f.transition, "ms") : void 0
|
|
1573
1580
|
})), Be = Zr({
|
|
1574
1581
|
activeSlide: p,
|
|
1575
1582
|
config: f,
|
|
@@ -1654,10 +1661,10 @@ const Gd = {
|
|
|
1654
1661
|
};
|
|
1655
1662
|
}
|
|
1656
1663
|
});
|
|
1657
|
-
var
|
|
1664
|
+
var ia;
|
|
1658
1665
|
(function(n) {
|
|
1659
1666
|
n.arrowDown = "arrowDown", n.arrowLeft = "arrowLeft", n.arrowRight = "arrowRight", n.arrowUp = "arrowUp";
|
|
1660
|
-
})(
|
|
1667
|
+
})(ia || (ia = {}));
|
|
1661
1668
|
const fo = (n) => `icon${n.charAt(0).toUpperCase() + n.slice(1)}`, Kd = {
|
|
1662
1669
|
arrowDown: "M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",
|
|
1663
1670
|
arrowLeft: "M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z",
|
|
@@ -1665,7 +1672,7 @@ const fo = (n) => `icon${n.charAt(0).toUpperCase() + n.slice(1)}`, Kd = {
|
|
|
1665
1672
|
arrowUp: "M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"
|
|
1666
1673
|
};
|
|
1667
1674
|
function Xd(n) {
|
|
1668
|
-
return n in
|
|
1675
|
+
return n in ia;
|
|
1669
1676
|
}
|
|
1670
1677
|
const ho = (n) => n && Xd(n), po = nr({
|
|
1671
1678
|
props: {
|
|
@@ -1680,7 +1687,7 @@ const ho = (n) => n && Xd(n), po = nr({
|
|
|
1680
1687
|
}
|
|
1681
1688
|
},
|
|
1682
1689
|
setup(n) {
|
|
1683
|
-
const e =
|
|
1690
|
+
const e = hs(Zn, null);
|
|
1684
1691
|
return () => {
|
|
1685
1692
|
const t = n.name;
|
|
1686
1693
|
if (!t || !ho(t))
|
|
@@ -1704,7 +1711,7 @@ nr({
|
|
|
1704
1711
|
}
|
|
1705
1712
|
},
|
|
1706
1713
|
setup(n, { slots: e, attrs: t }) {
|
|
1707
|
-
let r =
|
|
1714
|
+
let r = hs(Zn, null);
|
|
1708
1715
|
const { next: s, prev: o } = e, a = () => ({
|
|
1709
1716
|
btt: "arrowDown",
|
|
1710
1717
|
ltr: "arrowLeft",
|
|
@@ -1746,8 +1753,8 @@ nr({
|
|
|
1746
1753
|
}
|
|
1747
1754
|
},
|
|
1748
1755
|
setup(n) {
|
|
1749
|
-
let e =
|
|
1750
|
-
const t = je(() => e.config.itemsToShow), r = je(() =>
|
|
1756
|
+
let e = hs(Zn, null);
|
|
1757
|
+
const t = je(() => e.config.itemsToShow), r = je(() => ra({
|
|
1751
1758
|
align: e.config.snapAlign,
|
|
1752
1759
|
itemsToShow: t.value
|
|
1753
1760
|
})), s = je(() => n.paginateByItemsToShow && t.value > 1), o = je(() => Math.ceil((e.activeSlide - r.value) / t.value)), a = je(() => Math.ceil(e.slidesCount / t.value)), u = (i) => Gl(s.value ? {
|
|
@@ -1803,7 +1810,7 @@ const Yd = nr({
|
|
|
1803
1810
|
}
|
|
1804
1811
|
},
|
|
1805
1812
|
setup(n, { attrs: e, slots: t, expose: r }) {
|
|
1806
|
-
const s =
|
|
1813
|
+
const s = hs(Zn);
|
|
1807
1814
|
if (Fl(Zn, void 0), !s)
|
|
1808
1815
|
return () => "";
|
|
1809
1816
|
const o = _e(n.index), a = (p) => {
|
|
@@ -1825,7 +1832,7 @@ const Yd = nr({
|
|
|
1825
1832
|
});
|
|
1826
1833
|
return s.slideRegistry.registerSlide(u, n.index), Mc(() => {
|
|
1827
1834
|
s.slideRegistry.unregisterSlide(u);
|
|
1828
|
-
}), n.isClone && (
|
|
1835
|
+
}), n.isClone && (si(() => {
|
|
1829
1836
|
co(u.vnode);
|
|
1830
1837
|
}), Bc(() => {
|
|
1831
1838
|
co(u.vnode);
|
|
@@ -1878,14 +1885,14 @@ const Yd = nr({
|
|
|
1878
1885
|
"wrap-around": !0
|
|
1879
1886
|
}, {
|
|
1880
1887
|
default: Bt(() => [
|
|
1881
|
-
(be(!0), Te(Pt, null, rn(r.value.data, (a, u) => (be(),
|
|
1888
|
+
(be(!0), Te(Pt, null, rn(r.value.data, (a, u) => (be(), On(ft(Yd), { key: u }, {
|
|
1882
1889
|
default: Bt(() => [
|
|
1883
1890
|
oe("div", Qd, [
|
|
1884
1891
|
oe("div", Jd, [
|
|
1885
1892
|
oe("div", eh, [
|
|
1886
1893
|
r.value.data.length > 1 ? (be(!0), Te(Pt, { key: 0 }, rn(r.value.data, (i, l) => (be(), Te("a", {
|
|
1887
1894
|
onClick: (c) => t.value = l,
|
|
1888
|
-
class:
|
|
1895
|
+
class: Rn(["w-4 h-1 bg-navy-400 rounded-full cursor-pointer", { "!w-12 !bg-white": t.value === l }])
|
|
1889
1896
|
}, null, 10, th))), 256)) : pt("", !0)
|
|
1890
1897
|
]),
|
|
1891
1898
|
oe("h3", nh, tt(a == null ? void 0 : a.title), 1),
|
|
@@ -1908,7 +1915,7 @@ const Yd = nr({
|
|
|
1908
1915
|
href: a.primary_button.link_to,
|
|
1909
1916
|
target: a.primary_button.open_in_new_tab ? "_blank" : ""
|
|
1910
1917
|
}, [
|
|
1911
|
-
|
|
1918
|
+
Ba(tt(a.primary_button.label) + " ", 1),
|
|
1912
1919
|
qe(ft($l), { class: "w-5 h-5" })
|
|
1913
1920
|
], 8, ah)) : pt("", !0)
|
|
1914
1921
|
])
|
|
@@ -1928,7 +1935,7 @@ const Yd = nr({
|
|
|
1928
1935
|
}, 8, ["modelValue"])
|
|
1929
1936
|
]));
|
|
1930
1937
|
}
|
|
1931
|
-
}, uh = /* @__PURE__ */
|
|
1938
|
+
}, uh = /* @__PURE__ */ ii(lh, [["__scopeId", "data-v-208c52d9"]]), ch = { class: "flex justify-center h-[136px] w-full relative rounded-b-[48px] bg-navy-600 -mt-12 gap-[60px]" }, fh = ["target", "href"], dh = {
|
|
1932
1939
|
__name: "VLinkPresenter",
|
|
1933
1940
|
props: {
|
|
1934
1941
|
component: {
|
|
@@ -1959,12 +1966,12 @@ const Yd = nr({
|
|
|
1959
1966
|
},
|
|
1960
1967
|
setup(n) {
|
|
1961
1968
|
const t = _e(n.section), r = _e({
|
|
1962
|
-
sliders:
|
|
1963
|
-
links:
|
|
1969
|
+
sliders: ss(uh),
|
|
1970
|
+
links: ss(dh)
|
|
1964
1971
|
}), s = (o) => o != null && o.type ? r.value[o == null ? void 0 : o.type] : "";
|
|
1965
1972
|
return (o, a) => (be(), Te("div", hh, [
|
|
1966
1973
|
(be(!0), Te(Pt, null, rn(t.value.components, (u, i) => (be(), Te("div", null, [
|
|
1967
|
-
(be(),
|
|
1974
|
+
(be(), On(ri(s(u)), {
|
|
1968
1975
|
key: i,
|
|
1969
1976
|
component: u
|
|
1970
1977
|
}, null, 8, ["component"]))
|
|
@@ -1981,17 +1988,17 @@ const Yd = nr({
|
|
|
1981
1988
|
},
|
|
1982
1989
|
setup(n) {
|
|
1983
1990
|
const e = _e({
|
|
1984
|
-
header:
|
|
1991
|
+
header: ss(ph)
|
|
1985
1992
|
}), t = (r) => r != null && r.type ? e.value[r == null ? void 0 : r.type] : "";
|
|
1986
1993
|
return (r, s) => (be(!0), Te(Pt, null, rn(n.page.sections, (o, a) => (be(), Te("div", null, [
|
|
1987
|
-
(be(),
|
|
1994
|
+
(be(), On(ri(t(o)), {
|
|
1988
1995
|
key: a,
|
|
1989
1996
|
section: o
|
|
1990
1997
|
}, null, 8, ["section"]))
|
|
1991
1998
|
]))), 256));
|
|
1992
1999
|
}
|
|
1993
2000
|
};
|
|
1994
|
-
var Wl = typeof global == "object" && global && global.Object === Object && global, gh = typeof self == "object" && self && self.Object === Object && self,
|
|
2001
|
+
var Wl = typeof global == "object" && global && global.Object === Object && global, gh = typeof self == "object" && self && self.Object === Object && self, yn = Wl || gh || Function("return this")(), qn = yn.Symbol, Kl = Object.prototype, vh = Kl.hasOwnProperty, mh = Kl.toString, zr = qn ? qn.toStringTag : void 0;
|
|
1995
2002
|
function yh(n) {
|
|
1996
2003
|
var e = vh.call(n, zr), t = n[zr];
|
|
1997
2004
|
try {
|
|
@@ -2028,8 +2035,8 @@ function Ua(n) {
|
|
|
2028
2035
|
var e = Br(n);
|
|
2029
2036
|
return e == Th || e == Oh || e == Sh || e == Nh;
|
|
2030
2037
|
}
|
|
2031
|
-
var
|
|
2032
|
-
var n = /[^.]+$/.exec(
|
|
2038
|
+
var Bi = yn["__core-js_shared__"], vo = function() {
|
|
2039
|
+
var n = /[^.]+$/.exec(Bi && Bi.keys && Bi.keys.IE_PROTO || "");
|
|
2033
2040
|
return n ? "Symbol(src)_1." + n : "";
|
|
2034
2041
|
}();
|
|
2035
2042
|
function Rh(n) {
|
|
@@ -2065,7 +2072,7 @@ function sr(n, e) {
|
|
|
2065
2072
|
var t = jh(n, e);
|
|
2066
2073
|
return Dh(t) ? t : void 0;
|
|
2067
2074
|
}
|
|
2068
|
-
var
|
|
2075
|
+
var aa = sr(yn, "WeakMap"), mo = Object.create, $h = /* @__PURE__ */ function() {
|
|
2069
2076
|
function n() {
|
|
2070
2077
|
}
|
|
2071
2078
|
return function(e) {
|
|
@@ -2115,14 +2122,14 @@ function Wh(n) {
|
|
|
2115
2122
|
return n;
|
|
2116
2123
|
};
|
|
2117
2124
|
}
|
|
2118
|
-
var
|
|
2125
|
+
var Zs = function() {
|
|
2119
2126
|
try {
|
|
2120
2127
|
var n = sr(Object, "defineProperty");
|
|
2121
2128
|
return n({}, "", {}), n;
|
|
2122
2129
|
} catch {
|
|
2123
2130
|
}
|
|
2124
|
-
}(), Kh =
|
|
2125
|
-
return
|
|
2131
|
+
}(), Kh = Zs ? function(n, e) {
|
|
2132
|
+
return Zs(n, "toString", {
|
|
2126
2133
|
configurable: !0,
|
|
2127
2134
|
enumerable: !1,
|
|
2128
2135
|
value: Wh(e),
|
|
@@ -2140,20 +2147,20 @@ function Yl(n, e) {
|
|
|
2140
2147
|
return e = e ?? Zh, !!e && (t == "number" || t != "symbol" && Qh.test(n)) && n > -1 && n % 1 == 0 && n < e;
|
|
2141
2148
|
}
|
|
2142
2149
|
function Da(n, e, t) {
|
|
2143
|
-
e == "__proto__" &&
|
|
2150
|
+
e == "__proto__" && Zs ? Zs(n, e, {
|
|
2144
2151
|
configurable: !0,
|
|
2145
2152
|
enumerable: !0,
|
|
2146
2153
|
value: t,
|
|
2147
2154
|
writable: !0
|
|
2148
2155
|
}) : n[e] = t;
|
|
2149
2156
|
}
|
|
2150
|
-
function
|
|
2157
|
+
function ps(n, e) {
|
|
2151
2158
|
return n === e || n !== n && e !== e;
|
|
2152
2159
|
}
|
|
2153
2160
|
var Jh = Object.prototype, ep = Jh.hasOwnProperty;
|
|
2154
2161
|
function Zl(n, e, t) {
|
|
2155
2162
|
var r = n[e];
|
|
2156
|
-
(!(ep.call(n, e) &&
|
|
2163
|
+
(!(ep.call(n, e) && ps(r, t)) || t === void 0 && !(e in n)) && Da(n, e, t);
|
|
2157
2164
|
}
|
|
2158
2165
|
function tp(n, e, t, r) {
|
|
2159
2166
|
var s = !t;
|
|
@@ -2182,14 +2189,14 @@ var sp = 9007199254740991;
|
|
|
2182
2189
|
function Ql(n) {
|
|
2183
2190
|
return typeof n == "number" && n > -1 && n % 1 == 0 && n <= sp;
|
|
2184
2191
|
}
|
|
2185
|
-
function
|
|
2192
|
+
function ai(n) {
|
|
2186
2193
|
return n != null && Ql(n.length) && !Ua(n);
|
|
2187
2194
|
}
|
|
2188
2195
|
function ip(n, e, t) {
|
|
2189
2196
|
if (!zn(t))
|
|
2190
2197
|
return !1;
|
|
2191
2198
|
var r = typeof e;
|
|
2192
|
-
return (r == "number" ?
|
|
2199
|
+
return (r == "number" ? ai(t) && Yl(e, t.length) : r == "string" && e in t) ? ps(t[e], n) : !1;
|
|
2193
2200
|
}
|
|
2194
2201
|
function ap(n) {
|
|
2195
2202
|
return rp(function(e, t) {
|
|
@@ -2215,7 +2222,7 @@ var up = "[object Arguments]";
|
|
|
2215
2222
|
function bo(n) {
|
|
2216
2223
|
return Cn(n) && Br(n) == up;
|
|
2217
2224
|
}
|
|
2218
|
-
var Jl = Object.prototype, cp = Jl.hasOwnProperty, fp = Jl.propertyIsEnumerable,
|
|
2225
|
+
var Jl = Object.prototype, cp = Jl.hasOwnProperty, fp = Jl.propertyIsEnumerable, oa = bo(/* @__PURE__ */ function() {
|
|
2219
2226
|
return arguments;
|
|
2220
2227
|
}()) ? bo : function(n) {
|
|
2221
2228
|
return Cn(n) && cp.call(n, "callee") && !fp.call(n, "callee");
|
|
@@ -2223,7 +2230,7 @@ var Jl = Object.prototype, cp = Jl.hasOwnProperty, fp = Jl.propertyIsEnumerable,
|
|
|
2223
2230
|
function dp() {
|
|
2224
2231
|
return !1;
|
|
2225
2232
|
}
|
|
2226
|
-
var eu = typeof exports == "object" && exports && !exports.nodeType && exports, xo = eu && typeof module == "object" && module && !module.nodeType && module, hp = xo && xo.exports === eu, Eo = hp ?
|
|
2233
|
+
var eu = typeof exports == "object" && exports && !exports.nodeType && exports, xo = eu && typeof module == "object" && module && !module.nodeType && module, hp = xo && xo.exports === eu, Eo = hp ? yn.Buffer : void 0, pp = Eo ? Eo.isBuffer : void 0, is = pp || dp, gp = "[object Arguments]", vp = "[object Array]", mp = "[object Boolean]", yp = "[object Date]", bp = "[object Error]", xp = "[object Function]", Ep = "[object Map]", wp = "[object Number]", Ap = "[object Object]", Sp = "[object RegExp]", Tp = "[object Set]", Op = "[object String]", Np = "[object WeakMap]", Rp = "[object ArrayBuffer]", Cp = "[object DataView]", Ip = "[object Float32Array]", Lp = "[object Float64Array]", kp = "[object Int8Array]", Pp = "[object Int16Array]", Fp = "[object Int32Array]", Mp = "[object Uint8Array]", Bp = "[object Uint8ClampedArray]", Up = "[object Uint16Array]", Dp = "[object Uint32Array]", st = {};
|
|
2227
2234
|
st[Ip] = st[Lp] = st[kp] = st[Pp] = st[Fp] = st[Mp] = st[Bp] = st[Up] = st[Dp] = !0;
|
|
2228
2235
|
st[gp] = st[vp] = st[Rp] = st[mp] = st[Cp] = st[yp] = st[bp] = st[xp] = st[Ep] = st[wp] = st[Ap] = st[Sp] = st[Tp] = st[Op] = st[Np] = !1;
|
|
2229
2236
|
function jp(n) {
|
|
@@ -2234,15 +2241,15 @@ function $a(n) {
|
|
|
2234
2241
|
return n(e);
|
|
2235
2242
|
};
|
|
2236
2243
|
}
|
|
2237
|
-
var tu = typeof exports == "object" && exports && !exports.nodeType && exports, es = tu && typeof module == "object" && module && !module.nodeType && module, $p = es && es.exports === tu,
|
|
2244
|
+
var tu = typeof exports == "object" && exports && !exports.nodeType && exports, es = tu && typeof module == "object" && module && !module.nodeType && module, $p = es && es.exports === tu, Ui = $p && Wl.process, Lr = function() {
|
|
2238
2245
|
try {
|
|
2239
2246
|
var n = es && es.require && es.require("util").types;
|
|
2240
|
-
return n ||
|
|
2247
|
+
return n || Ui && Ui.binding && Ui.binding("util");
|
|
2241
2248
|
} catch {
|
|
2242
2249
|
}
|
|
2243
2250
|
}(), wo = Lr && Lr.isTypedArray, _a = wo ? $a(wo) : jp, _p = Object.prototype, qp = _p.hasOwnProperty;
|
|
2244
2251
|
function nu(n, e) {
|
|
2245
|
-
var t = Qn(n), r = !t &&
|
|
2252
|
+
var t = Qn(n), r = !t && oa(n), s = !t && !r && is(n), o = !t && !r && !s && _a(n), a = t || r || s || o, u = a ? lp(n.length, String) : [], i = u.length;
|
|
2246
2253
|
for (var l in n)
|
|
2247
2254
|
(e || qp.call(n, l)) && !(a && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
2248
2255
|
(l == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
@@ -2266,7 +2273,7 @@ function Gp(n) {
|
|
|
2266
2273
|
return e;
|
|
2267
2274
|
}
|
|
2268
2275
|
function Wp(n) {
|
|
2269
|
-
return
|
|
2276
|
+
return ai(n) ? nu(n) : Gp(n);
|
|
2270
2277
|
}
|
|
2271
2278
|
function Kp(n) {
|
|
2272
2279
|
var e = [];
|
|
@@ -2285,11 +2292,11 @@ function Zp(n) {
|
|
|
2285
2292
|
return t;
|
|
2286
2293
|
}
|
|
2287
2294
|
function su(n) {
|
|
2288
|
-
return
|
|
2295
|
+
return ai(n) ? nu(n, !0) : Zp(n);
|
|
2289
2296
|
}
|
|
2290
|
-
var
|
|
2297
|
+
var as = sr(Object, "create");
|
|
2291
2298
|
function Qp() {
|
|
2292
|
-
this.__data__ =
|
|
2299
|
+
this.__data__ = as ? as(null) : {}, this.size = 0;
|
|
2293
2300
|
}
|
|
2294
2301
|
function Jp(n) {
|
|
2295
2302
|
var e = this.has(n) && delete this.__data__[n];
|
|
@@ -2298,7 +2305,7 @@ function Jp(n) {
|
|
|
2298
2305
|
var eg = "__lodash_hash_undefined__", tg = Object.prototype, ng = tg.hasOwnProperty;
|
|
2299
2306
|
function rg(n) {
|
|
2300
2307
|
var e = this.__data__;
|
|
2301
|
-
if (
|
|
2308
|
+
if (as) {
|
|
2302
2309
|
var t = e[n];
|
|
2303
2310
|
return t === eg ? void 0 : t;
|
|
2304
2311
|
}
|
|
@@ -2307,12 +2314,12 @@ function rg(n) {
|
|
|
2307
2314
|
var sg = Object.prototype, ig = sg.hasOwnProperty;
|
|
2308
2315
|
function ag(n) {
|
|
2309
2316
|
var e = this.__data__;
|
|
2310
|
-
return
|
|
2317
|
+
return as ? e[n] !== void 0 : ig.call(e, n);
|
|
2311
2318
|
}
|
|
2312
2319
|
var og = "__lodash_hash_undefined__";
|
|
2313
2320
|
function lg(n, e) {
|
|
2314
2321
|
var t = this.__data__;
|
|
2315
|
-
return this.size += this.has(n) ? 0 : 1, t[n] =
|
|
2322
|
+
return this.size += this.has(n) ? 0 : 1, t[n] = as && e === void 0 ? og : e, this;
|
|
2316
2323
|
}
|
|
2317
2324
|
function Jn(n) {
|
|
2318
2325
|
var e = -1, t = n == null ? 0 : n.length;
|
|
@@ -2329,29 +2336,29 @@ Jn.prototype.set = lg;
|
|
|
2329
2336
|
function ug() {
|
|
2330
2337
|
this.__data__ = [], this.size = 0;
|
|
2331
2338
|
}
|
|
2332
|
-
function
|
|
2339
|
+
function oi(n, e) {
|
|
2333
2340
|
for (var t = n.length; t--; )
|
|
2334
|
-
if (
|
|
2341
|
+
if (ps(n[t][0], e))
|
|
2335
2342
|
return t;
|
|
2336
2343
|
return -1;
|
|
2337
2344
|
}
|
|
2338
2345
|
var cg = Array.prototype, fg = cg.splice;
|
|
2339
2346
|
function dg(n) {
|
|
2340
|
-
var e = this.__data__, t =
|
|
2347
|
+
var e = this.__data__, t = oi(e, n);
|
|
2341
2348
|
if (t < 0)
|
|
2342
2349
|
return !1;
|
|
2343
2350
|
var r = e.length - 1;
|
|
2344
2351
|
return t == r ? e.pop() : fg.call(e, t, 1), --this.size, !0;
|
|
2345
2352
|
}
|
|
2346
2353
|
function hg(n) {
|
|
2347
|
-
var e = this.__data__, t =
|
|
2354
|
+
var e = this.__data__, t = oi(e, n);
|
|
2348
2355
|
return t < 0 ? void 0 : e[t][1];
|
|
2349
2356
|
}
|
|
2350
2357
|
function pg(n) {
|
|
2351
|
-
return
|
|
2358
|
+
return oi(this.__data__, n) > -1;
|
|
2352
2359
|
}
|
|
2353
2360
|
function gg(n, e) {
|
|
2354
|
-
var t = this.__data__, r =
|
|
2361
|
+
var t = this.__data__, r = oi(t, n);
|
|
2355
2362
|
return r < 0 ? (++this.size, t.push([n, e])) : t[r][1] = e, this;
|
|
2356
2363
|
}
|
|
2357
2364
|
function kn(n) {
|
|
@@ -2366,11 +2373,11 @@ kn.prototype.delete = dg;
|
|
|
2366
2373
|
kn.prototype.get = hg;
|
|
2367
2374
|
kn.prototype.has = pg;
|
|
2368
2375
|
kn.prototype.set = gg;
|
|
2369
|
-
var
|
|
2376
|
+
var os = sr(yn, "Map");
|
|
2370
2377
|
function vg() {
|
|
2371
2378
|
this.size = 0, this.__data__ = {
|
|
2372
2379
|
hash: new Jn(),
|
|
2373
|
-
map: new (
|
|
2380
|
+
map: new (os || kn)(),
|
|
2374
2381
|
string: new Jn()
|
|
2375
2382
|
};
|
|
2376
2383
|
}
|
|
@@ -2378,22 +2385,22 @@ function mg(n) {
|
|
|
2378
2385
|
var e = typeof n;
|
|
2379
2386
|
return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? n !== "__proto__" : n === null;
|
|
2380
2387
|
}
|
|
2381
|
-
function
|
|
2388
|
+
function li(n, e) {
|
|
2382
2389
|
var t = n.__data__;
|
|
2383
2390
|
return mg(e) ? t[typeof e == "string" ? "string" : "hash"] : t.map;
|
|
2384
2391
|
}
|
|
2385
2392
|
function yg(n) {
|
|
2386
|
-
var e =
|
|
2393
|
+
var e = li(this, n).delete(n);
|
|
2387
2394
|
return this.size -= e ? 1 : 0, e;
|
|
2388
2395
|
}
|
|
2389
2396
|
function bg(n) {
|
|
2390
|
-
return
|
|
2397
|
+
return li(this, n).get(n);
|
|
2391
2398
|
}
|
|
2392
2399
|
function xg(n) {
|
|
2393
|
-
return
|
|
2400
|
+
return li(this, n).has(n);
|
|
2394
2401
|
}
|
|
2395
2402
|
function Eg(n, e) {
|
|
2396
|
-
var t =
|
|
2403
|
+
var t = li(this, n), r = t.size;
|
|
2397
2404
|
return t.set(n, e), this.size += t.size == r ? 0 : 1, this;
|
|
2398
2405
|
}
|
|
2399
2406
|
function ir(n) {
|
|
@@ -2441,7 +2448,7 @@ function Fg(n, e) {
|
|
|
2441
2448
|
var t = this.__data__;
|
|
2442
2449
|
if (t instanceof kn) {
|
|
2443
2450
|
var r = t.__data__;
|
|
2444
|
-
if (!
|
|
2451
|
+
if (!os || r.length < Pg - 1)
|
|
2445
2452
|
return r.push([n, e]), this.size = ++t.size, this;
|
|
2446
2453
|
t = this.__data__ = new ir(r);
|
|
2447
2454
|
}
|
|
@@ -2456,7 +2463,7 @@ pn.prototype.delete = Ig;
|
|
|
2456
2463
|
pn.prototype.get = Lg;
|
|
2457
2464
|
pn.prototype.has = kg;
|
|
2458
2465
|
pn.prototype.set = Fg;
|
|
2459
|
-
var ou = typeof exports == "object" && exports && !exports.nodeType && exports, Ao = ou && typeof module == "object" && module && !module.nodeType && module, Mg = Ao && Ao.exports === ou, So = Mg ?
|
|
2466
|
+
var ou = typeof exports == "object" && exports && !exports.nodeType && exports, Ao = ou && typeof module == "object" && module && !module.nodeType && module, Mg = Ao && Ao.exports === ou, So = Mg ? yn.Buffer : void 0, To = So ? So.allocUnsafe : void 0;
|
|
2460
2467
|
function lu(n, e) {
|
|
2461
2468
|
if (e)
|
|
2462
2469
|
return n.slice();
|
|
@@ -2482,11 +2489,11 @@ function _g(n, e, t) {
|
|
|
2482
2489
|
var r = e(n);
|
|
2483
2490
|
return Qn(n) ? r : wg(r, t(n));
|
|
2484
2491
|
}
|
|
2485
|
-
function
|
|
2492
|
+
function la(n) {
|
|
2486
2493
|
return _g(n, Wp, $g);
|
|
2487
2494
|
}
|
|
2488
|
-
var
|
|
2489
|
-
(
|
|
2495
|
+
var ua = sr(yn, "DataView"), ca = sr(yn, "Promise"), fa = sr(yn, "Set"), No = "[object Map]", qg = "[object Object]", Ro = "[object Promise]", Co = "[object Set]", Io = "[object WeakMap]", Lo = "[object DataView]", zg = rr(ua), Hg = rr(os), Vg = rr(ca), Gg = rr(fa), Wg = rr(aa), en = Br;
|
|
2496
|
+
(ua && en(new ua(new ArrayBuffer(1))) != Lo || os && en(new os()) != No || ca && en(ca.resolve()) != Ro || fa && en(new fa()) != Co || aa && en(new aa()) != Io) && (en = function(n) {
|
|
2490
2497
|
var e = Br(n), t = e == qg ? n.constructor : void 0, r = t ? rr(t) : "";
|
|
2491
2498
|
if (r)
|
|
2492
2499
|
switch (r) {
|
|
@@ -2508,10 +2515,10 @@ function Yg(n) {
|
|
|
2508
2515
|
var e = n.length, t = new n.constructor(e);
|
|
2509
2516
|
return e && typeof n[0] == "string" && Xg.call(n, "index") && (t.index = n.index, t.input = n.input), t;
|
|
2510
2517
|
}
|
|
2511
|
-
var
|
|
2518
|
+
var Qs = yn.Uint8Array;
|
|
2512
2519
|
function qa(n) {
|
|
2513
2520
|
var e = new n.constructor(n.byteLength);
|
|
2514
|
-
return new
|
|
2521
|
+
return new Qs(e).set(new Qs(n)), e;
|
|
2515
2522
|
}
|
|
2516
2523
|
function Zg(n, e) {
|
|
2517
2524
|
var t = qa(n.buffer);
|
|
@@ -2578,7 +2585,7 @@ function Tv(n) {
|
|
|
2578
2585
|
var Mo = Lr && Lr.isSet, Ov = Mo ? $a(Mo) : Tv, Nv = 1, fu = "[object Arguments]", Rv = "[object Array]", Cv = "[object Boolean]", Iv = "[object Date]", Lv = "[object Error]", du = "[object Function]", kv = "[object GeneratorFunction]", Pv = "[object Map]", Fv = "[object Number]", hu = "[object Object]", Mv = "[object RegExp]", Bv = "[object Set]", Uv = "[object String]", Dv = "[object Symbol]", jv = "[object WeakMap]", $v = "[object ArrayBuffer]", _v = "[object DataView]", qv = "[object Float32Array]", zv = "[object Float64Array]", Hv = "[object Int8Array]", Vv = "[object Int16Array]", Gv = "[object Int32Array]", Wv = "[object Uint8Array]", Kv = "[object Uint8ClampedArray]", Xv = "[object Uint16Array]", Yv = "[object Uint32Array]", rt = {};
|
|
2579
2586
|
rt[fu] = rt[Rv] = rt[$v] = rt[_v] = rt[Cv] = rt[Iv] = rt[qv] = rt[zv] = rt[Hv] = rt[Vv] = rt[Gv] = rt[Pv] = rt[Fv] = rt[hu] = rt[Mv] = rt[Bv] = rt[Uv] = rt[Dv] = rt[Wv] = rt[Kv] = rt[Xv] = rt[Yv] = !0;
|
|
2580
2587
|
rt[Lv] = rt[du] = rt[jv] = !1;
|
|
2581
|
-
function
|
|
2588
|
+
function Hs(n, e, t, r, s, o) {
|
|
2582
2589
|
var a, u = e & Nv;
|
|
2583
2590
|
if (a !== void 0)
|
|
2584
2591
|
return a;
|
|
@@ -2589,7 +2596,7 @@ function Vs(n, e, t, r, s, o) {
|
|
|
2589
2596
|
a = Yg(n);
|
|
2590
2597
|
else {
|
|
2591
2598
|
var l = en(n), c = l == du || l == kv;
|
|
2592
|
-
if (
|
|
2599
|
+
if (is(n))
|
|
2593
2600
|
return lu(n, u);
|
|
2594
2601
|
if (l == hu || l == fu || c && !s)
|
|
2595
2602
|
a = c ? {} : cu(n);
|
|
@@ -2604,18 +2611,18 @@ function Vs(n, e, t, r, s, o) {
|
|
|
2604
2611
|
if (d)
|
|
2605
2612
|
return d;
|
|
2606
2613
|
o.set(n, a), Ov(n) ? n.forEach(function(p) {
|
|
2607
|
-
a.add(
|
|
2614
|
+
a.add(Hs(p, e, t, p, n, o));
|
|
2608
2615
|
}) : Av(n) && n.forEach(function(p, v) {
|
|
2609
|
-
a.set(v,
|
|
2616
|
+
a.set(v, Hs(p, e, t, v, n, o));
|
|
2610
2617
|
});
|
|
2611
|
-
var f =
|
|
2618
|
+
var f = la, g = i ? void 0 : f(n);
|
|
2612
2619
|
return Yh(g || n, function(p, v) {
|
|
2613
|
-
g && (v = p, p = n[v]), Zl(a, v,
|
|
2620
|
+
g && (v = p, p = n[v]), Zl(a, v, Hs(p, e, t, v, n, o));
|
|
2614
2621
|
}), a;
|
|
2615
2622
|
}
|
|
2616
2623
|
var Zv = 1, Qv = 4;
|
|
2617
2624
|
function Nr(n) {
|
|
2618
|
-
return
|
|
2625
|
+
return Hs(n, Zv | Qv);
|
|
2619
2626
|
}
|
|
2620
2627
|
var Jv = "__lodash_hash_undefined__";
|
|
2621
2628
|
function em(n) {
|
|
@@ -2624,13 +2631,13 @@ function em(n) {
|
|
|
2624
2631
|
function tm(n) {
|
|
2625
2632
|
return this.__data__.has(n);
|
|
2626
2633
|
}
|
|
2627
|
-
function
|
|
2634
|
+
function Js(n) {
|
|
2628
2635
|
var e = -1, t = n == null ? 0 : n.length;
|
|
2629
2636
|
for (this.__data__ = new ir(); ++e < t; )
|
|
2630
2637
|
this.add(n[e]);
|
|
2631
2638
|
}
|
|
2632
|
-
|
|
2633
|
-
|
|
2639
|
+
Js.prototype.add = Js.prototype.push = em;
|
|
2640
|
+
Js.prototype.has = tm;
|
|
2634
2641
|
function nm(n, e) {
|
|
2635
2642
|
for (var t = -1, r = n == null ? 0 : n.length; ++t < r; )
|
|
2636
2643
|
if (e(n[t], t, n))
|
|
@@ -2648,7 +2655,7 @@ function pu(n, e, t, r, s, o) {
|
|
|
2648
2655
|
var l = o.get(n), c = o.get(e);
|
|
2649
2656
|
if (l && c)
|
|
2650
2657
|
return l == e && c == n;
|
|
2651
|
-
var d = -1, f = !0, g = t & im ? new
|
|
2658
|
+
var d = -1, f = !0, g = t & im ? new Js() : void 0;
|
|
2652
2659
|
for (o.set(n, e), o.set(e, n); ++d < u; ) {
|
|
2653
2660
|
var p = n[d], v = e[d];
|
|
2654
2661
|
if (r)
|
|
@@ -2686,7 +2693,7 @@ function om(n) {
|
|
|
2686
2693
|
t[++e] = r;
|
|
2687
2694
|
}), t;
|
|
2688
2695
|
}
|
|
2689
|
-
var lm = 1, um = 2, cm = "[object Boolean]", fm = "[object Date]", dm = "[object Error]", hm = "[object Map]", pm = "[object Number]", gm = "[object RegExp]", vm = "[object Set]", mm = "[object String]", ym = "[object Symbol]", bm = "[object ArrayBuffer]", xm = "[object DataView]", Bo = qn ? qn.prototype : void 0,
|
|
2696
|
+
var lm = 1, um = 2, cm = "[object Boolean]", fm = "[object Date]", dm = "[object Error]", hm = "[object Map]", pm = "[object Number]", gm = "[object RegExp]", vm = "[object Set]", mm = "[object String]", ym = "[object Symbol]", bm = "[object ArrayBuffer]", xm = "[object DataView]", Bo = qn ? qn.prototype : void 0, Di = Bo ? Bo.valueOf : void 0;
|
|
2690
2697
|
function Em(n, e, t, r, s, o, a) {
|
|
2691
2698
|
switch (t) {
|
|
2692
2699
|
case xm:
|
|
@@ -2694,11 +2701,11 @@ function Em(n, e, t, r, s, o, a) {
|
|
|
2694
2701
|
return !1;
|
|
2695
2702
|
n = n.buffer, e = e.buffer;
|
|
2696
2703
|
case bm:
|
|
2697
|
-
return !(n.byteLength != e.byteLength || !o(new
|
|
2704
|
+
return !(n.byteLength != e.byteLength || !o(new Qs(n), new Qs(e)));
|
|
2698
2705
|
case cm:
|
|
2699
2706
|
case fm:
|
|
2700
2707
|
case pm:
|
|
2701
|
-
return
|
|
2708
|
+
return ps(+n, +e);
|
|
2702
2709
|
case dm:
|
|
2703
2710
|
return n.name == e.name && n.message == e.message;
|
|
2704
2711
|
case gm:
|
|
@@ -2717,14 +2724,14 @@ function Em(n, e, t, r, s, o, a) {
|
|
|
2717
2724
|
var c = pu(u(n), u(e), r, s, o, a);
|
|
2718
2725
|
return a.delete(n), c;
|
|
2719
2726
|
case ym:
|
|
2720
|
-
if (
|
|
2721
|
-
return
|
|
2727
|
+
if (Di)
|
|
2728
|
+
return Di.call(n) == Di.call(e);
|
|
2722
2729
|
}
|
|
2723
2730
|
return !1;
|
|
2724
2731
|
}
|
|
2725
2732
|
var wm = 1, Am = Object.prototype, Sm = Am.hasOwnProperty;
|
|
2726
2733
|
function Tm(n, e, t, r, s, o) {
|
|
2727
|
-
var a = t & wm, u =
|
|
2734
|
+
var a = t & wm, u = la(n), i = u.length, l = la(e), c = l.length;
|
|
2728
2735
|
if (i != c && !a)
|
|
2729
2736
|
return !1;
|
|
2730
2737
|
for (var d = i; d--; ) {
|
|
@@ -2754,13 +2761,13 @@ function Tm(n, e, t, r, s, o) {
|
|
|
2754
2761
|
}
|
|
2755
2762
|
return o.delete(n), o.delete(e), v;
|
|
2756
2763
|
}
|
|
2757
|
-
var Om = 1, Uo = "[object Arguments]", Do = "[object Array]",
|
|
2764
|
+
var Om = 1, Uo = "[object Arguments]", Do = "[object Array]", Ps = "[object Object]", Nm = Object.prototype, jo = Nm.hasOwnProperty;
|
|
2758
2765
|
function Rm(n, e, t, r, s, o) {
|
|
2759
2766
|
var a = Qn(n), u = Qn(e), i = a ? Do : en(n), l = u ? Do : en(e);
|
|
2760
|
-
i = i == Uo ?
|
|
2761
|
-
var c = i ==
|
|
2762
|
-
if (f &&
|
|
2763
|
-
if (!
|
|
2767
|
+
i = i == Uo ? Ps : i, l = l == Uo ? Ps : l;
|
|
2768
|
+
var c = i == Ps, d = l == Ps, f = i == l;
|
|
2769
|
+
if (f && is(n)) {
|
|
2770
|
+
if (!is(e))
|
|
2764
2771
|
return !1;
|
|
2765
2772
|
a = !0, c = !1;
|
|
2766
2773
|
}
|
|
@@ -2789,13 +2796,13 @@ function Cm(n) {
|
|
|
2789
2796
|
};
|
|
2790
2797
|
}
|
|
2791
2798
|
var Im = Cm();
|
|
2792
|
-
function
|
|
2793
|
-
(t !== void 0 && !
|
|
2799
|
+
function da(n, e, t) {
|
|
2800
|
+
(t !== void 0 && !ps(n[e], t) || t === void 0 && !(e in n)) && Da(n, e, t);
|
|
2794
2801
|
}
|
|
2795
2802
|
function Lm(n) {
|
|
2796
|
-
return Cn(n) &&
|
|
2803
|
+
return Cn(n) && ai(n);
|
|
2797
2804
|
}
|
|
2798
|
-
function
|
|
2805
|
+
function ha(n, e) {
|
|
2799
2806
|
if (!(e === "constructor" && typeof n[e] == "function") && e != "__proto__")
|
|
2800
2807
|
return n[e];
|
|
2801
2808
|
}
|
|
@@ -2803,25 +2810,25 @@ function km(n) {
|
|
|
2803
2810
|
return tp(n, su(n));
|
|
2804
2811
|
}
|
|
2805
2812
|
function Pm(n, e, t, r, s, o, a) {
|
|
2806
|
-
var u =
|
|
2813
|
+
var u = ha(n, t), i = ha(e, t), l = a.get(i);
|
|
2807
2814
|
if (l) {
|
|
2808
|
-
|
|
2815
|
+
da(n, t, l);
|
|
2809
2816
|
return;
|
|
2810
2817
|
}
|
|
2811
2818
|
var c = o ? o(u, i, t + "", n, e, a) : void 0, d = c === void 0;
|
|
2812
2819
|
if (d) {
|
|
2813
|
-
var f = Qn(i), g = !f &&
|
|
2814
|
-
c = i, f || g || p ? Qn(u) ? c = u : Lm(u) ? c = qh(u) : g ? (d = !1, c = lu(i, !0)) : p ? (d = !1, c = uu(i, !0)) : c = [] : Rg(i) ||
|
|
2820
|
+
var f = Qn(i), g = !f && is(i), p = !f && !g && _a(i);
|
|
2821
|
+
c = i, f || g || p ? Qn(u) ? c = u : Lm(u) ? c = qh(u) : g ? (d = !1, c = lu(i, !0)) : p ? (d = !1, c = uu(i, !0)) : c = [] : Rg(i) || oa(i) ? (c = u, oa(u) ? c = km(u) : (!zn(u) || Ua(u)) && (c = cu(i))) : d = !1;
|
|
2815
2822
|
}
|
|
2816
|
-
d && (a.set(i, c), s(c, i, r, o, a), a.delete(i)),
|
|
2823
|
+
d && (a.set(i, c), s(c, i, r, o, a), a.delete(i)), da(n, t, c);
|
|
2817
2824
|
}
|
|
2818
2825
|
function vu(n, e, t, r, s) {
|
|
2819
2826
|
n !== e && Im(e, function(o, a) {
|
|
2820
2827
|
if (s || (s = new pn()), zn(o))
|
|
2821
2828
|
Pm(n, e, a, t, vu, r, s);
|
|
2822
2829
|
else {
|
|
2823
|
-
var u = r ? r(
|
|
2824
|
-
u === void 0 && (u = o),
|
|
2830
|
+
var u = r ? r(ha(n, a), o, a + "", n, e, s) : void 0;
|
|
2831
|
+
u === void 0 && (u = o), da(n, a, u);
|
|
2825
2832
|
}
|
|
2826
2833
|
}, su);
|
|
2827
2834
|
}
|
|
@@ -2831,7 +2838,7 @@ function za(n, e) {
|
|
|
2831
2838
|
var _n = ap(function(n, e, t) {
|
|
2832
2839
|
vu(n, e, t);
|
|
2833
2840
|
}), Ce = /* @__PURE__ */ ((n) => (n[n.TYPE = 3] = "TYPE", n[n.LEVEL = 12] = "LEVEL", n[n.ATTRIBUTE = 13] = "ATTRIBUTE", n[n.BLOT = 14] = "BLOT", n[n.INLINE = 7] = "INLINE", n[n.BLOCK = 11] = "BLOCK", n[n.BLOCK_BLOT = 10] = "BLOCK_BLOT", n[n.INLINE_BLOT = 6] = "INLINE_BLOT", n[n.BLOCK_ATTRIBUTE = 9] = "BLOCK_ATTRIBUTE", n[n.INLINE_ATTRIBUTE = 5] = "INLINE_ATTRIBUTE", n[n.ANY = 15] = "ANY", n))(Ce || {});
|
|
2834
|
-
class
|
|
2841
|
+
class vn {
|
|
2835
2842
|
constructor(e, t, r = {}) {
|
|
2836
2843
|
this.attrName = e, this.keyName = t;
|
|
2837
2844
|
const s = Ce.TYPE & Ce.ATTRIBUTE;
|
|
@@ -2862,7 +2869,7 @@ class Rr extends Error {
|
|
|
2862
2869
|
e = "[Parchment] " + e, super(e), this.message = e, this.name = this.constructor.name;
|
|
2863
2870
|
}
|
|
2864
2871
|
}
|
|
2865
|
-
const mu = class
|
|
2872
|
+
const mu = class pa {
|
|
2866
2873
|
constructor() {
|
|
2867
2874
|
this.attributes = {}, this.classes = {}, this.tags = {}, this.types = {};
|
|
2868
2875
|
}
|
|
@@ -2890,10 +2897,10 @@ const mu = class ga {
|
|
|
2890
2897
|
// @ts-expect-error Fix me later
|
|
2891
2898
|
t instanceof Node || t.nodeType === Node.TEXT_NODE ? t : o.create(r)
|
|
2892
2899
|
), u = new o(e, a, r);
|
|
2893
|
-
return
|
|
2900
|
+
return pa.blots.set(u.domNode, u), u;
|
|
2894
2901
|
}
|
|
2895
2902
|
find(e, t = !1) {
|
|
2896
|
-
return
|
|
2903
|
+
return pa.find(e, t);
|
|
2897
2904
|
}
|
|
2898
2905
|
query(e, t = Ce.ANY) {
|
|
2899
2906
|
let r;
|
|
@@ -2918,7 +2925,7 @@ let kr = mu;
|
|
|
2918
2925
|
function $o(n, e) {
|
|
2919
2926
|
return (n.getAttribute("class") || "").split(/\s+/).filter((t) => t.indexOf(`${e}-`) === 0);
|
|
2920
2927
|
}
|
|
2921
|
-
class Fm extends
|
|
2928
|
+
class Fm extends vn {
|
|
2922
2929
|
static keys(e) {
|
|
2923
2930
|
return (e.getAttribute("class") || "").split(/\s+/).map((t) => t.split("-").slice(0, -1).join("-"));
|
|
2924
2931
|
}
|
|
@@ -2936,22 +2943,22 @@ class Fm extends mn {
|
|
|
2936
2943
|
}
|
|
2937
2944
|
}
|
|
2938
2945
|
const an = Fm;
|
|
2939
|
-
function
|
|
2946
|
+
function ji(n) {
|
|
2940
2947
|
const e = n.split("-"), t = e.slice(1).map((r) => r[0].toUpperCase() + r.slice(1)).join("");
|
|
2941
2948
|
return e[0] + t;
|
|
2942
2949
|
}
|
|
2943
|
-
class Mm extends
|
|
2950
|
+
class Mm extends vn {
|
|
2944
2951
|
static keys(e) {
|
|
2945
2952
|
return (e.getAttribute("style") || "").split(";").map((t) => t.split(":")[0].trim());
|
|
2946
2953
|
}
|
|
2947
2954
|
add(e, t) {
|
|
2948
|
-
return this.canAdd(e, t) ? (e.style[
|
|
2955
|
+
return this.canAdd(e, t) ? (e.style[ji(this.keyName)] = t, !0) : !1;
|
|
2949
2956
|
}
|
|
2950
2957
|
remove(e) {
|
|
2951
|
-
e.style[
|
|
2958
|
+
e.style[ji(this.keyName)] = "", e.getAttribute("style") || e.removeAttribute("style");
|
|
2952
2959
|
}
|
|
2953
2960
|
value(e) {
|
|
2954
|
-
const t = e.style[
|
|
2961
|
+
const t = e.style[ji(this.keyName)];
|
|
2955
2962
|
return this.canAdd(e, t) ? t : "";
|
|
2956
2963
|
}
|
|
2957
2964
|
}
|
|
@@ -2968,10 +2975,10 @@ class Bm {
|
|
|
2968
2975
|
const e = kr.find(this.domNode);
|
|
2969
2976
|
if (e == null)
|
|
2970
2977
|
return;
|
|
2971
|
-
const t =
|
|
2978
|
+
const t = vn.keys(this.domNode), r = an.keys(this.domNode), s = Hn.keys(this.domNode);
|
|
2972
2979
|
t.concat(r).concat(s).forEach((o) => {
|
|
2973
2980
|
const a = e.scroll.query(o, Ce.ATTRIBUTE);
|
|
2974
|
-
a instanceof
|
|
2981
|
+
a instanceof vn && (this.attributes[a.attrName] = a);
|
|
2975
2982
|
});
|
|
2976
2983
|
}
|
|
2977
2984
|
copy(e) {
|
|
@@ -2992,7 +2999,7 @@ class Bm {
|
|
|
2992
2999
|
);
|
|
2993
3000
|
}
|
|
2994
3001
|
}
|
|
2995
|
-
const
|
|
3002
|
+
const ui = Bm, yu = class {
|
|
2996
3003
|
constructor(e, t) {
|
|
2997
3004
|
this.scroll = e, this.domNode = t, kr.blots.set(t, this), this.prev = null, this.next = null;
|
|
2998
3005
|
}
|
|
@@ -3397,7 +3404,7 @@ const xr = class Er extends nn {
|
|
|
3397
3404
|
}
|
|
3398
3405
|
}
|
|
3399
3406
|
constructor(e, t) {
|
|
3400
|
-
super(e, t), this.attributes = new
|
|
3407
|
+
super(e, t), this.attributes = new ui(this.domNode);
|
|
3401
3408
|
}
|
|
3402
3409
|
format(e, t) {
|
|
3403
3410
|
if (e === this.statics.blotName && !t)
|
|
@@ -3408,7 +3415,7 @@ const xr = class Er extends nn {
|
|
|
3408
3415
|
const r = this.scroll.query(e, Ce.INLINE);
|
|
3409
3416
|
if (r == null)
|
|
3410
3417
|
return;
|
|
3411
|
-
r instanceof
|
|
3418
|
+
r instanceof vn ? this.attributes.attribute(r, t) : t && (e !== this.statics.blotName || this.formats()[e] !== t) && this.replaceWith(e, t);
|
|
3412
3419
|
}
|
|
3413
3420
|
}
|
|
3414
3421
|
formats() {
|
|
@@ -3442,12 +3449,12 @@ const xr = class Er extends nn {
|
|
|
3442
3449
|
};
|
|
3443
3450
|
xr.allowedChildren = [xr, Ct], xr.blotName = "inline", xr.scope = Ce.INLINE_BLOT, xr.tagName = "SPAN";
|
|
3444
3451
|
let _m = xr;
|
|
3445
|
-
const Ha = _m, wr = class
|
|
3452
|
+
const Ha = _m, wr = class ga extends nn {
|
|
3446
3453
|
static create(e) {
|
|
3447
3454
|
return super.create(e);
|
|
3448
3455
|
}
|
|
3449
3456
|
static formats(e, t) {
|
|
3450
|
-
const r = t.query(
|
|
3457
|
+
const r = t.query(ga.blotName);
|
|
3451
3458
|
if (!(r != null && e.tagName === r.tagName)) {
|
|
3452
3459
|
if (typeof this.tagName == "string")
|
|
3453
3460
|
return !0;
|
|
@@ -3456,11 +3463,11 @@ const Ha = _m, wr = class va extends nn {
|
|
|
3456
3463
|
}
|
|
3457
3464
|
}
|
|
3458
3465
|
constructor(e, t) {
|
|
3459
|
-
super(e, t), this.attributes = new
|
|
3466
|
+
super(e, t), this.attributes = new ui(this.domNode);
|
|
3460
3467
|
}
|
|
3461
3468
|
format(e, t) {
|
|
3462
3469
|
const r = this.scroll.query(e, Ce.BLOCK);
|
|
3463
|
-
r != null && (r instanceof
|
|
3470
|
+
r != null && (r instanceof vn ? this.attributes.attribute(r, t) : e === this.statics.blotName && !t ? this.replaceWith(ga.blotName) : t && (e !== this.statics.blotName || this.formats()[e] !== t) && this.replaceWith(e, t));
|
|
3464
3471
|
}
|
|
3465
3472
|
formats() {
|
|
3466
3473
|
const e = this.attributes.values(), t = this.statics.formats(this.domNode, this.scroll);
|
|
@@ -3497,7 +3504,7 @@ wr.blotName = "block", wr.scope = Ce.BLOCK_BLOT, wr.tagName = "P", wr.allowedChi
|
|
|
3497
3504
|
Ct
|
|
3498
3505
|
];
|
|
3499
3506
|
let qm = wr;
|
|
3500
|
-
const
|
|
3507
|
+
const ls = qm, va = class extends nn {
|
|
3501
3508
|
checkMerge() {
|
|
3502
3509
|
return this.next !== null && this.next.statics.blotName === this.statics.blotName;
|
|
3503
3510
|
}
|
|
@@ -3514,9 +3521,9 @@ const us = qm, ma = class extends nn {
|
|
|
3514
3521
|
super.optimize(e), this.children.length > 0 && this.next != null && this.checkMerge() && (this.next.moveChildren(this), this.next.remove());
|
|
3515
3522
|
}
|
|
3516
3523
|
};
|
|
3517
|
-
|
|
3518
|
-
let zm =
|
|
3519
|
-
const
|
|
3524
|
+
va.blotName = "container", va.scope = Ce.BLOCK_BLOT;
|
|
3525
|
+
let zm = va;
|
|
3526
|
+
const ci = zm;
|
|
3520
3527
|
class Hm extends Ct {
|
|
3521
3528
|
static formats(e, t) {
|
|
3522
3529
|
}
|
|
@@ -3610,9 +3617,9 @@ const _t = Hm, Vm = {
|
|
|
3610
3617
|
}), t.mutationsMap = r, r.has(this.domNode) && super.update(r.get(this.domNode), t), this.optimize(e, t);
|
|
3611
3618
|
}
|
|
3612
3619
|
};
|
|
3613
|
-
Ar.blotName = "scroll", Ar.defaultChild =
|
|
3620
|
+
Ar.blotName = "scroll", Ar.defaultChild = ls, Ar.allowedChildren = [ls, ci], Ar.scope = Ce.BLOCK_BLOT, Ar.tagName = "DIV";
|
|
3614
3621
|
let Wm = Ar;
|
|
3615
|
-
const Va = Wm,
|
|
3622
|
+
const Va = Wm, ma = class wu extends Ct {
|
|
3616
3623
|
static create(e) {
|
|
3617
3624
|
return document.createTextNode(e);
|
|
3618
3625
|
}
|
|
@@ -3657,15 +3664,15 @@ const Va = Wm, ya = class wu extends Ct {
|
|
|
3657
3664
|
return this.text;
|
|
3658
3665
|
}
|
|
3659
3666
|
};
|
|
3660
|
-
|
|
3661
|
-
let Km =
|
|
3662
|
-
const
|
|
3667
|
+
ma.blotName = "text", ma.scope = Ce.INLINE_BLOT;
|
|
3668
|
+
let Km = ma;
|
|
3669
|
+
const ei = Km, Xm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3663
3670
|
__proto__: null,
|
|
3664
|
-
Attributor:
|
|
3665
|
-
AttributorStore:
|
|
3666
|
-
BlockBlot:
|
|
3671
|
+
Attributor: vn,
|
|
3672
|
+
AttributorStore: ui,
|
|
3673
|
+
BlockBlot: ls,
|
|
3667
3674
|
ClassAttributor: an,
|
|
3668
|
-
ContainerBlot:
|
|
3675
|
+
ContainerBlot: ci,
|
|
3669
3676
|
EmbedBlot: _t,
|
|
3670
3677
|
InlineBlot: Ha,
|
|
3671
3678
|
LeafBlot: Ct,
|
|
@@ -3674,15 +3681,15 @@ const ti = Km, Xm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3674
3681
|
Scope: Ce,
|
|
3675
3682
|
ScrollBlot: Va,
|
|
3676
3683
|
StyleAttributor: Hn,
|
|
3677
|
-
TextBlot:
|
|
3684
|
+
TextBlot: ei
|
|
3678
3685
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3679
3686
|
var Dn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
3680
3687
|
function Ga(n) {
|
|
3681
3688
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
3682
3689
|
}
|
|
3683
|
-
var
|
|
3690
|
+
var Fs = { exports: {} }, $i, qo;
|
|
3684
3691
|
function Ym() {
|
|
3685
|
-
if (qo) return
|
|
3692
|
+
if (qo) return $i;
|
|
3686
3693
|
qo = 1;
|
|
3687
3694
|
var n = -1, e = 1, t = 0;
|
|
3688
3695
|
function r(x, P, O, _, D) {
|
|
@@ -4041,7 +4048,7 @@ function Ym() {
|
|
|
4041
4048
|
function V(x, P, O, _) {
|
|
4042
4049
|
return r(x, P, O, _, !0);
|
|
4043
4050
|
}
|
|
4044
|
-
return V.INSERT = e, V.DELETE = n, V.EQUAL = t,
|
|
4051
|
+
return V.INSERT = e, V.DELETE = n, V.EQUAL = t, $i = V, $i;
|
|
4045
4052
|
}
|
|
4046
4053
|
var Kr = { exports: {} };
|
|
4047
4054
|
Kr.exports;
|
|
@@ -4133,7 +4140,7 @@ function Au() {
|
|
|
4133
4140
|
}
|
|
4134
4141
|
return de.call(w, h) ? w[h] : void 0;
|
|
4135
4142
|
}
|
|
4136
|
-
function
|
|
4143
|
+
function bn(h) {
|
|
4137
4144
|
var w = this.__data__;
|
|
4138
4145
|
return ke ? w[h] !== void 0 : de.call(w, h);
|
|
4139
4146
|
}
|
|
@@ -4141,7 +4148,7 @@ function Au() {
|
|
|
4141
4148
|
var B = this.__data__;
|
|
4142
4149
|
return B[h] = ke && w === void 0 ? r : w, this;
|
|
4143
4150
|
}
|
|
4144
|
-
gt.prototype.clear = Ft, gt.prototype.delete = Xt, gt.prototype.get = Vn, gt.prototype.has =
|
|
4151
|
+
gt.prototype.clear = Ft, gt.prototype.delete = Xt, gt.prototype.get = Vn, gt.prototype.has = bn, gt.prototype.set = Fn;
|
|
4145
4152
|
function dt(h) {
|
|
4146
4153
|
var w = -1, B = h ? h.length : 0;
|
|
4147
4154
|
for (this.clear(); ++w < B; ) {
|
|
@@ -4227,16 +4234,16 @@ function Au() {
|
|
|
4227
4234
|
function Fe(h, w) {
|
|
4228
4235
|
var B = $r(h) || yr(h) ? m(h.length, String) : [], se = B.length, Ue = !!se;
|
|
4229
4236
|
for (var Le in h)
|
|
4230
|
-
de.call(h, Le) && !(Ue && (Le == "length" ||
|
|
4237
|
+
de.call(h, Le) && !(Ue && (Le == "length" || Ci(Le, se))) && B.push(Le);
|
|
4231
4238
|
return B;
|
|
4232
4239
|
}
|
|
4233
4240
|
function Se(h, w, B) {
|
|
4234
4241
|
var se = h[w];
|
|
4235
|
-
(!(de.call(h, w) &&
|
|
4242
|
+
(!(de.call(h, w) && Ts(se, B)) || B === void 0 && !(w in h)) && (h[w] = B);
|
|
4236
4243
|
}
|
|
4237
4244
|
function ze(h, w) {
|
|
4238
4245
|
for (var B = h.length; B--; )
|
|
4239
|
-
if (
|
|
4246
|
+
if (Ts(h[B][0], w))
|
|
4240
4247
|
return B;
|
|
4241
4248
|
return -1;
|
|
4242
4249
|
}
|
|
@@ -4251,21 +4258,21 @@ function Au() {
|
|
|
4251
4258
|
return h;
|
|
4252
4259
|
var ht = $r(h);
|
|
4253
4260
|
if (ht) {
|
|
4254
|
-
if (Ke =
|
|
4255
|
-
return
|
|
4261
|
+
if (Ke = Ni(h), !w)
|
|
4262
|
+
return Si(h, Ke);
|
|
4256
4263
|
} else {
|
|
4257
|
-
var et =
|
|
4258
|
-
if (
|
|
4259
|
-
return
|
|
4264
|
+
var et = wn(h), Nt = et == c || et == d;
|
|
4265
|
+
if (Os(h))
|
|
4266
|
+
return xn(h, w);
|
|
4260
4267
|
if (et == p || et == o || Nt && !Le) {
|
|
4261
4268
|
if (I(h))
|
|
4262
4269
|
return Le ? h : {};
|
|
4263
4270
|
if (Ke = cn(Nt ? {} : h), !w)
|
|
4264
|
-
return
|
|
4271
|
+
return Ti(h, We(Ke, h));
|
|
4265
4272
|
} else {
|
|
4266
4273
|
if (!J[et])
|
|
4267
4274
|
return Le ? h : {};
|
|
4268
|
-
Ke =
|
|
4275
|
+
Ke = Ri(h, et, nt, w);
|
|
4269
4276
|
}
|
|
4270
4277
|
}
|
|
4271
4278
|
Ye || (Ye = new xt());
|
|
@@ -4273,7 +4280,7 @@ function Au() {
|
|
|
4273
4280
|
if (Mt)
|
|
4274
4281
|
return Mt;
|
|
4275
4282
|
if (Ye.set(h, Ke), !ht)
|
|
4276
|
-
var mt = B ?
|
|
4283
|
+
var mt = B ? Oi(h) : qr(h);
|
|
4277
4284
|
return R(mt || h, function(Rt, Et) {
|
|
4278
4285
|
mt && (Et = Rt, Rt = h[Et]), Se(Ke, Et, nt(Rt, w, B, se, Et, h, Ye));
|
|
4279
4286
|
}), Ke;
|
|
@@ -4289,20 +4296,20 @@ function Au() {
|
|
|
4289
4296
|
return Ae.call(h);
|
|
4290
4297
|
}
|
|
4291
4298
|
function $t(h) {
|
|
4292
|
-
if (!fn(h) ||
|
|
4299
|
+
if (!fn(h) || Li(h))
|
|
4293
4300
|
return !1;
|
|
4294
4301
|
var w = _r(h) || I(h) ? $e : q;
|
|
4295
4302
|
return w.test(kt(h));
|
|
4296
4303
|
}
|
|
4297
4304
|
function Gn(h) {
|
|
4298
|
-
if (!
|
|
4305
|
+
if (!As(h))
|
|
4299
4306
|
return Be(h);
|
|
4300
4307
|
var w = [];
|
|
4301
4308
|
for (var B in Object(h))
|
|
4302
4309
|
de.call(h, B) && B != "constructor" && w.push(B);
|
|
4303
4310
|
return w;
|
|
4304
4311
|
}
|
|
4305
|
-
function
|
|
4312
|
+
function xn(h, w) {
|
|
4306
4313
|
if (w)
|
|
4307
4314
|
return h.slice();
|
|
4308
4315
|
var B = new h.constructor(h.length);
|
|
@@ -4316,26 +4323,26 @@ function Au() {
|
|
|
4316
4323
|
var B = w ? Mn(h.buffer) : h.buffer;
|
|
4317
4324
|
return new h.constructor(B, h.byteOffset, h.byteLength);
|
|
4318
4325
|
}
|
|
4319
|
-
function
|
|
4326
|
+
function Es(h, w, B) {
|
|
4320
4327
|
var se = w ? B(k(h), !0) : k(h);
|
|
4321
4328
|
return N(se, ye, new h.constructor());
|
|
4322
4329
|
}
|
|
4323
|
-
function
|
|
4330
|
+
function ws(h) {
|
|
4324
4331
|
var w = new h.constructor(h.source, W.exec(h));
|
|
4325
4332
|
return w.lastIndex = h.lastIndex, w;
|
|
4326
4333
|
}
|
|
4327
|
-
function
|
|
4334
|
+
function Ei(h, w, B) {
|
|
4328
4335
|
var se = w ? B($(h), !0) : $(h);
|
|
4329
4336
|
return N(se, T, new h.constructor());
|
|
4330
4337
|
}
|
|
4331
|
-
function
|
|
4338
|
+
function wi(h) {
|
|
4332
4339
|
return zt ? Object(zt.call(h)) : {};
|
|
4333
4340
|
}
|
|
4334
|
-
function
|
|
4341
|
+
function Ai(h, w) {
|
|
4335
4342
|
var B = w ? Mn(h.buffer) : h.buffer;
|
|
4336
4343
|
return new h.constructor(B, h.byteOffset, h.length);
|
|
4337
4344
|
}
|
|
4338
|
-
function
|
|
4345
|
+
function Si(h, w) {
|
|
4339
4346
|
var B = -1, se = h.length;
|
|
4340
4347
|
for (w || (w = Array(se)); ++B < se; )
|
|
4341
4348
|
w[B] = h[B];
|
|
@@ -4349,22 +4356,22 @@ function Au() {
|
|
|
4349
4356
|
}
|
|
4350
4357
|
return B;
|
|
4351
4358
|
}
|
|
4352
|
-
function
|
|
4353
|
-
return jr(h,
|
|
4359
|
+
function Ti(h, w) {
|
|
4360
|
+
return jr(h, En(h), w);
|
|
4354
4361
|
}
|
|
4355
|
-
function
|
|
4356
|
-
return ce(h, qr,
|
|
4362
|
+
function Oi(h) {
|
|
4363
|
+
return ce(h, qr, En);
|
|
4357
4364
|
}
|
|
4358
4365
|
function Wn(h, w) {
|
|
4359
4366
|
var B = h.__data__;
|
|
4360
|
-
return
|
|
4367
|
+
return Ii(w) ? B[typeof w == "string" ? "string" : "hash"] : B.map;
|
|
4361
4368
|
}
|
|
4362
4369
|
function Zt(h, w) {
|
|
4363
4370
|
var B = y(h, w);
|
|
4364
4371
|
return $t(B) ? B : void 0;
|
|
4365
4372
|
}
|
|
4366
|
-
var
|
|
4367
|
-
(Qe &&
|
|
4373
|
+
var En = St ? U(St, Object) : Pi, wn = ot;
|
|
4374
|
+
(Qe && wn(new Qe(new ArrayBuffer(1))) != z || pe && wn(new pe()) != f || xe && wn(xe.resolve()) != v || Ie && wn(new Ie()) != S || Pe && wn(new Pe()) != F) && (wn = function(h) {
|
|
4368
4375
|
var w = Ae.call(h), B = w == p ? h.constructor : void 0, se = B ? kt(B) : void 0;
|
|
4369
4376
|
if (se)
|
|
4370
4377
|
switch (se) {
|
|
@@ -4381,14 +4388,14 @@ function Au() {
|
|
|
4381
4388
|
}
|
|
4382
4389
|
return w;
|
|
4383
4390
|
});
|
|
4384
|
-
function
|
|
4391
|
+
function Ni(h) {
|
|
4385
4392
|
var w = h.length, B = h.constructor(w);
|
|
4386
4393
|
return w && typeof h[0] == "string" && de.call(h, "index") && (B.index = h.index, B.input = h.input), B;
|
|
4387
4394
|
}
|
|
4388
4395
|
function cn(h) {
|
|
4389
|
-
return typeof h.constructor == "function" && !
|
|
4396
|
+
return typeof h.constructor == "function" && !As(h) ? Ot(Ve(h)) : {};
|
|
4390
4397
|
}
|
|
4391
|
-
function
|
|
4398
|
+
function Ri(h, w, B, se) {
|
|
4392
4399
|
var Ue = h.constructor;
|
|
4393
4400
|
switch (w) {
|
|
4394
4401
|
case M:
|
|
@@ -4407,31 +4414,31 @@ function Au() {
|
|
|
4407
4414
|
case O:
|
|
4408
4415
|
case _:
|
|
4409
4416
|
case D:
|
|
4410
|
-
return
|
|
4417
|
+
return Ai(h, se);
|
|
4411
4418
|
case f:
|
|
4412
|
-
return
|
|
4419
|
+
return Es(h, se, B);
|
|
4413
4420
|
case g:
|
|
4414
4421
|
case A:
|
|
4415
4422
|
return new Ue(h);
|
|
4416
4423
|
case b:
|
|
4417
|
-
return
|
|
4424
|
+
return ws(h);
|
|
4418
4425
|
case S:
|
|
4419
|
-
return
|
|
4426
|
+
return Ei(h, se, B);
|
|
4420
4427
|
case C:
|
|
4421
|
-
return
|
|
4428
|
+
return wi(h);
|
|
4422
4429
|
}
|
|
4423
4430
|
}
|
|
4424
|
-
function
|
|
4431
|
+
function Ci(h, w) {
|
|
4425
4432
|
return w = w ?? s, !!w && (typeof h == "number" || Q.test(h)) && h > -1 && h % 1 == 0 && h < w;
|
|
4426
4433
|
}
|
|
4427
|
-
function
|
|
4434
|
+
function Ii(h) {
|
|
4428
4435
|
var w = typeof h;
|
|
4429
4436
|
return w == "string" || w == "number" || w == "symbol" || w == "boolean" ? h !== "__proto__" : h === null;
|
|
4430
4437
|
}
|
|
4431
|
-
function
|
|
4438
|
+
function Li(h) {
|
|
4432
4439
|
return !!ee && ee in h;
|
|
4433
4440
|
}
|
|
4434
|
-
function
|
|
4441
|
+
function As(h) {
|
|
4435
4442
|
var w = h && h.constructor, B = typeof w == "function" && w.prototype || X;
|
|
4436
4443
|
return h === B;
|
|
4437
4444
|
}
|
|
@@ -4448,47 +4455,47 @@ function Au() {
|
|
|
4448
4455
|
}
|
|
4449
4456
|
return "";
|
|
4450
4457
|
}
|
|
4451
|
-
function
|
|
4458
|
+
function Ss(h) {
|
|
4452
4459
|
return nt(h, !0, !0);
|
|
4453
4460
|
}
|
|
4454
|
-
function
|
|
4461
|
+
function Ts(h, w) {
|
|
4455
4462
|
return h === w || h !== h && w !== w;
|
|
4456
4463
|
}
|
|
4457
4464
|
function yr(h) {
|
|
4458
|
-
return
|
|
4465
|
+
return ki(h) && de.call(h, "callee") && (!ct.call(h, "callee") || Ae.call(h) == o);
|
|
4459
4466
|
}
|
|
4460
4467
|
var $r = Array.isArray;
|
|
4461
4468
|
function br(h) {
|
|
4462
|
-
return h != null &&
|
|
4469
|
+
return h != null && Ns(h.length) && !_r(h);
|
|
4463
4470
|
}
|
|
4464
|
-
function
|
|
4465
|
-
return
|
|
4471
|
+
function ki(h) {
|
|
4472
|
+
return Rs(h) && br(h);
|
|
4466
4473
|
}
|
|
4467
|
-
var
|
|
4474
|
+
var Os = Xe || Fi;
|
|
4468
4475
|
function _r(h) {
|
|
4469
4476
|
var w = fn(h) ? Ae.call(h) : "";
|
|
4470
4477
|
return w == c || w == d;
|
|
4471
4478
|
}
|
|
4472
|
-
function
|
|
4479
|
+
function Ns(h) {
|
|
4473
4480
|
return typeof h == "number" && h > -1 && h % 1 == 0 && h <= s;
|
|
4474
4481
|
}
|
|
4475
4482
|
function fn(h) {
|
|
4476
4483
|
var w = typeof h;
|
|
4477
4484
|
return !!h && (w == "object" || w == "function");
|
|
4478
4485
|
}
|
|
4479
|
-
function
|
|
4486
|
+
function Rs(h) {
|
|
4480
4487
|
return !!h && typeof h == "object";
|
|
4481
4488
|
}
|
|
4482
4489
|
function qr(h) {
|
|
4483
4490
|
return br(h) ? Fe(h) : Gn(h);
|
|
4484
4491
|
}
|
|
4485
|
-
function
|
|
4492
|
+
function Pi() {
|
|
4486
4493
|
return [];
|
|
4487
4494
|
}
|
|
4488
|
-
function
|
|
4495
|
+
function Fi() {
|
|
4489
4496
|
return !1;
|
|
4490
4497
|
}
|
|
4491
|
-
n.exports =
|
|
4498
|
+
n.exports = Ss;
|
|
4492
4499
|
}(Kr, Kr.exports)), Kr.exports;
|
|
4493
4500
|
}
|
|
4494
4501
|
var Xr = { exports: {} };
|
|
@@ -4560,7 +4567,7 @@ function Su() {
|
|
|
4560
4567
|
return h ? "Symbol(src)_1." + h : "";
|
|
4561
4568
|
}(), ct = Ze.toString, qt = RegExp(
|
|
4562
4569
|
"^" + Me.call(Ve).replace(ve, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
4563
|
-
), St = N ? T.Buffer : void 0, Xe = T.Symbol, Be = T.Uint8Array, Qe = Ze.propertyIsEnumerable, pe = Ae.splice, xe = Xe ? Xe.toStringTag : void 0, Ie = Object.getOwnPropertySymbols, Pe = St ? St.isBuffer : void 0, ke = ie(Object.keys, Object), Ge =
|
|
4570
|
+
), St = N ? T.Buffer : void 0, Xe = T.Symbol, Be = T.Uint8Array, Qe = Ze.propertyIsEnumerable, pe = Ae.splice, xe = Xe ? Xe.toStringTag : void 0, Ie = Object.getOwnPropertySymbols, Pe = St ? St.isBuffer : void 0, ke = ie(Object.keys, Object), Ge = En(T, "DataView"), Je = En(T, "Map"), it = En(T, "Promise"), yt = En(T, "Set"), bt = En(T, "WeakMap"), jt = En(Object, "create"), zt = kt(Ge), gt = kt(Je), Ft = kt(it), Xt = kt(yt), Vn = kt(bt), bn = Xe ? Xe.prototype : void 0, Fn = bn ? bn.valueOf : void 0;
|
|
4564
4571
|
function dt(h) {
|
|
4565
4572
|
var w = -1, B = h == null ? 0 : h.length;
|
|
4566
4573
|
for (this.clear(); ++w < B; ) {
|
|
@@ -4603,21 +4610,21 @@ function Su() {
|
|
|
4603
4610
|
this.__data__ = [], this.size = 0;
|
|
4604
4611
|
}
|
|
4605
4612
|
function gr(h) {
|
|
4606
|
-
var w = this.__data__, B =
|
|
4613
|
+
var w = this.__data__, B = xn(w, h);
|
|
4607
4614
|
if (B < 0)
|
|
4608
4615
|
return !1;
|
|
4609
4616
|
var se = w.length - 1;
|
|
4610
4617
|
return B == se ? w.pop() : pe.call(w, B, 1), --this.size, !0;
|
|
4611
4618
|
}
|
|
4612
4619
|
function vr(h) {
|
|
4613
|
-
var w = this.__data__, B =
|
|
4620
|
+
var w = this.__data__, B = xn(w, h);
|
|
4614
4621
|
return B < 0 ? void 0 : w[B][1];
|
|
4615
4622
|
}
|
|
4616
4623
|
function Tt(h) {
|
|
4617
|
-
return
|
|
4624
|
+
return xn(this.__data__, h) > -1;
|
|
4618
4625
|
}
|
|
4619
4626
|
function mr(h, w) {
|
|
4620
|
-
var B = this.__data__, se =
|
|
4627
|
+
var B = this.__data__, se = xn(B, h);
|
|
4621
4628
|
return se < 0 ? (++this.size, B.push([h, w])) : B[se][1] = w, this;
|
|
4622
4629
|
}
|
|
4623
4630
|
vt.prototype.clear = pr, vt.prototype.delete = gr, vt.prototype.get = vr, vt.prototype.has = Tt, vt.prototype.set = mr;
|
|
@@ -4691,18 +4698,18 @@ function Su() {
|
|
|
4691
4698
|
}
|
|
4692
4699
|
We.prototype.clear = nt, We.prototype.delete = Ot, We.prototype.get = ce, We.prototype.has = ot, We.prototype.set = $t;
|
|
4693
4700
|
function Gn(h, w) {
|
|
4694
|
-
var B = yr(h), se = !B &&
|
|
4701
|
+
var B = yr(h), se = !B && Ts(h), Ue = !B && !se && br(h), Le = !B && !se && !Ue && Rs(h), Ye = B || se || Ue || Le, Ke = Ye ? G(h.length, String) : [], ht = Ke.length;
|
|
4695
4702
|
for (var et in h)
|
|
4696
4703
|
Ve.call(h, et) && !(Ye && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
4697
4704
|
(et == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
4698
4705
|
Ue && (et == "offset" || et == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
4699
4706
|
Le && (et == "buffer" || et == "byteLength" || et == "byteOffset") || // Skip index properties.
|
|
4700
|
-
|
|
4707
|
+
Ri(et, ht))) && Ke.push(et);
|
|
4701
4708
|
return Ke;
|
|
4702
4709
|
}
|
|
4703
|
-
function
|
|
4710
|
+
function xn(h, w) {
|
|
4704
4711
|
for (var B = h.length; B--; )
|
|
4705
|
-
if (
|
|
4712
|
+
if (Ss(h[B][0], w))
|
|
4706
4713
|
return B;
|
|
4707
4714
|
return -1;
|
|
4708
4715
|
}
|
|
@@ -4711,15 +4718,15 @@ function Su() {
|
|
|
4711
4718
|
return yr(h) ? se : U(se, B(h));
|
|
4712
4719
|
}
|
|
4713
4720
|
function Yt(h) {
|
|
4714
|
-
return h == null ? h === void 0 ? ne : S : xe && xe in Object(h) ?
|
|
4721
|
+
return h == null ? h === void 0 ? ne : S : xe && xe in Object(h) ? wn(h) : As(h);
|
|
4715
4722
|
}
|
|
4716
|
-
function
|
|
4723
|
+
function Es(h) {
|
|
4717
4724
|
return fn(h) && Yt(h) == u;
|
|
4718
4725
|
}
|
|
4719
|
-
function
|
|
4720
|
-
return h === w ? !0 : h == null || w == null || !fn(h) && !fn(w) ? h !== h && w !== w :
|
|
4726
|
+
function ws(h, w, B, se, Ue) {
|
|
4727
|
+
return h === w ? !0 : h == null || w == null || !fn(h) && !fn(w) ? h !== h && w !== w : Ei(h, w, B, se, ws, Ue);
|
|
4721
4728
|
}
|
|
4722
|
-
function
|
|
4729
|
+
function Ei(h, w, B, se, Ue, Le) {
|
|
4723
4730
|
var Ye = yr(h), Ke = yr(w), ht = Ye ? i : cn(h), et = Ke ? i : cn(w);
|
|
4724
4731
|
ht = ht == u ? A : ht, et = et == u ? A : et;
|
|
4725
4732
|
var Nt = ht == A, Mt = et == A, mt = ht == et;
|
|
@@ -4729,27 +4736,27 @@ function Su() {
|
|
|
4729
4736
|
Ye = !0, Nt = !1;
|
|
4730
4737
|
}
|
|
4731
4738
|
if (mt && !Nt)
|
|
4732
|
-
return Le || (Le = new We()), Ye ||
|
|
4739
|
+
return Le || (Le = new We()), Ye || Rs(h) ? jr(h, w, B, se, Ue, Le) : Ti(h, w, ht, B, se, Ue, Le);
|
|
4733
4740
|
if (!(B & s)) {
|
|
4734
4741
|
var Rt = Nt && Ve.call(h, "__wrapped__"), Et = Mt && Ve.call(w, "__wrapped__");
|
|
4735
4742
|
if (Rt || Et) {
|
|
4736
|
-
var Bn = Rt ? h.value() : h,
|
|
4737
|
-
return Le || (Le = new We()), Ue(Bn,
|
|
4743
|
+
var Bn = Rt ? h.value() : h, An = Et ? w.value() : w;
|
|
4744
|
+
return Le || (Le = new We()), Ue(Bn, An, B, se, Le);
|
|
4738
4745
|
}
|
|
4739
4746
|
}
|
|
4740
|
-
return mt ? (Le || (Le = new We()),
|
|
4747
|
+
return mt ? (Le || (Le = new We()), Oi(h, w, B, se, Ue, Le)) : !1;
|
|
4741
4748
|
}
|
|
4742
|
-
function
|
|
4743
|
-
if (!
|
|
4749
|
+
function wi(h) {
|
|
4750
|
+
if (!Ns(h) || Ii(h))
|
|
4744
4751
|
return !1;
|
|
4745
|
-
var w =
|
|
4752
|
+
var w = Os(h) ? qt : me;
|
|
4746
4753
|
return w.test(kt(h));
|
|
4747
4754
|
}
|
|
4748
|
-
function
|
|
4755
|
+
function Ai(h) {
|
|
4749
4756
|
return fn(h) && _r(h.length) && !!he[Yt(h)];
|
|
4750
4757
|
}
|
|
4751
|
-
function
|
|
4752
|
-
if (!
|
|
4758
|
+
function Si(h) {
|
|
4759
|
+
if (!Li(h))
|
|
4753
4760
|
return ke(h);
|
|
4754
4761
|
var w = [];
|
|
4755
4762
|
for (var B in Object(h))
|
|
@@ -4775,8 +4782,8 @@ function Su() {
|
|
|
4775
4782
|
break;
|
|
4776
4783
|
}
|
|
4777
4784
|
if (mt) {
|
|
4778
|
-
if (!$(w, function(
|
|
4779
|
-
if (!X(mt, Kn) && (Rt ===
|
|
4785
|
+
if (!$(w, function(An, Kn) {
|
|
4786
|
+
if (!X(mt, Kn) && (Rt === An || Ue(Rt, An, B, se, Le)))
|
|
4780
4787
|
return mt.push(Kn);
|
|
4781
4788
|
})) {
|
|
4782
4789
|
Mt = !1;
|
|
@@ -4789,7 +4796,7 @@ function Su() {
|
|
|
4789
4796
|
}
|
|
4790
4797
|
return Le.delete(h), Le.delete(w), Mt;
|
|
4791
4798
|
}
|
|
4792
|
-
function
|
|
4799
|
+
function Ti(h, w, B, se, Ue, Le, Ye) {
|
|
4793
4800
|
switch (B) {
|
|
4794
4801
|
case P:
|
|
4795
4802
|
if (h.byteLength != w.byteLength || h.byteOffset != w.byteOffset)
|
|
@@ -4800,7 +4807,7 @@ function Su() {
|
|
|
4800
4807
|
case c:
|
|
4801
4808
|
case d:
|
|
4802
4809
|
case b:
|
|
4803
|
-
return
|
|
4810
|
+
return Ss(+h, +w);
|
|
4804
4811
|
case f:
|
|
4805
4812
|
return h.name == w.name && h.message == w.message;
|
|
4806
4813
|
case M:
|
|
@@ -4824,7 +4831,7 @@ function Su() {
|
|
|
4824
4831
|
}
|
|
4825
4832
|
return !1;
|
|
4826
4833
|
}
|
|
4827
|
-
function
|
|
4834
|
+
function Oi(h, w, B, se, Ue, Le) {
|
|
4828
4835
|
var Ye = B & s, Ke = Wn(h), ht = Ke.length, et = Wn(w), Nt = et.length;
|
|
4829
4836
|
if (ht != Nt && !Ye)
|
|
4830
4837
|
return !1;
|
|
@@ -4840,33 +4847,33 @@ function Su() {
|
|
|
4840
4847
|
Le.set(h, w), Le.set(w, h);
|
|
4841
4848
|
for (var Bn = Ye; ++Mt < ht; ) {
|
|
4842
4849
|
mt = Ke[Mt];
|
|
4843
|
-
var
|
|
4850
|
+
var An = h[mt], Kn = w[mt];
|
|
4844
4851
|
if (se)
|
|
4845
|
-
var ao = Ye ? se(Kn,
|
|
4846
|
-
if (!(ao === void 0 ?
|
|
4852
|
+
var ao = Ye ? se(Kn, An, mt, w, h, Le) : se(An, Kn, mt, h, w, Le);
|
|
4853
|
+
if (!(ao === void 0 ? An === Kn || Ue(An, Kn, B, se, Le) : ao)) {
|
|
4847
4854
|
Et = !1;
|
|
4848
4855
|
break;
|
|
4849
4856
|
}
|
|
4850
4857
|
Bn || (Bn = mt == "constructor");
|
|
4851
4858
|
}
|
|
4852
4859
|
if (Et && !Bn) {
|
|
4853
|
-
var
|
|
4854
|
-
|
|
4860
|
+
var Cs = h.constructor, Is = w.constructor;
|
|
4861
|
+
Cs != Is && "constructor" in h && "constructor" in w && !(typeof Cs == "function" && Cs instanceof Cs && typeof Is == "function" && Is instanceof Is) && (Et = !1);
|
|
4855
4862
|
}
|
|
4856
4863
|
return Le.delete(h), Le.delete(w), Et;
|
|
4857
4864
|
}
|
|
4858
4865
|
function Wn(h) {
|
|
4859
|
-
return Mn(h, qr,
|
|
4866
|
+
return Mn(h, qr, Ni);
|
|
4860
4867
|
}
|
|
4861
4868
|
function Zt(h, w) {
|
|
4862
4869
|
var B = h.__data__;
|
|
4863
|
-
return
|
|
4870
|
+
return Ci(w) ? B[typeof w == "string" ? "string" : "hash"] : B.map;
|
|
4864
4871
|
}
|
|
4865
|
-
function
|
|
4872
|
+
function En(h, w) {
|
|
4866
4873
|
var B = Z(h, w);
|
|
4867
|
-
return
|
|
4874
|
+
return wi(B) ? B : void 0;
|
|
4868
4875
|
}
|
|
4869
|
-
function
|
|
4876
|
+
function wn(h) {
|
|
4870
4877
|
var w = Ve.call(h, xe), B = h[xe];
|
|
4871
4878
|
try {
|
|
4872
4879
|
h[xe] = void 0;
|
|
@@ -4876,11 +4883,11 @@ function Su() {
|
|
|
4876
4883
|
var Ue = ct.call(h);
|
|
4877
4884
|
return se && (w ? h[xe] = B : delete h[xe]), Ue;
|
|
4878
4885
|
}
|
|
4879
|
-
var
|
|
4886
|
+
var Ni = Ie ? function(h) {
|
|
4880
4887
|
return h == null ? [] : (h = Object(h), k(Ie(h), function(w) {
|
|
4881
4888
|
return Qe.call(h, w);
|
|
4882
4889
|
}));
|
|
4883
|
-
} :
|
|
4890
|
+
} : Pi, cn = Yt;
|
|
4884
4891
|
(Ge && cn(new Ge(new ArrayBuffer(1))) != P || Je && cn(new Je()) != v || it && cn(it.resolve()) != C || yt && cn(new yt()) != z || bt && cn(new bt()) != V) && (cn = function(h) {
|
|
4885
4892
|
var w = Yt(h), B = w == A ? h.constructor : void 0, se = B ? kt(B) : "";
|
|
4886
4893
|
if (se)
|
|
@@ -4898,21 +4905,21 @@ function Su() {
|
|
|
4898
4905
|
}
|
|
4899
4906
|
return w;
|
|
4900
4907
|
});
|
|
4901
|
-
function
|
|
4908
|
+
function Ri(h, w) {
|
|
4902
4909
|
return w = w ?? a, !!w && (typeof h == "number" || Ee.test(h)) && h > -1 && h % 1 == 0 && h < w;
|
|
4903
4910
|
}
|
|
4904
|
-
function
|
|
4911
|
+
function Ci(h) {
|
|
4905
4912
|
var w = typeof h;
|
|
4906
4913
|
return w == "string" || w == "number" || w == "symbol" || w == "boolean" ? h !== "__proto__" : h === null;
|
|
4907
4914
|
}
|
|
4908
|
-
function
|
|
4915
|
+
function Ii(h) {
|
|
4909
4916
|
return !!at && at in h;
|
|
4910
4917
|
}
|
|
4911
|
-
function
|
|
4918
|
+
function Li(h) {
|
|
4912
4919
|
var w = h && h.constructor, B = typeof w == "function" && w.prototype || Ze;
|
|
4913
4920
|
return h === B;
|
|
4914
4921
|
}
|
|
4915
|
-
function
|
|
4922
|
+
function As(h) {
|
|
4916
4923
|
return ct.call(h);
|
|
4917
4924
|
}
|
|
4918
4925
|
function kt(h) {
|
|
@@ -4928,23 +4935,23 @@ function Su() {
|
|
|
4928
4935
|
}
|
|
4929
4936
|
return "";
|
|
4930
4937
|
}
|
|
4931
|
-
function
|
|
4938
|
+
function Ss(h, w) {
|
|
4932
4939
|
return h === w || h !== h && w !== w;
|
|
4933
4940
|
}
|
|
4934
|
-
var
|
|
4941
|
+
var Ts = Es(/* @__PURE__ */ function() {
|
|
4935
4942
|
return arguments;
|
|
4936
|
-
}()) ?
|
|
4943
|
+
}()) ? Es : function(h) {
|
|
4937
4944
|
return fn(h) && Ve.call(h, "callee") && !Qe.call(h, "callee");
|
|
4938
4945
|
}, yr = Array.isArray;
|
|
4939
4946
|
function $r(h) {
|
|
4940
|
-
return h != null && _r(h.length) && !
|
|
4947
|
+
return h != null && _r(h.length) && !Os(h);
|
|
4941
4948
|
}
|
|
4942
|
-
var br = Pe ||
|
|
4943
|
-
function
|
|
4944
|
-
return
|
|
4949
|
+
var br = Pe || Fi;
|
|
4950
|
+
function ki(h, w) {
|
|
4951
|
+
return ws(h, w);
|
|
4945
4952
|
}
|
|
4946
|
-
function
|
|
4947
|
-
if (!
|
|
4953
|
+
function Os(h) {
|
|
4954
|
+
if (!Ns(h))
|
|
4948
4955
|
return !1;
|
|
4949
4956
|
var w = Yt(h);
|
|
4950
4957
|
return w == g || w == p || w == l || w == F;
|
|
@@ -4952,30 +4959,30 @@ function Su() {
|
|
|
4952
4959
|
function _r(h) {
|
|
4953
4960
|
return typeof h == "number" && h > -1 && h % 1 == 0 && h <= a;
|
|
4954
4961
|
}
|
|
4955
|
-
function
|
|
4962
|
+
function Ns(h) {
|
|
4956
4963
|
var w = typeof h;
|
|
4957
4964
|
return h != null && (w == "object" || w == "function");
|
|
4958
4965
|
}
|
|
4959
4966
|
function fn(h) {
|
|
4960
4967
|
return h != null && typeof h == "object";
|
|
4961
4968
|
}
|
|
4962
|
-
var
|
|
4969
|
+
var Rs = I ? Y(I) : Ai;
|
|
4963
4970
|
function qr(h) {
|
|
4964
|
-
return $r(h) ? Gn(h) :
|
|
4971
|
+
return $r(h) ? Gn(h) : Si(h);
|
|
4965
4972
|
}
|
|
4966
|
-
function
|
|
4973
|
+
function Pi() {
|
|
4967
4974
|
return [];
|
|
4968
4975
|
}
|
|
4969
|
-
function
|
|
4976
|
+
function Fi() {
|
|
4970
4977
|
return !1;
|
|
4971
4978
|
}
|
|
4972
|
-
n.exports =
|
|
4979
|
+
n.exports = ki;
|
|
4973
4980
|
}(Xr, Xr.exports)), Xr.exports;
|
|
4974
4981
|
}
|
|
4975
|
-
var
|
|
4982
|
+
var Ms = {}, Vo;
|
|
4976
4983
|
function Zm() {
|
|
4977
|
-
if (Vo) return
|
|
4978
|
-
Vo = 1, Object.defineProperty(
|
|
4984
|
+
if (Vo) return Ms;
|
|
4985
|
+
Vo = 1, Object.defineProperty(Ms, "__esModule", { value: !0 });
|
|
4979
4986
|
const n = Au(), e = Su();
|
|
4980
4987
|
var t;
|
|
4981
4988
|
return function(r) {
|
|
@@ -5011,24 +5018,24 @@ function Zm() {
|
|
|
5011
5018
|
return Object.keys(d).length > 0 ? d : void 0;
|
|
5012
5019
|
}
|
|
5013
5020
|
r.transform = u;
|
|
5014
|
-
}(t || (t = {})),
|
|
5021
|
+
}(t || (t = {})), Ms.default = t, Ms;
|
|
5015
5022
|
}
|
|
5016
|
-
var
|
|
5023
|
+
var Bs = {}, Go;
|
|
5017
5024
|
function Tu() {
|
|
5018
|
-
if (Go) return
|
|
5019
|
-
Go = 1, Object.defineProperty(
|
|
5025
|
+
if (Go) return Bs;
|
|
5026
|
+
Go = 1, Object.defineProperty(Bs, "__esModule", { value: !0 });
|
|
5020
5027
|
var n;
|
|
5021
5028
|
return function(e) {
|
|
5022
5029
|
function t(r) {
|
|
5023
5030
|
return typeof r.delete == "number" ? r.delete : typeof r.retain == "number" ? r.retain : typeof r.retain == "object" && r.retain !== null ? 1 : typeof r.insert == "string" ? r.insert.length : 1;
|
|
5024
5031
|
}
|
|
5025
5032
|
e.length = t;
|
|
5026
|
-
}(n || (n = {})),
|
|
5033
|
+
}(n || (n = {})), Bs.default = n, Bs;
|
|
5027
5034
|
}
|
|
5028
|
-
var
|
|
5035
|
+
var Us = {}, Wo;
|
|
5029
5036
|
function Qm() {
|
|
5030
|
-
if (Wo) return
|
|
5031
|
-
Wo = 1, Object.defineProperty(
|
|
5037
|
+
if (Wo) return Us;
|
|
5038
|
+
Wo = 1, Object.defineProperty(Us, "__esModule", { value: !0 });
|
|
5032
5039
|
const n = Tu();
|
|
5033
5040
|
class e {
|
|
5034
5041
|
constructor(r) {
|
|
@@ -5072,7 +5079,7 @@ function Qm() {
|
|
|
5072
5079
|
} else return [];
|
|
5073
5080
|
}
|
|
5074
5081
|
}
|
|
5075
|
-
return
|
|
5082
|
+
return Us.default = e, Us;
|
|
5076
5083
|
}
|
|
5077
5084
|
var Ko;
|
|
5078
5085
|
function Jm() {
|
|
@@ -5336,7 +5343,7 @@ function Jm() {
|
|
|
5336
5343
|
}
|
|
5337
5344
|
}
|
|
5338
5345
|
c.Op = a.default, c.OpIterator = u.default, c.AttributeMap = o.default, c.handlers = {}, e.default = c, n.exports = c, n.exports.default = c;
|
|
5339
|
-
}(
|
|
5346
|
+
}(Fs, Fs.exports)), Fs.exports;
|
|
5340
5347
|
}
|
|
5341
5348
|
var Kt = Jm();
|
|
5342
5349
|
const Ne = /* @__PURE__ */ Ga(Kt);
|
|
@@ -5355,7 +5362,7 @@ class on extends _t {
|
|
|
5355
5362
|
}
|
|
5356
5363
|
on.blotName = "break";
|
|
5357
5364
|
on.tagName = "BR";
|
|
5358
|
-
let sn = class extends
|
|
5365
|
+
let sn = class extends ei {
|
|
5359
5366
|
};
|
|
5360
5367
|
const e0 = {
|
|
5361
5368
|
"&": "&",
|
|
@@ -5364,7 +5371,7 @@ const e0 = {
|
|
|
5364
5371
|
'"': """,
|
|
5365
5372
|
"'": "'"
|
|
5366
5373
|
};
|
|
5367
|
-
function
|
|
5374
|
+
function fi(n) {
|
|
5368
5375
|
return n.replace(/[&<>"']/g, (e) => e0[e]);
|
|
5369
5376
|
}
|
|
5370
5377
|
const hn = class hn extends Ha {
|
|
@@ -5401,9 +5408,9 @@ we(hn, "order", [
|
|
|
5401
5408
|
"code"
|
|
5402
5409
|
// Must be higher
|
|
5403
5410
|
]);
|
|
5404
|
-
let
|
|
5411
|
+
let mn = hn;
|
|
5405
5412
|
const Xo = 1;
|
|
5406
|
-
class At extends
|
|
5413
|
+
class At extends ls {
|
|
5407
5414
|
constructor() {
|
|
5408
5415
|
super(...arguments);
|
|
5409
5416
|
we(this, "cache", {});
|
|
@@ -5463,10 +5470,10 @@ class At extends us {
|
|
|
5463
5470
|
At.blotName = "block";
|
|
5464
5471
|
At.tagName = "P";
|
|
5465
5472
|
At.defaultChild = on;
|
|
5466
|
-
At.allowedChildren = [on,
|
|
5473
|
+
At.allowedChildren = [on, mn, _t, sn];
|
|
5467
5474
|
class Wt extends _t {
|
|
5468
5475
|
attach() {
|
|
5469
|
-
super.attach(), this.attributes = new
|
|
5476
|
+
super.attach(), this.attributes = new ui(this.domNode);
|
|
5470
5477
|
}
|
|
5471
5478
|
delta() {
|
|
5472
5479
|
return new Ne().insert(this.value(), {
|
|
@@ -5606,7 +5613,7 @@ const Ht = class Ht extends _t {
|
|
|
5606
5613
|
};
|
|
5607
5614
|
we(Ht, "blotName", "cursor"), we(Ht, "className", "ql-cursor"), we(Ht, "tagName", "span"), we(Ht, "CONTENTS", "\uFEFF");
|
|
5608
5615
|
let Pr = Ht;
|
|
5609
|
-
var
|
|
5616
|
+
var _i = { exports: {} }, Yo;
|
|
5610
5617
|
function t0() {
|
|
5611
5618
|
return Yo || (Yo = 1, function(n) {
|
|
5612
5619
|
var e = Object.prototype.hasOwnProperty, t = "~";
|
|
@@ -5711,44 +5718,44 @@ function t0() {
|
|
|
5711
5718
|
var c;
|
|
5712
5719
|
return l ? (c = t ? t + l : l, this._events[c] && a(this, c)) : (this._events = new r(), this._eventsCount = 0), this;
|
|
5713
5720
|
}, u.prototype.off = u.prototype.removeListener, u.prototype.addListener = u.prototype.on, u.prefixed = t, u.EventEmitter = u, n.exports = u;
|
|
5714
|
-
}(
|
|
5721
|
+
}(_i)), _i.exports;
|
|
5715
5722
|
}
|
|
5716
5723
|
var n0 = t0();
|
|
5717
|
-
const r0 = /* @__PURE__ */ Ga(n0),
|
|
5718
|
-
let
|
|
5724
|
+
const r0 = /* @__PURE__ */ Ga(n0), ya = /* @__PURE__ */ new WeakMap(), ba = ["error", "warn", "log", "info"];
|
|
5725
|
+
let xa = "warn";
|
|
5719
5726
|
function Nu(n) {
|
|
5720
|
-
if (
|
|
5727
|
+
if (xa && ba.indexOf(n) <= ba.indexOf(xa)) {
|
|
5721
5728
|
for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), r = 1; r < e; r++)
|
|
5722
5729
|
t[r - 1] = arguments[r];
|
|
5723
5730
|
console[n](...t);
|
|
5724
5731
|
}
|
|
5725
5732
|
}
|
|
5726
5733
|
function Pn(n) {
|
|
5727
|
-
return
|
|
5734
|
+
return ba.reduce((e, t) => (e[t] = Nu.bind(console, t, n), e), {});
|
|
5728
5735
|
}
|
|
5729
5736
|
Pn.level = (n) => {
|
|
5730
|
-
|
|
5737
|
+
xa = n;
|
|
5731
5738
|
};
|
|
5732
5739
|
Nu.level = Pn.level;
|
|
5733
|
-
const
|
|
5740
|
+
const qi = Pn("quill:events"), s0 = ["selectionchange", "mousedown", "mouseup", "click"];
|
|
5734
5741
|
s0.forEach((n) => {
|
|
5735
5742
|
document.addEventListener(n, function() {
|
|
5736
5743
|
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
|
5737
5744
|
t[r] = arguments[r];
|
|
5738
5745
|
Array.from(document.querySelectorAll(".ql-container")).forEach((s) => {
|
|
5739
|
-
const o =
|
|
5746
|
+
const o = ya.get(s);
|
|
5740
5747
|
o && o.emitter && o.emitter.handleDOM(...t);
|
|
5741
5748
|
});
|
|
5742
5749
|
});
|
|
5743
5750
|
});
|
|
5744
5751
|
class Oe extends r0 {
|
|
5745
5752
|
constructor() {
|
|
5746
|
-
super(), this.domListeners = {}, this.on("error",
|
|
5753
|
+
super(), this.domListeners = {}, this.on("error", qi.error);
|
|
5747
5754
|
}
|
|
5748
5755
|
emit() {
|
|
5749
5756
|
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
|
5750
5757
|
t[r] = arguments[r];
|
|
5751
|
-
return
|
|
5758
|
+
return qi.log.call(qi, ...t), super.emit(...t);
|
|
5752
5759
|
}
|
|
5753
5760
|
handleDOM(e) {
|
|
5754
5761
|
for (var t = arguments.length, r = new Array(t > 1 ? t - 1 : 0), s = 1; s < t; s++)
|
|
@@ -5787,7 +5794,7 @@ we(Oe, "events", {
|
|
|
5787
5794
|
SILENT: "silent",
|
|
5788
5795
|
USER: "user"
|
|
5789
5796
|
});
|
|
5790
|
-
const
|
|
5797
|
+
const zi = Pn("quill:selection");
|
|
5791
5798
|
class er {
|
|
5792
5799
|
constructor(e) {
|
|
5793
5800
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
@@ -5904,7 +5911,7 @@ class i0 {
|
|
|
5904
5911
|
const t = e.getRangeAt(0);
|
|
5905
5912
|
if (t == null) return null;
|
|
5906
5913
|
const r = this.normalizeNative(t);
|
|
5907
|
-
return
|
|
5914
|
+
return zi.info("getNativeRange", r), r;
|
|
5908
5915
|
}
|
|
5909
5916
|
getRange() {
|
|
5910
5917
|
const e = this.scroll.domNode;
|
|
@@ -5914,7 +5921,7 @@ class i0 {
|
|
|
5914
5921
|
return t == null ? [null, null] : [this.normalizedToRange(t), t];
|
|
5915
5922
|
}
|
|
5916
5923
|
hasFocus() {
|
|
5917
|
-
return document.activeElement === this.root || document.activeElement != null &&
|
|
5924
|
+
return document.activeElement === this.root || document.activeElement != null && Hi(this.root, document.activeElement);
|
|
5918
5925
|
}
|
|
5919
5926
|
normalizedToRange(e) {
|
|
5920
5927
|
const t = [[e.start.node, e.start.offset]];
|
|
@@ -5926,7 +5933,7 @@ class i0 {
|
|
|
5926
5933
|
return new er(o, s - o);
|
|
5927
5934
|
}
|
|
5928
5935
|
normalizeNative(e) {
|
|
5929
|
-
if (!
|
|
5936
|
+
if (!Hi(this.root, e.startContainer) || !e.collapsed && !Hi(this.root, e.endContainer))
|
|
5930
5937
|
return null;
|
|
5931
5938
|
const t = {
|
|
5932
5939
|
start: {
|
|
@@ -5964,7 +5971,7 @@ class i0 {
|
|
|
5964
5971
|
}
|
|
5965
5972
|
setNativeRange(e, t) {
|
|
5966
5973
|
let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : e, s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : t, o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1;
|
|
5967
|
-
if (
|
|
5974
|
+
if (zi.info("setNativeRange", e, t, r, s), e != null && (this.root.parentNode == null || e.parentNode == null || // @ts-expect-error Fix me later
|
|
5968
5975
|
r.parentNode == null))
|
|
5969
5976
|
return;
|
|
5970
5977
|
const a = document.getSelection();
|
|
@@ -5986,7 +5993,7 @@ class i0 {
|
|
|
5986
5993
|
}
|
|
5987
5994
|
setRange(e) {
|
|
5988
5995
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Oe.sources.API;
|
|
5989
|
-
if (typeof t == "string" && (r = t, t = !1),
|
|
5996
|
+
if (typeof t == "string" && (r = t, t = !1), zi.info("setRange", e), e != null) {
|
|
5990
5997
|
const s = this.rangeToNative(e);
|
|
5991
5998
|
this.setNativeRange(...s, t);
|
|
5992
5999
|
} else
|
|
@@ -6006,7 +6013,7 @@ class i0 {
|
|
|
6006
6013
|
}
|
|
6007
6014
|
}
|
|
6008
6015
|
}
|
|
6009
|
-
function
|
|
6016
|
+
function Hi(n, e) {
|
|
6010
6017
|
try {
|
|
6011
6018
|
e.parentNode;
|
|
6012
6019
|
} catch {
|
|
@@ -6124,7 +6131,7 @@ class o0 {
|
|
|
6124
6131
|
const [r, s] = this.scroll.line(e);
|
|
6125
6132
|
if (r) {
|
|
6126
6133
|
const o = r.length();
|
|
6127
|
-
return r.length() >= s + t && !(s === 0 && t === o) ?
|
|
6134
|
+
return r.length() >= s + t && !(s === 0 && t === o) ? us(r, s, t, !0) : us(this.scroll, e, t, !0);
|
|
6128
6135
|
}
|
|
6129
6136
|
return "";
|
|
6130
6137
|
}
|
|
@@ -6181,7 +6188,7 @@ class o0 {
|
|
|
6181
6188
|
}
|
|
6182
6189
|
function Sr(n, e, t) {
|
|
6183
6190
|
if (n.length === 0) {
|
|
6184
|
-
const [g] =
|
|
6191
|
+
const [g] = Vi(t.pop());
|
|
6185
6192
|
return e <= 0 ? `</li></${g}>` : `</li></${g}>${Sr([], e - 1, t)}`;
|
|
6186
6193
|
}
|
|
6187
6194
|
const [{
|
|
@@ -6190,21 +6197,21 @@ function Sr(n, e, t) {
|
|
|
6190
6197
|
length: o,
|
|
6191
6198
|
indent: a,
|
|
6192
6199
|
type: u
|
|
6193
|
-
}, ...i] = n, [l, c] =
|
|
6200
|
+
}, ...i] = n, [l, c] = Vi(u);
|
|
6194
6201
|
if (a > e)
|
|
6195
|
-
return t.push(u), a === e + 1 ? `<${l}><li${c}>${
|
|
6202
|
+
return t.push(u), a === e + 1 ? `<${l}><li${c}>${us(r, s, o)}${Sr(i, a, t)}` : `<${l}><li>${Sr(n, e + 1, t)}`;
|
|
6196
6203
|
const d = t[t.length - 1];
|
|
6197
6204
|
if (a === e && u === d)
|
|
6198
|
-
return `</li><li${c}>${
|
|
6199
|
-
const [f] =
|
|
6205
|
+
return `</li><li${c}>${us(r, s, o)}${Sr(i, a, t)}`;
|
|
6206
|
+
const [f] = Vi(t.pop());
|
|
6200
6207
|
return `</li></${f}>${Sr(n, e - 1, t)}`;
|
|
6201
6208
|
}
|
|
6202
|
-
function
|
|
6209
|
+
function us(n, e, t) {
|
|
6203
6210
|
let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
|
|
6204
6211
|
if ("html" in n && typeof n.html == "function")
|
|
6205
6212
|
return n.html(e, t);
|
|
6206
6213
|
if (n instanceof sn)
|
|
6207
|
-
return
|
|
6214
|
+
return fi(n.value().slice(e, e + t)).replaceAll(" ", " ");
|
|
6208
6215
|
if (n instanceof nn) {
|
|
6209
6216
|
if (n.statics.blotName === "list-container") {
|
|
6210
6217
|
const l = [];
|
|
@@ -6221,7 +6228,7 @@ function cs(n, e, t) {
|
|
|
6221
6228
|
}
|
|
6222
6229
|
const s = [];
|
|
6223
6230
|
if (n.children.forEachAt(e, t, (l, c, d) => {
|
|
6224
|
-
s.push(
|
|
6231
|
+
s.push(us(l, c, d));
|
|
6225
6232
|
}), r || n.statics.blotName === "list")
|
|
6226
6233
|
return s.join("");
|
|
6227
6234
|
const {
|
|
@@ -6239,7 +6246,7 @@ function l0(n, e) {
|
|
|
6239
6246
|
return s === n[r] ? t[r] = s : Array.isArray(s) ? s.indexOf(n[r]) < 0 ? t[r] = s.concat([n[r]]) : t[r] = s : t[r] = [s, n[r]], t;
|
|
6240
6247
|
}, {});
|
|
6241
6248
|
}
|
|
6242
|
-
function
|
|
6249
|
+
function Vi(n) {
|
|
6243
6250
|
const e = n === "ordered" ? "ol" : "ul";
|
|
6244
6251
|
switch (n) {
|
|
6245
6252
|
case "checked":
|
|
@@ -6291,19 +6298,19 @@ class ln {
|
|
|
6291
6298
|
}
|
|
6292
6299
|
}
|
|
6293
6300
|
we(ln, "DEFAULTS", {});
|
|
6294
|
-
const
|
|
6301
|
+
const Ds = "\uFEFF";
|
|
6295
6302
|
class Wa extends _t {
|
|
6296
6303
|
constructor(e, t) {
|
|
6297
6304
|
super(e, t), this.contentNode = document.createElement("span"), this.contentNode.setAttribute("contenteditable", "false"), Array.from(this.domNode.childNodes).forEach((r) => {
|
|
6298
6305
|
this.contentNode.appendChild(r);
|
|
6299
|
-
}), this.leftGuard = document.createTextNode(
|
|
6306
|
+
}), this.leftGuard = document.createTextNode(Ds), this.rightGuard = document.createTextNode(Ds), this.domNode.appendChild(this.leftGuard), this.domNode.appendChild(this.contentNode), this.domNode.appendChild(this.rightGuard);
|
|
6300
6307
|
}
|
|
6301
6308
|
index(e, t) {
|
|
6302
6309
|
return e === this.leftGuard ? 0 : e === this.rightGuard ? 1 : super.index(e, t);
|
|
6303
6310
|
}
|
|
6304
6311
|
restore(e) {
|
|
6305
6312
|
let t = null, r;
|
|
6306
|
-
const s = e.data.split(
|
|
6313
|
+
const s = e.data.split(Ds).join("");
|
|
6307
6314
|
if (e === this.leftGuard)
|
|
6308
6315
|
if (this.prev instanceof sn) {
|
|
6309
6316
|
const o = this.prev.length();
|
|
@@ -6323,7 +6330,7 @@ class Wa extends _t {
|
|
|
6323
6330
|
startNode: r,
|
|
6324
6331
|
startOffset: s.length
|
|
6325
6332
|
}));
|
|
6326
|
-
return e.data =
|
|
6333
|
+
return e.data = Ds, t;
|
|
6327
6334
|
}
|
|
6328
6335
|
update(e, t) {
|
|
6329
6336
|
e.forEach((r) => {
|
|
@@ -6385,7 +6392,7 @@ const f0 = (n) => n.parentElement || n.getRootNode().host || null, d0 = (n) => {
|
|
|
6385
6392
|
bottom: e.top + n.clientHeight * r,
|
|
6386
6393
|
left: e.left
|
|
6387
6394
|
};
|
|
6388
|
-
},
|
|
6395
|
+
}, js = (n) => {
|
|
6389
6396
|
const e = parseInt(n, 10);
|
|
6390
6397
|
return Number.isNaN(e) ? 0 : e;
|
|
6391
6398
|
}, Jo = (n, e, t, r, s, o) => n < t && e > r ? 0 : n < t ? -(t - n + s) : e > r ? e - n > r - t ? n + s - t : e - r + o : 0, h0 = (n, e) => {
|
|
@@ -6398,7 +6405,7 @@ const f0 = (n) => n.parentElement || n.getRootNode().host || null, d0 = (n) => {
|
|
|
6398
6405
|
right: ((o = window.visualViewport) == null ? void 0 : o.width) ?? t.documentElement.clientWidth,
|
|
6399
6406
|
bottom: ((a = window.visualViewport) == null ? void 0 : a.height) ?? t.documentElement.clientHeight,
|
|
6400
6407
|
left: 0
|
|
6401
|
-
} : d0(s), c = getComputedStyle(s), d = Jo(r.left, r.right, l.left, l.right,
|
|
6408
|
+
} : d0(s), c = getComputedStyle(s), d = Jo(r.left, r.right, l.left, l.right, js(c.scrollPaddingLeft), js(c.scrollPaddingRight)), f = Jo(r.top, r.bottom, l.top, l.bottom, js(c.scrollPaddingTop), js(c.scrollPaddingBottom));
|
|
6402
6409
|
if (d || f)
|
|
6403
6410
|
if (i)
|
|
6404
6411
|
(u = t.defaultView) == null || u.scrollBy(d, f);
|
|
@@ -6433,7 +6440,7 @@ const f0 = (n) => n.parentElement || n.getRootNode().host || null, d0 = (n) => {
|
|
|
6433
6440
|
break;
|
|
6434
6441
|
}
|
|
6435
6442
|
}), r;
|
|
6436
|
-
}, Cr = Pn("quill"),
|
|
6443
|
+
}, Cr = Pn("quill"), $s = new kr();
|
|
6437
6444
|
nn.uiClass = "ql-ui";
|
|
6438
6445
|
const Jt = class Jt {
|
|
6439
6446
|
static debug(e) {
|
|
@@ -6441,7 +6448,7 @@ const Jt = class Jt {
|
|
|
6441
6448
|
}
|
|
6442
6449
|
static find(e) {
|
|
6443
6450
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
6444
|
-
return
|
|
6451
|
+
return ya.get(e) || $s.find(e, t);
|
|
6445
6452
|
}
|
|
6446
6453
|
static import(e) {
|
|
6447
6454
|
return this.imports[e] == null && Cr.error(`Cannot import ${e}. Are you sure it was registered?`), this.imports[e];
|
|
@@ -6454,7 +6461,7 @@ const Jt = class Jt {
|
|
|
6454
6461
|
});
|
|
6455
6462
|
} else {
|
|
6456
6463
|
const e = arguments.length <= 0 ? void 0 : arguments[0], t = arguments.length <= 1 ? void 0 : arguments[1], r = !!(!(arguments.length <= 2) && arguments[2]);
|
|
6457
|
-
this.imports[e] != null && !r && Cr.warn(`Overwriting ${e} with`, t), this.imports[e] = t, (e.startsWith("blots/") || e.startsWith("formats/")) && t && typeof t != "boolean" && t.blotName !== "abstract" &&
|
|
6464
|
+
this.imports[e] != null && !r && Cr.warn(`Overwriting ${e} with`, t), this.imports[e] = t, (e.startsWith("blots/") || e.startsWith("formats/")) && t && typeof t != "boolean" && t.blotName !== "abstract" && $s.register(t), typeof t.register == "function" && t.register($s);
|
|
6458
6465
|
}
|
|
6459
6466
|
}
|
|
6460
6467
|
constructor(e) {
|
|
@@ -6465,7 +6472,7 @@ const Jt = class Jt {
|
|
|
6465
6472
|
}
|
|
6466
6473
|
this.options.debug && Jt.debug(this.options.debug);
|
|
6467
6474
|
const r = this.container.innerHTML.trim();
|
|
6468
|
-
this.container.classList.add("ql-container"), this.container.innerHTML = "",
|
|
6475
|
+
this.container.classList.add("ql-container"), this.container.innerHTML = "", ya.set(this.container, this), this.root = this.addContainer("ql-editor"), this.root.classList.add("ql-blank"), this.emitter = new Oe();
|
|
6469
6476
|
const s = Va.blotName, o = this.options.registry.query(s);
|
|
6470
6477
|
if (!o || !("blotName" in o))
|
|
6471
6478
|
throw new Error(`Cannot initialize Quill without "${s}" blot`);
|
|
@@ -6512,7 +6519,7 @@ const Jt = class Jt {
|
|
|
6512
6519
|
this.selection.setRange(null);
|
|
6513
6520
|
}
|
|
6514
6521
|
deleteText(e, t, r) {
|
|
6515
|
-
return [e, t, , r] =
|
|
6522
|
+
return [e, t, , r] = Tn(e, t, r), Qt.call(this, () => this.editor.deleteText(e, t), r, e, -1 * t);
|
|
6516
6523
|
}
|
|
6517
6524
|
disable() {
|
|
6518
6525
|
this.enable(!1);
|
|
@@ -6552,7 +6559,7 @@ const Jt = class Jt {
|
|
|
6552
6559
|
}
|
|
6553
6560
|
formatLine(e, t, r, s, o) {
|
|
6554
6561
|
let a;
|
|
6555
|
-
return [e, t, a, o] =
|
|
6562
|
+
return [e, t, a, o] = Tn(
|
|
6556
6563
|
e,
|
|
6557
6564
|
t,
|
|
6558
6565
|
// @ts-expect-error
|
|
@@ -6563,7 +6570,7 @@ const Jt = class Jt {
|
|
|
6563
6570
|
}
|
|
6564
6571
|
formatText(e, t, r, s, o) {
|
|
6565
6572
|
let a;
|
|
6566
|
-
return [e, t, a, o] =
|
|
6573
|
+
return [e, t, a, o] = Tn(
|
|
6567
6574
|
// @ts-expect-error
|
|
6568
6575
|
e,
|
|
6569
6576
|
t,
|
|
@@ -6587,7 +6594,7 @@ const Jt = class Jt {
|
|
|
6587
6594
|
}
|
|
6588
6595
|
getContents() {
|
|
6589
6596
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - e;
|
|
6590
|
-
return [e, t] =
|
|
6597
|
+
return [e, t] = Tn(e, t), this.editor.getContents(e, t);
|
|
6591
6598
|
}
|
|
6592
6599
|
getFormat() {
|
|
6593
6600
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.getSelection(!0), t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
@@ -6617,11 +6624,11 @@ const Jt = class Jt {
|
|
|
6617
6624
|
}
|
|
6618
6625
|
getSemanticHTML() {
|
|
6619
6626
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, t = arguments.length > 1 ? arguments[1] : void 0;
|
|
6620
|
-
return typeof e == "number" && (t = t ?? this.getLength() - e), [e, t] =
|
|
6627
|
+
return typeof e == "number" && (t = t ?? this.getLength() - e), [e, t] = Tn(e, t), this.editor.getHTML(e, t);
|
|
6621
6628
|
}
|
|
6622
6629
|
getText() {
|
|
6623
6630
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, t = arguments.length > 1 ? arguments[1] : void 0;
|
|
6624
|
-
return typeof e == "number" && (t = t ?? this.getLength() - e), [e, t] =
|
|
6631
|
+
return typeof e == "number" && (t = t ?? this.getLength() - e), [e, t] = Tn(e, t), this.editor.getText(e, t);
|
|
6625
6632
|
}
|
|
6626
6633
|
hasFocus() {
|
|
6627
6634
|
return this.selection.hasFocus();
|
|
@@ -6632,7 +6639,7 @@ const Jt = class Jt {
|
|
|
6632
6639
|
}
|
|
6633
6640
|
insertText(e, t, r, s, o) {
|
|
6634
6641
|
let a;
|
|
6635
|
-
return [e, , a, o] =
|
|
6642
|
+
return [e, , a, o] = Tn(e, 0, r, s, o), Qt.call(this, () => this.editor.insertText(e, t, a), o, e, t.length);
|
|
6636
6643
|
}
|
|
6637
6644
|
isEnabled() {
|
|
6638
6645
|
return this.scroll.isEnabled();
|
|
@@ -6647,7 +6654,7 @@ const Jt = class Jt {
|
|
|
6647
6654
|
return this.emitter.once(...arguments);
|
|
6648
6655
|
}
|
|
6649
6656
|
removeFormat(e, t, r) {
|
|
6650
|
-
return [e, t, , r] =
|
|
6657
|
+
return [e, t, , r] = Tn(e, t, r), Qt.call(this, () => this.editor.removeFormat(e, t), r, e);
|
|
6651
6658
|
}
|
|
6652
6659
|
scrollRectIntoView(e) {
|
|
6653
6660
|
h0(this.root, e);
|
|
@@ -6675,7 +6682,7 @@ const Jt = class Jt {
|
|
|
6675
6682
|
}, t);
|
|
6676
6683
|
}
|
|
6677
6684
|
setSelection(e, t, r) {
|
|
6678
|
-
e == null ? this.selection.setRange(null, t || Jt.sources.API) : ([e, t, , r] =
|
|
6685
|
+
e == null ? this.selection.setRange(null, t || Jt.sources.API) : ([e, t, , r] = Tn(e, t, r), this.selection.setRange(new er(Math.max(0, e), t), r), r !== Oe.sources.SILENT && this.scrollSelectionIntoView());
|
|
6679
6686
|
}
|
|
6680
6687
|
setText(e) {
|
|
6681
6688
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Oe.sources.API;
|
|
@@ -6702,7 +6709,7 @@ we(Jt, "DEFAULTS", {
|
|
|
6702
6709
|
},
|
|
6703
6710
|
placeholder: "",
|
|
6704
6711
|
readOnly: !1,
|
|
6705
|
-
registry:
|
|
6712
|
+
registry: $s,
|
|
6706
6713
|
theme: "default"
|
|
6707
6714
|
}), we(Jt, "events", Oe.events), we(Jt, "sources", Oe.sources), we(Jt, "version", "2.0.3"), we(Jt, "imports", {
|
|
6708
6715
|
delta: Ne,
|
|
@@ -6714,7 +6721,7 @@ let le = Jt;
|
|
|
6714
6721
|
function el(n) {
|
|
6715
6722
|
return typeof n == "string" ? document.querySelector(n) : n;
|
|
6716
6723
|
}
|
|
6717
|
-
function
|
|
6724
|
+
function Gi(n) {
|
|
6718
6725
|
return Object.entries(n ?? {}).reduce((e, t) => {
|
|
6719
6726
|
let [r, s] = t;
|
|
6720
6727
|
return {
|
|
@@ -6740,14 +6747,14 @@ function m0(n, e) {
|
|
|
6740
6747
|
modules: u,
|
|
6741
6748
|
...i
|
|
6742
6749
|
} = s.DEFAULTS;
|
|
6743
|
-
let l =
|
|
6750
|
+
let l = Gi(e.modules);
|
|
6744
6751
|
l != null && l.toolbar && l.toolbar.constructor !== Object && (l = {
|
|
6745
6752
|
...l,
|
|
6746
6753
|
toolbar: {
|
|
6747
6754
|
container: l.toolbar
|
|
6748
6755
|
}
|
|
6749
6756
|
});
|
|
6750
|
-
const c = _n({},
|
|
6757
|
+
const c = _n({}, Gi(o), Gi(u), l), d = {
|
|
6751
6758
|
...a,
|
|
6752
6759
|
...tl(i),
|
|
6753
6760
|
...tl(e)
|
|
@@ -6782,7 +6789,7 @@ function Qt(n, e, t, r) {
|
|
|
6782
6789
|
}
|
|
6783
6790
|
return a;
|
|
6784
6791
|
}
|
|
6785
|
-
function
|
|
6792
|
+
function Tn(n, e, t, r, s) {
|
|
6786
6793
|
let o = {};
|
|
6787
6794
|
return typeof n.index == "number" && typeof n.length == "number" ? typeof e != "number" ? (s = r, r = t, t = e, e = n.length, n = n.index) : (e = n.length, n = n.index) : typeof e != "number" && (s = r, r = t, t = e, e = 0), typeof t == "object" ? (o = t, s = r) : typeof t == "string" && (r != null ? o[t] = r : s = t), s = s || Oe.sources.API, [n, e, o, s];
|
|
6788
6795
|
}
|
|
@@ -6795,7 +6802,7 @@ function nl(n, e, t, r) {
|
|
|
6795
6802
|
e.transformPosition(u, r !== Oe.sources.USER)
|
|
6796
6803
|
)) : [o, a] = [n.index, n.index + n.length].map((u) => u < e || u === e && r === Oe.sources.USER ? u : s >= 0 ? u + s : Math.max(e, u + s)), new er(o, a - o);
|
|
6797
6804
|
}
|
|
6798
|
-
class ar extends
|
|
6805
|
+
class ar extends ci {
|
|
6799
6806
|
}
|
|
6800
6807
|
function rl(n) {
|
|
6801
6808
|
return n instanceof At || n instanceof Wt;
|
|
@@ -6877,7 +6884,7 @@ class Tr extends Va {
|
|
|
6877
6884
|
const i = o.type === "block" && (o.delta.length() === 0 || !this.descendant(Wt, e)[0] && e < this.length()), l = o.type === "block" ? o.delta : new Ne().insert({
|
|
6878
6885
|
[o.key]: o.value
|
|
6879
6886
|
});
|
|
6880
|
-
|
|
6887
|
+
Wi(this, e, l);
|
|
6881
6888
|
const c = o.type === "block" ? 1 : 0, d = e + l.length() + c;
|
|
6882
6889
|
i && this.insertAt(d - 1, `
|
|
6883
6890
|
`);
|
|
@@ -6890,7 +6897,7 @@ class Tr extends Va {
|
|
|
6890
6897
|
if (r.length && (a && (a = a.split(u), u = 0), r.forEach((i) => {
|
|
6891
6898
|
if (i.type === "block") {
|
|
6892
6899
|
const l = this.createBlock(i.attributes, a || void 0);
|
|
6893
|
-
|
|
6900
|
+
Wi(l, 0, i.delta);
|
|
6894
6901
|
} else {
|
|
6895
6902
|
const l = this.create(i.key, i.value);
|
|
6896
6903
|
this.insertBefore(l, a || void 0), Object.keys(i.attributes).forEach((c) => {
|
|
@@ -6899,7 +6906,7 @@ class Tr extends Va {
|
|
|
6899
6906
|
}
|
|
6900
6907
|
})), s.type === "block" && s.delta.length()) {
|
|
6901
6908
|
const i = a ? a.offset(a.scroll) + u : this.length();
|
|
6902
|
-
|
|
6909
|
+
Wi(this, i, s.delta);
|
|
6903
6910
|
}
|
|
6904
6911
|
this.batchEnd(), this.optimize();
|
|
6905
6912
|
}
|
|
@@ -6921,7 +6928,7 @@ class Tr extends Va {
|
|
|
6921
6928
|
const r = (s, o, a) => {
|
|
6922
6929
|
let u = [], i = a;
|
|
6923
6930
|
return s.children.forEachAt(o, a, (l, c, d) => {
|
|
6924
|
-
rl(l) ? u.push(l) : l instanceof
|
|
6931
|
+
rl(l) ? u.push(l) : l instanceof ci && (u = u.concat(r(l, c, i))), i -= d;
|
|
6925
6932
|
}), u;
|
|
6926
6933
|
};
|
|
6927
6934
|
return r(this, e, t);
|
|
@@ -7011,7 +7018,7 @@ class Tr extends Va {
|
|
|
7011
7018
|
}
|
|
7012
7019
|
}
|
|
7013
7020
|
we(Tr, "blotName", "scroll"), we(Tr, "className", "ql-editor"), we(Tr, "tagName", "DIV"), we(Tr, "defaultChild", At), we(Tr, "allowedChildren", [At, Wt, ar]);
|
|
7014
|
-
function
|
|
7021
|
+
function Wi(n, e, t) {
|
|
7015
7022
|
t.reduce((r, s) => {
|
|
7016
7023
|
const o = Kt.Op.length(s);
|
|
7017
7024
|
let a = s.attributes || {};
|
|
@@ -7038,7 +7045,7 @@ function Ki(n, e, t) {
|
|
|
7038
7045
|
const Ka = {
|
|
7039
7046
|
scope: Ce.BLOCK,
|
|
7040
7047
|
whitelist: ["right", "center", "justify"]
|
|
7041
|
-
}, y0 = new
|
|
7048
|
+
}, y0 = new vn("align", "align", Ka), Ru = new an("align", "ql-align", Ka), Cu = new Hn("align", "text-align", Ka);
|
|
7042
7049
|
class Iu extends Hn {
|
|
7043
7050
|
value(e) {
|
|
7044
7051
|
let t = super.value(e);
|
|
@@ -7065,7 +7072,7 @@ class or extends ar {
|
|
|
7065
7072
|
}
|
|
7066
7073
|
html(e, t) {
|
|
7067
7074
|
return `<pre>
|
|
7068
|
-
${
|
|
7075
|
+
${fi(this.code(e, t))}
|
|
7069
7076
|
</pre>`;
|
|
7070
7077
|
}
|
|
7071
7078
|
}
|
|
@@ -7075,7 +7082,7 @@ class Lt extends At {
|
|
|
7075
7082
|
}
|
|
7076
7083
|
}
|
|
7077
7084
|
we(Lt, "TAB", " ");
|
|
7078
|
-
class Za extends
|
|
7085
|
+
class Za extends mn {
|
|
7079
7086
|
}
|
|
7080
7087
|
Za.blotName = "code";
|
|
7081
7088
|
Za.tagName = "CODE";
|
|
@@ -7091,7 +7098,7 @@ Lt.requiredContainer = or;
|
|
|
7091
7098
|
const Qa = {
|
|
7092
7099
|
scope: Ce.BLOCK,
|
|
7093
7100
|
whitelist: ["rtl"]
|
|
7094
|
-
}, Lu = new
|
|
7101
|
+
}, Lu = new vn("direction", "dir", Qa), ku = new an("direction", "ql-direction", Qa), Pu = new Hn("direction", "direction", Qa), Fu = {
|
|
7095
7102
|
scope: Ce.INLINE,
|
|
7096
7103
|
whitelist: ["serif", "monospace"]
|
|
7097
7104
|
}, Mu = new an("font", "ql-font", Fu);
|
|
@@ -7107,7 +7114,7 @@ const Bu = new E0("font", "font-family", Fu), Uu = new an("size", "ql-size", {
|
|
|
7107
7114
|
scope: Ce.INLINE,
|
|
7108
7115
|
whitelist: ["10px", "18px", "32px"]
|
|
7109
7116
|
}), w0 = Pn("quill:keyboard"), A0 = /Mac/i.test(navigator.platform) ? "metaKey" : "ctrlKey";
|
|
7110
|
-
class
|
|
7117
|
+
class di extends ln {
|
|
7111
7118
|
static match(e, t) {
|
|
7112
7119
|
return ["altKey", "ctrlKey", "metaKey", "shiftKey"].some((r) => !!t[r] !== e[r] && t[r] !== null) ? !1 : t.key === e.key || t.key === e.which;
|
|
7113
7120
|
}
|
|
@@ -7184,13 +7191,13 @@ class hi extends ln {
|
|
|
7184
7191
|
listen() {
|
|
7185
7192
|
this.quill.root.addEventListener("keydown", (e) => {
|
|
7186
7193
|
if (e.defaultPrevented || e.isComposing || e.keyCode === 229 && (e.key === "Enter" || e.key === "Backspace")) return;
|
|
7187
|
-
const s = (this.bindings[e.key] || []).concat(this.bindings[e.which] || []).filter((S) =>
|
|
7194
|
+
const s = (this.bindings[e.key] || []).concat(this.bindings[e.which] || []).filter((S) => di.match(e, S));
|
|
7188
7195
|
if (s.length === 0) return;
|
|
7189
7196
|
const o = le.find(e.target, !0);
|
|
7190
7197
|
if (o && o.scroll !== this.quill.scroll) return;
|
|
7191
7198
|
const a = this.quill.getSelection();
|
|
7192
7199
|
if (a == null || !this.quill.hasFocus()) return;
|
|
7193
|
-
const [u, i] = this.quill.getLine(a.index), [l, c] = this.quill.getLeaf(a.index), [d, f] = a.length === 0 ? [l, c] : this.quill.getLeaf(a.index + a.length), g = l instanceof
|
|
7200
|
+
const [u, i] = this.quill.getLine(a.index), [l, c] = this.quill.getLeaf(a.index), [d, f] = a.length === 0 ? [l, c] : this.quill.getLeaf(a.index + a.length), g = l instanceof ei ? l.value().slice(0, c) : "", p = d instanceof ei ? d.value().slice(f) : "", v = {
|
|
7194
7201
|
collapsed: a.length === 0,
|
|
7195
7202
|
// @ts-expect-error Fix me later
|
|
7196
7203
|
empty: a.length === 0 && u.length() <= 1,
|
|
@@ -7260,9 +7267,9 @@ class hi extends ln {
|
|
|
7260
7267
|
}
|
|
7261
7268
|
const S0 = {
|
|
7262
7269
|
bindings: {
|
|
7263
|
-
bold:
|
|
7264
|
-
italic:
|
|
7265
|
-
underline:
|
|
7270
|
+
bold: Ki("bold"),
|
|
7271
|
+
italic: Ki("italic"),
|
|
7272
|
+
underline: Ki("underline"),
|
|
7266
7273
|
indent: {
|
|
7267
7274
|
// highlight tab or tab at beginning of list, indent or blockquote
|
|
7268
7275
|
key: "Tab",
|
|
@@ -7474,15 +7481,15 @@ const S0 = {
|
|
|
7474
7481
|
return !0;
|
|
7475
7482
|
}
|
|
7476
7483
|
},
|
|
7477
|
-
"embed left":
|
|
7478
|
-
"embed left shift":
|
|
7479
|
-
"embed right":
|
|
7480
|
-
"embed right shift":
|
|
7484
|
+
"embed left": _s("ArrowLeft", !1),
|
|
7485
|
+
"embed left shift": _s("ArrowLeft", !0),
|
|
7486
|
+
"embed right": _s("ArrowRight", !1),
|
|
7487
|
+
"embed right shift": _s("ArrowRight", !0),
|
|
7481
7488
|
"table down": al(!1),
|
|
7482
7489
|
"table up": al(!0)
|
|
7483
7490
|
}
|
|
7484
7491
|
};
|
|
7485
|
-
|
|
7492
|
+
di.DEFAULTS = S0;
|
|
7486
7493
|
function il(n) {
|
|
7487
7494
|
return {
|
|
7488
7495
|
key: "Tab",
|
|
@@ -7512,7 +7519,7 @@ function il(n) {
|
|
|
7512
7519
|
}
|
|
7513
7520
|
};
|
|
7514
7521
|
}
|
|
7515
|
-
function
|
|
7522
|
+
function _s(n, e) {
|
|
7516
7523
|
return {
|
|
7517
7524
|
key: n,
|
|
7518
7525
|
shiftKey: e,
|
|
@@ -7528,7 +7535,7 @@ function qs(n, e) {
|
|
|
7528
7535
|
}
|
|
7529
7536
|
};
|
|
7530
7537
|
}
|
|
7531
|
-
function
|
|
7538
|
+
function Ki(n) {
|
|
7532
7539
|
return {
|
|
7533
7540
|
key: n[0],
|
|
7534
7541
|
shortKey: !0,
|
|
@@ -7655,7 +7662,7 @@ const D0 = [U0, L0], j0 = (n) => {
|
|
|
7655
7662
|
n.documentElement && D0.forEach((e) => {
|
|
7656
7663
|
e(n);
|
|
7657
7664
|
});
|
|
7658
|
-
}, $0 = Pn("quill:clipboard"), _0 = [[Node.TEXT_NODE, J0], [Node.TEXT_NODE, ul], ["br", G0], [Node.ELEMENT_NODE, ul], [Node.ELEMENT_NODE, V0], [Node.ELEMENT_NODE, H0], [Node.ELEMENT_NODE, Z0], ["li", X0], ["ol, ul", Y0], ["pre", W0], ["tr", Q0], ["b",
|
|
7665
|
+
}, $0 = Pn("quill:clipboard"), _0 = [[Node.TEXT_NODE, J0], [Node.TEXT_NODE, ul], ["br", G0], [Node.ELEMENT_NODE, ul], [Node.ELEMENT_NODE, V0], [Node.ELEMENT_NODE, H0], [Node.ELEMENT_NODE, Z0], ["li", X0], ["ol, ul", Y0], ["pre", W0], ["tr", Q0], ["b", Xi("bold")], ["i", Xi("italic")], ["strike", Xi("strike")], ["style", K0]], q0 = [y0, Lu].reduce((n, e) => (n[e.keyName] = e, n), {}), ll = [Cu, Ya, Xa, Pu, Bu, Du].reduce((n, e) => (n[e.keyName] = e, n), {});
|
|
7659
7666
|
class ju extends ln {
|
|
7660
7667
|
constructor(e, t) {
|
|
7661
7668
|
super(e, t), this.quill.root.addEventListener("copy", (r) => this.onCaptureCopy(r, !1)), this.quill.root.addEventListener("cut", (r) => this.onCaptureCopy(r, !0)), this.quill.root.addEventListener("paste", this.onCapturePaste.bind(this)), this.matchers = [], _0.concat(this.options.matchers ?? []).forEach((r) => {
|
|
@@ -7678,7 +7685,7 @@ class ju extends ln {
|
|
|
7678
7685
|
if (!t)
|
|
7679
7686
|
return new Ne().insert(r || "", s);
|
|
7680
7687
|
const o = this.convertHTML(t);
|
|
7681
|
-
return
|
|
7688
|
+
return gs(o, `
|
|
7682
7689
|
`) && (o.ops[o.ops.length - 1].attributes == null || s.table) ? o.compose(new Ne().retain(o.length() - 1).delete(1)) : o;
|
|
7683
7690
|
}
|
|
7684
7691
|
normalizeHTML(e) {
|
|
@@ -7822,7 +7829,7 @@ function lr(n, e, t, r) {
|
|
|
7822
7829
|
});
|
|
7823
7830
|
}, new Ne()) : n;
|
|
7824
7831
|
}
|
|
7825
|
-
function
|
|
7832
|
+
function gs(n, e) {
|
|
7826
7833
|
let t = "";
|
|
7827
7834
|
for (let r = n.ops.length - 1; r >= 0 && t.length < e.length; --r) {
|
|
7828
7835
|
const s = n.ops[r];
|
|
@@ -7839,9 +7846,9 @@ function jn(n, e) {
|
|
|
7839
7846
|
function z0(n, e) {
|
|
7840
7847
|
return n.previousElementSibling && n.nextElementSibling && !jn(n.previousElementSibling, e) && !jn(n.nextElementSibling, e);
|
|
7841
7848
|
}
|
|
7842
|
-
const
|
|
7849
|
+
const qs = /* @__PURE__ */ new WeakMap();
|
|
7843
7850
|
function $u(n) {
|
|
7844
|
-
return n == null ? !1 : (
|
|
7851
|
+
return n == null ? !1 : (qs.has(n) || (n.tagName === "PRE" ? qs.set(n, !0) : qs.set(n, $u(n.parentNode))), qs.get(n));
|
|
7845
7852
|
}
|
|
7846
7853
|
function eo(n, e, t, r, s) {
|
|
7847
7854
|
return e.nodeType === e.TEXT_NODE ? r.reduce((o, a) => a(e, o, n), new Ne()) : e.nodeType === e.ELEMENT_NODE ? Array.from(e.childNodes || []).reduce((o, a) => {
|
|
@@ -7849,11 +7856,11 @@ function eo(n, e, t, r, s) {
|
|
|
7849
7856
|
return a.nodeType === e.ELEMENT_NODE && (u = t.reduce((i, l) => l(a, i, n), u), u = (s.get(a) || []).reduce((i, l) => l(a, i, n), u)), o.concat(u);
|
|
7850
7857
|
}, new Ne()) : new Ne();
|
|
7851
7858
|
}
|
|
7852
|
-
function
|
|
7859
|
+
function Xi(n) {
|
|
7853
7860
|
return (e, t, r) => lr(t, n, !0, r);
|
|
7854
7861
|
}
|
|
7855
7862
|
function H0(n, e, t) {
|
|
7856
|
-
const r =
|
|
7863
|
+
const r = vn.keys(n), s = an.keys(n), o = Hn.keys(n), a = {};
|
|
7857
7864
|
return r.concat(s).concat(o).forEach((u) => {
|
|
7858
7865
|
let i = t.query(u, Ce.ATTRIBUTE);
|
|
7859
7866
|
i != null && (a[i.attrName] = i.value(n), a[i.attrName]) || (i = q0[u], i != null && (i.attrName === u || i.keyName === u) && (a[i.attrName] = i.value(n) || void 0), i = ll[u], i != null && (i.attrName === u || i.keyName === u) && (i = ll[u], a[i.attrName] = i.value(n) || void 0));
|
|
@@ -7869,14 +7876,14 @@ function V0(n, e, t) {
|
|
|
7869
7876
|
const s = {}, o = r.value(n);
|
|
7870
7877
|
if (o != null)
|
|
7871
7878
|
return s[r.blotName] = o, new Ne().insert(s, r.formats(n, t));
|
|
7872
|
-
} else if (r.prototype instanceof
|
|
7879
|
+
} else if (r.prototype instanceof ls && !gs(e, `
|
|
7873
7880
|
`) && e.insert(`
|
|
7874
7881
|
`), "blotName" in r && "formats" in r && typeof r.formats == "function")
|
|
7875
7882
|
return lr(e, r.blotName, r.formats(n, t), t);
|
|
7876
7883
|
return e;
|
|
7877
7884
|
}
|
|
7878
7885
|
function G0(n, e) {
|
|
7879
|
-
return
|
|
7886
|
+
return gs(e, `
|
|
7880
7887
|
`) || e.insert(`
|
|
7881
7888
|
`), e;
|
|
7882
7889
|
}
|
|
@@ -7890,7 +7897,7 @@ function K0() {
|
|
|
7890
7897
|
function X0(n, e, t) {
|
|
7891
7898
|
const r = t.query(n);
|
|
7892
7899
|
if (r == null || // @ts-expect-error
|
|
7893
|
-
r.blotName !== "list" || !
|
|
7900
|
+
r.blotName !== "list" || !gs(e, `
|
|
7894
7901
|
`))
|
|
7895
7902
|
return e;
|
|
7896
7903
|
let s = -1, o = n.parentNode;
|
|
@@ -7908,7 +7915,7 @@ function Y0(n, e, t) {
|
|
|
7908
7915
|
return o && (s = o === "true" ? "checked" : "unchecked"), lr(e, "list", s, t);
|
|
7909
7916
|
}
|
|
7910
7917
|
function ul(n, e, t) {
|
|
7911
|
-
if (!
|
|
7918
|
+
if (!gs(e, `
|
|
7912
7919
|
`)) {
|
|
7913
7920
|
if (jn(n, t) && (n.childNodes.length > 0 || n instanceof HTMLParagraphElement))
|
|
7914
7921
|
return e.insert(`
|
|
@@ -7971,7 +7978,7 @@ class _u extends ln {
|
|
|
7971
7978
|
});
|
|
7972
7979
|
we(this, "currentRange", null);
|
|
7973
7980
|
this.quill.on(le.events.EDITOR_CHANGE, (s, o, a, u) => {
|
|
7974
|
-
s === le.events.SELECTION_CHANGE ? o && u !== le.sources.SILENT && (this.currentRange = o) : s === le.events.TEXT_CHANGE && (this.ignoreChange || (!this.options.userOnly || u === le.sources.USER ? this.record(o, a) : this.transform(o)), this.currentRange =
|
|
7981
|
+
s === le.events.SELECTION_CHANGE ? o && u !== le.sources.SILENT && (this.currentRange = o) : s === le.events.TEXT_CHANGE && (this.ignoreChange || (!this.options.userOnly || u === le.sources.USER ? this.record(o, a) : this.transform(o)), this.currentRange = Ea(this.currentRange, o));
|
|
7975
7982
|
}), this.quill.keyboard.addBinding({
|
|
7976
7983
|
key: "z",
|
|
7977
7984
|
shortKey: !0
|
|
@@ -7993,7 +8000,7 @@ class _u extends ln {
|
|
|
7993
8000
|
const o = this.quill.getContents(), a = s.delta.invert(o);
|
|
7994
8001
|
this.stack[r].push({
|
|
7995
8002
|
delta: a,
|
|
7996
|
-
range:
|
|
8003
|
+
range: Ea(s.range, a)
|
|
7997
8004
|
}), this.lastRecorded = 0, this.ignoreChange = !0, this.quill.updateContents(s.delta, le.sources.USER), this.ignoreChange = !1, this.restoreSelection(s);
|
|
7998
8005
|
}
|
|
7999
8006
|
clear() {
|
|
@@ -8052,7 +8059,7 @@ function cl(n, e) {
|
|
|
8052
8059
|
const s = n[r];
|
|
8053
8060
|
n[r] = {
|
|
8054
8061
|
delta: t.transform(s.delta, !0),
|
|
8055
|
-
range: s.range &&
|
|
8062
|
+
range: s.range && Ea(s.range, t)
|
|
8056
8063
|
}, t = s.delta.transform(t), n[r].delta.length() === 0 && n.splice(r, 1);
|
|
8057
8064
|
}
|
|
8058
8065
|
}
|
|
@@ -8066,7 +8073,7 @@ function t1(n, e) {
|
|
|
8066
8073
|
let r = e.length() - t;
|
|
8067
8074
|
return e1(n, e) && (r -= 1), r;
|
|
8068
8075
|
}
|
|
8069
|
-
function
|
|
8076
|
+
function Ea(n, e) {
|
|
8070
8077
|
if (!n) return n;
|
|
8071
8078
|
const t = e.transformPosition(n.index), r = e.transformPosition(n.index + n.length);
|
|
8072
8079
|
return {
|
|
@@ -8231,12 +8238,12 @@ le.register({
|
|
|
8231
8238
|
"blots/container": ar,
|
|
8232
8239
|
"blots/cursor": Pr,
|
|
8233
8240
|
"blots/embed": Wa,
|
|
8234
|
-
"blots/inline":
|
|
8241
|
+
"blots/inline": mn,
|
|
8235
8242
|
"blots/scroll": Tr,
|
|
8236
8243
|
"blots/text": sn,
|
|
8237
8244
|
"modules/clipboard": ju,
|
|
8238
8245
|
"modules/history": _u,
|
|
8239
|
-
"modules/keyboard":
|
|
8246
|
+
"modules/keyboard": di,
|
|
8240
8247
|
"modules/uploader": qu,
|
|
8241
8248
|
"modules/input": r1,
|
|
8242
8249
|
"modules/uiNode": l1
|
|
@@ -8262,20 +8269,20 @@ const c1 = new u1("indent", "ql-indent", {
|
|
|
8262
8269
|
// @ts-expect-error
|
|
8263
8270
|
whitelist: [1, 2, 3, 4, 5, 6, 7, 8]
|
|
8264
8271
|
});
|
|
8265
|
-
class
|
|
8272
|
+
class wa extends At {
|
|
8266
8273
|
}
|
|
8267
|
-
we(
|
|
8268
|
-
class
|
|
8274
|
+
we(wa, "blotName", "blockquote"), we(wa, "tagName", "blockquote");
|
|
8275
|
+
class Aa extends At {
|
|
8269
8276
|
static formats(e) {
|
|
8270
8277
|
return this.tagName.indexOf(e.tagName) + 1;
|
|
8271
8278
|
}
|
|
8272
8279
|
}
|
|
8273
|
-
we(
|
|
8274
|
-
class
|
|
8280
|
+
we(Aa, "blotName", "header"), we(Aa, "tagName", ["H1", "H2", "H3", "H4", "H5", "H6"]);
|
|
8281
|
+
class vs extends ar {
|
|
8275
8282
|
}
|
|
8276
|
-
|
|
8277
|
-
|
|
8278
|
-
class
|
|
8283
|
+
vs.blotName = "list-container";
|
|
8284
|
+
vs.tagName = "OL";
|
|
8285
|
+
class ms extends At {
|
|
8279
8286
|
static create(e) {
|
|
8280
8287
|
const t = super.create();
|
|
8281
8288
|
return t.setAttribute("data-list", e), t;
|
|
@@ -8284,7 +8291,7 @@ class ys extends At {
|
|
|
8284
8291
|
return e.getAttribute("data-list") || void 0;
|
|
8285
8292
|
}
|
|
8286
8293
|
static register() {
|
|
8287
|
-
le.register(
|
|
8294
|
+
le.register(vs);
|
|
8288
8295
|
}
|
|
8289
8296
|
constructor(e, t) {
|
|
8290
8297
|
super(e, t);
|
|
@@ -8299,11 +8306,11 @@ class ys extends At {
|
|
|
8299
8306
|
e === this.statics.blotName && t ? this.domNode.setAttribute("data-list", t) : super.format(e, t);
|
|
8300
8307
|
}
|
|
8301
8308
|
}
|
|
8302
|
-
|
|
8303
|
-
|
|
8304
|
-
|
|
8305
|
-
|
|
8306
|
-
class
|
|
8309
|
+
ms.blotName = "list";
|
|
8310
|
+
ms.tagName = "LI";
|
|
8311
|
+
vs.allowedChildren = [ms];
|
|
8312
|
+
ms.requiredContainer = vs;
|
|
8313
|
+
class cs extends mn {
|
|
8307
8314
|
static create() {
|
|
8308
8315
|
return super.create();
|
|
8309
8316
|
}
|
|
@@ -8314,11 +8321,11 @@ class fs extends yn {
|
|
|
8314
8321
|
super.optimize(e), this.domNode.tagName !== this.statics.tagName[0] && this.replaceWith(this.statics.blotName);
|
|
8315
8322
|
}
|
|
8316
8323
|
}
|
|
8317
|
-
we(
|
|
8318
|
-
class
|
|
8324
|
+
we(cs, "blotName", "bold"), we(cs, "tagName", ["STRONG", "B"]);
|
|
8325
|
+
class Sa extends cs {
|
|
8319
8326
|
}
|
|
8320
|
-
we(
|
|
8321
|
-
class $n extends
|
|
8327
|
+
we(Sa, "blotName", "italic"), we(Sa, "tagName", ["EM", "I"]);
|
|
8328
|
+
class $n extends mn {
|
|
8322
8329
|
static create(e) {
|
|
8323
8330
|
const t = super.create(e);
|
|
8324
8331
|
return t.setAttribute("href", this.sanitize(e)), t.setAttribute("rel", "noopener noreferrer"), t.setAttribute("target", "_blank"), t;
|
|
@@ -8340,7 +8347,7 @@ function zu(n, e) {
|
|
|
8340
8347
|
const r = t.href.slice(0, t.href.indexOf(":"));
|
|
8341
8348
|
return e.indexOf(r) > -1;
|
|
8342
8349
|
}
|
|
8343
|
-
class
|
|
8350
|
+
class Ta extends mn {
|
|
8344
8351
|
static create(e) {
|
|
8345
8352
|
return e === "super" ? document.createElement("sup") : e === "sub" ? document.createElement("sub") : super.create(e);
|
|
8346
8353
|
}
|
|
@@ -8349,14 +8356,14 @@ class Oa extends yn {
|
|
|
8349
8356
|
if (e.tagName === "SUP") return "super";
|
|
8350
8357
|
}
|
|
8351
8358
|
}
|
|
8352
|
-
we(
|
|
8353
|
-
class
|
|
8359
|
+
we(Ta, "blotName", "script"), we(Ta, "tagName", ["SUB", "SUP"]);
|
|
8360
|
+
class Oa extends cs {
|
|
8354
8361
|
}
|
|
8355
|
-
we(
|
|
8356
|
-
class
|
|
8362
|
+
we(Oa, "blotName", "strike"), we(Oa, "tagName", ["S", "STRIKE"]);
|
|
8363
|
+
class Na extends mn {
|
|
8357
8364
|
}
|
|
8358
|
-
we(
|
|
8359
|
-
class
|
|
8365
|
+
we(Na, "blotName", "underline"), we(Na, "tagName", "U");
|
|
8366
|
+
class Vs extends Wa {
|
|
8360
8367
|
static create(e) {
|
|
8361
8368
|
if (window.katex == null)
|
|
8362
8369
|
throw new Error("Formula module requires KaTeX.");
|
|
@@ -8376,9 +8383,9 @@ class Gs extends Wa {
|
|
|
8376
8383
|
return `<span>${e}</span>`;
|
|
8377
8384
|
}
|
|
8378
8385
|
}
|
|
8379
|
-
we(
|
|
8386
|
+
we(Vs, "blotName", "formula"), we(Vs, "className", "ql-formula"), we(Vs, "tagName", "SPAN");
|
|
8380
8387
|
const fl = ["alt", "height", "width"];
|
|
8381
|
-
class
|
|
8388
|
+
class Ra extends _t {
|
|
8382
8389
|
static create(e) {
|
|
8383
8390
|
const t = super.create(e);
|
|
8384
8391
|
return typeof e == "string" && t.setAttribute("src", this.sanitize(e)), t;
|
|
@@ -8399,9 +8406,9 @@ class Ca extends _t {
|
|
|
8399
8406
|
fl.indexOf(e) > -1 ? t ? this.domNode.setAttribute(e, t) : this.domNode.removeAttribute(e) : super.format(e, t);
|
|
8400
8407
|
}
|
|
8401
8408
|
}
|
|
8402
|
-
we(
|
|
8409
|
+
we(Ra, "blotName", "image"), we(Ra, "tagName", "IMG");
|
|
8403
8410
|
const dl = ["height", "width"];
|
|
8404
|
-
class
|
|
8411
|
+
class Gs extends Wt {
|
|
8405
8412
|
static create(e) {
|
|
8406
8413
|
const t = super.create(e);
|
|
8407
8414
|
return t.setAttribute("frameborder", "0"), t.setAttribute("allowfullscreen", "true"), t.setAttribute("src", this.sanitize(e)), t;
|
|
@@ -8425,11 +8432,11 @@ class Ws extends Wt {
|
|
|
8425
8432
|
return `<a href="${e}">${e}</a>`;
|
|
8426
8433
|
}
|
|
8427
8434
|
}
|
|
8428
|
-
we(
|
|
8435
|
+
we(Gs, "blotName", "video"), we(Gs, "className", "ql-video"), we(Gs, "tagName", "IFRAME");
|
|
8429
8436
|
const Yr = new an("code-token", "hljs", {
|
|
8430
8437
|
scope: Ce.INLINE
|
|
8431
8438
|
});
|
|
8432
|
-
class In extends
|
|
8439
|
+
class In extends mn {
|
|
8433
8440
|
static formats(e, t) {
|
|
8434
8441
|
for (; e != null && e !== t.domNode; ) {
|
|
8435
8442
|
if (e.classList && e.classList.contains(Lt.className))
|
|
@@ -8504,7 +8511,7 @@ class ts extends or {
|
|
|
8504
8511
|
html(e, t) {
|
|
8505
8512
|
const [r] = this.children.find(e);
|
|
8506
8513
|
return `<pre data-language="${r ? Gt.formats(r.domNode) : "plain"}">
|
|
8507
|
-
${
|
|
8514
|
+
${fi(this.code(e, t))}
|
|
8508
8515
|
</pre>`;
|
|
8509
8516
|
}
|
|
8510
8517
|
optimize(e) {
|
|
@@ -8577,7 +8584,7 @@ class Hu extends ln {
|
|
|
8577
8584
|
highlightBlot(e) {
|
|
8578
8585
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "plain";
|
|
8579
8586
|
if (t = this.languages[t] ? t : "plain", t === "plain")
|
|
8580
|
-
return
|
|
8587
|
+
return fi(e).split(`
|
|
8581
8588
|
`).reduce((s, o, a) => (a !== 0 && s.insert(`
|
|
8582
8589
|
`, {
|
|
8583
8590
|
[Lt.blotName]: t
|
|
@@ -8985,7 +8992,7 @@ no.DEFAULTS = {
|
|
|
8985
8992
|
}
|
|
8986
8993
|
}
|
|
8987
8994
|
};
|
|
8988
|
-
const g1 = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>', v1 = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>', m1 = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>', y1 = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>', b1 = '<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>', x1 = '<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>', E1 = '<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>', w1 = '<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>', gl = '<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>', A1 = '<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>', S1 = '<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>', T1 = '<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>', O1 = '<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>', N1 = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>', R1 = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>', C1 = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>', I1 = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>', L1 = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>', k1 = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>', P1 = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>', F1 = '<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>', M1 = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>', B1 = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>', U1 = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>', D1 = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>', j1 = '<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>', $1 = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>', _1 = '<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>', q1 = '<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>', z1 = '<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>', H1 = '<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>', V1 = '<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>', G1 = '<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>', ds = {
|
|
8995
|
+
const g1 = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>', v1 = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>', m1 = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>', y1 = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>', b1 = '<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>', x1 = '<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>', E1 = '<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>', w1 = '<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>', gl = '<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>', A1 = '<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>', S1 = '<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>', T1 = '<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>', O1 = '<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>', N1 = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>', R1 = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>', C1 = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>', I1 = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>', L1 = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>', k1 = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>', P1 = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>', F1 = '<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>', M1 = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>', B1 = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>', U1 = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>', D1 = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>', j1 = '<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>', $1 = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>', _1 = '<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>', q1 = '<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>', z1 = '<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>', H1 = '<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>', V1 = '<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>', G1 = '<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>', fs = {
|
|
8989
8996
|
align: {
|
|
8990
8997
|
"": g1,
|
|
8991
8998
|
center: v1,
|
|
@@ -9037,7 +9044,7 @@ let vl = 0;
|
|
|
9037
9044
|
function ml(n, e) {
|
|
9038
9045
|
n.setAttribute(e, `${n.getAttribute(e) !== "true"}`);
|
|
9039
9046
|
}
|
|
9040
|
-
class
|
|
9047
|
+
class hi {
|
|
9041
9048
|
constructor(e) {
|
|
9042
9049
|
this.select = e, this.container = document.createElement("span"), this.buildPicker(), this.select.style.display = "none", this.select.parentNode.insertBefore(this.container, this.select), this.label.addEventListener("mousedown", () => {
|
|
9043
9050
|
this.togglePicker();
|
|
@@ -9113,7 +9120,7 @@ class pi {
|
|
|
9113
9120
|
this.label.classList.toggle("ql-active", t);
|
|
9114
9121
|
}
|
|
9115
9122
|
}
|
|
9116
|
-
class Vu extends
|
|
9123
|
+
class Vu extends hi {
|
|
9117
9124
|
constructor(e, t) {
|
|
9118
9125
|
super(e), this.label.innerHTML = t, this.container.classList.add("ql-color-picker"), Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0, 7).forEach((r) => {
|
|
9119
9126
|
r.classList.add("ql-primary");
|
|
@@ -9129,7 +9136,7 @@ class Vu extends pi {
|
|
|
9129
9136
|
r && (r.tagName === "line" ? r.style.stroke = s : r.style.fill = s);
|
|
9130
9137
|
}
|
|
9131
9138
|
}
|
|
9132
|
-
class Gu extends
|
|
9139
|
+
class Gu extends hi {
|
|
9133
9140
|
constructor(e, t) {
|
|
9134
9141
|
super(e), this.container.classList.add("ql-icon-picker"), Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach((r) => {
|
|
9135
9142
|
r.innerHTML = t[r.getAttribute("data-value") || ""];
|
|
@@ -9175,7 +9182,7 @@ class Wu {
|
|
|
9175
9182
|
}
|
|
9176
9183
|
}
|
|
9177
9184
|
const X1 = [!1, "center", "right", "justify"], Y1 = ["#000000", "#e60000", "#ff9900", "#ffff00", "#008a00", "#0066cc", "#9933ff", "#ffffff", "#facccc", "#ffebcc", "#ffffcc", "#cce8cc", "#cce0f5", "#ebd6ff", "#bbbbbb", "#f06666", "#ffc266", "#ffff66", "#66b966", "#66a3e0", "#c285ff", "#888888", "#a10000", "#b26b00", "#b2b200", "#006100", "#0047b2", "#6b24b2", "#444444", "#5c0000", "#663d00", "#666600", "#003700", "#002966", "#3d1466"], Z1 = [!1, "serif", "monospace"], Q1 = ["1", "2", "3", !1], J1 = ["small", !1, "large", "huge"];
|
|
9178
|
-
class
|
|
9185
|
+
class ys extends Fr {
|
|
9179
9186
|
constructor(e, t) {
|
|
9180
9187
|
super(e, t);
|
|
9181
9188
|
const r = (s) => {
|
|
@@ -9218,7 +9225,7 @@ class bs extends Fr {
|
|
|
9218
9225
|
const o = s.classList.contains("ql-background") ? "background" : "color";
|
|
9219
9226
|
return s.querySelector("option") == null && Hr(s, Y1, o === "background" ? "#ffffff" : "#000000"), new Vu(s, t[o]);
|
|
9220
9227
|
}
|
|
9221
|
-
return s.querySelector("option") == null && (s.classList.contains("ql-font") ? Hr(s, Z1) : s.classList.contains("ql-header") ? Hr(s, Q1) : s.classList.contains("ql-size") && Hr(s, J1)), new
|
|
9228
|
+
return s.querySelector("option") == null && (s.classList.contains("ql-font") ? Hr(s, Z1) : s.classList.contains("ql-header") ? Hr(s, Q1) : s.classList.contains("ql-size") && Hr(s, J1)), new hi(s);
|
|
9222
9229
|
});
|
|
9223
9230
|
const r = () => {
|
|
9224
9231
|
this.pickers.forEach((s) => {
|
|
@@ -9228,7 +9235,7 @@ class bs extends Fr {
|
|
|
9228
9235
|
this.quill.on(Oe.events.EDITOR_CHANGE, r);
|
|
9229
9236
|
}
|
|
9230
9237
|
}
|
|
9231
|
-
|
|
9238
|
+
ys.DEFAULTS = _n({}, Fr.DEFAULTS, {
|
|
9232
9239
|
modules: {
|
|
9233
9240
|
toolbar: {
|
|
9234
9241
|
handlers: {
|
|
@@ -9363,15 +9370,15 @@ class Xu extends Ku {
|
|
|
9363
9370
|
}
|
|
9364
9371
|
}
|
|
9365
9372
|
we(Xu, "TEMPLATE", ['<span class="ql-tooltip-arrow"></span>', '<div class="ql-tooltip-editor">', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-close"></a>', "</div>"].join(""));
|
|
9366
|
-
class Yu extends
|
|
9373
|
+
class Yu extends ys {
|
|
9367
9374
|
constructor(e, t) {
|
|
9368
9375
|
t.modules.toolbar != null && t.modules.toolbar.container == null && (t.modules.toolbar.container = ty), super(e, t), this.quill.container.classList.add("ql-bubble");
|
|
9369
9376
|
}
|
|
9370
9377
|
extendToolbar(e) {
|
|
9371
|
-
this.tooltip = new Xu(this.quill, this.options.bounds), e.container != null && (this.tooltip.root.appendChild(e.container), this.buildButtons(e.container.querySelectorAll("button"),
|
|
9378
|
+
this.tooltip = new Xu(this.quill, this.options.bounds), e.container != null && (this.tooltip.root.appendChild(e.container), this.buildButtons(e.container.querySelectorAll("button"), fs), this.buildPickers(e.container.querySelectorAll("select"), fs));
|
|
9372
9379
|
}
|
|
9373
9380
|
}
|
|
9374
|
-
Yu.DEFAULTS = _n({},
|
|
9381
|
+
Yu.DEFAULTS = _n({}, ys.DEFAULTS, {
|
|
9375
9382
|
modules: {
|
|
9376
9383
|
toolbar: {
|
|
9377
9384
|
handlers: {
|
|
@@ -9426,12 +9433,12 @@ class Zu extends Ku {
|
|
|
9426
9433
|
}
|
|
9427
9434
|
}
|
|
9428
9435
|
we(Zu, "TEMPLATE", ['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-action"></a>', '<a class="ql-remove"></a>'].join(""));
|
|
9429
|
-
class Qu extends
|
|
9436
|
+
class Qu extends ys {
|
|
9430
9437
|
constructor(e, t) {
|
|
9431
9438
|
t.modules.toolbar != null && t.modules.toolbar.container == null && (t.modules.toolbar.container = ny), super(e, t), this.quill.container.classList.add("ql-snow");
|
|
9432
9439
|
}
|
|
9433
9440
|
extendToolbar(e) {
|
|
9434
|
-
e.container != null && (e.container.classList.add("ql-snow"), this.buildButtons(e.container.querySelectorAll("button"),
|
|
9441
|
+
e.container != null && (e.container.classList.add("ql-snow"), this.buildButtons(e.container.querySelectorAll("button"), fs), this.buildPickers(e.container.querySelectorAll("select"), fs), this.tooltip = new Zu(this.quill, this.options.bounds), e.container.querySelector(".ql-link") && this.quill.keyboard.addBinding({
|
|
9435
9442
|
key: "k",
|
|
9436
9443
|
shortKey: !0
|
|
9437
9444
|
}, (t, r) => {
|
|
@@ -9439,7 +9446,7 @@ class Qu extends bs {
|
|
|
9439
9446
|
}));
|
|
9440
9447
|
}
|
|
9441
9448
|
}
|
|
9442
|
-
Qu.DEFAULTS = _n({},
|
|
9449
|
+
Qu.DEFAULTS = _n({}, ys.DEFAULTS, {
|
|
9443
9450
|
modules: {
|
|
9444
9451
|
toolbar: {
|
|
9445
9452
|
handlers: {
|
|
@@ -9483,27 +9490,27 @@ le.register({
|
|
|
9483
9490
|
"formats/color": Xa,
|
|
9484
9491
|
"formats/font": Mu,
|
|
9485
9492
|
"formats/size": Uu,
|
|
9486
|
-
"formats/blockquote":
|
|
9493
|
+
"formats/blockquote": wa,
|
|
9487
9494
|
"formats/code-block": Lt,
|
|
9488
|
-
"formats/header":
|
|
9489
|
-
"formats/list":
|
|
9490
|
-
"formats/bold":
|
|
9495
|
+
"formats/header": Aa,
|
|
9496
|
+
"formats/list": ms,
|
|
9497
|
+
"formats/bold": cs,
|
|
9491
9498
|
"formats/code": Za,
|
|
9492
|
-
"formats/italic":
|
|
9499
|
+
"formats/italic": Sa,
|
|
9493
9500
|
"formats/link": $n,
|
|
9494
|
-
"formats/script":
|
|
9495
|
-
"formats/strike":
|
|
9496
|
-
"formats/underline":
|
|
9497
|
-
"formats/formula":
|
|
9498
|
-
"formats/image":
|
|
9499
|
-
"formats/video":
|
|
9501
|
+
"formats/script": Ta,
|
|
9502
|
+
"formats/strike": Oa,
|
|
9503
|
+
"formats/underline": Na,
|
|
9504
|
+
"formats/formula": Vs,
|
|
9505
|
+
"formats/image": Ra,
|
|
9506
|
+
"formats/video": Gs,
|
|
9500
9507
|
"modules/syntax": Hu,
|
|
9501
9508
|
"modules/table": d1,
|
|
9502
9509
|
"modules/toolbar": no,
|
|
9503
9510
|
"themes/bubble": Yu,
|
|
9504
9511
|
"themes/snow": Qu,
|
|
9505
|
-
"ui/icons":
|
|
9506
|
-
"ui/picker":
|
|
9512
|
+
"ui/icons": fs,
|
|
9513
|
+
"ui/picker": hi,
|
|
9507
9514
|
"ui/icon-picker": Gu,
|
|
9508
9515
|
"ui/color-picker": Vu,
|
|
9509
9516
|
"ui/tooltip": Wu
|
|
@@ -9541,7 +9548,7 @@ const ry = {
|
|
|
9541
9548
|
setup(n, { emit: e }) {
|
|
9542
9549
|
const t = _e(null);
|
|
9543
9550
|
let r = null;
|
|
9544
|
-
return
|
|
9551
|
+
return si(() => {
|
|
9545
9552
|
r = new le(t.value, n.options), r.root.innerHTML = n.modelValue, r.on("text-change", () => {
|
|
9546
9553
|
e("update:modelValue", r.root.innerHTML);
|
|
9547
9554
|
});
|
|
@@ -9562,7 +9569,7 @@ function ay(n, e, t, r, s, o) {
|
|
|
9562
9569
|
oe("div", iy, null, 512)
|
|
9563
9570
|
]);
|
|
9564
9571
|
}
|
|
9565
|
-
const oy = /* @__PURE__ */
|
|
9572
|
+
const oy = /* @__PURE__ */ ii(ry, [["render", ay]]), ly = { class: "rounded-xl bg-gray-50 px-6 py-5" }, uy = {
|
|
9566
9573
|
key: 0,
|
|
9567
9574
|
class: "pb-5"
|
|
9568
9575
|
}, cy = { class: "text-lg font-semibold text-gray-900" }, fy = {
|
|
@@ -9595,29 +9602,29 @@ function Ju(n, e) {
|
|
|
9595
9602
|
return n.apply(e, arguments);
|
|
9596
9603
|
};
|
|
9597
9604
|
}
|
|
9598
|
-
const { toString: dy } = Object.prototype, { getPrototypeOf: ro } = Object, { iterator:
|
|
9605
|
+
const { toString: dy } = Object.prototype, { getPrototypeOf: ro } = Object, { iterator: pi, toStringTag: ec } = Symbol, gi = /* @__PURE__ */ ((n) => (e) => {
|
|
9599
9606
|
const t = dy.call(e);
|
|
9600
9607
|
return n[t] || (n[t] = t.slice(8, -1).toLowerCase());
|
|
9601
|
-
})(/* @__PURE__ */ Object.create(null)), un = (n) => (n = n.toLowerCase(), (e) =>
|
|
9608
|
+
})(/* @__PURE__ */ Object.create(null)), un = (n) => (n = n.toLowerCase(), (e) => gi(e) === n), vi = (n) => (e) => typeof e === n, { isArray: Ur } = Array, ds = vi("undefined");
|
|
9602
9609
|
function hy(n) {
|
|
9603
|
-
return n !== null && !
|
|
9610
|
+
return n !== null && !ds(n) && n.constructor !== null && !ds(n.constructor) && Ut(n.constructor.isBuffer) && n.constructor.isBuffer(n);
|
|
9604
9611
|
}
|
|
9605
9612
|
const tc = un("ArrayBuffer");
|
|
9606
9613
|
function py(n) {
|
|
9607
9614
|
let e;
|
|
9608
9615
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(n) : e = n && n.buffer && tc(n.buffer), e;
|
|
9609
9616
|
}
|
|
9610
|
-
const gy =
|
|
9611
|
-
if (
|
|
9617
|
+
const gy = vi("string"), Ut = vi("function"), nc = vi("number"), mi = (n) => n !== null && typeof n == "object", vy = (n) => n === !0 || n === !1, Ws = (n) => {
|
|
9618
|
+
if (gi(n) !== "object")
|
|
9612
9619
|
return !1;
|
|
9613
9620
|
const e = ro(n);
|
|
9614
|
-
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(ec in n) && !(
|
|
9615
|
-
}, my = un("Date"), yy = un("File"), by = un("Blob"), xy = un("FileList"), Ey = (n) =>
|
|
9621
|
+
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(ec in n) && !(pi in n);
|
|
9622
|
+
}, my = un("Date"), yy = un("File"), by = un("Blob"), xy = un("FileList"), Ey = (n) => mi(n) && Ut(n.pipe), wy = (n) => {
|
|
9616
9623
|
let e;
|
|
9617
|
-
return n && (typeof FormData == "function" && n instanceof FormData || Ut(n.append) && ((e =
|
|
9624
|
+
return n && (typeof FormData == "function" && n instanceof FormData || Ut(n.append) && ((e = gi(n)) === "formdata" || // detect form-data instance
|
|
9618
9625
|
e === "object" && Ut(n.toString) && n.toString() === "[object FormData]"));
|
|
9619
9626
|
}, Ay = un("URLSearchParams"), [Sy, Ty, Oy, Ny] = ["ReadableStream", "Request", "Response", "Headers"].map(un), Ry = (n) => n.trim ? n.trim() : n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
9620
|
-
function
|
|
9627
|
+
function bs(n, e, { allOwnKeys: t = !1 } = {}) {
|
|
9621
9628
|
if (n === null || typeof n > "u")
|
|
9622
9629
|
return;
|
|
9623
9630
|
let r, s;
|
|
@@ -9640,17 +9647,17 @@ function rc(n, e) {
|
|
|
9640
9647
|
return s;
|
|
9641
9648
|
return null;
|
|
9642
9649
|
}
|
|
9643
|
-
const Xn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, sc = (n) => !
|
|
9644
|
-
function
|
|
9650
|
+
const Xn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, sc = (n) => !ds(n) && n !== Xn;
|
|
9651
|
+
function Ca() {
|
|
9645
9652
|
const { caseless: n } = sc(this) && this || {}, e = {}, t = (r, s) => {
|
|
9646
9653
|
const o = n && rc(e, s) || s;
|
|
9647
|
-
|
|
9654
|
+
Ws(e[o]) && Ws(r) ? e[o] = Ca(e[o], r) : Ws(r) ? e[o] = Ca({}, r) : Ur(r) ? e[o] = r.slice() : e[o] = r;
|
|
9648
9655
|
};
|
|
9649
9656
|
for (let r = 0, s = arguments.length; r < s; r++)
|
|
9650
|
-
arguments[r] &&
|
|
9657
|
+
arguments[r] && bs(arguments[r], t);
|
|
9651
9658
|
return e;
|
|
9652
9659
|
}
|
|
9653
|
-
const Cy = (n, e, t, { allOwnKeys: r } = {}) => (
|
|
9660
|
+
const Cy = (n, e, t, { allOwnKeys: r } = {}) => (bs(e, (s, o) => {
|
|
9654
9661
|
t && Ut(s) ? n[o] = Ju(s, t) : n[o] = s;
|
|
9655
9662
|
}, { allOwnKeys: r }), n), Iy = (n) => (n.charCodeAt(0) === 65279 && (n = n.slice(1)), n), Ly = (n, e, t, r) => {
|
|
9656
9663
|
n.prototype = Object.create(e.prototype, r), n.prototype.constructor = n, Object.defineProperty(n, "super", {
|
|
@@ -9680,7 +9687,7 @@ const Cy = (n, e, t, { allOwnKeys: r } = {}) => (xs(e, (s, o) => {
|
|
|
9680
9687
|
t[e] = n[e];
|
|
9681
9688
|
return t;
|
|
9682
9689
|
}, My = /* @__PURE__ */ ((n) => (e) => n && e instanceof n)(typeof Uint8Array < "u" && ro(Uint8Array)), By = (n, e) => {
|
|
9683
|
-
const r = (n && n[
|
|
9690
|
+
const r = (n && n[pi]).call(n);
|
|
9684
9691
|
let s;
|
|
9685
9692
|
for (; (s = r.next()) && !s.done; ) {
|
|
9686
9693
|
const o = s.value;
|
|
@@ -9699,7 +9706,7 @@ const Cy = (n, e, t, { allOwnKeys: r } = {}) => (xs(e, (s, o) => {
|
|
|
9699
9706
|
}
|
|
9700
9707
|
), yl = (({ hasOwnProperty: n }) => (e, t) => n.call(e, t))(Object.prototype), $y = un("RegExp"), ic = (n, e) => {
|
|
9701
9708
|
const t = Object.getOwnPropertyDescriptors(n), r = {};
|
|
9702
|
-
|
|
9709
|
+
bs(t, (s, o) => {
|
|
9703
9710
|
let a;
|
|
9704
9711
|
(a = e(s, o, n)) !== !1 && (r[o] = a || s);
|
|
9705
9712
|
}), Object.defineProperties(n, r);
|
|
@@ -9728,33 +9735,33 @@ const Cy = (n, e, t, { allOwnKeys: r } = {}) => (xs(e, (s, o) => {
|
|
|
9728
9735
|
}, zy = () => {
|
|
9729
9736
|
}, Hy = (n, e) => n != null && Number.isFinite(n = +n) ? n : e;
|
|
9730
9737
|
function Vy(n) {
|
|
9731
|
-
return !!(n && Ut(n.append) && n[ec] === "FormData" && n[
|
|
9738
|
+
return !!(n && Ut(n.append) && n[ec] === "FormData" && n[pi]);
|
|
9732
9739
|
}
|
|
9733
9740
|
const Gy = (n) => {
|
|
9734
9741
|
const e = new Array(10), t = (r, s) => {
|
|
9735
|
-
if (
|
|
9742
|
+
if (mi(r)) {
|
|
9736
9743
|
if (e.indexOf(r) >= 0)
|
|
9737
9744
|
return;
|
|
9738
9745
|
if (!("toJSON" in r)) {
|
|
9739
9746
|
e[s] = r;
|
|
9740
9747
|
const o = Ur(r) ? [] : {};
|
|
9741
|
-
return
|
|
9748
|
+
return bs(r, (a, u) => {
|
|
9742
9749
|
const i = t(a, s + 1);
|
|
9743
|
-
!
|
|
9750
|
+
!ds(i) && (o[u] = i);
|
|
9744
9751
|
}), e[s] = void 0, o;
|
|
9745
9752
|
}
|
|
9746
9753
|
}
|
|
9747
9754
|
return r;
|
|
9748
9755
|
};
|
|
9749
9756
|
return t(n, 0);
|
|
9750
|
-
}, Wy = un("AsyncFunction"), Ky = (n) => n && (
|
|
9757
|
+
}, Wy = un("AsyncFunction"), Ky = (n) => n && (mi(n) || Ut(n)) && Ut(n.then) && Ut(n.catch), ac = ((n, e) => n ? setImmediate : e ? ((t, r) => (Xn.addEventListener("message", ({ source: s, data: o }) => {
|
|
9751
9758
|
s === Xn && o === t && r.length && r.shift()();
|
|
9752
9759
|
}, !1), (s) => {
|
|
9753
9760
|
r.push(s), Xn.postMessage(t, "*");
|
|
9754
9761
|
}))(`axios@${Math.random()}`, []) : (t) => setTimeout(t))(
|
|
9755
9762
|
typeof setImmediate == "function",
|
|
9756
9763
|
Ut(Xn.postMessage)
|
|
9757
|
-
), Xy = typeof queueMicrotask < "u" ? queueMicrotask.bind(Xn) : typeof process < "u" && process.nextTick || ac, Yy = (n) => n != null && Ut(n[
|
|
9764
|
+
), Xy = typeof queueMicrotask < "u" ? queueMicrotask.bind(Xn) : typeof process < "u" && process.nextTick || ac, Yy = (n) => n != null && Ut(n[pi]), te = {
|
|
9758
9765
|
isArray: Ur,
|
|
9759
9766
|
isArrayBuffer: tc,
|
|
9760
9767
|
isBuffer: hy,
|
|
@@ -9763,13 +9770,13 @@ const Gy = (n) => {
|
|
|
9763
9770
|
isString: gy,
|
|
9764
9771
|
isNumber: nc,
|
|
9765
9772
|
isBoolean: vy,
|
|
9766
|
-
isObject:
|
|
9767
|
-
isPlainObject:
|
|
9773
|
+
isObject: mi,
|
|
9774
|
+
isPlainObject: Ws,
|
|
9768
9775
|
isReadableStream: Sy,
|
|
9769
9776
|
isRequest: Ty,
|
|
9770
9777
|
isResponse: Oy,
|
|
9771
9778
|
isHeaders: Ny,
|
|
9772
|
-
isUndefined:
|
|
9779
|
+
isUndefined: ds,
|
|
9773
9780
|
isDate: my,
|
|
9774
9781
|
isFile: yy,
|
|
9775
9782
|
isBlob: by,
|
|
@@ -9779,14 +9786,14 @@ const Gy = (n) => {
|
|
|
9779
9786
|
isURLSearchParams: Ay,
|
|
9780
9787
|
isTypedArray: My,
|
|
9781
9788
|
isFileList: xy,
|
|
9782
|
-
forEach:
|
|
9783
|
-
merge:
|
|
9789
|
+
forEach: bs,
|
|
9790
|
+
merge: Ca,
|
|
9784
9791
|
extend: Cy,
|
|
9785
9792
|
trim: Ry,
|
|
9786
9793
|
stripBOM: Iy,
|
|
9787
9794
|
inherits: Ly,
|
|
9788
9795
|
toFlatObject: ky,
|
|
9789
|
-
kindOf:
|
|
9796
|
+
kindOf: gi,
|
|
9790
9797
|
kindOfTest: un,
|
|
9791
9798
|
endsWith: Py,
|
|
9792
9799
|
toArray: Fy,
|
|
@@ -9864,7 +9871,7 @@ De.from = (n, e, t, r, s, o) => {
|
|
|
9864
9871
|
}, (u) => u !== "isAxiosError"), De.call(a, n.message, e, t, r, s), a.cause = n, a.name = n.name, o && Object.assign(a, o), a;
|
|
9865
9872
|
};
|
|
9866
9873
|
const Zy = null;
|
|
9867
|
-
function
|
|
9874
|
+
function Ia(n) {
|
|
9868
9875
|
return te.isPlainObject(n) || te.isArray(n);
|
|
9869
9876
|
}
|
|
9870
9877
|
function uc(n) {
|
|
@@ -9876,12 +9883,12 @@ function bl(n, e, t) {
|
|
|
9876
9883
|
}).join(t ? "." : "") : e;
|
|
9877
9884
|
}
|
|
9878
9885
|
function Qy(n) {
|
|
9879
|
-
return te.isArray(n) && !n.some(
|
|
9886
|
+
return te.isArray(n) && !n.some(Ia);
|
|
9880
9887
|
}
|
|
9881
9888
|
const Jy = te.toFlatObject(te, {}, null, function(e) {
|
|
9882
9889
|
return /^is[A-Z]/.test(e);
|
|
9883
9890
|
});
|
|
9884
|
-
function
|
|
9891
|
+
function yi(n, e, t) {
|
|
9885
9892
|
if (!te.isObject(n))
|
|
9886
9893
|
throw new TypeError("target must be an object");
|
|
9887
9894
|
e = e || new FormData(), t = te.toFlatObject(t, {
|
|
@@ -9916,12 +9923,12 @@ function bi(n, e, t) {
|
|
|
9916
9923
|
);
|
|
9917
9924
|
}), !1;
|
|
9918
9925
|
}
|
|
9919
|
-
return
|
|
9926
|
+
return Ia(p) ? !0 : (e.append(bl(b, v, o), l(p)), !1);
|
|
9920
9927
|
}
|
|
9921
9928
|
const d = [], f = Object.assign(Jy, {
|
|
9922
9929
|
defaultVisitor: c,
|
|
9923
9930
|
convertValue: l,
|
|
9924
|
-
isVisitable:
|
|
9931
|
+
isVisitable: Ia
|
|
9925
9932
|
});
|
|
9926
9933
|
function g(p, v) {
|
|
9927
9934
|
if (!te.isUndefined(p)) {
|
|
@@ -9957,7 +9964,7 @@ function xl(n) {
|
|
|
9957
9964
|
});
|
|
9958
9965
|
}
|
|
9959
9966
|
function so(n, e) {
|
|
9960
|
-
this._pairs = [], n &&
|
|
9967
|
+
this._pairs = [], n && yi(n, this, e);
|
|
9961
9968
|
}
|
|
9962
9969
|
const cc = so.prototype;
|
|
9963
9970
|
cc.append = function(e, t) {
|
|
@@ -10055,20 +10062,20 @@ const dc = {
|
|
|
10055
10062
|
Blob: rb
|
|
10056
10063
|
},
|
|
10057
10064
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
10058
|
-
}, io = typeof window < "u" && typeof document < "u",
|
|
10065
|
+
}, io = typeof window < "u" && typeof document < "u", La = typeof navigator == "object" && navigator || void 0, ib = io && (!La || ["ReactNative", "NativeScript", "NS"].indexOf(La.product) < 0), ab = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
10059
10066
|
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", ob = io && window.location.href || "http://localhost", lb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10060
10067
|
__proto__: null,
|
|
10061
10068
|
hasBrowserEnv: io,
|
|
10062
10069
|
hasStandardBrowserEnv: ib,
|
|
10063
10070
|
hasStandardBrowserWebWorkerEnv: ab,
|
|
10064
|
-
navigator:
|
|
10071
|
+
navigator: La,
|
|
10065
10072
|
origin: ob
|
|
10066
10073
|
}, Symbol.toStringTag, { value: "Module" })), It = {
|
|
10067
10074
|
...lb,
|
|
10068
10075
|
...sb
|
|
10069
10076
|
};
|
|
10070
10077
|
function ub(n, e) {
|
|
10071
|
-
return
|
|
10078
|
+
return yi(n, new It.classes.URLSearchParams(), Object.assign({
|
|
10072
10079
|
visitor: function(t, r, s, o) {
|
|
10073
10080
|
return It.isNode && te.isBuffer(t) ? (this.append(r, t.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
10074
10081
|
}
|
|
@@ -10111,7 +10118,7 @@ function db(n, e, t) {
|
|
|
10111
10118
|
}
|
|
10112
10119
|
return (t || JSON.stringify)(n);
|
|
10113
10120
|
}
|
|
10114
|
-
const
|
|
10121
|
+
const xs = {
|
|
10115
10122
|
transitional: dc,
|
|
10116
10123
|
adapter: ["xhr", "http", "fetch"],
|
|
10117
10124
|
transformRequest: [function(e, t) {
|
|
@@ -10130,7 +10137,7 @@ const Es = {
|
|
|
10130
10137
|
return ub(e, this.formSerializer).toString();
|
|
10131
10138
|
if ((u = te.isFileList(e)) || r.indexOf("multipart/form-data") > -1) {
|
|
10132
10139
|
const i = this.env && this.env.FormData;
|
|
10133
|
-
return
|
|
10140
|
+
return yi(
|
|
10134
10141
|
u ? { "files[]": e } : e,
|
|
10135
10142
|
i && new i(),
|
|
10136
10143
|
this.formSerializer
|
|
@@ -10140,7 +10147,7 @@ const Es = {
|
|
|
10140
10147
|
return o || s ? (t.setContentType("application/json", !1), db(e)) : e;
|
|
10141
10148
|
}],
|
|
10142
10149
|
transformResponse: [function(e) {
|
|
10143
|
-
const t = this.transitional ||
|
|
10150
|
+
const t = this.transitional || xs.transitional, r = t && t.forcedJSONParsing, s = this.responseType === "json";
|
|
10144
10151
|
if (te.isResponse(e) || te.isReadableStream(e))
|
|
10145
10152
|
return e;
|
|
10146
10153
|
if (e && te.isString(e) && (r && !this.responseType || s)) {
|
|
@@ -10178,7 +10185,7 @@ const Es = {
|
|
|
10178
10185
|
}
|
|
10179
10186
|
};
|
|
10180
10187
|
te.forEach(["delete", "get", "head", "post", "put", "patch"], (n) => {
|
|
10181
|
-
|
|
10188
|
+
xs.headers[n] = {};
|
|
10182
10189
|
});
|
|
10183
10190
|
const hb = te.toObjectSet([
|
|
10184
10191
|
"age",
|
|
@@ -10209,8 +10216,8 @@ const hb = te.toObjectSet([
|
|
|
10209
10216
|
function Gr(n) {
|
|
10210
10217
|
return n && String(n).trim().toLowerCase();
|
|
10211
10218
|
}
|
|
10212
|
-
function
|
|
10213
|
-
return n === !1 || n == null ? n : te.isArray(n) ? n.map(
|
|
10219
|
+
function Ks(n) {
|
|
10220
|
+
return n === !1 || n == null ? n : te.isArray(n) ? n.map(Ks) : String(n);
|
|
10214
10221
|
}
|
|
10215
10222
|
function gb(n) {
|
|
10216
10223
|
const e = /* @__PURE__ */ Object.create(null), t = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -10220,7 +10227,7 @@ function gb(n) {
|
|
|
10220
10227
|
return e;
|
|
10221
10228
|
}
|
|
10222
10229
|
const vb = (n) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());
|
|
10223
|
-
function
|
|
10230
|
+
function Yi(n, e, t, r, s) {
|
|
10224
10231
|
if (te.isFunction(r))
|
|
10225
10232
|
return r.call(this, e, t);
|
|
10226
10233
|
if (s && (e = t), !!te.isString(e)) {
|
|
@@ -10255,7 +10262,7 @@ let Dt = class {
|
|
|
10255
10262
|
if (!c)
|
|
10256
10263
|
throw new Error("header name must be a non-empty string");
|
|
10257
10264
|
const d = te.findKey(s, c);
|
|
10258
|
-
(!d || s[d] === void 0 || l === !0 || l === void 0 && s[d] !== !1) && (s[d || i] =
|
|
10265
|
+
(!d || s[d] === void 0 || l === !0 || l === void 0 && s[d] !== !1) && (s[d || i] = Ks(u));
|
|
10259
10266
|
}
|
|
10260
10267
|
const a = (u, i) => te.forEach(u, (l, c) => o(l, c, i));
|
|
10261
10268
|
if (te.isPlainObject(e) || e instanceof this.constructor)
|
|
@@ -10294,7 +10301,7 @@ let Dt = class {
|
|
|
10294
10301
|
has(e, t) {
|
|
10295
10302
|
if (e = Gr(e), e) {
|
|
10296
10303
|
const r = te.findKey(this, e);
|
|
10297
|
-
return !!(r && this[r] !== void 0 && (!t ||
|
|
10304
|
+
return !!(r && this[r] !== void 0 && (!t || Yi(this, this[r], r, t)));
|
|
10298
10305
|
}
|
|
10299
10306
|
return !1;
|
|
10300
10307
|
}
|
|
@@ -10304,7 +10311,7 @@ let Dt = class {
|
|
|
10304
10311
|
function o(a) {
|
|
10305
10312
|
if (a = Gr(a), a) {
|
|
10306
10313
|
const u = te.findKey(r, a);
|
|
10307
|
-
u && (!t ||
|
|
10314
|
+
u && (!t || Yi(r, r[u], u, t)) && (delete r[u], s = !0);
|
|
10308
10315
|
}
|
|
10309
10316
|
}
|
|
10310
10317
|
return te.isArray(e) ? e.forEach(o) : o(e), s;
|
|
@@ -10314,7 +10321,7 @@ let Dt = class {
|
|
|
10314
10321
|
let r = t.length, s = !1;
|
|
10315
10322
|
for (; r--; ) {
|
|
10316
10323
|
const o = t[r];
|
|
10317
|
-
(!e ||
|
|
10324
|
+
(!e || Yi(this, this[o], o, e, !0)) && (delete this[o], s = !0);
|
|
10318
10325
|
}
|
|
10319
10326
|
return s;
|
|
10320
10327
|
}
|
|
@@ -10323,11 +10330,11 @@ let Dt = class {
|
|
|
10323
10330
|
return te.forEach(this, (s, o) => {
|
|
10324
10331
|
const a = te.findKey(r, o);
|
|
10325
10332
|
if (a) {
|
|
10326
|
-
t[a] =
|
|
10333
|
+
t[a] = Ks(s), delete t[o];
|
|
10327
10334
|
return;
|
|
10328
10335
|
}
|
|
10329
10336
|
const u = e ? mb(o) : String(o).trim();
|
|
10330
|
-
u !== o && delete t[o], t[u] =
|
|
10337
|
+
u !== o && delete t[o], t[u] = Ks(s), r[u] = !0;
|
|
10331
10338
|
}), this;
|
|
10332
10339
|
}
|
|
10333
10340
|
concat(...e) {
|
|
@@ -10381,8 +10388,8 @@ te.reduceDescriptors(Dt.prototype, ({ value: n }, e) => {
|
|
|
10381
10388
|
};
|
|
10382
10389
|
});
|
|
10383
10390
|
te.freezeMethods(Dt);
|
|
10384
|
-
function
|
|
10385
|
-
const t = this ||
|
|
10391
|
+
function Zi(n, e) {
|
|
10392
|
+
const t = this || xs, r = e || t, s = Dt.from(r.headers);
|
|
10386
10393
|
let o = r.data;
|
|
10387
10394
|
return te.forEach(n, function(u) {
|
|
10388
10395
|
o = u.call(t, o, s.normalize(), e ? e.status : void 0);
|
|
@@ -10439,7 +10446,7 @@ function Eb(n, e) {
|
|
|
10439
10446
|
}, r - d)));
|
|
10440
10447
|
}, () => s && a(s)];
|
|
10441
10448
|
}
|
|
10442
|
-
const
|
|
10449
|
+
const ti = (n, e, t = 3) => {
|
|
10443
10450
|
let r = 0;
|
|
10444
10451
|
const s = xb(50, 250);
|
|
10445
10452
|
return Eb((o) => {
|
|
@@ -10638,7 +10645,7 @@ const mc = (n) => {
|
|
|
10638
10645
|
)), b = null;
|
|
10639
10646
|
}, o === void 0 && a.setContentType(null), "setRequestHeader" in b && te.forEach(a.toJSON(), function(F, M) {
|
|
10640
10647
|
b.setRequestHeader(M, F);
|
|
10641
|
-
}), te.isUndefined(s.withCredentials) || (b.withCredentials = !!s.withCredentials), u && u !== "json" && (b.responseType = s.responseType), l && ([f, p] =
|
|
10648
|
+
}), te.isUndefined(s.withCredentials) || (b.withCredentials = !!s.withCredentials), u && u !== "json" && (b.responseType = s.responseType), l && ([f, p] = ti(l, !0), b.addEventListener("progress", f)), i && b.upload && ([d, g] = ti(i), b.upload.addEventListener("progress", d), b.upload.addEventListener("loadend", g)), (s.cancelToken || s.signal) && (c = (C) => {
|
|
10642
10649
|
b && (r(!C || C.type ? new Dr(null, n, b) : C), b.abort(), b = null);
|
|
10643
10650
|
}, s.cancelToken && s.cancelToken.subscribe(c), s.signal && (s.signal.aborted ? c() : s.signal.addEventListener("abort", c)));
|
|
10644
10651
|
const A = bb(s.url);
|
|
@@ -10728,7 +10735,7 @@ const mc = (n) => {
|
|
|
10728
10735
|
}, {
|
|
10729
10736
|
highWaterMark: 2
|
|
10730
10737
|
});
|
|
10731
|
-
},
|
|
10738
|
+
}, bi = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", yc = bi && typeof ReadableStream == "function", kb = bi && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((n) => (e) => n.encode(e))(new TextEncoder()) : async (n) => new Uint8Array(await new Response(n).arrayBuffer())), bc = (n, ...e) => {
|
|
10732
10739
|
try {
|
|
10733
10740
|
return !!n(...e);
|
|
10734
10741
|
} catch {
|
|
@@ -10744,12 +10751,12 @@ const mc = (n) => {
|
|
|
10744
10751
|
}
|
|
10745
10752
|
}).headers.has("Content-Type");
|
|
10746
10753
|
return n && !e;
|
|
10747
|
-
}), Nl = 64 * 1024,
|
|
10748
|
-
stream:
|
|
10754
|
+
}), Nl = 64 * 1024, ka = yc && bc(() => te.isReadableStream(new Response("").body)), ni = {
|
|
10755
|
+
stream: ka && ((n) => n.body)
|
|
10749
10756
|
};
|
|
10750
|
-
|
|
10757
|
+
bi && ((n) => {
|
|
10751
10758
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((e) => {
|
|
10752
|
-
!
|
|
10759
|
+
!ni[e] && (ni[e] = te.isFunction(n[e]) ? (t) => t[e]() : (t, r) => {
|
|
10753
10760
|
throw new De(`Response type '${e}' is not supported`, De.ERR_NOT_SUPPORT, r);
|
|
10754
10761
|
});
|
|
10755
10762
|
});
|
|
@@ -10771,7 +10778,7 @@ const Fb = async (n) => {
|
|
|
10771
10778
|
}, Mb = async (n, e) => {
|
|
10772
10779
|
const t = te.toFiniteNumber(n.getContentLength());
|
|
10773
10780
|
return t ?? Fb(e);
|
|
10774
|
-
}, Bb =
|
|
10781
|
+
}, Bb = bi && (async (n) => {
|
|
10775
10782
|
let {
|
|
10776
10783
|
url: e,
|
|
10777
10784
|
method: t,
|
|
@@ -10802,7 +10809,7 @@ const Fb = async (n) => {
|
|
|
10802
10809
|
if (te.isFormData(r) && (z = M.headers.get("content-type")) && c.setContentType(z), M.body) {
|
|
10803
10810
|
const [K, H] = Al(
|
|
10804
10811
|
b,
|
|
10805
|
-
|
|
10812
|
+
ti(Sl(i))
|
|
10806
10813
|
);
|
|
10807
10814
|
r = Ol(M.body, Nl, K, H);
|
|
10808
10815
|
}
|
|
@@ -10819,15 +10826,15 @@ const Fb = async (n) => {
|
|
|
10819
10826
|
credentials: S ? d : void 0
|
|
10820
10827
|
});
|
|
10821
10828
|
let A = await fetch(p);
|
|
10822
|
-
const C =
|
|
10823
|
-
if (
|
|
10829
|
+
const C = ka && (l === "stream" || l === "response");
|
|
10830
|
+
if (ka && (u || C && v)) {
|
|
10824
10831
|
const M = {};
|
|
10825
10832
|
["status", "statusText", "headers"].forEach((ne) => {
|
|
10826
10833
|
M[ne] = A[ne];
|
|
10827
10834
|
});
|
|
10828
10835
|
const z = te.toFiniteNumber(A.headers.get("content-length")), [K, H] = u && Al(
|
|
10829
10836
|
z,
|
|
10830
|
-
|
|
10837
|
+
ti(Sl(u), !0)
|
|
10831
10838
|
) || [];
|
|
10832
10839
|
A = new Response(
|
|
10833
10840
|
Ol(A.body, Nl, K, () => {
|
|
@@ -10837,7 +10844,7 @@ const Fb = async (n) => {
|
|
|
10837
10844
|
);
|
|
10838
10845
|
}
|
|
10839
10846
|
l = l || "text";
|
|
10840
|
-
let F = await
|
|
10847
|
+
let F = await ni[te.findKey(ni, l) || "text"](A, n);
|
|
10841
10848
|
return !C && v && v(), await new Promise((M, z) => {
|
|
10842
10849
|
gc(M, z, {
|
|
10843
10850
|
data: F,
|
|
@@ -10856,12 +10863,12 @@ const Fb = async (n) => {
|
|
|
10856
10863
|
}
|
|
10857
10864
|
) : De.from(S, S && S.code, n, p);
|
|
10858
10865
|
}
|
|
10859
|
-
}),
|
|
10866
|
+
}), Pa = {
|
|
10860
10867
|
http: Zy,
|
|
10861
10868
|
xhr: Nb,
|
|
10862
10869
|
fetch: Bb
|
|
10863
10870
|
};
|
|
10864
|
-
te.forEach(
|
|
10871
|
+
te.forEach(Pa, (n, e) => {
|
|
10865
10872
|
if (n) {
|
|
10866
10873
|
try {
|
|
10867
10874
|
Object.defineProperty(n, "name", { value: e });
|
|
@@ -10879,7 +10886,7 @@ const Rl = (n) => `- ${n}`, Ub = (n) => te.isFunction(n) || n === null || n ===
|
|
|
10879
10886
|
for (let o = 0; o < e; o++) {
|
|
10880
10887
|
t = n[o];
|
|
10881
10888
|
let a;
|
|
10882
|
-
if (r = t, !Ub(t) && (r =
|
|
10889
|
+
if (r = t, !Ub(t) && (r = Pa[(a = String(t)).toLowerCase()], r === void 0))
|
|
10883
10890
|
throw new De(`Unknown adapter '${a}'`);
|
|
10884
10891
|
if (r)
|
|
10885
10892
|
break;
|
|
@@ -10899,38 +10906,38 @@ const Rl = (n) => `- ${n}`, Ub = (n) => te.isFunction(n) || n === null || n ===
|
|
|
10899
10906
|
}
|
|
10900
10907
|
return r;
|
|
10901
10908
|
},
|
|
10902
|
-
adapters:
|
|
10909
|
+
adapters: Pa
|
|
10903
10910
|
};
|
|
10904
|
-
function
|
|
10911
|
+
function Qi(n) {
|
|
10905
10912
|
if (n.cancelToken && n.cancelToken.throwIfRequested(), n.signal && n.signal.aborted)
|
|
10906
10913
|
throw new Dr(null, n);
|
|
10907
10914
|
}
|
|
10908
10915
|
function Cl(n) {
|
|
10909
|
-
return
|
|
10916
|
+
return Qi(n), n.headers = Dt.from(n.headers), n.data = Zi.call(
|
|
10910
10917
|
n,
|
|
10911
10918
|
n.transformRequest
|
|
10912
|
-
), ["post", "put", "patch"].indexOf(n.method) !== -1 && n.headers.setContentType("application/x-www-form-urlencoded", !1), xc.getAdapter(n.adapter ||
|
|
10913
|
-
return
|
|
10919
|
+
), ["post", "put", "patch"].indexOf(n.method) !== -1 && n.headers.setContentType("application/x-www-form-urlencoded", !1), xc.getAdapter(n.adapter || xs.adapter)(n).then(function(r) {
|
|
10920
|
+
return Qi(n), r.data = Zi.call(
|
|
10914
10921
|
n,
|
|
10915
10922
|
n.transformResponse,
|
|
10916
10923
|
r
|
|
10917
10924
|
), r.headers = Dt.from(r.headers), r;
|
|
10918
10925
|
}, function(r) {
|
|
10919
|
-
return pc(r) || (
|
|
10926
|
+
return pc(r) || (Qi(n), r && r.response && (r.response.data = Zi.call(
|
|
10920
10927
|
n,
|
|
10921
10928
|
n.transformResponse,
|
|
10922
10929
|
r.response
|
|
10923
10930
|
), r.response.headers = Dt.from(r.response.headers))), Promise.reject(r);
|
|
10924
10931
|
});
|
|
10925
10932
|
}
|
|
10926
|
-
const Ec = "1.9.0",
|
|
10933
|
+
const Ec = "1.9.0", xi = {};
|
|
10927
10934
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((n, e) => {
|
|
10928
|
-
|
|
10935
|
+
xi[n] = function(r) {
|
|
10929
10936
|
return typeof r === n || "a" + (e < 1 ? "n " : " ") + n;
|
|
10930
10937
|
};
|
|
10931
10938
|
});
|
|
10932
10939
|
const Il = {};
|
|
10933
|
-
|
|
10940
|
+
xi.transitional = function(e, t, r) {
|
|
10934
10941
|
function s(o, a) {
|
|
10935
10942
|
return "[Axios v" + Ec + "] Transitional option '" + o + "'" + a + (r ? ". " + r : "");
|
|
10936
10943
|
}
|
|
@@ -10948,7 +10955,7 @@ Ei.transitional = function(e, t, r) {
|
|
|
10948
10955
|
)), e ? e(o, a, u) : !0;
|
|
10949
10956
|
};
|
|
10950
10957
|
};
|
|
10951
|
-
|
|
10958
|
+
xi.spelling = function(e) {
|
|
10952
10959
|
return (t, r) => (console.warn(`${r} is likely a misspelling of ${e}`), !0);
|
|
10953
10960
|
};
|
|
10954
10961
|
function Db(n, e, t) {
|
|
@@ -10968,10 +10975,10 @@ function Db(n, e, t) {
|
|
|
10968
10975
|
throw new De("Unknown option " + o, De.ERR_BAD_OPTION);
|
|
10969
10976
|
}
|
|
10970
10977
|
}
|
|
10971
|
-
const
|
|
10978
|
+
const Xs = {
|
|
10972
10979
|
assertOptions: Db,
|
|
10973
|
-
validators:
|
|
10974
|
-
}, dn =
|
|
10980
|
+
validators: xi
|
|
10981
|
+
}, dn = Xs.validators;
|
|
10975
10982
|
let Yn = class {
|
|
10976
10983
|
constructor(e) {
|
|
10977
10984
|
this.defaults = e || {}, this.interceptors = {
|
|
@@ -11007,16 +11014,16 @@ let Yn = class {
|
|
|
11007
11014
|
_request(e, t) {
|
|
11008
11015
|
typeof e == "string" ? (t = t || {}, t.url = e) : t = e || {}, t = tr(this.defaults, t);
|
|
11009
11016
|
const { transitional: r, paramsSerializer: s, headers: o } = t;
|
|
11010
|
-
r !== void 0 &&
|
|
11017
|
+
r !== void 0 && Xs.assertOptions(r, {
|
|
11011
11018
|
silentJSONParsing: dn.transitional(dn.boolean),
|
|
11012
11019
|
forcedJSONParsing: dn.transitional(dn.boolean),
|
|
11013
11020
|
clarifyTimeoutError: dn.transitional(dn.boolean)
|
|
11014
11021
|
}, !1), s != null && (te.isFunction(s) ? t.paramsSerializer = {
|
|
11015
11022
|
serialize: s
|
|
11016
|
-
} :
|
|
11023
|
+
} : Xs.assertOptions(s, {
|
|
11017
11024
|
encode: dn.function,
|
|
11018
11025
|
serialize: dn.function
|
|
11019
|
-
}, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : t.allowAbsoluteUrls = !0),
|
|
11026
|
+
}, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : t.allowAbsoluteUrls = !0), Xs.assertOptions(t, {
|
|
11020
11027
|
baseUrl: dn.spelling("baseURL"),
|
|
11021
11028
|
withXsrfToken: dn.spelling("withXSRFToken")
|
|
11022
11029
|
}, !0), t.method = (t.method || this.defaults.method || "get").toLowerCase();
|
|
@@ -11177,7 +11184,7 @@ function $b(n) {
|
|
|
11177
11184
|
function _b(n) {
|
|
11178
11185
|
return te.isObject(n) && n.isAxiosError === !0;
|
|
11179
11186
|
}
|
|
11180
|
-
const
|
|
11187
|
+
const Fa = {
|
|
11181
11188
|
Continue: 100,
|
|
11182
11189
|
SwitchingProtocols: 101,
|
|
11183
11190
|
Processing: 102,
|
|
@@ -11242,8 +11249,8 @@ const Ma = {
|
|
|
11242
11249
|
NotExtended: 510,
|
|
11243
11250
|
NetworkAuthenticationRequired: 511
|
|
11244
11251
|
};
|
|
11245
|
-
Object.entries(
|
|
11246
|
-
|
|
11252
|
+
Object.entries(Fa).forEach(([n, e]) => {
|
|
11253
|
+
Fa[e] = n;
|
|
11247
11254
|
});
|
|
11248
11255
|
function Ac(n) {
|
|
11249
11256
|
const e = new Yn(n), t = Ju(Yn.prototype.request, e);
|
|
@@ -11251,13 +11258,13 @@ function Ac(n) {
|
|
|
11251
11258
|
return Ac(tr(n, s));
|
|
11252
11259
|
}, t;
|
|
11253
11260
|
}
|
|
11254
|
-
const ut = Ac(
|
|
11261
|
+
const ut = Ac(xs);
|
|
11255
11262
|
ut.Axios = Yn;
|
|
11256
11263
|
ut.CanceledError = Dr;
|
|
11257
11264
|
ut.CancelToken = jb;
|
|
11258
11265
|
ut.isCancel = pc;
|
|
11259
11266
|
ut.VERSION = Ec;
|
|
11260
|
-
ut.toFormData =
|
|
11267
|
+
ut.toFormData = yi;
|
|
11261
11268
|
ut.AxiosError = De;
|
|
11262
11269
|
ut.Cancel = ut.CanceledError;
|
|
11263
11270
|
ut.all = function(e) {
|
|
@@ -11269,7 +11276,7 @@ ut.mergeConfig = tr;
|
|
|
11269
11276
|
ut.AxiosHeaders = Dt;
|
|
11270
11277
|
ut.formToJSON = (n) => hc(te.isHTMLForm(n) ? new FormData(n) : n);
|
|
11271
11278
|
ut.getAdapter = xc.getAdapter;
|
|
11272
|
-
ut.HttpStatusCode =
|
|
11279
|
+
ut.HttpStatusCode = Fa;
|
|
11273
11280
|
ut.default = ut;
|
|
11274
11281
|
const {
|
|
11275
11282
|
Axios: Tx,
|
|
@@ -11289,7 +11296,7 @@ const {
|
|
|
11289
11296
|
getAdapter: jx,
|
|
11290
11297
|
mergeConfig: $x
|
|
11291
11298
|
} = ut;
|
|
11292
|
-
var
|
|
11299
|
+
var Ji = { exports: {} }, Ll;
|
|
11293
11300
|
function qb() {
|
|
11294
11301
|
return Ll || (Ll = 1, function(n, e) {
|
|
11295
11302
|
(function(r, s) {
|
|
@@ -14464,12 +14471,12 @@ function qb() {
|
|
|
14464
14471
|
if (ce == "@") {
|
|
14465
14472
|
ze && (Se = "%40" + Se), ze = !0, ot = A(Se);
|
|
14466
14473
|
for (var Gn = 0; Gn < ot.length; Gn++) {
|
|
14467
|
-
var
|
|
14468
|
-
if (
|
|
14474
|
+
var xn = ot[Gn];
|
|
14475
|
+
if (xn == ":" && !nt) {
|
|
14469
14476
|
nt = !0;
|
|
14470
14477
|
continue;
|
|
14471
14478
|
}
|
|
14472
|
-
var Mn = X(
|
|
14479
|
+
var Mn = X(xn, Y);
|
|
14473
14480
|
nt ? L.password += Mn : L.username += Mn;
|
|
14474
14481
|
}
|
|
14475
14482
|
Se = "";
|
|
@@ -14591,8 +14598,8 @@ function qb() {
|
|
|
14591
14598
|
var We = Fe.searchParams = new ne(), nt = V(We);
|
|
14592
14599
|
nt.updateSearchParams(Fe.query), nt.updateURL = function() {
|
|
14593
14600
|
Fe.query = String(We) || null;
|
|
14594
|
-
}, c || (re.href =
|
|
14595
|
-
}, Vn = Xt.prototype,
|
|
14601
|
+
}, c || (re.href = bn.call(re), re.origin = Fn.call(re), re.protocol = dt.call(re), re.username = ur.call(re), re.password = cr.call(re), re.host = fr.call(re), re.hostname = dr.call(re), re.port = hr.call(re), re.pathname = vt.call(re), re.search = pr.call(re), re.searchParams = gr.call(re), re.hash = vr.call(re));
|
|
14602
|
+
}, Vn = Xt.prototype, bn = function() {
|
|
14596
14603
|
var L = P(this), ae = L.scheme, re = L.username, ue = L.password, fe = L.host, Fe = L.port, Se = L.path, ze = L.query, We = L.fragment, nt = ae + ":";
|
|
14597
14604
|
return fe !== null ? (nt += "//", ie(L) && (nt += re + (ue ? ":" + ue : "") + "@"), nt += k(fe), Fe !== null && (nt += ":" + Fe)) : ae == "file" && (nt += "//"), nt += L.cannotBeABaseURL ? Se[0] : Se.length ? "/" + Se.join("/") : "", ze !== null && (nt += "?" + ze), We !== null && (nt += "#" + We), nt;
|
|
14598
14605
|
}, Fn = function() {
|
|
@@ -14635,7 +14642,7 @@ function qb() {
|
|
|
14635
14642
|
if (c && g(Vn, {
|
|
14636
14643
|
// `URL.prototype.href` accessors pair
|
|
14637
14644
|
// https://url.spec.whatwg.org/#dom-url-href
|
|
14638
|
-
href: Tt(
|
|
14645
|
+
href: Tt(bn, function(L) {
|
|
14639
14646
|
var ae = P(this), re = String(L), ue = Ft(ae, re);
|
|
14640
14647
|
if (ue) throw TypeError(ue);
|
|
14641
14648
|
V(ae.searchParams).updateSearchParams(ae.query);
|
|
@@ -14713,9 +14720,9 @@ function qb() {
|
|
|
14713
14720
|
L.charAt(0) == "#" && (L = L.slice(1)), ae.fragment = "", Ft(ae, L, gt);
|
|
14714
14721
|
})
|
|
14715
14722
|
}), p(Vn, "toJSON", function() {
|
|
14716
|
-
return
|
|
14723
|
+
return bn.call(this);
|
|
14717
14724
|
}, { enumerable: !0 }), p(Vn, "toString", function() {
|
|
14718
|
-
return
|
|
14725
|
+
return bn.call(this);
|
|
14719
14726
|
}, { enumerable: !0 }), H) {
|
|
14720
14727
|
var mr = H.createObjectURL, xt = H.revokeObjectURL;
|
|
14721
14728
|
mr && p(Xt, "createObjectURL", function(ae) {
|
|
@@ -17049,10 +17056,10 @@ Expect errors in decoding.`), E = E.replace(/[^A-Za-z0-9\+\/\=]/g, ""); I = this
|
|
|
17049
17056
|
}()
|
|
17050
17057
|
);
|
|
17051
17058
|
});
|
|
17052
|
-
}(
|
|
17059
|
+
}(Ji)), Ji.exports;
|
|
17053
17060
|
}
|
|
17054
17061
|
var zb = qb();
|
|
17055
|
-
const
|
|
17062
|
+
const ea = /* @__PURE__ */ Ga(zb), Hb = {
|
|
17056
17063
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17057
17064
|
fill: "none",
|
|
17058
17065
|
stroke: "currentColor",
|
|
@@ -17104,17 +17111,17 @@ const Gb = { render: Vb }, Wb = { class: "file-upload" }, Kb = ["name", "value"]
|
|
|
17104
17111
|
},
|
|
17105
17112
|
emits: ["update:modelValue"],
|
|
17106
17113
|
setup(n, { emit: e }) {
|
|
17107
|
-
|
|
17108
|
-
const t = n, r = _e([]), s = _e(
|
|
17114
|
+
ea.autoDiscover = !1;
|
|
17115
|
+
const t = n, r = _e([]), s = _e(ea), o = _e(null), a = je(() => JSON.stringify(r)), u = (l) => ["image/gif", "image/jpeg", "image/png", "image/tiff"].includes(l), i = (l) => {
|
|
17109
17116
|
ut.delete(t.deleteEndpoint + "?" + l.id).then(() => {
|
|
17110
17117
|
r.value = null;
|
|
17111
17118
|
}).catch(console.error);
|
|
17112
17119
|
};
|
|
17113
|
-
return
|
|
17120
|
+
return si(() => {
|
|
17114
17121
|
var c;
|
|
17115
17122
|
o.value = t.formData;
|
|
17116
17123
|
const l = t.csrf;
|
|
17117
|
-
s.value = new
|
|
17124
|
+
s.value = new ea(s.value, {
|
|
17118
17125
|
url: (t == null ? void 0 : t.submitEndpoint) + "?" + ((c = o.value) == null ? void 0 : c.id),
|
|
17119
17126
|
addRemoveLinks: !0,
|
|
17120
17127
|
maxFiles: 1,
|
|
@@ -17136,7 +17143,7 @@ const Gb = { render: Vb }, Wb = { class: "file-upload" }, Kb = ["name", "value"]
|
|
|
17136
17143
|
value: a.value
|
|
17137
17144
|
}, null, 8, Kb),
|
|
17138
17145
|
n.modelValue ? (be(), Te("div", Xb, [
|
|
17139
|
-
c[1] || (c[1] =
|
|
17146
|
+
c[1] || (c[1] = Ba(" @todo handle upload here ")),
|
|
17140
17147
|
oe("span", Yb, [
|
|
17141
17148
|
oe("img", {
|
|
17142
17149
|
class: "img rounded-lg",
|
|
@@ -17167,7 +17174,7 @@ const Gb = { render: Vb }, Wb = { class: "file-upload" }, Kb = ["name", "value"]
|
|
|
17167
17174
|
})
|
|
17168
17175
|
])
|
|
17169
17176
|
])) : pt("", !0),
|
|
17170
|
-
|
|
17177
|
+
Nn(oe("div", sx, [
|
|
17171
17178
|
oe("div", {
|
|
17172
17179
|
class: "dropzone border border-dashed rounded-lg z-10 h-[200px] w-full cursor-pointer relative",
|
|
17173
17180
|
ref_key: "dropzone",
|
|
@@ -17241,7 +17248,7 @@ const Gb = { render: Vb }, Wb = { class: "file-upload" }, Kb = ["name", "value"]
|
|
|
17241
17248
|
limit: 51
|
|
17242
17249
|
}, {
|
|
17243
17250
|
default: Bt(() => [
|
|
17244
|
-
|
|
17251
|
+
Nn(oe("input", {
|
|
17245
17252
|
"onUpdate:modelValue": l[0] || (l[0] = (c) => s.value.title = c),
|
|
17246
17253
|
name: "title",
|
|
17247
17254
|
type: "text",
|
|
@@ -17277,7 +17284,7 @@ const Gb = { render: Vb }, Wb = { class: "file-upload" }, Kb = ["name", "value"]
|
|
|
17277
17284
|
qe(Vr, { title: "Primary button" }, {
|
|
17278
17285
|
default: Bt(() => [
|
|
17279
17286
|
oe("div", cx, [
|
|
17280
|
-
qe(
|
|
17287
|
+
qe(zs, {
|
|
17281
17288
|
name: "show",
|
|
17282
17289
|
modelValue: s.value.primary_button.show,
|
|
17283
17290
|
"onUpdate:modelValue": l[2] || (l[2] = (c) => s.value.primary_button.show = c),
|
|
@@ -17292,7 +17299,7 @@ const Gb = { render: Vb }, Wb = { class: "file-upload" }, Kb = ["name", "value"]
|
|
|
17292
17299
|
limit: 20
|
|
17293
17300
|
}, {
|
|
17294
17301
|
default: Bt(() => [
|
|
17295
|
-
|
|
17302
|
+
Nn(oe("input", {
|
|
17296
17303
|
"onUpdate:modelValue": l[3] || (l[3] = (c) => s.value.primary_button.label = c),
|
|
17297
17304
|
name: "primary_button.label",
|
|
17298
17305
|
type: "text",
|
|
@@ -17305,7 +17312,7 @@ const Gb = { render: Vb }, Wb = { class: "file-upload" }, Kb = ["name", "value"]
|
|
|
17305
17312
|
]),
|
|
17306
17313
|
_: 1
|
|
17307
17314
|
}, 8, ["value"]),
|
|
17308
|
-
qe(
|
|
17315
|
+
qe(na, {
|
|
17309
17316
|
name: "primary",
|
|
17310
17317
|
type: s.value.primary_button.type,
|
|
17311
17318
|
"onUpdate:type": l[4] || (l[4] = (c) => s.value.primary_button.type = c),
|
|
@@ -17322,7 +17329,7 @@ const Gb = { render: Vb }, Wb = { class: "file-upload" }, Kb = ["name", "value"]
|
|
|
17322
17329
|
qe(Vr, { title: "Secondary button" }, {
|
|
17323
17330
|
default: Bt(() => [
|
|
17324
17331
|
oe("div", fx, [
|
|
17325
|
-
qe(
|
|
17332
|
+
qe(zs, {
|
|
17326
17333
|
name: "show",
|
|
17327
17334
|
modelValue: s.value.secondary_button.show,
|
|
17328
17335
|
"onUpdate:modelValue": l[7] || (l[7] = (c) => s.value.secondary_button.show = c),
|
|
@@ -17338,7 +17345,7 @@ const Gb = { render: Vb }, Wb = { class: "file-upload" }, Kb = ["name", "value"]
|
|
|
17338
17345
|
limit: 20
|
|
17339
17346
|
}, {
|
|
17340
17347
|
default: Bt(() => [
|
|
17341
|
-
|
|
17348
|
+
Nn(oe("input", {
|
|
17342
17349
|
"onUpdate:modelValue": l[8] || (l[8] = (c) => s.value.secondary_button.label = c),
|
|
17343
17350
|
name: "secondary_button.label",
|
|
17344
17351
|
type: "text",
|
|
@@ -17351,7 +17358,7 @@ const Gb = { render: Vb }, Wb = { class: "file-upload" }, Kb = ["name", "value"]
|
|
|
17351
17358
|
]),
|
|
17352
17359
|
_: 1
|
|
17353
17360
|
}, 8, ["value"]),
|
|
17354
|
-
qe(
|
|
17361
|
+
qe(na, {
|
|
17355
17362
|
name: "secondary",
|
|
17356
17363
|
type: s.value.secondary_button.type,
|
|
17357
17364
|
"onUpdate:type": l[9] || (l[9] = (c) => s.value.secondary_button.type = c),
|
|
@@ -17373,7 +17380,7 @@ const Gb = { render: Vb }, Wb = { class: "file-upload" }, Kb = ["name", "value"]
|
|
|
17373
17380
|
supporting_text: "Toggle off if you'd like to hide this item"
|
|
17374
17381
|
}, {
|
|
17375
17382
|
default: Bt(() => [
|
|
17376
|
-
qe(
|
|
17383
|
+
qe(zs, {
|
|
17377
17384
|
modelValue: s.value.public,
|
|
17378
17385
|
"onUpdate:modelValue": l[12] || (l[12] = (c) => s.value.public = c),
|
|
17379
17386
|
name: "public",
|
|
@@ -17404,7 +17411,7 @@ const Gb = { render: Vb }, Wb = { class: "file-upload" }, Kb = ["name", "value"]
|
|
|
17404
17411
|
class: "w-[200px] py-[9px] bg-white rounded-full border border-gray-300 shadow-xs text-md font-semibold hover:bg-gray-100 text-gray-700 text-center cursor-pointer"
|
|
17405
17412
|
}, " Cancel "),
|
|
17406
17413
|
oe("a", {
|
|
17407
|
-
onClick:
|
|
17414
|
+
onClick: Ma(o, ["prevent"]),
|
|
17408
17415
|
class: "w-full py-[9px] rounded-full shadow-xs text-md font-semibold text-white bg-brand-600 hover:bg-brand-700 border border-brand-600 text-center cursor-pointer"
|
|
17409
17416
|
}, "Save changes")
|
|
17410
17417
|
])
|