@cling-se/widget 0.12.4 → 0.12.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AddClientCallout-96e94ad9.js → AddClientCallout-9ecb1f65.js} +5 -5
- package/dist/{AnswerModal-6990ea17.js → AnswerModal-740a32d9.js} +1264 -1153
- package/dist/{AttachmentItem-0d327381.js → AttachmentItem-b5feec24.js} +3 -3
- package/dist/{BaseDatePicker-e2e1ea6e.js → BaseDatePicker-4de97237.js} +2 -2
- package/dist/{BaseInput-d9c734b0.js → BaseInput-0fd105dc.js} +1 -1
- package/dist/{BaseUpload-9efbce6d.js → BaseUpload-7da3dfa3.js} +2 -2
- package/dist/{BlockMedia-70d92534.js → BlockMedia-8538a7e4.js} +1 -1
- package/dist/{CCallout-419f1eac.js → CCallout-cb6ed00c.js} +2 -2
- package/dist/{CDropdownItem-60893039.js → CDropdownItem-3e55db42.js} +1 -1
- package/dist/{CField-2e027461.js → CField-83895bd6.js} +1 -1
- package/dist/{CPhoneFormat-b0670312.js → CPhoneFormat-89bc45bf.js} +1 -1
- package/dist/{CSlider.vue_vue_type_style_index_0_lang-852dfd0e.js → CSlider.vue_vue_type_style_index_0_lang-8ad297eb.js} +1 -1
- package/dist/{ClientAutocomplete-44998c42.js → ClientAutocomplete-660860d5.js} +2 -2
- package/dist/{ClientModal-d4ebef77.js → ClientModal-33675a8c.js} +5 -5
- package/dist/{ColorPicker-cd9e1cc0.js → ColorPicker-882e51a3.js} +1 -1
- package/dist/{CompanyModal-36820c26.js → CompanyModal-cb5a2df0.js} +3 -3
- package/dist/{ContentWrapper-520e4761.js → ContentWrapper-8f9a3424.js} +14 -14
- package/dist/{CoverBlockSettings-0251d18f.js → CoverBlockSettings-e97bd444.js} +7 -7
- package/dist/{DocAnswer-dad0bf7f.js → DocAnswer-6cccdd47.js} +4 -4
- package/dist/{DocDetails-31009b60.js → DocDetails-c957efaf.js} +17 -17
- package/dist/{DocForm-3e6d9d83.js → DocForm-821529a9.js} +43 -40
- package/dist/{DocFormSend-3b8e9604.js → DocFormSend-c7d8316a.js} +17 -17
- package/dist/{DocLinks-1467ba01.js → DocLinks-5d90c8da.js} +2 -2
- package/dist/{DocModalBase-c596787a.js → DocModalBase-f94bd68c.js} +1 -1
- package/dist/{DocPrint-3970f8e8.js → DocPrint-8eb06698.js} +5 -5
- package/dist/{DocReceipt-dd5c7d5b.js → DocReceipt-8c8a7913.js} +8 -8
- package/dist/{DocSendReminder-a3909a71.js → DocSendReminder-bfcbe73c.js} +1 -1
- package/dist/{DocTextEditor-f0223af8.js → DocTextEditor-b691f5d0.js} +293 -292
- package/dist/{DocTimeline-9b29e5f6.js → DocTimeline-6905dfa2.js} +1 -1
- package/dist/{DocumentClient-f77bc578.js → DocumentClient-84874729.js} +7 -7
- package/dist/{DocumentLayout-9cc2a08e.js → DocumentLayout-0280007c.js} +4 -4
- package/dist/{DocumentLogotype-20216f74.js → DocumentLogotype-af5615e2.js} +3 -3
- package/dist/{DocumentVoided-1198114e.js → DocumentVoided-1608d7d8.js} +1 -1
- package/dist/{EmbedInput-df3aa286.js → EmbedInput-b557906f.js} +2 -2
- package/dist/{EmbedSettings-b71e059b.js → EmbedSettings-6879968d.js} +3 -3
- package/dist/{ErrorCallout-a39eba4d.js → ErrorCallout-29ec868f.js} +1 -1
- package/dist/{FilePreviewModal-b5edeee0.js → FilePreviewModal-2c83e9ce.js} +5 -5
- package/dist/{Flag-c7a354cd.js → Flag-a72eedd7.js} +1 -1
- package/dist/{HeaderSettings-db6e32c8.js → HeaderSettings-f896361e.js} +16 -16
- package/dist/{ImageSelectModal-856e363b.js → ImageSelectModal-87115a0d.js} +8 -8
- package/dist/{ImageUploadWrapper-24dadc15.js → ImageUploadWrapper-b848e2c0.js} +2 -2
- package/dist/{Index-607f6640.js → Index-06d09242.js} +6 -6
- package/dist/{Index-8ac2ed05.js → Index-0e1ec3a9.js} +4 -4
- package/dist/{Index-75368b48.js → Index-143885f0.js} +2 -2
- package/dist/{Index-cada810e.js → Index-17532b7c.js} +7 -7
- package/dist/{Index-99ac0ac2.js → Index-1d872d01.js} +4 -4
- package/dist/{Index-73cee68c.js → Index-233d78f7.js} +2 -2
- package/dist/{Index-6d22d9d1.js → Index-317a278d.js} +2 -2
- package/dist/{Index-f05fe2a1.js → Index-392a72f0.js} +4 -4
- package/dist/{Index-12ea21c5.js → Index-41d36214.js} +1 -1
- package/dist/{Index-a5a82682.js → Index-45532a12.js} +9 -9
- package/dist/{Index-139b1013.js → Index-4e8673d8.js} +2 -2
- package/dist/{Index-34978d11.js → Index-57b1bd74.js} +2 -2
- package/dist/{Index-0099e82e.js → Index-5a98a216.js} +1 -1
- package/dist/{Index-9891ee1a.js → Index-5d96ebf8.js} +6 -6
- package/dist/{Index-3378fcf6.js → Index-5fb570f5.js} +4 -4
- package/dist/{Index-007a1233.js → Index-66422854.js} +5 -5
- package/dist/{Index-4f9afe72.js → Index-6a2c6bb4.js} +6 -6
- package/dist/{Index-40083942.js → Index-6cc9b40a.js} +14 -14
- package/dist/{Index-f06fcb76.js → Index-8378b41b.js} +5 -5
- package/dist/{Index-4f25825f.js → Index-896744ca.js} +10 -10
- package/dist/{Index-b5480383.js → Index-9bfd19ae.js} +24 -22
- package/dist/{Index-014d0ac2.js → Index-a6170166.js} +14 -14
- package/dist/{Index-3889e134.js → Index-a84493fa.js} +4 -4
- package/dist/{Index-d689466d.js → Index-ac5ed93b.js} +2 -2
- package/dist/{Index-ef955a66.js → Index-adc4d454.js} +3 -3
- package/dist/{Index-dd5f8fc7.js → Index-b14355c6.js} +15 -13
- package/dist/{Index-5355b449.js → Index-b855bb6b.js} +7 -7
- package/dist/{Index-4e675d8a.js → Index-cc275f1a.js} +4 -4
- package/dist/{Index-7b2e5ac5.js → Index-d1422cac.js} +13 -13
- package/dist/{Index-c551781f.js → Index-d4831043.js} +6 -6
- package/dist/{Index-1bf76a16.js → Index-dd7c60a3.js} +4 -4
- package/dist/{Index-dcbfb822.js → Index-e2275b80.js} +2 -2
- package/dist/{Index-bc5f3ca9.js → Index-e5bca4ba.js} +2 -2
- package/dist/{Index-54a78fad.js → Index-fb873cb0.js} +4 -4
- package/dist/{InputToggleRow-a9229972.js → InputToggleRow-57168fd7.js} +1 -1
- package/dist/{IsPremiumPreStep-4e9e2883.js → IsPremiumPreStep-c47b64ba.js} +2 -2
- package/dist/{ManualPopover-720770bb.js → ManualPopover-f0d020f7.js} +1 -1
- package/dist/{MediaWrapper-90c72ae5.js → MediaWrapper-f88b5042.js} +3 -3
- package/dist/{NotBindingText-832d5350.js → NotBindingText-5443e8ae.js} +2 -2
- package/dist/{PackageGroup-22cbb76c.js → PackageGroup-b04e1dd2.js} +12 -12
- package/dist/{PdfTerms-ce2d5d5e.js → PdfTerms-1b2ccc92.js} +5 -5
- package/dist/{PdfViewer-ebff4b6c.js → PdfViewer-70a62650.js} +2 -2
- package/dist/{PlainHtml-faae67a3.js → PlainHtml-69debaed.js} +1 -1
- package/dist/{PriceHeader-67ac2108.js → PriceHeader-57e8c8b2.js} +13 -13
- package/dist/{SearchApi-d90fd0d2.js → SearchApi-89a10999.js} +2 -2
- package/dist/{Setup-88387515.js → Setup-e49038b9.js} +1 -1
- package/dist/{TermsSettings-82f18edc.js → TermsSettings-9230124b.js} +7 -7
- package/dist/{ThemeColorRow-ca0c7f34.js → ThemeColorRow-7fa03127.js} +3 -3
- package/dist/{ToggleBinding-87b13b54.js → ToggleBinding-eccf31b0.js} +3 -3
- package/dist/{UploadModal-9c6b64dc.js → UploadModal-7ec92085.js} +3 -3
- package/dist/{VideoPlayerInput-87ae1e67.js → VideoPlayerInput-79ecaa25.js} +3 -3
- package/dist/{VideoPlayerSettings-ab7c9dd9.js → VideoPlayerSettings-832db291.js} +4 -4
- package/dist/{VideoSelectModal-b9c128a2.js → VideoSelectModal-71610c73.js} +8 -8
- package/dist/{answerDocumentMixin-1a04710f.js → answerDocumentMixin-9ef76853.js} +3 -3
- package/dist/{debounce-5f4cc346.js → debounce-8671f8dc.js} +1 -1
- package/dist/{focusDrawerMixin-fcfab690.js → focusDrawerMixin-e1e74aa5.js} +1 -1
- package/dist/{formComponentsInstall-f2198c99.js → formComponentsInstall-7929495e.js} +12 -12
- package/dist/{formDrawerState-6ff961ac.js → formDrawerState-132b3356.js} +1 -1
- package/dist/{formValidationMixin-5882b9a7.js → formValidationMixin-7e63bf02.js} +1 -1
- package/dist/{index-09727136.js → index-689abdc4.js} +1 -1
- package/dist/{index-383fefaf.js → index-c32415d8.js} +1 -1
- package/dist/{index-069b282b.js → index-c932bbd7.js} +3 -3
- package/dist/{index-525e4866.js → index-d581dd3e.js} +5 -5
- package/dist/{index-7fa7534f.js → index-e08e9511.js} +9 -9
- package/dist/{index-9d8996e9.js → index-ecae741c.js} +1 -1
- package/dist/index.es.js +3 -3
- package/dist/index.umd.js +147 -147
- package/dist/{main-0ba93efc.js → main-3e2eb1ab.js} +5990 -5815
- package/dist/{mapFormMixin-46fe94a8.js → mapFormMixin-7434613a.js} +1 -1
- package/dist/{publicSenderState-644bb177.js → publicSenderState-d2935885.js} +1 -1
- package/dist/style.css +2 -2
- package/dist/{throttle-61f5ee70.js → throttle-67fcd09d.js} +2 -2
- package/dist/{tinycolor-4773d945.js → tinycolor-efcd3ffc.js} +1 -2
- package/dist/{tippy.esm-b5320973.js → tippy.esm-2fc4283d.js} +5 -5
- package/dist/{utils-8d533496.js → utils-0765b02b.js} +1 -1
- package/dist/{vuedraggable.umd-37bf712b.js → vuedraggable.umd-6b43b866.js} +1 -1
- package/package.json +7 -7
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { t as Uo, F as
|
|
2
|
-
import { V as Vn, n as ut, a8 as bs, b as Ds, p as Ha } from "./main-
|
|
1
|
+
import { t as Uo, F as _a, s as $a, d as ys } from "./tippy.esm-2fc4283d.js";
|
|
2
|
+
import { V as Vn, n as ut, a8 as bs, b as Ds, p as Ha } from "./main-3e2eb1ab.js";
|
|
3
3
|
import { a as ai } from "./dom-962579a6.js";
|
|
4
|
-
import { i as Jo, w as Va } from "./CDropdownItem-
|
|
5
|
-
import "./CSlider.vue_vue_type_style_index_0_lang-
|
|
4
|
+
import { i as Jo, w as Va } from "./CDropdownItem-3e55db42.js";
|
|
5
|
+
import "./CSlider.vue_vue_type_style_index_0_lang-8ad297eb.js";
|
|
6
6
|
import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
|
|
7
|
-
import { M as Go } from "./ManualPopover-
|
|
8
|
-
import { C as ja } from "./ColorPicker-
|
|
7
|
+
import { M as Go } from "./ManualPopover-f0d020f7.js";
|
|
8
|
+
import { C as ja } from "./ColorPicker-882e51a3.js";
|
|
9
9
|
import { h as Wa } from "./color-71c20583.js";
|
|
10
10
|
function ee(n) {
|
|
11
11
|
this.content = n;
|
|
@@ -949,16 +949,16 @@ 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 < zr.length; i++) {
|
|
953
|
+
let s = zr[i];
|
|
954
954
|
if (s.pos == t && s.doc == e)
|
|
955
955
|
return s;
|
|
956
956
|
}
|
|
957
|
-
let r = _r
|
|
958
|
-
return
|
|
957
|
+
let r = zr[_r] = kn.resolve(e, t);
|
|
958
|
+
return _r = (_r + 1) % Ua, r;
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
|
-
let
|
|
961
|
+
let zr = [], _r = 0, Ua = 12;
|
|
962
962
|
class qn {
|
|
963
963
|
/**
|
|
964
964
|
Construct a node range. `$from` and `$to` should point into the
|
|
@@ -2108,7 +2108,7 @@ class Wt {
|
|
|
2108
2108
|
Parse a document from the content of a DOM node.
|
|
2109
2109
|
*/
|
|
2110
2110
|
parse(e, t = {}) {
|
|
2111
|
-
let r = new
|
|
2111
|
+
let r = new As(this, t, !1);
|
|
2112
2112
|
return r.addAll(e, t.from, t.to), r.finish();
|
|
2113
2113
|
}
|
|
2114
2114
|
/**
|
|
@@ -2120,7 +2120,7 @@ class Wt {
|
|
|
2120
2120
|
the left of the input and the end of nodes at the end.
|
|
2121
2121
|
*/
|
|
2122
2122
|
parseSlice(e, t = {}) {
|
|
2123
|
-
let r = new
|
|
2123
|
+
let r = new As(this, t, !0);
|
|
2124
2124
|
return r.addAll(e, t.from, t.to), k.maxOpen(r.finish());
|
|
2125
2125
|
}
|
|
2126
2126
|
/**
|
|
@@ -2238,7 +2238,7 @@ const cl = {
|
|
|
2238
2238
|
style: !0,
|
|
2239
2239
|
title: !0
|
|
2240
2240
|
}, dl = { ol: !0, ul: !0 }, Un = 1, Jn = 2, hn = 4;
|
|
2241
|
-
function
|
|
2241
|
+
function vs(n, e, t) {
|
|
2242
2242
|
return e != null ? (e ? Un : 0) | (e === "full" ? Jn : 0) : n && n.whitespace == "pre" ? Un | Jn : t & ~hn;
|
|
2243
2243
|
}
|
|
2244
2244
|
class On {
|
|
@@ -2285,10 +2285,10 @@ class On {
|
|
|
2285
2285
|
return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : e.parentNode && !cl.hasOwnProperty(e.parentNode.nodeName.toLowerCase());
|
|
2286
2286
|
}
|
|
2287
2287
|
}
|
|
2288
|
-
class
|
|
2288
|
+
class As {
|
|
2289
2289
|
constructor(e, t, r) {
|
|
2290
2290
|
this.parser = e, this.options = t, this.isOpen = r, this.open = 0;
|
|
2291
|
-
let i = t.topNode, s, o =
|
|
2291
|
+
let i = t.topNode, s, o = vs(null, t.preserveWhitespace, 0) | (r ? hn : 0);
|
|
2292
2292
|
i ? s = new On(i.type, i.attrs, P.none, P.none, !0, t.topMatch || i.type.contentMatch, o) : r ? s = new On(null, null, P.none, P.none, !0, null, o) : s = new On(e.schema.topNodeType, null, P.none, P.none, !0, null, o), this.nodes = [s], this.find = t.findPositions, this.needsBlock = !1;
|
|
2293
2293
|
}
|
|
2294
2294
|
get top() {
|
|
@@ -2447,7 +2447,7 @@ class vs {
|
|
|
2447
2447
|
this.closeExtra();
|
|
2448
2448
|
let s = this.top;
|
|
2449
2449
|
s.applyPending(e), s.match = s.match && s.match.matchType(e);
|
|
2450
|
-
let o =
|
|
2450
|
+
let o = vs(e, i, s.options);
|
|
2451
2451
|
s.options & hn && s.content.length == 0 && (o |= hn), this.nodes.push(new On(e, t, s.activeMarks, s.pendingMarks, r, null, o)), this.open++;
|
|
2452
2452
|
}
|
|
2453
2453
|
// Make sure all nodes above this.open are finished and added to
|
|
@@ -3453,7 +3453,7 @@ function bu(n, e, t) {
|
|
|
3453
3453
|
m || i.after(p + 1) < i.end(p) ? (m = !0, h = b.from(i.node(p).copy(h)), f++) : u++;
|
|
3454
3454
|
n.step(new Y(a, u, o, l, new k(c.append(h), d, f), c.size - d, !0));
|
|
3455
3455
|
}
|
|
3456
|
-
function
|
|
3456
|
+
function zi(n, e, t = null, r = n) {
|
|
3457
3457
|
let i = Du(n, e), s = i && Cu(r, e);
|
|
3458
3458
|
return s ? i.map(Ts).concat({ type: e, attrs: t }).concat(s.map(Ts)) : null;
|
|
3459
3459
|
}
|
|
@@ -3505,7 +3505,7 @@ function xu(n, e, t) {
|
|
|
3505
3505
|
let r = n.resolve(e), i = r.index();
|
|
3506
3506
|
return r.parent.canReplaceWith(i, i + 1, t);
|
|
3507
3507
|
}
|
|
3508
|
-
function
|
|
3508
|
+
function vu(n, e, t, r, i) {
|
|
3509
3509
|
let s = n.doc.nodeAt(e);
|
|
3510
3510
|
if (!s)
|
|
3511
3511
|
throw new RangeError("No node at given position");
|
|
@@ -3532,7 +3532,7 @@ function Ht(n, e, t = 1, r) {
|
|
|
3532
3532
|
let l = i.indexAfter(s), a = r && r[0];
|
|
3533
3533
|
return i.node(s).canReplaceWith(l, l, a ? a.type : i.node(s + 1).type);
|
|
3534
3534
|
}
|
|
3535
|
-
function
|
|
3535
|
+
function Au(n, e, t = 1, r) {
|
|
3536
3536
|
let i = n.doc.resolve(e), s = b.empty, o = b.empty;
|
|
3537
3537
|
for (let l = i.depth, a = i.depth - t, u = t - 1; l > a; l--, u--) {
|
|
3538
3538
|
s = b.from(i.node(l).copy(s));
|
|
@@ -3595,7 +3595,7 @@ function yl(n, e, t) {
|
|
|
3595
3595
|
}
|
|
3596
3596
|
return null;
|
|
3597
3597
|
}
|
|
3598
|
-
function
|
|
3598
|
+
function _i(n, e, t = e, r = k.empty) {
|
|
3599
3599
|
if (e == t && !r.size)
|
|
3600
3600
|
return null;
|
|
3601
3601
|
let i = n.resolve(e), s = n.resolve(t);
|
|
@@ -3812,8 +3812,8 @@ function Fu(n, e, t, r) {
|
|
|
3812
3812
|
for (let m = 0; m < o.length; m++) {
|
|
3813
3813
|
let g = o[(m + a) % o.length], y = !0;
|
|
3814
3814
|
g < 0 && (y = !1, g = -g);
|
|
3815
|
-
let D = i.node(g - 1),
|
|
3816
|
-
if (D.canReplaceWith(
|
|
3815
|
+
let D = i.node(g - 1), v = i.index(g - 1);
|
|
3816
|
+
if (D.canReplaceWith(v, v, p.type, p.marks))
|
|
3817
3817
|
return n.replace(i.before(g), y ? s.after(g) : t, new k(Cl(r.content, 0, r.openStart, f), f, r.openEnd));
|
|
3818
3818
|
}
|
|
3819
3819
|
}
|
|
@@ -3961,7 +3961,7 @@ class $i {
|
|
|
3961
3961
|
given `slice`.
|
|
3962
3962
|
*/
|
|
3963
3963
|
replace(e, t = e, r = k.empty) {
|
|
3964
|
-
let i =
|
|
3964
|
+
let i = _i(this.doc, e, t, r);
|
|
3965
3965
|
return i && this.step(i), this;
|
|
3966
3966
|
}
|
|
3967
3967
|
/**
|
|
@@ -4061,7 +4061,7 @@ class $i {
|
|
|
4061
4061
|
When `type` isn't given, the existing node type is preserved,
|
|
4062
4062
|
*/
|
|
4063
4063
|
setNodeMarkup(e, t, r = null, i = []) {
|
|
4064
|
-
return
|
|
4064
|
+
return vu(this, e, t, r, i), this;
|
|
4065
4065
|
}
|
|
4066
4066
|
/**
|
|
4067
4067
|
Set a single attribute on a given node to a new value.
|
|
@@ -4097,7 +4097,7 @@ class $i {
|
|
|
4097
4097
|
use after the split.
|
|
4098
4098
|
*/
|
|
4099
4099
|
split(e, t = 1, r) {
|
|
4100
|
-
return
|
|
4100
|
+
return Au(this, e, t, r), this;
|
|
4101
4101
|
}
|
|
4102
4102
|
/**
|
|
4103
4103
|
Add the given mark to the inline content between `from` and `to`.
|
|
@@ -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;
|
|
@@ -4899,7 +4899,7 @@ class $ {
|
|
|
4899
4899
|
Create a plugin.
|
|
4900
4900
|
*/
|
|
4901
4901
|
constructor(e) {
|
|
4902
|
-
this.spec = e, this.props = {}, e.props && xl(e.props, this, this.props), this.key = e.key ? e.key.key :
|
|
4902
|
+
this.spec = e, this.props = {}, e.props && xl(e.props, this, this.props), this.key = e.key ? e.key.key : vl("plugin");
|
|
4903
4903
|
}
|
|
4904
4904
|
/**
|
|
4905
4905
|
Extract the plugin's state field from an editor state.
|
|
@@ -4909,7 +4909,7 @@ class $ {
|
|
|
4909
4909
|
}
|
|
4910
4910
|
}
|
|
4911
4911
|
const Kr = /* @__PURE__ */ Object.create(null);
|
|
4912
|
-
function
|
|
4912
|
+
function vl(n) {
|
|
4913
4913
|
return n in Kr ? n + "$" + ++Kr[n] : (Kr[n] = 0, n + "$");
|
|
4914
4914
|
}
|
|
4915
4915
|
class K {
|
|
@@ -4917,7 +4917,7 @@ class K {
|
|
|
4917
4917
|
Create a plugin key.
|
|
4918
4918
|
*/
|
|
4919
4919
|
constructor(e = "key") {
|
|
4920
|
-
this.key =
|
|
4920
|
+
this.key = vl(e);
|
|
4921
4921
|
}
|
|
4922
4922
|
/**
|
|
4923
4923
|
Get the active plugin with this key, if any, from an editor
|
|
@@ -4947,14 +4947,14 @@ const Ve = function(n, e, t) {
|
|
|
4947
4947
|
return r.setEnd(n, t ?? n.nodeValue.length), r.setStart(n, e || 0), r;
|
|
4948
4948
|
}, wt = function(n, e, t, r) {
|
|
4949
4949
|
return t && (Ps(n, e, t, r, -1) || Ps(n, e, t, r, 1));
|
|
4950
|
-
},
|
|
4950
|
+
}, zu = /^(img|br|input|textarea|hr)$/i;
|
|
4951
4951
|
function Ps(n, e, t, r, i) {
|
|
4952
4952
|
for (; ; ) {
|
|
4953
4953
|
if (n == t && e == r)
|
|
4954
4954
|
return !0;
|
|
4955
4955
|
if (e == (i < 0 ? 0 : Re(n))) {
|
|
4956
4956
|
let s = n.parentNode;
|
|
4957
|
-
if (!s || s.nodeType != 1 || $u(n) ||
|
|
4957
|
+
if (!s || s.nodeType != 1 || $u(n) || zu.test(n.nodeName) || n.contentEditable == "false")
|
|
4958
4958
|
return !1;
|
|
4959
4959
|
e = ye(n) + (i < 0 ? 0 : 1), n = s;
|
|
4960
4960
|
} else if (n.nodeType == 1) {
|
|
@@ -4968,7 +4968,7 @@ function Ps(n, e, t, r, i) {
|
|
|
4968
4968
|
function Re(n) {
|
|
4969
4969
|
return n.nodeType == 3 ? n.nodeValue.length : n.childNodes.length;
|
|
4970
4970
|
}
|
|
4971
|
-
function
|
|
4971
|
+
function _u(n, e, t) {
|
|
4972
4972
|
for (let r = e == 0, i = e == Re(n); r || i; ) {
|
|
4973
4973
|
if (n == t)
|
|
4974
4974
|
return !0;
|
|
@@ -4984,7 +4984,7 @@ function $u(n) {
|
|
|
4984
4984
|
;
|
|
4985
4985
|
return e && e.node && e.node.isBlock && (e.dom == n || e.contentDOM == n);
|
|
4986
4986
|
}
|
|
4987
|
-
const
|
|
4987
|
+
const Ar = function(n) {
|
|
4988
4988
|
return n.focusNode && wt(n.focusNode, n.focusOffset, n.anchorNode, n.anchorOffset);
|
|
4989
4989
|
};
|
|
4990
4990
|
function Ft(n, e) {
|
|
@@ -4997,9 +4997,9 @@ function Hu(n) {
|
|
|
4997
4997
|
e = e.shadowRoot.activeElement;
|
|
4998
4998
|
return e;
|
|
4999
4999
|
}
|
|
5000
|
-
const ot = typeof navigator < "u" ? navigator : null,
|
|
5000
|
+
const ot = typeof navigator < "u" ? navigator : null, zs = typeof document < "u" ? document : null, ct = ot && ot.userAgent || "", pi = /Edge\/(\d+)/.exec(ct), Al = /MSIE \d/.exec(ct), mi = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ct), fe = !!(Al || mi || pi), rt = Al ? 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, Vu = 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), Sr = !!
|
|
5002
|
+
const gi = !fe && /Chrome\/(\d+)/.exec(ct), he = !!gi, Vu = 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), Sr = !!zs && "webkitFontSmoothing" in zs.documentElement.style, ju = Sr ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
5003
5003
|
function Wu(n) {
|
|
5004
5004
|
return {
|
|
5005
5005
|
left: 0,
|
|
@@ -5020,7 +5020,7 @@ function qu(n) {
|
|
|
5020
5020
|
bottom: e.top + n.clientHeight * r
|
|
5021
5021
|
};
|
|
5022
5022
|
}
|
|
5023
|
-
function
|
|
5023
|
+
function _s(n, e, t) {
|
|
5024
5024
|
let r = n.someProp("scrollThreshold") || 0, i = n.someProp("scrollMargin") || 5, s = n.dom.ownerDocument;
|
|
5025
5025
|
for (let o = t || n.dom; o; o = wn(o)) {
|
|
5026
5026
|
if (o.nodeType != 1)
|
|
@@ -5329,7 +5329,7 @@ let $s = null, Hs = null, Vs = !1;
|
|
|
5329
5329
|
function ic(n, e, t) {
|
|
5330
5330
|
return $s == e && Hs == t ? Vs : ($s = e, Hs = t, Vs = t == "up" || t == "down" ? tc(n, e, t) : rc(n, e, t));
|
|
5331
5331
|
}
|
|
5332
|
-
const Ee = 0, js = 1, Bt = 2,
|
|
5332
|
+
const Ee = 0, js = 1, Bt = 2, ze = 3;
|
|
5333
5333
|
class Sn {
|
|
5334
5334
|
constructor(e, t, r, i) {
|
|
5335
5335
|
this.parent = e, this.children = t, this.dom = r, this.contentDOM = i, this.dirty = Ee, r.pmViewDesc = this;
|
|
@@ -5641,10 +5641,10 @@ class Sn {
|
|
|
5641
5641
|
if (r == o ? e <= o && t >= r : e < o && t > r) {
|
|
5642
5642
|
let l = r + s.border, a = o - s.border;
|
|
5643
5643
|
if (e >= l && t <= a) {
|
|
5644
|
-
this.dirty = e == r || t == o ? Bt : js, e == l && t == a && (s.contentLost || s.dom.parentNode != this.contentDOM) ? s.dirty =
|
|
5644
|
+
this.dirty = e == r || t == o ? Bt : js, e == l && t == a && (s.contentLost || s.dom.parentNode != this.contentDOM) ? s.dirty = ze : s.markDirty(e - l, t - l);
|
|
5645
5645
|
return;
|
|
5646
5646
|
} else
|
|
5647
|
-
s.dirty = s.dom == s.contentDOM && s.dom.parentNode == this.contentDOM && !s.children.length ? Bt :
|
|
5647
|
+
s.dirty = s.dom == s.contentDOM && s.dom.parentNode == this.contentDOM && !s.children.length ? Bt : ze;
|
|
5648
5648
|
}
|
|
5649
5649
|
r = o;
|
|
5650
5650
|
}
|
|
@@ -5730,10 +5730,10 @@ class xt extends Sn {
|
|
|
5730
5730
|
return (!o || !o.dom) && (o = Ie.renderSpec(document, t.type.spec.toDOM(t, r))), new xt(e, t, o.dom, o.contentDOM || o.dom);
|
|
5731
5731
|
}
|
|
5732
5732
|
parseRule() {
|
|
5733
|
-
return this.dirty &
|
|
5733
|
+
return this.dirty & ze || this.mark.type.spec.reparseInView ? null : { mark: this.mark.type.name, attrs: this.mark.attrs, contentElement: this.contentDOM || void 0 };
|
|
5734
5734
|
}
|
|
5735
5735
|
matchesMark(e) {
|
|
5736
|
-
return this.dirty !=
|
|
5736
|
+
return this.dirty != ze && this.mark.eq(e);
|
|
5737
5737
|
}
|
|
5738
5738
|
markDirty(e, t) {
|
|
5739
5739
|
if (super.markDirty(e, t), this.dirty != Ee) {
|
|
@@ -5751,7 +5751,7 @@ class xt extends Sn {
|
|
|
5751
5751
|
return i.children = s, i;
|
|
5752
5752
|
}
|
|
5753
5753
|
}
|
|
5754
|
-
class
|
|
5754
|
+
class vt extends Sn {
|
|
5755
5755
|
constructor(e, t, r, i, s, o, l, a, u) {
|
|
5756
5756
|
super(e, [], s, o), this.node = t, this.outerDeco = r, this.innerDeco = i, this.nodeDOM = l, o && this.updateChildren(a, u);
|
|
5757
5757
|
}
|
|
@@ -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 oc(e, t, r, i, c, d || null, h, u, s, o + 1) : t.isText ? new Er(e, t, r, i, c, h, s) : new
|
|
5783
|
+
return c = Il(c, r, t), u ? a = new oc(e, t, r, i, c, d || null, h, u, s, o + 1) : t.isText ? new Er(e, t, r, i, c, h, s) : new vt(e, t, r, i, c, d || null, h, s, o + 1);
|
|
5784
5784
|
}
|
|
5785
5785
|
parseRule() {
|
|
5786
5786
|
if (this.node.type.spec.reparseInView)
|
|
@@ -5855,7 +5855,7 @@ class At extends Sn {
|
|
|
5855
5855
|
// If this desc must be updated to match the given node decoration,
|
|
5856
5856
|
// do so and return true.
|
|
5857
5857
|
update(e, t, r, i) {
|
|
5858
|
-
return this.dirty ==
|
|
5858
|
+
return this.dirty == ze || !e.sameMarkup(this.node) ? !1 : (this.updateInner(e, t, r, i), !0);
|
|
5859
5859
|
}
|
|
5860
5860
|
updateInner(e, t, r, i) {
|
|
5861
5861
|
this.updateOuterDeco(t), this.node = e, this.innerDeco = r, this.contentDOM && this.updateChildren(i, this.posAtStart), this.dirty = Ee;
|
|
@@ -5879,9 +5879,9 @@ class At extends Sn {
|
|
|
5879
5879
|
}
|
|
5880
5880
|
}
|
|
5881
5881
|
function Ws(n, e, t, r, i) {
|
|
5882
|
-
return Il(r, e, n), new
|
|
5882
|
+
return Il(r, e, n), new vt(void 0, n, e, t, r, r, r, i, 0);
|
|
5883
5883
|
}
|
|
5884
|
-
class Er extends
|
|
5884
|
+
class Er extends vt {
|
|
5885
5885
|
constructor(e, t, r, i, s, o, l) {
|
|
5886
5886
|
super(e, t, r, i, s, null, o, l, 0);
|
|
5887
5887
|
}
|
|
@@ -5892,7 +5892,7 @@ class Er extends At {
|
|
|
5892
5892
|
return { skip: e || !0 };
|
|
5893
5893
|
}
|
|
5894
5894
|
update(e, t, r, i) {
|
|
5895
|
-
return this.dirty ==
|
|
5895
|
+
return this.dirty == ze || this.dirty != Ee && !this.inParent() || !e.sameMarkup(this.node) ? !1 : (this.updateOuterDeco(t), (this.dirty != Ee || e.text != this.node.text) && e.text != this.nodeDOM.nodeValue && (this.nodeDOM.nodeValue = e.text, i.trackWrites == this.nodeDOM && (i.trackWrites = null)), this.node = e, this.dirty = Ee, !0);
|
|
5896
5896
|
}
|
|
5897
5897
|
inParent() {
|
|
5898
5898
|
let e = this.parent.contentDOM;
|
|
@@ -5915,7 +5915,7 @@ class Er extends At {
|
|
|
5915
5915
|
return new Er(this.parent, i, this.outerDeco, this.innerDeco, s, s, r);
|
|
5916
5916
|
}
|
|
5917
5917
|
markDirty(e, t) {
|
|
5918
|
-
super.markDirty(e, t), this.dom != this.nodeDOM && (e == 0 || t == this.nodeDOM.nodeValue.length) && (this.dirty =
|
|
5918
|
+
super.markDirty(e, t), this.dom != this.nodeDOM && (e == 0 || t == this.nodeDOM.nodeValue.length) && (this.dirty = ze);
|
|
5919
5919
|
}
|
|
5920
5920
|
get domAtom() {
|
|
5921
5921
|
return !1;
|
|
@@ -5935,7 +5935,7 @@ class Bl extends Sn {
|
|
|
5935
5935
|
return this.dom.nodeName == "IMG";
|
|
5936
5936
|
}
|
|
5937
5937
|
}
|
|
5938
|
-
class oc extends
|
|
5938
|
+
class oc extends vt {
|
|
5939
5939
|
constructor(e, t, r, i, s, o, l, a, u, c) {
|
|
5940
5940
|
super(e, t, r, i, s, o, l, u, c), this.spec = a;
|
|
5941
5941
|
}
|
|
@@ -5943,7 +5943,7 @@ class oc extends At {
|
|
|
5943
5943
|
// through. If it does, and there's a `contentDOM` node, our logic
|
|
5944
5944
|
// updates the children.
|
|
5945
5945
|
update(e, t, r, i) {
|
|
5946
|
-
if (this.dirty ==
|
|
5946
|
+
if (this.dirty == ze)
|
|
5947
5947
|
return !1;
|
|
5948
5948
|
if (this.spec.update) {
|
|
5949
5949
|
let s = this.spec.update(e, t, r);
|
|
@@ -6121,7 +6121,7 @@ class ac {
|
|
|
6121
6121
|
}
|
|
6122
6122
|
updateNodeAt(e, t, r, i, s) {
|
|
6123
6123
|
let o = this.top.children[i];
|
|
6124
|
-
return o.dirty ==
|
|
6124
|
+
return o.dirty == ze && o.dom == o.contentDOM && (o.dirty = Bt), o.update(e, t, r, s) ? (this.destroyBetween(this.index, i), this.index++, !0) : !1;
|
|
6125
6125
|
}
|
|
6126
6126
|
findIndexWithChild(e) {
|
|
6127
6127
|
for (; ; ) {
|
|
@@ -6145,12 +6145,12 @@ class ac {
|
|
|
6145
6145
|
updateNextNode(e, t, r, i, s) {
|
|
6146
6146
|
for (let o = this.index; o < this.top.children.length; o++) {
|
|
6147
6147
|
let l = this.top.children[o];
|
|
6148
|
-
if (l instanceof
|
|
6148
|
+
if (l instanceof vt) {
|
|
6149
6149
|
let a = this.preMatch.matched.get(l);
|
|
6150
6150
|
if (a != null && a != s)
|
|
6151
6151
|
return !1;
|
|
6152
6152
|
let u = l.dom;
|
|
6153
|
-
if (!(this.lock && (u == this.lock || u.nodeType == 1 && u.contains(this.lock.parentNode)) && !(e.isText && l.node && l.node.isText && l.nodeDOM.nodeValue == e.text && l.dirty !=
|
|
6153
|
+
if (!(this.lock && (u == this.lock || u.nodeType == 1 && u.contains(this.lock.parentNode)) && !(e.isText && l.node && l.node.isText && l.nodeDOM.nodeValue == e.text && l.dirty != ze && bi(t, l.outerDeco))) && l.update(e, t, r, i))
|
|
6154
6154
|
return this.destroyBetween(this.index, o), l.dom != u && (this.changed = !0), this.index++, !0;
|
|
6155
6155
|
break;
|
|
6156
6156
|
}
|
|
@@ -6159,7 +6159,7 @@ class ac {
|
|
|
6159
6159
|
}
|
|
6160
6160
|
// Insert the node as a newly created node desc.
|
|
6161
6161
|
addNode(e, t, r, i, s) {
|
|
6162
|
-
this.top.children.splice(this.index++, 0,
|
|
6162
|
+
this.top.children.splice(this.index++, 0, vt.create(this.top, e, t, r, i, s)), this.changed = !0;
|
|
6163
6163
|
}
|
|
6164
6164
|
placeWidget(e, t, r) {
|
|
6165
6165
|
let i = this.index < this.top.children.length ? this.top.children[this.index] : null;
|
|
@@ -6324,11 +6324,11 @@ 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 (Ar(t)) {
|
|
6328
6328
|
for (a = l; i && !i.node; )
|
|
6329
6329
|
i = i.parent;
|
|
6330
6330
|
let c = i.node;
|
|
6331
|
-
if (i && c.isAtom && S.isSelectable(c) && i.parent && !(c.isInline &&
|
|
6331
|
+
if (i && c.isAtom && S.isSelectable(c) && i.parent && !(c.isInline && _u(t.focusNode, t.focusOffset, i.dom))) {
|
|
6332
6332
|
let d = i.posBefore;
|
|
6333
6333
|
u = new S(o == d ? l : r.resolve(d));
|
|
6334
6334
|
}
|
|
@@ -6345,11 +6345,11 @@ function ji(n, e = null) {
|
|
|
6345
6345
|
return u;
|
|
6346
6346
|
}
|
|
6347
6347
|
function Pl(n) {
|
|
6348
|
-
return n.editable ? n.hasFocus() :
|
|
6348
|
+
return n.editable ? n.hasFocus() : _l(n) && document.activeElement && document.activeElement.contains(n.dom);
|
|
6349
6349
|
}
|
|
6350
6350
|
function Ke(n, e = !1) {
|
|
6351
6351
|
let t = n.state.selection;
|
|
6352
|
-
if (
|
|
6352
|
+
if (zl(n, t), !!Pl(n)) {
|
|
6353
6353
|
if (!e && n.input.mouseDown && n.input.mouseDown.allowDefault && he) {
|
|
6354
6354
|
let r = n.domSelectionRange(), i = n.domObserver.currentSelection;
|
|
6355
6355
|
if (r.anchorNode && i.anchorNode && wt(r.anchorNode, r.anchorOffset, i.anchorNode, i.anchorOffset)) {
|
|
@@ -6398,7 +6398,7 @@ function gc(n) {
|
|
|
6398
6398
|
let e = n.domSelection(), t = document.createRange(), r = n.cursorWrapper.dom, i = r.nodeName == "IMG";
|
|
6399
6399
|
i ? t.setEnd(r.parentNode, ye(r) + 1) : t.setEnd(r, 0), t.collapse(!1), e.removeAllRanges(), e.addRange(t), !i && !n.state.selection.visible && fe && rt <= 11 && (r.disabled = !0, r.disabled = !1);
|
|
6400
6400
|
}
|
|
6401
|
-
function
|
|
6401
|
+
function zl(n, e) {
|
|
6402
6402
|
if (e instanceof S) {
|
|
6403
6403
|
let t = n.docView.descAt(e.from);
|
|
6404
6404
|
t != n.lastSelectedViewDesc && (Gs(n), t && t.selectNode(), n.lastSelectedViewDesc = t);
|
|
@@ -6412,9 +6412,9 @@ function Wi(n, e, t, r) {
|
|
|
6412
6412
|
return n.someProp("createSelectionBetween", (i) => i(n, e, t)) || M.between(e, t, r);
|
|
6413
6413
|
}
|
|
6414
6414
|
function Ys(n) {
|
|
6415
|
-
return n.editable && !n.hasFocus() ? !1 :
|
|
6415
|
+
return n.editable && !n.hasFocus() ? !1 : _l(n);
|
|
6416
6416
|
}
|
|
6417
|
-
function
|
|
6417
|
+
function _l(n) {
|
|
6418
6418
|
let e = n.domSelectionRange();
|
|
6419
6419
|
if (!e.anchorNode)
|
|
6420
6420
|
return !1;
|
|
@@ -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 (Ar(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
|
|
@@ -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 = xc(t), Sr &&
|
|
6660
|
+
}), o = xc(t), Sr && 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--) {
|
|
@@ -6675,7 +6675,7 @@ function Vl(n, e, t, r, i) {
|
|
|
6675
6675
|
return h.nodeName == "BR" && !h.nextSibling && h.parentNode && !kc.test(h.parentNode.nodeName) ? { ignore: !0 } : null;
|
|
6676
6676
|
}
|
|
6677
6677
|
})), c)
|
|
6678
|
-
l =
|
|
6678
|
+
l = Ac(to(l, +c[1], +c[2]), c[4]);
|
|
6679
6679
|
else if (l = k.maxOpen(wc(l.content, i), !0), l.openStart || l.openEnd) {
|
|
6680
6680
|
let d = 0, h = 0;
|
|
6681
6681
|
for (let f = l.content.firstChild; d < l.openStart && !f.type.spec.isolating; d++, f = f.firstChild)
|
|
@@ -6763,14 +6763,14 @@ function xc(n) {
|
|
|
6763
6763
|
t = t.querySelector(i[s]) || t;
|
|
6764
6764
|
return t;
|
|
6765
6765
|
}
|
|
6766
|
-
function
|
|
6766
|
+
function vc(n) {
|
|
6767
6767
|
let e = n.querySelectorAll(he ? "span:not([class]):not([style])" : "span.Apple-converted-space");
|
|
6768
6768
|
for (let t = 0; t < e.length; t++) {
|
|
6769
6769
|
let r = e[t];
|
|
6770
6770
|
r.childNodes.length == 1 && r.textContent == " " && r.parentNode && r.parentNode.replaceChild(n.ownerDocument.createTextNode(" "), r);
|
|
6771
6771
|
}
|
|
6772
6772
|
}
|
|
6773
|
-
function
|
|
6773
|
+
function Ac(n, e) {
|
|
6774
6774
|
if (!n.size)
|
|
6775
6775
|
return n;
|
|
6776
6776
|
let t = n.content.firstChild.type.schema, r;
|
|
@@ -6914,9 +6914,9 @@ function Ic(n, e, t, r) {
|
|
|
6914
6914
|
return Ki(n, "handleDoubleClickOn", e, t, r) || n.someProp("handleDoubleClick", (i) => i(n, e, r));
|
|
6915
6915
|
}
|
|
6916
6916
|
function Pc(n, e, t, r) {
|
|
6917
|
-
return Ki(n, "handleTripleClickOn", e, t, r) || n.someProp("handleTripleClick", (i) => i(n, e, r)) ||
|
|
6917
|
+
return Ki(n, "handleTripleClickOn", e, t, r) || n.someProp("handleTripleClick", (i) => i(n, e, r)) || zc(n, t, r);
|
|
6918
6918
|
}
|
|
6919
|
-
function
|
|
6919
|
+
function zc(n, e, t) {
|
|
6920
6920
|
if (t.button != 0)
|
|
6921
6921
|
return !1;
|
|
6922
6922
|
let r = n.state.doc;
|
|
@@ -6944,9 +6944,9 @@ ue.mousedown = (n, e) => {
|
|
|
6944
6944
|
let r = Ui(n), i = Date.now(), s = "singleClick";
|
|
6945
6945
|
i - n.input.lastClick.time < 500 && Fc(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
6946
|
let o = n.posAtCoords(Mr(t));
|
|
6947
|
-
o && (s == "singleClick" ? (n.input.mouseDown && n.input.mouseDown.done(), n.input.mouseDown = new
|
|
6947
|
+
o && (s == "singleClick" ? (n.input.mouseDown && n.input.mouseDown.done(), n.input.mouseDown = new _c(n, o, t, !!r)) : (s == "doubleClick" ? Ic : Pc)(n, o.pos, o.inside, t) ? t.preventDefault() : nt(n, "pointer"));
|
|
6948
6948
|
};
|
|
6949
|
-
class
|
|
6949
|
+
class _c {
|
|
6950
6950
|
constructor(e, t, r, i) {
|
|
6951
6951
|
this.view = e, this.pos = t, this.event = r, this.flushed = i, this.delayedSelectionSync = !1, this.mightDrag = null, this.startDoc = e.state.doc, this.selectNode = !!r[Jl], this.allowDefault = r.shiftKey;
|
|
6952
6952
|
let s, o;
|
|
@@ -7075,10 +7075,10 @@ function Wc(n, e) {
|
|
|
7075
7075
|
return;
|
|
7076
7076
|
let t = n.input.shiftKey || n.state.selection.$from.parent.type.spec.code, r = n.dom.parentNode.appendChild(document.createElement(t ? "textarea" : "div"));
|
|
7077
7077
|
t || (r.contentEditable = "true"), r.style.cssText = "position: fixed; left: -10000px; top: 10px", r.focus(), setTimeout(() => {
|
|
7078
|
-
n.focus(), r.parentNode && r.parentNode.removeChild(r), t ?
|
|
7078
|
+
n.focus(), r.parentNode && r.parentNode.removeChild(r), t ? vi(n, r.value, null, e) : vi(n, r.textContent, r.innerHTML, e);
|
|
7079
7079
|
}, 50);
|
|
7080
7080
|
}
|
|
7081
|
-
function
|
|
7081
|
+
function vi(n, e, t, r) {
|
|
7082
7082
|
let i = Vl(n, e, t, n.input.shiftKey, n.state.selection.$from);
|
|
7083
7083
|
if (n.someProp("handlePaste", (l) => l(n, r, i || k.empty)))
|
|
7084
7084
|
return !0;
|
|
@@ -7092,7 +7092,7 @@ ce.paste = (n, e) => {
|
|
|
7092
7092
|
if (n.composing && !Le)
|
|
7093
7093
|
return;
|
|
7094
7094
|
let r = Jt ? null : t.clipboardData;
|
|
7095
|
-
r &&
|
|
7095
|
+
r && vi(n, r.getData("text/plain"), r.getData("text/html"), t) ? t.preventDefault() : Wc(n, t);
|
|
7096
7096
|
};
|
|
7097
7097
|
class qc {
|
|
7098
7098
|
constructor(e, t) {
|
|
@@ -7553,8 +7553,8 @@ function Kc(n, e, t, r, i, s, o) {
|
|
|
7553
7553
|
let D = l[y + 1];
|
|
7554
7554
|
if (D < 0 || h > D + c - d)
|
|
7555
7555
|
continue;
|
|
7556
|
-
let
|
|
7557
|
-
f >=
|
|
7556
|
+
let v = l[y] + c - d;
|
|
7557
|
+
f >= v ? l[y + 1] = h <= v ? -2 : -1 : p >= i && g && (l[y] += g, l[y + 1] += g);
|
|
7558
7558
|
}
|
|
7559
7559
|
d += g;
|
|
7560
7560
|
}), c = t.maps[u].map(c, -1);
|
|
@@ -7794,7 +7794,7 @@ class Xc {
|
|
|
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 && Ar(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), Qc(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 Zc(n) {
|
|
|
7847
7847
|
}
|
|
7848
7848
|
function ed(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 }], Ar(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) {
|
|
@@ -7890,9 +7890,9 @@ function td(n) {
|
|
|
7890
7890
|
}
|
|
7891
7891
|
function nd(n, e, t, r, i) {
|
|
7892
7892
|
if (e < 0) {
|
|
7893
|
-
let w = n.input.lastSelectionTime > Date.now() - 50 ? n.input.lastSelectionOrigin : null,
|
|
7894
|
-
if (
|
|
7895
|
-
let de = n.state.tr.setSelection(
|
|
7893
|
+
let w = n.input.lastSelectionTime > Date.now() - 50 ? n.input.lastSelectionOrigin : null, z = ji(n, w);
|
|
7894
|
+
if (z && !n.state.selection.eq(z)) {
|
|
7895
|
+
let de = n.state.tr.setSelection(z);
|
|
7896
7896
|
w == "pointer" ? de.setMeta("pointer", !0) : w == "key" && de.scrollIntoView(), n.dispatch(de);
|
|
7897
7897
|
}
|
|
7898
7898
|
return;
|
|
@@ -7935,25 +7935,25 @@ function nd(n, e, t, r, i) {
|
|
|
7935
7935
|
return w(n, Ft(13, "Enter"));
|
|
7936
7936
|
});
|
|
7937
7937
|
}, 20));
|
|
7938
|
-
let
|
|
7938
|
+
let v = f.start, N = f.endA, T, I, R;
|
|
7939
7939
|
if (y) {
|
|
7940
7940
|
if (p.pos == m.pos)
|
|
7941
|
-
fe && rt <= 11 && p.parentOffset == 0 && (n.domObserver.suppressSelectionUpdates(), setTimeout(() => Ke(n), 20)), T = n.state.tr.delete(
|
|
7941
|
+
fe && rt <= 11 && p.parentOffset == 0 && (n.domObserver.suppressSelectionUpdates(), setTimeout(() => Ke(n), 20)), T = n.state.tr.delete(v, N), I = u.resolve(f.start).marksAcross(u.resolve(f.endA));
|
|
7942
7942
|
else if (
|
|
7943
7943
|
// Adding or removing a mark
|
|
7944
7944
|
f.endA == f.endB && (R = rd(p.parent.content.cut(p.parentOffset, m.parentOffset), g.parent.content.cut(g.parentOffset, f.endA - g.start())))
|
|
7945
7945
|
)
|
|
7946
|
-
T = n.state.tr, R.type == "add" ? T.addMark(
|
|
7946
|
+
T = n.state.tr, R.type == "add" ? T.addMark(v, N, R.mark) : T.removeMark(v, N, R.mark);
|
|
7947
7947
|
else if (p.parent.child(p.index()).isText && p.index() == m.index() - (m.textOffset ? 0 : 1)) {
|
|
7948
7948
|
let w = p.parent.textBetween(p.parentOffset, m.parentOffset);
|
|
7949
|
-
if (n.someProp("handleTextInput", (
|
|
7949
|
+
if (n.someProp("handleTextInput", (z) => z(n, v, N, w)))
|
|
7950
7950
|
return;
|
|
7951
|
-
T = n.state.tr.insertText(w,
|
|
7951
|
+
T = n.state.tr.insertText(w, v, N);
|
|
7952
7952
|
}
|
|
7953
7953
|
}
|
|
7954
|
-
if (T || (T = n.state.tr.replace(
|
|
7954
|
+
if (T || (T = n.state.tr.replace(v, N, a.doc.slice(f.start - a.from, f.endB - a.from))), a.sel) {
|
|
7955
7955
|
let w = oo(n, T.doc, a.sel);
|
|
7956
|
-
w && !(he && Le && n.composing && w.empty && (f.start != f.endB || n.input.lastAndroidDelete < Date.now() - 100) && (w.head ==
|
|
7956
|
+
w && !(he && Le && n.composing && w.empty && (f.start != f.endB || n.input.lastAndroidDelete < Date.now() - 100) && (w.head == v || w.head == T.mapping.map(N) - 1) || fe && w.empty && w.head == v) && T.setSelection(w);
|
|
7957
7957
|
}
|
|
7958
7958
|
I && T.ensureMarks(I), n.dispatch(T.scrollIntoView());
|
|
7959
7959
|
}
|
|
@@ -8099,7 +8099,7 @@ class od {
|
|
|
8099
8099
|
let f = he ? this.trackWrites = this.domSelectionRange().focusNode : null;
|
|
8100
8100
|
(i || !this.docView.update(e.doc, a, l, this)) && (this.docView.updateOuterDeco([]), this.docView.destroy(), this.docView = Ws(e.doc, a, l, this.dom, this)), f && !this.trackWrites && (h = !0);
|
|
8101
8101
|
}
|
|
8102
|
-
h || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && yc(this)) ? Ke(this, h) : (
|
|
8102
|
+
h || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && yc(this)) ? Ke(this, h) : (zl(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
|
|
8103
8103
|
}
|
|
8104
8104
|
this.updatePluginViews(r), u == "reset" ? this.dom.scrollTop = 0 : u == "to selection" ? this.scrollToSelection() : d && Uu(d);
|
|
8105
8105
|
}
|
|
@@ -8111,9 +8111,9 @@ class od {
|
|
|
8111
8111
|
if (!this.someProp("handleScrollToSelection", (t) => t(this)))
|
|
8112
8112
|
if (this.state.selection instanceof S) {
|
|
8113
8113
|
let t = this.docView.domAfterPos(this.state.selection.from);
|
|
8114
|
-
t.nodeType == 1 &&
|
|
8114
|
+
t.nodeType == 1 && _s(this, t.getBoundingClientRect(), e);
|
|
8115
8115
|
} else
|
|
8116
|
-
|
|
8116
|
+
_s(this, this.coordsAtPos(this.state.selection.head, 1), e);
|
|
8117
8117
|
}
|
|
8118
8118
|
destroyPluginViews() {
|
|
8119
8119
|
let e;
|
|
@@ -8519,7 +8519,7 @@ const yd = (n, e) => n.selection.empty ? !1 : (e && e(n.tr.deleteSelection().scr
|
|
|
8519
8519
|
if (!s.type.spec.isolating && sa(n, i, e))
|
|
8520
8520
|
return !0;
|
|
8521
8521
|
if (r.parent.content.size == 0 && (Gt(s, "end") || S.isSelectable(s))) {
|
|
8522
|
-
let o =
|
|
8522
|
+
let o = _i(n.doc, r.before(), r.after(), k.empty);
|
|
8523
8523
|
if (o && o.slice.size < o.to - o.from) {
|
|
8524
8524
|
if (e) {
|
|
8525
8525
|
let l = n.tr.step(o);
|
|
@@ -8572,7 +8572,7 @@ const Cd = (n, e, t) => {
|
|
|
8572
8572
|
if (sa(n, i, e))
|
|
8573
8573
|
return !0;
|
|
8574
8574
|
if (r.parent.content.size == 0 && (Gt(s, "start") || S.isSelectable(s))) {
|
|
8575
|
-
let o =
|
|
8575
|
+
let o = _i(n.doc, r.before(), r.after(), k.empty);
|
|
8576
8576
|
if (o && o.slice.size < o.to - o.from) {
|
|
8577
8577
|
if (e) {
|
|
8578
8578
|
let l = n.tr.step(o);
|
|
@@ -8621,7 +8621,7 @@ function ia(n) {
|
|
|
8621
8621
|
}
|
|
8622
8622
|
return null;
|
|
8623
8623
|
}
|
|
8624
|
-
const
|
|
8624
|
+
const vd = (n, e) => {
|
|
8625
8625
|
let { $head: t, $anchor: r } = n.selection;
|
|
8626
8626
|
if (!t.parent.type.spec.code || !t.sameParent(r))
|
|
8627
8627
|
return !1;
|
|
@@ -8633,7 +8633,7 @@ const Ad = (n, e) => {
|
|
|
8633
8633
|
a.setSelection(E.near(a.doc.resolve(l), 1)), e(a.scrollIntoView());
|
|
8634
8634
|
}
|
|
8635
8635
|
return !0;
|
|
8636
|
-
},
|
|
8636
|
+
}, Ad = (n, e) => {
|
|
8637
8637
|
let t = n.selection, { $from: r, $to: i } = t;
|
|
8638
8638
|
if (t instanceof Se || r.parent.inlineContent || i.parent.inlineContent)
|
|
8639
8639
|
return !1;
|
|
@@ -8719,7 +8719,7 @@ function oa(n) {
|
|
|
8719
8719
|
const Td = oa(-1), Od = oa(1);
|
|
8720
8720
|
function Nd(n, e = null) {
|
|
8721
8721
|
return function(t, r) {
|
|
8722
|
-
let { $from: i, $to: s } = t.selection, o = i.blockRange(s), l = o &&
|
|
8722
|
+
let { $from: i, $to: s } = t.selection, o = i.blockRange(s), l = o && zi(o, n, e);
|
|
8723
8723
|
return l ? (r && r(t.tr.wrap(o, l).scrollIntoView()), !0) : !1;
|
|
8724
8724
|
};
|
|
8725
8725
|
}
|
|
@@ -8751,7 +8751,7 @@ function Fd(n, e = null) {
|
|
|
8751
8751
|
let c = t.doc.resolve(o.start - 2);
|
|
8752
8752
|
a = new qn(c, c, o.depth), o.endIndex < o.parent.childCount && (o = new qn(i, t.doc.resolve(s.end(o.depth)), o.depth)), l = !0;
|
|
8753
8753
|
}
|
|
8754
|
-
let u =
|
|
8754
|
+
let u = zi(a, n, e, o);
|
|
8755
8755
|
return u ? (r && r(Bd(t.tr, o, u, l, n).scrollIntoView()), !0) : !1;
|
|
8756
8756
|
};
|
|
8757
8757
|
}
|
|
@@ -8903,7 +8903,7 @@ class Or {
|
|
|
8903
8903
|
return l;
|
|
8904
8904
|
}
|
|
8905
8905
|
}
|
|
8906
|
-
class
|
|
8906
|
+
class zd {
|
|
8907
8907
|
constructor() {
|
|
8908
8908
|
this.callbacks = {};
|
|
8909
8909
|
}
|
|
@@ -8997,7 +8997,7 @@ function Q(n, e) {
|
|
|
8997
8997
|
}
|
|
8998
8998
|
return n;
|
|
8999
8999
|
}
|
|
9000
|
-
function
|
|
9000
|
+
function _(...n) {
|
|
9001
9001
|
return n.filter((e) => !!e).reduce((e, t) => {
|
|
9002
9002
|
const r = { ...e };
|
|
9003
9003
|
return Object.entries(t).forEach(([i, s]) => {
|
|
@@ -9009,10 +9009,10 @@ function z(...n) {
|
|
|
9009
9009
|
}), r;
|
|
9010
9010
|
}, {});
|
|
9011
9011
|
}
|
|
9012
|
-
function
|
|
9012
|
+
function Ai(n, e) {
|
|
9013
9013
|
return e.filter((t) => t.attribute.rendered).map((t) => t.attribute.renderHTML ? t.attribute.renderHTML(n.attrs) || {} : {
|
|
9014
9014
|
[t.name]: n.attrs[t.name]
|
|
9015
|
-
}).reduce((t, r) =>
|
|
9015
|
+
}).reduce((t, r) => _(t, r), {});
|
|
9016
9016
|
}
|
|
9017
9017
|
function aa(n) {
|
|
9018
9018
|
return typeof n == "function";
|
|
@@ -9020,7 +9020,7 @@ function aa(n) {
|
|
|
9020
9020
|
function O(n, e = void 0, ...t) {
|
|
9021
9021
|
return aa(n) ? e ? n.bind(e)(...t) : n(...t) : n;
|
|
9022
9022
|
}
|
|
9023
|
-
function
|
|
9023
|
+
function _d(n = {}) {
|
|
9024
9024
|
return Object.keys(n).length === 0 && n.constructor === Object;
|
|
9025
9025
|
}
|
|
9026
9026
|
function $d(n) {
|
|
@@ -9045,7 +9045,7 @@ function mo(n, e) {
|
|
|
9045
9045
|
};
|
|
9046
9046
|
}
|
|
9047
9047
|
function go(n) {
|
|
9048
|
-
return Object.fromEntries(Object.entries(n).filter(([e, t]) => e === "attrs" &&
|
|
9048
|
+
return Object.fromEntries(Object.entries(n).filter(([e, t]) => e === "attrs" && _d(t) ? !1 : t != null));
|
|
9049
9049
|
}
|
|
9050
9050
|
function Hd(n) {
|
|
9051
9051
|
var e;
|
|
@@ -9081,7 +9081,7 @@ function Hd(n) {
|
|
|
9081
9081
|
const p = x(a, "renderHTML", c);
|
|
9082
9082
|
p && (h.toDOM = (g) => p({
|
|
9083
9083
|
node: g,
|
|
9084
|
-
HTMLAttributes:
|
|
9084
|
+
HTMLAttributes: Ai(g, u)
|
|
9085
9085
|
}));
|
|
9086
9086
|
const m = x(a, "renderText", c);
|
|
9087
9087
|
return m && (h.toText = m), [a.name, h];
|
|
@@ -9112,7 +9112,7 @@ function Hd(n) {
|
|
|
9112
9112
|
const p = x(a, "renderHTML", c);
|
|
9113
9113
|
return p && (h.toDOM = (m) => p({
|
|
9114
9114
|
mark: m,
|
|
9115
|
-
HTMLAttributes:
|
|
9115
|
+
HTMLAttributes: Ai(m, u)
|
|
9116
9116
|
})), [a.name, h];
|
|
9117
9117
|
}));
|
|
9118
9118
|
return new su({
|
|
@@ -9183,7 +9183,7 @@ function ni(n) {
|
|
|
9183
9183
|
}), g = {
|
|
9184
9184
|
from: r - (f[0].length - s.length),
|
|
9185
9185
|
to: i
|
|
9186
|
-
}, { commands: y, chain: D, can:
|
|
9186
|
+
}, { commands: y, chain: D, can: v } = new Or({
|
|
9187
9187
|
editor: t,
|
|
9188
9188
|
state: m
|
|
9189
9189
|
});
|
|
@@ -9193,7 +9193,7 @@ function ni(n) {
|
|
|
9193
9193
|
match: f,
|
|
9194
9194
|
commands: y,
|
|
9195
9195
|
chain: D,
|
|
9196
|
-
can:
|
|
9196
|
+
can: v
|
|
9197
9197
|
}) === null || !p.steps.length || (p.setMeta(l, {
|
|
9198
9198
|
transform: p,
|
|
9199
9199
|
from: r,
|
|
@@ -9288,9 +9288,9 @@ function Jd(n) {
|
|
|
9288
9288
|
Ud(m, s.find).forEach((y) => {
|
|
9289
9289
|
if (y.index === void 0)
|
|
9290
9290
|
return;
|
|
9291
|
-
const D = f + y.index + 1,
|
|
9291
|
+
const D = f + y.index + 1, v = D + y[0].length, N = {
|
|
9292
9292
|
from: t.tr.mapping.map(D),
|
|
9293
|
-
to: t.tr.mapping.map(
|
|
9293
|
+
to: t.tr.mapping.map(v)
|
|
9294
9294
|
}, T = s.handler({
|
|
9295
9295
|
state: t,
|
|
9296
9296
|
range: N,
|
|
@@ -9479,7 +9479,7 @@ class Rt {
|
|
|
9479
9479
|
if (!o)
|
|
9480
9480
|
return [];
|
|
9481
9481
|
const l = (a, u, c, d) => {
|
|
9482
|
-
const h =
|
|
9482
|
+
const h = Ai(a, i);
|
|
9483
9483
|
return o()({
|
|
9484
9484
|
editor: e,
|
|
9485
9485
|
node: a,
|
|
@@ -9597,7 +9597,7 @@ const Qd = Z.create({
|
|
|
9597
9597
|
(p || p === 0) && e.lift(f, p);
|
|
9598
9598
|
});
|
|
9599
9599
|
}), !0;
|
|
9600
|
-
}, nh = (n) => (e) => n(e), rh = () => ({ state: n, dispatch: e }) =>
|
|
9600
|
+
}, nh = (n) => (e) => n(e), rh = () => ({ state: n, dispatch: e }) => Ad(n, e), ih = (n) => ({ tr: e, state: t, dispatch: r }) => {
|
|
9601
9601
|
const i = Q(n, t.schema), s = e.selection.$anchor;
|
|
9602
9602
|
for (let o = s.depth; o > 0; o -= 1)
|
|
9603
9603
|
if (s.node(o).type === i) {
|
|
@@ -9611,7 +9611,7 @@ const Qd = Z.create({
|
|
|
9611
9611
|
}, sh = (n) => ({ tr: e, dispatch: t }) => {
|
|
9612
9612
|
const { from: r, to: i } = n;
|
|
9613
9613
|
return t && e.delete(r, i), !0;
|
|
9614
|
-
}, oh = () => ({ state: n, dispatch: e }) => yd(n, e), lh = () => ({ commands: n }) => n.keyboardShortcut("Enter"), ah = () => ({ state: n, dispatch: e }) =>
|
|
9614
|
+
}, oh = () => ({ state: n, dispatch: e }) => yd(n, e), lh = () => ({ commands: n }) => n.keyboardShortcut("Enter"), ah = () => ({ state: n, dispatch: e }) => vd(n, e);
|
|
9615
9615
|
function Zn(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;
|
|
@@ -9812,7 +9812,7 @@ const kh = (n) => ({ editor: e, view: t, tr: r, dispatch: i }) => {
|
|
|
9812
9812
|
c && i && r.maybeStep(c);
|
|
9813
9813
|
}), !0;
|
|
9814
9814
|
};
|
|
9815
|
-
function
|
|
9815
|
+
function vn(n, e, t = {}) {
|
|
9816
9816
|
const { from: r, to: i, empty: s } = n.selection, o = e ? Q(e, n.schema) : null, l = [];
|
|
9817
9817
|
n.doc.nodesBetween(r, i, (d, h) => {
|
|
9818
9818
|
if (d.isText)
|
|
@@ -9829,11 +9829,11 @@ function An(n, e, t = {}) {
|
|
|
9829
9829
|
}
|
|
9830
9830
|
const wh = (n, e = {}) => ({ state: t, dispatch: r }) => {
|
|
9831
9831
|
const i = Q(n, t.schema);
|
|
9832
|
-
return
|
|
9833
|
-
}, xh = () => ({ state: n, dispatch: e }) => Sd(n, e),
|
|
9832
|
+
return vn(t, i, e) ? wd(t, r) : !1;
|
|
9833
|
+
}, xh = () => ({ state: n, dispatch: e }) => Sd(n, e), vh = (n) => ({ state: e, dispatch: t }) => {
|
|
9834
9834
|
const r = Q(n, e.schema);
|
|
9835
9835
|
return Rd(r)(e, t);
|
|
9836
|
-
},
|
|
9836
|
+
}, Ah = () => ({ state: n, dispatch: e }) => xd(n, e);
|
|
9837
9837
|
function Lr(n, e) {
|
|
9838
9838
|
return e.nodes[n] ? "node" : e.marks[n] ? "mark" : null;
|
|
9839
9839
|
}
|
|
@@ -9902,11 +9902,11 @@ function pa(n, e) {
|
|
|
9902
9902
|
function ts(n) {
|
|
9903
9903
|
return (e) => pa(e.$from, n);
|
|
9904
9904
|
}
|
|
9905
|
-
function
|
|
9905
|
+
function zh(n, e) {
|
|
9906
9906
|
const t = Ie.fromSchema(e).serializeFragment(n), i = document.implementation.createHTMLDocument().createElement("div");
|
|
9907
9907
|
return i.appendChild(t), i.innerHTML;
|
|
9908
9908
|
}
|
|
9909
|
-
function
|
|
9909
|
+
function _h(n, e) {
|
|
9910
9910
|
const t = {
|
|
9911
9911
|
from: 0,
|
|
9912
9912
|
to: n.content.size
|
|
@@ -10000,8 +10000,8 @@ function Ei(n, e, t = {}) {
|
|
|
10000
10000
|
n.doc.nodesBetween(f, p, (m, g) => {
|
|
10001
10001
|
if (!m.isText && !m.marks.length)
|
|
10002
10002
|
return;
|
|
10003
|
-
const y = Math.max(f, g), D = Math.min(p, g + m.nodeSize),
|
|
10004
|
-
o +=
|
|
10003
|
+
const y = Math.max(f, g), D = Math.min(p, g + m.nodeSize), v = D - y;
|
|
10004
|
+
o += v, l.push(...m.marks.map((N) => ({
|
|
10005
10005
|
mark: N,
|
|
10006
10006
|
from: y,
|
|
10007
10007
|
to: D
|
|
@@ -10014,9 +10014,9 @@ function Ei(n, e, t = {}) {
|
|
|
10014
10014
|
}
|
|
10015
10015
|
function Wh(n, e, t = {}) {
|
|
10016
10016
|
if (!e)
|
|
10017
|
-
return
|
|
10017
|
+
return vn(n, null, t) || Ei(n, null, t);
|
|
10018
10018
|
const r = Lr(e, n.schema);
|
|
10019
|
-
return r === "node" ?
|
|
10019
|
+
return r === "node" ? vn(n, e, t) : r === "mark" ? Ei(n, e, t) : !1;
|
|
10020
10020
|
}
|
|
10021
10021
|
function Co(n, e) {
|
|
10022
10022
|
const { nodeExtensions: t } = Nr(e), r = t.find((o) => o.name === n);
|
|
@@ -10117,7 +10117,7 @@ const Gh = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
|
|
|
10117
10117
|
const r = Q(n, e.schema);
|
|
10118
10118
|
return Pd(r)(e, t);
|
|
10119
10119
|
};
|
|
10120
|
-
function
|
|
10120
|
+
function zn(n, e, t) {
|
|
10121
10121
|
return Object.fromEntries(Object.entries(t).filter(([r]) => {
|
|
10122
10122
|
const i = n.find((s) => s.type === e && s.name === r);
|
|
10123
10123
|
return i ? i.attribute.keepOnSplit : !1;
|
|
@@ -10131,7 +10131,7 @@ function ko(n, e) {
|
|
|
10131
10131
|
}
|
|
10132
10132
|
}
|
|
10133
10133
|
const tf = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, editor: i }) => {
|
|
10134
|
-
const { selection: s, doc: o } = e, { $from: l, $to: a } = s, u = i.extensionManager.attributes, c =
|
|
10134
|
+
const { selection: s, doc: o } = e, { $from: l, $to: a } = s, u = i.extensionManager.attributes, c = zn(u, l.node().type.name, l.node().attrs);
|
|
10135
10135
|
if (s instanceof S && s.node.isBlock)
|
|
10136
10136
|
return !l.parentOffset || !Ht(o, l.pos) ? !1 : (r && (n && ko(t, i.extensionManager.splittableMarks), e.split(l.pos).scrollIntoView()), !0);
|
|
10137
10137
|
if (!l.parent.isBlock)
|
|
@@ -10171,7 +10171,7 @@ const tf = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
|
|
|
10171
10171
|
const y = l.index(-1) ? 1 : l.index(-2) ? 2 : 3;
|
|
10172
10172
|
for (let R = l.depth - y; R >= l.depth - 3; R -= 1)
|
|
10173
10173
|
g = b.from(l.node(R).copy(g));
|
|
10174
|
-
const D = l.indexAfter(-1) < l.node(-2).childCount ? 1 : l.indexAfter(-2) < l.node(-3).childCount ? 2 : 3,
|
|
10174
|
+
const D = l.indexAfter(-1) < l.node(-2).childCount ? 1 : l.indexAfter(-2) < l.node(-3).childCount ? 2 : 3, v = zn(d, l.node().type.name, l.node().attrs), N = ((s = o.contentMatch.defaultType) === null || s === void 0 ? void 0 : s.createAndFill(v)) || void 0;
|
|
10175
10175
|
g = g.append(b.from(o.createAndFill(null, N) || void 0));
|
|
10176
10176
|
const T = l.before(l.depth - (y - 1));
|
|
10177
10177
|
e.replace(T, l.after(-D), new k(g, 4 - y, 0));
|
|
@@ -10184,7 +10184,7 @@ const tf = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
|
|
|
10184
10184
|
}
|
|
10185
10185
|
return !0;
|
|
10186
10186
|
}
|
|
10187
|
-
const h = a.pos === l.end() ? c.contentMatchAt(0).defaultType : null, f =
|
|
10187
|
+
const h = a.pos === l.end() ? c.contentMatchAt(0).defaultType : null, f = zn(d, c.type.name, c.attrs), p = zn(d, l.node().type.name, l.node().attrs);
|
|
10188
10188
|
e.delete(l.pos, a.pos);
|
|
10189
10189
|
const m = h ? [{ type: o, attrs: f }, { type: h, attrs: p }] : [{ type: o, attrs: f }];
|
|
10190
10190
|
return Ht(e.doc, l.pos, 2) ? (r && e.split(l.pos, 2, m).scrollIntoView(), !0) : !1;
|
|
@@ -10223,10 +10223,10 @@ const tf = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
|
|
|
10223
10223
|
return Ei(r, o, e) ? i.unsetMark(o, { extendEmptyMarkRange: s }) : i.setMark(o, e);
|
|
10224
10224
|
}, of = (n, e, t = {}) => ({ state: r, commands: i }) => {
|
|
10225
10225
|
const s = Q(n, r.schema), o = Q(e, r.schema);
|
|
10226
|
-
return
|
|
10226
|
+
return vn(r, s, t) ? i.setNode(o) : i.setNode(s, t);
|
|
10227
10227
|
}, lf = (n, e = {}) => ({ state: t, commands: r }) => {
|
|
10228
10228
|
const i = Q(n, t.schema);
|
|
10229
|
-
return
|
|
10229
|
+
return vn(t, i, e) ? r.lift(i) : r.wrapIn(i, e);
|
|
10230
10230
|
}, af = () => ({ state: n, dispatch: e }) => {
|
|
10231
10231
|
const t = n.plugins;
|
|
10232
10232
|
for (let r = 0; r < t.length; r += 1) {
|
|
@@ -10316,8 +10316,8 @@ var pf = /* @__PURE__ */ Object.freeze({
|
|
|
10316
10316
|
keyboardShortcut: kh,
|
|
10317
10317
|
lift: wh,
|
|
10318
10318
|
liftEmptyBlock: xh,
|
|
10319
|
-
liftListItem:
|
|
10320
|
-
newlineInCode:
|
|
10319
|
+
liftListItem: vh,
|
|
10320
|
+
newlineInCode: Ah,
|
|
10321
10321
|
resetAttributes: Sh,
|
|
10322
10322
|
scrollIntoView: Eh,
|
|
10323
10323
|
selectAll: Mh,
|
|
@@ -10567,7 +10567,7 @@ function wf(n, e) {
|
|
|
10567
10567
|
const r = document.createElement("style");
|
|
10568
10568
|
return e && r.setAttribute("nonce", e), r.setAttribute("data-tiptap-style", ""), r.innerHTML = n, document.getElementsByTagName("head")[0].appendChild(r), r;
|
|
10569
10569
|
}
|
|
10570
|
-
let xf = class extends
|
|
10570
|
+
let xf = class extends zd {
|
|
10571
10571
|
constructor(e = {}) {
|
|
10572
10572
|
super(), this.isFocused = !1, this.extensionStorage = {}, this.options = {
|
|
10573
10573
|
element: document.createElement("div"),
|
|
@@ -10790,7 +10790,7 @@ let xf = class extends _d {
|
|
|
10790
10790
|
* Get the document as HTML.
|
|
10791
10791
|
*/
|
|
10792
10792
|
getHTML() {
|
|
10793
|
-
return
|
|
10793
|
+
return zh(this.state.doc.content, this.schema);
|
|
10794
10794
|
}
|
|
10795
10795
|
/**
|
|
10796
10796
|
* Get the document as text.
|
|
@@ -10799,7 +10799,7 @@ let xf = class extends _d {
|
|
|
10799
10799
|
const { blockSeparator: t = `
|
|
10800
10800
|
|
|
10801
10801
|
`, textSerializers: r = {} } = e || {};
|
|
10802
|
-
return
|
|
10802
|
+
return _h(this.state.doc, {
|
|
10803
10803
|
blockSeparator: t,
|
|
10804
10804
|
textSerializers: {
|
|
10805
10805
|
...r,
|
|
@@ -10835,7 +10835,7 @@ let xf = class extends _d {
|
|
|
10835
10835
|
return !(!((e = this.view) === null || e === void 0) && e.docView);
|
|
10836
10836
|
}
|
|
10837
10837
|
};
|
|
10838
|
-
function
|
|
10838
|
+
function At(n) {
|
|
10839
10839
|
return new Fr({
|
|
10840
10840
|
find: n.find,
|
|
10841
10841
|
handler: ({ state: e, range: t, match: r }) => {
|
|
@@ -10885,7 +10885,7 @@ function rs(n) {
|
|
|
10885
10885
|
return new Fr({
|
|
10886
10886
|
find: n.find,
|
|
10887
10887
|
handler: ({ state: e, range: t, match: r }) => {
|
|
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 &&
|
|
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);
|
|
10889
10889
|
if (!a)
|
|
10890
10890
|
return null;
|
|
10891
10891
|
s.wrap(l, a);
|
|
@@ -10975,7 +10975,7 @@ class q {
|
|
|
10975
10975
|
})), t;
|
|
10976
10976
|
}
|
|
10977
10977
|
}
|
|
10978
|
-
class
|
|
10978
|
+
class vf {
|
|
10979
10979
|
constructor(e, t, r) {
|
|
10980
10980
|
this.isDragging = !1, this.component = e, this.editor = t.editor, this.options = {
|
|
10981
10981
|
stopEvent: null,
|
|
@@ -10998,8 +10998,8 @@ class Af {
|
|
|
10998
10998
|
return;
|
|
10999
10999
|
let h = 0, f = 0;
|
|
11000
11000
|
if (this.dom !== d) {
|
|
11001
|
-
const g = this.dom.getBoundingClientRect(), y = d.getBoundingClientRect(), D = (i = e.offsetX) !== null && i !== void 0 ? i : (s = e.nativeEvent) === null || s === void 0 ? void 0 : s.offsetX,
|
|
11002
|
-
h = y.x - g.x + D, f = y.y - g.y +
|
|
11001
|
+
const g = this.dom.getBoundingClientRect(), y = d.getBoundingClientRect(), D = (i = e.offsetX) !== null && i !== void 0 ? i : (s = e.nativeEvent) === null || s === void 0 ? void 0 : s.offsetX, v = (o = e.offsetY) !== null && o !== void 0 ? o : (l = e.nativeEvent) === null || l === void 0 ? void 0 : l.offsetY;
|
|
11002
|
+
h = y.x - g.x + D, f = y.y - g.y + v;
|
|
11003
11003
|
}
|
|
11004
11004
|
(a = e.dataTransfer) === null || a === void 0 || a.setDragImage(this.dom, h, f);
|
|
11005
11005
|
const p = S.create(u.state.doc, this.getPos()), m = u.state.tr.setSelection(p);
|
|
@@ -11068,7 +11068,7 @@ function at(n) {
|
|
|
11068
11068
|
}
|
|
11069
11069
|
});
|
|
11070
11070
|
}
|
|
11071
|
-
function
|
|
11071
|
+
function Af(n) {
|
|
11072
11072
|
return n.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
11073
11073
|
}
|
|
11074
11074
|
class Sf {
|
|
@@ -11335,7 +11335,7 @@ const Nf = {
|
|
|
11335
11335
|
required: !0
|
|
11336
11336
|
}
|
|
11337
11337
|
};
|
|
11338
|
-
class Ff extends
|
|
11338
|
+
class Ff extends vf {
|
|
11339
11339
|
mount() {
|
|
11340
11340
|
var e, t;
|
|
11341
11341
|
const r = {
|
|
@@ -11423,7 +11423,7 @@ const Rf = /^\s*>\s$/, Lf = q.create({
|
|
|
11423
11423
|
];
|
|
11424
11424
|
},
|
|
11425
11425
|
renderHTML({ HTMLAttributes: n }) {
|
|
11426
|
-
return ["blockquote",
|
|
11426
|
+
return ["blockquote", _(this.options.HTMLAttributes, n), 0];
|
|
11427
11427
|
},
|
|
11428
11428
|
addCommands() {
|
|
11429
11429
|
return {
|
|
@@ -11445,7 +11445,7 @@ const Rf = /^\s*>\s$/, Lf = q.create({
|
|
|
11445
11445
|
})
|
|
11446
11446
|
];
|
|
11447
11447
|
}
|
|
11448
|
-
}), If = /(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/, Pf = /(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,
|
|
11448
|
+
}), If = /(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/, Pf = /(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g, zf = /(?:^|\s)((?:__)((?:[^__]+))(?:__))$/, _f = /(?:^|\s)((?:__)((?:[^__]+))(?:__))/g, $f = we.create({
|
|
11449
11449
|
name: "bold",
|
|
11450
11450
|
addOptions() {
|
|
11451
11451
|
return {
|
|
@@ -11468,7 +11468,7 @@ const Rf = /^\s*>\s$/, Lf = q.create({
|
|
|
11468
11468
|
];
|
|
11469
11469
|
},
|
|
11470
11470
|
renderHTML({ HTMLAttributes: n }) {
|
|
11471
|
-
return ["strong",
|
|
11471
|
+
return ["strong", _(this.options.HTMLAttributes, n), 0];
|
|
11472
11472
|
},
|
|
11473
11473
|
addCommands() {
|
|
11474
11474
|
return {
|
|
@@ -11485,12 +11485,12 @@ const Rf = /^\s*>\s$/, Lf = q.create({
|
|
|
11485
11485
|
},
|
|
11486
11486
|
addInputRules() {
|
|
11487
11487
|
return [
|
|
11488
|
-
|
|
11488
|
+
At({
|
|
11489
11489
|
find: If,
|
|
11490
11490
|
type: this.type
|
|
11491
11491
|
}),
|
|
11492
|
-
|
|
11493
|
-
find:
|
|
11492
|
+
At({
|
|
11493
|
+
find: zf,
|
|
11494
11494
|
type: this.type
|
|
11495
11495
|
})
|
|
11496
11496
|
];
|
|
@@ -11502,7 +11502,7 @@ const Rf = /^\s*>\s$/, Lf = q.create({
|
|
|
11502
11502
|
type: this.type
|
|
11503
11503
|
}),
|
|
11504
11504
|
at({
|
|
11505
|
-
find:
|
|
11505
|
+
find: _f,
|
|
11506
11506
|
type: this.type
|
|
11507
11507
|
})
|
|
11508
11508
|
];
|
|
@@ -11525,7 +11525,7 @@ const Rf = /^\s*>\s$/, Lf = q.create({
|
|
|
11525
11525
|
];
|
|
11526
11526
|
},
|
|
11527
11527
|
renderHTML({ HTMLAttributes: n }) {
|
|
11528
|
-
return ["ul",
|
|
11528
|
+
return ["ul", _(this.options.HTMLAttributes, n), 0];
|
|
11529
11529
|
},
|
|
11530
11530
|
addCommands() {
|
|
11531
11531
|
return {
|
|
@@ -11561,7 +11561,7 @@ const Rf = /^\s*>\s$/, Lf = q.create({
|
|
|
11561
11561
|
];
|
|
11562
11562
|
},
|
|
11563
11563
|
renderHTML({ HTMLAttributes: n }) {
|
|
11564
|
-
return ["code",
|
|
11564
|
+
return ["code", _(this.options.HTMLAttributes, n), 0];
|
|
11565
11565
|
},
|
|
11566
11566
|
addCommands() {
|
|
11567
11567
|
return {
|
|
@@ -11577,7 +11577,7 @@ const Rf = /^\s*>\s$/, Lf = q.create({
|
|
|
11577
11577
|
},
|
|
11578
11578
|
addInputRules() {
|
|
11579
11579
|
return [
|
|
11580
|
-
|
|
11580
|
+
At({
|
|
11581
11581
|
find: jf,
|
|
11582
11582
|
type: this.type
|
|
11583
11583
|
})
|
|
@@ -11630,7 +11630,7 @@ const Rf = /^\s*>\s$/, Lf = q.create({
|
|
|
11630
11630
|
renderHTML({ node: n, HTMLAttributes: e }) {
|
|
11631
11631
|
return [
|
|
11632
11632
|
"pre",
|
|
11633
|
-
|
|
11633
|
+
_(this.options.HTMLAttributes, e),
|
|
11634
11634
|
[
|
|
11635
11635
|
"code",
|
|
11636
11636
|
{
|
|
@@ -12039,7 +12039,7 @@ const op = Z.create({
|
|
|
12039
12039
|
];
|
|
12040
12040
|
},
|
|
12041
12041
|
renderHTML({ HTMLAttributes: n }) {
|
|
12042
|
-
return ["br",
|
|
12042
|
+
return ["br", _(this.options.HTMLAttributes, n)];
|
|
12043
12043
|
},
|
|
12044
12044
|
renderText() {
|
|
12045
12045
|
return `
|
|
@@ -12097,7 +12097,7 @@ const op = Z.create({
|
|
|
12097
12097
|
}));
|
|
12098
12098
|
},
|
|
12099
12099
|
renderHTML({ node: n, HTMLAttributes: e }) {
|
|
12100
|
-
return [`h${this.options.levels.includes(n.attrs.level) ? n.attrs.level : this.options.levels[0]}`,
|
|
12100
|
+
return [`h${this.options.levels.includes(n.attrs.level) ? n.attrs.level : this.options.levels[0]}`, _(this.options.HTMLAttributes, e), 0];
|
|
12101
12101
|
},
|
|
12102
12102
|
addCommands() {
|
|
12103
12103
|
return {
|
|
@@ -12219,7 +12219,7 @@ var up = /* @__PURE__ */ function(n) {
|
|
|
12219
12219
|
}, e;
|
|
12220
12220
|
}(ne), Ca = ne;
|
|
12221
12221
|
const cp = 500;
|
|
12222
|
-
class
|
|
12222
|
+
class Ae {
|
|
12223
12223
|
constructor(e, t) {
|
|
12224
12224
|
this.items = e, this.eventCount = t;
|
|
12225
12225
|
}
|
|
@@ -12249,7 +12249,7 @@ class ve {
|
|
|
12249
12249
|
} else
|
|
12250
12250
|
o.maybeStep(d.step);
|
|
12251
12251
|
if (d.selection)
|
|
12252
|
-
return l = i ? d.selection.map(i.slice(s)) : d.selection, a = new
|
|
12252
|
+
return l = i ? d.selection.map(i.slice(s)) : d.selection, a = new Ae(this.items.slice(0, r).append(c.reverse().concat(u)), this.eventCount - 1), !1;
|
|
12253
12253
|
}, this.items.length, 0), { remaining: a, transform: o, selection: l };
|
|
12254
12254
|
}
|
|
12255
12255
|
// Create a new branch with the given transform added.
|
|
@@ -12260,7 +12260,7 @@ class ve {
|
|
|
12260
12260
|
(f = a && a.merge(h)) && (h = f, c ? s.pop() : l = l.slice(0, l.length - 1)), s.push(h), t && (o++, t = void 0), i || (a = h);
|
|
12261
12261
|
}
|
|
12262
12262
|
let u = o - r.depth;
|
|
12263
|
-
return u > hp && (l = dp(l, u), o -= u), new
|
|
12263
|
+
return u > hp && (l = dp(l, u), o -= u), new Ae(l.append(s), o);
|
|
12264
12264
|
}
|
|
12265
12265
|
remapping(e, t) {
|
|
12266
12266
|
let r = new $t();
|
|
@@ -12270,7 +12270,7 @@ class ve {
|
|
|
12270
12270
|
}, e, t), r;
|
|
12271
12271
|
}
|
|
12272
12272
|
addMaps(e) {
|
|
12273
|
-
return this.eventCount == 0 ? this : new
|
|
12273
|
+
return this.eventCount == 0 ? this : new Ae(this.items.append(e.map((t) => new Fe(t))), this.eventCount);
|
|
12274
12274
|
}
|
|
12275
12275
|
// When the collab module receives remote changes, the history has
|
|
12276
12276
|
// to know about those, so that it can adjust the steps that were
|
|
@@ -12299,7 +12299,7 @@ class ve {
|
|
|
12299
12299
|
let u = [];
|
|
12300
12300
|
for (let h = t; h < o; h++)
|
|
12301
12301
|
u.push(new Fe(s.maps[h]));
|
|
12302
|
-
let c = this.items.slice(0, i).append(u).append(r), d = new
|
|
12302
|
+
let c = this.items.slice(0, i).append(u).append(r), d = new Ae(c, l);
|
|
12303
12303
|
return d.emptyItemCount() > cp && (d = d.compress(this.items.length - r.length)), d;
|
|
12304
12304
|
}
|
|
12305
12305
|
emptyItemCount() {
|
|
@@ -12329,10 +12329,10 @@ class ve {
|
|
|
12329
12329
|
}
|
|
12330
12330
|
} else
|
|
12331
12331
|
o.map && r--;
|
|
12332
|
-
}, this.items.length, 0), new
|
|
12332
|
+
}, this.items.length, 0), new Ae(Ca.from(i.reverse()), s);
|
|
12333
12333
|
}
|
|
12334
12334
|
}
|
|
12335
|
-
|
|
12335
|
+
Ae.empty = new Ae(Ca.empty, 0);
|
|
12336
12336
|
function dp(n, e) {
|
|
12337
12337
|
let t;
|
|
12338
12338
|
return n.forEach((r, i) => {
|
|
@@ -12367,10 +12367,10 @@ function fp(n, e, t, r) {
|
|
|
12367
12367
|
if (t.steps.length == 0)
|
|
12368
12368
|
return n;
|
|
12369
12369
|
if (o && o.getMeta(st))
|
|
12370
|
-
return o.getMeta(st).redo ? new Ye(n.done.addTransform(t, void 0, r,
|
|
12370
|
+
return o.getMeta(st).redo ? new Ye(n.done.addTransform(t, void 0, r, _n(e)), n.undone, vo(t.mapping.maps[t.steps.length - 1]), n.prevTime) : new Ye(n.done, n.undone.addTransform(t, void 0, r, _n(e)), null, n.prevTime);
|
|
12371
12371
|
if (t.getMeta("addToHistory") !== !1 && !(o && o.getMeta("addToHistory") === !1)) {
|
|
12372
|
-
let l = n.prevTime == 0 || !o && (n.prevTime < (t.time || 0) - r.newGroupDelay || !pp(t, n.prevRanges)), a = o ? ii(n.prevRanges, t.mapping) :
|
|
12373
|
-
return new Ye(n.done.addTransform(t, l ? e.selection.getBookmark() : void 0, r,
|
|
12372
|
+
let l = n.prevTime == 0 || !o && (n.prevTime < (t.time || 0) - r.newGroupDelay || !pp(t, n.prevRanges)), a = o ? ii(n.prevRanges, t.mapping) : vo(t.mapping.maps[t.steps.length - 1]);
|
|
12373
|
+
return new Ye(n.done.addTransform(t, l ? e.selection.getBookmark() : void 0, r, _n(e)), Ae.empty, a, t.time);
|
|
12374
12374
|
} else
|
|
12375
12375
|
return (s = t.getMeta("rebased")) ? new Ye(n.done.rebased(t, s), n.undone.rebased(t, s), ii(n.prevRanges, t.mapping), n.prevTime) : new Ye(n.done.addMaps(t.mapping.maps), n.undone.addMaps(t.mapping.maps), ii(n.prevRanges, t.mapping), n.prevTime);
|
|
12376
12376
|
}
|
|
@@ -12385,7 +12385,7 @@ function pp(n, e) {
|
|
|
12385
12385
|
r <= e[s + 1] && i >= e[s] && (t = !0);
|
|
12386
12386
|
}), t;
|
|
12387
12387
|
}
|
|
12388
|
-
function
|
|
12388
|
+
function vo(n) {
|
|
12389
12389
|
let e = [];
|
|
12390
12390
|
return n.forEach((t, r, i, s) => e.push(i, s)), e;
|
|
12391
12391
|
}
|
|
@@ -12400,17 +12400,17 @@ function ii(n, e) {
|
|
|
12400
12400
|
return t;
|
|
12401
12401
|
}
|
|
12402
12402
|
function ka(n, e, t, r) {
|
|
12403
|
-
let i =
|
|
12403
|
+
let i = _n(e), s = st.get(e).spec.config, o = (r ? n.undone : n.done).popEvent(e, i);
|
|
12404
12404
|
if (!o)
|
|
12405
12405
|
return;
|
|
12406
12406
|
let l = o.selection.resolve(o.transform.doc), a = (r ? n.done : n.undone).addTransform(o.transform, e.selection.getBookmark(), s, i), u = new Ye(r ? a : o.remaining, r ? o.remaining : a, null, 0);
|
|
12407
12407
|
t(o.transform.setSelection(l).setMeta(st, { redo: r, historyState: u }).scrollIntoView());
|
|
12408
12408
|
}
|
|
12409
|
-
let si = !1,
|
|
12410
|
-
function
|
|
12409
|
+
let si = !1, Ao = null;
|
|
12410
|
+
function _n(n) {
|
|
12411
12411
|
let e = n.plugins;
|
|
12412
|
-
if (
|
|
12413
|
-
si = !1,
|
|
12412
|
+
if (Ao != e) {
|
|
12413
|
+
si = !1, Ao = e;
|
|
12414
12414
|
for (let t = 0; t < e.length; t++)
|
|
12415
12415
|
if (e[t].spec.historyPreserveItems) {
|
|
12416
12416
|
si = !0;
|
|
@@ -12428,7 +12428,7 @@ function gp(n = {}) {
|
|
|
12428
12428
|
key: st,
|
|
12429
12429
|
state: {
|
|
12430
12430
|
init() {
|
|
12431
|
-
return new Ye(
|
|
12431
|
+
return new Ye(Ae.empty, Ae.empty, null, 0);
|
|
12432
12432
|
},
|
|
12433
12433
|
apply(e, t, r) {
|
|
12434
12434
|
return fp(t, r, e, n);
|
|
@@ -12494,7 +12494,7 @@ const wa = (n, e) => {
|
|
|
12494
12494
|
];
|
|
12495
12495
|
},
|
|
12496
12496
|
renderHTML({ HTMLAttributes: n }) {
|
|
12497
|
-
return ["hr",
|
|
12497
|
+
return ["hr", _(this.options.HTMLAttributes, n)];
|
|
12498
12498
|
},
|
|
12499
12499
|
addCommands() {
|
|
12500
12500
|
return {
|
|
@@ -12544,7 +12544,7 @@ const wa = (n, e) => {
|
|
|
12544
12544
|
];
|
|
12545
12545
|
},
|
|
12546
12546
|
renderHTML({ HTMLAttributes: n }) {
|
|
12547
|
-
return ["em",
|
|
12547
|
+
return ["em", _(this.options.HTMLAttributes, n), 0];
|
|
12548
12548
|
},
|
|
12549
12549
|
addCommands() {
|
|
12550
12550
|
return {
|
|
@@ -12561,11 +12561,11 @@ const wa = (n, e) => {
|
|
|
12561
12561
|
},
|
|
12562
12562
|
addInputRules() {
|
|
12563
12563
|
return [
|
|
12564
|
-
|
|
12564
|
+
At({
|
|
12565
12565
|
find: Dp,
|
|
12566
12566
|
type: this.type
|
|
12567
12567
|
}),
|
|
12568
|
-
|
|
12568
|
+
At({
|
|
12569
12569
|
find: kp,
|
|
12570
12570
|
type: this.type
|
|
12571
12571
|
})
|
|
@@ -12583,7 +12583,7 @@ const wa = (n, e) => {
|
|
|
12583
12583
|
})
|
|
12584
12584
|
];
|
|
12585
12585
|
}
|
|
12586
|
-
}),
|
|
12586
|
+
}), vp = q.create({
|
|
12587
12587
|
name: "listItem",
|
|
12588
12588
|
addOptions() {
|
|
12589
12589
|
return {
|
|
@@ -12600,7 +12600,7 @@ const wa = (n, e) => {
|
|
|
12600
12600
|
];
|
|
12601
12601
|
},
|
|
12602
12602
|
renderHTML({ HTMLAttributes: n }) {
|
|
12603
|
-
return ["li",
|
|
12603
|
+
return ["li", _(this.options.HTMLAttributes, n), 0];
|
|
12604
12604
|
},
|
|
12605
12605
|
addKeyboardShortcuts() {
|
|
12606
12606
|
return {
|
|
@@ -12609,7 +12609,7 @@ const wa = (n, e) => {
|
|
|
12609
12609
|
"Shift-Tab": () => this.editor.commands.liftListItem(this.name)
|
|
12610
12610
|
};
|
|
12611
12611
|
}
|
|
12612
|
-
}),
|
|
12612
|
+
}), Ap = /^(\d+)\.\s$/, Sp = q.create({
|
|
12613
12613
|
name: "orderedList",
|
|
12614
12614
|
addOptions() {
|
|
12615
12615
|
return {
|
|
@@ -12638,7 +12638,7 @@ const wa = (n, e) => {
|
|
|
12638
12638
|
},
|
|
12639
12639
|
renderHTML({ HTMLAttributes: n }) {
|
|
12640
12640
|
const { start: e, ...t } = n;
|
|
12641
|
-
return e === 1 ? ["ol",
|
|
12641
|
+
return e === 1 ? ["ol", _(this.options.HTMLAttributes, t), 0] : ["ol", _(this.options.HTMLAttributes, n), 0];
|
|
12642
12642
|
},
|
|
12643
12643
|
addCommands() {
|
|
12644
12644
|
return {
|
|
@@ -12653,14 +12653,14 @@ const wa = (n, e) => {
|
|
|
12653
12653
|
addInputRules() {
|
|
12654
12654
|
return [
|
|
12655
12655
|
rs({
|
|
12656
|
-
find:
|
|
12656
|
+
find: Ap,
|
|
12657
12657
|
type: this.type,
|
|
12658
12658
|
getAttributes: (n) => ({ start: +n[1] }),
|
|
12659
12659
|
joinPredicate: (n, e) => e.childCount + e.attrs.start === +n[1]
|
|
12660
12660
|
})
|
|
12661
12661
|
];
|
|
12662
12662
|
}
|
|
12663
|
-
}),
|
|
12663
|
+
}), va = q.create({
|
|
12664
12664
|
name: "paragraph",
|
|
12665
12665
|
priority: 1e3,
|
|
12666
12666
|
addOptions() {
|
|
@@ -12676,7 +12676,7 @@ const wa = (n, e) => {
|
|
|
12676
12676
|
];
|
|
12677
12677
|
},
|
|
12678
12678
|
renderHTML({ HTMLAttributes: n }) {
|
|
12679
|
-
return ["p",
|
|
12679
|
+
return ["p", _(this.options.HTMLAttributes, n), 0];
|
|
12680
12680
|
},
|
|
12681
12681
|
addCommands() {
|
|
12682
12682
|
return {
|
|
@@ -12714,7 +12714,7 @@ const wa = (n, e) => {
|
|
|
12714
12714
|
];
|
|
12715
12715
|
},
|
|
12716
12716
|
renderHTML({ HTMLAttributes: n }) {
|
|
12717
|
-
return ["s",
|
|
12717
|
+
return ["s", _(this.options.HTMLAttributes, n), 0];
|
|
12718
12718
|
},
|
|
12719
12719
|
addCommands() {
|
|
12720
12720
|
return {
|
|
@@ -12730,7 +12730,7 @@ const wa = (n, e) => {
|
|
|
12730
12730
|
},
|
|
12731
12731
|
addInputRules() {
|
|
12732
12732
|
return [
|
|
12733
|
-
|
|
12733
|
+
At({
|
|
12734
12734
|
find: Ep,
|
|
12735
12735
|
type: this.type
|
|
12736
12736
|
})
|
|
@@ -12752,7 +12752,7 @@ const wa = (n, e) => {
|
|
|
12752
12752
|
addExtensions() {
|
|
12753
12753
|
var n, e, t, r, i, s, o, l, a, u, c, d, h, f, p, m, g, y;
|
|
12754
12754
|
const D = [];
|
|
12755
|
-
return this.options.blockquote !== !1 && D.push(Lf.configure((n = this.options) === null || n === void 0 ? void 0 : n.blockquote)), this.options.bold !== !1 && D.push($f.configure((e = this.options) === null || e === void 0 ? void 0 : e.bold)), this.options.bulletList !== !1 && D.push(Vf.configure((t = this.options) === null || t === void 0 ? void 0 : t.bulletList)), this.options.code !== !1 && D.push(qf.configure((r = this.options) === null || r === void 0 ? void 0 : r.code)), this.options.codeBlock !== !1 && D.push(Jf.configure((i = this.options) === null || i === void 0 ? void 0 : i.codeBlock)), this.options.document !== !1 && D.push(Gf.configure((s = this.options) === null || s === void 0 ? void 0 : s.document)), this.options.dropcursor !== !1 && D.push(Qf.configure((o = this.options) === null || o === void 0 ? void 0 : o.dropcursor)), this.options.gapcursor !== !1 && D.push(op.configure((l = this.options) === null || l === void 0 ? void 0 : l.gapcursor)), this.options.hardBreak !== !1 && D.push(lp.configure((a = this.options) === null || a === void 0 ? void 0 : a.hardBreak)), this.options.heading !== !1 && D.push(ap.configure((u = this.options) === null || u === void 0 ? void 0 : u.heading)), this.options.history !== !1 && D.push(yp.configure((c = this.options) === null || c === void 0 ? void 0 : c.history)), this.options.horizontalRule !== !1 && D.push(bp.configure((d = this.options) === null || d === void 0 ? void 0 : d.horizontalRule)), this.options.italic !== !1 && D.push(xp.configure((h = this.options) === null || h === void 0 ? void 0 : h.italic)), this.options.listItem !== !1 && D.push(
|
|
12755
|
+
return this.options.blockquote !== !1 && D.push(Lf.configure((n = this.options) === null || n === void 0 ? void 0 : n.blockquote)), this.options.bold !== !1 && D.push($f.configure((e = this.options) === null || e === void 0 ? void 0 : e.bold)), this.options.bulletList !== !1 && D.push(Vf.configure((t = this.options) === null || t === void 0 ? void 0 : t.bulletList)), this.options.code !== !1 && D.push(qf.configure((r = this.options) === null || r === void 0 ? void 0 : r.code)), this.options.codeBlock !== !1 && D.push(Jf.configure((i = this.options) === null || i === void 0 ? void 0 : i.codeBlock)), this.options.document !== !1 && D.push(Gf.configure((s = this.options) === null || s === void 0 ? void 0 : s.document)), this.options.dropcursor !== !1 && D.push(Qf.configure((o = this.options) === null || o === void 0 ? void 0 : o.dropcursor)), this.options.gapcursor !== !1 && D.push(op.configure((l = this.options) === null || l === void 0 ? void 0 : l.gapcursor)), this.options.hardBreak !== !1 && D.push(lp.configure((a = this.options) === null || a === void 0 ? void 0 : a.hardBreak)), this.options.heading !== !1 && D.push(ap.configure((u = this.options) === null || u === void 0 ? void 0 : u.heading)), this.options.history !== !1 && D.push(yp.configure((c = this.options) === null || c === void 0 ? void 0 : c.history)), this.options.horizontalRule !== !1 && D.push(bp.configure((d = this.options) === null || d === void 0 ? void 0 : d.horizontalRule)), this.options.italic !== !1 && D.push(xp.configure((h = this.options) === null || h === void 0 ? void 0 : h.italic)), this.options.listItem !== !1 && D.push(vp.configure((f = this.options) === null || f === void 0 ? void 0 : f.listItem)), this.options.orderedList !== !1 && D.push(Sp.configure((p = this.options) === null || p === void 0 ? void 0 : p.orderedList)), this.options.paragraph !== !1 && D.push(va.configure((m = this.options) === null || m === void 0 ? void 0 : m.paragraph)), this.options.strike !== !1 && D.push(Tp.configure((g = this.options) === null || g === void 0 ? void 0 : g.strike)), this.options.text !== !1 && D.push(Op.configure((y = this.options) === null || y === void 0 ? void 0 : y.text)), D;
|
|
12756
12756
|
}
|
|
12757
12757
|
}), Fp = /(?:^|\s)((?:==)((?:[^~=]+))(?:==))$/, Bp = /(?:^|\s)((?:==)((?:[^~=]+))(?:==))/g, Rp = we.create({
|
|
12758
12758
|
name: "highlight",
|
|
@@ -12782,7 +12782,7 @@ const wa = (n, e) => {
|
|
|
12782
12782
|
];
|
|
12783
12783
|
},
|
|
12784
12784
|
renderHTML({ HTMLAttributes: n }) {
|
|
12785
|
-
return ["mark",
|
|
12785
|
+
return ["mark", _(this.options.HTMLAttributes, n), 0];
|
|
12786
12786
|
},
|
|
12787
12787
|
addCommands() {
|
|
12788
12788
|
return {
|
|
@@ -12798,7 +12798,7 @@ const wa = (n, e) => {
|
|
|
12798
12798
|
},
|
|
12799
12799
|
addInputRules() {
|
|
12800
12800
|
return [
|
|
12801
|
-
|
|
12801
|
+
At({
|
|
12802
12802
|
find: Fp,
|
|
12803
12803
|
type: this.type
|
|
12804
12804
|
})
|
|
@@ -12832,7 +12832,7 @@ const wa = (n, e) => {
|
|
|
12832
12832
|
];
|
|
12833
12833
|
},
|
|
12834
12834
|
renderHTML({ HTMLAttributes: n }) {
|
|
12835
|
-
return ["u",
|
|
12835
|
+
return ["u", _(this.options.HTMLAttributes, n), 0];
|
|
12836
12836
|
},
|
|
12837
12837
|
addCommands() {
|
|
12838
12838
|
return {
|
|
@@ -12891,7 +12891,7 @@ ss.prototype = {
|
|
|
12891
12891
|
};
|
|
12892
12892
|
var L = function() {
|
|
12893
12893
|
return new ss();
|
|
12894
|
-
},
|
|
12894
|
+
}, A = function(e) {
|
|
12895
12895
|
return new ss(e);
|
|
12896
12896
|
}, C = function(e, t, r) {
|
|
12897
12897
|
e.j[t] || (e.j[t] = r);
|
|
@@ -12923,15 +12923,15 @@ var L = function() {
|
|
|
12923
12923
|
for (; s < o - 1; )
|
|
12924
12924
|
l = i(), C(e, t[s], l), e = l, s++;
|
|
12925
12925
|
C(e, t[o - 1], r);
|
|
12926
|
-
},
|
|
12926
|
+
}, ve = "DOMAIN", je = "LOCALHOST", Be = "TLD", be = "NUM", Yt = "PROTOCOL", ls = "MAILTO", Aa = "WS", as = "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", us = "COMMA", cr = "DOLLAR", Xe = "DOT", dr = "EQUALS", cs = "EXCLAMATION", hr = "HYPHEN", fr = "PERCENT", pr = "PIPE", mr = "PLUS", gr = "POUND", yr = "QUERY", ds = "QUOTE", hs = "SEMI", We = "SLASH", br = "TILDE", Dr = "UNDERSCORE", Cr = "SYM", Pp = /* @__PURE__ */ Object.freeze({
|
|
12927
12927
|
__proto__: null,
|
|
12928
|
-
DOMAIN:
|
|
12928
|
+
DOMAIN: ve,
|
|
12929
12929
|
LOCALHOST: je,
|
|
12930
12930
|
TLD: Be,
|
|
12931
12931
|
NUM: be,
|
|
12932
12932
|
PROTOCOL: Yt,
|
|
12933
12933
|
MAILTO: ls,
|
|
12934
|
-
WS:
|
|
12934
|
+
WS: Aa,
|
|
12935
12935
|
NL: as,
|
|
12936
12936
|
OPENBRACE: Lt,
|
|
12937
12937
|
OPENBRACKET: mn,
|
|
@@ -12940,11 +12940,11 @@ var L = function() {
|
|
|
12940
12940
|
CLOSEBRACE: pt,
|
|
12941
12941
|
CLOSEBRACKET: It,
|
|
12942
12942
|
CLOSEANGLEBRACKET: Pt,
|
|
12943
|
-
CLOSEPAREN:
|
|
12943
|
+
CLOSEPAREN: zt,
|
|
12944
12944
|
AMPERSAND: ir,
|
|
12945
12945
|
APOSTROPHE: sr,
|
|
12946
12946
|
ASTERISK: or,
|
|
12947
|
-
AT:
|
|
12947
|
+
AT: _t,
|
|
12948
12948
|
BACKSLASH: lr,
|
|
12949
12949
|
BACKTICK: ar,
|
|
12950
12950
|
CARET: ur,
|
|
@@ -12967,9 +12967,9 @@ var L = function() {
|
|
|
12967
12967
|
UNDERSCORE: Dr,
|
|
12968
12968
|
SYM: Cr
|
|
12969
12969
|
}), So = "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/, Eo = /\s/;
|
|
12970
|
-
function
|
|
12971
|
-
var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = L(), t =
|
|
12972
|
-
var N =
|
|
12970
|
+
function zp() {
|
|
12971
|
+
var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = L(), t = A(be), r = A(ve), i = L(), s = A(Aa), o = [[ln, r], [rn, r], [sn, r], [on, r]], l = function() {
|
|
12972
|
+
var N = A(ve);
|
|
12973
12973
|
return N.j = {
|
|
12974
12974
|
"-": i
|
|
12975
12975
|
}, N.jr = [].concat(o), N;
|
|
@@ -12977,20 +12977,20 @@ function _p() {
|
|
|
12977
12977
|
var T = l();
|
|
12978
12978
|
return T.t = N, T;
|
|
12979
12979
|
};
|
|
12980
|
-
Ip(e, [["'",
|
|
12981
|
-
`,
|
|
12980
|
+
Ip(e, [["'", A(sr)], ["{", A(Lt)], ["[", A(mn)], ["<", A(gn)], ["(", A(yn)], ["}", A(pt)], ["]", A(It)], [">", A(Pt)], [")", A(zt)], ["&", A(ir)], ["*", A(or)], ["@", A(_t)], ["`", A(ar)], ["^", A(ur)], [":", A(bn)], [",", A(us)], ["$", A(cr)], [".", A(Xe)], ["=", A(dr)], ["!", A(cs)], ["-", A(hr)], ["%", A(fr)], ["|", A(pr)], ["+", A(mr)], ["#", A(gr)], ["?", A(yr)], ['"', A(ds)], ["/", A(We)], [";", A(hs)], ["~", A(br)], ["_", A(Dr)], ["\\", A(lr)]]), C(e, `
|
|
12981
|
+
`, A(as)), G(e, Eo, s), C(s, `
|
|
12982
12982
|
`, L()), G(s, Eo, s);
|
|
12983
12983
|
for (var u = 0; u < So.length; u++)
|
|
12984
12984
|
ht(e, So[u], a(Be), l);
|
|
12985
12985
|
var c = l(), d = l(), h = l(), f = l();
|
|
12986
12986
|
ht(e, "file", c, l), ht(e, "ftp", d, l), ht(e, "http", h, l), ht(e, "mailto", f, l);
|
|
12987
|
-
var p = l(), m =
|
|
12987
|
+
var p = l(), m = A(Yt), g = A(ls);
|
|
12988
12988
|
C(d, "s", p), C(d, ":", m), C(h, "s", p), C(h, ":", m), C(c, ":", m), C(p, ":", m), C(f, ":", g);
|
|
12989
12989
|
for (var y = l(), D = 0; D < n.length; D++)
|
|
12990
12990
|
ht(e, n[D], y, l);
|
|
12991
|
-
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 =
|
|
12991
|
+
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 = A(Cr), e;
|
|
12992
12992
|
}
|
|
12993
|
-
function
|
|
12993
|
+
function _p(n, e) {
|
|
12994
12994
|
for (var t = $p(e.replace(/[A-Z]/g, function(f) {
|
|
12995
12995
|
return f.toLowerCase();
|
|
12996
12996
|
})), r = t.length, i = [], s = 0, o = 0; o < r; ) {
|
|
@@ -13219,12 +13219,12 @@ var Sa = Et("email", {
|
|
|
13219
13219
|
Url: Ge
|
|
13220
13220
|
});
|
|
13221
13221
|
function Wp() {
|
|
13222
|
-
var n = L(), e = L(), t = L(), r = L(), i = L(), s = L(), o = L(), l =
|
|
13223
|
-
C(n, as, Mn), C(n, Yt, e), C(n, ls, t), C(e, We, r), C(r, We, i), C(n, Be, s), C(n,
|
|
13224
|
-
var H = [ir, or,
|
|
13225
|
-
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,
|
|
13226
|
-
var He = [ir, sr, or, lr, ar, ur, pt, cr,
|
|
13227
|
-
return F(s, He, me), C(s,
|
|
13222
|
+
var n = L(), e = L(), t = L(), r = L(), i = L(), s = L(), o = L(), l = A(Ge), a = L(), u = A(Ge), c = A(Ge), d = L(), h = L(), f = L(), p = L(), m = L(), g = A(Ge), y = A(Ge), D = A(Ge), v = A(Ge), N = L(), T = L(), I = L(), R = L(), w = L(), z = L(), de = A(Ti), tn = L(), En = A(Ti), Oe = A(Sa), Ne = L(), me = L(), xe = L(), $e = L(), Mn = A(Ea);
|
|
13223
|
+
C(n, as, Mn), C(n, Yt, e), C(n, ls, t), C(e, We, r), C(r, We, i), C(n, Be, s), C(n, ve, s), C(n, je, l), C(n, be, s), C(i, Be, c), C(i, ve, c), C(i, be, c), C(i, je, c), C(s, Xe, o), C(w, Xe, z), C(o, Be, l), C(o, ve, s), C(o, be, s), C(o, je, s), C(z, Be, de), C(z, ve, w), C(z, be, w), C(z, je, w), C(l, Xe, o), C(de, Xe, 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);
|
|
13224
|
+
var H = [ir, or, _t, lr, ar, ur, cr, ve, dr, hr, je, be, fr, pr, mr, gr, Yt, We, Cr, br, Be, Dr], J = [sr, Pt, pt, It, zt, bn, us, Xe, cs, gn, Lt, mn, yn, yr, ds, hs];
|
|
13225
|
+
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(v, 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, v), 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(v, H, v), F(g, J, g), F(y, J, y), F(D, J, D), F(v, J, v), F(N, H, g), F(T, H, y), F(I, H, D), F(R, H, v), 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, Be, Oe), C(t, ve, 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);
|
|
13226
|
+
var He = [ir, sr, or, lr, ar, ur, pt, cr, ve, dr, hr, be, Lt, fr, pr, mr, gr, yr, We, Cr, br, Be, Dr];
|
|
13227
|
+
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, Xe, $e), F($e, He, me), C(xe, Be, w), C(xe, ve, w), C(xe, be, w), C(xe, je, de), n;
|
|
13228
13228
|
}
|
|
13229
13229
|
function qp(n, e, t) {
|
|
13230
13230
|
for (var r = t.length, i = 0, s = [], o = []; i < r; ) {
|
|
@@ -13262,7 +13262,7 @@ function Up(n) {
|
|
|
13262
13262
|
}
|
|
13263
13263
|
function Jp() {
|
|
13264
13264
|
ge.scanner = {
|
|
13265
|
-
start:
|
|
13265
|
+
start: zp(ge.customProtocols),
|
|
13266
13266
|
tokens: Pp
|
|
13267
13267
|
}, ge.parser = {
|
|
13268
13268
|
start: Wp(),
|
|
@@ -13279,7 +13279,7 @@ function Jp() {
|
|
|
13279
13279
|
ge.initialized = !0;
|
|
13280
13280
|
}
|
|
13281
13281
|
function Ma(n) {
|
|
13282
|
-
return ge.initialized || Jp(), qp(ge.parser.start, n,
|
|
13282
|
+
return ge.initialized || Jp(), qp(ge.parser.start, n, _p(ge.scanner.start, n));
|
|
13283
13283
|
}
|
|
13284
13284
|
function fs(n) {
|
|
13285
13285
|
for (var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, t = Ma(n), r = [], i = 0; i < t.length; i++) {
|
|
@@ -13305,8 +13305,8 @@ function Gp(n) {
|
|
|
13305
13305
|
const g = a.map(m.from), y = a.map(m.to), D = tr(g, y, r.doc).filter((w) => w.mark.type === n.type);
|
|
13306
13306
|
if (!D.length)
|
|
13307
13307
|
return;
|
|
13308
|
-
const
|
|
13309
|
-
I && !R && o.removeMark(
|
|
13308
|
+
const v = D[0], N = t.doc.textBetween(m.from, m.to, void 0, " "), T = r.doc.textBetween(v.from, v.to, void 0, " "), I = To(N), R = To(T);
|
|
13309
|
+
I && !R && o.removeMark(v.from, v.to, n.type);
|
|
13310
13310
|
});
|
|
13311
13311
|
const h = Ph(r.doc, d, (m) => m.isTextblock);
|
|
13312
13312
|
let f, p;
|
|
@@ -13409,7 +13409,7 @@ const Qp = we.create({
|
|
|
13409
13409
|
renderHTML({ HTMLAttributes: n }) {
|
|
13410
13410
|
return [
|
|
13411
13411
|
"a",
|
|
13412
|
-
|
|
13412
|
+
_(this.options.HTMLAttributes, n),
|
|
13413
13413
|
0
|
|
13414
13414
|
];
|
|
13415
13415
|
},
|
|
@@ -13544,7 +13544,7 @@ const Qp = we.create({
|
|
|
13544
13544
|
];
|
|
13545
13545
|
},
|
|
13546
13546
|
renderHTML({ HTMLAttributes: n }) {
|
|
13547
|
-
return ["span",
|
|
13547
|
+
return ["span", _(this.options.HTMLAttributes, n), 0];
|
|
13548
13548
|
},
|
|
13549
13549
|
addCommands() {
|
|
13550
13550
|
return {
|
|
@@ -13601,7 +13601,7 @@ const Qp = we.create({
|
|
|
13601
13601
|
];
|
|
13602
13602
|
},
|
|
13603
13603
|
renderHTML({ HTMLAttributes: n }) {
|
|
13604
|
-
return ["tr",
|
|
13604
|
+
return ["tr", _(this.options.HTMLAttributes, n), 0];
|
|
13605
13605
|
}
|
|
13606
13606
|
}), im = q.create({
|
|
13607
13607
|
name: "tableCell",
|
|
@@ -13636,7 +13636,7 @@ const Qp = we.create({
|
|
|
13636
13636
|
];
|
|
13637
13637
|
},
|
|
13638
13638
|
renderHTML({ HTMLAttributes: n }) {
|
|
13639
|
-
return ["td",
|
|
13639
|
+
return ["td", _(this.options.HTMLAttributes, n), 0];
|
|
13640
13640
|
}
|
|
13641
13641
|
}), sm = q.create({
|
|
13642
13642
|
name: "tableHeader",
|
|
@@ -13671,7 +13671,7 @@ const Qp = we.create({
|
|
|
13671
13671
|
];
|
|
13672
13672
|
},
|
|
13673
13673
|
renderHTML({ HTMLAttributes: n }) {
|
|
13674
|
-
return ["th",
|
|
13674
|
+
return ["th", _(this.options.HTMLAttributes, n), 0];
|
|
13675
13675
|
}
|
|
13676
13676
|
}), om = {
|
|
13677
13677
|
name: "TextEditorFontStyleMenu",
|
|
@@ -13966,8 +13966,8 @@ var ym = function() {
|
|
|
13966
13966
|
const Cm = Dm.exports;
|
|
13967
13967
|
const km = {
|
|
13968
13968
|
components: {
|
|
13969
|
-
FormInputRow:
|
|
13970
|
-
TextTemplates: () => import("./index-
|
|
13969
|
+
FormInputRow: _a,
|
|
13970
|
+
TextTemplates: () => import("./index-e08e9511.js")
|
|
13971
13971
|
},
|
|
13972
13972
|
props: {
|
|
13973
13973
|
editor: {
|
|
@@ -14317,7 +14317,7 @@ var wm = function() {
|
|
|
14317
14317
|
} } }, [t("div", { staticClass: "menu-button", attrs: { "data-texteditor-tooltip": e.$t("_common:insert", { thing: e.$t("_common:snippet") }) } }, [t("BaseIcon", { attrs: { type: "editorSnippets", size: "22" } })], 1)]) : e._e(), t("input", { ref: "inputImgUpload", staticStyle: { display: "none" }, attrs: { type: "file" }, on: { change: (r) => {
|
|
14318
14318
|
e.$emit("upload-image", { file: r }), e.popupOpen = !1;
|
|
14319
14319
|
} } })], 2) : e._e()])], 1);
|
|
14320
|
-
}, xm = [],
|
|
14320
|
+
}, xm = [], vm = /* @__PURE__ */ ut(
|
|
14321
14321
|
km,
|
|
14322
14322
|
wm,
|
|
14323
14323
|
xm,
|
|
@@ -14327,10 +14327,10 @@ var wm = function() {
|
|
|
14327
14327
|
null,
|
|
14328
14328
|
null
|
|
14329
14329
|
);
|
|
14330
|
-
const
|
|
14330
|
+
const Am = vm.exports;
|
|
14331
14331
|
function Sm(n) {
|
|
14332
14332
|
var e;
|
|
14333
|
-
const { char: t, allowSpaces: r, allowedPrefixes: i, startOfLine: s, $position: o } = n, l =
|
|
14333
|
+
const { char: t, allowSpaces: r, allowedPrefixes: i, startOfLine: s, $position: o } = n, l = Af(t), a = new RegExp(`\\s${l}$`), u = s ? "^" : "", c = r ? new RegExp(`${u}${l}.*?(?=\\s${l}|$)`, "gm") : new RegExp(`${u}(?:^)?${l}[^\\s${l}]*`, "gm"), d = ((e = o.nodeBefore) === null || e === void 0 ? void 0 : e.isText) && o.nodeBefore.text;
|
|
14334
14334
|
if (!d)
|
|
14335
14335
|
return null;
|
|
14336
14336
|
const h = o.pos - d.length, f = Array.from(d.matchAll(c)).pop();
|
|
@@ -14358,11 +14358,11 @@ function Ta({ pluginKey: n = Em, editor: e, char: t = "@", allowSpaces: r = !1,
|
|
|
14358
14358
|
view() {
|
|
14359
14359
|
return {
|
|
14360
14360
|
update: async (m, g) => {
|
|
14361
|
-
var y, D,
|
|
14362
|
-
const w = (y = this.key) === null || y === void 0 ? void 0 : y.getState(g),
|
|
14361
|
+
var y, D, v, N, T, I, R;
|
|
14362
|
+
const w = (y = this.key) === null || y === void 0 ? void 0 : y.getState(g), z = (D = this.key) === null || D === void 0 ? void 0 : D.getState(m.state), de = w.active && z.active && w.range.from !== z.range.from, tn = !w.active && z.active, En = w.active && !z.active, Oe = !tn && !En && w.query !== z.query, Ne = tn || de, me = Oe && !de, xe = En || de;
|
|
14363
14363
|
if (!Ne && !me && !xe)
|
|
14364
14364
|
return;
|
|
14365
|
-
const $e = xe && !Ne ? w :
|
|
14365
|
+
const $e = xe && !Ne ? w : z, Mn = m.dom.querySelector(`[data-decoration-id="${$e.decorationId}"]`);
|
|
14366
14366
|
h = {
|
|
14367
14367
|
editor: e,
|
|
14368
14368
|
range: $e.range,
|
|
@@ -14384,7 +14384,7 @@ function Ta({ pluginKey: n = Em, editor: e, char: t = "@", allowSpaces: r = !1,
|
|
|
14384
14384
|
const { decorationId: J } = (H = this.key) === null || H === void 0 ? void 0 : H.getState(e.state), He = m.dom.querySelector(`[data-decoration-id="${J}"]`);
|
|
14385
14385
|
return (He == null ? void 0 : He.getBoundingClientRect()) || null;
|
|
14386
14386
|
} : null
|
|
14387
|
-
}, Ne && ((
|
|
14387
|
+
}, Ne && ((v = f == null ? void 0 : f.onBeforeStart) === null || v === void 0 || v.call(f, h)), me && ((N = f == null ? void 0 : f.onBeforeUpdate) === null || N === void 0 || N.call(f, h)), (me || Ne) && (h.items = await u({
|
|
14388
14388
|
editor: e,
|
|
14389
14389
|
query: $e.query
|
|
14390
14390
|
})), xe && ((T = f == null ? void 0 : f.onExit) === null || T === void 0 || T.call(f, h)), me && ((I = f == null ? void 0 : f.onUpdate) === null || I === void 0 || I.call(f, h)), Ne && ((R = f == null ? void 0 : f.onStart) === null || R === void 0 || R.call(f, h));
|
|
@@ -14411,17 +14411,17 @@ function Ta({ pluginKey: n = Em, editor: e, char: t = "@", allowSpaces: r = !1,
|
|
|
14411
14411
|
},
|
|
14412
14412
|
// Apply changes to the plugin state from a view transaction.
|
|
14413
14413
|
apply(m, g, y, D) {
|
|
14414
|
-
const { isEditable:
|
|
14415
|
-
if (w.composing = N,
|
|
14414
|
+
const { isEditable: v } = e, { composing: N } = e.view, { selection: T } = m, { empty: I, from: R } = T, w = { ...g };
|
|
14415
|
+
if (w.composing = N, v && (I || e.view.composing)) {
|
|
14416
14416
|
(R < g.range.from || R > g.range.to) && !N && !g.composing && (w.active = !1);
|
|
14417
|
-
const
|
|
14417
|
+
const z = Sm({
|
|
14418
14418
|
char: t,
|
|
14419
14419
|
allowSpaces: r,
|
|
14420
14420
|
allowedPrefixes: i,
|
|
14421
14421
|
startOfLine: s,
|
|
14422
14422
|
$position: T.$from
|
|
14423
14423
|
}), de = `id_${Math.floor(Math.random() * 4294967295)}`;
|
|
14424
|
-
|
|
14424
|
+
z && d({ editor: e, state: D, range: z.range }) ? (w.active = !0, w.decorationId = g.decorationId ? g.decorationId : de, w.range = z.range, w.query = z.query, w.text = z.text) : w.active = !1;
|
|
14425
14425
|
} else
|
|
14426
14426
|
w.active = !1;
|
|
14427
14427
|
return w.active || (w.decorationId = null, w.range = { from: 0, to: 0 }, w.query = null, w.text = null), w;
|
|
@@ -14431,8 +14431,8 @@ function Ta({ pluginKey: n = Em, editor: e, char: t = "@", allowSpaces: r = !1,
|
|
|
14431
14431
|
// Call the keydown hook if suggestion is active.
|
|
14432
14432
|
handleKeyDown(m, g) {
|
|
14433
14433
|
var y;
|
|
14434
|
-
const { active: D, range:
|
|
14435
|
-
return D && ((y = f == null ? void 0 : f.onKeyDown) === null || y === void 0 ? void 0 : y.call(f, { view: m, event: g, range:
|
|
14434
|
+
const { active: D, range: v } = p.getState(m.state);
|
|
14435
|
+
return D && ((y = f == null ? void 0 : f.onKeyDown) === null || y === void 0 ? void 0 : y.call(f, { view: m, event: g, range: v })) || !1;
|
|
14436
14436
|
},
|
|
14437
14437
|
// Setup decorator on the currently active suggestion.
|
|
14438
14438
|
decorations(m) {
|
|
@@ -14514,7 +14514,7 @@ const Mm = new K("mention"), Tm = q.create({
|
|
|
14514
14514
|
renderHTML({ node: n, HTMLAttributes: e }) {
|
|
14515
14515
|
return [
|
|
14516
14516
|
"span",
|
|
14517
|
-
|
|
14517
|
+
_({ "data-type": this.name }, this.options.HTMLAttributes, e),
|
|
14518
14518
|
this.options.renderLabel({
|
|
14519
14519
|
options: this.options,
|
|
14520
14520
|
node: n
|
|
@@ -14547,8 +14547,7 @@ const Mm = new K("mention"), Tm = q.create({
|
|
|
14547
14547
|
})
|
|
14548
14548
|
];
|
|
14549
14549
|
}
|
|
14550
|
-
})
|
|
14551
|
-
const Om = {
|
|
14550
|
+
}), Om = {
|
|
14552
14551
|
name: "TextEditorMentionList",
|
|
14553
14552
|
i18nOptions: {
|
|
14554
14553
|
namespaces: "TextEditorMentionList",
|
|
@@ -14607,20 +14606,23 @@ const Om = {
|
|
|
14607
14606
|
};
|
|
14608
14607
|
var Nm = function() {
|
|
14609
14608
|
var e = this, t = e._self._c;
|
|
14610
|
-
return t("div", { staticClass: "
|
|
14611
|
-
return t("div", { key: r.id + i, ref: "mention", refInFor: !0, staticClass: "
|
|
14609
|
+
return t("div", { staticClass: "flex max-h-[300px] w-64 flex-col overflow-hidden rounded-lg border border-solid border-slate-200 bg-white text-base text-[#262626] shadow-lg" }, [e.items.length ? [t("div", { staticClass: "px-4 py-3 text-sm font-semibold" }, [e._v(" " + e._s(e.$t("referenceTooltipTitle")) + " ")]), t("div", { staticClass: "overflow-auto" }, e._l(e.items, function(r, i) {
|
|
14610
|
+
return t("div", { key: r.id + i, ref: "mention", refInFor: !0, staticClass: "cursor-pointer overflow-hidden text-ellipsis whitespace-nowrap px-4 py-1 hover:bg-[hsl(var(--primary-color-500)/0.1)]", class: {
|
|
14611
|
+
"bg-[hsl(var(--primary-color-500)/0.2)]": e.navigatedIndex === i,
|
|
14612
|
+
"mb-3": i == e.items.length - 1
|
|
14613
|
+
}, on: { mousedown: function(s) {
|
|
14612
14614
|
s.preventDefault();
|
|
14613
14615
|
}, click: function(s) {
|
|
14614
14616
|
return e.selectItem(r);
|
|
14615
14617
|
} } }, [e._v(" " + e._s(r.label) + " ")]);
|
|
14616
|
-
}), 0)] : t("div", { staticClass: "
|
|
14618
|
+
}), 0)] : t("div", { staticClass: "px-4 py-2 opacity-50" }, [e._v(" " + e._s(e.$t("_common:noResults")) + " ")])], 2);
|
|
14617
14619
|
}, Fm = [], Bm = /* @__PURE__ */ ut(
|
|
14618
14620
|
Om,
|
|
14619
14621
|
Nm,
|
|
14620
14622
|
Fm,
|
|
14621
14623
|
!1,
|
|
14622
14624
|
null,
|
|
14623
|
-
|
|
14625
|
+
null,
|
|
14624
14626
|
null,
|
|
14625
14627
|
null
|
|
14626
14628
|
);
|
|
@@ -14649,13 +14651,7 @@ function Lm(n = null) {
|
|
|
14649
14651
|
trigger: "manual",
|
|
14650
14652
|
placement: "bottom-start",
|
|
14651
14653
|
// 'top-start'
|
|
14652
|
-
// sticky: true, // make sure position of tippy is updated when content changes
|
|
14653
14654
|
plugins: [$a]
|
|
14654
|
-
// trigger: 'mouseenter', // manual
|
|
14655
|
-
// theme: 'dark',
|
|
14656
|
-
// placement: 'top-start',
|
|
14657
|
-
// inertia: true,
|
|
14658
|
-
// duration: [400, 200],
|
|
14659
14655
|
});
|
|
14660
14656
|
},
|
|
14661
14657
|
onUpdate(s) {
|
|
@@ -14688,6 +14684,11 @@ function Im(n = null) {
|
|
|
14688
14684
|
default: null,
|
|
14689
14685
|
parseHTML: (e) => e.getAttribute("data-tooltip"),
|
|
14690
14686
|
renderHTML: (e) => ({ "data-tooltip": e.tooltip })
|
|
14687
|
+
},
|
|
14688
|
+
filter: {
|
|
14689
|
+
default: null,
|
|
14690
|
+
parseHTML: (e) => e.getAttribute("data-filter"),
|
|
14691
|
+
renderHTML: (e) => ({ "data-filter": e.filter })
|
|
14691
14692
|
}
|
|
14692
14693
|
};
|
|
14693
14694
|
},
|
|
@@ -14745,7 +14746,7 @@ function Im(n = null) {
|
|
|
14745
14746
|
suggestion: Lm.call(this, n)
|
|
14746
14747
|
});
|
|
14747
14748
|
}
|
|
14748
|
-
const Pm = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,
|
|
14749
|
+
const Pm = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, zm = q.create({
|
|
14749
14750
|
name: "image",
|
|
14750
14751
|
addOptions() {
|
|
14751
14752
|
return {
|
|
@@ -14782,7 +14783,7 @@ const Pm = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, _m = q.cr
|
|
|
14782
14783
|
];
|
|
14783
14784
|
},
|
|
14784
14785
|
renderHTML({ HTMLAttributes: n }) {
|
|
14785
|
-
return ["img",
|
|
14786
|
+
return ["img", _(this.options.HTMLAttributes, n)];
|
|
14786
14787
|
},
|
|
14787
14788
|
addCommands() {
|
|
14788
14789
|
return {
|
|
@@ -14805,7 +14806,7 @@ const Pm = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, _m = q.cr
|
|
|
14805
14806
|
];
|
|
14806
14807
|
}
|
|
14807
14808
|
});
|
|
14808
|
-
const
|
|
14809
|
+
const _m = {
|
|
14809
14810
|
name: "TextEditorImageView",
|
|
14810
14811
|
components: {
|
|
14811
14812
|
NodeViewWrapper: Of
|
|
@@ -14859,7 +14860,7 @@ const zm = {
|
|
|
14859
14860
|
},
|
|
14860
14861
|
async openPreview() {
|
|
14861
14862
|
var r;
|
|
14862
|
-
const n = () => import("./FilePreviewModal-
|
|
14863
|
+
const n = () => import("./FilePreviewModal-2c83e9ce.js"), { src: e, title: t } = ((r = this.node) == null ? void 0 : r.attrs) || {};
|
|
14863
14864
|
this.$modal.show(
|
|
14864
14865
|
n,
|
|
14865
14866
|
{
|
|
@@ -14893,7 +14894,7 @@ var $m = function() {
|
|
|
14893
14894
|
} } }, [t("svg", { attrs: { viewBox: "0 0 24 24", width: "21", height: "21", stroke: "currentColor", "stroke-width": "2", fill: "none", "stroke-linecap": "round", "stroke-linejoin": "round" }, domProps: { innerHTML: e._s(r.icon) } })]);
|
|
14894
14895
|
}), t("div", { staticClass: "bg-gray-500", staticStyle: { width: "1px", height: "1.5em", margin: "0 2px" } }), t("CButton", { attrs: { "data-texteditor-tooltip": e.$t("_common:remove"), type: "none", size: "small" }, on: { click: e.remove } }, [t("BaseIcon", { attrs: { size: 18, type: "trash" } })], 1)], 2) : e._e()]);
|
|
14895
14896
|
}, Hm = [], Vm = /* @__PURE__ */ ut(
|
|
14896
|
-
|
|
14897
|
+
_m,
|
|
14897
14898
|
$m,
|
|
14898
14899
|
Hm,
|
|
14899
14900
|
!1,
|
|
@@ -14902,7 +14903,7 @@ var $m = function() {
|
|
|
14902
14903
|
null,
|
|
14903
14904
|
null
|
|
14904
14905
|
);
|
|
14905
|
-
const jm = Vm.exports, Wm = (n) =>
|
|
14906
|
+
const jm = Vm.exports, Wm = (n) => zm.extend({
|
|
14906
14907
|
addOptions() {
|
|
14907
14908
|
return {
|
|
14908
14909
|
inline: !0,
|
|
@@ -15108,16 +15109,16 @@ function qm(n) {
|
|
|
15108
15109
|
rowspan: y,
|
|
15109
15110
|
colwidth: D
|
|
15110
15111
|
} = m.attrs;
|
|
15111
|
-
for (let
|
|
15112
|
-
if (
|
|
15112
|
+
for (let v = 0; v < y; v++) {
|
|
15113
|
+
if (v + u >= t) {
|
|
15113
15114
|
(s || (s = [])).push({
|
|
15114
15115
|
type: "overlong_rowspan",
|
|
15115
15116
|
pos: c,
|
|
15116
|
-
n: y -
|
|
15117
|
+
n: y - v
|
|
15117
15118
|
});
|
|
15118
15119
|
break;
|
|
15119
15120
|
}
|
|
15120
|
-
let N = i +
|
|
15121
|
+
let N = i + v * e;
|
|
15121
15122
|
for (let T = 0; T < g; T++) {
|
|
15122
15123
|
r[N + T] == 0 ? r[N + T] = c : (s || (s = [])).push({
|
|
15123
15124
|
type: "collision",
|
|
@@ -15858,7 +15859,7 @@ function hg(n, e, t, r) {
|
|
|
15858
15859
|
fixTables: !0
|
|
15859
15860
|
});
|
|
15860
15861
|
}
|
|
15861
|
-
function
|
|
15862
|
+
function _e(n) {
|
|
15862
15863
|
let e = n.selection, t = Ir(n), r = t.node(-1), i = t.start(-1), s = j.get(r), o;
|
|
15863
15864
|
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;
|
|
15864
15865
|
}
|
|
@@ -15885,7 +15886,7 @@ function fg(n, e) {
|
|
|
15885
15886
|
if (!Te(n))
|
|
15886
15887
|
return !1;
|
|
15887
15888
|
if (e) {
|
|
15888
|
-
let t =
|
|
15889
|
+
let t = _e(n);
|
|
15889
15890
|
e(La(n.tr, t, t.left));
|
|
15890
15891
|
}
|
|
15891
15892
|
return !0;
|
|
@@ -15894,7 +15895,7 @@ function pg(n, e) {
|
|
|
15894
15895
|
if (!Te(n))
|
|
15895
15896
|
return !1;
|
|
15896
15897
|
if (e) {
|
|
15897
|
-
let t =
|
|
15898
|
+
let t = _e(n);
|
|
15898
15899
|
e(La(n.tr, t, t.right));
|
|
15899
15900
|
}
|
|
15900
15901
|
return !0;
|
|
@@ -15920,7 +15921,7 @@ function gg(n, e) {
|
|
|
15920
15921
|
if (!Te(n))
|
|
15921
15922
|
return !1;
|
|
15922
15923
|
if (e) {
|
|
15923
|
-
let t =
|
|
15924
|
+
let t = _e(n), r = n.tr;
|
|
15924
15925
|
if (t.left == 0 && t.right == t.map.width)
|
|
15925
15926
|
return !1;
|
|
15926
15927
|
for (let i = t.right - 1; mg(r, t, i), i != t.left; i--)
|
|
@@ -15960,7 +15961,7 @@ function bg(n, e) {
|
|
|
15960
15961
|
if (!Te(n))
|
|
15961
15962
|
return !1;
|
|
15962
15963
|
if (e) {
|
|
15963
|
-
let t =
|
|
15964
|
+
let t = _e(n);
|
|
15964
15965
|
e(Ia(n.tr, t, t.top));
|
|
15965
15966
|
}
|
|
15966
15967
|
return !0;
|
|
@@ -15969,7 +15970,7 @@ function Dg(n, e) {
|
|
|
15969
15970
|
if (!Te(n))
|
|
15970
15971
|
return !1;
|
|
15971
15972
|
if (e) {
|
|
15972
|
-
let t =
|
|
15973
|
+
let t = _e(n);
|
|
15973
15974
|
e(Ia(n.tr, t, t.bottom));
|
|
15974
15975
|
}
|
|
15975
15976
|
return !0;
|
|
@@ -15999,7 +16000,7 @@ function kg(n, e) {
|
|
|
15999
16000
|
if (!Te(n))
|
|
16000
16001
|
return !1;
|
|
16001
16002
|
if (e) {
|
|
16002
|
-
let t =
|
|
16003
|
+
let t = _e(n), r = n.tr;
|
|
16003
16004
|
if (t.top == 0 && t.bottom == t.map.height)
|
|
16004
16005
|
return !1;
|
|
16005
16006
|
for (let i = t.bottom - 1; Cg(r, t, i), i != t.top; i--)
|
|
@@ -16034,7 +16035,7 @@ function Po(n, e) {
|
|
|
16034
16035
|
let t = n.selection;
|
|
16035
16036
|
if (!(t instanceof B) || t.$anchorCell.pos == t.$headCell.pos)
|
|
16036
16037
|
return !1;
|
|
16037
|
-
let r =
|
|
16038
|
+
let r = _e(n), {
|
|
16038
16039
|
map: i
|
|
16039
16040
|
} = r;
|
|
16040
16041
|
if (wg(i, r))
|
|
@@ -16061,7 +16062,7 @@ function Po(n, e) {
|
|
|
16061
16062
|
}
|
|
16062
16063
|
return !0;
|
|
16063
16064
|
}
|
|
16064
|
-
function
|
|
16065
|
+
function zo(n, e) {
|
|
16065
16066
|
const t = le(n.schema);
|
|
16066
16067
|
return xg(({
|
|
16067
16068
|
node: r
|
|
@@ -16084,7 +16085,7 @@ function xg(n) {
|
|
|
16084
16085
|
if (t) {
|
|
16085
16086
|
let o = i.attrs, l = [], a = o.colwidth;
|
|
16086
16087
|
o.rowspan > 1 && (o = X(o, "rowspan", 1)), o.colspan > 1 && (o = X(o, "colspan", 1));
|
|
16087
|
-
let u =
|
|
16088
|
+
let u = _e(e), c = e.tr;
|
|
16088
16089
|
for (let h = 0; h < u.right - u.left; h++)
|
|
16089
16090
|
l.push(a ? X(o, "colwidth", a && a[h] ? [a[h]] : null) : o);
|
|
16090
16091
|
let d;
|
|
@@ -16107,7 +16108,7 @@ function xg(n) {
|
|
|
16107
16108
|
return !0;
|
|
16108
16109
|
};
|
|
16109
16110
|
}
|
|
16110
|
-
function
|
|
16111
|
+
function vg(n, e) {
|
|
16111
16112
|
return function(t, r) {
|
|
16112
16113
|
if (!Te(t))
|
|
16113
16114
|
return !1;
|
|
@@ -16123,12 +16124,12 @@ function Ag(n, e) {
|
|
|
16123
16124
|
return !0;
|
|
16124
16125
|
};
|
|
16125
16126
|
}
|
|
16126
|
-
function
|
|
16127
|
+
function Ag(n) {
|
|
16127
16128
|
return function(e, t) {
|
|
16128
16129
|
if (!Te(e))
|
|
16129
16130
|
return !1;
|
|
16130
16131
|
if (t) {
|
|
16131
|
-
let r = le(e.schema), i =
|
|
16132
|
+
let r = le(e.schema), i = _e(e), s = e.tr, o = i.map.cellsInRect(n == "column" ? new Xt(i.left, 0, i.right, i.map.height) : n == "row" ? new Xt(0, i.top, i.map.width, i.bottom) : i), l = o.map((a) => i.table.nodeAt(a));
|
|
16132
16133
|
for (let a = 0; a < o.length; a++)
|
|
16133
16134
|
l[a].type == r.header_cell && s.setNodeMarkup(i.tableStart + o[a], r.cell, l[a].attrs);
|
|
16134
16135
|
if (s.steps.length == 0)
|
|
@@ -16139,7 +16140,7 @@ function vg(n) {
|
|
|
16139
16140
|
return !0;
|
|
16140
16141
|
};
|
|
16141
16142
|
}
|
|
16142
|
-
function
|
|
16143
|
+
function _o(n, e, t) {
|
|
16143
16144
|
const r = e.map.cellsInRect({
|
|
16144
16145
|
left: 0,
|
|
16145
16146
|
top: 0,
|
|
@@ -16153,14 +16154,14 @@ function zo(n, e, t) {
|
|
|
16153
16154
|
}
|
|
16154
16155
|
return !0;
|
|
16155
16156
|
}
|
|
16156
|
-
function
|
|
16157
|
+
function An(n, e) {
|
|
16157
16158
|
return e = e || {
|
|
16158
16159
|
useDeprecatedLogic: !1
|
|
16159
|
-
}, e.useDeprecatedLogic ?
|
|
16160
|
+
}, e.useDeprecatedLogic ? Ag(n) : function(t, r) {
|
|
16160
16161
|
if (!Te(t))
|
|
16161
16162
|
return !1;
|
|
16162
16163
|
if (r) {
|
|
16163
|
-
let i = le(t.schema), s =
|
|
16164
|
+
let i = le(t.schema), s = _e(t), o = t.tr, l = _o("row", s, i), a = _o("column", s, i), c = (n === "column" ? l : n === "row" ? a : !1) ? 1 : 0, d = n == "column" ? new Xt(0, c, 1, s.map.height) : n == "row" ? new Xt(c, 0, s.map.width, 1) : s, h = n == "column" ? a ? i.cell : i.header_cell : n == "row" ? l ? i.cell : i.header_cell : i.cell;
|
|
16164
16165
|
s.map.cellsInRect(d).forEach((f) => {
|
|
16165
16166
|
const p = f + s.tableStart, m = o.doc.nodeAt(p);
|
|
16166
16167
|
m && o.setNodeMarkup(p, h, m.attrs);
|
|
@@ -16169,13 +16170,13 @@ function vn(n, e) {
|
|
|
16169
16170
|
return !0;
|
|
16170
16171
|
};
|
|
16171
16172
|
}
|
|
16172
|
-
|
|
16173
|
+
An("row", {
|
|
16173
16174
|
useDeprecatedLogic: !0
|
|
16174
16175
|
});
|
|
16175
|
-
|
|
16176
|
+
An("column", {
|
|
16176
16177
|
useDeprecatedLogic: !0
|
|
16177
16178
|
});
|
|
16178
|
-
let Sg =
|
|
16179
|
+
let Sg = An("cell", {
|
|
16179
16180
|
useDeprecatedLogic: !0
|
|
16180
16181
|
});
|
|
16181
16182
|
function Eg(n, e) {
|
|
@@ -16288,7 +16289,7 @@ function Og({
|
|
|
16288
16289
|
decorations(s) {
|
|
16289
16290
|
let o = ke.getState(s);
|
|
16290
16291
|
if (o.activeHandle > -1)
|
|
16291
|
-
return
|
|
16292
|
+
return _g(s, o.activeHandle);
|
|
16292
16293
|
},
|
|
16293
16294
|
nodeViews: {}
|
|
16294
16295
|
}
|
|
@@ -16417,7 +16418,7 @@ function Ig(n, e, t) {
|
|
|
16417
16418
|
} = i.nodeAt(d), f = h.colspan == 1 ? 0 : l - s.colCount(d);
|
|
16418
16419
|
if (h.colwidth && h.colwidth[f] == t)
|
|
16419
16420
|
continue;
|
|
16420
|
-
let p = h.colwidth ? h.colwidth.slice() :
|
|
16421
|
+
let p = h.colwidth ? h.colwidth.slice() : zg(h.colspan);
|
|
16421
16422
|
p[f] = t, a.setNodeMarkup(o + d, null, X(h, "colwidth", p));
|
|
16422
16423
|
}
|
|
16423
16424
|
a.docChanged && n.dispatch(a);
|
|
@@ -16428,13 +16429,13 @@ function Pg(n, e, t, r) {
|
|
|
16428
16429
|
a = a.parentNode;
|
|
16429
16430
|
Li(s, a.firstChild, a, r, l, t);
|
|
16430
16431
|
}
|
|
16431
|
-
function
|
|
16432
|
+
function zg(n) {
|
|
16432
16433
|
let e = [];
|
|
16433
16434
|
for (let t = 0; t < n; t++)
|
|
16434
16435
|
e.push(0);
|
|
16435
16436
|
return e;
|
|
16436
16437
|
}
|
|
16437
|
-
function
|
|
16438
|
+
function _g(n, e) {
|
|
16438
16439
|
let t = [], r = n.doc.resolve(e), i = r.node(-1), s = j.get(i), o = r.start(-1), l = s.colCount(r.pos - o) + r.nodeAfter.attrs.colspan;
|
|
16439
16440
|
for (let a = 0; a < s.height; a++) {
|
|
16440
16441
|
let u = l + a * s.width - 1;
|
|
@@ -16580,7 +16581,7 @@ const In = ({ editor: n }) => {
|
|
|
16580
16581
|
];
|
|
16581
16582
|
},
|
|
16582
16583
|
renderHTML({ HTMLAttributes: n }) {
|
|
16583
|
-
return ["table",
|
|
16584
|
+
return ["table", _(this.options.HTMLAttributes, n), ["tbody", 0]];
|
|
16584
16585
|
},
|
|
16585
16586
|
addCommands() {
|
|
16586
16587
|
return {
|
|
@@ -16600,12 +16601,12 @@ const In = ({ editor: n }) => {
|
|
|
16600
16601
|
deleteRow: () => ({ state: n, dispatch: e }) => kg(n, e),
|
|
16601
16602
|
deleteTable: () => ({ state: n, dispatch: e }) => Mg(n, e),
|
|
16602
16603
|
mergeCells: () => ({ state: n, dispatch: e }) => Po(n, e),
|
|
16603
|
-
splitCell: () => ({ state: n, dispatch: e }) =>
|
|
16604
|
-
toggleHeaderColumn: () => ({ state: n, dispatch: e }) =>
|
|
16605
|
-
toggleHeaderRow: () => ({ state: n, dispatch: e }) =>
|
|
16604
|
+
splitCell: () => ({ state: n, dispatch: e }) => zo(n, e),
|
|
16605
|
+
toggleHeaderColumn: () => ({ state: n, dispatch: e }) => An("column")(n, e),
|
|
16606
|
+
toggleHeaderRow: () => ({ state: n, dispatch: e }) => An("row")(n, e),
|
|
16606
16607
|
toggleHeaderCell: () => ({ state: n, dispatch: e }) => Sg(n, e),
|
|
16607
|
-
mergeOrSplit: () => ({ state: n, dispatch: e }) => Po(n, e) ? !0 :
|
|
16608
|
-
setCellAttribute: (n, e) => ({ state: t, dispatch: r }) =>
|
|
16608
|
+
mergeOrSplit: () => ({ state: n, dispatch: e }) => Po(n, e) ? !0 : zo(n, e),
|
|
16609
|
+
setCellAttribute: (n, e) => ({ state: t, dispatch: r }) => vg(n, e)(t, r),
|
|
16609
16610
|
goToNextCell: () => ({ state: n, dispatch: e }) => $o(1)(n, e),
|
|
16610
16611
|
goToPreviousCell: () => ({ state: n, dispatch: e }) => $o(-1)(n, e),
|
|
16611
16612
|
fixTables: () => ({ state: n, dispatch: e }) => (e && Ra(n), !0),
|
|
@@ -16709,7 +16710,7 @@ const gs = qg.extend({
|
|
|
16709
16710
|
}
|
|
16710
16711
|
};
|
|
16711
16712
|
}
|
|
16712
|
-
}),
|
|
16713
|
+
}), za = gs.extend({
|
|
16713
16714
|
addNodeView() {
|
|
16714
16715
|
return ({ node: n }) => {
|
|
16715
16716
|
const e = document.createElement("div");
|
|
@@ -16726,8 +16727,8 @@ const gs = qg.extend({
|
|
|
16726
16727
|
addProseMirrorPlugins() {
|
|
16727
16728
|
return [];
|
|
16728
16729
|
}
|
|
16729
|
-
}), Kg = gs.configure({ resizable: !0, View: wr }), Ug =
|
|
16730
|
-
gs.configure({ resizable: !0, View: wr }),
|
|
16730
|
+
}), Kg = gs.configure({ resizable: !0, View: wr }), Ug = za.configure({ resizable: !0, View: wr });
|
|
16731
|
+
gs.configure({ resizable: !0, View: wr }), za.configure({ resizable: !0, View: wr });
|
|
16731
16732
|
function qo({ types: n, node: e }) {
|
|
16732
16733
|
return Array.isArray(n) && n.includes(e.type) || e.type === n;
|
|
16733
16734
|
}
|
|
@@ -16771,7 +16772,7 @@ const Ko = async (n) => {
|
|
|
16771
16772
|
e.append("file", n, n.name);
|
|
16772
16773
|
const { data: t } = await Ha("/file", e, { timeout: 6e4 });
|
|
16773
16774
|
return t.url;
|
|
16774
|
-
}, Gg =
|
|
16775
|
+
}, Gg = va.extend({
|
|
16775
16776
|
addAttributes() {
|
|
16776
16777
|
return {
|
|
16777
16778
|
...this.parent ? this.parent() : null,
|
|
@@ -16803,7 +16804,7 @@ const Ko = async (n) => {
|
|
|
16803
16804
|
components: {
|
|
16804
16805
|
EditorContent: Tf,
|
|
16805
16806
|
BubbleMenu: Cm,
|
|
16806
|
-
EditorFixedMenu:
|
|
16807
|
+
EditorFixedMenu: Am
|
|
16807
16808
|
},
|
|
16808
16809
|
props: {
|
|
16809
16810
|
// Text
|