@squirrel-cloud/ui-vue 0.3.3 → 0.3.5
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/squirrel-cloud-ui-vue.js +510 -507
- package/dist/squirrel-cloud-ui-vue.umd.cjs +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createElementBlock as A, openBlock as g, createElementVNode as F, defineComponent as L, computed as D, createBlock as
|
|
1
|
+
import { createElementBlock as A, openBlock as g, createElementVNode as F, defineComponent as L, computed as D, createBlock as $, unref as b, normalizeClass as V, withCtx as Q, createCommentVNode as O, createTextVNode as Ot, resolveDynamicComponent as ku, toDisplayString as ru, h as Ie, ref as j, normalizeStyle as eu, onMounted as yu, onBeforeUnmount as xe, Transition as Yu, withDirectives as fu, renderSlot as H, vShow as Ku, inject as pu, createVNode as wu, provide as ue, toRef as X, useSlots as Ze, mergeModels as tu, useModel as hu, watch as Eu, vModelCheckbox as Pt, toRaw as $u, Fragment as bu, renderList as ju, withModifiers as Nt, mergeProps as ce, nextTick as q0, shallowRef as Zu, vModelDynamic as z0, vModelText as B0, render as lt, cloneVNode as T0, Text as $0, Comment as L0, Teleport as M0, vModelRadio as R0 } from "vue";
|
|
2
2
|
const K = (u, e) => {
|
|
3
3
|
const t = u.__vccOpts || u;
|
|
4
4
|
for (const [n, r] of e)
|
|
@@ -124,7 +124,7 @@ const Ge = /* @__PURE__ */ K(sn, [["render", ln]]), fn = {}, dn = {
|
|
|
124
124
|
class: "sq-icon",
|
|
125
125
|
"data-icon": "ellipsis"
|
|
126
126
|
};
|
|
127
|
-
function
|
|
127
|
+
function pn(u, e) {
|
|
128
128
|
return g(), A("span", dn, e[0] || (e[0] = [
|
|
129
129
|
F("svg", {
|
|
130
130
|
viewBox: "0 0 48 48",
|
|
@@ -137,7 +137,7 @@ function hn(u, e) {
|
|
|
137
137
|
], -1)
|
|
138
138
|
]));
|
|
139
139
|
}
|
|
140
|
-
const
|
|
140
|
+
const hn = /* @__PURE__ */ K(fn, [["render", pn]]), bn = {}, mn = {
|
|
141
141
|
class: "sq-icon",
|
|
142
142
|
"data-icon": "hide"
|
|
143
143
|
};
|
|
@@ -164,7 +164,7 @@ const gn = /* @__PURE__ */ K(bn, [["render", xn]]), _n = {}, kn = {
|
|
|
164
164
|
class: "sq-icon",
|
|
165
165
|
"data-icon": "info-filled"
|
|
166
166
|
};
|
|
167
|
-
function
|
|
167
|
+
function yn(u, e) {
|
|
168
168
|
return g(), A("span", kn, e[0] || (e[0] = [
|
|
169
169
|
F("svg", {
|
|
170
170
|
viewBox: "0 0 48 48",
|
|
@@ -181,7 +181,7 @@ function vn(u, e) {
|
|
|
181
181
|
], -1)
|
|
182
182
|
]));
|
|
183
183
|
}
|
|
184
|
-
const jt = /* @__PURE__ */ K(_n, [["render",
|
|
184
|
+
const jt = /* @__PURE__ */ K(_n, [["render", yn]]), vn = {}, Cn = {
|
|
185
185
|
class: "sq-icon",
|
|
186
186
|
"data-icon": "jump-to"
|
|
187
187
|
};
|
|
@@ -197,7 +197,7 @@ function Dn(u, e) {
|
|
|
197
197
|
], -1)
|
|
198
198
|
]));
|
|
199
199
|
}
|
|
200
|
-
const En = /* @__PURE__ */ K(
|
|
200
|
+
const En = /* @__PURE__ */ K(vn, [["render", Dn]]), wn = {}, An = {
|
|
201
201
|
class: "sq-icon is-loading",
|
|
202
202
|
"data-icon": "loading"
|
|
203
203
|
};
|
|
@@ -252,7 +252,7 @@ function Ln(u, e) {
|
|
|
252
252
|
], -1)
|
|
253
253
|
]));
|
|
254
254
|
}
|
|
255
|
-
const Je = /* @__PURE__ */ K(Tn, [["render", Ln]]), Mn = "sq-alert",
|
|
255
|
+
const Je = /* @__PURE__ */ K(Tn, [["render", Ln]]), Mn = "sq-alert", pa = /* @__PURE__ */ L({
|
|
256
256
|
name: Mn,
|
|
257
257
|
__name: "alert",
|
|
258
258
|
props: {
|
|
@@ -282,11 +282,11 @@ const Je = /* @__PURE__ */ K(Tn, [["render", Ln]]), Mn = "sq-alert", ha = /* @__
|
|
|
282
282
|
return;
|
|
283
283
|
}
|
|
284
284
|
});
|
|
285
|
-
return (r, o) => (g(),
|
|
285
|
+
return (r, o) => (g(), $(b(zu), {
|
|
286
286
|
class: V(["sq-alert", t.value])
|
|
287
287
|
}, {
|
|
288
288
|
default: Q(() => [
|
|
289
|
-
n.value ? (g(),
|
|
289
|
+
n.value ? (g(), $(ku(n.value), { key: 0 })) : O("", !0),
|
|
290
290
|
Ot(" " + ru(e.text), 1)
|
|
291
291
|
]),
|
|
292
292
|
_: 1
|
|
@@ -403,20 +403,20 @@ function On(u) {
|
|
|
403
403
|
["disabled", ""]
|
|
404
404
|
];
|
|
405
405
|
l && f.push(["checked", ""]);
|
|
406
|
-
const
|
|
407
|
-
|
|
406
|
+
const h = new cu("input", "input", 0);
|
|
407
|
+
h.attrs = f, (r = i.children) == null || r.unshift(h);
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
411
|
}
|
|
412
412
|
});
|
|
413
413
|
}
|
|
414
|
-
const
|
|
414
|
+
const pt = {};
|
|
415
415
|
function Pn(u) {
|
|
416
|
-
let e =
|
|
416
|
+
let e = pt[u];
|
|
417
417
|
if (e)
|
|
418
418
|
return e;
|
|
419
|
-
e =
|
|
419
|
+
e = pt[u] = [];
|
|
420
420
|
for (let t = 0; t < 128; t++) {
|
|
421
421
|
const n = String.fromCharCode(t);
|
|
422
422
|
e.push(n);
|
|
@@ -469,12 +469,12 @@ function Iu(u, e) {
|
|
|
469
469
|
}
|
|
470
470
|
Iu.defaultChars = ";/?:@&=+$,#";
|
|
471
471
|
Iu.componentChars = "";
|
|
472
|
-
const
|
|
472
|
+
const ht = {};
|
|
473
473
|
function Nn(u) {
|
|
474
|
-
let e =
|
|
474
|
+
let e = ht[u];
|
|
475
475
|
if (e)
|
|
476
476
|
return e;
|
|
477
|
-
e =
|
|
477
|
+
e = ht[u] = [];
|
|
478
478
|
for (let t = 0; t < 128; t++) {
|
|
479
479
|
const n = String.fromCharCode(t);
|
|
480
480
|
/^[0-9a-z]$/i.test(n) ? e.push(n) : e.push("%" + ("0" + t.toString(16).toUpperCase()).slice(-2));
|
|
@@ -559,26 +559,26 @@ le.prototype.parse = function(u, e) {
|
|
|
559
559
|
for (let d = 0; d < bt.length; d++)
|
|
560
560
|
n = o.indexOf(bt[d]), n !== -1 && (a === -1 || n < a) && (a = n);
|
|
561
561
|
a === -1 && (a = o.length), o[a - 1] === ":" && a--;
|
|
562
|
-
const
|
|
563
|
-
o = o.slice(a), this.parseHost(
|
|
564
|
-
const
|
|
565
|
-
if (!
|
|
562
|
+
const h = o.slice(0, a);
|
|
563
|
+
o = o.slice(a), this.parseHost(h), this.hostname = this.hostname || "";
|
|
564
|
+
const p = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
|
|
565
|
+
if (!p) {
|
|
566
566
|
const d = this.hostname.split(/\./);
|
|
567
567
|
for (let x = 0, _ = d.length; x < _; x++) {
|
|
568
|
-
const
|
|
569
|
-
if (
|
|
568
|
+
const C = d[x];
|
|
569
|
+
if (C && !C.match(xt)) {
|
|
570
570
|
let k = "";
|
|
571
|
-
for (let E = 0,
|
|
572
|
-
|
|
571
|
+
for (let E = 0, y = C.length; E < y; E++)
|
|
572
|
+
C.charCodeAt(E) > 127 ? k += "x" : k += C[E];
|
|
573
573
|
if (!k.match(xt)) {
|
|
574
|
-
const E = d.slice(0, x),
|
|
575
|
-
w && (E.push(w[1]),
|
|
574
|
+
const E = d.slice(0, x), y = d.slice(x + 1), w = C.match(Jn);
|
|
575
|
+
w && (E.push(w[1]), y.unshift(w[2])), y.length && (o = y.join(".") + o), this.hostname = E.join(".");
|
|
576
576
|
break;
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
|
-
this.hostname.length > Gn && (this.hostname = ""),
|
|
581
|
+
this.hostname.length > Gn && (this.hostname = ""), p && (this.hostname = this.hostname.substr(1, this.hostname.length - 2));
|
|
582
582
|
}
|
|
583
583
|
const i = o.indexOf("#");
|
|
584
584
|
i !== -1 && (this.hash = o.substr(i), o = o.slice(0, i));
|
|
@@ -923,7 +923,7 @@ function ut(u) {
|
|
|
923
923
|
return fr(u) === "[object String]";
|
|
924
924
|
}
|
|
925
925
|
const dr = Object.prototype.hasOwnProperty;
|
|
926
|
-
function
|
|
926
|
+
function pr(u, e) {
|
|
927
927
|
return dr.call(u, e);
|
|
928
928
|
}
|
|
929
929
|
function _e(u) {
|
|
@@ -951,7 +951,7 @@ function fe(u) {
|
|
|
951
951
|
}
|
|
952
952
|
return String.fromCharCode(u);
|
|
953
953
|
}
|
|
954
|
-
const Qt = /\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,
|
|
954
|
+
const Qt = /\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g, hr = /&([a-z#][a-z0-9]{1,31});/gi, br = new RegExp(Qt.source + "|" + hr.source, "gi"), mr = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;
|
|
955
955
|
function xr(u, e) {
|
|
956
956
|
if (e.charCodeAt(0) === 35 && mr.test(e)) {
|
|
957
957
|
const n = e[1].toLowerCase() === "x" ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10);
|
|
@@ -968,17 +968,17 @@ function Ou(u) {
|
|
|
968
968
|
return t || xr(e, n);
|
|
969
969
|
});
|
|
970
970
|
}
|
|
971
|
-
const _r = /[&<>"]/, kr = /[&<>"]/g,
|
|
971
|
+
const _r = /[&<>"]/, kr = /[&<>"]/g, yr = {
|
|
972
972
|
"&": "&",
|
|
973
973
|
"<": "<",
|
|
974
974
|
">": ">",
|
|
975
975
|
'"': """
|
|
976
976
|
};
|
|
977
|
-
function
|
|
978
|
-
return
|
|
977
|
+
function vr(u) {
|
|
978
|
+
return yr[u];
|
|
979
979
|
}
|
|
980
980
|
function Au(u) {
|
|
981
|
-
return _r.test(u) ? u.replace(kr,
|
|
981
|
+
return _r.test(u) ? u.replace(kr, vr) : u;
|
|
982
982
|
}
|
|
983
983
|
const Cr = /[.?*+^$[\]\\(){}|-]/g;
|
|
984
984
|
function Dr(u) {
|
|
@@ -1068,7 +1068,7 @@ const Er = { mdurl: Xn, ucmicro: Yn }, wr = /* @__PURE__ */ Object.freeze(/* @__
|
|
|
1068
1068
|
escapeHtml: Au,
|
|
1069
1069
|
escapeRE: Dr,
|
|
1070
1070
|
fromCodePoint: fe,
|
|
1071
|
-
has:
|
|
1071
|
+
has: pr,
|
|
1072
1072
|
isMdAsciiPunct: Ju,
|
|
1073
1073
|
isPunctChar: Gu,
|
|
1074
1074
|
isSpace: P,
|
|
@@ -1200,10 +1200,10 @@ xu.fence = function(u, e, t, n, r) {
|
|
|
1200
1200
|
if (c) {
|
|
1201
1201
|
const l = o.attrIndex("class"), f = o.attrs ? o.attrs.slice() : [];
|
|
1202
1202
|
l < 0 ? f.push(["class", t.langPrefix + i]) : (f[l] = f[l].slice(), f[l][1] += " " + t.langPrefix + i);
|
|
1203
|
-
const
|
|
1203
|
+
const h = {
|
|
1204
1204
|
attrs: f
|
|
1205
1205
|
};
|
|
1206
|
-
return `<pre><code${r.renderAttrs(
|
|
1206
|
+
return `<pre><code${r.renderAttrs(h)}>${a}</code></pre>
|
|
1207
1207
|
`;
|
|
1208
1208
|
}
|
|
1209
1209
|
return `<pre><code${r.renderAttrs(o)}>${a}</code></pre>
|
|
@@ -1436,29 +1436,29 @@ function Ir(u) {
|
|
|
1436
1436
|
const s = i.content;
|
|
1437
1437
|
let a = u.md.linkify.match(s);
|
|
1438
1438
|
const l = [];
|
|
1439
|
-
let f = i.level,
|
|
1439
|
+
let f = i.level, h = 0;
|
|
1440
1440
|
a.length > 0 && a[0].index === 0 && c > 0 && r[c - 1].type === "text_special" && (a = a.slice(1));
|
|
1441
|
-
for (let
|
|
1442
|
-
const d = a[
|
|
1441
|
+
for (let p = 0; p < a.length; p++) {
|
|
1442
|
+
const d = a[p].url, x = u.md.normalizeLink(d);
|
|
1443
1443
|
if (!u.md.validateLink(x))
|
|
1444
1444
|
continue;
|
|
1445
|
-
let _ = a[
|
|
1446
|
-
a[
|
|
1447
|
-
const
|
|
1448
|
-
if (
|
|
1445
|
+
let _ = a[p].text;
|
|
1446
|
+
a[p].schema ? a[p].schema === "mailto:" && !/^mailto:/i.test(_) ? _ = u.md.normalizeLinkText("mailto:" + _).replace(/^mailto:/, "") : _ = u.md.normalizeLinkText(_) : _ = u.md.normalizeLinkText("http://" + _).replace(/^http:\/\//, "");
|
|
1447
|
+
const C = a[p].index;
|
|
1448
|
+
if (C > h) {
|
|
1449
1449
|
const w = new u.Token("text", "", 0);
|
|
1450
|
-
w.content = s.slice(
|
|
1450
|
+
w.content = s.slice(h, C), w.level = f, l.push(w);
|
|
1451
1451
|
}
|
|
1452
1452
|
const k = new u.Token("link_open", "a", 1);
|
|
1453
1453
|
k.attrs = [["href", x]], k.level = f++, k.markup = "linkify", k.info = "auto", l.push(k);
|
|
1454
1454
|
const E = new u.Token("text", "", 0);
|
|
1455
1455
|
E.content = _, E.level = f, l.push(E);
|
|
1456
|
-
const
|
|
1457
|
-
|
|
1456
|
+
const y = new u.Token("link_close", "a", -1);
|
|
1457
|
+
y.level = --f, y.markup = "linkify", y.info = "auto", l.push(y), h = a[p].lastIndex;
|
|
1458
1458
|
}
|
|
1459
|
-
if (
|
|
1460
|
-
const
|
|
1461
|
-
|
|
1459
|
+
if (h < s.length) {
|
|
1460
|
+
const p = new u.Token("text", "", 0);
|
|
1461
|
+
p.content = s.slice(h), p.level = f, l.push(p);
|
|
1462
1462
|
}
|
|
1463
1463
|
e[t].children = r = Xt(r, c, l);
|
|
1464
1464
|
}
|
|
@@ -1493,7 +1493,7 @@ function Vr(u) {
|
|
|
1493
1493
|
for (e = u.tokens.length - 1; e >= 0; e--)
|
|
1494
1494
|
u.tokens[e].type === "inline" && (Or.test(u.tokens[e].content) && Hr(u.tokens[e].children), Kt.test(u.tokens[e].content) && Ur(u.tokens[e].children));
|
|
1495
1495
|
}
|
|
1496
|
-
const Zr = /['"]/, kt = /['"]/g,
|
|
1496
|
+
const Zr = /['"]/, kt = /['"]/g, yt = "’";
|
|
1497
1497
|
function ie(u, e, t) {
|
|
1498
1498
|
return u.slice(0, e) + t + u.slice(e + 1);
|
|
1499
1499
|
}
|
|
@@ -1513,9 +1513,9 @@ function Wr(u, e) {
|
|
|
1513
1513
|
const l = kt.exec(i);
|
|
1514
1514
|
if (!l)
|
|
1515
1515
|
break;
|
|
1516
|
-
let f = !0,
|
|
1516
|
+
let f = !0, h = !0;
|
|
1517
1517
|
s = l.index + 1;
|
|
1518
|
-
const
|
|
1518
|
+
const p = l[0] === "'";
|
|
1519
1519
|
let d = 32;
|
|
1520
1520
|
if (l.index - 1 >= 0)
|
|
1521
1521
|
d = i.charCodeAt(l.index - 1);
|
|
@@ -1534,33 +1534,33 @@ function Wr(u, e) {
|
|
|
1534
1534
|
x = u[t].content.charCodeAt(0);
|
|
1535
1535
|
break;
|
|
1536
1536
|
}
|
|
1537
|
-
const _ = Ju(d) || Gu(String.fromCharCode(d)),
|
|
1538
|
-
if (E ? f = !1 :
|
|
1539
|
-
|
|
1537
|
+
const _ = Ju(d) || Gu(String.fromCharCode(d)), C = Ju(x) || Gu(String.fromCharCode(x)), k = Wu(d), E = Wu(x);
|
|
1538
|
+
if (E ? f = !1 : C && (k || _ || (f = !1)), k ? h = !1 : _ && (E || C || (h = !1)), x === 34 && l[0] === '"' && d >= 48 && d <= 57 && (h = f = !1), f && h && (f = _, h = C), !f && !h) {
|
|
1539
|
+
p && (o.content = ie(o.content, l.index, yt));
|
|
1540
1540
|
continue;
|
|
1541
1541
|
}
|
|
1542
|
-
if (
|
|
1542
|
+
if (h)
|
|
1543
1543
|
for (t = n.length - 1; t >= 0; t--) {
|
|
1544
|
-
let
|
|
1544
|
+
let y = n[t];
|
|
1545
1545
|
if (n[t].level < c)
|
|
1546
1546
|
break;
|
|
1547
|
-
if (
|
|
1548
|
-
|
|
1547
|
+
if (y.single === p && n[t].level === c) {
|
|
1548
|
+
y = n[t];
|
|
1549
1549
|
let w, q;
|
|
1550
|
-
|
|
1551
|
-
u[
|
|
1552
|
-
|
|
1550
|
+
p ? (w = e.md.options.quotes[2], q = e.md.options.quotes[3]) : (w = e.md.options.quotes[0], q = e.md.options.quotes[1]), o.content = ie(o.content, l.index, q), u[y.token].content = ie(
|
|
1551
|
+
u[y.token].content,
|
|
1552
|
+
y.pos,
|
|
1553
1553
|
w
|
|
1554
|
-
), s += q.length - 1,
|
|
1554
|
+
), s += q.length - 1, y.token === r && (s += w.length - 1), i = o.content, a = i.length, n.length = t;
|
|
1555
1555
|
continue u;
|
|
1556
1556
|
}
|
|
1557
1557
|
}
|
|
1558
1558
|
f ? n.push({
|
|
1559
1559
|
token: r,
|
|
1560
1560
|
pos: l.index,
|
|
1561
|
-
single:
|
|
1561
|
+
single: p,
|
|
1562
1562
|
level: c
|
|
1563
|
-
}) :
|
|
1563
|
+
}) : h && p && (o.content = ie(o.content, l.index, yt));
|
|
1564
1564
|
}
|
|
1565
1565
|
}
|
|
1566
1566
|
}
|
|
@@ -1669,9 +1669,9 @@ gu.prototype.getLines = function(e, t, n, r) {
|
|
|
1669
1669
|
const a = this.bMarks[i];
|
|
1670
1670
|
let l = a, f;
|
|
1671
1671
|
for (i + 1 < t || r ? f = this.eMarks[i] + 1 : f = this.eMarks[i]; l < f && s < n; ) {
|
|
1672
|
-
const
|
|
1673
|
-
if (P(
|
|
1674
|
-
|
|
1672
|
+
const h = this.src.charCodeAt(l);
|
|
1673
|
+
if (P(h))
|
|
1674
|
+
h === 9 ? s += 4 - (s + this.bsCount[i]) % 4 : s++;
|
|
1675
1675
|
else if (l - a < this.tShift[i])
|
|
1676
1676
|
s++;
|
|
1677
1677
|
else
|
|
@@ -1688,7 +1688,7 @@ function ze(u, e) {
|
|
|
1688
1688
|
const t = u.bMarks[e] + u.tShift[e], n = u.eMarks[e];
|
|
1689
1689
|
return u.src.slice(t, n);
|
|
1690
1690
|
}
|
|
1691
|
-
function
|
|
1691
|
+
function vt(u) {
|
|
1692
1692
|
const e = [], t = u.length;
|
|
1693
1693
|
let n = 0, r = u.charCodeAt(n), o = !1, c = 0, i = "";
|
|
1694
1694
|
for (; n < t; )
|
|
@@ -1711,17 +1711,17 @@ function Qr(u, e, t, n) {
|
|
|
1711
1711
|
if (i !== 124 && i !== 45 && i !== 58 && !P(i) || c === 45 && P(i))
|
|
1712
1712
|
return !1;
|
|
1713
1713
|
for (; o < u.eMarks[r]; ) {
|
|
1714
|
-
const
|
|
1715
|
-
if (
|
|
1714
|
+
const y = u.src.charCodeAt(o);
|
|
1715
|
+
if (y !== 124 && y !== 45 && y !== 58 && !P(y))
|
|
1716
1716
|
return !1;
|
|
1717
1717
|
o++;
|
|
1718
1718
|
}
|
|
1719
1719
|
let s = ze(u, e + 1), a = s.split("|");
|
|
1720
1720
|
const l = [];
|
|
1721
|
-
for (let
|
|
1722
|
-
const w = a[
|
|
1721
|
+
for (let y = 0; y < a.length; y++) {
|
|
1722
|
+
const w = a[y].trim();
|
|
1723
1723
|
if (!w) {
|
|
1724
|
-
if (
|
|
1724
|
+
if (y === 0 || y === a.length - 1)
|
|
1725
1725
|
continue;
|
|
1726
1726
|
return !1;
|
|
1727
1727
|
}
|
|
@@ -1731,36 +1731,36 @@ function Qr(u, e, t, n) {
|
|
|
1731
1731
|
}
|
|
1732
1732
|
if (s = ze(u, e).trim(), s.indexOf("|") === -1 || u.sCount[e] - u.blkIndent >= 4)
|
|
1733
1733
|
return !1;
|
|
1734
|
-
a =
|
|
1734
|
+
a = vt(s), a.length && a[0] === "" && a.shift(), a.length && a[a.length - 1] === "" && a.pop();
|
|
1735
1735
|
const f = a.length;
|
|
1736
1736
|
if (f === 0 || f !== l.length)
|
|
1737
1737
|
return !1;
|
|
1738
1738
|
if (n)
|
|
1739
1739
|
return !0;
|
|
1740
|
-
const
|
|
1740
|
+
const h = u.parentType;
|
|
1741
1741
|
u.parentType = "table";
|
|
1742
|
-
const
|
|
1742
|
+
const p = u.md.block.ruler.getRules("blockquote"), d = u.push("table_open", "table", 1), x = [e, 0];
|
|
1743
1743
|
d.map = x;
|
|
1744
1744
|
const _ = u.push("thead_open", "thead", 1);
|
|
1745
1745
|
_.map = [e, e + 1];
|
|
1746
|
-
const
|
|
1747
|
-
|
|
1748
|
-
for (let
|
|
1746
|
+
const C = u.push("tr_open", "tr", 1);
|
|
1747
|
+
C.map = [e, e + 1];
|
|
1748
|
+
for (let y = 0; y < a.length; y++) {
|
|
1749
1749
|
const w = u.push("th_open", "th", 1);
|
|
1750
|
-
l[
|
|
1750
|
+
l[y] && (w.attrs = [["style", "text-align:" + l[y]]]);
|
|
1751
1751
|
const q = u.push("inline", "", 0);
|
|
1752
|
-
q.content = a[
|
|
1752
|
+
q.content = a[y].trim(), q.children = [], u.push("th_close", "th", -1);
|
|
1753
1753
|
}
|
|
1754
1754
|
u.push("tr_close", "tr", -1), u.push("thead_close", "thead", -1);
|
|
1755
1755
|
let k, E = 0;
|
|
1756
1756
|
for (r = e + 2; r < t && !(u.sCount[r] < u.blkIndent); r++) {
|
|
1757
|
-
let
|
|
1758
|
-
for (let q = 0,
|
|
1759
|
-
if (
|
|
1760
|
-
|
|
1757
|
+
let y = !1;
|
|
1758
|
+
for (let q = 0, B = p.length; q < B; q++)
|
|
1759
|
+
if (p[q](u, r, t, !0)) {
|
|
1760
|
+
y = !0;
|
|
1761
1761
|
break;
|
|
1762
1762
|
}
|
|
1763
|
-
if (
|
|
1763
|
+
if (y || (s = ze(u, r).trim(), !s) || u.sCount[r] - u.blkIndent >= 4 || (a = vt(s), a.length && a[0] === "" && a.shift(), a.length && a[a.length - 1] === "" && a.pop(), E += f - a.length, E > Xr))
|
|
1764
1764
|
break;
|
|
1765
1765
|
if (r === e + 2) {
|
|
1766
1766
|
const q = u.push("tbody_open", "tbody", 1);
|
|
@@ -1769,14 +1769,14 @@ function Qr(u, e, t, n) {
|
|
|
1769
1769
|
const w = u.push("tr_open", "tr", 1);
|
|
1770
1770
|
w.map = [r, r + 1];
|
|
1771
1771
|
for (let q = 0; q < f; q++) {
|
|
1772
|
-
const
|
|
1773
|
-
l[q] && (
|
|
1772
|
+
const B = u.push("td_open", "td", 1);
|
|
1773
|
+
l[q] && (B.attrs = [["style", "text-align:" + l[q]]]);
|
|
1774
1774
|
const N = u.push("inline", "", 0);
|
|
1775
1775
|
N.content = a[q] ? a[q].trim() : "", N.children = [], u.push("td_close", "td", -1);
|
|
1776
1776
|
}
|
|
1777
1777
|
u.push("tr_close", "tr", -1);
|
|
1778
1778
|
}
|
|
1779
|
-
return k && (u.push("tbody_close", "tbody", -1), k[1] = r), u.push("table_close", "table", -1), x[1] = r, u.parentType =
|
|
1779
|
+
return k && (u.push("tbody_close", "tbody", -1), k[1] = r), u.push("table_close", "table", -1), x[1] = r, u.parentType = h, u.line = r, !0;
|
|
1780
1780
|
}
|
|
1781
1781
|
function Yr(u, e, t) {
|
|
1782
1782
|
if (u.sCount[e] - u.blkIndent < 4)
|
|
@@ -1815,15 +1815,15 @@ function Kr(u, e, t, n) {
|
|
|
1815
1815
|
return !1;
|
|
1816
1816
|
if (n)
|
|
1817
1817
|
return !0;
|
|
1818
|
-
let f = e,
|
|
1818
|
+
let f = e, h = !1;
|
|
1819
1819
|
for (; f++, !(f >= t || (r = i = u.bMarks[f] + u.tShift[f], o = u.eMarks[f], r < o && u.sCount[f] < u.blkIndent)); )
|
|
1820
1820
|
if (u.src.charCodeAt(r) === c && !(u.sCount[f] - u.blkIndent >= 4) && (r = u.skipChars(r, c), !(r - i < s) && (r = u.skipSpaces(r), !(r < o)))) {
|
|
1821
|
-
|
|
1821
|
+
h = !0;
|
|
1822
1822
|
break;
|
|
1823
1823
|
}
|
|
1824
|
-
s = u.sCount[e], u.line = f + (
|
|
1825
|
-
const
|
|
1826
|
-
return
|
|
1824
|
+
s = u.sCount[e], u.line = f + (h ? 1 : 0);
|
|
1825
|
+
const p = u.push("fence", "code", 0);
|
|
1826
|
+
return p.info = l, p.content = u.getLines(e + 1, f, s, !0), p.markup = a, p.map = [e, u.line], !0;
|
|
1827
1827
|
}
|
|
1828
1828
|
function uo(u, e, t, n) {
|
|
1829
1829
|
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e];
|
|
@@ -1832,37 +1832,37 @@ function uo(u, e, t, n) {
|
|
|
1832
1832
|
return !1;
|
|
1833
1833
|
if (n)
|
|
1834
1834
|
return !0;
|
|
1835
|
-
const i = [], s = [], a = [], l = [], f = u.md.block.ruler.getRules("blockquote"),
|
|
1835
|
+
const i = [], s = [], a = [], l = [], f = u.md.block.ruler.getRules("blockquote"), h = u.parentType;
|
|
1836
1836
|
u.parentType = "blockquote";
|
|
1837
|
-
let
|
|
1837
|
+
let p = !1, d;
|
|
1838
1838
|
for (d = e; d < t; d++) {
|
|
1839
1839
|
const E = u.sCount[d] < u.blkIndent;
|
|
1840
1840
|
if (r = u.bMarks[d] + u.tShift[d], o = u.eMarks[d], r >= o)
|
|
1841
1841
|
break;
|
|
1842
1842
|
if (u.src.charCodeAt(r++) === 62 && !E) {
|
|
1843
|
-
let w = u.sCount[d] + 1, q,
|
|
1844
|
-
u.src.charCodeAt(r) === 32 ? (r++, w++,
|
|
1843
|
+
let w = u.sCount[d] + 1, q, B;
|
|
1844
|
+
u.src.charCodeAt(r) === 32 ? (r++, w++, B = !1, q = !0) : u.src.charCodeAt(r) === 9 ? (q = !0, (u.bsCount[d] + w) % 4 === 3 ? (r++, w++, B = !1) : B = !0) : q = !1;
|
|
1845
1845
|
let N = w;
|
|
1846
1846
|
for (i.push(u.bMarks[d]), u.bMarks[d] = r; r < o; ) {
|
|
1847
1847
|
const v = u.src.charCodeAt(r);
|
|
1848
1848
|
if (P(v))
|
|
1849
|
-
v === 9 ? N += 4 - (N + u.bsCount[d] + (
|
|
1849
|
+
v === 9 ? N += 4 - (N + u.bsCount[d] + (B ? 1 : 0)) % 4 : N++;
|
|
1850
1850
|
else
|
|
1851
1851
|
break;
|
|
1852
1852
|
r++;
|
|
1853
1853
|
}
|
|
1854
|
-
|
|
1854
|
+
p = r >= o, s.push(u.bsCount[d]), u.bsCount[d] = u.sCount[d] + 1 + (q ? 1 : 0), a.push(u.sCount[d]), u.sCount[d] = N - w, l.push(u.tShift[d]), u.tShift[d] = r - u.bMarks[d];
|
|
1855
1855
|
continue;
|
|
1856
1856
|
}
|
|
1857
|
-
if (
|
|
1857
|
+
if (p)
|
|
1858
1858
|
break;
|
|
1859
|
-
let
|
|
1859
|
+
let y = !1;
|
|
1860
1860
|
for (let w = 0, q = f.length; w < q; w++)
|
|
1861
1861
|
if (f[w](u, d, t, !0)) {
|
|
1862
|
-
|
|
1862
|
+
y = !0;
|
|
1863
1863
|
break;
|
|
1864
1864
|
}
|
|
1865
|
-
if (
|
|
1865
|
+
if (y) {
|
|
1866
1866
|
u.lineMax = d, u.blkIndent !== 0 && (i.push(u.bMarks[d]), s.push(u.bsCount[d]), l.push(u.tShift[d]), a.push(u.sCount[d]), u.sCount[d] -= u.blkIndent);
|
|
1867
1867
|
break;
|
|
1868
1868
|
}
|
|
@@ -1872,10 +1872,10 @@ function uo(u, e, t, n) {
|
|
|
1872
1872
|
u.blkIndent = 0;
|
|
1873
1873
|
const _ = u.push("blockquote_open", "blockquote", 1);
|
|
1874
1874
|
_.markup = ">";
|
|
1875
|
-
const
|
|
1876
|
-
_.map =
|
|
1875
|
+
const C = [e, 0];
|
|
1876
|
+
_.map = C, u.md.block.tokenize(u, e, d);
|
|
1877
1877
|
const k = u.push("blockquote_close", "blockquote", -1);
|
|
1878
|
-
k.markup = ">", u.lineMax = c, u.parentType =
|
|
1878
|
+
k.markup = ">", u.lineMax = c, u.parentType = h, C[1] = u.line;
|
|
1879
1879
|
for (let E = 0; E < l.length; E++)
|
|
1880
1880
|
u.bMarks[E + e] = i[E], u.tShift[E + e] = l[E], u.sCount[E + e] = a[E], u.bsCount[E + e] = s[E];
|
|
1881
1881
|
return u.blkIndent = x, !0;
|
|
@@ -1949,27 +1949,27 @@ function no(u, e, t, n) {
|
|
|
1949
1949
|
return !1;
|
|
1950
1950
|
let l = !1;
|
|
1951
1951
|
n && u.parentType === "paragraph" && u.sCount[s] >= u.blkIndent && (l = !0);
|
|
1952
|
-
let f,
|
|
1953
|
-
if ((
|
|
1954
|
-
if (f = !0, c = u.bMarks[s] + u.tShift[s],
|
|
1955
|
-
} else if ((
|
|
1952
|
+
let f, h, p;
|
|
1953
|
+
if ((p = Dt(u, s)) >= 0) {
|
|
1954
|
+
if (f = !0, c = u.bMarks[s] + u.tShift[s], h = Number(u.src.slice(c, p - 1)), l && h !== 1) return !1;
|
|
1955
|
+
} else if ((p = Ct(u, s)) >= 0)
|
|
1956
1956
|
f = !1;
|
|
1957
1957
|
else
|
|
1958
1958
|
return !1;
|
|
1959
|
-
if (l && u.skipSpaces(
|
|
1959
|
+
if (l && u.skipSpaces(p) >= u.eMarks[s])
|
|
1960
1960
|
return !1;
|
|
1961
1961
|
if (n)
|
|
1962
1962
|
return !0;
|
|
1963
|
-
const d = u.src.charCodeAt(
|
|
1964
|
-
f ? (i = u.push("ordered_list_open", "ol", 1),
|
|
1963
|
+
const d = u.src.charCodeAt(p - 1), x = u.tokens.length;
|
|
1964
|
+
f ? (i = u.push("ordered_list_open", "ol", 1), h !== 1 && (i.attrs = [["start", h]])) : i = u.push("bullet_list_open", "ul", 1);
|
|
1965
1965
|
const _ = [s, 0];
|
|
1966
1966
|
i.map = _, i.markup = String.fromCharCode(d);
|
|
1967
|
-
let
|
|
1967
|
+
let C = !1;
|
|
1968
1968
|
const k = u.md.block.ruler.getRules("list"), E = u.parentType;
|
|
1969
1969
|
for (u.parentType = "list"; s < t; ) {
|
|
1970
|
-
o =
|
|
1971
|
-
const
|
|
1972
|
-
let w =
|
|
1970
|
+
o = p, r = u.eMarks[s];
|
|
1971
|
+
const y = u.sCount[s] + p - (u.bMarks[s] + u.tShift[s]);
|
|
1972
|
+
let w = y;
|
|
1973
1973
|
for (; o < r; ) {
|
|
1974
1974
|
const Z = u.src.charCodeAt(o);
|
|
1975
1975
|
if (Z === 9)
|
|
@@ -1981,14 +1981,14 @@ function no(u, e, t, n) {
|
|
|
1981
1981
|
o++;
|
|
1982
1982
|
}
|
|
1983
1983
|
const q = o;
|
|
1984
|
-
let
|
|
1985
|
-
q >= r ?
|
|
1986
|
-
const N =
|
|
1984
|
+
let B;
|
|
1985
|
+
q >= r ? B = 1 : B = w - y, B > 4 && (B = 1);
|
|
1986
|
+
const N = y + B;
|
|
1987
1987
|
i = u.push("list_item_open", "li", 1), i.markup = String.fromCharCode(d);
|
|
1988
1988
|
const v = [s, 0];
|
|
1989
|
-
i.map = v, f && (i.info = u.src.slice(c,
|
|
1990
|
-
const S = u.tight, m = u.tShift[s], z = u.sCount[s],
|
|
1991
|
-
if (u.listIndent = u.blkIndent, u.blkIndent = N, u.tight = !0, u.tShift[s] = q - u.bMarks[s], u.sCount[s] = w, q >= r && u.isEmpty(s + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, s, t, !0), (!u.tight ||
|
|
1989
|
+
i.map = v, f && (i.info = u.src.slice(c, p - 1));
|
|
1990
|
+
const S = u.tight, m = u.tShift[s], z = u.sCount[s], T = u.listIndent;
|
|
1991
|
+
if (u.listIndent = u.blkIndent, u.blkIndent = N, u.tight = !0, u.tShift[s] = q - u.bMarks[s], u.sCount[s] = w, q >= r && u.isEmpty(s + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, s, t, !0), (!u.tight || C) && (a = !1), C = u.line - s > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent = T, u.tShift[s] = m, u.sCount[s] = z, u.tight = S, i = u.push("list_item_close", "li", -1), i.markup = String.fromCharCode(d), s = u.line, v[1] = s, s >= t || u.sCount[s] < u.blkIndent || u.sCount[s] - u.blkIndent >= 4)
|
|
1992
1992
|
break;
|
|
1993
1993
|
let I = !1;
|
|
1994
1994
|
for (let Z = 0, J = k.length; Z < J; Z++)
|
|
@@ -1999,12 +1999,12 @@ function no(u, e, t, n) {
|
|
|
1999
1999
|
if (I)
|
|
2000
2000
|
break;
|
|
2001
2001
|
if (f) {
|
|
2002
|
-
if (
|
|
2002
|
+
if (p = Dt(u, s), p < 0)
|
|
2003
2003
|
break;
|
|
2004
2004
|
c = u.bMarks[s] + u.tShift[s];
|
|
2005
|
-
} else if (
|
|
2005
|
+
} else if (p = Ct(u, s), p < 0)
|
|
2006
2006
|
break;
|
|
2007
|
-
if (d !== u.src.charCodeAt(
|
|
2007
|
+
if (d !== u.src.charCodeAt(p - 1))
|
|
2008
2008
|
break;
|
|
2009
2009
|
}
|
|
2010
2010
|
return f ? i = u.push("ordered_list_close", "ol", -1) : i = u.push("bullet_list_close", "ul", -1), i.markup = String.fromCharCode(d), _[1] = s, u.line = s, u.parentType = E, a && to(u, x), !0;
|
|
@@ -2017,13 +2017,13 @@ function ro(u, e, t, n) {
|
|
|
2017
2017
|
const E = u.lineMax;
|
|
2018
2018
|
if (k >= E || u.isEmpty(k))
|
|
2019
2019
|
return null;
|
|
2020
|
-
let
|
|
2021
|
-
if (u.sCount[k] - u.blkIndent > 3 && (
|
|
2022
|
-
const
|
|
2020
|
+
let y = !1;
|
|
2021
|
+
if (u.sCount[k] - u.blkIndent > 3 && (y = !0), u.sCount[k] < 0 && (y = !0), !y) {
|
|
2022
|
+
const B = u.md.block.ruler.getRules("reference"), N = u.parentType;
|
|
2023
2023
|
u.parentType = "reference";
|
|
2024
2024
|
let v = !1;
|
|
2025
|
-
for (let S = 0, m =
|
|
2026
|
-
if (
|
|
2025
|
+
for (let S = 0, m = B.length; S < m; S++)
|
|
2026
|
+
if (B[S](u, k, E, !0)) {
|
|
2027
2027
|
v = !0;
|
|
2028
2028
|
break;
|
|
2029
2029
|
}
|
|
@@ -2067,7 +2067,7 @@ function ro(u, e, t, n) {
|
|
|
2067
2067
|
if (!u.md.validateLink(f))
|
|
2068
2068
|
return !1;
|
|
2069
2069
|
r = l.pos;
|
|
2070
|
-
const
|
|
2070
|
+
const h = r, p = c, d = r;
|
|
2071
2071
|
for (; r < o; r++) {
|
|
2072
2072
|
const k = s.charCodeAt(r);
|
|
2073
2073
|
if (k === 10) {
|
|
@@ -2082,14 +2082,14 @@ function ro(u, e, t, n) {
|
|
|
2082
2082
|
s += k, r = o, o = s.length, c++, x = u.md.helpers.parseLinkTitle(s, r, o, x);
|
|
2083
2083
|
}
|
|
2084
2084
|
let _;
|
|
2085
|
-
for (r < o && d !== r && x.ok ? (_ = x.str, r = x.pos) : (_ = "", r =
|
|
2085
|
+
for (r < o && d !== r && x.ok ? (_ = x.str, r = x.pos) : (_ = "", r = h, c = p); r < o; ) {
|
|
2086
2086
|
const k = s.charCodeAt(r);
|
|
2087
2087
|
if (!P(k))
|
|
2088
2088
|
break;
|
|
2089
2089
|
r++;
|
|
2090
2090
|
}
|
|
2091
2091
|
if (r < o && s.charCodeAt(r) !== 10 && _)
|
|
2092
|
-
for (_ = "", r =
|
|
2092
|
+
for (_ = "", r = h, c = p; r < o; ) {
|
|
2093
2093
|
const k = s.charCodeAt(r);
|
|
2094
2094
|
if (!P(k))
|
|
2095
2095
|
break;
|
|
@@ -2097,8 +2097,8 @@ function ro(u, e, t, n) {
|
|
|
2097
2097
|
}
|
|
2098
2098
|
if (r < o && s.charCodeAt(r) !== 10)
|
|
2099
2099
|
return !1;
|
|
2100
|
-
const
|
|
2101
|
-
return
|
|
2100
|
+
const C = ke(s.slice(1, a));
|
|
2101
|
+
return C ? (n || (typeof u.env.references > "u" && (u.env.references = {}), typeof u.env.references[C] > "u" && (u.env.references[C] = { title: _, href: f }), u.line = c), !0) : !1;
|
|
2102
2102
|
}
|
|
2103
2103
|
const oo = [
|
|
2104
2104
|
"address",
|
|
@@ -2163,7 +2163,7 @@ const oo = [
|
|
|
2163
2163
|
"tr",
|
|
2164
2164
|
"track",
|
|
2165
2165
|
"ul"
|
|
2166
|
-
], co = "[a-zA-Z_:][a-zA-Z0-9:._-]*", io = "[^\"'=<>`\\x00-\\x20]+", so = "'[^']*'", ao = '"[^"]*"', lo = "(?:" + io + "|" + so + "|" + ao + ")", fo = "(?:\\s+" + co + "(?:\\s*=\\s*" + lo + ")?)", u0 = "<[A-Za-z][A-Za-z0-9\\-]*" + fo + "*\\s*\\/?>", e0 = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",
|
|
2166
|
+
], co = "[a-zA-Z_:][a-zA-Z0-9:._-]*", io = "[^\"'=<>`\\x00-\\x20]+", so = "'[^']*'", ao = '"[^"]*"', lo = "(?:" + io + "|" + so + "|" + ao + ")", fo = "(?:\\s+" + co + "(?:\\s*=\\s*" + lo + ")?)", u0 = "<[A-Za-z][A-Za-z0-9\\-]*" + fo + "*\\s*\\/?>", e0 = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", po = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->", ho = "<[?][\\s\\S]*?[?]>", bo = "<![A-Za-z][^>]*>", mo = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", xo = new RegExp("^(?:" + u0 + "|" + e0 + "|" + po + "|" + ho + "|" + bo + "|" + mo + ")"), go = new RegExp("^(?:" + u0 + "|" + e0 + ")"), Bu = [
|
|
2167
2167
|
[/^<(script|pre|style|textarea)(?=(\s|>|$))/i, /<\/(script|pre|style|textarea)>/i, !0],
|
|
2168
2168
|
[/^<!--/, /-->/, !0],
|
|
2169
2169
|
[/^<\?/, /\?>/, !0],
|
|
@@ -2219,7 +2219,7 @@ function ko(u, e, t, n) {
|
|
|
2219
2219
|
const f = u.push("heading_close", "h" + String(i), -1);
|
|
2220
2220
|
return f.markup = "########".slice(0, i), !0;
|
|
2221
2221
|
}
|
|
2222
|
-
function
|
|
2222
|
+
function yo(u, e, t) {
|
|
2223
2223
|
const n = u.md.block.ruler.getRules("paragraph");
|
|
2224
2224
|
if (u.sCount[e] - u.blkIndent >= 4)
|
|
2225
2225
|
return !1;
|
|
@@ -2230,22 +2230,22 @@ function vo(u, e, t) {
|
|
|
2230
2230
|
if (u.sCount[i] - u.blkIndent > 3)
|
|
2231
2231
|
continue;
|
|
2232
2232
|
if (u.sCount[i] >= u.blkIndent) {
|
|
2233
|
-
let
|
|
2233
|
+
let p = u.bMarks[i] + u.tShift[i];
|
|
2234
2234
|
const d = u.eMarks[i];
|
|
2235
|
-
if (
|
|
2235
|
+
if (p < d && (c = u.src.charCodeAt(p), (c === 45 || c === 61) && (p = u.skipChars(p, c), p = u.skipSpaces(p), p >= d))) {
|
|
2236
2236
|
o = c === 61 ? 1 : 2;
|
|
2237
2237
|
break;
|
|
2238
2238
|
}
|
|
2239
2239
|
}
|
|
2240
2240
|
if (u.sCount[i] < 0)
|
|
2241
2241
|
continue;
|
|
2242
|
-
let
|
|
2243
|
-
for (let
|
|
2244
|
-
if (n[
|
|
2245
|
-
|
|
2242
|
+
let h = !1;
|
|
2243
|
+
for (let p = 0, d = n.length; p < d; p++)
|
|
2244
|
+
if (n[p](u, i, t, !0)) {
|
|
2245
|
+
h = !0;
|
|
2246
2246
|
break;
|
|
2247
2247
|
}
|
|
2248
|
-
if (
|
|
2248
|
+
if (h)
|
|
2249
2249
|
break;
|
|
2250
2250
|
}
|
|
2251
2251
|
if (!o)
|
|
@@ -2259,7 +2259,7 @@ function vo(u, e, t) {
|
|
|
2259
2259
|
const f = u.push("heading_close", "h" + String(o), -1);
|
|
2260
2260
|
return f.markup = String.fromCharCode(c), u.parentType = r, !0;
|
|
2261
2261
|
}
|
|
2262
|
-
function
|
|
2262
|
+
function vo(u, e, t) {
|
|
2263
2263
|
const n = u.md.block.ruler.getRules("paragraph"), r = u.parentType;
|
|
2264
2264
|
let o = e + 1;
|
|
2265
2265
|
for (u.parentType = "paragraph"; o < t && !u.isEmpty(o); o++) {
|
|
@@ -2293,15 +2293,15 @@ const se = [
|
|
|
2293
2293
|
["reference", ro],
|
|
2294
2294
|
["html_block", _o, ["paragraph", "reference", "blockquote"]],
|
|
2295
2295
|
["heading", ko, ["paragraph", "reference", "blockquote"]],
|
|
2296
|
-
["lheading",
|
|
2297
|
-
["paragraph",
|
|
2296
|
+
["lheading", yo],
|
|
2297
|
+
["paragraph", vo]
|
|
2298
2298
|
];
|
|
2299
|
-
function
|
|
2299
|
+
function ye() {
|
|
2300
2300
|
this.ruler = new Y();
|
|
2301
2301
|
for (let u = 0; u < se.length; u++)
|
|
2302
2302
|
this.ruler.push(se[u][0], se[u][1], { alt: (se[u][2] || []).slice() });
|
|
2303
2303
|
}
|
|
2304
|
-
|
|
2304
|
+
ye.prototype.tokenize = function(u, e, t) {
|
|
2305
2305
|
const n = this.ruler.getRules(""), r = n.length, o = u.md.options.maxNesting;
|
|
2306
2306
|
let c = e, i = !1;
|
|
2307
2307
|
for (; c < t && (u.line = c = u.skipEmptyLines(c), !(c >= t || u.sCount[c] < u.blkIndent)); ) {
|
|
@@ -2321,13 +2321,13 @@ ve.prototype.tokenize = function(u, e, t) {
|
|
|
2321
2321
|
u.tight = !i, u.isEmpty(u.line - 1) && (i = !0), c = u.line, c < t && u.isEmpty(c) && (i = !0, c++, u.line = c);
|
|
2322
2322
|
}
|
|
2323
2323
|
};
|
|
2324
|
-
|
|
2324
|
+
ye.prototype.parse = function(u, e, t, n) {
|
|
2325
2325
|
if (!u)
|
|
2326
2326
|
return;
|
|
2327
2327
|
const r = new this.State(u, e, t, n);
|
|
2328
2328
|
this.tokenize(r, r.line, r.lineMax);
|
|
2329
2329
|
};
|
|
2330
|
-
|
|
2330
|
+
ye.prototype.State = gu;
|
|
2331
2331
|
function ne(u, e, t, n) {
|
|
2332
2332
|
this.src = u, this.env = t, this.md = e, this.tokens = n, this.tokens_meta = Array(n.length), this.pos = 0, this.posMax = this.src.length, this.level = 0, this.pending = "", this.pendingLevel = 0, this.cache = {}, this.delimiters = [], this._prev_delimiters = [], this.backticks = {}, this.backticksScanned = !1, this.linkLevel = 0;
|
|
2333
2333
|
}
|
|
@@ -2346,8 +2346,8 @@ ne.prototype.scanDelims = function(u, e) {
|
|
|
2346
2346
|
let o = u;
|
|
2347
2347
|
for (; o < t && this.src.charCodeAt(o) === n; )
|
|
2348
2348
|
o++;
|
|
2349
|
-
const c = o - u, i = o < t ? this.src.charCodeAt(o) : 32, s = Ju(r) || Gu(String.fromCharCode(r)), a = Ju(i) || Gu(String.fromCharCode(i)), l = Wu(r), f = Wu(i),
|
|
2350
|
-
return { can_open:
|
|
2349
|
+
const c = o - u, i = o < t ? this.src.charCodeAt(o) : 32, s = Ju(r) || Gu(String.fromCharCode(r)), a = Ju(i) || Gu(String.fromCharCode(i)), l = Wu(r), f = Wu(i), h = !f && (!a || l || s), p = !l && (!s || f || a);
|
|
2350
|
+
return { can_open: h && (e || !p || s), can_close: p && (e || !h || a), length: c };
|
|
2351
2351
|
};
|
|
2352
2352
|
ne.prototype.Token = cu;
|
|
2353
2353
|
function Co(u) {
|
|
@@ -2595,10 +2595,10 @@ function $o(u, e) {
|
|
|
2595
2595
|
let t, n, r, o, c = "", i = "", s = u.pos, a = !0;
|
|
2596
2596
|
if (u.src.charCodeAt(u.pos) !== 91)
|
|
2597
2597
|
return !1;
|
|
2598
|
-
const l = u.pos, f = u.posMax,
|
|
2599
|
-
if (
|
|
2598
|
+
const l = u.pos, f = u.posMax, h = u.pos + 1, p = u.md.helpers.parseLinkLabel(u, u.pos, !0);
|
|
2599
|
+
if (p < 0)
|
|
2600
2600
|
return !1;
|
|
2601
|
-
let d =
|
|
2601
|
+
let d = p + 1;
|
|
2602
2602
|
if (d < f && u.src.charCodeAt(d) === 40) {
|
|
2603
2603
|
for (a = !1, d++; d < f && (t = u.src.charCodeAt(d), !(!P(t) && t !== 10)); d++)
|
|
2604
2604
|
;
|
|
@@ -2616,12 +2616,12 @@ function $o(u, e) {
|
|
|
2616
2616
|
if (a) {
|
|
2617
2617
|
if (typeof u.env.references > "u")
|
|
2618
2618
|
return !1;
|
|
2619
|
-
if (d < f && u.src.charCodeAt(d) === 91 ? (s = d + 1, d = u.md.helpers.parseLinkLabel(u, d), d >= 0 ? n = u.src.slice(s, d++) : d =
|
|
2619
|
+
if (d < f && u.src.charCodeAt(d) === 91 ? (s = d + 1, d = u.md.helpers.parseLinkLabel(u, d), d >= 0 ? n = u.src.slice(s, d++) : d = p + 1) : d = p + 1, n || (n = u.src.slice(h, p)), o = u.env.references[ke(n)], !o)
|
|
2620
2620
|
return u.pos = l, !1;
|
|
2621
2621
|
c = o.href, i = o.title;
|
|
2622
2622
|
}
|
|
2623
2623
|
if (!e) {
|
|
2624
|
-
u.pos =
|
|
2624
|
+
u.pos = h, u.posMax = p;
|
|
2625
2625
|
const x = u.push("link_open", "a", 1), _ = [["href", c]];
|
|
2626
2626
|
x.attrs = _, i && _.push(["title", i]), u.linkLevel++, u.md.inline.tokenize(u), u.linkLevel--, u.push("link_close", "a", -1);
|
|
2627
2627
|
}
|
|
@@ -2629,36 +2629,36 @@ function $o(u, e) {
|
|
|
2629
2629
|
}
|
|
2630
2630
|
function Lo(u, e) {
|
|
2631
2631
|
let t, n, r, o, c, i, s, a, l = "";
|
|
2632
|
-
const f = u.pos,
|
|
2632
|
+
const f = u.pos, h = u.posMax;
|
|
2633
2633
|
if (u.src.charCodeAt(u.pos) !== 33 || u.src.charCodeAt(u.pos + 1) !== 91)
|
|
2634
2634
|
return !1;
|
|
2635
|
-
const
|
|
2635
|
+
const p = u.pos + 2, d = u.md.helpers.parseLinkLabel(u, u.pos + 1, !1);
|
|
2636
2636
|
if (d < 0)
|
|
2637
2637
|
return !1;
|
|
2638
|
-
if (o = d + 1, o <
|
|
2639
|
-
for (o++; o <
|
|
2638
|
+
if (o = d + 1, o < h && u.src.charCodeAt(o) === 40) {
|
|
2639
|
+
for (o++; o < h && (t = u.src.charCodeAt(o), !(!P(t) && t !== 10)); o++)
|
|
2640
2640
|
;
|
|
2641
|
-
if (o >=
|
|
2641
|
+
if (o >= h)
|
|
2642
2642
|
return !1;
|
|
2643
|
-
for (a = o, i = u.md.helpers.parseLinkDestination(u.src, o, u.posMax), i.ok && (l = u.md.normalizeLink(i.str), u.md.validateLink(l) ? o = i.pos : l = ""), a = o; o <
|
|
2643
|
+
for (a = o, i = u.md.helpers.parseLinkDestination(u.src, o, u.posMax), i.ok && (l = u.md.normalizeLink(i.str), u.md.validateLink(l) ? o = i.pos : l = ""), a = o; o < h && (t = u.src.charCodeAt(o), !(!P(t) && t !== 10)); o++)
|
|
2644
2644
|
;
|
|
2645
|
-
if (i = u.md.helpers.parseLinkTitle(u.src, o, u.posMax), o <
|
|
2646
|
-
for (s = i.str, o = i.pos; o <
|
|
2645
|
+
if (i = u.md.helpers.parseLinkTitle(u.src, o, u.posMax), o < h && a !== o && i.ok)
|
|
2646
|
+
for (s = i.str, o = i.pos; o < h && (t = u.src.charCodeAt(o), !(!P(t) && t !== 10)); o++)
|
|
2647
2647
|
;
|
|
2648
2648
|
else
|
|
2649
2649
|
s = "";
|
|
2650
|
-
if (o >=
|
|
2650
|
+
if (o >= h || u.src.charCodeAt(o) !== 41)
|
|
2651
2651
|
return u.pos = f, !1;
|
|
2652
2652
|
o++;
|
|
2653
2653
|
} else {
|
|
2654
2654
|
if (typeof u.env.references > "u")
|
|
2655
2655
|
return !1;
|
|
2656
|
-
if (o <
|
|
2656
|
+
if (o < h && u.src.charCodeAt(o) === 91 ? (a = o + 1, o = u.md.helpers.parseLinkLabel(u, o), o >= 0 ? r = u.src.slice(a, o++) : o = d + 1) : o = d + 1, r || (r = u.src.slice(p, d)), c = u.env.references[ke(r)], !c)
|
|
2657
2657
|
return u.pos = f, !1;
|
|
2658
2658
|
l = c.href, s = c.title;
|
|
2659
2659
|
}
|
|
2660
2660
|
if (!e) {
|
|
2661
|
-
n = u.src.slice(
|
|
2661
|
+
n = u.src.slice(p, d);
|
|
2662
2662
|
const x = [];
|
|
2663
2663
|
u.md.inline.parse(
|
|
2664
2664
|
n,
|
|
@@ -2666,10 +2666,10 @@ function Lo(u, e) {
|
|
|
2666
2666
|
u.env,
|
|
2667
2667
|
x
|
|
2668
2668
|
);
|
|
2669
|
-
const _ = u.push("image", "img", 0),
|
|
2670
|
-
_.attrs =
|
|
2669
|
+
const _ = u.push("image", "img", 0), C = [["src", l], ["alt", ""]];
|
|
2670
|
+
_.attrs = C, _.children = x, _.content = n, s && C.push(["title", s]);
|
|
2671
2671
|
}
|
|
2672
|
-
return u.pos = o, u.posMax =
|
|
2672
|
+
return u.pos = o, u.posMax = h, !0;
|
|
2673
2673
|
}
|
|
2674
2674
|
const Mo = /^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/, Ro = /^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;
|
|
2675
2675
|
function Io(u, e) {
|
|
@@ -2784,10 +2784,10 @@ function At(u) {
|
|
|
2784
2784
|
for (; a > s; a -= o[a] + 1) {
|
|
2785
2785
|
const f = u[a];
|
|
2786
2786
|
if (f.marker === i.marker && f.open && f.end < 0) {
|
|
2787
|
-
let
|
|
2788
|
-
if ((f.close || i.open) && (f.length + i.length) % 3 === 0 && (f.length % 3 !== 0 || i.length % 3 !== 0) && (
|
|
2789
|
-
const
|
|
2790
|
-
o[c] = c - a +
|
|
2787
|
+
let h = !1;
|
|
2788
|
+
if ((f.close || i.open) && (f.length + i.length) % 3 === 0 && (f.length % 3 !== 0 || i.length % 3 !== 0) && (h = !0), !h) {
|
|
2789
|
+
const p = a > 0 && !u[a - 1].open ? o[a - 1] + 1 : 0;
|
|
2790
|
+
o[c] = c - a + p, o[a] = p, i.open = !1, f.end = c, f.close = !1, l = -1, r = -2;
|
|
2791
2791
|
break;
|
|
2792
2792
|
}
|
|
2793
2793
|
}
|
|
@@ -2904,20 +2904,20 @@ function Pe(u) {
|
|
|
2904
2904
|
});
|
|
2905
2905
|
}), u;
|
|
2906
2906
|
}
|
|
2907
|
-
function
|
|
2907
|
+
function ve(u) {
|
|
2908
2908
|
return Object.prototype.toString.call(u);
|
|
2909
2909
|
}
|
|
2910
2910
|
function Jo(u) {
|
|
2911
|
-
return
|
|
2911
|
+
return ve(u) === "[object String]";
|
|
2912
2912
|
}
|
|
2913
2913
|
function Xo(u) {
|
|
2914
|
-
return
|
|
2914
|
+
return ve(u) === "[object Object]";
|
|
2915
2915
|
}
|
|
2916
2916
|
function Qo(u) {
|
|
2917
|
-
return
|
|
2917
|
+
return ve(u) === "[object RegExp]";
|
|
2918
2918
|
}
|
|
2919
2919
|
function Ft(u) {
|
|
2920
|
-
return
|
|
2920
|
+
return ve(u) === "[object Function]";
|
|
2921
2921
|
}
|
|
2922
2922
|
function Yo(u) {
|
|
2923
2923
|
return u.replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&");
|
|
@@ -3085,7 +3085,7 @@ const Lu = 2147483647, au = 36, rt = 1, Xu = 26, cc = 38, ic = 700, o0 = 72, c0
|
|
|
3085
3085
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
3086
3086
|
"invalid-input": "Invalid input"
|
|
3087
3087
|
}, $e = au - rt, lu = Math.floor, Le = String.fromCharCode;
|
|
3088
|
-
function
|
|
3088
|
+
function vu(u) {
|
|
3089
3089
|
throw new RangeError(fc[u]);
|
|
3090
3090
|
}
|
|
3091
3091
|
function dc(u, e) {
|
|
@@ -3116,7 +3116,7 @@ function a0(u) {
|
|
|
3116
3116
|
}
|
|
3117
3117
|
return e;
|
|
3118
3118
|
}
|
|
3119
|
-
const
|
|
3119
|
+
const pc = (u) => String.fromCodePoint(...u), hc = function(u) {
|
|
3120
3120
|
return u >= 48 && u < 58 ? 26 + (u - 48) : u >= 65 && u < 91 ? u - 65 : u >= 97 && u < 123 ? u - 97 : au;
|
|
3121
3121
|
}, qt = function(u, e) {
|
|
3122
3122
|
return u + 22 + 75 * (u < 26) - ((e != 0) << 5);
|
|
@@ -3130,21 +3130,21 @@ const hc = (u) => String.fromCodePoint(...u), pc = function(u) {
|
|
|
3130
3130
|
let n = 0, r = c0, o = o0, c = u.lastIndexOf(i0);
|
|
3131
3131
|
c < 0 && (c = 0);
|
|
3132
3132
|
for (let i = 0; i < c; ++i)
|
|
3133
|
-
u.charCodeAt(i) >= 128 &&
|
|
3133
|
+
u.charCodeAt(i) >= 128 && vu("not-basic"), e.push(u.charCodeAt(i));
|
|
3134
3134
|
for (let i = c > 0 ? c + 1 : 0; i < t; ) {
|
|
3135
3135
|
const s = n;
|
|
3136
3136
|
for (let l = 1, f = au; ; f += au) {
|
|
3137
|
-
i >= t &&
|
|
3138
|
-
const
|
|
3139
|
-
|
|
3140
|
-
const
|
|
3141
|
-
if (
|
|
3137
|
+
i >= t && vu("invalid-input");
|
|
3138
|
+
const h = hc(u.charCodeAt(i++));
|
|
3139
|
+
h >= au && vu("invalid-input"), h > lu((Lu - n) / l) && vu("overflow"), n += h * l;
|
|
3140
|
+
const p = f <= o ? rt : f >= o + Xu ? Xu : f - o;
|
|
3141
|
+
if (h < p)
|
|
3142
3142
|
break;
|
|
3143
|
-
const d = au -
|
|
3144
|
-
l > lu(Lu / d) &&
|
|
3143
|
+
const d = au - p;
|
|
3144
|
+
l > lu(Lu / d) && vu("overflow"), l *= d;
|
|
3145
3145
|
}
|
|
3146
3146
|
const a = e.length + 1;
|
|
3147
|
-
o = l0(n - s, a, s == 0), lu(n / a) > Lu - r &&
|
|
3147
|
+
o = l0(n - s, a, s == 0), lu(n / a) > Lu - r && vu("overflow"), r += lu(n / a), n %= a, e.splice(n++, 0, r);
|
|
3148
3148
|
}
|
|
3149
3149
|
return String.fromCodePoint(...e);
|
|
3150
3150
|
}, d0 = function(u) {
|
|
@@ -3161,17 +3161,17 @@ const hc = (u) => String.fromCodePoint(...u), pc = function(u) {
|
|
|
3161
3161
|
for (const l of u)
|
|
3162
3162
|
l >= n && l < s && (s = l);
|
|
3163
3163
|
const a = i + 1;
|
|
3164
|
-
s - n > lu((Lu - r) / a) &&
|
|
3164
|
+
s - n > lu((Lu - r) / a) && vu("overflow"), r += (s - n) * a, n = s;
|
|
3165
3165
|
for (const l of u)
|
|
3166
|
-
if (l < n && ++r > Lu &&
|
|
3166
|
+
if (l < n && ++r > Lu && vu("overflow"), l === n) {
|
|
3167
3167
|
let f = r;
|
|
3168
|
-
for (let
|
|
3169
|
-
const
|
|
3170
|
-
if (f <
|
|
3168
|
+
for (let h = au; ; h += au) {
|
|
3169
|
+
const p = h <= o ? rt : h >= o + Xu ? Xu : h - o;
|
|
3170
|
+
if (f < p)
|
|
3171
3171
|
break;
|
|
3172
|
-
const d = f -
|
|
3172
|
+
const d = f - p, x = au - p;
|
|
3173
3173
|
e.push(
|
|
3174
|
-
Le(qt(
|
|
3174
|
+
Le(qt(p + d % x, 0))
|
|
3175
3175
|
), f = lu(d / x);
|
|
3176
3176
|
}
|
|
3177
3177
|
e.push(Le(qt(f, 0))), o = l0(r, a, i === c), r = 0, ++i;
|
|
@@ -3187,7 +3187,7 @@ const hc = (u) => String.fromCodePoint(...u), pc = function(u) {
|
|
|
3187
3187
|
return s0(u, function(e) {
|
|
3188
3188
|
return ac.test(e) ? "xn--" + d0(e) : e;
|
|
3189
3189
|
});
|
|
3190
|
-
},
|
|
3190
|
+
}, p0 = {
|
|
3191
3191
|
/**
|
|
3192
3192
|
* A string representing the current Punycode.js version number.
|
|
3193
3193
|
* @memberOf punycode
|
|
@@ -3203,7 +3203,7 @@ const hc = (u) => String.fromCodePoint(...u), pc = function(u) {
|
|
|
3203
3203
|
*/
|
|
3204
3204
|
ucs2: {
|
|
3205
3205
|
decode: a0,
|
|
3206
|
-
encode:
|
|
3206
|
+
encode: pc
|
|
3207
3207
|
},
|
|
3208
3208
|
decode: f0,
|
|
3209
3209
|
encode: d0,
|
|
@@ -3378,26 +3378,26 @@ const hc = (u) => String.fromCodePoint(...u), pc = function(u) {
|
|
|
3378
3378
|
default: xc,
|
|
3379
3379
|
zero: gc,
|
|
3380
3380
|
commonmark: _c
|
|
3381
|
-
},
|
|
3381
|
+
}, yc = /^(vbscript|javascript|file|data):/, vc = /^data:image\/(gif|png|jpeg|webp);/;
|
|
3382
3382
|
function Cc(u) {
|
|
3383
3383
|
const e = u.trim().toLowerCase();
|
|
3384
|
-
return
|
|
3384
|
+
return yc.test(e) ? vc.test(e) : !0;
|
|
3385
3385
|
}
|
|
3386
|
-
const
|
|
3386
|
+
const h0 = ["http:", "https:", "mailto:"];
|
|
3387
3387
|
function Dc(u) {
|
|
3388
3388
|
const e = Ye(u, !0);
|
|
3389
|
-
if (e.hostname && (!e.protocol ||
|
|
3389
|
+
if (e.hostname && (!e.protocol || h0.indexOf(e.protocol) >= 0))
|
|
3390
3390
|
try {
|
|
3391
|
-
e.hostname =
|
|
3391
|
+
e.hostname = p0.toASCII(e.hostname);
|
|
3392
3392
|
} catch {
|
|
3393
3393
|
}
|
|
3394
3394
|
return te(Qe(e));
|
|
3395
3395
|
}
|
|
3396
3396
|
function Ec(u) {
|
|
3397
3397
|
const e = Ye(u, !0);
|
|
3398
|
-
if (e.hostname && (!e.protocol ||
|
|
3398
|
+
if (e.hostname && (!e.protocol || h0.indexOf(e.protocol) >= 0))
|
|
3399
3399
|
try {
|
|
3400
|
-
e.hostname =
|
|
3400
|
+
e.hostname = p0.toUnicode(e.hostname);
|
|
3401
3401
|
} catch {
|
|
3402
3402
|
}
|
|
3403
3403
|
return Iu(Qe(e), Iu.defaultChars + "%");
|
|
@@ -3405,7 +3405,7 @@ function Ec(u) {
|
|
|
3405
3405
|
function ou(u, e) {
|
|
3406
3406
|
if (!(this instanceof ou))
|
|
3407
3407
|
return new ou(u, e);
|
|
3408
|
-
e || ut(u) || (e = u || {}, u = "default"), this.inline = new re(), this.block = new
|
|
3408
|
+
e || ut(u) || (e = u || {}, u = "default"), this.inline = new re(), this.block = new ye(), this.core = new tt(), this.renderer = new Hu(), this.linkify = new nu(), this.validateLink = Cc, this.normalizeLink = Dc, this.normalizeLinkText = Ec, this.utils = wr, this.helpers = _e({}, qr), this.options = {}, this.configure(u), e && this.set(e);
|
|
3409
3409
|
}
|
|
3410
3410
|
ou.prototype.set = function(u) {
|
|
3411
3411
|
return _e(this.options, u), this;
|
|
@@ -3492,8 +3492,8 @@ function wc() {
|
|
|
3492
3492
|
const c = [], i = { children: [] };
|
|
3493
3493
|
let s = i;
|
|
3494
3494
|
return r.forEach((a) => {
|
|
3495
|
-
var _,
|
|
3496
|
-
const { type: l, children: f, content:
|
|
3495
|
+
var _, C, k, E, y, w, q, B, N, v, S;
|
|
3496
|
+
const { type: l, children: f, content: h, attrs: p, tag: d, hidden: x } = a;
|
|
3497
3497
|
switch (l) {
|
|
3498
3498
|
case "heading_open":
|
|
3499
3499
|
case "paragraph_open":
|
|
@@ -3515,11 +3515,11 @@ function wc() {
|
|
|
3515
3515
|
const m = {
|
|
3516
3516
|
tag: (o == null ? void 0 : o[d]) ?? d,
|
|
3517
3517
|
children: [],
|
|
3518
|
-
attrs:
|
|
3518
|
+
attrs: p ? Object.fromEntries(p) : {}
|
|
3519
3519
|
};
|
|
3520
3520
|
if (l === "link_open") {
|
|
3521
|
-
const z = a.attrGet("href") ?? "",
|
|
3522
|
-
z != null && z.startsWith("http") && !z.includes(
|
|
3521
|
+
const z = a.attrGet("href") ?? "", T = document.location.origin;
|
|
3522
|
+
z != null && z.startsWith("http") && !z.includes(T) && (m.attrs.target = "_blank", m.attrs.rel = "noopener noreferrer", m.attrs.dataOuter = "", (_ = m.children) == null || _.push({ tag: En }));
|
|
3523
3523
|
}
|
|
3524
3524
|
if (l === "table_open") {
|
|
3525
3525
|
const z = {
|
|
@@ -3527,7 +3527,7 @@ function wc() {
|
|
|
3527
3527
|
children: [],
|
|
3528
3528
|
attrs: { class: "sq-article-table" }
|
|
3529
3529
|
};
|
|
3530
|
-
(
|
|
3530
|
+
(C = s.children) == null || C.push(z), c.push(s), s = z;
|
|
3531
3531
|
}
|
|
3532
3532
|
(k = s.children) == null || k.push(m), c.push(s), s = m;
|
|
3533
3533
|
break;
|
|
@@ -3555,28 +3555,28 @@ function wc() {
|
|
|
3555
3555
|
case "code_inline": {
|
|
3556
3556
|
(E = s.children) == null || E.push({
|
|
3557
3557
|
tag: (o == null ? void 0 : o[d]) ?? d,
|
|
3558
|
-
children: [
|
|
3559
|
-
attrs:
|
|
3558
|
+
children: [h],
|
|
3559
|
+
attrs: p ? Object.fromEntries(p) : {}
|
|
3560
3560
|
});
|
|
3561
3561
|
break;
|
|
3562
3562
|
}
|
|
3563
3563
|
case "inline": {
|
|
3564
3564
|
if (f) {
|
|
3565
3565
|
const m = n(f, o);
|
|
3566
|
-
(
|
|
3566
|
+
(y = s.children) == null || y.push(...m ?? []);
|
|
3567
3567
|
} else
|
|
3568
|
-
(w = s.children) == null || w.push(
|
|
3568
|
+
(w = s.children) == null || w.push(h);
|
|
3569
3569
|
break;
|
|
3570
3570
|
}
|
|
3571
3571
|
case "text": {
|
|
3572
|
-
(q = s.children) == null || q.push(
|
|
3572
|
+
(q = s.children) == null || q.push(h);
|
|
3573
3573
|
break;
|
|
3574
3574
|
}
|
|
3575
3575
|
case "image": {
|
|
3576
|
-
(
|
|
3576
|
+
(B = s.children) == null || B.push({
|
|
3577
3577
|
tag: (o == null ? void 0 : o[d]) ?? d,
|
|
3578
3578
|
children: [],
|
|
3579
|
-
attrs:
|
|
3579
|
+
attrs: p ? Object.fromEntries(p) : {}
|
|
3580
3580
|
});
|
|
3581
3581
|
break;
|
|
3582
3582
|
}
|
|
@@ -3587,19 +3587,19 @@ function wc() {
|
|
|
3587
3587
|
break;
|
|
3588
3588
|
}
|
|
3589
3589
|
case "input": {
|
|
3590
|
-
const m =
|
|
3590
|
+
const m = p ? Object.fromEntries(p) : {}, z = m.type ?? "text", T = `${d}-${z}`;
|
|
3591
3591
|
(v = s.children) == null || v.push({
|
|
3592
|
-
tag: (o == null ? void 0 : o[
|
|
3592
|
+
tag: (o == null ? void 0 : o[T]) ?? d,
|
|
3593
3593
|
children: [],
|
|
3594
3594
|
attrs: m
|
|
3595
3595
|
});
|
|
3596
3596
|
break;
|
|
3597
3597
|
}
|
|
3598
3598
|
case "html_inline": {
|
|
3599
|
-
if (
|
|
3599
|
+
if (h.startsWith("</"))
|
|
3600
3600
|
s = c.pop();
|
|
3601
3601
|
else {
|
|
3602
|
-
const m =
|
|
3602
|
+
const m = h.replace("<", "").replace(">", ""), z = {
|
|
3603
3603
|
tag: (o == null ? void 0 : o[m]) ?? m,
|
|
3604
3604
|
children: []
|
|
3605
3605
|
};
|
|
@@ -3644,7 +3644,7 @@ function Ac() {
|
|
|
3644
3644
|
throttle: u
|
|
3645
3645
|
};
|
|
3646
3646
|
}
|
|
3647
|
-
const { md2tokens: Fc, tokens2vueh: Sc } = wc(), qc = "sq-article",
|
|
3647
|
+
const { md2tokens: Fc, tokens2vueh: Sc } = wc(), qc = "sq-article", ha = L({
|
|
3648
3648
|
name: qc,
|
|
3649
3649
|
props: {
|
|
3650
3650
|
text: {
|
|
@@ -3732,11 +3732,11 @@ const { md2tokens: Fc, tokens2vueh: Sc } = wc(), qc = "sq-article", pa = L({
|
|
|
3732
3732
|
},
|
|
3733
3733
|
setup(u) {
|
|
3734
3734
|
const { throttle: e } = Ac(), t = e(s), n = new ResizeObserver(a), r = u, o = j(100), c = j(0), i = D(() => c.value > r.visibilityHeight);
|
|
3735
|
-
|
|
3736
|
-
var
|
|
3735
|
+
yu(() => {
|
|
3736
|
+
var h;
|
|
3737
3737
|
a(), t(), window.addEventListener("scroll", t);
|
|
3738
3738
|
const f = document.querySelector(r.target) ?? document.body;
|
|
3739
|
-
n.observe(f), (
|
|
3739
|
+
n.observe(f), (h = window.visualViewport) == null || h.addEventListener("resize", a);
|
|
3740
3740
|
}), xe(() => {
|
|
3741
3741
|
var f;
|
|
3742
3742
|
window.removeEventListener("scroll", t), n.disconnect(), (f = window.visualViewport) == null || f.removeEventListener("resize", a);
|
|
@@ -3745,35 +3745,35 @@ const { md2tokens: Fc, tokens2vueh: Sc } = wc(), qc = "sq-article", pa = L({
|
|
|
3745
3745
|
c.value = window.scrollY;
|
|
3746
3746
|
}
|
|
3747
3747
|
function a() {
|
|
3748
|
-
const f = (document.scrollingElement ?? document.body).scrollHeight,
|
|
3749
|
-
o.value = f -
|
|
3748
|
+
const f = (document.scrollingElement ?? document.body).scrollHeight, h = window.innerHeight;
|
|
3749
|
+
o.value = f - h;
|
|
3750
3750
|
}
|
|
3751
3751
|
function l() {
|
|
3752
3752
|
window.scrollTo({ top: 0, behavior: "smooth" });
|
|
3753
3753
|
}
|
|
3754
|
-
return (f,
|
|
3754
|
+
return (f, h) => (g(), $(Yu, {
|
|
3755
3755
|
name: r.transition
|
|
3756
3756
|
}, {
|
|
3757
3757
|
default: Q(() => {
|
|
3758
|
-
var
|
|
3758
|
+
var p, d, x;
|
|
3759
3759
|
return [
|
|
3760
3760
|
fu(F("div", $c, [
|
|
3761
3761
|
F("div", {
|
|
3762
3762
|
class: "sq-backtop-wrap",
|
|
3763
3763
|
onClick: l
|
|
3764
3764
|
}, [
|
|
3765
|
-
r.progress ? (g(),
|
|
3765
|
+
r.progress ? (g(), $(b(js), {
|
|
3766
3766
|
key: 0,
|
|
3767
3767
|
variant: "circle",
|
|
3768
3768
|
label: !1,
|
|
3769
3769
|
value: c.value,
|
|
3770
3770
|
max: o.value,
|
|
3771
|
-
type: (
|
|
3771
|
+
type: (p = r.progressProps) == null ? void 0 : p.type,
|
|
3772
3772
|
stroke: (d = r.progressProps) == null ? void 0 : d.stroke,
|
|
3773
3773
|
color: (x = r.progressProps) == null ? void 0 : x.color
|
|
3774
3774
|
}, null, 8, ["value", "max", "type", "stroke", "color"])) : O("", !0),
|
|
3775
3775
|
H(f.$slots, "default", {}, () => [
|
|
3776
|
-
(g(),
|
|
3776
|
+
(g(), $(ku(r.icon)))
|
|
3777
3777
|
])
|
|
3778
3778
|
])
|
|
3779
3779
|
], 512), [
|
|
@@ -3788,7 +3788,7 @@ const { md2tokens: Fc, tokens2vueh: Sc } = wc(), qc = "sq-article", pa = L({
|
|
|
3788
3788
|
name: Mc,
|
|
3789
3789
|
__name: "blur",
|
|
3790
3790
|
setup(u) {
|
|
3791
|
-
return (e, t) => (g(),
|
|
3791
|
+
return (e, t) => (g(), $(b(zu), { class: "sq-blur" }, {
|
|
3792
3792
|
default: Q(() => [
|
|
3793
3793
|
H(e.$slots, "default")
|
|
3794
3794
|
]),
|
|
@@ -3797,7 +3797,7 @@ const { md2tokens: Fc, tokens2vueh: Sc } = wc(), qc = "sq-article", pa = L({
|
|
|
3797
3797
|
}
|
|
3798
3798
|
});
|
|
3799
3799
|
function Ic(u) {
|
|
3800
|
-
const { getOption: e } = ee(), t =
|
|
3800
|
+
const { getOption: e } = ee(), t = pu(Uu, void 0), n = pu(b0, void 0), r = D(
|
|
3801
3801
|
() => b(n) ? void 0 : u.text
|
|
3802
3802
|
), o = D(
|
|
3803
3803
|
() => {
|
|
@@ -3837,7 +3837,7 @@ function Ic(u) {
|
|
|
3837
3837
|
return { btnTextType: r, btnSize: o, btnType: c, btnRound: i, btnDisabled: s };
|
|
3838
3838
|
}
|
|
3839
3839
|
function Oc(u) {
|
|
3840
|
-
const { getOption: e } = ee(), t =
|
|
3840
|
+
const { getOption: e } = ee(), t = pu(Uu, void 0), n = pu(x0, void 0), r = D(
|
|
3841
3841
|
() => {
|
|
3842
3842
|
var a, l;
|
|
3843
3843
|
return e(
|
|
@@ -3883,7 +3883,7 @@ function Oc(u) {
|
|
|
3883
3883
|
};
|
|
3884
3884
|
}
|
|
3885
3885
|
function Pc(u) {
|
|
3886
|
-
const { getOption: e } = ee(), t =
|
|
3886
|
+
const { getOption: e } = ee(), t = pu(Uu, void 0), n = pu(ot, void 0), r = D(
|
|
3887
3887
|
() => {
|
|
3888
3888
|
var s;
|
|
3889
3889
|
return e(u.size, (s = b(t)) == null ? void 0 : s.size, "md");
|
|
@@ -3907,7 +3907,7 @@ function Pc(u) {
|
|
|
3907
3907
|
return { inputSize: r, inputRound: o, inputDisabled: c, inputReadonly: i, id: n };
|
|
3908
3908
|
}
|
|
3909
3909
|
function Nc(u) {
|
|
3910
|
-
const { getOption: e } = ee(), t =
|
|
3910
|
+
const { getOption: e } = ee(), t = pu(Uu, void 0), n = pu(S0, void 0), r = D(
|
|
3911
3911
|
() => {
|
|
3912
3912
|
var a, l;
|
|
3913
3913
|
return e(
|
|
@@ -3953,7 +3953,7 @@ function Nc(u) {
|
|
|
3953
3953
|
};
|
|
3954
3954
|
}
|
|
3955
3955
|
function jc(u) {
|
|
3956
|
-
const { getOption: e } = ee(), t =
|
|
3956
|
+
const { getOption: e } = ee(), t = pu(Uu, void 0), n = pu(ot, void 0), r = D(
|
|
3957
3957
|
() => {
|
|
3958
3958
|
var c;
|
|
3959
3959
|
return e(u.size, (c = b(t)) == null ? void 0 : c.size, "md");
|
|
@@ -3970,7 +3970,7 @@ function jc(u) {
|
|
|
3970
3970
|
);
|
|
3971
3971
|
return { switchSize: r, switchDisabled: o, id: n };
|
|
3972
3972
|
}
|
|
3973
|
-
const Hc = ["disabled", "form", "type"], Uc = "sq-button",
|
|
3973
|
+
const Hc = ["disabled", "form", "type"], Uc = "sq-button", pe = /* @__PURE__ */ L({
|
|
3974
3974
|
name: Uc,
|
|
3975
3975
|
__name: "button",
|
|
3976
3976
|
props: {
|
|
@@ -3988,22 +3988,22 @@ const Hc = ["disabled", "form", "type"], Uc = "sq-button", he = /* @__PURE__ */
|
|
|
3988
3988
|
emits: ["click"],
|
|
3989
3989
|
setup(u, { emit: e }) {
|
|
3990
3990
|
const t = e, n = u, { btnTextType: r, btnSize: o, btnType: c, btnRound: i, btnDisabled: s } = Ic(n), a = D(() => {
|
|
3991
|
-
const
|
|
3992
|
-
return
|
|
3991
|
+
const h = [], p = b(o), d = b(c), x = b(i), _ = b(r);
|
|
3992
|
+
return p !== "md" && h.push(`sq-button--${p}`), d && h.push(`is-${d}`), x && h.push("is-round"), _ && h.push("is-text"), _ && n.bg && h.push("has-bg"), h;
|
|
3993
3993
|
}), l = D(() => n.loading ? ge : n.icon), f = D(() => n.loading || b(s));
|
|
3994
|
-
return (
|
|
3994
|
+
return (h, p) => (g(), A("button", {
|
|
3995
3995
|
class: V(["sq-button", a.value]),
|
|
3996
3996
|
disabled: f.value,
|
|
3997
3997
|
form: n.form,
|
|
3998
3998
|
type: n.nativeType,
|
|
3999
|
-
onClick:
|
|
3999
|
+
onClick: p[0] || (p[0] = (d) => t("click", d))
|
|
4000
4000
|
}, [
|
|
4001
4001
|
wu(b(zu), {
|
|
4002
4002
|
size: b(o) === "lg" ? "md" : b(o)
|
|
4003
4003
|
}, {
|
|
4004
4004
|
default: Q(() => [
|
|
4005
|
-
l.value ? (g(),
|
|
4006
|
-
H(
|
|
4005
|
+
l.value ? (g(), $(ku(l.value), { key: 0 })) : O("", !0),
|
|
4006
|
+
H(h.$slots, "default")
|
|
4007
4007
|
]),
|
|
4008
4008
|
_: 3
|
|
4009
4009
|
}, 8, ["size"])
|
|
@@ -4086,20 +4086,20 @@ const Hc = ["disabled", "form", "type"], Uc = "sq-button", he = /* @__PURE__ */
|
|
|
4086
4086
|
checkboxName: i,
|
|
4087
4087
|
checkboxVariant: s,
|
|
4088
4088
|
groupContext: a
|
|
4089
|
-
} = Oc(n), l =
|
|
4090
|
-
const
|
|
4091
|
-
return d !== "md" &&
|
|
4092
|
-
}),
|
|
4093
|
-
return Eu(
|
|
4094
|
-
if (l.value !==
|
|
4095
|
-
l.value =
|
|
4089
|
+
} = Oc(n), l = hu(u, "checked"), f = D(() => {
|
|
4090
|
+
const p = [], d = b(r), x = b(o), _ = b(s);
|
|
4091
|
+
return d !== "md" && p.push(`sq-selection--${d}`), h.value && p.push("is-checked"), x && p.push("is-disabled"), _ && p.push(`is-${_}`), p;
|
|
4092
|
+
}), h = D(() => n.label && a ? b(b(a).list).includes(n.label) : l.value);
|
|
4093
|
+
return Eu(h, (p) => {
|
|
4094
|
+
if (l.value !== p) {
|
|
4095
|
+
l.value = p;
|
|
4096
4096
|
return;
|
|
4097
4097
|
}
|
|
4098
|
-
}), Eu(l, (
|
|
4099
|
-
|
|
4100
|
-
}),
|
|
4101
|
-
l.value =
|
|
4102
|
-
}), (
|
|
4098
|
+
}), Eu(l, (p) => {
|
|
4099
|
+
h.value !== p && n.label && a && a.value.toggleItem(n.label);
|
|
4100
|
+
}), yu(() => {
|
|
4101
|
+
l.value = h.value;
|
|
4102
|
+
}), (p, d) => (g(), A("label", {
|
|
4103
4103
|
class: V(["sq-selection sq-checkbox", f.value])
|
|
4104
4104
|
}, [
|
|
4105
4105
|
fu(F("input", {
|
|
@@ -4116,9 +4116,9 @@ const Hc = ["disabled", "form", "type"], Uc = "sq-button", he = /* @__PURE__ */
|
|
|
4116
4116
|
]),
|
|
4117
4117
|
b(s) !== "solid" ? (g(), A("span", {
|
|
4118
4118
|
key: 0,
|
|
4119
|
-
class: V(["sq-checkbox-box", { "is-indeterminate": n.indeterminate && !
|
|
4119
|
+
class: V(["sq-checkbox-box", { "is-indeterminate": n.indeterminate && !h.value }])
|
|
4120
4120
|
}, [
|
|
4121
|
-
|
|
4121
|
+
h.value ? (g(), $(b(K0), {
|
|
4122
4122
|
key: 0,
|
|
4123
4123
|
class: "sq-checkbox-inner"
|
|
4124
4124
|
})) : O("", !0)
|
|
@@ -4168,7 +4168,7 @@ const Hc = ["disabled", "form", "type"], Uc = "sq-button", he = /* @__PURE__ */
|
|
|
4168
4168
|
}
|
|
4169
4169
|
return (s, a) => (g(), A("div", ei, [
|
|
4170
4170
|
H(s.$slots, "default", {}, () => [
|
|
4171
|
-
(g(!0), A(bu, null, ju(r.items, (l, f) => (g(),
|
|
4171
|
+
(g(!0), A(bu, null, ju(r.items, (l, f) => (g(), $(b(m0), {
|
|
4172
4172
|
key: f,
|
|
4173
4173
|
label: l
|
|
4174
4174
|
}, null, 8, ["label"]))), 128))
|
|
@@ -4194,7 +4194,7 @@ const Hc = ["disabled", "form", "type"], Uc = "sq-button", he = /* @__PURE__ */
|
|
|
4194
4194
|
class: V(["sq-divider", n.value]),
|
|
4195
4195
|
style: eu({ "--divider-line-type": t.variant })
|
|
4196
4196
|
}, [
|
|
4197
|
-
b(e).default && t.direction !== "vertical" ? (g(),
|
|
4197
|
+
b(e).default && t.direction !== "vertical" ? (g(), $(b(zu), {
|
|
4198
4198
|
key: 0,
|
|
4199
4199
|
ellipsis: t.ellipsis,
|
|
4200
4200
|
size: t.size
|
|
@@ -4224,7 +4224,7 @@ const Hc = ["disabled", "form", "type"], Uc = "sq-button", he = /* @__PURE__ */
|
|
|
4224
4224
|
const c = [];
|
|
4225
4225
|
return t.isRequired && c.push("is-required"), c;
|
|
4226
4226
|
}), o = D(() => ["input", "switch"].includes(t.type));
|
|
4227
|
-
return
|
|
4227
|
+
return yu(() => {
|
|
4228
4228
|
o.value && (n.value = `sq-form-item-${e()}`);
|
|
4229
4229
|
}), (c, i) => (g(), A("div", {
|
|
4230
4230
|
class: "sq-form-item",
|
|
@@ -4295,14 +4295,14 @@ const Hc = ["disabled", "form", "type"], Uc = "sq-button", he = /* @__PURE__ */
|
|
|
4295
4295
|
const v = o.step;
|
|
4296
4296
|
return v === void 0 ? o.items : o.items.filter((S) => S.step === void 0 ? S : Array.isArray(S.step) ? S.step.includes(v) : S.step === v);
|
|
4297
4297
|
});
|
|
4298
|
-
|
|
4298
|
+
yu(() => {
|
|
4299
4299
|
n = structuredClone($u(o.formData));
|
|
4300
4300
|
});
|
|
4301
|
-
function
|
|
4301
|
+
function h(v) {
|
|
4302
4302
|
var S;
|
|
4303
4303
|
return (S = v.rule) == null ? void 0 : S.required;
|
|
4304
4304
|
}
|
|
4305
|
-
function
|
|
4305
|
+
function p(v) {
|
|
4306
4306
|
if (s.value[v]) return ge;
|
|
4307
4307
|
if (i.value.includes(v)) return We;
|
|
4308
4308
|
if (c.value[v])
|
|
@@ -4310,38 +4310,38 @@ const Hc = ["disabled", "form", "type"], Uc = "sq-button", he = /* @__PURE__ */
|
|
|
4310
4310
|
}
|
|
4311
4311
|
async function d(v, S, m, z = !0) {
|
|
4312
4312
|
if (!m) return;
|
|
4313
|
-
const
|
|
4313
|
+
const T = m.trigger ?? "change", I = Array.isArray(T) ? "array" : "string";
|
|
4314
4314
|
if (S) {
|
|
4315
|
-
if (I === "array" && !
|
|
4316
|
-
if (I === "string" &&
|
|
4315
|
+
if (I === "array" && !T.includes(S)) return;
|
|
4316
|
+
if (I === "string" && T !== S) return;
|
|
4317
4317
|
}
|
|
4318
4318
|
i.value = i.value.filter((R) => R !== v), q(v), s.value[v] = new AbortController(), await q0();
|
|
4319
4319
|
const Z = o.formData[v];
|
|
4320
4320
|
let J = !1;
|
|
4321
4321
|
const M = m.validateType ?? "string";
|
|
4322
|
-
return m.validateFunc ? J = await _(v, Z, m, S) : M === "string" ? J =
|
|
4322
|
+
return m.validateFunc ? J = await _(v, Z, m, S) : M === "string" ? J = C(v, Z, m) : M === "boolean" ? J = k(v, Z, m) : M === "list" && (J = E(v, Z, m)), z && r("validate", v, J, $u(i.value)), s.value[v].signal.aborted || q(v), J;
|
|
4323
4323
|
}
|
|
4324
4324
|
function x(v) {
|
|
4325
4325
|
if (c.value[v]) return o.invalidStatus;
|
|
4326
4326
|
}
|
|
4327
4327
|
async function _(v, S, m, z) {
|
|
4328
|
-
const
|
|
4328
|
+
const T = s.value[v].signal, I = await m.validateFunc(S, T, z);
|
|
4329
4329
|
if (I === void 0) {
|
|
4330
4330
|
i.value = i.value.filter((Z) => Z !== v), delete c.value[v];
|
|
4331
4331
|
return;
|
|
4332
4332
|
}
|
|
4333
|
-
return I === !0 ? w(v) : I === !1 ?
|
|
4333
|
+
return I === !0 ? w(v) : I === !1 ? y(v, "字段验证失败") : I ? y(v, I) : w(v), I === !0 || typeof I == "string" && !I;
|
|
4334
4334
|
}
|
|
4335
|
-
function
|
|
4336
|
-
return m.required && !S ? (
|
|
4335
|
+
function C(v, S, m) {
|
|
4336
|
+
return m.required && !S ? (y(v, m.requiredText ?? "字段必填"), !1) : m.pattern && S && !m.pattern.test(S) ? (y(v, m.patternText ?? "字段验证失败"), !1) : (w(v), !0);
|
|
4337
4337
|
}
|
|
4338
4338
|
function k(v, S, m) {
|
|
4339
|
-
return m.required && S === void 0 ? (
|
|
4339
|
+
return m.required && S === void 0 ? (y(v, m.requiredText ?? "字段必填"), !1) : (w(v), !0);
|
|
4340
4340
|
}
|
|
4341
4341
|
function E(v, S, m) {
|
|
4342
|
-
return m.required && (!S || !S.length) ? (
|
|
4342
|
+
return m.required && (!S || !S.length) ? (y(v, m.requiredText ?? "字段必填"), !1) : m.pattern && S && S.map((I) => I.toString()).map((I) => m.pattern.test(I)).includes(!1) ? (y(v, m.patternText ?? "字段验证失败"), !1) : (w(v), !0);
|
|
4343
4343
|
}
|
|
4344
|
-
function
|
|
4344
|
+
function y(v, S) {
|
|
4345
4345
|
i.value = i.value.filter((m) => m !== v), c.value[v] = S;
|
|
4346
4346
|
}
|
|
4347
4347
|
function w(v) {
|
|
@@ -4351,72 +4351,72 @@ const Hc = ["disabled", "form", "type"], Uc = "sq-button", he = /* @__PURE__ */
|
|
|
4351
4351
|
var S;
|
|
4352
4352
|
(S = s.value[v]) == null || S.abort(), delete s.value[v];
|
|
4353
4353
|
}
|
|
4354
|
-
function
|
|
4354
|
+
function B() {
|
|
4355
4355
|
r("update:formData", structuredClone(n)), c.value = {}, i.value = [], r("validate", "SQFORM", !1, $u(i.value));
|
|
4356
4356
|
}
|
|
4357
4357
|
function N(v = !0) {
|
|
4358
4358
|
const m = (v ? o.items : f.value).filter(
|
|
4359
4359
|
(z) => z.type !== "custom" && z.rule && !i.value.includes(z.binding)
|
|
4360
4360
|
).map((z) => {
|
|
4361
|
-
const
|
|
4362
|
-
return d(
|
|
4361
|
+
const T = z;
|
|
4362
|
+
return d(T.binding, void 0, T.rule, !1);
|
|
4363
4363
|
});
|
|
4364
4364
|
return Promise.all(m).then((z) => (r("validate", "SQFORM", !z.includes(!1), $u(i.value)), z));
|
|
4365
4365
|
}
|
|
4366
|
-
return e({ resetFields:
|
|
4366
|
+
return e({ resetFields: B, validate: N }), (v, S) => (g(), A("form", {
|
|
4367
4367
|
class: V(["sq-form", a.value]),
|
|
4368
4368
|
style: eu(l.value),
|
|
4369
4369
|
onSubmit: S[0] || (S[0] = Nt(() => {
|
|
4370
4370
|
}, ["prevent"]))
|
|
4371
4371
|
}, [
|
|
4372
|
-
(g(!0), A(bu, null, ju(f.value, (m, z) => (g(),
|
|
4372
|
+
(g(!0), A(bu, null, ju(f.value, (m, z) => (g(), $(li, {
|
|
4373
4373
|
class: V(m.itemClass),
|
|
4374
4374
|
type: m.type,
|
|
4375
4375
|
key: z,
|
|
4376
4376
|
"label-width": m.labelWidth,
|
|
4377
4377
|
label: m.label,
|
|
4378
4378
|
"show-label": m.showLabel && o.layout !== "vertical",
|
|
4379
|
-
"is-required":
|
|
4379
|
+
"is-required": h(m),
|
|
4380
4380
|
"error-msg": o.hasFeedback ? c.value[m.binding] : ""
|
|
4381
4381
|
}, {
|
|
4382
4382
|
default: Q(() => [
|
|
4383
|
-
m.type === "input" ? (g(),
|
|
4383
|
+
m.type === "input" ? (g(), $(b(Di), ce({
|
|
4384
4384
|
key: 0,
|
|
4385
4385
|
ref_for: !0
|
|
4386
4386
|
}, m.props, {
|
|
4387
4387
|
name: m.name,
|
|
4388
4388
|
status: x(m.binding),
|
|
4389
|
-
"suffix-icon":
|
|
4389
|
+
"suffix-icon": p(m.binding),
|
|
4390
4390
|
value: o.formData[m.binding],
|
|
4391
|
-
"onUpdate:value": (
|
|
4392
|
-
onChange: (
|
|
4393
|
-
onInput: (
|
|
4394
|
-
onBlur: (
|
|
4395
|
-
}), null, 16, ["name", "status", "suffix-icon", "value", "onUpdate:value", "onChange", "onInput", "onBlur"])) : m.type === "checkbox" ? (g(),
|
|
4391
|
+
"onUpdate:value": (T) => o.formData[m.binding] = T,
|
|
4392
|
+
onChange: (T) => d(m.binding, "change", m.rule),
|
|
4393
|
+
onInput: (T) => d(m.binding, "input", m.rule),
|
|
4394
|
+
onBlur: (T) => d(m.binding, "blur", m.rule)
|
|
4395
|
+
}), null, 16, ["name", "status", "suffix-icon", "value", "onUpdate:value", "onChange", "onInput", "onBlur"])) : m.type === "checkbox" ? (g(), $(b(ni), ce({
|
|
4396
4396
|
key: 1,
|
|
4397
4397
|
ref_for: !0
|
|
4398
4398
|
}, m.props, {
|
|
4399
4399
|
name: m.name,
|
|
4400
4400
|
value: o.formData[m.binding],
|
|
4401
|
-
"onUpdate:value": (
|
|
4402
|
-
onChange: (
|
|
4403
|
-
}), null, 16, ["name", "value", "onUpdate:value", "onChange"])) : m.type === "radio" ? (g(),
|
|
4401
|
+
"onUpdate:value": (T) => o.formData[m.binding] = T,
|
|
4402
|
+
onChange: (T) => d(m.binding, "change", m.rule)
|
|
4403
|
+
}), null, 16, ["name", "value", "onUpdate:value", "onChange"])) : m.type === "radio" ? (g(), $(b(Xs), ce({
|
|
4404
4404
|
key: 2,
|
|
4405
4405
|
ref_for: !0
|
|
4406
4406
|
}, m.props, {
|
|
4407
4407
|
name: m.name,
|
|
4408
4408
|
value: o.formData[m.binding],
|
|
4409
|
-
"onUpdate:value": (
|
|
4410
|
-
onChange: (
|
|
4411
|
-
}), null, 16, ["name", "value", "onUpdate:value", "onChange"])) : m.type === "switch" ? (g(),
|
|
4409
|
+
"onUpdate:value": (T) => o.formData[m.binding] = T,
|
|
4410
|
+
onChange: (T) => d(m.binding, "change", m.rule)
|
|
4411
|
+
}), null, 16, ["name", "value", "onUpdate:value", "onChange"])) : m.type === "switch" ? (g(), $(b(ea), ce({
|
|
4412
4412
|
key: 3,
|
|
4413
4413
|
ref_for: !0
|
|
4414
4414
|
}, m.props, {
|
|
4415
4415
|
name: m.name,
|
|
4416
4416
|
loading: !!s.value[m.binding],
|
|
4417
4417
|
checked: o.formData[m.binding],
|
|
4418
|
-
"onUpdate:checked": (
|
|
4419
|
-
onChange: (
|
|
4418
|
+
"onUpdate:checked": (T) => o.formData[m.binding] = T,
|
|
4419
|
+
onChange: (T) => d(m.binding, "change", m.rule)
|
|
4420
4420
|
}), null, 16, ["name", "loading", "checked", "onUpdate:checked", "onChange"])) : H(v.$slots, m.slot, { key: 4 })
|
|
4421
4421
|
]),
|
|
4422
4422
|
_: 2
|
|
@@ -4426,10 +4426,10 @@ const Hc = ["disabled", "form", "type"], Uc = "sq-button", he = /* @__PURE__ */
|
|
|
4426
4426
|
}), Uu = Symbol("form-context-keys"), ot = Symbol("form-item-id-keys"), di = {
|
|
4427
4427
|
key: 0,
|
|
4428
4428
|
class: "sq-image-mask"
|
|
4429
|
-
},
|
|
4429
|
+
}, pi = {
|
|
4430
4430
|
key: 0,
|
|
4431
4431
|
class: "sq-image-picture"
|
|
4432
|
-
},
|
|
4432
|
+
}, hi = ["srcset", "media", "type"], bi = ["crossorigin", "alt", "src"], mi = {
|
|
4433
4433
|
key: 1,
|
|
4434
4434
|
class: "sq-image-error"
|
|
4435
4435
|
}, xi = "sq-image", gi = /* @__PURE__ */ L({
|
|
@@ -4446,11 +4446,11 @@ const Hc = ["disabled", "form", "type"], Uc = "sq-button", he = /* @__PURE__ */
|
|
|
4446
4446
|
source: {}
|
|
4447
4447
|
},
|
|
4448
4448
|
setup(u) {
|
|
4449
|
-
const e = new IntersectionObserver(
|
|
4449
|
+
const e = new IntersectionObserver(h), t = u, n = j(!1), r = j(t.src), o = j(!1), c = j(!1), i = Zu(null), s = D(() => n.value && !o.value), a = D(() => ({
|
|
4450
4450
|
height: s.value ? void 0 : "var(--image-placeholder-height)",
|
|
4451
4451
|
aspectRatio: s.value ? void 0 : t.aspectRatio
|
|
4452
4452
|
}));
|
|
4453
|
-
|
|
4453
|
+
yu(() => {
|
|
4454
4454
|
e.observe(i.value);
|
|
4455
4455
|
}), xe(() => {
|
|
4456
4456
|
e.disconnect();
|
|
@@ -4465,10 +4465,10 @@ const Hc = ["disabled", "form", "type"], Uc = "sq-button", he = /* @__PURE__ */
|
|
|
4465
4465
|
}
|
|
4466
4466
|
o.value = !0, n.value = !0;
|
|
4467
4467
|
}
|
|
4468
|
-
function p
|
|
4469
|
-
|
|
4468
|
+
function h(p) {
|
|
4469
|
+
p[0].isIntersecting && (c.value = !0, e.disconnect());
|
|
4470
4470
|
}
|
|
4471
|
-
return (
|
|
4471
|
+
return (p, d) => (g(), A("div", {
|
|
4472
4472
|
class: "sq-image",
|
|
4473
4473
|
style: eu(a.value),
|
|
4474
4474
|
ref_key: "imgRef",
|
|
@@ -4480,13 +4480,13 @@ const Hc = ["disabled", "form", "type"], Uc = "sq-button", he = /* @__PURE__ */
|
|
|
4480
4480
|
]),
|
|
4481
4481
|
_: 1
|
|
4482
4482
|
}),
|
|
4483
|
-
!o.value && c.value ? (g(), A("picture",
|
|
4483
|
+
!o.value && c.value ? (g(), A("picture", pi, [
|
|
4484
4484
|
(g(!0), A(bu, null, ju(t.source, (x, _) => (g(), A("source", {
|
|
4485
4485
|
key: _,
|
|
4486
4486
|
srcset: x.src,
|
|
4487
4487
|
media: x.media,
|
|
4488
4488
|
type: x.type
|
|
4489
|
-
}, null, 8,
|
|
4489
|
+
}, null, 8, hi))), 128)),
|
|
4490
4490
|
F("img", {
|
|
4491
4491
|
style: eu({ objectFit: t.objectFit }),
|
|
4492
4492
|
crossorigin: t.crossorigin,
|
|
@@ -4497,7 +4497,7 @@ const Hc = ["disabled", "form", "type"], Uc = "sq-button", he = /* @__PURE__ */
|
|
|
4497
4497
|
}, null, 44, bi)
|
|
4498
4498
|
])) : O("", !0),
|
|
4499
4499
|
o.value ? (g(), A("div", mi, [
|
|
4500
|
-
H(
|
|
4500
|
+
H(p.$slots, "error", {}, () => [
|
|
4501
4501
|
d[0] || (d[0] = F("span", null, "图片加载失败", -1))
|
|
4502
4502
|
])
|
|
4503
4503
|
])) : O("", !0)
|
|
@@ -4506,7 +4506,7 @@ const Hc = ["disabled", "form", "type"], Uc = "sq-button", he = /* @__PURE__ */
|
|
|
4506
4506
|
}), _i = {
|
|
4507
4507
|
key: 0,
|
|
4508
4508
|
class: "sq-input-prefix"
|
|
4509
|
-
}, ki = ["id", "disabled", "readonly", "placeholder", "type", "maxlength", "minlength", "autocomplete", "name", "autofocus", "form", "inputmode"],
|
|
4509
|
+
}, ki = ["id", "disabled", "readonly", "placeholder", "type", "maxlength", "minlength", "autocomplete", "name", "autofocus", "form", "inputmode"], yi = ["id", "disabled", "readonly", "placeholder", "type", "maxlength", "minlength", "autocomplete", "name", "autofocus", "form", "inputmode", "rows", "cols"], vi = { class: "sq-input-suffix" }, Ci = "sq-input", Di = /* @__PURE__ */ L({
|
|
4510
4510
|
name: Ci,
|
|
4511
4511
|
__name: "input",
|
|
4512
4512
|
props: /* @__PURE__ */ tu({
|
|
@@ -4537,31 +4537,31 @@ const Hc = ["disabled", "form", "type"], Uc = "sq-button", he = /* @__PURE__ */
|
|
|
4537
4537
|
}),
|
|
4538
4538
|
emits: /* @__PURE__ */ tu(["focus", "blur", "input", "change"], ["update:value"]),
|
|
4539
4539
|
setup(u, { expose: e, emit: t }) {
|
|
4540
|
-
const n = Ze(), r = t, o = u, { inputSize: c, inputRound: i, inputDisabled: s, inputReadonly: a, id: l } = Pc(o), f =
|
|
4540
|
+
const n = Ze(), r = t, o = u, { inputSize: c, inputRound: i, inputDisabled: s, inputReadonly: a, id: l } = Pc(o), f = hu(u, "value"), h = j(!1), p = j(!1), d = Zu(null), x = D(() => {
|
|
4541
4541
|
const M = [], R = b(c), U = b(i), Fe = b(N);
|
|
4542
4542
|
return R !== "md" && M.push(`sq-input--${R}`), o.status && M.push(`is-${o.status}`), U && M.push("is-round"), Fe && M.push("is-disabled"), M;
|
|
4543
|
-
}), _ = D(() => b(
|
|
4543
|
+
}), _ = D(() => b(p) ? gn : Bn), C = D(() => b(p) ? "text" : o.type), k = D(() => n.prefix || o.prefixIcon), E = D(() => b(h) && b(f).length), y = D(
|
|
4544
4544
|
() => o.type === "password" && b(E)
|
|
4545
|
-
), w = D(() => o.clearable && b(E)), q = D(() => o.loading ? ge : o.suffixIcon),
|
|
4546
|
-
() => b(
|
|
4545
|
+
), w = D(() => o.clearable && b(E)), q = D(() => o.loading ? ge : o.suffixIcon), B = D(
|
|
4546
|
+
() => b(y) || b(w) || b(q) || n.suffix
|
|
4547
4547
|
), N = D(() => o.loading || b(s)), v = D(() => {
|
|
4548
4548
|
if (o.type === "textarea")
|
|
4549
4549
|
return b(N) || b(a) ? "none" : o.resize;
|
|
4550
4550
|
});
|
|
4551
4551
|
function S(M) {
|
|
4552
|
-
r("focus", M), !b(a) && (
|
|
4552
|
+
r("focus", M), !b(a) && (h.value = !0);
|
|
4553
4553
|
}
|
|
4554
4554
|
function m(M) {
|
|
4555
|
-
r("blur", M), !b(a) && (
|
|
4555
|
+
r("blur", M), !b(a) && (h.value = !1);
|
|
4556
4556
|
}
|
|
4557
4557
|
function z() {
|
|
4558
4558
|
setTimeout(Z);
|
|
4559
4559
|
}
|
|
4560
|
-
function
|
|
4560
|
+
function T() {
|
|
4561
4561
|
f.value = "";
|
|
4562
4562
|
}
|
|
4563
4563
|
function I() {
|
|
4564
|
-
|
|
4564
|
+
p.value = !p.value;
|
|
4565
4565
|
}
|
|
4566
4566
|
function Z() {
|
|
4567
4567
|
var M;
|
|
@@ -4569,7 +4569,7 @@ const Hc = ["disabled", "form", "type"], Uc = "sq-button", he = /* @__PURE__ */
|
|
|
4569
4569
|
}
|
|
4570
4570
|
function J() {
|
|
4571
4571
|
var M;
|
|
4572
|
-
|
|
4572
|
+
h.value = !1, (M = d.value) == null || M.blur();
|
|
4573
4573
|
}
|
|
4574
4574
|
return e({ focus: Z, blur: J }), (M, R) => (g(), A("div", {
|
|
4575
4575
|
class: V(["sq-input", x.value]),
|
|
@@ -4577,7 +4577,7 @@ const Hc = ["disabled", "form", "type"], Uc = "sq-button", he = /* @__PURE__ */
|
|
|
4577
4577
|
}, [
|
|
4578
4578
|
k.value ? (g(), A("span", _i, [
|
|
4579
4579
|
H(M.$slots, "prefix", {}, () => [
|
|
4580
|
-
(g(),
|
|
4580
|
+
(g(), $(ku(o.prefixIcon)))
|
|
4581
4581
|
])
|
|
4582
4582
|
])) : O("", !0),
|
|
4583
4583
|
o.type !== "textarea" ? fu((g(), A("input", {
|
|
@@ -4588,7 +4588,7 @@ const Hc = ["disabled", "form", "type"], Uc = "sq-button", he = /* @__PURE__ */
|
|
|
4588
4588
|
disabled: N.value,
|
|
4589
4589
|
readonly: b(a),
|
|
4590
4590
|
placeholder: o.placeholder,
|
|
4591
|
-
type:
|
|
4591
|
+
type: C.value,
|
|
4592
4592
|
maxlength: o.maxlength,
|
|
4593
4593
|
minlength: o.minlength,
|
|
4594
4594
|
autocomplete: o.autocomplete,
|
|
@@ -4613,7 +4613,7 @@ const Hc = ["disabled", "form", "type"], Uc = "sq-button", he = /* @__PURE__ */
|
|
|
4613
4613
|
disabled: N.value,
|
|
4614
4614
|
readonly: b(a),
|
|
4615
4615
|
placeholder: o.placeholder,
|
|
4616
|
-
type:
|
|
4616
|
+
type: C.value,
|
|
4617
4617
|
maxlength: o.maxlength,
|
|
4618
4618
|
minlength: o.minlength,
|
|
4619
4619
|
autocomplete: o.autocomplete,
|
|
@@ -4629,25 +4629,25 @@ const Hc = ["disabled", "form", "type"], Uc = "sq-button", he = /* @__PURE__ */
|
|
|
4629
4629
|
onBlur: m,
|
|
4630
4630
|
onInput: R[4] || (R[4] = (U) => r("input", U)),
|
|
4631
4631
|
onChange: R[5] || (R[5] = (U) => r("change", U))
|
|
4632
|
-
}, null, 44,
|
|
4632
|
+
}, null, 44, yi)), [
|
|
4633
4633
|
[B0, f.value]
|
|
4634
4634
|
]),
|
|
4635
|
-
fu(F("span",
|
|
4636
|
-
|
|
4635
|
+
fu(F("span", vi, [
|
|
4636
|
+
y.value ? (g(), $(ku(_.value), {
|
|
4637
4637
|
key: 0,
|
|
4638
4638
|
class: "sq-input-suffix-pwd",
|
|
4639
4639
|
onMousedown: I
|
|
4640
4640
|
}, null, 32)) : O("", !0),
|
|
4641
|
-
w.value ? (g(),
|
|
4641
|
+
w.value ? (g(), $(b(cn), {
|
|
4642
4642
|
key: 1,
|
|
4643
4643
|
class: "sq-input-suffix-clear",
|
|
4644
|
-
onMousedown:
|
|
4644
|
+
onMousedown: T
|
|
4645
4645
|
})) : O("", !0),
|
|
4646
4646
|
H(M.$slots, "suffix", {}, () => [
|
|
4647
|
-
q.value ? (g(),
|
|
4647
|
+
q.value ? (g(), $(ku(q.value), { key: 0 })) : O("", !0)
|
|
4648
4648
|
])
|
|
4649
4649
|
], 512), [
|
|
4650
|
-
[Ku,
|
|
4650
|
+
[Ku, B.value]
|
|
4651
4651
|
])
|
|
4652
4652
|
], 34));
|
|
4653
4653
|
}
|
|
@@ -4679,13 +4679,13 @@ const Hc = ["disabled", "form", "type"], Uc = "sq-button", he = /* @__PURE__ */
|
|
|
4679
4679
|
return;
|
|
4680
4680
|
}
|
|
4681
4681
|
});
|
|
4682
|
-
|
|
4682
|
+
yu(() => {
|
|
4683
4683
|
setTimeout(o, t.closeAfter);
|
|
4684
4684
|
});
|
|
4685
4685
|
function o() {
|
|
4686
4686
|
n.value = !1;
|
|
4687
4687
|
}
|
|
4688
|
-
return e({ close: o }), (c, i) => (g(),
|
|
4688
|
+
return e({ close: o }), (c, i) => (g(), $(Yu, {
|
|
4689
4689
|
appear: "",
|
|
4690
4690
|
name: "sq-zoom-top",
|
|
4691
4691
|
onBeforeLeave: t.onClose,
|
|
@@ -4699,7 +4699,7 @@ const Hc = ["disabled", "form", "type"], Uc = "sq-button", he = /* @__PURE__ */
|
|
|
4699
4699
|
}, [
|
|
4700
4700
|
wu(b(zu), { class: "sq-message-main" }, {
|
|
4701
4701
|
default: Q(() => [
|
|
4702
|
-
t.type && r.value ? (g(),
|
|
4702
|
+
t.type && r.value ? (g(), $(ku(r.value), {
|
|
4703
4703
|
key: 0,
|
|
4704
4704
|
class: "sq-message-icon"
|
|
4705
4705
|
})) : O("", !0),
|
|
@@ -4740,12 +4740,12 @@ const je = (u = {}) => {
|
|
|
4740
4740
|
r.onClose = () => {
|
|
4741
4741
|
c == null || c();
|
|
4742
4742
|
const a = Tu.findIndex(
|
|
4743
|
-
(
|
|
4743
|
+
(p) => p.vm.component.props.id === s.component.props.id
|
|
4744
4744
|
), f = Tu.splice(a, 1)[0].vm.el.offsetHeight;
|
|
4745
4745
|
if (!(Tu.length < 1))
|
|
4746
|
-
for (const
|
|
4747
|
-
let d = Number(parseInt(
|
|
4748
|
-
d -= f, d -= Me,
|
|
4746
|
+
for (const p of Tu) {
|
|
4747
|
+
let d = Number(parseInt(p.vm.el.style.top));
|
|
4748
|
+
d -= f, d -= Me, p.vm.component.props.offsetTop = d;
|
|
4749
4749
|
}
|
|
4750
4750
|
};
|
|
4751
4751
|
const i = r.onDestroy;
|
|
@@ -4778,10 +4778,10 @@ const ka = je, $i = "sq-pagination-prev", Li = /* @__PURE__ */ L({
|
|
|
4778
4778
|
}),
|
|
4779
4779
|
emits: ["update:current"],
|
|
4780
4780
|
setup(u) {
|
|
4781
|
-
const e = u, t =
|
|
4781
|
+
const e = u, t = hu(u, "current"), n = (r) => {
|
|
4782
4782
|
t.value += r;
|
|
4783
4783
|
};
|
|
4784
|
-
return (r, o) => (g(),
|
|
4784
|
+
return (r, o) => (g(), $(b(pe), {
|
|
4785
4785
|
icon: b(N0),
|
|
4786
4786
|
size: e.size,
|
|
4787
4787
|
disabled: t.value === 1 || e.disabled,
|
|
@@ -4801,10 +4801,10 @@ const ka = je, $i = "sq-pagination-prev", Li = /* @__PURE__ */ L({
|
|
|
4801
4801
|
}),
|
|
4802
4802
|
emits: ["update:current"],
|
|
4803
4803
|
setup(u) {
|
|
4804
|
-
const e = u, t =
|
|
4804
|
+
const e = u, t = hu(u, "current"), n = (r) => {
|
|
4805
4805
|
t.value += r;
|
|
4806
4806
|
};
|
|
4807
|
-
return (r, o) => (g(),
|
|
4807
|
+
return (r, o) => (g(), $(b(pe), {
|
|
4808
4808
|
icon: b(V0),
|
|
4809
4809
|
size: e.size,
|
|
4810
4810
|
disabled: t.value === e.maxPage || e.disabled,
|
|
@@ -4824,12 +4824,12 @@ const ka = je, $i = "sq-pagination-prev", Li = /* @__PURE__ */ L({
|
|
|
4824
4824
|
}),
|
|
4825
4825
|
emits: ["update:current"],
|
|
4826
4826
|
setup(u) {
|
|
4827
|
-
const e = u, t =
|
|
4827
|
+
const e = u, t = hu(u, "current"), n = (r) => {
|
|
4828
4828
|
t.value = r;
|
|
4829
4829
|
};
|
|
4830
4830
|
return (r, o) => (g(), A("div", Ii, [
|
|
4831
4831
|
(g(!0), A(bu, null, ju(e.list, (c) => (g(), A(bu, { key: c }, [
|
|
4832
|
-
c ? (g(),
|
|
4832
|
+
c ? (g(), $(b(pe), {
|
|
4833
4833
|
key: 0,
|
|
4834
4834
|
type: t.value === c ? "primary" : void 0,
|
|
4835
4835
|
size: e.size,
|
|
@@ -4840,16 +4840,16 @@ const ka = je, $i = "sq-pagination-prev", Li = /* @__PURE__ */ L({
|
|
|
4840
4840
|
Ot(ru(c), 1)
|
|
4841
4841
|
]),
|
|
4842
4842
|
_: 2
|
|
4843
|
-
}, 1032, ["type", "size", "disabled", "onClick"])) : (g(),
|
|
4843
|
+
}, 1032, ["type", "size", "disabled", "onClick"])) : (g(), $(b(pe), {
|
|
4844
4844
|
key: 1,
|
|
4845
|
-
icon: b(
|
|
4845
|
+
icon: b(hn),
|
|
4846
4846
|
size: e.size,
|
|
4847
4847
|
disabled: ""
|
|
4848
4848
|
}, null, 8, ["icon", "size"]))
|
|
4849
4849
|
], 64))), 128))
|
|
4850
4850
|
]));
|
|
4851
4851
|
}
|
|
4852
|
-
}), Ni = { class: "sq-pagination" }, ji = "sq-pagination",
|
|
4852
|
+
}), Ni = { class: "sq-pagination" }, ji = "sq-pagination", ya = /* @__PURE__ */ L({
|
|
4853
4853
|
name: ji,
|
|
4854
4854
|
__name: "pagination",
|
|
4855
4855
|
props: /* @__PURE__ */ tu({
|
|
@@ -4866,7 +4866,7 @@ const ka = je, $i = "sq-pagination-prev", Li = /* @__PURE__ */ L({
|
|
|
4866
4866
|
}),
|
|
4867
4867
|
emits: ["update:current", "update:pageSize"],
|
|
4868
4868
|
setup(u) {
|
|
4869
|
-
const e = u, t =
|
|
4869
|
+
const e = u, t = hu(u, "current"), n = hu(u, "pageSize"), r = D(() => Math.ceil(e.total / n.value) || 1), o = D(() => {
|
|
4870
4870
|
const i = [], s = Math.floor(e.pagerCount / 2) - 1;
|
|
4871
4871
|
let a = t.value - s, l = t.value + s;
|
|
4872
4872
|
a < 2 && (a = 2, l = a + s * 2), l > r.value - 1 && (l = r.value - 1, a = l - s * 2);
|
|
@@ -4890,7 +4890,7 @@ const ka = je, $i = "sq-pagination-prev", Li = /* @__PURE__ */ L({
|
|
|
4890
4890
|
return s;
|
|
4891
4891
|
});
|
|
4892
4892
|
return (i, s) => (g(), A("div", Ni, [
|
|
4893
|
-
(g(!0), A(bu, null, ju(c.value, (a, l) => (g(),
|
|
4893
|
+
(g(!0), A(bu, null, ju(c.value, (a, l) => (g(), $(ku(a), {
|
|
4894
4894
|
key: l,
|
|
4895
4895
|
size: e.size,
|
|
4896
4896
|
disabled: e.disabled,
|
|
@@ -4937,7 +4937,7 @@ function g0(u) {
|
|
|
4937
4937
|
function zt(u) {
|
|
4938
4938
|
return wu("span", null, [u]);
|
|
4939
4939
|
}
|
|
4940
|
-
const He = Math.min, Mu = Math.max,
|
|
4940
|
+
const He = Math.min, Mu = Math.max, he = Math.round, ae = Math.floor, du = (u) => ({
|
|
4941
4941
|
x: u,
|
|
4942
4942
|
y: u
|
|
4943
4943
|
}), Vi = {
|
|
@@ -5045,48 +5045,48 @@ function $t(u, e, t) {
|
|
|
5045
5045
|
reference: n,
|
|
5046
5046
|
floating: r
|
|
5047
5047
|
} = u;
|
|
5048
|
-
const o = Su(e), c = k0(e), i = _0(c), s = Pu(e), a = o === "y", l = n.x + n.width / 2 - r.width / 2, f = n.y + n.height / 2 - r.height / 2,
|
|
5049
|
-
let
|
|
5048
|
+
const o = Su(e), c = k0(e), i = _0(c), s = Pu(e), a = o === "y", l = n.x + n.width / 2 - r.width / 2, f = n.y + n.height / 2 - r.height / 2, h = n[i] / 2 - r[i] / 2;
|
|
5049
|
+
let p;
|
|
5050
5050
|
switch (s) {
|
|
5051
5051
|
case "top":
|
|
5052
|
-
|
|
5052
|
+
p = {
|
|
5053
5053
|
x: l,
|
|
5054
5054
|
y: n.y - r.height
|
|
5055
5055
|
};
|
|
5056
5056
|
break;
|
|
5057
5057
|
case "bottom":
|
|
5058
|
-
|
|
5058
|
+
p = {
|
|
5059
5059
|
x: l,
|
|
5060
5060
|
y: n.y + n.height
|
|
5061
5061
|
};
|
|
5062
5062
|
break;
|
|
5063
5063
|
case "right":
|
|
5064
|
-
|
|
5064
|
+
p = {
|
|
5065
5065
|
x: n.x + n.width,
|
|
5066
5066
|
y: f
|
|
5067
5067
|
};
|
|
5068
5068
|
break;
|
|
5069
5069
|
case "left":
|
|
5070
|
-
|
|
5070
|
+
p = {
|
|
5071
5071
|
x: n.x - r.width,
|
|
5072
5072
|
y: f
|
|
5073
5073
|
};
|
|
5074
5074
|
break;
|
|
5075
5075
|
default:
|
|
5076
|
-
|
|
5076
|
+
p = {
|
|
5077
5077
|
x: n.x,
|
|
5078
5078
|
y: n.y
|
|
5079
5079
|
};
|
|
5080
5080
|
}
|
|
5081
5081
|
switch (Ce(e)) {
|
|
5082
5082
|
case "start":
|
|
5083
|
-
|
|
5083
|
+
p[c] -= h * (t && a ? -1 : 1);
|
|
5084
5084
|
break;
|
|
5085
5085
|
case "end":
|
|
5086
|
-
|
|
5086
|
+
p[c] += h * (t && a ? -1 : 1);
|
|
5087
5087
|
break;
|
|
5088
5088
|
}
|
|
5089
|
-
return
|
|
5089
|
+
return p;
|
|
5090
5090
|
}
|
|
5091
5091
|
const ns = async (u, e, t) => {
|
|
5092
5092
|
const {
|
|
@@ -5102,23 +5102,23 @@ const ns = async (u, e, t) => {
|
|
|
5102
5102
|
}), {
|
|
5103
5103
|
x: l,
|
|
5104
5104
|
y: f
|
|
5105
|
-
} = $t(a, n, s),
|
|
5105
|
+
} = $t(a, n, s), h = n, p = {}, d = 0;
|
|
5106
5106
|
for (let x = 0; x < i.length; x++) {
|
|
5107
5107
|
const {
|
|
5108
5108
|
name: _,
|
|
5109
|
-
fn:
|
|
5109
|
+
fn: C
|
|
5110
5110
|
} = i[x], {
|
|
5111
5111
|
x: k,
|
|
5112
5112
|
y: E,
|
|
5113
|
-
data:
|
|
5113
|
+
data: y,
|
|
5114
5114
|
reset: w
|
|
5115
|
-
} = await
|
|
5115
|
+
} = await C({
|
|
5116
5116
|
x: l,
|
|
5117
5117
|
y: f,
|
|
5118
5118
|
initialPlacement: n,
|
|
5119
|
-
placement:
|
|
5119
|
+
placement: h,
|
|
5120
5120
|
strategy: r,
|
|
5121
|
-
middlewareData:
|
|
5121
|
+
middlewareData: p,
|
|
5122
5122
|
rects: a,
|
|
5123
5123
|
platform: c,
|
|
5124
5124
|
elements: {
|
|
@@ -5126,27 +5126,27 @@ const ns = async (u, e, t) => {
|
|
|
5126
5126
|
floating: e
|
|
5127
5127
|
}
|
|
5128
5128
|
});
|
|
5129
|
-
l = k ?? l, f = E ?? f,
|
|
5130
|
-
...
|
|
5129
|
+
l = k ?? l, f = E ?? f, p = {
|
|
5130
|
+
...p,
|
|
5131
5131
|
[_]: {
|
|
5132
|
-
...
|
|
5133
|
-
...
|
|
5132
|
+
...p[_],
|
|
5133
|
+
...y
|
|
5134
5134
|
}
|
|
5135
|
-
}, w && d <= 50 && (d++, typeof w == "object" && (w.placement && (
|
|
5135
|
+
}, w && d <= 50 && (d++, typeof w == "object" && (w.placement && (h = w.placement), w.rects && (a = w.rects === !0 ? await c.getElementRects({
|
|
5136
5136
|
reference: u,
|
|
5137
5137
|
floating: e,
|
|
5138
5138
|
strategy: r
|
|
5139
5139
|
}) : w.rects), {
|
|
5140
5140
|
x: l,
|
|
5141
5141
|
y: f
|
|
5142
|
-
} = $t(a,
|
|
5142
|
+
} = $t(a, h, s)), x = -1);
|
|
5143
5143
|
}
|
|
5144
5144
|
return {
|
|
5145
5145
|
x: l,
|
|
5146
5146
|
y: f,
|
|
5147
|
-
placement:
|
|
5147
|
+
placement: h,
|
|
5148
5148
|
strategy: r,
|
|
5149
|
-
middlewareData:
|
|
5149
|
+
middlewareData: p
|
|
5150
5150
|
};
|
|
5151
5151
|
};
|
|
5152
5152
|
async function rs(u, e) {
|
|
@@ -5163,9 +5163,9 @@ async function rs(u, e) {
|
|
|
5163
5163
|
boundary: a = "clippingAncestors",
|
|
5164
5164
|
rootBoundary: l = "viewport",
|
|
5165
5165
|
elementContext: f = "floating",
|
|
5166
|
-
altBoundary:
|
|
5167
|
-
padding:
|
|
5168
|
-
} = ct(e, u), d = ts(
|
|
5166
|
+
altBoundary: h = !1,
|
|
5167
|
+
padding: p = 0
|
|
5168
|
+
} = ct(e, u), d = ts(p), _ = i[h ? f === "floating" ? "reference" : "floating" : f], C = me(await o.getClippingRect({
|
|
5169
5169
|
element: (t = await (o.isElement == null ? void 0 : o.isElement(_))) == null || t ? _ : _.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(i.floating)),
|
|
5170
5170
|
boundary: a,
|
|
5171
5171
|
rootBoundary: l,
|
|
@@ -5175,7 +5175,7 @@ async function rs(u, e) {
|
|
|
5175
5175
|
y: r,
|
|
5176
5176
|
width: c.floating.width,
|
|
5177
5177
|
height: c.floating.height
|
|
5178
|
-
} : c.reference, E = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(i.floating)),
|
|
5178
|
+
} : c.reference, E = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(i.floating)), y = await (o.isElement == null ? void 0 : o.isElement(E)) ? await (o.getScale == null ? void 0 : o.getScale(E)) || {
|
|
5179
5179
|
x: 1,
|
|
5180
5180
|
y: 1
|
|
5181
5181
|
} : {
|
|
@@ -5188,10 +5188,10 @@ async function rs(u, e) {
|
|
|
5188
5188
|
strategy: s
|
|
5189
5189
|
}) : k);
|
|
5190
5190
|
return {
|
|
5191
|
-
top: (
|
|
5192
|
-
bottom: (w.bottom -
|
|
5193
|
-
left: (
|
|
5194
|
-
right: (w.right -
|
|
5191
|
+
top: (C.top - w.top + d.top) / y.y,
|
|
5192
|
+
bottom: (w.bottom - C.bottom + d.bottom) / y.y,
|
|
5193
|
+
left: (C.left - w.left + d.left) / y.x,
|
|
5194
|
+
right: (w.right - C.right + d.right) / y.x
|
|
5195
5195
|
};
|
|
5196
5196
|
}
|
|
5197
5197
|
const os = function(u) {
|
|
@@ -5210,20 +5210,20 @@ const os = function(u) {
|
|
|
5210
5210
|
} = e, {
|
|
5211
5211
|
mainAxis: l = !0,
|
|
5212
5212
|
crossAxis: f = !0,
|
|
5213
|
-
fallbackPlacements:
|
|
5214
|
-
fallbackStrategy:
|
|
5213
|
+
fallbackPlacements: h,
|
|
5214
|
+
fallbackStrategy: p = "bestFit",
|
|
5215
5215
|
fallbackAxisSideDirection: d = "none",
|
|
5216
5216
|
flipAlignment: x = !0,
|
|
5217
5217
|
..._
|
|
5218
5218
|
} = ct(u, e);
|
|
5219
5219
|
if ((t = o.arrow) != null && t.alignmentOffset)
|
|
5220
5220
|
return {};
|
|
5221
|
-
const
|
|
5222
|
-
!
|
|
5223
|
-
const
|
|
5221
|
+
const C = Pu(r), k = Su(i), E = Pu(i) === i, y = await (s.isRTL == null ? void 0 : s.isRTL(a.floating)), w = h || (E || !x ? [be(i)] : Xi(i)), q = d !== "none";
|
|
5222
|
+
!h && q && w.push(...us(i, x, d, y));
|
|
5223
|
+
const B = [i, ...w], N = await rs(e, _), v = [];
|
|
5224
5224
|
let S = ((n = o.flip) == null ? void 0 : n.overflows) || [];
|
|
5225
|
-
if (l && v.push(N[
|
|
5226
|
-
const I = Ji(r, c,
|
|
5225
|
+
if (l && v.push(N[C]), f) {
|
|
5226
|
+
const I = Ji(r, c, y);
|
|
5227
5227
|
v.push(N[I[0]], N[I[1]]);
|
|
5228
5228
|
}
|
|
5229
5229
|
if (S = [...S, {
|
|
@@ -5231,7 +5231,7 @@ const os = function(u) {
|
|
|
5231
5231
|
overflows: v
|
|
5232
5232
|
}], !v.every((I) => I <= 0)) {
|
|
5233
5233
|
var m, z;
|
|
5234
|
-
const I = (((m = o.flip) == null ? void 0 : m.index) || 0) + 1, Z =
|
|
5234
|
+
const I = (((m = o.flip) == null ? void 0 : m.index) || 0) + 1, Z = B[I];
|
|
5235
5235
|
if (Z && (!(f === "alignment" ? k !== Su(Z) : !1) || // We leave the current main axis only if every placement on that axis
|
|
5236
5236
|
// overflows the main axis.
|
|
5237
5237
|
S.every((R) => Su(R.placement) === k ? R.overflows[0] > 0 : !0)))
|
|
@@ -5246,10 +5246,10 @@ const os = function(u) {
|
|
|
5246
5246
|
};
|
|
5247
5247
|
let J = (z = S.filter((M) => M.overflows[0] <= 0).sort((M, R) => M.overflows[1] - R.overflows[1])[0]) == null ? void 0 : z.placement;
|
|
5248
5248
|
if (!J)
|
|
5249
|
-
switch (
|
|
5249
|
+
switch (p) {
|
|
5250
5250
|
case "bestFit": {
|
|
5251
|
-
var
|
|
5252
|
-
const M = (
|
|
5251
|
+
var T;
|
|
5252
|
+
const M = (T = S.filter((R) => {
|
|
5253
5253
|
if (q) {
|
|
5254
5254
|
const U = Su(R.placement);
|
|
5255
5255
|
return U === k || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -5257,7 +5257,7 @@ const os = function(u) {
|
|
|
5257
5257
|
U === "y";
|
|
5258
5258
|
}
|
|
5259
5259
|
return !0;
|
|
5260
|
-
}).map((R) => [R.placement, R.overflows.filter((U) => U > 0).reduce((U, Fe) => U + Fe, 0)]).sort((R, U) => R[1] - U[1])[0]) == null ? void 0 :
|
|
5260
|
+
}).map((R) => [R.placement, R.overflows.filter((U) => U > 0).reduce((U, Fe) => U + Fe, 0)]).sort((R, U) => R[1] - U[1])[0]) == null ? void 0 : T[0];
|
|
5261
5261
|
M && (J = M);
|
|
5262
5262
|
break;
|
|
5263
5263
|
}
|
|
@@ -5283,8 +5283,8 @@ async function is(u, e) {
|
|
|
5283
5283
|
elements: r
|
|
5284
5284
|
} = u, o = await (n.isRTL == null ? void 0 : n.isRTL(r.floating)), c = Pu(t), i = Ce(t), s = Su(t) === "y", a = cs.has(c) ? -1 : 1, l = o && s ? -1 : 1, f = ct(e, u);
|
|
5285
5285
|
let {
|
|
5286
|
-
mainAxis:
|
|
5287
|
-
crossAxis:
|
|
5286
|
+
mainAxis: h,
|
|
5287
|
+
crossAxis: p,
|
|
5288
5288
|
alignmentAxis: d
|
|
5289
5289
|
} = typeof f == "number" ? {
|
|
5290
5290
|
mainAxis: f,
|
|
@@ -5295,12 +5295,12 @@ async function is(u, e) {
|
|
|
5295
5295
|
crossAxis: f.crossAxis || 0,
|
|
5296
5296
|
alignmentAxis: f.alignmentAxis
|
|
5297
5297
|
};
|
|
5298
|
-
return i && typeof d == "number" && (
|
|
5299
|
-
x:
|
|
5300
|
-
y:
|
|
5298
|
+
return i && typeof d == "number" && (p = i === "end" ? d * -1 : d), s ? {
|
|
5299
|
+
x: p * l,
|
|
5300
|
+
y: h * a
|
|
5301
5301
|
} : {
|
|
5302
|
-
x:
|
|
5303
|
-
y:
|
|
5302
|
+
x: h * a,
|
|
5303
|
+
y: p * l
|
|
5304
5304
|
};
|
|
5305
5305
|
}
|
|
5306
5306
|
const ss = function(u) {
|
|
@@ -5330,7 +5330,7 @@ function De() {
|
|
|
5330
5330
|
return typeof window < "u";
|
|
5331
5331
|
}
|
|
5332
5332
|
function Vu(u) {
|
|
5333
|
-
return
|
|
5333
|
+
return y0(u) ? (u.nodeName || "").toLowerCase() : "#document";
|
|
5334
5334
|
}
|
|
5335
5335
|
function uu(u) {
|
|
5336
5336
|
var e;
|
|
@@ -5338,9 +5338,9 @@ function uu(u) {
|
|
|
5338
5338
|
}
|
|
5339
5339
|
function _u(u) {
|
|
5340
5340
|
var e;
|
|
5341
|
-
return (e = (
|
|
5341
|
+
return (e = (y0(u) ? u.ownerDocument : u.document) || window.document) == null ? void 0 : e.documentElement;
|
|
5342
5342
|
}
|
|
5343
|
-
function
|
|
5343
|
+
function y0(u) {
|
|
5344
5344
|
return De() ? u instanceof Node || u instanceof uu(u).Node : !1;
|
|
5345
5345
|
}
|
|
5346
5346
|
function iu(u) {
|
|
@@ -5376,10 +5376,10 @@ function Ee(u) {
|
|
|
5376
5376
|
}
|
|
5377
5377
|
});
|
|
5378
5378
|
}
|
|
5379
|
-
const
|
|
5379
|
+
const ps = ["transform", "translate", "scale", "rotate", "perspective"], hs = ["transform", "translate", "scale", "rotate", "perspective", "filter"], bs = ["paint", "layout", "strict", "content"];
|
|
5380
5380
|
function it(u) {
|
|
5381
5381
|
const e = st(), t = iu(u) ? su(u) : u;
|
|
5382
|
-
return
|
|
5382
|
+
return ps.some((n) => t[n] ? t[n] !== "none" : !1) || (t.containerType ? t.containerType !== "normal" : !1) || !e && (t.backdropFilter ? t.backdropFilter !== "none" : !1) || !e && (t.filter ? t.filter !== "none" : !1) || hs.some((n) => (t.willChange || "").includes(n)) || bs.some((n) => (t.contain || "").includes(n));
|
|
5383
5383
|
}
|
|
5384
5384
|
function ms(u) {
|
|
5385
5385
|
let e = Fu(u);
|
|
@@ -5423,14 +5423,14 @@ function Fu(u) {
|
|
|
5423
5423
|
);
|
|
5424
5424
|
return Lt(e) ? e.host : e;
|
|
5425
5425
|
}
|
|
5426
|
-
function
|
|
5426
|
+
function v0(u) {
|
|
5427
5427
|
const e = Fu(u);
|
|
5428
|
-
return Nu(e) ? u.ownerDocument ? u.ownerDocument.body : u.body : mu(e) && oe(e) ? e :
|
|
5428
|
+
return Nu(e) ? u.ownerDocument ? u.ownerDocument.body : u.body : mu(e) && oe(e) ? e : v0(e);
|
|
5429
5429
|
}
|
|
5430
5430
|
function Qu(u, e, t) {
|
|
5431
5431
|
var n;
|
|
5432
5432
|
e === void 0 && (e = []), t === void 0 && (t = !0);
|
|
5433
|
-
const r =
|
|
5433
|
+
const r = v0(u), o = r === ((n = u.ownerDocument) == null ? void 0 : n.body), c = uu(r);
|
|
5434
5434
|
if (o) {
|
|
5435
5435
|
const i = Ve(c);
|
|
5436
5436
|
return e.concat(c, c.visualViewport || [], oe(r) ? r : [], i && t ? Qu(i) : []);
|
|
@@ -5443,7 +5443,7 @@ function Ve(u) {
|
|
|
5443
5443
|
function C0(u) {
|
|
5444
5444
|
const e = su(u);
|
|
5445
5445
|
let t = parseFloat(e.width) || 0, n = parseFloat(e.height) || 0;
|
|
5446
|
-
const r = mu(u), o = r ? u.offsetWidth : t, c = r ? u.offsetHeight : n, i =
|
|
5446
|
+
const r = mu(u), o = r ? u.offsetWidth : t, c = r ? u.offsetHeight : n, i = he(t) !== o || he(n) !== c;
|
|
5447
5447
|
return i && (t = o, n = c), {
|
|
5448
5448
|
width: t,
|
|
5449
5449
|
height: n,
|
|
@@ -5462,7 +5462,7 @@ function Ru(u) {
|
|
|
5462
5462
|
height: r,
|
|
5463
5463
|
$: o
|
|
5464
5464
|
} = C0(e);
|
|
5465
|
-
let c = (o ?
|
|
5465
|
+
let c = (o ? he(t.width) : t.width) / n, i = (o ? he(t.height) : t.height) / r;
|
|
5466
5466
|
return (!c || !Number.isFinite(c)) && (c = 1), (!i || !Number.isFinite(i)) && (i = 1), {
|
|
5467
5467
|
x: c,
|
|
5468
5468
|
y: i
|
|
@@ -5487,11 +5487,11 @@ function qu(u, e, t, n) {
|
|
|
5487
5487
|
const i = _s(o, t, n) ? D0(o) : du(0);
|
|
5488
5488
|
let s = (r.left + i.x) / c.x, a = (r.top + i.y) / c.y, l = r.width / c.x, f = r.height / c.y;
|
|
5489
5489
|
if (o) {
|
|
5490
|
-
const
|
|
5491
|
-
let d =
|
|
5492
|
-
for (; x && n &&
|
|
5493
|
-
const _ = Ru(x),
|
|
5494
|
-
s *= _.x, a *= _.y, l *= _.x, f *= _.y, s += E, a +=
|
|
5490
|
+
const h = uu(o), p = n && iu(n) ? uu(n) : n;
|
|
5491
|
+
let d = h, x = Ve(d);
|
|
5492
|
+
for (; x && n && p !== d; ) {
|
|
5493
|
+
const _ = Ru(x), C = x.getBoundingClientRect(), k = su(x), E = C.left + (x.clientLeft + parseFloat(k.paddingLeft)) * _.x, y = C.top + (x.clientTop + parseFloat(k.paddingTop)) * _.y;
|
|
5494
|
+
s *= _.x, a *= _.y, l *= _.x, f *= _.y, s += E, a += y, d = uu(x), x = Ve(d);
|
|
5495
5495
|
}
|
|
5496
5496
|
}
|
|
5497
5497
|
return me({
|
|
@@ -5528,21 +5528,21 @@ function ks(u) {
|
|
|
5528
5528
|
}, a = du(1);
|
|
5529
5529
|
const l = du(0), f = mu(n);
|
|
5530
5530
|
if ((f || !f && !o) && ((Vu(n) !== "body" || oe(c)) && (s = we(n)), mu(n))) {
|
|
5531
|
-
const
|
|
5532
|
-
a = Ru(n), l.x =
|
|
5531
|
+
const p = qu(n);
|
|
5532
|
+
a = Ru(n), l.x = p.x + n.clientLeft, l.y = p.y + n.clientTop;
|
|
5533
5533
|
}
|
|
5534
|
-
const
|
|
5534
|
+
const h = c && !f && !o ? E0(c, s) : du(0);
|
|
5535
5535
|
return {
|
|
5536
5536
|
width: t.width * a.x,
|
|
5537
5537
|
height: t.height * a.y,
|
|
5538
|
-
x: t.x * a.x - s.scrollLeft * a.x + l.x +
|
|
5539
|
-
y: t.y * a.y - s.scrollTop * a.y + l.y +
|
|
5538
|
+
x: t.x * a.x - s.scrollLeft * a.x + l.x + h.x,
|
|
5539
|
+
y: t.y * a.y - s.scrollTop * a.y + l.y + h.y
|
|
5540
5540
|
};
|
|
5541
5541
|
}
|
|
5542
|
-
function
|
|
5542
|
+
function ys(u) {
|
|
5543
5543
|
return Array.from(u.getClientRects());
|
|
5544
5544
|
}
|
|
5545
|
-
function
|
|
5545
|
+
function vs(u) {
|
|
5546
5546
|
const e = _u(u), t = we(u), n = u.ownerDocument.body, r = Mu(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), o = Mu(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
|
|
5547
5547
|
let c = -t.scrollLeft + Ae(u);
|
|
5548
5548
|
const i = -t.scrollTop;
|
|
@@ -5564,7 +5564,7 @@ function Cs(u, e) {
|
|
|
5564
5564
|
}
|
|
5565
5565
|
const a = Ae(n);
|
|
5566
5566
|
if (a <= 0) {
|
|
5567
|
-
const l = n.ownerDocument, f = l.body,
|
|
5567
|
+
const l = n.ownerDocument, f = l.body, h = getComputedStyle(f), p = l.compatMode === "CSS1Compat" && parseFloat(h.marginLeft) + parseFloat(h.marginRight) || 0, d = Math.abs(n.clientWidth - f.clientWidth - p);
|
|
5568
5568
|
d <= Mt && (o -= d);
|
|
5569
5569
|
} else a <= Mt && (o += a);
|
|
5570
5570
|
return {
|
|
@@ -5589,7 +5589,7 @@ function Rt(u, e, t) {
|
|
|
5589
5589
|
if (e === "viewport")
|
|
5590
5590
|
n = Cs(u, t);
|
|
5591
5591
|
else if (e === "document")
|
|
5592
|
-
n =
|
|
5592
|
+
n = vs(_u(u));
|
|
5593
5593
|
else if (iu(e))
|
|
5594
5594
|
n = Es(e, t);
|
|
5595
5595
|
else {
|
|
@@ -5660,14 +5660,14 @@ function Ss(u, e, t) {
|
|
|
5660
5660
|
}
|
|
5661
5661
|
if (n || !n && !o)
|
|
5662
5662
|
if ((Vu(e) !== "body" || oe(r)) && (i = we(e)), n) {
|
|
5663
|
-
const
|
|
5664
|
-
s.x =
|
|
5663
|
+
const p = qu(e, !0, o, e);
|
|
5664
|
+
s.x = p.x + e.clientLeft, s.y = p.y + e.clientTop;
|
|
5665
5665
|
} else r && a();
|
|
5666
5666
|
o && !n && r && a();
|
|
5667
|
-
const l = r && !n && !o ? E0(r, i) : du(0), f = c.left + i.scrollLeft - s.x - l.x,
|
|
5667
|
+
const l = r && !n && !o ? E0(r, i) : du(0), f = c.left + i.scrollLeft - s.x - l.x, h = c.top + i.scrollTop - s.y - l.y;
|
|
5668
5668
|
return {
|
|
5669
5669
|
x: f,
|
|
5670
|
-
y:
|
|
5670
|
+
y: h,
|
|
5671
5671
|
width: c.width,
|
|
5672
5672
|
height: c.height
|
|
5673
5673
|
};
|
|
@@ -5722,7 +5722,7 @@ const Bs = {
|
|
|
5722
5722
|
getClippingRect: As,
|
|
5723
5723
|
getOffsetParent: A0,
|
|
5724
5724
|
getElementRects: qs,
|
|
5725
|
-
getClientRects:
|
|
5725
|
+
getClientRects: ys,
|
|
5726
5726
|
getDimensions: Fs,
|
|
5727
5727
|
getScale: Ru,
|
|
5728
5728
|
isElement: iu,
|
|
@@ -5743,26 +5743,26 @@ function Ts(u, e) {
|
|
|
5743
5743
|
const a = u.getBoundingClientRect(), {
|
|
5744
5744
|
left: l,
|
|
5745
5745
|
top: f,
|
|
5746
|
-
width:
|
|
5747
|
-
height:
|
|
5746
|
+
width: h,
|
|
5747
|
+
height: p
|
|
5748
5748
|
} = a;
|
|
5749
|
-
if (i || e(), !
|
|
5749
|
+
if (i || e(), !h || !p)
|
|
5750
5750
|
return;
|
|
5751
|
-
const d = ae(f), x = ae(r.clientWidth - (l +
|
|
5752
|
-
rootMargin: -d + "px " + -x + "px " + -_ + "px " + -
|
|
5751
|
+
const d = ae(f), x = ae(r.clientWidth - (l + h)), _ = ae(r.clientHeight - (f + p)), C = ae(l), E = {
|
|
5752
|
+
rootMargin: -d + "px " + -x + "px " + -_ + "px " + -C + "px",
|
|
5753
5753
|
threshold: Mu(0, He(1, s)) || 1
|
|
5754
5754
|
};
|
|
5755
|
-
let
|
|
5755
|
+
let y = !0;
|
|
5756
5756
|
function w(q) {
|
|
5757
|
-
const
|
|
5758
|
-
if (
|
|
5759
|
-
if (!
|
|
5757
|
+
const B = q[0].intersectionRatio;
|
|
5758
|
+
if (B !== s) {
|
|
5759
|
+
if (!y)
|
|
5760
5760
|
return c();
|
|
5761
|
-
|
|
5761
|
+
B ? c(!1, B) : n = setTimeout(() => {
|
|
5762
5762
|
c(!1, 1e-7);
|
|
5763
5763
|
}, 1e3);
|
|
5764
5764
|
}
|
|
5765
|
-
|
|
5765
|
+
B === 1 && !F0(a, u.getBoundingClientRect()) && c(), y = !1;
|
|
5766
5766
|
}
|
|
5767
5767
|
try {
|
|
5768
5768
|
t = new IntersectionObserver(w, {
|
|
@@ -5786,31 +5786,31 @@ function $s(u, e, t, n) {
|
|
|
5786
5786
|
layoutShift: i = typeof IntersectionObserver == "function",
|
|
5787
5787
|
animationFrame: s = !1
|
|
5788
5788
|
} = n, a = at(u), l = r || o ? [...a ? Qu(a) : [], ...Qu(e)] : [];
|
|
5789
|
-
l.forEach((
|
|
5790
|
-
r &&
|
|
5789
|
+
l.forEach((C) => {
|
|
5790
|
+
r && C.addEventListener("scroll", t, {
|
|
5791
5791
|
passive: !0
|
|
5792
|
-
}), o &&
|
|
5792
|
+
}), o && C.addEventListener("resize", t);
|
|
5793
5793
|
});
|
|
5794
5794
|
const f = a && i ? Ts(a, t) : null;
|
|
5795
|
-
let
|
|
5796
|
-
c && (
|
|
5797
|
-
let [k] =
|
|
5798
|
-
k && k.target === a &&
|
|
5795
|
+
let h = -1, p = null;
|
|
5796
|
+
c && (p = new ResizeObserver((C) => {
|
|
5797
|
+
let [k] = C;
|
|
5798
|
+
k && k.target === a && p && (p.unobserve(e), cancelAnimationFrame(h), h = requestAnimationFrame(() => {
|
|
5799
5799
|
var E;
|
|
5800
|
-
(E =
|
|
5800
|
+
(E = p) == null || E.observe(e);
|
|
5801
5801
|
})), t();
|
|
5802
|
-
}), a && !s &&
|
|
5802
|
+
}), a && !s && p.observe(a), p.observe(e));
|
|
5803
5803
|
let d, x = s ? qu(u) : null;
|
|
5804
5804
|
s && _();
|
|
5805
5805
|
function _() {
|
|
5806
|
-
const
|
|
5807
|
-
x && !F0(x,
|
|
5806
|
+
const C = qu(u);
|
|
5807
|
+
x && !F0(x, C) && t(), x = C, d = requestAnimationFrame(_);
|
|
5808
5808
|
}
|
|
5809
5809
|
return t(), () => {
|
|
5810
|
-
var
|
|
5810
|
+
var C;
|
|
5811
5811
|
l.forEach((k) => {
|
|
5812
5812
|
r && k.removeEventListener("scroll", t), o && k.removeEventListener("resize", t);
|
|
5813
|
-
}), f == null || f(), (
|
|
5813
|
+
}), f == null || f(), (C = p) == null || C.disconnect(), p = null, s && cancelAnimationFrame(d);
|
|
5814
5814
|
};
|
|
5815
5815
|
}
|
|
5816
5816
|
const Ls = ss, Ms = os, Rs = (u, e, t) => {
|
|
@@ -5825,7 +5825,7 @@ const Ls = ss, Ms = os, Rs = (u, e, t) => {
|
|
|
5825
5825
|
...r,
|
|
5826
5826
|
platform: o
|
|
5827
5827
|
});
|
|
5828
|
-
}, Is = "sq-popover",
|
|
5828
|
+
}, Is = "sq-popover", va = /* @__PURE__ */ L({
|
|
5829
5829
|
name: Is,
|
|
5830
5830
|
__name: "popover",
|
|
5831
5831
|
props: /* @__PURE__ */ tu({
|
|
@@ -5846,21 +5846,21 @@ const Ls = ss, Ms = os, Rs = (u, e, t) => {
|
|
|
5846
5846
|
setup(u) {
|
|
5847
5847
|
const { nextZIndex: e } = Ht();
|
|
5848
5848
|
let t, n;
|
|
5849
|
-
const r = u, o =
|
|
5850
|
-
Eu(o, (
|
|
5851
|
-
|
|
5849
|
+
const r = u, o = hu(u, "visible"), c = j(0), i = j({}), s = Zu(null), a = Zu(null);
|
|
5850
|
+
Eu(o, (C) => {
|
|
5851
|
+
C ? (c.value = e(), x(), n = $s(
|
|
5852
5852
|
s.value.$el,
|
|
5853
5853
|
a.value,
|
|
5854
5854
|
x
|
|
5855
5855
|
)) : n == null || n();
|
|
5856
|
-
}),
|
|
5856
|
+
}), yu(() => {
|
|
5857
5857
|
x();
|
|
5858
5858
|
}), xe(() => {
|
|
5859
5859
|
_(), document.removeEventListener("click", d);
|
|
5860
5860
|
});
|
|
5861
5861
|
function l() {
|
|
5862
5862
|
r.trigger !== "hover" || r.disabled || (_(), t = setTimeout(() => {
|
|
5863
|
-
|
|
5863
|
+
p(!1);
|
|
5864
5864
|
}, r.showAfter));
|
|
5865
5865
|
}
|
|
5866
5866
|
function f() {
|
|
@@ -5868,44 +5868,47 @@ const Ls = ss, Ms = os, Rs = (u, e, t) => {
|
|
|
5868
5868
|
d();
|
|
5869
5869
|
}, r.hideAfter));
|
|
5870
5870
|
}
|
|
5871
|
-
function
|
|
5872
|
-
r.trigger === "click" && !r.disabled && !o.value && (
|
|
5871
|
+
function h(C) {
|
|
5872
|
+
r.trigger === "click" && !r.disabled && !o.value && (C.stopPropagation(), p());
|
|
5873
5873
|
}
|
|
5874
|
-
function
|
|
5875
|
-
o.value = !0,
|
|
5874
|
+
function p(C = !0) {
|
|
5875
|
+
o.value = !0, C && document.addEventListener("click", d);
|
|
5876
5876
|
}
|
|
5877
5877
|
function d() {
|
|
5878
5878
|
o.value = !1, document.removeEventListener("click", d);
|
|
5879
5879
|
}
|
|
5880
5880
|
async function x() {
|
|
5881
|
-
|
|
5881
|
+
var q, B;
|
|
5882
|
+
const C = typeof ((q = s.value) == null ? void 0 : q.$el.getBoundingClientRect), k = typeof ((B = a.value) == null ? void 0 : B.getBoundingClientRect);
|
|
5883
|
+
if (C !== "function" || k !== "function") return;
|
|
5884
|
+
const E = await Rs(s.value.$el, a.value, {
|
|
5882
5885
|
placement: r.placement,
|
|
5883
5886
|
middleware: [Ls(r.offset), Ms()]
|
|
5884
|
-
}), { x:
|
|
5887
|
+
}), { x: y, y: w } = E;
|
|
5885
5888
|
i.value = {
|
|
5886
|
-
left: `${
|
|
5887
|
-
top: `${
|
|
5889
|
+
left: `${y}px`,
|
|
5890
|
+
top: `${w}px`
|
|
5888
5891
|
};
|
|
5889
5892
|
}
|
|
5890
5893
|
function _() {
|
|
5891
5894
|
t && (clearTimeout(t), t = void 0);
|
|
5892
5895
|
}
|
|
5893
|
-
return (
|
|
5896
|
+
return (C, k) => (g(), A(bu, null, [
|
|
5894
5897
|
wu(b(Ui), {
|
|
5895
|
-
class: V(["sq-popover-trigger",
|
|
5896
|
-
style: eu(
|
|
5898
|
+
class: V(["sq-popover-trigger", C.$attrs.class]),
|
|
5899
|
+
style: eu(C.$attrs.style),
|
|
5897
5900
|
ref_key: "triggerRef",
|
|
5898
5901
|
ref: s,
|
|
5899
5902
|
onMouseenter: l,
|
|
5900
5903
|
onMouseleave: f,
|
|
5901
|
-
onClick:
|
|
5904
|
+
onClick: h
|
|
5902
5905
|
}, {
|
|
5903
5906
|
default: Q(() => [
|
|
5904
|
-
H(
|
|
5907
|
+
H(C.$slots, "reference")
|
|
5905
5908
|
]),
|
|
5906
5909
|
_: 3
|
|
5907
5910
|
}, 8, ["class", "style"]),
|
|
5908
|
-
(g(),
|
|
5911
|
+
(g(), $(M0, {
|
|
5909
5912
|
to: "body",
|
|
5910
5913
|
disabled: !r.teleported
|
|
5911
5914
|
}, [
|
|
@@ -5914,14 +5917,14 @@ const Ls = ss, Ms = os, Rs = (u, e, t) => {
|
|
|
5914
5917
|
}, {
|
|
5915
5918
|
default: Q(() => [
|
|
5916
5919
|
fu(F("div", {
|
|
5917
|
-
class: V(["sq-popover",
|
|
5920
|
+
class: V(["sq-popover", C.popoverClass]),
|
|
5918
5921
|
style: eu({ ...i.value, zIndex: c.value }),
|
|
5919
5922
|
ref_key: "popverRef",
|
|
5920
5923
|
ref: a,
|
|
5921
5924
|
onClick: k[0] || (k[0] = Nt(() => {
|
|
5922
5925
|
}, ["stop"]))
|
|
5923
5926
|
}, [
|
|
5924
|
-
H(
|
|
5927
|
+
H(C.$slots, "default")
|
|
5925
5928
|
], 6), [
|
|
5926
5929
|
[Ku, o.value]
|
|
5927
5930
|
])
|
|
@@ -5959,16 +5962,16 @@ const Ls = ss, Ms = os, Rs = (u, e, t) => {
|
|
|
5959
5962
|
if (l["--progress-stroke"] = `${t.stroke}px`, !t.variant)
|
|
5960
5963
|
l["--progress-value"] = `${c.value}%`;
|
|
5961
5964
|
else if (r.value) {
|
|
5962
|
-
const f = 100 / n.value * t.stroke,
|
|
5963
|
-
l["--progress-circle-r"] = `${
|
|
5965
|
+
const f = 100 / n.value * t.stroke, h = (100 - f) / 2, p = Math.PI * h * 2, d = c.value / 100;
|
|
5966
|
+
l["--progress-circle-r"] = `${h}px`, l["--progress-circle-l"] = `${p}px`, l["--progress-circle-stroke"] = `${f}px`, l["--progress-value"] = `${p * d}`, c.value === 0 && (l["--progress-circle-opaciry"] = "0");
|
|
5964
5967
|
}
|
|
5965
5968
|
if (t.color) {
|
|
5966
|
-
const
|
|
5967
|
-
l["--progress-color"] =
|
|
5969
|
+
const h = typeof t.color == "string" ? t.color : t.color(c.value);
|
|
5970
|
+
l["--progress-color"] = h;
|
|
5968
5971
|
}
|
|
5969
5972
|
return l;
|
|
5970
5973
|
});
|
|
5971
|
-
|
|
5974
|
+
yu(() => {
|
|
5972
5975
|
e.observe(r.value);
|
|
5973
5976
|
}), xe(() => {
|
|
5974
5977
|
e.disconnect();
|
|
@@ -6036,23 +6039,23 @@ const Ls = ss, Ms = os, Rs = (u, e, t) => {
|
|
|
6036
6039
|
radioName: i,
|
|
6037
6040
|
radioVariant: s,
|
|
6038
6041
|
groupContext: a
|
|
6039
|
-
} = Nc(n), l = j(), f =
|
|
6040
|
-
const d = [], x = b(r), _ = b(o),
|
|
6041
|
-
return x !== "md" && d.push(`sq-selection--${x}`),
|
|
6042
|
-
}),
|
|
6042
|
+
} = Nc(n), l = j(), f = hu(u, "checked"), h = D(() => {
|
|
6043
|
+
const d = [], x = b(r), _ = b(o), C = b(s);
|
|
6044
|
+
return x !== "md" && d.push(`sq-selection--${x}`), p.value && d.push("is-checked"), _ && d.push("is-disabled"), C && d.push(`is-${C}`), d;
|
|
6045
|
+
}), p = D(() => n.label && a ? b(b(a)).checked === n.label : f.value);
|
|
6043
6046
|
return Eu(l, (d) => {
|
|
6044
6047
|
n.label ? f.value = d === n.label : f.value = d === "on";
|
|
6045
|
-
}), Eu(
|
|
6048
|
+
}), Eu(p, (d) => {
|
|
6046
6049
|
if (d ? l.value = n.label ?? "on" : l.value = void 0, f.value !== d) {
|
|
6047
6050
|
f.value = d;
|
|
6048
6051
|
return;
|
|
6049
6052
|
}
|
|
6050
6053
|
}), Eu(f, (d) => {
|
|
6051
|
-
|
|
6052
|
-
}),
|
|
6053
|
-
f.value =
|
|
6054
|
+
p.value !== d && n.label && a && a.value.toggleItem(n.label);
|
|
6055
|
+
}), yu(() => {
|
|
6056
|
+
f.value = p.value, l.value = f.value ? n.label ?? "on" : void 0;
|
|
6054
6057
|
}), (d, x) => (g(), A("label", {
|
|
6055
|
-
class: V(["sq-selection sq-radio",
|
|
6058
|
+
class: V(["sq-selection sq-radio", h.value])
|
|
6056
6059
|
}, [
|
|
6057
6060
|
fu(F("input", {
|
|
6058
6061
|
type: "radio",
|
|
@@ -6062,7 +6065,7 @@ const Ls = ss, Ms = os, Rs = (u, e, t) => {
|
|
|
6062
6065
|
value: n.label,
|
|
6063
6066
|
disabled: b(o),
|
|
6064
6067
|
"onUpdate:modelValue": x[0] || (x[0] = (_) => l.value = _),
|
|
6065
|
-
onChange: x[1] || (x[1] = (_) => t("change",
|
|
6068
|
+
onChange: x[1] || (x[1] = (_) => t("change", p.value))
|
|
6066
6069
|
}, null, 40, Hs), [
|
|
6067
6070
|
[R0, l.value]
|
|
6068
6071
|
]),
|
|
@@ -6111,7 +6114,7 @@ const Ls = ss, Ms = os, Rs = (u, e, t) => {
|
|
|
6111
6114
|
}
|
|
6112
6115
|
return (s, a) => (g(), A("div", Gs, [
|
|
6113
6116
|
H(s.$slots, "default", {}, () => [
|
|
6114
|
-
(g(!0), A(bu, null, ju(r.items, (l, f) => (g(),
|
|
6117
|
+
(g(!0), A(bu, null, ju(r.items, (l, f) => (g(), $(b(Ws), {
|
|
6115
6118
|
key: f,
|
|
6116
6119
|
label: l
|
|
6117
6120
|
}, null, 8, ["label"]))), 128))
|
|
@@ -6135,7 +6138,7 @@ const Ls = ss, Ms = os, Rs = (u, e, t) => {
|
|
|
6135
6138
|
}),
|
|
6136
6139
|
emits: /* @__PURE__ */ tu(["change", "click"], ["update:checked"]),
|
|
6137
6140
|
setup(u, { emit: e }) {
|
|
6138
|
-
const t = e, n = u, { switchSize: r, switchDisabled: o, id: c } = jc(n), i =
|
|
6141
|
+
const t = e, n = u, { switchSize: r, switchDisabled: o, id: c } = jc(n), i = hu(u, "checked"), s = D(() => {
|
|
6139
6142
|
const a = [], l = b(r), f = b(o);
|
|
6140
6143
|
return l !== "md" && a.push(`sq-switch--${l}`), i.value && a.push("is-checked"), (f || n.loading) && a.push("is-disabled"), n.variant && a.push(`is-${n.variant}`), a;
|
|
6141
6144
|
});
|
|
@@ -6157,7 +6160,7 @@ const Ls = ss, Ms = os, Rs = (u, e, t) => {
|
|
|
6157
6160
|
]),
|
|
6158
6161
|
F("span", Ys, [
|
|
6159
6162
|
F("span", Ks, [
|
|
6160
|
-
n.loading ? (g(),
|
|
6163
|
+
n.loading ? (g(), $(b(ge), { key: 0 })) : O("", !0)
|
|
6161
6164
|
])
|
|
6162
6165
|
])
|
|
6163
6166
|
], 2));
|
|
@@ -6176,7 +6179,7 @@ const Ls = ss, Ms = os, Rs = (u, e, t) => {
|
|
|
6176
6179
|
const r = [];
|
|
6177
6180
|
return e.size !== "md" && r.push(`sq-tag--${e.size}`), e.variant && e.type && r.push(`is-${e.variant}`), e.type && r.push(`is-${e.type}`), e.round && r.push("is-round"), r;
|
|
6178
6181
|
}), n = D(() => e.size === "lg" ? "md" : "sm");
|
|
6179
|
-
return (r, o) => (g(),
|
|
6182
|
+
return (r, o) => (g(), $(b(zu), {
|
|
6180
6183
|
class: V(["sq-tag", t.value]),
|
|
6181
6184
|
size: n.value
|
|
6182
6185
|
}, {
|
|
@@ -6201,7 +6204,7 @@ const Ls = ss, Ms = os, Rs = (u, e, t) => {
|
|
|
6201
6204
|
const c = [];
|
|
6202
6205
|
return n.size !== "md" && c.push(`sq-tag--${n.size}`), n.type && c.push(`is-${n.type}`), n.round && c.push("is-round"), n.checked && c.push("is-checked"), c;
|
|
6203
6206
|
}), o = D(() => n.size === "lg" ? "md" : "sm");
|
|
6204
|
-
return (c, i) => (g(),
|
|
6207
|
+
return (c, i) => (g(), $(b(zu), {
|
|
6205
6208
|
class: V(["sq-check-tag", r.value]),
|
|
6206
6209
|
size: o.value,
|
|
6207
6210
|
onClick: i[0] || (i[0] = (s) => t("change", !n.checked))
|
|
@@ -6275,7 +6278,7 @@ const Ls = ss, Ms = os, Rs = (u, e, t) => {
|
|
|
6275
6278
|
style: eu(n.value)
|
|
6276
6279
|
}, [
|
|
6277
6280
|
F("span", ca, [
|
|
6278
|
-
e.icon ? (g(),
|
|
6281
|
+
e.icon ? (g(), $(ku(e.icon), { key: 0 })) : O("", !0)
|
|
6279
6282
|
]),
|
|
6280
6283
|
F("div", ia, [
|
|
6281
6284
|
e.title ? (g(), A("h2", {
|
|
@@ -6301,12 +6304,12 @@ export {
|
|
|
6301
6304
|
Uu as FormContextKeys,
|
|
6302
6305
|
ot as FormItemIdKeys,
|
|
6303
6306
|
S0 as RadioGroupContextKeys,
|
|
6304
|
-
|
|
6305
|
-
|
|
6307
|
+
pa as SqAlert,
|
|
6308
|
+
ha as SqArticle,
|
|
6306
6309
|
ba as SqAvatar,
|
|
6307
6310
|
ma as SqBacktop,
|
|
6308
6311
|
Rc as SqBlur,
|
|
6309
|
-
|
|
6312
|
+
pe as SqButton,
|
|
6310
6313
|
xa as SqButtonGroup,
|
|
6311
6314
|
ga as SqCard,
|
|
6312
6315
|
Da as SqCheckTag,
|
|
@@ -6317,8 +6320,8 @@ export {
|
|
|
6317
6320
|
gi as SqImage,
|
|
6318
6321
|
Di as SqInput,
|
|
6319
6322
|
ka as SqMessage,
|
|
6320
|
-
|
|
6321
|
-
|
|
6323
|
+
ya as SqPagination,
|
|
6324
|
+
va as SqPopover,
|
|
6322
6325
|
js as SqProgress,
|
|
6323
6326
|
Ws as SqRadio,
|
|
6324
6327
|
Xs as SqRadioGroup,
|