uhuu-components 0.2.70 → 0.2.71
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/package.json +1 -1
- package/uhuu-components.es.js +797 -781
- package/uhuu-components.es.js.map +1 -1
- package/uhuu-components.umd.js +18 -18
- package/uhuu-components.umd.js.map +1 -1
package/uhuu-components.es.js
CHANGED
|
@@ -631,31 +631,31 @@ function mf() {
|
|
|
631
631
|
var sd;
|
|
632
632
|
function ff() {
|
|
633
633
|
return sd || (sd = 1, (function(t, e) {
|
|
634
|
-
var r = mr(), n = mf(), a = Function.prototype.apply, i = Function.prototype.call, o = Object.create, s = Object.defineProperty, l = Object.defineProperties, c = Object.prototype.hasOwnProperty, d = { configurable: !0, enumerable: !1, writable: !0 }, u, p, m, v, f,
|
|
635
|
-
u = function(S,
|
|
634
|
+
var r = mr(), n = mf(), a = Function.prototype.apply, i = Function.prototype.call, o = Object.create, s = Object.defineProperty, l = Object.defineProperties, c = Object.prototype.hasOwnProperty, d = { configurable: !0, enumerable: !1, writable: !0 }, u, p, m, v, f, h, x;
|
|
635
|
+
u = function(S, g) {
|
|
636
636
|
var y;
|
|
637
|
-
return n(
|
|
638
|
-
}, p = function(S,
|
|
637
|
+
return n(g), c.call(this, "__ee__") ? y = this.__ee__ : (y = d.value = o(null), s(this, "__ee__", d), d.value = null), y[S] ? typeof y[S] == "object" ? y[S].push(g) : y[S] = [y[S], g] : y[S] = g, this;
|
|
638
|
+
}, p = function(S, g) {
|
|
639
639
|
var y, b;
|
|
640
|
-
return n(
|
|
641
|
-
m.call(b, S, y), a.call(
|
|
642
|
-
}), y.__eeOnceListener__ =
|
|
643
|
-
}, m = function(S,
|
|
640
|
+
return n(g), b = this, u.call(this, S, y = function() {
|
|
641
|
+
m.call(b, S, y), a.call(g, this, arguments);
|
|
642
|
+
}), y.__eeOnceListener__ = g, this;
|
|
643
|
+
}, m = function(S, g) {
|
|
644
644
|
var y, b, E, C;
|
|
645
|
-
if (n(
|
|
645
|
+
if (n(g), !c.call(this, "__ee__")) return this;
|
|
646
646
|
if (y = this.__ee__, !y[S]) return this;
|
|
647
647
|
if (b = y[S], typeof b == "object")
|
|
648
648
|
for (C = 0; E = b[C]; ++C)
|
|
649
|
-
(E ===
|
|
649
|
+
(E === g || E.__eeOnceListener__ === g) && (b.length === 2 ? y[S] = b[C ? 0 : 1] : b.splice(C, 1));
|
|
650
650
|
else
|
|
651
|
-
(b ===
|
|
651
|
+
(b === g || b.__eeOnceListener__ === g) && delete y[S];
|
|
652
652
|
return this;
|
|
653
653
|
}, v = function(S) {
|
|
654
|
-
var
|
|
654
|
+
var g, y, b, E, C;
|
|
655
655
|
if (c.call(this, "__ee__") && (E = this.__ee__[S], !!E))
|
|
656
656
|
if (typeof E == "object") {
|
|
657
|
-
for (y = arguments.length, C = new Array(y - 1),
|
|
658
|
-
for (E = E.slice(),
|
|
657
|
+
for (y = arguments.length, C = new Array(y - 1), g = 1; g < y; ++g) C[g - 1] = arguments[g];
|
|
658
|
+
for (E = E.slice(), g = 0; b = E[g]; ++g)
|
|
659
659
|
a.call(b, this, C);
|
|
660
660
|
} else
|
|
661
661
|
switch (arguments.length) {
|
|
@@ -669,8 +669,8 @@ function ff() {
|
|
|
669
669
|
i.call(E, this, arguments[1], arguments[2]);
|
|
670
670
|
break;
|
|
671
671
|
default:
|
|
672
|
-
for (y = arguments.length, C = new Array(y - 1),
|
|
673
|
-
C[
|
|
672
|
+
for (y = arguments.length, C = new Array(y - 1), g = 1; g < y; ++g)
|
|
673
|
+
C[g - 1] = arguments[g];
|
|
674
674
|
a.call(E, this, C);
|
|
675
675
|
}
|
|
676
676
|
}, f = {
|
|
@@ -678,13 +678,13 @@ function ff() {
|
|
|
678
678
|
once: p,
|
|
679
679
|
off: m,
|
|
680
680
|
emit: v
|
|
681
|
-
},
|
|
681
|
+
}, h = {
|
|
682
682
|
on: r(u),
|
|
683
683
|
once: r(p),
|
|
684
684
|
off: r(m),
|
|
685
685
|
emit: r(v)
|
|
686
|
-
}, x = l({},
|
|
687
|
-
return S == null ? o(x) : l(Object(S),
|
|
686
|
+
}, x = l({}, h), t.exports = e = function(S) {
|
|
687
|
+
return S == null ? o(x) : l(Object(S), h);
|
|
688
688
|
}, e.methods = f;
|
|
689
689
|
})(vn, vn.exports)), vn.exports;
|
|
690
690
|
}
|
|
@@ -779,8 +779,8 @@ class Cl {
|
|
|
779
779
|
let x = s.dataset.page, S = this.element.closest(".pagedjs_page");
|
|
780
780
|
S.classList.add("pagedjs_named_page"), S.classList.add("pagedjs_" + x + "_page"), s.dataset.splitFrom || S.classList.add("pagedjs_" + x + "_first_page");
|
|
781
781
|
}
|
|
782
|
-
let f = df(s),
|
|
783
|
-
if (m +=
|
|
782
|
+
let f = df(s), h = this.append(s, e, n, f);
|
|
783
|
+
if (m += h.textContent.length, u || (u = ab(s)), f || (o = hn(Gt(s, r), r)), this.forceRenderBreak) {
|
|
784
784
|
this.hooks && this.hooks.layout.trigger(e, this), p = this.findBreakToken(e, r, a, v), p ? this.rebuildTableFromBreakToken(p, e) : p = this.breakAt(s), m = 0, this.forceRenderBreak = !1;
|
|
785
785
|
break;
|
|
786
786
|
}
|
|
@@ -928,23 +928,23 @@ class Cl {
|
|
|
928
928
|
}
|
|
929
929
|
findOverflow(e, r = this.bounds, n = this.gap) {
|
|
930
930
|
if (!this.hasOverflow(e, r)) return;
|
|
931
|
-
let a = Math.floor(r.left), i = Math.round(r.right + n), o = Math.round(r.top), s = Math.round(r.bottom), l, c = hn(e.firstChild, e), d, u, p, m, v, f,
|
|
931
|
+
let a = Math.floor(r.left), i = Math.round(r.right + n), o = Math.round(r.top), s = Math.round(r.bottom), l, c = hn(e.firstChild, e), d, u, p, m, v, f, h, x;
|
|
932
932
|
for (; !u; )
|
|
933
|
-
if (d = c.next(), u = d.done, p = d.value, v = !1, f = !1,
|
|
934
|
-
let
|
|
933
|
+
if (d = c.next(), u = d.done, p = d.value, v = !1, f = !1, h = void 0, x = void 0, p) {
|
|
934
|
+
let g = Ta(p), y = Math.round(g.left), b = Math.floor(g.right), E = Math.round(g.top), C = Math.floor(g.bottom);
|
|
935
935
|
if (!l && (y >= i || E >= s)) {
|
|
936
936
|
let w = !1;
|
|
937
937
|
const O = Ra(p, "TD", e);
|
|
938
938
|
if (O && window.getComputedStyle(O)["break-inside"] === "avoid")
|
|
939
|
-
|
|
939
|
+
h = O.parentElement;
|
|
940
940
|
else if (Ve(p)) {
|
|
941
941
|
let R = window.getComputedStyle(p);
|
|
942
|
-
w = R.getPropertyValue("float") !== "none", v = R.getPropertyValue("break-inside") === "avoid", f = p.dataset.breakBefore === "avoid" || p.dataset.previousBreakAfter === "avoid",
|
|
942
|
+
w = R.getPropertyValue("float") !== "none", v = R.getPropertyValue("break-inside") === "avoid", f = p.dataset.breakBefore === "avoid" || p.dataset.previousBreakAfter === "avoid", h = f && zn(p, e), x = p.tagName === "BR" || p.tagName === "WBR";
|
|
943
943
|
}
|
|
944
944
|
let A;
|
|
945
945
|
if (p.nodeName === "TR" ? A = p : A = Ra(p, "TR", e), A) {
|
|
946
946
|
let R = A.parentElement;
|
|
947
|
-
["TBODY", "THEAD"].includes(R.nodeName) && window.getComputedStyle(R).getPropertyValue("break-inside") === "avoid" && (
|
|
947
|
+
["TBODY", "THEAD"].includes(R.nodeName) && window.getComputedStyle(R).getPropertyValue("break-inside") === "avoid" && (h = R);
|
|
948
948
|
const P = Ra(A, "TABLE", e), N = P.querySelector("[colspan]");
|
|
949
949
|
if (P && N) {
|
|
950
950
|
let z = 0;
|
|
@@ -960,12 +960,12 @@ class Cl {
|
|
|
960
960
|
break;
|
|
961
961
|
U = U.previousElementSibling;
|
|
962
962
|
}
|
|
963
|
-
L === z && (
|
|
963
|
+
L === z && (h = U);
|
|
964
964
|
}
|
|
965
965
|
}
|
|
966
966
|
}
|
|
967
|
-
if (
|
|
968
|
-
l = document.createRange(), l.selectNode(
|
|
967
|
+
if (h) {
|
|
968
|
+
l = document.createRange(), l.selectNode(h);
|
|
969
969
|
break;
|
|
970
970
|
}
|
|
971
971
|
if (!x && !w && Ve(p)) {
|
|
@@ -1019,8 +1019,8 @@ class Cl {
|
|
|
1019
1019
|
break;
|
|
1020
1020
|
}
|
|
1021
1021
|
if (l > n || d > i) {
|
|
1022
|
-
let
|
|
1023
|
-
for (; !
|
|
1022
|
+
let h = eb(u), x, S, g;
|
|
1023
|
+
for (; !g && (S = h.next(), x = S.value, g = S.done, !!x); )
|
|
1024
1024
|
if (v = Ta(x), s = Math.floor(v.left), c = Math.floor(v.top), s >= n || c >= i) {
|
|
1025
1025
|
f = x.startOffset, m = !0;
|
|
1026
1026
|
break;
|
|
@@ -1708,17 +1708,17 @@ function gf() {
|
|
|
1708
1708
|
var t = kl(), e = 100, r = 60, n = " ";
|
|
1709
1709
|
function a(o, s) {
|
|
1710
1710
|
function l(x, S) {
|
|
1711
|
-
return c.slice(x, S).map(function(
|
|
1711
|
+
return c.slice(x, S).map(function(g, y) {
|
|
1712
1712
|
for (var b = String(x + y + 1); b.length < v; )
|
|
1713
1713
|
b = " " + b;
|
|
1714
|
-
return b + " |" +
|
|
1714
|
+
return b + " |" + g;
|
|
1715
1715
|
}).join(`
|
|
1716
1716
|
`);
|
|
1717
1717
|
}
|
|
1718
1718
|
var c = o.source.split(/\r\n?|\n|\f/), d = o.line, u = o.column, p = Math.max(1, d - s) - 1, m = Math.min(d + s, c.length + 1), v = Math.max(4, String(m).length) + 1, f = 0;
|
|
1719
1719
|
u += (n.length - 1) * (c[d - 1].substr(0, u - 1).match(/\t/g) || []).length, u > e && (f = u - r + 3, u = r - 2);
|
|
1720
|
-
for (var
|
|
1721
|
-
|
|
1720
|
+
for (var h = p; h <= m; h++)
|
|
1721
|
+
h >= 0 && h < c.length && (c[h] = c[h].replace(/\t/g, n), c[h] = (f > 0 && c[h].length > f ? "…" : "") + c[h].substr(f, e - 2) + (c[h].length > f + e - 1 ? "…" : ""));
|
|
1722
1722
|
return [
|
|
1723
1723
|
l(p, d),
|
|
1724
1724
|
new Array(u + v + 2).join("-") + "^",
|
|
@@ -1812,74 +1812,74 @@ function vf() {
|
|
|
1812
1812
|
if (pd) return ri;
|
|
1813
1813
|
pd = 1;
|
|
1814
1814
|
var t = 0;
|
|
1815
|
-
function e(
|
|
1816
|
-
return
|
|
1815
|
+
function e(g) {
|
|
1816
|
+
return g >= 48 && g <= 57;
|
|
1817
1817
|
}
|
|
1818
|
-
function r(
|
|
1819
|
-
return e(
|
|
1820
|
-
|
|
1821
|
-
|
|
1818
|
+
function r(g) {
|
|
1819
|
+
return e(g) || // 0 .. 9
|
|
1820
|
+
g >= 65 && g <= 70 || // A .. F
|
|
1821
|
+
g >= 97 && g <= 102;
|
|
1822
1822
|
}
|
|
1823
|
-
function n(
|
|
1824
|
-
return
|
|
1823
|
+
function n(g) {
|
|
1824
|
+
return g >= 65 && g <= 90;
|
|
1825
1825
|
}
|
|
1826
|
-
function a(
|
|
1827
|
-
return
|
|
1826
|
+
function a(g) {
|
|
1827
|
+
return g >= 97 && g <= 122;
|
|
1828
1828
|
}
|
|
1829
|
-
function i(
|
|
1830
|
-
return n(
|
|
1829
|
+
function i(g) {
|
|
1830
|
+
return n(g) || a(g);
|
|
1831
1831
|
}
|
|
1832
|
-
function o(
|
|
1833
|
-
return
|
|
1832
|
+
function o(g) {
|
|
1833
|
+
return g >= 128;
|
|
1834
1834
|
}
|
|
1835
|
-
function s(
|
|
1836
|
-
return i(
|
|
1835
|
+
function s(g) {
|
|
1836
|
+
return i(g) || o(g) || g === 95;
|
|
1837
1837
|
}
|
|
1838
|
-
function l(
|
|
1839
|
-
return s(
|
|
1838
|
+
function l(g) {
|
|
1839
|
+
return s(g) || e(g) || g === 45;
|
|
1840
1840
|
}
|
|
1841
|
-
function c(
|
|
1842
|
-
return
|
|
1841
|
+
function c(g) {
|
|
1842
|
+
return g >= 0 && g <= 8 || g === 11 || g >= 14 && g <= 31 || g === 127;
|
|
1843
1843
|
}
|
|
1844
|
-
function d(
|
|
1845
|
-
return
|
|
1844
|
+
function d(g) {
|
|
1845
|
+
return g === 10 || g === 13 || g === 12;
|
|
1846
1846
|
}
|
|
1847
|
-
function u(
|
|
1848
|
-
return d(
|
|
1847
|
+
function u(g) {
|
|
1848
|
+
return d(g) || g === 32 || g === 9;
|
|
1849
1849
|
}
|
|
1850
|
-
function p(
|
|
1851
|
-
return !(
|
|
1850
|
+
function p(g, y) {
|
|
1851
|
+
return !(g !== 92 || d(y) || y === t);
|
|
1852
1852
|
}
|
|
1853
|
-
function m(
|
|
1854
|
-
return
|
|
1853
|
+
function m(g, y, b) {
|
|
1854
|
+
return g === 45 ? s(y) || y === 45 || p(y, b) : s(g) ? !0 : g === 92 ? p(g, y) : !1;
|
|
1855
1855
|
}
|
|
1856
|
-
function v(
|
|
1857
|
-
return
|
|
1856
|
+
function v(g, y, b) {
|
|
1857
|
+
return g === 43 || g === 45 ? e(y) ? 2 : y === 46 && e(b) ? 3 : 0 : g === 46 ? e(y) ? 2 : 0 : e(g) ? 1 : 0;
|
|
1858
1858
|
}
|
|
1859
|
-
function f(
|
|
1860
|
-
return
|
|
1859
|
+
function f(g) {
|
|
1860
|
+
return g === 65279 || g === 65534 ? 1 : 0;
|
|
1861
1861
|
}
|
|
1862
|
-
var
|
|
1862
|
+
var h = new Array(128);
|
|
1863
1863
|
S.Eof = 128, S.WhiteSpace = 130, S.Digit = 131, S.NameStart = 132, S.NonPrintable = 133;
|
|
1864
|
-
for (var x = 0; x <
|
|
1864
|
+
for (var x = 0; x < h.length; x++)
|
|
1865
1865
|
switch (!0) {
|
|
1866
1866
|
case u(x):
|
|
1867
|
-
|
|
1867
|
+
h[x] = S.WhiteSpace;
|
|
1868
1868
|
break;
|
|
1869
1869
|
case e(x):
|
|
1870
|
-
|
|
1870
|
+
h[x] = S.Digit;
|
|
1871
1871
|
break;
|
|
1872
1872
|
case s(x):
|
|
1873
|
-
|
|
1873
|
+
h[x] = S.NameStart;
|
|
1874
1874
|
break;
|
|
1875
1875
|
case c(x):
|
|
1876
|
-
|
|
1876
|
+
h[x] = S.NonPrintable;
|
|
1877
1877
|
break;
|
|
1878
1878
|
default:
|
|
1879
|
-
|
|
1879
|
+
h[x] = x || S.Eof;
|
|
1880
1880
|
}
|
|
1881
|
-
function S(
|
|
1882
|
-
return
|
|
1881
|
+
function S(g) {
|
|
1882
|
+
return g < 128 ? h[g] : S.NameStart;
|
|
1883
1883
|
}
|
|
1884
1884
|
return ri = {
|
|
1885
1885
|
isDigit: e,
|
|
@@ -1905,91 +1905,91 @@ function $r() {
|
|
|
1905
1905
|
if (md) return ni;
|
|
1906
1906
|
md = 1;
|
|
1907
1907
|
var t = vf(), e = t.isDigit, r = t.isHexDigit, n = t.isUppercaseLetter, a = t.isName, i = t.isWhiteSpace, o = t.isValidEscape;
|
|
1908
|
-
function s(S,
|
|
1909
|
-
return
|
|
1908
|
+
function s(S, g) {
|
|
1909
|
+
return g < S.length ? S.charCodeAt(g) : 0;
|
|
1910
1910
|
}
|
|
1911
|
-
function l(S,
|
|
1912
|
-
return y === 13 && s(S,
|
|
1911
|
+
function l(S, g, y) {
|
|
1912
|
+
return y === 13 && s(S, g + 1) === 10 ? 2 : 1;
|
|
1913
1913
|
}
|
|
1914
|
-
function c(S,
|
|
1915
|
-
var b = S.charCodeAt(
|
|
1914
|
+
function c(S, g, y) {
|
|
1915
|
+
var b = S.charCodeAt(g);
|
|
1916
1916
|
return n(b) && (b = b | 32), b === y;
|
|
1917
1917
|
}
|
|
1918
|
-
function d(S,
|
|
1919
|
-
if (y -
|
|
1918
|
+
function d(S, g, y, b) {
|
|
1919
|
+
if (y - g !== b.length || g < 0 || y > S.length)
|
|
1920
1920
|
return !1;
|
|
1921
|
-
for (var E =
|
|
1922
|
-
var C = S.charCodeAt(E), w = b.charCodeAt(E -
|
|
1921
|
+
for (var E = g; E < y; E++) {
|
|
1922
|
+
var C = S.charCodeAt(E), w = b.charCodeAt(E - g);
|
|
1923
1923
|
if (n(C) && (C = C | 32), C !== w)
|
|
1924
1924
|
return !1;
|
|
1925
1925
|
}
|
|
1926
1926
|
return !0;
|
|
1927
1927
|
}
|
|
1928
|
-
function u(S,
|
|
1929
|
-
for (;
|
|
1928
|
+
function u(S, g) {
|
|
1929
|
+
for (; g >= 0 && i(S.charCodeAt(g)); g--)
|
|
1930
1930
|
;
|
|
1931
|
-
return
|
|
1931
|
+
return g + 1;
|
|
1932
1932
|
}
|
|
1933
|
-
function p(S,
|
|
1934
|
-
for (;
|
|
1933
|
+
function p(S, g) {
|
|
1934
|
+
for (; g < S.length && i(S.charCodeAt(g)); g++)
|
|
1935
1935
|
;
|
|
1936
|
-
return
|
|
1936
|
+
return g;
|
|
1937
1937
|
}
|
|
1938
|
-
function m(S,
|
|
1939
|
-
for (;
|
|
1938
|
+
function m(S, g) {
|
|
1939
|
+
for (; g < S.length && e(S.charCodeAt(g)); g++)
|
|
1940
1940
|
;
|
|
1941
|
-
return
|
|
1941
|
+
return g;
|
|
1942
1942
|
}
|
|
1943
|
-
function v(S,
|
|
1944
|
-
if (
|
|
1945
|
-
for (var y = Math.min(S.length,
|
|
1943
|
+
function v(S, g) {
|
|
1944
|
+
if (g += 2, r(s(S, g - 1))) {
|
|
1945
|
+
for (var y = Math.min(S.length, g + 5); g < y && r(s(S, g)); g++)
|
|
1946
1946
|
;
|
|
1947
|
-
var b = s(S,
|
|
1948
|
-
i(b) && (
|
|
1947
|
+
var b = s(S, g);
|
|
1948
|
+
i(b) && (g += l(S, g, b));
|
|
1949
1949
|
}
|
|
1950
|
-
return
|
|
1950
|
+
return g;
|
|
1951
1951
|
}
|
|
1952
|
-
function f(S,
|
|
1953
|
-
for (;
|
|
1954
|
-
var y = S.charCodeAt(
|
|
1952
|
+
function f(S, g) {
|
|
1953
|
+
for (; g < S.length; g++) {
|
|
1954
|
+
var y = S.charCodeAt(g);
|
|
1955
1955
|
if (!a(y)) {
|
|
1956
|
-
if (o(y, s(S,
|
|
1957
|
-
|
|
1956
|
+
if (o(y, s(S, g + 1))) {
|
|
1957
|
+
g = v(S, g) - 1;
|
|
1958
1958
|
continue;
|
|
1959
1959
|
}
|
|
1960
1960
|
break;
|
|
1961
1961
|
}
|
|
1962
1962
|
}
|
|
1963
|
-
return
|
|
1963
|
+
return g;
|
|
1964
1964
|
}
|
|
1965
|
-
function
|
|
1966
|
-
var y = S.charCodeAt(
|
|
1967
|
-
if ((y === 43 || y === 45) && (y = S.charCodeAt(
|
|
1965
|
+
function h(S, g) {
|
|
1966
|
+
var y = S.charCodeAt(g);
|
|
1967
|
+
if ((y === 43 || y === 45) && (y = S.charCodeAt(g += 1)), e(y) && (g = m(S, g + 1), y = S.charCodeAt(g)), y === 46 && e(S.charCodeAt(g + 1)) && (y = S.charCodeAt(g += 2), g = m(S, g)), c(
|
|
1968
1968
|
S,
|
|
1969
|
-
|
|
1969
|
+
g,
|
|
1970
1970
|
101
|
|
1971
1971
|
/* e */
|
|
1972
1972
|
)) {
|
|
1973
1973
|
var b = 0;
|
|
1974
|
-
y = S.charCodeAt(
|
|
1974
|
+
y = S.charCodeAt(g + 1), (y === 45 || y === 43) && (b = 1, y = S.charCodeAt(g + 2)), e(y) && (g = m(S, g + 1 + b + 1));
|
|
1975
1975
|
}
|
|
1976
|
-
return
|
|
1976
|
+
return g;
|
|
1977
1977
|
}
|
|
1978
|
-
function x(S,
|
|
1979
|
-
for (;
|
|
1980
|
-
var y = S.charCodeAt(
|
|
1978
|
+
function x(S, g) {
|
|
1979
|
+
for (; g < S.length; g++) {
|
|
1980
|
+
var y = S.charCodeAt(g);
|
|
1981
1981
|
if (y === 41) {
|
|
1982
|
-
|
|
1982
|
+
g++;
|
|
1983
1983
|
break;
|
|
1984
1984
|
}
|
|
1985
|
-
o(y, s(S,
|
|
1985
|
+
o(y, s(S, g + 1)) && (g = v(S, g));
|
|
1986
1986
|
}
|
|
1987
|
-
return
|
|
1987
|
+
return g;
|
|
1988
1988
|
}
|
|
1989
1989
|
return ni = {
|
|
1990
1990
|
consumeEscaped: v,
|
|
1991
1991
|
consumeName: f,
|
|
1992
|
-
consumeNumber:
|
|
1992
|
+
consumeNumber: h,
|
|
1993
1993
|
consumeBadUrlRemnants: x,
|
|
1994
1994
|
cmpChar: c,
|
|
1995
1995
|
cmpStr: d,
|
|
@@ -2028,12 +2028,12 @@ function ia() {
|
|
|
2028
2028
|
},
|
|
2029
2029
|
// TODO: -> skipUntilBalanced
|
|
2030
2030
|
getRawLength: function(u, p) {
|
|
2031
|
-
var m = u, v, f = this.offsetAndType[Math.max(m - 1, 0)] & l,
|
|
2031
|
+
var m = u, v, f = this.offsetAndType[Math.max(m - 1, 0)] & l, h;
|
|
2032
2032
|
e:
|
|
2033
2033
|
for (; m < this.tokenCount; m++) {
|
|
2034
2034
|
if (v = this.balance[m], v < u)
|
|
2035
2035
|
break e;
|
|
2036
|
-
switch (
|
|
2036
|
+
switch (h = this.offsetAndType[m] >> c, p(h, this.source, f)) {
|
|
2037
2037
|
case 1:
|
|
2038
2038
|
break e;
|
|
2039
2039
|
case 2:
|
|
@@ -2079,8 +2079,8 @@ function ia() {
|
|
|
2079
2079
|
},
|
|
2080
2080
|
forEachToken(u) {
|
|
2081
2081
|
for (var p = 0, m = this.firstCharOffset; p < this.tokenCount; p++) {
|
|
2082
|
-
var v = m, f = this.offsetAndType[p],
|
|
2083
|
-
m =
|
|
2082
|
+
var v = m, f = this.offsetAndType[p], h = f & l, x = f >> c;
|
|
2083
|
+
m = h, u(x, v, h, p);
|
|
2084
2084
|
}
|
|
2085
2085
|
},
|
|
2086
2086
|
dump() {
|
|
@@ -2164,17 +2164,17 @@ function vd() {
|
|
|
2164
2164
|
const t = kl(), e = El(), r = { offset: 0, line: 1, column: 1 };
|
|
2165
2165
|
function n(l, c) {
|
|
2166
2166
|
const d = l.tokens, u = l.longestMatch, p = u < d.length && d[u].node || null, m = p !== c ? p : null;
|
|
2167
|
-
let v = 0, f = 0,
|
|
2167
|
+
let v = 0, f = 0, h = 0, x = "", S, g;
|
|
2168
2168
|
for (let y = 0; y < d.length; y++) {
|
|
2169
2169
|
const b = d[y].value;
|
|
2170
|
-
y === u && (f = b.length, v = x.length), m !== null && d[y].node === m && (y <= u ?
|
|
2170
|
+
y === u && (f = b.length, v = x.length), m !== null && d[y].node === m && (y <= u ? h++ : h = 0), x += b;
|
|
2171
2171
|
}
|
|
2172
|
-
return u === d.length ||
|
|
2172
|
+
return u === d.length || h > 1 ? (S = a(m || c, "end") || i(r, x), g = i(S)) : (S = a(m, "start") || i(a(c, "start") || r, x.slice(0, v)), g = a(m, "end") || i(S, x.substr(v, f))), {
|
|
2173
2173
|
css: x,
|
|
2174
2174
|
mismatchOffset: v,
|
|
2175
2175
|
mismatchLength: f,
|
|
2176
2176
|
start: S,
|
|
2177
|
-
end:
|
|
2177
|
+
end: g
|
|
2178
2178
|
};
|
|
2179
2179
|
}
|
|
2180
2180
|
function a(l, c) {
|
|
@@ -2206,15 +2206,15 @@ function vd() {
|
|
|
2206
2206
|
css: m,
|
|
2207
2207
|
mismatchOffset: v,
|
|
2208
2208
|
mismatchLength: f,
|
|
2209
|
-
start:
|
|
2209
|
+
start: h,
|
|
2210
2210
|
end: x
|
|
2211
2211
|
} = n(u, d);
|
|
2212
2212
|
return p.rawMessage = l, p.syntax = c ? e(c) : "<generic>", p.css = m, p.mismatchOffset = v, p.mismatchLength = f, p.message = l + `
|
|
2213
2213
|
syntax: ` + p.syntax + `
|
|
2214
2214
|
value: ` + (m || "<empty string>") + `
|
|
2215
|
-
--------` + new Array(p.mismatchOffset + 1).join("-") + "^", Object.assign(p,
|
|
2215
|
+
--------` + new Array(p.mismatchOffset + 1).join("-") + "^", Object.assign(p, h), p.loc = {
|
|
2216
2216
|
source: d && d.loc && d.loc.source || "<unknown>",
|
|
2217
|
-
start:
|
|
2217
|
+
start: h,
|
|
2218
2218
|
end: x
|
|
2219
2219
|
}, p;
|
|
2220
2220
|
}
|
|
@@ -2289,7 +2289,7 @@ var ci, Sd;
|
|
|
2289
2289
|
function ee() {
|
|
2290
2290
|
if (Sd) return ci;
|
|
2291
2291
|
Sd = 1;
|
|
2292
|
-
var t = ia(), e = yf(), r = aa(), n = r.TYPE, a = vf(), i = a.isNewline, o = a.isName, s = a.isValidEscape, l = a.isNumberStart, c = a.isIdentifierStart, d = a.charCodeCategory, u = a.isBOM, p = $r(), m = p.cmpStr, v = p.getNewlineLength, f = p.findWhiteSpaceEnd,
|
|
2292
|
+
var t = ia(), e = yf(), r = aa(), n = r.TYPE, a = vf(), i = a.isNewline, o = a.isName, s = a.isValidEscape, l = a.isNumberStart, c = a.isIdentifierStart, d = a.charCodeCategory, u = a.isBOM, p = $r(), m = p.cmpStr, v = p.getNewlineLength, f = p.findWhiteSpaceEnd, h = p.consumeEscaped, x = p.consumeName, S = p.consumeNumber, g = p.consumeBadUrlRemnants, y = 16777215, b = 24;
|
|
2293
2293
|
function E(C, w) {
|
|
2294
2294
|
function O(H) {
|
|
2295
2295
|
return H < z ? C.charCodeAt(H) : 0;
|
|
@@ -2344,7 +2344,7 @@ function ee() {
|
|
|
2344
2344
|
if (_ === C.length - 1)
|
|
2345
2345
|
break;
|
|
2346
2346
|
var K = O(_ + 1);
|
|
2347
|
-
i(K) ? _ += v(C, _ + 1, K) : s($, K) && (_ =
|
|
2347
|
+
i(K) ? _ += v(C, _ + 1, K) : s($, K) && (_ = h(C, _) - 1);
|
|
2348
2348
|
break;
|
|
2349
2349
|
}
|
|
2350
2350
|
}
|
|
@@ -2366,7 +2366,7 @@ function ee() {
|
|
|
2366
2366
|
_ < C.length && _++;
|
|
2367
2367
|
return;
|
|
2368
2368
|
}
|
|
2369
|
-
_ =
|
|
2369
|
+
_ = g(C, _), M = n.BadUrl;
|
|
2370
2370
|
return;
|
|
2371
2371
|
// U+0022 QUOTATION MARK (")
|
|
2372
2372
|
// U+0027 APOSTROPHE (')
|
|
@@ -2376,15 +2376,15 @@ function ee() {
|
|
|
2376
2376
|
case 39:
|
|
2377
2377
|
case 40:
|
|
2378
2378
|
case d.NonPrintable:
|
|
2379
|
-
_ =
|
|
2379
|
+
_ = g(C, _), M = n.BadUrl;
|
|
2380
2380
|
return;
|
|
2381
2381
|
// U+005C REVERSE SOLIDUS (\)
|
|
2382
2382
|
case 92:
|
|
2383
2383
|
if (s(H, O(_ + 1))) {
|
|
2384
|
-
_ =
|
|
2384
|
+
_ = h(C, _) - 1;
|
|
2385
2385
|
break;
|
|
2386
2386
|
}
|
|
2387
|
-
_ =
|
|
2387
|
+
_ = g(C, _), M = n.BadUrl;
|
|
2388
2388
|
return;
|
|
2389
2389
|
}
|
|
2390
2390
|
}
|
|
@@ -2523,55 +2523,55 @@ function Ab() {
|
|
|
2523
2523
|
if (xd) return di;
|
|
2524
2524
|
xd = 1;
|
|
2525
2525
|
var t = ee().isDigit, e = ee().cmpChar, r = ee().TYPE, n = r.Delim, a = r.WhiteSpace, i = r.Comment, o = r.Ident, s = r.Number, l = r.Dimension, c = 43, d = 45, u = 110, p = !0, m = !1;
|
|
2526
|
-
function v(S,
|
|
2527
|
-
return S !== null && S.type === n && S.value.charCodeAt(0) ===
|
|
2526
|
+
function v(S, g) {
|
|
2527
|
+
return S !== null && S.type === n && S.value.charCodeAt(0) === g;
|
|
2528
2528
|
}
|
|
2529
|
-
function f(S,
|
|
2529
|
+
function f(S, g, y) {
|
|
2530
2530
|
for (; S !== null && (S.type === a || S.type === i); )
|
|
2531
|
-
S = y(++
|
|
2532
|
-
return
|
|
2531
|
+
S = y(++g);
|
|
2532
|
+
return g;
|
|
2533
2533
|
}
|
|
2534
|
-
function
|
|
2534
|
+
function h(S, g, y, b) {
|
|
2535
2535
|
if (!S)
|
|
2536
2536
|
return 0;
|
|
2537
|
-
var E = S.value.charCodeAt(
|
|
2537
|
+
var E = S.value.charCodeAt(g);
|
|
2538
2538
|
if (E === c || E === d) {
|
|
2539
2539
|
if (y)
|
|
2540
2540
|
return 0;
|
|
2541
|
-
|
|
2541
|
+
g++;
|
|
2542
2542
|
}
|
|
2543
|
-
for (;
|
|
2544
|
-
if (!t(S.value.charCodeAt(
|
|
2543
|
+
for (; g < S.value.length; g++)
|
|
2544
|
+
if (!t(S.value.charCodeAt(g)))
|
|
2545
2545
|
return 0;
|
|
2546
2546
|
return b + 1;
|
|
2547
2547
|
}
|
|
2548
|
-
function x(S,
|
|
2549
|
-
var b = !1, E = f(S,
|
|
2548
|
+
function x(S, g, y) {
|
|
2549
|
+
var b = !1, E = f(S, g, y);
|
|
2550
2550
|
if (S = y(E), S === null)
|
|
2551
|
-
return
|
|
2551
|
+
return g;
|
|
2552
2552
|
if (S.type !== s)
|
|
2553
2553
|
if (v(S, c) || v(S, d)) {
|
|
2554
2554
|
if (b = !0, E = f(y(++E), E, y), S = y(E), S === null && S.type !== s)
|
|
2555
2555
|
return 0;
|
|
2556
2556
|
} else
|
|
2557
|
-
return
|
|
2557
|
+
return g;
|
|
2558
2558
|
if (!b) {
|
|
2559
2559
|
var C = S.value.charCodeAt(0);
|
|
2560
2560
|
if (C !== c && C !== d)
|
|
2561
2561
|
return 0;
|
|
2562
2562
|
}
|
|
2563
|
-
return
|
|
2563
|
+
return h(S, b ? 0 : 1, b, E);
|
|
2564
2564
|
}
|
|
2565
|
-
return di = function(
|
|
2565
|
+
return di = function(g, y) {
|
|
2566
2566
|
var b = 0;
|
|
2567
|
-
if (!
|
|
2567
|
+
if (!g)
|
|
2568
2568
|
return 0;
|
|
2569
|
-
if (
|
|
2570
|
-
return g
|
|
2571
|
-
if (
|
|
2572
|
-
if (!e(
|
|
2569
|
+
if (g.type === s)
|
|
2570
|
+
return h(g, 0, m, b);
|
|
2571
|
+
if (g.type === o && g.value.charCodeAt(0) === d) {
|
|
2572
|
+
if (!e(g.value, 1, u))
|
|
2573
2573
|
return 0;
|
|
2574
|
-
switch (
|
|
2574
|
+
switch (g.value.length) {
|
|
2575
2575
|
// -n
|
|
2576
2576
|
// -n <signed-integer>
|
|
2577
2577
|
// -n ['+' | '-'] <signless-integer>
|
|
@@ -2579,15 +2579,15 @@ function Ab() {
|
|
|
2579
2579
|
return x(y(++b), b, y);
|
|
2580
2580
|
// -n- <signless-integer>
|
|
2581
2581
|
case 3:
|
|
2582
|
-
return
|
|
2582
|
+
return g.value.charCodeAt(2) !== d ? 0 : (b = f(y(++b), b, y), g = y(b), h(g, 0, p, b));
|
|
2583
2583
|
// <dashndashdigit-ident>
|
|
2584
2584
|
default:
|
|
2585
|
-
return
|
|
2585
|
+
return g.value.charCodeAt(2) !== d ? 0 : h(g, 3, p, b);
|
|
2586
2586
|
}
|
|
2587
|
-
} else if (
|
|
2588
|
-
if (
|
|
2587
|
+
} else if (g.type === o || v(g, c) && y(b + 1).type === o) {
|
|
2588
|
+
if (g.type !== o && (g = y(++b)), g === null || !e(g.value, 0, u))
|
|
2589
2589
|
return 0;
|
|
2590
|
-
switch (
|
|
2590
|
+
switch (g.value.length) {
|
|
2591
2591
|
// '+'? n
|
|
2592
2592
|
// '+'? n <signed-integer>
|
|
2593
2593
|
// '+'? n ['+' | '-'] <signless-integer>
|
|
@@ -2595,15 +2595,15 @@ function Ab() {
|
|
|
2595
2595
|
return x(y(++b), b, y);
|
|
2596
2596
|
// '+'? n- <signless-integer>
|
|
2597
2597
|
case 2:
|
|
2598
|
-
return
|
|
2598
|
+
return g.value.charCodeAt(1) !== d ? 0 : (b = f(y(++b), b, y), g = y(b), h(g, 0, p, b));
|
|
2599
2599
|
// '+'? <ndashdigit-ident>
|
|
2600
2600
|
default:
|
|
2601
|
-
return
|
|
2601
|
+
return g.value.charCodeAt(1) !== d ? 0 : h(g, 2, p, b);
|
|
2602
2602
|
}
|
|
2603
|
-
} else if (
|
|
2604
|
-
for (var E =
|
|
2603
|
+
} else if (g.type === l) {
|
|
2604
|
+
for (var E = g.value.charCodeAt(0), C = E === c || E === d ? 1 : 0, w = C; w < g.value.length && t(g.value.charCodeAt(w)); w++)
|
|
2605
2605
|
;
|
|
2606
|
-
return w === C || !e(
|
|
2606
|
+
return w === C || !e(g.value, w, u) ? 0 : w + 1 === g.value.length ? x(y(++b), b, y) : g.value.charCodeAt(w + 1) !== d ? 0 : w + 2 === g.value.length ? (b = f(y(++b), b, y), g = y(b), h(g, 0, p, b)) : h(g, w + 2, p, b);
|
|
2607
2607
|
}
|
|
2608
2608
|
return 0;
|
|
2609
2609
|
}, di;
|
|
@@ -2613,45 +2613,45 @@ function Ob() {
|
|
|
2613
2613
|
if (wd) return ui;
|
|
2614
2614
|
wd = 1;
|
|
2615
2615
|
var t = ee().isHexDigit, e = ee().cmpChar, r = ee().TYPE, n = r.Ident, a = r.Delim, i = r.Number, o = r.Dimension, s = 43, l = 45, c = 63, d = 117;
|
|
2616
|
-
function u(f,
|
|
2617
|
-
return f !== null && f.type === a && f.value.charCodeAt(0) ===
|
|
2616
|
+
function u(f, h) {
|
|
2617
|
+
return f !== null && f.type === a && f.value.charCodeAt(0) === h;
|
|
2618
2618
|
}
|
|
2619
|
-
function p(f,
|
|
2620
|
-
return f.value.charCodeAt(0) ===
|
|
2619
|
+
function p(f, h) {
|
|
2620
|
+
return f.value.charCodeAt(0) === h;
|
|
2621
2621
|
}
|
|
2622
|
-
function m(f,
|
|
2623
|
-
for (var S =
|
|
2622
|
+
function m(f, h, x) {
|
|
2623
|
+
for (var S = h, g = 0; S < f.value.length; S++) {
|
|
2624
2624
|
var y = f.value.charCodeAt(S);
|
|
2625
|
-
if (y === l && x &&
|
|
2626
|
-
return m(f,
|
|
2627
|
-
if (!t(y) || ++
|
|
2625
|
+
if (y === l && x && g !== 0)
|
|
2626
|
+
return m(f, h + g + 1, !1) > 0 ? 6 : 0;
|
|
2627
|
+
if (!t(y) || ++g > 6)
|
|
2628
2628
|
return 0;
|
|
2629
2629
|
}
|
|
2630
|
-
return
|
|
2630
|
+
return g;
|
|
2631
2631
|
}
|
|
2632
|
-
function v(f,
|
|
2632
|
+
function v(f, h, x) {
|
|
2633
2633
|
if (!f)
|
|
2634
2634
|
return 0;
|
|
2635
|
-
for (; u(x(
|
|
2635
|
+
for (; u(x(h), c); ) {
|
|
2636
2636
|
if (++f > 6)
|
|
2637
2637
|
return 0;
|
|
2638
|
-
|
|
2638
|
+
h++;
|
|
2639
2639
|
}
|
|
2640
|
-
return
|
|
2640
|
+
return h;
|
|
2641
2641
|
}
|
|
2642
|
-
return ui = function(
|
|
2642
|
+
return ui = function(h, x) {
|
|
2643
2643
|
var S = 0;
|
|
2644
|
-
if (
|
|
2644
|
+
if (h === null || h.type !== n || !e(h.value, 0, d) || (h = x(++S), h === null))
|
|
2645
2645
|
return 0;
|
|
2646
|
-
if (u(
|
|
2647
|
-
return
|
|
2648
|
-
if (
|
|
2649
|
-
if (!p(
|
|
2646
|
+
if (u(h, s))
|
|
2647
|
+
return h = x(++S), h === null ? 0 : h.type === n ? v(m(h, 0, !0), ++S, x) : u(h, c) ? v(1, ++S, x) : 0;
|
|
2648
|
+
if (h.type === i) {
|
|
2649
|
+
if (!p(h, s))
|
|
2650
2650
|
return 0;
|
|
2651
|
-
var
|
|
2652
|
-
return
|
|
2651
|
+
var g = m(h, 1, !0);
|
|
2652
|
+
return g === 0 ? 0 : (h = x(++S), h === null ? S : h.type === o || h.type === i ? !p(h, l) || !m(h, 1, !1) ? 0 : S + 1 : v(g, S, x));
|
|
2653
2653
|
}
|
|
2654
|
-
return
|
|
2654
|
+
return h.type === o && p(h, s) ? v(m(h, 1, !0), ++S, x) : 0;
|
|
2655
2655
|
}, ui;
|
|
2656
2656
|
}
|
|
2657
2657
|
var pi, Cd;
|
|
@@ -2695,14 +2695,14 @@ function _b() {
|
|
|
2695
2695
|
dppx: !0,
|
|
2696
2696
|
x: !0
|
|
2697
2697
|
// https://github.com/w3c/csswg-drafts/issues/461
|
|
2698
|
-
},
|
|
2698
|
+
}, h = {
|
|
2699
2699
|
fr: !0
|
|
2700
2700
|
}, x = {
|
|
2701
2701
|
db: !0
|
|
2702
2702
|
}, S = {
|
|
2703
2703
|
st: !0
|
|
2704
2704
|
};
|
|
2705
|
-
function
|
|
2705
|
+
function g(j, M) {
|
|
2706
2706
|
return M < j.length ? j.charCodeAt(M) : 0;
|
|
2707
2707
|
}
|
|
2708
2708
|
function y(j, M) {
|
|
@@ -2758,7 +2758,7 @@ function _b() {
|
|
|
2758
2758
|
return b(M, c) || y(M, "default") ? 0 : 1;
|
|
2759
2759
|
}
|
|
2760
2760
|
function N(j) {
|
|
2761
|
-
return j === null || j.type !== o.Ident ||
|
|
2761
|
+
return j === null || j.type !== o.Ident || g(j.value, 0) !== 45 || g(j.value, 1) !== 45 ? 0 : 1;
|
|
2762
2762
|
}
|
|
2763
2763
|
function z(j) {
|
|
2764
2764
|
if (j === null || j.type !== o.Hash)
|
|
@@ -2772,7 +2772,7 @@ function _b() {
|
|
|
2772
2772
|
return 1;
|
|
2773
2773
|
}
|
|
2774
2774
|
function U(j) {
|
|
2775
|
-
return j === null || j.type !== o.Hash || !e(
|
|
2775
|
+
return j === null || j.type !== o.Hash || !e(g(j.value, 1), g(j.value, 2), g(j.value, 3)) ? 0 : 1;
|
|
2776
2776
|
}
|
|
2777
2777
|
function L(j, M) {
|
|
2778
2778
|
if (!j)
|
|
@@ -2921,7 +2921,7 @@ function _b() {
|
|
|
2921
2921
|
angle: O(q(p)),
|
|
2922
2922
|
decibel: O(q(x)),
|
|
2923
2923
|
frequency: O(q(v)),
|
|
2924
|
-
flex: O(q(
|
|
2924
|
+
flex: O(q(h)),
|
|
2925
2925
|
length: O(B(q(u))),
|
|
2926
2926
|
resolution: O(q(f)),
|
|
2927
2927
|
semitones: O(q(S)),
|
|
@@ -2994,7 +2994,7 @@ var hi, Td;
|
|
|
2994
2994
|
function Al() {
|
|
2995
2995
|
if (Td) return hi;
|
|
2996
2996
|
Td = 1;
|
|
2997
|
-
var t = Rb(), e = 9, r = 10, n = 12, a = 13, i = 32, o = 33, s = 35, l = 38, c = 39, d = 40, u = 41, p = 42, m = 43, v = 44, f = 45,
|
|
2997
|
+
var t = Rb(), e = 9, r = 10, n = 12, a = 13, i = 32, o = 33, s = 35, l = 38, c = 39, d = 40, u = 41, p = 42, m = 43, v = 44, f = 45, h = 60, x = 62, S = 63, g = 64, y = 91, b = 93, E = 123, C = 124, w = 125, O = 8734, A = P(function(I) {
|
|
2998
2998
|
return /[a-zA-Z0-9\-]/.test(I);
|
|
2999
2999
|
}), R = {
|
|
3000
3000
|
" ": 1,
|
|
@@ -3093,7 +3093,7 @@ function Al() {
|
|
|
3093
3093
|
}
|
|
3094
3094
|
function Y(I) {
|
|
3095
3095
|
var F;
|
|
3096
|
-
return I.eat(
|
|
3096
|
+
return I.eat(h), I.eat(c), F = z(I), I.eat(c), I.eat(x), _(I, {
|
|
3097
3097
|
type: "Property",
|
|
3098
3098
|
name: F
|
|
3099
3099
|
});
|
|
@@ -3108,7 +3108,7 @@ function Al() {
|
|
|
3108
3108
|
}
|
|
3109
3109
|
function j(I) {
|
|
3110
3110
|
var F, X = null;
|
|
3111
|
-
return I.eat(
|
|
3111
|
+
return I.eat(h), F = z(I), I.charCode() === d && I.nextCharCode() === u && (I.pos += 2, F += "()"), I.charCodeAt(I.findWsEnd(I.pos)) === y && (N(I), X = Z(I)), I.eat(x), _(I, {
|
|
3112
3112
|
type: "Type",
|
|
3113
3113
|
name: F,
|
|
3114
3114
|
opts: X
|
|
@@ -3180,7 +3180,7 @@ function Al() {
|
|
|
3180
3180
|
break;
|
|
3181
3181
|
case y:
|
|
3182
3182
|
return _(I, K(I));
|
|
3183
|
-
case
|
|
3183
|
+
case h:
|
|
3184
3184
|
return I.nextCharCode() === c ? Y(I) : j(I);
|
|
3185
3185
|
case C:
|
|
3186
3186
|
return {
|
|
@@ -3212,7 +3212,7 @@ function Al() {
|
|
|
3212
3212
|
type: "Spaces",
|
|
3213
3213
|
value: N(I)
|
|
3214
3214
|
};
|
|
3215
|
-
case
|
|
3215
|
+
case g:
|
|
3216
3216
|
return F = I.nextCharCode(), F < 128 && A[F] === 1 ? (I.pos++, {
|
|
3217
3217
|
type: "AtKeyword",
|
|
3218
3218
|
name: z(I)
|
|
@@ -3345,9 +3345,9 @@ function xf() {
|
|
|
3345
3345
|
switch (p) {
|
|
3346
3346
|
case " ":
|
|
3347
3347
|
for (var y = e, f = m.length - 1; f >= 0; f--) {
|
|
3348
|
-
var
|
|
3348
|
+
var h = m[f];
|
|
3349
3349
|
y = o(
|
|
3350
|
-
|
|
3350
|
+
h,
|
|
3351
3351
|
y,
|
|
3352
3352
|
r
|
|
3353
3353
|
);
|
|
@@ -3355,8 +3355,8 @@ function xf() {
|
|
|
3355
3355
|
return y;
|
|
3356
3356
|
case "|":
|
|
3357
3357
|
for (var y = r, x = null, f = m.length - 1; f >= 0; f--) {
|
|
3358
|
-
var
|
|
3359
|
-
if (l(
|
|
3358
|
+
var h = m[f];
|
|
3359
|
+
if (l(h) && (x === null && f > 0 && l(m[f - 1]) && (x = /* @__PURE__ */ Object.create(null), y = o(
|
|
3360
3360
|
{
|
|
3361
3361
|
type: "Enum",
|
|
3362
3362
|
map: x
|
|
@@ -3364,14 +3364,14 @@ function xf() {
|
|
|
3364
3364
|
e,
|
|
3365
3365
|
y
|
|
3366
3366
|
)), x !== null)) {
|
|
3367
|
-
var S = (s(
|
|
3367
|
+
var S = (s(h.name) ? h.name.slice(0, -1) : h.name).toLowerCase();
|
|
3368
3368
|
if (!(S in x)) {
|
|
3369
|
-
x[S] =
|
|
3369
|
+
x[S] = h;
|
|
3370
3370
|
continue;
|
|
3371
3371
|
}
|
|
3372
3372
|
}
|
|
3373
3373
|
x = null, y = o(
|
|
3374
|
-
|
|
3374
|
+
h,
|
|
3375
3375
|
e,
|
|
3376
3376
|
y
|
|
3377
3377
|
);
|
|
@@ -3385,16 +3385,16 @@ function xf() {
|
|
|
3385
3385
|
all: !0
|
|
3386
3386
|
};
|
|
3387
3387
|
for (var y = r, f = m.length - 1; f >= 0; f--) {
|
|
3388
|
-
var
|
|
3389
|
-
m.length > 1 ?
|
|
3388
|
+
var h = m[f], g;
|
|
3389
|
+
m.length > 1 ? g = c(
|
|
3390
3390
|
p,
|
|
3391
3391
|
m.filter(function(C) {
|
|
3392
|
-
return C !==
|
|
3392
|
+
return C !== h;
|
|
3393
3393
|
}),
|
|
3394
3394
|
!1
|
|
3395
|
-
) :
|
|
3396
|
-
g,
|
|
3395
|
+
) : g = e, y = o(
|
|
3397
3396
|
h,
|
|
3397
|
+
g,
|
|
3398
3398
|
y
|
|
3399
3399
|
);
|
|
3400
3400
|
}
|
|
@@ -3407,16 +3407,16 @@ function xf() {
|
|
|
3407
3407
|
all: !1
|
|
3408
3408
|
};
|
|
3409
3409
|
for (var y = v ? e : r, f = m.length - 1; f >= 0; f--) {
|
|
3410
|
-
var
|
|
3411
|
-
m.length > 1 ?
|
|
3410
|
+
var h = m[f], g;
|
|
3411
|
+
m.length > 1 ? g = c(
|
|
3412
3412
|
p,
|
|
3413
3413
|
m.filter(function(w) {
|
|
3414
|
-
return w !==
|
|
3414
|
+
return w !== h;
|
|
3415
3415
|
}),
|
|
3416
3416
|
!0
|
|
3417
|
-
) :
|
|
3418
|
-
g,
|
|
3417
|
+
) : g = e, y = o(
|
|
3419
3418
|
h,
|
|
3419
|
+
g,
|
|
3420
3420
|
y
|
|
3421
3421
|
);
|
|
3422
3422
|
}
|
|
@@ -3573,7 +3573,7 @@ function Ib() {
|
|
|
3573
3573
|
O = A.prev, A.prev = w, w = A, A = O;
|
|
3574
3574
|
return w;
|
|
3575
3575
|
}
|
|
3576
|
-
function
|
|
3576
|
+
function h(C, w) {
|
|
3577
3577
|
if (C.length !== w.length)
|
|
3578
3578
|
return !1;
|
|
3579
3579
|
for (var O = 0; O < C.length; O++) {
|
|
@@ -3589,7 +3589,7 @@ function Ib() {
|
|
|
3589
3589
|
function S(C) {
|
|
3590
3590
|
return C === null ? !0 : C.type === i.Comma || C.type === i.Function || C.type === i.LeftParenthesis || C.type === i.LeftSquareBracket || C.type === i.LeftCurlyBracket || x(C);
|
|
3591
3591
|
}
|
|
3592
|
-
function
|
|
3592
|
+
function g(C) {
|
|
3593
3593
|
return C === null ? !0 : C.type === i.RightParenthesis || C.type === i.RightSquareBracket || C.type === i.RightCurlyBracket || C.type === i.Delim;
|
|
3594
3594
|
}
|
|
3595
3595
|
function y(C, w, O) {
|
|
@@ -3782,7 +3782,7 @@ function Ib() {
|
|
|
3782
3782
|
var me = w.name;
|
|
3783
3783
|
if (M !== null) {
|
|
3784
3784
|
var Ae = M.value;
|
|
3785
|
-
if (Ae.indexOf("\\") !== -1 && (Ae = Ae.replace(/\\[09].*$/, "")),
|
|
3785
|
+
if (Ae.indexOf("\\") !== -1 && (Ae = Ae.replace(/\\[09].*$/, "")), h(Ae, me)) {
|
|
3786
3786
|
U(), w = r;
|
|
3787
3787
|
break;
|
|
3788
3788
|
}
|
|
@@ -3791,7 +3791,7 @@ function Ib() {
|
|
|
3791
3791
|
break;
|
|
3792
3792
|
case "AtKeyword":
|
|
3793
3793
|
case "Function":
|
|
3794
|
-
if (M !== null &&
|
|
3794
|
+
if (M !== null && h(M.value, w.name)) {
|
|
3795
3795
|
U(), w = r;
|
|
3796
3796
|
break;
|
|
3797
3797
|
}
|
|
@@ -3805,12 +3805,12 @@ function Ib() {
|
|
|
3805
3805
|
w = n;
|
|
3806
3806
|
break;
|
|
3807
3807
|
case "Comma":
|
|
3808
|
-
M !== null && M.type === i.Comma ? S(K.token) ? w = n : (U(), w =
|
|
3808
|
+
M !== null && M.type === i.Comma ? S(K.token) ? w = n : (U(), w = g(M) ? n : r) : w = S(K.token) || g(M) ? r : n;
|
|
3809
3809
|
break;
|
|
3810
3810
|
case "String":
|
|
3811
3811
|
for (var Ue = "", F = H; F < C.length && Ue.length < w.value.length; F++)
|
|
3812
3812
|
Ue += C[F].value;
|
|
3813
|
-
if (
|
|
3813
|
+
if (h(Ue, w.value)) {
|
|
3814
3814
|
for (; H < F; )
|
|
3815
3815
|
U();
|
|
3816
3816
|
w = r;
|
|
@@ -3965,7 +3965,7 @@ function Mb() {
|
|
|
3965
3965
|
function c(u) {
|
|
3966
3966
|
if (u.syntax !== null && u.syntax.type === s && u.syntax.name === l) {
|
|
3967
3967
|
var p = e(u), m = r(u);
|
|
3968
|
-
a.syntax.walk(i, function(v, f,
|
|
3968
|
+
a.syntax.walk(i, function(v, f, h) {
|
|
3969
3969
|
if (v === p) {
|
|
3970
3970
|
var x = new t();
|
|
3971
3971
|
do {
|
|
@@ -3974,7 +3974,7 @@ function Mb() {
|
|
|
3974
3974
|
f = f.next;
|
|
3975
3975
|
} while (f !== null);
|
|
3976
3976
|
d.push({
|
|
3977
|
-
parent:
|
|
3977
|
+
parent: h,
|
|
3978
3978
|
nodes: x
|
|
3979
3979
|
});
|
|
3980
3980
|
}
|
|
@@ -4105,7 +4105,7 @@ function zb() {
|
|
|
4105
4105
|
b[O].syntax && (w[O] = C ? b[O].syntax : i(b[O].syntax, { compact: E }));
|
|
4106
4106
|
return w;
|
|
4107
4107
|
}
|
|
4108
|
-
function
|
|
4108
|
+
function h(b, E, C) {
|
|
4109
4109
|
const w = {};
|
|
4110
4110
|
for (const [O, A] of Object.entries(b))
|
|
4111
4111
|
w[O] = {
|
|
@@ -4131,7 +4131,7 @@ function zb() {
|
|
|
4131
4131
|
isKeyword: d.isKeyword
|
|
4132
4132
|
};
|
|
4133
4133
|
}
|
|
4134
|
-
function
|
|
4134
|
+
function g(b, E, C, w) {
|
|
4135
4135
|
var O = s(C, b.syntax), A;
|
|
4136
4136
|
return x(O) ? S(null, new Error("Matching for a tree with var() is not supported")) : (w && (A = c(O, b.valueCommonSyntax, b)), (!w || !A.match) && (A = c(O, E.match, b), !A.match) ? S(
|
|
4137
4137
|
null,
|
|
@@ -4243,28 +4243,28 @@ function zb() {
|
|
|
4243
4243
|
},
|
|
4244
4244
|
matchAtrulePrelude: function(b, E) {
|
|
4245
4245
|
var C = this.checkAtrulePrelude(b, E);
|
|
4246
|
-
return C ? S(null, C) : E ?
|
|
4246
|
+
return C ? S(null, C) : E ? g(this, this.getAtrule(b).prelude, E, !1) : S(null, null);
|
|
4247
4247
|
},
|
|
4248
4248
|
matchAtruleDescriptor: function(b, E, C) {
|
|
4249
4249
|
var w = this.checkAtruleDescriptorName(b, E);
|
|
4250
4250
|
if (w)
|
|
4251
4251
|
return S(null, w);
|
|
4252
4252
|
var O = this.getAtrule(b), A = r.keyword(E);
|
|
4253
|
-
return
|
|
4253
|
+
return g(this, O.descriptors[A.name] || O.descriptors[A.basename], C, !1);
|
|
4254
4254
|
},
|
|
4255
4255
|
matchDeclaration: function(b) {
|
|
4256
4256
|
return b.type !== "Declaration" ? S(null, new Error("Not a Declaration node")) : this.matchProperty(b.property, b.value);
|
|
4257
4257
|
},
|
|
4258
4258
|
matchProperty: function(b, E) {
|
|
4259
4259
|
var C = this.checkPropertyName(b);
|
|
4260
|
-
return C ? S(null, C) :
|
|
4260
|
+
return C ? S(null, C) : g(this, this.getProperty(b), E, !0);
|
|
4261
4261
|
},
|
|
4262
4262
|
matchType: function(b, E) {
|
|
4263
4263
|
var C = this.getType(b);
|
|
4264
|
-
return C ?
|
|
4264
|
+
return C ? g(this, C, E, !1) : S(null, new t("Unknown type", b));
|
|
4265
4265
|
},
|
|
4266
4266
|
match: function(b, E) {
|
|
4267
|
-
return typeof b != "string" && (!b || !b.type) ? S(null, new t("Bad syntax")) : ((typeof b == "string" || !b.match) && (b = this.createDescriptor(b, "Type", "anonymous")),
|
|
4267
|
+
return typeof b != "string" && (!b || !b.type) ? S(null, new t("Bad syntax")) : ((typeof b == "string" || !b.match) && (b = this.createDescriptor(b, "Type", "anonymous")), g(this, b, E, !1));
|
|
4268
4268
|
},
|
|
4269
4269
|
findValueFragments: function(b, E, C, w) {
|
|
4270
4270
|
return u.matchFragments(this, E, this.matchProperty(b, E), C, w);
|
|
@@ -4329,7 +4329,7 @@ function zb() {
|
|
|
4329
4329
|
generic: this.generic,
|
|
4330
4330
|
types: f(this.types, !E, b),
|
|
4331
4331
|
properties: f(this.properties, !E, b),
|
|
4332
|
-
atrules:
|
|
4332
|
+
atrules: h(this.atrules, !E, b)
|
|
4333
4333
|
};
|
|
4334
4334
|
},
|
|
4335
4335
|
toString: function() {
|
|
@@ -4353,8 +4353,8 @@ function jb() {
|
|
|
4353
4353
|
var t = yf(), e = ee().isBOM, r = 10, n = 12, a = 13;
|
|
4354
4354
|
function i(s, l) {
|
|
4355
4355
|
for (var c = l.length, d = t(s.lines, c), u = s.startLine, p = t(s.columns, c), m = s.startColumn, v = l.length > 0 ? e(l.charCodeAt(0)) : 0, f = v; f < c; f++) {
|
|
4356
|
-
var
|
|
4357
|
-
d[f] = u, p[f] = m++, (
|
|
4356
|
+
var h = l.charCodeAt(f);
|
|
4357
|
+
d[f] = u, p[f] = m++, (h === r || h === a || h === n) && (h === a && f + 1 < c && l.charCodeAt(f + 1) === r && (f++, d[f] = u, p[f] = m), u++, m = 1);
|
|
4358
4358
|
}
|
|
4359
4359
|
d[f] = u, p[f] = m, s.lines = d, s.columns = p;
|
|
4360
4360
|
}
|
|
@@ -4426,7 +4426,7 @@ function Bb() {
|
|
|
4426
4426
|
if (jd) return Ai;
|
|
4427
4427
|
jd = 1;
|
|
4428
4428
|
var t = jb(), e = gf(), r = ia(), n = hr(), a = ee(), i = aa(), { findWhiteSpaceStart: o, cmpStr: s } = $r(), l = Wb(), c = function() {
|
|
4429
|
-
}, d = i.TYPE, u = i.NAME, p = d.WhiteSpace, m = d.Comment, v = d.Ident, f = d.Function,
|
|
4429
|
+
}, d = i.TYPE, u = i.NAME, p = d.WhiteSpace, m = d.Comment, v = d.Ident, f = d.Function, h = d.Url, x = d.Hash, S = d.Percentage, g = d.Number, y = 35, b = 0;
|
|
4430
4430
|
function E(w) {
|
|
4431
4431
|
return function() {
|
|
4432
4432
|
return this[w]();
|
|
@@ -4516,13 +4516,13 @@ function Bb() {
|
|
|
4516
4516
|
var N = this.scanner.tokenStart, z = u[P] + " is expected";
|
|
4517
4517
|
switch (P) {
|
|
4518
4518
|
case v:
|
|
4519
|
-
this.scanner.tokenType === f || this.scanner.tokenType ===
|
|
4519
|
+
this.scanner.tokenType === f || this.scanner.tokenType === h ? (N = this.scanner.tokenEnd - 1, z = "Identifier is expected but function found") : z = "Identifier is expected";
|
|
4520
4520
|
break;
|
|
4521
4521
|
case x:
|
|
4522
4522
|
this.scanner.isDelim(y) && (this.scanner.next(), N++, z = "Name is expected");
|
|
4523
4523
|
break;
|
|
4524
4524
|
case S:
|
|
4525
|
-
this.scanner.tokenType ===
|
|
4525
|
+
this.scanner.tokenType === g && (N = this.scanner.tokenEnd, z = "Percent sign is expected");
|
|
4526
4526
|
break;
|
|
4527
4527
|
default:
|
|
4528
4528
|
this.scanner.source.charCodeAt(this.scanner.tokenStart) === P && (N = N + 1);
|
|
@@ -4727,28 +4727,28 @@ function Ol() {
|
|
|
4727
4727
|
return !0;
|
|
4728
4728
|
}
|
|
4729
4729
|
function v(y, b, E) {
|
|
4730
|
-
var C =
|
|
4731
|
-
return C !== 0 || (C = y.originalLine - b.originalLine, C !== 0) || (C = y.originalColumn - b.originalColumn, C !== 0 || E) || (C = y.generatedColumn - b.generatedColumn, C !== 0) || (C = y.generatedLine - b.generatedLine, C !== 0) ? C :
|
|
4730
|
+
var C = h(y.source, b.source);
|
|
4731
|
+
return C !== 0 || (C = y.originalLine - b.originalLine, C !== 0) || (C = y.originalColumn - b.originalColumn, C !== 0 || E) || (C = y.generatedColumn - b.generatedColumn, C !== 0) || (C = y.generatedLine - b.generatedLine, C !== 0) ? C : h(y.name, b.name);
|
|
4732
4732
|
}
|
|
4733
4733
|
t.compareByOriginalPositions = v;
|
|
4734
4734
|
function f(y, b, E) {
|
|
4735
4735
|
var C = y.generatedLine - b.generatedLine;
|
|
4736
|
-
return C !== 0 || (C = y.generatedColumn - b.generatedColumn, C !== 0 || E) || (C =
|
|
4736
|
+
return C !== 0 || (C = y.generatedColumn - b.generatedColumn, C !== 0 || E) || (C = h(y.source, b.source), C !== 0) || (C = y.originalLine - b.originalLine, C !== 0) || (C = y.originalColumn - b.originalColumn, C !== 0) ? C : h(y.name, b.name);
|
|
4737
4737
|
}
|
|
4738
4738
|
t.compareByGeneratedPositionsDeflated = f;
|
|
4739
|
-
function
|
|
4739
|
+
function h(y, b) {
|
|
4740
4740
|
return y === b ? 0 : y === null ? 1 : b === null ? -1 : y > b ? 1 : -1;
|
|
4741
4741
|
}
|
|
4742
4742
|
function x(y, b) {
|
|
4743
4743
|
var E = y.generatedLine - b.generatedLine;
|
|
4744
|
-
return E !== 0 || (E = y.generatedColumn - b.generatedColumn, E !== 0) || (E =
|
|
4744
|
+
return E !== 0 || (E = y.generatedColumn - b.generatedColumn, E !== 0) || (E = h(y.source, b.source), E !== 0) || (E = y.originalLine - b.originalLine, E !== 0) || (E = y.originalColumn - b.originalColumn, E !== 0) ? E : h(y.name, b.name);
|
|
4745
4745
|
}
|
|
4746
4746
|
t.compareByGeneratedPositionsInflated = x;
|
|
4747
4747
|
function S(y) {
|
|
4748
4748
|
return JSON.parse(y.replace(/^\)]}'[^\n]*\n/, ""));
|
|
4749
4749
|
}
|
|
4750
4750
|
t.parseSourceMapInput = S;
|
|
4751
|
-
function
|
|
4751
|
+
function g(y, b, E) {
|
|
4752
4752
|
if (b = b || "", y && (y[y.length - 1] !== "/" && b[0] !== "/" && (y += "/"), b = y + b), E) {
|
|
4753
4753
|
var C = a(E);
|
|
4754
4754
|
if (!C)
|
|
@@ -4761,7 +4761,7 @@ function Ol() {
|
|
|
4761
4761
|
}
|
|
4762
4762
|
return o(b);
|
|
4763
4763
|
}
|
|
4764
|
-
t.computeSourceURL =
|
|
4764
|
+
t.computeSourceURL = g;
|
|
4765
4765
|
})(_i)), _i;
|
|
4766
4766
|
}
|
|
4767
4767
|
var Ri = {}, Fd;
|
|
@@ -4890,8 +4890,8 @@ function Vb() {
|
|
|
4890
4890
|
}
|
|
4891
4891
|
var f = m.source;
|
|
4892
4892
|
f != null && !u.has(f) && u.add(f);
|
|
4893
|
-
var
|
|
4894
|
-
|
|
4893
|
+
var h = m.name;
|
|
4894
|
+
h != null && !p.has(h) && p.add(h);
|
|
4895
4895
|
}, this), this._sources = u, this._names = p, o.sources.forEach(function(m) {
|
|
4896
4896
|
var v = o.sourceContentFor(m);
|
|
4897
4897
|
v != null && (l != null && (m = e.join(l, m)), d != null && (m = e.relative(d, m)), this.setSourceContent(m, v));
|
|
@@ -4912,7 +4912,7 @@ function Vb() {
|
|
|
4912
4912
|
}));
|
|
4913
4913
|
}
|
|
4914
4914
|
}, a.prototype._serializeMappings = function() {
|
|
4915
|
-
for (var o = 0, s = 1, l = 0, c = 0, d = 0, u = 0, p = "", m, v, f,
|
|
4915
|
+
for (var o = 0, s = 1, l = 0, c = 0, d = 0, u = 0, p = "", m, v, f, h, x = this._mappings.toArray(), S = 0, g = x.length; S < g; S++) {
|
|
4916
4916
|
if (v = x[S], m = "", v.generatedLine !== s)
|
|
4917
4917
|
for (o = 0; v.generatedLine !== s; )
|
|
4918
4918
|
m += ";", s++;
|
|
@@ -4921,7 +4921,7 @@ function Vb() {
|
|
|
4921
4921
|
continue;
|
|
4922
4922
|
m += ",";
|
|
4923
4923
|
}
|
|
4924
|
-
m += t.encode(v.generatedColumn - o), o = v.generatedColumn, v.source != null && (
|
|
4924
|
+
m += t.encode(v.generatedColumn - o), o = v.generatedColumn, v.source != null && (h = this._sources.indexOf(v.source), m += t.encode(h - u), u = h, m += t.encode(v.originalLine - 1 - c), c = v.originalLine - 1, m += t.encode(v.originalColumn - l), l = v.originalColumn, v.name != null && (f = this._names.indexOf(v.name), m += t.encode(f - d), d = f)), p += m;
|
|
4925
4925
|
}
|
|
4926
4926
|
return p;
|
|
4927
4927
|
}, a.prototype._generateSourcesContent = function(o, s) {
|
|
@@ -4969,8 +4969,8 @@ function Hb() {
|
|
|
4969
4969
|
}, p = n.node;
|
|
4970
4970
|
n.node = function(f) {
|
|
4971
4971
|
if (f.loc && f.loc.start && e.hasOwnProperty(f.type)) {
|
|
4972
|
-
var
|
|
4973
|
-
(l.line !==
|
|
4972
|
+
var h = f.loc.start.line, x = f.loc.start.column - 1;
|
|
4973
|
+
(l.line !== h || l.column !== x) && (l.line = h, l.column = x, s.line = i, s.column = o, c && (c = !1, (s.line !== d.line || s.column !== d.column) && a.addMapping(u)), c = !0, a.addMapping({
|
|
4974
4974
|
source: f.loc.source,
|
|
4975
4975
|
original: l,
|
|
4976
4976
|
generated: s
|
|
@@ -4980,8 +4980,8 @@ function Hb() {
|
|
|
4980
4980
|
};
|
|
4981
4981
|
var m = n.chunk;
|
|
4982
4982
|
n.chunk = function(f) {
|
|
4983
|
-
for (var
|
|
4984
|
-
f.charCodeAt(
|
|
4983
|
+
for (var h = 0; h < f.length; h++)
|
|
4984
|
+
f.charCodeAt(h) === 10 ? (i++, o = 0) : o++;
|
|
4985
4985
|
m(f);
|
|
4986
4986
|
};
|
|
4987
4987
|
var v = n.result;
|
|
@@ -5079,8 +5079,8 @@ function Yb() {
|
|
|
5079
5079
|
};
|
|
5080
5080
|
Array.isArray(d[p]) || (m = [d[p]]);
|
|
5081
5081
|
for (var f = 0; f < m.length; f++) {
|
|
5082
|
-
var
|
|
5083
|
-
|
|
5082
|
+
var h = m[f];
|
|
5083
|
+
h === null ? v.nullable = !0 : typeof h == "string" ? v.type = "node" : Array.isArray(h) && (v.type = "list");
|
|
5084
5084
|
}
|
|
5085
5085
|
v.type && u.push(v);
|
|
5086
5086
|
}
|
|
@@ -5102,14 +5102,14 @@ function Yb() {
|
|
|
5102
5102
|
}
|
|
5103
5103
|
function o(l, c) {
|
|
5104
5104
|
var d = l.fields.slice(), u = l.context, p = typeof u == "string";
|
|
5105
|
-
return c && d.reverse(), function(m, v, f,
|
|
5105
|
+
return c && d.reverse(), function(m, v, f, h) {
|
|
5106
5106
|
var x;
|
|
5107
5107
|
p && (x = v[u], v[u] = m);
|
|
5108
5108
|
for (var S = 0; S < d.length; S++) {
|
|
5109
|
-
var
|
|
5110
|
-
if (!
|
|
5111
|
-
if (
|
|
5112
|
-
var b = c ? y.reduceRight(
|
|
5109
|
+
var g = d[S], y = m[g.name];
|
|
5110
|
+
if (!g.nullable || y) {
|
|
5111
|
+
if (g.type === "list") {
|
|
5112
|
+
var b = c ? y.reduceRight(h, !1) : y.reduce(h, !1);
|
|
5113
5113
|
if (b)
|
|
5114
5114
|
return !0;
|
|
5115
5115
|
} else if (f(y))
|
|
@@ -5146,7 +5146,7 @@ function Yb() {
|
|
|
5146
5146
|
var d = i(c), u = {}, p = {}, m = /* @__PURE__ */ Symbol("break-walk"), v = /* @__PURE__ */ Symbol("skip-node");
|
|
5147
5147
|
for (var f in d)
|
|
5148
5148
|
t.call(d, f) && d[f] !== null && (u[f] = o(d[f], !1), p[f] = o(d[f], !0));
|
|
5149
|
-
var
|
|
5149
|
+
var h = s(u), x = s(p), S = function(g, y) {
|
|
5150
5150
|
function b(R, P, N) {
|
|
5151
5151
|
var z = C.call(A, R, P, N);
|
|
5152
5152
|
if (z === m) {
|
|
@@ -5158,7 +5158,7 @@ function Yb() {
|
|
|
5158
5158
|
var E = (R, P, N, z) => R || b(P, N, z), C = e, w = e, O = u, A = {
|
|
5159
5159
|
break: m,
|
|
5160
5160
|
skip: v,
|
|
5161
|
-
root:
|
|
5161
|
+
root: g,
|
|
5162
5162
|
stylesheet: null,
|
|
5163
5163
|
atrule: null,
|
|
5164
5164
|
atrulePrelude: null,
|
|
@@ -5171,34 +5171,34 @@ function Yb() {
|
|
|
5171
5171
|
if (typeof y == "function")
|
|
5172
5172
|
C = y;
|
|
5173
5173
|
else if (y && (C = r(y.enter), w = r(y.leave), y.reverse && (O = p), y.visit)) {
|
|
5174
|
-
if (
|
|
5175
|
-
O = y.reverse ? x[y.visit] :
|
|
5174
|
+
if (h.hasOwnProperty(y.visit))
|
|
5175
|
+
O = y.reverse ? x[y.visit] : h[y.visit];
|
|
5176
5176
|
else if (!d.hasOwnProperty(y.visit))
|
|
5177
5177
|
throw new Error("Bad value `" + y.visit + "` for `visit` option (should be: " + Object.keys(d).join(", ") + ")");
|
|
5178
5178
|
C = n(C, y.visit), w = n(w, y.visit);
|
|
5179
5179
|
}
|
|
5180
5180
|
if (C === e && w === e)
|
|
5181
5181
|
throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");
|
|
5182
|
-
b(
|
|
5182
|
+
b(g);
|
|
5183
5183
|
};
|
|
5184
|
-
return S.break = m, S.skip = v, S.find = function(
|
|
5184
|
+
return S.break = m, S.skip = v, S.find = function(g, y) {
|
|
5185
5185
|
var b = null;
|
|
5186
|
-
return S(
|
|
5186
|
+
return S(g, function(E, C, w) {
|
|
5187
5187
|
if (y.call(this, E, C, w))
|
|
5188
5188
|
return b = E, m;
|
|
5189
5189
|
}), b;
|
|
5190
|
-
}, S.findLast = function(
|
|
5190
|
+
}, S.findLast = function(g, y) {
|
|
5191
5191
|
var b = null;
|
|
5192
|
-
return S(
|
|
5192
|
+
return S(g, {
|
|
5193
5193
|
reverse: !0,
|
|
5194
5194
|
enter: function(E, C, w) {
|
|
5195
5195
|
if (y.call(this, E, C, w))
|
|
5196
5196
|
return b = E, m;
|
|
5197
5197
|
}
|
|
5198
5198
|
}), b;
|
|
5199
|
-
}, S.findAll = function(
|
|
5199
|
+
}, S.findAll = function(g, y) {
|
|
5200
5200
|
var b = [];
|
|
5201
|
-
return S(
|
|
5201
|
+
return S(g, function(E, C, w) {
|
|
5202
5202
|
y.call(this, E, C, w) && b.push(E);
|
|
5203
5203
|
}), b;
|
|
5204
5204
|
}, S;
|
|
@@ -5282,13 +5282,13 @@ function Zb() {
|
|
|
5282
5282
|
v[f] = c(v[f] || {}, u[m][f], p[m]);
|
|
5283
5283
|
d[m] = v;
|
|
5284
5284
|
} else if (Array.isArray(p[m])) {
|
|
5285
|
-
const v = {}, f = p[m].reduce(function(
|
|
5286
|
-
return
|
|
5285
|
+
const v = {}, f = p[m].reduce(function(h, x) {
|
|
5286
|
+
return h[x] = !0, h;
|
|
5287
5287
|
}, {});
|
|
5288
|
-
for (const [
|
|
5289
|
-
v[
|
|
5290
|
-
for (const
|
|
5291
|
-
t.call(u[m],
|
|
5288
|
+
for (const [h, x] of Object.entries(d[m] || {}))
|
|
5289
|
+
v[h] = {}, x && c(v[h], x, f);
|
|
5290
|
+
for (const h in u[m])
|
|
5291
|
+
t.call(u[m], h) && (v[h] || (v[h] = {}), u[m] && u[m][h] && c(v[h], u[m][h], f));
|
|
5292
5292
|
d[m] = v;
|
|
5293
5293
|
}
|
|
5294
5294
|
}
|
|
@@ -5303,7 +5303,7 @@ function Qb() {
|
|
|
5303
5303
|
Zd = 1;
|
|
5304
5304
|
var t = hr(), e = gf(), r = ia(), n = zb(), a = Lb(), i = ee(), o = Bb(), s = Ub(), l = Kb(), c = Yb(), d = Xb(), u = Tl(), p = Zb();
|
|
5305
5305
|
function m(v) {
|
|
5306
|
-
var f = o(v),
|
|
5306
|
+
var f = o(v), h = c(v), x = s(v), S = l(h), g = {
|
|
5307
5307
|
List: t,
|
|
5308
5308
|
SyntaxError: e,
|
|
5309
5309
|
TokenStream: r,
|
|
@@ -5315,15 +5315,15 @@ function Qb() {
|
|
|
5315
5315
|
definitionSyntax: a,
|
|
5316
5316
|
lexer: null,
|
|
5317
5317
|
createLexer: function(y) {
|
|
5318
|
-
return new n(y,
|
|
5318
|
+
return new n(y, g, g.lexer.structure);
|
|
5319
5319
|
},
|
|
5320
5320
|
tokenize: i,
|
|
5321
5321
|
parse: f,
|
|
5322
|
-
walk:
|
|
5322
|
+
walk: h,
|
|
5323
5323
|
generate: x,
|
|
5324
|
-
find:
|
|
5325
|
-
findLast:
|
|
5326
|
-
findAll:
|
|
5324
|
+
find: h.find,
|
|
5325
|
+
findLast: h.findLast,
|
|
5326
|
+
findAll: h.findAll,
|
|
5327
5327
|
clone: d,
|
|
5328
5328
|
fromPlainObject: S.fromPlainObject,
|
|
5329
5329
|
toPlainObject: S.toPlainObject,
|
|
@@ -5337,13 +5337,13 @@ function Qb() {
|
|
|
5337
5337
|
);
|
|
5338
5338
|
}
|
|
5339
5339
|
};
|
|
5340
|
-
return
|
|
5340
|
+
return g.lexer = new n({
|
|
5341
5341
|
generic: !0,
|
|
5342
5342
|
types: v.types,
|
|
5343
5343
|
atrules: v.atrules,
|
|
5344
5344
|
properties: v.properties,
|
|
5345
5345
|
node: v.node
|
|
5346
|
-
},
|
|
5346
|
+
}, g), g;
|
|
5347
5347
|
}
|
|
5348
5348
|
return Za.create = function(v) {
|
|
5349
5349
|
return m(p({}, v));
|
|
@@ -6237,40 +6237,40 @@ function bx() {
|
|
|
6237
6237
|
Jd = 1;
|
|
6238
6238
|
var t = ee().cmpChar, e = ee().isDigit, r = ee().TYPE, n = r.WhiteSpace, a = r.Comment, i = r.Ident, o = r.Number, s = r.Dimension, l = 43, c = 45, d = 110, u = !0, p = !1;
|
|
6239
6239
|
function m(x, S) {
|
|
6240
|
-
var
|
|
6241
|
-
for ((y === l || y === c) && (S && this.error("Number sign is not allowed"),
|
|
6242
|
-
e(this.scanner.source.charCodeAt(
|
|
6240
|
+
var g = this.scanner.tokenStart + x, y = this.scanner.source.charCodeAt(g);
|
|
6241
|
+
for ((y === l || y === c) && (S && this.error("Number sign is not allowed"), g++); g < this.scanner.tokenEnd; g++)
|
|
6242
|
+
e(this.scanner.source.charCodeAt(g)) || this.error("Integer is expected", g);
|
|
6243
6243
|
}
|
|
6244
6244
|
function v(x) {
|
|
6245
6245
|
return m.call(this, 0, x);
|
|
6246
6246
|
}
|
|
6247
6247
|
function f(x, S) {
|
|
6248
6248
|
if (!t(this.scanner.source, this.scanner.tokenStart + x, S)) {
|
|
6249
|
-
var
|
|
6249
|
+
var g = "";
|
|
6250
6250
|
switch (S) {
|
|
6251
6251
|
case d:
|
|
6252
|
-
|
|
6252
|
+
g = "N is expected";
|
|
6253
6253
|
break;
|
|
6254
6254
|
case c:
|
|
6255
|
-
|
|
6255
|
+
g = "HyphenMinus is expected";
|
|
6256
6256
|
break;
|
|
6257
6257
|
}
|
|
6258
|
-
this.error(
|
|
6258
|
+
this.error(g, this.scanner.tokenStart + x);
|
|
6259
6259
|
}
|
|
6260
6260
|
}
|
|
6261
|
-
function
|
|
6262
|
-
for (var x = 0, S = 0,
|
|
6263
|
-
|
|
6264
|
-
if (
|
|
6261
|
+
function h() {
|
|
6262
|
+
for (var x = 0, S = 0, g = this.scanner.tokenType; g === n || g === a; )
|
|
6263
|
+
g = this.scanner.lookupType(++x);
|
|
6264
|
+
if (g !== o)
|
|
6265
6265
|
if (this.scanner.isDelim(l, x) || this.scanner.isDelim(c, x)) {
|
|
6266
6266
|
S = this.scanner.isDelim(l, x) ? l : c;
|
|
6267
6267
|
do
|
|
6268
|
-
|
|
6269
|
-
while (
|
|
6270
|
-
|
|
6268
|
+
g = this.scanner.lookupType(++x);
|
|
6269
|
+
while (g === n || g === a);
|
|
6270
|
+
g !== o && (this.scanner.skip(x), v.call(this, u));
|
|
6271
6271
|
} else
|
|
6272
6272
|
return null;
|
|
6273
|
-
return x > 0 && this.scanner.skip(x), S === 0 && (
|
|
6273
|
+
return x > 0 && this.scanner.skip(x), S === 0 && (g = this.scanner.source.charCodeAt(this.scanner.tokenStart), g !== l && g !== c && this.error("Number sign is expected")), v.call(this, S !== 0), S === c ? "-" + this.consume(o) : this.consume(o);
|
|
6274
6274
|
}
|
|
6275
6275
|
return Wi = {
|
|
6276
6276
|
name: "AnPlusB",
|
|
@@ -6279,24 +6279,24 @@ function bx() {
|
|
|
6279
6279
|
b: [String, null]
|
|
6280
6280
|
},
|
|
6281
6281
|
parse: function() {
|
|
6282
|
-
var x = this.scanner.tokenStart, S = null,
|
|
6282
|
+
var x = this.scanner.tokenStart, S = null, g = null;
|
|
6283
6283
|
if (this.scanner.tokenType === o)
|
|
6284
|
-
v.call(this, p),
|
|
6284
|
+
v.call(this, p), g = this.consume(o);
|
|
6285
6285
|
else if (this.scanner.tokenType === i && t(this.scanner.source, this.scanner.tokenStart, c))
|
|
6286
6286
|
switch (S = "-1", f.call(this, 1, d), this.scanner.getTokenLength()) {
|
|
6287
6287
|
// -n
|
|
6288
6288
|
// -n <signed-integer>
|
|
6289
6289
|
// -n ['+' | '-'] <signless-integer>
|
|
6290
6290
|
case 2:
|
|
6291
|
-
this.scanner.next(),
|
|
6291
|
+
this.scanner.next(), g = h.call(this);
|
|
6292
6292
|
break;
|
|
6293
6293
|
// -n- <signless-integer>
|
|
6294
6294
|
case 3:
|
|
6295
|
-
f.call(this, 2, c), this.scanner.next(), this.scanner.skipSC(), v.call(this, u),
|
|
6295
|
+
f.call(this, 2, c), this.scanner.next(), this.scanner.skipSC(), v.call(this, u), g = "-" + this.consume(o);
|
|
6296
6296
|
break;
|
|
6297
6297
|
// <dashndashdigit-ident>
|
|
6298
6298
|
default:
|
|
6299
|
-
f.call(this, 2, c), m.call(this, 3, u), this.scanner.next(),
|
|
6299
|
+
f.call(this, 2, c), m.call(this, 3, u), this.scanner.next(), g = this.scanner.substrToCursor(x + 2);
|
|
6300
6300
|
}
|
|
6301
6301
|
else if (this.scanner.tokenType === i || this.scanner.isDelim(l) && this.scanner.lookupType(1) === i) {
|
|
6302
6302
|
var y = 0;
|
|
@@ -6305,31 +6305,31 @@ function bx() {
|
|
|
6305
6305
|
// '+'? n <signed-integer>
|
|
6306
6306
|
// '+'? n ['+' | '-'] <signless-integer>
|
|
6307
6307
|
case 1:
|
|
6308
|
-
this.scanner.next(),
|
|
6308
|
+
this.scanner.next(), g = h.call(this);
|
|
6309
6309
|
break;
|
|
6310
6310
|
// '+'? n- <signless-integer>
|
|
6311
6311
|
case 2:
|
|
6312
|
-
f.call(this, 1, c), this.scanner.next(), this.scanner.skipSC(), v.call(this, u),
|
|
6312
|
+
f.call(this, 1, c), this.scanner.next(), this.scanner.skipSC(), v.call(this, u), g = "-" + this.consume(o);
|
|
6313
6313
|
break;
|
|
6314
6314
|
// '+'? <ndashdigit-ident>
|
|
6315
6315
|
default:
|
|
6316
|
-
f.call(this, 1, c), m.call(this, 2, u), this.scanner.next(),
|
|
6316
|
+
f.call(this, 1, c), m.call(this, 2, u), this.scanner.next(), g = this.scanner.substrToCursor(x + y + 1);
|
|
6317
6317
|
}
|
|
6318
6318
|
} else if (this.scanner.tokenType === s) {
|
|
6319
6319
|
for (var b = this.scanner.source.charCodeAt(this.scanner.tokenStart), y = b === l || b === c, E = this.scanner.tokenStart + y; E < this.scanner.tokenEnd && e(this.scanner.source.charCodeAt(E)); E++)
|
|
6320
6320
|
;
|
|
6321
|
-
E === this.scanner.tokenStart + y && this.error("Integer is expected", this.scanner.tokenStart + y), f.call(this, E - this.scanner.tokenStart, d), S = this.scanner.source.substring(x, E), E + 1 === this.scanner.tokenEnd ? (this.scanner.next(),
|
|
6321
|
+
E === this.scanner.tokenStart + y && this.error("Integer is expected", this.scanner.tokenStart + y), f.call(this, E - this.scanner.tokenStart, d), S = this.scanner.source.substring(x, E), E + 1 === this.scanner.tokenEnd ? (this.scanner.next(), g = h.call(this)) : (f.call(this, E - this.scanner.tokenStart + 1, c), E + 2 === this.scanner.tokenEnd ? (this.scanner.next(), this.scanner.skipSC(), v.call(this, u), g = "-" + this.consume(o)) : (m.call(this, E - this.scanner.tokenStart + 2, u), this.scanner.next(), g = this.scanner.substrToCursor(E + 1)));
|
|
6322
6322
|
} else
|
|
6323
6323
|
this.error();
|
|
6324
|
-
return S !== null && S.charCodeAt(0) === l && (S = S.substr(1)),
|
|
6324
|
+
return S !== null && S.charCodeAt(0) === l && (S = S.substr(1)), g !== null && g.charCodeAt(0) === l && (g = g.substr(1)), {
|
|
6325
6325
|
type: "AnPlusB",
|
|
6326
6326
|
loc: this.getLocation(x, this.scanner.tokenStart),
|
|
6327
6327
|
a: S,
|
|
6328
|
-
b:
|
|
6328
|
+
b: g
|
|
6329
6329
|
};
|
|
6330
6330
|
},
|
|
6331
6331
|
generate: function(x) {
|
|
6332
|
-
var S = x.a !== null && x.a !== void 0,
|
|
6332
|
+
var S = x.a !== null && x.a !== void 0, g = x.b !== null && x.b !== void 0;
|
|
6333
6333
|
S ? (this.chunk(
|
|
6334
6334
|
x.a === "+1" ? "+n" : (
|
|
6335
6335
|
// eslint-disable-line operator-linebreak, indent
|
|
@@ -6342,7 +6342,7 @@ function bx() {
|
|
|
6342
6342
|
)
|
|
6343
6343
|
)
|
|
6344
6344
|
// eslint-disable-line operator-linebreak, indent
|
|
6345
|
-
),
|
|
6345
|
+
), g && (g = String(x.b), g.charAt(0) === "-" || g.charAt(0) === "+" ? (this.chunk(g.charAt(0)), this.chunk(g.substr(1))) : (this.chunk("+"), this.chunk(g)))) : this.chunk(String(x.b));
|
|
6346
6346
|
}
|
|
6347
6347
|
}, Wi;
|
|
6348
6348
|
}
|
|
@@ -6375,13 +6375,13 @@ function Ut() {
|
|
|
6375
6375
|
value: String
|
|
6376
6376
|
},
|
|
6377
6377
|
parse: function(m, v, f) {
|
|
6378
|
-
var
|
|
6378
|
+
var h = this.scanner.getTokenStart(m), x;
|
|
6379
6379
|
return this.scanner.skip(
|
|
6380
6380
|
this.scanner.getRawLength(m, v || l)
|
|
6381
|
-
), f && this.scanner.tokenStart >
|
|
6381
|
+
), f && this.scanner.tokenStart > h ? x = s.call(this) : x = this.scanner.tokenStart, {
|
|
6382
6382
|
type: "Raw",
|
|
6383
|
-
loc: this.getLocation(
|
|
6384
|
-
value: this.scanner.source.substring(
|
|
6383
|
+
loc: this.getLocation(h, x),
|
|
6384
|
+
value: this.scanner.source.substring(h, x)
|
|
6385
6385
|
};
|
|
6386
6386
|
},
|
|
6387
6387
|
generate: function(m) {
|
|
@@ -6475,8 +6475,8 @@ function wx() {
|
|
|
6475
6475
|
var t = ee().TYPE, e = t.Ident, r = t.String, n = t.Colon, a = t.LeftSquareBracket, i = t.RightSquareBracket, o = 36, s = 42, l = 61, c = 94, d = 124, u = 126;
|
|
6476
6476
|
function p() {
|
|
6477
6477
|
this.scanner.eof && this.error("Unexpected end of input");
|
|
6478
|
-
var v = this.scanner.tokenStart, f = !1,
|
|
6479
|
-
return this.scanner.isDelim(s) ? (f = !0,
|
|
6478
|
+
var v = this.scanner.tokenStart, f = !1, h = !0;
|
|
6479
|
+
return this.scanner.isDelim(s) ? (f = !0, h = !1, this.scanner.next()) : this.scanner.isDelim(d) || this.eat(e), this.scanner.isDelim(d) ? this.scanner.source.charCodeAt(this.scanner.tokenStart + 1) !== l ? (this.scanner.next(), this.eat(e)) : f && this.error("Identifier is expected", this.scanner.tokenEnd) : f && this.error("Vertical line is expected"), h && this.scanner.tokenType === n && (this.scanner.next(), this.eat(e)), {
|
|
6480
6480
|
type: "Identifier",
|
|
6481
6481
|
loc: this.getLocation(v, this.scanner.tokenStart),
|
|
6482
6482
|
name: this.scanner.substrToCursor(v)
|
|
@@ -6500,12 +6500,12 @@ function wx() {
|
|
|
6500
6500
|
flags: [String, null]
|
|
6501
6501
|
},
|
|
6502
6502
|
parse: function() {
|
|
6503
|
-
var v = this.scanner.tokenStart, f,
|
|
6504
|
-
return this.eat(a), this.scanner.skipSC(), f = p.call(this), this.scanner.skipSC(), this.scanner.tokenType !== i && (this.scanner.tokenType !== e && (
|
|
6503
|
+
var v = this.scanner.tokenStart, f, h = null, x = null, S = null;
|
|
6504
|
+
return this.eat(a), this.scanner.skipSC(), f = p.call(this), this.scanner.skipSC(), this.scanner.tokenType !== i && (this.scanner.tokenType !== e && (h = m.call(this), this.scanner.skipSC(), x = this.scanner.tokenType === r ? this.String() : this.Identifier(), this.scanner.skipSC()), this.scanner.tokenType === e && (S = this.scanner.getTokenValue(), this.scanner.next(), this.scanner.skipSC())), this.eat(i), {
|
|
6505
6505
|
type: "AttributeSelector",
|
|
6506
6506
|
loc: this.getLocation(v, this.scanner.tokenStart),
|
|
6507
6507
|
name: f,
|
|
6508
|
-
matcher:
|
|
6508
|
+
matcher: h,
|
|
6509
6509
|
value: x,
|
|
6510
6510
|
flags: S
|
|
6511
6511
|
};
|
|
@@ -6725,7 +6725,7 @@ function Rx() {
|
|
|
6725
6725
|
if (uu) return Zi;
|
|
6726
6726
|
uu = 1;
|
|
6727
6727
|
var t = Tl().isCustomProperty, e = ee().TYPE, r = Ut().mode, n = e.Ident, a = e.Hash, i = e.Colon, o = e.Semicolon, s = e.Delim, l = e.WhiteSpace, c = 33, d = 35, u = 36, p = 38, m = 42, v = 43, f = 47;
|
|
6728
|
-
function
|
|
6728
|
+
function h(b) {
|
|
6729
6729
|
return this.Raw(b, r.exclamationMarkOrSemicolon, !0);
|
|
6730
6730
|
}
|
|
6731
6731
|
function x(b) {
|
|
@@ -6743,7 +6743,7 @@ function Rx() {
|
|
|
6743
6743
|
value: ["Value", "Raw"]
|
|
6744
6744
|
},
|
|
6745
6745
|
parse: function() {
|
|
6746
|
-
var b = this.scanner.tokenStart, E = this.scanner.tokenIndex, C =
|
|
6746
|
+
var b = this.scanner.tokenStart, E = this.scanner.tokenIndex, C = g.call(this), w = t(C), O = w ? this.parseCustomProperty : this.parseValue, A = w ? x : h, R = !1, P;
|
|
6747
6747
|
this.scanner.skipSC(), this.eat(i);
|
|
6748
6748
|
const N = this.scanner.tokenIndex;
|
|
6749
6749
|
if (w || this.scanner.skipSC(), O ? P = this.parseWithFallback(S, A) : P = A.call(this, this.scanner.tokenIndex), w && P.type === "Value" && P.children.isEmpty()) {
|
|
@@ -6770,7 +6770,7 @@ function Rx() {
|
|
|
6770
6770
|
},
|
|
6771
6771
|
walkContext: "declaration"
|
|
6772
6772
|
};
|
|
6773
|
-
function
|
|
6773
|
+
function g() {
|
|
6774
6774
|
var b = this.scanner.tokenStart;
|
|
6775
6775
|
if (this.scanner.tokenType === s)
|
|
6776
6776
|
switch (this.scanner.source.charCodeAt(this.scanner.tokenStart)) {
|
|
@@ -7484,21 +7484,21 @@ function ew() {
|
|
|
7484
7484
|
if (Du) return wo;
|
|
7485
7485
|
Du = 1;
|
|
7486
7486
|
var t = ee().isHexDigit, e = ee().cmpChar, r = ee().TYPE, n = ee().NAME, a = r.Ident, i = r.Number, o = r.Dimension, s = 43, l = 45, c = 63, d = 117;
|
|
7487
|
-
function u(f,
|
|
7487
|
+
function u(f, h) {
|
|
7488
7488
|
for (var x = this.scanner.tokenStart + f, S = 0; x < this.scanner.tokenEnd; x++) {
|
|
7489
|
-
var
|
|
7490
|
-
if (
|
|
7489
|
+
var g = this.scanner.source.charCodeAt(x);
|
|
7490
|
+
if (g === l && h && S !== 0)
|
|
7491
7491
|
return u.call(this, f + S + 1, !1) === 0 && this.error(), -1;
|
|
7492
|
-
t(
|
|
7493
|
-
|
|
7492
|
+
t(g) || this.error(
|
|
7493
|
+
h && S !== 0 ? "HyphenMinus" + (S < 6 ? " or hex digit" : "") + " is expected" : S < 6 ? "Hex digit is expected" : "Unexpected input",
|
|
7494
7494
|
x
|
|
7495
7495
|
), ++S > 6 && this.error("Too many hex digits", x);
|
|
7496
7496
|
}
|
|
7497
7497
|
return this.scanner.next(), S;
|
|
7498
7498
|
}
|
|
7499
7499
|
function p(f) {
|
|
7500
|
-
for (var
|
|
7501
|
-
++
|
|
7500
|
+
for (var h = 0; this.scanner.isDelim(c); )
|
|
7501
|
+
++h > f && this.error("Too many question marks"), this.scanner.next();
|
|
7502
7502
|
}
|
|
7503
7503
|
function m(f) {
|
|
7504
7504
|
this.scanner.source.charCodeAt(this.scanner.tokenStart) !== f && this.error(n[f] + " is expected");
|
|
@@ -7697,7 +7697,7 @@ var Oo, qu;
|
|
|
7697
7697
|
function wf() {
|
|
7698
7698
|
if (qu) return Oo;
|
|
7699
7699
|
qu = 1;
|
|
7700
|
-
var t = ee().cmpChar, e = ee().cmpStr, r = ee().TYPE, n = r.Ident, a = r.String, i = r.Number, o = r.Function, s = r.Url, l = r.Hash, c = r.Dimension, d = r.Percentage, u = r.LeftParenthesis, p = r.LeftSquareBracket, m = r.Comma, v = r.Delim, f = 35,
|
|
7700
|
+
var t = ee().cmpChar, e = ee().cmpStr, r = ee().TYPE, n = r.Ident, a = r.String, i = r.Number, o = r.Function, s = r.Url, l = r.Hash, c = r.Dimension, d = r.Percentage, u = r.LeftParenthesis, p = r.LeftSquareBracket, m = r.Comma, v = r.Delim, f = 35, h = 42, x = 43, S = 45, g = 47, y = 117;
|
|
7701
7701
|
return Oo = function(E) {
|
|
7702
7702
|
switch (this.scanner.tokenType) {
|
|
7703
7703
|
case l:
|
|
@@ -7724,7 +7724,7 @@ function wf() {
|
|
|
7724
7724
|
return t(this.scanner.source, this.scanner.tokenStart, y) && t(this.scanner.source, this.scanner.tokenStart + 1, x) ? this.UnicodeRange() : this.Identifier();
|
|
7725
7725
|
case v:
|
|
7726
7726
|
var C = this.scanner.source.charCodeAt(this.scanner.tokenStart);
|
|
7727
|
-
if (C ===
|
|
7727
|
+
if (C === g || C === h || C === x || C === S)
|
|
7728
7728
|
return this.Operator();
|
|
7729
7729
|
C === f && this.error("Hex or identifier is expected", this.scanner.tokenStart + 1);
|
|
7730
7730
|
break;
|
|
@@ -7741,7 +7741,7 @@ var Ro, $u;
|
|
|
7741
7741
|
function ow() {
|
|
7742
7742
|
if ($u) return Ro;
|
|
7743
7743
|
$u = 1;
|
|
7744
|
-
var t = ee().TYPE, e = t.Delim, r = t.Ident, n = t.Dimension, a = t.Percentage, i = t.Number, o = t.Hash, s = t.Colon, l = t.LeftSquareBracket, c = 35, d = 42, u = 43, p = 47, m = 46, v = 62, f = 124,
|
|
7744
|
+
var t = ee().TYPE, e = t.Delim, r = t.Ident, n = t.Dimension, a = t.Percentage, i = t.Number, o = t.Hash, s = t.Colon, l = t.LeftSquareBracket, c = 35, d = 42, u = 43, p = 47, m = 46, v = 62, f = 124, h = 126;
|
|
7745
7745
|
function x(S) {
|
|
7746
7746
|
switch (this.scanner.tokenType) {
|
|
7747
7747
|
case l:
|
|
@@ -7759,11 +7759,11 @@ function ow() {
|
|
|
7759
7759
|
this.scanner.source.charCodeAt(this.scanner.tokenStart) === m && this.error("Identifier is expected", this.scanner.tokenStart + 1);
|
|
7760
7760
|
break;
|
|
7761
7761
|
case e:
|
|
7762
|
-
var
|
|
7763
|
-
switch (
|
|
7762
|
+
var g = this.scanner.source.charCodeAt(this.scanner.tokenStart);
|
|
7763
|
+
switch (g) {
|
|
7764
7764
|
case u:
|
|
7765
7765
|
case v:
|
|
7766
|
-
case
|
|
7766
|
+
case h:
|
|
7767
7767
|
return S.space = null, S.ignoreWSAfter = !0, this.Combinator();
|
|
7768
7768
|
case p:
|
|
7769
7769
|
return this.Combinator();
|
|
@@ -9690,7 +9690,7 @@ class jw extends Oe {
|
|
|
9690
9690
|
enter: (u, p, m) => {
|
|
9691
9691
|
if (u.property === "content" && (u.value.children && u.value.children.first().name === "none" ? s = !1 : s = !0, m.remove(p)), u.property === "vertical-align" && (V.walk(u, {
|
|
9692
9692
|
visit: "Identifier",
|
|
9693
|
-
enter: (v, f,
|
|
9693
|
+
enter: (v, f, h) => {
|
|
9694
9694
|
let x = v.name;
|
|
9695
9695
|
x === "top" ? v.name = "flex-start" : x === "middle" ? v.name = "center" : x === "bottom" && (v.name = "flex-end");
|
|
9696
9696
|
}
|
|
@@ -9768,13 +9768,13 @@ class jw extends Oe {
|
|
|
9768
9768
|
name: "root",
|
|
9769
9769
|
children: null
|
|
9770
9770
|
});
|
|
9771
|
-
let u, p, m, v, f,
|
|
9771
|
+
let u, p, m, v, f, h;
|
|
9772
9772
|
if (!i)
|
|
9773
|
-
u = te(r), p = te(n), m = te(r), v = te(n), f = te(r),
|
|
9773
|
+
u = te(r), p = te(n), m = te(r), v = te(n), f = te(r), h = te(n);
|
|
9774
9774
|
else {
|
|
9775
|
-
u = `calc( ${te(r)} + ${te(i.left)} + ${te(i.right)} )`, p = `calc( ${te(n)} + ${te(i.top)} + ${te(i.bottom)} )`, m = `calc( ${te(r)} + ${te(i.left)} + ${te(i.right)} )`, v = `calc( ${te(n)} + ${te(i.top)} + ${te(i.bottom)} )`, f = `calc( ${te(r)} + ${te(i.left)} + ${te(i.right)} )`,
|
|
9775
|
+
u = `calc( ${te(r)} + ${te(i.left)} + ${te(i.right)} )`, p = `calc( ${te(n)} + ${te(i.top)} + ${te(i.bottom)} )`, m = `calc( ${te(r)} + ${te(i.left)} + ${te(i.right)} )`, v = `calc( ${te(n)} + ${te(i.top)} + ${te(i.bottom)} )`, f = `calc( ${te(r)} + ${te(i.left)} + ${te(i.right)} )`, h = `calc( ${te(n)} + ${te(i.top)} + ${te(i.bottom)} )`;
|
|
9776
9776
|
let w = this.createVariable("--pagedjs-bleed-top", te(i.top)), O = this.createVariable("--pagedjs-bleed-right", te(i.right)), A = this.createVariable("--pagedjs-bleed-bottom", te(i.bottom)), R = this.createVariable("--pagedjs-bleed-left", te(i.left)), P = this.createVariable("--pagedjs-bleed-right-top", te(i.top)), N = this.createVariable("--pagedjs-bleed-right-right", te(i.right)), z = this.createVariable("--pagedjs-bleed-right-bottom", te(i.bottom)), U = this.createVariable("--pagedjs-bleed-right-left", te(i.left)), L = this.createVariable("--pagedjs-bleed-left-top", te(i.top)), W = this.createVariable("--pagedjs-bleed-left-right", te(i.right)), q = this.createVariable("--pagedjs-bleed-left-bottom", te(i.bottom)), _ = this.createVariable("--pagedjs-bleed-left-left", te(i.left));
|
|
9777
|
-
o && (P = this.createVariable("--pagedjs-bleed-right-top", te(o.top)), N = this.createVariable("--pagedjs-bleed-right-right", te(o.right)), z = this.createVariable("--pagedjs-bleed-right-bottom", te(o.bottom)), U = this.createVariable("--pagedjs-bleed-right-left", te(o.left)), m = `calc( ${te(r)} + ${te(o.left)} + ${te(o.right)} )`, v = `calc( ${te(n)} + ${te(o.top)} + ${te(o.bottom)} )`), s && (L = this.createVariable("--pagedjs-bleed-left-top", te(s.top)), W = this.createVariable("--pagedjs-bleed-left-right", te(s.right)), q = this.createVariable("--pagedjs-bleed-left-bottom", te(s.bottom)), _ = this.createVariable("--pagedjs-bleed-left-left", te(s.left)), f = `calc( ${te(r)} + ${te(s.left)} + ${te(s.right)} )`,
|
|
9777
|
+
o && (P = this.createVariable("--pagedjs-bleed-right-top", te(o.top)), N = this.createVariable("--pagedjs-bleed-right-right", te(o.right)), z = this.createVariable("--pagedjs-bleed-right-bottom", te(o.bottom)), U = this.createVariable("--pagedjs-bleed-right-left", te(o.left)), m = `calc( ${te(r)} + ${te(o.left)} + ${te(o.right)} )`, v = `calc( ${te(n)} + ${te(o.top)} + ${te(o.bottom)} )`), s && (L = this.createVariable("--pagedjs-bleed-left-top", te(s.top)), W = this.createVariable("--pagedjs-bleed-left-right", te(s.right)), q = this.createVariable("--pagedjs-bleed-left-bottom", te(s.bottom)), _ = this.createVariable("--pagedjs-bleed-left-left", te(s.left)), f = `calc( ${te(r)} + ${te(s.left)} + ${te(s.right)} )`, h = `calc( ${te(n)} + ${te(s.top)} + ${te(s.bottom)} )`);
|
|
9778
9778
|
let B = this.createVariable("--pagedjs-width", te(r)), Y = this.createVariable("--pagedjs-height", te(n));
|
|
9779
9779
|
c.push(
|
|
9780
9780
|
w,
|
|
@@ -9798,10 +9798,10 @@ class jw extends Oe {
|
|
|
9798
9798
|
c.push(O);
|
|
9799
9799
|
}), a) {
|
|
9800
9800
|
let w = this.createVariable("--pagedjs-orientation", a);
|
|
9801
|
-
c.push(w), a !== "portrait" && ([u, p] = [p, u], [m, v] = [v, m], [f,
|
|
9801
|
+
c.push(w), a !== "portrait" && ([u, p] = [p, u], [m, v] = [v, m], [f, h] = [h, f]);
|
|
9802
9802
|
}
|
|
9803
|
-
let x = this.createVariable("--pagedjs-width", u), S = this.createVariable("--pagedjs-height", p),
|
|
9804
|
-
c.push(x, S,
|
|
9803
|
+
let x = this.createVariable("--pagedjs-width", u), S = this.createVariable("--pagedjs-height", p), g = this.createVariable("--pagedjs-width-right", m), y = this.createVariable("--pagedjs-height-right", v), b = this.createVariable("--pagedjs-width-left", f), E = this.createVariable("--pagedjs-height-left", h);
|
|
9804
|
+
c.push(x, S, g, y, b, E);
|
|
9805
9805
|
let C = this.createRule(d, c);
|
|
9806
9806
|
e.children.appendData(C);
|
|
9807
9807
|
}
|
|
@@ -9968,7 +9968,7 @@ class jw extends Oe {
|
|
|
9968
9968
|
}]
|
|
9969
9969
|
}
|
|
9970
9970
|
});
|
|
9971
|
-
let
|
|
9971
|
+
let h = e.children.createItem({
|
|
9972
9972
|
type: "Atrule",
|
|
9973
9973
|
prelude: null,
|
|
9974
9974
|
name: "page",
|
|
@@ -9978,7 +9978,7 @@ class jw extends Oe {
|
|
|
9978
9978
|
children: d
|
|
9979
9979
|
}
|
|
9980
9980
|
});
|
|
9981
|
-
if (e.children.append(
|
|
9981
|
+
if (e.children.append(h), i) {
|
|
9982
9982
|
let x = new V.List(), S = new V.List();
|
|
9983
9983
|
x.appendData({
|
|
9984
9984
|
type: "Dimension",
|
|
@@ -10060,7 +10060,7 @@ class jw extends Oe {
|
|
|
10060
10060
|
children: v
|
|
10061
10061
|
}
|
|
10062
10062
|
});
|
|
10063
|
-
let
|
|
10063
|
+
let g = e.children.createItem({
|
|
10064
10064
|
type: "Atrule",
|
|
10065
10065
|
prelude: null,
|
|
10066
10066
|
name: "page :left",
|
|
@@ -10070,7 +10070,7 @@ class jw extends Oe {
|
|
|
10070
10070
|
children: u
|
|
10071
10071
|
}
|
|
10072
10072
|
});
|
|
10073
|
-
e.children.append(
|
|
10073
|
+
e.children.append(g);
|
|
10074
10074
|
}
|
|
10075
10075
|
if (a) {
|
|
10076
10076
|
let x = new V.List(), S = new V.List();
|
|
@@ -10154,7 +10154,7 @@ class jw extends Oe {
|
|
|
10154
10154
|
children: f
|
|
10155
10155
|
}
|
|
10156
10156
|
});
|
|
10157
|
-
let
|
|
10157
|
+
let g = e.children.createItem({
|
|
10158
10158
|
type: "Atrule",
|
|
10159
10159
|
prelude: null,
|
|
10160
10160
|
name: "page :right",
|
|
@@ -10164,7 +10164,7 @@ class jw extends Oe {
|
|
|
10164
10164
|
children: p
|
|
10165
10165
|
}
|
|
10166
10166
|
});
|
|
10167
|
-
e.children.append(
|
|
10167
|
+
e.children.append(g);
|
|
10168
10168
|
}
|
|
10169
10169
|
}
|
|
10170
10170
|
getNth(e) {
|
|
@@ -10221,22 +10221,22 @@ class jw extends Oe {
|
|
|
10221
10221
|
o.style["grid-template-columns"] = f + " 1fr " + f;
|
|
10222
10222
|
else {
|
|
10223
10223
|
o.style["grid-template-columns"] = "auto auto 1fr", l.style["white-space"] = "nowrap", s.style["white-space"] = "nowrap", c.style["white-space"] = "nowrap";
|
|
10224
|
-
let
|
|
10224
|
+
let h = l.offsetWidth, x = s.offsetWidth, S = c.offsetWidth, g = h + x + S, y = x * 100 / g;
|
|
10225
10225
|
y > 40 ? o.style["grid-template-columns"] = "minmax(16.66%, 1fr) minmax(33%, " + y + "%) minmax(16.66%, 1fr)" : o.style["grid-template-columns"] = "repeat(3, 1fr)", l.style["white-space"] = "normal", s.style["white-space"] = "normal", c.style["white-space"] = "normal";
|
|
10226
10226
|
}
|
|
10227
10227
|
else if (v !== "none" && v !== "auto")
|
|
10228
10228
|
o.style["grid-template-columns"] = v + " 1fr " + v;
|
|
10229
10229
|
else {
|
|
10230
10230
|
o.style["grid-template-columns"] = "auto auto 1fr", l.style["white-space"] = "nowrap", s.style["white-space"] = "nowrap";
|
|
10231
|
-
let
|
|
10232
|
-
o.style["grid-template-columns"] = "minmax(16.66%, 1fr) minmax(33%, " +
|
|
10231
|
+
let h = l.offsetWidth, x = s.offsetWidth, S = h + x, g = x * 100 / S;
|
|
10232
|
+
o.style["grid-template-columns"] = "minmax(16.66%, 1fr) minmax(33%, " + g + "%) minmax(16.66%, 1fr)", l.style["white-space"] = "normal", s.style["white-space"] = "normal";
|
|
10233
10233
|
}
|
|
10234
10234
|
else if (f !== "none" && f !== "auto")
|
|
10235
10235
|
o.style["grid-template-columns"] = f + " 1fr " + f;
|
|
10236
10236
|
else {
|
|
10237
10237
|
o.style["grid-template-columns"] = "auto auto 1fr", c.style["white-space"] = "nowrap", s.style["white-space"] = "nowrap";
|
|
10238
|
-
let
|
|
10239
|
-
o.style["grid-template-columns"] = "minmax(16.66%, 1fr) minmax(33%, " +
|
|
10238
|
+
let h = c.offsetWidth, x = s.offsetWidth, S = h + x, g = x * 100 / S;
|
|
10239
|
+
o.style["grid-template-columns"] = "minmax(16.66%, 1fr) minmax(33%, " + g + "%) minmax(16.66%, 1fr)", c.style["white-space"] = "normal", s.style["white-space"] = "normal";
|
|
10240
10240
|
}
|
|
10241
10241
|
else m !== "none" && m !== "auto" && (u && v !== "none" && v !== "auto" ? o.style["grid-template-columns"] = v + " " + m + " 1fr" : p && f !== "none" && f !== "auto" ? o.style["grid-template-columns"] = "1fr " + m + " " + f : o.style["grid-template-columns"] = "1fr " + m + " 1fr");
|
|
10242
10242
|
else if (u)
|
|
@@ -10248,8 +10248,8 @@ class jw extends Oe {
|
|
|
10248
10248
|
o.style["grid-template-columns"] = "1fr 0 " + f;
|
|
10249
10249
|
else {
|
|
10250
10250
|
o.style["grid-template-columns"] = "auto 1fr auto", l.style["white-space"] = "nowrap", c.style["white-space"] = "nowrap";
|
|
10251
|
-
let
|
|
10252
|
-
o.style["grid-template-columns"] = "minmax(16.66%, " +
|
|
10251
|
+
let h = l.offsetWidth, x = c.offsetWidth, S = h + x, g = h * 100 / S;
|
|
10252
|
+
o.style["grid-template-columns"] = "minmax(16.66%, " + g + "%) 0 1fr", l.style["white-space"] = "normal", c.style["white-space"] = "normal";
|
|
10253
10253
|
}
|
|
10254
10254
|
else
|
|
10255
10255
|
f !== "none" && f !== "auto" ? o.style["grid-template-columns"] = "1fr 0 " + f : o.style["grid-template-columns"] = "0 0 1fr";
|
|
@@ -10936,8 +10936,8 @@ class Kw extends Oe {
|
|
|
10936
10936
|
return;
|
|
10937
10937
|
}
|
|
10938
10938
|
o.appendChild(e), i.classList.contains("pagedjs_footnote_empty") && i.classList.remove("pagedjs_footnote_empty"), e.dataset.footnoteMarker = e.dataset.ref, e.id = `note-${e.dataset.ref}`;
|
|
10939
|
-
let c = i.scrollHeight, u = r.querySelector(".pagedjs_page_content").getBoundingClientRect(), p = u.left + u.width, m = s && s.getBoundingClientRect(), v = a.getBoundingClientRect(), f = this.marginsHeight(i),
|
|
10940
|
-
v.height === 0 && (
|
|
10939
|
+
let c = i.scrollHeight, u = r.querySelector(".pagedjs_page_content").getBoundingClientRect(), p = u.left + u.width, m = s && s.getBoundingClientRect(), v = a.getBoundingClientRect(), f = this.marginsHeight(i), h = this.paddingHeight(i), x = this.borderHeight(i), S = f + h + x, g = Math.floor(v.top);
|
|
10940
|
+
v.height === 0 && (g -= this.marginsHeight(i, !1), g -= this.paddingHeight(i, !1), g -= this.borderHeight(i, !1));
|
|
10941
10941
|
let y = e.dataset.notePolicy, b = 0, E = 0;
|
|
10942
10942
|
if (s) {
|
|
10943
10943
|
let R = s.previousSibling, P = new Range();
|
|
@@ -10954,7 +10954,7 @@ class Kw extends Oe {
|
|
|
10954
10954
|
) : E = Math.ceil(N.bottom);
|
|
10955
10955
|
}
|
|
10956
10956
|
}
|
|
10957
|
-
let C = c + S - v.height, w = b ?
|
|
10957
|
+
let C = c + S - v.height, w = b ? g - b : 0, O = b ? Math.floor(v.top) - E : 0, A = a.querySelector("[data-note='footnote']");
|
|
10958
10958
|
if (n && m.left > p)
|
|
10959
10959
|
e.remove();
|
|
10960
10960
|
else if (!A && n && S > w) {
|
|
@@ -10988,16 +10988,16 @@ class Kw extends Oe {
|
|
|
10988
10988
|
let E = m.childNodes[v];
|
|
10989
10989
|
f = Ve(E) && E.hasAttribute("data-footnote-marker");
|
|
10990
10990
|
}
|
|
10991
|
-
let
|
|
10991
|
+
let h = p.extractContents();
|
|
10992
10992
|
if (!f) {
|
|
10993
|
-
let E =
|
|
10993
|
+
let E = h.firstElementChild;
|
|
10994
10994
|
E.dataset.splitFrom = E.dataset.ref, this.handleAlignment(l.lastElementChild);
|
|
10995
10995
|
}
|
|
10996
|
-
this.needsLayout.push(
|
|
10997
|
-
let x = l.getBoundingClientRect(), { height: S } = x,
|
|
10996
|
+
this.needsLayout.push(h), s.style.removeProperty("height"), l.style.removeProperty("height");
|
|
10997
|
+
let x = l.getBoundingClientRect(), { height: S } = x, g = this.marginsHeight(s), y = this.paddingHeight(s), b = this.borderHeight(s);
|
|
10998
10998
|
if (i.style.setProperty(
|
|
10999
10999
|
"--pagedjs-footnotes-height",
|
|
11000
|
-
`${S +
|
|
11000
|
+
`${S + g + b + y}px`
|
|
11001
11001
|
), l.childNodes.length === 0 && s.classList.add("pagedjs_footnote_empty"), !n)
|
|
11002
11002
|
a.clonePage(r);
|
|
11003
11003
|
else {
|
|
@@ -11295,8 +11295,8 @@ class Jw extends Oe {
|
|
|
11295
11295
|
let f = "";
|
|
11296
11296
|
if (s.length > 1 && (f += "::" + s[1]), o.counter === "page") {
|
|
11297
11297
|
let x = a.pagesArea.querySelectorAll(".pagedjs_page"), S = 0;
|
|
11298
|
-
for (let
|
|
11299
|
-
let y = x[
|
|
11298
|
+
for (let g = 0; g < x.length; g++) {
|
|
11299
|
+
let y = x[g], b = window.getComputedStyle(y), E = b["counter-reset"].replace("page", "").trim(), C = b["counter-increment"].replace("page", "").trim();
|
|
11300
11300
|
if (E !== "none" && (S = parseInt(E)), C !== "none" && (S += parseInt(C)), y.contains(m))
|
|
11301
11301
|
break;
|
|
11302
11302
|
}
|
|
@@ -11305,8 +11305,8 @@ class Jw extends Oe {
|
|
|
11305
11305
|
let x = m.getAttribute(`data-counter-${o.counter}-value`);
|
|
11306
11306
|
x && this.styleSheet.insertRule(`[data-${o.variable}="${v}"]${f} { counter-reset: ${o.variable} ${o.variable} ${parseInt(x)}; }`, this.styleSheet.cssRules.length);
|
|
11307
11307
|
}
|
|
11308
|
-
let
|
|
11309
|
-
|
|
11308
|
+
let h = document.querySelector(`[data-${o.variable}="${v}"]`);
|
|
11309
|
+
h && (h.style.display = "none", h.clientHeight, h.style.removeProperty("display"));
|
|
11310
11310
|
}
|
|
11311
11311
|
});
|
|
11312
11312
|
});
|
|
@@ -11419,42 +11419,42 @@ class aC extends Oe {
|
|
|
11419
11419
|
var as = {}, Sp;
|
|
11420
11420
|
function iC() {
|
|
11421
11421
|
return Sp || (Sp = 1, (function(t) {
|
|
11422
|
-
var e = /(\[[^\]]+\])/g, r = /(#[^\s\+>~\.\[:]+)/g, n = /(\.[^\s\+>~\.\[:]+)/g, a = /(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/g, i = /(:[^\s\+>~\.\[:]+)/g, o = /([^\s\+>~\.\[:]+)/g, s = /:not\(([^\)]*)\)/g, l = /\{[^]*/gm, c = /[\*\s\+>~]/g, d = /[#\.]/g, u = function(
|
|
11423
|
-
var y =
|
|
11422
|
+
var e = /(\[[^\]]+\])/g, r = /(#[^\s\+>~\.\[:]+)/g, n = /(\.[^\s\+>~\.\[:]+)/g, a = /(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/g, i = /(:[^\s\+>~\.\[:]+)/g, o = /([^\s\+>~\.\[:]+)/g, s = /:not\(([^\)]*)\)/g, l = /\{[^]*/gm, c = /[\*\s\+>~]/g, d = /[#\.]/g, u = function(h, x, S, g) {
|
|
11423
|
+
var y = g.match(h);
|
|
11424
11424
|
if (y)
|
|
11425
11425
|
for (var b = 0; b < y.length; b++)
|
|
11426
|
-
S[x]++,
|
|
11427
|
-
return
|
|
11428
|
-
}, p = function(
|
|
11429
|
-
var x =
|
|
11430
|
-
x !== -1 && (
|
|
11426
|
+
S[x]++, g = g.replace(y[b], " ");
|
|
11427
|
+
return g;
|
|
11428
|
+
}, p = function(h) {
|
|
11429
|
+
var x = h.indexOf(",");
|
|
11430
|
+
x !== -1 && (h = h.substring(0, x));
|
|
11431
11431
|
var S = {
|
|
11432
11432
|
a: 0,
|
|
11433
11433
|
b: 0,
|
|
11434
11434
|
c: 0
|
|
11435
11435
|
};
|
|
11436
|
-
return
|
|
11436
|
+
return h = h.replace(s, " $1 "), h = h.replace(l, " "), h = u(e, "b", S, h), h = u(r, "a", S, h), h = u(n, "b", S, h), h = u(a, "c", S, h), h = u(i, "b", S, h), h = h.replace(c, " "), h = h.replace(d, " "), u(o, "c", S, h), S.a * 100 + S.b * 10 + S.c * 1;
|
|
11437
11437
|
}, m = {};
|
|
11438
|
-
t.calculateSpecificity = function(
|
|
11439
|
-
var x = m[
|
|
11440
|
-
return x === void 0 && (x = p(
|
|
11438
|
+
t.calculateSpecificity = function(h) {
|
|
11439
|
+
var x = m[h];
|
|
11440
|
+
return x === void 0 && (x = p(h), m[h] = x), x;
|
|
11441
11441
|
};
|
|
11442
11442
|
var v = {}, f = null;
|
|
11443
|
-
t.isSelectorValid = function(
|
|
11444
|
-
var x = v[
|
|
11443
|
+
t.isSelectorValid = function(h) {
|
|
11444
|
+
var x = v[h];
|
|
11445
11445
|
if (x === void 0) {
|
|
11446
11446
|
f == null && (f = document.createElement("div"));
|
|
11447
11447
|
try {
|
|
11448
|
-
f.querySelector(
|
|
11448
|
+
f.querySelector(h), x = !0;
|
|
11449
11449
|
} catch {
|
|
11450
11450
|
x = !1;
|
|
11451
11451
|
}
|
|
11452
|
-
v[
|
|
11452
|
+
v[h] = x;
|
|
11453
11453
|
}
|
|
11454
11454
|
return x;
|
|
11455
|
-
}, t.validateSelector = function(
|
|
11456
|
-
if (!t.isSelectorValid(
|
|
11457
|
-
var x = new SyntaxError(
|
|
11455
|
+
}, t.validateSelector = function(h) {
|
|
11456
|
+
if (!t.isSelectorValid(h)) {
|
|
11457
|
+
var x = new SyntaxError(h + " is not a valid selector");
|
|
11458
11458
|
throw x.code = "EBADSELECTOR", x;
|
|
11459
11459
|
}
|
|
11460
11460
|
};
|
|
@@ -11802,13 +11802,13 @@ function TC() {
|
|
|
11802
11802
|
qp = 1;
|
|
11803
11803
|
var t = yC().iterator, e = bC(), r = SC(), n = Af(), a = mf(), i = wl(), o = Fr(), s = EC(), l = Array.isArray, c = Function.prototype.call, d = { configurable: !0, enumerable: !0, writable: !0, value: null }, u = Object.defineProperty;
|
|
11804
11804
|
return Es = function(p) {
|
|
11805
|
-
var m = arguments[1], v = arguments[2], f,
|
|
11805
|
+
var m = arguments[1], v = arguments[2], f, h, x, S, g, y, b, E, C, w;
|
|
11806
11806
|
if (p = Object(i(p)), o(m) && a(m), !this || this === Array || !r(this)) {
|
|
11807
11807
|
if (!m) {
|
|
11808
11808
|
if (e(p))
|
|
11809
|
-
return
|
|
11809
|
+
return g = p.length, g !== 1 ? Array.apply(null, p) : (S = new Array(1), S[0] = p[0], S);
|
|
11810
11810
|
if (l(p)) {
|
|
11811
|
-
for (S = new Array(
|
|
11811
|
+
for (S = new Array(g = p.length), h = 0; h < g; ++h) S[h] = p[h];
|
|
11812
11812
|
return S;
|
|
11813
11813
|
}
|
|
11814
11814
|
}
|
|
@@ -11817,19 +11817,19 @@ function TC() {
|
|
|
11817
11817
|
f = this;
|
|
11818
11818
|
if (!l(p)) {
|
|
11819
11819
|
if ((C = p[t]) !== void 0) {
|
|
11820
|
-
for (b = a(C).call(p), f && (S = new f()), E = b.next(),
|
|
11821
|
-
w = m ? c.call(m, v, E.value,
|
|
11822
|
-
|
|
11820
|
+
for (b = a(C).call(p), f && (S = new f()), E = b.next(), h = 0; !E.done; )
|
|
11821
|
+
w = m ? c.call(m, v, E.value, h) : E.value, f ? (d.value = w, u(S, h, d)) : S[h] = w, E = b.next(), ++h;
|
|
11822
|
+
g = h;
|
|
11823
11823
|
} else if (s(p)) {
|
|
11824
|
-
for (
|
|
11825
|
-
w = p[
|
|
11826
|
-
|
|
11824
|
+
for (g = p.length, f && (S = new f()), h = 0, x = 0; h < g; ++h)
|
|
11825
|
+
w = p[h], h + 1 < g && (y = w.charCodeAt(0), y >= 55296 && y <= 56319 && (w += p[++h])), w = m ? c.call(m, v, w, x) : w, f ? (d.value = w, u(S, x, d)) : S[x] = w, ++x;
|
|
11826
|
+
g = x;
|
|
11827
11827
|
}
|
|
11828
11828
|
}
|
|
11829
|
-
if (
|
|
11830
|
-
for (
|
|
11831
|
-
w = m ? c.call(m, v, p[
|
|
11832
|
-
return f && (d.value = null, S.length =
|
|
11829
|
+
if (g === void 0)
|
|
11830
|
+
for (g = n(p.length), f && (S = new f(g)), h = 0; h < g; ++h)
|
|
11831
|
+
w = m ? c.call(m, v, p[h], h) : p[h], f ? (d.value = w, u(S, h, d)) : S[h] = w;
|
|
11832
|
+
return f && (d.value = null, S.length = g), S;
|
|
11833
11833
|
}, Es;
|
|
11834
11834
|
}
|
|
11835
11835
|
var Ts, Fp;
|
|
@@ -11914,8 +11914,8 @@ function DC() {
|
|
|
11914
11914
|
e.call(d, c);
|
|
11915
11915
|
}
|
|
11916
11916
|
}, o.call(l, "__eePipes__") ? ((d = l.__eePipes__).push(c), u) : (i(l, "__eePipes__", n("c", d = [c])), p = s(l, m), p ? (delete p.get, delete p.set) : p = n("c", void 0), p.value = function() {
|
|
11917
|
-
var v, f,
|
|
11918
|
-
for (a.apply(this, arguments), v = 0; f =
|
|
11917
|
+
var v, f, h = t(d);
|
|
11918
|
+
for (a.apply(this, arguments), v = 0; f = h[v]; ++v) a.apply(f, arguments);
|
|
11919
11919
|
}, i(l, m, p), u);
|
|
11920
11920
|
}, Ms;
|
|
11921
11921
|
}
|
|
@@ -12195,8 +12195,8 @@ const Kt = Wt(null), If = ({ config: t, children: e }) => /* @__PURE__ */ k(Kt.P
|
|
|
12195
12195
|
size: ${c.page.width}mm ${c.page.height}mm;
|
|
12196
12196
|
bleed: ${c.page.bleed ?? 0}mm;`;
|
|
12197
12197
|
if (m) {
|
|
12198
|
-
const f = m[1].replace(/\s*(size|bleed)\s*:[^;]*;/g, ""),
|
|
12199
|
-
d = d.replace(p,
|
|
12198
|
+
const f = m[1].replace(/\s*(size|bleed)\s*:[^;]*;/g, ""), h = `@page {${v}${f}}`;
|
|
12199
|
+
d = d.replace(p, h);
|
|
12200
12200
|
} else
|
|
12201
12201
|
d = `@page {${v}}
|
|
12202
12202
|
${d}`;
|
|
@@ -12306,15 +12306,25 @@ function FC({
|
|
|
12306
12306
|
} = {}) {
|
|
12307
12307
|
const a = [{ indexes: [], keys: [] }];
|
|
12308
12308
|
let i = 0;
|
|
12309
|
-
const o = () => {
|
|
12309
|
+
const o = (d) => {
|
|
12310
|
+
const u = r[d] ?? {};
|
|
12311
|
+
return u.avoidBreakInside && u.groupKey ? u.groupKey : null;
|
|
12312
|
+
}, s = (d, u) => {
|
|
12313
|
+
let p = 0;
|
|
12314
|
+
for (let m = d; m < t.length && o(m) === u; m += 1)
|
|
12315
|
+
p += t[m] ?? 0;
|
|
12316
|
+
return p;
|
|
12317
|
+
}, l = () => {
|
|
12310
12318
|
a[a.length - 1].indexes.length > 0 && (a.push({ indexes: [], keys: [] }), i = 0);
|
|
12311
12319
|
};
|
|
12312
|
-
for (let
|
|
12313
|
-
const
|
|
12314
|
-
|
|
12320
|
+
for (let d = 0; d < t.length; d += 1) {
|
|
12321
|
+
const u = r[d] ?? {}, p = t[d] ?? 0, m = e[d] ?? String(d), v = u.keepWithNext ? t[d + 1] ?? 0 : 0, f = p + v;
|
|
12322
|
+
u.breakBefore && l();
|
|
12323
|
+
const h = o(d), x = d > 0 ? o(d - 1) : null;
|
|
12324
|
+
h && h !== x && a[a.length - 1].indexes.length > 0 && i + s(d, h) > n && l(), a[a.length - 1].indexes.length > 0 && i + f > n && l(), a[a.length - 1].indexes.push(d), a[a.length - 1].keys.push(m), i += p, u.breakAfter && d < t.length - 1 && l();
|
|
12315
12325
|
}
|
|
12316
|
-
const
|
|
12317
|
-
return
|
|
12326
|
+
const c = a.filter((d) => d.indexes.length > 0);
|
|
12327
|
+
return c.length ? c : [{ indexes: [], keys: [] }];
|
|
12318
12328
|
}
|
|
12319
12329
|
const jn = T.createContext(null), $C = typeof window > "u" ? T.useEffect : T.useLayoutEffect;
|
|
12320
12330
|
function Jp(t) {
|
|
@@ -12325,7 +12335,9 @@ function GC(t) {
|
|
|
12325
12335
|
return {
|
|
12326
12336
|
breakBefore: t.dataset.uhuuFlowBreakBefore === "true",
|
|
12327
12337
|
breakAfter: t.dataset.uhuuFlowBreakAfter === "true",
|
|
12328
|
-
keepWithNext: t.dataset.uhuuFlowKeepWithNext === "true"
|
|
12338
|
+
keepWithNext: t.dataset.uhuuFlowKeepWithNext === "true",
|
|
12339
|
+
avoidBreakInside: t.dataset.uhuuFlowAvoidBreakInside === "true",
|
|
12340
|
+
groupKey: t.dataset.uhuuFlowGroupKey
|
|
12329
12341
|
};
|
|
12330
12342
|
}
|
|
12331
12343
|
function VC(t, e, r = {}) {
|
|
@@ -12384,7 +12396,7 @@ function HC({ children: t, className: e = "", style: r }) {
|
|
|
12384
12396
|
));
|
|
12385
12397
|
const S = x[0];
|
|
12386
12398
|
if (!S) return;
|
|
12387
|
-
const
|
|
12399
|
+
const g = VC(c, S, {
|
|
12388
12400
|
onZeroHeight: () => {
|
|
12389
12401
|
s.current || !Pn() || (s.current = !0, console.warn(
|
|
12390
12402
|
"[uhuu-components] Static.FlowArea has flow items but no measurable height. Give the area an explicit height or use a constrained flex layout such as flex-1 min-h-0."
|
|
@@ -12396,13 +12408,13 @@ function HC({ children: t, className: e = "", style: r }) {
|
|
|
12396
12408
|
));
|
|
12397
12409
|
}
|
|
12398
12410
|
});
|
|
12399
|
-
!
|
|
12411
|
+
!g || g.signature === i.current || (i.current = g.signature, n.registerMeasurement?.(g));
|
|
12400
12412
|
};
|
|
12401
12413
|
u = new ResizeObserver(p), u.observe(c), v(), p();
|
|
12402
|
-
const
|
|
12414
|
+
const h = new MutationObserver(() => {
|
|
12403
12415
|
v(), p();
|
|
12404
12416
|
});
|
|
12405
|
-
return
|
|
12417
|
+
return h.observe(c, {
|
|
12406
12418
|
attributes: !0,
|
|
12407
12419
|
attributeFilter: [
|
|
12408
12420
|
"class",
|
|
@@ -12413,13 +12425,15 @@ function HC({ children: t, className: e = "", style: r }) {
|
|
|
12413
12425
|
"data-uhuu-flow-key",
|
|
12414
12426
|
"data-uhuu-flow-break-before",
|
|
12415
12427
|
"data-uhuu-flow-break-after",
|
|
12416
|
-
"data-uhuu-flow-keep-with-next"
|
|
12428
|
+
"data-uhuu-flow-keep-with-next",
|
|
12429
|
+
"data-uhuu-flow-avoid-break-inside",
|
|
12430
|
+
"data-uhuu-flow-group-key"
|
|
12417
12431
|
],
|
|
12418
12432
|
characterData: !0,
|
|
12419
12433
|
childList: !0,
|
|
12420
12434
|
subtree: !0
|
|
12421
12435
|
}), () => {
|
|
12422
|
-
window.cancelAnimationFrame(d), u?.disconnect(),
|
|
12436
|
+
window.cancelAnimationFrame(d), u?.disconnect(), h.disconnect();
|
|
12423
12437
|
};
|
|
12424
12438
|
}, [n]), /* @__PURE__ */ k("div", { ref: a, className: e, style: r, "data-uhuu-flow-area": "true", children: t });
|
|
12425
12439
|
}
|
|
@@ -12448,6 +12462,8 @@ function UC({
|
|
|
12448
12462
|
"data-uhuu-flow-break-before": v.breakBefore ? "true" : void 0,
|
|
12449
12463
|
"data-uhuu-flow-break-after": v.breakAfter ? "true" : void 0,
|
|
12450
12464
|
"data-uhuu-flow-keep-with-next": v.keepWithNext ? "true" : void 0,
|
|
12465
|
+
"data-uhuu-flow-avoid-break-inside": v.avoidBreakInside ? "true" : void 0,
|
|
12466
|
+
"data-uhuu-flow-group-key": v.groupKey,
|
|
12451
12467
|
children: n(p, u)
|
|
12452
12468
|
},
|
|
12453
12469
|
m
|
|
@@ -12483,19 +12499,19 @@ const gr = (t, e) => {
|
|
|
12483
12499
|
} = t, v = (E) => `${E}mm`, f = () => {
|
|
12484
12500
|
let E = l;
|
|
12485
12501
|
return l ? !d && !u && (E += n) : (E = a, d || (E += n), u || (E += n), (d || u) && (E -= (d ?? 0) + (u ?? 0))), E;
|
|
12486
|
-
},
|
|
12502
|
+
}, h = () => {
|
|
12487
12503
|
let E = c;
|
|
12488
12504
|
return c ? !p && !m && (E += n) : (E = i, p || (E += n), m || (E += n), (p || m) && (E -= (p ?? 0) + (m ?? 0))), E;
|
|
12489
|
-
}, x = f(), S =
|
|
12505
|
+
}, x = f(), S = h(), g = (E) => E !== void 0 ? v(E) : void 0, b = ((E) => Object.fromEntries(
|
|
12490
12506
|
Object.entries(E).filter(([C, w]) => w !== void 0)
|
|
12491
12507
|
))({
|
|
12492
12508
|
backgroundColor: s,
|
|
12493
|
-
width:
|
|
12494
|
-
height:
|
|
12495
|
-
left:
|
|
12496
|
-
right:
|
|
12497
|
-
top:
|
|
12498
|
-
bottom:
|
|
12509
|
+
width: g(x),
|
|
12510
|
+
height: g(S),
|
|
12511
|
+
left: g(d > 0 ? d + n : d),
|
|
12512
|
+
right: g(u > 0 ? u + n : u),
|
|
12513
|
+
top: g(p > 0 ? p + n : p),
|
|
12514
|
+
bottom: g(m > 0 ? m + n : m)
|
|
12499
12515
|
});
|
|
12500
12516
|
return /* @__PURE__ */ k("div", { className: "uhuu-image-container", style: b, ...t.dataUhuu !== void 0 ? { "data-uhuu": t.dataUhuu } : {}, children: /* @__PURE__ */ G(
|
|
12501
12517
|
"div",
|
|
@@ -12776,14 +12792,14 @@ const rm = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, nm = qf, F
|
|
|
12776
12792
|
}, {}), l = e == null || (n = e.compoundVariants) === null || n === void 0 ? void 0 : n.reduce((c, d) => {
|
|
12777
12793
|
let { class: u, className: p, ...m } = d;
|
|
12778
12794
|
return Object.entries(m).every((v) => {
|
|
12779
|
-
let [f,
|
|
12780
|
-
return Array.isArray(
|
|
12795
|
+
let [f, h] = v;
|
|
12796
|
+
return Array.isArray(h) ? h.includes({
|
|
12781
12797
|
...i,
|
|
12782
12798
|
...s
|
|
12783
12799
|
}[f]) : {
|
|
12784
12800
|
...i,
|
|
12785
12801
|
...s
|
|
12786
|
-
}[f] ===
|
|
12802
|
+
}[f] === h;
|
|
12787
12803
|
}) ? [
|
|
12788
12804
|
...c,
|
|
12789
12805
|
u,
|
|
@@ -12938,18 +12954,18 @@ const rm = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, nm = qf, F
|
|
|
12938
12954
|
let o = 0, s = 0, l = 0, c;
|
|
12939
12955
|
const d = a.length;
|
|
12940
12956
|
for (let f = 0; f < d; f++) {
|
|
12941
|
-
const
|
|
12957
|
+
const h = a[f];
|
|
12942
12958
|
if (o === 0 && s === 0) {
|
|
12943
|
-
if (
|
|
12959
|
+
if (h === im) {
|
|
12944
12960
|
i.push(a.slice(l, f)), l = f + 1;
|
|
12945
12961
|
continue;
|
|
12946
12962
|
}
|
|
12947
|
-
if (
|
|
12963
|
+
if (h === "/") {
|
|
12948
12964
|
c = f;
|
|
12949
12965
|
continue;
|
|
12950
12966
|
}
|
|
12951
12967
|
}
|
|
12952
|
-
|
|
12968
|
+
h === "[" ? o++ : h === "]" ? o-- : h === "(" ? s++ : h === ")" && s--;
|
|
12953
12969
|
}
|
|
12954
12970
|
const u = i.length === 0 ? a : a.slice(l);
|
|
12955
12971
|
let p = u, m = !1;
|
|
@@ -13013,9 +13029,9 @@ const rm = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, nm = qf, F
|
|
|
13013
13029
|
l = d + (l.length > 0 ? " " + l : l);
|
|
13014
13030
|
continue;
|
|
13015
13031
|
}
|
|
13016
|
-
let
|
|
13032
|
+
let h = !!f, x = n(h ? v.substring(0, f) : v);
|
|
13017
13033
|
if (!x) {
|
|
13018
|
-
if (!
|
|
13034
|
+
if (!h) {
|
|
13019
13035
|
l = d + (l.length > 0 ? " " + l : l);
|
|
13020
13036
|
continue;
|
|
13021
13037
|
}
|
|
@@ -13023,16 +13039,16 @@ const rm = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, nm = qf, F
|
|
|
13023
13039
|
l = d + (l.length > 0 ? " " + l : l);
|
|
13024
13040
|
continue;
|
|
13025
13041
|
}
|
|
13026
|
-
|
|
13042
|
+
h = !1;
|
|
13027
13043
|
}
|
|
13028
|
-
const S = p.length === 0 ? "" : p.length === 1 ? p[0] : i(p).join(":"),
|
|
13044
|
+
const S = p.length === 0 ? "" : p.length === 1 ? p[0] : i(p).join(":"), g = m ? S + il : S, y = g + x;
|
|
13029
13045
|
if (o.indexOf(y) > -1)
|
|
13030
13046
|
continue;
|
|
13031
13047
|
o.push(y);
|
|
13032
|
-
const b = a(x,
|
|
13048
|
+
const b = a(x, h);
|
|
13033
13049
|
for (let E = 0; E < b.length; ++E) {
|
|
13034
13050
|
const C = b[E];
|
|
13035
|
-
o.push(
|
|
13051
|
+
o.push(g + C);
|
|
13036
13052
|
}
|
|
13037
13053
|
l = d + (l.length > 0 ? " " + l : l);
|
|
13038
13054
|
}
|
|
@@ -13077,7 +13093,7 @@ const rm = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, nm = qf, F
|
|
|
13077
13093
|
const n = Kf.exec(t);
|
|
13078
13094
|
return n ? n[1] ? e(n[1]) : r : !1;
|
|
13079
13095
|
}, Xf = (t) => t === "position" || t === "percentage", Zf = (t) => t === "image" || t === "url", Qf = (t) => t === "length" || t === "size" || t === "bg-size", Jf = (t) => t === "length", Ck = (t) => t === "number", eh = (t) => t === "family-name", th = (t) => t === "number" || t === "weight", rh = (t) => t === "shadow", kk = () => {
|
|
13080
|
-
const t = Pe("color"), e = Pe("font"), r = Pe("text"), n = Pe("font-weight"), a = Pe("tracking"), i = Pe("leading"), o = Pe("breakpoint"), s = Pe("container"), l = Pe("spacing"), c = Pe("radius"), d = Pe("shadow"), u = Pe("inset-shadow"), p = Pe("text-shadow"), m = Pe("drop-shadow"), v = Pe("blur"), f = Pe("perspective"),
|
|
13096
|
+
const t = Pe("color"), e = Pe("font"), r = Pe("text"), n = Pe("font-weight"), a = Pe("tracking"), i = Pe("leading"), o = Pe("breakpoint"), s = Pe("container"), l = Pe("spacing"), c = Pe("radius"), d = Pe("shadow"), u = Pe("inset-shadow"), p = Pe("text-shadow"), m = Pe("drop-shadow"), v = Pe("blur"), f = Pe("perspective"), h = Pe("aspect"), x = Pe("ease"), S = Pe("animate"), g = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], y = () => [
|
|
13081
13097
|
"center",
|
|
13082
13098
|
"top",
|
|
13083
13099
|
"bottom",
|
|
@@ -13151,7 +13167,7 @@ const rm = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, nm = qf, F
|
|
|
13151
13167
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
13152
13168
|
*/
|
|
13153
13169
|
aspect: [{
|
|
13154
|
-
aspect: ["auto", "square", Rt, Q, J,
|
|
13170
|
+
aspect: ["auto", "square", Rt, Q, J, h]
|
|
13155
13171
|
}],
|
|
13156
13172
|
/**
|
|
13157
13173
|
* Container
|
|
@@ -13171,14 +13187,14 @@ const rm = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, nm = qf, F
|
|
|
13171
13187
|
* @see https://tailwindcss.com/docs/break-after
|
|
13172
13188
|
*/
|
|
13173
13189
|
"break-after": [{
|
|
13174
|
-
"break-after":
|
|
13190
|
+
"break-after": g()
|
|
13175
13191
|
}],
|
|
13176
13192
|
/**
|
|
13177
13193
|
* Break Before
|
|
13178
13194
|
* @see https://tailwindcss.com/docs/break-before
|
|
13179
13195
|
*/
|
|
13180
13196
|
"break-before": [{
|
|
13181
|
-
"break-before":
|
|
13197
|
+
"break-before": g()
|
|
13182
13198
|
}],
|
|
13183
13199
|
/**
|
|
13184
13200
|
* Break Inside
|
|
@@ -15792,8 +15808,8 @@ function Ct(t, e = []) {
|
|
|
15792
15808
|
const s = T.createContext(o), l = r.length;
|
|
15793
15809
|
r = [...r, o];
|
|
15794
15810
|
const c = (u) => {
|
|
15795
|
-
const { scope: p, children: m, ...v } = u, f = p?.[t]?.[l] || s,
|
|
15796
|
-
return /* @__PURE__ */ k(f.Provider, { value:
|
|
15811
|
+
const { scope: p, children: m, ...v } = u, f = p?.[t]?.[l] || s, h = T.useMemo(() => v, Object.values(v));
|
|
15812
|
+
return /* @__PURE__ */ k(f.Provider, { value: h, children: m });
|
|
15797
15813
|
};
|
|
15798
15814
|
c.displayName = i + "Provider";
|
|
15799
15815
|
function d(u, p) {
|
|
@@ -15963,36 +15979,36 @@ function jl(t) {
|
|
|
15963
15979
|
e,
|
|
15964
15980
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
15965
15981
|
), o = (f) => {
|
|
15966
|
-
const { scope:
|
|
15967
|
-
return /* @__PURE__ */ k(a, { scope:
|
|
15982
|
+
const { scope: h, children: x } = f, S = Se.useRef(null), g = Se.useRef(/* @__PURE__ */ new Map()).current;
|
|
15983
|
+
return /* @__PURE__ */ k(a, { scope: h, itemMap: g, collectionRef: S, children: x });
|
|
15968
15984
|
};
|
|
15969
15985
|
o.displayName = e;
|
|
15970
15986
|
const s = t + "CollectionSlot", l = /* @__PURE__ */ Mr(s), c = Se.forwardRef(
|
|
15971
|
-
(f,
|
|
15972
|
-
const { scope: x, children: S } = f,
|
|
15987
|
+
(f, h) => {
|
|
15988
|
+
const { scope: x, children: S } = f, g = i(s, x), y = we(h, g.collectionRef);
|
|
15973
15989
|
return /* @__PURE__ */ k(l, { ref: y, children: S });
|
|
15974
15990
|
}
|
|
15975
15991
|
);
|
|
15976
15992
|
c.displayName = s;
|
|
15977
15993
|
const d = t + "CollectionItemSlot", u = "data-radix-collection-item", p = /* @__PURE__ */ Mr(d), m = Se.forwardRef(
|
|
15978
|
-
(f,
|
|
15979
|
-
const { scope: x, children: S, ...
|
|
15980
|
-
return Se.useEffect(() => (E.itemMap.set(y, { ref: y, ...
|
|
15994
|
+
(f, h) => {
|
|
15995
|
+
const { scope: x, children: S, ...g } = f, y = Se.useRef(null), b = we(h, y), E = i(d, x);
|
|
15996
|
+
return Se.useEffect(() => (E.itemMap.set(y, { ref: y, ...g }), () => {
|
|
15981
15997
|
E.itemMap.delete(y);
|
|
15982
15998
|
})), /* @__PURE__ */ k(p, { [u]: "", ref: b, children: S });
|
|
15983
15999
|
}
|
|
15984
16000
|
);
|
|
15985
16001
|
m.displayName = d;
|
|
15986
16002
|
function v(f) {
|
|
15987
|
-
const
|
|
16003
|
+
const h = i(t + "CollectionConsumer", f);
|
|
15988
16004
|
return Se.useCallback(() => {
|
|
15989
|
-
const S =
|
|
16005
|
+
const S = h.collectionRef.current;
|
|
15990
16006
|
if (!S) return [];
|
|
15991
|
-
const
|
|
15992
|
-
return Array.from(
|
|
15993
|
-
(E, C) =>
|
|
16007
|
+
const g = Array.from(S.querySelectorAll(`[${u}]`));
|
|
16008
|
+
return Array.from(h.itemMap.values()).sort(
|
|
16009
|
+
(E, C) => g.indexOf(E.ref.current) - g.indexOf(C.ref.current)
|
|
15994
16010
|
);
|
|
15995
|
-
}, [
|
|
16011
|
+
}, [h.collectionRef, h.itemMap]);
|
|
15996
16012
|
}
|
|
15997
16013
|
return [
|
|
15998
16014
|
{ Provider: o, Slot: c, ItemSlot: m },
|
|
@@ -16034,7 +16050,7 @@ var Bk = "DismissableLayer", ol = "dismissableLayer.update", qk = "dismissableLa
|
|
|
16034
16050
|
onInteractOutside: o,
|
|
16035
16051
|
onDismiss: s,
|
|
16036
16052
|
...l
|
|
16037
|
-
} = t, c = T.useContext(ih), [d, u] = T.useState(null), p = d?.ownerDocument ?? globalThis?.document, [, m] = T.useState({}), v = we(e, (C) => u(C)), f = Array.from(c.layers), [
|
|
16053
|
+
} = t, c = T.useContext(ih), [d, u] = T.useState(null), p = d?.ownerDocument ?? globalThis?.document, [, m] = T.useState({}), v = we(e, (C) => u(C)), f = Array.from(c.layers), [h] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), x = f.indexOf(h), S = d ? f.indexOf(d) : -1, g = c.layersWithOutsidePointerEventsDisabled.size > 0, y = S >= x, b = Vk((C) => {
|
|
16038
16054
|
const w = C.target, O = [...c.branches].some((A) => A.contains(w));
|
|
16039
16055
|
!y || O || (a?.(C), o?.(C), C.defaultPrevented || s?.());
|
|
16040
16056
|
}, p), E = Hk((C) => {
|
|
@@ -16059,7 +16075,7 @@ var Bk = "DismissableLayer", ol = "dismissableLayer.update", qk = "dismissableLa
|
|
|
16059
16075
|
...l,
|
|
16060
16076
|
ref: v,
|
|
16061
16077
|
style: {
|
|
16062
|
-
pointerEvents:
|
|
16078
|
+
pointerEvents: g ? y ? "auto" : "none" : void 0,
|
|
16063
16079
|
...t.style
|
|
16064
16080
|
},
|
|
16065
16081
|
onFocusCapture: de(t.onFocusCapture, E.onFocusCapture),
|
|
@@ -16167,23 +16183,23 @@ var Ls = "focusScope.autoFocusOnMount", js = "focusScope.autoFocusOnUnmount", fm
|
|
|
16167
16183
|
}).current;
|
|
16168
16184
|
T.useEffect(() => {
|
|
16169
16185
|
if (n) {
|
|
16170
|
-
let f = function(
|
|
16186
|
+
let f = function(g) {
|
|
16171
16187
|
if (m.paused || !s) return;
|
|
16172
|
-
const y =
|
|
16188
|
+
const y = g.target;
|
|
16173
16189
|
s.contains(y) ? u.current = y : It(u.current, { select: !0 });
|
|
16174
|
-
},
|
|
16190
|
+
}, h = function(g) {
|
|
16175
16191
|
if (m.paused || !s) return;
|
|
16176
|
-
const y =
|
|
16192
|
+
const y = g.relatedTarget;
|
|
16177
16193
|
y !== null && (s.contains(y) || It(u.current, { select: !0 }));
|
|
16178
|
-
}, x = function(
|
|
16194
|
+
}, x = function(g) {
|
|
16179
16195
|
if (document.activeElement === document.body)
|
|
16180
|
-
for (const b of
|
|
16196
|
+
for (const b of g)
|
|
16181
16197
|
b.removedNodes.length > 0 && It(s);
|
|
16182
16198
|
};
|
|
16183
|
-
document.addEventListener("focusin", f), document.addEventListener("focusout",
|
|
16199
|
+
document.addEventListener("focusin", f), document.addEventListener("focusout", h);
|
|
16184
16200
|
const S = new MutationObserver(x);
|
|
16185
16201
|
return s && S.observe(s, { childList: !0, subtree: !0 }), () => {
|
|
16186
|
-
document.removeEventListener("focusin", f), document.removeEventListener("focusout",
|
|
16202
|
+
document.removeEventListener("focusin", f), document.removeEventListener("focusout", h), S.disconnect();
|
|
16187
16203
|
};
|
|
16188
16204
|
}
|
|
16189
16205
|
}, [n, s, m.paused]), T.useEffect(() => {
|
|
@@ -16205,10 +16221,10 @@ var Ls = "focusScope.autoFocusOnMount", js = "focusScope.autoFocusOnUnmount", fm
|
|
|
16205
16221
|
const v = T.useCallback(
|
|
16206
16222
|
(f) => {
|
|
16207
16223
|
if (!r && !n || m.paused) return;
|
|
16208
|
-
const
|
|
16209
|
-
if (
|
|
16210
|
-
const S = f.currentTarget, [
|
|
16211
|
-
|
|
16224
|
+
const h = f.key === "Tab" && !f.altKey && !f.ctrlKey && !f.metaKey, x = document.activeElement;
|
|
16225
|
+
if (h && x) {
|
|
16226
|
+
const S = f.currentTarget, [g, y] = Yk(S);
|
|
16227
|
+
g && y ? !f.shiftKey && x === y ? (f.preventDefault(), r && It(g, { select: !0 })) : f.shiftKey && x === g && (f.preventDefault(), r && It(y, { select: !0 })) : x === S && f.preventDefault();
|
|
16212
16228
|
}
|
|
16213
16229
|
},
|
|
16214
16230
|
[r, n, m.paused]
|
|
@@ -16455,8 +16471,8 @@ async function mE(t, e) {
|
|
|
16455
16471
|
elementContext: u = "floating",
|
|
16456
16472
|
altBoundary: p = !1,
|
|
16457
16473
|
padding: m = 0
|
|
16458
|
-
} = xt(e, t), v = ch(m),
|
|
16459
|
-
element: (r = await (i.isElement == null ? void 0 : i.isElement(
|
|
16474
|
+
} = xt(e, t), v = ch(m), h = s[p ? u === "floating" ? "reference" : "floating" : u], x = $n(await i.getClippingRect({
|
|
16475
|
+
element: (r = await (i.isElement == null ? void 0 : i.isElement(h))) == null || r ? h : h.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(s.floating)),
|
|
16460
16476
|
boundary: c,
|
|
16461
16477
|
rootBoundary: d,
|
|
16462
16478
|
strategy: l
|
|
@@ -16465,7 +16481,7 @@ async function mE(t, e) {
|
|
|
16465
16481
|
y: a,
|
|
16466
16482
|
width: o.floating.width,
|
|
16467
16483
|
height: o.floating.height
|
|
16468
|
-
} : o.reference,
|
|
16484
|
+
} : o.reference, g = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(s.floating)), y = await (i.isElement == null ? void 0 : i.isElement(g)) ? await (i.getScale == null ? void 0 : i.getScale(g)) || {
|
|
16469
16485
|
x: 1,
|
|
16470
16486
|
y: 1
|
|
16471
16487
|
} : {
|
|
@@ -16474,7 +16490,7 @@ async function mE(t, e) {
|
|
|
16474
16490
|
}, b = $n(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
16475
16491
|
elements: s,
|
|
16476
16492
|
rect: S,
|
|
16477
|
-
offsetParent:
|
|
16493
|
+
offsetParent: g,
|
|
16478
16494
|
strategy: l
|
|
16479
16495
|
}) : S);
|
|
16480
16496
|
return {
|
|
@@ -16499,13 +16515,13 @@ const fE = async (t, e, r) => {
|
|
|
16499
16515
|
x: d,
|
|
16500
16516
|
y: u
|
|
16501
16517
|
} = Sm(c, n, l), p = n, m = {}, v = 0;
|
|
16502
|
-
for (let
|
|
16518
|
+
for (let h = 0; h < s.length; h++) {
|
|
16503
16519
|
var f;
|
|
16504
16520
|
const {
|
|
16505
16521
|
name: x,
|
|
16506
16522
|
fn: S
|
|
16507
|
-
} = s[
|
|
16508
|
-
x:
|
|
16523
|
+
} = s[h], {
|
|
16524
|
+
x: g,
|
|
16509
16525
|
y,
|
|
16510
16526
|
data: b,
|
|
16511
16527
|
reset: E
|
|
@@ -16526,7 +16542,7 @@ const fE = async (t, e, r) => {
|
|
|
16526
16542
|
floating: e
|
|
16527
16543
|
}
|
|
16528
16544
|
});
|
|
16529
|
-
d =
|
|
16545
|
+
d = g ?? d, u = y ?? u, m = {
|
|
16530
16546
|
...m,
|
|
16531
16547
|
[x]: {
|
|
16532
16548
|
...m[x],
|
|
@@ -16539,7 +16555,7 @@ const fE = async (t, e, r) => {
|
|
|
16539
16555
|
}) : E.rects), {
|
|
16540
16556
|
x: d,
|
|
16541
16557
|
y: u
|
|
16542
|
-
} = Sm(c, p, l)),
|
|
16558
|
+
} = Sm(c, p, l)), h = -1);
|
|
16543
16559
|
}
|
|
16544
16560
|
return {
|
|
16545
16561
|
x: d,
|
|
@@ -16569,9 +16585,9 @@ const fE = async (t, e, r) => {
|
|
|
16569
16585
|
const u = ch(d), p = {
|
|
16570
16586
|
x: r,
|
|
16571
16587
|
y: n
|
|
16572
|
-
}, m = Gl(a), v = $l(m), f = await o.getDimensions(c),
|
|
16573
|
-
let C = E ? E[
|
|
16574
|
-
(!C || !await (o.isElement == null ? void 0 : o.isElement(E))) && (C = s.floating[
|
|
16588
|
+
}, m = Gl(a), v = $l(m), f = await o.getDimensions(c), h = m === "y", x = h ? "top" : "left", S = h ? "bottom" : "right", g = h ? "clientHeight" : "clientWidth", y = i.reference[v] + i.reference[m] - p[m] - i.floating[v], b = p[m] - i.reference[m], E = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(c));
|
|
16589
|
+
let C = E ? E[g] : 0;
|
|
16590
|
+
(!C || !await (o.isElement == null ? void 0 : o.isElement(E))) && (C = s.floating[g] || i.floating[v]);
|
|
16575
16591
|
const w = y / 2 - b / 2, O = C / 2 - f[v] / 2 - 1, A = zt(u[x], O), R = zt(u[S], O), P = A, N = C - f[v] - R, z = C / 2 - f[v] / 2 + w, U = sl(P, z, N), L = !l.arrow && vr(a) != null && z !== U && i.reference[v] / 2 - (z < P ? A : R) - f[v] / 2 < 0, W = L ? z < P ? z - P : z - N : 0;
|
|
16576
16592
|
return {
|
|
16577
16593
|
[m]: p[m] + W,
|
|
@@ -16605,13 +16621,13 @@ const fE = async (t, e, r) => {
|
|
|
16605
16621
|
fallbackStrategy: m = "bestFit",
|
|
16606
16622
|
fallbackAxisSideDirection: v = "none",
|
|
16607
16623
|
flipAlignment: f = !0,
|
|
16608
|
-
...
|
|
16624
|
+
...h
|
|
16609
16625
|
} = xt(t, e);
|
|
16610
16626
|
if ((r = i.arrow) != null && r.alignmentOffset)
|
|
16611
16627
|
return {};
|
|
16612
|
-
const x = wt(a), S = dt(s),
|
|
16628
|
+
const x = wt(a), S = dt(s), g = wt(s) === s, y = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), b = p || (g || !f ? [Fn(s)] : sE(s)), E = v !== "none";
|
|
16613
16629
|
!p && E && b.push(...uE(s, f, v, y));
|
|
16614
|
-
const C = [s, ...b], w = await l.detectOverflow(e,
|
|
16630
|
+
const C = [s, ...b], w = await l.detectOverflow(e, h), O = [];
|
|
16615
16631
|
let A = ((n = i.flip) == null ? void 0 : n.overflows) || [];
|
|
16616
16632
|
if (d && O.push(w[x]), u) {
|
|
16617
16633
|
const z = oE(a, o, y);
|
|
@@ -16787,11 +16803,11 @@ const bE = function(t) {
|
|
|
16787
16803
|
fn: (x) => {
|
|
16788
16804
|
let {
|
|
16789
16805
|
x: S,
|
|
16790
|
-
y:
|
|
16806
|
+
y: g
|
|
16791
16807
|
} = x;
|
|
16792
16808
|
return {
|
|
16793
16809
|
x: S,
|
|
16794
|
-
y:
|
|
16810
|
+
y: g
|
|
16795
16811
|
};
|
|
16796
16812
|
}
|
|
16797
16813
|
},
|
|
@@ -16802,23 +16818,23 @@ const bE = function(t) {
|
|
|
16802
16818
|
}, u = await i.detectOverflow(e, c), p = dt(wt(a)), m = Fl(p);
|
|
16803
16819
|
let v = d[m], f = d[p];
|
|
16804
16820
|
if (o) {
|
|
16805
|
-
const x = m === "y" ? "top" : "left", S = m === "y" ? "bottom" : "right",
|
|
16806
|
-
v = sl(
|
|
16821
|
+
const x = m === "y" ? "top" : "left", S = m === "y" ? "bottom" : "right", g = v + u[x], y = v - u[S];
|
|
16822
|
+
v = sl(g, v, y);
|
|
16807
16823
|
}
|
|
16808
16824
|
if (s) {
|
|
16809
|
-
const x = p === "y" ? "top" : "left", S = p === "y" ? "bottom" : "right",
|
|
16810
|
-
f = sl(
|
|
16825
|
+
const x = p === "y" ? "top" : "left", S = p === "y" ? "bottom" : "right", g = f + u[x], y = f - u[S];
|
|
16826
|
+
f = sl(g, f, y);
|
|
16811
16827
|
}
|
|
16812
|
-
const
|
|
16828
|
+
const h = l.fn({
|
|
16813
16829
|
...e,
|
|
16814
16830
|
[m]: v,
|
|
16815
16831
|
[p]: f
|
|
16816
16832
|
});
|
|
16817
16833
|
return {
|
|
16818
|
-
...
|
|
16834
|
+
...h,
|
|
16819
16835
|
data: {
|
|
16820
|
-
x:
|
|
16821
|
-
y:
|
|
16836
|
+
x: h.x - r,
|
|
16837
|
+
y: h.y - n,
|
|
16822
16838
|
enabled: {
|
|
16823
16839
|
[m]: o,
|
|
16824
16840
|
[p]: s
|
|
@@ -16846,7 +16862,7 @@ const bE = function(t) {
|
|
|
16846
16862
|
y: n
|
|
16847
16863
|
}, u = dt(a), p = Fl(u);
|
|
16848
16864
|
let m = d[p], v = d[u];
|
|
16849
|
-
const f = xt(s, e),
|
|
16865
|
+
const f = xt(s, e), h = typeof f == "number" ? {
|
|
16850
16866
|
mainAxis: f,
|
|
16851
16867
|
crossAxis: 0
|
|
16852
16868
|
} : {
|
|
@@ -16855,12 +16871,12 @@ const bE = function(t) {
|
|
|
16855
16871
|
...f
|
|
16856
16872
|
};
|
|
16857
16873
|
if (l) {
|
|
16858
|
-
const
|
|
16874
|
+
const g = p === "y" ? "height" : "width", y = i.reference[p] - i.floating[g] + h.mainAxis, b = i.reference[p] + i.reference[g] - h.mainAxis;
|
|
16859
16875
|
m < y ? m = y : m > b && (m = b);
|
|
16860
16876
|
}
|
|
16861
16877
|
if (c) {
|
|
16862
16878
|
var x, S;
|
|
16863
|
-
const
|
|
16879
|
+
const g = p === "y" ? "width" : "height", y = dh.has(wt(a)), b = i.reference[u] - i.floating[g] + (y && ((x = o.offset) == null ? void 0 : x[u]) || 0) + (y ? 0 : h.crossAxis), E = i.reference[u] + i.reference[g] + (y ? 0 : ((S = o.offset) == null ? void 0 : S[u]) || 0) - (y ? h.crossAxis : 0);
|
|
16864
16880
|
v < b ? v = b : v > E && (v = E);
|
|
16865
16881
|
}
|
|
16866
16882
|
return {
|
|
@@ -16888,11 +16904,11 @@ const bE = function(t) {
|
|
|
16888
16904
|
width: v,
|
|
16889
16905
|
height: f
|
|
16890
16906
|
} = i.floating;
|
|
16891
|
-
let
|
|
16892
|
-
u === "top" || u === "bottom" ? (
|
|
16893
|
-
const S = f - d.top - d.bottom,
|
|
16907
|
+
let h, x;
|
|
16908
|
+
u === "top" || u === "bottom" ? (h = u, x = p === (await (o.isRTL == null ? void 0 : o.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (x = u, h = p === "end" ? "top" : "bottom");
|
|
16909
|
+
const S = f - d.top - d.bottom, g = v - d.left - d.right, y = zt(f - d[h], S), b = zt(v - d[x], g), E = !e.middlewareData.shift;
|
|
16894
16910
|
let C = y, w = b;
|
|
16895
|
-
if ((r = e.middlewareData.shift) != null && r.enabled.x && (w =
|
|
16911
|
+
if ((r = e.middlewareData.shift) != null && r.enabled.x && (w = g), (n = e.middlewareData.shift) != null && n.enabled.y && (C = S), E && !p) {
|
|
16896
16912
|
const A = Ke(d.left, 0), R = Ke(d.right, 0), P = Ke(d.top, 0), N = Ke(d.bottom, 0);
|
|
16897
16913
|
m ? w = v - 2 * (A !== 0 || R !== 0 ? A + R : Ke(d.left, d.right)) : C = f - 2 * (P !== 0 || N !== 0 ? P + N : Ke(d.top, d.bottom));
|
|
16898
16914
|
}
|
|
@@ -17074,8 +17090,8 @@ function Vt(t, e, r, n) {
|
|
|
17074
17090
|
const p = Ye(i), m = n && nt(n) ? Ye(n) : n;
|
|
17075
17091
|
let v = p, f = cl(v);
|
|
17076
17092
|
for (; f && n && m !== v; ) {
|
|
17077
|
-
const
|
|
17078
|
-
l *=
|
|
17093
|
+
const h = sr(f), x = f.getBoundingClientRect(), S = at(f), g = x.left + (f.clientLeft + parseFloat(S.paddingLeft)) * h.x, y = x.top + (f.clientTop + parseFloat(S.paddingTop)) * h.y;
|
|
17094
|
+
l *= h.x, c *= h.y, d *= h.x, u *= h.y, l += g, c += y, v = Ye(f), f = cl(v);
|
|
17079
17095
|
}
|
|
17080
17096
|
}
|
|
17081
17097
|
return $n({
|
|
@@ -17332,8 +17348,8 @@ function UE(t, e) {
|
|
|
17332
17348
|
} = c;
|
|
17333
17349
|
if (s || e(), !p || !m)
|
|
17334
17350
|
return;
|
|
17335
|
-
const v = Cn(u), f = Cn(a.clientWidth - (d + p)),
|
|
17336
|
-
rootMargin: -v + "px " + -f + "px " + -
|
|
17351
|
+
const v = Cn(u), f = Cn(a.clientWidth - (d + p)), h = Cn(a.clientHeight - (u + m)), x = Cn(d), g = {
|
|
17352
|
+
rootMargin: -v + "px " + -f + "px " + -h + "px " + -x + "px",
|
|
17337
17353
|
threshold: Ke(0, zt(1, l)) || 1
|
|
17338
17354
|
};
|
|
17339
17355
|
let y = !0;
|
|
@@ -17350,12 +17366,12 @@ function UE(t, e) {
|
|
|
17350
17366
|
}
|
|
17351
17367
|
try {
|
|
17352
17368
|
r = new IntersectionObserver(b, {
|
|
17353
|
-
...
|
|
17369
|
+
...g,
|
|
17354
17370
|
// Handle <iframe>s
|
|
17355
17371
|
root: a.ownerDocument
|
|
17356
17372
|
});
|
|
17357
17373
|
} catch {
|
|
17358
|
-
r = new IntersectionObserver(b,
|
|
17374
|
+
r = new IntersectionObserver(b, g);
|
|
17359
17375
|
}
|
|
17360
17376
|
r.observe(t);
|
|
17361
17377
|
}
|
|
@@ -17380,15 +17396,15 @@ function KE(t, e, r, n) {
|
|
|
17380
17396
|
o && (m = new ResizeObserver((x) => {
|
|
17381
17397
|
let [S] = x;
|
|
17382
17398
|
S && S.target === c && m && (m.unobserve(e), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
|
|
17383
|
-
var
|
|
17384
|
-
(
|
|
17399
|
+
var g;
|
|
17400
|
+
(g = m) == null || g.observe(e);
|
|
17385
17401
|
})), r();
|
|
17386
17402
|
}), c && !l && m.observe(c), m.observe(e));
|
|
17387
17403
|
let v, f = l ? Vt(t) : null;
|
|
17388
|
-
l &&
|
|
17389
|
-
function
|
|
17404
|
+
l && h();
|
|
17405
|
+
function h() {
|
|
17390
17406
|
const x = Vt(t);
|
|
17391
|
-
f && !yh(f, x) && r(), f = x, v = requestAnimationFrame(
|
|
17407
|
+
f && !yh(f, x) && r(), f = x, v = requestAnimationFrame(h);
|
|
17392
17408
|
}
|
|
17393
17409
|
return r(), () => {
|
|
17394
17410
|
var x;
|
|
@@ -17478,11 +17494,11 @@ function aT(t) {
|
|
|
17478
17494
|
isPositioned: !1
|
|
17479
17495
|
}), [p, m] = T.useState(n);
|
|
17480
17496
|
Gn(p, n) || m(n);
|
|
17481
|
-
const [v, f] = T.useState(null), [
|
|
17497
|
+
const [v, f] = T.useState(null), [h, x] = T.useState(null), S = T.useCallback((q) => {
|
|
17482
17498
|
q !== E.current && (E.current = q, f(q));
|
|
17483
|
-
}, []),
|
|
17499
|
+
}, []), g = T.useCallback((q) => {
|
|
17484
17500
|
q !== C.current && (C.current = q, x(q));
|
|
17485
|
-
}, []), y = i || v, b = o ||
|
|
17501
|
+
}, []), y = i || v, b = o || h, E = T.useRef(null), C = T.useRef(null), w = T.useRef(d), O = l != null, A = Bs(l), R = Bs(a), P = Bs(c), N = T.useCallback(() => {
|
|
17486
17502
|
if (!E.current || !C.current)
|
|
17487
17503
|
return;
|
|
17488
17504
|
const q = {
|
|
@@ -17524,8 +17540,8 @@ function aT(t) {
|
|
|
17524
17540
|
reference: E,
|
|
17525
17541
|
floating: C,
|
|
17526
17542
|
setReference: S,
|
|
17527
|
-
setFloating:
|
|
17528
|
-
}), [S,
|
|
17543
|
+
setFloating: g
|
|
17544
|
+
}), [S, g]), L = T.useMemo(() => ({
|
|
17529
17545
|
reference: y,
|
|
17530
17546
|
floating: b
|
|
17531
17547
|
}), [y, b]), W = T.useMemo(() => {
|
|
@@ -17671,7 +17687,7 @@ var Xl = "PopperContent", [gT, vT] = xh(Xl), Ah = T.forwardRef(
|
|
|
17671
17687
|
updatePositionStrategy: m = "optimized",
|
|
17672
17688
|
onPlaced: v,
|
|
17673
17689
|
...f
|
|
17674
|
-
} = t,
|
|
17690
|
+
} = t, h = Ch(Xl, r), [x, S] = T.useState(null), g = we(e, (K) => S(K)), [y, b] = T.useState(null), E = Kl(y), C = E?.width ?? 0, w = E?.height ?? 0, O = n + (i !== "center" ? "-" + i : ""), A = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, R = Array.isArray(c) ? c : [c], P = R.length > 0, N = {
|
|
17675
17691
|
padding: A,
|
|
17676
17692
|
boundary: R.filter(bT),
|
|
17677
17693
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -17684,7 +17700,7 @@ var Xl = "PopperContent", [gT, vT] = xh(Xl), Ah = T.forwardRef(
|
|
|
17684
17700
|
animationFrame: m === "always"
|
|
17685
17701
|
}),
|
|
17686
17702
|
elements: {
|
|
17687
|
-
reference:
|
|
17703
|
+
reference: h.anchor
|
|
17688
17704
|
},
|
|
17689
17705
|
middleware: [
|
|
17690
17706
|
oT({ mainAxis: a + w, alignmentAxis: o }),
|
|
@@ -17752,7 +17768,7 @@ var Xl = "PopperContent", [gT, vT] = xh(Xl), Ah = T.forwardRef(
|
|
|
17752
17768
|
"data-side": _,
|
|
17753
17769
|
"data-align": B,
|
|
17754
17770
|
...f,
|
|
17755
|
-
ref:
|
|
17771
|
+
ref: g,
|
|
17756
17772
|
style: {
|
|
17757
17773
|
...f.style,
|
|
17758
17774
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
@@ -17879,9 +17895,9 @@ function AT(t) {
|
|
|
17879
17895
|
const d = e.ownerDocument.defaultView ?? window, u = (m) => {
|
|
17880
17896
|
const f = kn(n.current).includes(CSS.escape(m.animationName));
|
|
17881
17897
|
if (m.target === e && f && (l("ANIMATION_END"), !a.current)) {
|
|
17882
|
-
const
|
|
17898
|
+
const h = e.style.animationFillMode;
|
|
17883
17899
|
e.style.animationFillMode = "forwards", c = d.setTimeout(() => {
|
|
17884
|
-
e.style.animationFillMode === "forwards" && (e.style.animationFillMode =
|
|
17900
|
+
e.style.animationFillMode === "forwards" && (e.style.animationFillMode = h);
|
|
17885
17901
|
});
|
|
17886
17902
|
}
|
|
17887
17903
|
}, p = (m) => {
|
|
@@ -17925,17 +17941,17 @@ var MT = T.forwardRef((t, e) => {
|
|
|
17925
17941
|
onEntryFocus: c,
|
|
17926
17942
|
preventScrollOnEntryFocus: d = !1,
|
|
17927
17943
|
...u
|
|
17928
|
-
} = t, p = T.useRef(null), m = we(e, p), v = Wl(i), [f,
|
|
17944
|
+
} = t, p = T.useRef(null), m = we(e, p), v = Wl(i), [f, h] = Vr({
|
|
17929
17945
|
prop: o,
|
|
17930
17946
|
defaultProp: s ?? null,
|
|
17931
17947
|
onChange: l,
|
|
17932
17948
|
caller: Ur
|
|
17933
|
-
}), [x, S] = T.useState(!1),
|
|
17949
|
+
}), [x, S] = T.useState(!1), g = St(c), y = Ph(r), b = T.useRef(!1), [E, C] = T.useState(0);
|
|
17934
17950
|
return T.useEffect(() => {
|
|
17935
17951
|
const w = p.current;
|
|
17936
17952
|
if (w)
|
|
17937
|
-
return w.addEventListener(qs,
|
|
17938
|
-
}, [
|
|
17953
|
+
return w.addEventListener(qs, g), () => w.removeEventListener(qs, g);
|
|
17954
|
+
}, [g]), /* @__PURE__ */ k(
|
|
17939
17955
|
IT,
|
|
17940
17956
|
{
|
|
17941
17957
|
scope: r,
|
|
@@ -17944,8 +17960,8 @@ var MT = T.forwardRef((t, e) => {
|
|
|
17944
17960
|
loop: a,
|
|
17945
17961
|
currentTabStopId: f,
|
|
17946
17962
|
onItemFocus: T.useCallback(
|
|
17947
|
-
(w) =>
|
|
17948
|
-
[
|
|
17963
|
+
(w) => h(w),
|
|
17964
|
+
[h]
|
|
17949
17965
|
),
|
|
17950
17966
|
onItemShiftTab: T.useCallback(() => S(!0), []),
|
|
17951
17967
|
onFocusableItemAdd: T.useCallback(
|
|
@@ -18012,28 +18028,28 @@ var MT = T.forwardRef((t, e) => {
|
|
|
18012
18028
|
"data-orientation": d.orientation,
|
|
18013
18029
|
...s,
|
|
18014
18030
|
ref: e,
|
|
18015
|
-
onMouseDown: de(t.onMouseDown, (
|
|
18016
|
-
n ? d.onItemFocus(c) :
|
|
18031
|
+
onMouseDown: de(t.onMouseDown, (h) => {
|
|
18032
|
+
n ? d.onItemFocus(c) : h.preventDefault();
|
|
18017
18033
|
}),
|
|
18018
18034
|
onFocus: de(t.onFocus, () => d.onItemFocus(c)),
|
|
18019
|
-
onKeyDown: de(t.onKeyDown, (
|
|
18020
|
-
if (
|
|
18035
|
+
onKeyDown: de(t.onKeyDown, (h) => {
|
|
18036
|
+
if (h.key === "Tab" && h.shiftKey) {
|
|
18021
18037
|
d.onItemShiftTab();
|
|
18022
18038
|
return;
|
|
18023
18039
|
}
|
|
18024
|
-
if (
|
|
18025
|
-
const x = LT(
|
|
18040
|
+
if (h.target !== h.currentTarget) return;
|
|
18041
|
+
const x = LT(h, d.orientation, d.dir);
|
|
18026
18042
|
if (x !== void 0) {
|
|
18027
|
-
if (
|
|
18028
|
-
|
|
18029
|
-
let
|
|
18030
|
-
if (x === "last")
|
|
18043
|
+
if (h.metaKey || h.ctrlKey || h.altKey || h.shiftKey) return;
|
|
18044
|
+
h.preventDefault();
|
|
18045
|
+
let g = p().filter((y) => y.focusable).map((y) => y.ref.current);
|
|
18046
|
+
if (x === "last") g.reverse();
|
|
18031
18047
|
else if (x === "prev" || x === "next") {
|
|
18032
|
-
x === "prev" &&
|
|
18033
|
-
const y =
|
|
18034
|
-
|
|
18048
|
+
x === "prev" && g.reverse();
|
|
18049
|
+
const y = g.indexOf(h.currentTarget);
|
|
18050
|
+
g = d.loop ? jT(g, y + 1) : g.slice(y + 1);
|
|
18035
18051
|
}
|
|
18036
|
-
setTimeout(() => zh(
|
|
18052
|
+
setTimeout(() => zh(g));
|
|
18037
18053
|
}
|
|
18038
18054
|
}),
|
|
18039
18055
|
children: typeof o == "function" ? o({ isCurrentTabStop: u, hasTabStop: f != null }) : o
|
|
@@ -18099,8 +18115,8 @@ var WT = Nh, BT = Dh, qT = function(t) {
|
|
|
18099
18115
|
d(p);
|
|
18100
18116
|
else
|
|
18101
18117
|
try {
|
|
18102
|
-
var m = p.getAttribute(n), v = m !== null && m !== "false", f = (tr.get(p) || 0) + 1,
|
|
18103
|
-
tr.set(p, f), i.set(p,
|
|
18118
|
+
var m = p.getAttribute(n), v = m !== null && m !== "false", f = (tr.get(p) || 0) + 1, h = (i.get(p) || 0) + 1;
|
|
18119
|
+
tr.set(p, f), i.set(p, h), o.push(p), f === 1 && v && En.set(p, !0), h === 1 && p.setAttribute(r, "true"), v || p.setAttribute(n, "true");
|
|
18104
18120
|
} catch (x) {
|
|
18105
18121
|
console.error("aria-hidden: cannot operate on ", p, x);
|
|
18106
18122
|
}
|
|
@@ -18267,11 +18283,11 @@ var qh = QT(), Gs = function() {
|
|
|
18267
18283
|
onScrollCapture: Gs,
|
|
18268
18284
|
onWheelCapture: Gs,
|
|
18269
18285
|
onTouchMoveCapture: Gs
|
|
18270
|
-
}), a = n[0], i = n[1], o = t.forwardProps, s = t.children, l = t.className, c = t.removeScrollBar, d = t.enabled, u = t.shards, p = t.sideCar, m = t.noRelative, v = t.noIsolation, f = t.inert,
|
|
18286
|
+
}), a = n[0], i = n[1], o = t.forwardProps, s = t.children, l = t.className, c = t.removeScrollBar, d = t.enabled, u = t.shards, p = t.sideCar, m = t.noRelative, v = t.noIsolation, f = t.inert, h = t.allowPinchZoom, x = t.as, S = x === void 0 ? "div" : x, g = t.gapMode, y = Wh(t, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), b = p, E = YT([r, e]), C = ct(ct({}, y), a);
|
|
18271
18287
|
return T.createElement(
|
|
18272
18288
|
T.Fragment,
|
|
18273
18289
|
null,
|
|
18274
|
-
d && T.createElement(b, { sideCar: qh, removeScrollBar: c, shards: u, noRelative: m, noIsolation: v, inert: f, setCallbacks: i, allowPinchZoom: !!
|
|
18290
|
+
d && T.createElement(b, { sideCar: qh, removeScrollBar: c, shards: u, noRelative: m, noIsolation: v, inert: f, setCallbacks: i, allowPinchZoom: !!h, lockRef: r, gapMode: g }),
|
|
18275
18291
|
o ? T.cloneElement(T.Children.only(s), ct(ct({}, C), { ref: E })) : T.createElement(S, ct({}, C, { className: l, ref: E }), s)
|
|
18276
18292
|
);
|
|
18277
18293
|
});
|
|
@@ -18474,7 +18490,7 @@ var rr = ul ? { passive: !1 } : !1, mA = function(t) {
|
|
|
18474
18490
|
do {
|
|
18475
18491
|
if (!s)
|
|
18476
18492
|
break;
|
|
18477
|
-
var m = Vh(t, s), v = m[0], f = m[1],
|
|
18493
|
+
var m = Vh(t, s), v = m[0], f = m[1], h = m[2], x = f - h - i * v;
|
|
18478
18494
|
(v || x) && Gh(t, s) && (u += x, p += v);
|
|
18479
18495
|
var S = s.parentNode;
|
|
18480
18496
|
s = S && S.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? S.host : S;
|
|
@@ -18506,19 +18522,19 @@ function CA(t) {
|
|
|
18506
18522
|
if (t.inert) {
|
|
18507
18523
|
document.body.classList.add("block-interactivity-".concat(a));
|
|
18508
18524
|
var f = GT([t.lockRef.current], (t.shards || []).map(Nm), !0).filter(Boolean);
|
|
18509
|
-
return f.forEach(function(
|
|
18510
|
-
return
|
|
18525
|
+
return f.forEach(function(h) {
|
|
18526
|
+
return h.classList.add("allow-interactivity-".concat(a));
|
|
18511
18527
|
}), function() {
|
|
18512
|
-
document.body.classList.remove("block-interactivity-".concat(a)), f.forEach(function(
|
|
18513
|
-
return
|
|
18528
|
+
document.body.classList.remove("block-interactivity-".concat(a)), f.forEach(function(h) {
|
|
18529
|
+
return h.classList.remove("allow-interactivity-".concat(a));
|
|
18514
18530
|
});
|
|
18515
18531
|
};
|
|
18516
18532
|
}
|
|
18517
18533
|
}, [t.inert, t.lockRef.current, t.shards]);
|
|
18518
|
-
var s = T.useCallback(function(f,
|
|
18534
|
+
var s = T.useCallback(function(f, h) {
|
|
18519
18535
|
if ("touches" in f && f.touches.length === 2 || f.type === "wheel" && f.ctrlKey)
|
|
18520
18536
|
return !o.current.allowPinchZoom;
|
|
18521
|
-
var x = On(f), S = r.current,
|
|
18537
|
+
var x = On(f), S = r.current, g = "deltaX" in f ? f.deltaX : S[0] - x[0], y = "deltaY" in f ? f.deltaY : S[1] - x[1], b, E = f.target, C = Math.abs(g) > Math.abs(y) ? "h" : "v";
|
|
18522
18538
|
if ("touches" in f && C === "h" && E.type === "range")
|
|
18523
18539
|
return !1;
|
|
18524
18540
|
var w = window.getSelection(), O = w && w.anchorNode, A = O ? O === E || O.contains(E) : !1;
|
|
@@ -18529,32 +18545,32 @@ function CA(t) {
|
|
|
18529
18545
|
return !0;
|
|
18530
18546
|
if (R ? b = C : (b = C === "v" ? "h" : "v", R = Pm(C, E)), !R)
|
|
18531
18547
|
return !1;
|
|
18532
|
-
if (!n.current && "changedTouches" in f && (
|
|
18548
|
+
if (!n.current && "changedTouches" in f && (g || y) && (n.current = b), !b)
|
|
18533
18549
|
return !0;
|
|
18534
18550
|
var P = n.current || b;
|
|
18535
|
-
return bA(P,
|
|
18551
|
+
return bA(P, h, f, P === "h" ? g : y);
|
|
18536
18552
|
}, []), l = T.useCallback(function(f) {
|
|
18537
|
-
var
|
|
18553
|
+
var h = f;
|
|
18538
18554
|
if (!(!nr.length || nr[nr.length - 1] !== i)) {
|
|
18539
|
-
var x = "deltaY" in
|
|
18540
|
-
return b.name ===
|
|
18555
|
+
var x = "deltaY" in h ? Im(h) : On(h), S = e.current.filter(function(b) {
|
|
18556
|
+
return b.name === h.type && (b.target === h.target || h.target === b.shadowParent) && SA(b.delta, x);
|
|
18541
18557
|
})[0];
|
|
18542
18558
|
if (S && S.should) {
|
|
18543
|
-
|
|
18559
|
+
h.cancelable && h.preventDefault();
|
|
18544
18560
|
return;
|
|
18545
18561
|
}
|
|
18546
18562
|
if (!S) {
|
|
18547
|
-
var
|
|
18548
|
-
return b.contains(
|
|
18549
|
-
}), y =
|
|
18550
|
-
y &&
|
|
18563
|
+
var g = (o.current.shards || []).map(Nm).filter(Boolean).filter(function(b) {
|
|
18564
|
+
return b.contains(h.target);
|
|
18565
|
+
}), y = g.length > 0 ? s(h, g[0]) : !o.current.noIsolation;
|
|
18566
|
+
y && h.cancelable && h.preventDefault();
|
|
18551
18567
|
}
|
|
18552
18568
|
}
|
|
18553
|
-
}, []), c = T.useCallback(function(f,
|
|
18554
|
-
var
|
|
18555
|
-
e.current.push(
|
|
18569
|
+
}, []), c = T.useCallback(function(f, h, x, S) {
|
|
18570
|
+
var g = { name: f, delta: h, target: x, should: S, shadowParent: kA(x) };
|
|
18571
|
+
e.current.push(g), setTimeout(function() {
|
|
18556
18572
|
e.current = e.current.filter(function(y) {
|
|
18557
|
-
return y !==
|
|
18573
|
+
return y !== g;
|
|
18558
18574
|
});
|
|
18559
18575
|
}, 1);
|
|
18560
18576
|
}, []), d = T.useCallback(function(f) {
|
|
@@ -18707,7 +18723,7 @@ var Je = "MenuContent", [zA, tc] = Xt(Je), Qh = T.forwardRef(
|
|
|
18707
18723
|
onDismiss: m,
|
|
18708
18724
|
disableOutsideScroll: v,
|
|
18709
18725
|
...f
|
|
18710
|
-
} = t,
|
|
18726
|
+
} = t, h = Zt(Je, r), x = Yr(Je, r), S = pa(r), g = Kh(r), y = RA(r), [b, E] = T.useState(null), C = T.useRef(null), w = we(e, C, h.onContentChange), O = T.useRef(0), A = T.useRef(""), R = T.useRef(0), P = T.useRef(null), N = T.useRef("right"), z = T.useRef(0), U = v ? Ql : T.Fragment, L = v ? { as: WA, allowPinchZoom: !0 } : void 0, W = (_) => {
|
|
18711
18727
|
const B = A.current + _, Y = y().filter((K) => !K.disabled), Z = document.activeElement, j = Y.find((K) => K.ref.current === Z)?.textValue, M = Y.map((K) => K.textValue), H = ZA(M, B, j), $ = Y.find((K) => K.textValue === H)?.ref.current;
|
|
18712
18728
|
(function K(ie) {
|
|
18713
18729
|
A.current = ie, window.clearTimeout(O.current), ie !== "" && (O.current = window.setTimeout(() => K(""), 1e3));
|
|
@@ -18765,7 +18781,7 @@ var Je = "MenuContent", [zA, tc] = Xt(Je), Qh = T.forwardRef(
|
|
|
18765
18781
|
WT,
|
|
18766
18782
|
{
|
|
18767
18783
|
asChild: !0,
|
|
18768
|
-
...
|
|
18784
|
+
...g,
|
|
18769
18785
|
dir: x.dir,
|
|
18770
18786
|
orientation: "vertical",
|
|
18771
18787
|
loop: n,
|
|
@@ -18780,7 +18796,7 @@ var Je = "MenuContent", [zA, tc] = Xt(Je), Qh = T.forwardRef(
|
|
|
18780
18796
|
{
|
|
18781
18797
|
role: "menu",
|
|
18782
18798
|
"aria-orientation": "vertical",
|
|
18783
|
-
"data-state": fg(
|
|
18799
|
+
"data-state": fg(h.open),
|
|
18784
18800
|
"data-radix-menu-content": "",
|
|
18785
18801
|
dir: x.dir,
|
|
18786
18802
|
...S,
|
|
@@ -19040,16 +19056,16 @@ var KA = "MenuSub", [HP, dg] = Xt(KA), Rr = "MenuSubTrigger", ug = T.forwardRef(
|
|
|
19040
19056
|
d();
|
|
19041
19057
|
const p = r.content?.getBoundingClientRect();
|
|
19042
19058
|
if (p) {
|
|
19043
|
-
const m = r.content?.dataset.side, v = m === "right", f = v ? -5 : 5,
|
|
19059
|
+
const m = r.content?.dataset.side, v = m === "right", f = v ? -5 : 5, h = p[v ? "left" : "right"], x = p[v ? "right" : "left"];
|
|
19044
19060
|
i.onPointerGraceIntentChange({
|
|
19045
19061
|
area: [
|
|
19046
19062
|
// Apply a bleed on clientX to ensure that our exit point is
|
|
19047
19063
|
// consistently within polygon bounds
|
|
19048
19064
|
{ x: u.clientX + f, y: u.clientY },
|
|
19049
|
-
{ x:
|
|
19065
|
+
{ x: h, y: p.top },
|
|
19050
19066
|
{ x, y: p.top },
|
|
19051
19067
|
{ x, y: p.bottom },
|
|
19052
|
-
{ x:
|
|
19068
|
+
{ x: h, y: p.bottom }
|
|
19053
19069
|
],
|
|
19054
19070
|
side: m
|
|
19055
19071
|
}), window.clearTimeout(s.current), s.current = window.setTimeout(
|
|
@@ -19512,8 +19528,8 @@ const BO = (t, e) => {
|
|
|
19512
19528
|
const p = { ...u, ...o };
|
|
19513
19529
|
return (u.className || o.className) && (p.className = `${u.className || ""} ${o.className || ""}`.trim()), Object.keys(u).forEach((m) => {
|
|
19514
19530
|
const v = u[m], f = o[m];
|
|
19515
|
-
m.startsWith("on") && typeof v == "function" && typeof f == "function" && (p[m] = (
|
|
19516
|
-
v(
|
|
19531
|
+
m.startsWith("on") && typeof v == "function" && typeof f == "function" && (p[m] = (h) => {
|
|
19532
|
+
v(h), f(h);
|
|
19517
19533
|
});
|
|
19518
19534
|
}), p;
|
|
19519
19535
|
}, [u, o]), /* @__PURE__ */ G(Fe, { children: [
|
|
@@ -19538,23 +19554,23 @@ function cc(t) {
|
|
|
19538
19554
|
right: m = 0,
|
|
19539
19555
|
top: v = 0,
|
|
19540
19556
|
bottom: f = 0
|
|
19541
|
-
} = t,
|
|
19557
|
+
} = t, h = (z) => `${z}mm`, x = () => {
|
|
19542
19558
|
let z = d;
|
|
19543
19559
|
return d ? !p && !m && (z += n) : (z = 2 * a, p || (z += 2 * n), m || (z += 2 * n), (p || m) && (z -= (p ?? 0) + (m ?? 0))), z;
|
|
19544
19560
|
}, S = () => {
|
|
19545
19561
|
let z = u;
|
|
19546
19562
|
return u ? !v && !f && (z += n) : (z = i, v || (z += n), f || (z += n), (v || f) && (z -= (v ?? 0) + (f ?? 0))), z;
|
|
19547
|
-
},
|
|
19563
|
+
}, g = x(), y = S(), b = (z) => z !== void 0 ? h(z) : void 0, E = (z) => Object.fromEntries(
|
|
19548
19564
|
Object.entries(z).filter(([U, L]) => L !== void 0)
|
|
19549
19565
|
), C = p > 0 ? p + n : 0, w = v > 0 ? v + n : 0, O = f > 0 ? f + n : 0, A = -1 * a + C, R = v > 0 && f > 0, P = E({
|
|
19550
19566
|
backgroundColor: c,
|
|
19551
|
-
width: b(
|
|
19567
|
+
width: b(g),
|
|
19552
19568
|
...R ? { height: b(y) } : {},
|
|
19553
19569
|
left: b(C),
|
|
19554
19570
|
top: b(w),
|
|
19555
19571
|
bottom: b(O)
|
|
19556
19572
|
}), N = E({
|
|
19557
|
-
width: b(
|
|
19573
|
+
width: b(g),
|
|
19558
19574
|
...R ? { height: b(y) } : {},
|
|
19559
19575
|
left: b(A),
|
|
19560
19576
|
top: b(w),
|
|
@@ -19606,7 +19622,7 @@ const FO = ({
|
|
|
19606
19622
|
renderImage: v,
|
|
19607
19623
|
onError: f
|
|
19608
19624
|
}) => {
|
|
19609
|
-
const
|
|
19625
|
+
const h = Te(Kt), x = c ? gr({ dialog: c }, h) : {}, S = lc(l), g = Pl({
|
|
19610
19626
|
onError: (A) => {
|
|
19611
19627
|
f?.(A), m?.onError?.(A);
|
|
19612
19628
|
}
|
|
@@ -19627,7 +19643,7 @@ const FO = ({
|
|
|
19627
19643
|
className: ye("h-full w-full object-cover", n, A),
|
|
19628
19644
|
style: { ...i, ...R }
|
|
19629
19645
|
};
|
|
19630
|
-
return v ? v(z) : P ? /* @__PURE__ */ k("img", { ...z, onError:
|
|
19646
|
+
return v ? v(z) : P ? /* @__PURE__ */ k("img", { ...z, onError: g }) : u ?? null;
|
|
19631
19647
|
}, E = y["data-uhuu"], C = T.Children.toArray(p).some((A) => T.isValidElement(A) ? A.type === cc || A.type === Il : !1);
|
|
19632
19648
|
C && delete y["data-uhuu"];
|
|
19633
19649
|
const w = T.Children.map(p, (A) => T.isValidElement(A) ? T.cloneElement(A, { dataUhuu: E }) : A);
|
|
@@ -19716,10 +19732,10 @@ const FO = ({
|
|
|
19716
19732
|
imageStyle: m,
|
|
19717
19733
|
backgroundColor: v,
|
|
19718
19734
|
width: f,
|
|
19719
|
-
height:
|
|
19735
|
+
height: h,
|
|
19720
19736
|
left: x,
|
|
19721
19737
|
right: S,
|
|
19722
|
-
top:
|
|
19738
|
+
top: g,
|
|
19723
19739
|
bottom: y,
|
|
19724
19740
|
pageWidth: b,
|
|
19725
19741
|
pageHeight: E,
|
|
@@ -19735,10 +19751,10 @@ const FO = ({
|
|
|
19735
19751
|
src: l,
|
|
19736
19752
|
backgroundColor: v,
|
|
19737
19753
|
width: f,
|
|
19738
|
-
height:
|
|
19754
|
+
height: h,
|
|
19739
19755
|
left: x,
|
|
19740
19756
|
right: S,
|
|
19741
|
-
top:
|
|
19757
|
+
top: g,
|
|
19742
19758
|
bottom: y,
|
|
19743
19759
|
pageWidth: b,
|
|
19744
19760
|
pageHeight: E,
|
|
@@ -20186,7 +20202,7 @@ function Ug({
|
|
|
20186
20202
|
});
|
|
20187
20203
|
},
|
|
20188
20204
|
[v]
|
|
20189
|
-
),
|
|
20205
|
+
), h = T.useCallback(
|
|
20190
20206
|
(w, O, A) => {
|
|
20191
20207
|
f((R) => ({
|
|
20192
20208
|
...R ?? {},
|
|
@@ -20222,7 +20238,7 @@ function Ug({
|
|
|
20222
20238
|
}));
|
|
20223
20239
|
},
|
|
20224
20240
|
[x]
|
|
20225
|
-
),
|
|
20241
|
+
), g = T.useCallback(
|
|
20226
20242
|
(w) => {
|
|
20227
20243
|
f((O) => {
|
|
20228
20244
|
if (!O?.integrations || !O.integrations[w])
|
|
@@ -20253,10 +20269,10 @@ function Ug({
|
|
|
20253
20269
|
() => ({
|
|
20254
20270
|
payload: a,
|
|
20255
20271
|
setPayload: f,
|
|
20256
|
-
setPageOptionValue:
|
|
20272
|
+
setPageOptionValue: h,
|
|
20257
20273
|
setIntegrationPayload: x,
|
|
20258
20274
|
setIntegrationPayloadValue: S,
|
|
20259
|
-
removeIntegrationPayload:
|
|
20275
|
+
removeIntegrationPayload: g,
|
|
20260
20276
|
updateIntegrationByDialogPath: y,
|
|
20261
20277
|
mergePageEditorState: b,
|
|
20262
20278
|
getPagePayload: E
|
|
@@ -20264,10 +20280,10 @@ function Ug({
|
|
|
20264
20280
|
[
|
|
20265
20281
|
a,
|
|
20266
20282
|
f,
|
|
20267
|
-
|
|
20283
|
+
h,
|
|
20268
20284
|
x,
|
|
20269
20285
|
S,
|
|
20270
|
-
|
|
20286
|
+
g,
|
|
20271
20287
|
y,
|
|
20272
20288
|
b,
|
|
20273
20289
|
E
|
|
@@ -20329,12 +20345,12 @@ function Hs({ children: t, title: e, className: r = "", controls: n, origin: a =
|
|
|
20329
20345
|
ve(() => {
|
|
20330
20346
|
if (s.current) {
|
|
20331
20347
|
const x = () => {
|
|
20332
|
-
const
|
|
20333
|
-
if (
|
|
20334
|
-
const y =
|
|
20335
|
-
|
|
20336
|
-
const b =
|
|
20337
|
-
|
|
20348
|
+
const g = s.current;
|
|
20349
|
+
if (g) {
|
|
20350
|
+
const y = g.style.transform;
|
|
20351
|
+
g.style.transform = "scale(1)";
|
|
20352
|
+
const b = g.scrollHeight, E = g.scrollWidth;
|
|
20353
|
+
g.style.transform = y, c(b), u(E);
|
|
20338
20354
|
}
|
|
20339
20355
|
};
|
|
20340
20356
|
x();
|
|
@@ -20348,7 +20364,7 @@ function Hs({ children: t, title: e, className: r = "", controls: n, origin: a =
|
|
|
20348
20364
|
left: { justify: "justify-start", origin: "top left" },
|
|
20349
20365
|
right: { justify: "justify-end", origin: "top right" },
|
|
20350
20366
|
center: { justify: "justify-center", origin: "top center" }
|
|
20351
|
-
}, { justify: f, origin:
|
|
20367
|
+
}, { justify: f, origin: h } = v[a];
|
|
20352
20368
|
return o ? /* @__PURE__ */ k("div", { className: r, children: t }) : /* @__PURE__ */ G(
|
|
20353
20369
|
"div",
|
|
20354
20370
|
{
|
|
@@ -20379,7 +20395,7 @@ function Hs({ children: t, title: e, className: r = "", controls: n, origin: a =
|
|
|
20379
20395
|
"data-natural-height": l,
|
|
20380
20396
|
style: {
|
|
20381
20397
|
transform: `scale(${i})`,
|
|
20382
|
-
transformOrigin:
|
|
20398
|
+
transformOrigin: h
|
|
20383
20399
|
},
|
|
20384
20400
|
children: t
|
|
20385
20401
|
}
|
|
@@ -20401,9 +20417,9 @@ function l_({
|
|
|
20401
20417
|
hideUI: s,
|
|
20402
20418
|
preview: l = "single_page"
|
|
20403
20419
|
}) {
|
|
20404
|
-
const c = Dl(), d = s ?? c, [u, p] = pe(r), [m, v] = pe("none"), f = he(null),
|
|
20405
|
-
if (!f.current || !
|
|
20406
|
-
const N = f.current.getBoundingClientRect(), z =
|
|
20420
|
+
const c = Dl(), d = s ?? c, [u, p] = pe(r), [m, v] = pe("none"), f = he(null), h = he(null), [x, S] = pe(!1), [g, y] = pe(0), [b, E] = pe(!0), C = (P) => {
|
|
20421
|
+
if (!f.current || !h.current) return u;
|
|
20422
|
+
const N = f.current.getBoundingClientRect(), z = h.current.querySelector("[data-section-content]");
|
|
20407
20423
|
if (!z) return u;
|
|
20408
20424
|
let U = Number.parseInt(z.getAttribute("data-natural-width") || "0");
|
|
20409
20425
|
const L = Number.parseInt(z.getAttribute("data-natural-height") || "0");
|
|
@@ -20434,10 +20450,10 @@ function l_({
|
|
|
20434
20450
|
};
|
|
20435
20451
|
ve(() => {
|
|
20436
20452
|
const P = () => {
|
|
20437
|
-
if (!f.current || !
|
|
20453
|
+
if (!f.current || !h.current) return;
|
|
20438
20454
|
const U = f.current.getBoundingClientRect().width;
|
|
20439
20455
|
if (!x) {
|
|
20440
|
-
const L =
|
|
20456
|
+
const L = h.current.querySelector("[data-section-content]");
|
|
20441
20457
|
if (L) {
|
|
20442
20458
|
const W = Number.parseInt(L.getAttribute("data-natural-width") || "0");
|
|
20443
20459
|
if (W > 0) {
|
|
@@ -20458,7 +20474,7 @@ function l_({
|
|
|
20458
20474
|
}, N = () => {
|
|
20459
20475
|
if (!f.current || b) return;
|
|
20460
20476
|
const U = f.current.getBoundingClientRect().width;
|
|
20461
|
-
if (Math.abs(U -
|
|
20477
|
+
if (Math.abs(U - g) > 10) {
|
|
20462
20478
|
if (m !== "none") {
|
|
20463
20479
|
const L = C(m);
|
|
20464
20480
|
p(L);
|
|
@@ -20469,7 +20485,7 @@ function l_({
|
|
|
20469
20485
|
return P(), window.addEventListener("resize", N), () => {
|
|
20470
20486
|
window.removeEventListener("resize", N);
|
|
20471
20487
|
};
|
|
20472
|
-
}, [m, n, a, x,
|
|
20488
|
+
}, [m, n, a, x, g, b]);
|
|
20473
20489
|
const R = u / 100;
|
|
20474
20490
|
return d ? /* @__PURE__ */ k(Kn.Provider, { value: { zoom: 100, scaleValue: 1, hideUI: !0 }, children: /* @__PURE__ */ k("div", { className: e, children: t }) }) : /* @__PURE__ */ k(Kn.Provider, { value: { zoom: u, scaleValue: R, hideUI: !1 }, children: /* @__PURE__ */ G("div", { ref: f, className: `flex flex-col min-h-0 ${e}`, children: [
|
|
20475
20491
|
/* @__PURE__ */ G("div", { "data-uhuu-editor": !0, className: "fixed right-4 bottom-4 z-50 flex items-center gap-1.5 px-2.5 py-1.5 bg-white/90 backdrop-blur-md border border-gray-200/60 rounded-lg shadow-sm", children: [
|
|
@@ -20570,7 +20586,7 @@ function l_({
|
|
|
20570
20586
|
] })
|
|
20571
20587
|
] })
|
|
20572
20588
|
] }),
|
|
20573
|
-
/* @__PURE__ */ k("div", { ref:
|
|
20589
|
+
/* @__PURE__ */ k("div", { ref: h, children: /* @__PURE__ */ k("div", { className: l === "two_pages" ? "group_two_pages" : "flex flex-col items-center", children: t }) }),
|
|
20574
20590
|
/* @__PURE__ */ k("div", { className: "pb-16" })
|
|
20575
20591
|
] }) });
|
|
20576
20592
|
}
|
|
@@ -20893,9 +20909,9 @@ function Cc(t) {
|
|
|
20893
20909
|
thumbnailHeight: i
|
|
20894
20910
|
} = t, o = n.width || 210, s = n.height || 297, l = o / s, c = a, d = i ?? Math.round(c / l), u = o * 3.779527559, p = s * 3.779527559;
|
|
20895
20911
|
return (m, v, f) => {
|
|
20896
|
-
const
|
|
20912
|
+
const h = m.strictPosition, x = h === "start" || h === "end";
|
|
20897
20913
|
if (m.kind === "group") {
|
|
20898
|
-
const S = m.firstPageId,
|
|
20914
|
+
const S = m.firstPageId, g = m.firstPageComponentKey ?? S, y = Un(r, { id: S, componentKey: g }), b = m.firstPageComponent || (g ? e[g] : null), E = r?.integrations?.[m.id];
|
|
20899
20915
|
return /* @__PURE__ */ G(
|
|
20900
20916
|
"div",
|
|
20901
20917
|
{
|
|
@@ -20919,9 +20935,9 @@ function Cc(t) {
|
|
|
20919
20935
|
{
|
|
20920
20936
|
payload: r,
|
|
20921
20937
|
pageId: S,
|
|
20922
|
-
templateId:
|
|
20938
|
+
templateId: g,
|
|
20923
20939
|
pagePayload: y,
|
|
20924
|
-
componentKey:
|
|
20940
|
+
componentKey: g,
|
|
20925
20941
|
integration: E,
|
|
20926
20942
|
parentGroup: m
|
|
20927
20943
|
}
|
|
@@ -20943,7 +20959,7 @@ function Cc(t) {
|
|
|
20943
20959
|
] }),
|
|
20944
20960
|
x && /* @__PURE__ */ G("div", { className: "absolute top-2 left-2 px-2 py-1 bg-gray-600/80 backdrop-blur-sm text-white text-xs font-medium rounded shadow-lg pointer-events-none flex items-center gap-1", children: [
|
|
20945
20961
|
/* @__PURE__ */ k(al, { className: "size-3" }),
|
|
20946
|
-
/* @__PURE__ */ k("span", { children:
|
|
20962
|
+
/* @__PURE__ */ k("span", { children: h === "start" ? "Start" : "End" })
|
|
20947
20963
|
] }),
|
|
20948
20964
|
/* @__PURE__ */ k("div", { className: "absolute bottom-0 left-0 right-0 bg-black/40 backdrop-blur-sm p-3 pointer-events-none", children: /* @__PURE__ */ k("div", { className: "flex items-center justify-between gap-2 text-white", children: /* @__PURE__ */ k("div", { className: "flex-1 min-w-0", children: /* @__PURE__ */ k("div", { className: "text-sm font-medium truncate", children: m.label || m.id }) }) }) }),
|
|
20949
20965
|
f && /* @__PURE__ */ k("div", { className: "absolute inset-0 flex items-center justify-center bg-blue-500/10 pointer-events-none", children: /* @__PURE__ */ k("div", { className: "text-blue-600 font-medium text-sm bg-white/90 px-3 py-1 rounded-full shadow-lg", children: "Dragging Group..." }) })
|
|
@@ -20951,7 +20967,7 @@ function Cc(t) {
|
|
|
20951
20967
|
}
|
|
20952
20968
|
);
|
|
20953
20969
|
} else {
|
|
20954
|
-
const S = m.pageId,
|
|
20970
|
+
const S = m.pageId, g = m.pageComponentKey ?? S, y = Un(r, { id: S, componentKey: g }), b = m.pageComponent || (g ? e[g] : null), E = S ? Hg(r, { id: S }) : void 0;
|
|
20955
20971
|
return /* @__PURE__ */ G(
|
|
20956
20972
|
"div",
|
|
20957
20973
|
{
|
|
@@ -20976,9 +20992,9 @@ function Cc(t) {
|
|
|
20976
20992
|
{
|
|
20977
20993
|
payload: r,
|
|
20978
20994
|
pageId: S,
|
|
20979
|
-
templateId:
|
|
20995
|
+
templateId: g,
|
|
20980
20996
|
pagePayload: y,
|
|
20981
|
-
componentKey:
|
|
20997
|
+
componentKey: g,
|
|
20982
20998
|
integration: E
|
|
20983
20999
|
}
|
|
20984
21000
|
) })
|
|
@@ -20994,7 +21010,7 @@ function Cc(t) {
|
|
|
20994
21010
|
] }) }),
|
|
20995
21011
|
x && /* @__PURE__ */ G("div", { className: "absolute top-2 left-2 px-2 py-1 bg-gray-600/80 backdrop-blur-sm text-white text-xs font-medium rounded shadow-lg pointer-events-none flex items-center gap-1", children: [
|
|
20996
21012
|
/* @__PURE__ */ k(al, { className: "size-3" }),
|
|
20997
|
-
/* @__PURE__ */ k("span", { children:
|
|
21013
|
+
/* @__PURE__ */ k("span", { children: h === "start" ? "Start" : "End" })
|
|
20998
21014
|
] }),
|
|
20999
21015
|
/* @__PURE__ */ k("div", { className: "absolute bottom-0 left-0 right-0 bg-black/40 backdrop-blur-sm p-3 pointer-events-none", children: /* @__PURE__ */ k("div", { className: "flex items-center justify-between gap-2 text-white", children: /* @__PURE__ */ k("div", { className: "flex-1 min-w-0", children: /* @__PURE__ */ k("div", { className: "text-sm font-medium truncate", children: m.pageLabel || `Page ${m.pageNum}` }) }) }) }),
|
|
21000
21016
|
f && /* @__PURE__ */ k("div", { className: "absolute inset-0 flex items-center justify-center bg-blue-500/10 pointer-events-none", children: /* @__PURE__ */ k("div", { className: "text-blue-600 font-medium text-sm bg-white/90 px-3 py-1 rounded-full shadow-lg", children: "Dragging..." }) })
|
|
@@ -21022,13 +21038,13 @@ function x_({
|
|
|
21022
21038
|
);
|
|
21023
21039
|
}, [r, l]), u = (y) => {
|
|
21024
21040
|
e(!1), n(y);
|
|
21025
|
-
}, p = o.width || 210, m = o.height || 297, v = p / m, f = 200,
|
|
21041
|
+
}, p = o.width || 210, m = o.height || 297, v = p / m, f = 200, h = Math.round(f / v), x = T.useMemo(() => a ? Cc({
|
|
21026
21042
|
pageComponents: a,
|
|
21027
21043
|
payload: i,
|
|
21028
21044
|
setup: o,
|
|
21029
21045
|
thumbnailWidth: f,
|
|
21030
|
-
thumbnailHeight:
|
|
21031
|
-
}) : null, [a, i, o, f,
|
|
21046
|
+
thumbnailHeight: h
|
|
21047
|
+
}) : null, [a, i, o, f, h]), S = (y, b) => {
|
|
21032
21048
|
if (!y) return [];
|
|
21033
21049
|
if (Array.isArray(y)) return y;
|
|
21034
21050
|
try {
|
|
@@ -21040,7 +21056,7 @@ function x_({
|
|
|
21040
21056
|
} catch (E) {
|
|
21041
21057
|
return console.error("[uhuu-components] Error evaluating pageComponentKeys function:", E), [];
|
|
21042
21058
|
}
|
|
21043
|
-
},
|
|
21059
|
+
}, g = (y, b) => {
|
|
21044
21060
|
if (y.kind === "group") {
|
|
21045
21061
|
const w = y, O = { payload: i, item: void 0, parent: void 0 }, A = S(w.pageComponentKeys, O), R = A[0];
|
|
21046
21062
|
return {
|
|
@@ -21107,7 +21123,7 @@ function x_({
|
|
|
21107
21123
|
className: "w-full h-full object-contain pointer-events-none object-top border border-gray-200 p-4",
|
|
21108
21124
|
alt: w
|
|
21109
21125
|
}
|
|
21110
|
-
) }) : x ? /* @__PURE__ */ k("div", { className: "absolute inset-0 flex items-center pointer-events-none", children: x(
|
|
21126
|
+
) }) : x ? /* @__PURE__ */ k("div", { className: "absolute inset-0 flex items-center pointer-events-none", children: x(g(y, b), b, !1) }) : /* @__PURE__ */ k(Fe, { children: E ? /* @__PURE__ */ G("div", { className: "p-4", children: [
|
|
21111
21127
|
/* @__PURE__ */ k("div", { className: "w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-3", children: /* @__PURE__ */ k(vt, { className: "w-8 h-8 text-blue-600" }) }),
|
|
21112
21128
|
/* @__PURE__ */ k("div", { className: "text-sm font-medium text-gray-700", children: w }),
|
|
21113
21129
|
/* @__PURE__ */ G("div", { className: "text-xs text-gray-500 mt-1", children: [
|
|
@@ -22127,19 +22143,19 @@ class Ac {
|
|
|
22127
22143
|
scrollableAncestors: v
|
|
22128
22144
|
} = n.current;
|
|
22129
22145
|
for (const f of v) {
|
|
22130
|
-
const
|
|
22146
|
+
const h = e.code, {
|
|
22131
22147
|
isTop: x,
|
|
22132
22148
|
isRight: S,
|
|
22133
|
-
isLeft:
|
|
22149
|
+
isLeft: g,
|
|
22134
22150
|
isBottom: y,
|
|
22135
22151
|
maxScroll: b,
|
|
22136
22152
|
minScroll: E
|
|
22137
22153
|
} = Ov(f), C = J_(f), w = {
|
|
22138
|
-
x: Math.min(
|
|
22139
|
-
y: Math.min(
|
|
22140
|
-
}, O =
|
|
22154
|
+
x: Math.min(h === ge.Right ? C.right - C.width / 2 : C.right, Math.max(h === ge.Right ? C.left : C.left + C.width / 2, u.x)),
|
|
22155
|
+
y: Math.min(h === ge.Down ? C.bottom - C.height / 2 : C.bottom, Math.max(h === ge.Down ? C.top : C.top + C.height / 2, u.y))
|
|
22156
|
+
}, O = h === ge.Right && !S || h === ge.Left && !g, A = h === ge.Down && !y || h === ge.Up && !x;
|
|
22141
22157
|
if (O && w.x !== u.x) {
|
|
22142
|
-
const R = f.scrollLeft + p.x, P =
|
|
22158
|
+
const R = f.scrollLeft + p.x, P = h === ge.Right && R <= b.x || h === ge.Left && R >= E.x;
|
|
22143
22159
|
if (P && !p.y) {
|
|
22144
22160
|
f.scrollTo({
|
|
22145
22161
|
left: R,
|
|
@@ -22147,13 +22163,13 @@ class Ac {
|
|
|
22147
22163
|
});
|
|
22148
22164
|
return;
|
|
22149
22165
|
}
|
|
22150
|
-
P ? m.x = f.scrollLeft - R : m.x =
|
|
22166
|
+
P ? m.x = f.scrollLeft - R : m.x = h === ge.Right ? f.scrollLeft - b.x : f.scrollLeft - E.x, m.x && f.scrollBy({
|
|
22151
22167
|
left: -m.x,
|
|
22152
22168
|
behavior: s
|
|
22153
22169
|
});
|
|
22154
22170
|
break;
|
|
22155
22171
|
} else if (A && w.y !== u.y) {
|
|
22156
|
-
const R = f.scrollTop + p.y, P =
|
|
22172
|
+
const R = f.scrollTop + p.y, P = h === ge.Down && R <= b.y || h === ge.Up && R >= E.y;
|
|
22157
22173
|
if (P && !p.x) {
|
|
22158
22174
|
f.scrollTo({
|
|
22159
22175
|
top: R,
|
|
@@ -22161,7 +22177,7 @@ class Ac {
|
|
|
22161
22177
|
});
|
|
22162
22178
|
return;
|
|
22163
22179
|
}
|
|
22164
|
-
P ? m.y = f.scrollTop - R : m.y =
|
|
22180
|
+
P ? m.y = f.scrollTop - R : m.y = h === ge.Down ? f.scrollTop - b.y : f.scrollTop - E.y, m.y && f.scrollBy({
|
|
22165
22181
|
top: -m.y,
|
|
22166
22182
|
behavior: s
|
|
22167
22183
|
});
|
|
@@ -22463,7 +22479,7 @@ function d1(t) {
|
|
|
22463
22479
|
const m = p1({
|
|
22464
22480
|
delta: u,
|
|
22465
22481
|
disabled: !i
|
|
22466
|
-
}), [v, f] = C_(),
|
|
22482
|
+
}), [v, f] = C_(), h = he({
|
|
22467
22483
|
x: 0,
|
|
22468
22484
|
y: 0
|
|
22469
22485
|
}), x = he({
|
|
@@ -22481,11 +22497,11 @@ function d1(t) {
|
|
|
22481
22497
|
case Ir.DraggableRect:
|
|
22482
22498
|
return a;
|
|
22483
22499
|
}
|
|
22484
|
-
}, [r, a, l]),
|
|
22485
|
-
const E =
|
|
22500
|
+
}, [r, a, l]), g = he(null), y = be(() => {
|
|
22501
|
+
const E = g.current;
|
|
22486
22502
|
if (!E)
|
|
22487
22503
|
return;
|
|
22488
|
-
const C =
|
|
22504
|
+
const C = h.current.x * x.current.x, w = h.current.y * x.current.y;
|
|
22489
22505
|
E.scrollBy(C, w);
|
|
22490
22506
|
}, []), b = oe(() => s === ea.TreeOrder ? [...c].reverse() : c, [s, c]);
|
|
22491
22507
|
ve(
|
|
@@ -22507,11 +22523,11 @@ function d1(t) {
|
|
|
22507
22523
|
for (const R of ["x", "y"])
|
|
22508
22524
|
m[R][O[R]] || (A[R] = 0, O[R] = 0);
|
|
22509
22525
|
if (A.x > 0 || A.y > 0) {
|
|
22510
|
-
f(),
|
|
22526
|
+
f(), g.current = E, v(y, o), h.current = A, x.current = O;
|
|
22511
22527
|
return;
|
|
22512
22528
|
}
|
|
22513
22529
|
}
|
|
22514
|
-
|
|
22530
|
+
h.current = {
|
|
22515
22531
|
x: 0,
|
|
22516
22532
|
y: 0
|
|
22517
22533
|
}, x.current = {
|
|
@@ -22612,22 +22628,22 @@ function h1(t, e) {
|
|
|
22612
22628
|
frequency: s,
|
|
22613
22629
|
measure: l,
|
|
22614
22630
|
strategy: c
|
|
22615
|
-
} = a, d = he(t), u =
|
|
22616
|
-
x === void 0 && (x = []), !p.current && o((S) => S === null ? x : S.concat(x.filter((
|
|
22631
|
+
} = a, d = he(t), u = h(), p = jr(u), m = be(function(x) {
|
|
22632
|
+
x === void 0 && (x = []), !p.current && o((S) => S === null ? x : S.concat(x.filter((g) => !S.includes(g))));
|
|
22617
22633
|
}, [p]), v = he(null), f = en((x) => {
|
|
22618
22634
|
if (u && !r)
|
|
22619
22635
|
return Vm;
|
|
22620
22636
|
if (!x || x === Vm || d.current !== t || i != null) {
|
|
22621
22637
|
const S = /* @__PURE__ */ new Map();
|
|
22622
|
-
for (let
|
|
22623
|
-
if (!
|
|
22638
|
+
for (let g of t) {
|
|
22639
|
+
if (!g)
|
|
22624
22640
|
continue;
|
|
22625
|
-
if (i && i.length > 0 && !i.includes(
|
|
22626
|
-
S.set(
|
|
22641
|
+
if (i && i.length > 0 && !i.includes(g.id) && g.rect.current) {
|
|
22642
|
+
S.set(g.id, g.rect.current);
|
|
22627
22643
|
continue;
|
|
22628
22644
|
}
|
|
22629
|
-
const y =
|
|
22630
|
-
|
|
22645
|
+
const y = g.node.current, b = y ? new Tc(l(y), y) : null;
|
|
22646
|
+
g.rect.current = b, b && S.set(g.id, b);
|
|
22631
22647
|
}
|
|
22632
22648
|
return S;
|
|
22633
22649
|
}
|
|
@@ -22660,7 +22676,7 @@ function h1(t, e) {
|
|
|
22660
22676
|
measureDroppableContainers: m,
|
|
22661
22677
|
measuringScheduled: i != null
|
|
22662
22678
|
};
|
|
22663
|
-
function
|
|
22679
|
+
function h() {
|
|
22664
22680
|
switch (c) {
|
|
22665
22681
|
case Br.Always:
|
|
22666
22682
|
return !1;
|
|
@@ -23212,7 +23228,7 @@ const M1 = /* @__PURE__ */ $y(function(e) {
|
|
|
23212
23228
|
modifiers: m,
|
|
23213
23229
|
...v
|
|
23214
23230
|
} = e;
|
|
23215
|
-
const f = Gy(R1, void 0, _1), [
|
|
23231
|
+
const f = Gy(R1, void 0, _1), [h, x] = f, [S, g] = I_(), [y, b] = pe(Nt.Uninitialized), E = y === Nt.Initialized, {
|
|
23216
23232
|
draggable: {
|
|
23217
23233
|
active: C,
|
|
23218
23234
|
nodes: w,
|
|
@@ -23221,7 +23237,7 @@ const M1 = /* @__PURE__ */ $y(function(e) {
|
|
|
23221
23237
|
droppable: {
|
|
23222
23238
|
containers: A
|
|
23223
23239
|
}
|
|
23224
|
-
} =
|
|
23240
|
+
} = h, R = C != null ? w.get(C) : null, P = he({
|
|
23225
23241
|
initial: null,
|
|
23226
23242
|
translated: null
|
|
23227
23243
|
}), N = oe(() => {
|
|
@@ -23556,7 +23572,7 @@ const M1 = /* @__PURE__ */ $y(function(e) {
|
|
|
23556
23572
|
measureDroppableContainers: M
|
|
23557
23573
|
}), [W, cn, N, I, x, B, w, rt, M]);
|
|
23558
23574
|
return Se.createElement(yv.Provider, {
|
|
23559
|
-
value:
|
|
23575
|
+
value: g
|
|
23560
23576
|
}, Se.createElement(rn.Provider, {
|
|
23561
23577
|
value: un
|
|
23562
23578
|
}, Se.createElement(Dv.Provider, {
|
|
@@ -23598,7 +23614,7 @@ function L1(t) {
|
|
|
23598
23614
|
role: m = Xm,
|
|
23599
23615
|
roleDescription: v = "draggable",
|
|
23600
23616
|
tabIndex: f = 0
|
|
23601
|
-
} = a ?? {},
|
|
23617
|
+
} = a ?? {}, h = l?.id === e, x = Te(h ? xa : D1), [S, g] = Xn(), [y, b] = Xn(), E = C1(o, e), C = jr(r);
|
|
23602
23618
|
it(
|
|
23603
23619
|
() => (u.set(e, {
|
|
23604
23620
|
id: e,
|
|
@@ -23617,20 +23633,20 @@ function L1(t) {
|
|
|
23617
23633
|
role: m,
|
|
23618
23634
|
tabIndex: f,
|
|
23619
23635
|
"aria-disabled": n,
|
|
23620
|
-
"aria-pressed":
|
|
23636
|
+
"aria-pressed": h && m === Xm ? !0 : void 0,
|
|
23621
23637
|
"aria-roledescription": v,
|
|
23622
23638
|
"aria-describedby": d.draggable
|
|
23623
|
-
}), [n, m, f,
|
|
23639
|
+
}), [n, m, f, h, v, d.draggable]);
|
|
23624
23640
|
return {
|
|
23625
23641
|
active: l,
|
|
23626
23642
|
activatorEvent: s,
|
|
23627
23643
|
activeNodeRect: c,
|
|
23628
23644
|
attributes: w,
|
|
23629
|
-
isDragging:
|
|
23645
|
+
isDragging: h,
|
|
23630
23646
|
listeners: n ? void 0 : E,
|
|
23631
23647
|
node: S,
|
|
23632
23648
|
over: p,
|
|
23633
|
-
setNodeRef:
|
|
23649
|
+
setNodeRef: g,
|
|
23634
23650
|
setActivatorNodeRef: b,
|
|
23635
23651
|
transform: x
|
|
23636
23652
|
};
|
|
@@ -23658,7 +23674,7 @@ function B1(t) {
|
|
|
23658
23674
|
}), u = he(!1), p = he(null), m = he(null), {
|
|
23659
23675
|
disabled: v,
|
|
23660
23676
|
updateMeasurementsFor: f,
|
|
23661
|
-
timeout:
|
|
23677
|
+
timeout: h
|
|
23662
23678
|
} = {
|
|
23663
23679
|
...W1,
|
|
23664
23680
|
...a
|
|
@@ -23670,19 +23686,19 @@ function B1(t) {
|
|
|
23670
23686
|
}
|
|
23671
23687
|
m.current != null && clearTimeout(m.current), m.current = setTimeout(() => {
|
|
23672
23688
|
c(Array.isArray(x.current) ? x.current : [x.current]), m.current = null;
|
|
23673
|
-
},
|
|
23689
|
+
}, h);
|
|
23674
23690
|
},
|
|
23675
23691
|
//eslint-disable-next-line react-hooks/exhaustive-deps
|
|
23676
|
-
[
|
|
23677
|
-
),
|
|
23692
|
+
[h]
|
|
23693
|
+
), g = Sa({
|
|
23678
23694
|
callback: S,
|
|
23679
23695
|
disabled: v || !o
|
|
23680
23696
|
}), y = be((w, O) => {
|
|
23681
|
-
|
|
23682
|
-
}, [
|
|
23697
|
+
g && (O && (g.unobserve(O), u.current = !1), w && g.observe(w));
|
|
23698
|
+
}, [g]), [b, E] = Xn(y), C = jr(e);
|
|
23683
23699
|
return ve(() => {
|
|
23684
|
-
!
|
|
23685
|
-
}, [b,
|
|
23700
|
+
!g || !b.current || (g.disconnect(), u.current = !1, g.observe(b.current));
|
|
23701
|
+
}, [b, g]), ve(
|
|
23686
23702
|
() => (s({
|
|
23687
23703
|
type: Ie.RegisterDroppable,
|
|
23688
23704
|
element: {
|
|
@@ -23917,7 +23933,7 @@ function Z1(t) {
|
|
|
23917
23933
|
}), [v] = m, f = m[m.length - 1];
|
|
23918
23934
|
if (JSON.stringify(v) === JSON.stringify(f))
|
|
23919
23935
|
return;
|
|
23920
|
-
const
|
|
23936
|
+
const h = n?.({
|
|
23921
23937
|
active: o,
|
|
23922
23938
|
dragOverlay: s,
|
|
23923
23939
|
...c
|
|
@@ -23928,7 +23944,7 @@ function Z1(t) {
|
|
|
23928
23944
|
});
|
|
23929
23945
|
return new Promise((S) => {
|
|
23930
23946
|
x.onfinish = () => {
|
|
23931
|
-
|
|
23947
|
+
h?.(), S();
|
|
23932
23948
|
};
|
|
23933
23949
|
});
|
|
23934
23950
|
};
|
|
@@ -23959,10 +23975,10 @@ const J1 = /* @__PURE__ */ Se.memo((t) => {
|
|
|
23959
23975
|
containerNodeRect: m,
|
|
23960
23976
|
draggableNodes: v,
|
|
23961
23977
|
droppableContainers: f,
|
|
23962
|
-
dragOverlay:
|
|
23978
|
+
dragOverlay: h,
|
|
23963
23979
|
over: x,
|
|
23964
23980
|
measuringConfiguration: S,
|
|
23965
|
-
scrollableAncestors:
|
|
23981
|
+
scrollableAncestors: g,
|
|
23966
23982
|
scrollableAncestorRects: y,
|
|
23967
23983
|
windowRect: b
|
|
23968
23984
|
} = Lv(), E = Te(xa), C = Q1(u?.id), w = zv(o, {
|
|
@@ -23970,10 +23986,10 @@ const J1 = /* @__PURE__ */ Se.memo((t) => {
|
|
|
23970
23986
|
active: u,
|
|
23971
23987
|
activeNodeRect: p,
|
|
23972
23988
|
containerNodeRect: m,
|
|
23973
|
-
draggingNodeRect:
|
|
23989
|
+
draggingNodeRect: h.rect,
|
|
23974
23990
|
over: x,
|
|
23975
|
-
overlayNodeRect:
|
|
23976
|
-
scrollableAncestors:
|
|
23991
|
+
overlayNodeRect: h.rect,
|
|
23992
|
+
scrollableAncestors: g,
|
|
23977
23993
|
scrollableAncestorRects: y,
|
|
23978
23994
|
transform: E,
|
|
23979
23995
|
windowRect: b
|
|
@@ -23982,7 +23998,7 @@ const J1 = /* @__PURE__ */ Se.memo((t) => {
|
|
|
23982
23998
|
draggableNodes: v,
|
|
23983
23999
|
droppableContainers: f,
|
|
23984
24000
|
measuringConfiguration: S
|
|
23985
|
-
}), R = O ?
|
|
24001
|
+
}), R = O ? h.setRef : void 0;
|
|
23986
24002
|
return Se.createElement($1, null, Se.createElement(q1, {
|
|
23987
24003
|
animation: A
|
|
23988
24004
|
}, u && C ? Se.createElement(H1, {
|
|
@@ -24073,7 +24089,7 @@ function nR(t) {
|
|
|
24073
24089
|
droppableRects: l,
|
|
24074
24090
|
over: c,
|
|
24075
24091
|
measureDroppableContainers: d
|
|
24076
|
-
} = Lv(), u = tn(jv, r), p = s.rect !== null, m = oe(() => n.map((E) => typeof E == "object" && "id" in E ? E.id : E), [n]), v = o != null, f = o ? m.indexOf(o.id) : -1,
|
|
24092
|
+
} = Lv(), u = tn(jv, r), p = s.rect !== null, m = oe(() => n.map((E) => typeof E == "object" && "id" in E ? E.id : E), [n]), v = o != null, f = o ? m.indexOf(o.id) : -1, h = c ? m.indexOf(c.id) : -1, x = he(m), S = !tR(m, x.current), g = h !== -1 && f === -1 || S, y = rR(i);
|
|
24077
24093
|
it(() => {
|
|
24078
24094
|
S && v && d(m);
|
|
24079
24095
|
}, [S, m, v, d]), ve(() => {
|
|
@@ -24084,15 +24100,15 @@ function nR(t) {
|
|
|
24084
24100
|
activeIndex: f,
|
|
24085
24101
|
containerId: u,
|
|
24086
24102
|
disabled: y,
|
|
24087
|
-
disableTransforms:
|
|
24103
|
+
disableTransforms: g,
|
|
24088
24104
|
items: m,
|
|
24089
|
-
overIndex:
|
|
24105
|
+
overIndex: h,
|
|
24090
24106
|
useDragOverlay: p,
|
|
24091
24107
|
sortedRects: eR(m, l),
|
|
24092
24108
|
strategy: a
|
|
24093
24109
|
}),
|
|
24094
24110
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
24095
|
-
[f, u, y.draggable, y.droppable,
|
|
24111
|
+
[f, u, y.draggable, y.droppable, g, m, h, l, p, a]
|
|
24096
24112
|
);
|
|
24097
24113
|
return Se.createElement(Wv.Provider, {
|
|
24098
24114
|
value: b
|
|
@@ -24176,10 +24192,10 @@ function dR(t) {
|
|
|
24176
24192
|
disabled: m,
|
|
24177
24193
|
disableTransforms: v,
|
|
24178
24194
|
sortedRects: f,
|
|
24179
|
-
overIndex:
|
|
24195
|
+
overIndex: h,
|
|
24180
24196
|
useDragOverlay: x,
|
|
24181
24197
|
strategy: S
|
|
24182
|
-
} = Te(Wv),
|
|
24198
|
+
} = Te(Wv), g = uR(n, m), y = d.indexOf(o), b = oe(() => ({
|
|
24183
24199
|
sortable: {
|
|
24184
24200
|
containerId: u,
|
|
24185
24201
|
index: y,
|
|
@@ -24194,7 +24210,7 @@ function dR(t) {
|
|
|
24194
24210
|
} = B1({
|
|
24195
24211
|
id: o,
|
|
24196
24212
|
data: b,
|
|
24197
|
-
disabled:
|
|
24213
|
+
disabled: g.droppable,
|
|
24198
24214
|
resizeObserverConfig: {
|
|
24199
24215
|
updateMeasurementsFor: E,
|
|
24200
24216
|
...l
|
|
@@ -24217,18 +24233,18 @@ function dR(t) {
|
|
|
24217
24233
|
...lR,
|
|
24218
24234
|
...r
|
|
24219
24235
|
},
|
|
24220
|
-
disabled:
|
|
24221
|
-
}), Y = w_(A, U), Z = !!R, j = Z && !v && _n(p) && _n(
|
|
24236
|
+
disabled: g.draggable
|
|
24237
|
+
}), Y = w_(A, U), Z = !!R, j = Z && !v && _n(p) && _n(h), M = !x && W, H = M && j ? B : null, K = j ? H ?? (s ?? S)({
|
|
24222
24238
|
rects: f,
|
|
24223
24239
|
activeNodeRect: N,
|
|
24224
24240
|
activeIndex: p,
|
|
24225
|
-
overIndex:
|
|
24241
|
+
overIndex: h,
|
|
24226
24242
|
index: y
|
|
24227
|
-
}) : null, ie = _n(p) && _n(
|
|
24243
|
+
}) : null, ie = _n(p) && _n(h) ? i({
|
|
24228
24244
|
id: o,
|
|
24229
24245
|
items: d,
|
|
24230
24246
|
activeIndex: p,
|
|
24231
|
-
overIndex:
|
|
24247
|
+
overIndex: h
|
|
24232
24248
|
}) : y, ne = R?.id, I = he({
|
|
24233
24249
|
activeId: ne,
|
|
24234
24250
|
items: d,
|
|
@@ -24280,7 +24296,7 @@ function dR(t) {
|
|
|
24280
24296
|
isDragging: W,
|
|
24281
24297
|
listeners: L,
|
|
24282
24298
|
node: w,
|
|
24283
|
-
overIndex:
|
|
24299
|
+
overIndex: h,
|
|
24284
24300
|
over: q,
|
|
24285
24301
|
setNodeRef: Y,
|
|
24286
24302
|
setActivatorNodeRef: _,
|
|
@@ -24364,7 +24380,7 @@ const pR = [ge.Down, ge.Right, ge.Up, ge.Left], mR = (t, e) => {
|
|
|
24364
24380
|
if (d === o?.id && c.length > 1 && (d = c[1].id), d != null) {
|
|
24365
24381
|
const u = i.get(r.id), p = i.get(d), m = p ? a.get(p.id) : null, v = p?.node.current;
|
|
24366
24382
|
if (v && m && u && p) {
|
|
24367
|
-
const
|
|
24383
|
+
const h = ba(v).some((E, C) => s[C] !== E), x = qv(u, p), S = fR(u, p), g = h || !x ? {
|
|
24368
24384
|
x: 0,
|
|
24369
24385
|
y: 0
|
|
24370
24386
|
} : {
|
|
@@ -24374,7 +24390,7 @@ const pR = [ge.Down, ge.Right, ge.Up, ge.Left], mR = (t, e) => {
|
|
|
24374
24390
|
x: m.left,
|
|
24375
24391
|
y: m.top
|
|
24376
24392
|
};
|
|
24377
|
-
return
|
|
24393
|
+
return g.x && g.y ? y : Wr(y, g);
|
|
24378
24394
|
}
|
|
24379
24395
|
}
|
|
24380
24396
|
}
|
|
@@ -24441,34 +24457,34 @@ function vR({
|
|
|
24441
24457
|
ve(() => {
|
|
24442
24458
|
v(t);
|
|
24443
24459
|
}, [t]);
|
|
24444
|
-
const [f,
|
|
24460
|
+
const [f, h] = pe(null), x = z_(
|
|
24445
24461
|
jm(_c),
|
|
24446
24462
|
jm(Ac, {
|
|
24447
24463
|
coordinateGetter: mR
|
|
24448
24464
|
})
|
|
24449
24465
|
), S = (E) => {
|
|
24450
24466
|
const C = m.find((w) => a(w) === E.active.id);
|
|
24451
|
-
C && u && u(C) ||
|
|
24452
|
-
},
|
|
24467
|
+
C && u && u(C) || h(E.active.id);
|
|
24468
|
+
}, g = (E) => {
|
|
24453
24469
|
const { active: C, over: w } = E;
|
|
24454
24470
|
if (!w || C.id === w.id) {
|
|
24455
|
-
|
|
24471
|
+
h(null);
|
|
24456
24472
|
return;
|
|
24457
24473
|
}
|
|
24458
24474
|
const O = m.find((P) => a(P) === C.id), A = m.findIndex((P) => a(P) === C.id), R = m.findIndex((P) => a(P) === w.id);
|
|
24459
24475
|
if (O && u && u(O)) {
|
|
24460
|
-
|
|
24476
|
+
h(null);
|
|
24461
24477
|
return;
|
|
24462
24478
|
}
|
|
24463
24479
|
if (p && !p(O, R, m)) {
|
|
24464
|
-
|
|
24480
|
+
h(null);
|
|
24465
24481
|
return;
|
|
24466
24482
|
}
|
|
24467
24483
|
if (A !== -1 && R !== -1) {
|
|
24468
24484
|
const P = Pc(m, A, R);
|
|
24469
24485
|
v(P), e(P);
|
|
24470
24486
|
}
|
|
24471
|
-
|
|
24487
|
+
h(null);
|
|
24472
24488
|
}, y = m.find((E) => a(E) === f), b = y ? m.findIndex((E) => a(E) === f) : -1;
|
|
24473
24489
|
return /* @__PURE__ */ G("div", { className: `w-full ${o}`, children: [
|
|
24474
24490
|
s && /* @__PURE__ */ k("div", { className: "mb-6", children: s() }),
|
|
@@ -24478,7 +24494,7 @@ function vR({
|
|
|
24478
24494
|
sensors: x,
|
|
24479
24495
|
collisionDetection: W_,
|
|
24480
24496
|
onDragStart: S,
|
|
24481
|
-
onDragEnd:
|
|
24497
|
+
onDragEnd: g,
|
|
24482
24498
|
children: [
|
|
24483
24499
|
/* @__PURE__ */ k(nR, { items: m.map(a), strategy: Ic, children: /* @__PURE__ */ k("div", { className: i, children: m.map((E, C) => /* @__PURE__ */ k(
|
|
24484
24500
|
hR,
|
|
@@ -24576,26 +24592,26 @@ function SR({
|
|
|
24576
24592
|
description: d = "Drag and drop pages to change their order.",
|
|
24577
24593
|
gridColsClass: u = "page-order-grid-cols"
|
|
24578
24594
|
}) {
|
|
24579
|
-
const [p, m] = T.useState(r), [v, f] = T.useState(!1),
|
|
24595
|
+
const [p, m] = T.useState(r), [v, f] = T.useState(!1), h = (O) => O.id;
|
|
24580
24596
|
T.useEffect(() => {
|
|
24581
24597
|
if (!t)
|
|
24582
24598
|
m(r), f(!1);
|
|
24583
24599
|
else if (!v)
|
|
24584
24600
|
m(r);
|
|
24585
24601
|
else {
|
|
24586
|
-
const O = new Set(p.map(
|
|
24587
|
-
(O.size !== r.length || r.some((R) => !O.has(
|
|
24602
|
+
const O = new Set(p.map(h));
|
|
24603
|
+
(O.size !== r.length || r.some((R) => !O.has(h(R)))) && m(r);
|
|
24588
24604
|
}
|
|
24589
24605
|
}, [r, t, v, p]);
|
|
24590
24606
|
const x = (O) => {
|
|
24591
24607
|
m(O), f(!0);
|
|
24592
24608
|
}, S = () => {
|
|
24593
24609
|
n(p), f(!1), e(!1);
|
|
24594
|
-
},
|
|
24610
|
+
}, g = () => {
|
|
24595
24611
|
m(r), f(!1), e(!1);
|
|
24596
24612
|
}, y = T.useMemo(() => (!i || typeof i != "function") && o ? Cc({ pageComponents: o, payload: s, setup: l }) : null, [i, o, s, l]), b = (O, A, R) => {
|
|
24597
24613
|
const P = O.strictPosition, z = !!a && !(P === "start" || P === "end"), U = (W) => {
|
|
24598
|
-
W.preventDefault(), W.stopPropagation(), a && (a(O), m((q) => q.filter((_) =>
|
|
24614
|
+
W.preventDefault(), W.stopPropagation(), a && (a(O), m((q) => q.filter((_) => h(_) !== h(O))), f(!0));
|
|
24599
24615
|
}, L = i && typeof i == "function" ? i(O, A, R) : y ? y(O, A, R) : /* @__PURE__ */ k(bR, { page: O, index: A, isDragging: R });
|
|
24600
24616
|
return /* @__PURE__ */ G("div", { className: "relative inline-block align-top", children: [
|
|
24601
24617
|
L,
|
|
@@ -24633,7 +24649,7 @@ function SR({
|
|
|
24633
24649
|
return !(A <= N || A >= z);
|
|
24634
24650
|
}, []);
|
|
24635
24651
|
return /* @__PURE__ */ k(mv, { open: t, onOpenChange: (O) => {
|
|
24636
|
-
O ||
|
|
24652
|
+
O || g();
|
|
24637
24653
|
}, children: /* @__PURE__ */ G(
|
|
24638
24654
|
bc,
|
|
24639
24655
|
{
|
|
@@ -24665,7 +24681,7 @@ function SR({
|
|
|
24665
24681
|
items: p,
|
|
24666
24682
|
onChange: x,
|
|
24667
24683
|
renderItem: b,
|
|
24668
|
-
keyExtractor:
|
|
24684
|
+
keyExtractor: h,
|
|
24669
24685
|
renderEmptyState: E,
|
|
24670
24686
|
gridColsClass: u,
|
|
24671
24687
|
className: "pb-4",
|
|
@@ -24678,7 +24694,7 @@ function SR({
|
|
|
24678
24694
|
je,
|
|
24679
24695
|
{
|
|
24680
24696
|
variant: "outline",
|
|
24681
|
-
onClick:
|
|
24697
|
+
onClick: g,
|
|
24682
24698
|
children: "Cancel"
|
|
24683
24699
|
}
|
|
24684
24700
|
),
|
|
@@ -24713,10 +24729,10 @@ function xR({
|
|
|
24713
24729
|
pageNo: m = 0,
|
|
24714
24730
|
totalPages: v,
|
|
24715
24731
|
measurementPageNo: f,
|
|
24716
|
-
measurementTotalPages:
|
|
24732
|
+
measurementTotalPages: h,
|
|
24717
24733
|
dataBinding: x,
|
|
24718
24734
|
flowPageIndex: S = 0,
|
|
24719
|
-
flowChunksByFlowId:
|
|
24735
|
+
flowChunksByFlowId: g,
|
|
24720
24736
|
measureFlow: y = !1,
|
|
24721
24737
|
flowMeasurementKey: b,
|
|
24722
24738
|
flowMeasurementVersion: E,
|
|
@@ -24742,9 +24758,9 @@ function xR({
|
|
|
24742
24758
|
() => ({
|
|
24743
24759
|
mode: "visible",
|
|
24744
24760
|
pageIndex: S,
|
|
24745
|
-
chunksByFlowId:
|
|
24761
|
+
chunksByFlowId: g
|
|
24746
24762
|
}),
|
|
24747
|
-
[S,
|
|
24763
|
+
[S, g]
|
|
24748
24764
|
), U = T.useCallback((W) => {
|
|
24749
24765
|
b && C?.(b, W);
|
|
24750
24766
|
}, [b, C]), L = T.useMemo(
|
|
@@ -24775,7 +24791,7 @@ function xR({
|
|
|
24775
24791
|
"data-uhuu-flow-measurement": "true",
|
|
24776
24792
|
children: /* @__PURE__ */ k(rl, { setup: c, children: /* @__PURE__ */ k(nl, { className: P, pageNo: m, "data-page-key": A, children: /* @__PURE__ */ k(jn.Provider, { value: L, children: N(
|
|
24777
24793
|
f ?? m,
|
|
24778
|
-
|
|
24794
|
+
h ?? v
|
|
24779
24795
|
) }) }) })
|
|
24780
24796
|
}
|
|
24781
24797
|
),
|
|
@@ -24826,7 +24842,7 @@ var wa = "Switch", [wR] = Ct(wa), [CR, kR] = wR(wa), Gv = T.forwardRef(
|
|
|
24826
24842
|
onCheckedChange: c,
|
|
24827
24843
|
form: d,
|
|
24828
24844
|
...u
|
|
24829
|
-
} = t, [p, m] = T.useState(null), v = we(e, (
|
|
24845
|
+
} = t, [p, m] = T.useState(null), v = we(e, (g) => m(g)), f = T.useRef(!1), h = p ? d || !!p.closest("form") : !0, [x, S] = Vr({
|
|
24830
24846
|
prop: a,
|
|
24831
24847
|
defaultProp: i ?? !1,
|
|
24832
24848
|
onChange: c,
|
|
@@ -24846,12 +24862,12 @@ var wa = "Switch", [wR] = Ct(wa), [CR, kR] = wR(wa), Gv = T.forwardRef(
|
|
|
24846
24862
|
value: l,
|
|
24847
24863
|
...u,
|
|
24848
24864
|
ref: v,
|
|
24849
|
-
onClick: de(t.onClick, (
|
|
24850
|
-
S((y) => !y),
|
|
24865
|
+
onClick: de(t.onClick, (g) => {
|
|
24866
|
+
S((y) => !y), h && (f.current = g.isPropagationStopped(), f.current || g.stopPropagation());
|
|
24851
24867
|
})
|
|
24852
24868
|
}
|
|
24853
24869
|
),
|
|
24854
|
-
|
|
24870
|
+
h && /* @__PURE__ */ k(
|
|
24855
24871
|
Uv,
|
|
24856
24872
|
{
|
|
24857
24873
|
control: p,
|
|
@@ -24979,11 +24995,11 @@ var Qv = ["PageUp", "PageDown"], Jv = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
24979
24995
|
inverted: m = !1,
|
|
24980
24996
|
form: v,
|
|
24981
24997
|
...f
|
|
24982
|
-
} = t,
|
|
24998
|
+
} = t, h = T.useRef(/* @__PURE__ */ new Set()), x = T.useRef(0), g = o === "horizontal" ? RR : PR, [y = [], b] = Vr({
|
|
24983
24999
|
prop: d,
|
|
24984
25000
|
defaultProp: c,
|
|
24985
25001
|
onChange: (R) => {
|
|
24986
|
-
[...
|
|
25002
|
+
[...h.current][x.current]?.focus(), u(R);
|
|
24987
25003
|
}
|
|
24988
25004
|
}), E = T.useRef(y);
|
|
24989
25005
|
function C(R) {
|
|
@@ -25018,12 +25034,12 @@ var Qv = ["PageUp", "PageDown"], Jv = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
25018
25034
|
min: n,
|
|
25019
25035
|
max: a,
|
|
25020
25036
|
valueIndexToChangeRef: x,
|
|
25021
|
-
thumbs:
|
|
25037
|
+
thumbs: h.current,
|
|
25022
25038
|
values: y,
|
|
25023
25039
|
orientation: o,
|
|
25024
25040
|
form: v,
|
|
25025
25041
|
children: /* @__PURE__ */ k(yl.Provider, { scope: t.__scopeSlider, children: /* @__PURE__ */ k(yl.Slot, { scope: t.__scopeSlider, children: /* @__PURE__ */ k(
|
|
25026
|
-
|
|
25042
|
+
g,
|
|
25027
25043
|
{
|
|
25028
25044
|
"aria-disabled": s,
|
|
25029
25045
|
"data-disabled": s ? "" : void 0,
|
|
@@ -25070,10 +25086,10 @@ var [ny, ay] = ty(Cr, {
|
|
|
25070
25086
|
onSlideEnd: l,
|
|
25071
25087
|
onStepKeyDown: c,
|
|
25072
25088
|
...d
|
|
25073
|
-
} = t, [u, p] = T.useState(null), m = we(e, (
|
|
25074
|
-
function S(
|
|
25089
|
+
} = t, [u, p] = T.useState(null), m = we(e, (g) => p(g)), v = T.useRef(void 0), f = Wl(a), h = f === "ltr", x = h && !i || !h && i;
|
|
25090
|
+
function S(g) {
|
|
25075
25091
|
const y = v.current || u.getBoundingClientRect(), b = [0, y.width], C = Mc(b, x ? [r, n] : [n, r]);
|
|
25076
|
-
return v.current = y, C(
|
|
25092
|
+
return v.current = y, C(g - y.left);
|
|
25077
25093
|
}
|
|
25078
25094
|
return /* @__PURE__ */ k(
|
|
25079
25095
|
ny,
|
|
@@ -25094,20 +25110,20 @@ var [ny, ay] = ty(Cr, {
|
|
|
25094
25110
|
...d.style,
|
|
25095
25111
|
"--radix-slider-thumb-transform": "translateX(-50%)"
|
|
25096
25112
|
},
|
|
25097
|
-
onSlideStart: (
|
|
25098
|
-
const y = S(
|
|
25113
|
+
onSlideStart: (g) => {
|
|
25114
|
+
const y = S(g.clientX);
|
|
25099
25115
|
o?.(y);
|
|
25100
25116
|
},
|
|
25101
|
-
onSlideMove: (
|
|
25102
|
-
const y = S(
|
|
25117
|
+
onSlideMove: (g) => {
|
|
25118
|
+
const y = S(g.clientX);
|
|
25103
25119
|
s?.(y);
|
|
25104
25120
|
},
|
|
25105
25121
|
onSlideEnd: () => {
|
|
25106
25122
|
v.current = void 0, l?.();
|
|
25107
25123
|
},
|
|
25108
|
-
onStepKeyDown: (
|
|
25109
|
-
const b = ey[x ? "from-left" : "from-right"].includes(
|
|
25110
|
-
c?.({ event:
|
|
25124
|
+
onStepKeyDown: (g) => {
|
|
25125
|
+
const b = ey[x ? "from-left" : "from-right"].includes(g.key);
|
|
25126
|
+
c?.({ event: g, direction: b ? -1 : 1 });
|
|
25111
25127
|
}
|
|
25112
25128
|
}
|
|
25113
25129
|
)
|
|
@@ -25127,8 +25143,8 @@ var [ny, ay] = ty(Cr, {
|
|
|
25127
25143
|
...c
|
|
25128
25144
|
} = t, d = T.useRef(null), u = we(e, d), p = T.useRef(void 0), m = !a;
|
|
25129
25145
|
function v(f) {
|
|
25130
|
-
const
|
|
25131
|
-
return p.current =
|
|
25146
|
+
const h = p.current || d.current.getBoundingClientRect(), x = [0, h.height], g = Mc(x, m ? [n, r] : [r, n]);
|
|
25147
|
+
return p.current = h, g(f - h.top);
|
|
25132
25148
|
}
|
|
25133
25149
|
return /* @__PURE__ */ k(
|
|
25134
25150
|
ny,
|
|
@@ -25149,12 +25165,12 @@ var [ny, ay] = ty(Cr, {
|
|
|
25149
25165
|
"--radix-slider-thumb-transform": "translateY(50%)"
|
|
25150
25166
|
},
|
|
25151
25167
|
onSlideStart: (f) => {
|
|
25152
|
-
const
|
|
25153
|
-
i?.(
|
|
25168
|
+
const h = v(f.clientY);
|
|
25169
|
+
i?.(h);
|
|
25154
25170
|
},
|
|
25155
25171
|
onSlideMove: (f) => {
|
|
25156
|
-
const
|
|
25157
|
-
o?.(
|
|
25172
|
+
const h = v(f.clientY);
|
|
25173
|
+
o?.(h);
|
|
25158
25174
|
},
|
|
25159
25175
|
onSlideEnd: () => {
|
|
25160
25176
|
p.current = void 0, s?.();
|
|
@@ -25249,7 +25265,7 @@ var Sl = "SliderThumb", cy = T.forwardRef(
|
|
|
25249
25265
|
}
|
|
25250
25266
|
), IR = T.forwardRef(
|
|
25251
25267
|
(t, e) => {
|
|
25252
|
-
const { __scopeSlider: r, index: n, name: a, ...i } = t, o = Ca(Sl, r), s = ay(Sl, r), [l, c] = T.useState(null), d = we(e, (S) => c(S)), u = l ? o.form || !!l.closest("form") : !0, p = Kl(l), m = o.values[n], v = m === void 0 ? 0 : uy(m, o.min, o.max), f = DR(n, o.values.length),
|
|
25268
|
+
const { __scopeSlider: r, index: n, name: a, ...i } = t, o = Ca(Sl, r), s = ay(Sl, r), [l, c] = T.useState(null), d = we(e, (S) => c(S)), u = l ? o.form || !!l.closest("form") : !0, p = Kl(l), m = o.values[n], v = m === void 0 ? 0 : uy(m, o.min, o.max), f = DR(n, o.values.length), h = p?.[s.size], x = h ? LR(h, v, s.direction) : 0;
|
|
25253
25269
|
return T.useEffect(() => {
|
|
25254
25270
|
if (l)
|
|
25255
25271
|
return o.thumbs.add(l), () => {
|
|
@@ -25659,26 +25675,26 @@ function aP({
|
|
|
25659
25675
|
onDuplicate: u,
|
|
25660
25676
|
onDelete: p
|
|
25661
25677
|
}) {
|
|
25662
|
-
const [m, v] = pe(!1), [f,
|
|
25678
|
+
const [m, v] = pe(!1), [f, h] = pe(!1), [x, S] = pe(t), g = he(null);
|
|
25663
25679
|
ve(() => {
|
|
25664
25680
|
S(t);
|
|
25665
25681
|
}, [t]), ve(() => {
|
|
25666
25682
|
f && setTimeout(() => {
|
|
25667
|
-
|
|
25683
|
+
g.current?.focus(), g.current?.select();
|
|
25668
25684
|
}, 10);
|
|
25669
25685
|
}, [f]);
|
|
25670
25686
|
const y = () => {
|
|
25671
25687
|
const C = x.trim();
|
|
25672
|
-
C && C !== t && s?.(C),
|
|
25688
|
+
C && C !== t && s?.(C), h(!1);
|
|
25673
25689
|
}, b = r || n || a || i || o, E = e || b;
|
|
25674
25690
|
return f ? /* @__PURE__ */ k(
|
|
25675
25691
|
"input",
|
|
25676
25692
|
{
|
|
25677
|
-
ref:
|
|
25693
|
+
ref: g,
|
|
25678
25694
|
value: x,
|
|
25679
25695
|
onChange: (C) => S(C.target.value),
|
|
25680
25696
|
onKeyDown: (C) => {
|
|
25681
|
-
C.key === "Enter" && y(), C.key === "Escape" && (S(t),
|
|
25697
|
+
C.key === "Enter" && y(), C.key === "Escape" && (S(t), h(!1)), C.stopPropagation();
|
|
25682
25698
|
},
|
|
25683
25699
|
onBlur: y,
|
|
25684
25700
|
className: "text-xs font-medium text-gray-800 bg-white border border-blue-400 rounded-md px-2 py-1 focus:outline-none focus:ring-2 focus:ring-blue-400/30 max-w-[140px] h-7",
|
|
@@ -25698,7 +25714,7 @@ function aP({
|
|
|
25698
25714
|
) }),
|
|
25699
25715
|
/* @__PURE__ */ G(br, { className: "min-w-44 p-1", align: "start", children: [
|
|
25700
25716
|
e && /* @__PURE__ */ G(Qe, { onSelect: (C) => {
|
|
25701
|
-
C.preventDefault(), v(!1),
|
|
25717
|
+
C.preventDefault(), v(!1), h(!0);
|
|
25702
25718
|
}, children: [
|
|
25703
25719
|
/* @__PURE__ */ k(S0, { className: "w-3.5 h-3.5 mr-2" }),
|
|
25704
25720
|
"Rename"
|
|
@@ -25742,20 +25758,20 @@ function iP(t) {
|
|
|
25742
25758
|
resolveNewItem: c,
|
|
25743
25759
|
notifyError: d,
|
|
25744
25760
|
pageFilter: u
|
|
25745
|
-
} = t, [p, m] = pe(e), [v, f] = pe(!1),
|
|
25761
|
+
} = t, [p, m] = pe(e), [v, f] = pe(!1), h = he(e);
|
|
25746
25762
|
ve(() => {
|
|
25747
25763
|
try {
|
|
25748
|
-
const L = JSON.stringify(
|
|
25749
|
-
L !== W && (
|
|
25764
|
+
const L = JSON.stringify(h.current), W = JSON.stringify(e);
|
|
25765
|
+
L !== W && (h.current = e, m(e));
|
|
25750
25766
|
} catch {
|
|
25751
|
-
|
|
25767
|
+
h.current !== e && (h.current = e, m(e));
|
|
25752
25768
|
}
|
|
25753
25769
|
}, [e]);
|
|
25754
25770
|
const x = Te(Qr), S = be((L) => {
|
|
25755
25771
|
m(L);
|
|
25756
25772
|
const W = Wg(L, l);
|
|
25757
25773
|
x?.mergePageEditorState && x.mergePageEditorState(L, l), a?.(W), n?.(L, W);
|
|
25758
|
-
}, [n, a, l, x]),
|
|
25774
|
+
}, [n, a, l, x]), g = oe(() => {
|
|
25759
25775
|
const L = /* @__PURE__ */ new Map();
|
|
25760
25776
|
return p.forEach((W) => {
|
|
25761
25777
|
const q = W.templateId ?? W.id;
|
|
@@ -25766,12 +25782,12 @@ function iP(t) {
|
|
|
25766
25782
|
}), L;
|
|
25767
25783
|
}, [p]), y = oe(() => r.filter((L) => {
|
|
25768
25784
|
if (L.kind === "page") {
|
|
25769
|
-
const Z = L, j = Z.templateId ?? Z.id, M =
|
|
25785
|
+
const Z = L, j = Z.templateId ?? Z.id, M = g.get(j) ?? 0, H = Z.repeatable ?? !1, $ = Z.maxInstances ?? null;
|
|
25770
25786
|
return !(!H && M > 0 || $ !== null && M >= $);
|
|
25771
25787
|
}
|
|
25772
|
-
const W = L, q = W.templateId ?? W.id, _ =
|
|
25788
|
+
const W = L, q = W.templateId ?? W.id, _ = g.get(q) ?? 0, B = W.repeatable ?? !1, Y = W.maxInstances ?? null;
|
|
25773
25789
|
return !(!B && _ > 0 || B && Y !== null && _ >= Y);
|
|
25774
|
-
}), [r,
|
|
25790
|
+
}), [r, g]), b = oe(() => yt(p), [p]), E = be(async (L, W) => {
|
|
25775
25791
|
const q = ($) => $ ? typeof $ == "string" ? $ : $.mode ?? "optional" : "none", _ = ($, K) => {
|
|
25776
25792
|
if (!$) return [];
|
|
25777
25793
|
if (Array.isArray($)) return $;
|
|
@@ -25944,15 +25960,15 @@ function oP({
|
|
|
25944
25960
|
return be(
|
|
25945
25961
|
(s, l) => {
|
|
25946
25962
|
if (!s) return {};
|
|
25947
|
-
const c = s.id, d = i.findIndex((
|
|
25948
|
-
const
|
|
25949
|
-
x < 1 || ([
|
|
25963
|
+
const c = s.id, d = i.findIndex((h) => h.id === c), u = d !== -1, p = u && d > 0 ? () => {
|
|
25964
|
+
const h = [...t], x = h.findIndex((S) => S.id === c);
|
|
25965
|
+
x < 1 || ([h[x - 1], h[x]] = [h[x], h[x - 1]], e(h));
|
|
25950
25966
|
} : void 0, m = u && d < i.length - 1 ? () => {
|
|
25951
|
-
const
|
|
25952
|
-
x < 0 || x >=
|
|
25967
|
+
const h = [...t], x = h.findIndex((S) => S.id === c);
|
|
25968
|
+
x < 0 || x >= h.length - 1 || ([h[x], h[x + 1]] = [h[x + 1], h[x]], e(h));
|
|
25953
25969
|
} : void 0, v = u && s.repeatable ? () => {
|
|
25954
|
-
const x = { ...t.find((y) => y.id === c) ?? s, id: `${c}_copy_${Date.now()}` }, S = [...t],
|
|
25955
|
-
S.splice(
|
|
25970
|
+
const x = { ...t.find((y) => y.id === c) ?? s, id: `${c}_copy_${Date.now()}` }, S = [...t], g = S.findIndex((y) => y.id === c);
|
|
25971
|
+
S.splice(g < 0 ? S.length : g + 1, 0, x), e(S);
|
|
25956
25972
|
} : void 0;
|
|
25957
25973
|
return { onAddPage: l && r.length > 0 ? () => {
|
|
25958
25974
|
n({ mode: "before", anchorId: l }), a();
|
|
@@ -26002,11 +26018,11 @@ function lP({
|
|
|
26002
26018
|
return m;
|
|
26003
26019
|
}, [i, t]), c = be((m, v) => {
|
|
26004
26020
|
s.has(m) && a((f) => {
|
|
26005
|
-
const
|
|
26006
|
-
return f.layoutKey === r &&
|
|
26021
|
+
const h = f.layoutKey === r ? f.layouts : {}, x = h[m] ?? { flows: {} }, S = x.flows[v.flowId], g = S ? JSON.stringify(S) : "", y = JSON.stringify(v.chunks);
|
|
26022
|
+
return f.layoutKey === r && g === y ? f : {
|
|
26007
26023
|
layoutKey: r,
|
|
26008
26024
|
layouts: {
|
|
26009
|
-
...
|
|
26025
|
+
...h,
|
|
26010
26026
|
[m]: {
|
|
26011
26027
|
flows: {
|
|
26012
26028
|
...x.flows,
|
|
@@ -26159,8 +26175,8 @@ const Jm = (t, e, r = !1, n) => {
|
|
|
26159
26175
|
} = t, s = uP(r), l = /* @__PURE__ */ new Map();
|
|
26160
26176
|
s.forEach((f) => l.set(f.id, f));
|
|
26161
26177
|
const c = n.length ? n : Object.keys(a), d = { ...i };
|
|
26162
|
-
Object.entries(a).forEach(([f,
|
|
26163
|
-
|
|
26178
|
+
Object.entries(a).forEach(([f, h]) => {
|
|
26179
|
+
h.component && (d[f] = h.component);
|
|
26164
26180
|
});
|
|
26165
26181
|
const u = e.map((f) => {
|
|
26166
26182
|
if (typeof f == "string") {
|
|
@@ -26183,21 +26199,21 @@ const Jm = (t, e, r = !1, n) => {
|
|
|
26183
26199
|
strictPosition: f.strictPosition
|
|
26184
26200
|
})), v = [
|
|
26185
26201
|
...c.filter((f) => a?.[f]?.allowAsSinglePage !== !1).map((f) => {
|
|
26186
|
-
const
|
|
26202
|
+
const h = a?.[f];
|
|
26187
26203
|
return {
|
|
26188
26204
|
kind: "page",
|
|
26189
26205
|
id: f,
|
|
26190
26206
|
// Template ID
|
|
26191
26207
|
templateId: f,
|
|
26192
|
-
componentKey:
|
|
26193
|
-
label:
|
|
26194
|
-
className:
|
|
26195
|
-
repeatable:
|
|
26196
|
-
maxInstances:
|
|
26197
|
-
thumbnail:
|
|
26198
|
-
integration:
|
|
26199
|
-
strictPosition:
|
|
26200
|
-
hasFlow:
|
|
26208
|
+
componentKey: h?.componentKey ?? f,
|
|
26209
|
+
label: h?.label,
|
|
26210
|
+
className: h?.className,
|
|
26211
|
+
repeatable: h?.repeatable ?? !1,
|
|
26212
|
+
maxInstances: h?.maxInstances ?? null,
|
|
26213
|
+
thumbnail: h?.thumbnail,
|
|
26214
|
+
integration: h?.integration,
|
|
26215
|
+
strictPosition: h?.strictPosition,
|
|
26216
|
+
hasFlow: h?.hasFlow
|
|
26201
26217
|
};
|
|
26202
26218
|
}),
|
|
26203
26219
|
...p
|
|
@@ -26513,10 +26529,10 @@ function tf({
|
|
|
26513
26529
|
reorderDescription: m = "Drag and drop to reorder. Groups move as a single unit.",
|
|
26514
26530
|
stateKey: v = Qt,
|
|
26515
26531
|
onItemsChange: f,
|
|
26516
|
-
onStateChange:
|
|
26532
|
+
onStateChange: h,
|
|
26517
26533
|
resolveNewItem: x,
|
|
26518
26534
|
pageFilter: S,
|
|
26519
|
-
printConfigs:
|
|
26535
|
+
printConfigs: g
|
|
26520
26536
|
}) {
|
|
26521
26537
|
const y = a ?? RP, { interactive: b, setInteractive: E, enableDevTools: C } = Ml(), w = Dl(), [O, A] = pe(null), [R, P] = pe(null), [N, z] = pe(void 0), [U, L] = pe(0), [W, q] = pe(0), _ = O ?? S, B = oe(() => R ? { ...y, ...R } : y, [y, R]), Y = Te(Qr), Z = Y?.payload ?? n, [j, M] = pe(!1), H = B?.preview ?? "single_page", $ = oe(
|
|
26522
26538
|
() => H === "two_pages" ? { ...B, preview: "single_page" } : B,
|
|
@@ -26549,7 +26565,7 @@ function tf({
|
|
|
26549
26565
|
setup: y,
|
|
26550
26566
|
stateKey: v,
|
|
26551
26567
|
onItemsChange: f,
|
|
26552
|
-
onStateChange:
|
|
26568
|
+
onStateChange: h,
|
|
26553
26569
|
resolveNewItem: x,
|
|
26554
26570
|
notifyError: o
|
|
26555
26571
|
}), At = be((D, re) => re ? `${re.id}/${D.id}` : D.id, []), er = oe(() => {
|
|
@@ -26763,7 +26779,7 @@ function tf({
|
|
|
26763
26779
|
C && /* @__PURE__ */ k(
|
|
26764
26780
|
_P,
|
|
26765
26781
|
{
|
|
26766
|
-
modes:
|
|
26782
|
+
modes: g,
|
|
26767
26783
|
selectedMode: N,
|
|
26768
26784
|
onModeChange: (D, re) => {
|
|
26769
26785
|
z(D), A(re.filter ?? null), P(re.pageFormat ?? null), L((ce) => ce + 1);
|
|
@@ -27003,9 +27019,9 @@ function NP(t) {
|
|
|
27003
27019
|
} catch (O) {
|
|
27004
27020
|
return console.error(`[PageEditor] Error evaluating pageComponentKeys for group ${w.id}:`, O), w;
|
|
27005
27021
|
}
|
|
27006
|
-
}), f = new Set(n.initialItems.map((y) => y.id)),
|
|
27022
|
+
}), f = new Set(n.initialItems.map((y) => y.id)), h = v.filter((y) => f.has(y.id)), x = yt(h), S = yt(n.initialItems);
|
|
27007
27023
|
if (!Array.from(f).some(
|
|
27008
|
-
(y) => !
|
|
27024
|
+
(y) => !h.some((b) => b.id === y)
|
|
27009
27025
|
) && x !== S) {
|
|
27010
27026
|
const y = v.filter((O) => {
|
|
27011
27027
|
if (O.kind !== "group") return !f.has(O.id);
|
|
@@ -27152,8 +27168,8 @@ function BP(t) {
|
|
|
27152
27168
|
const v = gr({ dialog: m }, { page: { paginationType: "static" } });
|
|
27153
27169
|
if (v.onClick) {
|
|
27154
27170
|
const f = v.onClick;
|
|
27155
|
-
v.onClick = (
|
|
27156
|
-
|
|
27171
|
+
v.onClick = (h) => {
|
|
27172
|
+
h.stopPropagation(), f(h);
|
|
27157
27173
|
};
|
|
27158
27174
|
}
|
|
27159
27175
|
return v;
|