@cling-se/widget 0.14.0 → 0.14.3
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/{AddClientCallout-C7BLDW6Y.js → AddClientCallout-DKH-LP5B.js} +3 -3
- package/dist/{AnswerModal-KWFteFV9.js → AnswerModal-BCbq8wc4.js} +3 -3
- package/dist/{AttachmentItem-CSerklBS.js → AttachmentItem-60CSZnkF.js} +2 -2
- package/dist/{BaseDatePicker-BOxfHGS8.js → BaseDatePicker-Cl8SnC1k.js} +481 -481
- package/dist/{BaseUpload-B-CktrCH.js → BaseUpload-D4FCjlhL.js} +14 -14
- package/dist/{BlockMedia-T4OxMb4n.js → BlockMedia-CqkwdGnE.js} +1 -1
- package/dist/{CCallout-yFt7TFJa.js → CCallout-BTBgU8f-.js} +2 -2
- package/dist/CCurrencyDropdown-CL32Mo-Y.js +246 -0
- package/dist/{CDropdownItem-DhEpCmQt.js → CDropdownItem-DlWtQwO6.js} +7 -5
- package/dist/{CFormField-DDLf5YY4.js → CFormField-BxJv-nUO.js} +1 -1
- package/dist/{CPhoneFormat-B88rkuf0.js → CPhoneFormat-CJ9kndtJ.js} +1 -1
- package/dist/CPriceInput-BpXI5X2j.js +112 -0
- package/dist/CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-l0sNRNKZ.js +1 -0
- package/dist/{ClientAutocomplete-DmRl3SUj.js → ClientAutocomplete-D9Dj9iBW.js} +2 -2
- package/dist/{ClientModal-Dn3WDhGU.js → ClientModal-JOt8NGcR.js} +48 -40
- package/dist/{ColorPicker-DX6JAsTn.js → ColorPicker-uPKD-Gvm.js} +1 -1
- package/dist/{CompanyModal-BbO2nTd5.js → CompanyModal-7bG0iIRd.js} +4 -4
- package/dist/{ContentWrapper-BvbmcTXK.js → ContentWrapper-B2nyZHL4.js} +6 -6
- package/dist/{CoverBlockSettings-C8FDwx7i.js → CoverBlockSettings-C1O_FAde.js} +5 -5
- package/dist/{DocAnswer-OttbybQs.js → DocAnswer-B9G-y4Px.js} +2 -2
- package/dist/{DocDetails-J7O26zqa.js → DocDetails-DYHxKChO.js} +7 -7
- package/dist/{DocForm-Bgbesq79.js → DocForm-BktEXjML.js} +54 -53
- package/dist/{DocFormSend-D_U3ztgw.js → DocFormSend-DM6QgUOj.js} +2 -2
- package/dist/{DocLinks-Dp-iQ-B_.js → DocLinks-BIGwfB3H.js} +2 -2
- package/dist/{DocModalBase-F-wlPg7j.js → DocModalBase-D5GdwTI7.js} +1 -1
- package/dist/{DocPrint-B45voy0W.js → DocPrint-HqbaIGms.js} +11 -17
- package/dist/{DocReceipt-jKVK5U-a.js → DocReceipt-WXo6vWyW.js} +6 -6
- package/dist/{DocSendReminder-BersSNb1.js → DocSendReminder-C8dNEpLg.js} +1 -1
- package/dist/{DocTextEditor-CYe_jWZ8.js → DocTextEditor-BfOZFDTP.js} +281 -270
- package/dist/{DocTimeline-yyzh51yB.js → DocTimeline-CitwS9px.js} +1 -1
- package/dist/{DocumentClient-CS_EVjK9.js → DocumentClient-CQ_z8ajY.js} +5 -5
- package/dist/{DocumentLayout-Ba121Zro.js → DocumentLayout-BA7mFfZh.js} +4 -4
- package/dist/{DocumentLogotype-DUVhl9xC.js → DocumentLogotype-woc_hfll.js} +3 -3
- package/dist/{DocumentVoided-D5ePc-a5.js → DocumentVoided-DC4FzpxG.js} +1 -1
- package/dist/{EmbedInput-Ds-Z-0J2.js → EmbedInput-CheqYcNr.js} +2 -2
- package/dist/{EmbedSettings-C8BP4YuY.js → EmbedSettings-YcwM8hJw.js} +2 -2
- package/dist/{ErrorCallout-B_QrRAm6.js → ErrorCallout-6pCYcx00.js} +1 -1
- package/dist/{FilePreviewModal-B105PxLD.js → FilePreviewModal-T8AiphqO.js} +2 -2
- package/dist/{Flag-hg61To9C.js → Flag-Ddm6a4Il.js} +1 -1
- package/dist/{HeaderSettings-DIBiJc4I.js → HeaderSettings-DHdZweJH.js} +7 -7
- package/dist/{ImageSelectModal-D2g42vWJ.js → ImageSelectModal-CAoBhnI8.js} +3 -3
- package/dist/{ImageUploadWrapper-CREUMKh3.js → ImageUploadWrapper-CNv59Lhh.js} +2 -2
- package/dist/{Index-YkoWXviW.js → Index-B6S9U4Z-.js} +4 -4
- package/dist/{Index-DVQ6ZsHz.js → Index-BHX0D5fW.js} +5 -5
- package/dist/{Index-7rbX01Io.js → Index-BL_7m5Ca.js} +5 -5
- package/dist/{Index-Dqp7TmnQ.js → Index-BXMXEUfo.js} +32 -30
- package/dist/{Index-DRgVg0CH.js → Index-BhVBvMu6.js} +4 -4
- package/dist/{Index-CYHxrllv.js → Index-Bl_SNW80.js} +4 -4
- package/dist/{Index-BiK7PqAm.js → Index-BsguntKl.js} +2 -2
- package/dist/{Index-Dy7K8KMB.js → Index-CGYjPfsf.js} +590 -694
- package/dist/{Index-sltQx4D3.js → Index-CKrGb3of.js} +3 -3
- package/dist/{Index-Bu6aOCmM.js → Index-CMNrQo5a.js} +3 -3
- package/dist/{Index-kAu-7TWv.js → Index-CU50Al5c.js} +10 -10
- package/dist/{Index-DDj3_T_m.js → Index-CdqrrZxd.js} +4 -4
- package/dist/{Index-D0gS476H.js → Index-CfnL9dAw.js} +4 -4
- package/dist/{Index-BLQwYzIX.js → Index-CuW0MYrT.js} +6 -6
- package/dist/{Index-BG9x90V0.js → Index-D-z8JSn6.js} +5 -5
- package/dist/{Index-agYFtWMw.js → Index-D8giJ_bs.js} +6 -6
- package/dist/{Index-02IKjPth.js → Index-DDvfqy_h.js} +3 -3
- package/dist/{Index-CUxvKTfn.js → Index-DQDalqZ-.js} +5 -5
- package/dist/{Index-8DAfMA_s.js → Index-DTIPKKkV.js} +5 -5
- package/dist/{Index-BUTYZCat.js → Index-DWxzUBff.js} +2 -2
- package/dist/{Index-CwulQoRG.js → Index-DaNGeDQw.js} +8 -8
- package/dist/{Index-lKo8z-71.js → Index-DfLU_AyN.js} +3 -3
- package/dist/{Index-bTXYCG9Y.js → Index-DkVav_I7.js} +4 -4
- package/dist/{Index-B8xcDVQ1.js → Index-Dxp8QAtB.js} +5 -5
- package/dist/{Index-CpWW7m5F.js → Index-DzjxFkcv.js} +11 -13
- package/dist/{Index-CL12KArA.js → Index-EwUJJWaB.js} +22 -18
- package/dist/{Index-BZM-FsHY.js → Index-I60qAqLl.js} +1 -1
- package/dist/{Index-D_MonVUx.js → Index-LfF-7lQK.js} +13 -13
- package/dist/{Index-BqBi-EmE.js → Index-P0_dyc2V.js} +3 -3
- package/dist/{Index-4NdatdH2.js → Index-RQMPSeHw.js} +6 -6
- package/dist/{Index-DIg77V9c.js → Index-oipNLl3Y.js} +3 -3
- package/dist/{Index-C56fTFO3.js → Index-sJq2Iyvt.js} +4 -4
- package/dist/{Index-BuDj2yrd.js → Index-uubi3NHX.js} +4 -4
- package/dist/{Index-DeNpUKh8.js → Index-vNj2kYZT.js} +5 -5
- package/dist/{InputToggleRow-C7aWJpUF.js → InputToggleRow-B2pWvVyx.js} +1 -1
- package/dist/{ManualPopover-CK9Xp-mo.js → ManualPopover-BI_Sf1zG.js} +1 -1
- package/dist/{MediaWrapper-v87wlFnj.js → MediaWrapper-eFpWxv3n.js} +3 -3
- package/dist/{NotBindingText-BGy3SnK3.js → NotBindingText-DA5NpePz.js} +3 -3
- package/dist/{PackageGroup-CrsOkWIb.js → PackageGroup-DOSijBdN.js} +8 -8
- package/dist/{PdfTerms-UmEmlI0Y.js → PdfTerms-Q5YuVtrJ.js} +2 -2
- package/dist/{PdfViewer-C6VBu4tT.js → PdfViewer-zcWl8XZT.js} +3 -3
- package/dist/{PlainHtml-Dsaxrq3D.js → PlainHtml-BmA83UAm.js} +1 -1
- package/dist/{PriceHeader-DQ615L9Q.js → PriceHeader-C14L5zgG.js} +9 -9
- package/dist/{SearchApi-CbWFQfoc.js → SearchApi-CGT7-jVf.js} +2 -2
- package/dist/{Setup-Byd-0W7U.js → Setup-RJQvZlDO.js} +1 -1
- package/dist/{CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-DbBb6ZId.js → SmartList-YosKRPVn.js} +1 -1
- package/dist/{TermsSettings-Cah7_3Ba.js → TermsSettings-C5JTv7rT.js} +3 -3
- package/dist/{ThemeColorRow-DqsjvQfY.js → ThemeColorRow-D-C_tm2f.js} +3 -3
- package/dist/{ToggleBinding-DFr6xW2B.js → ToggleBinding-KEVHHvKf.js} +3 -3
- package/dist/{UploadModal-jRI9ITty.js → UploadModal-DOYoWELI.js} +2 -2
- package/dist/{VideoPlayerInput-C5_Ft8-4.js → VideoPlayerInput-Dxb6CNk-.js} +3 -3
- package/dist/{VideoPlayerSettings-LZluC-Tg.js → VideoPlayerSettings-DsVN4Ix-.js} +2 -2
- package/dist/{VideoSelectModal-OGDq_lwv.js → VideoSelectModal-BpfzNx61.js} +3 -3
- package/dist/{answerDocumentMixin-D8BXcPWt.js → answerDocumentMixin-BJMGrfUs.js} +3 -3
- package/dist/{debounce-BQXg61RJ.js → debounce-BN83gOVd.js} +11 -11
- package/dist/{focusDrawerMixin-D3Pzr0P-.js → focusDrawerMixin-CawyQaGq.js} +1 -1
- package/dist/{formComponentsInstall-D1VBPt9o.js → formComponentsInstall-jcnyQ1zw.js} +74 -76
- package/dist/{formDrawerState-wG6RdIXD.js → formDrawerState-BdNohvZH.js} +1 -1
- package/dist/{formValidationMixin-D9qFZJf9.js → formValidationMixin-DOwgebZk.js} +1 -1
- package/dist/{index-BEOnzeEr.js → index-BBJIOkm_.js} +5 -5
- package/dist/{index-1DmXjcSN.js → index-BNq9YCWc.js} +12 -12
- package/dist/{index-BFnwm62-.js → index-BdhbkLLU.js} +1 -1
- package/dist/{index-DETqm8Jy.js → index-COf8F6CL.js} +15 -18
- package/dist/{index-Dnp3LAf2.js → index-D0WvZHX_.js} +1 -1
- package/dist/{index-M-GXl2PO.js → index-DTzZP4yq.js} +20 -20
- package/dist/index.es.js +3 -3
- package/dist/index.umd.js +135 -143
- package/dist/{main-CWRB9q-W.js → main-DE5THsiR.js} +4228 -4195
- package/dist/{mapFormMixin-BOmDynJ-.js → mapFormMixin-y2txvLw9.js} +1 -1
- package/dist/omit-BrsWQAtU.js +31 -0
- package/dist/{publicSenderState-D_VhSyXD.js → publicSenderState-BYsq95Vt.js} +1 -1
- package/dist/style.css +2 -2
- package/dist/{throttle-Bixql7MZ.js → throttle-C2srA2wa.js} +2 -2
- package/dist/{tinycolor-CIjZZX-6.js → tinycolor-SjV_ROuP.js} +1 -1
- package/dist/tippy.esm-Dj7DQppr.js +1799 -0
- package/dist/{utils-1ypnMuRv.js → utils-16HMuRfY.js} +1 -1
- package/dist/{omit-CMqxXOLn.js → vuedraggable.umd-Cd1g2Hr7.js} +526 -554
- package/package.json +1 -1
- package/tsconfig.json +2 -2
- package/dist/BaseInput-BDjhI5P9.js +0 -364
- package/dist/tippy.esm-BcAHvKwR.js +0 -2039
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { V as Vn, n as ut,
|
|
2
|
-
import { g as
|
|
3
|
-
import { t as Uo, F as Ha, s as Va, d as Ds } from "./tippy.esm-
|
|
4
|
-
import { i as Jo, w as ja } from "./CDropdownItem-
|
|
5
|
-
import "./CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-
|
|
1
|
+
import { V as Vn, n as ut, ae as ys, b as bs, x as _a, p as $a } from "./main-DE5THsiR.js";
|
|
2
|
+
import { g as jn } from "./dom-CJxkno7i.js";
|
|
3
|
+
import { t as Uo, F as Ha, s as Va, d as Ds } from "./tippy.esm-Dj7DQppr.js";
|
|
4
|
+
import { i as Jo, w as ja } from "./CDropdownItem-DlWtQwO6.js";
|
|
5
|
+
import "./CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-l0sNRNKZ.js";
|
|
6
6
|
import "./CField.vue_vue_type_style_index_0_lang-l0sNRNKZ.js";
|
|
7
|
-
import { C as Wa } from "./ColorPicker-
|
|
8
|
-
import { M as Go } from "./ManualPopover-
|
|
7
|
+
import { C as Wa } from "./ColorPicker-uPKD-Gvm.js";
|
|
8
|
+
import { M as Go } from "./ManualPopover-BI_Sf1zG.js";
|
|
9
9
|
import { h as qa } from "./color-TdtKxwVa.js";
|
|
10
10
|
function ee(n) {
|
|
11
11
|
this.content = n;
|
|
@@ -413,11 +413,11 @@ class b {
|
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
415
|
b.empty = new b([], 0);
|
|
416
|
-
const
|
|
416
|
+
const zr = { index: 0, offset: 0 };
|
|
417
417
|
function Tn(n, e) {
|
|
418
|
-
return
|
|
418
|
+
return zr.index = n, zr.offset = e, zr;
|
|
419
419
|
}
|
|
420
|
-
function
|
|
420
|
+
function Wn(n, e) {
|
|
421
421
|
if (n === e)
|
|
422
422
|
return !0;
|
|
423
423
|
if (!(n && typeof n == "object") || !(e && typeof e == "object"))
|
|
@@ -429,11 +429,11 @@ function jn(n, e) {
|
|
|
429
429
|
if (n.length != e.length)
|
|
430
430
|
return !1;
|
|
431
431
|
for (let r = 0; r < n.length; r++)
|
|
432
|
-
if (!
|
|
432
|
+
if (!Wn(n[r], e[r]))
|
|
433
433
|
return !1;
|
|
434
434
|
} else {
|
|
435
435
|
for (let r in n)
|
|
436
|
-
if (!(r in e) || !
|
|
436
|
+
if (!(r in e) || !Wn(n[r], e[r]))
|
|
437
437
|
return !1;
|
|
438
438
|
for (let r in e)
|
|
439
439
|
if (!(r in n))
|
|
@@ -495,7 +495,7 @@ let P = class ui {
|
|
|
495
495
|
another mark.
|
|
496
496
|
*/
|
|
497
497
|
eq(e) {
|
|
498
|
-
return this == e || this.type == e.type &&
|
|
498
|
+
return this == e || this.type == e.type && Wn(this.attrs, e.attrs);
|
|
499
499
|
}
|
|
500
500
|
/**
|
|
501
501
|
Convert this mark to a JSON-serializeable representation.
|
|
@@ -668,7 +668,7 @@ function el(n, e, t, r) {
|
|
|
668
668
|
return yt(s, nl(n, o, l, e, r));
|
|
669
669
|
}
|
|
670
670
|
else
|
|
671
|
-
return yt(s,
|
|
671
|
+
return yt(s, qn(n, e, r));
|
|
672
672
|
}
|
|
673
673
|
function tl(n, e) {
|
|
674
674
|
if (!e.type.compatibleContent(n.type))
|
|
@@ -696,13 +696,13 @@ function yt(n, e) {
|
|
|
696
696
|
}
|
|
697
697
|
function nl(n, e, t, r, i) {
|
|
698
698
|
let s = n.depth > i && ci(n, e, i + 1), o = r.depth > i && ci(t, r, i + 1), l = [];
|
|
699
|
-
return dn(null, n, i, l), s && o && e.index(i) == t.index(i) ? (tl(s, o), gt(yt(s, nl(n, e, t, r, i + 1)), l)) : (s && gt(yt(s,
|
|
699
|
+
return dn(null, n, i, l), s && o && e.index(i) == t.index(i) ? (tl(s, o), gt(yt(s, nl(n, e, t, r, i + 1)), l)) : (s && gt(yt(s, qn(n, e, i + 1)), l), dn(e, t, i, l), o && gt(yt(o, qn(t, r, i + 1)), l)), dn(r, null, i, l), new b(l);
|
|
700
700
|
}
|
|
701
|
-
function
|
|
701
|
+
function qn(n, e, t) {
|
|
702
702
|
let r = [];
|
|
703
703
|
if (dn(null, n, t, r), n.depth > t) {
|
|
704
704
|
let i = ci(n, e, t + 1);
|
|
705
|
-
gt(yt(i,
|
|
705
|
+
gt(yt(i, qn(n, e, t + 1)), r);
|
|
706
706
|
}
|
|
707
707
|
return dn(e, null, t, r), new b(r);
|
|
708
708
|
}
|
|
@@ -900,7 +900,7 @@ class kn {
|
|
|
900
900
|
return e.blockRange(this);
|
|
901
901
|
for (let r = this.depth - (this.parent.inlineContent || this.pos == e.pos ? 1 : 0); r >= 0; r--)
|
|
902
902
|
if (e.pos <= this.end(r) && (!t || t(this.node(r))))
|
|
903
|
-
return new
|
|
903
|
+
return new Kn(this, e, r);
|
|
904
904
|
return null;
|
|
905
905
|
}
|
|
906
906
|
/**
|
|
@@ -949,17 +949,17 @@ class kn {
|
|
|
949
949
|
@internal
|
|
950
950
|
*/
|
|
951
951
|
static resolveCached(e, t) {
|
|
952
|
-
for (let i = 0; i <
|
|
953
|
-
let s =
|
|
952
|
+
for (let i = 0; i < _r.length; i++) {
|
|
953
|
+
let s = _r[i];
|
|
954
954
|
if (s.pos == t && s.doc == e)
|
|
955
955
|
return s;
|
|
956
956
|
}
|
|
957
|
-
let r =
|
|
958
|
-
return
|
|
957
|
+
let r = _r[$r] = kn.resolve(e, t);
|
|
958
|
+
return $r = ($r + 1) % Ja, r;
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
|
-
let
|
|
962
|
-
class
|
|
961
|
+
let _r = [], $r = 0, Ja = 12;
|
|
962
|
+
class Kn {
|
|
963
963
|
/**
|
|
964
964
|
Construct a node range. `$from` and `$to` should point into the
|
|
965
965
|
same node until at least the given `depth`, since a node range
|
|
@@ -1111,7 +1111,7 @@ let bt = class di {
|
|
|
1111
1111
|
attributes, and marks.
|
|
1112
1112
|
*/
|
|
1113
1113
|
hasMarkup(e, t, r) {
|
|
1114
|
-
return this.type == e &&
|
|
1114
|
+
return this.type == e && Wn(this.attrs, t || e.defaultAttrs || Ga) && P.sameSet(this.marks, r || P.none);
|
|
1115
1115
|
}
|
|
1116
1116
|
/**
|
|
1117
1117
|
Create a new node with the same markup as this node, containing
|
|
@@ -1362,7 +1362,7 @@ let bt = class di {
|
|
|
1362
1362
|
}
|
|
1363
1363
|
};
|
|
1364
1364
|
bt.prototype.text = void 0;
|
|
1365
|
-
class
|
|
1365
|
+
class Un extends bt {
|
|
1366
1366
|
/**
|
|
1367
1367
|
@internal
|
|
1368
1368
|
*/
|
|
@@ -1384,10 +1384,10 @@ class Kn extends bt {
|
|
|
1384
1384
|
return this.text.length;
|
|
1385
1385
|
}
|
|
1386
1386
|
mark(e) {
|
|
1387
|
-
return e == this.marks ? this : new
|
|
1387
|
+
return e == this.marks ? this : new Un(this.type, this.attrs, this.text, e);
|
|
1388
1388
|
}
|
|
1389
1389
|
withText(e) {
|
|
1390
|
-
return e == this.text ? this : new
|
|
1390
|
+
return e == this.text ? this : new Un(this.type, this.attrs, e, this.marks);
|
|
1391
1391
|
}
|
|
1392
1392
|
cut(e = 0, t = this.text.length) {
|
|
1393
1393
|
return e == 0 && t == this.text.length ? this : this.withText(this.text.slice(e, t));
|
|
@@ -1947,7 +1947,7 @@ class su {
|
|
|
1947
1947
|
return !this.hasDefault;
|
|
1948
1948
|
}
|
|
1949
1949
|
}
|
|
1950
|
-
class
|
|
1950
|
+
class Ar {
|
|
1951
1951
|
/**
|
|
1952
1952
|
@internal
|
|
1953
1953
|
*/
|
|
@@ -1969,7 +1969,7 @@ class xr {
|
|
|
1969
1969
|
*/
|
|
1970
1970
|
static compile(e, t) {
|
|
1971
1971
|
let r = /* @__PURE__ */ Object.create(null), i = 0;
|
|
1972
|
-
return e.forEach((s, o) => r[s] = new
|
|
1972
|
+
return e.forEach((s, o) => r[s] = new Ar(s, i++, t, o)), r;
|
|
1973
1973
|
}
|
|
1974
1974
|
/**
|
|
1975
1975
|
When there is a mark of this type in the given set, a new set
|
|
@@ -2005,7 +2005,7 @@ class ou {
|
|
|
2005
2005
|
nodes: ee.from(e.nodes),
|
|
2006
2006
|
marks: ee.from(e.marks || {}),
|
|
2007
2007
|
topNode: e.topNode
|
|
2008
|
-
}, this.nodes = ws.compile(this.spec.nodes, this), this.marks =
|
|
2008
|
+
}, this.nodes = ws.compile(this.spec.nodes, this), this.marks = Ar.compile(this.spec.marks, this);
|
|
2009
2009
|
let t = /* @__PURE__ */ Object.create(null);
|
|
2010
2010
|
for (let r in this.nodes) {
|
|
2011
2011
|
if (r in this.marks)
|
|
@@ -2041,7 +2041,7 @@ class ou {
|
|
|
2041
2041
|
*/
|
|
2042
2042
|
text(e, t) {
|
|
2043
2043
|
let r = this.nodes.text;
|
|
2044
|
-
return new
|
|
2044
|
+
return new Un(r, r.defaultAttrs, e, P.setFrom(t));
|
|
2045
2045
|
}
|
|
2046
2046
|
/**
|
|
2047
2047
|
Create a mark with the given type and attributes.
|
|
@@ -2237,9 +2237,9 @@ const cl = {
|
|
|
2237
2237
|
script: !0,
|
|
2238
2238
|
style: !0,
|
|
2239
2239
|
title: !0
|
|
2240
|
-
}, dl = { ol: !0, ul: !0 },
|
|
2240
|
+
}, dl = { ol: !0, ul: !0 }, Jn = 1, Gn = 2, hn = 4;
|
|
2241
2241
|
function As(n, e, t) {
|
|
2242
|
-
return e != null ? (e ?
|
|
2242
|
+
return e != null ? (e ? Jn : 0) | (e === "full" ? Gn : 0) : n && n.whitespace == "pre" ? Jn | Gn : t & ~hn;
|
|
2243
2243
|
}
|
|
2244
2244
|
class On {
|
|
2245
2245
|
constructor(e, t, r, i, s, o, l) {
|
|
@@ -2260,7 +2260,7 @@ class On {
|
|
|
2260
2260
|
return this.match.findWrapping(e.type);
|
|
2261
2261
|
}
|
|
2262
2262
|
finish(e) {
|
|
2263
|
-
if (!(this.options &
|
|
2263
|
+
if (!(this.options & Jn)) {
|
|
2264
2264
|
let r = this.content[this.content.length - 1], i;
|
|
2265
2265
|
if (r && r.isText && (i = /[ \t\r\n\u000c]+$/.exec(r.text))) {
|
|
2266
2266
|
let s = r;
|
|
@@ -2312,9 +2312,9 @@ class vs {
|
|
|
2312
2312
|
}
|
|
2313
2313
|
addTextNode(e) {
|
|
2314
2314
|
let t = e.nodeValue, r = this.top;
|
|
2315
|
-
if (r.options &
|
|
2316
|
-
if (r.options &
|
|
2317
|
-
r.options &
|
|
2315
|
+
if (r.options & Gn || r.inlineContext(e) || /[^ \t\r\n\u000c]/.test(t)) {
|
|
2316
|
+
if (r.options & Jn)
|
|
2317
|
+
r.options & Gn ? t = t.replace(/\r\n?/g, `
|
|
2318
2318
|
`) : t = t.replace(/\r?\n|\r/g, " ");
|
|
2319
2319
|
else if (t = t.replace(/[ \t\r\n\u000c]+/g, " "), /^[ \t\r\n\u000c]/.test(t) && this.open == this.nodes.length - 1) {
|
|
2320
2320
|
let i = r.content[r.content.length - 1], s = e.previousSibling;
|
|
@@ -2622,7 +2622,7 @@ class Ie {
|
|
|
2622
2622
|
nodes.
|
|
2623
2623
|
*/
|
|
2624
2624
|
serializeFragment(e, t = {}, r) {
|
|
2625
|
-
r || (r =
|
|
2625
|
+
r || (r = Hr(t).createDocumentFragment());
|
|
2626
2626
|
let i = r, s = [];
|
|
2627
2627
|
return e.forEach((o) => {
|
|
2628
2628
|
if (s.length || o.marks.length) {
|
|
@@ -2651,7 +2651,7 @@ class Ie {
|
|
|
2651
2651
|
@internal
|
|
2652
2652
|
*/
|
|
2653
2653
|
serializeNodeInner(e, t) {
|
|
2654
|
-
let { dom: r, contentDOM: i } = Ie.renderSpec(
|
|
2654
|
+
let { dom: r, contentDOM: i } = Ie.renderSpec(Hr(t), this.nodes[e.type.name](e));
|
|
2655
2655
|
if (i) {
|
|
2656
2656
|
if (e.isLeaf)
|
|
2657
2657
|
throw new RangeError("Content hole not allowed in a leaf node spec");
|
|
@@ -2679,7 +2679,7 @@ class Ie {
|
|
|
2679
2679
|
*/
|
|
2680
2680
|
serializeMark(e, t, r = {}) {
|
|
2681
2681
|
let i = this.marks[e.type.name];
|
|
2682
|
-
return i && Ie.renderSpec(
|
|
2682
|
+
return i && Ie.renderSpec(Hr(r), i(e, t));
|
|
2683
2683
|
}
|
|
2684
2684
|
/**
|
|
2685
2685
|
Render an [output spec](https://prosemirror.net/docs/ref/#model.DOMOutputSpec) to a DOM node. If
|
|
@@ -2751,7 +2751,7 @@ function Es(n) {
|
|
|
2751
2751
|
}
|
|
2752
2752
|
return e;
|
|
2753
2753
|
}
|
|
2754
|
-
function
|
|
2754
|
+
function Hr(n) {
|
|
2755
2755
|
return n.document || window.document;
|
|
2756
2756
|
}
|
|
2757
2757
|
const hl = 65535, fl = Math.pow(2, 16);
|
|
@@ -3005,7 +3005,7 @@ class $t {
|
|
|
3005
3005
|
return r ? e : new hi(e, i, null);
|
|
3006
3006
|
}
|
|
3007
3007
|
}
|
|
3008
|
-
const
|
|
3008
|
+
const Vr = /* @__PURE__ */ Object.create(null);
|
|
3009
3009
|
class pe {
|
|
3010
3010
|
/**
|
|
3011
3011
|
Get the step map that represents the changes made by this step,
|
|
@@ -3030,7 +3030,7 @@ class pe {
|
|
|
3030
3030
|
static fromJSON(e, t) {
|
|
3031
3031
|
if (!t || !t.stepType)
|
|
3032
3032
|
throw new RangeError("Invalid input for Step.fromJSON");
|
|
3033
|
-
let r =
|
|
3033
|
+
let r = Vr[t.stepType];
|
|
3034
3034
|
if (!r)
|
|
3035
3035
|
throw new RangeError(`No step type ${t.stepType} defined`);
|
|
3036
3036
|
return r.fromJSON(e, t);
|
|
@@ -3042,9 +3042,9 @@ class pe {
|
|
|
3042
3042
|
that's unlikely to clash with steps from other modules.
|
|
3043
3043
|
*/
|
|
3044
3044
|
static jsonID(e, t) {
|
|
3045
|
-
if (e in
|
|
3045
|
+
if (e in Vr)
|
|
3046
3046
|
throw new RangeError("Duplicate use of step JSON ID " + e);
|
|
3047
|
-
return
|
|
3047
|
+
return Vr[e] = t, t.prototype.jsonID = e, t;
|
|
3048
3048
|
}
|
|
3049
3049
|
}
|
|
3050
3050
|
class U {
|
|
@@ -3391,7 +3391,7 @@ function gu(n, e, t, r) {
|
|
|
3391
3391
|
return;
|
|
3392
3392
|
s++;
|
|
3393
3393
|
let a = null;
|
|
3394
|
-
if (r instanceof
|
|
3394
|
+
if (r instanceof Ar) {
|
|
3395
3395
|
let u = o.marks, c;
|
|
3396
3396
|
for (; c = r.isInSet(u); )
|
|
3397
3397
|
(a || (a = [])).push(c), u = c.removeFromSet(u);
|
|
@@ -3641,7 +3641,7 @@ class Ou {
|
|
|
3641
3641
|
for (let e = 1; e <= 2; e++)
|
|
3642
3642
|
for (let t = this.unplaced.openStart; t >= 0; t--) {
|
|
3643
3643
|
let r, i = null;
|
|
3644
|
-
t ? (i =
|
|
3644
|
+
t ? (i = jr(this.unplaced.content, t - 1).firstChild, r = i.content) : r = this.unplaced.content;
|
|
3645
3645
|
let s = r.firstChild;
|
|
3646
3646
|
for (let o = this.depth; o >= 0; o--) {
|
|
3647
3647
|
let { type: l, match: a } = this.frontier[o], u, c = null;
|
|
@@ -3655,11 +3655,11 @@ class Ou {
|
|
|
3655
3655
|
}
|
|
3656
3656
|
}
|
|
3657
3657
|
openMore() {
|
|
3658
|
-
let { content: e, openStart: t, openEnd: r } = this.unplaced, i =
|
|
3658
|
+
let { content: e, openStart: t, openEnd: r } = this.unplaced, i = jr(e, t);
|
|
3659
3659
|
return !i.childCount || i.firstChild.isLeaf ? !1 : (this.unplaced = new k(e, t + 1, Math.max(r, i.size + t >= e.size - r ? t + 1 : 0)), !0);
|
|
3660
3660
|
}
|
|
3661
3661
|
dropNode() {
|
|
3662
|
-
let { content: e, openStart: t, openEnd: r } = this.unplaced, i =
|
|
3662
|
+
let { content: e, openStart: t, openEnd: r } = this.unplaced, i = jr(e, t);
|
|
3663
3663
|
if (i.childCount <= 1 && t > 0) {
|
|
3664
3664
|
let s = e.size - t <= t + i.size;
|
|
3665
3665
|
this.unplaced = new k(an(e, t - 1, 1), t - 1, s ? t - 1 : r);
|
|
@@ -3700,7 +3700,7 @@ class Ou {
|
|
|
3700
3700
|
if (!this.$to.parent.isTextblock)
|
|
3701
3701
|
return -1;
|
|
3702
3702
|
let e = this.frontier[this.depth], t;
|
|
3703
|
-
if (!e.type.isTextblock || !
|
|
3703
|
+
if (!e.type.isTextblock || !Wr(this.$to, this.$to.depth, e.type, e.match, !1) || this.$to.depth == this.depth && (t = this.findCloseLevel(this.$to)) && t.depth == this.depth)
|
|
3704
3704
|
return -1;
|
|
3705
3705
|
let { depth: r } = this.$to, i = this.$to.after(r);
|
|
3706
3706
|
for (; r > 1 && i == this.$to.end(--r); )
|
|
@@ -3710,10 +3710,10 @@ class Ou {
|
|
|
3710
3710
|
findCloseLevel(e) {
|
|
3711
3711
|
e:
|
|
3712
3712
|
for (let t = Math.min(this.depth, e.depth); t >= 0; t--) {
|
|
3713
|
-
let { match: r, type: i } = this.frontier[t], s = t < e.depth && e.end(t + 1) == e.pos + (e.depth - (t + 1)), o =
|
|
3713
|
+
let { match: r, type: i } = this.frontier[t], s = t < e.depth && e.end(t + 1) == e.pos + (e.depth - (t + 1)), o = Wr(e, t, i, r, s);
|
|
3714
3714
|
if (o) {
|
|
3715
3715
|
for (let l = t - 1; l >= 0; l--) {
|
|
3716
|
-
let { match: a, type: u } = this.frontier[l], c =
|
|
3716
|
+
let { match: a, type: u } = this.frontier[l], c = Wr(e, l, u, a, !0);
|
|
3717
3717
|
if (!c || c.childCount)
|
|
3718
3718
|
continue e;
|
|
3719
3719
|
}
|
|
@@ -3749,7 +3749,7 @@ function an(n, e, t) {
|
|
|
3749
3749
|
function un(n, e, t) {
|
|
3750
3750
|
return e == 0 ? n.append(t) : n.replaceChild(n.childCount - 1, n.lastChild.copy(un(n.lastChild.content, e - 1, t)));
|
|
3751
3751
|
}
|
|
3752
|
-
function
|
|
3752
|
+
function jr(n, e) {
|
|
3753
3753
|
for (let t = 0; t < e; t++)
|
|
3754
3754
|
n = n.firstChild.content;
|
|
3755
3755
|
return n;
|
|
@@ -3760,7 +3760,7 @@ function Dl(n, e, t) {
|
|
|
3760
3760
|
let r = n.content;
|
|
3761
3761
|
return e > 1 && (r = r.replaceChild(0, Dl(r.firstChild, e - 1, r.childCount == 1 ? t - 1 : 0))), e > 0 && (r = n.type.contentMatch.fillBefore(r).append(r), t <= 0 && (r = r.append(n.type.contentMatch.matchFragment(r).fillBefore(b.empty, !0)))), n.copy(r);
|
|
3762
3762
|
}
|
|
3763
|
-
function
|
|
3763
|
+
function Wr(n, e, t, r, i) {
|
|
3764
3764
|
let s = n.node(e), o = i ? n.indexAfter(e) : n.index(e);
|
|
3765
3765
|
if (o == s.childCount && !t.compatibleContent(s.type))
|
|
3766
3766
|
return null;
|
|
@@ -4124,7 +4124,7 @@ class $i {
|
|
|
4124
4124
|
return yu(this, e, t, r), this;
|
|
4125
4125
|
}
|
|
4126
4126
|
}
|
|
4127
|
-
const
|
|
4127
|
+
const qr = /* @__PURE__ */ Object.create(null);
|
|
4128
4128
|
class E {
|
|
4129
4129
|
/**
|
|
4130
4130
|
Initialize a selection with the head and anchor and ranges. If no
|
|
@@ -4260,7 +4260,7 @@ class E {
|
|
|
4260
4260
|
static fromJSON(e, t) {
|
|
4261
4261
|
if (!t || !t.type)
|
|
4262
4262
|
throw new RangeError("Invalid input for Selection.fromJSON");
|
|
4263
|
-
let r =
|
|
4263
|
+
let r = qr[t.type];
|
|
4264
4264
|
if (!r)
|
|
4265
4265
|
throw new RangeError(`No selection type ${t.type} defined`);
|
|
4266
4266
|
return r.fromJSON(e, t);
|
|
@@ -4272,9 +4272,9 @@ class E {
|
|
|
4272
4272
|
clash with classes from other modules.
|
|
4273
4273
|
*/
|
|
4274
4274
|
static jsonID(e, t) {
|
|
4275
|
-
if (e in
|
|
4275
|
+
if (e in qr)
|
|
4276
4276
|
throw new RangeError("Duplicate use of selection JSON ID " + e);
|
|
4277
|
-
return
|
|
4277
|
+
return qr[e] = t, t.prototype.jsonID = e, t;
|
|
4278
4278
|
}
|
|
4279
4279
|
/**
|
|
4280
4280
|
Get a [bookmark](https://prosemirror.net/docs/ref/#state.SelectionBookmark) for this selection,
|
|
@@ -4333,7 +4333,7 @@ class M extends E {
|
|
|
4333
4333
|
return e instanceof M && e.anchor == this.anchor && e.head == this.head;
|
|
4334
4334
|
}
|
|
4335
4335
|
getBookmark() {
|
|
4336
|
-
return new
|
|
4336
|
+
return new vr(this.anchor, this.head);
|
|
4337
4337
|
}
|
|
4338
4338
|
toJSON() {
|
|
4339
4339
|
return { type: "text", anchor: this.anchor, head: this.head };
|
|
@@ -4374,12 +4374,12 @@ class M extends E {
|
|
|
4374
4374
|
}
|
|
4375
4375
|
}
|
|
4376
4376
|
E.jsonID("text", M);
|
|
4377
|
-
class
|
|
4377
|
+
class vr {
|
|
4378
4378
|
constructor(e, t) {
|
|
4379
4379
|
this.anchor = e, this.head = t;
|
|
4380
4380
|
}
|
|
4381
4381
|
map(e) {
|
|
4382
|
-
return new
|
|
4382
|
+
return new vr(e.map(this.anchor), e.map(this.head));
|
|
4383
4383
|
}
|
|
4384
4384
|
resolve(e) {
|
|
4385
4385
|
return M.between(e.resolve(this.anchor), e.resolve(this.head));
|
|
@@ -4440,7 +4440,7 @@ class Hi {
|
|
|
4440
4440
|
}
|
|
4441
4441
|
map(e) {
|
|
4442
4442
|
let { deleted: t, pos: r } = e.mapResult(this.anchor);
|
|
4443
|
-
return t ? new
|
|
4443
|
+
return t ? new vr(r, r) : new Hi(r);
|
|
4444
4444
|
}
|
|
4445
4445
|
resolve(e) {
|
|
4446
4446
|
let t = e.resolve(this.anchor), r = t.nodeAfter;
|
|
@@ -4713,7 +4713,7 @@ const zu = [
|
|
|
4713
4713
|
}
|
|
4714
4714
|
})
|
|
4715
4715
|
];
|
|
4716
|
-
class
|
|
4716
|
+
class Kr {
|
|
4717
4717
|
constructor(e, t) {
|
|
4718
4718
|
this.schema = e, this.plugins = [], this.pluginsByKey = /* @__PURE__ */ Object.create(null), this.fields = zu.slice(), t && t.forEach((r) => {
|
|
4719
4719
|
if (this.pluginsByKey[r.key])
|
|
@@ -4814,7 +4814,7 @@ class Nt {
|
|
|
4814
4814
|
Create a new state.
|
|
4815
4815
|
*/
|
|
4816
4816
|
static create(e) {
|
|
4817
|
-
let t = new
|
|
4817
|
+
let t = new Kr(e.doc ? e.doc.type.schema : e.schema, e.plugins), r = new Nt(t);
|
|
4818
4818
|
for (let i = 0; i < t.fields.length; i++)
|
|
4819
4819
|
r[t.fields[i].name] = t.fields[i].init(e, r);
|
|
4820
4820
|
return r;
|
|
@@ -4828,7 +4828,7 @@ class Nt {
|
|
|
4828
4828
|
configuration object..
|
|
4829
4829
|
*/
|
|
4830
4830
|
reconfigure(e) {
|
|
4831
|
-
let t = new
|
|
4831
|
+
let t = new Kr(this.schema, e.plugins), r = t.fields, i = new Nt(t);
|
|
4832
4832
|
for (let s = 0; s < r.length; s++) {
|
|
4833
4833
|
let o = r[s].name;
|
|
4834
4834
|
i[o] = this.hasOwnProperty(o) ? this[o] : r[s].init(e, i);
|
|
@@ -4865,7 +4865,7 @@ class Nt {
|
|
|
4865
4865
|
throw new RangeError("Invalid input for EditorState.fromJSON");
|
|
4866
4866
|
if (!e.schema)
|
|
4867
4867
|
throw new RangeError("Required config field 'schema' missing");
|
|
4868
|
-
let i = new
|
|
4868
|
+
let i = new Kr(e.schema, e.plugins), s = new Nt(i);
|
|
4869
4869
|
return i.fields.forEach((o) => {
|
|
4870
4870
|
if (o.name == "doc")
|
|
4871
4871
|
s.doc = bt.fromJSON(e.schema, t.doc);
|
|
@@ -4908,9 +4908,9 @@ class $ {
|
|
|
4908
4908
|
return e[this.key];
|
|
4909
4909
|
}
|
|
4910
4910
|
}
|
|
4911
|
-
const
|
|
4911
|
+
const Ur = /* @__PURE__ */ Object.create(null);
|
|
4912
4912
|
function Al(n) {
|
|
4913
|
-
return n in
|
|
4913
|
+
return n in Ur ? n + "$" + ++Ur[n] : (Ur[n] = 0, n + "$");
|
|
4914
4914
|
}
|
|
4915
4915
|
class K {
|
|
4916
4916
|
/**
|
|
@@ -4984,7 +4984,7 @@ function Hu(n) {
|
|
|
4984
4984
|
;
|
|
4985
4985
|
return e && e.node && e.node.isBlock && (e.dom == n || e.contentDOM == n);
|
|
4986
4986
|
}
|
|
4987
|
-
const
|
|
4987
|
+
const Sr = function(n) {
|
|
4988
4988
|
return n.focusNode && wt(n.focusNode, n.focusOffset, n.anchorNode, n.anchorOffset);
|
|
4989
4989
|
};
|
|
4990
4990
|
function Ft(n, e) {
|
|
@@ -4999,7 +4999,7 @@ function Vu(n) {
|
|
|
4999
4999
|
}
|
|
5000
5000
|
const ot = typeof navigator < "u" ? navigator : null, zs = typeof document < "u" ? document : null, ct = ot && ot.userAgent || "", pi = /Edge\/(\d+)/.exec(ct), vl = /MSIE \d/.exec(ct), mi = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ct), fe = !!(vl || mi || pi), rt = vl ? document.documentMode : mi ? +mi[1] : pi ? +pi[1] : 0, Me = !fe && /gecko\/(\d+)/i.test(ct);
|
|
5001
5001
|
Me && +(/Firefox\/(\d+)/.exec(ct) || [0, 0])[1];
|
|
5002
|
-
const gi = !fe && /Chrome\/(\d+)/.exec(ct), he = !!gi, ju = gi ? +gi[1] : 0, ae = !fe && !!ot && /Apple Computer/.test(ot.vendor), Ut = ae && (/Mobile\/\w+/.test(ct) || !!ot && ot.maxTouchPoints > 2), De = Ut || (ot ? /Mac/.test(ot.platform) : !1), Le = /Android \d/.test(ct),
|
|
5002
|
+
const gi = !fe && /Chrome\/(\d+)/.exec(ct), he = !!gi, ju = gi ? +gi[1] : 0, ae = !fe && !!ot && /Apple Computer/.test(ot.vendor), Ut = ae && (/Mobile\/\w+/.test(ct) || !!ot && ot.maxTouchPoints > 2), De = Ut || (ot ? /Mac/.test(ot.platform) : !1), Le = /Android \d/.test(ct), Er = !!zs && "webkitFontSmoothing" in zs.documentElement.style, Wu = Er ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
5003
5003
|
function qu(n) {
|
|
5004
5004
|
return {
|
|
5005
5005
|
left: 0,
|
|
@@ -5210,7 +5210,7 @@ function Je(n, e) {
|
|
|
5210
5210
|
}
|
|
5211
5211
|
const tc = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
|
|
5212
5212
|
function Ol(n, e, t) {
|
|
5213
|
-
let { node: r, offset: i, atom: s } = n.docView.domFromPos(e, t < 0 ? -1 : 1), o =
|
|
5213
|
+
let { node: r, offset: i, atom: s } = n.docView.domFromPos(e, t < 0 ? -1 : 1), o = Er || Me;
|
|
5214
5214
|
if (r.nodeType == 3)
|
|
5215
5215
|
if (o && (tc.test(r.nodeValue) || (t < 0 ? !i : i == r.nodeValue.length))) {
|
|
5216
5216
|
let a = Je(Ve(r, i, i), t);
|
|
@@ -5231,14 +5231,14 @@ function Ol(n, e, t) {
|
|
|
5231
5231
|
if (s == null && i && (t < 0 || i == Re(r))) {
|
|
5232
5232
|
let a = r.childNodes[i - 1];
|
|
5233
5233
|
if (a.nodeType == 1)
|
|
5234
|
-
return
|
|
5234
|
+
return Jr(a.getBoundingClientRect(), !1);
|
|
5235
5235
|
}
|
|
5236
5236
|
if (s == null && i < Re(r)) {
|
|
5237
5237
|
let a = r.childNodes[i];
|
|
5238
5238
|
if (a.nodeType == 1)
|
|
5239
|
-
return
|
|
5239
|
+
return Jr(a.getBoundingClientRect(), !0);
|
|
5240
5240
|
}
|
|
5241
|
-
return
|
|
5241
|
+
return Jr(r.getBoundingClientRect(), t >= 0);
|
|
5242
5242
|
}
|
|
5243
5243
|
if (s == null && i && (t < 0 || i == Re(r))) {
|
|
5244
5244
|
let a = r.childNodes[i - 1], u = a.nodeType == 3 ? Ve(a, Re(a) - (o ? 0 : 1)) : a.nodeType == 1 && (a.nodeName != "BR" || !a.nextSibling) ? a : null;
|
|
@@ -5261,7 +5261,7 @@ function nn(n, e) {
|
|
|
5261
5261
|
let t = e ? n.left : n.right;
|
|
5262
5262
|
return { top: n.top, bottom: n.bottom, left: t, right: t };
|
|
5263
5263
|
}
|
|
5264
|
-
function
|
|
5264
|
+
function Jr(n, e) {
|
|
5265
5265
|
if (n.height == 0)
|
|
5266
5266
|
return n;
|
|
5267
5267
|
let t = e ? n.top : n.bottom;
|
|
@@ -5780,7 +5780,7 @@ class At extends Sn {
|
|
|
5780
5780
|
c || ({ dom: c, contentDOM: d } = Ie.renderSpec(document, t.type.spec.toDOM(t)));
|
|
5781
5781
|
!d && !t.isText && c.nodeName != "BR" && (c.hasAttribute("contenteditable") || (c.contentEditable = "false"), t.type.spec.draggable && (c.draggable = !0));
|
|
5782
5782
|
let h = c;
|
|
5783
|
-
return c = Il(c, r, t), u ? a = new lc(e, t, r, i, c, d || null, h, u, s, o + 1) : t.isText ? new
|
|
5783
|
+
return c = Il(c, r, t), u ? a = new lc(e, t, r, i, c, d || null, h, u, s, o + 1) : t.isText ? new Mr(e, t, r, i, c, h, s) : new At(e, t, r, i, c, d || null, h, s, o + 1);
|
|
5784
5784
|
}
|
|
5785
5785
|
parseRule() {
|
|
5786
5786
|
if (this.node.type.spec.reparseInView)
|
|
@@ -5881,7 +5881,7 @@ class At extends Sn {
|
|
|
5881
5881
|
function Ws(n, e, t, r, i) {
|
|
5882
5882
|
return Il(r, e, n), new At(void 0, n, e, t, r, r, r, i, 0);
|
|
5883
5883
|
}
|
|
5884
|
-
class
|
|
5884
|
+
class Mr extends At {
|
|
5885
5885
|
constructor(e, t, r, i, s, o, l) {
|
|
5886
5886
|
super(e, t, r, i, s, null, o, l, 0);
|
|
5887
5887
|
}
|
|
@@ -5912,7 +5912,7 @@ class Er extends At {
|
|
|
5912
5912
|
}
|
|
5913
5913
|
slice(e, t, r) {
|
|
5914
5914
|
let i = this.node.cut(e, t), s = document.createTextNode(i.text);
|
|
5915
|
-
return new
|
|
5915
|
+
return new Mr(this.parent, i, this.outerDeco, this.innerDeco, s, s, r);
|
|
5916
5916
|
}
|
|
5917
5917
|
markDirty(e, t) {
|
|
5918
5918
|
super.markDirty(e, t), this.dom != this.nodeDOM && (e == 0 || t == this.nodeDOM.nodeValue.length) && (this.dirty = ze);
|
|
@@ -6177,7 +6177,7 @@ class uc {
|
|
|
6177
6177
|
for (; e instanceof xt; )
|
|
6178
6178
|
t = e, e = t.children[t.children.length - 1];
|
|
6179
6179
|
(!e || // Empty textblock
|
|
6180
|
-
!(e instanceof
|
|
6180
|
+
!(e instanceof Mr) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((ae || he) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", t), this.addHackNode("BR", this.top));
|
|
6181
6181
|
}
|
|
6182
6182
|
addHackNode(e, t) {
|
|
6183
6183
|
if (t == this.top && this.index < t.children.length && t.children[this.index].matchesHack(e))
|
|
@@ -6324,7 +6324,7 @@ function ji(n, e = null) {
|
|
|
6324
6324
|
if (o < 0)
|
|
6325
6325
|
return null;
|
|
6326
6326
|
let l = r.resolve(o), a, u;
|
|
6327
|
-
if (
|
|
6327
|
+
if (Sr(t)) {
|
|
6328
6328
|
for (a = l; i && !i.node; )
|
|
6329
6329
|
i = i.parent;
|
|
6330
6330
|
let c = i.node;
|
|
@@ -6370,15 +6370,15 @@ const Ks = ae || he && ju < 63;
|
|
|
6370
6370
|
function Us(n, e) {
|
|
6371
6371
|
let { node: t, offset: r } = n.docView.domFromPos(e, 0), i = r < t.childNodes.length ? t.childNodes[r] : null, s = r ? t.childNodes[r - 1] : null;
|
|
6372
6372
|
if (ae && i && i.contentEditable == "false")
|
|
6373
|
-
return
|
|
6373
|
+
return Gr(i);
|
|
6374
6374
|
if ((!i || i.contentEditable == "false") && (!s || s.contentEditable == "false")) {
|
|
6375
6375
|
if (i)
|
|
6376
|
-
return
|
|
6376
|
+
return Gr(i);
|
|
6377
6377
|
if (s)
|
|
6378
|
-
return
|
|
6378
|
+
return Gr(s);
|
|
6379
6379
|
}
|
|
6380
6380
|
}
|
|
6381
|
-
function
|
|
6381
|
+
function Gr(n) {
|
|
6382
6382
|
return n.contentEditable = "true", ae && n.draggable && (n.draggable = !1, n.wasDraggable = !0), n;
|
|
6383
6383
|
}
|
|
6384
6384
|
function Js(n) {
|
|
@@ -6448,7 +6448,7 @@ function Xs(n, e, t) {
|
|
|
6448
6448
|
if (!s || s.isText)
|
|
6449
6449
|
return !1;
|
|
6450
6450
|
let l = e < 0 ? i.pos - s.nodeSize : i.pos;
|
|
6451
|
-
return s.isAtom || (o = n.docView.descAt(l)) && !o.contentDOM ? S.isSelectable(s) ? ft(n, new S(e < 0 ? n.state.doc.resolve(i.pos - s.nodeSize) : i)) :
|
|
6451
|
+
return s.isAtom || (o = n.docView.descAt(l)) && !o.contentDOM ? S.isSelectable(s) ? ft(n, new S(e < 0 ? n.state.doc.resolve(i.pos - s.nodeSize) : i)) : Er ? ft(n, new M(n.state.doc.resolve(e < 0 ? l : l + s.nodeSize))) : !1 : !1;
|
|
6452
6452
|
}
|
|
6453
6453
|
} else {
|
|
6454
6454
|
if (r instanceof S && r.node.isInline)
|
|
@@ -6459,19 +6459,19 @@ function Xs(n, e, t) {
|
|
|
6459
6459
|
}
|
|
6460
6460
|
}
|
|
6461
6461
|
}
|
|
6462
|
-
function
|
|
6462
|
+
function Yn(n) {
|
|
6463
6463
|
return n.nodeType == 3 ? n.nodeValue.length : n.childNodes.length;
|
|
6464
6464
|
}
|
|
6465
6465
|
function pn(n) {
|
|
6466
6466
|
let e = n.pmViewDesc;
|
|
6467
6467
|
return e && e.size == 0 && (n.nextSibling || n.nodeName != "BR");
|
|
6468
6468
|
}
|
|
6469
|
-
function
|
|
6469
|
+
function Yr(n) {
|
|
6470
6470
|
let e = n.domSelectionRange(), t = e.focusNode, r = e.focusOffset;
|
|
6471
6471
|
if (!t)
|
|
6472
6472
|
return;
|
|
6473
6473
|
let i, s, o = !1;
|
|
6474
|
-
for (Me && t.nodeType == 1 && r <
|
|
6474
|
+
for (Me && t.nodeType == 1 && r < Yn(t) && pn(t.childNodes[r]) && (o = !0); ; )
|
|
6475
6475
|
if (r > 0) {
|
|
6476
6476
|
if (t.nodeType != 1)
|
|
6477
6477
|
break;
|
|
@@ -6492,7 +6492,7 @@ function Gr(n) {
|
|
|
6492
6492
|
for (; l && pn(l); )
|
|
6493
6493
|
i = t.parentNode, s = ye(l), l = l.previousSibling;
|
|
6494
6494
|
if (l)
|
|
6495
|
-
t = l, r =
|
|
6495
|
+
t = l, r = Yn(t);
|
|
6496
6496
|
else {
|
|
6497
6497
|
if (t = t.parentNode, t == n.dom)
|
|
6498
6498
|
break;
|
|
@@ -6502,11 +6502,11 @@ function Gr(n) {
|
|
|
6502
6502
|
}
|
|
6503
6503
|
o ? ki(n, t, r) : i && ki(n, i, s);
|
|
6504
6504
|
}
|
|
6505
|
-
function
|
|
6505
|
+
function Xr(n) {
|
|
6506
6506
|
let e = n.domSelectionRange(), t = e.focusNode, r = e.focusOffset;
|
|
6507
6507
|
if (!t)
|
|
6508
6508
|
return;
|
|
6509
|
-
let i =
|
|
6509
|
+
let i = Yn(t), s, o;
|
|
6510
6510
|
for (; ; )
|
|
6511
6511
|
if (r < i) {
|
|
6512
6512
|
if (t.nodeType != 1)
|
|
@@ -6524,7 +6524,7 @@ function Yr(n) {
|
|
|
6524
6524
|
for (; l && pn(l); )
|
|
6525
6525
|
s = l.parentNode, o = ye(l) + 1, l = l.nextSibling;
|
|
6526
6526
|
if (l)
|
|
6527
|
-
t = l, r = 0, i =
|
|
6527
|
+
t = l, r = 0, i = Yn(t);
|
|
6528
6528
|
else {
|
|
6529
6529
|
if (t = t.parentNode, t == n.dom)
|
|
6530
6530
|
break;
|
|
@@ -6540,7 +6540,7 @@ function $l(n) {
|
|
|
6540
6540
|
}
|
|
6541
6541
|
function ki(n, e, t) {
|
|
6542
6542
|
let r = n.domSelection();
|
|
6543
|
-
if (
|
|
6543
|
+
if (Sr(r)) {
|
|
6544
6544
|
let s = document.createRange();
|
|
6545
6545
|
s.setEnd(e, t), s.setStart(e, t), r.removeAllRanges(), r.addRange(s);
|
|
6546
6546
|
} else
|
|
@@ -6603,7 +6603,7 @@ function Cc(n) {
|
|
|
6603
6603
|
}
|
|
6604
6604
|
function kc(n, e) {
|
|
6605
6605
|
let t = e.keyCode, r = Cc(e);
|
|
6606
|
-
return t == 8 || De && t == 72 && r == "c" ? Zs(n, -1) ||
|
|
6606
|
+
return t == 8 || De && t == 72 && r == "c" ? Zs(n, -1) || Yr(n) : t == 46 || De && t == 68 && r == "c" ? Zs(n, 1) || Xr(n) : t == 13 || t == 27 ? !0 : t == 37 || De && t == 66 && r == "c" ? Xs(n, -1, r) || Yr(n) : t == 39 || De && t == 70 && r == "c" ? Xs(n, 1, r) || Xr(n) : t == 38 || De && t == 80 && r == "c" ? Qs(n, -1, r) || Yr(n) : t == 40 || De && t == 78 && r == "c" ? Dc(n) || Qs(n, 1, r) || Xr(n) : r == (De ? "m" : "c") && (t == 66 || t == 73 || t == 89 || t == 90);
|
|
6607
6607
|
}
|
|
6608
6608
|
function Hl(n, e) {
|
|
6609
6609
|
n.someProp("transformCopied", (f) => {
|
|
@@ -6657,7 +6657,7 @@ function Vl(n, e, t, r, i) {
|
|
|
6657
6657
|
} else
|
|
6658
6658
|
n.someProp("transformPastedHTML", (d) => {
|
|
6659
6659
|
t = d(t, n);
|
|
6660
|
-
}), o = Ac(t),
|
|
6660
|
+
}), o = Ac(t), Er && vc(o);
|
|
6661
6661
|
let u = o && o.querySelector("[data-pm-slice]"), c = u && /^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice") || "");
|
|
6662
6662
|
if (c && c[3])
|
|
6663
6663
|
for (let d = +c[3]; d > 0; d--) {
|
|
@@ -6865,7 +6865,7 @@ ce.keypress = (n, e) => {
|
|
|
6865
6865
|
n.someProp("handleTextInput", (s) => s(n, r.$from.pos, r.$to.pos, i)) || n.dispatch(n.state.tr.insertText(i).scrollIntoView()), t.preventDefault();
|
|
6866
6866
|
}
|
|
6867
6867
|
};
|
|
6868
|
-
function
|
|
6868
|
+
function Tr(n) {
|
|
6869
6869
|
return { left: n.clientX, top: n.clientY };
|
|
6870
6870
|
}
|
|
6871
6871
|
function Bc(n, e) {
|
|
@@ -6935,7 +6935,7 @@ function _c(n, e, t) {
|
|
|
6935
6935
|
}
|
|
6936
6936
|
}
|
|
6937
6937
|
function Ui(n) {
|
|
6938
|
-
return
|
|
6938
|
+
return Xn(n);
|
|
6939
6939
|
}
|
|
6940
6940
|
const Jl = De ? "metaKey" : "ctrlKey";
|
|
6941
6941
|
ue.mousedown = (n, e) => {
|
|
@@ -6943,7 +6943,7 @@ ue.mousedown = (n, e) => {
|
|
|
6943
6943
|
n.input.shiftKey = t.shiftKey;
|
|
6944
6944
|
let r = Ui(n), i = Date.now(), s = "singleClick";
|
|
6945
6945
|
i - n.input.lastClick.time < 500 && Bc(t, n.input.lastClick) && !t[Jl] && (n.input.lastClick.type == "singleClick" ? s = "doubleClick" : n.input.lastClick.type == "doubleClick" && (s = "tripleClick")), n.input.lastClick = { time: i, x: t.clientX, y: t.clientY, type: s };
|
|
6946
|
-
let o = n.posAtCoords(
|
|
6946
|
+
let o = n.posAtCoords(Tr(t));
|
|
6947
6947
|
o && (s == "singleClick" ? (n.input.mouseDown && n.input.mouseDown.done(), n.input.mouseDown = new $c(n, o, t, !!r)) : (s == "doubleClick" ? Pc : zc)(n, o.pos, o.inside, t) ? t.preventDefault() : nt(n, "pointer"));
|
|
6948
6948
|
};
|
|
6949
6949
|
class $c {
|
|
@@ -6975,7 +6975,7 @@ class $c {
|
|
|
6975
6975
|
if (this.done(), !this.view.dom.contains(e.target))
|
|
6976
6976
|
return;
|
|
6977
6977
|
let t = this.pos;
|
|
6978
|
-
this.view.state.doc != this.startDoc && (t = this.view.posAtCoords(
|
|
6978
|
+
this.view.state.doc != this.startDoc && (t = this.view.posAtCoords(Tr(e))), this.updateAllowDefault(e), this.allowDefault || !t ? nt(this.view, "pointer") : Ic(this.view, t.pos, t.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
|
|
6979
6979
|
ae && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
|
|
6980
6980
|
// cursor, but still report that the node is selected
|
|
6981
6981
|
// when asked through getSelection. You'll then get a
|
|
@@ -7008,8 +7008,8 @@ ce.compositionstart = ce.compositionupdate = (n) => {
|
|
|
7008
7008
|
n.domObserver.flush();
|
|
7009
7009
|
let { state: e } = n, t = e.selection.$from;
|
|
7010
7010
|
if (e.selection.empty && (e.storedMarks || !t.textOffset && t.parentOffset && t.nodeBefore.marks.some((r) => r.type.spec.inclusive === !1)))
|
|
7011
|
-
n.markCursor = n.state.storedMarks || t.marks(),
|
|
7012
|
-
else if (
|
|
7011
|
+
n.markCursor = n.state.storedMarks || t.marks(), Xn(n, !0), n.markCursor = null;
|
|
7012
|
+
else if (Xn(n), Me && e.selection.empty && t.parentOffset && !t.textOffset && t.nodeBefore.marks.length) {
|
|
7013
7013
|
let r = n.domSelectionRange();
|
|
7014
7014
|
for (let i = r.focusNode, s = r.focusOffset; i && i.nodeType == 1 && s != 0; ) {
|
|
7015
7015
|
let o = s < 0 ? i.lastChild : i.childNodes[s - 1];
|
|
@@ -7030,7 +7030,7 @@ ce.compositionend = (n, e) => {
|
|
|
7030
7030
|
n.composing && (n.input.composing = !1, n.input.compositionEndedAt = e.timeStamp, Yl(n, 20));
|
|
7031
7031
|
};
|
|
7032
7032
|
function Yl(n, e) {
|
|
7033
|
-
clearTimeout(n.input.composingTimeout), e > -1 && (n.input.composingTimeout = setTimeout(() =>
|
|
7033
|
+
clearTimeout(n.input.composingTimeout), e > -1 && (n.input.composingTimeout = setTimeout(() => Xn(n), e));
|
|
7034
7034
|
}
|
|
7035
7035
|
function Xl(n) {
|
|
7036
7036
|
for (n.composing && (n.input.composing = !1, n.input.compositionEndedAt = Vc()); n.input.compositionNodes.length > 0; )
|
|
@@ -7040,7 +7040,7 @@ function Vc() {
|
|
|
7040
7040
|
let n = document.createEvent("Event");
|
|
7041
7041
|
return n.initEvent("event", !0, !0), n.timeStamp;
|
|
7042
7042
|
}
|
|
7043
|
-
function
|
|
7043
|
+
function Xn(n, e = !1) {
|
|
7044
7044
|
if (!(Le && n.domObserver.flushingSoon >= 0)) {
|
|
7045
7045
|
if (n.domObserver.forceFlush(), Xl(n), e || n.docView && n.docView.dirty) {
|
|
7046
7046
|
let t = ji(n);
|
|
@@ -7104,7 +7104,7 @@ ue.dragstart = (n, e) => {
|
|
|
7104
7104
|
let t = e, r = n.input.mouseDown;
|
|
7105
7105
|
if (r && r.done(), !t.dataTransfer)
|
|
7106
7106
|
return;
|
|
7107
|
-
let i = n.state.selection, s = i.empty ? null : n.posAtCoords(
|
|
7107
|
+
let i = n.state.selection, s = i.empty ? null : n.posAtCoords(Tr(t));
|
|
7108
7108
|
if (!(s && s.pos >= i.from && s.pos <= (i instanceof S ? i.to - 1 : i.to))) {
|
|
7109
7109
|
if (r && r.mightDrag)
|
|
7110
7110
|
n.dispatch(n.state.tr.setSelection(S.create(n.state.doc, r.mightDrag.pos)));
|
|
@@ -7127,7 +7127,7 @@ ce.drop = (n, e) => {
|
|
|
7127
7127
|
let t = e, r = n.dragging;
|
|
7128
7128
|
if (n.dragging = null, !t.dataTransfer)
|
|
7129
7129
|
return;
|
|
7130
|
-
let i = n.posAtCoords(
|
|
7130
|
+
let i = n.posAtCoords(Tr(t));
|
|
7131
7131
|
if (!i)
|
|
7132
7132
|
return;
|
|
7133
7133
|
let s = n.state.doc.resolve(i.pos), o = r && r.slice;
|
|
@@ -7329,7 +7329,7 @@ class W {
|
|
|
7329
7329
|
document.
|
|
7330
7330
|
*/
|
|
7331
7331
|
static create(e, t) {
|
|
7332
|
-
return t.length ?
|
|
7332
|
+
return t.length ? Qn(t, e, 0, Dt) : ie;
|
|
7333
7333
|
}
|
|
7334
7334
|
/**
|
|
7335
7335
|
Find all decorations in this set which touch the given range
|
|
@@ -7387,7 +7387,7 @@ class W {
|
|
|
7387
7387
|
if (c = ea(t, l, u)) {
|
|
7388
7388
|
for (i || (i = this.children.slice()); s < i.length && i[s] < a; )
|
|
7389
7389
|
s += 3;
|
|
7390
|
-
i[s] == a ? i[s + 2] = i[s + 2].addInner(l, c, u + 1) : i.splice(s, 0, a, a + l.nodeSize,
|
|
7390
|
+
i[s] == a ? i[s + 2] = i[s + 2].addInner(l, c, u + 1) : i.splice(s, 0, a, a + l.nodeSize, Qn(c, l, u + 1, Dt)), s += 3;
|
|
7391
7391
|
}
|
|
7392
7392
|
});
|
|
7393
7393
|
let o = Zl(s ? ta(t) : t, -r);
|
|
@@ -7579,7 +7579,7 @@ function Uc(n, e, t, r, i, s, o) {
|
|
|
7579
7579
|
a = !0;
|
|
7580
7580
|
}
|
|
7581
7581
|
if (a) {
|
|
7582
|
-
let u = Jc(l, n, e, t, i, s, o), c =
|
|
7582
|
+
let u = Jc(l, n, e, t, i, s, o), c = Qn(u, r, 0, o);
|
|
7583
7583
|
e = c.local;
|
|
7584
7584
|
for (let d = 0; d < l.length; d += 3)
|
|
7585
7585
|
l[d + 1] < 0 && (l.splice(d, 3), d -= 3);
|
|
@@ -7629,13 +7629,13 @@ function ta(n) {
|
|
|
7629
7629
|
n[t] != null && e.push(n[t]);
|
|
7630
7630
|
return e;
|
|
7631
7631
|
}
|
|
7632
|
-
function
|
|
7632
|
+
function Qn(n, e, t, r) {
|
|
7633
7633
|
let i = [], s = !1;
|
|
7634
7634
|
e.forEach((l, a) => {
|
|
7635
7635
|
let u = ea(n, l, a + t);
|
|
7636
7636
|
if (u) {
|
|
7637
7637
|
s = !0;
|
|
7638
|
-
let c =
|
|
7638
|
+
let c = Qn(u, l, t + a + 1, r);
|
|
7639
7639
|
c != ie && i.push(a, a + l.nodeSize, c);
|
|
7640
7640
|
}
|
|
7641
7641
|
});
|
|
@@ -7670,7 +7670,7 @@ function ro(n, e, t) {
|
|
|
7670
7670
|
e++;
|
|
7671
7671
|
n.splice(e, 0, t);
|
|
7672
7672
|
}
|
|
7673
|
-
function
|
|
7673
|
+
function Qr(n) {
|
|
7674
7674
|
let e = [];
|
|
7675
7675
|
return n.someProp("decorations", (t) => {
|
|
7676
7676
|
let r = t(n.state);
|
|
@@ -7794,7 +7794,7 @@ class Qc {
|
|
|
7794
7794
|
}
|
|
7795
7795
|
}
|
|
7796
7796
|
let u = null;
|
|
7797
|
-
s < 0 && i && e.input.lastFocus > Date.now() - 200 && e.input.lastTouch < Date.now() - 300 &&
|
|
7797
|
+
s < 0 && i && e.input.lastFocus > Date.now() - 200 && e.input.lastTouch < Date.now() - 300 && Sr(r) && (u = ji(e)) && u.eq(E.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, Ke(e), this.currentSelection.set(r), e.scrollToSelection()) : (s > -1 || i) && (s > -1 && (e.docView.markDirty(s, o), Zc(e)), this.handleDOMChange(s, o, l, a), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || Ke(e), this.currentSelection.set(r));
|
|
7798
7798
|
}
|
|
7799
7799
|
registerMutation(e, t) {
|
|
7800
7800
|
if (t.indexOf(e.target) > -1)
|
|
@@ -7847,7 +7847,7 @@ function ed(n) {
|
|
|
7847
7847
|
}
|
|
7848
7848
|
function td(n, e, t) {
|
|
7849
7849
|
let { node: r, fromOffset: i, toOffset: s, from: o, to: l } = n.docView.parseRange(e, t), a = n.domSelectionRange(), u, c = a.anchorNode;
|
|
7850
|
-
if (c && n.dom.contains(c.nodeType == 1 ? c : c.parentNode) && (u = [{ node: c, offset: a.anchorOffset }],
|
|
7850
|
+
if (c && n.dom.contains(c.nodeType == 1 ? c : c.parentNode) && (u = [{ node: c, offset: a.anchorOffset }], Sr(a) || u.push({ node: a.focusNode, offset: a.focusOffset })), he && n.input.lastKeyCode === 8)
|
|
7851
7851
|
for (let g = s; g > i; g--) {
|
|
7852
7852
|
let y = r.childNodes[g - 1], D = y.pmViewDesc;
|
|
7853
7853
|
if (y.nodeName == "BR" && !D) {
|
|
@@ -7981,15 +7981,15 @@ function id(n, e) {
|
|
|
7981
7981
|
function sd(n, e, t, r, i) {
|
|
7982
7982
|
if (!r.parent.isTextblock || // The content must have shrunk
|
|
7983
7983
|
t - e <= i.pos - r.pos || // newEnd must point directly at or after the end of the block that newStart points into
|
|
7984
|
-
|
|
7984
|
+
Zr(r, !0, !1) < i.pos)
|
|
7985
7985
|
return !1;
|
|
7986
7986
|
let s = n.resolve(e);
|
|
7987
7987
|
if (s.parentOffset < s.parent.content.size || !s.parent.isTextblock)
|
|
7988
7988
|
return !1;
|
|
7989
|
-
let o = n.resolve(
|
|
7990
|
-
return !o.parent.isTextblock || o.pos > t ||
|
|
7989
|
+
let o = n.resolve(Zr(s, !0, !0));
|
|
7990
|
+
return !o.parent.isTextblock || o.pos > t || Zr(o, !0, !1) < t ? !1 : r.parent.content.cut(r.parentOffset).eq(o.parent.content);
|
|
7991
7991
|
}
|
|
7992
|
-
function
|
|
7992
|
+
function Zr(n, e, t) {
|
|
7993
7993
|
let r = n.depth, i = e ? n.end() : n.pos;
|
|
7994
7994
|
for (; r > 0 && (e || n.indexAfter(r) == n.node(r).childCount); )
|
|
7995
7995
|
r--, i++, e = !1;
|
|
@@ -8027,7 +8027,7 @@ class ld {
|
|
|
8027
8027
|
added to the document.
|
|
8028
8028
|
*/
|
|
8029
8029
|
constructor(e, t) {
|
|
8030
|
-
this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new Mc(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = t, this.state = t.state, this.directPlugins = t.plugins || [], this.directPlugins.forEach(ho), this.dispatch = this.dispatch.bind(this), this.dom = e && e.mount || document.createElement("div"), e && (e.appendChild ? e.appendChild(this.dom) : typeof e == "function" ? e(this.dom) : e.mount && (this.mounted = !0)), this.editable = uo(this), ao(this), this.nodeViews = co(this), this.docView = Ws(this.state.doc, lo(this),
|
|
8030
|
+
this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new Mc(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = t, this.state = t.state, this.directPlugins = t.plugins || [], this.directPlugins.forEach(ho), this.dispatch = this.dispatch.bind(this), this.dom = e && e.mount || document.createElement("div"), e && (e.appendChild ? e.appendChild(this.dom) : typeof e == "function" ? e(this.dom) : e.mount && (this.mounted = !0)), this.editable = uo(this), ao(this), this.nodeViews = co(this), this.docView = Ws(this.state.doc, lo(this), Qr(this), this.dom, this), this.domObserver = new Qc(this, (r, i, s, o) => rd(this, r, i, s, o)), this.domObserver.start(), Tc(this), this.updatePluginViews();
|
|
8031
8031
|
}
|
|
8032
8032
|
/**
|
|
8033
8033
|
Holds `true` when a
|
|
@@ -8089,7 +8089,7 @@ class ld {
|
|
|
8089
8089
|
ud(h, this.nodeViews) && (this.nodeViews = h, i = !0);
|
|
8090
8090
|
}
|
|
8091
8091
|
(o || t.handleDOMEvents != this._props.handleDOMEvents) && xi(this), this.editable = uo(this), ao(this);
|
|
8092
|
-
let l =
|
|
8092
|
+
let l = Qr(this), a = lo(this), u = r.plugins != e.plugins && !r.doc.eq(e.doc) ? "reset" : e.scrollToSelection > r.scrollToSelection ? "to selection" : "preserve", c = i || !this.docView.matchesNode(e.doc, a, l);
|
|
8093
8093
|
(c || !e.selection.eq(r.selection)) && (s = !0);
|
|
8094
8094
|
let d = u == "preserve" && s && this.dom.style.overflowAnchor == null && Uu(this);
|
|
8095
8095
|
if (s) {
|
|
@@ -8276,7 +8276,7 @@ class ld {
|
|
|
8276
8276
|
views](https://prosemirror.net/docs/ref/#view.NodeView).
|
|
8277
8277
|
*/
|
|
8278
8278
|
destroy() {
|
|
8279
|
-
this.docView && (Oc(this), this.destroyPluginViews(), this.mounted ? (this.docView.update(this.state.doc, [],
|
|
8279
|
+
this.docView && (Oc(this), this.destroyPluginViews(), this.mounted ? (this.docView.update(this.state.doc, [], Qr(this), this), this.dom.textContent = "") : this.dom.parentNode && this.dom.parentNode.removeChild(this.dom), this.docView.destroy(), this.docView = null);
|
|
8280
8280
|
}
|
|
8281
8281
|
/**
|
|
8282
8282
|
This is true when the view has been
|
|
@@ -8416,7 +8416,7 @@ var lt = {
|
|
|
8416
8416
|
220: "\\",
|
|
8417
8417
|
221: "]",
|
|
8418
8418
|
222: "'"
|
|
8419
|
-
},
|
|
8419
|
+
}, Zn = {
|
|
8420
8420
|
48: ")",
|
|
8421
8421
|
49: "!",
|
|
8422
8422
|
50: "@",
|
|
@@ -8447,11 +8447,11 @@ for (var te = 0; te < 10; te++)
|
|
|
8447
8447
|
for (var te = 1; te <= 24; te++)
|
|
8448
8448
|
lt[te + 111] = "F" + te;
|
|
8449
8449
|
for (var te = 65; te <= 90; te++)
|
|
8450
|
-
lt[te] = String.fromCharCode(te + 32),
|
|
8451
|
-
for (var
|
|
8452
|
-
|
|
8450
|
+
lt[te] = String.fromCharCode(te + 32), Zn[te] = String.fromCharCode(te);
|
|
8451
|
+
for (var ei in lt)
|
|
8452
|
+
Zn.hasOwnProperty(ei) || (Zn[ei] = lt[ei]);
|
|
8453
8453
|
function fd(n) {
|
|
8454
|
-
var e = hd && (n.ctrlKey || n.altKey || n.metaKey) || dd && n.shiftKey && n.key && n.key.length == 1 || n.key == "Unidentified", t = !e && n.key || (n.shiftKey ?
|
|
8454
|
+
var e = hd && (n.ctrlKey || n.altKey || n.metaKey) || dd && n.shiftKey && n.key && n.key.length == 1 || n.key == "Unidentified", t = !e && n.key || (n.shiftKey ? Zn : lt)[n.keyCode] || n.key || "Unidentified";
|
|
8455
8455
|
return t == "Esc" && (t = "Escape"), t == "Del" && (t = "Delete"), t == "Left" && (t = "ArrowLeft"), t == "Up" && (t = "ArrowUp"), t == "Right" && (t = "ArrowRight"), t == "Down" && (t = "ArrowDown"), t;
|
|
8456
8456
|
}
|
|
8457
8457
|
const pd = typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : !1;
|
|
@@ -8482,7 +8482,7 @@ function gd(n) {
|
|
|
8482
8482
|
e[md(t)] = n[t];
|
|
8483
8483
|
return e;
|
|
8484
8484
|
}
|
|
8485
|
-
function
|
|
8485
|
+
function ti(n, e, t) {
|
|
8486
8486
|
return e.altKey && (n = "Alt-" + n), e.ctrlKey && (n = "Ctrl-" + n), e.metaKey && (n = "Meta-" + n), t !== !1 && e.shiftKey && (n = "Shift-" + n), n;
|
|
8487
8487
|
}
|
|
8488
8488
|
function yd(n) {
|
|
@@ -8491,15 +8491,15 @@ function yd(n) {
|
|
|
8491
8491
|
function Xi(n) {
|
|
8492
8492
|
let e = gd(n);
|
|
8493
8493
|
return function(t, r) {
|
|
8494
|
-
let i = fd(r), s = i.length == 1 && i != " ", o, l = e[
|
|
8494
|
+
let i = fd(r), s = i.length == 1 && i != " ", o, l = e[ti(i, r, !s)];
|
|
8495
8495
|
if (l && l(t.state, t.dispatch, t))
|
|
8496
8496
|
return !0;
|
|
8497
8497
|
if (s && (r.shiftKey || r.altKey || r.metaKey || i.charCodeAt(0) > 127) && (o = lt[r.keyCode]) && o != i) {
|
|
8498
|
-
let a = e[
|
|
8498
|
+
let a = e[ti(o, r, !0)];
|
|
8499
8499
|
if (a && a(t.state, t.dispatch, t))
|
|
8500
8500
|
return !0;
|
|
8501
8501
|
} else if (s && r.shiftKey) {
|
|
8502
|
-
let a = e[
|
|
8502
|
+
let a = e[ti(i, r, !0)];
|
|
8503
8503
|
if (a && a(t.state, t.dispatch, t))
|
|
8504
8504
|
return !0;
|
|
8505
8505
|
}
|
|
@@ -8749,7 +8749,7 @@ function Bd(n, e = null) {
|
|
|
8749
8749
|
if (i.index(o.depth - 1) == 0)
|
|
8750
8750
|
return !1;
|
|
8751
8751
|
let c = t.doc.resolve(o.start - 2);
|
|
8752
|
-
a = new
|
|
8752
|
+
a = new Kn(c, c, o.depth), o.endIndex < o.parent.childCount && (o = new Kn(i, t.doc.resolve(s.end(o.depth)), o.depth)), l = !0;
|
|
8753
8753
|
}
|
|
8754
8754
|
let u = zi(a, n, e, o);
|
|
8755
8755
|
return u ? (r && r(Rd(t.tr, o, u, l, n).scrollIntoView()), !0) : !1;
|
|
@@ -8776,7 +8776,7 @@ function Ld(n) {
|
|
|
8776
8776
|
}
|
|
8777
8777
|
function Id(n, e, t, r) {
|
|
8778
8778
|
let i = n.tr, s = r.end, o = r.$to.end(r.depth);
|
|
8779
|
-
s < o && (i.step(new Y(s - 1, o, s, o, new k(b.from(t.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new
|
|
8779
|
+
s < o && (i.step(new Y(s - 1, o, s, o, new k(b.from(t.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new Kn(i.doc.resolve(r.$from.pos), i.doc.resolve(o), r.depth));
|
|
8780
8780
|
const l = Qt(r);
|
|
8781
8781
|
if (l == null)
|
|
8782
8782
|
return !1;
|
|
@@ -8815,7 +8815,7 @@ function zd(n) {
|
|
|
8815
8815
|
return !0;
|
|
8816
8816
|
};
|
|
8817
8817
|
}
|
|
8818
|
-
function
|
|
8818
|
+
function Or(n) {
|
|
8819
8819
|
const { state: e, transaction: t } = n;
|
|
8820
8820
|
let { selection: r } = t, { doc: i } = t, { storedMarks: s } = t;
|
|
8821
8821
|
return {
|
|
@@ -8841,7 +8841,7 @@ function Tr(n) {
|
|
|
8841
8841
|
}
|
|
8842
8842
|
};
|
|
8843
8843
|
}
|
|
8844
|
-
class
|
|
8844
|
+
class Nr {
|
|
8845
8845
|
constructor(e) {
|
|
8846
8846
|
this.editor = e.editor, this.rawCommands = this.editor.extensionManager.commands, this.customState = e.state;
|
|
8847
8847
|
}
|
|
@@ -8888,7 +8888,7 @@ class Or {
|
|
|
8888
8888
|
tr: e,
|
|
8889
8889
|
editor: i,
|
|
8890
8890
|
view: o,
|
|
8891
|
-
state:
|
|
8891
|
+
state: Or({
|
|
8892
8892
|
state: s,
|
|
8893
8893
|
transaction: e
|
|
8894
8894
|
}),
|
|
@@ -8928,7 +8928,7 @@ function x(n, e, t) {
|
|
|
8928
8928
|
parent: n.parent ? x(n.parent, e, t) : null
|
|
8929
8929
|
}) : n.config[e];
|
|
8930
8930
|
}
|
|
8931
|
-
function
|
|
8931
|
+
function Fr(n) {
|
|
8932
8932
|
const e = n.filter((i) => i.type === "extension"), t = n.filter((i) => i.type === "node"), r = n.filter((i) => i.type === "mark");
|
|
8933
8933
|
return {
|
|
8934
8934
|
baseExtensions: e,
|
|
@@ -8937,7 +8937,7 @@ function Nr(n) {
|
|
|
8937
8937
|
};
|
|
8938
8938
|
}
|
|
8939
8939
|
function la(n) {
|
|
8940
|
-
const e = [], { nodeExtensions: t, markExtensions: r } =
|
|
8940
|
+
const e = [], { nodeExtensions: t, markExtensions: r } = Fr(n), i = [...t, ...r], s = {
|
|
8941
8941
|
default: null,
|
|
8942
8942
|
rendered: !0,
|
|
8943
8943
|
renderHTML: null,
|
|
@@ -9049,7 +9049,7 @@ function go(n) {
|
|
|
9049
9049
|
}
|
|
9050
9050
|
function Vd(n) {
|
|
9051
9051
|
var e;
|
|
9052
|
-
const t = la(n), { nodeExtensions: r, markExtensions: i } =
|
|
9052
|
+
const t = la(n), { nodeExtensions: r, markExtensions: i } = Fr(n), s = (e = r.find((a) => x(a, "topNode"))) === null || e === void 0 ? void 0 : e.name, o = Object.fromEntries(r.map((a) => {
|
|
9053
9053
|
const u = t.filter((g) => g.type === a.name), c = {
|
|
9054
9054
|
name: a.name,
|
|
9055
9055
|
options: a.options,
|
|
@@ -9121,7 +9121,7 @@ function Vd(n) {
|
|
|
9121
9121
|
marks: l
|
|
9122
9122
|
});
|
|
9123
9123
|
}
|
|
9124
|
-
function
|
|
9124
|
+
function ni(n, e) {
|
|
9125
9125
|
return e.nodes[n] || e.marks[n] || null;
|
|
9126
9126
|
}
|
|
9127
9127
|
function yo(n, e) {
|
|
@@ -9144,7 +9144,7 @@ const jd = (n, e = 500) => {
|
|
|
9144
9144
|
function Qi(n) {
|
|
9145
9145
|
return Object.prototype.toString.call(n) === "[object RegExp]";
|
|
9146
9146
|
}
|
|
9147
|
-
class
|
|
9147
|
+
class Br {
|
|
9148
9148
|
constructor(e) {
|
|
9149
9149
|
this.find = e.find, this.handler = e.handler;
|
|
9150
9150
|
}
|
|
@@ -9158,7 +9158,7 @@ const Wd = (n, e) => {
|
|
|
9158
9158
|
const r = [];
|
|
9159
9159
|
return r.push(t.text), r.index = t.index, r.input = n, r.data = t.data, t.replaceWith && (t.text.includes(t.replaceWith) || console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'), r.push(t.replaceWith)), r;
|
|
9160
9160
|
};
|
|
9161
|
-
function
|
|
9161
|
+
function ri(n) {
|
|
9162
9162
|
var e;
|
|
9163
9163
|
const { editor: t, from: r, to: i, text: s, rules: o, plugin: l } = n, { view: a } = t;
|
|
9164
9164
|
if (a.composing)
|
|
@@ -9177,13 +9177,13 @@ function ni(n) {
|
|
|
9177
9177
|
const f = Wd(d, h.find);
|
|
9178
9178
|
if (!f)
|
|
9179
9179
|
return;
|
|
9180
|
-
const p = a.state.tr, m =
|
|
9180
|
+
const p = a.state.tr, m = Or({
|
|
9181
9181
|
state: a.state,
|
|
9182
9182
|
transaction: p
|
|
9183
9183
|
}), g = {
|
|
9184
9184
|
from: r - (f[0].length - s.length),
|
|
9185
9185
|
to: i
|
|
9186
|
-
}, { commands: y, chain: D, can: A } = new
|
|
9186
|
+
}, { commands: y, chain: D, can: A } = new Nr({
|
|
9187
9187
|
editor: t,
|
|
9188
9188
|
state: m
|
|
9189
9189
|
});
|
|
@@ -9215,7 +9215,7 @@ function qd(n) {
|
|
|
9215
9215
|
},
|
|
9216
9216
|
props: {
|
|
9217
9217
|
handleTextInput(i, s, o, l) {
|
|
9218
|
-
return
|
|
9218
|
+
return ri({
|
|
9219
9219
|
editor: e,
|
|
9220
9220
|
from: s,
|
|
9221
9221
|
to: o,
|
|
@@ -9227,7 +9227,7 @@ function qd(n) {
|
|
|
9227
9227
|
handleDOMEvents: {
|
|
9228
9228
|
compositionend: (i) => (setTimeout(() => {
|
|
9229
9229
|
const { $cursor: s } = i.state.selection;
|
|
9230
|
-
s &&
|
|
9230
|
+
s && ri({
|
|
9231
9231
|
editor: e,
|
|
9232
9232
|
from: s.pos,
|
|
9233
9233
|
to: s.pos,
|
|
@@ -9243,7 +9243,7 @@ function qd(n) {
|
|
|
9243
9243
|
if (s.key !== "Enter")
|
|
9244
9244
|
return !1;
|
|
9245
9245
|
const { $cursor: o } = i.state.selection;
|
|
9246
|
-
return o ?
|
|
9246
|
+
return o ? ri({
|
|
9247
9247
|
editor: e,
|
|
9248
9248
|
from: o.pos,
|
|
9249
9249
|
to: o.pos,
|
|
@@ -9277,7 +9277,7 @@ const Jd = (n, e) => {
|
|
|
9277
9277
|
}) : [];
|
|
9278
9278
|
};
|
|
9279
9279
|
function Gd(n) {
|
|
9280
|
-
const { editor: e, state: t, from: r, to: i, rule: s } = n, { commands: o, chain: l, can: a } = new
|
|
9280
|
+
const { editor: e, state: t, from: r, to: i, rule: s } = n, { commands: o, chain: l, can: a } = new Nr({
|
|
9281
9281
|
editor: e,
|
|
9282
9282
|
state: t
|
|
9283
9283
|
}), u = [];
|
|
@@ -9336,7 +9336,7 @@ function Yd(n) {
|
|
|
9336
9336
|
const p = u.doc.content.findDiffStart(c.doc.content), m = u.doc.content.findDiffEnd(c.doc.content);
|
|
9337
9337
|
if (!Kd(p) || !m || p === m.b)
|
|
9338
9338
|
return;
|
|
9339
|
-
const g = c.tr, y =
|
|
9339
|
+
const g = c.tr, y = Or({
|
|
9340
9340
|
state: c,
|
|
9341
9341
|
transaction: g
|
|
9342
9342
|
});
|
|
@@ -9365,7 +9365,7 @@ class Rt {
|
|
|
9365
9365
|
options: r.options,
|
|
9366
9366
|
storage: r.storage,
|
|
9367
9367
|
editor: this.editor,
|
|
9368
|
-
type:
|
|
9368
|
+
type: ni(r.name, this.schema)
|
|
9369
9369
|
};
|
|
9370
9370
|
r.type === "mark" && (!((i = O(x(r, "keepOnSplit", s))) !== null && i !== void 0) || i) && this.splittableMarks.push(r.name);
|
|
9371
9371
|
const o = x(r, "onBeforeCreate", s);
|
|
@@ -9416,7 +9416,7 @@ class Rt {
|
|
|
9416
9416
|
options: t.options,
|
|
9417
9417
|
storage: t.storage,
|
|
9418
9418
|
editor: this.editor,
|
|
9419
|
-
type:
|
|
9419
|
+
type: ni(t.name, this.schema)
|
|
9420
9420
|
}, i = x(t, "addCommands", r);
|
|
9421
9421
|
return i ? {
|
|
9422
9422
|
...e,
|
|
@@ -9431,7 +9431,7 @@ class Rt {
|
|
|
9431
9431
|
options: o.options,
|
|
9432
9432
|
storage: o.storage,
|
|
9433
9433
|
editor: e,
|
|
9434
|
-
type:
|
|
9434
|
+
type: ni(o.name, this.schema)
|
|
9435
9435
|
}, a = [], u = x(o, "addKeyboardShortcuts", l);
|
|
9436
9436
|
let c = {};
|
|
9437
9437
|
if (o.type === "mark" && o.config.exitable && (c.ArrowRight = () => we.handleExit({ editor: e, mark: o })), u) {
|
|
@@ -9467,7 +9467,7 @@ class Rt {
|
|
|
9467
9467
|
return la(this.extensions);
|
|
9468
9468
|
}
|
|
9469
9469
|
get nodeViews() {
|
|
9470
|
-
const { editor: e } = this, { nodeExtensions: t } =
|
|
9470
|
+
const { editor: e } = this, { nodeExtensions: t } = Fr(this.extensions);
|
|
9471
9471
|
return Object.fromEntries(t.filter((r) => !!x(r, "addNodeView")).map((r) => {
|
|
9472
9472
|
const i = this.attributes.filter((a) => a.type === r.name), s = {
|
|
9473
9473
|
name: r.name,
|
|
@@ -9496,13 +9496,13 @@ class Rt {
|
|
|
9496
9496
|
function Qd(n) {
|
|
9497
9497
|
return Object.prototype.toString.call(n).slice(8, -1);
|
|
9498
9498
|
}
|
|
9499
|
-
function
|
|
9499
|
+
function ii(n) {
|
|
9500
9500
|
return Qd(n) !== "Object" ? !1 : n.constructor === Object && Object.getPrototypeOf(n) === Object.prototype;
|
|
9501
9501
|
}
|
|
9502
|
-
function
|
|
9502
|
+
function Rr(n, e) {
|
|
9503
9503
|
const t = { ...n };
|
|
9504
|
-
return
|
|
9505
|
-
|
|
9504
|
+
return ii(n) && ii(e) && Object.keys(e).forEach((r) => {
|
|
9505
|
+
ii(e[r]) ? r in n ? t[r] = Rr(n[r], e[r]) : Object.assign(t, { [r]: e[r] }) : Object.assign(t, { [r]: e[r] });
|
|
9506
9506
|
}), t;
|
|
9507
9507
|
}
|
|
9508
9508
|
class Z {
|
|
@@ -9525,7 +9525,7 @@ class Z {
|
|
|
9525
9525
|
}
|
|
9526
9526
|
configure(e = {}) {
|
|
9527
9527
|
const t = this.extend();
|
|
9528
|
-
return t.options =
|
|
9528
|
+
return t.options = Rr(this.options, e), t.storage = O(x(t, "addStorage", {
|
|
9529
9529
|
name: t.name,
|
|
9530
9530
|
options: t.options
|
|
9531
9531
|
})), t;
|
|
@@ -9612,12 +9612,12 @@ const Zd = Z.create({
|
|
|
9612
9612
|
const { from: r, to: i } = n;
|
|
9613
9613
|
return t && e.delete(r, i), !0;
|
|
9614
9614
|
}, lh = () => ({ state: n, dispatch: e }) => bd(n, e), ah = () => ({ commands: n }) => n.keyboardShortcut("Enter"), uh = () => ({ state: n, dispatch: e }) => vd(n, e);
|
|
9615
|
-
function
|
|
9615
|
+
function er(n, e, t = { strict: !0 }) {
|
|
9616
9616
|
const r = Object.keys(e);
|
|
9617
9617
|
return r.length ? r.every((i) => t.strict ? e[i] === n[i] : Qi(e[i]) ? e[i].test(n[i]) : e[i] === n[i]) : !0;
|
|
9618
9618
|
}
|
|
9619
9619
|
function Si(n, e, t = {}) {
|
|
9620
|
-
return n.find((r) => r.type === e &&
|
|
9620
|
+
return n.find((r) => r.type === e && er(r.attrs, t));
|
|
9621
9621
|
}
|
|
9622
9622
|
function ch(n, e, t = {}) {
|
|
9623
9623
|
return !!Si(n, e, t);
|
|
@@ -9683,7 +9683,7 @@ function da(n, e = null) {
|
|
|
9683
9683
|
const i = t.from, s = r.to;
|
|
9684
9684
|
return e === "all" ? M.create(n, qe(0, i, s), qe(n.content.size, i, s)) : M.create(n, qe(e, i, s), qe(e, i, s));
|
|
9685
9685
|
}
|
|
9686
|
-
function
|
|
9686
|
+
function Lr() {
|
|
9687
9687
|
return [
|
|
9688
9688
|
"iPad Simulator",
|
|
9689
9689
|
"iPhone Simulator",
|
|
@@ -9699,7 +9699,7 @@ const fh = (n = null, e = {}) => ({ editor: t, view: r, tr: i, dispatch: s }) =>
|
|
|
9699
9699
|
...e
|
|
9700
9700
|
};
|
|
9701
9701
|
const o = () => {
|
|
9702
|
-
|
|
9702
|
+
Lr() && r.dom.focus(), requestAnimationFrame(() => {
|
|
9703
9703
|
t.isDestroyed || (r.focus(), e != null && e.scrollIntoView && t.commands.scrollIntoView());
|
|
9704
9704
|
});
|
|
9705
9705
|
};
|
|
@@ -9714,7 +9714,7 @@ function bo(n) {
|
|
|
9714
9714
|
const e = `<body>${n}</body>`;
|
|
9715
9715
|
return new window.DOMParser().parseFromString(e, "text/html").body;
|
|
9716
9716
|
}
|
|
9717
|
-
function
|
|
9717
|
+
function tr(n, e, t) {
|
|
9718
9718
|
if (t = {
|
|
9719
9719
|
slice: !0,
|
|
9720
9720
|
parseOptions: {},
|
|
@@ -9723,13 +9723,13 @@ function er(n, e, t) {
|
|
|
9723
9723
|
try {
|
|
9724
9724
|
return Array.isArray(n) ? b.fromArray(n.map((r) => e.nodeFromJSON(r))) : e.nodeFromJSON(n);
|
|
9725
9725
|
} catch (r) {
|
|
9726
|
-
return console.warn("[tiptap warn]: Invalid content.", "Passed value:", n, "Error:", r),
|
|
9726
|
+
return console.warn("[tiptap warn]: Invalid content.", "Passed value:", n, "Error:", r), tr("", e, t);
|
|
9727
9727
|
}
|
|
9728
9728
|
if (typeof n == "string") {
|
|
9729
9729
|
const r = Wt.fromSchema(e);
|
|
9730
9730
|
return t.slice ? r.parseSlice(bo(n), t.parseOptions).content : r.parse(bo(n), t.parseOptions);
|
|
9731
9731
|
}
|
|
9732
|
-
return
|
|
9732
|
+
return tr("", e, t);
|
|
9733
9733
|
}
|
|
9734
9734
|
function gh(n, e, t) {
|
|
9735
9735
|
const r = n.steps.length - 1;
|
|
@@ -9751,7 +9751,7 @@ const yh = (n) => n.toString().startsWith("<"), bh = (n, e, t) => ({ tr: r, disp
|
|
|
9751
9751
|
updateSelection: !0,
|
|
9752
9752
|
...t
|
|
9753
9753
|
};
|
|
9754
|
-
const o =
|
|
9754
|
+
const o = tr(e, s.schema, {
|
|
9755
9755
|
parseOptions: {
|
|
9756
9756
|
preserveWhitespace: "full",
|
|
9757
9757
|
...t.parseOptions
|
|
@@ -9789,7 +9789,7 @@ function kh(n) {
|
|
|
9789
9789
|
else if (/^s(hift)?$/i.test(a))
|
|
9790
9790
|
s = !0;
|
|
9791
9791
|
else if (/^mod$/i.test(a))
|
|
9792
|
-
|
|
9792
|
+
Lr() || ha() ? o = !0 : i = !0;
|
|
9793
9793
|
else
|
|
9794
9794
|
throw new Error(`Unrecognized modifier name: ${a}`);
|
|
9795
9795
|
}
|
|
@@ -9824,7 +9824,7 @@ function An(n, e, t = {}) {
|
|
|
9824
9824
|
to: p
|
|
9825
9825
|
});
|
|
9826
9826
|
});
|
|
9827
|
-
const a = i - r, u = l.filter((d) => o ? o.name === d.node.type.name : !0).filter((d) =>
|
|
9827
|
+
const a = i - r, u = l.filter((d) => o ? o.name === d.node.type.name : !0).filter((d) => er(d.node.attrs, t, { strict: !1 }));
|
|
9828
9828
|
return s ? !!u.length : u.reduce((d, h) => d + h.to - h.from, 0) >= a;
|
|
9829
9829
|
}
|
|
9830
9830
|
const xh = (n, e = {}) => ({ state: t, dispatch: r }) => {
|
|
@@ -9834,7 +9834,7 @@ const xh = (n, e = {}) => ({ state: t, dispatch: r }) => {
|
|
|
9834
9834
|
const r = Q(n, e.schema);
|
|
9835
9835
|
return Ld(r)(e, t);
|
|
9836
9836
|
}, Sh = () => ({ state: n, dispatch: e }) => Ad(n, e);
|
|
9837
|
-
function
|
|
9837
|
+
function Ir(n, e) {
|
|
9838
9838
|
return e.nodes[n] ? "node" : e.marks[n] ? "mark" : null;
|
|
9839
9839
|
}
|
|
9840
9840
|
function Do(n, e) {
|
|
@@ -9843,7 +9843,7 @@ function Do(n, e) {
|
|
|
9843
9843
|
}
|
|
9844
9844
|
const Eh = (n, e) => ({ tr: t, state: r, dispatch: i }) => {
|
|
9845
9845
|
let s = null, o = null;
|
|
9846
|
-
const l =
|
|
9846
|
+
const l = Ir(typeof n == "string" ? n : n.name, r.schema);
|
|
9847
9847
|
return l ? (l === "node" && (s = Q(n, r.schema)), l === "mark" && (o = dt(n, r.schema)), i && t.selection.ranges.forEach((a) => {
|
|
9848
9848
|
r.doc.nodesBetween(a.$from.pos, a.$to.pos, (u, c) => {
|
|
9849
9849
|
s && s === u.type && t.setNodeMarkup(c, void 0, Do(u.attrs, e)), o && u.marks.length && u.marks.forEach((d) => {
|
|
@@ -9856,7 +9856,7 @@ const Eh = (n, e) => ({ tr: t, state: r, dispatch: i }) => {
|
|
|
9856
9856
|
to: n.doc.content.size
|
|
9857
9857
|
}), Oh = () => ({ state: n, dispatch: e }) => Cd(n, e), Nh = () => ({ state: n, dispatch: e }) => wd(n, e), Fh = () => ({ state: n, dispatch: e }) => Md(n, e), Bh = () => ({ state: n, dispatch: e }) => Nd(n, e), Rh = () => ({ state: n, dispatch: e }) => Od(n, e);
|
|
9858
9858
|
function fa(n, e, t = {}) {
|
|
9859
|
-
return
|
|
9859
|
+
return tr(n, e, { slice: !1, parseOptions: t });
|
|
9860
9860
|
}
|
|
9861
9861
|
const Lh = (n, e = !1, t = {}) => ({ tr: r, editor: i, dispatch: s }) => {
|
|
9862
9862
|
const { doc: o } = r, l = fa(n, i.schema, t);
|
|
@@ -9930,7 +9930,7 @@ function Hh(n, e) {
|
|
|
9930
9930
|
return o ? { ...o.attrs } : {};
|
|
9931
9931
|
}
|
|
9932
9932
|
function ma(n, e) {
|
|
9933
|
-
const t =
|
|
9933
|
+
const t = Ir(typeof e == "string" ? e : e.name, n.schema);
|
|
9934
9934
|
return t === "node" ? Hh(n, e) : t === "mark" ? ns(n, e) : {};
|
|
9935
9935
|
}
|
|
9936
9936
|
function Vh(n, e = JSON.stringify) {
|
|
@@ -9973,7 +9973,7 @@ function Wh(n) {
|
|
|
9973
9973
|
});
|
|
9974
9974
|
}), jh(r);
|
|
9975
9975
|
}
|
|
9976
|
-
function
|
|
9976
|
+
function nr(n, e, t) {
|
|
9977
9977
|
const r = [];
|
|
9978
9978
|
return n === e ? t.resolve(n).marks().forEach((i) => {
|
|
9979
9979
|
const s = t.resolve(n - 1), o = Zi(s, i.type);
|
|
@@ -9992,7 +9992,7 @@ function tr(n, e, t) {
|
|
|
9992
9992
|
function Ei(n, e, t = {}) {
|
|
9993
9993
|
const { empty: r, ranges: i } = n.selection, s = e ? dt(e, n.schema) : null;
|
|
9994
9994
|
if (r)
|
|
9995
|
-
return !!(n.storedMarks || n.selection.$from.marks()).filter((d) => s ? s.name === d.type.name : !0).find((d) =>
|
|
9995
|
+
return !!(n.storedMarks || n.selection.$from.marks()).filter((d) => s ? s.name === d.type.name : !0).find((d) => er(d.attrs, t, { strict: !1 }));
|
|
9996
9996
|
let o = 0;
|
|
9997
9997
|
const l = [];
|
|
9998
9998
|
if (i.forEach(({ $from: d, $to: h }) => {
|
|
@@ -10009,17 +10009,17 @@ function Ei(n, e, t = {}) {
|
|
|
10009
10009
|
});
|
|
10010
10010
|
}), o === 0)
|
|
10011
10011
|
return !1;
|
|
10012
|
-
const a = l.filter((d) => s ? s.name === d.mark.type.name : !0).filter((d) =>
|
|
10012
|
+
const a = l.filter((d) => s ? s.name === d.mark.type.name : !0).filter((d) => er(d.mark.attrs, t, { strict: !1 })).reduce((d, h) => d + h.to - h.from, 0), u = l.filter((d) => s ? d.mark.type !== s && d.mark.type.excludes(s) : !0).reduce((d, h) => d + h.to - h.from, 0);
|
|
10013
10013
|
return (a > 0 ? a + u : a) >= o;
|
|
10014
10014
|
}
|
|
10015
10015
|
function qh(n, e, t = {}) {
|
|
10016
10016
|
if (!e)
|
|
10017
10017
|
return An(n, null, t) || Ei(n, null, t);
|
|
10018
|
-
const r =
|
|
10018
|
+
const r = Ir(e, n.schema);
|
|
10019
10019
|
return r === "node" ? An(n, e, t) : r === "mark" ? Ei(n, e, t) : !1;
|
|
10020
10020
|
}
|
|
10021
10021
|
function Co(n, e) {
|
|
10022
|
-
const { nodeExtensions: t } =
|
|
10022
|
+
const { nodeExtensions: t } = Fr(e), r = t.find((o) => o.name === n);
|
|
10023
10023
|
if (!r)
|
|
10024
10024
|
return !1;
|
|
10025
10025
|
const i = {
|
|
@@ -10268,7 +10268,7 @@ const nf = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
|
|
|
10268
10268
|
return t.removeStoredMark(a), !0;
|
|
10269
10269
|
}, hf = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
|
|
10270
10270
|
let s = null, o = null;
|
|
10271
|
-
const l =
|
|
10271
|
+
const l = Ir(typeof n == "string" ? n : n.name, r.schema);
|
|
10272
10272
|
return l ? (l === "node" && (s = Q(n, r.schema)), l === "mark" && (o = dt(n, r.schema)), i && t.selection.ranges.forEach((a) => {
|
|
10273
10273
|
const u = a.$from.pos, c = a.$to.pos;
|
|
10274
10274
|
r.doc.nodesBetween(u, c, (d, h) => {
|
|
@@ -10433,7 +10433,7 @@ const gf = Z.create({
|
|
|
10433
10433
|
"Ctrl-a": () => this.editor.commands.selectTextblockStart(),
|
|
10434
10434
|
"Ctrl-e": () => this.editor.commands.selectTextblockEnd()
|
|
10435
10435
|
};
|
|
10436
|
-
return
|
|
10436
|
+
return Lr() || ha() ? s : i;
|
|
10437
10437
|
},
|
|
10438
10438
|
addProseMirrorPlugins() {
|
|
10439
10439
|
return [
|
|
@@ -10450,10 +10450,10 @@ const gf = Z.create({
|
|
|
10450
10450
|
const { empty: i, from: s, to: o } = e.selection, l = E.atStart(e.doc).from, a = E.atEnd(e.doc).to, u = s === l && o === a, c = t.doc.textBetween(0, t.doc.content.size, " ", " ").length === 0;
|
|
10451
10451
|
if (i || !u || !c)
|
|
10452
10452
|
return;
|
|
10453
|
-
const d = t.tr, h =
|
|
10453
|
+
const d = t.tr, h = Or({
|
|
10454
10454
|
state: t,
|
|
10455
10455
|
transaction: d
|
|
10456
|
-
}), { commands: f } = new
|
|
10456
|
+
}), { commands: f } = new Nr({
|
|
10457
10457
|
editor: this.editor,
|
|
10458
10458
|
state: h
|
|
10459
10459
|
});
|
|
@@ -10688,7 +10688,7 @@ let Af = class extends _d {
|
|
|
10688
10688
|
* Creates an command manager.
|
|
10689
10689
|
*/
|
|
10690
10690
|
createCommandManager() {
|
|
10691
|
-
this.commandManager = new
|
|
10691
|
+
this.commandManager = new Nr({
|
|
10692
10692
|
editor: this
|
|
10693
10693
|
});
|
|
10694
10694
|
}
|
|
@@ -10836,7 +10836,7 @@ let Af = class extends _d {
|
|
|
10836
10836
|
}
|
|
10837
10837
|
};
|
|
10838
10838
|
function vt(n) {
|
|
10839
|
-
return new
|
|
10839
|
+
return new Br({
|
|
10840
10840
|
find: n.find,
|
|
10841
10841
|
handler: ({ state: e, range: t, match: r }) => {
|
|
10842
10842
|
const i = O(n.getAttributes, void 0, r);
|
|
@@ -10846,7 +10846,7 @@ function vt(n) {
|
|
|
10846
10846
|
let a = t.to;
|
|
10847
10847
|
if (o) {
|
|
10848
10848
|
const u = l.search(/\S/), c = t.from + l.indexOf(o), d = c + o.length;
|
|
10849
|
-
if (
|
|
10849
|
+
if (nr(t.from, t.to, e.doc).filter((f) => f.mark.type.excluded.find((m) => m === n.type && m !== f.mark.type)).filter((f) => f.to > c).length)
|
|
10850
10850
|
return null;
|
|
10851
10851
|
d < t.to && s.delete(d, t.to), c > t.from && s.delete(t.from + u, c), a = t.from + u + o.length, s.addMark(t.from + u, a, n.type.create(i || {})), s.removeStoredMark(n.type);
|
|
10852
10852
|
}
|
|
@@ -10854,7 +10854,7 @@ function vt(n) {
|
|
|
10854
10854
|
});
|
|
10855
10855
|
}
|
|
10856
10856
|
function ga(n) {
|
|
10857
|
-
return new
|
|
10857
|
+
return new Br({
|
|
10858
10858
|
find: n.find,
|
|
10859
10859
|
handler: ({ state: e, range: t, match: r }) => {
|
|
10860
10860
|
const i = O(n.getAttributes, void 0, r) || {}, { tr: s } = e, o = t.from;
|
|
@@ -10871,7 +10871,7 @@ function ga(n) {
|
|
|
10871
10871
|
});
|
|
10872
10872
|
}
|
|
10873
10873
|
function Mi(n) {
|
|
10874
|
-
return new
|
|
10874
|
+
return new Br({
|
|
10875
10875
|
find: n.find,
|
|
10876
10876
|
handler: ({ state: e, range: t, match: r }) => {
|
|
10877
10877
|
const i = e.doc.resolve(t.from), s = O(n.getAttributes, void 0, r) || {};
|
|
@@ -10882,7 +10882,7 @@ function Mi(n) {
|
|
|
10882
10882
|
});
|
|
10883
10883
|
}
|
|
10884
10884
|
function rs(n) {
|
|
10885
|
-
return new
|
|
10885
|
+
return new Br({
|
|
10886
10886
|
find: n.find,
|
|
10887
10887
|
handler: ({ state: e, range: t, match: r }) => {
|
|
10888
10888
|
const i = O(n.getAttributes, void 0, r) || {}, s = e.tr.delete(t.from, t.to), l = s.doc.resolve(t.from).blockRange(), a = l && zi(l, n.type, i);
|
|
@@ -10914,7 +10914,7 @@ class we {
|
|
|
10914
10914
|
}
|
|
10915
10915
|
configure(e = {}) {
|
|
10916
10916
|
const t = this.extend();
|
|
10917
|
-
return t.options =
|
|
10917
|
+
return t.options = Rr(this.options, e), t.storage = O(x(t, "addStorage", {
|
|
10918
10918
|
name: t.name,
|
|
10919
10919
|
options: t.options
|
|
10920
10920
|
})), t;
|
|
@@ -10960,7 +10960,7 @@ class q {
|
|
|
10960
10960
|
}
|
|
10961
10961
|
configure(e = {}) {
|
|
10962
10962
|
const t = this.extend();
|
|
10963
|
-
return t.options =
|
|
10963
|
+
return t.options = Rr(this.options, e), t.storage = O(x(t, "addStorage", {
|
|
10964
10964
|
name: t.name,
|
|
10965
10965
|
options: t.options
|
|
10966
10966
|
})), t;
|
|
@@ -11031,7 +11031,7 @@ class vf {
|
|
|
11031
11031
|
return !(a || s || d || h || f || p && c);
|
|
11032
11032
|
}
|
|
11033
11033
|
ignoreMutation(e) {
|
|
11034
|
-
return !this.dom || !this.contentDOM ? !0 : typeof this.options.ignoreMutation == "function" ? this.options.ignoreMutation({ mutation: e }) : this.node.isLeaf || this.node.isAtom ? !0 : e.type === "selection" || this.dom.contains(e.target) && e.type === "childList" &&
|
|
11034
|
+
return !this.dom || !this.contentDOM ? !0 : typeof this.options.ignoreMutation == "function" ? this.options.ignoreMutation({ mutation: e }) : this.node.isLeaf || this.node.isAtom ? !0 : e.type === "selection" || this.dom.contains(e.target) && e.type === "childList" && Lr() && this.editor.isFocused && [
|
|
11035
11035
|
...Array.from(e.addedNodes),
|
|
11036
11036
|
...Array.from(e.removedNodes)
|
|
11037
11037
|
].every((r) => r.isContentEditable) ? !1 : this.contentDOM === e.target && e.type === "attributes" ? !0 : !this.contentDOM.contains(e.target);
|
|
@@ -11061,7 +11061,7 @@ function at(n) {
|
|
|
11061
11061
|
let a = t.to;
|
|
11062
11062
|
if (o) {
|
|
11063
11063
|
const u = l.search(/\S/), c = t.from + l.indexOf(o), d = c + o.length;
|
|
11064
|
-
if (
|
|
11064
|
+
if (nr(t.from, t.to, e.doc).filter((f) => f.mark.type.excluded.find((m) => m === n.type && m !== f.mark.type)).filter((f) => f.to > c).length)
|
|
11065
11065
|
return null;
|
|
11066
11066
|
d < t.to && s.delete(d, t.to), c > t.from && s.delete(t.from + u, c), a = t.from + u + o.length, s.addMark(t.from + u, a, n.type.create(i || {})), s.removeStoredMark(n.type);
|
|
11067
11067
|
}
|
|
@@ -11225,7 +11225,7 @@ is.prototype = {
|
|
|
11225
11225
|
if (i)
|
|
11226
11226
|
return r && (i.t = r), i;
|
|
11227
11227
|
i = L();
|
|
11228
|
-
var s =
|
|
11228
|
+
var s = rr(this, e);
|
|
11229
11229
|
return s ? (Object.assign(i.j, s.j), i.jr.append(s.jr), i.jr = s.jd, i.t = r || s.t) : i.t = r, this.j[e] = i, i;
|
|
11230
11230
|
}
|
|
11231
11231
|
};
|
|
@@ -11237,7 +11237,7 @@ var L = function() {
|
|
|
11237
11237
|
e.j[t] || (e.j[t] = r);
|
|
11238
11238
|
}, G = function(e, t, r) {
|
|
11239
11239
|
e.jr.push([t, r]);
|
|
11240
|
-
},
|
|
11240
|
+
}, rr = function(e, t) {
|
|
11241
11241
|
var r = e.j[t];
|
|
11242
11242
|
if (r)
|
|
11243
11243
|
return r;
|
|
@@ -11263,7 +11263,7 @@ var L = function() {
|
|
|
11263
11263
|
for (; s < o - 1; )
|
|
11264
11264
|
l = i(), C(e, t[s], l), e = l, s++;
|
|
11265
11265
|
C(e, t[o - 1], r);
|
|
11266
|
-
}, Ae = "DOMAIN", je = "LOCALHOST", Fe = "TLD", be = "NUM", Yt = "PROTOCOL", ss = "MAILTO", ya = "WS", ls = "NL", Lt = "OPENBRACE", mn = "OPENBRACKET", gn = "OPENANGLEBRACKET", yn = "OPENPAREN", pt = "CLOSEBRACE", It = "CLOSEBRACKET", Pt = "CLOSEANGLEBRACKET", zt = "CLOSEPAREN",
|
|
11266
|
+
}, Ae = "DOMAIN", je = "LOCALHOST", Fe = "TLD", be = "NUM", Yt = "PROTOCOL", ss = "MAILTO", ya = "WS", ls = "NL", Lt = "OPENBRACE", mn = "OPENBRACKET", gn = "OPENANGLEBRACKET", yn = "OPENPAREN", pt = "CLOSEBRACE", It = "CLOSEBRACKET", Pt = "CLOSEANGLEBRACKET", zt = "CLOSEPAREN", ir = "AMPERSAND", sr = "APOSTROPHE", or = "ASTERISK", _t = "AT", lr = "BACKSLASH", ar = "BACKTICK", ur = "CARET", bn = "COLON", as = "COMMA", cr = "DOLLAR", Ye = "DOT", dr = "EQUALS", us = "EXCLAMATION", hr = "HYPHEN", fr = "PERCENT", pr = "PIPE", mr = "PLUS", gr = "POUND", yr = "QUERY", cs = "QUOTE", ds = "SEMI", We = "SLASH", br = "TILDE", Dr = "UNDERSCORE", Cr = "SYM", Bf = /* @__PURE__ */ Object.freeze({
|
|
11267
11267
|
__proto__: null,
|
|
11268
11268
|
DOMAIN: Ae,
|
|
11269
11269
|
LOCALHOST: je,
|
|
@@ -11281,31 +11281,31 @@ var L = function() {
|
|
|
11281
11281
|
CLOSEBRACKET: It,
|
|
11282
11282
|
CLOSEANGLEBRACKET: Pt,
|
|
11283
11283
|
CLOSEPAREN: zt,
|
|
11284
|
-
AMPERSAND:
|
|
11285
|
-
APOSTROPHE:
|
|
11286
|
-
ASTERISK:
|
|
11284
|
+
AMPERSAND: ir,
|
|
11285
|
+
APOSTROPHE: sr,
|
|
11286
|
+
ASTERISK: or,
|
|
11287
11287
|
AT: _t,
|
|
11288
|
-
BACKSLASH:
|
|
11289
|
-
BACKTICK:
|
|
11290
|
-
CARET:
|
|
11288
|
+
BACKSLASH: lr,
|
|
11289
|
+
BACKTICK: ar,
|
|
11290
|
+
CARET: ur,
|
|
11291
11291
|
COLON: bn,
|
|
11292
11292
|
COMMA: as,
|
|
11293
|
-
DOLLAR:
|
|
11293
|
+
DOLLAR: cr,
|
|
11294
11294
|
DOT: Ye,
|
|
11295
|
-
EQUALS:
|
|
11295
|
+
EQUALS: dr,
|
|
11296
11296
|
EXCLAMATION: us,
|
|
11297
|
-
HYPHEN:
|
|
11298
|
-
PERCENT:
|
|
11299
|
-
PIPE:
|
|
11300
|
-
PLUS:
|
|
11301
|
-
POUND:
|
|
11302
|
-
QUERY:
|
|
11297
|
+
HYPHEN: hr,
|
|
11298
|
+
PERCENT: fr,
|
|
11299
|
+
PIPE: pr,
|
|
11300
|
+
PLUS: mr,
|
|
11301
|
+
POUND: gr,
|
|
11302
|
+
QUERY: yr,
|
|
11303
11303
|
QUOTE: cs,
|
|
11304
11304
|
SEMI: ds,
|
|
11305
11305
|
SLASH: We,
|
|
11306
|
-
TILDE:
|
|
11307
|
-
UNDERSCORE:
|
|
11308
|
-
SYM:
|
|
11306
|
+
TILDE: br,
|
|
11307
|
+
UNDERSCORE: Dr,
|
|
11308
|
+
SYM: Cr
|
|
11309
11309
|
}), Ao = "aaa aarp abarth abb abbott abbvie abc able abogado abudhabi ac academy accenture accountant accountants aco actor ad adac ads adult ae aeg aero aetna af afamilycompany afl africa ag agakhan agency ai aig airbus airforce airtel akdn al alfaromeo alibaba alipay allfinanz allstate ally alsace alstom am amazon americanexpress americanfamily amex amfam amica amsterdam analytics android anquan anz ao aol apartments app apple aq aquarelle ar arab aramco archi army arpa art arte as asda asia associates at athleta attorney au auction audi audible audio auspost author auto autos avianca aw aws ax axa az azure ba baby baidu banamex bananarepublic band bank bar barcelona barclaycard barclays barefoot bargains baseball basketball bauhaus bayern bb bbc bbt bbva bcg bcn bd be beats beauty beer bentley berlin best bestbuy bet bf bg bh bharti bi bible bid bike bing bingo bio biz bj black blackfriday blockbuster blog bloomberg blue bm bms bmw bn bnpparibas bo boats boehringer bofa bom bond boo book booking bosch bostik boston bot boutique box br bradesco bridgestone broadway broker brother brussels bs bt budapest bugatti build builders business buy buzz bv bw by bz bzh ca cab cafe cal call calvinklein cam camera camp cancerresearch canon capetown capital capitalone car caravan cards care career careers cars casa case cash casino cat catering catholic cba cbn cbre cbs cc cd center ceo cern cf cfa cfd cg ch chanel channel charity chase chat cheap chintai christmas chrome church ci cipriani circle cisco citadel citi citic city cityeats ck cl claims cleaning click clinic clinique clothing cloud club clubmed cm cn co coach codes coffee college cologne com comcast commbank community company compare computer comsec condos construction consulting contact contractors cooking cookingchannel cool coop corsica country coupon coupons courses cpa cr credit creditcard creditunion cricket crown crs cruise cruises csc cu cuisinella cv cw cx cy cymru cyou cz dabur dad dance data date dating datsun day dclk dds de deal dealer deals degree delivery dell deloitte delta democrat dental dentist desi design dev dhl diamonds diet digital direct directory discount discover dish diy dj dk dm dnp do docs doctor dog domains dot download drive dtv dubai duck dunlop dupont durban dvag dvr dz earth eat ec eco edeka edu education ee eg email emerck energy engineer engineering enterprises epson equipment er ericsson erni es esq estate et etisalat eu eurovision eus events exchange expert exposed express extraspace fage fail fairwinds faith family fan fans farm farmers fashion fast fedex feedback ferrari ferrero fi fiat fidelity fido film final finance financial fire firestone firmdale fish fishing fit fitness fj fk flickr flights flir florist flowers fly fm fo foo food foodnetwork football ford forex forsale forum foundation fox fr free fresenius frl frogans frontdoor frontier ftr fujitsu fujixerox fun fund furniture futbol fyi ga gal gallery gallo gallup game games gap garden gay gb gbiz gd gdn ge gea gent genting george gf gg ggee gh gi gift gifts gives giving gl glade glass gle global globo gm gmail gmbh gmo gmx gn godaddy gold goldpoint golf goo goodyear goog google gop got gov gp gq gr grainger graphics gratis green gripe grocery group gs gt gu guardian gucci guge guide guitars guru gw gy hair hamburg hangout haus hbo hdfc hdfcbank health healthcare help helsinki here hermes hgtv hiphop hisamitsu hitachi hiv hk hkt hm hn hockey holdings holiday homedepot homegoods homes homesense honda horse hospital host hosting hot hoteles hotels hotmail house how hr hsbc ht hu hughes hyatt hyundai ibm icbc ice icu id ie ieee ifm ikano il im imamat imdb immo immobilien in inc industries infiniti info ing ink institute insurance insure int international intuit investments io ipiranga iq ir irish is ismaili ist istanbul it itau itv iveco jaguar java jcb je jeep jetzt jewelry jio jll jm jmp jnj jo jobs joburg jot joy jp jpmorgan jprs juegos juniper kaufen kddi ke kerryhotels kerrylogistics kerryproperties kfh kg kh ki kia kim kinder kindle kitchen kiwi km kn koeln komatsu kosher kp kpmg kpn kr krd kred kuokgroup kw ky kyoto kz la lacaixa lamborghini lamer lancaster lancia land landrover lanxess lasalle lat latino latrobe law lawyer lb lc lds lease leclerc lefrak legal lego lexus lgbt li lidl life lifeinsurance lifestyle lighting like lilly limited limo lincoln linde link lipsy live living lixil lk llc llp loan loans locker locus loft lol london lotte lotto love lpl lplfinancial lr ls lt ltd ltda lu lundbeck luxe luxury lv ly ma macys madrid maif maison makeup man management mango map market marketing markets marriott marshalls maserati mattel mba mc mckinsey md me med media meet melbourne meme memorial men menu merckmsd mg mh miami microsoft mil mini mint mit mitsubishi mk ml mlb mls mm mma mn mo mobi mobile moda moe moi mom monash money monster mormon mortgage moscow moto motorcycles mov movie mp mq mr ms msd mt mtn mtr mu museum mutual mv mw mx my mz na nab nagoya name nationwide natura navy nba nc ne nec net netbank netflix network neustar new news next nextdirect nexus nf nfl ng ngo nhk ni nico nike nikon ninja nissan nissay nl no nokia northwesternmutual norton now nowruz nowtv np nr nra nrw ntt nu nyc nz obi observer off office okinawa olayan olayangroup oldnavy ollo om omega one ong onl online onyourside ooo open oracle orange org organic origins osaka otsuka ott ovh pa page panasonic paris pars partners parts party passagens pay pccw pe pet pf pfizer pg ph pharmacy phd philips phone photo photography photos physio pics pictet pictures pid pin ping pink pioneer pizza pk pl place play playstation plumbing plus pm pn pnc pohl poker politie porn post pr pramerica praxi press prime pro prod productions prof progressive promo properties property protection pru prudential ps pt pub pw pwc py qa qpon quebec quest qvc racing radio raid re read realestate realtor realty recipes red redstone redumbrella rehab reise reisen reit reliance ren rent rentals repair report republican rest restaurant review reviews rexroth rich richardli ricoh ril rio rip rmit ro rocher rocks rodeo rogers room rs rsvp ru rugby ruhr run rw rwe ryukyu sa saarland safe safety sakura sale salon samsclub samsung sandvik sandvikcoromant sanofi sap sarl sas save saxo sb sbi sbs sc sca scb schaeffler schmidt scholarships school schule schwarz science scjohnson scot sd se search seat secure security seek select sener services ses seven sew sex sexy sfr sg sh shangrila sharp shaw shell shia shiksha shoes shop shopping shouji show showtime si silk sina singles site sj sk ski skin sky skype sl sling sm smart smile sn sncf so soccer social softbank software sohu solar solutions song sony soy spa space sport spot spreadbetting sr srl ss st stada staples star statebank statefarm stc stcgroup stockholm storage store stream studio study style su sucks supplies supply support surf surgery suzuki sv swatch swiftcover swiss sx sy sydney systems sz tab taipei talk taobao target tatamotors tatar tattoo tax taxi tc tci td tdk team tech technology tel temasek tennis teva tf tg th thd theater theatre tiaa tickets tienda tiffany tips tires tirol tj tjmaxx tjx tk tkmaxx tl tm tmall tn to today tokyo tools top toray toshiba total tours town toyota toys tr trade trading training travel travelchannel travelers travelersinsurance trust trv tt tube tui tunes tushu tv tvs tw tz ua ubank ubs ug uk unicom university uno uol ups us uy uz va vacations vana vanguard vc ve vegas ventures verisign versicherung vet vg vi viajes video vig viking villas vin vip virgin visa vision viva vivo vlaanderen vn vodka volkswagen volvo vote voting voto voyage vu vuelos wales walmart walter wang wanggou watch watches weather weatherchannel webcam weber website wed wedding weibo weir wf whoswho wien wiki williamhill win windows wine winners wme wolterskluwer woodside work works world wow ws wtc wtf xbox xerox xfinity xihuan xin xxx xyz yachts yahoo yamaxun yandex ye yodobashi yoga yokohama you youtube yt yun za zappos zara zero zip zm zone zuerich zw vermögensberater-ctb vermögensberatung-pwb ελ ευ бг бел дети ею католик ком қаз мкд мон москва онлайн орг рус рф сайт срб укр გე հայ ישראל קום ابوظبي اتصالات ارامكو الاردن البحرين الجزائر السعودية العليان المغرب امارات ایران بارت بازار بھارت بيتك پاکستان ڀارت تونس سودان سورية شبكة عراق عرب عمان فلسطين قطر كاثوليك كوم مصر مليسيا موريتانيا موقع همراه कॉम नेट भारत भारतम् भारोत संगठन বাংলা ভারত ভাৰত ਭਾਰਤ ભારત ଭାରତ இந்தியா இலங்கை சிங்கப்பூர் భారత్ ಭಾರತ ഭാരതം ලංකා คอม ไทย ລາວ 닷넷 닷컴 삼성 한국 アマゾン グーグル クラウド コム ストア セール ファッション ポイント みんな 世界 中信 中国 中國 中文网 亚马逊 企业 佛山 信息 健康 八卦 公司 公益 台湾 台灣 商城 商店 商标 嘉里 嘉里大酒店 在线 大众汽车 大拿 天主教 娱乐 家電 广东 微博 慈善 我爱你 手机 招聘 政务 政府 新加坡 新闻 时尚 書籍 机构 淡马锡 游戏 澳門 点看 移动 组织机构 网址 网店 网站 网络 联通 诺基亚 谷歌 购物 通販 集团 電訊盈科 飞利浦 食品 餐厅 香格里拉 香港".split(" "), rn = /(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/, sn = /(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEDD-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDDFF\uDE70-\uDE74\uDE78-\uDE7C\uDE80-\uDE86\uDE90-\uDEAC\uDEB0-\uDEBA\uDEC0-\uDEC5\uDED0-\uDED9\uDEE0-\uDEE7\uDEF0-\uDEF6])/, on = /\uFE0F/, ln = /\d/, vo = /\s/;
|
|
11310
11310
|
function Rf() {
|
|
11311
11311
|
var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = L(), t = v(be), r = v(Ae), i = L(), s = v(ya), o = [[ln, r], [rn, r], [sn, r], [on, r]], l = function() {
|
|
@@ -11317,7 +11317,7 @@ function Rf() {
|
|
|
11317
11317
|
var T = l();
|
|
11318
11318
|
return T.t = N, T;
|
|
11319
11319
|
};
|
|
11320
|
-
Ff(e, [["'", v(
|
|
11320
|
+
Ff(e, [["'", v(sr)], ["{", v(Lt)], ["[", v(mn)], ["<", v(gn)], ["(", v(yn)], ["}", v(pt)], ["]", v(It)], [">", v(Pt)], [")", v(zt)], ["&", v(ir)], ["*", v(or)], ["@", v(_t)], ["`", v(ar)], ["^", v(ur)], [":", v(bn)], [",", v(as)], ["$", v(cr)], [".", v(Ye)], ["=", v(dr)], ["!", v(us)], ["-", v(hr)], ["%", v(fr)], ["|", v(pr)], ["+", v(mr)], ["#", v(gr)], ["?", v(yr)], ['"', v(cs)], ["/", v(We)], [";", v(ds)], ["~", v(br)], ["_", v(Dr)], ["\\", v(lr)]]), C(e, `
|
|
11321
11321
|
`, v(ls)), G(e, vo, s), C(s, `
|
|
11322
11322
|
`, L()), G(s, vo, s);
|
|
11323
11323
|
for (var u = 0; u < Ao.length; u++)
|
|
@@ -11328,13 +11328,13 @@ function Rf() {
|
|
|
11328
11328
|
C(d, "s", p), C(d, ":", m), C(h, "s", p), C(h, ":", m), C(c, ":", m), C(p, ":", m), C(f, ":", g);
|
|
11329
11329
|
for (var y = l(), D = 0; D < n.length; D++)
|
|
11330
11330
|
ht(e, n[D], y, l);
|
|
11331
|
-
return C(y, ":", m), ht(e, "localhost", a(je), l), G(e, ln, t), G(e, rn, r), G(e, sn, r), G(e, on, r), G(t, ln, t), G(t, rn, r), G(t, sn, r), G(t, on, r), C(t, "-", i), C(r, "-", i), C(i, "-", i), G(r, ln, r), G(r, rn, r), G(r, sn, r), G(r, on, r), G(i, ln, r), G(i, rn, r), G(i, sn, r), G(i, on, r), e.jd = v(
|
|
11331
|
+
return C(y, ":", m), ht(e, "localhost", a(je), l), G(e, ln, t), G(e, rn, r), G(e, sn, r), G(e, on, r), G(t, ln, t), G(t, rn, r), G(t, sn, r), G(t, on, r), C(t, "-", i), C(r, "-", i), C(i, "-", i), G(r, ln, r), G(r, rn, r), G(r, sn, r), G(r, on, r), G(i, ln, r), G(i, rn, r), G(i, sn, r), G(i, on, r), e.jd = v(Cr), e;
|
|
11332
11332
|
}
|
|
11333
11333
|
function Lf(n, e) {
|
|
11334
11334
|
for (var t = If(e.replace(/[A-Z]/g, function(f) {
|
|
11335
11335
|
return f.toLowerCase();
|
|
11336
11336
|
})), r = t.length, i = [], s = 0, o = 0; o < r; ) {
|
|
11337
|
-
for (var l = n, a = null, u = 0, c = null, d = -1, h = -1; o < r && (a =
|
|
11337
|
+
for (var l = n, a = null, u = 0, c = null, d = -1, h = -1; o < r && (a = rr(l, t[o])); )
|
|
11338
11338
|
l = a, l.accepts() ? (d = 0, h = 0, c = l) : d >= 0 && (d += t[o].length, h++), u += t[o].length, s += t[o].length, o++;
|
|
11339
11339
|
s -= d, o -= h, u -= d, i.push({
|
|
11340
11340
|
t: c.t,
|
|
@@ -11444,9 +11444,9 @@ function zf(n, e) {
|
|
|
11444
11444
|
r[i] = t[i];
|
|
11445
11445
|
return r.constructor = e, e.prototype = r, e;
|
|
11446
11446
|
}
|
|
11447
|
-
function
|
|
11447
|
+
function kr() {
|
|
11448
11448
|
}
|
|
11449
|
-
|
|
11449
|
+
kr.prototype = {
|
|
11450
11450
|
/**
|
|
11451
11451
|
String representing the type for this token
|
|
11452
11452
|
@property t
|
|
@@ -11516,7 +11516,7 @@ function Et(n, e) {
|
|
|
11516
11516
|
function t(r, i) {
|
|
11517
11517
|
this.t = n, this.v = r, this.tk = i;
|
|
11518
11518
|
}
|
|
11519
|
-
return zf(
|
|
11519
|
+
return zf(kr, t, e), t;
|
|
11520
11520
|
}
|
|
11521
11521
|
var ba = Et("email", {
|
|
11522
11522
|
isLink: !0
|
|
@@ -11549,8 +11549,8 @@ var ba = Et("email", {
|
|
|
11549
11549
|
}
|
|
11550
11550
|
}), _f = /* @__PURE__ */ Object.freeze({
|
|
11551
11551
|
__proto__: null,
|
|
11552
|
-
MultiToken:
|
|
11553
|
-
Base:
|
|
11552
|
+
MultiToken: kr,
|
|
11553
|
+
Base: kr,
|
|
11554
11554
|
createTokenClass: Et,
|
|
11555
11555
|
MailtoEmail: ba,
|
|
11556
11556
|
Email: Ti,
|
|
@@ -11561,29 +11561,29 @@ var ba = Et("email", {
|
|
|
11561
11561
|
function $f() {
|
|
11562
11562
|
var n = L(), e = L(), t = L(), r = L(), i = L(), s = L(), o = L(), l = v(Ge), a = L(), u = v(Ge), c = v(Ge), d = L(), h = L(), f = L(), p = L(), m = L(), g = v(Ge), y = v(Ge), D = v(Ge), A = v(Ge), N = L(), T = L(), I = L(), R = L(), w = L(), z = L(), de = v(Ti), tn = L(), En = v(Ti), Oe = v(ba), Ne = L(), me = L(), xe = L(), $e = L(), Mn = v(Da);
|
|
11563
11563
|
C(n, ls, Mn), C(n, Yt, e), C(n, ss, t), C(e, We, r), C(r, We, i), C(n, Fe, s), C(n, Ae, s), C(n, je, l), C(n, be, s), C(i, Fe, c), C(i, Ae, c), C(i, be, c), C(i, je, c), C(s, Ye, o), C(w, Ye, z), C(o, Fe, l), C(o, Ae, s), C(o, be, s), C(o, je, s), C(z, Fe, de), C(z, Ae, w), C(z, be, w), C(z, je, w), C(l, Ye, o), C(de, Ye, z), C(l, bn, a), C(l, We, c), C(a, be, u), C(u, We, c), C(de, bn, tn), C(tn, be, En);
|
|
11564
|
-
var H = [
|
|
11564
|
+
var H = [ir, or, _t, lr, ar, ur, cr, Ae, dr, hr, je, be, fr, pr, mr, gr, Yt, We, Cr, br, Fe, Dr], J = [sr, Pt, pt, It, zt, bn, as, Ye, us, gn, Lt, mn, yn, yr, cs, ds];
|
|
11565
11565
|
C(c, Lt, h), C(c, mn, f), C(c, gn, p), C(c, yn, m), C(d, Lt, h), C(d, mn, f), C(d, gn, p), C(d, yn, m), C(h, pt, c), C(f, It, c), C(p, Pt, c), C(m, zt, c), C(g, pt, c), C(y, It, c), C(D, Pt, c), C(A, zt, c), C(N, pt, c), C(T, It, c), C(I, Pt, c), C(R, zt, c), F(h, H, g), F(f, H, y), F(p, H, D), F(m, H, A), F(h, J, N), F(f, J, T), F(p, J, I), F(m, J, R), F(g, H, g), F(y, H, y), F(D, H, D), F(A, H, A), F(g, J, g), F(y, J, y), F(D, J, D), F(A, J, A), F(N, H, g), F(T, H, y), F(I, H, D), F(R, H, A), F(N, J, N), F(T, J, T), F(I, J, I), F(R, J, R), F(c, H, c), F(d, H, c), F(c, J, d), F(d, J, d), C(t, Fe, Oe), C(t, Ae, Oe), C(t, be, Oe), C(t, je, Oe), F(Oe, H, Oe), F(Oe, J, Ne), F(Ne, H, Oe), F(Ne, J, Ne);
|
|
11566
|
-
var He = [
|
|
11566
|
+
var He = [ir, sr, or, lr, ar, ur, pt, cr, Ae, dr, hr, be, Lt, fr, pr, mr, gr, yr, We, Cr, br, Fe, Dr];
|
|
11567
11567
|
return F(s, He, me), C(s, _t, xe), F(l, He, me), C(l, _t, xe), F(o, He, me), F(me, He, me), C(me, _t, xe), C(me, Ye, $e), F($e, He, me), C(xe, Fe, w), C(xe, Ae, w), C(xe, be, w), C(xe, je, de), n;
|
|
11568
11568
|
}
|
|
11569
11569
|
function Hf(n, e, t) {
|
|
11570
11570
|
for (var r = t.length, i = 0, s = [], o = []; i < r; ) {
|
|
11571
|
-
for (var l = n, a = null, u = null, c = 0, d = null, h = -1; i < r && !(a =
|
|
11571
|
+
for (var l = n, a = null, u = null, c = 0, d = null, h = -1; i < r && !(a = rr(l, t[i].t)); )
|
|
11572
11572
|
o.push(t[i++]);
|
|
11573
|
-
for (; i < r && (u = a ||
|
|
11573
|
+
for (; i < r && (u = a || rr(l, t[i].t)); )
|
|
11574
11574
|
a = null, l = u, l.accepts() ? (h = 0, d = l) : h >= 0 && h++, i++, c++;
|
|
11575
11575
|
if (h < 0)
|
|
11576
11576
|
for (var f = i - c; f < i; f++)
|
|
11577
11577
|
o.push(t[f]);
|
|
11578
11578
|
else {
|
|
11579
|
-
o.length > 0 && (s.push(
|
|
11579
|
+
o.length > 0 && (s.push(si(Oi, e, o)), o = []), i -= h, c -= h;
|
|
11580
11580
|
var p = d.t, m = t.slice(i - c, i);
|
|
11581
|
-
s.push(
|
|
11581
|
+
s.push(si(p, e, m));
|
|
11582
11582
|
}
|
|
11583
11583
|
}
|
|
11584
|
-
return o.length > 0 && s.push(
|
|
11584
|
+
return o.length > 0 && s.push(si(Oi, e, o)), s;
|
|
11585
11585
|
}
|
|
11586
|
-
function
|
|
11586
|
+
function si(n, e, t) {
|
|
11587
11587
|
var r = t[0].s, i = t[t.length - 1].e, s = e.substr(r, i - r);
|
|
11588
11588
|
return new n(s, t);
|
|
11589
11589
|
}
|
|
@@ -11641,8 +11641,8 @@ function qf(n) {
|
|
|
11641
11641
|
return;
|
|
11642
11642
|
const { tr: o } = r, l = Ih(t.doc, [...e]), { mapping: a } = l;
|
|
11643
11643
|
if (Wh(l).forEach(({ oldRange: c, newRange: d }) => {
|
|
11644
|
-
|
|
11645
|
-
const g = a.map(m.from), y = a.map(m.to), D =
|
|
11644
|
+
nr(c.from, c.to, t.doc).filter((m) => m.mark.type === n.type).forEach((m) => {
|
|
11645
|
+
const g = a.map(m.from), y = a.map(m.to), D = nr(g, y, r.doc).filter((w) => w.mark.type === n.type);
|
|
11646
11646
|
if (!D.length)
|
|
11647
11647
|
return;
|
|
11648
11648
|
const A = D[0], N = t.doc.textBetween(m.from, m.to, void 0, " "), T = r.doc.textBetween(A.from, A.to, void 0, " "), I = Eo(N), R = Eo(T);
|
|
@@ -12732,10 +12732,10 @@ const Ep = Z.create({
|
|
|
12732
12732
|
}));
|
|
12733
12733
|
}
|
|
12734
12734
|
});
|
|
12735
|
-
var
|
|
12735
|
+
var wr = 200, ne = function() {
|
|
12736
12736
|
};
|
|
12737
12737
|
ne.prototype.append = function(e) {
|
|
12738
|
-
return e.length ? (e = ne.from(e), !this.length && e || e.length <
|
|
12738
|
+
return e.length ? (e = ne.from(e), !this.length && e || e.length < wr && this.leafAppend(e) || this.length < wr && e.leafPrepend(this) || this.appendInner(e)) : this;
|
|
12739
12739
|
};
|
|
12740
12740
|
ne.prototype.prepend = function(e) {
|
|
12741
12741
|
return e.length ? ne.from(e).append(this) : this;
|
|
@@ -12784,10 +12784,10 @@ var wa = /* @__PURE__ */ function(n) {
|
|
|
12784
12784
|
if (i(this.values[a], l + a) === !1)
|
|
12785
12785
|
return !1;
|
|
12786
12786
|
}, e.prototype.leafAppend = function(i) {
|
|
12787
|
-
if (this.length + i.length <=
|
|
12787
|
+
if (this.length + i.length <= wr)
|
|
12788
12788
|
return new e(this.values.concat(i.flatten()));
|
|
12789
12789
|
}, e.prototype.leafPrepend = function(i) {
|
|
12790
|
-
if (this.length + i.length <=
|
|
12790
|
+
if (this.length + i.length <= wr)
|
|
12791
12791
|
return new e(i.flatten().concat(this.values));
|
|
12792
12792
|
}, t.length.get = function() {
|
|
12793
12793
|
return this.values.length;
|
|
@@ -12980,10 +12980,10 @@ function Rp(n, e, t, r) {
|
|
|
12980
12980
|
if (o && o.getMeta(st))
|
|
12981
12981
|
return o.getMeta(st).redo ? new Xe(n.done.addTransform(t, void 0, r, $n(e)), n.undone, Mo(t.mapping.maps[t.steps.length - 1]), n.prevTime) : new Xe(n.done, n.undone.addTransform(t, void 0, r, $n(e)), null, n.prevTime);
|
|
12982
12982
|
if (t.getMeta("addToHistory") !== !1 && !(o && o.getMeta("addToHistory") === !1)) {
|
|
12983
|
-
let l = n.prevTime == 0 || !o && (n.prevTime < (t.time || 0) - r.newGroupDelay || !Lp(t, n.prevRanges)), a = o ?
|
|
12983
|
+
let l = n.prevTime == 0 || !o && (n.prevTime < (t.time || 0) - r.newGroupDelay || !Lp(t, n.prevRanges)), a = o ? oi(n.prevRanges, t.mapping) : Mo(t.mapping.maps[t.steps.length - 1]);
|
|
12984
12984
|
return new Xe(n.done.addTransform(t, l ? e.selection.getBookmark() : void 0, r, $n(e)), ve.empty, a, t.time);
|
|
12985
12985
|
} else
|
|
12986
|
-
return (s = t.getMeta("rebased")) ? new Xe(n.done.rebased(t, s), n.undone.rebased(t, s),
|
|
12986
|
+
return (s = t.getMeta("rebased")) ? new Xe(n.done.rebased(t, s), n.undone.rebased(t, s), oi(n.prevRanges, t.mapping), n.prevTime) : new Xe(n.done.addMaps(t.mapping.maps), n.undone.addMaps(t.mapping.maps), oi(n.prevRanges, t.mapping), n.prevTime);
|
|
12987
12987
|
}
|
|
12988
12988
|
function Lp(n, e) {
|
|
12989
12989
|
if (!e)
|
|
@@ -13000,7 +13000,7 @@ function Mo(n) {
|
|
|
13000
13000
|
let e = [];
|
|
13001
13001
|
return n.forEach((t, r, i, s) => e.push(i, s)), e;
|
|
13002
13002
|
}
|
|
13003
|
-
function
|
|
13003
|
+
function oi(n, e) {
|
|
13004
13004
|
if (!n)
|
|
13005
13005
|
return null;
|
|
13006
13006
|
let t = [];
|
|
@@ -13017,18 +13017,18 @@ function Aa(n, e, t, r) {
|
|
|
13017
13017
|
let l = o.selection.resolve(o.transform.doc), a = (r ? n.done : n.undone).addTransform(o.transform, e.selection.getBookmark(), s, i), u = new Xe(r ? a : o.remaining, r ? o.remaining : a, null, 0);
|
|
13018
13018
|
t(o.transform.setSelection(l).setMeta(st, { redo: r, historyState: u }).scrollIntoView());
|
|
13019
13019
|
}
|
|
13020
|
-
let
|
|
13020
|
+
let li = !1, To = null;
|
|
13021
13021
|
function $n(n) {
|
|
13022
13022
|
let e = n.plugins;
|
|
13023
13023
|
if (To != e) {
|
|
13024
|
-
|
|
13024
|
+
li = !1, To = e;
|
|
13025
13025
|
for (let t = 0; t < e.length; t++)
|
|
13026
13026
|
if (e[t].spec.historyPreserveItems) {
|
|
13027
|
-
|
|
13027
|
+
li = !0;
|
|
13028
13028
|
break;
|
|
13029
13029
|
}
|
|
13030
13030
|
}
|
|
13031
|
-
return
|
|
13031
|
+
return li;
|
|
13032
13032
|
}
|
|
13033
13033
|
const st = new K("history"), Ip = new K("closeHistory");
|
|
13034
13034
|
function Pp(n = {}) {
|
|
@@ -13959,7 +13959,7 @@ var bm = function() {
|
|
|
13959
13959
|
const km = Cm.exports, wm = {
|
|
13960
13960
|
components: {
|
|
13961
13961
|
FormInputRow: Ha,
|
|
13962
|
-
TextTemplates: () => import("./index-
|
|
13962
|
+
TextTemplates: () => import("./index-BBJIOkm_.js")
|
|
13963
13963
|
},
|
|
13964
13964
|
mixins: [ja],
|
|
13965
13965
|
props: {
|
|
@@ -14622,34 +14622,45 @@ function Im(n = null) {
|
|
|
14622
14622
|
const t = typeof n == "function" ? n : () => [];
|
|
14623
14623
|
return {
|
|
14624
14624
|
render: () => {
|
|
14625
|
-
let r, i;
|
|
14625
|
+
let r, i, s;
|
|
14626
14626
|
return {
|
|
14627
|
-
onStart: (
|
|
14628
|
-
e = t(),
|
|
14629
|
-
const { el:
|
|
14627
|
+
onStart: (o) => {
|
|
14628
|
+
e = t(), o.items = No(o.query, e);
|
|
14629
|
+
const { el: l, isShadow: a } = jn(this.$el), u = a ? l : l.body, c = a ? l : document;
|
|
14630
14630
|
r = new Ma(Lm, {
|
|
14631
14631
|
parent: this,
|
|
14632
|
-
propsData:
|
|
14632
|
+
propsData: o
|
|
14633
14633
|
}), i = Uo("body", {
|
|
14634
|
-
getReferenceClientRect:
|
|
14635
|
-
appendTo:
|
|
14634
|
+
getReferenceClientRect: o.clientRect,
|
|
14635
|
+
appendTo: u,
|
|
14636
14636
|
content: r.element,
|
|
14637
14637
|
showOnCreate: !0,
|
|
14638
14638
|
interactive: !0,
|
|
14639
14639
|
trigger: "manual",
|
|
14640
14640
|
placement: "bottom-start",
|
|
14641
14641
|
// 'top-start'
|
|
14642
|
-
plugins: [Va]
|
|
14643
|
-
|
|
14642
|
+
plugins: [Va],
|
|
14643
|
+
onHidden: () => {
|
|
14644
|
+
r.destroy(), s && c.removeEventListener(
|
|
14645
|
+
"touchstart",
|
|
14646
|
+
s
|
|
14647
|
+
);
|
|
14648
|
+
}
|
|
14649
|
+
}), s = (d) => {
|
|
14650
|
+
i[0].popper.contains(d.target) || i[0].hide();
|
|
14651
|
+
}, c.addEventListener("touchstart", s);
|
|
14644
14652
|
},
|
|
14645
|
-
onUpdate(
|
|
14646
|
-
|
|
14653
|
+
onUpdate(o) {
|
|
14654
|
+
o.items = No(o.query, e), r.updateProps(o), i[0].setProps({ getReferenceClientRect: o.clientRect });
|
|
14647
14655
|
},
|
|
14648
|
-
onKeyDown(
|
|
14649
|
-
return
|
|
14656
|
+
onKeyDown(o) {
|
|
14657
|
+
return o.event.key === "Escape" ? (i[0].hide(), !0) : r.ref.onKeyDown(o);
|
|
14650
14658
|
},
|
|
14651
14659
|
onExit() {
|
|
14652
|
-
i[0].destroy(), r.destroy()
|
|
14660
|
+
if (i[0].destroy(), r.destroy(), s) {
|
|
14661
|
+
const { el: o, isShadow: l } = jn(this.$el);
|
|
14662
|
+
(l ? o : document).removeEventListener("touchstart", s);
|
|
14663
|
+
}
|
|
14653
14664
|
}
|
|
14654
14665
|
};
|
|
14655
14666
|
}
|
|
@@ -14849,7 +14860,7 @@ const zm = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, _m = q.cr
|
|
|
14849
14860
|
},
|
|
14850
14861
|
async openPreview() {
|
|
14851
14862
|
var r;
|
|
14852
|
-
const n = () => import("./FilePreviewModal-
|
|
14863
|
+
const n = () => import("./FilePreviewModal-T8AiphqO.js"), { src: e, title: t } = ((r = this.node) == null ? void 0 : r.attrs) || {};
|
|
14853
14864
|
this.$modal.show(
|
|
14854
14865
|
n,
|
|
14855
14866
|
{
|
|
@@ -15238,7 +15249,7 @@ function Te(n) {
|
|
|
15238
15249
|
return !0;
|
|
15239
15250
|
return !1;
|
|
15240
15251
|
}
|
|
15241
|
-
function
|
|
15252
|
+
function Pr(n) {
|
|
15242
15253
|
let e = n.selection;
|
|
15243
15254
|
return e.$anchorCell ? e.$anchorCell.pos > e.$headCell.pos ? e.$anchorCell : e.$headCell : e.node && e.node.type.spec.tableRole == "cell" ? e.$anchor : en(e.$head) || Xm(e.$head);
|
|
15244
15255
|
}
|
|
@@ -15733,7 +15744,7 @@ function cg(n, e, t) {
|
|
|
15733
15744
|
let s = i.$anchorCell.node(-1), o = i.$anchorCell.start(-1), l = j.get(s).rectBetween(i.$anchorCell.pos - o, i.$headCell.pos - o);
|
|
15734
15745
|
return r = og(r, l.right - l.left, l.bottom - l.top), Ro(n.state, n.dispatch, o, l, r), !0;
|
|
15735
15746
|
} else if (r) {
|
|
15736
|
-
let s =
|
|
15747
|
+
let s = Pr(n.state), o = s.start(-1);
|
|
15737
15748
|
return Ro(n.state, n.dispatch, o, j.get(s.node(-1)).findCell(s.pos - o), r), !0;
|
|
15738
15749
|
} else
|
|
15739
15750
|
return !1;
|
|
@@ -15744,12 +15755,12 @@ function dg(n, e) {
|
|
|
15744
15755
|
let t = Lo(n, e.target), r;
|
|
15745
15756
|
if (e.shiftKey && n.state.selection instanceof B)
|
|
15746
15757
|
i(n.state.selection.$anchorCell, e), e.preventDefault();
|
|
15747
|
-
else if (e.shiftKey && t && (r = en(n.state.selection.$anchor)) != null &&
|
|
15758
|
+
else if (e.shiftKey && t && (r = en(n.state.selection.$anchor)) != null && ai(n, e).pos != r.pos)
|
|
15748
15759
|
i(r, e), e.preventDefault();
|
|
15749
15760
|
else if (!t)
|
|
15750
15761
|
return;
|
|
15751
15762
|
function i(l, a) {
|
|
15752
|
-
let u =
|
|
15763
|
+
let u = ai(n, a), c = Ze.getState(n.state) == null;
|
|
15753
15764
|
if (!u || !ps(l, u))
|
|
15754
15765
|
if (c)
|
|
15755
15766
|
u = l;
|
|
@@ -15768,7 +15779,7 @@ function dg(n, e) {
|
|
|
15768
15779
|
let a = Ze.getState(n.state), u;
|
|
15769
15780
|
if (a != null)
|
|
15770
15781
|
u = n.state.doc.resolve(a);
|
|
15771
|
-
else if (Lo(n, l.target) != t && (u =
|
|
15782
|
+
else if (Lo(n, l.target) != t && (u = ai(n, e), !u))
|
|
15772
15783
|
return s();
|
|
15773
15784
|
u && i(u, l);
|
|
15774
15785
|
}
|
|
@@ -15796,7 +15807,7 @@ function Lo(n, e) {
|
|
|
15796
15807
|
if (e.nodeName == "TD" || e.nodeName == "TH")
|
|
15797
15808
|
return e;
|
|
15798
15809
|
}
|
|
15799
|
-
function
|
|
15810
|
+
function ai(n, e) {
|
|
15800
15811
|
let t = n.posAtCoords({
|
|
15801
15812
|
left: e.clientX,
|
|
15802
15813
|
top: e.clientY
|
|
@@ -15869,7 +15880,7 @@ function fg(n, e, t, r) {
|
|
|
15869
15880
|
});
|
|
15870
15881
|
}
|
|
15871
15882
|
function _e(n) {
|
|
15872
|
-
let e = n.selection, t =
|
|
15883
|
+
let e = n.selection, t = Pr(n), r = t.node(-1), i = t.start(-1), s = j.get(r), o;
|
|
15873
15884
|
return e instanceof B ? o = s.rectBetween(e.$anchorCell.pos - i, e.$headCell.pos - i) : o = s.findCell(t.pos - i), o.tableStart = i, o.map = s, o.table = r, o;
|
|
15874
15885
|
}
|
|
15875
15886
|
function La(n, {
|
|
@@ -16121,7 +16132,7 @@ function vg(n, e) {
|
|
|
16121
16132
|
return function(t, r) {
|
|
16122
16133
|
if (!Te(t))
|
|
16123
16134
|
return !1;
|
|
16124
|
-
let i =
|
|
16135
|
+
let i = Pr(t);
|
|
16125
16136
|
if (i.nodeAfter.attrs[n] === e)
|
|
16126
16137
|
return !1;
|
|
16127
16138
|
if (r) {
|
|
@@ -16215,7 +16226,7 @@ function $o(n) {
|
|
|
16215
16226
|
return function(e, t) {
|
|
16216
16227
|
if (!Te(e))
|
|
16217
16228
|
return !1;
|
|
16218
|
-
let r = Mg(
|
|
16229
|
+
let r = Mg(Pr(e), n);
|
|
16219
16230
|
if (r != null) {
|
|
16220
16231
|
if (t) {
|
|
16221
16232
|
let i = e.doc.resolve(r);
|
|
@@ -16680,7 +16691,7 @@ function Ii(n, e, t, r, i, s) {
|
|
|
16680
16691
|
}
|
|
16681
16692
|
l ? (t.style.width = `${o}px`, t.style.minWidth = "") : (t.style.width = "", t.style.minWidth = `${o}px`), t.style.setProperty("--borderWidth", n.attrs.borderWidth), t.style.setProperty("--borderColor", n.attrs.borderColor), t.style.setProperty("--cellPadding", n.attrs.cellPadding), t.style.setProperty("--headerBackground", n.attrs.headerBackground);
|
|
16682
16693
|
}
|
|
16683
|
-
class
|
|
16694
|
+
class xr {
|
|
16684
16695
|
constructor(e, t) {
|
|
16685
16696
|
this.node = e, this.cellMinWidth = t, this.dom = document.createElement("div"), this.dom.className = "tableWrapper", Object.keys(this.node.attrs).forEach((r) => {
|
|
16686
16697
|
this.dom.dataset[r] = this.node.attrs[r];
|
|
@@ -16740,12 +16751,12 @@ const gs = Kg.extend({
|
|
|
16740
16751
|
}
|
|
16741
16752
|
}), Ug = gs.configure({
|
|
16742
16753
|
resizable: !0,
|
|
16743
|
-
View:
|
|
16754
|
+
View: xr
|
|
16744
16755
|
}), Jg = za.configure({
|
|
16745
16756
|
resizable: !0,
|
|
16746
|
-
View:
|
|
16757
|
+
View: xr
|
|
16747
16758
|
});
|
|
16748
|
-
gs.configure({ resizable: !0, View:
|
|
16759
|
+
gs.configure({ resizable: !0, View: xr }), za.configure({ resizable: !0, View: xr });
|
|
16749
16760
|
function qo({ types: n, node: e }) {
|
|
16750
16761
|
return Array.isArray(n) && n.includes(e.type) || e.type === n;
|
|
16751
16762
|
}
|
|
@@ -17010,7 +17021,7 @@ const Gg = Z.create({
|
|
|
17010
17021
|
// TODO: Handling create/destroy of tippy instances etc
|
|
17011
17022
|
createTooltips() {
|
|
17012
17023
|
var i;
|
|
17013
|
-
const { el: n, isShadow: e } =
|
|
17024
|
+
const { el: n, isShadow: e } = jn((i = this.$root) == null ? void 0 : i.$el), t = e ? n : n.body, r = e ? this.$el : `.uid-${this._uid}`;
|
|
17014
17025
|
this.dynamicTooltips = Ds(r, {
|
|
17015
17026
|
target: "span[data-tooltip]",
|
|
17016
17027
|
appendTo: t,
|
|
@@ -17033,7 +17044,7 @@ const Gg = Z.create({
|
|
|
17033
17044
|
},
|
|
17034
17045
|
createGeneralTooltip() {
|
|
17035
17046
|
var r;
|
|
17036
|
-
const { el: n, isShadow: e } =
|
|
17047
|
+
const { el: n, isShadow: e } = jn((r = this.$root) == null ? void 0 : r.$el), t = e ? n : n.body;
|
|
17037
17048
|
Ds("body", {
|
|
17038
17049
|
// Note: Performance
|
|
17039
17050
|
// Could prolly register this function on the window to avoid having
|