@opengis/admin 0.3.84 → 0.3.86
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/{add-page-D5h1nd44.js → add-page-CByeQYi1.js} +1 -1
- package/dist/{admin-interface-BL78T_tI.js → admin-interface-CFij1RI4.js} +1 -1
- package/dist/{admin-view-BdzII4mV.js → admin-view-BhZTNW31.js} +1 -1
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +1 -1
- package/dist/{card-view-CMZ6FcPZ.js → card-view-RhrOyyhe.js} +1 -1
- package/dist/{edit-page-BiCqun6l.js → edit-page-BZu_3g4o.js} +1 -1
- package/dist/{import-file-DoXCXa-Q.js → import-file-CrENtq-3.js} +188 -188
- package/dist/{profile-page-BvH-kg6j.js → profile-page-BJ0Mf6C2.js} +1 -1
- package/package.json +1 -1
- package/server/routes/widget/controllers/widget.get.js +15 -9
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ref as ot, getCurrentInstance as Xr, onMounted as zo, resolveComponent as qe, openBlock as X, createBlock as zt, withCtx as Mt, createElementVNode as L,
|
1
|
+
import { ref as ot, getCurrentInstance as Xr, onMounted as zo, resolveComponent as qe, openBlock as X, createBlock as zt, withCtx as Mt, createElementVNode as L, createVNode as Fe, createCommentVNode as vt, createElementBlock as ne, Fragment as Et, shallowRef as Cz, unref as Co, shallowReactive as Tz, inject as mu, nextTick as Mx, defineComponent as Ws, reactive as Az, computed as Mi, h as Mo, provide as Xv, watch as js, watchEffect as aT, normalizeClass as tn, toDisplayString as He, renderSlot as Dx, withDirectives as ys, vModelText as lT, renderList as Kt, normalizeStyle as ia, vModelCheckbox as gu, resolveDynamicComponent as ps, vModelRadio as Mz, createStaticVNode as Io, vShow as Hy, withModifiers as Jc, TransitionGroup as Dz, onBeforeUnmount as Np, markRaw as Iz, customRef as Pz, Transition as Uy, createTextVNode as Hi, Teleport as cT, useModel as Bp, mergeModels as Rz, mergeProps as Wf, createSlots as Oz, createApp as Ix, defineCustomElement as zz } from "vue";
|
2
2
|
import Lz from "vuedraggable";
|
3
3
|
function uT(t, e) {
|
4
4
|
return function() {
|
@@ -1714,9 +1714,7 @@ const Xn = ot({}), hN = () => {
|
|
1714
1714
|
},
|
1715
1715
|
setup(t) {
|
1716
1716
|
var _;
|
1717
|
-
const { $notify: e = () => 1 } = (_ = Xr()) == null ? void 0 : _.proxy, n = ot(!1), i = ot(null)
|
1718
|
-
let r = ot(!1);
|
1719
|
-
const s = ot({}), a = ot(), o = ot({}), f = (k) => {
|
1717
|
+
const { $notify: e = () => 1 } = (_ = Xr()) == null ? void 0 : _.proxy, n = ot(!1), i = ot(null), r = ot(!1), s = ot({}), a = ot(), o = ot({}), f = (k) => {
|
1720
1718
|
n.value = !1, i.value = null, s.value = {}, o.value = {};
|
1721
1719
|
const C = new CustomEvent("closeFormPlugin");
|
1722
1720
|
C.message = k, window.dispatchEvent(C);
|
@@ -1748,27 +1746,29 @@ const Xn = ot({}), hN = () => {
|
|
1748
1746
|
}
|
1749
1747
|
}, g = async () => {
|
1750
1748
|
var k, C, M, O, z;
|
1751
|
-
r
|
1752
|
-
|
1753
|
-
|
1754
|
-
|
1755
|
-
|
1756
|
-
|
1757
|
-
|
1758
|
-
|
1759
|
-
|
1760
|
-
|
1761
|
-
|
1762
|
-
|
1763
|
-
|
1764
|
-
|
1765
|
-
|
1766
|
-
|
1767
|
-
|
1768
|
-
|
1769
|
-
|
1770
|
-
|
1771
|
-
|
1749
|
+
if (!r.value) {
|
1750
|
+
r.value = !0;
|
1751
|
+
try {
|
1752
|
+
await a.value.doValidation();
|
1753
|
+
const { data: $ } = await lt({
|
1754
|
+
method: ((k = o.value) == null ? void 0 : k.method) || "PUT",
|
1755
|
+
url: `${((C = o.value) == null ? void 0 : C.api) || "/api/table/"}${((M = o.value) == null ? void 0 : M.token) || ((O = o.value) == null ? void 0 : O.id) || ""}`,
|
1756
|
+
data: s.value
|
1757
|
+
});
|
1758
|
+
Xy(), hN(), f($), e({
|
1759
|
+
title: "Успішно!",
|
1760
|
+
type: "success",
|
1761
|
+
message: "Операція виконана успішно"
|
1762
|
+
});
|
1763
|
+
} catch ($) {
|
1764
|
+
e({
|
1765
|
+
title: "Помилка!",
|
1766
|
+
type: "error",
|
1767
|
+
message: $.message === "validation error" ? "Перевірте правильність полів." : ((z = $ == null ? void 0 : $.response) == null ? void 0 : z.data) || "Сталася помилка"
|
1768
|
+
});
|
1769
|
+
} finally {
|
1770
|
+
r.value = !1;
|
1771
|
+
}
|
1772
1772
|
}
|
1773
1773
|
};
|
1774
1774
|
return zo(() => {
|
@@ -1793,7 +1793,7 @@ const Xn = ot({}), hN = () => {
|
|
1793
1793
|
class: "py-2 px-3 inline-flex items-center gap-x-2 text-sm whitespace-nowrap text-black border-gray-200 rounded-lg !border-gray-200 hover:bg-gray-100 duration-300"
|
1794
1794
|
}, " Скасувати ", 8, mN),
|
1795
1795
|
L("button", {
|
1796
|
-
disabled:
|
1796
|
+
disabled: r.value,
|
1797
1797
|
onClick: g,
|
1798
1798
|
class: "py-2 px-3 inline-flex items-center gap-x-2 text-[14px] font-[400] whitespace-nowrap text-white bg-blue-500 rounded-lg !border-gray-200 hover:bg-blue-700"
|
1799
1799
|
}, " Зберегти ", 8, gN)
|
@@ -2858,7 +2858,7 @@ function LS(t) {
|
|
2858
2858
|
const e = mu(Jy), n = mu(Bx);
|
2859
2859
|
let i = !1, r = null;
|
2860
2860
|
const s = Mi(() => {
|
2861
|
-
const g =
|
2861
|
+
const g = Co(t.to);
|
2862
2862
|
return ln.NODE_ENV !== "production" && (!i || g !== r) && (ty(g) || (i ? Sn(`Invalid value for prop "to" in useLink()
|
2863
2863
|
- to:`, g, `
|
2864
2864
|
- previous to:`, r, `
|
@@ -2883,8 +2883,8 @@ function LS(t) {
|
|
2883
2883
|
);
|
2884
2884
|
}), o = Mi(() => a.value > -1 && D4(n.params, s.value.params)), f = Mi(() => a.value > -1 && a.value === n.matched.length - 1 && VT(n.params, s.value.params));
|
2885
2885
|
function m(g = {}) {
|
2886
|
-
return M4(g) ? e[
|
2887
|
-
|
2886
|
+
return M4(g) ? e[Co(t.replace) ? "replace" : "push"](
|
2887
|
+
Co(t.to)
|
2888
2888
|
// avoid uncaught errors are they are logged anyway
|
2889
2889
|
).catch(Kf) : Promise.resolve();
|
2890
2890
|
}
|
@@ -2898,7 +2898,7 @@ function LS(t) {
|
|
2898
2898
|
error: null
|
2899
2899
|
};
|
2900
2900
|
g.__vrl_devtools = g.__vrl_devtools || [], g.__vrl_devtools.push(_), aT(() => {
|
2901
|
-
_.route = s.value, _.isActive = o.value, _.isExactActive = f.value, _.error = ty(
|
2901
|
+
_.route = s.value, _.isActive = o.value, _.isExactActive = f.value, _.error = ty(Co(t.to)) ? null : 'Invalid "to" value';
|
2902
2902
|
}, { flush: "post" });
|
2903
2903
|
}
|
2904
2904
|
}
|
@@ -2993,7 +2993,7 @@ const BS = (t, e, n) => t ?? e ?? n, I4 = /* @__PURE__ */ Ws({
|
|
2993
2993
|
setup(t, { attrs: e, slots: n }) {
|
2994
2994
|
ln.NODE_ENV !== "production" && R4();
|
2995
2995
|
const i = mu(E_), r = Mi(() => t.route || i.value), s = mu(zS, 0), a = Mi(() => {
|
2996
|
-
let m =
|
2996
|
+
let m = Co(s);
|
2997
2997
|
const { matched: g } = r.value;
|
2998
2998
|
let _;
|
2999
2999
|
for (; (_ = g[m]) && !_.components; )
|
@@ -3660,7 +3660,7 @@ ${JSON.stringify(wt, null, 2)}
|
|
3660
3660
|
const Qe = this;
|
3661
3661
|
Pe.component("RouterLink", A4), Pe.component("RouterView", P4), Pe.config.globalProperties.$router = Qe, Object.defineProperty(Pe.config.globalProperties, "$route", {
|
3662
3662
|
enumerable: !0,
|
3663
|
-
get: () =>
|
3663
|
+
get: () => Co(f)
|
3664
3664
|
}), Ba && // used for the initial navigation client side to avoid pushing
|
3665
3665
|
// multiple times when the router is used in multiple apps
|
3666
3666
|
!ti && f.value === Nl && (ti = !0, Z(r.location).catch((sn) => {
|
@@ -3705,27 +3705,27 @@ const Y4 = [
|
|
3705
3705
|
{
|
3706
3706
|
name: "edit",
|
3707
3707
|
path: "/edit",
|
3708
|
-
component: () => import("./edit-page-
|
3708
|
+
component: () => import("./edit-page-BZu_3g4o.js")
|
3709
3709
|
},
|
3710
3710
|
{
|
3711
3711
|
name: "add",
|
3712
3712
|
path: "/add",
|
3713
|
-
component: () => import("./add-page-
|
3713
|
+
component: () => import("./add-page-CByeQYi1.js")
|
3714
3714
|
},
|
3715
3715
|
{
|
3716
3716
|
path: "/profile",
|
3717
3717
|
name: "profile",
|
3718
|
-
component: () => import("./profile-page-
|
3718
|
+
component: () => import("./profile-page-BJ0Mf6C2.js")
|
3719
3719
|
},
|
3720
3720
|
{
|
3721
3721
|
name: "card-view",
|
3722
3722
|
path: "/card",
|
3723
|
-
component: () => import("./card-view-
|
3723
|
+
component: () => import("./card-view-RhrOyyhe.js"),
|
3724
3724
|
children: [
|
3725
3725
|
{
|
3726
3726
|
name: "table",
|
3727
3727
|
path: ":table",
|
3728
|
-
component: () => import("./card-view-
|
3728
|
+
component: () => import("./card-view-RhrOyyhe.js"),
|
3729
3729
|
children: [
|
3730
3730
|
{
|
3731
3731
|
name: "card",
|
@@ -3786,14 +3786,14 @@ const Q4 = /* @__PURE__ */ ft(Z4, [["render", J4]]), eB = (t) => {
|
|
3786
3786
|
{
|
3787
3787
|
path: "/",
|
3788
3788
|
name: "home",
|
3789
|
-
component: () => import("./admin-view-
|
3789
|
+
component: () => import("./admin-view-BhZTNW31.js"),
|
3790
3790
|
children: [
|
3791
3791
|
...e,
|
3792
3792
|
...t,
|
3793
3793
|
// { path: '/', redirect: '/home' },
|
3794
3794
|
{
|
3795
3795
|
path: "/:catchAll(.*)",
|
3796
|
-
component: () => import("./admin-interface-
|
3796
|
+
component: () => import("./admin-interface-CFij1RI4.js")
|
3797
3797
|
}
|
3798
3798
|
]
|
3799
3799
|
}
|
@@ -4395,7 +4395,7 @@ function Ro(t) {
|
|
4395
4395
|
function oA(t) {
|
4396
4396
|
St.suppressDeprecationWarnings === !1 && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + t);
|
4397
4397
|
}
|
4398
|
-
function
|
4398
|
+
function go(t, e) {
|
4399
4399
|
var n = !0;
|
4400
4400
|
return Ul(function() {
|
4401
4401
|
if (St.deprecationHandler != null && St.deprecationHandler(null, t), n) {
|
@@ -4612,13 +4612,13 @@ var jS = {
|
|
4612
4612
|
years: "year",
|
4613
4613
|
year: "year"
|
4614
4614
|
};
|
4615
|
-
function
|
4615
|
+
function yo(t) {
|
4616
4616
|
return typeof t == "string" ? jS[t] || jS[t.toLowerCase()] : void 0;
|
4617
4617
|
}
|
4618
4618
|
function Ux(t) {
|
4619
4619
|
var e = {}, n, i;
|
4620
4620
|
for (i in t)
|
4621
|
-
Hn(t, i) && (n =
|
4621
|
+
Hn(t, i) && (n = yo(i), n && (e[n] = t[i]));
|
4622
4622
|
return e;
|
4623
4623
|
}
|
4624
4624
|
var eF = {
|
@@ -4785,7 +4785,7 @@ function pA(t, e, n) {
|
|
4785
4785
|
}
|
4786
4786
|
}
|
4787
4787
|
function uF(t) {
|
4788
|
-
return t =
|
4788
|
+
return t = yo(t), da(this[t]) ? this[t]() : this;
|
4789
4789
|
}
|
4790
4790
|
function dF(t, e) {
|
4791
4791
|
if (typeof t == "object") {
|
@@ -4793,7 +4793,7 @@ function dF(t, e) {
|
|
4793
4793
|
var n = tF(t), i, r = n.length;
|
4794
4794
|
for (i = 0; i < r; i++)
|
4795
4795
|
this[n[i].unit](t[n[i].unit]);
|
4796
|
-
} else if (t =
|
4796
|
+
} else if (t = yo(t), da(this[t]))
|
4797
4797
|
return this[t](e);
|
4798
4798
|
return this;
|
4799
4799
|
}
|
@@ -5447,7 +5447,7 @@ function m3(t) {
|
|
5447
5447
|
return;
|
5448
5448
|
t._strict ? t._isValid = !1 : St.createFromInputFallback(t);
|
5449
5449
|
}
|
5450
|
-
St.createFromInputFallback =
|
5450
|
+
St.createFromInputFallback = go(
|
5451
5451
|
"value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",
|
5452
5452
|
function(t) {
|
5453
5453
|
t._d = /* @__PURE__ */ new Date(t._i + (t._useUTC ? " UTC" : ""));
|
@@ -5556,13 +5556,13 @@ function AA(t, e, n, i, r) {
|
|
5556
5556
|
function vi(t, e, n, i) {
|
5557
5557
|
return AA(t, e, n, i, !1);
|
5558
5558
|
}
|
5559
|
-
var k3 =
|
5559
|
+
var k3 = go(
|
5560
5560
|
"moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",
|
5561
5561
|
function() {
|
5562
5562
|
var t = vi.apply(null, arguments);
|
5563
5563
|
return this.isValid() && t.isValid() ? t < this ? this : t : Qy();
|
5564
5564
|
}
|
5565
|
-
), S3 =
|
5565
|
+
), S3 = go(
|
5566
5566
|
"moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",
|
5567
5567
|
function() {
|
5568
5568
|
var t = vi.apply(null, arguments);
|
@@ -5847,11 +5847,11 @@ function e5() {
|
|
5847
5847
|
}
|
5848
5848
|
function t5(t, e) {
|
5849
5849
|
var n = Ro(t) ? t : vi(t);
|
5850
|
-
return this.isValid() && n.isValid() ? (e =
|
5850
|
+
return this.isValid() && n.isValid() ? (e = yo(e) || "millisecond", e === "millisecond" ? this.valueOf() > n.valueOf() : n.valueOf() < this.clone().startOf(e).valueOf()) : !1;
|
5851
5851
|
}
|
5852
5852
|
function n5(t, e) {
|
5853
5853
|
var n = Ro(t) ? t : vi(t);
|
5854
|
-
return this.isValid() && n.isValid() ? (e =
|
5854
|
+
return this.isValid() && n.isValid() ? (e = yo(e) || "millisecond", e === "millisecond" ? this.valueOf() < n.valueOf() : this.clone().endOf(e).valueOf() < n.valueOf()) : !1;
|
5855
5855
|
}
|
5856
5856
|
function i5(t, e, n, i) {
|
5857
5857
|
var r = Ro(t) ? t : vi(t), s = Ro(e) ? e : vi(e);
|
@@ -5859,7 +5859,7 @@ function i5(t, e, n, i) {
|
|
5859
5859
|
}
|
5860
5860
|
function r5(t, e) {
|
5861
5861
|
var n = Ro(t) ? t : vi(t), i;
|
5862
|
-
return this.isValid() && n.isValid() ? (e =
|
5862
|
+
return this.isValid() && n.isValid() ? (e = yo(e) || "millisecond", e === "millisecond" ? this.valueOf() === n.valueOf() : (i = n.valueOf(), this.clone().startOf(e).valueOf() <= i && i <= this.clone().endOf(e).valueOf())) : !1;
|
5863
5863
|
}
|
5864
5864
|
function s5(t, e) {
|
5865
5865
|
return this.isSame(t, e) || this.isAfter(t, e);
|
@@ -5873,7 +5873,7 @@ function a5(t, e, n) {
|
|
5873
5873
|
return NaN;
|
5874
5874
|
if (i = i1(t, this), !i.isValid())
|
5875
5875
|
return NaN;
|
5876
|
-
switch (r = (i.utcOffset() - this.utcOffset()) * 6e4, e =
|
5876
|
+
switch (r = (i.utcOffset() - this.utcOffset()) * 6e4, e = yo(e), e) {
|
5877
5877
|
case "year":
|
5878
5878
|
s = Vg(this, i) / 12;
|
5879
5879
|
break;
|
@@ -5953,7 +5953,7 @@ function zA(t) {
|
|
5953
5953
|
var e;
|
5954
5954
|
return t === void 0 ? this._locale._abbr : (e = Qa(t), e != null && (this._locale = e), this);
|
5955
5955
|
}
|
5956
|
-
var LA =
|
5956
|
+
var LA = go(
|
5957
5957
|
"moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",
|
5958
5958
|
function(t) {
|
5959
5959
|
return t === void 0 ? this.localeData() : this.locale(t);
|
@@ -5974,7 +5974,7 @@ function $A(t, e, n) {
|
|
5974
5974
|
}
|
5975
5975
|
function g5(t) {
|
5976
5976
|
var e, n;
|
5977
|
-
if (t =
|
5977
|
+
if (t = yo(t), t === void 0 || t === "millisecond" || !this.isValid())
|
5978
5978
|
return this;
|
5979
5979
|
switch (n = this._isUTC ? $A : FA, t) {
|
5980
5980
|
case "year":
|
@@ -6025,7 +6025,7 @@ function g5(t) {
|
|
6025
6025
|
}
|
6026
6026
|
function y5(t) {
|
6027
6027
|
var e, n;
|
6028
|
-
if (t =
|
6028
|
+
if (t = yo(t), t === void 0 || t === "millisecond" || !this.isValid())
|
6029
6029
|
return this;
|
6030
6030
|
switch (n = this._isUTC ? $A : FA, t) {
|
6031
6031
|
case "year":
|
@@ -6501,23 +6501,23 @@ nt.isUtc = IA;
|
|
6501
6501
|
nt.isUTC = IA;
|
6502
6502
|
nt.zoneAbbr = Q5;
|
6503
6503
|
nt.zoneName = e$;
|
6504
|
-
nt.dates =
|
6504
|
+
nt.dates = go(
|
6505
6505
|
"dates accessor is deprecated. Use date instead.",
|
6506
6506
|
jA
|
6507
6507
|
);
|
6508
|
-
nt.months =
|
6508
|
+
nt.months = go(
|
6509
6509
|
"months accessor is deprecated. Use month instead",
|
6510
6510
|
vA
|
6511
6511
|
);
|
6512
|
-
nt.years =
|
6512
|
+
nt.years = go(
|
6513
6513
|
"years accessor is deprecated. Use year instead",
|
6514
6514
|
fA
|
6515
6515
|
);
|
6516
|
-
nt.zone =
|
6516
|
+
nt.zone = go(
|
6517
6517
|
"moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",
|
6518
6518
|
O3
|
6519
6519
|
);
|
6520
|
-
nt.isDSTShifted =
|
6520
|
+
nt.isDSTShifted = go(
|
6521
6521
|
"isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",
|
6522
6522
|
$3
|
6523
6523
|
);
|
@@ -6624,11 +6624,11 @@ Jl("en", {
|
|
6624
6624
|
return t + n;
|
6625
6625
|
}
|
6626
6626
|
});
|
6627
|
-
St.lang =
|
6627
|
+
St.lang = go(
|
6628
6628
|
"moment.lang is deprecated. Use moment.locale instead.",
|
6629
6629
|
Jl
|
6630
6630
|
);
|
6631
|
-
St.langData =
|
6631
|
+
St.langData = go(
|
6632
6632
|
"moment.langData is deprecated. Use moment.localeData instead.",
|
6633
6633
|
Qa
|
6634
6634
|
);
|
@@ -6664,7 +6664,7 @@ function h$(t) {
|
|
6664
6664
|
if (!this.isValid())
|
6665
6665
|
return NaN;
|
6666
6666
|
var e, n, i = this._milliseconds;
|
6667
|
-
if (t =
|
6667
|
+
if (t = yo(t), t === "month" || t === "quarter" || t === "year")
|
6668
6668
|
switch (e = this._days + i / 864e5, n = this._months + GA(e), t) {
|
6669
6669
|
case "month":
|
6670
6670
|
return n;
|
@@ -6701,7 +6701,7 @@ function w$() {
|
|
6701
6701
|
return No(this);
|
6702
6702
|
}
|
6703
6703
|
function k$(t) {
|
6704
|
-
return t =
|
6704
|
+
return t = yo(t), this.isValid() ? this[t + "s"]() : NaN;
|
6705
6705
|
}
|
6706
6706
|
function Su(t) {
|
6707
6707
|
return function() {
|
@@ -6790,7 +6790,7 @@ $n.toString = c0;
|
|
6790
6790
|
$n.toJSON = c0;
|
6791
6791
|
$n.locale = zA;
|
6792
6792
|
$n.localeData = NA;
|
6793
|
-
$n.toIsoString =
|
6793
|
+
$n.toIsoString = go(
|
6794
6794
|
"toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",
|
6795
6795
|
c0
|
6796
6796
|
);
|
@@ -6830,7 +6830,7 @@ St.defineLocale = Jx;
|
|
6830
6830
|
St.updateLocale = n3;
|
6831
6831
|
St.locales = i3;
|
6832
6832
|
St.weekdaysShort = o$;
|
6833
|
-
St.normalizeUnits =
|
6833
|
+
St.normalizeUnits = yo;
|
6834
6834
|
St.relativeTimeRounding = O$;
|
6835
6835
|
St.relativeTimeThreshold = z$;
|
6836
6836
|
St.calendarFormat = J3;
|
@@ -8938,7 +8938,7 @@ var JA = { exports: {} };
|
|
8938
8938
|
function Bu(u) {
|
8939
8939
|
return u[1] - u[0] + 1;
|
8940
8940
|
}
|
8941
|
-
function
|
8941
|
+
function bo(u, c) {
|
8942
8942
|
return u[1] >= u[0] && u[1] < c;
|
8943
8943
|
}
|
8944
8944
|
function Bh(u, c) {
|
@@ -8954,7 +8954,7 @@ var JA = { exports: {} };
|
|
8954
8954
|
return [[u[0], u[0] + p], [u[0] + p + 1, u[1]]];
|
8955
8955
|
}
|
8956
8956
|
function Fh(u, c) {
|
8957
|
-
if (!
|
8957
|
+
if (!bo(c, u.length)) return [1 / 0, 1 / 0, -1 / 0, -1 / 0];
|
8958
8958
|
const d = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
|
8959
8959
|
for (let p = c[0]; p <= c[1]; ++p) ga(d, u[p]);
|
8960
8960
|
return d;
|
@@ -8981,7 +8981,7 @@ var JA = { exports: {} };
|
|
8981
8981
|
return Math.min(S, E);
|
8982
8982
|
}
|
8983
8983
|
function X0(u, c, d, p, b) {
|
8984
|
-
if (!
|
8984
|
+
if (!bo(c, u.length) || !bo(p, d.length)) return 1 / 0;
|
8985
8985
|
let S = 1 / 0;
|
8986
8986
|
for (let E = c[0]; E < c[1]; ++E) {
|
8987
8987
|
const T = u[E], D = u[E + 1];
|
@@ -8994,7 +8994,7 @@ var JA = { exports: {} };
|
|
8994
8994
|
return S;
|
8995
8995
|
}
|
8996
8996
|
function xi(u, c, d, p, b) {
|
8997
|
-
if (!
|
8997
|
+
if (!bo(c, u.length) || !bo(p, d.length)) return NaN;
|
8998
8998
|
let S = 1 / 0;
|
8999
8999
|
for (let E = c[0]; E <= c[1]; ++E) for (let T = p[0]; T <= p[1]; ++T) if (S = Math.min(S, b.distance(u[E], d[T])), S === 0) return S;
|
9000
9000
|
return S;
|
@@ -9011,7 +9011,7 @@ var JA = { exports: {} };
|
|
9011
9011
|
return p;
|
9012
9012
|
}
|
9013
9013
|
function hn(u, c, d, p) {
|
9014
|
-
if (!
|
9014
|
+
if (!bo(c, u.length)) return NaN;
|
9015
9015
|
for (let S = c[0]; S <= c[1]; ++S) if (al(u[S], d, !0)) return 0;
|
9016
9016
|
let b = 1 / 0;
|
9017
9017
|
for (let S = c[0]; S < c[1]; ++S) {
|
@@ -9064,7 +9064,7 @@ var JA = { exports: {} };
|
|
9064
9064
|
if (D[0] >= S) continue;
|
9065
9065
|
const R = D[1], N = c ? 50 : 100;
|
9066
9066
|
if (Bu(R) <= N) {
|
9067
|
-
if (!
|
9067
|
+
if (!bo(R, u.length)) return NaN;
|
9068
9068
|
if (c) {
|
9069
9069
|
const F = hn(u, R, d, p);
|
9070
9070
|
if (isNaN(F) || F === 0) return F;
|
@@ -9089,7 +9089,7 @@ var JA = { exports: {} };
|
|
9089
9089
|
if (D[0] >= E) continue;
|
9090
9090
|
const R = D[1], N = D[2], F = c ? 50 : 100, H = p ? 50 : 100;
|
9091
9091
|
if (Bu(R) <= F && Bu(N) <= H) {
|
9092
|
-
if (!
|
9092
|
+
if (!bo(R, u.length) && bo(N, d.length)) return NaN;
|
9093
9093
|
let q;
|
9094
9094
|
if (c && p) q = X0(u, R, d, N, b), E = Math.min(E, q);
|
9095
9095
|
else if (c && !p) {
|
@@ -9764,7 +9764,7 @@ var JA = { exports: {} };
|
|
9764
9764
|
}
|
9765
9765
|
return [];
|
9766
9766
|
}
|
9767
|
-
function
|
9767
|
+
function _o(u) {
|
9768
9768
|
const c = u.key, d = u.value, p = u.valueSpec, b = [];
|
9769
9769
|
return Array.isArray(p.values) ? p.values.indexOf(wi(d)) === -1 && b.push(new Xe(c, d, `expected one of [${p.values.join(", ")}], ${JSON.stringify(d)} found`)) : Object.keys(p.values).indexOf(wi(d)) === -1 && b.push(new Xe(c, d, `expected one of [${Object.keys(p.values).join(", ")}], ${JSON.stringify(d)} found`)), b;
|
9770
9770
|
}
|
@@ -9777,7 +9777,7 @@ var JA = { exports: {} };
|
|
9777
9777
|
const p = u.styleSpec;
|
9778
9778
|
let b, S = [];
|
9779
9779
|
if (c.length < 1) return [new Xe(d, c, "filter array must have at least 1 element")];
|
9780
|
-
switch (S = S.concat(
|
9780
|
+
switch (S = S.concat(_o({ key: `${d}[0]`, value: c[0], valueSpec: p.filter_operator, style: u.style, styleSpec: u.styleSpec })), wi(c[0])) {
|
9781
9781
|
case "<":
|
9782
9782
|
case "<=":
|
9783
9783
|
case ">":
|
@@ -9789,7 +9789,7 @@ var JA = { exports: {} };
|
|
9789
9789
|
case "in":
|
9790
9790
|
case "!in":
|
9791
9791
|
c.length >= 2 && (b = Dn(c[1]), b !== "string" && S.push(new Xe(`${d}[1]`, c[1], `string expected, ${b} found`)));
|
9792
|
-
for (let E = 2; E < c.length; E++) b = Dn(c[E]), wi(c[1]) === "$type" ? S = S.concat(
|
9792
|
+
for (let E = 2; E < c.length; E++) b = Dn(c[E]), wi(c[1]) === "$type" ? S = S.concat(_o({ key: `${d}[${E}]`, value: c[E], valueSpec: p.geometry_type, style: u.style, styleSpec: u.styleSpec })) : b !== "string" && b !== "number" && b !== "boolean" && S.push(new Xe(`${d}[${E}]`, c[E], `string, number, or boolean expected, ${b} found`));
|
9793
9793
|
break;
|
9794
9794
|
case "any":
|
9795
9795
|
case "all":
|
@@ -9893,7 +9893,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
9893
9893
|
case "canvas":
|
9894
9894
|
return [new Xe(d, null, "Please use runtime APIs to add canvas sources, rather than including them in stylesheets.", "source.canvas")];
|
9895
9895
|
default:
|
9896
|
-
return
|
9896
|
+
return _o({ key: `${d}.type`, value: c.type, valueSpec: { values: ["vector", "raster", "raster-dem", "geojson", "video", "image"] }, style: b, validateSpec: S, styleSpec: p });
|
9897
9897
|
}
|
9898
9898
|
}
|
9899
9899
|
function nf(u) {
|
@@ -9941,7 +9941,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
9941
9941
|
}, number: Kh, color: function(u) {
|
9942
9942
|
const c = u.key, d = u.value, p = Dn(d);
|
9943
9943
|
return p !== "string" ? [new Xe(c, d, `color expected, ${p} found`)] : jn.parse(String(d)) ? [] : [new Xe(c, d, `color expected, "${d}" found`)];
|
9944
|
-
}, constants: Tm, enum:
|
9944
|
+
}, constants: Tm, enum: _o, filter: Jh, function: Zu, layer: tf, object: Ur, source: Mc, light: nf, sky: rf, terrain: sf, projection: function(u) {
|
9945
9945
|
const c = u.value, d = u.styleSpec, p = d.projection, b = u.style, S = Dn(c);
|
9946
9946
|
if (c === void 0) return [];
|
9947
9947
|
if (S !== "object") return [new Xe("projection", c, `object expected, ${S} found`)];
|
@@ -9966,7 +9966,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
9966
9966
|
const c = u.key, d = u.value, p = Dn(d), b = u.styleSpec;
|
9967
9967
|
if (p !== "array" || d.length < 1 || d.length % 2 != 0) return [new Xe(c, d, "variableAnchorOffsetCollection requires a non-empty array of even length")];
|
9968
9968
|
let S = [];
|
9969
|
-
for (let E = 0; E < d.length; E += 2) S = S.concat(
|
9969
|
+
for (let E = 0; E < d.length; E += 2) S = S.concat(_o({ key: `${c}[${E}]`, value: d[E], valueSpec: b.layout_symbol["text-anchor"] })), S = S.concat(Ac({ key: `${c}[${E + 1}]`, value: d[E + 1], valueSpec: { length: 2, value: "number" }, validateSpec: u.validateSpec, style: u.style, styleSpec: b }));
|
9970
9970
|
return S;
|
9971
9971
|
}, sprite: of };
|
9972
9972
|
function vl(u) {
|
@@ -11425,7 +11425,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11425
11425
|
this.paintVertexBuffer && this.paintVertexBuffer.destroy();
|
11426
11426
|
}
|
11427
11427
|
}
|
11428
|
-
class
|
11428
|
+
class xo {
|
11429
11429
|
constructor(c, d, p, b, S, E) {
|
11430
11430
|
this.expression = c, this.uniformNames = d.map((T) => `u_${T}_t`), this.type = p, this.useIntegerZoom = b, this.zoom = S, this.maxValue = 0, this.paintVertexAttributes = d.map((T) => ({ name: `a_${T}`, type: "Float32", components: p === "color" ? 4 : 2, offset: 0 })), this.paintVertexArray = new E();
|
11431
11431
|
}
|
@@ -11498,19 +11498,19 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11498
11498
|
this.binders[S] = H ? new Ml(D, R, N, d, q, c.id) : new Ca(D, T, R, q), b.push(`/a_${S}`);
|
11499
11499
|
} else {
|
11500
11500
|
const q = Mw(S, R, "composite");
|
11501
|
-
this.binders[S] = new
|
11501
|
+
this.binders[S] = new xo(D, T, R, N, d, q), b.push(`/z_${S}`);
|
11502
11502
|
}
|
11503
11503
|
}
|
11504
11504
|
this.cacheKey = b.sort().join("");
|
11505
11505
|
}
|
11506
11506
|
getMaxValue(c) {
|
11507
11507
|
const d = this.binders[c];
|
11508
|
-
return d instanceof Ca || d instanceof
|
11508
|
+
return d instanceof Ca || d instanceof xo ? d.maxValue : 0;
|
11509
11509
|
}
|
11510
11510
|
populatePaintArrays(c, d, p, b, S) {
|
11511
11511
|
for (const E in this.binders) {
|
11512
11512
|
const T = this.binders[E];
|
11513
|
-
(T instanceof Ca || T instanceof
|
11513
|
+
(T instanceof Ca || T instanceof xo || T instanceof Ml) && T.populatePaintArray(c, d, p, b, S);
|
11514
11514
|
}
|
11515
11515
|
}
|
11516
11516
|
setConstantPatternPositions(c, d) {
|
@@ -11527,7 +11527,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11527
11527
|
const N = p.feature(R.index);
|
11528
11528
|
for (const F in this.binders) {
|
11529
11529
|
const H = this.binders[F];
|
11530
|
-
if ((H instanceof Ca || H instanceof
|
11530
|
+
if ((H instanceof Ca || H instanceof xo || H instanceof Ml) && H.expression.isStateDependent === !0) {
|
11531
11531
|
const q = b.paint.get(F);
|
11532
11532
|
H.expression = q.value, H.updatePaintArray(R.start, R.end, N, c[T], S), E = !0;
|
11533
11533
|
}
|
@@ -11548,7 +11548,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11548
11548
|
const c = [];
|
11549
11549
|
for (const d in this.binders) {
|
11550
11550
|
const p = this.binders[d];
|
11551
|
-
if (p instanceof Ca || p instanceof
|
11551
|
+
if (p instanceof Ca || p instanceof xo) for (let b = 0; b < p.paintVertexAttributes.length; b++) c.push(p.paintVertexAttributes[b].name);
|
11552
11552
|
else if (p instanceof Ml) for (let b = 0; b < Cl.members.length; b++) c.push(Cl.members[b].name);
|
11553
11553
|
}
|
11554
11554
|
return c;
|
@@ -11557,7 +11557,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11557
11557
|
const c = [];
|
11558
11558
|
for (const d in this.binders) {
|
11559
11559
|
const p = this.binders[d];
|
11560
|
-
if (p instanceof yf || p instanceof ud || p instanceof
|
11560
|
+
if (p instanceof yf || p instanceof ud || p instanceof xo) for (const b of p.uniformNames) c.push(b);
|
11561
11561
|
}
|
11562
11562
|
return c;
|
11563
11563
|
}
|
@@ -11568,7 +11568,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11568
11568
|
const p = [];
|
11569
11569
|
for (const b in this.binders) {
|
11570
11570
|
const S = this.binders[b];
|
11571
|
-
if (S instanceof yf || S instanceof ud || S instanceof
|
11571
|
+
if (S instanceof yf || S instanceof ud || S instanceof xo) {
|
11572
11572
|
for (const E of S.uniformNames) if (d[E]) {
|
11573
11573
|
const T = S.getBinding(c, d[E], E);
|
11574
11574
|
p.push({ name: E, property: b, binding: T });
|
@@ -11587,20 +11587,20 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11587
11587
|
if (c && p instanceof Ml) {
|
11588
11588
|
const b = c.fromScale === 2 ? p.zoomInPaintVertexBuffer : p.zoomOutPaintVertexBuffer;
|
11589
11589
|
b && this._buffers.push(b);
|
11590
|
-
} else (p instanceof Ca || p instanceof
|
11590
|
+
} else (p instanceof Ca || p instanceof xo) && p.paintVertexBuffer && this._buffers.push(p.paintVertexBuffer);
|
11591
11591
|
}
|
11592
11592
|
}
|
11593
11593
|
upload(c) {
|
11594
11594
|
for (const d in this.binders) {
|
11595
11595
|
const p = this.binders[d];
|
11596
|
-
(p instanceof Ca || p instanceof
|
11596
|
+
(p instanceof Ca || p instanceof xo || p instanceof Ml) && p.upload(c);
|
11597
11597
|
}
|
11598
11598
|
this.updatePaintBuffers();
|
11599
11599
|
}
|
11600
11600
|
destroy() {
|
11601
11601
|
for (const c in this.binders) {
|
11602
11602
|
const d = this.binders[c];
|
11603
|
-
(d instanceof Ca || d instanceof
|
11603
|
+
(d instanceof Ca || d instanceof xo || d instanceof Ml) && d.destroy();
|
11604
11604
|
}
|
11605
11605
|
}
|
11606
11606
|
}
|
@@ -11639,7 +11639,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
11639
11639
|
}(u);
|
11640
11640
|
return b && b[d] || p[c][d];
|
11641
11641
|
}
|
11642
|
-
_t("ConstantBinder", yf), _t("CrossFadedConstantBinder", ud), _t("SourceExpressionBinder", Ca), _t("CrossFadedCompositeBinder", Ml), _t("CompositeExpressionBinder",
|
11642
|
+
_t("ConstantBinder", yf), _t("CrossFadedConstantBinder", ud), _t("SourceExpressionBinder", Ca), _t("CrossFadedCompositeBinder", Ml), _t("CompositeExpressionBinder", xo), _t("ProgramConfiguration", Aw, { omit: ["_buffers"] }), _t("ProgramConfigurationSet", zc);
|
11643
11643
|
const Pi = 8192, cv = Math.pow(2, 14) - 1, Dw = -cv - 1;
|
11644
11644
|
function Lc(u) {
|
11645
11645
|
const c = Pi / u.extent, d = u.loadGeometry();
|
@@ -14589,39 +14589,39 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
14589
14589
|
Os = new tg(Mr, Yt, Dr, Ir, ki, Zn.vertical, $i, yr, rr, vr), ir && (Xi = new tg(Mr, Yt, Dr, Ir, ki, ir, sr, Rs, rr, vr));
|
14590
14590
|
}
|
14591
14591
|
if (Bi) {
|
14592
|
-
const vr = Fi.layout.get("icon-rotate").evaluate(ii, {}), zs = Fi.layout.get("icon-text-fit") !== "none", Fc = Zk(Bi, vr, ds, zs),
|
14592
|
+
const vr = Fi.layout.get("icon-rotate").evaluate(ii, {}), zs = Fi.layout.get("icon-text-fit") !== "none", Fc = Zk(Bi, vr, ds, zs), ko = ir ? Zk(ir, vr, ds, zs) : void 0;
|
14593
14593
|
no = new tg(Mr, Yt, Dr, Ir, ki, Bi, sr, Rs, !1, vr), Aa = 4 * Fc.length;
|
14594
14594
|
const $c = Dt.iconSizeData;
|
14595
14595
|
let Go = null;
|
14596
|
-
$c.kind === "source" ? (Go = [Uo * Fi.layout.get("icon-size").evaluate(ii, {})], Go[0] > Pl && Ze(`${Dt.layerIds[0]}: Value for "icon-size" is >= ${Mf}. Reduce your "icon-size".`)) : $c.kind === "composite" && (Go = [Uo * ci.compositeIconSizes[0].evaluate(ii, {}, gi), Uo * ci.compositeIconSizes[1].evaluate(ii, {}, gi)], (Go[0] > Pl || Go[1] > Pl) && Ze(`${Dt.layerIds[0]}: Value for "icon-size" is >= ${Mf}. Reduce your "icon-size".`)), Dt.addSymbols(Dt.icon, Fc, Go, In, Yr, ii, a.ah.none, Yt, Wo.lineStartIndex, Wo.lineLength, -1, gi), Yv = Dt.icon.placedSymbolArray.length - 1,
|
14596
|
+
$c.kind === "source" ? (Go = [Uo * Fi.layout.get("icon-size").evaluate(ii, {})], Go[0] > Pl && Ze(`${Dt.layerIds[0]}: Value for "icon-size" is >= ${Mf}. Reduce your "icon-size".`)) : $c.kind === "composite" && (Go = [Uo * ci.compositeIconSizes[0].evaluate(ii, {}, gi), Uo * ci.compositeIconSizes[1].evaluate(ii, {}, gi)], (Go[0] > Pl || Go[1] > Pl) && Ze(`${Dt.layerIds[0]}: Value for "icon-size" is >= ${Mf}. Reduce your "icon-size".`)), Dt.addSymbols(Dt.icon, Fc, Go, In, Yr, ii, a.ah.none, Yt, Wo.lineStartIndex, Wo.lineLength, -1, gi), Yv = Dt.icon.placedSymbolArray.length - 1, ko && (Of = 4 * ko.length, Dt.addSymbols(Dt.icon, ko, Go, In, Yr, ii, a.ah.vertical, Yt, Wo.lineStartIndex, Wo.lineLength, -1, gi), Zv = Dt.icon.placedSymbolArray.length - 1);
|
14597
14597
|
}
|
14598
14598
|
const aS = Object.keys(Zn.horizontal);
|
14599
14599
|
for (const vr of aS) {
|
14600
14600
|
const zs = Zn.horizontal[vr];
|
14601
14601
|
if (!qo) {
|
14602
14602
|
oS = ad(zs.text);
|
14603
|
-
const
|
14604
|
-
qo = new tg(Mr, Yt, Dr, Ir, ki, zs, $i, yr, rr,
|
14603
|
+
const ko = Fi.layout.get("text-rotate").evaluate(ii, {}, gi);
|
14604
|
+
qo = new tg(Mr, Yt, Dr, Ir, ki, zs, $i, yr, rr, ko);
|
14605
14605
|
}
|
14606
14606
|
const Fc = zs.positionedLines.length === 1;
|
14607
14607
|
if (rS += Qk(Dt, Yt, zs, to, Fi, rr, ii, Pr, Wo, Zn.vertical ? a.ah.horizontal : a.ah.horizontalOnly, Fc ? aS : [vr], Ma, Yv, ci, gi), Fc) break;
|
14608
14608
|
}
|
14609
14609
|
Zn.vertical && (sS += Qk(Dt, Yt, Zn.vertical, to, Fi, rr, ii, Pr, Wo, a.ah.vertical, ["vertical"], Ma, Zv, ci, gi));
|
14610
14610
|
const mz = qo ? qo.boxStartIndex : Dt.collisionBoxArray.length, gz = qo ? qo.boxEndIndex : Dt.collisionBoxArray.length, yz = Os ? Os.boxStartIndex : Dt.collisionBoxArray.length, vz = Os ? Os.boxEndIndex : Dt.collisionBoxArray.length, bz = no ? no.boxStartIndex : Dt.collisionBoxArray.length, _z = no ? no.boxEndIndex : Dt.collisionBoxArray.length, xz = Xi ? Xi.boxStartIndex : Dt.collisionBoxArray.length, wz = Xi ? Xi.boxEndIndex : Dt.collisionBoxArray.length;
|
14611
|
-
let
|
14611
|
+
let wo = -1;
|
14612
14612
|
const ig = (vr, zs) => vr && vr.circleDiameter ? Math.max(vr.circleDiameter, zs) : zs;
|
14613
|
-
|
14614
|
-
const lS =
|
14615
|
-
lS && (
|
14613
|
+
wo = ig(qo, wo), wo = ig(Os, wo), wo = ig(no, wo), wo = ig(Xi, wo);
|
14614
|
+
const lS = wo > -1 ? 1 : 0;
|
14615
|
+
lS && (wo *= xd / Oi), Dt.glyphOffsetArray.length >= vd.MAX_GLYPHS && Ze("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"), ii.sortKey !== void 0 && Dt.addToSortKeyRanges(Dt.symbolInstances.length, ii.sortKey);
|
14616
14616
|
const kz = Jk(Fi, ii, gi), [Sz, Ez] = function(vr, zs) {
|
14617
|
-
const Fc = vr.length,
|
14618
|
-
if ((
|
14619
|
-
const Go =
|
14620
|
-
vr.emplaceBack(a.aq[
|
14617
|
+
const Fc = vr.length, ko = zs == null ? void 0 : zs.values;
|
14618
|
+
if ((ko == null ? void 0 : ko.length) > 0) for (let $c = 0; $c < ko.length; $c += 2) {
|
14619
|
+
const Go = ko[$c + 1];
|
14620
|
+
vr.emplaceBack(a.aq[ko[$c]], Go[0], Go[1]);
|
14621
14621
|
}
|
14622
14622
|
return [Fc, vr.length];
|
14623
14623
|
}(Dt.textAnchorOffsets, kz);
|
14624
|
-
Dt.symbolInstances.emplaceBack(Yt.x, Yt.y, Ma.right >= 0 ? Ma.right : -1, Ma.center >= 0 ? Ma.center : -1, Ma.left >= 0 ? Ma.left : -1, Ma.vertical || -1, Yv, Zv, oS, mz, gz, yz, vz, bz, _z, xz, wz, Dr, rS, sS, Aa, Of, lS, 0, $i,
|
14624
|
+
Dt.symbolInstances.emplaceBack(Yt.x, Yt.y, Ma.right >= 0 ? Ma.right : -1, Ma.center >= 0 ? Ma.center : -1, Ma.left >= 0 ? Ma.left : -1, Ma.vertical || -1, Yv, Zv, oS, mz, gz, yz, vz, bz, _z, xz, wz, Dr, rS, sS, Aa, Of, lS, 0, $i, wo, Sz, Ez);
|
14625
14625
|
}(u, Pt, Ne, d, p, b, kt, u.layers[0], u.collisionBoxArray, c.index, c.sourceLayerIndex, u.index, oe, [Se, Se, Se, Se], mt, D, Te, Re, Vt, q, c, S, R, N, E);
|
14626
14626
|
};
|
14627
14627
|
if (ht === "line") for (const Ne of Hk(c.geometry, 0, 0, Pi, Pi)) {
|
@@ -20779,7 +20779,7 @@ uniform ${V} ${j} u_${Y};
|
|
20779
20779
|
h.bindBuffer(h.ELEMENT_ARRAY_BUFFER, l), this.current = l, this.dirty = !1;
|
20780
20780
|
}
|
20781
20781
|
}
|
20782
|
-
class
|
20782
|
+
class bo extends Bn {
|
20783
20783
|
getDefault() {
|
20784
20784
|
return null;
|
20785
20785
|
}
|
@@ -20881,7 +20881,7 @@ uniform ${V} ${j} u_${Y};
|
|
20881
20881
|
class K0 {
|
20882
20882
|
constructor(l) {
|
20883
20883
|
var h, y;
|
20884
|
-
if (this.gl = l, this.clearColor = new Lu(this), this.clearDepth = new H0(this), this.clearStencil = new al(this), this.colorMask = new U0(this), this.depthMask = new lm(this), this.stencilMask = new W0(this), this.stencilFunc = new cm(this), this.stencilOp = new Lh(this), this.stencilTest = new um(this), this.depthRange = new dm(this), this.depthTest = new hm(this), this.depthFunc = new fm(this), this.blend = new ya(this), this.blendFunc = new pm(this), this.blendColor = new q0(this), this.blendEquation = new mm(this), this.cullFace = new bc(this), this.cullFaceSide = new G0(this), this.frontFace = new Nu(this), this.program = new Y0(this), this.activeTexture = new Z0(this), this.viewport = new gm(this), this.bindFramebuffer = new ym(this), this.bindRenderbuffer = new vm(this), this.bindTexture = new Nh(this), this.bindVertexBuffer = new bm(this), this.bindElementBuffer = new Bu(this), this.bindVertexArray = new
|
20884
|
+
if (this.gl = l, this.clearColor = new Lu(this), this.clearDepth = new H0(this), this.clearStencil = new al(this), this.colorMask = new U0(this), this.depthMask = new lm(this), this.stencilMask = new W0(this), this.stencilFunc = new cm(this), this.stencilOp = new Lh(this), this.stencilTest = new um(this), this.depthRange = new dm(this), this.depthTest = new hm(this), this.depthFunc = new fm(this), this.blend = new ya(this), this.blendFunc = new pm(this), this.blendColor = new q0(this), this.blendEquation = new mm(this), this.cullFace = new bc(this), this.cullFaceSide = new G0(this), this.frontFace = new Nu(this), this.program = new Y0(this), this.activeTexture = new Z0(this), this.viewport = new gm(this), this.bindFramebuffer = new ym(this), this.bindRenderbuffer = new vm(this), this.bindTexture = new Nh(this), this.bindVertexBuffer = new bm(this), this.bindElementBuffer = new Bu(this), this.bindVertexArray = new bo(this), this.pixelStoreUnpack = new Bh(this), this.pixelStoreUnpackPremultiplyAlpha = new Fh(this), this.pixelStoreUnpackFlipY = new $h(this), this.extTextureFilterAnisotropic = l.getExtension("EXT_texture_filter_anisotropic") || l.getExtension("MOZ_EXT_texture_filter_anisotropic") || l.getExtension("WEBKIT_EXT_texture_filter_anisotropic"), this.extTextureFilterAnisotropic && (this.extTextureFilterAnisotropicMax = l.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)), this.maxTextureSize = l.getParameter(l.MAX_TEXTURE_SIZE), Vo(l)) {
|
20885
20885
|
this.HALF_FLOAT = l.HALF_FLOAT;
|
20886
20886
|
const v = l.getExtension("EXT_color_buffer_half_float");
|
20887
20887
|
this.RGBA16F = (h = l.RGBA16F) !== null && h !== void 0 ? h : v == null ? void 0 : v.RGBA16F_EXT, this.RGB16F = (y = l.RGB16F) !== null && y !== void 0 ? y : v == null ? void 0 : v.RGB16F_EXT, l.getExtension("EXT_color_buffer_float");
|
@@ -22448,7 +22448,7 @@ uniform ${V} ${j} u_${Y};
|
|
22448
22448
|
return this._active;
|
22449
22449
|
}
|
22450
22450
|
}
|
22451
|
-
class
|
22451
|
+
class _o {
|
22452
22452
|
constructor(l) {
|
22453
22453
|
this._enabled = !!l.enable, this._moveStateManager = l.moveStateManager, this._clickTolerance = l.clickTolerance || 1, this._moveFunction = l.move, this._activateOnStart = !!l.activateOnStart, l.assignEvents(this), this.reset();
|
22454
22454
|
}
|
@@ -22546,10 +22546,10 @@ uniform ${V} ${j} u_${Y};
|
|
22546
22546
|
};
|
22547
22547
|
}, ef = ({ enable: w, clickTolerance: l, bearingDegreesPerPixelMoved: h = 0.8 }) => {
|
22548
22548
|
const y = new Xu({ checkCorrectEvent: (v) => k.mouseButton(v) === 0 && v.ctrlKey || k.mouseButton(v) === 2 });
|
22549
|
-
return new
|
22549
|
+
return new _o({ clickTolerance: l, move: (v, x) => ({ bearingDelta: (x.x - v.x) * h }), moveStateManager: y, enable: w, assignEvents: Ku });
|
22550
22550
|
}, tf = ({ enable: w, clickTolerance: l, pitchDegreesPerPixelMoved: h = -0.5 }) => {
|
22551
22551
|
const y = new Xu({ checkCorrectEvent: (v) => k.mouseButton(v) === 0 && v.ctrlKey || k.mouseButton(v) === 2 });
|
22552
|
-
return new
|
22552
|
+
return new _o({ clickTolerance: l, move: (v, x) => ({ pitchDelta: (x.y - v.y) * h }), moveStateManager: y, enable: w, assignEvents: Ku });
|
22553
22553
|
};
|
22554
22554
|
class ka {
|
22555
22555
|
constructor(l, h) {
|
@@ -23086,7 +23086,7 @@ uniform ${V} ${j} u_${Y};
|
|
23086
23086
|
h.dragRotate = new Dm(l, V, j), this._add("mouseRotate", V, ["mousePitch"]), this._add("mousePitch", j, ["mouseRotate"]), l.interactive && l.dragRotate && h.dragRotate.enable();
|
23087
23087
|
const Y = (({ enable: me, clickTolerance: re }) => {
|
23088
23088
|
const xe = new Xu({ checkCorrectEvent: (we) => k.mouseButton(we) === 0 && !we.ctrlKey });
|
23089
|
-
return new
|
23089
|
+
return new _o({ clickTolerance: re, move: (we, Ae) => ({ around: Ae, panDelta: Ae.sub(we) }), activateOnStart: !0, moveStateManager: xe, enable: me, assignEvents: Ku });
|
23090
23090
|
})(l), te = new ka(l, h);
|
23091
23091
|
h.dragPan = new Mm(y, Y, te), this._add("mousePan", Y), this._add("touchPan", te, ["touchZoom", "touchRotate"]), l.interactive && l.dragPan && h.dragPan.enable(l.dragPan);
|
23092
23092
|
const ie = new of(), ae = new rf();
|
@@ -23818,10 +23818,10 @@ uniform ${V} ${j} u_${Y};
|
|
23818
23818
|
const v = l.dragRotate._mouseRotate.getClickTolerance(), x = l.dragRotate._mousePitch.getClickTolerance();
|
23819
23819
|
this.element = h, this.mouseRotate = ef({ clickTolerance: v, enable: !0 }), this.touchRotate = (({ enable: A, clickTolerance: I, bearingDegreesPerPixelMoved: P = 0.8 }) => {
|
23820
23820
|
const B = new Qh();
|
23821
|
-
return new
|
23821
|
+
return new _o({ clickTolerance: I, move: (V, j) => ({ bearingDelta: (j.x - V.x) * P }), moveStateManager: B, enable: A, assignEvents: pf });
|
23822
23822
|
})({ clickTolerance: v, enable: !0 }), this.map = l, y && (this.mousePitch = tf({ clickTolerance: x, enable: !0 }), this.touchPitch = (({ enable: A, clickTolerance: I, pitchDegreesPerPixelMoved: P = -0.5 }) => {
|
23823
23823
|
const B = new Qh();
|
23824
|
-
return new
|
23824
|
+
return new _o({ clickTolerance: I, move: (V, j) => ({ pitchDelta: (j.y - V.y) * P }), moveStateManager: B, enable: A, assignEvents: pf });
|
23825
23825
|
})({ clickTolerance: x, enable: !0 })), k.addEventListener(h, "mousedown", this.mousedown), k.addEventListener(h, "touchstart", this.touchstart, { passive: !1 }), k.addEventListener(h, "touchcancel", this.reset);
|
23826
23826
|
}
|
23827
23827
|
startMouse(l, h) {
|
@@ -34968,7 +34968,7 @@ function bH(t, e, n) {
|
|
34968
34968
|
}
|
34969
34969
|
const sa = typeof navigator < "u" ? navigator : null, UE = typeof document < "u" ? document : null, uc = sa && sa.userAgent || "", q_ = /Edge\/(\d+)/.exec(uc), rD = /MSIE \d/.exec(uc), G_ = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(uc), _s = !!(rD || G_ || q_), ec = rD ? document.documentMode : G_ ? +G_[1] : q_ ? +q_[1] : 0, Oo = !_s && /gecko\/(\d+)/i.test(uc);
|
34970
34970
|
Oo && +(/Firefox\/(\d+)/.exec(uc) || [0, 0])[1];
|
34971
|
-
const Y_ = !_s && /Chrome\/(\d+)/.exec(uc), Lr = !!Y_, sD = Y_ ? +Y_[1] : 0, Kr = !_s && !!sa && /Apple Computer/.test(sa.vendor), rh = Kr && (/Mobile\/\w+/.test(uc) || !!sa && sa.maxTouchPoints > 2), lo = rh || (sa ? /Mac/.test(sa.platform) : !1), _H = sa ? /Win/.test(sa.platform) : !1,
|
34971
|
+
const Y_ = !_s && /Chrome\/(\d+)/.exec(uc), Lr = !!Y_, sD = Y_ ? +Y_[1] : 0, Kr = !_s && !!sa && /Apple Computer/.test(sa.vendor), rh = Kr && (/Mobile\/\w+/.test(uc) || !!sa && sa.maxTouchPoints > 2), lo = rh || (sa ? /Mac/.test(sa.platform) : !1), _H = sa ? /Win/.test(sa.platform) : !1, So = /Android \d/.test(uc), Gp = !!UE && "webkitFontSmoothing" in UE.documentElement.style, xH = Gp ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
34972
34972
|
function wH(t) {
|
34973
34973
|
let e = t.defaultView && t.defaultView.visualViewport;
|
34974
34974
|
return e ? {
|
@@ -35300,10 +35300,10 @@ let GE = null, YE = null, ZE = !1;
|
|
35300
35300
|
function LH(t, e, n) {
|
35301
35301
|
return GE == e && YE == n ? ZE : (GE = e, YE = n, ZE = n == "up" || n == "down" ? RH(t, e, n) : zH(t, e, n));
|
35302
35302
|
}
|
35303
|
-
const
|
35303
|
+
const ho = 0, XE = 1, iu = 2, oa = 3;
|
35304
35304
|
class Yp {
|
35305
35305
|
constructor(e, n, i, r) {
|
35306
|
-
this.parent = e, this.children = n, this.dom = i, this.contentDOM = r, this.dirty =
|
35306
|
+
this.parent = e, this.children = n, this.dom = i, this.contentDOM = r, this.dirty = ho, i.pmViewDesc = this;
|
35307
35307
|
}
|
35308
35308
|
// Used to check whether a given description corresponds to a
|
35309
35309
|
// widget/mark/node.
|
@@ -35654,7 +35654,7 @@ class hD extends Yp {
|
|
35654
35654
|
super(e, [], a, null), this.widget = n, this.widget = n, s = this;
|
35655
35655
|
}
|
35656
35656
|
matchesWidget(e) {
|
35657
|
-
return this.dirty ==
|
35657
|
+
return this.dirty == ho && e.type.eq(this.widget.type);
|
35658
35658
|
}
|
35659
35659
|
parseRule() {
|
35660
35660
|
return { ignore: !0 };
|
@@ -35708,11 +35708,11 @@ class _u extends Yp {
|
|
35708
35708
|
return this.dirty != oa && this.mark.eq(e);
|
35709
35709
|
}
|
35710
35710
|
markDirty(e, n) {
|
35711
|
-
if (super.markDirty(e, n), this.dirty !=
|
35711
|
+
if (super.markDirty(e, n), this.dirty != ho) {
|
35712
35712
|
let i = this.parent;
|
35713
35713
|
for (; !i.node; )
|
35714
35714
|
i = i.parent;
|
35715
|
-
i.dirty < this.dirty && (i.dirty = this.dirty), this.dirty =
|
35715
|
+
i.dirty < this.dirty && (i.dirty = this.dirty), this.dirty = ho;
|
35716
35716
|
}
|
35717
35717
|
}
|
35718
35718
|
slice(e, n, i) {
|
@@ -35780,7 +35780,7 @@ class tc extends Yp {
|
|
35780
35780
|
return e;
|
35781
35781
|
}
|
35782
35782
|
matchesNode(e, n, i) {
|
35783
|
-
return this.dirty ==
|
35783
|
+
return this.dirty == ho && e.eq(this.node) && yy(n, this.outerDeco) && i.eq(this.innerDeco);
|
35784
35784
|
}
|
35785
35785
|
get size() {
|
35786
35786
|
return this.node.nodeSize;
|
@@ -35835,7 +35835,7 @@ class tc extends Yp {
|
|
35835
35835
|
return this.dirty == oa || !e.sameMarkup(this.node) ? !1 : (this.updateInner(e, n, i, r), !0);
|
35836
35836
|
}
|
35837
35837
|
updateInner(e, n, i, r) {
|
35838
|
-
this.updateOuterDeco(n), this.node = e, this.innerDeco = i, this.contentDOM && this.updateChildren(r, this.posAtStart), this.dirty =
|
35838
|
+
this.updateOuterDeco(n), this.node = e, this.innerDeco = i, this.contentDOM && this.updateChildren(r, this.posAtStart), this.dirty = ho;
|
35839
35839
|
}
|
35840
35840
|
updateOuterDeco(e) {
|
35841
35841
|
if (yy(e, this.outerDeco))
|
@@ -35871,7 +35871,7 @@ class g0 extends tc {
|
|
35871
35871
|
return { skip: e || !0 };
|
35872
35872
|
}
|
35873
35873
|
update(e, n, i, r) {
|
35874
|
-
return this.dirty == oa || this.dirty !=
|
35874
|
+
return this.dirty == oa || this.dirty != ho && !this.inParent() || !e.sameMarkup(this.node) ? !1 : (this.updateOuterDeco(n), (this.dirty != ho || e.text != this.node.text) && e.text != this.nodeDOM.nodeValue && (this.nodeDOM.nodeValue = e.text, r.trackWrites == this.nodeDOM && (r.trackWrites = null)), this.node = e, this.dirty = ho, !0);
|
35875
35875
|
}
|
35876
35876
|
inParent() {
|
35877
35877
|
let e = this.parent.contentDOM;
|
@@ -35908,7 +35908,7 @@ class fD extends Yp {
|
|
35908
35908
|
return { ignore: !0 };
|
35909
35909
|
}
|
35910
35910
|
matchesHack(e) {
|
35911
|
-
return this.dirty ==
|
35911
|
+
return this.dirty == ho && this.dom.nodeName == e;
|
35912
35912
|
}
|
35913
35913
|
get domAtom() {
|
35914
35914
|
return !0;
|
@@ -36066,7 +36066,7 @@ class $H {
|
|
36066
36066
|
for (; r < a && (r == s - 1 ? this.top : this.stack[r + 1 << 1]).matchesMark(e[r]) && e[r].type.spec.spanning !== !1; )
|
36067
36067
|
r++;
|
36068
36068
|
for (; r < s; )
|
36069
|
-
this.destroyRest(), this.top.dirty =
|
36069
|
+
this.destroyRest(), this.top.dirty = ho, this.index = this.stack.pop(), this.top = this.stack.pop(), s--;
|
36070
36070
|
for (; s < e.length; ) {
|
36071
36071
|
this.stack.push(this.top, this.index + 1);
|
36072
36072
|
let o = -1;
|
@@ -36136,7 +36136,7 @@ class $H {
|
|
36136
36136
|
if (!k && f.update(e, n, i, r))
|
36137
36137
|
return this.destroyBetween(this.index, o), f.dom != g && (this.changed = !0), this.index++, !0;
|
36138
36138
|
if (!k && (_ = this.recreateWrapper(f, e, n, i, r, a)))
|
36139
|
-
return this.destroyBetween(this.index, o), this.top.children[this.index] = _, _.contentDOM && (_.dirty = iu, _.updateChildren(r, a + 1), _.dirty =
|
36139
|
+
return this.destroyBetween(this.index, o), this.top.children[this.index] = _, _.contentDOM && (_.dirty = iu, _.updateChildren(r, a + 1), _.dirty = ho), this.changed = !0, this.index++, !0;
|
36140
36140
|
break;
|
36141
36141
|
}
|
36142
36142
|
}
|
@@ -36924,7 +36924,7 @@ function f8(t, e) {
|
|
36924
36924
|
}
|
36925
36925
|
Qr.keydown = (t, e) => {
|
36926
36926
|
let n = e;
|
36927
|
-
if (t.input.shiftKey = n.keyCode == 16 || n.shiftKey, !MD(t, n) && (t.input.lastKeyCode = n.keyCode, t.input.lastKeyCodeTime = Date.now(), !(
|
36927
|
+
if (t.input.shiftKey = n.keyCode == 16 || n.shiftKey, !MD(t, n) && (t.input.lastKeyCode = n.keyCode, t.input.lastKeyCodeTime = Date.now(), !(So && Lr && n.keyCode == 13)))
|
36928
36928
|
if (n.keyCode != 229 && t.domObserver.forceFlush(), rh && n.keyCode == 13 && !n.ctrlKey && !n.altKey && !n.metaKey) {
|
36929
36929
|
let i = Date.now();
|
36930
36930
|
t.input.lastIOSEnter = i, t.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
|
@@ -37087,7 +37087,7 @@ Jr.contextmenu = (t) => _1(t);
|
|
37087
37087
|
function MD(t, e) {
|
37088
37088
|
return t.composing ? !0 : Kr && Math.abs(e.timeStamp - t.input.compositionEndedAt) < 500 ? (t.input.compositionEndedAt = -2e8, !0) : !1;
|
37089
37089
|
}
|
37090
|
-
const w8 =
|
37090
|
+
const w8 = So ? 5e3 : -1;
|
37091
37091
|
Qr.compositionstart = Qr.compositionupdate = (t) => {
|
37092
37092
|
if (!t.composing) {
|
37093
37093
|
t.domObserver.flush();
|
@@ -37146,7 +37146,7 @@ function S8() {
|
|
37146
37146
|
return t.initEvent("event", !0, !0), t.timeStamp;
|
37147
37147
|
}
|
37148
37148
|
function by(t, e = !1) {
|
37149
|
-
if (!(
|
37149
|
+
if (!(So && t.domObserver.flushingSoon >= 0)) {
|
37150
37150
|
if (t.domObserver.forceFlush(), ID(t), e || t.docView && t.docView.dirty) {
|
37151
37151
|
let n = g1(t);
|
37152
37152
|
return n && !n.eq(t.state.selection) ? t.dispatch(t.state.tr.setSelection(n)) : (t.markCursor || e) && !t.state.selection.empty ? t.dispatch(t.state.tr.deleteSelection()) : t.updateState(t.state), !0;
|
@@ -37203,7 +37203,7 @@ function PD(t) {
|
|
37203
37203
|
}
|
37204
37204
|
Qr.paste = (t, e) => {
|
37205
37205
|
let n = e;
|
37206
|
-
if (t.composing && !
|
37206
|
+
if (t.composing && !So)
|
37207
37207
|
return;
|
37208
37208
|
let i = Sp ? null : n.clipboardData, r = t.input.shiftKey && t.input.lastKeyCode != 45;
|
37209
37209
|
i && Ep(t, PD(i), i.getData("text/html"), r, n) ? n.preventDefault() : T8(t, n);
|
@@ -37285,7 +37285,7 @@ Jr.blur = (t, e) => {
|
|
37285
37285
|
t.focused && (t.domObserver.stop(), t.dom.classList.remove("ProseMirror-focused"), t.domObserver.start(), n.relatedTarget && t.dom.contains(n.relatedTarget) && t.domObserver.currentSelection.clear(), t.focused = !1);
|
37286
37286
|
};
|
37287
37287
|
Jr.beforeinput = (t, e) => {
|
37288
|
-
if (Lr &&
|
37288
|
+
if (Lr && So && e.inputType == "deleteContentBackward") {
|
37289
37289
|
t.domObserver.flushSoon();
|
37290
37290
|
let { domChangeCount: i } = t.input;
|
37291
37291
|
setTimeout(() => {
|
@@ -38051,7 +38051,7 @@ function $8(t, e, n, i, r) {
|
|
38051
38051
|
if (t.input.compositionPendingChanges = 0, e < 0) {
|
38052
38052
|
let ke = t.input.lastSelectionTime > Date.now() - 50 ? t.input.lastSelectionOrigin : null, Be = g1(t, ke);
|
38053
38053
|
if (Be && !t.state.selection.eq(Be)) {
|
38054
|
-
if (Lr &&
|
38054
|
+
if (Lr && So && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (We) => We(t, Zc(13, "Enter"))))
|
38055
38055
|
return;
|
38056
38056
|
let Ge = t.state.tr.setSelection(Be);
|
38057
38057
|
ke == "pointer" ? Ge.setMeta("pointer", !0) : ke == "key" && Ge.scrollIntoView(), s && Ge.setMeta("composition", s), t.dispatch(Ge);
|
@@ -38063,7 +38063,7 @@ function $8(t, e, n, i, r) {
|
|
38063
38063
|
let f = t.state.selection, m = N8(t, e, n), g = t.state.doc, _ = g.slice(m.from, m.to), k, C;
|
38064
38064
|
t.input.lastKeyCode === 8 && Date.now() - 100 < t.input.lastKeyCodeTime ? (k = t.state.selection.to, C = "end") : (k = t.state.selection.from, C = "start"), t.input.lastKeyCode = null;
|
38065
38065
|
let M = H8(_.content, m.doc.content, m.from, k, C);
|
38066
|
-
if (M && t.input.domChangeCount++, (rh && t.input.lastIOSEnter > Date.now() - 225 ||
|
38066
|
+
if (M && t.input.domChangeCount++, (rh && t.input.lastIOSEnter > Date.now() - 225 || So) && r.some((ke) => ke.nodeType == 1 && !F8.test(ke.nodeName)) && (!M || M.endA >= M.endB) && t.someProp("handleKeyDown", (ke) => ke(t, Zc(13, "Enter")))) {
|
38067
38067
|
t.input.lastIOSEnter = 0;
|
38068
38068
|
return;
|
38069
38069
|
}
|
@@ -38087,10 +38087,10 @@ function $8(t, e, n, i, r) {
|
|
38087
38087
|
return;
|
38088
38088
|
}
|
38089
38089
|
if (t.state.selection.anchor > M.start && j8(g, M.start, M.endA, O, z) && t.someProp("handleKeyDown", (ke) => ke(t, Zc(8, "Backspace")))) {
|
38090
|
-
|
38090
|
+
So && Lr && t.domObserver.suppressSelectionUpdates();
|
38091
38091
|
return;
|
38092
38092
|
}
|
38093
|
-
Lr &&
|
38093
|
+
Lr && So && M.endB == M.start && (t.input.lastAndroidDelete = Date.now()), So && !G && O.start() != z.start() && z.parentOffset == 0 && O.depth == z.depth && m.sel && m.sel.anchor == m.sel.head && m.sel.head == M.endA && (M.endB -= 2, z = m.doc.resolveNoCache(M.endB - m.from), setTimeout(() => {
|
38094
38094
|
t.someProp("handleKeyDown", function(ke) {
|
38095
38095
|
return ke(t, Zc(13, "Enter"));
|
38096
38096
|
});
|
@@ -38113,7 +38113,7 @@ function $8(t, e, n, i, r) {
|
|
38113
38113
|
}
|
38114
38114
|
if (be || (be = t.state.tr.replace(Z, ge, m.doc.slice(M.start - m.from, M.endB - m.from))), m.sel) {
|
38115
38115
|
let ke = mC(t, be.doc, m.sel);
|
38116
|
-
ke && !(Lr &&
|
38116
|
+
ke && !(Lr && So && t.composing && ke.empty && (M.start != M.endB || t.input.lastAndroidDelete < Date.now() - 100) && (ke.head == Z || ke.head == be.mapping.map(ge) - 1) || _s && ke.empty && ke.head == Z) && be.setSelection(ke);
|
38117
38117
|
}
|
38118
38118
|
Ce && be.ensureMarks(Ce), s && be.setMeta("composition", s), t.dispatch(be.scrollIntoView());
|
38119
38119
|
}
|
@@ -41713,7 +41713,7 @@ function Ap(t) {
|
|
41713
41713
|
}
|
41714
41714
|
});
|
41715
41715
|
}
|
41716
|
-
let
|
41716
|
+
let vo = class sx {
|
41717
41717
|
constructor(e = {}) {
|
41718
41718
|
this.type = "node", this.name = "node", this.parent = null, this.child = null, this.config = {
|
41719
41719
|
name: this.name,
|
@@ -41769,7 +41769,7 @@ function ah(t) {
|
|
41769
41769
|
function fq(t) {
|
41770
41770
|
return t.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&");
|
41771
41771
|
}
|
41772
|
-
var xs = "top",
|
41772
|
+
var xs = "top", po = "bottom", mo = "right", ws = "left", R1 = "auto", Zp = [xs, po, mo, ws], lh = "start", Mp = "end", pq = "clippingParents", nI = "viewport", Hf = "popper", mq = "reference", DC = /* @__PURE__ */ Zp.reduce(function(t, e) {
|
41773
41773
|
return t.concat([e + "-" + lh, e + "-" + Mp]);
|
41774
41774
|
}, []), iI = /* @__PURE__ */ [].concat(Zp, [R1]).reduce(function(t, e) {
|
41775
41775
|
return t.concat([e, e + "-" + lh, e + "-" + Mp]);
|
@@ -41790,7 +41790,7 @@ function xu(t) {
|
|
41790
41790
|
var e = Us(t).Element;
|
41791
41791
|
return t instanceof e || t instanceof Element;
|
41792
41792
|
}
|
41793
|
-
function
|
41793
|
+
function fo(t) {
|
41794
41794
|
var e = Us(t).HTMLElement;
|
41795
41795
|
return t instanceof e || t instanceof HTMLElement;
|
41796
41796
|
}
|
@@ -41804,7 +41804,7 @@ function Cq(t) {
|
|
41804
41804
|
var e = t.state;
|
41805
41805
|
Object.keys(e.elements).forEach(function(n) {
|
41806
41806
|
var i = e.styles[n] || {}, r = e.attributes[n] || {}, s = e.elements[n];
|
41807
|
-
!
|
41807
|
+
!fo(s) || !la(s) || (Object.assign(s.style, i), Object.keys(r).forEach(function(a) {
|
41808
41808
|
var o = r[a];
|
41809
41809
|
o === !1 ? s.removeAttribute(a) : s.setAttribute(a, o === !0 ? "" : o);
|
41810
41810
|
}));
|
@@ -41828,7 +41828,7 @@ function Tq(t) {
|
|
41828
41828
|
var r = e.elements[i], s = e.attributes[i] || {}, a = Object.keys(e.styles.hasOwnProperty(i) ? e.styles[i] : n[i]), o = a.reduce(function(f, m) {
|
41829
41829
|
return f[m] = "", f;
|
41830
41830
|
}, {});
|
41831
|
-
!
|
41831
|
+
!fo(r) || !la(r) || (Object.assign(r.style, o), Object.keys(s).forEach(function(f) {
|
41832
41832
|
r.removeAttribute(f);
|
41833
41833
|
}));
|
41834
41834
|
});
|
@@ -41858,7 +41858,7 @@ function sI() {
|
|
41858
41858
|
function uh(t, e, n) {
|
41859
41859
|
e === void 0 && (e = !1), n === void 0 && (n = !1);
|
41860
41860
|
var i = t.getBoundingClientRect(), r = 1, s = 1;
|
41861
|
-
e &&
|
41861
|
+
e && fo(t) && (r = t.offsetWidth > 0 && ch(i.width) / t.offsetWidth || 1, s = t.offsetHeight > 0 && ch(i.height) / t.offsetHeight || 1);
|
41862
41862
|
var a = xu(t) ? Us(t) : window, o = a.visualViewport, f = !sI() && n, m = (i.left + (f && o ? o.offsetLeft : 0)) / r, g = (i.top + (f && o ? o.offsetTop : 0)) / s, _ = i.width / r, k = i.height / s;
|
41863
41863
|
return {
|
41864
41864
|
width: _,
|
@@ -41919,18 +41919,18 @@ function S0(t) {
|
|
41919
41919
|
);
|
41920
41920
|
}
|
41921
41921
|
function IC(t) {
|
41922
|
-
return !
|
41922
|
+
return !fo(t) || // https://github.com/popperjs/popper-core/issues/837
|
41923
41923
|
Xa(t).position === "fixed" ? null : t.offsetParent;
|
41924
41924
|
}
|
41925
41925
|
function Mq(t) {
|
41926
41926
|
var e = /firefox/i.test(ox()), n = /Trident/i.test(ox());
|
41927
|
-
if (n &&
|
41927
|
+
if (n && fo(t)) {
|
41928
41928
|
var i = Xa(t);
|
41929
41929
|
if (i.position === "fixed")
|
41930
41930
|
return null;
|
41931
41931
|
}
|
41932
41932
|
var r = S0(t);
|
41933
|
-
for (O1(r) && (r = r.host);
|
41933
|
+
for (O1(r) && (r = r.host); fo(r) && ["html", "body"].indexOf(la(r)) < 0; ) {
|
41934
41934
|
var s = Xa(r);
|
41935
41935
|
if (s.transform !== "none" || s.perspective !== "none" || s.contain === "paint" || ["transform", "perspective"].indexOf(s.willChange) !== -1 || e && s.willChange === "filter" || e && s.filter && s.filter !== "none")
|
41936
41936
|
return r;
|
@@ -41975,9 +41975,9 @@ var Iq = function(e, n) {
|
|
41975
41975
|
})) : e, lI(typeof e != "number" ? e : cI(e, Zp));
|
41976
41976
|
};
|
41977
41977
|
function Pq(t) {
|
41978
|
-
var e, n = t.state, i = t.name, r = t.options, s = n.elements.arrow, a = n.modifiersData.popperOffsets, o = na(n.placement), f = L1(o), m = [ws,
|
41978
|
+
var e, n = t.state, i = t.name, r = t.options, s = n.elements.arrow, a = n.modifiersData.popperOffsets, o = na(n.placement), f = L1(o), m = [ws, mo].indexOf(o) >= 0, g = m ? "height" : "width";
|
41979
41979
|
if (!(!s || !a)) {
|
41980
|
-
var _ = Iq(r.padding, n), k = z1(s), C = f === "y" ? xs : ws, M = f === "y" ?
|
41980
|
+
var _ = Iq(r.padding, n), k = z1(s), C = f === "y" ? xs : ws, M = f === "y" ? po : mo, O = n.rects.reference[g] + n.rects.reference[f] - a[f] - n.rects.popper[g], z = a[f] - n.rects.reference[f], $ = Xp(s), G = $ ? f === "y" ? $.clientHeight || 0 : $.clientWidth || 0 : 0, K = O / 2 - z / 2, Z = _[C], ge = G - k[g] - _[M], be = G / 2 - k[g] / 2 + K, Ce = ap(Z, be, ge), $e = f;
|
41981
41981
|
n.modifiersData[i] = (e = {}, e[$e] = Ce, e.centerOffset = Ce - be, e);
|
41982
41982
|
}
|
41983
41983
|
}
|
@@ -42022,16 +42022,16 @@ function PC(t) {
|
|
42022
42022
|
var $ = a.hasOwnProperty("x"), G = a.hasOwnProperty("y"), K = ws, Z = xs, ge = window;
|
42023
42023
|
if (m) {
|
42024
42024
|
var be = Xp(n), Ce = "clientHeight", $e = "clientWidth";
|
42025
|
-
if (be === Us(n) && (be = hc(n), Xa(be).position !== "static" && o === "absolute" && (Ce = "scrollHeight", $e = "scrollWidth")), be = be, r === xs || (r === ws || r ===
|
42026
|
-
Z =
|
42025
|
+
if (be === Us(n) && (be = hc(n), Xa(be).position !== "static" && o === "absolute" && (Ce = "scrollHeight", $e = "scrollWidth")), be = be, r === xs || (r === ws || r === mo) && s === Mp) {
|
42026
|
+
Z = po;
|
42027
42027
|
var ke = _ && be === ge && ge.visualViewport ? ge.visualViewport.height : (
|
42028
42028
|
// $FlowFixMe[prop-missing]
|
42029
42029
|
be[Ce]
|
42030
42030
|
);
|
42031
42031
|
O -= ke - i.height, O *= f ? 1 : -1;
|
42032
42032
|
}
|
42033
|
-
if (r === ws || (r === xs || r ===
|
42034
|
-
K =
|
42033
|
+
if (r === ws || (r === xs || r === po) && s === Mp) {
|
42034
|
+
K = mo;
|
42035
42035
|
var Be = _ && be === ge && ge.visualViewport ? ge.visualViewport.width : (
|
42036
42036
|
// $FlowFixMe[prop-missing]
|
42037
42037
|
be[$e]
|
@@ -42164,7 +42164,7 @@ function F1(t) {
|
|
42164
42164
|
return /auto|scroll|overlay|hidden/.test(n + r + i);
|
42165
42165
|
}
|
42166
42166
|
function uI(t) {
|
42167
|
-
return ["html", "body", "#document"].indexOf(la(t)) >= 0 ? t.ownerDocument.body :
|
42167
|
+
return ["html", "body", "#document"].indexOf(la(t)) >= 0 ? t.ownerDocument.body : fo(t) && F1(t) ? t : uI(S0(t));
|
42168
42168
|
}
|
42169
42169
|
function lp(t, e) {
|
42170
42170
|
var n;
|
@@ -42191,7 +42191,7 @@ function OC(t, e, n) {
|
|
42191
42191
|
return e === nI ? ax(Hq(t, n)) : xu(e) ? Wq(e, n) : ax(Uq(hc(t)));
|
42192
42192
|
}
|
42193
42193
|
function qq(t) {
|
42194
|
-
var e = lp(S0(t)), n = ["absolute", "fixed"].indexOf(Xa(t).position) >= 0, i = n &&
|
42194
|
+
var e = lp(S0(t)), n = ["absolute", "fixed"].indexOf(Xa(t).position) >= 0, i = n && fo(t) ? Xp(t) : t;
|
42195
42195
|
return xu(i) ? e.filter(function(r) {
|
42196
42196
|
return xu(r) && oI(r, i) && la(r) !== "body";
|
42197
42197
|
}) : [];
|
@@ -42212,13 +42212,13 @@ function dI(t) {
|
|
42212
42212
|
y: e.y - n.height
|
42213
42213
|
};
|
42214
42214
|
break;
|
42215
|
-
case
|
42215
|
+
case po:
|
42216
42216
|
f = {
|
42217
42217
|
x: a,
|
42218
42218
|
y: e.y + e.height
|
42219
42219
|
};
|
42220
42220
|
break;
|
42221
|
-
case
|
42221
|
+
case mo:
|
42222
42222
|
f = {
|
42223
42223
|
x: e.x + e.width,
|
42224
42224
|
y: o
|
@@ -42266,7 +42266,7 @@ function Dp(t, e) {
|
|
42266
42266
|
if (k === Hf && Ge) {
|
42267
42267
|
var We = Ge[r];
|
42268
42268
|
Object.keys(Be).forEach(function(Ze) {
|
42269
|
-
var pe = [
|
42269
|
+
var pe = [mo, po].indexOf(Ze) >= 0 ? 1 : -1, bt = [xs, po].indexOf(Ze) >= 0 ? "y" : "x";
|
42270
42270
|
Be[Ze] += We[bt] * pe;
|
42271
42271
|
});
|
42272
42272
|
}
|
@@ -42311,13 +42311,13 @@ function Xq(t) {
|
|
42311
42311
|
allowedAutoPlacements: O
|
42312
42312
|
}) : An);
|
42313
42313
|
}, []), ge = e.rects.reference, be = e.rects.popper, Ce = /* @__PURE__ */ new Map(), $e = !0, ke = Z[0], Be = 0; Be < Z.length; Be++) {
|
42314
|
-
var Ge = Z[Be], We = na(Ge), Ze = dh(Ge) === lh, pe = [xs,
|
42314
|
+
var Ge = Z[Be], We = na(Ge), Ze = dh(Ge) === lh, pe = [xs, po].indexOf(We) >= 0, bt = pe ? "width" : "height", Bt = Dp(e, {
|
42315
42315
|
placement: Ge,
|
42316
42316
|
boundary: g,
|
42317
42317
|
rootBoundary: _,
|
42318
42318
|
altBoundary: k,
|
42319
42319
|
padding: m
|
42320
|
-
}), Ft = pe ? Ze ?
|
42320
|
+
}), Ft = pe ? Ze ? mo : ws : Ze ? po : xs;
|
42321
42321
|
ge[bt] > be[bt] && (Ft = qg(Ft));
|
42322
42322
|
var Ut = qg(Ft), un = [];
|
42323
42323
|
if (s && un.push(Bt[We] <= 0), o && un.push(Bt[Ft] <= 0, Bt[Ut] <= 0), un.every(function(Ln) {
|
@@ -42368,7 +42368,7 @@ function zC(t, e, n) {
|
|
42368
42368
|
};
|
42369
42369
|
}
|
42370
42370
|
function LC(t) {
|
42371
|
-
return [xs,
|
42371
|
+
return [xs, mo, po, ws].some(function(e) {
|
42372
42372
|
return t[e] >= 0;
|
42373
42373
|
});
|
42374
42374
|
}
|
@@ -42399,7 +42399,7 @@ function e7(t, e, n) {
|
|
42399
42399
|
var i = na(t), r = [ws, xs].indexOf(i) >= 0 ? -1 : 1, s = typeof n == "function" ? n(Object.assign({}, e, {
|
42400
42400
|
placement: t
|
42401
42401
|
})) : n, a = s[0], o = s[1];
|
42402
|
-
return a = a || 0, o = (o || 0) * r, [ws,
|
42402
|
+
return a = a || 0, o = (o || 0) * r, [ws, mo].indexOf(i) >= 0 ? {
|
42403
42403
|
x: o,
|
42404
42404
|
y: a
|
42405
42405
|
} : {
|
@@ -42459,14 +42459,14 @@ function o7(t) {
|
|
42459
42459
|
};
|
42460
42460
|
if (be) {
|
42461
42461
|
if (s) {
|
42462
|
-
var Ze, pe = Z === "y" ? xs : ws, bt = Z === "y" ?
|
42462
|
+
var Ze, pe = Z === "y" ? xs : ws, bt = Z === "y" ? po : mo, Bt = Z === "y" ? "height" : "width", Ft = be[Z], Ut = Ft + z[pe], un = Ft - z[bt], rn = C ? -$e[Bt] / 2 : 0, bn = G === lh ? Ce[Bt] : $e[Bt], pn = G === lh ? -$e[Bt] : -Ce[Bt], ti = e.elements.arrow, Ln = C && ti ? z1(ti) : {
|
42463
42463
|
width: 0,
|
42464
42464
|
height: 0
|
42465
42465
|
}, An = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : aI(), Nn = An[pe], Pe = An[bt], Qe = ap(0, Ce[Bt], Ln[Bt]), st = K ? Ce[Bt] / 2 - rn - Qe - Nn - Be.mainAxis : bn - Qe - Nn - Be.mainAxis, wt = K ? -Ce[Bt] / 2 + rn + Qe + Pe + Be.mainAxis : pn + Qe + Pe + Be.mainAxis, sn = e.elements.arrow && Xp(e.elements.arrow), En = sn ? Z === "y" ? sn.clientTop || 0 : sn.clientLeft || 0 : 0, Zt = (Ze = Ge == null ? void 0 : Ge[Z]) != null ? Ze : 0, qt = Ft + st - Zt - En, Mn = Ft + wt - Zt, De = ap(C ? Ey(Ut, qt) : Ut, Ft, C ? du(un, Mn) : un);
|
42466
42466
|
be[Z] = De, We[Z] = De - Ft;
|
42467
42467
|
}
|
42468
42468
|
if (o) {
|
42469
|
-
var qn, Gs = Z === "x" ? xs : ws, _n = Z === "x" ?
|
42469
|
+
var qn, Gs = Z === "x" ? xs : ws, _n = Z === "x" ? po : mo, Rn = be[ge], kr = ge === "y" ? "height" : "width", Sr = Rn + z[Gs], Wi = Rn - z[_n], es = [xs, ws].indexOf($) !== -1, qi = (qn = Ge == null ? void 0 : Ge[ge]) != null ? qn : 0, Ys = es ? Sr : Rn - Ce[kr] - $e[kr] - qi + Be.altAxis, Zs = es ? Rn + Ce[kr] + $e[kr] - qi - Be.altAxis : Wi, Xe = C && es ? Dq(Ys, Rn, Zs) : ap(C ? Ys : Sr, Rn, C ? Zs : Wi);
|
42470
42470
|
be[ge] = Xe, We[ge] = Xe - Rn;
|
42471
42471
|
}
|
42472
42472
|
e.modifiersData[i] = We;
|
@@ -42486,7 +42486,7 @@ function l7(t) {
|
|
42486
42486
|
};
|
42487
42487
|
}
|
42488
42488
|
function c7(t) {
|
42489
|
-
return t === Us(t) || !
|
42489
|
+
return t === Us(t) || !fo(t) ? N1(t) : l7(t);
|
42490
42490
|
}
|
42491
42491
|
function u7(t) {
|
42492
42492
|
var e = t.getBoundingClientRect(), n = ch(e.width) / t.offsetWidth || 1, i = ch(e.height) / t.offsetHeight || 1;
|
@@ -42494,7 +42494,7 @@ function u7(t) {
|
|
42494
42494
|
}
|
42495
42495
|
function d7(t, e, n) {
|
42496
42496
|
n === void 0 && (n = !1);
|
42497
|
-
var i =
|
42497
|
+
var i = fo(e), r = fo(e) && u7(e), s = hc(e), a = uh(t, r, n), o = {
|
42498
42498
|
scrollLeft: 0,
|
42499
42499
|
scrollTop: 0
|
42500
42500
|
}, f = {
|
@@ -42502,7 +42502,7 @@ function d7(t, e, n) {
|
|
42502
42502
|
y: 0
|
42503
42503
|
};
|
42504
42504
|
return (i || !i && !n) && ((la(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
42505
|
-
F1(s)) && (o = c7(e)),
|
42505
|
+
F1(s)) && (o = c7(e)), fo(e) ? (f = uh(e, !0), f.x += e.clientLeft, f.y += e.clientTop) : s && (f.x = B1(s))), {
|
42506
42506
|
x: a.left + o.scrollLeft - f.x,
|
42507
42507
|
y: a.top + o.scrollTop - f.y,
|
42508
42508
|
width: a.width,
|
@@ -43792,7 +43792,7 @@ const X7 = Ws({
|
|
43792
43792
|
i && i.options.element && e.value && Mx(() => {
|
43793
43793
|
if (!e.value || !i.options.element.firstChild)
|
43794
43794
|
return;
|
43795
|
-
const r =
|
43795
|
+
const r = Co(e.value);
|
43796
43796
|
e.value.append(...i.options.element.childNodes), i.contentComponent = n.ctx._, n && (i.appContext = {
|
43797
43797
|
...n.appContext,
|
43798
43798
|
// Vue internally uses prototype chain to forward/shadow injects across the entire component chain
|
@@ -43898,7 +43898,7 @@ Ws({
|
|
43898
43898
|
}, (e = (t = this.$slots).default) === null || e === void 0 ? void 0 : e.call(t));
|
43899
43899
|
}
|
43900
43900
|
});
|
43901
|
-
const K7 = /^\s*>\s$/, J7 =
|
43901
|
+
const K7 = /^\s*>\s$/, J7 = vo.create({
|
43902
43902
|
name: "blockquote",
|
43903
43903
|
addOptions() {
|
43904
43904
|
return {
|
@@ -44002,7 +44002,7 @@ const K7 = /^\s*>\s$/, J7 = bo.create({
|
|
44002
44002
|
})
|
44003
44003
|
];
|
44004
44004
|
}
|
44005
|
-
}), rG = "listItem", XC = "textStyle", KC = /^\s*([-+*])\s$/, sG =
|
44005
|
+
}), rG = "listItem", XC = "textStyle", KC = /^\s*([-+*])\s$/, sG = vo.create({
|
44006
44006
|
name: "bulletList",
|
44007
44007
|
addOptions() {
|
44008
44008
|
return {
|
@@ -44096,7 +44096,7 @@ const K7 = /^\s*>\s$/, J7 = bo.create({
|
|
44096
44096
|
})
|
44097
44097
|
];
|
44098
44098
|
}
|
44099
|
-
}), cG = /^```([a-z]+)?[\s\n]$/, uG = /^~~~([a-z]+)?[\s\n]$/, EI =
|
44099
|
+
}), cG = /^```([a-z]+)?[\s\n]$/, uG = /^~~~([a-z]+)?[\s\n]$/, EI = vo.create({
|
44100
44100
|
name: "codeBlock",
|
44101
44101
|
addOptions() {
|
44102
44102
|
return {
|
@@ -44223,7 +44223,7 @@ const K7 = /^\s*>\s$/, J7 = bo.create({
|
|
44223
44223
|
})
|
44224
44224
|
];
|
44225
44225
|
}
|
44226
|
-
}), dG =
|
44226
|
+
}), dG = vo.create({
|
44227
44227
|
name: "doc",
|
44228
44228
|
topNode: !0,
|
44229
44229
|
content: "block+"
|
@@ -44533,7 +44533,7 @@ const wG = hr.create({
|
|
44533
44533
|
allowGapCursor: (e = kn(Nt(t, "allowGapCursor", n))) !== null && e !== void 0 ? e : null
|
44534
44534
|
};
|
44535
44535
|
}
|
44536
|
-
}), kG =
|
44536
|
+
}), kG = vo.create({
|
44537
44537
|
name: "hardBreak",
|
44538
44538
|
addOptions() {
|
44539
44539
|
return {
|
@@ -44583,7 +44583,7 @@ const wG = hr.create({
|
|
44583
44583
|
"Shift-Enter": () => this.editor.commands.setHardBreak()
|
44584
44584
|
};
|
44585
44585
|
}
|
44586
|
-
}), SG =
|
44586
|
+
}), SG = vo.create({
|
44587
44587
|
name: "heading",
|
44588
44588
|
addOptions() {
|
44589
44589
|
return {
|
@@ -44731,7 +44731,7 @@ var EG = /* @__PURE__ */ function(t) {
|
|
44731
44731
|
}, e;
|
44732
44732
|
}(cr);
|
44733
44733
|
const CG = 500;
|
44734
|
-
class
|
44734
|
+
class Eo {
|
44735
44735
|
constructor(e, n) {
|
44736
44736
|
this.items = e, this.eventCount = n;
|
44737
44737
|
}
|
@@ -44761,7 +44761,7 @@ class Co {
|
|
44761
44761
|
} else
|
44762
44762
|
a.maybeStep(_.step);
|
44763
44763
|
if (_.selection)
|
44764
|
-
return o = r ? _.selection.map(r.slice(s)) : _.selection, f = new
|
44764
|
+
return o = r ? _.selection.map(r.slice(s)) : _.selection, f = new Eo(this.items.slice(0, i).append(g.reverse().concat(m)), this.eventCount - 1), !1;
|
44765
44765
|
}, this.items.length, 0), { remaining: f, transform: a, selection: o };
|
44766
44766
|
}
|
44767
44767
|
// Create a new branch with the given transform added.
|
@@ -44772,7 +44772,7 @@ class Co {
|
|
44772
44772
|
(C = f && f.merge(k)) && (k = C, g ? s.pop() : o = o.slice(0, o.length - 1)), s.push(k), n && (a++, n = void 0), r || (f = k);
|
44773
44773
|
}
|
44774
44774
|
let m = a - i.depth;
|
44775
|
-
return m > AG && (o = TG(o, m), a -= m), new
|
44775
|
+
return m > AG && (o = TG(o, m), a -= m), new Eo(o.append(s), a);
|
44776
44776
|
}
|
44777
44777
|
remapping(e, n) {
|
44778
44778
|
let i = new qd();
|
@@ -44782,7 +44782,7 @@ class Co {
|
|
44782
44782
|
}, e, n), i;
|
44783
44783
|
}
|
44784
44784
|
addMaps(e) {
|
44785
|
-
return this.eventCount == 0 ? this : new
|
44785
|
+
return this.eventCount == 0 ? this : new Eo(this.items.append(e.map((n) => new Zo(n))), this.eventCount);
|
44786
44786
|
}
|
44787
44787
|
// When the collab module receives remote changes, the history has
|
44788
44788
|
// to know about those, so that it can adjust the steps that were
|
@@ -44811,7 +44811,7 @@ class Co {
|
|
44811
44811
|
let m = [];
|
44812
44812
|
for (let k = n; k < a; k++)
|
44813
44813
|
m.push(new Zo(s.maps[k]));
|
44814
|
-
let g = this.items.slice(0, r).append(m).append(i), _ = new
|
44814
|
+
let g = this.items.slice(0, r).append(m).append(i), _ = new Eo(g, o);
|
44815
44815
|
return _.emptyItemCount() > CG && (_ = _.compress(this.items.length - i.length)), _;
|
44816
44816
|
}
|
44817
44817
|
emptyItemCount() {
|
@@ -44840,10 +44840,10 @@ class Co {
|
|
44840
44840
|
(k = r.length && r[C].merge(_)) ? r[C] = k : r.push(_);
|
44841
44841
|
}
|
44842
44842
|
} else a.map && i--;
|
44843
|
-
}, this.items.length, 0), new
|
44843
|
+
}, this.items.length, 0), new Eo(cr.from(r.reverse()), s);
|
44844
44844
|
}
|
44845
44845
|
}
|
44846
|
-
|
44846
|
+
Eo.empty = new Eo(cr.empty, 0);
|
44847
44847
|
function TG(t, e) {
|
44848
44848
|
let n;
|
44849
44849
|
return t.forEach((i, r) => {
|
@@ -44881,7 +44881,7 @@ function MG(t, e, n, i) {
|
|
44881
44881
|
return a.getMeta(hu).redo ? new jl(t.done.addTransform(n, void 0, i, Gg(e)), t.undone, JC(n.mapping.maps), t.prevTime, t.prevComposition) : new jl(t.done, t.undone.addTransform(n, void 0, i, Gg(e)), null, t.prevTime, t.prevComposition);
|
44882
44882
|
if (n.getMeta("addToHistory") !== !1 && !(a && a.getMeta("addToHistory") === !1)) {
|
44883
44883
|
let o = n.getMeta("composition"), f = t.prevTime == 0 || !a && t.prevComposition != o && (t.prevTime < (n.time || 0) - i.newGroupDelay || !DG(n, t.prevRanges)), m = a ? Gb(t.prevRanges, n.mapping) : JC(n.mapping.maps);
|
44884
|
-
return new jl(t.done.addTransform(n, f ? e.selection.getBookmark() : void 0, i, Gg(e)),
|
44884
|
+
return new jl(t.done.addTransform(n, f ? e.selection.getBookmark() : void 0, i, Gg(e)), Eo.empty, m, n.time, o ?? t.prevComposition);
|
44885
44885
|
} else return (s = n.getMeta("rebased")) ? new jl(t.done.rebased(n, s), t.undone.rebased(n, s), Gb(t.prevRanges, n.mapping), t.prevTime, t.prevComposition) : new jl(t.done.addMaps(n.mapping.maps), t.undone.addMaps(n.mapping.maps), Gb(t.prevRanges, n.mapping), t.prevTime, t.prevComposition);
|
44886
44886
|
}
|
44887
44887
|
function DG(t, e) {
|
@@ -44940,7 +44940,7 @@ function RG(t = {}) {
|
|
44940
44940
|
key: hu,
|
44941
44941
|
state: {
|
44942
44942
|
init() {
|
44943
|
-
return new jl(
|
44943
|
+
return new jl(Eo.empty, Eo.empty, null, 0, -1);
|
44944
44944
|
},
|
44945
44945
|
apply(e, n, i) {
|
44946
44946
|
return MG(n, i, e, t);
|
@@ -44998,7 +44998,7 @@ const AI = TI(!1, !0), MI = TI(!0, !0), OG = hr.create({
|
|
44998
44998
|
"Shift-Mod-я": () => this.editor.commands.redo()
|
44999
44999
|
};
|
45000
45000
|
}
|
45001
|
-
}), zG =
|
45001
|
+
}), zG = vo.create({
|
45002
45002
|
name: "horizontalRule",
|
45003
45003
|
addOptions() {
|
45004
45004
|
return {
|
@@ -45113,7 +45113,7 @@ const AI = TI(!1, !0), MI = TI(!0, !0), OG = hr.create({
|
|
45113
45113
|
})
|
45114
45114
|
];
|
45115
45115
|
}
|
45116
|
-
}), VG =
|
45116
|
+
}), VG = vo.create({
|
45117
45117
|
name: "listItem",
|
45118
45118
|
addOptions() {
|
45119
45119
|
return {
|
@@ -45141,7 +45141,7 @@ const AI = TI(!1, !0), MI = TI(!0, !0), OG = hr.create({
|
|
45141
45141
|
"Shift-Tab": () => this.editor.commands.liftListItem(this.name)
|
45142
45142
|
};
|
45143
45143
|
}
|
45144
|
-
}), jG = "listItem", e2 = "textStyle", t2 = /^(\d+)\.\s$/, HG =
|
45144
|
+
}), jG = "listItem", e2 = "textStyle", t2 = /^(\d+)\.\s$/, HG = vo.create({
|
45145
45145
|
name: "orderedList",
|
45146
45146
|
addOptions() {
|
45147
45147
|
return {
|
@@ -45207,7 +45207,7 @@ const AI = TI(!1, !0), MI = TI(!0, !0), OG = hr.create({
|
|
45207
45207
|
t
|
45208
45208
|
];
|
45209
45209
|
}
|
45210
|
-
}), UG =
|
45210
|
+
}), UG = vo.create({
|
45211
45211
|
name: "paragraph",
|
45212
45212
|
priority: 1e3,
|
45213
45213
|
addOptions() {
|
@@ -45291,7 +45291,7 @@ const AI = TI(!1, !0), MI = TI(!0, !0), OG = hr.create({
|
|
45291
45291
|
})
|
45292
45292
|
];
|
45293
45293
|
}
|
45294
|
-
}), DI =
|
45294
|
+
}), DI = vo.create({
|
45295
45295
|
name: "text",
|
45296
45296
|
group: "inline"
|
45297
45297
|
}), YG = hr.create({
|
@@ -45485,7 +45485,7 @@ function QG({ pluginKey: t = JG, editor: e, char: n = "@", allowSpaces: i = !1,
|
|
45485
45485
|
});
|
45486
45486
|
return O;
|
45487
45487
|
}
|
45488
|
-
const e9 = new ks("mention"), t9 =
|
45488
|
+
const e9 = new ks("mention"), t9 = vo.create({
|
45489
45489
|
name: "mention",
|
45490
45490
|
addOptions() {
|
45491
45491
|
return {
|
@@ -58385,7 +58385,7 @@ const Tse = /* @__PURE__ */ ft(xse, [["render", Cse]]), Ase = {
|
|
58385
58385
|
__name: "vs-group-interface-page",
|
58386
58386
|
setup(t) {
|
58387
58387
|
const e = ["view", "add", "edit", "del"];
|
58388
|
-
return (n, i) => (X(), zt(
|
58388
|
+
return (n, i) => (X(), zt(Co(Tse), {
|
58389
58389
|
options: e,
|
58390
58390
|
routes: n.routes
|
58391
58391
|
}, null, 8, ["routes"]));
|
@@ -58940,7 +58940,7 @@ const Coe = /* @__PURE__ */ ft(koe, [["render", Eoe]]), Toe = { class: "h-[76px]
|
|
58940
58940
|
t.tableName ? (X(), ne("div", {
|
58941
58941
|
key: 0,
|
58942
58942
|
class: "text-[14px] font-medium text-[#676A6C] cursor-pointer hover:underline",
|
58943
|
-
onClick: $[0] || ($[0] = (K) =>
|
58943
|
+
onClick: $[0] || ($[0] = (K) => Co(i).push("/" + n.getRoute))
|
58944
58944
|
}, He(t.tableName), 1)) : vt("", !0)
|
58945
58945
|
]),
|
58946
58946
|
(X(), zt(ps(a.value))),
|
@@ -60324,7 +60324,7 @@ const nle = /* @__PURE__ */ ft(Qae, [["render", tle]]), ile = { class: "h-full w
|
|
60324
60324
|
type: "text",
|
60325
60325
|
class: "w-[200px] h-[38px] px-[10px] placeholder:text-[14px] placeholder:text-gray-600 rounded-lg bg-gray-100 focus:outline-blue-500",
|
60326
60326
|
placeholder: "Пошук...",
|
60327
|
-
onInput: K[0] || (K[0] = ({ target: ke }) =>
|
60327
|
+
onInput: K[0] || (K[0] = ({ target: ke }) => Co($)(ke.value))
|
60328
60328
|
}, null, 32),
|
60329
60329
|
s.value ? (X(), zt(Z, {
|
60330
60330
|
key: 0,
|
@@ -60793,7 +60793,7 @@ const nle = /* @__PURE__ */ ft(Qae, [["render", tle]]), ile = { class: "h-full w
|
|
60793
60793
|
Fe(O, {
|
60794
60794
|
type: "text",
|
60795
60795
|
placeholder: "Пошук...",
|
60796
|
-
"onUpdate:modelValue":
|
60796
|
+
"onUpdate:modelValue": Co(g),
|
60797
60797
|
class: "flex-grow [&>input]:h-[38px] max-w-[300px] [&>input]:placeholder-gray-600 [&>input]:bg-gray-100 admin-input-text [&>input]:border-0"
|
60798
60798
|
}, null, 8, ["onUpdate:modelValue"]),
|
60799
60799
|
o.value ? (X(), zt(z, {
|