@leaflink/stash 50.0.6 → 50.0.7
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/CurrencyInput.js +23 -19
- package/dist/CurrencyInput.js.map +1 -1
- package/dist/CurrencyInput.vue.d.ts +31 -10
- package/dist/Field.js +1 -1
- package/dist/Field.vue.d.ts +9 -0
- package/dist/{Field.vue_vue_type_script_setup_true_lang--tBfZB2K.js → Field.vue_vue_type_script_setup_true_lang-DEizIcDo.js} +35 -32
- package/dist/Field.vue_vue_type_script_setup_true_lang-DEizIcDo.js.map +1 -0
- package/dist/FilterSelect.js +67 -56
- package/dist/FilterSelect.js.map +1 -1
- package/dist/FilterSelect.vue.d.ts +54 -2
- package/dist/Filters.vue.d.ts +135 -108
- package/dist/Input.js +71 -68
- package/dist/Input.js.map +1 -1
- package/dist/Input.vue.d.ts +31 -28
- package/dist/InputOptions.js +64 -57
- package/dist/InputOptions.js.map +1 -1
- package/dist/InputOptions.vue.d.ts +45 -19
- package/dist/ListView.vue.d.ts +195 -152
- package/dist/RadioGroup.js +67 -70
- package/dist/RadioGroup.js.map +1 -1
- package/dist/RadioGroup.vue.d.ts +54 -45
- package/dist/Select.js +223 -224
- package/dist/Select.js.map +1 -1
- package/dist/Select.vue.d.ts +54 -51
- package/dist/TextEditor.js +671 -684
- package/dist/TextEditor.js.map +1 -1
- package/dist/TextEditor.vue.d.ts +54 -61
- package/dist/Textarea.js +63 -60
- package/dist/Textarea.js.map +1 -1
- package/dist/Textarea.vue.d.ts +50 -39
- package/dist/components.css +2 -2
- package/package.json +1 -1
- package/dist/Field.vue_vue_type_script_setup_true_lang--tBfZB2K.js.map +0 -1
package/dist/TextEditor.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var Nl = Object.defineProperty;
|
|
2
2
|
var Al = (r, t, e) => t in r ? Nl(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
|
|
3
3
|
var T = (r, t, e) => Al(r, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
-
import { defineComponent as xl, useCssModule as wl, ref as ti, computed as
|
|
4
|
+
import { defineComponent as xl, useCssModule as wl, ref as ti, computed as nr, onMounted as Tl, watch as ei, onBeforeUnmount as Ll, openBlock as Lt, createBlock as Qe, mergeProps as ql, unref as ve, withCtx as rr, createElementBlock as Je, normalizeClass as ts, Fragment as ir, renderList as si, createCommentVNode as lr, createElementVNode as Sl } from "vue";
|
|
5
5
|
import { isEqual as Mr, cloneDeep as Le, merge as Gt } from "lodash-es";
|
|
6
6
|
import { c as zt, g as Bi } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
7
7
|
import kl from "lodash-es/uniqueId";
|
|
8
8
|
import ni from "./Button.js";
|
|
9
|
-
import { _ as Cl } from "./Field.vue_vue_type_script_setup_true_lang
|
|
9
|
+
import { _ as Cl } from "./Field.vue_vue_type_script_setup_true_lang-DEizIcDo.js";
|
|
10
10
|
import ri from "./Icon.js";
|
|
11
11
|
import { _ as _l } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
12
|
var C = /* @__PURE__ */ ((r) => (r[r.TYPE = 3] = "TYPE", r[r.LEVEL = 12] = "LEVEL", r[r.ATTRIBUTE = 13] = "ATTRIBUTE", r[r.BLOT = 14] = "BLOT", r[r.INLINE = 7] = "INLINE", r[r.BLOCK = 11] = "BLOCK", r[r.BLOCK_BLOT = 10] = "BLOCK_BLOT", r[r.INLINE_BLOT = 6] = "INLINE_BLOT", r[r.BLOCK_ATTRIBUTE = 9] = "BLOCK_ATTRIBUTE", r[r.INLINE_ATTRIBUTE = 5] = "INLINE_ATTRIBUTE", r[r.ANY = 15] = "ANY", r))(C || {});
|
|
@@ -171,7 +171,7 @@ class Rl {
|
|
|
171
171
|
);
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
|
-
const
|
|
174
|
+
const Js = Rl, Di = class {
|
|
175
175
|
constructor(t, e) {
|
|
176
176
|
this.scroll = t, this.domNode = e, ke.blots.set(e, this), this.prev = null, this.next = null;
|
|
177
177
|
}
|
|
@@ -576,7 +576,7 @@ const Ee = class Ne extends bt {
|
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
578
|
constructor(t, e) {
|
|
579
|
-
super(t, e), this.attributes = new
|
|
579
|
+
super(t, e), this.attributes = new Js(this.domNode);
|
|
580
580
|
}
|
|
581
581
|
format(t, e) {
|
|
582
582
|
if (t === this.statics.blotName && !e)
|
|
@@ -635,7 +635,7 @@ const Dr = Pl, Ae = class yr extends bt {
|
|
|
635
635
|
}
|
|
636
636
|
}
|
|
637
637
|
constructor(t, e) {
|
|
638
|
-
super(t, e), this.attributes = new
|
|
638
|
+
super(t, e), this.attributes = new Js(this.domNode);
|
|
639
639
|
}
|
|
640
640
|
format(t, e) {
|
|
641
641
|
const s = this.scroll.query(t, C.BLOCK);
|
|
@@ -695,7 +695,7 @@ const ls = jl, vr = class extends bt {
|
|
|
695
695
|
};
|
|
696
696
|
vr.blotName = "container", vr.scope = C.BLOCK_BLOT;
|
|
697
697
|
let $l = vr;
|
|
698
|
-
const
|
|
698
|
+
const tn = $l;
|
|
699
699
|
class Hl extends X {
|
|
700
700
|
static formats(t, e) {
|
|
701
701
|
}
|
|
@@ -789,7 +789,7 @@ const nt = Hl, Fl = {
|
|
|
789
789
|
}), e.mutationsMap = s, s.has(this.domNode) && super.update(s.get(this.domNode), e), this.optimize(t, e);
|
|
790
790
|
}
|
|
791
791
|
};
|
|
792
|
-
xe.blotName = "scroll", xe.defaultChild = ls, xe.allowedChildren = [ls,
|
|
792
|
+
xe.blotName = "scroll", xe.defaultChild = ls, xe.allowedChildren = [ls, tn], xe.scope = C.BLOCK_BLOT, xe.tagName = "DIV";
|
|
793
793
|
let Vl = xe;
|
|
794
794
|
const Ur = Vl, Er = class $i extends X {
|
|
795
795
|
static create(t) {
|
|
@@ -838,13 +838,13 @@ const Ur = Vl, Er = class $i extends X {
|
|
|
838
838
|
};
|
|
839
839
|
Er.blotName = "text", Er.scope = C.INLINE_BLOT;
|
|
840
840
|
let Kl = Er;
|
|
841
|
-
const
|
|
841
|
+
const Xs = Kl, Gl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
842
842
|
__proto__: null,
|
|
843
843
|
Attributor: kt,
|
|
844
|
-
AttributorStore:
|
|
844
|
+
AttributorStore: Js,
|
|
845
845
|
BlockBlot: ls,
|
|
846
846
|
ClassAttributor: vt,
|
|
847
|
-
ContainerBlot:
|
|
847
|
+
ContainerBlot: tn,
|
|
848
848
|
EmbedBlot: nt,
|
|
849
849
|
InlineBlot: Dr,
|
|
850
850
|
LeafBlot: X,
|
|
@@ -853,7 +853,7 @@ const Ys = Kl, Gl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
853
853
|
Scope: C,
|
|
854
854
|
ScrollBlot: Ur,
|
|
855
855
|
StyleAttributor: Zt,
|
|
856
|
-
TextBlot:
|
|
856
|
+
TextBlot: Xs
|
|
857
857
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
858
858
|
var Nr = { exports: {} }, st = -1, J = 1, F = 0;
|
|
859
859
|
function os(r, t, e, s, n) {
|
|
@@ -865,7 +865,7 @@ function os(r, t, e, s, n) {
|
|
|
865
865
|
return i;
|
|
866
866
|
}
|
|
867
867
|
var o = Pr(r, t), a = r.substring(0, o);
|
|
868
|
-
r = r.substring(o), t = t.substring(o), o =
|
|
868
|
+
r = r.substring(o), t = t.substring(o), o = en(r, t);
|
|
869
869
|
var u = r.substring(r.length - o);
|
|
870
870
|
r = r.substring(0, r.length - o), t = t.substring(0, t.length - o);
|
|
871
871
|
var h = Zl(r, t);
|
|
@@ -900,40 +900,40 @@ function Wl(r, t) {
|
|
|
900
900
|
for (var e = r.length, s = t.length, n = Math.ceil((e + s) / 2), i = n, o = 2 * n, a = new Array(o), u = new Array(o), h = 0; h < o; h++)
|
|
901
901
|
a[h] = -1, u[h] = -1;
|
|
902
902
|
a[i + 1] = 0, u[i + 1] = 0;
|
|
903
|
-
for (var g = e - s, y = g % 2 !== 0, d = 0, p = 0, m = 0,
|
|
904
|
-
for (var
|
|
905
|
-
var
|
|
906
|
-
|
|
907
|
-
for (var
|
|
908
|
-
|
|
909
|
-
if (a[
|
|
903
|
+
for (var g = e - s, y = g % 2 !== 0, d = 0, p = 0, m = 0, b = 0, v = 0; v < n; v++) {
|
|
904
|
+
for (var E = -v + d; E <= v - p; E += 2) {
|
|
905
|
+
var w = i + E, x;
|
|
906
|
+
E === -v || E !== v && a[w - 1] < a[w + 1] ? x = a[w + 1] : x = a[w - 1] + 1;
|
|
907
|
+
for (var k = x - E; x < e && k < s && r.charAt(x) === t.charAt(k); )
|
|
908
|
+
x++, k++;
|
|
909
|
+
if (a[w] = x, x > e)
|
|
910
910
|
p += 2;
|
|
911
|
-
else if (
|
|
911
|
+
else if (k > s)
|
|
912
912
|
d += 2;
|
|
913
913
|
else if (y) {
|
|
914
|
-
var q = i + g -
|
|
914
|
+
var q = i + g - E;
|
|
915
915
|
if (q >= 0 && q < o && u[q] !== -1) {
|
|
916
916
|
var O = e - u[q];
|
|
917
|
-
if (
|
|
918
|
-
return oi(r, t,
|
|
917
|
+
if (x >= O)
|
|
918
|
+
return oi(r, t, x, k);
|
|
919
919
|
}
|
|
920
920
|
}
|
|
921
921
|
}
|
|
922
|
-
for (var R = -
|
|
922
|
+
for (var R = -v + m; R <= v - b; R += 2) {
|
|
923
923
|
var q = i + R, O;
|
|
924
|
-
R === -
|
|
924
|
+
R === -v || R !== v && u[q - 1] < u[q + 1] ? O = u[q + 1] : O = u[q - 1] + 1;
|
|
925
925
|
for (var j = O - R; O < e && j < s && r.charAt(e - O - 1) === t.charAt(s - j - 1); )
|
|
926
926
|
O++, j++;
|
|
927
927
|
if (u[q] = O, O > e)
|
|
928
|
-
|
|
928
|
+
b += 2;
|
|
929
929
|
else if (j > s)
|
|
930
930
|
m += 2;
|
|
931
931
|
else if (!y) {
|
|
932
|
-
var
|
|
933
|
-
if (
|
|
934
|
-
var
|
|
935
|
-
if (O = e - O,
|
|
936
|
-
return oi(r, t,
|
|
932
|
+
var w = i + g - R;
|
|
933
|
+
if (w >= 0 && w < o && a[w] !== -1) {
|
|
934
|
+
var x = a[w], k = i + x - w;
|
|
935
|
+
if (O = e - O, x >= O)
|
|
936
|
+
return oi(r, t, x, k);
|
|
937
937
|
}
|
|
938
938
|
}
|
|
939
939
|
}
|
|
@@ -969,7 +969,7 @@ function ai(r, t) {
|
|
|
969
969
|
o += u, (u == 0 || r.substring(n - o) == t.substring(0, o)) && (i = o, o++);
|
|
970
970
|
}
|
|
971
971
|
}
|
|
972
|
-
function
|
|
972
|
+
function en(r, t) {
|
|
973
973
|
if (!r || !t || r.slice(-1) !== t.slice(-1))
|
|
974
974
|
return 0;
|
|
975
975
|
for (var e = 0, s = Math.min(r.length, t.length), n = s, i = 0; e < n; )
|
|
@@ -980,23 +980,23 @@ function Xl(r, t) {
|
|
|
980
980
|
var e = r.length > t.length ? r : t, s = r.length > t.length ? t : r;
|
|
981
981
|
if (e.length < 4 || s.length * 2 < e.length)
|
|
982
982
|
return null;
|
|
983
|
-
function n(p, m,
|
|
984
|
-
for (var
|
|
983
|
+
function n(p, m, b) {
|
|
984
|
+
for (var v = p.substring(b, b + Math.floor(p.length / 4)), E = -1, w = "", x, k, q, O; (E = m.indexOf(v, E + 1)) !== -1; ) {
|
|
985
985
|
var R = Pr(
|
|
986
|
-
p.substring(
|
|
987
|
-
m.substring(
|
|
988
|
-
), j =
|
|
989
|
-
p.substring(0,
|
|
990
|
-
m.substring(0,
|
|
986
|
+
p.substring(b),
|
|
987
|
+
m.substring(E)
|
|
988
|
+
), j = en(
|
|
989
|
+
p.substring(0, b),
|
|
990
|
+
m.substring(0, E)
|
|
991
991
|
);
|
|
992
|
-
|
|
992
|
+
w.length < j + R && (w = m.substring(E - j, E) + m.substring(E, E + R), x = p.substring(0, b - j), k = p.substring(b + R), q = m.substring(0, E - j), O = m.substring(E + R));
|
|
993
993
|
}
|
|
994
|
-
return
|
|
995
|
-
|
|
996
|
-
|
|
994
|
+
return w.length * 2 >= p.length ? [
|
|
995
|
+
x,
|
|
996
|
+
k,
|
|
997
997
|
q,
|
|
998
998
|
O,
|
|
999
|
-
|
|
999
|
+
w
|
|
1000
1000
|
] : null;
|
|
1001
1001
|
}
|
|
1002
1002
|
var i = n(
|
|
@@ -1047,12 +1047,12 @@ function to(r) {
|
|
|
1047
1047
|
function t(p, m) {
|
|
1048
1048
|
if (!p || !m)
|
|
1049
1049
|
return 6;
|
|
1050
|
-
var
|
|
1051
|
-
return R || j ? 5 : q || O ? 4 :
|
|
1050
|
+
var b = p.charAt(p.length - 1), v = m.charAt(0), E = b.match(ci), w = v.match(ci), x = E && b.match(ui), k = w && v.match(ui), q = x && b.match(hi), O = k && v.match(hi), R = q && p.match(Ql), j = O && m.match(Jl);
|
|
1051
|
+
return R || j ? 5 : q || O ? 4 : E && !x && k ? 3 : x || k ? 2 : E || w ? 1 : 0;
|
|
1052
1052
|
}
|
|
1053
1053
|
for (var e = 1; e < r.length - 1; ) {
|
|
1054
1054
|
if (r[e - 1][0] == F && r[e + 1][0] == F) {
|
|
1055
|
-
var s = r[e - 1][1], n = r[e][1], i = r[e + 1][1], o =
|
|
1055
|
+
var s = r[e - 1][1], n = r[e][1], i = r[e + 1][1], o = en(s, n);
|
|
1056
1056
|
if (o) {
|
|
1057
1057
|
var a = n.substring(n.length - o);
|
|
1058
1058
|
s = s.substring(0, s.length - o), n = a + n.substring(0, n.length - o), i = a + i;
|
|
@@ -1111,7 +1111,7 @@ function jr(r, t) {
|
|
|
1111
1111
|
) : (r.splice(0, 0, [
|
|
1112
1112
|
F,
|
|
1113
1113
|
o.substring(0, a)
|
|
1114
|
-
]), e++), o = o.substring(a), i = i.substring(a)), a =
|
|
1114
|
+
]), e++), o = o.substring(a), i = i.substring(a)), a = en(o, i), a !== 0 && (r[e][1] = o.substring(o.length - a) + r[e][1], o = o.substring(
|
|
1115
1115
|
0,
|
|
1116
1116
|
o.length - a
|
|
1117
1117
|
), i = i.substring(
|
|
@@ -1177,75 +1177,75 @@ function so(r, t, e) {
|
|
|
1177
1177
|
var d = t.slice(0, y), p = t.slice(y);
|
|
1178
1178
|
if (p !== h)
|
|
1179
1179
|
break t;
|
|
1180
|
-
var m = Math.min(a, y),
|
|
1181
|
-
if (
|
|
1180
|
+
var m = Math.min(a, y), b = u.slice(0, m), v = d.slice(0, m);
|
|
1181
|
+
if (b !== v)
|
|
1182
1182
|
break t;
|
|
1183
|
-
var
|
|
1184
|
-
return ar(
|
|
1183
|
+
var E = u.slice(m), w = d.slice(m);
|
|
1184
|
+
return ar(b, E, w, h);
|
|
1185
1185
|
}
|
|
1186
1186
|
t: {
|
|
1187
1187
|
if (g !== null && g !== a)
|
|
1188
1188
|
break t;
|
|
1189
|
-
var
|
|
1189
|
+
var x = a, d = t.slice(0, x), p = t.slice(x);
|
|
1190
1190
|
if (d !== u)
|
|
1191
1191
|
break t;
|
|
1192
|
-
var
|
|
1192
|
+
var k = Math.min(i - x, o - x), q = h.slice(h.length - k), O = p.slice(p.length - k);
|
|
1193
1193
|
if (q !== O)
|
|
1194
1194
|
break t;
|
|
1195
|
-
var
|
|
1196
|
-
return ar(u,
|
|
1195
|
+
var E = h.slice(0, h.length - k), w = p.slice(0, p.length - k);
|
|
1196
|
+
return ar(u, E, w, q);
|
|
1197
1197
|
}
|
|
1198
1198
|
}
|
|
1199
1199
|
if (s.length > 0 && n && n.length === 0)
|
|
1200
1200
|
t: {
|
|
1201
|
-
var
|
|
1202
|
-
if (o < m +
|
|
1201
|
+
var b = r.slice(0, s.index), q = r.slice(s.index + s.length), m = b.length, k = q.length;
|
|
1202
|
+
if (o < m + k)
|
|
1203
1203
|
break t;
|
|
1204
|
-
var
|
|
1205
|
-
if (
|
|
1204
|
+
var v = t.slice(0, m), O = t.slice(o - k);
|
|
1205
|
+
if (b !== v || q !== O)
|
|
1206
1206
|
break t;
|
|
1207
|
-
var
|
|
1208
|
-
return ar(
|
|
1207
|
+
var E = r.slice(m, i - k), w = t.slice(m, o - k);
|
|
1208
|
+
return ar(b, E, w, q);
|
|
1209
1209
|
}
|
|
1210
1210
|
return null;
|
|
1211
1211
|
}
|
|
1212
|
-
function
|
|
1212
|
+
function sn(r, t, e, s) {
|
|
1213
1213
|
return os(r, t, e, s, !0);
|
|
1214
1214
|
}
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
var no =
|
|
1219
|
-
|
|
1215
|
+
sn.INSERT = J;
|
|
1216
|
+
sn.DELETE = st;
|
|
1217
|
+
sn.EQUAL = F;
|
|
1218
|
+
var no = sn, Ys = { exports: {} };
|
|
1219
|
+
Ys.exports;
|
|
1220
1220
|
(function(r, t) {
|
|
1221
|
-
var e = 200, s = "__lodash_hash_undefined__", n = 9007199254740991, i = "[object Arguments]", o = "[object Array]", a = "[object Boolean]", u = "[object Date]", h = "[object Error]", g = "[object Function]", y = "[object GeneratorFunction]", d = "[object Map]", p = "[object Number]", m = "[object Object]",
|
|
1222
|
-
U[i] = U[o] = U[q] = U[O] = U[a] = U[u] = U[R] = U[j] = U[_t] = U[jt] = U[Wt] = U[d] = U[p] = U[m] = U[
|
|
1223
|
-
var
|
|
1224
|
-
function
|
|
1221
|
+
var e = 200, s = "__lodash_hash_undefined__", n = 9007199254740991, i = "[object Arguments]", o = "[object Array]", a = "[object Boolean]", u = "[object Date]", h = "[object Error]", g = "[object Function]", y = "[object GeneratorFunction]", d = "[object Map]", p = "[object Number]", m = "[object Object]", b = "[object Promise]", v = "[object RegExp]", E = "[object Set]", w = "[object String]", x = "[object Symbol]", k = "[object WeakMap]", q = "[object ArrayBuffer]", O = "[object DataView]", R = "[object Float32Array]", j = "[object Float64Array]", _t = "[object Int8Array]", jt = "[object Int16Array]", Wt = "[object Int32Array]", Xt = "[object Uint8Array]", ps = "[object Uint8ClampedArray]", ms = "[object Uint16Array]", bs = "[object Uint32Array]", cn = /[\\^$.*+?()[\]{}|]/g, un = /\w*$/, hn = /^\[object .+?Constructor\]$/, fn = /^(?:0|[1-9]\d*)$/, U = {};
|
|
1222
|
+
U[i] = U[o] = U[q] = U[O] = U[a] = U[u] = U[R] = U[j] = U[_t] = U[jt] = U[Wt] = U[d] = U[p] = U[m] = U[v] = U[E] = U[w] = U[x] = U[Xt] = U[ps] = U[ms] = U[bs] = !0, U[h] = U[g] = U[k] = !1;
|
|
1223
|
+
var dn = typeof zt == "object" && zt && zt.Object === Object && zt, gn = typeof self == "object" && self && self.Object === Object && self, ut = dn || gn || Function("return this")(), ys = t && !t.nodeType && t, P = ys && !0 && r && !r.nodeType && r, vs = P && P.exports === ys;
|
|
1224
|
+
function pn(l, c) {
|
|
1225
1225
|
return l.set(c[0], c[1]), l;
|
|
1226
1226
|
}
|
|
1227
1227
|
function ht(l, c) {
|
|
1228
1228
|
return l.add(c), l;
|
|
1229
1229
|
}
|
|
1230
1230
|
function Es(l, c) {
|
|
1231
|
-
for (var f = -1,
|
|
1231
|
+
for (var f = -1, N = l ? l.length : 0; ++f < N && c(l[f], f, l) !== !1; )
|
|
1232
1232
|
;
|
|
1233
1233
|
return l;
|
|
1234
1234
|
}
|
|
1235
1235
|
function Ns(l, c) {
|
|
1236
|
-
for (var f = -1,
|
|
1236
|
+
for (var f = -1, N = c.length, I = l.length; ++f < N; )
|
|
1237
1237
|
l[I + f] = c[f];
|
|
1238
1238
|
return l;
|
|
1239
1239
|
}
|
|
1240
|
-
function Ie(l, c, f,
|
|
1240
|
+
function Ie(l, c, f, N) {
|
|
1241
1241
|
for (var I = -1, _ = l ? l.length : 0; ++I < _; )
|
|
1242
1242
|
f = c(f, l[I], I, l);
|
|
1243
1243
|
return f;
|
|
1244
1244
|
}
|
|
1245
1245
|
function Re(l, c) {
|
|
1246
|
-
for (var f = -1,
|
|
1247
|
-
|
|
1248
|
-
return
|
|
1246
|
+
for (var f = -1, N = Array(l); ++f < l; )
|
|
1247
|
+
N[f] = c(f);
|
|
1248
|
+
return N;
|
|
1249
1249
|
}
|
|
1250
1250
|
function As(l, c) {
|
|
1251
1251
|
return l == null ? void 0 : l[c];
|
|
@@ -1261,8 +1261,8 @@ Qs.exports;
|
|
|
1261
1261
|
}
|
|
1262
1262
|
function xs(l) {
|
|
1263
1263
|
var c = -1, f = Array(l.size);
|
|
1264
|
-
return l.forEach(function(
|
|
1265
|
-
f[++c] = [I,
|
|
1264
|
+
return l.forEach(function(N, I) {
|
|
1265
|
+
f[++c] = [I, N];
|
|
1266
1266
|
}), f;
|
|
1267
1267
|
}
|
|
1268
1268
|
function Me(l, c) {
|
|
@@ -1272,30 +1272,30 @@ Qs.exports;
|
|
|
1272
1272
|
}
|
|
1273
1273
|
function ws(l) {
|
|
1274
1274
|
var c = -1, f = Array(l.size);
|
|
1275
|
-
return l.forEach(function(
|
|
1276
|
-
f[++c] =
|
|
1275
|
+
return l.forEach(function(N) {
|
|
1276
|
+
f[++c] = N;
|
|
1277
1277
|
}), f;
|
|
1278
1278
|
}
|
|
1279
|
-
var
|
|
1279
|
+
var mn = Array.prototype, bn = Function.prototype, ae = Object.prototype, De = ut["__core-js_shared__"], Ts = function() {
|
|
1280
1280
|
var l = /[^.]+$/.exec(De && De.keys && De.keys.IE_PROTO || "");
|
|
1281
1281
|
return l ? "Symbol(src)_1." + l : "";
|
|
1282
|
-
}(), Ls =
|
|
1283
|
-
"^" + Ls.call(At).replace(
|
|
1284
|
-
), Yt = vs ? ut.Buffer : void 0, ue = ut.Symbol, Ue = ut.Uint8Array, rt = Me(Object.getPrototypeOf, Object), qs = Object.create, Ss = ae.propertyIsEnumerable,
|
|
1282
|
+
}(), Ls = bn.toString, At = ae.hasOwnProperty, ce = ae.toString, yn = RegExp(
|
|
1283
|
+
"^" + Ls.call(At).replace(cn, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1284
|
+
), Yt = vs ? ut.Buffer : void 0, ue = ut.Symbol, Ue = ut.Uint8Array, rt = Me(Object.getPrototypeOf, Object), qs = Object.create, Ss = ae.propertyIsEnumerable, vn = mn.splice, Pe = Object.getOwnPropertySymbols, he = Yt ? Yt.isBuffer : void 0, ks = Me(Object.keys, Object), fe = dt(ut, "DataView"), Qt = dt(ut, "Map"), ft = dt(ut, "Promise"), de = dt(ut, "Set"), je = dt(ut, "WeakMap"), Jt = dt(Object, "create"), $e = Q(fe), te = Q(Qt), He = Q(ft), Fe = Q(de), ze = Q(je), $t = ue ? ue.prototype : void 0, Cs = $t ? $t.valueOf : void 0;
|
|
1285
1285
|
function Ot(l) {
|
|
1286
1286
|
var c = -1, f = l ? l.length : 0;
|
|
1287
1287
|
for (this.clear(); ++c < f; ) {
|
|
1288
|
-
var
|
|
1289
|
-
this.set(
|
|
1288
|
+
var N = l[c];
|
|
1289
|
+
this.set(N[0], N[1]);
|
|
1290
1290
|
}
|
|
1291
1291
|
}
|
|
1292
|
-
function
|
|
1292
|
+
function En() {
|
|
1293
1293
|
this.__data__ = Jt ? Jt(null) : {};
|
|
1294
1294
|
}
|
|
1295
|
-
function
|
|
1295
|
+
function Nn(l) {
|
|
1296
1296
|
return this.has(l) && delete this.__data__[l];
|
|
1297
1297
|
}
|
|
1298
|
-
function
|
|
1298
|
+
function An(l) {
|
|
1299
1299
|
var c = this.__data__;
|
|
1300
1300
|
if (Jt) {
|
|
1301
1301
|
var f = c[l];
|
|
@@ -1311,98 +1311,98 @@ Qs.exports;
|
|
|
1311
1311
|
var f = this.__data__;
|
|
1312
1312
|
return f[l] = Jt && c === void 0 ? s : c, this;
|
|
1313
1313
|
}
|
|
1314
|
-
Ot.prototype.clear =
|
|
1314
|
+
Ot.prototype.clear = En, Ot.prototype.delete = Nn, Ot.prototype.get = An, Ot.prototype.has = _s, Ot.prototype.set = Ve;
|
|
1315
1315
|
function z(l) {
|
|
1316
1316
|
var c = -1, f = l ? l.length : 0;
|
|
1317
1317
|
for (this.clear(); ++c < f; ) {
|
|
1318
|
-
var
|
|
1319
|
-
this.set(
|
|
1318
|
+
var N = l[c];
|
|
1319
|
+
this.set(N[0], N[1]);
|
|
1320
1320
|
}
|
|
1321
1321
|
}
|
|
1322
|
-
function
|
|
1322
|
+
function xn() {
|
|
1323
1323
|
this.__data__ = [];
|
|
1324
1324
|
}
|
|
1325
|
-
function
|
|
1325
|
+
function wn(l) {
|
|
1326
1326
|
var c = this.__data__, f = pe(c, l);
|
|
1327
1327
|
if (f < 0)
|
|
1328
1328
|
return !1;
|
|
1329
|
-
var
|
|
1330
|
-
return f ==
|
|
1329
|
+
var N = c.length - 1;
|
|
1330
|
+
return f == N ? c.pop() : vn.call(c, f, 1), !0;
|
|
1331
1331
|
}
|
|
1332
|
-
function
|
|
1332
|
+
function Tn(l) {
|
|
1333
1333
|
var c = this.__data__, f = pe(c, l);
|
|
1334
1334
|
return f < 0 ? void 0 : c[f][1];
|
|
1335
1335
|
}
|
|
1336
|
-
function
|
|
1336
|
+
function Ln(l) {
|
|
1337
1337
|
return pe(this.__data__, l) > -1;
|
|
1338
1338
|
}
|
|
1339
|
-
function
|
|
1340
|
-
var f = this.__data__,
|
|
1341
|
-
return
|
|
1339
|
+
function qn(l, c) {
|
|
1340
|
+
var f = this.__data__, N = pe(f, l);
|
|
1341
|
+
return N < 0 ? f.push([l, c]) : f[N][1] = c, this;
|
|
1342
1342
|
}
|
|
1343
|
-
z.prototype.clear =
|
|
1343
|
+
z.prototype.clear = xn, z.prototype.delete = wn, z.prototype.get = Tn, z.prototype.has = Ln, z.prototype.set = qn;
|
|
1344
1344
|
function G(l) {
|
|
1345
1345
|
var c = -1, f = l ? l.length : 0;
|
|
1346
1346
|
for (this.clear(); ++c < f; ) {
|
|
1347
|
-
var
|
|
1348
|
-
this.set(
|
|
1347
|
+
var N = l[c];
|
|
1348
|
+
this.set(N[0], N[1]);
|
|
1349
1349
|
}
|
|
1350
1350
|
}
|
|
1351
|
-
function
|
|
1351
|
+
function Sn() {
|
|
1352
1352
|
this.__data__ = {
|
|
1353
1353
|
hash: new Ot(),
|
|
1354
1354
|
map: new (Qt || z)(),
|
|
1355
1355
|
string: new Ot()
|
|
1356
1356
|
};
|
|
1357
1357
|
}
|
|
1358
|
-
function
|
|
1358
|
+
function kn(l) {
|
|
1359
1359
|
return se(this, l).delete(l);
|
|
1360
1360
|
}
|
|
1361
|
-
function
|
|
1361
|
+
function Cn(l) {
|
|
1362
1362
|
return se(this, l).get(l);
|
|
1363
1363
|
}
|
|
1364
|
-
function
|
|
1364
|
+
function _n(l) {
|
|
1365
1365
|
return se(this, l).has(l);
|
|
1366
1366
|
}
|
|
1367
|
-
function
|
|
1367
|
+
function On(l, c) {
|
|
1368
1368
|
return se(this, l).set(l, c), this;
|
|
1369
1369
|
}
|
|
1370
|
-
G.prototype.clear =
|
|
1370
|
+
G.prototype.clear = Sn, G.prototype.delete = kn, G.prototype.get = Cn, G.prototype.has = _n, G.prototype.set = On;
|
|
1371
1371
|
function tt(l) {
|
|
1372
1372
|
this.__data__ = new z(l);
|
|
1373
1373
|
}
|
|
1374
|
-
function
|
|
1374
|
+
function In() {
|
|
1375
1375
|
this.__data__ = new z();
|
|
1376
1376
|
}
|
|
1377
|
-
function
|
|
1377
|
+
function Rn(l) {
|
|
1378
1378
|
return this.__data__.delete(l);
|
|
1379
1379
|
}
|
|
1380
|
-
function
|
|
1380
|
+
function Bn(l) {
|
|
1381
1381
|
return this.__data__.get(l);
|
|
1382
1382
|
}
|
|
1383
|
-
function
|
|
1383
|
+
function Mn(l) {
|
|
1384
1384
|
return this.__data__.has(l);
|
|
1385
1385
|
}
|
|
1386
|
-
function
|
|
1386
|
+
function Dn(l, c) {
|
|
1387
1387
|
var f = this.__data__;
|
|
1388
1388
|
if (f instanceof z) {
|
|
1389
|
-
var
|
|
1390
|
-
if (!Qt ||
|
|
1391
|
-
return
|
|
1392
|
-
f = this.__data__ = new G(
|
|
1389
|
+
var N = f.__data__;
|
|
1390
|
+
if (!Qt || N.length < e - 1)
|
|
1391
|
+
return N.push([l, c]), this;
|
|
1392
|
+
f = this.__data__ = new G(N);
|
|
1393
1393
|
}
|
|
1394
1394
|
return f.set(l, c), this;
|
|
1395
1395
|
}
|
|
1396
|
-
tt.prototype.clear =
|
|
1396
|
+
tt.prototype.clear = In, tt.prototype.delete = Rn, tt.prototype.get = Bn, tt.prototype.has = Mn, tt.prototype.set = Dn;
|
|
1397
1397
|
function ge(l, c) {
|
|
1398
|
-
var f = We(l) || be(l) ? Re(l.length, String) : [],
|
|
1398
|
+
var f = We(l) || be(l) ? Re(l.length, String) : [], N = f.length, I = !!N;
|
|
1399
1399
|
for (var _ in l)
|
|
1400
|
-
At.call(l, _) && !(I && (_ == "length" ||
|
|
1400
|
+
At.call(l, _) && !(I && (_ == "length" || Yn(_, N))) && f.push(_);
|
|
1401
1401
|
return f;
|
|
1402
1402
|
}
|
|
1403
1403
|
function Os(l, c, f) {
|
|
1404
|
-
var
|
|
1405
|
-
(!(At.call(l, c) && Ds(
|
|
1404
|
+
var N = l[c];
|
|
1405
|
+
(!(At.call(l, c) && Ds(N, f)) || f === void 0 && !(c in l)) && (l[c] = f);
|
|
1406
1406
|
}
|
|
1407
1407
|
function pe(l, c) {
|
|
1408
1408
|
for (var f = l.length; f--; )
|
|
@@ -1413,16 +1413,16 @@ Qs.exports;
|
|
|
1413
1413
|
function xt(l, c) {
|
|
1414
1414
|
return l && Ze(c, Ye(c), l);
|
|
1415
1415
|
}
|
|
1416
|
-
function Ke(l, c, f,
|
|
1416
|
+
function Ke(l, c, f, N, I, _, M) {
|
|
1417
1417
|
var B;
|
|
1418
|
-
if (
|
|
1418
|
+
if (N && (B = _ ? N(l, I, _, M) : N(l)), B !== void 0)
|
|
1419
1419
|
return B;
|
|
1420
1420
|
if (!Tt(l))
|
|
1421
1421
|
return l;
|
|
1422
1422
|
var $ = We(l);
|
|
1423
1423
|
if ($) {
|
|
1424
|
-
if (B =
|
|
1425
|
-
return
|
|
1424
|
+
if (B = Wn(l), !c)
|
|
1425
|
+
return Kn(l, B);
|
|
1426
1426
|
} else {
|
|
1427
1427
|
var D = Rt(l), Z = D == g || D == y;
|
|
1428
1428
|
if (Us(l))
|
|
@@ -1431,11 +1431,11 @@ Qs.exports;
|
|
|
1431
1431
|
if (Be(l))
|
|
1432
1432
|
return _ ? l : {};
|
|
1433
1433
|
if (B = wt(Z ? {} : l), !c)
|
|
1434
|
-
return
|
|
1434
|
+
return Gn(l, xt(B, l));
|
|
1435
1435
|
} else {
|
|
1436
1436
|
if (!U[D])
|
|
1437
1437
|
return _ ? l : {};
|
|
1438
|
-
B =
|
|
1438
|
+
B = Xn(l, D, Ke, c);
|
|
1439
1439
|
}
|
|
1440
1440
|
}
|
|
1441
1441
|
M || (M = new tt());
|
|
@@ -1443,28 +1443,28 @@ Qs.exports;
|
|
|
1443
1443
|
if (et)
|
|
1444
1444
|
return et;
|
|
1445
1445
|
if (M.set(l, B), !$)
|
|
1446
|
-
var H = f ?
|
|
1446
|
+
var H = f ? Zn(l) : Ye(l);
|
|
1447
1447
|
return Es(H || l, function(W, V) {
|
|
1448
|
-
H && (V = W, W = l[V]), Os(B, V, Ke(W, c, f,
|
|
1448
|
+
H && (V = W, W = l[V]), Os(B, V, Ke(W, c, f, N, V, l, M));
|
|
1449
1449
|
}), B;
|
|
1450
1450
|
}
|
|
1451
|
-
function
|
|
1451
|
+
function Un(l) {
|
|
1452
1452
|
return Tt(l) ? qs(l) : {};
|
|
1453
1453
|
}
|
|
1454
|
-
function
|
|
1455
|
-
var
|
|
1456
|
-
return We(l) ?
|
|
1454
|
+
function Pn(l, c, f) {
|
|
1455
|
+
var N = c(l);
|
|
1456
|
+
return We(l) ? N : Ns(N, f(l));
|
|
1457
1457
|
}
|
|
1458
|
-
function
|
|
1458
|
+
function jn(l) {
|
|
1459
1459
|
return ce.call(l);
|
|
1460
1460
|
}
|
|
1461
|
-
function
|
|
1462
|
-
if (!Tt(l) ||
|
|
1461
|
+
function $n(l) {
|
|
1462
|
+
if (!Tt(l) || Jn(l))
|
|
1463
1463
|
return !1;
|
|
1464
|
-
var c = Xe(l) || Be(l) ?
|
|
1464
|
+
var c = Xe(l) || Be(l) ? yn : hn;
|
|
1465
1465
|
return c.test(Q(l));
|
|
1466
1466
|
}
|
|
1467
|
-
function
|
|
1467
|
+
function Hn(l) {
|
|
1468
1468
|
if (!Bs(l))
|
|
1469
1469
|
return ks(l);
|
|
1470
1470
|
var c = [];
|
|
@@ -1487,31 +1487,31 @@ Qs.exports;
|
|
|
1487
1487
|
return new l.constructor(f, l.byteOffset, l.byteLength);
|
|
1488
1488
|
}
|
|
1489
1489
|
function Is(l, c, f) {
|
|
1490
|
-
var
|
|
1491
|
-
return Ie(
|
|
1490
|
+
var N = c ? f(xs(l), !0) : xs(l);
|
|
1491
|
+
return Ie(N, pn, new l.constructor());
|
|
1492
1492
|
}
|
|
1493
1493
|
function Rs(l) {
|
|
1494
|
-
var c = new l.constructor(l.source,
|
|
1494
|
+
var c = new l.constructor(l.source, un.exec(l));
|
|
1495
1495
|
return c.lastIndex = l.lastIndex, c;
|
|
1496
1496
|
}
|
|
1497
|
-
function
|
|
1498
|
-
var
|
|
1499
|
-
return Ie(
|
|
1497
|
+
function Fn(l, c, f) {
|
|
1498
|
+
var N = c ? f(ws(l), !0) : ws(l);
|
|
1499
|
+
return Ie(N, ht, new l.constructor());
|
|
1500
1500
|
}
|
|
1501
|
-
function
|
|
1501
|
+
function zn(l) {
|
|
1502
1502
|
return Cs ? Object(Cs.call(l)) : {};
|
|
1503
1503
|
}
|
|
1504
|
-
function
|
|
1504
|
+
function Vn(l, c) {
|
|
1505
1505
|
var f = c ? Ge(l.buffer) : l.buffer;
|
|
1506
1506
|
return new l.constructor(f, l.byteOffset, l.length);
|
|
1507
1507
|
}
|
|
1508
|
-
function
|
|
1509
|
-
var f = -1,
|
|
1510
|
-
for (c || (c = Array(
|
|
1508
|
+
function Kn(l, c) {
|
|
1509
|
+
var f = -1, N = l.length;
|
|
1510
|
+
for (c || (c = Array(N)); ++f < N; )
|
|
1511
1511
|
c[f] = l[f];
|
|
1512
1512
|
return c;
|
|
1513
1513
|
}
|
|
1514
|
-
function Ze(l, c, f,
|
|
1514
|
+
function Ze(l, c, f, N) {
|
|
1515
1515
|
f || (f = {});
|
|
1516
1516
|
for (var I = -1, _ = c.length; ++I < _; ) {
|
|
1517
1517
|
var M = c[I], B = void 0;
|
|
@@ -1519,46 +1519,46 @@ Qs.exports;
|
|
|
1519
1519
|
}
|
|
1520
1520
|
return f;
|
|
1521
1521
|
}
|
|
1522
|
-
function
|
|
1522
|
+
function Gn(l, c) {
|
|
1523
1523
|
return Ze(l, It(l), c);
|
|
1524
1524
|
}
|
|
1525
|
-
function
|
|
1526
|
-
return
|
|
1525
|
+
function Zn(l) {
|
|
1526
|
+
return Pn(l, Ye, It);
|
|
1527
1527
|
}
|
|
1528
1528
|
function se(l, c) {
|
|
1529
1529
|
var f = l.__data__;
|
|
1530
|
-
return
|
|
1530
|
+
return Qn(c) ? f[typeof c == "string" ? "string" : "hash"] : f.map;
|
|
1531
1531
|
}
|
|
1532
1532
|
function dt(l, c) {
|
|
1533
1533
|
var f = As(l, c);
|
|
1534
|
-
return
|
|
1534
|
+
return $n(f) ? f : void 0;
|
|
1535
1535
|
}
|
|
1536
|
-
var It = Pe ? Me(Pe, Object) :
|
|
1537
|
-
(fe && Rt(new fe(new ArrayBuffer(1))) != O || Qt && Rt(new Qt()) != d || ft && Rt(ft.resolve()) !=
|
|
1538
|
-
var c = ce.call(l), f = c == m ? l.constructor : void 0,
|
|
1539
|
-
if (
|
|
1540
|
-
switch (
|
|
1536
|
+
var It = Pe ? Me(Pe, Object) : er, Rt = jn;
|
|
1537
|
+
(fe && Rt(new fe(new ArrayBuffer(1))) != O || Qt && Rt(new Qt()) != d || ft && Rt(ft.resolve()) != b || de && Rt(new de()) != E || je && Rt(new je()) != k) && (Rt = function(l) {
|
|
1538
|
+
var c = ce.call(l), f = c == m ? l.constructor : void 0, N = f ? Q(f) : void 0;
|
|
1539
|
+
if (N)
|
|
1540
|
+
switch (N) {
|
|
1541
1541
|
case $e:
|
|
1542
1542
|
return O;
|
|
1543
1543
|
case te:
|
|
1544
1544
|
return d;
|
|
1545
1545
|
case He:
|
|
1546
|
-
return
|
|
1546
|
+
return b;
|
|
1547
1547
|
case Fe:
|
|
1548
|
-
return
|
|
1548
|
+
return E;
|
|
1549
1549
|
case ze:
|
|
1550
|
-
return
|
|
1550
|
+
return k;
|
|
1551
1551
|
}
|
|
1552
1552
|
return c;
|
|
1553
1553
|
});
|
|
1554
|
-
function
|
|
1554
|
+
function Wn(l) {
|
|
1555
1555
|
var c = l.length, f = l.constructor(c);
|
|
1556
1556
|
return c && typeof l[0] == "string" && At.call(l, "index") && (f.index = l.index, f.input = l.input), f;
|
|
1557
1557
|
}
|
|
1558
1558
|
function wt(l) {
|
|
1559
|
-
return typeof l.constructor == "function" && !Bs(l) ?
|
|
1559
|
+
return typeof l.constructor == "function" && !Bs(l) ? Un(rt(l)) : {};
|
|
1560
1560
|
}
|
|
1561
|
-
function
|
|
1561
|
+
function Xn(l, c, f, N) {
|
|
1562
1562
|
var I = l.constructor;
|
|
1563
1563
|
switch (c) {
|
|
1564
1564
|
case q:
|
|
@@ -1567,7 +1567,7 @@ Qs.exports;
|
|
|
1567
1567
|
case u:
|
|
1568
1568
|
return new I(+l);
|
|
1569
1569
|
case O:
|
|
1570
|
-
return ee(l,
|
|
1570
|
+
return ee(l, N);
|
|
1571
1571
|
case R:
|
|
1572
1572
|
case j:
|
|
1573
1573
|
case _t:
|
|
@@ -1577,28 +1577,28 @@ Qs.exports;
|
|
|
1577
1577
|
case ps:
|
|
1578
1578
|
case ms:
|
|
1579
1579
|
case bs:
|
|
1580
|
-
return
|
|
1580
|
+
return Vn(l, N);
|
|
1581
1581
|
case d:
|
|
1582
|
-
return Is(l,
|
|
1582
|
+
return Is(l, N, f);
|
|
1583
1583
|
case p:
|
|
1584
|
-
case
|
|
1584
|
+
case w:
|
|
1585
1585
|
return new I(l);
|
|
1586
|
-
case b:
|
|
1587
|
-
return Rs(l);
|
|
1588
1586
|
case v:
|
|
1589
|
-
return
|
|
1590
|
-
case
|
|
1591
|
-
return
|
|
1587
|
+
return Rs(l);
|
|
1588
|
+
case E:
|
|
1589
|
+
return Fn(l, N, f);
|
|
1590
|
+
case x:
|
|
1591
|
+
return zn(l);
|
|
1592
1592
|
}
|
|
1593
1593
|
}
|
|
1594
|
-
function
|
|
1595
|
-
return c = c ?? n, !!c && (typeof l == "number" ||
|
|
1594
|
+
function Yn(l, c) {
|
|
1595
|
+
return c = c ?? n, !!c && (typeof l == "number" || fn.test(l)) && l > -1 && l % 1 == 0 && l < c;
|
|
1596
1596
|
}
|
|
1597
|
-
function
|
|
1597
|
+
function Qn(l) {
|
|
1598
1598
|
var c = typeof l;
|
|
1599
1599
|
return c == "string" || c == "number" || c == "symbol" || c == "boolean" ? l !== "__proto__" : l === null;
|
|
1600
1600
|
}
|
|
1601
|
-
function
|
|
1601
|
+
function Jn(l) {
|
|
1602
1602
|
return !!Ts && Ts in l;
|
|
1603
1603
|
}
|
|
1604
1604
|
function Bs(l) {
|
|
@@ -1625,16 +1625,16 @@ Qs.exports;
|
|
|
1625
1625
|
return l === c || l !== l && c !== c;
|
|
1626
1626
|
}
|
|
1627
1627
|
function be(l) {
|
|
1628
|
-
return
|
|
1628
|
+
return tr(l) && At.call(l, "callee") && (!Ss.call(l, "callee") || ce.call(l) == i);
|
|
1629
1629
|
}
|
|
1630
1630
|
var We = Array.isArray;
|
|
1631
1631
|
function ye(l) {
|
|
1632
1632
|
return l != null && Ps(l.length) && !Xe(l);
|
|
1633
1633
|
}
|
|
1634
|
-
function
|
|
1634
|
+
function tr(l) {
|
|
1635
1635
|
return js(l) && ye(l);
|
|
1636
1636
|
}
|
|
1637
|
-
var Us = he ||
|
|
1637
|
+
var Us = he || sr;
|
|
1638
1638
|
function Xe(l) {
|
|
1639
1639
|
var c = Tt(l) ? ce.call(l) : "";
|
|
1640
1640
|
return c == g || c == y;
|
|
@@ -1650,51 +1650,51 @@ Qs.exports;
|
|
|
1650
1650
|
return !!l && typeof l == "object";
|
|
1651
1651
|
}
|
|
1652
1652
|
function Ye(l) {
|
|
1653
|
-
return ye(l) ? ge(l) :
|
|
1653
|
+
return ye(l) ? ge(l) : Hn(l);
|
|
1654
1654
|
}
|
|
1655
|
-
function
|
|
1655
|
+
function er() {
|
|
1656
1656
|
return [];
|
|
1657
1657
|
}
|
|
1658
|
-
function
|
|
1658
|
+
function sr() {
|
|
1659
1659
|
return !1;
|
|
1660
1660
|
}
|
|
1661
1661
|
r.exports = Ms;
|
|
1662
|
-
})(
|
|
1663
|
-
var Ki =
|
|
1664
|
-
|
|
1662
|
+
})(Ys, Ys.exports);
|
|
1663
|
+
var Ki = Ys.exports, Qs = { exports: {} };
|
|
1664
|
+
Qs.exports;
|
|
1665
1665
|
(function(r, t) {
|
|
1666
|
-
var e = 200, s = "__lodash_hash_undefined__", n = 1, i = 2, o = 9007199254740991, a = "[object Arguments]", u = "[object Array]", h = "[object AsyncFunction]", g = "[object Boolean]", y = "[object Date]", d = "[object Error]", p = "[object Function]", m = "[object GeneratorFunction]",
|
|
1667
|
-
P[ps] = P[ms] = P[bs] = P[
|
|
1668
|
-
var vs = typeof zt == "object" && zt && zt.Object === Object && zt,
|
|
1666
|
+
var e = 200, s = "__lodash_hash_undefined__", n = 1, i = 2, o = 9007199254740991, a = "[object Arguments]", u = "[object Array]", h = "[object AsyncFunction]", g = "[object Boolean]", y = "[object Date]", d = "[object Error]", p = "[object Function]", m = "[object GeneratorFunction]", b = "[object Map]", v = "[object Number]", E = "[object Null]", w = "[object Object]", x = "[object Promise]", k = "[object Proxy]", q = "[object RegExp]", O = "[object Set]", R = "[object String]", j = "[object Symbol]", _t = "[object Undefined]", jt = "[object WeakMap]", Wt = "[object ArrayBuffer]", Xt = "[object DataView]", ps = "[object Float32Array]", ms = "[object Float64Array]", bs = "[object Int8Array]", cn = "[object Int16Array]", un = "[object Int32Array]", hn = "[object Uint8Array]", fn = "[object Uint8ClampedArray]", U = "[object Uint16Array]", dn = "[object Uint32Array]", gn = /[\\^$.*+?()[\]{}|]/g, ut = /^\[object .+?Constructor\]$/, ys = /^(?:0|[1-9]\d*)$/, P = {};
|
|
1667
|
+
P[ps] = P[ms] = P[bs] = P[cn] = P[un] = P[hn] = P[fn] = P[U] = P[dn] = !0, P[a] = P[u] = P[Wt] = P[g] = P[Xt] = P[y] = P[d] = P[p] = P[b] = P[v] = P[w] = P[q] = P[O] = P[R] = P[jt] = !1;
|
|
1668
|
+
var vs = typeof zt == "object" && zt && zt.Object === Object && zt, pn = typeof self == "object" && self && self.Object === Object && self, ht = vs || pn || Function("return this")(), Es = t && !t.nodeType && t, Ns = Es && !0 && r && !r.nodeType && r, Ie = Ns && Ns.exports === Es, Re = Ie && vs.process, As = function() {
|
|
1669
1669
|
try {
|
|
1670
1670
|
return Re && Re.binding && Re.binding("util");
|
|
1671
1671
|
} catch {
|
|
1672
1672
|
}
|
|
1673
1673
|
}(), Be = As && As.isTypedArray;
|
|
1674
1674
|
function xs(l, c) {
|
|
1675
|
-
for (var f = -1,
|
|
1675
|
+
for (var f = -1, N = l == null ? 0 : l.length, I = 0, _ = []; ++f < N; ) {
|
|
1676
1676
|
var M = l[f];
|
|
1677
1677
|
c(M, f, l) && (_[I++] = M);
|
|
1678
1678
|
}
|
|
1679
1679
|
return _;
|
|
1680
1680
|
}
|
|
1681
1681
|
function Me(l, c) {
|
|
1682
|
-
for (var f = -1,
|
|
1682
|
+
for (var f = -1, N = c.length, I = l.length; ++f < N; )
|
|
1683
1683
|
l[I + f] = c[f];
|
|
1684
1684
|
return l;
|
|
1685
1685
|
}
|
|
1686
1686
|
function ws(l, c) {
|
|
1687
|
-
for (var f = -1,
|
|
1687
|
+
for (var f = -1, N = l == null ? 0 : l.length; ++f < N; )
|
|
1688
1688
|
if (c(l[f], f, l))
|
|
1689
1689
|
return !0;
|
|
1690
1690
|
return !1;
|
|
1691
1691
|
}
|
|
1692
|
-
function
|
|
1693
|
-
for (var f = -1,
|
|
1694
|
-
|
|
1695
|
-
return
|
|
1692
|
+
function mn(l, c) {
|
|
1693
|
+
for (var f = -1, N = Array(l); ++f < l; )
|
|
1694
|
+
N[f] = c(f);
|
|
1695
|
+
return N;
|
|
1696
1696
|
}
|
|
1697
|
-
function
|
|
1697
|
+
function bn(l) {
|
|
1698
1698
|
return function(c) {
|
|
1699
1699
|
return l(c);
|
|
1700
1700
|
};
|
|
@@ -1707,8 +1707,8 @@ Js.exports;
|
|
|
1707
1707
|
}
|
|
1708
1708
|
function Ts(l) {
|
|
1709
1709
|
var c = -1, f = Array(l.size);
|
|
1710
|
-
return l.forEach(function(
|
|
1711
|
-
f[++c] = [I,
|
|
1710
|
+
return l.forEach(function(N, I) {
|
|
1711
|
+
f[++c] = [I, N];
|
|
1712
1712
|
}), f;
|
|
1713
1713
|
}
|
|
1714
1714
|
function Ls(l, c) {
|
|
@@ -1718,31 +1718,31 @@ Js.exports;
|
|
|
1718
1718
|
}
|
|
1719
1719
|
function At(l) {
|
|
1720
1720
|
var c = -1, f = Array(l.size);
|
|
1721
|
-
return l.forEach(function(
|
|
1722
|
-
f[++c] =
|
|
1721
|
+
return l.forEach(function(N) {
|
|
1722
|
+
f[++c] = N;
|
|
1723
1723
|
}), f;
|
|
1724
1724
|
}
|
|
1725
|
-
var ce = Array.prototype,
|
|
1725
|
+
var ce = Array.prototype, yn = Function.prototype, Yt = Object.prototype, ue = ht["__core-js_shared__"], Ue = yn.toString, rt = Yt.hasOwnProperty, qs = function() {
|
|
1726
1726
|
var l = /[^.]+$/.exec(ue && ue.keys && ue.keys.IE_PROTO || "");
|
|
1727
1727
|
return l ? "Symbol(src)_1." + l : "";
|
|
1728
|
-
}(), Ss = Yt.toString,
|
|
1729
|
-
"^" + Ue.call(rt).replace(
|
|
1730
|
-
), Pe = Ie ? ht.Buffer : void 0, he = ht.Symbol, ks = ht.Uint8Array, fe = Yt.propertyIsEnumerable, Qt = ce.splice, ft = he ? he.toStringTag : void 0, de = Object.getOwnPropertySymbols, je = Pe ? Pe.isBuffer : void 0, Jt = Ls(Object.keys, Object), $e = It(ht, "DataView"), te = It(ht, "Map"), He = It(ht, "Promise"), Fe = It(ht, "Set"), ze = It(ht, "WeakMap"), $t = It(Object, "create"), Cs = Q($e), Ot = Q(te),
|
|
1728
|
+
}(), Ss = Yt.toString, vn = RegExp(
|
|
1729
|
+
"^" + Ue.call(rt).replace(gn, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1730
|
+
), Pe = Ie ? ht.Buffer : void 0, he = ht.Symbol, ks = ht.Uint8Array, fe = Yt.propertyIsEnumerable, Qt = ce.splice, ft = he ? he.toStringTag : void 0, de = Object.getOwnPropertySymbols, je = Pe ? Pe.isBuffer : void 0, Jt = Ls(Object.keys, Object), $e = It(ht, "DataView"), te = It(ht, "Map"), He = It(ht, "Promise"), Fe = It(ht, "Set"), ze = It(ht, "WeakMap"), $t = It(Object, "create"), Cs = Q($e), Ot = Q(te), En = Q(He), Nn = Q(Fe), An = Q(ze), _s = he ? he.prototype : void 0, Ve = _s ? _s.valueOf : void 0;
|
|
1731
1731
|
function z(l) {
|
|
1732
1732
|
var c = -1, f = l == null ? 0 : l.length;
|
|
1733
1733
|
for (this.clear(); ++c < f; ) {
|
|
1734
|
-
var
|
|
1735
|
-
this.set(
|
|
1734
|
+
var N = l[c];
|
|
1735
|
+
this.set(N[0], N[1]);
|
|
1736
1736
|
}
|
|
1737
1737
|
}
|
|
1738
|
-
function
|
|
1738
|
+
function xn() {
|
|
1739
1739
|
this.__data__ = $t ? $t(null) : {}, this.size = 0;
|
|
1740
1740
|
}
|
|
1741
|
-
function
|
|
1741
|
+
function wn(l) {
|
|
1742
1742
|
var c = this.has(l) && delete this.__data__[l];
|
|
1743
1743
|
return this.size -= c ? 1 : 0, c;
|
|
1744
1744
|
}
|
|
1745
|
-
function
|
|
1745
|
+
function Tn(l) {
|
|
1746
1746
|
var c = this.__data__;
|
|
1747
1747
|
if ($t) {
|
|
1748
1748
|
var f = c[l];
|
|
@@ -1750,73 +1750,73 @@ Js.exports;
|
|
|
1750
1750
|
}
|
|
1751
1751
|
return rt.call(c, l) ? c[l] : void 0;
|
|
1752
1752
|
}
|
|
1753
|
-
function
|
|
1753
|
+
function Ln(l) {
|
|
1754
1754
|
var c = this.__data__;
|
|
1755
1755
|
return $t ? c[l] !== void 0 : rt.call(c, l);
|
|
1756
1756
|
}
|
|
1757
|
-
function
|
|
1757
|
+
function qn(l, c) {
|
|
1758
1758
|
var f = this.__data__;
|
|
1759
1759
|
return this.size += this.has(l) ? 0 : 1, f[l] = $t && c === void 0 ? s : c, this;
|
|
1760
1760
|
}
|
|
1761
|
-
z.prototype.clear =
|
|
1761
|
+
z.prototype.clear = xn, z.prototype.delete = wn, z.prototype.get = Tn, z.prototype.has = Ln, z.prototype.set = qn;
|
|
1762
1762
|
function G(l) {
|
|
1763
1763
|
var c = -1, f = l == null ? 0 : l.length;
|
|
1764
1764
|
for (this.clear(); ++c < f; ) {
|
|
1765
|
-
var
|
|
1766
|
-
this.set(
|
|
1765
|
+
var N = l[c];
|
|
1766
|
+
this.set(N[0], N[1]);
|
|
1767
1767
|
}
|
|
1768
1768
|
}
|
|
1769
|
-
function
|
|
1769
|
+
function Sn() {
|
|
1770
1770
|
this.__data__ = [], this.size = 0;
|
|
1771
1771
|
}
|
|
1772
|
-
function
|
|
1772
|
+
function kn(l) {
|
|
1773
1773
|
var c = this.__data__, f = me(c, l);
|
|
1774
1774
|
if (f < 0)
|
|
1775
1775
|
return !1;
|
|
1776
|
-
var
|
|
1777
|
-
return f ==
|
|
1776
|
+
var N = c.length - 1;
|
|
1777
|
+
return f == N ? c.pop() : Qt.call(c, f, 1), --this.size, !0;
|
|
1778
1778
|
}
|
|
1779
|
-
function
|
|
1779
|
+
function Cn(l) {
|
|
1780
1780
|
var c = this.__data__, f = me(c, l);
|
|
1781
1781
|
return f < 0 ? void 0 : c[f][1];
|
|
1782
1782
|
}
|
|
1783
|
-
function
|
|
1783
|
+
function _n(l) {
|
|
1784
1784
|
return me(this.__data__, l) > -1;
|
|
1785
1785
|
}
|
|
1786
|
-
function
|
|
1787
|
-
var f = this.__data__,
|
|
1788
|
-
return
|
|
1786
|
+
function On(l, c) {
|
|
1787
|
+
var f = this.__data__, N = me(f, l);
|
|
1788
|
+
return N < 0 ? (++this.size, f.push([l, c])) : f[N][1] = c, this;
|
|
1789
1789
|
}
|
|
1790
|
-
G.prototype.clear =
|
|
1790
|
+
G.prototype.clear = Sn, G.prototype.delete = kn, G.prototype.get = Cn, G.prototype.has = _n, G.prototype.set = On;
|
|
1791
1791
|
function tt(l) {
|
|
1792
1792
|
var c = -1, f = l == null ? 0 : l.length;
|
|
1793
1793
|
for (this.clear(); ++c < f; ) {
|
|
1794
|
-
var
|
|
1795
|
-
this.set(
|
|
1794
|
+
var N = l[c];
|
|
1795
|
+
this.set(N[0], N[1]);
|
|
1796
1796
|
}
|
|
1797
1797
|
}
|
|
1798
|
-
function
|
|
1798
|
+
function In() {
|
|
1799
1799
|
this.size = 0, this.__data__ = {
|
|
1800
1800
|
hash: new z(),
|
|
1801
1801
|
map: new (te || G)(),
|
|
1802
1802
|
string: new z()
|
|
1803
1803
|
};
|
|
1804
1804
|
}
|
|
1805
|
-
function
|
|
1805
|
+
function Rn(l) {
|
|
1806
1806
|
var c = dt(this, l).delete(l);
|
|
1807
1807
|
return this.size -= c ? 1 : 0, c;
|
|
1808
1808
|
}
|
|
1809
|
-
function
|
|
1809
|
+
function Bn(l) {
|
|
1810
1810
|
return dt(this, l).get(l);
|
|
1811
1811
|
}
|
|
1812
|
-
function
|
|
1812
|
+
function Mn(l) {
|
|
1813
1813
|
return dt(this, l).has(l);
|
|
1814
1814
|
}
|
|
1815
|
-
function
|
|
1816
|
-
var f = dt(this, l),
|
|
1817
|
-
return f.set(l, c), this.size += f.size ==
|
|
1815
|
+
function Dn(l, c) {
|
|
1816
|
+
var f = dt(this, l), N = f.size;
|
|
1817
|
+
return f.set(l, c), this.size += f.size == N ? 0 : 1, this;
|
|
1818
1818
|
}
|
|
1819
|
-
tt.prototype.clear =
|
|
1819
|
+
tt.prototype.clear = In, tt.prototype.delete = Rn, tt.prototype.get = Bn, tt.prototype.has = Mn, tt.prototype.set = Dn;
|
|
1820
1820
|
function ge(l) {
|
|
1821
1821
|
var c = -1, f = l == null ? 0 : l.length;
|
|
1822
1822
|
for (this.__data__ = new tt(); ++c < f; )
|
|
@@ -1836,35 +1836,35 @@ Js.exports;
|
|
|
1836
1836
|
function Ke() {
|
|
1837
1837
|
this.__data__ = new G(), this.size = 0;
|
|
1838
1838
|
}
|
|
1839
|
-
function
|
|
1839
|
+
function Un(l) {
|
|
1840
1840
|
var c = this.__data__, f = c.delete(l);
|
|
1841
1841
|
return this.size = c.size, f;
|
|
1842
1842
|
}
|
|
1843
|
-
function
|
|
1843
|
+
function Pn(l) {
|
|
1844
1844
|
return this.__data__.get(l);
|
|
1845
1845
|
}
|
|
1846
|
-
function
|
|
1846
|
+
function jn(l) {
|
|
1847
1847
|
return this.__data__.has(l);
|
|
1848
1848
|
}
|
|
1849
|
-
function
|
|
1849
|
+
function $n(l, c) {
|
|
1850
1850
|
var f = this.__data__;
|
|
1851
1851
|
if (f instanceof G) {
|
|
1852
|
-
var
|
|
1853
|
-
if (!te ||
|
|
1854
|
-
return
|
|
1855
|
-
f = this.__data__ = new tt(
|
|
1852
|
+
var N = f.__data__;
|
|
1853
|
+
if (!te || N.length < e - 1)
|
|
1854
|
+
return N.push([l, c]), this.size = ++f.size, this;
|
|
1855
|
+
f = this.__data__ = new tt(N);
|
|
1856
1856
|
}
|
|
1857
1857
|
return f.set(l, c), this.size = f.size, this;
|
|
1858
1858
|
}
|
|
1859
|
-
xt.prototype.clear = Ke, xt.prototype.delete =
|
|
1860
|
-
function
|
|
1861
|
-
var f = be(l),
|
|
1859
|
+
xt.prototype.clear = Ke, xt.prototype.delete = Un, xt.prototype.get = Pn, xt.prototype.has = jn, xt.prototype.set = $n;
|
|
1860
|
+
function Hn(l, c) {
|
|
1861
|
+
var f = be(l), N = !f && Ds(l), I = !f && !N && ye(l), _ = !f && !N && !I && js(l), M = f || N || I || _, B = M ? mn(l.length, String) : [], $ = B.length;
|
|
1862
1862
|
for (var D in l)
|
|
1863
1863
|
rt.call(l, D) && !(M && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
1864
1864
|
(D == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
1865
1865
|
I && (D == "offset" || D == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
1866
1866
|
_ && (D == "buffer" || D == "byteLength" || D == "byteOffset") || // Skip index properties.
|
|
1867
|
-
|
|
1867
|
+
Xn(D, $))) && B.push(D);
|
|
1868
1868
|
return B;
|
|
1869
1869
|
}
|
|
1870
1870
|
function me(l, c) {
|
|
@@ -1874,56 +1874,56 @@ Js.exports;
|
|
|
1874
1874
|
return -1;
|
|
1875
1875
|
}
|
|
1876
1876
|
function Ge(l, c, f) {
|
|
1877
|
-
var
|
|
1878
|
-
return be(l) ?
|
|
1877
|
+
var N = c(l);
|
|
1878
|
+
return be(l) ? N : Me(N, f(l));
|
|
1879
1879
|
}
|
|
1880
1880
|
function ee(l) {
|
|
1881
|
-
return l == null ? l === void 0 ? _t :
|
|
1881
|
+
return l == null ? l === void 0 ? _t : E : ft && ft in Object(l) ? Rt(l) : Bs(l);
|
|
1882
1882
|
}
|
|
1883
1883
|
function Is(l) {
|
|
1884
1884
|
return Tt(l) && ee(l) == a;
|
|
1885
1885
|
}
|
|
1886
|
-
function Rs(l, c, f,
|
|
1887
|
-
return l === c ? !0 : l == null || c == null || !Tt(l) && !Tt(c) ? l !== l && c !== c :
|
|
1886
|
+
function Rs(l, c, f, N, I) {
|
|
1887
|
+
return l === c ? !0 : l == null || c == null || !Tt(l) && !Tt(c) ? l !== l && c !== c : Fn(l, c, f, N, Rs, I);
|
|
1888
1888
|
}
|
|
1889
|
-
function
|
|
1889
|
+
function Fn(l, c, f, N, I, _) {
|
|
1890
1890
|
var M = be(l), B = be(c), $ = M ? u : wt(l), D = B ? u : wt(c);
|
|
1891
|
-
$ = $ == a ?
|
|
1892
|
-
var Z = $ ==
|
|
1891
|
+
$ = $ == a ? w : $, D = D == a ? w : D;
|
|
1892
|
+
var Z = $ == w, et = D == w, H = $ == D;
|
|
1893
1893
|
if (H && ye(l)) {
|
|
1894
1894
|
if (!ye(c))
|
|
1895
1895
|
return !1;
|
|
1896
1896
|
M = !0, Z = !1;
|
|
1897
1897
|
}
|
|
1898
1898
|
if (H && !Z)
|
|
1899
|
-
return _ || (_ = new xt()), M || js(l) ? Ze(l, c, f,
|
|
1899
|
+
return _ || (_ = new xt()), M || js(l) ? Ze(l, c, f, N, I, _) : Gn(l, c, $, f, N, I, _);
|
|
1900
1900
|
if (!(f & n)) {
|
|
1901
1901
|
var W = Z && rt.call(l, "__wrapped__"), V = et && rt.call(c, "__wrapped__");
|
|
1902
1902
|
if (W || V) {
|
|
1903
1903
|
var Ht = W ? l.value() : l, Bt = V ? c.value() : c;
|
|
1904
|
-
return _ || (_ = new xt()), I(Ht, Bt, f,
|
|
1904
|
+
return _ || (_ = new xt()), I(Ht, Bt, f, N, _);
|
|
1905
1905
|
}
|
|
1906
1906
|
}
|
|
1907
|
-
return H ? (_ || (_ = new xt()),
|
|
1907
|
+
return H ? (_ || (_ = new xt()), Zn(l, c, f, N, I, _)) : !1;
|
|
1908
1908
|
}
|
|
1909
|
-
function
|
|
1910
|
-
if (!Ps(l) ||
|
|
1909
|
+
function zn(l) {
|
|
1910
|
+
if (!Ps(l) || Qn(l))
|
|
1911
1911
|
return !1;
|
|
1912
|
-
var c = Us(l) ?
|
|
1912
|
+
var c = Us(l) ? vn : ut;
|
|
1913
1913
|
return c.test(Q(l));
|
|
1914
1914
|
}
|
|
1915
|
-
function
|
|
1915
|
+
function Vn(l) {
|
|
1916
1916
|
return Tt(l) && Xe(l.length) && !!P[ee(l)];
|
|
1917
1917
|
}
|
|
1918
|
-
function
|
|
1919
|
-
if (!
|
|
1918
|
+
function Kn(l) {
|
|
1919
|
+
if (!Jn(l))
|
|
1920
1920
|
return Jt(l);
|
|
1921
1921
|
var c = [];
|
|
1922
1922
|
for (var f in Object(l))
|
|
1923
1923
|
rt.call(l, f) && f != "constructor" && c.push(f);
|
|
1924
1924
|
return c;
|
|
1925
1925
|
}
|
|
1926
|
-
function Ze(l, c, f,
|
|
1926
|
+
function Ze(l, c, f, N, I, _) {
|
|
1927
1927
|
var M = f & n, B = l.length, $ = c.length;
|
|
1928
1928
|
if (B != $ && !(M && $ > B))
|
|
1929
1929
|
return !1;
|
|
@@ -1933,8 +1933,8 @@ Js.exports;
|
|
|
1933
1933
|
var Z = -1, et = !0, H = f & i ? new ge() : void 0;
|
|
1934
1934
|
for (_.set(l, c), _.set(c, l); ++Z < B; ) {
|
|
1935
1935
|
var W = l[Z], V = c[Z];
|
|
1936
|
-
if (
|
|
1937
|
-
var Ht = M ?
|
|
1936
|
+
if (N)
|
|
1937
|
+
var Ht = M ? N(V, W, Z, c, l, _) : N(W, V, Z, l, c, _);
|
|
1938
1938
|
if (Ht !== void 0) {
|
|
1939
1939
|
if (Ht)
|
|
1940
1940
|
continue;
|
|
@@ -1943,20 +1943,20 @@ Js.exports;
|
|
|
1943
1943
|
}
|
|
1944
1944
|
if (H) {
|
|
1945
1945
|
if (!ws(c, function(Bt, ne) {
|
|
1946
|
-
if (!ae(H, ne) && (W === Bt || I(W, Bt, f,
|
|
1946
|
+
if (!ae(H, ne) && (W === Bt || I(W, Bt, f, N, _)))
|
|
1947
1947
|
return H.push(ne);
|
|
1948
1948
|
})) {
|
|
1949
1949
|
et = !1;
|
|
1950
1950
|
break;
|
|
1951
1951
|
}
|
|
1952
|
-
} else if (!(W === V || I(W, V, f,
|
|
1952
|
+
} else if (!(W === V || I(W, V, f, N, _))) {
|
|
1953
1953
|
et = !1;
|
|
1954
1954
|
break;
|
|
1955
1955
|
}
|
|
1956
1956
|
}
|
|
1957
1957
|
return _.delete(l), _.delete(c), et;
|
|
1958
1958
|
}
|
|
1959
|
-
function
|
|
1959
|
+
function Gn(l, c, f, N, I, _, M) {
|
|
1960
1960
|
switch (f) {
|
|
1961
1961
|
case Xt:
|
|
1962
1962
|
if (l.byteLength != c.byteLength || l.byteOffset != c.byteOffset)
|
|
@@ -1966,24 +1966,24 @@ Js.exports;
|
|
|
1966
1966
|
return !(l.byteLength != c.byteLength || !_(new ks(l), new ks(c)));
|
|
1967
1967
|
case g:
|
|
1968
1968
|
case y:
|
|
1969
|
-
case
|
|
1969
|
+
case v:
|
|
1970
1970
|
return Ms(+l, +c);
|
|
1971
1971
|
case d:
|
|
1972
1972
|
return l.name == c.name && l.message == c.message;
|
|
1973
1973
|
case q:
|
|
1974
1974
|
case R:
|
|
1975
1975
|
return l == c + "";
|
|
1976
|
-
case
|
|
1976
|
+
case b:
|
|
1977
1977
|
var B = Ts;
|
|
1978
1978
|
case O:
|
|
1979
|
-
var $ =
|
|
1979
|
+
var $ = N & n;
|
|
1980
1980
|
if (B || (B = At), l.size != c.size && !$)
|
|
1981
1981
|
return !1;
|
|
1982
1982
|
var D = M.get(l);
|
|
1983
1983
|
if (D)
|
|
1984
1984
|
return D == c;
|
|
1985
|
-
|
|
1986
|
-
var Z = Ze(B(l), B(c),
|
|
1985
|
+
N |= i, M.set(l, c);
|
|
1986
|
+
var Z = Ze(B(l), B(c), N, I, _, M);
|
|
1987
1987
|
return M.delete(l), Z;
|
|
1988
1988
|
case j:
|
|
1989
1989
|
if (Ve)
|
|
@@ -1991,7 +1991,7 @@ Js.exports;
|
|
|
1991
1991
|
}
|
|
1992
1992
|
return !1;
|
|
1993
1993
|
}
|
|
1994
|
-
function
|
|
1994
|
+
function Zn(l, c, f, N, I, _) {
|
|
1995
1995
|
var M = f & n, B = se(l), $ = B.length, D = se(c), Z = D.length;
|
|
1996
1996
|
if ($ != Z && !M)
|
|
1997
1997
|
return !1;
|
|
@@ -2008,9 +2008,9 @@ Js.exports;
|
|
|
2008
2008
|
for (var Ht = M; ++et < $; ) {
|
|
2009
2009
|
H = B[et];
|
|
2010
2010
|
var Bt = l[H], ne = c[H];
|
|
2011
|
-
if (
|
|
2012
|
-
var Jr = M ?
|
|
2013
|
-
if (!(Jr === void 0 ? Bt === ne || I(Bt, ne, f,
|
|
2011
|
+
if (N)
|
|
2012
|
+
var Jr = M ? N(ne, Bt, H, c, l, _) : N(Bt, ne, H, l, c, _);
|
|
2013
|
+
if (!(Jr === void 0 ? Bt === ne || I(Bt, ne, f, N, _) : Jr)) {
|
|
2014
2014
|
V = !1;
|
|
2015
2015
|
break;
|
|
2016
2016
|
}
|
|
@@ -2023,59 +2023,59 @@ Js.exports;
|
|
|
2023
2023
|
return _.delete(l), _.delete(c), V;
|
|
2024
2024
|
}
|
|
2025
2025
|
function se(l) {
|
|
2026
|
-
return Ge(l, Ye,
|
|
2026
|
+
return Ge(l, Ye, Wn);
|
|
2027
2027
|
}
|
|
2028
2028
|
function dt(l, c) {
|
|
2029
2029
|
var f = l.__data__;
|
|
2030
|
-
return
|
|
2030
|
+
return Yn(c) ? f[typeof c == "string" ? "string" : "hash"] : f.map;
|
|
2031
2031
|
}
|
|
2032
2032
|
function It(l, c) {
|
|
2033
2033
|
var f = De(l, c);
|
|
2034
|
-
return
|
|
2034
|
+
return zn(f) ? f : void 0;
|
|
2035
2035
|
}
|
|
2036
2036
|
function Rt(l) {
|
|
2037
2037
|
var c = rt.call(l, ft), f = l[ft];
|
|
2038
2038
|
try {
|
|
2039
2039
|
l[ft] = void 0;
|
|
2040
|
-
var
|
|
2040
|
+
var N = !0;
|
|
2041
2041
|
} catch {
|
|
2042
2042
|
}
|
|
2043
2043
|
var I = Ss.call(l);
|
|
2044
|
-
return
|
|
2044
|
+
return N && (c ? l[ft] = f : delete l[ft]), I;
|
|
2045
2045
|
}
|
|
2046
|
-
var
|
|
2046
|
+
var Wn = de ? function(l) {
|
|
2047
2047
|
return l == null ? [] : (l = Object(l), xs(de(l), function(c) {
|
|
2048
2048
|
return fe.call(l, c);
|
|
2049
2049
|
}));
|
|
2050
|
-
} :
|
|
2051
|
-
($e && wt(new $e(new ArrayBuffer(1))) != Xt || te && wt(new te()) !=
|
|
2052
|
-
var c = ee(l), f = c ==
|
|
2053
|
-
if (
|
|
2054
|
-
switch (
|
|
2050
|
+
} : er, wt = ee;
|
|
2051
|
+
($e && wt(new $e(new ArrayBuffer(1))) != Xt || te && wt(new te()) != b || He && wt(He.resolve()) != x || Fe && wt(new Fe()) != O || ze && wt(new ze()) != jt) && (wt = function(l) {
|
|
2052
|
+
var c = ee(l), f = c == w ? l.constructor : void 0, N = f ? Q(f) : "";
|
|
2053
|
+
if (N)
|
|
2054
|
+
switch (N) {
|
|
2055
2055
|
case Cs:
|
|
2056
2056
|
return Xt;
|
|
2057
2057
|
case Ot:
|
|
2058
|
-
return
|
|
2058
|
+
return b;
|
|
2059
|
+
case En:
|
|
2060
|
+
return x;
|
|
2059
2061
|
case Nn:
|
|
2060
|
-
return w;
|
|
2061
|
-
case An:
|
|
2062
2062
|
return O;
|
|
2063
|
-
case
|
|
2063
|
+
case An:
|
|
2064
2064
|
return jt;
|
|
2065
2065
|
}
|
|
2066
2066
|
return c;
|
|
2067
2067
|
});
|
|
2068
|
-
function
|
|
2068
|
+
function Xn(l, c) {
|
|
2069
2069
|
return c = c ?? o, !!c && (typeof l == "number" || ys.test(l)) && l > -1 && l % 1 == 0 && l < c;
|
|
2070
2070
|
}
|
|
2071
|
-
function
|
|
2071
|
+
function Yn(l) {
|
|
2072
2072
|
var c = typeof l;
|
|
2073
2073
|
return c == "string" || c == "number" || c == "symbol" || c == "boolean" ? l !== "__proto__" : l === null;
|
|
2074
2074
|
}
|
|
2075
|
-
function
|
|
2075
|
+
function Qn(l) {
|
|
2076
2076
|
return !!qs && qs in l;
|
|
2077
2077
|
}
|
|
2078
|
-
function
|
|
2078
|
+
function Jn(l) {
|
|
2079
2079
|
var c = l && l.constructor, f = typeof c == "function" && c.prototype || Yt;
|
|
2080
2080
|
return l === f;
|
|
2081
2081
|
}
|
|
@@ -2106,15 +2106,15 @@ Js.exports;
|
|
|
2106
2106
|
function We(l) {
|
|
2107
2107
|
return l != null && Xe(l.length) && !Us(l);
|
|
2108
2108
|
}
|
|
2109
|
-
var ye = je ||
|
|
2110
|
-
function
|
|
2109
|
+
var ye = je || sr;
|
|
2110
|
+
function tr(l, c) {
|
|
2111
2111
|
return Rs(l, c);
|
|
2112
2112
|
}
|
|
2113
2113
|
function Us(l) {
|
|
2114
2114
|
if (!Ps(l))
|
|
2115
2115
|
return !1;
|
|
2116
2116
|
var c = ee(l);
|
|
2117
|
-
return c == p || c == m || c == h || c ==
|
|
2117
|
+
return c == p || c == m || c == h || c == k;
|
|
2118
2118
|
}
|
|
2119
2119
|
function Xe(l) {
|
|
2120
2120
|
return typeof l == "number" && l > -1 && l % 1 == 0 && l <= o;
|
|
@@ -2126,19 +2126,19 @@ Js.exports;
|
|
|
2126
2126
|
function Tt(l) {
|
|
2127
2127
|
return l != null && typeof l == "object";
|
|
2128
2128
|
}
|
|
2129
|
-
var js = Be ?
|
|
2129
|
+
var js = Be ? bn(Be) : Vn;
|
|
2130
2130
|
function Ye(l) {
|
|
2131
|
-
return We(l) ?
|
|
2131
|
+
return We(l) ? Hn(l) : Kn(l);
|
|
2132
2132
|
}
|
|
2133
|
-
function
|
|
2133
|
+
function er() {
|
|
2134
2134
|
return [];
|
|
2135
2135
|
}
|
|
2136
|
-
function
|
|
2136
|
+
function sr() {
|
|
2137
2137
|
return !1;
|
|
2138
2138
|
}
|
|
2139
|
-
r.exports =
|
|
2140
|
-
})(
|
|
2141
|
-
var Gi =
|
|
2139
|
+
r.exports = tr;
|
|
2140
|
+
})(Qs, Qs.exports);
|
|
2141
|
+
var Gi = Qs.exports, $r = {};
|
|
2142
2142
|
Object.defineProperty($r, "__esModule", { value: !0 });
|
|
2143
2143
|
const ro = Ki, io = Gi;
|
|
2144
2144
|
var Ar;
|
|
@@ -2177,8 +2177,8 @@ var Ar;
|
|
|
2177
2177
|
r.transform = n;
|
|
2178
2178
|
})(Ar || (Ar = {}));
|
|
2179
2179
|
$r.default = Ar;
|
|
2180
|
-
var
|
|
2181
|
-
Object.defineProperty(
|
|
2180
|
+
var nn = {};
|
|
2181
|
+
Object.defineProperty(nn, "__esModule", { value: !0 });
|
|
2182
2182
|
var xr;
|
|
2183
2183
|
(function(r) {
|
|
2184
2184
|
function t(e) {
|
|
@@ -2186,10 +2186,10 @@ var xr;
|
|
|
2186
2186
|
}
|
|
2187
2187
|
r.length = t;
|
|
2188
2188
|
})(xr || (xr = {}));
|
|
2189
|
-
|
|
2189
|
+
nn.default = xr;
|
|
2190
2190
|
var Hr = {};
|
|
2191
2191
|
Object.defineProperty(Hr, "__esModule", { value: !0 });
|
|
2192
|
-
const fi =
|
|
2192
|
+
const fi = nn;
|
|
2193
2193
|
class lo {
|
|
2194
2194
|
constructor(t) {
|
|
2195
2195
|
this.ops = t, this.index = 0, this.offset = 0;
|
|
@@ -2237,7 +2237,7 @@ Hr.default = lo;
|
|
|
2237
2237
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.AttributeMap = t.OpIterator = t.Op = void 0;
|
|
2238
2238
|
const e = no, s = Ki, n = Gi, i = $r;
|
|
2239
2239
|
t.AttributeMap = i.default;
|
|
2240
|
-
const o =
|
|
2240
|
+
const o = nn;
|
|
2241
2241
|
t.Op = o.default;
|
|
2242
2242
|
const a = Hr;
|
|
2243
2243
|
t.OpIterator = a.default;
|
|
@@ -2311,8 +2311,8 @@ Hr.default = lo;
|
|
|
2311
2311
|
}
|
|
2312
2312
|
partition(d) {
|
|
2313
2313
|
const p = [], m = [];
|
|
2314
|
-
return this.forEach((
|
|
2315
|
-
(d(
|
|
2314
|
+
return this.forEach((b) => {
|
|
2315
|
+
(d(b) ? p : m).push(b);
|
|
2316
2316
|
}), [p, m];
|
|
2317
2317
|
}
|
|
2318
2318
|
reduce(d, p) {
|
|
@@ -2325,50 +2325,50 @@ Hr.default = lo;
|
|
|
2325
2325
|
return this.reduce((d, p) => d + o.default.length(p), 0);
|
|
2326
2326
|
}
|
|
2327
2327
|
slice(d = 0, p = 1 / 0) {
|
|
2328
|
-
const m = [],
|
|
2329
|
-
let
|
|
2330
|
-
for (;
|
|
2331
|
-
let
|
|
2332
|
-
|
|
2328
|
+
const m = [], b = new a.default(this.ops);
|
|
2329
|
+
let v = 0;
|
|
2330
|
+
for (; v < p && b.hasNext(); ) {
|
|
2331
|
+
let E;
|
|
2332
|
+
v < d ? E = b.next(d - v) : (E = b.next(p - v), m.push(E)), v += o.default.length(E);
|
|
2333
2333
|
}
|
|
2334
2334
|
return new g(m);
|
|
2335
2335
|
}
|
|
2336
2336
|
compose(d) {
|
|
2337
|
-
const p = new a.default(this.ops), m = new a.default(d.ops),
|
|
2338
|
-
if (
|
|
2339
|
-
let
|
|
2340
|
-
for (; p.peekType() === "insert" && p.peekLength() <=
|
|
2341
|
-
|
|
2342
|
-
|
|
2337
|
+
const p = new a.default(this.ops), m = new a.default(d.ops), b = [], v = m.peek();
|
|
2338
|
+
if (v != null && typeof v.retain == "number" && v.attributes == null) {
|
|
2339
|
+
let w = v.retain;
|
|
2340
|
+
for (; p.peekType() === "insert" && p.peekLength() <= w; )
|
|
2341
|
+
w -= p.peekLength(), b.push(p.next());
|
|
2342
|
+
v.retain - w > 0 && m.next(v.retain - w);
|
|
2343
2343
|
}
|
|
2344
|
-
const
|
|
2344
|
+
const E = new g(b);
|
|
2345
2345
|
for (; p.hasNext() || m.hasNext(); )
|
|
2346
2346
|
if (m.peekType() === "insert")
|
|
2347
|
-
|
|
2347
|
+
E.push(m.next());
|
|
2348
2348
|
else if (p.peekType() === "delete")
|
|
2349
|
-
|
|
2349
|
+
E.push(p.next());
|
|
2350
2350
|
else {
|
|
2351
|
-
const
|
|
2352
|
-
if (
|
|
2351
|
+
const w = Math.min(p.peekLength(), m.peekLength()), x = p.next(w), k = m.next(w);
|
|
2352
|
+
if (k.retain) {
|
|
2353
2353
|
const q = {};
|
|
2354
|
-
if (typeof
|
|
2355
|
-
q.retain = typeof
|
|
2356
|
-
else if (typeof
|
|
2357
|
-
|
|
2354
|
+
if (typeof x.retain == "number")
|
|
2355
|
+
q.retain = typeof k.retain == "number" ? w : k.retain;
|
|
2356
|
+
else if (typeof k.retain == "number")
|
|
2357
|
+
x.retain == null ? q.insert = x.insert : q.retain = x.retain;
|
|
2358
2358
|
else {
|
|
2359
|
-
const R =
|
|
2359
|
+
const R = x.retain == null ? "insert" : "retain", [j, _t, jt] = h(x[R], k.retain), Wt = g.getHandler(j);
|
|
2360
2360
|
q[R] = {
|
|
2361
2361
|
[j]: Wt.compose(_t, jt, R === "retain")
|
|
2362
2362
|
};
|
|
2363
2363
|
}
|
|
2364
|
-
const O = i.default.compose(
|
|
2365
|
-
if (O && (q.attributes = O),
|
|
2364
|
+
const O = i.default.compose(x.attributes, k.attributes, typeof x.retain == "number");
|
|
2365
|
+
if (O && (q.attributes = O), E.push(q), !m.hasNext() && n(E.ops[E.ops.length - 1], q)) {
|
|
2366
2366
|
const R = new g(p.rest());
|
|
2367
|
-
return
|
|
2367
|
+
return E.concat(R).chop();
|
|
2368
2368
|
}
|
|
2369
|
-
} else typeof
|
|
2369
|
+
} else typeof k.delete == "number" && (typeof x.retain == "number" || typeof x.retain == "object" && x.retain !== null) && E.push(k);
|
|
2370
2370
|
}
|
|
2371
|
-
return
|
|
2371
|
+
return E.chop();
|
|
2372
2372
|
}
|
|
2373
2373
|
concat(d) {
|
|
2374
2374
|
const p = new g(this.ops.slice());
|
|
@@ -2377,69 +2377,69 @@ Hr.default = lo;
|
|
|
2377
2377
|
diff(d, p) {
|
|
2378
2378
|
if (this.ops === d.ops)
|
|
2379
2379
|
return new g();
|
|
2380
|
-
const m = [this, d].map((
|
|
2381
|
-
if (
|
|
2382
|
-
return typeof
|
|
2383
|
-
const q =
|
|
2380
|
+
const m = [this, d].map((x) => x.map((k) => {
|
|
2381
|
+
if (k.insert != null)
|
|
2382
|
+
return typeof k.insert == "string" ? k.insert : u;
|
|
2383
|
+
const q = x === d ? "on" : "with";
|
|
2384
2384
|
throw new Error("diff() called " + q + " non-document");
|
|
2385
|
-
}).join("")),
|
|
2386
|
-
return
|
|
2387
|
-
let
|
|
2388
|
-
for (;
|
|
2385
|
+
}).join("")), b = new g(), v = e(m[0], m[1], p, !0), E = new a.default(this.ops), w = new a.default(d.ops);
|
|
2386
|
+
return v.forEach((x) => {
|
|
2387
|
+
let k = x[1].length;
|
|
2388
|
+
for (; k > 0; ) {
|
|
2389
2389
|
let q = 0;
|
|
2390
|
-
switch (
|
|
2390
|
+
switch (x[0]) {
|
|
2391
2391
|
case e.INSERT:
|
|
2392
|
-
q = Math.min(
|
|
2392
|
+
q = Math.min(w.peekLength(), k), b.push(w.next(q));
|
|
2393
2393
|
break;
|
|
2394
2394
|
case e.DELETE:
|
|
2395
|
-
q = Math.min(
|
|
2395
|
+
q = Math.min(k, E.peekLength()), E.next(q), b.delete(q);
|
|
2396
2396
|
break;
|
|
2397
2397
|
case e.EQUAL:
|
|
2398
|
-
q = Math.min(
|
|
2399
|
-
const O =
|
|
2400
|
-
n(O.insert, R.insert) ?
|
|
2398
|
+
q = Math.min(E.peekLength(), w.peekLength(), k);
|
|
2399
|
+
const O = E.next(q), R = w.next(q);
|
|
2400
|
+
n(O.insert, R.insert) ? b.retain(q, i.default.diff(O.attributes, R.attributes)) : b.push(R).delete(q);
|
|
2401
2401
|
break;
|
|
2402
2402
|
}
|
|
2403
|
-
|
|
2403
|
+
k -= q;
|
|
2404
2404
|
}
|
|
2405
|
-
}),
|
|
2405
|
+
}), b.chop();
|
|
2406
2406
|
}
|
|
2407
2407
|
eachLine(d, p = `
|
|
2408
2408
|
`) {
|
|
2409
2409
|
const m = new a.default(this.ops);
|
|
2410
|
-
let
|
|
2410
|
+
let b = new g(), v = 0;
|
|
2411
2411
|
for (; m.hasNext(); ) {
|
|
2412
2412
|
if (m.peekType() !== "insert")
|
|
2413
2413
|
return;
|
|
2414
|
-
const
|
|
2415
|
-
if (
|
|
2416
|
-
|
|
2417
|
-
else if (
|
|
2418
|
-
|
|
2414
|
+
const E = m.peek(), w = o.default.length(E) - m.peekLength(), x = typeof E.insert == "string" ? E.insert.indexOf(p, w) - w : -1;
|
|
2415
|
+
if (x < 0)
|
|
2416
|
+
b.push(m.next());
|
|
2417
|
+
else if (x > 0)
|
|
2418
|
+
b.push(m.next(x));
|
|
2419
2419
|
else {
|
|
2420
|
-
if (d(
|
|
2420
|
+
if (d(b, m.next(1).attributes || {}, v) === !1)
|
|
2421
2421
|
return;
|
|
2422
|
-
|
|
2422
|
+
v += 1, b = new g();
|
|
2423
2423
|
}
|
|
2424
2424
|
}
|
|
2425
|
-
|
|
2425
|
+
b.length() > 0 && d(b, {}, v);
|
|
2426
2426
|
}
|
|
2427
2427
|
invert(d) {
|
|
2428
2428
|
const p = new g();
|
|
2429
|
-
return this.reduce((m,
|
|
2430
|
-
if (
|
|
2431
|
-
p.delete(o.default.length(
|
|
2429
|
+
return this.reduce((m, b) => {
|
|
2430
|
+
if (b.insert)
|
|
2431
|
+
p.delete(o.default.length(b));
|
|
2432
2432
|
else {
|
|
2433
|
-
if (typeof
|
|
2434
|
-
return p.retain(
|
|
2435
|
-
if (
|
|
2436
|
-
const
|
|
2437
|
-
return d.slice(m, m +
|
|
2438
|
-
|
|
2439
|
-
}), m +
|
|
2440
|
-
} else if (typeof
|
|
2441
|
-
const
|
|
2442
|
-
return p.retain({ [
|
|
2433
|
+
if (typeof b.retain == "number" && b.attributes == null)
|
|
2434
|
+
return p.retain(b.retain), m + b.retain;
|
|
2435
|
+
if (b.delete || typeof b.retain == "number") {
|
|
2436
|
+
const v = b.delete || b.retain;
|
|
2437
|
+
return d.slice(m, m + v).forEach((w) => {
|
|
2438
|
+
b.delete ? p.push(w) : b.retain && b.attributes && p.retain(o.default.length(w), i.default.invert(b.attributes, w.attributes));
|
|
2439
|
+
}), m + v;
|
|
2440
|
+
} else if (typeof b.retain == "object" && b.retain !== null) {
|
|
2441
|
+
const v = d.slice(m, m + 1), E = new a.default(v.ops).next(), [w, x, k] = h(b.retain, E.insert), q = g.getHandler(w);
|
|
2442
|
+
return p.retain({ [w]: q.invert(x, k) }, i.default.invert(b.attributes, E.attributes)), m + 1;
|
|
2443
2443
|
}
|
|
2444
2444
|
}
|
|
2445
2445
|
return m;
|
|
@@ -2448,21 +2448,21 @@ Hr.default = lo;
|
|
|
2448
2448
|
transform(d, p = !1) {
|
|
2449
2449
|
if (p = !!p, typeof d == "number")
|
|
2450
2450
|
return this.transformPosition(d, p);
|
|
2451
|
-
const m = d,
|
|
2452
|
-
for (;
|
|
2453
|
-
if (
|
|
2454
|
-
|
|
2455
|
-
else if (
|
|
2456
|
-
|
|
2451
|
+
const m = d, b = new a.default(this.ops), v = new a.default(m.ops), E = new g();
|
|
2452
|
+
for (; b.hasNext() || v.hasNext(); )
|
|
2453
|
+
if (b.peekType() === "insert" && (p || v.peekType() !== "insert"))
|
|
2454
|
+
E.retain(o.default.length(b.next()));
|
|
2455
|
+
else if (v.peekType() === "insert")
|
|
2456
|
+
E.push(v.next());
|
|
2457
2457
|
else {
|
|
2458
|
-
const
|
|
2459
|
-
if (
|
|
2458
|
+
const w = Math.min(b.peekLength(), v.peekLength()), x = b.next(w), k = v.next(w);
|
|
2459
|
+
if (x.delete)
|
|
2460
2460
|
continue;
|
|
2461
|
-
if (
|
|
2462
|
-
|
|
2461
|
+
if (k.delete)
|
|
2462
|
+
E.push(k);
|
|
2463
2463
|
else {
|
|
2464
|
-
const q =
|
|
2465
|
-
let R = typeof O == "object" && O !== null ? O :
|
|
2464
|
+
const q = x.retain, O = k.retain;
|
|
2465
|
+
let R = typeof O == "object" && O !== null ? O : w;
|
|
2466
2466
|
if (typeof q == "object" && q !== null && typeof O == "object" && O !== null) {
|
|
2467
2467
|
const j = Object.keys(q)[0];
|
|
2468
2468
|
if (j === Object.keys(O)[0]) {
|
|
@@ -2472,22 +2472,22 @@ Hr.default = lo;
|
|
|
2472
2472
|
});
|
|
2473
2473
|
}
|
|
2474
2474
|
}
|
|
2475
|
-
|
|
2475
|
+
E.retain(R, i.default.transform(x.attributes, k.attributes, p));
|
|
2476
2476
|
}
|
|
2477
2477
|
}
|
|
2478
|
-
return
|
|
2478
|
+
return E.chop();
|
|
2479
2479
|
}
|
|
2480
2480
|
transformPosition(d, p = !1) {
|
|
2481
2481
|
p = !!p;
|
|
2482
2482
|
const m = new a.default(this.ops);
|
|
2483
|
-
let
|
|
2484
|
-
for (; m.hasNext() &&
|
|
2485
|
-
const
|
|
2486
|
-
if (m.next(),
|
|
2487
|
-
d -= Math.min(
|
|
2483
|
+
let b = 0;
|
|
2484
|
+
for (; m.hasNext() && b <= d; ) {
|
|
2485
|
+
const v = m.peekLength(), E = m.peekType();
|
|
2486
|
+
if (m.next(), E === "delete") {
|
|
2487
|
+
d -= Math.min(v, d - b);
|
|
2488
2488
|
continue;
|
|
2489
|
-
} else
|
|
2490
|
-
|
|
2489
|
+
} else E === "insert" && (b < d || !p) && (d += v);
|
|
2490
|
+
b += v;
|
|
2491
2491
|
}
|
|
2492
2492
|
return d;
|
|
2493
2493
|
}
|
|
@@ -2495,7 +2495,7 @@ Hr.default = lo;
|
|
|
2495
2495
|
g.Op = o.default, g.OpIterator = a.default, g.AttributeMap = i.default, g.handlers = {}, t.default = g, r.exports = g, r.exports.default = g;
|
|
2496
2496
|
})(Nr, Nr.exports);
|
|
2497
2497
|
var ct = Nr.exports;
|
|
2498
|
-
const
|
|
2498
|
+
const S = /* @__PURE__ */ Bi(ct);
|
|
2499
2499
|
class Et extends nt {
|
|
2500
2500
|
static value() {
|
|
2501
2501
|
}
|
|
@@ -2511,9 +2511,9 @@ class Et extends nt {
|
|
|
2511
2511
|
}
|
|
2512
2512
|
Et.blotName = "break";
|
|
2513
2513
|
Et.tagName = "BR";
|
|
2514
|
-
let yt = class extends
|
|
2514
|
+
let yt = class extends Xs {
|
|
2515
2515
|
};
|
|
2516
|
-
function
|
|
2516
|
+
function rn(r) {
|
|
2517
2517
|
return r.replace(/[&<>"']/g, (t) => ({
|
|
2518
2518
|
"&": "&",
|
|
2519
2519
|
"<": "<",
|
|
@@ -2621,10 +2621,10 @@ K.defaultChild = Et;
|
|
|
2621
2621
|
K.allowedChildren = [Et, Ct, nt, yt];
|
|
2622
2622
|
class at extends nt {
|
|
2623
2623
|
attach() {
|
|
2624
|
-
super.attach(), this.attributes = new
|
|
2624
|
+
super.attach(), this.attributes = new Js(this.domNode);
|
|
2625
2625
|
}
|
|
2626
2626
|
delta() {
|
|
2627
|
-
return new
|
|
2627
|
+
return new S().insert(this.value(), {
|
|
2628
2628
|
...this.formats(),
|
|
2629
2629
|
...this.attributes.values()
|
|
2630
2630
|
});
|
|
@@ -2654,7 +2654,7 @@ class at extends nt {
|
|
|
2654
2654
|
at.scope = C.BLOCK_BLOT;
|
|
2655
2655
|
function Zi(r) {
|
|
2656
2656
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
2657
|
-
return r.descendants(X).reduce((e, s) => s.length() === 0 ? e : e.insert(s.value(), lt(s, {}, t)), new
|
|
2657
|
+
return r.descendants(X).reduce((e, s) => s.length() === 0 ? e : e.insert(s.value(), lt(s, {}, t)), new S()).insert(`
|
|
2658
2658
|
`, lt(r));
|
|
2659
2659
|
}
|
|
2660
2660
|
function lt(r) {
|
|
@@ -2799,47 +2799,47 @@ var Wi = { exports: {} };
|
|
|
2799
2799
|
var g = e ? e + h : h, y = this._events[g];
|
|
2800
2800
|
return y ? y.fn ? 1 : y.length : 0;
|
|
2801
2801
|
}, a.prototype.emit = function(h, g, y, d, p, m) {
|
|
2802
|
-
var
|
|
2803
|
-
if (!this._events[
|
|
2804
|
-
var
|
|
2805
|
-
if (
|
|
2806
|
-
switch (
|
|
2802
|
+
var b = e ? e + h : h;
|
|
2803
|
+
if (!this._events[b]) return !1;
|
|
2804
|
+
var v = this._events[b], E = arguments.length, w, x;
|
|
2805
|
+
if (v.fn) {
|
|
2806
|
+
switch (v.once && this.removeListener(h, v.fn, void 0, !0), E) {
|
|
2807
2807
|
case 1:
|
|
2808
|
-
return
|
|
2808
|
+
return v.fn.call(v.context), !0;
|
|
2809
2809
|
case 2:
|
|
2810
|
-
return
|
|
2810
|
+
return v.fn.call(v.context, g), !0;
|
|
2811
2811
|
case 3:
|
|
2812
|
-
return
|
|
2812
|
+
return v.fn.call(v.context, g, y), !0;
|
|
2813
2813
|
case 4:
|
|
2814
|
-
return
|
|
2814
|
+
return v.fn.call(v.context, g, y, d), !0;
|
|
2815
2815
|
case 5:
|
|
2816
|
-
return
|
|
2816
|
+
return v.fn.call(v.context, g, y, d, p), !0;
|
|
2817
2817
|
case 6:
|
|
2818
|
-
return
|
|
2818
|
+
return v.fn.call(v.context, g, y, d, p, m), !0;
|
|
2819
2819
|
}
|
|
2820
|
-
for (
|
|
2821
|
-
x
|
|
2822
|
-
|
|
2820
|
+
for (x = 1, w = new Array(E - 1); x < E; x++)
|
|
2821
|
+
w[x - 1] = arguments[x];
|
|
2822
|
+
v.fn.apply(v.context, w);
|
|
2823
2823
|
} else {
|
|
2824
|
-
var
|
|
2825
|
-
for (
|
|
2826
|
-
switch (
|
|
2824
|
+
var k = v.length, q;
|
|
2825
|
+
for (x = 0; x < k; x++)
|
|
2826
|
+
switch (v[x].once && this.removeListener(h, v[x].fn, void 0, !0), E) {
|
|
2827
2827
|
case 1:
|
|
2828
|
-
|
|
2828
|
+
v[x].fn.call(v[x].context);
|
|
2829
2829
|
break;
|
|
2830
2830
|
case 2:
|
|
2831
|
-
|
|
2831
|
+
v[x].fn.call(v[x].context, g);
|
|
2832
2832
|
break;
|
|
2833
2833
|
case 3:
|
|
2834
|
-
|
|
2834
|
+
v[x].fn.call(v[x].context, g, y);
|
|
2835
2835
|
break;
|
|
2836
2836
|
case 4:
|
|
2837
|
-
|
|
2837
|
+
v[x].fn.call(v[x].context, g, y, d);
|
|
2838
2838
|
break;
|
|
2839
2839
|
default:
|
|
2840
|
-
if (!
|
|
2841
|
-
|
|
2842
|
-
|
|
2840
|
+
if (!w) for (q = 1, w = new Array(E - 1); q < E; q++)
|
|
2841
|
+
w[q - 1] = arguments[q];
|
|
2842
|
+
v[x].fn.apply(v[x].context, w);
|
|
2843
2843
|
}
|
|
2844
2844
|
}
|
|
2845
2845
|
return !0;
|
|
@@ -2856,9 +2856,9 @@ var Wi = { exports: {} };
|
|
|
2856
2856
|
if (m.fn)
|
|
2857
2857
|
m.fn === g && (!d || m.once) && (!y || m.context === y) && o(this, p);
|
|
2858
2858
|
else {
|
|
2859
|
-
for (var
|
|
2860
|
-
(m[
|
|
2861
|
-
|
|
2859
|
+
for (var b = 0, v = [], E = m.length; b < E; b++)
|
|
2860
|
+
(m[b].fn !== g || d && !m[b].once || y && m[b].context !== y) && v.push(m[b]);
|
|
2861
|
+
v.length ? this._events[p] = v.length === 1 ? v[0] : v : o(this, p);
|
|
2862
2862
|
}
|
|
2863
2863
|
return this;
|
|
2864
2864
|
}, a.prototype.removeAllListeners = function(h) {
|
|
@@ -2894,7 +2894,7 @@ co.forEach((r) => {
|
|
|
2894
2894
|
});
|
|
2895
2895
|
});
|
|
2896
2896
|
});
|
|
2897
|
-
class
|
|
2897
|
+
class L extends ao {
|
|
2898
2898
|
constructor() {
|
|
2899
2899
|
super(), this.domListeners = {}, this.on("error", cr.error);
|
|
2900
2900
|
}
|
|
@@ -2921,7 +2921,7 @@ class S extends ao {
|
|
|
2921
2921
|
});
|
|
2922
2922
|
}
|
|
2923
2923
|
}
|
|
2924
|
-
T(
|
|
2924
|
+
T(L, "events", {
|
|
2925
2925
|
EDITOR_CHANGE: "editor-change",
|
|
2926
2926
|
SCROLL_BEFORE_UPDATE: "scroll-before-update",
|
|
2927
2927
|
SCROLL_BLOT_MOUNT: "scroll-blot-mount",
|
|
@@ -2935,7 +2935,7 @@ T(S, "events", {
|
|
|
2935
2935
|
COMPOSITION_START: "composition-start",
|
|
2936
2936
|
COMPOSITION_BEFORE_END: "composition-before-end",
|
|
2937
2937
|
COMPOSITION_END: "composition-end"
|
|
2938
|
-
}), T(
|
|
2938
|
+
}), T(L, "sources", {
|
|
2939
2939
|
API: "api",
|
|
2940
2940
|
SILENT: "silent",
|
|
2941
2941
|
USER: "user"
|
|
@@ -2950,19 +2950,19 @@ class re {
|
|
|
2950
2950
|
class uo {
|
|
2951
2951
|
constructor(t, e) {
|
|
2952
2952
|
this.emitter = e, this.scroll = t, this.composing = !1, this.mouseDown = !1, this.root = this.scroll.domNode, this.cursor = this.scroll.create("cursor", this), this.savedRange = new re(0, 0), this.lastRange = this.savedRange, this.lastNative = null, this.handleComposition(), this.handleDragging(), this.emitter.listenDOM("selectionchange", document, () => {
|
|
2953
|
-
!this.mouseDown && !this.composing && setTimeout(this.update.bind(this,
|
|
2954
|
-
}), this.emitter.on(
|
|
2953
|
+
!this.mouseDown && !this.composing && setTimeout(this.update.bind(this, L.sources.USER), 1);
|
|
2954
|
+
}), this.emitter.on(L.events.SCROLL_BEFORE_UPDATE, () => {
|
|
2955
2955
|
if (!this.hasFocus()) return;
|
|
2956
2956
|
const s = this.getNativeRange();
|
|
2957
|
-
s != null && s.start.node !== this.cursor.textNode && this.emitter.once(
|
|
2957
|
+
s != null && s.start.node !== this.cursor.textNode && this.emitter.once(L.events.SCROLL_UPDATE, (n, i) => {
|
|
2958
2958
|
try {
|
|
2959
2959
|
this.root.contains(s.start.node) && this.root.contains(s.end.node) && this.setNativeRange(s.start.node, s.start.offset, s.end.node, s.end.offset);
|
|
2960
2960
|
const o = i.some((a) => a.type === "characterData" || a.type === "childList" || a.type === "attributes" && a.target === this.root);
|
|
2961
|
-
this.update(o ?
|
|
2961
|
+
this.update(o ? L.sources.SILENT : n);
|
|
2962
2962
|
} catch {
|
|
2963
2963
|
}
|
|
2964
2964
|
});
|
|
2965
|
-
}), this.emitter.on(
|
|
2965
|
+
}), this.emitter.on(L.events.SCROLL_OPTIMIZE, (s, n) => {
|
|
2966
2966
|
if (n.range) {
|
|
2967
2967
|
const {
|
|
2968
2968
|
startNode: i,
|
|
@@ -2970,14 +2970,14 @@ class uo {
|
|
|
2970
2970
|
endNode: a,
|
|
2971
2971
|
endOffset: u
|
|
2972
2972
|
} = n.range;
|
|
2973
|
-
this.setNativeRange(i, o, a, u), this.update(
|
|
2973
|
+
this.setNativeRange(i, o, a, u), this.update(L.sources.SILENT);
|
|
2974
2974
|
}
|
|
2975
|
-
}), this.update(
|
|
2975
|
+
}), this.update(L.sources.SILENT);
|
|
2976
2976
|
}
|
|
2977
2977
|
handleComposition() {
|
|
2978
|
-
this.emitter.on(
|
|
2978
|
+
this.emitter.on(L.events.COMPOSITION_BEFORE_START, () => {
|
|
2979
2979
|
this.composing = !0;
|
|
2980
|
-
}), this.emitter.on(
|
|
2980
|
+
}), this.emitter.on(L.events.COMPOSITION_END, () => {
|
|
2981
2981
|
if (this.composing = !1, this.cursor.parent) {
|
|
2982
2982
|
const t = this.cursor.restore();
|
|
2983
2983
|
if (!t) return;
|
|
@@ -2991,7 +2991,7 @@ class uo {
|
|
|
2991
2991
|
this.emitter.listenDOM("mousedown", document.body, () => {
|
|
2992
2992
|
this.mouseDown = !0;
|
|
2993
2993
|
}), this.emitter.listenDOM("mouseup", document.body, () => {
|
|
2994
|
-
this.mouseDown = !1, this.update(
|
|
2994
|
+
this.mouseDown = !1, this.update(L.sources.USER);
|
|
2995
2995
|
});
|
|
2996
2996
|
}
|
|
2997
2997
|
focus() {
|
|
@@ -3138,7 +3138,7 @@ class uo {
|
|
|
3138
3138
|
o.removeAllRanges(), this.root.blur();
|
|
3139
3139
|
}
|
|
3140
3140
|
setRange(t) {
|
|
3141
|
-
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
3141
|
+
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : L.sources.API;
|
|
3142
3142
|
if (typeof e == "string" && (s = e, e = !1), ur.info("setRange", t), t != null) {
|
|
3143
3143
|
const n = this.rangeToNative(t);
|
|
3144
3144
|
this.setNativeRange(...n, e);
|
|
@@ -3147,15 +3147,15 @@ class uo {
|
|
|
3147
3147
|
this.update(s);
|
|
3148
3148
|
}
|
|
3149
3149
|
update() {
|
|
3150
|
-
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
3150
|
+
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : L.sources.USER;
|
|
3151
3151
|
const e = this.lastRange, [s, n] = this.getRange();
|
|
3152
3152
|
if (this.lastRange = s, this.lastNative = n, this.lastRange != null && (this.savedRange = this.lastRange), !Mr(e, this.lastRange)) {
|
|
3153
3153
|
if (!this.composing && n != null && n.native.collapsed && n.start.node !== this.cursor.textNode) {
|
|
3154
3154
|
const o = this.cursor.restore();
|
|
3155
3155
|
o && this.setNativeRange(o.startNode, o.startOffset, o.endNode, o.endOffset);
|
|
3156
3156
|
}
|
|
3157
|
-
const i = [
|
|
3158
|
-
this.emitter.emit(
|
|
3157
|
+
const i = [L.events.SELECTION_CHANGE, Le(this.lastRange), Le(e), t];
|
|
3158
|
+
this.emitter.emit(L.events.EDITOR_CHANGE, ...i), t !== L.sources.SILENT && this.emitter.emit(...i);
|
|
3159
3159
|
}
|
|
3160
3160
|
}
|
|
3161
3161
|
}
|
|
@@ -3176,7 +3176,7 @@ class fo {
|
|
|
3176
3176
|
this.scroll.update();
|
|
3177
3177
|
let e = this.scroll.length();
|
|
3178
3178
|
this.scroll.batchStart();
|
|
3179
|
-
const s = gi(t), n = new
|
|
3179
|
+
const s = gi(t), n = new S();
|
|
3180
3180
|
return po(s.ops.slice()).reduce((o, a) => {
|
|
3181
3181
|
const u = ct.Op.length(a);
|
|
3182
3182
|
let h = a.attributes || {}, g = !1, y = !1;
|
|
@@ -3185,29 +3185,29 @@ class fo {
|
|
|
3185
3185
|
const m = a.insert;
|
|
3186
3186
|
y = !m.endsWith(`
|
|
3187
3187
|
`) && (e <= o || !!this.scroll.descendant(at, o)[0]), this.scroll.insertAt(o, m);
|
|
3188
|
-
const [
|
|
3189
|
-
let
|
|
3190
|
-
if (
|
|
3191
|
-
const [
|
|
3192
|
-
|
|
3188
|
+
const [b, v] = this.scroll.line(o);
|
|
3189
|
+
let E = Gt({}, lt(b));
|
|
3190
|
+
if (b instanceof K) {
|
|
3191
|
+
const [w] = b.descendant(X, v);
|
|
3192
|
+
w && (E = Gt(E, lt(w)));
|
|
3193
3193
|
}
|
|
3194
|
-
h = ct.AttributeMap.diff(
|
|
3194
|
+
h = ct.AttributeMap.diff(E, h) || {};
|
|
3195
3195
|
} else if (typeof a.insert == "object") {
|
|
3196
3196
|
const m = Object.keys(a.insert)[0];
|
|
3197
3197
|
if (m == null) return o;
|
|
3198
|
-
const
|
|
3199
|
-
if (
|
|
3198
|
+
const b = this.scroll.query(m, C.INLINE) != null;
|
|
3199
|
+
if (b)
|
|
3200
3200
|
(e <= o || this.scroll.descendant(at, o)[0]) && (y = !0);
|
|
3201
3201
|
else if (o > 0) {
|
|
3202
|
-
const [
|
|
3203
|
-
|
|
3204
|
-
` && (g = !0) :
|
|
3202
|
+
const [v, E] = this.scroll.descendant(X, o - 1);
|
|
3203
|
+
v instanceof yt ? v.value()[E] !== `
|
|
3204
|
+
` && (g = !0) : v instanceof nt && v.statics.scope === C.INLINE_BLOT && (g = !0);
|
|
3205
3205
|
}
|
|
3206
|
-
if (this.scroll.insertAt(o, m, a.insert[m]),
|
|
3207
|
-
const [
|
|
3208
|
-
if (
|
|
3209
|
-
const
|
|
3210
|
-
h = ct.AttributeMap.diff(
|
|
3206
|
+
if (this.scroll.insertAt(o, m, a.insert[m]), b) {
|
|
3207
|
+
const [v] = this.scroll.descendant(X, o);
|
|
3208
|
+
if (v) {
|
|
3209
|
+
const E = Gt({}, lt(v));
|
|
3210
|
+
h = ct.AttributeMap.diff(E, h) || {};
|
|
3211
3211
|
}
|
|
3212
3212
|
}
|
|
3213
3213
|
}
|
|
@@ -3225,7 +3225,7 @@ class fo {
|
|
|
3225
3225
|
}, 0), n.reduce((o, a) => typeof a.delete == "number" ? (this.scroll.deleteAt(o, a.delete), o) : o + ct.Op.length(a), 0), this.scroll.batchEnd(), this.scroll.optimize(), this.update(s);
|
|
3226
3226
|
}
|
|
3227
3227
|
deleteText(t, e) {
|
|
3228
|
-
return this.scroll.deleteAt(t, e), this.update(new
|
|
3228
|
+
return this.scroll.deleteAt(t, e), this.update(new S().retain(t).delete(e));
|
|
3229
3229
|
}
|
|
3230
3230
|
formatLine(t, e) {
|
|
3231
3231
|
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
@@ -3234,7 +3234,7 @@ class fo {
|
|
|
3234
3234
|
o.format(i, s[i]);
|
|
3235
3235
|
});
|
|
3236
3236
|
}), this.scroll.optimize();
|
|
3237
|
-
const n = new
|
|
3237
|
+
const n = new S().retain(t).retain(e, Le(s));
|
|
3238
3238
|
return this.update(n);
|
|
3239
3239
|
}
|
|
3240
3240
|
formatText(t, e) {
|
|
@@ -3242,14 +3242,14 @@ class fo {
|
|
|
3242
3242
|
Object.keys(s).forEach((i) => {
|
|
3243
3243
|
this.scroll.formatAt(t, e, i, s[i]);
|
|
3244
3244
|
});
|
|
3245
|
-
const n = new
|
|
3245
|
+
const n = new S().retain(t).retain(e, Le(s));
|
|
3246
3246
|
return this.update(n);
|
|
3247
3247
|
}
|
|
3248
3248
|
getContents(t, e) {
|
|
3249
3249
|
return this.delta.slice(t, t + e);
|
|
3250
3250
|
}
|
|
3251
3251
|
getDelta() {
|
|
3252
|
-
return this.scroll.lines().reduce((t, e) => t.concat(e.delta()), new
|
|
3252
|
+
return this.scroll.lines().reduce((t, e) => t.concat(e.delta()), new S());
|
|
3253
3253
|
}
|
|
3254
3254
|
getFormat(t) {
|
|
3255
3255
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, s = [], n = [];
|
|
@@ -3285,11 +3285,11 @@ class fo {
|
|
|
3285
3285
|
return this.getContents(t, e).filter((s) => typeof s.insert == "string").map((s) => s.insert).join("");
|
|
3286
3286
|
}
|
|
3287
3287
|
insertContents(t, e) {
|
|
3288
|
-
const s = gi(e), n = new
|
|
3288
|
+
const s = gi(e), n = new S().retain(t).concat(s);
|
|
3289
3289
|
return this.scroll.insertContents(t, s), this.update(n);
|
|
3290
3290
|
}
|
|
3291
3291
|
insertEmbed(t, e, s) {
|
|
3292
|
-
return this.scroll.insertAt(t, e, s), this.update(new
|
|
3292
|
+
return this.scroll.insertAt(t, e, s), this.update(new S().retain(t).insert({
|
|
3293
3293
|
[e]: s
|
|
3294
3294
|
}));
|
|
3295
3295
|
}
|
|
@@ -3299,7 +3299,7 @@ class fo {
|
|
|
3299
3299
|
`).replace(/\r/g, `
|
|
3300
3300
|
`), this.scroll.insertAt(t, e), Object.keys(s).forEach((n) => {
|
|
3301
3301
|
this.scroll.formatAt(t, e.length, n, s[n]);
|
|
3302
|
-
}), this.update(new
|
|
3302
|
+
}), this.update(new S().retain(t).insert(e, Le(s)));
|
|
3303
3303
|
}
|
|
3304
3304
|
isBlank() {
|
|
3305
3305
|
if (this.scroll.children.length === 0) return !0;
|
|
@@ -3311,10 +3311,10 @@ class fo {
|
|
|
3311
3311
|
}
|
|
3312
3312
|
removeFormat(t, e) {
|
|
3313
3313
|
const s = this.getText(t, e), [n, i] = this.scroll.line(t + e);
|
|
3314
|
-
let o = 0, a = new
|
|
3314
|
+
let o = 0, a = new S();
|
|
3315
3315
|
n != null && (o = n.length() - i, a = n.delta().slice(i, i + o - 1).insert(`
|
|
3316
3316
|
`));
|
|
3317
|
-
const h = this.getContents(t, e + o).diff(new
|
|
3317
|
+
const h = this.getContents(t, e + o).diff(new S().insert(s).concat(a)), g = new S().retain(t).concat(h);
|
|
3318
3318
|
return this.applyDelta(g);
|
|
3319
3319
|
}
|
|
3320
3320
|
update(t) {
|
|
@@ -3322,11 +3322,11 @@ class fo {
|
|
|
3322
3322
|
const n = this.delta;
|
|
3323
3323
|
if (e.length === 1 && e[0].type === "characterData" && // @ts-expect-error Fix me later
|
|
3324
3324
|
e[0].target.data.match(ho) && this.scroll.find(e[0].target)) {
|
|
3325
|
-
const i = this.scroll.find(e[0].target), o = lt(i), a = i.offset(this.scroll), u = e[0].oldValue.replace(Ce.CONTENTS, ""), h = new
|
|
3325
|
+
const i = this.scroll.find(e[0].target), o = lt(i), a = i.offset(this.scroll), u = e[0].oldValue.replace(Ce.CONTENTS, ""), h = new S().insert(u), g = new S().insert(i.value()), y = s && {
|
|
3326
3326
|
oldRange: pi(s.oldRange, -a),
|
|
3327
3327
|
newRange: pi(s.newRange, -a)
|
|
3328
3328
|
};
|
|
3329
|
-
t = new
|
|
3329
|
+
t = new S().retain(a).concat(h.diff(g, y)).reduce((p, m) => m.insert ? p.insert(m.insert, o) : p.push(m), new S()), this.delta = n.compose(t);
|
|
3330
3330
|
} else
|
|
3331
3331
|
this.delta = this.getDelta(), (!t || !Mr(n.compose(t), this.delta)) && (t = n.diff(this.delta, s));
|
|
3332
3332
|
return t;
|
|
@@ -3357,7 +3357,7 @@ function as(r, t, e) {
|
|
|
3357
3357
|
if ("html" in r && typeof r.html == "function")
|
|
3358
3358
|
return r.html(t, e);
|
|
3359
3359
|
if (r instanceof yt)
|
|
3360
|
-
return
|
|
3360
|
+
return rn(r.value().slice(t, t + e));
|
|
3361
3361
|
if (r instanceof bt) {
|
|
3362
3362
|
if (r.statics.blotName === "list-container") {
|
|
3363
3363
|
const h = [];
|
|
@@ -3412,7 +3412,7 @@ function gi(r) {
|
|
|
3412
3412
|
return t.insert(s, e.attributes);
|
|
3413
3413
|
}
|
|
3414
3414
|
return t.push(e);
|
|
3415
|
-
}, new
|
|
3415
|
+
}, new S());
|
|
3416
3416
|
}
|
|
3417
3417
|
function pi(r, t) {
|
|
3418
3418
|
let {
|
|
@@ -3444,19 +3444,19 @@ class Nt {
|
|
|
3444
3444
|
}
|
|
3445
3445
|
}
|
|
3446
3446
|
T(Nt, "DEFAULTS", {});
|
|
3447
|
-
const
|
|
3448
|
-
class
|
|
3447
|
+
const Fs = "\uFEFF";
|
|
3448
|
+
class ln extends nt {
|
|
3449
3449
|
constructor(t, e) {
|
|
3450
3450
|
super(t, e), this.contentNode = document.createElement("span"), this.contentNode.setAttribute("contenteditable", "false"), Array.from(this.domNode.childNodes).forEach((s) => {
|
|
3451
3451
|
this.contentNode.appendChild(s);
|
|
3452
|
-
}), this.leftGuard = document.createTextNode(
|
|
3452
|
+
}), this.leftGuard = document.createTextNode(Fs), this.rightGuard = document.createTextNode(Fs), this.domNode.appendChild(this.leftGuard), this.domNode.appendChild(this.contentNode), this.domNode.appendChild(this.rightGuard);
|
|
3453
3453
|
}
|
|
3454
3454
|
index(t, e) {
|
|
3455
3455
|
return t === this.leftGuard ? 0 : t === this.rightGuard ? 1 : super.index(t, e);
|
|
3456
3456
|
}
|
|
3457
3457
|
restore(t) {
|
|
3458
3458
|
let e = null, s;
|
|
3459
|
-
const n = t.data.split(
|
|
3459
|
+
const n = t.data.split(Fs).join("");
|
|
3460
3460
|
if (t === this.leftGuard)
|
|
3461
3461
|
if (this.prev instanceof yt) {
|
|
3462
3462
|
const i = this.prev.length();
|
|
@@ -3476,7 +3476,7 @@ class on extends nt {
|
|
|
3476
3476
|
startNode: s,
|
|
3477
3477
|
startOffset: n.length
|
|
3478
3478
|
}));
|
|
3479
|
-
return t.data =
|
|
3479
|
+
return t.data = Fs, e;
|
|
3480
3480
|
}
|
|
3481
3481
|
update(t, e) {
|
|
3482
3482
|
t.forEach((s) => {
|
|
@@ -3503,10 +3503,10 @@ class mo {
|
|
|
3503
3503
|
}
|
|
3504
3504
|
handleCompositionStart(t) {
|
|
3505
3505
|
const e = t.target instanceof Node ? this.scroll.find(t.target, !0) : null;
|
|
3506
|
-
e && !(e instanceof
|
|
3506
|
+
e && !(e instanceof ln) && (this.emitter.emit(L.events.COMPOSITION_BEFORE_START, t), this.scroll.batchStart(), this.emitter.emit(L.events.COMPOSITION_START, t), this.isComposing = !0);
|
|
3507
3507
|
}
|
|
3508
3508
|
handleCompositionEnd(t) {
|
|
3509
|
-
this.emitter.emit(
|
|
3509
|
+
this.emitter.emit(L.events.COMPOSITION_BEFORE_END, t), this.scroll.batchEnd(), this.emitter.emit(L.events.COMPOSITION_END, t), this.isComposing = !1;
|
|
3510
3510
|
}
|
|
3511
3511
|
}
|
|
3512
3512
|
const rs = class rs {
|
|
@@ -3538,7 +3538,7 @@ const bo = (r) => r.parentElement || r.getRootNode().host || null, yo = (r) => {
|
|
|
3538
3538
|
bottom: t.top + r.clientHeight * s,
|
|
3539
3539
|
left: t.left
|
|
3540
3540
|
};
|
|
3541
|
-
},
|
|
3541
|
+
}, zs = (r) => {
|
|
3542
3542
|
const t = parseInt(r, 10);
|
|
3543
3543
|
return Number.isNaN(t) ? 0 : t;
|
|
3544
3544
|
}, mi = (r, t, e, s, n, i) => r < e && t > s ? 0 : r < e ? -(e - r + n) : t > s ? t - r > s - e ? r + n - e : t - s + i : 0, vo = (r, t) => {
|
|
@@ -3551,7 +3551,7 @@ const bo = (r) => r.parentElement || r.getRootNode().host || null, yo = (r) => {
|
|
|
3551
3551
|
right: ((i = window.visualViewport) == null ? void 0 : i.width) ?? e.documentElement.clientWidth,
|
|
3552
3552
|
bottom: ((o = window.visualViewport) == null ? void 0 : o.height) ?? e.documentElement.clientHeight,
|
|
3553
3553
|
left: 0
|
|
3554
|
-
} : yo(n), g = getComputedStyle(n), y = mi(s.left, s.right, h.left, h.right,
|
|
3554
|
+
} : yo(n), g = getComputedStyle(n), y = mi(s.left, s.right, h.left, h.right, zs(g.scrollPaddingLeft), zs(g.scrollPaddingRight)), d = mi(s.top, s.bottom, h.top, h.bottom, zs(g.scrollPaddingTop), zs(g.scrollPaddingBottom));
|
|
3555
3555
|
if (y || d)
|
|
3556
3556
|
if (u)
|
|
3557
3557
|
(a = e.defaultView) == null || a.scrollBy(y, d);
|
|
@@ -3561,12 +3561,12 @@ const bo = (r) => r.parentElement || r.getRootNode().host || null, yo = (r) => {
|
|
|
3561
3561
|
scrollTop: m
|
|
3562
3562
|
} = n;
|
|
3563
3563
|
d && (n.scrollTop += d), y && (n.scrollLeft += y);
|
|
3564
|
-
const
|
|
3564
|
+
const b = n.scrollLeft - p, v = n.scrollTop - m;
|
|
3565
3565
|
s = {
|
|
3566
|
-
left: s.left -
|
|
3567
|
-
top: s.top -
|
|
3568
|
-
right: s.right -
|
|
3569
|
-
bottom: s.bottom -
|
|
3566
|
+
left: s.left - b,
|
|
3567
|
+
top: s.top - v,
|
|
3568
|
+
right: s.right - b,
|
|
3569
|
+
bottom: s.bottom - v
|
|
3570
3570
|
};
|
|
3571
3571
|
}
|
|
3572
3572
|
n = u || g.position === "fixed" ? null : bo(n);
|
|
@@ -3586,7 +3586,7 @@ const bo = (r) => r.parentElement || r.getRootNode().host || null, yo = (r) => {
|
|
|
3586
3586
|
break;
|
|
3587
3587
|
}
|
|
3588
3588
|
}), s;
|
|
3589
|
-
}, Se = Pt("quill"),
|
|
3589
|
+
}, Se = Pt("quill"), Vs = new ke();
|
|
3590
3590
|
bt.uiClass = "ql-ui";
|
|
3591
3591
|
const pt = class pt {
|
|
3592
3592
|
static debug(t) {
|
|
@@ -3594,7 +3594,7 @@ const pt = class pt {
|
|
|
3594
3594
|
}
|
|
3595
3595
|
static find(t) {
|
|
3596
3596
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
3597
|
-
return wr.get(t) ||
|
|
3597
|
+
return wr.get(t) || Vs.find(t, e);
|
|
3598
3598
|
}
|
|
3599
3599
|
static import(t) {
|
|
3600
3600
|
return this.imports[t] == null && Se.error(`Cannot import ${t}. Are you sure it was registered?`), this.imports[t];
|
|
@@ -3607,7 +3607,7 @@ const pt = class pt {
|
|
|
3607
3607
|
});
|
|
3608
3608
|
} else {
|
|
3609
3609
|
const t = arguments.length <= 0 ? void 0 : arguments[0], e = arguments.length <= 1 ? void 0 : arguments[1], s = !!(!(arguments.length <= 2) && arguments[2]);
|
|
3610
|
-
this.imports[t] != null && !s && Se.warn(`Overwriting ${t} with`, e), this.imports[t] = e, (t.startsWith("blots/") || t.startsWith("formats/")) && e && typeof e != "boolean" && e.blotName !== "abstract" &&
|
|
3610
|
+
this.imports[t] != null && !s && Se.warn(`Overwriting ${t} with`, e), this.imports[t] = e, (t.startsWith("blots/") || t.startsWith("formats/")) && e && typeof e != "boolean" && e.blotName !== "abstract" && Vs.register(e), typeof e.register == "function" && e.register(Vs);
|
|
3611
3611
|
}
|
|
3612
3612
|
}
|
|
3613
3613
|
constructor(t) {
|
|
@@ -3618,27 +3618,27 @@ const pt = class pt {
|
|
|
3618
3618
|
}
|
|
3619
3619
|
this.options.debug && pt.debug(this.options.debug);
|
|
3620
3620
|
const s = this.container.innerHTML.trim();
|
|
3621
|
-
this.container.classList.add("ql-container"), this.container.innerHTML = "", wr.set(this.container, this), this.root = this.addContainer("ql-editor"), this.root.classList.add("ql-blank"), this.emitter = new
|
|
3621
|
+
this.container.classList.add("ql-container"), this.container.innerHTML = "", wr.set(this.container, this), this.root = this.addContainer("ql-editor"), this.root.classList.add("ql-blank"), this.emitter = new L();
|
|
3622
3622
|
const n = Ur.blotName, i = this.options.registry.query(n);
|
|
3623
3623
|
if (!i || !("blotName" in i))
|
|
3624
3624
|
throw new Error(`Cannot initialize Quill without "${n}" blot`);
|
|
3625
3625
|
if (this.scroll = new i(this.options.registry, this.root, {
|
|
3626
3626
|
emitter: this.emitter
|
|
3627
|
-
}), this.editor = new fo(this.scroll), this.selection = new uo(this.scroll, this.emitter), this.composition = new mo(this.scroll, this.emitter), this.theme = new this.options.theme(this, this.options), this.keyboard = this.theme.addModule("keyboard"), this.clipboard = this.theme.addModule("clipboard"), this.history = this.theme.addModule("history"), this.uploader = this.theme.addModule("uploader"), this.theme.addModule("input"), this.theme.addModule("uiNode"), this.theme.init(), this.emitter.on(
|
|
3628
|
-
o ===
|
|
3629
|
-
}), this.emitter.on(
|
|
3627
|
+
}), this.editor = new fo(this.scroll), this.selection = new uo(this.scroll, this.emitter), this.composition = new mo(this.scroll, this.emitter), this.theme = new this.options.theme(this, this.options), this.keyboard = this.theme.addModule("keyboard"), this.clipboard = this.theme.addModule("clipboard"), this.history = this.theme.addModule("history"), this.uploader = this.theme.addModule("uploader"), this.theme.addModule("input"), this.theme.addModule("uiNode"), this.theme.init(), this.emitter.on(L.events.EDITOR_CHANGE, (o) => {
|
|
3628
|
+
o === L.events.TEXT_CHANGE && this.root.classList.toggle("ql-blank", this.editor.isBlank());
|
|
3629
|
+
}), this.emitter.on(L.events.SCROLL_UPDATE, (o, a) => {
|
|
3630
3630
|
const u = this.selection.lastRange, [h] = this.selection.getRange(), g = u && h ? {
|
|
3631
3631
|
oldRange: u,
|
|
3632
3632
|
newRange: h
|
|
3633
3633
|
} : void 0;
|
|
3634
3634
|
gt.call(this, () => this.editor.update(null, a, g), o);
|
|
3635
|
-
}), this.emitter.on(
|
|
3635
|
+
}), this.emitter.on(L.events.SCROLL_EMBED_UPDATE, (o, a) => {
|
|
3636
3636
|
const u = this.selection.lastRange, [h] = this.selection.getRange(), g = u && h ? {
|
|
3637
3637
|
oldRange: u,
|
|
3638
3638
|
newRange: h
|
|
3639
3639
|
} : void 0;
|
|
3640
3640
|
gt.call(this, () => {
|
|
3641
|
-
const y = new
|
|
3641
|
+
const y = new S().retain(o.offset(this)).retain({
|
|
3642
3642
|
[o.statics.blotName]: a
|
|
3643
3643
|
});
|
|
3644
3644
|
return this.editor.update(y, [], g);
|
|
@@ -3684,10 +3684,10 @@ const pt = class pt {
|
|
|
3684
3684
|
this.selection.focus(), t.preventScroll || this.scrollSelectionIntoView();
|
|
3685
3685
|
}
|
|
3686
3686
|
format(t, e) {
|
|
3687
|
-
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
3687
|
+
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : L.sources.API;
|
|
3688
3688
|
return gt.call(this, () => {
|
|
3689
3689
|
const n = this.getSelection(!0);
|
|
3690
|
-
let i = new
|
|
3690
|
+
let i = new S();
|
|
3691
3691
|
if (n == null) return i;
|
|
3692
3692
|
if (this.scroll.query(t, C.BLOCK))
|
|
3693
3693
|
i = this.editor.formatLine(n.index, n.length, {
|
|
@@ -3700,7 +3700,7 @@ const pt = class pt {
|
|
|
3700
3700
|
[t]: e
|
|
3701
3701
|
});
|
|
3702
3702
|
}
|
|
3703
|
-
return this.setSelection(n,
|
|
3703
|
+
return this.setSelection(n, L.sources.SILENT), i;
|
|
3704
3704
|
}, s);
|
|
3705
3705
|
}
|
|
3706
3706
|
formatLine(t, e, s, n, i) {
|
|
@@ -3820,29 +3820,29 @@ const pt = class pt {
|
|
|
3820
3820
|
e && this.scrollRectIntoView(e);
|
|
3821
3821
|
}
|
|
3822
3822
|
setContents(t) {
|
|
3823
|
-
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
3823
|
+
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : L.sources.API;
|
|
3824
3824
|
return gt.call(this, () => {
|
|
3825
|
-
t = new
|
|
3825
|
+
t = new S(t);
|
|
3826
3826
|
const s = this.getLength(), n = this.editor.deleteText(0, s), i = this.editor.insertContents(0, t), o = this.editor.deleteText(this.getLength() - 1, 1);
|
|
3827
3827
|
return n.compose(i).compose(o);
|
|
3828
3828
|
}, e);
|
|
3829
3829
|
}
|
|
3830
3830
|
setSelection(t, e, s) {
|
|
3831
|
-
t == null ? this.selection.setRange(null, e || pt.sources.API) : ([t, e, , s] = Mt(t, e, s), this.selection.setRange(new re(Math.max(0, t), e), s), s !==
|
|
3831
|
+
t == null ? this.selection.setRange(null, e || pt.sources.API) : ([t, e, , s] = Mt(t, e, s), this.selection.setRange(new re(Math.max(0, t), e), s), s !== L.sources.SILENT && this.scrollSelectionIntoView());
|
|
3832
3832
|
}
|
|
3833
3833
|
setText(t) {
|
|
3834
|
-
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
3835
|
-
const s = new
|
|
3834
|
+
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : L.sources.API;
|
|
3835
|
+
const s = new S().insert(t);
|
|
3836
3836
|
return this.setContents(s, e);
|
|
3837
3837
|
}
|
|
3838
3838
|
update() {
|
|
3839
|
-
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
3839
|
+
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : L.sources.USER;
|
|
3840
3840
|
const e = this.scroll.update(t);
|
|
3841
3841
|
return this.selection.update(t), e;
|
|
3842
3842
|
}
|
|
3843
3843
|
updateContents(t) {
|
|
3844
|
-
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
3845
|
-
return gt.call(this, () => (t = new
|
|
3844
|
+
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : L.sources.API;
|
|
3845
|
+
return gt.call(this, () => (t = new S(t), this.editor.applyDelta(t)), e, !0);
|
|
3846
3846
|
}
|
|
3847
3847
|
};
|
|
3848
3848
|
T(pt, "DEFAULTS", {
|
|
@@ -3855,10 +3855,10 @@ T(pt, "DEFAULTS", {
|
|
|
3855
3855
|
},
|
|
3856
3856
|
placeholder: "",
|
|
3857
3857
|
readOnly: !1,
|
|
3858
|
-
registry:
|
|
3858
|
+
registry: Vs,
|
|
3859
3859
|
theme: "default"
|
|
3860
|
-
}), T(pt, "events",
|
|
3861
|
-
delta:
|
|
3860
|
+
}), T(pt, "events", L.events), T(pt, "sources", L.sources), T(pt, "version", "2.0.2"), T(pt, "imports", {
|
|
3861
|
+
delta: S,
|
|
3862
3862
|
parchment: Gl,
|
|
3863
3863
|
"core/module": Nt,
|
|
3864
3864
|
"core/theme": _e
|
|
@@ -3912,32 +3912,32 @@ function xo(r, t) {
|
|
|
3912
3912
|
container: e,
|
|
3913
3913
|
theme: n,
|
|
3914
3914
|
modules: Object.entries(g).reduce((p, m) => {
|
|
3915
|
-
let [
|
|
3916
|
-
if (!
|
|
3917
|
-
const
|
|
3918
|
-
return
|
|
3915
|
+
let [b, v] = m;
|
|
3916
|
+
if (!v) return p;
|
|
3917
|
+
const E = A.import(`modules/${b}`);
|
|
3918
|
+
return E == null ? (Se.error(`Cannot load ${b} module. Are you sure you registered it?`), p) : {
|
|
3919
3919
|
...p,
|
|
3920
3920
|
// @ts-expect-error
|
|
3921
|
-
[
|
|
3921
|
+
[b]: Gt({}, E.DEFAULTS || {}, v)
|
|
3922
3922
|
};
|
|
3923
3923
|
}, {}),
|
|
3924
3924
|
bounds: bi(y.bounds)
|
|
3925
3925
|
};
|
|
3926
3926
|
}
|
|
3927
3927
|
function gt(r, t, e, s) {
|
|
3928
|
-
if (!this.isEnabled() && t ===
|
|
3929
|
-
return new
|
|
3928
|
+
if (!this.isEnabled() && t === L.sources.USER && !this.allowReadOnlyEdits)
|
|
3929
|
+
return new S();
|
|
3930
3930
|
let n = e == null ? null : this.getSelection();
|
|
3931
3931
|
const i = this.editor.delta, o = r();
|
|
3932
|
-
if (n != null && (e === !0 && (e = n.index), s == null ? n = vi(n, o, t) : s !== 0 && (n = vi(n, e, s, t)), this.setSelection(n,
|
|
3933
|
-
const a = [
|
|
3934
|
-
this.emitter.emit(
|
|
3932
|
+
if (n != null && (e === !0 && (e = n.index), s == null ? n = vi(n, o, t) : s !== 0 && (n = vi(n, e, s, t)), this.setSelection(n, L.sources.SILENT)), o.length() > 0) {
|
|
3933
|
+
const a = [L.events.TEXT_CHANGE, o, i, t];
|
|
3934
|
+
this.emitter.emit(L.events.EDITOR_CHANGE, ...a), t !== L.sources.SILENT && this.emitter.emit(...a);
|
|
3935
3935
|
}
|
|
3936
3936
|
return o;
|
|
3937
3937
|
}
|
|
3938
3938
|
function Mt(r, t, e, s, n) {
|
|
3939
3939
|
let i = {};
|
|
3940
|
-
return typeof r.index == "number" && typeof r.length == "number" ? typeof t != "number" ? (n = s, s = e, e = t, t = r.length, r = r.index) : (t = r.length, r = r.index) : typeof t != "number" && (n = s, s = e, e = t, t = 0), typeof e == "object" ? (i = e, n = s) : typeof e == "string" && (s != null ? i[e] = s : n = e), n = n ||
|
|
3940
|
+
return typeof r.index == "number" && typeof r.length == "number" ? typeof t != "number" ? (n = s, s = e, e = t, t = r.length, r = r.index) : (t = r.length, r = r.index) : typeof t != "number" && (n = s, s = e, e = t, t = 0), typeof e == "object" ? (i = e, n = s) : typeof e == "string" && (s != null ? i[e] = s : n = e), n = n || L.sources.API, [r, t, i, n];
|
|
3941
3941
|
}
|
|
3942
3942
|
function vi(r, t, e, s) {
|
|
3943
3943
|
const n = typeof e == "number" ? e : 0;
|
|
@@ -3945,10 +3945,10 @@ function vi(r, t, e, s) {
|
|
|
3945
3945
|
let i, o;
|
|
3946
3946
|
return t && typeof t.transformPosition == "function" ? [i, o] = [r.index, r.index + r.length].map((a) => (
|
|
3947
3947
|
// @ts-expect-error -- TODO: add a better type guard around `index`
|
|
3948
|
-
t.transformPosition(a, s !==
|
|
3949
|
-
)) : [i, o] = [r.index, r.index + r.length].map((a) => a < t || a === t && s ===
|
|
3948
|
+
t.transformPosition(a, s !== L.sources.USER)
|
|
3949
|
+
)) : [i, o] = [r.index, r.index + r.length].map((a) => a < t || a === t && s === L.sources.USER ? a : n >= 0 ? a + n : Math.max(t, a + n)), new re(i, o - i);
|
|
3950
3950
|
}
|
|
3951
|
-
class ie extends
|
|
3951
|
+
class ie extends tn {
|
|
3952
3952
|
}
|
|
3953
3953
|
function Ei(r) {
|
|
3954
3954
|
return r instanceof K || r instanceof at;
|
|
@@ -3972,13 +3972,13 @@ class Te extends Ur {
|
|
|
3972
3972
|
this.batch = !1, this.update(t);
|
|
3973
3973
|
}
|
|
3974
3974
|
emitMount(t) {
|
|
3975
|
-
this.emitter.emit(
|
|
3975
|
+
this.emitter.emit(L.events.SCROLL_BLOT_MOUNT, t);
|
|
3976
3976
|
}
|
|
3977
3977
|
emitUnmount(t) {
|
|
3978
|
-
this.emitter.emit(
|
|
3978
|
+
this.emitter.emit(L.events.SCROLL_BLOT_UNMOUNT, t);
|
|
3979
3979
|
}
|
|
3980
3980
|
emitEmbedUpdate(t, e) {
|
|
3981
|
-
this.emitter.emit(
|
|
3981
|
+
this.emitter.emit(L.events.SCROLL_EMBED_UPDATE, t, e);
|
|
3982
3982
|
}
|
|
3983
3983
|
deleteAt(t, e) {
|
|
3984
3984
|
const [s, n] = this.line(t), [i] = this.line(t + e);
|
|
@@ -4021,13 +4021,13 @@ class Te extends Ur {
|
|
|
4021
4021
|
super.insertBefore(t, e);
|
|
4022
4022
|
}
|
|
4023
4023
|
insertContents(t, e) {
|
|
4024
|
-
const s = this.deltaToRenderBlocks(e.concat(new
|
|
4024
|
+
const s = this.deltaToRenderBlocks(e.concat(new S().insert(`
|
|
4025
4025
|
`))), n = s.pop();
|
|
4026
4026
|
if (n == null) return;
|
|
4027
4027
|
this.batchStart();
|
|
4028
4028
|
const i = s.shift();
|
|
4029
4029
|
if (i) {
|
|
4030
|
-
const u = i.type === "block" && (i.delta.length() === 0 || !this.descendant(at, t)[0] && t < this.length()), h = i.type === "block" ? i.delta : new
|
|
4030
|
+
const u = i.type === "block" && (i.delta.length() === 0 || !this.descendant(at, t)[0] && t < this.length()), h = i.type === "block" ? i.delta : new S().insert({
|
|
4031
4031
|
[i.key]: i.value
|
|
4032
4032
|
});
|
|
4033
4033
|
gr(this, t, h);
|
|
@@ -4074,14 +4074,14 @@ class Te extends Ur {
|
|
|
4074
4074
|
const s = (n, i, o) => {
|
|
4075
4075
|
let a = [], u = o;
|
|
4076
4076
|
return n.children.forEachAt(i, o, (h, g, y) => {
|
|
4077
|
-
Ei(h) ? a.push(h) : h instanceof
|
|
4077
|
+
Ei(h) ? a.push(h) : h instanceof tn && (a = a.concat(s(h, g, u))), u -= y;
|
|
4078
4078
|
}), a;
|
|
4079
4079
|
};
|
|
4080
4080
|
return s(this, t, e);
|
|
4081
4081
|
}
|
|
4082
4082
|
optimize() {
|
|
4083
4083
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
4084
|
-
this.batch || (super.optimize(t, e), t.length > 0 && this.emitter.emit(
|
|
4084
|
+
this.batch || (super.optimize(t, e), t.length > 0 && this.emitter.emit(L.events.SCROLL_OPTIMIZE, t, e));
|
|
4085
4085
|
}
|
|
4086
4086
|
path(t) {
|
|
4087
4087
|
return super.path(t).slice(1);
|
|
@@ -4093,14 +4093,14 @@ class Te extends Ur {
|
|
|
4093
4093
|
Array.isArray(t) && (this.batch = this.batch.concat(t));
|
|
4094
4094
|
return;
|
|
4095
4095
|
}
|
|
4096
|
-
let e =
|
|
4096
|
+
let e = L.sources.USER;
|
|
4097
4097
|
typeof t == "string" && (e = t), Array.isArray(t) || (t = this.observer.takeRecords()), t = t.filter((s) => {
|
|
4098
4098
|
let {
|
|
4099
4099
|
target: n
|
|
4100
4100
|
} = s;
|
|
4101
4101
|
const i = this.find(n, !0);
|
|
4102
4102
|
return i && !Ni(i);
|
|
4103
|
-
}), t.length > 0 && this.emitter.emit(
|
|
4103
|
+
}), t.length > 0 && this.emitter.emit(L.events.SCROLL_BEFORE_UPDATE, e, t), super.update(t.concat([])), t.length > 0 && this.emitter.emit(L.events.SCROLL_UPDATE, e, t);
|
|
4104
4104
|
}
|
|
4105
4105
|
updateEmbedAt(t, e, s) {
|
|
4106
4106
|
const [n] = this.descendant((i) => i instanceof at, t);
|
|
@@ -4111,7 +4111,7 @@ class Te extends Ur {
|
|
|
4111
4111
|
}
|
|
4112
4112
|
deltaToRenderBlocks(t) {
|
|
4113
4113
|
const e = [];
|
|
4114
|
-
let s = new
|
|
4114
|
+
let s = new S();
|
|
4115
4115
|
return t.forEach((n) => {
|
|
4116
4116
|
const i = n == null ? void 0 : n.insert;
|
|
4117
4117
|
if (i)
|
|
@@ -4123,7 +4123,7 @@ class Te extends Ur {
|
|
|
4123
4123
|
type: "block",
|
|
4124
4124
|
delta: s,
|
|
4125
4125
|
attributes: n.attributes ?? {}
|
|
4126
|
-
}), s = new
|
|
4126
|
+
}), s = new S();
|
|
4127
4127
|
});
|
|
4128
4128
|
const a = o[o.length - 1];
|
|
4129
4129
|
a && s.insert(a, n.attributes);
|
|
@@ -4134,7 +4134,7 @@ class Te extends Ur {
|
|
|
4134
4134
|
type: "block",
|
|
4135
4135
|
delta: s,
|
|
4136
4136
|
attributes: {}
|
|
4137
|
-
}), s = new
|
|
4137
|
+
}), s = new S(), e.push({
|
|
4138
4138
|
type: "blockEmbed",
|
|
4139
4139
|
key: o,
|
|
4140
4140
|
value: i[o],
|
|
@@ -4218,7 +4218,7 @@ class le extends ie {
|
|
|
4218
4218
|
}
|
|
4219
4219
|
html(t, e) {
|
|
4220
4220
|
return `<pre>
|
|
4221
|
-
${
|
|
4221
|
+
${rn(this.code(t, e))}
|
|
4222
4222
|
</pre>`;
|
|
4223
4223
|
}
|
|
4224
4224
|
}
|
|
@@ -4260,7 +4260,7 @@ const il = new qo("font", "font-family", nl), ll = new vt("size", "ql-size", {
|
|
|
4260
4260
|
scope: C.INLINE,
|
|
4261
4261
|
whitelist: ["10px", "18px", "32px"]
|
|
4262
4262
|
}), So = Pt("quill:keyboard"), ko = /Mac/i.test(navigator.platform) ? "metaKey" : "ctrlKey";
|
|
4263
|
-
class
|
|
4263
|
+
class on extends Nt {
|
|
4264
4264
|
static match(t, e) {
|
|
4265
4265
|
return ["altKey", "ctrlKey", "metaKey", "shiftKey"].some((s) => !!e[s] !== t[s] && e[s] !== null) ? !1 : e.key === t.key || e.key === t.which;
|
|
4266
4266
|
}
|
|
@@ -4337,13 +4337,13 @@ class an extends Nt {
|
|
|
4337
4337
|
listen() {
|
|
4338
4338
|
this.quill.root.addEventListener("keydown", (t) => {
|
|
4339
4339
|
if (t.defaultPrevented || t.isComposing || t.keyCode === 229 && (t.key === "Enter" || t.key === "Backspace")) return;
|
|
4340
|
-
const n = (this.bindings[t.key] || []).concat(this.bindings[t.which] || []).filter((
|
|
4340
|
+
const n = (this.bindings[t.key] || []).concat(this.bindings[t.which] || []).filter((E) => on.match(t, E));
|
|
4341
4341
|
if (n.length === 0) return;
|
|
4342
4342
|
const i = A.find(t.target, !0);
|
|
4343
4343
|
if (i && i.scroll !== this.quill.scroll) return;
|
|
4344
4344
|
const o = this.quill.getSelection();
|
|
4345
4345
|
if (o == null || !this.quill.hasFocus()) return;
|
|
4346
|
-
const [a, u] = this.quill.getLine(o.index), [h, g] = this.quill.getLeaf(o.index), [y, d] = o.length === 0 ? [h, g] : this.quill.getLeaf(o.index + o.length), p = h instanceof
|
|
4346
|
+
const [a, u] = this.quill.getLine(o.index), [h, g] = this.quill.getLeaf(o.index), [y, d] = o.length === 0 ? [h, g] : this.quill.getLeaf(o.index + o.length), p = h instanceof Xs ? h.value().slice(0, g) : "", m = y instanceof Xs ? y.value().slice(d) : "", b = {
|
|
4347
4347
|
collapsed: o.length === 0,
|
|
4348
4348
|
// @ts-expect-error Fix me later
|
|
4349
4349
|
empty: o.length === 0 && a.length() <= 1,
|
|
@@ -4354,15 +4354,15 @@ class an extends Nt {
|
|
|
4354
4354
|
suffix: m,
|
|
4355
4355
|
event: t
|
|
4356
4356
|
};
|
|
4357
|
-
n.some((
|
|
4358
|
-
if (
|
|
4357
|
+
n.some((E) => {
|
|
4358
|
+
if (E.collapsed != null && E.collapsed !== b.collapsed || E.empty != null && E.empty !== b.empty || E.offset != null && E.offset !== b.offset)
|
|
4359
4359
|
return !1;
|
|
4360
|
-
if (Array.isArray(
|
|
4361
|
-
if (
|
|
4360
|
+
if (Array.isArray(E.format)) {
|
|
4361
|
+
if (E.format.every((w) => b.format[w] == null))
|
|
4362
4362
|
return !1;
|
|
4363
|
-
} else if (typeof
|
|
4363
|
+
} else if (typeof E.format == "object" && !Object.keys(E.format).every((w) => E.format[w] === !0 ? b.format[w] != null : E.format[w] === !1 ? b.format[w] == null : Mr(E.format[w], b.format[w])))
|
|
4364
4364
|
return !1;
|
|
4365
|
-
return
|
|
4365
|
+
return E.prefix != null && !E.prefix.test(b.prefix) || E.suffix != null && !E.suffix.test(b.suffix) ? !1 : E.handler.call(this, o, b, E) !== !0;
|
|
4366
4366
|
}) && t.preventDefault();
|
|
4367
4367
|
});
|
|
4368
4368
|
}
|
|
@@ -4371,13 +4371,13 @@ class an extends Nt {
|
|
|
4371
4371
|
if (t.index === 0 || this.quill.getLength() <= 1) return;
|
|
4372
4372
|
let n = {};
|
|
4373
4373
|
const [i] = this.quill.getLine(t.index);
|
|
4374
|
-
let o = new
|
|
4374
|
+
let o = new S().retain(t.index - s).delete(s);
|
|
4375
4375
|
if (e.offset === 0) {
|
|
4376
4376
|
const [a] = this.quill.getLine(t.index - 1);
|
|
4377
4377
|
if (a && !(a.statics.blotName === "block" && a.length() <= 1)) {
|
|
4378
4378
|
const h = i.formats(), g = this.quill.getFormat(t.index - 1, 1);
|
|
4379
4379
|
if (n = ct.AttributeMap.diff(h, g) || {}, Object.keys(n).length > 0) {
|
|
4380
|
-
const y = new
|
|
4380
|
+
const y = new S().retain(t.index + i.length() - 2).retain(1, n);
|
|
4381
4381
|
o = o.compose(y);
|
|
4382
4382
|
}
|
|
4383
4383
|
}
|
|
@@ -4389,7 +4389,7 @@ class an extends Nt {
|
|
|
4389
4389
|
if (t.index >= this.quill.getLength() - s) return;
|
|
4390
4390
|
let n = {};
|
|
4391
4391
|
const [i] = this.quill.getLine(t.index);
|
|
4392
|
-
let o = new
|
|
4392
|
+
let o = new S().retain(t.index).delete(s);
|
|
4393
4393
|
if (e.offset >= i.length() - 1) {
|
|
4394
4394
|
const [a] = this.quill.getLine(t.index + 1);
|
|
4395
4395
|
if (a) {
|
|
@@ -4406,7 +4406,7 @@ class an extends Nt {
|
|
|
4406
4406
|
}), this.quill.focus();
|
|
4407
4407
|
}
|
|
4408
4408
|
handleEnter(t, e) {
|
|
4409
|
-
const s = Object.keys(e.format).reduce((i, o) => (this.quill.scroll.query(o, C.BLOCK) && !Array.isArray(e.format[o]) && (i[o] = e.format[o]), i), {}), n = new
|
|
4409
|
+
const s = Object.keys(e.format).reduce((i, o) => (this.quill.scroll.query(o, C.BLOCK) && !Array.isArray(e.format[o]) && (i[o] = e.format[o]), i), {}), n = new S().retain(t.index).delete(t.length).insert(`
|
|
4410
4410
|
`, s);
|
|
4411
4411
|
this.quill.updateContents(n, A.sources.USER), this.quill.setSelection(t.index + 1, A.sources.SILENT), this.quill.focus();
|
|
4412
4412
|
}
|
|
@@ -4462,7 +4462,7 @@ const Co = {
|
|
|
4462
4462
|
handler(r, t) {
|
|
4463
4463
|
if (t.format.table) return !0;
|
|
4464
4464
|
this.quill.history.cutoff();
|
|
4465
|
-
const e = new
|
|
4465
|
+
const e = new S().retain(r.index).delete(r.length).insert(" ");
|
|
4466
4466
|
return this.quill.updateContents(e, A.sources.USER), this.quill.history.cutoff(), this.quill.setSelection(r.index + 1, A.sources.SILENT), !1;
|
|
4467
4467
|
}
|
|
4468
4468
|
},
|
|
@@ -4498,7 +4498,7 @@ const Co = {
|
|
|
4498
4498
|
// @ts-expect-error Fix me later
|
|
4499
4499
|
...t.formats(),
|
|
4500
4500
|
list: "checked"
|
|
4501
|
-
}, n = new
|
|
4501
|
+
}, n = new S().retain(r.index).insert(`
|
|
4502
4502
|
`, s).retain(t.length() - e - 1).retain(1, {
|
|
4503
4503
|
list: "unchecked"
|
|
4504
4504
|
});
|
|
@@ -4511,7 +4511,7 @@ const Co = {
|
|
|
4511
4511
|
format: ["header"],
|
|
4512
4512
|
suffix: /^$/,
|
|
4513
4513
|
handler(r, t) {
|
|
4514
|
-
const [e, s] = this.quill.getLine(r.index), n = new
|
|
4514
|
+
const [e, s] = this.quill.getLine(r.index), n = new S().retain(r.index).insert(`
|
|
4515
4515
|
`, t.format).retain(e.length() - s - 1).retain(1, {
|
|
4516
4516
|
header: null
|
|
4517
4517
|
});
|
|
@@ -4545,12 +4545,12 @@ const Co = {
|
|
|
4545
4545
|
if (o == null) return;
|
|
4546
4546
|
let a = e.offset();
|
|
4547
4547
|
if (o < 0) {
|
|
4548
|
-
const u = new
|
|
4548
|
+
const u = new S().retain(a).insert(`
|
|
4549
4549
|
`);
|
|
4550
4550
|
this.quill.updateContents(u, A.sources.USER), this.quill.setSelection(r.index + 1, r.length, A.sources.SILENT);
|
|
4551
4551
|
} else if (o > 0) {
|
|
4552
4552
|
a += e.length();
|
|
4553
|
-
const u = new
|
|
4553
|
+
const u = new S().retain(a).insert(`
|
|
4554
4554
|
`);
|
|
4555
4555
|
this.quill.updateContents(u, A.sources.USER), this.quill.setSelection(a, A.sources.USER);
|
|
4556
4556
|
}
|
|
@@ -4602,7 +4602,7 @@ const Co = {
|
|
|
4602
4602
|
i = "ordered";
|
|
4603
4603
|
}
|
|
4604
4604
|
this.quill.insertText(r.index, " ", A.sources.USER), this.quill.history.cutoff();
|
|
4605
|
-
const o = new
|
|
4605
|
+
const o = new S().retain(r.index - n).delete(e + 1).retain(s.length() - 2 - n).retain(1, {
|
|
4606
4606
|
list: i
|
|
4607
4607
|
});
|
|
4608
4608
|
return this.quill.updateContents(o, A.sources.USER), this.quill.history.cutoff(), this.quill.setSelection(r.index - e, A.sources.SILENT), !1;
|
|
@@ -4619,7 +4619,7 @@ const Co = {
|
|
|
4619
4619
|
let s = 2, n = t;
|
|
4620
4620
|
for (; n != null && n.length() <= 1 && n.formats()["code-block"]; )
|
|
4621
4621
|
if (n = n.prev, s -= 1, s <= 0) {
|
|
4622
|
-
const i = new
|
|
4622
|
+
const i = new S().retain(r.index + t.length() - e - 2).retain(1, {
|
|
4623
4623
|
"code-block": null
|
|
4624
4624
|
}).delete(1);
|
|
4625
4625
|
return this.quill.updateContents(i, A.sources.USER), this.quill.setSelection(r.index - 1, A.sources.SILENT), !1;
|
|
@@ -4627,15 +4627,15 @@ const Co = {
|
|
|
4627
4627
|
return !0;
|
|
4628
4628
|
}
|
|
4629
4629
|
},
|
|
4630
|
-
"embed left":
|
|
4631
|
-
"embed left shift":
|
|
4632
|
-
"embed right":
|
|
4633
|
-
"embed right shift":
|
|
4630
|
+
"embed left": Ks("ArrowLeft", !1),
|
|
4631
|
+
"embed left shift": Ks("ArrowLeft", !0),
|
|
4632
|
+
"embed right": Ks("ArrowRight", !1),
|
|
4633
|
+
"embed right shift": Ks("ArrowRight", !0),
|
|
4634
4634
|
"table down": xi(!1),
|
|
4635
4635
|
"table up": xi(!0)
|
|
4636
4636
|
}
|
|
4637
4637
|
};
|
|
4638
|
-
|
|
4638
|
+
on.DEFAULTS = Co;
|
|
4639
4639
|
function Ai(r) {
|
|
4640
4640
|
return {
|
|
4641
4641
|
key: "Tab",
|
|
@@ -4665,7 +4665,7 @@ function Ai(r) {
|
|
|
4665
4665
|
}
|
|
4666
4666
|
};
|
|
4667
4667
|
}
|
|
4668
|
-
function
|
|
4668
|
+
function Ks(r, t) {
|
|
4669
4669
|
return {
|
|
4670
4670
|
key: r,
|
|
4671
4671
|
shiftKey: t,
|
|
@@ -4825,14 +4825,14 @@ class al extends Nt {
|
|
|
4825
4825
|
text: s
|
|
4826
4826
|
} = t, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
4827
4827
|
if (n[Y.blotName])
|
|
4828
|
-
return new
|
|
4828
|
+
return new S().insert(s || "", {
|
|
4829
4829
|
[Y.blotName]: n[Y.blotName]
|
|
4830
4830
|
});
|
|
4831
4831
|
if (!e)
|
|
4832
|
-
return new
|
|
4832
|
+
return new S().insert(s || "", n);
|
|
4833
4833
|
const i = this.convertHTML(e);
|
|
4834
4834
|
return hs(i, `
|
|
4835
|
-
`) && (i.ops[i.ops.length - 1].attributes == null || n.table) ? i.compose(new
|
|
4835
|
+
`) && (i.ops[i.ops.length - 1].attributes == null || n.table) ? i.compose(new S().retain(i.length() - 1).delete(1)) : i;
|
|
4836
4836
|
}
|
|
4837
4837
|
normalizeHTML(t) {
|
|
4838
4838
|
Vo(t);
|
|
@@ -4856,7 +4856,7 @@ class al extends Nt {
|
|
|
4856
4856
|
html: e,
|
|
4857
4857
|
text: ""
|
|
4858
4858
|
});
|
|
4859
|
-
this.quill.updateContents(new
|
|
4859
|
+
this.quill.updateContents(new S().retain(t).concat(n), s), this.quill.setSelection(t + n.length(), A.sources.SILENT);
|
|
4860
4860
|
}
|
|
4861
4861
|
}
|
|
4862
4862
|
onCaptureCopy(t) {
|
|
@@ -4931,7 +4931,7 @@ class al extends Nt {
|
|
|
4931
4931
|
text: s,
|
|
4932
4932
|
html: n
|
|
4933
4933
|
});
|
|
4934
|
-
const a = new
|
|
4934
|
+
const a = new S().retain(t.index).delete(t.length).concat(o);
|
|
4935
4935
|
this.quill.updateContents(a, A.sources.USER), this.quill.setSelection(a.length() - t.length, A.sources.SILENT), this.quill.scrollSelectionIntoView();
|
|
4936
4936
|
}
|
|
4937
4937
|
prepareMatching(t, e) {
|
|
@@ -4973,7 +4973,7 @@ function oe(r, t, e, s) {
|
|
|
4973
4973
|
...o,
|
|
4974
4974
|
...i.attributes
|
|
4975
4975
|
});
|
|
4976
|
-
}, new
|
|
4976
|
+
}, new S()) : r;
|
|
4977
4977
|
}
|
|
4978
4978
|
function hs(r, t) {
|
|
4979
4979
|
let e = "";
|
|
@@ -4992,15 +4992,15 @@ function Vt(r, t) {
|
|
|
4992
4992
|
function Wo(r, t) {
|
|
4993
4993
|
return r.previousElementSibling && r.nextElementSibling && !Vt(r.previousElementSibling, t) && !Vt(r.nextElementSibling, t);
|
|
4994
4994
|
}
|
|
4995
|
-
const
|
|
4995
|
+
const Gs = /* @__PURE__ */ new WeakMap();
|
|
4996
4996
|
function cl(r) {
|
|
4997
|
-
return r == null ? !1 : (
|
|
4997
|
+
return r == null ? !1 : (Gs.has(r) || (r.tagName === "PRE" ? Gs.set(r, !0) : Gs.set(r, cl(r.parentNode))), Gs.get(r));
|
|
4998
4998
|
}
|
|
4999
4999
|
function Wr(r, t, e, s, n) {
|
|
5000
|
-
return t.nodeType === t.TEXT_NODE ? s.reduce((i, o) => o(t, i, r), new
|
|
5000
|
+
return t.nodeType === t.TEXT_NODE ? s.reduce((i, o) => o(t, i, r), new S()) : t.nodeType === t.ELEMENT_NODE ? Array.from(t.childNodes || []).reduce((i, o) => {
|
|
5001
5001
|
let a = Wr(r, o, e, s, n);
|
|
5002
5002
|
return o.nodeType === t.ELEMENT_NODE && (a = e.reduce((u, h) => h(o, u, r), a), a = (n.get(o) || []).reduce((u, h) => h(o, u, r), a)), i.concat(a);
|
|
5003
|
-
}, new
|
|
5003
|
+
}, new S()) : new S();
|
|
5004
5004
|
}
|
|
5005
5005
|
function mr(r) {
|
|
5006
5006
|
return (t, e, s) => oe(e, r, !0, s);
|
|
@@ -5021,7 +5021,7 @@ function Yo(r, t, e) {
|
|
|
5021
5021
|
if (s.prototype instanceof nt) {
|
|
5022
5022
|
const n = {}, i = s.value(r);
|
|
5023
5023
|
if (i != null)
|
|
5024
|
-
return n[s.blotName] = i, new
|
|
5024
|
+
return n[s.blotName] = i, new S().insert(n, s.formats(r, e));
|
|
5025
5025
|
} else if (s.prototype instanceof ls && !hs(t, `
|
|
5026
5026
|
`) && t.insert(`
|
|
5027
5027
|
`), "blotName" in s && "formats" in s && typeof s.formats == "function")
|
|
@@ -5038,7 +5038,7 @@ function Jo(r, t, e) {
|
|
|
5038
5038
|
return oe(t, "code-block", n, e);
|
|
5039
5039
|
}
|
|
5040
5040
|
function ta() {
|
|
5041
|
-
return new
|
|
5041
|
+
return new S();
|
|
5042
5042
|
}
|
|
5043
5043
|
function ea(r, t, e) {
|
|
5044
5044
|
const s = e.query(r);
|
|
@@ -5052,7 +5052,7 @@ function ea(r, t, e) {
|
|
|
5052
5052
|
return n <= 0 ? t : t.reduce((o, a) => a.insert ? a.attributes && typeof a.attributes.indent == "number" ? o.push(a) : o.insert(a.insert, {
|
|
5053
5053
|
indent: n,
|
|
5054
5054
|
...a.attributes || {}
|
|
5055
|
-
}) : o, new
|
|
5055
|
+
}) : o, new S());
|
|
5056
5056
|
}
|
|
5057
5057
|
function sa(r, t, e) {
|
|
5058
5058
|
const s = r;
|
|
@@ -5089,7 +5089,7 @@ function na(r, t, e) {
|
|
|
5089
5089
|
parseInt(n.fontWeight, 10) >= 700) && (s.bold = !0), t = Object.entries(s).reduce((o, a) => {
|
|
5090
5090
|
let [u, h] = a;
|
|
5091
5091
|
return oe(o, u, h, e);
|
|
5092
|
-
}, t), parseFloat(n.textIndent || 0) > 0 ? new
|
|
5092
|
+
}, t), parseFloat(n.textIndent || 0) > 0 ? new S().insert(" ").concat(t) : t;
|
|
5093
5093
|
}
|
|
5094
5094
|
function ra(r, t, e) {
|
|
5095
5095
|
var n, i;
|
|
@@ -5272,8 +5272,8 @@ hl.DEFAULTS = {
|
|
|
5272
5272
|
Promise.all(e).then((s) => {
|
|
5273
5273
|
const n = s.reduce((i, o) => i.insert({
|
|
5274
5274
|
image: o
|
|
5275
|
-
}), new
|
|
5276
|
-
this.quill.updateContents(n,
|
|
5275
|
+
}), new S().retain(r.index).delete(r.length));
|
|
5276
|
+
this.quill.updateContents(n, L.sources.USER), this.quill.setSelection(r.index + s.length, L.sources.SILENT);
|
|
5277
5277
|
});
|
|
5278
5278
|
}
|
|
5279
5279
|
};
|
|
@@ -5297,7 +5297,7 @@ class ca extends Nt {
|
|
|
5297
5297
|
if (t.length === 0) return !1;
|
|
5298
5298
|
if (e) {
|
|
5299
5299
|
const s = this.quill.getFormat(t.index, 1);
|
|
5300
|
-
this.deleteRange(t), this.quill.updateContents(new
|
|
5300
|
+
this.deleteRange(t), this.quill.updateContents(new S().retain(t.index).insert(e, s), A.sources.USER);
|
|
5301
5301
|
} else
|
|
5302
5302
|
this.deleteRange(t);
|
|
5303
5303
|
return this.quill.setSelection(t.index + e.length, 0, A.sources.SILENT), !0;
|
|
@@ -5387,13 +5387,13 @@ A.register({
|
|
|
5387
5387
|
"blots/break": Et,
|
|
5388
5388
|
"blots/container": ie,
|
|
5389
5389
|
"blots/cursor": Ce,
|
|
5390
|
-
"blots/embed":
|
|
5390
|
+
"blots/embed": ln,
|
|
5391
5391
|
"blots/inline": Ct,
|
|
5392
5392
|
"blots/scroll": Te,
|
|
5393
5393
|
"blots/text": yt,
|
|
5394
5394
|
"modules/clipboard": al,
|
|
5395
5395
|
"modules/history": ul,
|
|
5396
|
-
"modules/keyboard":
|
|
5396
|
+
"modules/keyboard": on,
|
|
5397
5397
|
"modules/uploader": hl,
|
|
5398
5398
|
"modules/input": ca,
|
|
5399
5399
|
"modules/uiNode": ga
|
|
@@ -5513,7 +5513,7 @@ T(Or, "blotName", "strike"), T(Or, "tagName", ["S", "STRIKE"]);
|
|
|
5513
5513
|
class Ir extends Ct {
|
|
5514
5514
|
}
|
|
5515
5515
|
T(Ir, "blotName", "underline"), T(Ir, "tagName", "U");
|
|
5516
|
-
class
|
|
5516
|
+
class Zs extends ln {
|
|
5517
5517
|
static create(t) {
|
|
5518
5518
|
if (window.katex == null)
|
|
5519
5519
|
throw new Error("Formula module requires KaTeX.");
|
|
@@ -5533,7 +5533,7 @@ class Ws extends on {
|
|
|
5533
5533
|
return `<span>${t}</span>`;
|
|
5534
5534
|
}
|
|
5535
5535
|
}
|
|
5536
|
-
T(
|
|
5536
|
+
T(Zs, "blotName", "formula"), T(Zs, "className", "ql-formula"), T(Zs, "tagName", "SPAN");
|
|
5537
5537
|
const Si = ["alt", "height", "width"];
|
|
5538
5538
|
class Rr extends nt {
|
|
5539
5539
|
static create(t) {
|
|
@@ -5558,7 +5558,7 @@ class Rr extends nt {
|
|
|
5558
5558
|
}
|
|
5559
5559
|
T(Rr, "blotName", "image"), T(Rr, "tagName", "IMG");
|
|
5560
5560
|
const ki = ["height", "width"];
|
|
5561
|
-
class
|
|
5561
|
+
class Ws extends at {
|
|
5562
5562
|
static create(t) {
|
|
5563
5563
|
const e = super.create(t);
|
|
5564
5564
|
return e.setAttribute("frameborder", "0"), e.setAttribute("allowfullscreen", "true"), e.setAttribute("src", this.sanitize(t)), e;
|
|
@@ -5582,7 +5582,7 @@ class Xs extends at {
|
|
|
5582
5582
|
return `<a href="${t}">${t}</a>`;
|
|
5583
5583
|
}
|
|
5584
5584
|
}
|
|
5585
|
-
T(
|
|
5585
|
+
T(Ws, "blotName", "video"), T(Ws, "className", "ql-video"), T(Ws, "tagName", "IFRAME");
|
|
5586
5586
|
const ss = new vt("code-token", "hljs", {
|
|
5587
5587
|
scope: C.INLINE
|
|
5588
5588
|
});
|
|
@@ -5644,7 +5644,7 @@ class ns extends le {
|
|
|
5644
5644
|
`, i = ot.formats(this.children.head.domNode);
|
|
5645
5645
|
if (e || this.forceNext || this.cachedText !== n) {
|
|
5646
5646
|
if (n.trim().length > 0 || this.cachedText == null) {
|
|
5647
|
-
const o = this.children.reduce((u, h) => u.concat(Zi(h, !1)), new
|
|
5647
|
+
const o = this.children.reduce((u, h) => u.concat(Zi(h, !1)), new S()), a = t(n, i);
|
|
5648
5648
|
o.diff(a).reduce((u, h) => {
|
|
5649
5649
|
let {
|
|
5650
5650
|
retain: g,
|
|
@@ -5661,7 +5661,7 @@ class ns extends le {
|
|
|
5661
5661
|
html(t, e) {
|
|
5662
5662
|
const [s] = this.children.find(t);
|
|
5663
5663
|
return `<pre data-language="${s ? ot.formats(s.domNode) : "plain"}">
|
|
5664
|
-
${
|
|
5664
|
+
${rn(this.code(t, e))}
|
|
5665
5665
|
</pre>`;
|
|
5666
5666
|
}
|
|
5667
5667
|
optimize(t) {
|
|
@@ -5734,15 +5734,15 @@ class dl extends Nt {
|
|
|
5734
5734
|
highlightBlot(t) {
|
|
5735
5735
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "plain";
|
|
5736
5736
|
if (e = this.languages[e] ? e : "plain", e === "plain")
|
|
5737
|
-
return
|
|
5737
|
+
return rn(t).split(`
|
|
5738
5738
|
`).reduce((n, i, o) => (o !== 0 && n.insert(`
|
|
5739
5739
|
`, {
|
|
5740
5740
|
[Y.blotName]: e
|
|
5741
|
-
}), n.insert(i)), new
|
|
5741
|
+
}), n.insert(i)), new S());
|
|
5742
5742
|
const s = this.quill.root.ownerDocument.createElement("div");
|
|
5743
5743
|
return s.classList.add(Y.className), s.innerHTML = ba(this.options.hljs, e, t), Wr(this.quill.scroll, s, [(n, i) => {
|
|
5744
5744
|
const o = ss.value(n);
|
|
5745
|
-
return o ? i.compose(new
|
|
5745
|
+
return o ? i.compose(new S().retain(i.length(), {
|
|
5746
5746
|
[Dt.blotName]: o
|
|
5747
5747
|
})) : i;
|
|
5748
5748
|
}], [(n, i) => n.data.split(`
|
|
@@ -5984,7 +5984,7 @@ class ya extends Nt {
|
|
|
5984
5984
|
return i.insert(o, {
|
|
5985
5985
|
table: Xr()
|
|
5986
5986
|
});
|
|
5987
|
-
}, new
|
|
5987
|
+
}, new S().retain(s.index));
|
|
5988
5988
|
this.quill.updateContents(n, A.sources.USER), this.quill.setSelection(s.index, A.sources.SILENT), this.balanceTables();
|
|
5989
5989
|
}
|
|
5990
5990
|
listenBalanceCells() {
|
|
@@ -6046,7 +6046,7 @@ class Yr extends Nt {
|
|
|
6046
6046
|
this.quill.scroll.query(e).prototype instanceof nt
|
|
6047
6047
|
) {
|
|
6048
6048
|
if (i = prompt(`Enter ${e}`), !i) return;
|
|
6049
|
-
this.quill.updateContents(new
|
|
6049
|
+
this.quill.updateContents(new S().retain(o.index).delete(o.length).insert({
|
|
6050
6050
|
[e]: i
|
|
6051
6051
|
}), A.sources.USER);
|
|
6052
6052
|
} else
|
|
@@ -6194,7 +6194,7 @@ let Ii = 0;
|
|
|
6194
6194
|
function Ri(r, t) {
|
|
6195
6195
|
r.setAttribute(t, `${r.getAttribute(t) !== "true"}`);
|
|
6196
6196
|
}
|
|
6197
|
-
class
|
|
6197
|
+
class an {
|
|
6198
6198
|
constructor(t) {
|
|
6199
6199
|
this.select = t, this.container = document.createElement("span"), this.buildPicker(), this.select.style.display = "none", this.select.parentNode.insertBefore(this.container, this.select), this.label.addEventListener("mousedown", () => {
|
|
6200
6200
|
this.togglePicker();
|
|
@@ -6270,7 +6270,7 @@ class cn {
|
|
|
6270
6270
|
this.label.classList.toggle("ql-active", e);
|
|
6271
6271
|
}
|
|
6272
6272
|
}
|
|
6273
|
-
class gl extends
|
|
6273
|
+
class gl extends an {
|
|
6274
6274
|
constructor(t, e) {
|
|
6275
6275
|
super(t), this.label.innerHTML = e, this.container.classList.add("ql-color-picker"), Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0, 7).forEach((s) => {
|
|
6276
6276
|
s.classList.add("ql-primary");
|
|
@@ -6286,7 +6286,7 @@ class gl extends cn {
|
|
|
6286
6286
|
s && (s.tagName === "line" ? s.style.stroke = n : s.style.fill = n);
|
|
6287
6287
|
}
|
|
6288
6288
|
}
|
|
6289
|
-
class pl extends
|
|
6289
|
+
class pl extends an {
|
|
6290
6290
|
constructor(t, e) {
|
|
6291
6291
|
super(t), this.container.classList.add("ql-icon-picker"), Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach((s) => {
|
|
6292
6292
|
s.innerHTML = e[s.getAttribute("data-value") || ""];
|
|
@@ -6375,14 +6375,14 @@ class gs extends _e {
|
|
|
6375
6375
|
const i = n.classList.contains("ql-background") ? "background" : "color";
|
|
6376
6376
|
return n.querySelector("option") == null && es(n, sc, i === "background" ? "#ffffff" : "#000000"), new gl(n, e[i]);
|
|
6377
6377
|
}
|
|
6378
|
-
return n.querySelector("option") == null && (n.classList.contains("ql-font") ? es(n, nc) : n.classList.contains("ql-header") ? es(n, rc) : n.classList.contains("ql-size") && es(n, ic)), new
|
|
6378
|
+
return n.querySelector("option") == null && (n.classList.contains("ql-font") ? es(n, nc) : n.classList.contains("ql-header") ? es(n, rc) : n.classList.contains("ql-size") && es(n, ic)), new an(n);
|
|
6379
6379
|
});
|
|
6380
6380
|
const s = () => {
|
|
6381
6381
|
this.pickers.forEach((n) => {
|
|
6382
6382
|
n.update();
|
|
6383
6383
|
});
|
|
6384
6384
|
};
|
|
6385
|
-
this.quill.on(
|
|
6385
|
+
this.quill.on(L.events.EDITOR_CHANGE, s);
|
|
6386
6386
|
}
|
|
6387
6387
|
}
|
|
6388
6388
|
gs.DEFAULTS = Gt({}, _e.DEFAULTS, {
|
|
@@ -6439,7 +6439,7 @@ class bl extends ml {
|
|
|
6439
6439
|
const {
|
|
6440
6440
|
scrollTop: e
|
|
6441
6441
|
} = this.quill.root;
|
|
6442
|
-
this.linkRange ? (this.quill.formatText(this.linkRange, "link", t,
|
|
6442
|
+
this.linkRange ? (this.quill.formatText(this.linkRange, "link", t, L.sources.USER), delete this.linkRange) : (this.restoreFocus(), this.quill.format("link", t, L.sources.USER)), this.quill.root.scrollTop = e;
|
|
6443
6443
|
break;
|
|
6444
6444
|
}
|
|
6445
6445
|
case "video":
|
|
@@ -6454,8 +6454,8 @@ class bl extends ml {
|
|
|
6454
6454
|
// @ts-expect-error Fix me later
|
|
6455
6455
|
this.root.getAttribute("data-mode"),
|
|
6456
6456
|
t,
|
|
6457
|
-
|
|
6458
|
-
), this.root.getAttribute("data-mode") === "formula" && this.quill.insertText(s + 1, " ",
|
|
6457
|
+
L.sources.USER
|
|
6458
|
+
), this.root.getAttribute("data-mode") === "formula" && this.quill.insertText(s + 1, " ", L.sources.USER), this.quill.setSelection(s + 2, L.sources.USER);
|
|
6459
6459
|
}
|
|
6460
6460
|
break;
|
|
6461
6461
|
}
|
|
@@ -6481,9 +6481,9 @@ const oc = [["bold", "italic", "link"], [{
|
|
|
6481
6481
|
}, "blockquote"]];
|
|
6482
6482
|
class yl extends bl {
|
|
6483
6483
|
constructor(t, e) {
|
|
6484
|
-
super(t, e), this.quill.on(
|
|
6485
|
-
if (s ===
|
|
6486
|
-
if (n != null && n.length > 0 && o ===
|
|
6484
|
+
super(t, e), this.quill.on(L.events.EDITOR_CHANGE, (s, n, i, o) => {
|
|
6485
|
+
if (s === L.events.SELECTION_CHANGE)
|
|
6486
|
+
if (n != null && n.length > 0 && o === L.sources.USER) {
|
|
6487
6487
|
this.show(), this.root.style.left = "0px", this.root.style.width = "", this.root.style.width = `${this.root.offsetWidth}px`;
|
|
6488
6488
|
const a = this.quill.getLines(n.index, n.length);
|
|
6489
6489
|
if (a.length === 1) {
|
|
@@ -6499,7 +6499,7 @@ class yl extends bl {
|
|
|
6499
6499
|
listen() {
|
|
6500
6500
|
super.listen(), this.root.querySelector(".ql-close").addEventListener("click", () => {
|
|
6501
6501
|
this.root.classList.remove("ql-editing");
|
|
6502
|
-
}), this.quill.on(
|
|
6502
|
+
}), this.quill.on(L.events.SCROLL_OPTIMIZE, () => {
|
|
6503
6503
|
setTimeout(() => {
|
|
6504
6504
|
if (this.root.classList.contains("ql-hidden")) return;
|
|
6505
6505
|
const t = this.quill.getSelection();
|
|
@@ -6556,12 +6556,12 @@ class El extends bl {
|
|
|
6556
6556
|
}), this.root.querySelector("a.ql-remove").addEventListener("click", (e) => {
|
|
6557
6557
|
if (this.linkRange != null) {
|
|
6558
6558
|
const s = this.linkRange;
|
|
6559
|
-
this.restoreFocus(), this.quill.formatText(s, "link", !1,
|
|
6559
|
+
this.restoreFocus(), this.quill.formatText(s, "link", !1, L.sources.USER), delete this.linkRange;
|
|
6560
6560
|
}
|
|
6561
6561
|
e.preventDefault(), this.hide();
|
|
6562
|
-
}), this.quill.on(
|
|
6562
|
+
}), this.quill.on(L.events.SELECTION_CHANGE, (e, s, n) => {
|
|
6563
6563
|
if (e != null) {
|
|
6564
|
-
if (e.length === 0 && n ===
|
|
6564
|
+
if (e.length === 0 && n === L.sources.USER) {
|
|
6565
6565
|
const [i, o] = this.quill.scroll.descendant(Kt, e.index);
|
|
6566
6566
|
if (i != null) {
|
|
6567
6567
|
this.linkRange = new re(e.index - o, i.length());
|
|
@@ -6650,21 +6650,21 @@ A.register({
|
|
|
6650
6650
|
"formats/script": _r,
|
|
6651
6651
|
"formats/strike": Or,
|
|
6652
6652
|
"formats/underline": Ir,
|
|
6653
|
-
"formats/formula":
|
|
6653
|
+
"formats/formula": Zs,
|
|
6654
6654
|
"formats/image": Rr,
|
|
6655
|
-
"formats/video":
|
|
6655
|
+
"formats/video": Ws,
|
|
6656
6656
|
"modules/syntax": dl,
|
|
6657
6657
|
"modules/table": ya,
|
|
6658
6658
|
"modules/toolbar": Yr,
|
|
6659
6659
|
"themes/bubble": vl,
|
|
6660
6660
|
"themes/snow": Qr,
|
|
6661
6661
|
"ui/icons": us,
|
|
6662
|
-
"ui/picker":
|
|
6662
|
+
"ui/picker": an,
|
|
6663
6663
|
"ui/icon-picker": pl,
|
|
6664
6664
|
"ui/color-picker": gl,
|
|
6665
6665
|
"ui/tooltip": ml
|
|
6666
6666
|
}, !0);
|
|
6667
|
-
class Br extends
|
|
6667
|
+
class Br extends ln {
|
|
6668
6668
|
}
|
|
6669
6669
|
T(Br, "blotName", "divider"), T(Br, "tagName", "hr");
|
|
6670
6670
|
class cc extends Qr {
|
|
@@ -6706,35 +6706,38 @@ const hc = [
|
|
|
6706
6706
|
placeholder: { default: "" },
|
|
6707
6707
|
controls: { default: () => [] },
|
|
6708
6708
|
handlers: { default: () => ({}) },
|
|
6709
|
-
addBottomSpace: { type: Boolean
|
|
6710
|
-
errorText: {
|
|
6711
|
-
hintText: {
|
|
6712
|
-
id: {
|
|
6713
|
-
|
|
6714
|
-
|
|
6715
|
-
|
|
6716
|
-
|
|
6717
|
-
|
|
6709
|
+
addBottomSpace: { type: Boolean },
|
|
6710
|
+
errorText: {},
|
|
6711
|
+
hintText: {},
|
|
6712
|
+
id: {},
|
|
6713
|
+
errorId: {},
|
|
6714
|
+
isReadOnly: { type: Boolean },
|
|
6715
|
+
isRequired: { type: Boolean },
|
|
6716
|
+
label: {},
|
|
6717
|
+
showOptionalInLabel: { type: Boolean },
|
|
6718
|
+
fieldset: { type: Boolean },
|
|
6719
|
+
isDisabled: { type: Boolean },
|
|
6720
|
+
disabled: { type: Boolean }
|
|
6718
6721
|
},
|
|
6719
6722
|
emits: ["update:model-value", "focus", "blur"],
|
|
6720
6723
|
setup(r, { emit: t }) {
|
|
6721
6724
|
const e = r, s = t, n = wl(), i = ti(null);
|
|
6722
6725
|
let o = null;
|
|
6723
|
-
const a =
|
|
6726
|
+
const a = nr(() => e.id || kl("stash-text-editor-")), u = ti(e.modelValue), h = nr(() => {
|
|
6724
6727
|
const b = e.controls.length ? e.controls : hc;
|
|
6725
6728
|
return Array.isArray(b[0]) ? p(b) : d(b);
|
|
6726
|
-
}), g =
|
|
6729
|
+
}), g = nr(() => ({ ...fc, ...e.handlers }));
|
|
6727
6730
|
function y(b, v) {
|
|
6728
|
-
const
|
|
6729
|
-
if (!(!
|
|
6730
|
-
return v &&
|
|
6731
|
+
const E = dc[b];
|
|
6732
|
+
if (!(!E && !v))
|
|
6733
|
+
return v && E instanceof Object ? E[v] : E;
|
|
6731
6734
|
}
|
|
6732
6735
|
function d(b) {
|
|
6733
6736
|
return b.map((v) => {
|
|
6734
|
-
const
|
|
6737
|
+
const E = v instanceof Object ? Object.keys(v)[0] : v, w = v instanceof Object ? v[E] : void 0;
|
|
6735
6738
|
return {
|
|
6736
|
-
icon: y(
|
|
6737
|
-
name:
|
|
6739
|
+
icon: y(E, w),
|
|
6740
|
+
name: E,
|
|
6738
6741
|
value: w
|
|
6739
6742
|
};
|
|
6740
6743
|
});
|
|
@@ -6742,16 +6745,7 @@ const hc = [
|
|
|
6742
6745
|
function p(b) {
|
|
6743
6746
|
return b.map((v) => d(v));
|
|
6744
6747
|
}
|
|
6745
|
-
const m =
|
|
6746
|
-
addBottomSpace: e.addBottomSpace,
|
|
6747
|
-
errorText: e.errorText,
|
|
6748
|
-
hintText: e.hintText,
|
|
6749
|
-
id: a.value,
|
|
6750
|
-
isReadOnly: e.isReadOnly,
|
|
6751
|
-
isRequired: e.isRequired,
|
|
6752
|
-
label: e.label,
|
|
6753
|
-
showOptionalInLabel: e.showOptionalInLabel
|
|
6754
|
-
})), N = (b) => {
|
|
6748
|
+
const m = (b) => {
|
|
6755
6749
|
u.value = e.modelValue;
|
|
6756
6750
|
const v = b.clipboard.convert({ html: e.modelValue ?? "" });
|
|
6757
6751
|
b.setContents(v);
|
|
@@ -6768,7 +6762,7 @@ const hc = [
|
|
|
6768
6762
|
readOnly: e.isReadOnly,
|
|
6769
6763
|
theme: "snow"
|
|
6770
6764
|
});
|
|
6771
|
-
!e.isReadOnly && e.isDisabled && b.enable(!1), e.modelValue &&
|
|
6765
|
+
!e.isReadOnly && e.isDisabled && b.enable(!1), e.modelValue && m(b), b.on("selection-change", (v) => {
|
|
6772
6766
|
s(v ? "focus" : "blur", b);
|
|
6773
6767
|
}), b.on("text-change", () => {
|
|
6774
6768
|
u.value = b.root.innerHTML;
|
|
@@ -6776,21 +6770,14 @@ const hc = [
|
|
|
6776
6770
|
}), ei(
|
|
6777
6771
|
() => e.modelValue,
|
|
6778
6772
|
(b) => {
|
|
6779
|
-
o && (b && b !== u.value ? (
|
|
6773
|
+
o && (b && b !== u.value ? (m(o), u.value = o.root.innerHTML) : b || o.setContents([]));
|
|
6780
6774
|
}
|
|
6781
6775
|
), ei(u, (b, v) => {
|
|
6782
6776
|
o && (b && b !== v ? s("update:model-value", b) : b || o.setContents([]));
|
|
6783
6777
|
}), Ll(() => {
|
|
6784
6778
|
o = null;
|
|
6785
|
-
}), (b, v) => (Lt(), Qe(Cl, ql(
|
|
6786
|
-
class: ["stash-text-editor", [
|
|
6787
|
-
ve(n).root,
|
|
6788
|
-
{
|
|
6789
|
-
"stash-text-editor--error": !!e.errorText,
|
|
6790
|
-
"stash-text-editor--disabled": e.isDisabled,
|
|
6791
|
-
"stash-text-editor--read-only": e.isReadOnly
|
|
6792
|
-
}
|
|
6793
|
-
]],
|
|
6779
|
+
}), (b, v) => (Lt(), Qe(Cl, ql(e, {
|
|
6780
|
+
class: ["stash-text-editor", [ve(n).root]],
|
|
6794
6781
|
"data-test": "stash-text-editor"
|
|
6795
6782
|
}), {
|
|
6796
6783
|
default: rr(() => [
|
|
@@ -6801,26 +6788,26 @@ const hc = [
|
|
|
6801
6788
|
"data-test": "stash-text-editor|format-bar",
|
|
6802
6789
|
role: "format-bar"
|
|
6803
6790
|
}, [
|
|
6804
|
-
(Lt(!0), Je(ir, null, si(h.value, (
|
|
6805
|
-
Array.isArray(
|
|
6791
|
+
(Lt(!0), Je(ir, null, si(h.value, (E, w) => (Lt(), Je(ir, { key: w }, [
|
|
6792
|
+
Array.isArray(E) ? (Lt(), Je("div", {
|
|
6806
6793
|
key: 0,
|
|
6807
6794
|
class: ts(["stash-text-editor__format-bar__group", ve(n)["format-bar-group"]]),
|
|
6808
6795
|
"data-test": "stash-text-editor|format-bar-group"
|
|
6809
6796
|
}, [
|
|
6810
|
-
(Lt(!0), Je(ir, null, si(
|
|
6811
|
-
key:
|
|
6812
|
-
class: ts(["stash-text-editor__format-bar__control tw-rounded-none", [ve(n)["format-bar-control"], `ql-${
|
|
6813
|
-
"aria-label":
|
|
6814
|
-
"data-test": `stash-text-editor|format-bar-${
|
|
6797
|
+
(Lt(!0), Je(ir, null, si(E, (x, k) => (Lt(), Qe(ni, {
|
|
6798
|
+
key: x.name + k,
|
|
6799
|
+
class: ts(["stash-text-editor__format-bar__control tw-rounded-none", [ve(n)["format-bar-control"], `ql-${x.name}`]]),
|
|
6800
|
+
"aria-label": x.value ? `${x.name}: ${x.value}` : `${x.name}`,
|
|
6801
|
+
"data-test": `stash-text-editor|format-bar-${x.name}-grouped-control`,
|
|
6815
6802
|
disabled: e.isDisabled,
|
|
6816
|
-
value:
|
|
6803
|
+
value: x.value,
|
|
6817
6804
|
secondary: "",
|
|
6818
6805
|
icon: ""
|
|
6819
6806
|
}, {
|
|
6820
6807
|
default: rr(() => [
|
|
6821
|
-
|
|
6808
|
+
x.icon ? (Lt(), Qe(ri, {
|
|
6822
6809
|
key: 0,
|
|
6823
|
-
name:
|
|
6810
|
+
name: x.icon,
|
|
6824
6811
|
size: "dense"
|
|
6825
6812
|
}, null, 8, ["name"])) : lr("", !0)
|
|
6826
6813
|
]),
|
|
@@ -6828,18 +6815,18 @@ const hc = [
|
|
|
6828
6815
|
}, 1032, ["aria-label", "data-test", "class", "disabled", "value"]))), 128))
|
|
6829
6816
|
], 2)) : (Lt(), Qe(ni, {
|
|
6830
6817
|
key: 1,
|
|
6831
|
-
class: ts(["stash-text-editor__format-bar__control", [ve(n)["format-bar-control"], `ql-${
|
|
6832
|
-
"data-test": `stash-text-editor|format-bar-${
|
|
6833
|
-
"aria-label":
|
|
6818
|
+
class: ts(["stash-text-editor__format-bar__control", [ve(n)["format-bar-control"], `ql-${E.name}`]]),
|
|
6819
|
+
"data-test": `stash-text-editor|format-bar-${E.name}-control`,
|
|
6820
|
+
"aria-label": E.value ? `${E.name}: ${E.value}` : `${E.name}`,
|
|
6834
6821
|
disabled: e.isDisabled,
|
|
6835
|
-
value:
|
|
6822
|
+
value: E.value,
|
|
6836
6823
|
secondary: "",
|
|
6837
6824
|
icon: ""
|
|
6838
6825
|
}, {
|
|
6839
6826
|
default: rr(() => [
|
|
6840
|
-
|
|
6827
|
+
E.icon ? (Lt(), Qe(ri, {
|
|
6841
6828
|
key: 0,
|
|
6842
|
-
name:
|
|
6829
|
+
name: E.icon,
|
|
6843
6830
|
size: "dense"
|
|
6844
6831
|
}, null, 8, ["name"])) : lr("", !0)
|
|
6845
6832
|
]),
|
|
@@ -6858,11 +6845,11 @@ const hc = [
|
|
|
6858
6845
|
_: 1
|
|
6859
6846
|
}, 16, ["class"]));
|
|
6860
6847
|
}
|
|
6861
|
-
}), bc = "
|
|
6848
|
+
}), bc = "_root_10u42_2", yc = {
|
|
6862
6849
|
root: bc,
|
|
6863
|
-
"format-bar-root": "_format-bar-
|
|
6864
|
-
"format-bar-group": "_format-bar-
|
|
6865
|
-
"format-bar-control": "_format-bar-
|
|
6850
|
+
"format-bar-root": "_format-bar-root_10u42_45",
|
|
6851
|
+
"format-bar-group": "_format-bar-group_10u42_55",
|
|
6852
|
+
"format-bar-control": "_format-bar-control_10u42_77"
|
|
6866
6853
|
}, vc = {
|
|
6867
6854
|
$style: yc
|
|
6868
6855
|
}, Rc = /* @__PURE__ */ _l(mc, [["__cssModules", vc]]);
|