@kaushalparajuli/react-crud-ui 1.1.13 → 1.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +51 -51
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +658 -649
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var Ev = (t, n, r) => n in t ? kv(t, n, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var Ee = (t, n, r) => Ev(t, typeof n != "symbol" ? n + "" : n, r);
|
|
4
4
|
import { jsx as w, jsxs as Q, Fragment as Nt } from "react/jsx-runtime";
|
|
5
5
|
import * as v from "react";
|
|
6
|
-
import ve, { forwardRef as af, createElement as Nl, useLayoutEffect as lf, useState as bn, createContext as Vo, useContext as $o, useCallback as
|
|
6
|
+
import ve, { forwardRef as af, createElement as Nl, useLayoutEffect as lf, useState as bn, createContext as Vo, useContext as $o, useCallback as ht, useRef as lo, useEffect as Nv, useMemo as co } from "react";
|
|
7
7
|
import * as ys from "react-dom";
|
|
8
8
|
import Tv from "react-dom";
|
|
9
9
|
import { useNavigate as uc, useSearchParams as Mv, useLocation as Wo, useParams as cf, Outlet as uf, Link as kr } from "react-router-dom";
|
|
@@ -2530,7 +2530,7 @@ const wb = af(
|
|
|
2530
2530
|
* This source code is licensed under the ISC license.
|
|
2531
2531
|
* See the LICENSE file in the root directory of this source tree.
|
|
2532
2532
|
*/
|
|
2533
|
-
const
|
|
2533
|
+
const Qe = (t, n) => {
|
|
2534
2534
|
const r = af(
|
|
2535
2535
|
({ className: i, ...s }, o) => Nl(wb, {
|
|
2536
2536
|
ref: o,
|
|
@@ -2547,7 +2547,7 @@ const Ke = (t, n) => {
|
|
|
2547
2547
|
* This source code is licensed under the ISC license.
|
|
2548
2548
|
* See the LICENSE file in the root directory of this source tree.
|
|
2549
2549
|
*/
|
|
2550
|
-
const xb =
|
|
2550
|
+
const xb = Qe("ArrowDown", [
|
|
2551
2551
|
["path", { d: "M12 5v14", key: "s699le" }],
|
|
2552
2552
|
["path", { d: "m19 12-7 7-7-7", key: "1idqje" }]
|
|
2553
2553
|
]);
|
|
@@ -2557,7 +2557,7 @@ const xb = Ke("ArrowDown", [
|
|
|
2557
2557
|
* This source code is licensed under the ISC license.
|
|
2558
2558
|
* See the LICENSE file in the root directory of this source tree.
|
|
2559
2559
|
*/
|
|
2560
|
-
const Bn =
|
|
2560
|
+
const Bn = Qe("ArrowLeft", [
|
|
2561
2561
|
["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
|
|
2562
2562
|
["path", { d: "M19 12H5", key: "x3x0zl" }]
|
|
2563
2563
|
]);
|
|
@@ -2567,7 +2567,7 @@ const Bn = Ke("ArrowLeft", [
|
|
|
2567
2567
|
* This source code is licensed under the ISC license.
|
|
2568
2568
|
* See the LICENSE file in the root directory of this source tree.
|
|
2569
2569
|
*/
|
|
2570
|
-
const _b =
|
|
2570
|
+
const _b = Qe("ArrowUpDown", [
|
|
2571
2571
|
["path", { d: "m21 16-4 4-4-4", key: "f6ql7i" }],
|
|
2572
2572
|
["path", { d: "M17 20V4", key: "1ejh1v" }],
|
|
2573
2573
|
["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
|
|
@@ -2579,7 +2579,7 @@ const _b = Ke("ArrowUpDown", [
|
|
|
2579
2579
|
* This source code is licensed under the ISC license.
|
|
2580
2580
|
* See the LICENSE file in the root directory of this source tree.
|
|
2581
2581
|
*/
|
|
2582
|
-
const Cb =
|
|
2582
|
+
const Cb = Qe("ArrowUp", [
|
|
2583
2583
|
["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }],
|
|
2584
2584
|
["path", { d: "M12 19V5", key: "x0mq9r" }]
|
|
2585
2585
|
]);
|
|
@@ -2589,7 +2589,7 @@ const Cb = Ke("ArrowUp", [
|
|
|
2589
2589
|
* This source code is licensed under the ISC license.
|
|
2590
2590
|
* See the LICENSE file in the root directory of this source tree.
|
|
2591
2591
|
*/
|
|
2592
|
-
const vo =
|
|
2592
|
+
const vo = Qe("Calendar", [
|
|
2593
2593
|
["path", { d: "M8 2v4", key: "1cmpym" }],
|
|
2594
2594
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
2595
2595
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
@@ -2601,14 +2601,14 @@ const vo = Ke("Calendar", [
|
|
|
2601
2601
|
* This source code is licensed under the ISC license.
|
|
2602
2602
|
* See the LICENSE file in the root directory of this source tree.
|
|
2603
2603
|
*/
|
|
2604
|
-
const _i =
|
|
2604
|
+
const _i = Qe("Check", [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]);
|
|
2605
2605
|
/**
|
|
2606
2606
|
* @license lucide-react v0.460.0 - ISC
|
|
2607
2607
|
*
|
|
2608
2608
|
* This source code is licensed under the ISC license.
|
|
2609
2609
|
* See the LICENSE file in the root directory of this source tree.
|
|
2610
2610
|
*/
|
|
2611
|
-
const qo =
|
|
2611
|
+
const qo = Qe("ChevronDown", [
|
|
2612
2612
|
["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]
|
|
2613
2613
|
]);
|
|
2614
2614
|
/**
|
|
@@ -2617,7 +2617,7 @@ const qo = Ke("ChevronDown", [
|
|
|
2617
2617
|
* This source code is licensed under the ISC license.
|
|
2618
2618
|
* See the LICENSE file in the root directory of this source tree.
|
|
2619
2619
|
*/
|
|
2620
|
-
const fc =
|
|
2620
|
+
const fc = Qe("ChevronLeft", [
|
|
2621
2621
|
["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]
|
|
2622
2622
|
]);
|
|
2623
2623
|
/**
|
|
@@ -2626,7 +2626,7 @@ const fc = Ke("ChevronLeft", [
|
|
|
2626
2626
|
* This source code is licensed under the ISC license.
|
|
2627
2627
|
* See the LICENSE file in the root directory of this source tree.
|
|
2628
2628
|
*/
|
|
2629
|
-
const Nr =
|
|
2629
|
+
const Nr = Qe("ChevronRight", [
|
|
2630
2630
|
["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
|
|
2631
2631
|
]);
|
|
2632
2632
|
/**
|
|
@@ -2635,14 +2635,14 @@ const Nr = Ke("ChevronRight", [
|
|
|
2635
2635
|
* This source code is licensed under the ISC license.
|
|
2636
2636
|
* See the LICENSE file in the root directory of this source tree.
|
|
2637
2637
|
*/
|
|
2638
|
-
const Sb =
|
|
2638
|
+
const Sb = Qe("ChevronUp", [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]]);
|
|
2639
2639
|
/**
|
|
2640
2640
|
* @license lucide-react v0.460.0 - ISC
|
|
2641
2641
|
*
|
|
2642
2642
|
* This source code is licensed under the ISC license.
|
|
2643
2643
|
* See the LICENSE file in the root directory of this source tree.
|
|
2644
2644
|
*/
|
|
2645
|
-
const kb =
|
|
2645
|
+
const kb = Qe("ChevronsLeft", [
|
|
2646
2646
|
["path", { d: "m11 17-5-5 5-5", key: "13zhaf" }],
|
|
2647
2647
|
["path", { d: "m18 17-5-5 5-5", key: "h8a8et" }]
|
|
2648
2648
|
]);
|
|
@@ -2652,7 +2652,7 @@ const kb = Ke("ChevronsLeft", [
|
|
|
2652
2652
|
* This source code is licensed under the ISC license.
|
|
2653
2653
|
* See the LICENSE file in the root directory of this source tree.
|
|
2654
2654
|
*/
|
|
2655
|
-
const Eb =
|
|
2655
|
+
const Eb = Qe("ChevronsRight", [
|
|
2656
2656
|
["path", { d: "m6 17 5-5-5-5", key: "xnjwq" }],
|
|
2657
2657
|
["path", { d: "m13 17 5-5-5-5", key: "17xmmf" }]
|
|
2658
2658
|
]);
|
|
@@ -2662,7 +2662,7 @@ const Eb = Ke("ChevronsRight", [
|
|
|
2662
2662
|
* This source code is licensed under the ISC license.
|
|
2663
2663
|
* See the LICENSE file in the root directory of this source tree.
|
|
2664
2664
|
*/
|
|
2665
|
-
const _f =
|
|
2665
|
+
const _f = Qe("CircleAlert", [
|
|
2666
2666
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
2667
2667
|
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
2668
2668
|
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
@@ -2673,7 +2673,7 @@ const _f = Ke("CircleAlert", [
|
|
|
2673
2673
|
* This source code is licensed under the ISC license.
|
|
2674
2674
|
* See the LICENSE file in the root directory of this source tree.
|
|
2675
2675
|
*/
|
|
2676
|
-
const Nb =
|
|
2676
|
+
const Nb = Qe("CircleCheckBig", [
|
|
2677
2677
|
["path", { d: "M21.801 10A10 10 0 1 1 17 3.335", key: "yps3ct" }],
|
|
2678
2678
|
["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
|
|
2679
2679
|
]);
|
|
@@ -2683,7 +2683,7 @@ const Nb = Ke("CircleCheckBig", [
|
|
|
2683
2683
|
* This source code is licensed under the ISC license.
|
|
2684
2684
|
* See the LICENSE file in the root directory of this source tree.
|
|
2685
2685
|
*/
|
|
2686
|
-
const Tb =
|
|
2686
|
+
const Tb = Qe("CircleCheck", [
|
|
2687
2687
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
2688
2688
|
["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
|
|
2689
2689
|
]);
|
|
@@ -2693,7 +2693,7 @@ const Tb = Ke("CircleCheck", [
|
|
|
2693
2693
|
* This source code is licensed under the ISC license.
|
|
2694
2694
|
* See the LICENSE file in the root directory of this source tree.
|
|
2695
2695
|
*/
|
|
2696
|
-
const Cf =
|
|
2696
|
+
const Cf = Qe("CirclePlus", [
|
|
2697
2697
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
2698
2698
|
["path", { d: "M8 12h8", key: "1wcyev" }],
|
|
2699
2699
|
["path", { d: "M12 8v8", key: "napkw2" }]
|
|
@@ -2704,7 +2704,7 @@ const Cf = Ke("CirclePlus", [
|
|
|
2704
2704
|
* This source code is licensed under the ISC license.
|
|
2705
2705
|
* See the LICENSE file in the root directory of this source tree.
|
|
2706
2706
|
*/
|
|
2707
|
-
const Sf =
|
|
2707
|
+
const Sf = Qe("CircleX", [
|
|
2708
2708
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
2709
2709
|
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
|
|
2710
2710
|
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
@@ -2715,7 +2715,7 @@ const Sf = Ke("CircleX", [
|
|
|
2715
2715
|
* This source code is licensed under the ISC license.
|
|
2716
2716
|
* See the LICENSE file in the root directory of this source tree.
|
|
2717
2717
|
*/
|
|
2718
|
-
const Mb =
|
|
2718
|
+
const Mb = Qe("Circle", [
|
|
2719
2719
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]
|
|
2720
2720
|
]);
|
|
2721
2721
|
/**
|
|
@@ -2724,7 +2724,7 @@ const Mb = Ke("Circle", [
|
|
|
2724
2724
|
* This source code is licensed under the ISC license.
|
|
2725
2725
|
* See the LICENSE file in the root directory of this source tree.
|
|
2726
2726
|
*/
|
|
2727
|
-
const Ab =
|
|
2727
|
+
const Ab = Qe("Copy", [
|
|
2728
2728
|
["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
|
|
2729
2729
|
["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
|
|
2730
2730
|
]);
|
|
@@ -2734,7 +2734,7 @@ const Ab = Ke("Copy", [
|
|
|
2734
2734
|
* This source code is licensed under the ISC license.
|
|
2735
2735
|
* See the LICENSE file in the root directory of this source tree.
|
|
2736
2736
|
*/
|
|
2737
|
-
const Db =
|
|
2737
|
+
const Db = Qe("Download", [
|
|
2738
2738
|
["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
|
|
2739
2739
|
["polyline", { points: "7 10 12 15 17 10", key: "2ggqvy" }],
|
|
2740
2740
|
["line", { x1: "12", x2: "12", y1: "15", y2: "3", key: "1vk2je" }]
|
|
@@ -2745,7 +2745,7 @@ const Db = Ke("Download", [
|
|
|
2745
2745
|
* This source code is licensed under the ISC license.
|
|
2746
2746
|
* See the LICENSE file in the root directory of this source tree.
|
|
2747
2747
|
*/
|
|
2748
|
-
const Rb =
|
|
2748
|
+
const Rb = Qe("EllipsisVertical", [
|
|
2749
2749
|
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
2750
2750
|
["circle", { cx: "12", cy: "5", r: "1", key: "gxeob9" }],
|
|
2751
2751
|
["circle", { cx: "12", cy: "19", r: "1", key: "lyex9k" }]
|
|
@@ -2756,7 +2756,7 @@ const Rb = Ke("EllipsisVertical", [
|
|
|
2756
2756
|
* This source code is licensed under the ISC license.
|
|
2757
2757
|
* See the LICENSE file in the root directory of this source tree.
|
|
2758
2758
|
*/
|
|
2759
|
-
const Lb =
|
|
2759
|
+
const Lb = Qe("Ellipsis", [
|
|
2760
2760
|
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
2761
2761
|
["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
|
|
2762
2762
|
["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
|
|
@@ -2767,7 +2767,7 @@ const Lb = Ke("Ellipsis", [
|
|
|
2767
2767
|
* This source code is licensed under the ISC license.
|
|
2768
2768
|
* See the LICENSE file in the root directory of this source tree.
|
|
2769
2769
|
*/
|
|
2770
|
-
const Ob =
|
|
2770
|
+
const Ob = Qe("EyeOff", [
|
|
2771
2771
|
[
|
|
2772
2772
|
"path",
|
|
2773
2773
|
{
|
|
@@ -2791,7 +2791,7 @@ const Ob = Ke("EyeOff", [
|
|
|
2791
2791
|
* This source code is licensed under the ISC license.
|
|
2792
2792
|
* See the LICENSE file in the root directory of this source tree.
|
|
2793
2793
|
*/
|
|
2794
|
-
const kf =
|
|
2794
|
+
const kf = Qe("Eye", [
|
|
2795
2795
|
[
|
|
2796
2796
|
"path",
|
|
2797
2797
|
{
|
|
@@ -2807,7 +2807,7 @@ const kf = Ke("Eye", [
|
|
|
2807
2807
|
* This source code is licensed under the ISC license.
|
|
2808
2808
|
* See the LICENSE file in the root directory of this source tree.
|
|
2809
2809
|
*/
|
|
2810
|
-
const hu =
|
|
2810
|
+
const hu = Qe("FileQuestion", [
|
|
2811
2811
|
["path", { d: "M12 17h.01", key: "p32p05" }],
|
|
2812
2812
|
["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z", key: "1mlx9k" }],
|
|
2813
2813
|
["path", { d: "M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3", key: "mhlwft" }]
|
|
@@ -2818,7 +2818,7 @@ const hu = Ke("FileQuestion", [
|
|
|
2818
2818
|
* This source code is licensed under the ISC license.
|
|
2819
2819
|
* See the LICENSE file in the root directory of this source tree.
|
|
2820
2820
|
*/
|
|
2821
|
-
const Ib =
|
|
2821
|
+
const Ib = Qe("Hash", [
|
|
2822
2822
|
["line", { x1: "4", x2: "20", y1: "9", y2: "9", key: "4lhtct" }],
|
|
2823
2823
|
["line", { x1: "4", x2: "20", y1: "15", y2: "15", key: "vyu0kd" }],
|
|
2824
2824
|
["line", { x1: "10", x2: "8", y1: "3", y2: "21", key: "1ggp8o" }],
|
|
@@ -2830,7 +2830,7 @@ const Ib = Ke("Hash", [
|
|
|
2830
2830
|
* This source code is licensed under the ISC license.
|
|
2831
2831
|
* See the LICENSE file in the root directory of this source tree.
|
|
2832
2832
|
*/
|
|
2833
|
-
const bo =
|
|
2833
|
+
const bo = Qe("Info", [
|
|
2834
2834
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
2835
2835
|
["path", { d: "M12 16v-4", key: "1dtifu" }],
|
|
2836
2836
|
["path", { d: "M12 8h.01", key: "e9boi3" }]
|
|
@@ -2841,7 +2841,7 @@ const bo = Ke("Info", [
|
|
|
2841
2841
|
* This source code is licensed under the ISC license.
|
|
2842
2842
|
* See the LICENSE file in the root directory of this source tree.
|
|
2843
2843
|
*/
|
|
2844
|
-
const Kr =
|
|
2844
|
+
const Kr = Qe("LoaderCircle", [
|
|
2845
2845
|
["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]
|
|
2846
2846
|
]);
|
|
2847
2847
|
/**
|
|
@@ -2850,7 +2850,7 @@ const Kr = Ke("LoaderCircle", [
|
|
|
2850
2850
|
* This source code is licensed under the ISC license.
|
|
2851
2851
|
* See the LICENSE file in the root directory of this source tree.
|
|
2852
2852
|
*/
|
|
2853
|
-
const Pb =
|
|
2853
|
+
const Pb = Qe("Menu", [
|
|
2854
2854
|
["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }],
|
|
2855
2855
|
["line", { x1: "4", x2: "20", y1: "6", y2: "6", key: "1owob3" }],
|
|
2856
2856
|
["line", { x1: "4", x2: "20", y1: "18", y2: "18", key: "yk5zj1" }]
|
|
@@ -2861,7 +2861,7 @@ const Pb = Ke("Menu", [
|
|
|
2861
2861
|
* This source code is licensed under the ISC license.
|
|
2862
2862
|
* See the LICENSE file in the root directory of this source tree.
|
|
2863
2863
|
*/
|
|
2864
|
-
const Ef =
|
|
2864
|
+
const Ef = Qe("Pencil", [
|
|
2865
2865
|
[
|
|
2866
2866
|
"path",
|
|
2867
2867
|
{
|
|
@@ -2877,7 +2877,7 @@ const Ef = Ke("Pencil", [
|
|
|
2877
2877
|
* This source code is licensed under the ISC license.
|
|
2878
2878
|
* See the LICENSE file in the root directory of this source tree.
|
|
2879
2879
|
*/
|
|
2880
|
-
const Bb =
|
|
2880
|
+
const Bb = Qe("Plus", [
|
|
2881
2881
|
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
2882
2882
|
["path", { d: "M12 5v14", key: "s699le" }]
|
|
2883
2883
|
]);
|
|
@@ -2887,7 +2887,7 @@ const Bb = Ke("Plus", [
|
|
|
2887
2887
|
* This source code is licensed under the ISC license.
|
|
2888
2888
|
* See the LICENSE file in the root directory of this source tree.
|
|
2889
2889
|
*/
|
|
2890
|
-
const yo =
|
|
2890
|
+
const yo = Qe("RefreshCw", [
|
|
2891
2891
|
["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
|
|
2892
2892
|
["path", { d: "M21 3v5h-5", key: "1q7to0" }],
|
|
2893
2893
|
["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
|
|
@@ -2899,7 +2899,7 @@ const yo = Ke("RefreshCw", [
|
|
|
2899
2899
|
* This source code is licensed under the ISC license.
|
|
2900
2900
|
* See the LICENSE file in the root directory of this source tree.
|
|
2901
2901
|
*/
|
|
2902
|
-
const mu =
|
|
2902
|
+
const mu = Qe("Save", [
|
|
2903
2903
|
[
|
|
2904
2904
|
"path",
|
|
2905
2905
|
{
|
|
@@ -2916,7 +2916,7 @@ const mu = Ke("Save", [
|
|
|
2916
2916
|
* This source code is licensed under the ISC license.
|
|
2917
2917
|
* See the LICENSE file in the root directory of this source tree.
|
|
2918
2918
|
*/
|
|
2919
|
-
const hc =
|
|
2919
|
+
const hc = Qe("Search", [
|
|
2920
2920
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
2921
2921
|
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
|
2922
2922
|
]);
|
|
@@ -2926,7 +2926,7 @@ const hc = Ke("Search", [
|
|
|
2926
2926
|
* This source code is licensed under the ISC license.
|
|
2927
2927
|
* See the LICENSE file in the root directory of this source tree.
|
|
2928
2928
|
*/
|
|
2929
|
-
const Nf =
|
|
2929
|
+
const Nf = Qe("Trash2", [
|
|
2930
2930
|
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
|
2931
2931
|
["path", { d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6", key: "4alrt4" }],
|
|
2932
2932
|
["path", { d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2", key: "v07s0e" }],
|
|
@@ -2939,7 +2939,7 @@ const Nf = Ke("Trash2", [
|
|
|
2939
2939
|
* This source code is licensed under the ISC license.
|
|
2940
2940
|
* See the LICENSE file in the root directory of this source tree.
|
|
2941
2941
|
*/
|
|
2942
|
-
const zb =
|
|
2942
|
+
const zb = Qe("TriangleAlert", [
|
|
2943
2943
|
[
|
|
2944
2944
|
"path",
|
|
2945
2945
|
{
|
|
@@ -2956,7 +2956,7 @@ const zb = Ke("TriangleAlert", [
|
|
|
2956
2956
|
* This source code is licensed under the ISC license.
|
|
2957
2957
|
* See the LICENSE file in the root directory of this source tree.
|
|
2958
2958
|
*/
|
|
2959
|
-
const jn =
|
|
2959
|
+
const jn = Qe("X", [
|
|
2960
2960
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
2961
2961
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
2962
2962
|
]), ss = Uo(
|
|
@@ -4571,13 +4571,13 @@ function fy(t) {
|
|
|
4571
4571
|
}
|
|
4572
4572
|
var hy = v[" useId ".trim().toString()] || (() => {
|
|
4573
4573
|
}), my = 0;
|
|
4574
|
-
function
|
|
4574
|
+
function Qt(t) {
|
|
4575
4575
|
const [n, r] = v.useState(hy());
|
|
4576
4576
|
return It(() => {
|
|
4577
4577
|
r((i) => i ?? String(my++));
|
|
4578
4578
|
}, [t]), t || (n ? `radix-${n}` : "");
|
|
4579
4579
|
}
|
|
4580
|
-
const py = ["top", "right", "bottom", "left"], Dr = Math.min,
|
|
4580
|
+
const py = ["top", "right", "bottom", "left"], Dr = Math.min, on = Math.max, wo = Math.round, Gs = Math.floor, Yn = (t) => ({
|
|
4581
4581
|
x: t,
|
|
4582
4582
|
y: t
|
|
4583
4583
|
}), gy = {
|
|
@@ -4590,7 +4590,7 @@ const py = ["top", "right", "bottom", "left"], Dr = Math.min, rn = Math.max, wo
|
|
|
4590
4590
|
end: "start"
|
|
4591
4591
|
};
|
|
4592
4592
|
function Dl(t, n, r) {
|
|
4593
|
-
return
|
|
4593
|
+
return on(t, Dr(n, r));
|
|
4594
4594
|
}
|
|
4595
4595
|
function dr(t, n) {
|
|
4596
4596
|
return typeof t == "function" ? t(n) : t;
|
|
@@ -5180,8 +5180,8 @@ const Dy = function(t) {
|
|
|
5180
5180
|
const p = k - u.top - u.bottom, b = S - u.left - u.right, x = Dr(k - u[d], p), y = Dr(S - u[f], b), _ = !n.middlewareData.shift;
|
|
5181
5181
|
let E = x, M = y;
|
|
5182
5182
|
if ((r = n.middlewareData.shift) != null && r.enabled.x && (M = b), (i = n.middlewareData.shift) != null && i.enabled.y && (E = p), _ && !g) {
|
|
5183
|
-
const D =
|
|
5184
|
-
C ? M = S - 2 * (D !== 0 || I !== 0 ? D + I :
|
|
5183
|
+
const D = on(u.left, 0), I = on(u.right, 0), R = on(u.top, 0), O = on(u.bottom, 0);
|
|
5184
|
+
C ? M = S - 2 * (D !== 0 || I !== 0 ? D + I : on(u.left, u.right)) : E = k - 2 * (R !== 0 || O !== 0 ? R + O : on(u.top, u.bottom));
|
|
5185
5185
|
}
|
|
5186
5186
|
await a({
|
|
5187
5187
|
...n,
|
|
@@ -5203,7 +5203,7 @@ function Xo() {
|
|
|
5203
5203
|
function Oi(t) {
|
|
5204
5204
|
return eh(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
5205
5205
|
}
|
|
5206
|
-
function
|
|
5206
|
+
function cn(t) {
|
|
5207
5207
|
var n;
|
|
5208
5208
|
return (t == null || (n = t.ownerDocument) == null ? void 0 : n.defaultView) || window;
|
|
5209
5209
|
}
|
|
@@ -5212,16 +5212,16 @@ function Zn(t) {
|
|
|
5212
5212
|
return (n = (eh(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : n.documentElement;
|
|
5213
5213
|
}
|
|
5214
5214
|
function eh(t) {
|
|
5215
|
-
return Xo() ? t instanceof Node || t instanceof
|
|
5215
|
+
return Xo() ? t instanceof Node || t instanceof cn(t).Node : !1;
|
|
5216
5216
|
}
|
|
5217
5217
|
function Dn(t) {
|
|
5218
|
-
return Xo() ? t instanceof Element || t instanceof
|
|
5218
|
+
return Xo() ? t instanceof Element || t instanceof cn(t).Element : !1;
|
|
5219
5219
|
}
|
|
5220
5220
|
function Gn(t) {
|
|
5221
|
-
return Xo() ? t instanceof HTMLElement || t instanceof
|
|
5221
|
+
return Xo() ? t instanceof HTMLElement || t instanceof cn(t).HTMLElement : !1;
|
|
5222
5222
|
}
|
|
5223
5223
|
function Mu(t) {
|
|
5224
|
-
return !Xo() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof
|
|
5224
|
+
return !Xo() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof cn(t).ShadowRoot;
|
|
5225
5225
|
}
|
|
5226
5226
|
const Iy = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
5227
5227
|
function Cs(t) {
|
|
@@ -5271,7 +5271,7 @@ function Si(t) {
|
|
|
5271
5271
|
return Wy.has(Oi(t));
|
|
5272
5272
|
}
|
|
5273
5273
|
function Rn(t) {
|
|
5274
|
-
return
|
|
5274
|
+
return cn(t).getComputedStyle(t);
|
|
5275
5275
|
}
|
|
5276
5276
|
function Qo(t) {
|
|
5277
5277
|
return Dn(t) ? {
|
|
@@ -5301,7 +5301,7 @@ function th(t) {
|
|
|
5301
5301
|
function ds(t, n, r) {
|
|
5302
5302
|
var i;
|
|
5303
5303
|
n === void 0 && (n = []), r === void 0 && (r = !0);
|
|
5304
|
-
const s = th(t), o = s === ((i = t.ownerDocument) == null ? void 0 : i.body), l =
|
|
5304
|
+
const s = th(t), o = s === ((i = t.ownerDocument) == null ? void 0 : i.body), l = cn(s);
|
|
5305
5305
|
if (o) {
|
|
5306
5306
|
const c = Ll(l);
|
|
5307
5307
|
return n.concat(l, l.visualViewport || [], Cs(s) ? s : [], c && r ? ds(c) : []);
|
|
@@ -5341,14 +5341,14 @@ function bi(t) {
|
|
|
5341
5341
|
}
|
|
5342
5342
|
const Uy = /* @__PURE__ */ Yn(0);
|
|
5343
5343
|
function rh(t) {
|
|
5344
|
-
const n =
|
|
5344
|
+
const n = cn(t);
|
|
5345
5345
|
return !Sc() || !n.visualViewport ? Uy : {
|
|
5346
5346
|
x: n.visualViewport.offsetLeft,
|
|
5347
5347
|
y: n.visualViewport.offsetTop
|
|
5348
5348
|
};
|
|
5349
5349
|
}
|
|
5350
5350
|
function qy(t, n, r) {
|
|
5351
|
-
return n === void 0 && (n = !1), !r || n && r !==
|
|
5351
|
+
return n === void 0 && (n = !1), !r || n && r !== cn(t) ? !1 : n;
|
|
5352
5352
|
}
|
|
5353
5353
|
function Qr(t, n, r, i) {
|
|
5354
5354
|
n === void 0 && (n = !1), r === void 0 && (r = !1);
|
|
@@ -5358,11 +5358,11 @@ function Qr(t, n, r, i) {
|
|
|
5358
5358
|
const c = qy(o, r, i) ? rh(o) : Yn(0);
|
|
5359
5359
|
let a = (s.left + c.x) / l.x, h = (s.top + c.y) / l.y, u = s.width / l.x, m = s.height / l.y;
|
|
5360
5360
|
if (o) {
|
|
5361
|
-
const g =
|
|
5361
|
+
const g = cn(o), C = i && Dn(i) ? cn(i) : i;
|
|
5362
5362
|
let S = g, k = Ll(S);
|
|
5363
5363
|
for (; k && i && C !== S; ) {
|
|
5364
5364
|
const d = bi(k), f = k.getBoundingClientRect(), p = Rn(k), b = f.left + (k.clientLeft + parseFloat(p.paddingLeft)) * d.x, x = f.top + (k.clientTop + parseFloat(p.paddingTop)) * d.y;
|
|
5365
|
-
a *= d.x, h *= d.y, u *= d.x, m *= d.y, a += b, h += x, S =
|
|
5365
|
+
a *= d.x, h *= d.y, u *= d.x, m *= d.y, a += b, h += x, S = cn(k), k = Ll(S);
|
|
5366
5366
|
}
|
|
5367
5367
|
}
|
|
5368
5368
|
return _o({
|
|
@@ -5414,10 +5414,10 @@ function jy(t) {
|
|
|
5414
5414
|
return Array.from(t.getClientRects());
|
|
5415
5415
|
}
|
|
5416
5416
|
function Gy(t) {
|
|
5417
|
-
const n = Zn(t), r = Qo(t), i = t.ownerDocument.body, s =
|
|
5417
|
+
const n = Zn(t), r = Qo(t), i = t.ownerDocument.body, s = on(n.scrollWidth, n.clientWidth, i.scrollWidth, i.clientWidth), o = on(n.scrollHeight, n.clientHeight, i.scrollHeight, i.clientHeight);
|
|
5418
5418
|
let l = -r.scrollLeft + Jo(t);
|
|
5419
5419
|
const c = -r.scrollTop;
|
|
5420
|
-
return Rn(i).direction === "rtl" && (l +=
|
|
5420
|
+
return Rn(i).direction === "rtl" && (l += on(n.clientWidth, i.clientWidth) - s), {
|
|
5421
5421
|
width: s,
|
|
5422
5422
|
height: o,
|
|
5423
5423
|
x: l,
|
|
@@ -5426,7 +5426,7 @@ function Gy(t) {
|
|
|
5426
5426
|
}
|
|
5427
5427
|
const Au = 25;
|
|
5428
5428
|
function Zy(t, n) {
|
|
5429
|
-
const r =
|
|
5429
|
+
const r = cn(t), i = Zn(t), s = r.visualViewport;
|
|
5430
5430
|
let o = i.clientWidth, l = i.clientHeight, c = 0, a = 0;
|
|
5431
5431
|
if (s) {
|
|
5432
5432
|
o = s.width, l = s.height;
|
|
@@ -5500,7 +5500,7 @@ function Jy(t) {
|
|
|
5500
5500
|
} = t;
|
|
5501
5501
|
const l = [...r === "clippingAncestors" ? Ko(n) ? [] : Qy(n, this._c) : [].concat(r), i], c = l[0], a = l.reduce((h, u) => {
|
|
5502
5502
|
const m = Du(n, u, s);
|
|
5503
|
-
return h.top =
|
|
5503
|
+
return h.top = on(m.top, h.top), h.right = Dr(m.right, h.right), h.bottom = Dr(m.bottom, h.bottom), h.left = on(m.left, h.left), h;
|
|
5504
5504
|
}, Du(n, c, s));
|
|
5505
5505
|
return {
|
|
5506
5506
|
width: a.right - a.left,
|
|
@@ -5555,7 +5555,7 @@ function Ru(t, n) {
|
|
|
5555
5555
|
return Zn(t) === r && (r = r.ownerDocument.body), r;
|
|
5556
5556
|
}
|
|
5557
5557
|
function oh(t, n) {
|
|
5558
|
-
const r =
|
|
5558
|
+
const r = cn(t);
|
|
5559
5559
|
if (Ko(t))
|
|
5560
5560
|
return r;
|
|
5561
5561
|
if (!Gn(t)) {
|
|
@@ -5621,7 +5621,7 @@ function s5(t, n) {
|
|
|
5621
5621
|
return;
|
|
5622
5622
|
const S = Gs(m), k = Gs(s.clientWidth - (u + g)), d = Gs(s.clientHeight - (m + C)), f = Gs(u), b = {
|
|
5623
5623
|
rootMargin: -S + "px " + -k + "px " + -d + "px " + -f + "px",
|
|
5624
|
-
threshold:
|
|
5624
|
+
threshold: on(0, Dr(1, a)) || 1
|
|
5625
5625
|
};
|
|
5626
5626
|
let x = !0;
|
|
5627
5627
|
function y(_) {
|
|
@@ -6427,7 +6427,7 @@ var u7 = [
|
|
|
6427
6427
|
"span",
|
|
6428
6428
|
"svg",
|
|
6429
6429
|
"ul"
|
|
6430
|
-
],
|
|
6430
|
+
], fn = u7.reduce((t, n) => {
|
|
6431
6431
|
const r = /* @__PURE__ */ wh(`Primitive.${n}`), i = v.forwardRef((s, o) => {
|
|
6432
6432
|
const { asChild: l, ...c } = s, a = l ? r : n;
|
|
6433
6433
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ w(a, { ...c, ref: o });
|
|
@@ -7089,7 +7089,7 @@ var o6 = [" ", "Enter", "ArrowUp", "ArrowDown"], a6 = [" ", "Enter"], Jr = "Sele
|
|
|
7089
7089
|
onValueNodeChange: b,
|
|
7090
7090
|
valueNodeHasChildren: x,
|
|
7091
7091
|
onValueNodeHasChildrenChange: y,
|
|
7092
|
-
contentId:
|
|
7092
|
+
contentId: Qt(),
|
|
7093
7093
|
value: T,
|
|
7094
7094
|
onValueChange: D,
|
|
7095
7095
|
open: E,
|
|
@@ -7150,7 +7150,7 @@ var Rh = "SelectTrigger", Lh = v.forwardRef(
|
|
|
7150
7150
|
});
|
|
7151
7151
|
};
|
|
7152
7152
|
return /* @__PURE__ */ w(ks, { asChild: !0, ...o, children: /* @__PURE__ */ w(
|
|
7153
|
-
|
|
7153
|
+
fn.button,
|
|
7154
7154
|
{
|
|
7155
7155
|
type: "button",
|
|
7156
7156
|
role: "combobox",
|
|
@@ -7188,7 +7188,7 @@ var Oh = "SelectValue", Ih = v.forwardRef(
|
|
|
7188
7188
|
return It(() => {
|
|
7189
7189
|
h(u);
|
|
7190
7190
|
}, [h, u]), /* @__PURE__ */ w(
|
|
7191
|
-
|
|
7191
|
+
fn.span,
|
|
7192
7192
|
{
|
|
7193
7193
|
...c,
|
|
7194
7194
|
ref: m,
|
|
@@ -7202,7 +7202,7 @@ Ih.displayName = Oh;
|
|
|
7202
7202
|
var f6 = "SelectIcon", Ph = v.forwardRef(
|
|
7203
7203
|
(t, n) => {
|
|
7204
7204
|
const { __scopeSelect: r, children: i, ...s } = t;
|
|
7205
|
-
return /* @__PURE__ */ w(
|
|
7205
|
+
return /* @__PURE__ */ w(fn.span, { "aria-hidden": !0, ...s, ref: n, children: i || "▼" });
|
|
7206
7206
|
}
|
|
7207
7207
|
);
|
|
7208
7208
|
Ph.displayName = f6;
|
|
@@ -7480,7 +7480,7 @@ var g6 = "SelectItemAlignedPosition", Vh = v.forwardRef((t, n) => {
|
|
|
7480
7480
|
zIndex: x
|
|
7481
7481
|
},
|
|
7482
7482
|
children: /* @__PURE__ */ w(
|
|
7483
|
-
|
|
7483
|
+
fn.div,
|
|
7484
7484
|
{
|
|
7485
7485
|
...s,
|
|
7486
7486
|
ref: m,
|
|
@@ -7543,7 +7543,7 @@ var [b6, Tc] = Ii(ei, {}), Pl = "SelectViewport", $h = v.forwardRef(
|
|
|
7543
7543
|
}
|
|
7544
7544
|
),
|
|
7545
7545
|
/* @__PURE__ */ w(ia.Slot, { scope: r, children: /* @__PURE__ */ w(
|
|
7546
|
-
|
|
7546
|
+
fn.div,
|
|
7547
7547
|
{
|
|
7548
7548
|
"data-radix-select-viewport": "",
|
|
7549
7549
|
role: "presentation",
|
|
@@ -7584,15 +7584,15 @@ var [b6, Tc] = Ii(ei, {}), Pl = "SelectViewport", $h = v.forwardRef(
|
|
|
7584
7584
|
$h.displayName = Pl;
|
|
7585
7585
|
var Wh = "SelectGroup", [y6, w6] = Ii(Wh), Uh = v.forwardRef(
|
|
7586
7586
|
(t, n) => {
|
|
7587
|
-
const { __scopeSelect: r, ...i } = t, s =
|
|
7588
|
-
return /* @__PURE__ */ w(y6, { scope: r, id: s, children: /* @__PURE__ */ w(
|
|
7587
|
+
const { __scopeSelect: r, ...i } = t, s = Qt();
|
|
7588
|
+
return /* @__PURE__ */ w(y6, { scope: r, id: s, children: /* @__PURE__ */ w(fn.div, { role: "group", "aria-labelledby": s, ...i, ref: n }) });
|
|
7589
7589
|
}
|
|
7590
7590
|
);
|
|
7591
7591
|
Uh.displayName = Wh;
|
|
7592
7592
|
var qh = "SelectLabel", Yh = v.forwardRef(
|
|
7593
7593
|
(t, n) => {
|
|
7594
7594
|
const { __scopeSelect: r, ...i } = t, s = w6(qh, r);
|
|
7595
|
-
return /* @__PURE__ */ w(
|
|
7595
|
+
return /* @__PURE__ */ w(fn.div, { id: s.id, ...i, ref: n });
|
|
7596
7596
|
}
|
|
7597
7597
|
);
|
|
7598
7598
|
Yh.displayName = qh;
|
|
@@ -7610,7 +7610,7 @@ var So = "SelectItem", [x6, jh] = Ii(So), Gh = v.forwardRef(
|
|
|
7610
7610
|
var b;
|
|
7611
7611
|
return (b = a.itemRefCallback) == null ? void 0 : b.call(a, p, i, s);
|
|
7612
7612
|
}
|
|
7613
|
-
), k =
|
|
7613
|
+
), k = Qt(), d = v.useRef("touch"), f = () => {
|
|
7614
7614
|
s || (c.onValueChange(i), c.onOpenChange(!1));
|
|
7615
7615
|
};
|
|
7616
7616
|
if (i === "")
|
|
@@ -7636,7 +7636,7 @@ var So = "SelectItem", [x6, jh] = Ii(So), Gh = v.forwardRef(
|
|
|
7636
7636
|
disabled: s,
|
|
7637
7637
|
textValue: u,
|
|
7638
7638
|
children: /* @__PURE__ */ w(
|
|
7639
|
-
|
|
7639
|
+
fn.div,
|
|
7640
7640
|
{
|
|
7641
7641
|
role: "option",
|
|
7642
7642
|
"aria-labelledby": k,
|
|
@@ -7695,7 +7695,7 @@ var Zi = "SelectItemText", Zh = v.forwardRef(
|
|
|
7695
7695
|
[a.disabled, a.value, C]
|
|
7696
7696
|
), { onNativeOptionAdd: k, onNativeOptionRemove: d } = h;
|
|
7697
7697
|
return It(() => (k(S), () => d(S)), [k, d, S]), /* @__PURE__ */ Q(Nt, { children: [
|
|
7698
|
-
/* @__PURE__ */ w(
|
|
7698
|
+
/* @__PURE__ */ w(fn.span, { id: a.textId, ...o, ref: g }),
|
|
7699
7699
|
a.isSelected && l.valueNode && !l.valueNodeHasChildren ? ys.createPortal(o.children, l.valueNode) : null
|
|
7700
7700
|
] });
|
|
7701
7701
|
}
|
|
@@ -7704,7 +7704,7 @@ Zh.displayName = Zi;
|
|
|
7704
7704
|
var Xh = "SelectItemIndicator", Kh = v.forwardRef(
|
|
7705
7705
|
(t, n) => {
|
|
7706
7706
|
const { __scopeSelect: r, ...i } = t;
|
|
7707
|
-
return jh(Xh, r).isSelected ? /* @__PURE__ */ w(
|
|
7707
|
+
return jh(Xh, r).isSelected ? /* @__PURE__ */ w(fn.span, { "aria-hidden": !0, ...i, ref: n }) : null;
|
|
7708
7708
|
}
|
|
7709
7709
|
);
|
|
7710
7710
|
Kh.displayName = Xh;
|
|
@@ -7765,7 +7765,7 @@ var e1 = v.forwardRef((t, n) => {
|
|
|
7765
7765
|
const h = c().find((m) => m.ref.current === document.activeElement);
|
|
7766
7766
|
(u = h == null ? void 0 : h.ref.current) == null || u.scrollIntoView({ block: "nearest" });
|
|
7767
7767
|
}, [c]), /* @__PURE__ */ w(
|
|
7768
|
-
|
|
7768
|
+
fn.div,
|
|
7769
7769
|
{
|
|
7770
7770
|
"aria-hidden": !0,
|
|
7771
7771
|
...s,
|
|
@@ -7786,7 +7786,7 @@ var e1 = v.forwardRef((t, n) => {
|
|
|
7786
7786
|
}), _6 = "SelectSeparator", t1 = v.forwardRef(
|
|
7787
7787
|
(t, n) => {
|
|
7788
7788
|
const { __scopeSelect: r, ...i } = t;
|
|
7789
|
-
return /* @__PURE__ */ w(
|
|
7789
|
+
return /* @__PURE__ */ w(fn.div, { "aria-hidden": !0, ...i, ref: n });
|
|
7790
7790
|
}
|
|
7791
7791
|
);
|
|
7792
7792
|
t1.displayName = _6;
|
|
@@ -7812,7 +7812,7 @@ var S6 = "SelectBubbleInput", n1 = v.forwardRef(
|
|
|
7812
7812
|
u.call(c, n), c.dispatchEvent(m);
|
|
7813
7813
|
}
|
|
7814
7814
|
}, [l, n]), /* @__PURE__ */ w(
|
|
7815
|
-
|
|
7815
|
+
fn.select,
|
|
7816
7816
|
{
|
|
7817
7817
|
...r,
|
|
7818
7818
|
style: { ...xh, ...r.style },
|
|
@@ -8109,9 +8109,9 @@ var U6 = [
|
|
|
8109
8109
|
scope: n,
|
|
8110
8110
|
triggerRef: c,
|
|
8111
8111
|
contentRef: a,
|
|
8112
|
-
contentId:
|
|
8113
|
-
titleId:
|
|
8114
|
-
descriptionId:
|
|
8112
|
+
contentId: Qt(),
|
|
8113
|
+
titleId: Qt(),
|
|
8114
|
+
descriptionId: Qt(),
|
|
8115
8115
|
open: h,
|
|
8116
8116
|
onOpenChange: u,
|
|
8117
8117
|
onOpenToggle: v.useCallback(() => u((m) => !m), [u]),
|
|
@@ -8654,7 +8654,7 @@ var y8 = v.forwardRef((t, n) => {
|
|
|
8654
8654
|
tabStopId: o,
|
|
8655
8655
|
children: l,
|
|
8656
8656
|
...c
|
|
8657
|
-
} = t, a =
|
|
8657
|
+
} = t, a = Qt(), h = o || a, u = b8(Y1, r), m = u.currentTabStopId === h, g = U1(r), { onFocusableItemAdd: C, onFocusableItemRemove: S, currentTabStopId: k } = u;
|
|
8658
8658
|
return v.useEffect(() => {
|
|
8659
8659
|
if (i)
|
|
8660
8660
|
return C(), () => S();
|
|
@@ -8822,7 +8822,7 @@ var A8 = [
|
|
|
8822
8822
|
R8,
|
|
8823
8823
|
{
|
|
8824
8824
|
scope: r,
|
|
8825
|
-
baseId:
|
|
8825
|
+
baseId: Qt(),
|
|
8826
8826
|
value: m,
|
|
8827
8827
|
onValueChange: g,
|
|
8828
8828
|
orientation: l,
|
|
@@ -9517,7 +9517,7 @@ var fs = "Tooltip", [ow, ma] = fa(fs), Em = (t) => {
|
|
|
9517
9517
|
onOpenChange: o,
|
|
9518
9518
|
disableHoverableContent: l,
|
|
9519
9519
|
delayDuration: c
|
|
9520
|
-
} = t, a = $c(fs, t.__scopeTooltip), h = ha(n), [u, m] = v.useState(null), g =
|
|
9520
|
+
} = t, a = $c(fs, t.__scopeTooltip), h = ha(n), [u, m] = v.useState(null), g = Qt(), C = v.useRef(0), S = l ?? a.disableHoverableContent, k = c ?? a.delayDuration, d = v.useRef(!1), [f, p] = xn({
|
|
9521
9521
|
prop: i,
|
|
9522
9522
|
defaultProp: s ?? !1,
|
|
9523
9523
|
onChange: (E) => {
|
|
@@ -9927,7 +9927,7 @@ var Aw = [
|
|
|
9927
9927
|
Dw,
|
|
9928
9928
|
{
|
|
9929
9929
|
scope: n,
|
|
9930
|
-
contentId:
|
|
9930
|
+
contentId: Qt(),
|
|
9931
9931
|
triggerRef: a,
|
|
9932
9932
|
open: m,
|
|
9933
9933
|
onOpenChange: g,
|
|
@@ -10225,10 +10225,10 @@ function Xm(t) {
|
|
|
10225
10225
|
x && (t.internal.setUTCMinutes(t.internal.getUTCMinutes() + x), Date.prototype.setUTCMinutes.call(t, Date.prototype.getUTCMinutes.call(t) + x));
|
|
10226
10226
|
}
|
|
10227
10227
|
}
|
|
10228
|
-
class
|
|
10228
|
+
class Yt extends Wn {
|
|
10229
10229
|
//#region static
|
|
10230
10230
|
static tz(n, ...r) {
|
|
10231
|
-
return r.length ? new
|
|
10231
|
+
return r.length ? new Yt(...r, n) : new Yt(Date.now(), n);
|
|
10232
10232
|
}
|
|
10233
10233
|
//#endregion
|
|
10234
10234
|
//#region representation
|
|
@@ -10273,31 +10273,31 @@ class qt extends Wn {
|
|
|
10273
10273
|
}
|
|
10274
10274
|
//#endregion
|
|
10275
10275
|
withTimeZone(n) {
|
|
10276
|
-
return new
|
|
10276
|
+
return new Yt(+this, n);
|
|
10277
10277
|
}
|
|
10278
10278
|
//#region date-fns integration
|
|
10279
10279
|
[Symbol.for("constructDateFrom")](n) {
|
|
10280
|
-
return new
|
|
10280
|
+
return new Yt(+new Date(n), this.timeZone);
|
|
10281
10281
|
}
|
|
10282
10282
|
//#endregion
|
|
10283
10283
|
}
|
|
10284
10284
|
const Km = 6048e5, jw = 864e5, Gw = 6e4, Zw = 36e5, Xw = 1e3, qu = Symbol.for("constructDateFrom");
|
|
10285
|
-
function
|
|
10285
|
+
function dt(t, n) {
|
|
10286
10286
|
return typeof t == "function" ? t(n) : t && typeof t == "object" && qu in t ? t[qu](n) : t instanceof Date ? new t.constructor(n) : new Date(n);
|
|
10287
10287
|
}
|
|
10288
10288
|
function tt(t, n) {
|
|
10289
|
-
return
|
|
10289
|
+
return dt(n || t, t);
|
|
10290
10290
|
}
|
|
10291
10291
|
function Ds(t, n, r) {
|
|
10292
10292
|
const i = tt(t, r == null ? void 0 : r.in);
|
|
10293
|
-
return isNaN(n) ?
|
|
10293
|
+
return isNaN(n) ? dt((r == null ? void 0 : r.in) || t, NaN) : (n && i.setDate(i.getDate() + n), i);
|
|
10294
10294
|
}
|
|
10295
10295
|
function Yc(t, n, r) {
|
|
10296
10296
|
const i = tt(t, r == null ? void 0 : r.in);
|
|
10297
|
-
if (isNaN(n)) return
|
|
10297
|
+
if (isNaN(n)) return dt(t, NaN);
|
|
10298
10298
|
if (!n)
|
|
10299
10299
|
return i;
|
|
10300
|
-
const s = i.getDate(), o =
|
|
10300
|
+
const s = i.getDate(), o = dt(t, i.getTime());
|
|
10301
10301
|
o.setMonth(i.getMonth() + n + 1, 0);
|
|
10302
10302
|
const l = o.getDate();
|
|
10303
10303
|
return s >= l ? o : (i.setFullYear(
|
|
@@ -10319,9 +10319,9 @@ function ni(t, n) {
|
|
|
10319
10319
|
return Ln(t, { ...n, weekStartsOn: 1 });
|
|
10320
10320
|
}
|
|
10321
10321
|
function Qm(t, n) {
|
|
10322
|
-
const r = tt(t, n == null ? void 0 : n.in), i = r.getFullYear(), s =
|
|
10322
|
+
const r = tt(t, n == null ? void 0 : n.in), i = r.getFullYear(), s = dt(r, 0);
|
|
10323
10323
|
s.setFullYear(i + 1, 0, 4), s.setHours(0, 0, 0, 0);
|
|
10324
|
-
const o = ni(s), l =
|
|
10324
|
+
const o = ni(s), l = dt(r, 0);
|
|
10325
10325
|
l.setFullYear(i, 0, 4), l.setHours(0, 0, 0, 0);
|
|
10326
10326
|
const c = ni(l);
|
|
10327
10327
|
return r.getTime() >= o.getTime() ? i + 1 : r.getTime() >= c.getTime() ? i : i - 1;
|
|
@@ -10341,7 +10341,7 @@ function Eo(t) {
|
|
|
10341
10341
|
return r.setUTCFullYear(n.getFullYear()), +t - +r;
|
|
10342
10342
|
}
|
|
10343
10343
|
function Bi(t, ...n) {
|
|
10344
|
-
const r =
|
|
10344
|
+
const r = dt.bind(
|
|
10345
10345
|
null,
|
|
10346
10346
|
n.find((i) => typeof i == "object")
|
|
10347
10347
|
);
|
|
@@ -10360,7 +10360,7 @@ function jc(t, n, r) {
|
|
|
10360
10360
|
return Math.round((c - a) / jw);
|
|
10361
10361
|
}
|
|
10362
10362
|
function Qw(t, n) {
|
|
10363
|
-
const r = Qm(t, n), i =
|
|
10363
|
+
const r = Qm(t, n), i = dt(t, 0);
|
|
10364
10364
|
return i.setFullYear(r, 0, 4), i.setHours(0, 0, 0, 0), ni(i);
|
|
10365
10365
|
}
|
|
10366
10366
|
function Jw(t, n, r) {
|
|
@@ -10372,18 +10372,18 @@ function ex(t, n, r) {
|
|
|
10372
10372
|
function tx(t, n) {
|
|
10373
10373
|
let r, i = n == null ? void 0 : n.in;
|
|
10374
10374
|
return t.forEach((s) => {
|
|
10375
|
-
!i && typeof s == "object" && (i =
|
|
10375
|
+
!i && typeof s == "object" && (i = dt.bind(null, s));
|
|
10376
10376
|
const o = tt(s, i);
|
|
10377
10377
|
(!r || r < o || isNaN(+o)) && (r = o);
|
|
10378
|
-
}),
|
|
10378
|
+
}), dt(i, r || NaN);
|
|
10379
10379
|
}
|
|
10380
10380
|
function nx(t, n) {
|
|
10381
10381
|
let r, i = n == null ? void 0 : n.in;
|
|
10382
10382
|
return t.forEach((s) => {
|
|
10383
|
-
!i && typeof s == "object" && (i =
|
|
10383
|
+
!i && typeof s == "object" && (i = dt.bind(null, s));
|
|
10384
10384
|
const o = tt(s, i);
|
|
10385
10385
|
(!r || r > o || isNaN(+o)) && (r = o);
|
|
10386
|
-
}),
|
|
10386
|
+
}), dt(i, r || NaN);
|
|
10387
10387
|
}
|
|
10388
10388
|
function rx(t, n, r) {
|
|
10389
10389
|
const [i, s] = Bi(
|
|
@@ -10423,7 +10423,7 @@ function ix(t, n) {
|
|
|
10423
10423
|
let c = 1;
|
|
10424
10424
|
const a = [];
|
|
10425
10425
|
for (; +l <= o; )
|
|
10426
|
-
a.push(
|
|
10426
|
+
a.push(dt(r, l)), l.setMonth(l.getMonth() + c);
|
|
10427
10427
|
return s ? a.reverse() : a;
|
|
10428
10428
|
}
|
|
10429
10429
|
function Yl(t, n) {
|
|
@@ -10446,7 +10446,7 @@ function ox(t, n) {
|
|
|
10446
10446
|
let c = 1;
|
|
10447
10447
|
const a = [];
|
|
10448
10448
|
for (; +l <= o; )
|
|
10449
|
-
a.push(
|
|
10449
|
+
a.push(dt(r, l)), l.setFullYear(l.getFullYear() + c);
|
|
10450
10450
|
return s ? a.reverse() : a;
|
|
10451
10451
|
}
|
|
10452
10452
|
function No(t, n) {
|
|
@@ -10898,23 +10898,23 @@ function ga(t, n) {
|
|
|
10898
10898
|
}
|
|
10899
10899
|
function Gc(t, n) {
|
|
10900
10900
|
var u, m, g, C;
|
|
10901
|
-
const r = tt(t, n == null ? void 0 : n.in), i = r.getFullYear(), s = ri(), o = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((m = (u = n == null ? void 0 : n.locale) == null ? void 0 : u.options) == null ? void 0 : m.firstWeekContainsDate) ?? s.firstWeekContainsDate ?? ((C = (g = s.locale) == null ? void 0 : g.options) == null ? void 0 : C.firstWeekContainsDate) ?? 1, l =
|
|
10901
|
+
const r = tt(t, n == null ? void 0 : n.in), i = r.getFullYear(), s = ri(), o = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((m = (u = n == null ? void 0 : n.locale) == null ? void 0 : u.options) == null ? void 0 : m.firstWeekContainsDate) ?? s.firstWeekContainsDate ?? ((C = (g = s.locale) == null ? void 0 : g.options) == null ? void 0 : C.firstWeekContainsDate) ?? 1, l = dt((n == null ? void 0 : n.in) || t, 0);
|
|
10902
10902
|
l.setFullYear(i + 1, 0, o), l.setHours(0, 0, 0, 0);
|
|
10903
|
-
const c = Ln(l, n), a =
|
|
10903
|
+
const c = Ln(l, n), a = dt((n == null ? void 0 : n.in) || t, 0);
|
|
10904
10904
|
a.setFullYear(i, 0, o), a.setHours(0, 0, 0, 0);
|
|
10905
10905
|
const h = Ln(a, n);
|
|
10906
10906
|
return +r >= +c ? i + 1 : +r >= +h ? i : i - 1;
|
|
10907
10907
|
}
|
|
10908
10908
|
function Vx(t, n) {
|
|
10909
10909
|
var c, a, h, u;
|
|
10910
|
-
const r = ri(), i = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((a = (c = n == null ? void 0 : n.locale) == null ? void 0 : c.options) == null ? void 0 : a.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((u = (h = r.locale) == null ? void 0 : h.options) == null ? void 0 : u.firstWeekContainsDate) ?? 1, s = Gc(t, n), o =
|
|
10910
|
+
const r = ri(), i = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((a = (c = n == null ? void 0 : n.locale) == null ? void 0 : c.options) == null ? void 0 : a.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((u = (h = r.locale) == null ? void 0 : h.options) == null ? void 0 : u.firstWeekContainsDate) ?? 1, s = Gc(t, n), o = dt((n == null ? void 0 : n.in) || t, 0);
|
|
10911
10911
|
return o.setFullYear(s, 0, i), o.setHours(0, 0, 0, 0), Ln(o, n);
|
|
10912
10912
|
}
|
|
10913
10913
|
function va(t, n) {
|
|
10914
10914
|
const r = tt(t, n == null ? void 0 : n.in), i = +Ln(r, n) - +Vx(r, n);
|
|
10915
10915
|
return Math.round(i / Km) + 1;
|
|
10916
10916
|
}
|
|
10917
|
-
function
|
|
10917
|
+
function ut(t, n) {
|
|
10918
10918
|
const r = t < 0 ? "-" : "", i = Math.abs(t).toString().padStart(n, "0");
|
|
10919
10919
|
return r + i;
|
|
10920
10920
|
}
|
|
@@ -10922,16 +10922,16 @@ const xr = {
|
|
|
10922
10922
|
// Year
|
|
10923
10923
|
y(t, n) {
|
|
10924
10924
|
const r = t.getFullYear(), i = r > 0 ? r : 1 - r;
|
|
10925
|
-
return
|
|
10925
|
+
return ut(n === "yy" ? i % 100 : i, n.length);
|
|
10926
10926
|
},
|
|
10927
10927
|
// Month
|
|
10928
10928
|
M(t, n) {
|
|
10929
10929
|
const r = t.getMonth();
|
|
10930
|
-
return n === "M" ? String(r + 1) :
|
|
10930
|
+
return n === "M" ? String(r + 1) : ut(r + 1, 2);
|
|
10931
10931
|
},
|
|
10932
10932
|
// Day of the month
|
|
10933
10933
|
d(t, n) {
|
|
10934
|
-
return
|
|
10934
|
+
return ut(t.getDate(), n.length);
|
|
10935
10935
|
},
|
|
10936
10936
|
// AM or PM
|
|
10937
10937
|
a(t, n) {
|
|
@@ -10951,26 +10951,26 @@ const xr = {
|
|
|
10951
10951
|
},
|
|
10952
10952
|
// Hour [1-12]
|
|
10953
10953
|
h(t, n) {
|
|
10954
|
-
return
|
|
10954
|
+
return ut(t.getHours() % 12 || 12, n.length);
|
|
10955
10955
|
},
|
|
10956
10956
|
// Hour [0-23]
|
|
10957
10957
|
H(t, n) {
|
|
10958
|
-
return
|
|
10958
|
+
return ut(t.getHours(), n.length);
|
|
10959
10959
|
},
|
|
10960
10960
|
// Minute
|
|
10961
10961
|
m(t, n) {
|
|
10962
|
-
return
|
|
10962
|
+
return ut(t.getMinutes(), n.length);
|
|
10963
10963
|
},
|
|
10964
10964
|
// Second
|
|
10965
10965
|
s(t, n) {
|
|
10966
|
-
return
|
|
10966
|
+
return ut(t.getSeconds(), n.length);
|
|
10967
10967
|
},
|
|
10968
10968
|
// Fraction of second
|
|
10969
10969
|
S(t, n) {
|
|
10970
10970
|
const r = n.length, i = t.getMilliseconds(), s = Math.trunc(
|
|
10971
10971
|
i * Math.pow(10, r - 3)
|
|
10972
10972
|
);
|
|
10973
|
-
return
|
|
10973
|
+
return ut(s, n.length);
|
|
10974
10974
|
}
|
|
10975
10975
|
}, fi = {
|
|
10976
10976
|
midnight: "midnight",
|
|
@@ -11008,14 +11008,14 @@ const xr = {
|
|
|
11008
11008
|
const s = Gc(t, i), o = s > 0 ? s : 1 - s;
|
|
11009
11009
|
if (n === "YY") {
|
|
11010
11010
|
const l = o % 100;
|
|
11011
|
-
return
|
|
11011
|
+
return ut(l, 2);
|
|
11012
11012
|
}
|
|
11013
|
-
return n === "Yo" ? r.ordinalNumber(o, { unit: "year" }) :
|
|
11013
|
+
return n === "Yo" ? r.ordinalNumber(o, { unit: "year" }) : ut(o, n.length);
|
|
11014
11014
|
},
|
|
11015
11015
|
// ISO week-numbering year
|
|
11016
11016
|
R: function(t, n) {
|
|
11017
11017
|
const r = Qm(t);
|
|
11018
|
-
return
|
|
11018
|
+
return ut(r, n.length);
|
|
11019
11019
|
},
|
|
11020
11020
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
11021
11021
|
// The main difference between `y` and `u` localizers are B.C. years:
|
|
@@ -11028,7 +11028,7 @@ const xr = {
|
|
|
11028
11028
|
// while `uu` pads single digit years to 2 characters and returns other years unchanged.
|
|
11029
11029
|
u: function(t, n) {
|
|
11030
11030
|
const r = t.getFullYear();
|
|
11031
|
-
return
|
|
11031
|
+
return ut(r, n.length);
|
|
11032
11032
|
},
|
|
11033
11033
|
// Quarter
|
|
11034
11034
|
Q: function(t, n, r) {
|
|
@@ -11037,7 +11037,7 @@ const xr = {
|
|
|
11037
11037
|
case "Q":
|
|
11038
11038
|
return String(i);
|
|
11039
11039
|
case "QQ":
|
|
11040
|
-
return
|
|
11040
|
+
return ut(i, 2);
|
|
11041
11041
|
case "Qo":
|
|
11042
11042
|
return r.ordinalNumber(i, { unit: "quarter" });
|
|
11043
11043
|
case "QQQ":
|
|
@@ -11065,7 +11065,7 @@ const xr = {
|
|
|
11065
11065
|
case "q":
|
|
11066
11066
|
return String(i);
|
|
11067
11067
|
case "qq":
|
|
11068
|
-
return
|
|
11068
|
+
return ut(i, 2);
|
|
11069
11069
|
case "qo":
|
|
11070
11070
|
return r.ordinalNumber(i, { unit: "quarter" });
|
|
11071
11071
|
case "qqq":
|
|
@@ -11117,7 +11117,7 @@ const xr = {
|
|
|
11117
11117
|
case "L":
|
|
11118
11118
|
return String(i + 1);
|
|
11119
11119
|
case "LL":
|
|
11120
|
-
return
|
|
11120
|
+
return ut(i + 1, 2);
|
|
11121
11121
|
case "Lo":
|
|
11122
11122
|
return r.ordinalNumber(i + 1, { unit: "month" });
|
|
11123
11123
|
case "LLL":
|
|
@@ -11138,12 +11138,12 @@ const xr = {
|
|
|
11138
11138
|
// Local week of year
|
|
11139
11139
|
w: function(t, n, r, i) {
|
|
11140
11140
|
const s = va(t, i);
|
|
11141
|
-
return n === "wo" ? r.ordinalNumber(s, { unit: "week" }) :
|
|
11141
|
+
return n === "wo" ? r.ordinalNumber(s, { unit: "week" }) : ut(s, n.length);
|
|
11142
11142
|
},
|
|
11143
11143
|
// ISO week of year
|
|
11144
11144
|
I: function(t, n, r) {
|
|
11145
11145
|
const i = ga(t);
|
|
11146
|
-
return n === "Io" ? r.ordinalNumber(i, { unit: "week" }) :
|
|
11146
|
+
return n === "Io" ? r.ordinalNumber(i, { unit: "week" }) : ut(i, n.length);
|
|
11147
11147
|
},
|
|
11148
11148
|
// Day of the month
|
|
11149
11149
|
d: function(t, n, r) {
|
|
@@ -11152,7 +11152,7 @@ const xr = {
|
|
|
11152
11152
|
// Day of year
|
|
11153
11153
|
D: function(t, n, r) {
|
|
11154
11154
|
const i = Hx(t);
|
|
11155
|
-
return n === "Do" ? r.ordinalNumber(i, { unit: "dayOfYear" }) :
|
|
11155
|
+
return n === "Do" ? r.ordinalNumber(i, { unit: "dayOfYear" }) : ut(i, n.length);
|
|
11156
11156
|
},
|
|
11157
11157
|
// Day of week
|
|
11158
11158
|
E: function(t, n, r) {
|
|
@@ -11190,7 +11190,7 @@ const xr = {
|
|
|
11190
11190
|
case "e":
|
|
11191
11191
|
return String(o);
|
|
11192
11192
|
case "ee":
|
|
11193
|
-
return
|
|
11193
|
+
return ut(o, 2);
|
|
11194
11194
|
case "eo":
|
|
11195
11195
|
return r.ordinalNumber(o, { unit: "day" });
|
|
11196
11196
|
case "eee":
|
|
@@ -11223,7 +11223,7 @@ const xr = {
|
|
|
11223
11223
|
case "c":
|
|
11224
11224
|
return String(o);
|
|
11225
11225
|
case "cc":
|
|
11226
|
-
return
|
|
11226
|
+
return ut(o, n.length);
|
|
11227
11227
|
case "co":
|
|
11228
11228
|
return r.ordinalNumber(o, { unit: "day" });
|
|
11229
11229
|
case "ccc":
|
|
@@ -11256,7 +11256,7 @@ const xr = {
|
|
|
11256
11256
|
case "i":
|
|
11257
11257
|
return String(s);
|
|
11258
11258
|
case "ii":
|
|
11259
|
-
return
|
|
11259
|
+
return ut(s, n.length);
|
|
11260
11260
|
case "io":
|
|
11261
11261
|
return r.ordinalNumber(s, { unit: "day" });
|
|
11262
11262
|
case "iii":
|
|
@@ -11379,12 +11379,12 @@ const xr = {
|
|
|
11379
11379
|
// Hour [0-11]
|
|
11380
11380
|
K: function(t, n, r) {
|
|
11381
11381
|
const i = t.getHours() % 12;
|
|
11382
|
-
return n === "Ko" ? r.ordinalNumber(i, { unit: "hour" }) :
|
|
11382
|
+
return n === "Ko" ? r.ordinalNumber(i, { unit: "hour" }) : ut(i, n.length);
|
|
11383
11383
|
},
|
|
11384
11384
|
// Hour [1-24]
|
|
11385
11385
|
k: function(t, n, r) {
|
|
11386
11386
|
let i = t.getHours();
|
|
11387
|
-
return i === 0 && (i = 24), n === "ko" ? r.ordinalNumber(i, { unit: "hour" }) :
|
|
11387
|
+
return i === 0 && (i = 24), n === "ko" ? r.ordinalNumber(i, { unit: "hour" }) : ut(i, n.length);
|
|
11388
11388
|
},
|
|
11389
11389
|
// Minute
|
|
11390
11390
|
m: function(t, n, r) {
|
|
@@ -11459,22 +11459,22 @@ const xr = {
|
|
|
11459
11459
|
// Seconds timestamp
|
|
11460
11460
|
t: function(t, n, r) {
|
|
11461
11461
|
const i = Math.trunc(+t / 1e3);
|
|
11462
|
-
return
|
|
11462
|
+
return ut(i, n.length);
|
|
11463
11463
|
},
|
|
11464
11464
|
// Milliseconds timestamp
|
|
11465
11465
|
T: function(t, n, r) {
|
|
11466
|
-
return
|
|
11466
|
+
return ut(+t, n.length);
|
|
11467
11467
|
}
|
|
11468
11468
|
};
|
|
11469
11469
|
function ju(t, n = "") {
|
|
11470
11470
|
const r = t > 0 ? "-" : "+", i = Math.abs(t), s = Math.trunc(i / 60), o = i % 60;
|
|
11471
|
-
return o === 0 ? r + String(s) : r + String(s) + n +
|
|
11471
|
+
return o === 0 ? r + String(s) : r + String(s) + n + ut(o, 2);
|
|
11472
11472
|
}
|
|
11473
11473
|
function Gu(t, n) {
|
|
11474
|
-
return t % 60 === 0 ? (t > 0 ? "-" : "+") +
|
|
11474
|
+
return t % 60 === 0 ? (t > 0 ? "-" : "+") + ut(Math.abs(t) / 60, 2) : qr(t, n);
|
|
11475
11475
|
}
|
|
11476
11476
|
function qr(t, n = "") {
|
|
11477
|
-
const r = t > 0 ? "-" : "+", i = Math.abs(t), s =
|
|
11477
|
+
const r = t > 0 ? "-" : "+", i = Math.abs(t), s = ut(Math.trunc(i / 60), 2), o = ut(i % 60, 2);
|
|
11478
11478
|
return r + s + n + o;
|
|
11479
11479
|
}
|
|
11480
11480
|
const Zu = (t, n) => {
|
|
@@ -11541,7 +11541,7 @@ function Yx(t, n, r) {
|
|
|
11541
11541
|
return `Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${n}\`) for formatting ${i} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
11542
11542
|
}
|
|
11543
11543
|
const jx = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Gx = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Zx = /^'([^]*?)'?$/, Xx = /''/g, Kx = /[a-zA-Z]/;
|
|
11544
|
-
function
|
|
11544
|
+
function qt(t, n, r) {
|
|
11545
11545
|
var u, m, g, C, S, k, d, f;
|
|
11546
11546
|
const i = ri(), s = (r == null ? void 0 : r.locale) ?? i.locale ?? jr, o = (r == null ? void 0 : r.firstWeekContainsDate) ?? ((m = (u = r == null ? void 0 : r.locale) == null ? void 0 : u.options) == null ? void 0 : m.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((C = (g = i.locale) == null ? void 0 : g.options) == null ? void 0 : C.firstWeekContainsDate) ?? 1, l = (r == null ? void 0 : r.weekStartsOn) ?? ((k = (S = r == null ? void 0 : r.locale) == null ? void 0 : S.options) == null ? void 0 : k.weekStartsOn) ?? i.weekStartsOn ?? ((f = (d = i.locale) == null ? void 0 : d.options) == null ? void 0 : f.weekStartsOn) ?? 0, c = tt(t, r == null ? void 0 : r.in);
|
|
11547
11547
|
if (!ep(c))
|
|
@@ -11586,7 +11586,7 @@ function Qx(t) {
|
|
|
11586
11586
|
return n ? n[1].replace(Xx, "'") : t;
|
|
11587
11587
|
}
|
|
11588
11588
|
function Jx(t, n) {
|
|
11589
|
-
const r = tt(t, n == null ? void 0 : n.in), i = r.getFullYear(), s = r.getMonth(), o =
|
|
11589
|
+
const r = tt(t, n == null ? void 0 : n.in), i = r.getFullYear(), s = r.getMonth(), o = dt(r, 0);
|
|
11590
11590
|
return o.setFullYear(i, s + 1, 0), o.setHours(0, 0, 0, 0), o.getDate();
|
|
11591
11591
|
}
|
|
11592
11592
|
function e9() {
|
|
@@ -11609,7 +11609,7 @@ function s9(t, n) {
|
|
|
11609
11609
|
return +tt(t) < +tt(n);
|
|
11610
11610
|
}
|
|
11611
11611
|
function o9(t, n) {
|
|
11612
|
-
const r = a9(n) ? new n(0) :
|
|
11612
|
+
const r = a9(n) ? new n(0) : dt(n, 0);
|
|
11613
11613
|
return r.setFullYear(t.getFullYear(), t.getMonth(), t.getDate()), r.setHours(
|
|
11614
11614
|
t.getHours(),
|
|
11615
11615
|
t.getMinutes(),
|
|
@@ -11646,13 +11646,13 @@ class u9 extends ap {
|
|
|
11646
11646
|
super();
|
|
11647
11647
|
Ee(this, "priority", l9);
|
|
11648
11648
|
Ee(this, "subPriority", -1);
|
|
11649
|
-
this.context = r || ((s) =>
|
|
11649
|
+
this.context = r || ((s) => dt(i, s));
|
|
11650
11650
|
}
|
|
11651
11651
|
set(r, i) {
|
|
11652
|
-
return i.timestampIsSet ? r :
|
|
11652
|
+
return i.timestampIsSet ? r : dt(r, o9(r, this.context));
|
|
11653
11653
|
}
|
|
11654
11654
|
}
|
|
11655
|
-
let
|
|
11655
|
+
let ct = class {
|
|
11656
11656
|
run(n, r, i, s) {
|
|
11657
11657
|
const o = this.parse(n, r, i, s);
|
|
11658
11658
|
return o ? {
|
|
@@ -11670,7 +11670,7 @@ let at = class {
|
|
|
11670
11670
|
return !0;
|
|
11671
11671
|
}
|
|
11672
11672
|
};
|
|
11673
|
-
class d9 extends
|
|
11673
|
+
class d9 extends ct {
|
|
11674
11674
|
constructor() {
|
|
11675
11675
|
super(...arguments);
|
|
11676
11676
|
Ee(this, "priority", 140);
|
|
@@ -11828,7 +11828,7 @@ function cp(t, n) {
|
|
|
11828
11828
|
function up(t) {
|
|
11829
11829
|
return t % 400 === 0 || t % 4 === 0 && t % 100 !== 0;
|
|
11830
11830
|
}
|
|
11831
|
-
class f9 extends
|
|
11831
|
+
class f9 extends ct {
|
|
11832
11832
|
constructor() {
|
|
11833
11833
|
super(...arguments);
|
|
11834
11834
|
Ee(this, "priority", 130);
|
|
@@ -11869,7 +11869,7 @@ class f9 extends at {
|
|
|
11869
11869
|
return r.setFullYear(l, 0, 1), r.setHours(0, 0, 0, 0), r;
|
|
11870
11870
|
}
|
|
11871
11871
|
}
|
|
11872
|
-
class h9 extends
|
|
11872
|
+
class h9 extends ct {
|
|
11873
11873
|
constructor() {
|
|
11874
11874
|
super(...arguments);
|
|
11875
11875
|
Ee(this, "priority", 130);
|
|
@@ -11928,7 +11928,7 @@ class h9 extends at {
|
|
|
11928
11928
|
return r.setFullYear(c, 0, o.firstWeekContainsDate), r.setHours(0, 0, 0, 0), Ln(r, o);
|
|
11929
11929
|
}
|
|
11930
11930
|
}
|
|
11931
|
-
class m9 extends
|
|
11931
|
+
class m9 extends ct {
|
|
11932
11932
|
constructor() {
|
|
11933
11933
|
super(...arguments);
|
|
11934
11934
|
Ee(this, "priority", 130);
|
|
@@ -11954,11 +11954,11 @@ class m9 extends at {
|
|
|
11954
11954
|
return To(i === "R" ? 4 : i.length, r);
|
|
11955
11955
|
}
|
|
11956
11956
|
set(r, i, s) {
|
|
11957
|
-
const o =
|
|
11957
|
+
const o = dt(r, 0);
|
|
11958
11958
|
return o.setFullYear(s, 0, 4), o.setHours(0, 0, 0, 0), ni(o);
|
|
11959
11959
|
}
|
|
11960
11960
|
}
|
|
11961
|
-
class p9 extends
|
|
11961
|
+
class p9 extends ct {
|
|
11962
11962
|
constructor() {
|
|
11963
11963
|
super(...arguments);
|
|
11964
11964
|
Ee(this, "priority", 130);
|
|
@@ -11971,7 +11971,7 @@ class p9 extends at {
|
|
|
11971
11971
|
return r.setFullYear(s, 0, 1), r.setHours(0, 0, 0, 0), r;
|
|
11972
11972
|
}
|
|
11973
11973
|
}
|
|
11974
|
-
class g9 extends
|
|
11974
|
+
class g9 extends ct {
|
|
11975
11975
|
constructor() {
|
|
11976
11976
|
super(...arguments);
|
|
11977
11977
|
Ee(this, "priority", 120);
|
|
@@ -12033,7 +12033,7 @@ class g9 extends at {
|
|
|
12033
12033
|
return r.setMonth((s - 1) * 3, 1), r.setHours(0, 0, 0, 0), r;
|
|
12034
12034
|
}
|
|
12035
12035
|
}
|
|
12036
|
-
class v9 extends
|
|
12036
|
+
class v9 extends ct {
|
|
12037
12037
|
constructor() {
|
|
12038
12038
|
super(...arguments);
|
|
12039
12039
|
Ee(this, "priority", 120);
|
|
@@ -12095,7 +12095,7 @@ class v9 extends at {
|
|
|
12095
12095
|
return r.setMonth((s - 1) * 3, 1), r.setHours(0, 0, 0, 0), r;
|
|
12096
12096
|
}
|
|
12097
12097
|
}
|
|
12098
|
-
class b9 extends
|
|
12098
|
+
class b9 extends ct {
|
|
12099
12099
|
constructor() {
|
|
12100
12100
|
super(...arguments);
|
|
12101
12101
|
Ee(this, "incompatibleTokens", [
|
|
@@ -12157,7 +12157,7 @@ class b9 extends at {
|
|
|
12157
12157
|
return r.setMonth(s, 1), r.setHours(0, 0, 0, 0), r;
|
|
12158
12158
|
}
|
|
12159
12159
|
}
|
|
12160
|
-
class y9 extends
|
|
12160
|
+
class y9 extends ct {
|
|
12161
12161
|
constructor() {
|
|
12162
12162
|
super(...arguments);
|
|
12163
12163
|
Ee(this, "priority", 110);
|
|
@@ -12223,7 +12223,7 @@ function w9(t, n, r) {
|
|
|
12223
12223
|
const i = tt(t, r == null ? void 0 : r.in), s = va(i, r) - n;
|
|
12224
12224
|
return i.setDate(i.getDate() - s * 7), tt(i, r == null ? void 0 : r.in);
|
|
12225
12225
|
}
|
|
12226
|
-
class x9 extends
|
|
12226
|
+
class x9 extends ct {
|
|
12227
12227
|
constructor() {
|
|
12228
12228
|
super(...arguments);
|
|
12229
12229
|
Ee(this, "priority", 100);
|
|
@@ -12264,7 +12264,7 @@ function _9(t, n, r) {
|
|
|
12264
12264
|
const i = tt(t, r == null ? void 0 : r.in), s = ga(i, r) - n;
|
|
12265
12265
|
return i.setDate(i.getDate() - s * 7), i;
|
|
12266
12266
|
}
|
|
12267
|
-
class C9 extends
|
|
12267
|
+
class C9 extends ct {
|
|
12268
12268
|
constructor() {
|
|
12269
12269
|
super(...arguments);
|
|
12270
12270
|
Ee(this, "priority", 100);
|
|
@@ -12316,7 +12316,7 @@ const S9 = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], k9 = [
|
|
|
12316
12316
|
30,
|
|
12317
12317
|
31
|
|
12318
12318
|
];
|
|
12319
|
-
class E9 extends
|
|
12319
|
+
class E9 extends ct {
|
|
12320
12320
|
constructor() {
|
|
12321
12321
|
super(...arguments);
|
|
12322
12322
|
Ee(this, "priority", 90);
|
|
@@ -12354,7 +12354,7 @@ class E9 extends at {
|
|
|
12354
12354
|
return r.setDate(s), r.setHours(0, 0, 0, 0), r;
|
|
12355
12355
|
}
|
|
12356
12356
|
}
|
|
12357
|
-
class N9 extends
|
|
12357
|
+
class N9 extends ct {
|
|
12358
12358
|
constructor() {
|
|
12359
12359
|
super(...arguments);
|
|
12360
12360
|
Ee(this, "priority", 90);
|
|
@@ -12401,7 +12401,7 @@ function Xc(t, n, r) {
|
|
|
12401
12401
|
const i = ri(), s = (r == null ? void 0 : r.weekStartsOn) ?? ((g = (m = r == null ? void 0 : r.locale) == null ? void 0 : m.options) == null ? void 0 : g.weekStartsOn) ?? i.weekStartsOn ?? ((S = (C = i.locale) == null ? void 0 : C.options) == null ? void 0 : S.weekStartsOn) ?? 0, o = tt(t, r == null ? void 0 : r.in), l = o.getDay(), a = (n % 7 + 7) % 7, h = 7 - s, u = n < 0 || n > 6 ? n - (l + h) % 7 : (a + h) % 7 - (l + h) % 7;
|
|
12402
12402
|
return Ds(o, u, r);
|
|
12403
12403
|
}
|
|
12404
|
-
class T9 extends
|
|
12404
|
+
class T9 extends ct {
|
|
12405
12405
|
constructor() {
|
|
12406
12406
|
super(...arguments);
|
|
12407
12407
|
Ee(this, "priority", 90);
|
|
@@ -12438,7 +12438,7 @@ class T9 extends at {
|
|
|
12438
12438
|
return r = Xc(r, s, o), r.setHours(0, 0, 0, 0), r;
|
|
12439
12439
|
}
|
|
12440
12440
|
}
|
|
12441
|
-
class M9 extends
|
|
12441
|
+
class M9 extends ct {
|
|
12442
12442
|
constructor() {
|
|
12443
12443
|
super(...arguments);
|
|
12444
12444
|
Ee(this, "priority", 90);
|
|
@@ -12503,7 +12503,7 @@ class M9 extends at {
|
|
|
12503
12503
|
return r = Xc(r, s, o), r.setHours(0, 0, 0, 0), r;
|
|
12504
12504
|
}
|
|
12505
12505
|
}
|
|
12506
|
-
class A9 extends
|
|
12506
|
+
class A9 extends ct {
|
|
12507
12507
|
constructor() {
|
|
12508
12508
|
super(...arguments);
|
|
12509
12509
|
Ee(this, "priority", 90);
|
|
@@ -12572,7 +12572,7 @@ function D9(t, n, r) {
|
|
|
12572
12572
|
const i = tt(t, r == null ? void 0 : r.in), s = t9(i, r), o = n - s;
|
|
12573
12573
|
return Ds(i, o, r);
|
|
12574
12574
|
}
|
|
12575
|
-
class R9 extends
|
|
12575
|
+
class R9 extends ct {
|
|
12576
12576
|
constructor() {
|
|
12577
12577
|
super(...arguments);
|
|
12578
12578
|
Ee(this, "priority", 90);
|
|
@@ -12662,7 +12662,7 @@ class R9 extends at {
|
|
|
12662
12662
|
return r = D9(r, s), r.setHours(0, 0, 0, 0), r;
|
|
12663
12663
|
}
|
|
12664
12664
|
}
|
|
12665
|
-
class L9 extends
|
|
12665
|
+
class L9 extends ct {
|
|
12666
12666
|
constructor() {
|
|
12667
12667
|
super(...arguments);
|
|
12668
12668
|
Ee(this, "priority", 80);
|
|
@@ -12703,7 +12703,7 @@ class L9 extends at {
|
|
|
12703
12703
|
return r.setHours(Zc(s), 0, 0, 0), r;
|
|
12704
12704
|
}
|
|
12705
12705
|
}
|
|
12706
|
-
class O9 extends
|
|
12706
|
+
class O9 extends ct {
|
|
12707
12707
|
constructor() {
|
|
12708
12708
|
super(...arguments);
|
|
12709
12709
|
Ee(this, "priority", 80);
|
|
@@ -12744,7 +12744,7 @@ class O9 extends at {
|
|
|
12744
12744
|
return r.setHours(Zc(s), 0, 0, 0), r;
|
|
12745
12745
|
}
|
|
12746
12746
|
}
|
|
12747
|
-
class I9 extends
|
|
12747
|
+
class I9 extends ct {
|
|
12748
12748
|
constructor() {
|
|
12749
12749
|
super(...arguments);
|
|
12750
12750
|
Ee(this, "priority", 80);
|
|
@@ -12785,7 +12785,7 @@ class I9 extends at {
|
|
|
12785
12785
|
return r.setHours(Zc(s), 0, 0, 0), r;
|
|
12786
12786
|
}
|
|
12787
12787
|
}
|
|
12788
|
-
class P9 extends
|
|
12788
|
+
class P9 extends ct {
|
|
12789
12789
|
constructor() {
|
|
12790
12790
|
super(...arguments);
|
|
12791
12791
|
Ee(this, "priority", 70);
|
|
@@ -12809,7 +12809,7 @@ class P9 extends at {
|
|
|
12809
12809
|
return o && s < 12 ? r.setHours(s + 12, 0, 0, 0) : !o && s === 12 ? r.setHours(0, 0, 0, 0) : r.setHours(s, 0, 0, 0), r;
|
|
12810
12810
|
}
|
|
12811
12811
|
}
|
|
12812
|
-
class B9 extends
|
|
12812
|
+
class B9 extends ct {
|
|
12813
12813
|
constructor() {
|
|
12814
12814
|
super(...arguments);
|
|
12815
12815
|
Ee(this, "priority", 70);
|
|
@@ -12832,7 +12832,7 @@ class B9 extends at {
|
|
|
12832
12832
|
return r.setHours(s, 0, 0, 0), r;
|
|
12833
12833
|
}
|
|
12834
12834
|
}
|
|
12835
|
-
class z9 extends
|
|
12835
|
+
class z9 extends ct {
|
|
12836
12836
|
constructor() {
|
|
12837
12837
|
super(...arguments);
|
|
12838
12838
|
Ee(this, "priority", 70);
|
|
@@ -12855,7 +12855,7 @@ class z9 extends at {
|
|
|
12855
12855
|
return r.getHours() >= 12 && s < 12 ? r.setHours(s + 12, 0, 0, 0) : r.setHours(s, 0, 0, 0), r;
|
|
12856
12856
|
}
|
|
12857
12857
|
}
|
|
12858
|
-
class F9 extends
|
|
12858
|
+
class F9 extends ct {
|
|
12859
12859
|
constructor() {
|
|
12860
12860
|
super(...arguments);
|
|
12861
12861
|
Ee(this, "priority", 70);
|
|
@@ -12879,7 +12879,7 @@ class F9 extends at {
|
|
|
12879
12879
|
return r.setHours(o, 0, 0, 0), r;
|
|
12880
12880
|
}
|
|
12881
12881
|
}
|
|
12882
|
-
class H9 extends
|
|
12882
|
+
class H9 extends ct {
|
|
12883
12883
|
constructor() {
|
|
12884
12884
|
super(...arguments);
|
|
12885
12885
|
Ee(this, "priority", 60);
|
|
@@ -12902,7 +12902,7 @@ class H9 extends at {
|
|
|
12902
12902
|
return r.setMinutes(s, 0, 0), r;
|
|
12903
12903
|
}
|
|
12904
12904
|
}
|
|
12905
|
-
class V9 extends
|
|
12905
|
+
class V9 extends ct {
|
|
12906
12906
|
constructor() {
|
|
12907
12907
|
super(...arguments);
|
|
12908
12908
|
Ee(this, "priority", 50);
|
|
@@ -12925,7 +12925,7 @@ class V9 extends at {
|
|
|
12925
12925
|
return r.setSeconds(s, 0), r;
|
|
12926
12926
|
}
|
|
12927
12927
|
}
|
|
12928
|
-
class $9 extends
|
|
12928
|
+
class $9 extends ct {
|
|
12929
12929
|
constructor() {
|
|
12930
12930
|
super(...arguments);
|
|
12931
12931
|
Ee(this, "priority", 30);
|
|
@@ -12939,7 +12939,7 @@ class $9 extends at {
|
|
|
12939
12939
|
return r.setMilliseconds(s), r;
|
|
12940
12940
|
}
|
|
12941
12941
|
}
|
|
12942
|
-
class W9 extends
|
|
12942
|
+
class W9 extends ct {
|
|
12943
12943
|
constructor() {
|
|
12944
12944
|
super(...arguments);
|
|
12945
12945
|
Ee(this, "priority", 10);
|
|
@@ -12970,13 +12970,13 @@ class W9 extends at {
|
|
|
12970
12970
|
}
|
|
12971
12971
|
}
|
|
12972
12972
|
set(r, i, s) {
|
|
12973
|
-
return i.timestampIsSet ? r :
|
|
12973
|
+
return i.timestampIsSet ? r : dt(
|
|
12974
12974
|
r,
|
|
12975
12975
|
r.getTime() - Eo(r) - s
|
|
12976
12976
|
);
|
|
12977
12977
|
}
|
|
12978
12978
|
}
|
|
12979
|
-
class U9 extends
|
|
12979
|
+
class U9 extends ct {
|
|
12980
12980
|
constructor() {
|
|
12981
12981
|
super(...arguments);
|
|
12982
12982
|
Ee(this, "priority", 10);
|
|
@@ -13007,13 +13007,13 @@ class U9 extends at {
|
|
|
13007
13007
|
}
|
|
13008
13008
|
}
|
|
13009
13009
|
set(r, i, s) {
|
|
13010
|
-
return i.timestampIsSet ? r :
|
|
13010
|
+
return i.timestampIsSet ? r : dt(
|
|
13011
13011
|
r,
|
|
13012
13012
|
r.getTime() - Eo(r) - s
|
|
13013
13013
|
);
|
|
13014
13014
|
}
|
|
13015
13015
|
}
|
|
13016
|
-
class q9 extends
|
|
13016
|
+
class q9 extends ct {
|
|
13017
13017
|
constructor() {
|
|
13018
13018
|
super(...arguments);
|
|
13019
13019
|
Ee(this, "priority", 40);
|
|
@@ -13023,10 +13023,10 @@ class q9 extends at {
|
|
|
13023
13023
|
return lp(r);
|
|
13024
13024
|
}
|
|
13025
13025
|
set(r, i, s) {
|
|
13026
|
-
return [
|
|
13026
|
+
return [dt(r, s * 1e3), { timestampIsSet: !0 }];
|
|
13027
13027
|
}
|
|
13028
13028
|
}
|
|
13029
|
-
class Y9 extends
|
|
13029
|
+
class Y9 extends ct {
|
|
13030
13030
|
constructor() {
|
|
13031
13031
|
super(...arguments);
|
|
13032
13032
|
Ee(this, "priority", 20);
|
|
@@ -13036,7 +13036,7 @@ class Y9 extends at {
|
|
|
13036
13036
|
return lp(r);
|
|
13037
13037
|
}
|
|
13038
13038
|
set(r, i, s) {
|
|
13039
|
-
return [
|
|
13039
|
+
return [dt(r, s), { timestampIsSet: !0 }];
|
|
13040
13040
|
}
|
|
13041
13041
|
}
|
|
13042
13042
|
const j9 = {
|
|
@@ -13074,7 +13074,7 @@ const j9 = {
|
|
|
13074
13074
|
}, G9 = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Z9 = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, X9 = /^'([^]*?)'?$/, K9 = /''/g, Q9 = /\S/, J9 = /[a-zA-Z]/;
|
|
13075
13075
|
function e_(t, n, r, i) {
|
|
13076
13076
|
var d, f, p, b;
|
|
13077
|
-
const s = () =>
|
|
13077
|
+
const s = () => dt(r, NaN), o = e9(), l = o.locale ?? jr, c = o.firstWeekContainsDate ?? ((f = (d = o.locale) == null ? void 0 : d.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, a = o.weekStartsOn ?? ((b = (p = o.locale) == null ? void 0 : p.options) == null ? void 0 : b.weekStartsOn) ?? 0, h = {
|
|
13078
13078
|
firstWeekContainsDate: c,
|
|
13079
13079
|
weekStartsOn: a,
|
|
13080
13080
|
locale: l
|
|
@@ -13163,14 +13163,14 @@ function nl(t, n, r) {
|
|
|
13163
13163
|
return Ds(t, -n, r);
|
|
13164
13164
|
}
|
|
13165
13165
|
function i_(t, n, r) {
|
|
13166
|
-
const i = tt(t, r == null ? void 0 : r.in), s = i.getFullYear(), o = i.getDate(), l =
|
|
13166
|
+
const i = tt(t, r == null ? void 0 : r.in), s = i.getFullYear(), o = i.getDate(), l = dt(t, 0);
|
|
13167
13167
|
l.setFullYear(s, n, 15), l.setHours(0, 0, 0, 0);
|
|
13168
13168
|
const c = Jx(l);
|
|
13169
13169
|
return i.setMonth(n, Math.min(o, c)), i;
|
|
13170
13170
|
}
|
|
13171
13171
|
function s_(t, n, r) {
|
|
13172
13172
|
const i = tt(t, r == null ? void 0 : r.in);
|
|
13173
|
-
return isNaN(+i) ?
|
|
13173
|
+
return isNaN(+i) ? dt(t, NaN) : (i.setFullYear(n), i);
|
|
13174
13174
|
}
|
|
13175
13175
|
function Xu(t, n, r) {
|
|
13176
13176
|
return Yc(t, -1, r);
|
|
@@ -13193,7 +13193,7 @@ const fp = {
|
|
|
13193
13193
|
labels: {
|
|
13194
13194
|
labelDayButton: (t, n, r, i) => {
|
|
13195
13195
|
let s;
|
|
13196
|
-
i && typeof i.format == "function" ? s = i.format.bind(i) : s = (l, c) =>
|
|
13196
|
+
i && typeof i.format == "function" ? s = i.format.bind(i) : s = (l, c) => qt(l, c, { locale: jr, ...r });
|
|
13197
13197
|
let o = s(t, "PPPP");
|
|
13198
13198
|
return n.today && (o = `Today, ${o}`), n.selected && (o = `${o}, selected`), o;
|
|
13199
13199
|
},
|
|
@@ -13204,11 +13204,11 @@ const fp = {
|
|
|
13204
13204
|
labelYearDropdown: "Choose the Year",
|
|
13205
13205
|
labelGrid: (t, n, r) => {
|
|
13206
13206
|
let i;
|
|
13207
|
-
return r && typeof r.format == "function" ? i = r.format.bind(r) : i = (s, o) =>
|
|
13207
|
+
return r && typeof r.format == "function" ? i = r.format.bind(r) : i = (s, o) => qt(s, o, { locale: jr, ...n }), i(t, "LLLL yyyy");
|
|
13208
13208
|
},
|
|
13209
13209
|
labelGridcell: (t, n, r, i) => {
|
|
13210
13210
|
let s;
|
|
13211
|
-
i && typeof i.format == "function" ? s = i.format.bind(i) : s = (l, c) =>
|
|
13211
|
+
i && typeof i.format == "function" ? s = i.format.bind(i) : s = (l, c) => qt(l, c, { locale: jr, ...r });
|
|
13212
13212
|
let o = s(t, "PPPP");
|
|
13213
13213
|
return n != null && n.today && (o = `Today, ${o}`), o;
|
|
13214
13214
|
},
|
|
@@ -13216,11 +13216,11 @@ const fp = {
|
|
|
13216
13216
|
labelWeekNumberHeader: "Week Number",
|
|
13217
13217
|
labelWeekday: (t, n, r) => {
|
|
13218
13218
|
let i;
|
|
13219
|
-
return r && typeof r.format == "function" ? i = r.format.bind(r) : i = (s, o) =>
|
|
13219
|
+
return r && typeof r.format == "function" ? i = r.format.bind(r) : i = (s, o) => qt(s, o, { locale: jr, ...n }), i(t, "cccc");
|
|
13220
13220
|
}
|
|
13221
13221
|
}
|
|
13222
13222
|
};
|
|
13223
|
-
class
|
|
13223
|
+
class dn {
|
|
13224
13224
|
/**
|
|
13225
13225
|
* Creates an instance of `DateLib`.
|
|
13226
13226
|
*
|
|
@@ -13230,10 +13230,10 @@ class cn {
|
|
|
13230
13230
|
constructor(n, r) {
|
|
13231
13231
|
this.Date = Date, this.today = () => {
|
|
13232
13232
|
var i;
|
|
13233
|
-
return (i = this.overrides) != null && i.today ? this.overrides.today() : this.options.timeZone ?
|
|
13233
|
+
return (i = this.overrides) != null && i.today ? this.overrides.today() : this.options.timeZone ? Yt.tz(this.options.timeZone) : new this.Date();
|
|
13234
13234
|
}, this.newDate = (i, s, o) => {
|
|
13235
13235
|
var l;
|
|
13236
|
-
return (l = this.overrides) != null && l.newDate ? this.overrides.newDate(i, s, o) : this.options.timeZone ? new
|
|
13236
|
+
return (l = this.overrides) != null && l.newDate ? this.overrides.newDate(i, s, o) : this.options.timeZone ? new Yt(i, s, o, this.options.timeZone) : new Date(i, s, o);
|
|
13237
13237
|
}, this.addDays = (i, s) => {
|
|
13238
13238
|
var o;
|
|
13239
13239
|
return (o = this.overrides) != null && o.addDays ? this.overrides.addDays(i, s) : Ds(i, s);
|
|
@@ -13281,7 +13281,7 @@ class cn {
|
|
|
13281
13281
|
return (s = this.overrides) != null && s.endOfYear ? this.overrides.endOfYear(i) : sx(i);
|
|
13282
13282
|
}, this.format = (i, s, o) => {
|
|
13283
13283
|
var c;
|
|
13284
|
-
const l = (c = this.overrides) != null && c.format ? this.overrides.format(i, s, this.options) :
|
|
13284
|
+
const l = (c = this.overrides) != null && c.format ? this.overrides.format(i, s, this.options) : qt(i, s, this.options);
|
|
13285
13285
|
return this.options.numerals && this.options.numerals !== "latn" ? this.replaceDigits(l) : l;
|
|
13286
13286
|
}, this.getISOWeek = (i) => {
|
|
13287
13287
|
var s;
|
|
@@ -13388,7 +13388,7 @@ class cn {
|
|
|
13388
13388
|
getMonthYearOrder() {
|
|
13389
13389
|
var r;
|
|
13390
13390
|
const n = (r = this.options.locale) == null ? void 0 : r.code;
|
|
13391
|
-
return n &&
|
|
13391
|
+
return n && dn.yearFirstLocales.has(n) ? "year-first" : "month-first";
|
|
13392
13392
|
}
|
|
13393
13393
|
/**
|
|
13394
13394
|
* Formats the month/year pair respecting locale conventions.
|
|
@@ -13397,7 +13397,7 @@ class cn {
|
|
|
13397
13397
|
*/
|
|
13398
13398
|
formatMonthYear(n) {
|
|
13399
13399
|
const { locale: r, timeZone: i, numerals: s } = this.options, o = r == null ? void 0 : r.code;
|
|
13400
|
-
if (o &&
|
|
13400
|
+
if (o && dn.yearFirstLocales.has(o))
|
|
13401
13401
|
try {
|
|
13402
13402
|
return new Intl.DateTimeFormat(o, {
|
|
13403
13403
|
month: "long",
|
|
@@ -13411,7 +13411,7 @@ class cn {
|
|
|
13411
13411
|
return this.format(n, l);
|
|
13412
13412
|
}
|
|
13413
13413
|
}
|
|
13414
|
-
|
|
13414
|
+
dn.yearFirstLocales = /* @__PURE__ */ new Set([
|
|
13415
13415
|
"eu",
|
|
13416
13416
|
"hu",
|
|
13417
13417
|
"ja",
|
|
@@ -13430,7 +13430,7 @@ cn.yearFirstLocales = /* @__PURE__ */ new Set([
|
|
|
13430
13430
|
"zh-HK",
|
|
13431
13431
|
"zh-TW"
|
|
13432
13432
|
]);
|
|
13433
|
-
const Xn = new
|
|
13433
|
+
const Xn = new dn();
|
|
13434
13434
|
class hp {
|
|
13435
13435
|
constructor(n, r, i = Xn) {
|
|
13436
13436
|
this.date = n, this.displayMonth = r, this.outside = !!(r && !i.isSameMonth(n, r)), this.dateLib = i, this.isoDate = i.format(n, "yyyy-MM-dd"), this.displayMonthId = i.format(r, "yyyy-MM"), this.dateMonthId = i.format(n, "yyyy-MM");
|
|
@@ -13499,10 +13499,10 @@ var An;
|
|
|
13499
13499
|
(function(t) {
|
|
13500
13500
|
t.range_end = "range_end", t.range_middle = "range_middle", t.range_start = "range_start", t.selected = "selected";
|
|
13501
13501
|
})(An || (An = {}));
|
|
13502
|
-
var
|
|
13502
|
+
var sn;
|
|
13503
13503
|
(function(t) {
|
|
13504
13504
|
t.weeks_before_enter = "weeks_before_enter", t.weeks_before_exit = "weeks_before_exit", t.weeks_after_enter = "weeks_after_enter", t.weeks_after_exit = "weeks_after_exit", t.caption_after_enter = "caption_after_enter", t.caption_after_exit = "caption_after_exit", t.caption_before_enter = "caption_before_enter", t.caption_before_exit = "caption_before_exit";
|
|
13505
|
-
})(
|
|
13505
|
+
})(sn || (sn = {}));
|
|
13506
13506
|
function g_(t) {
|
|
13507
13507
|
const { options: n, className: r, components: i, classNames: s, ...o } = t, l = [s[Le.Dropdown], r].join(" "), c = n == null ? void 0 : n.find(({ value: a }) => a === o.value);
|
|
13508
13508
|
return ve.createElement(
|
|
@@ -13549,9 +13549,9 @@ function C_(t) {
|
|
|
13549
13549
|
return ve.createElement(n.Dropdown, { ...t });
|
|
13550
13550
|
}
|
|
13551
13551
|
function S_(t) {
|
|
13552
|
-
const { onPreviousClick: n, onNextClick: r, previousMonth: i, nextMonth: s, ...o } = t, { components: l, classNames: c, labels: { labelPrevious: a, labelNext: h } } = Rs(), u =
|
|
13552
|
+
const { onPreviousClick: n, onNextClick: r, previousMonth: i, nextMonth: s, ...o } = t, { components: l, classNames: c, labels: { labelPrevious: a, labelNext: h } } = Rs(), u = ht((g) => {
|
|
13553
13553
|
s && (r == null || r(g));
|
|
13554
|
-
}, [s, r]), m =
|
|
13554
|
+
}, [s, r]), m = ht((g) => {
|
|
13555
13555
|
i && (n == null || n(g));
|
|
13556
13556
|
}, [i, n]);
|
|
13557
13557
|
return ve.createElement(
|
|
@@ -13754,22 +13754,22 @@ function e0() {
|
|
|
13754
13754
|
t[St[n]] = `rdp-${St[n]}`;
|
|
13755
13755
|
for (const n in An)
|
|
13756
13756
|
t[An[n]] = `rdp-${An[n]}`;
|
|
13757
|
-
for (const n in
|
|
13758
|
-
t[
|
|
13757
|
+
for (const n in sn)
|
|
13758
|
+
t[sn[n]] = `rdp-${sn[n]}`;
|
|
13759
13759
|
return t;
|
|
13760
13760
|
}
|
|
13761
13761
|
function vp(t, n, r) {
|
|
13762
|
-
return (r ?? new
|
|
13762
|
+
return (r ?? new dn(n)).formatMonthYear(t);
|
|
13763
13763
|
}
|
|
13764
13764
|
const $_ = vp;
|
|
13765
13765
|
function W_(t, n, r) {
|
|
13766
|
-
return (r ?? new
|
|
13766
|
+
return (r ?? new dn(n)).format(t, "d");
|
|
13767
13767
|
}
|
|
13768
13768
|
function U_(t, n = Xn) {
|
|
13769
13769
|
return n.format(t, "LLLL");
|
|
13770
13770
|
}
|
|
13771
13771
|
function q_(t, n, r) {
|
|
13772
|
-
return (r ?? new
|
|
13772
|
+
return (r ?? new dn(n)).format(t, "cccccc");
|
|
13773
13773
|
}
|
|
13774
13774
|
function Y_(t, n = Xn) {
|
|
13775
13775
|
return t < 10 ? n.formatNumber(`0${t.toLocaleString()}`) : n.formatNumber(`${t.toLocaleString()}`);
|
|
@@ -13799,16 +13799,16 @@ function X_(t) {
|
|
|
13799
13799
|
};
|
|
13800
13800
|
}
|
|
13801
13801
|
function t0(t, n, r, i) {
|
|
13802
|
-
let s = (i ?? new
|
|
13802
|
+
let s = (i ?? new dn(r)).format(t, "PPPP");
|
|
13803
13803
|
return n.today && (s = `Today, ${s}`), n.selected && (s = `${s}, selected`), s;
|
|
13804
13804
|
}
|
|
13805
13805
|
const K_ = t0;
|
|
13806
13806
|
function n0(t, n, r) {
|
|
13807
|
-
return (r ?? new
|
|
13807
|
+
return (r ?? new dn(n)).formatMonthYear(t);
|
|
13808
13808
|
}
|
|
13809
13809
|
const Q_ = n0;
|
|
13810
13810
|
function yp(t, n, r, i) {
|
|
13811
|
-
let s = (i ?? new
|
|
13811
|
+
let s = (i ?? new dn(r)).format(t, "PPPP");
|
|
13812
13812
|
return n != null && n.today && (s = `Today, ${s}`), s;
|
|
13813
13813
|
}
|
|
13814
13814
|
function wp(t) {
|
|
@@ -13825,7 +13825,7 @@ function Cp(t) {
|
|
|
13825
13825
|
return "Go to the Previous Month";
|
|
13826
13826
|
}
|
|
13827
13827
|
function Sp(t, n, r) {
|
|
13828
|
-
return (r ?? new
|
|
13828
|
+
return (r ?? new dn(n)).format(t, "cccc");
|
|
13829
13829
|
}
|
|
13830
13830
|
function kp(t, n) {
|
|
13831
13831
|
return `Week ${t}`;
|
|
@@ -13915,14 +13915,14 @@ function oC(t, n = {}) {
|
|
|
13915
13915
|
var c;
|
|
13916
13916
|
const { weekStartsOn: r, locale: i } = n, s = r ?? ((c = i == null ? void 0 : i.options) == null ? void 0 : c.weekStartsOn) ?? 0, o = (a) => {
|
|
13917
13917
|
const h = typeof a == "number" || typeof a == "string" ? new Date(a) : a;
|
|
13918
|
-
return new
|
|
13918
|
+
return new Yt(h.getFullYear(), h.getMonth(), h.getDate(), 12, 0, 0, t);
|
|
13919
13919
|
}, l = (a) => {
|
|
13920
13920
|
const h = o(a);
|
|
13921
13921
|
return new Date(h.getFullYear(), h.getMonth(), h.getDate(), 0, 0, 0, 0);
|
|
13922
13922
|
};
|
|
13923
13923
|
return {
|
|
13924
|
-
today: () => o(
|
|
13925
|
-
newDate: (a, h, u) => new
|
|
13924
|
+
today: () => o(Yt.tz(t)),
|
|
13925
|
+
newDate: (a, h, u) => new Yt(a, h, u, 12, 0, 0, t),
|
|
13926
13926
|
startOfDay: (a) => o(a),
|
|
13927
13927
|
startOfWeek: (a, h) => {
|
|
13928
13928
|
const u = o(a), m = (h == null ? void 0 : h.weekStartsOn) ?? s, g = (u.getDay() - m + 7) % 7;
|
|
@@ -13957,9 +13957,9 @@ function oC(t, n = {}) {
|
|
|
13957
13957
|
return h.setMonth(11, 31), h;
|
|
13958
13958
|
},
|
|
13959
13959
|
eachMonthOfInterval: (a) => {
|
|
13960
|
-
const h = o(a.start), u = o(a.end), m = [], g = new
|
|
13960
|
+
const h = o(a.start), u = o(a.end), m = [], g = new Yt(h.getFullYear(), h.getMonth(), 1, 12, 0, 0, t), C = u.getFullYear() * 12 + u.getMonth();
|
|
13961
13961
|
for (; g.getFullYear() * 12 + g.getMonth() <= C; )
|
|
13962
|
-
m.push(new
|
|
13962
|
+
m.push(new Yt(g, t)), g.setMonth(g.getMonth() + 1, 1);
|
|
13963
13963
|
return m;
|
|
13964
13964
|
},
|
|
13965
13965
|
// Normalize to noon once before arithmetic (avoid DST/midnight edge cases),
|
|
@@ -13981,9 +13981,9 @@ function oC(t, n = {}) {
|
|
|
13981
13981
|
return u.setFullYear(u.getFullYear() + h), u;
|
|
13982
13982
|
},
|
|
13983
13983
|
eachYearOfInterval: (a) => {
|
|
13984
|
-
const h = o(a.start), u = o(a.end), m = [], g = new
|
|
13984
|
+
const h = o(a.start), u = o(a.end), m = [], g = new Yt(h.getFullYear(), 0, 1, 12, 0, 0, t);
|
|
13985
13985
|
for (; g.getFullYear() <= u.getFullYear(); )
|
|
13986
|
-
m.push(new
|
|
13986
|
+
m.push(new Yt(g, t)), g.setFullYear(g.getFullYear() + 1, 0, 1);
|
|
13987
13987
|
return m;
|
|
13988
13988
|
},
|
|
13989
13989
|
getWeek: (a, h) => {
|
|
@@ -14019,7 +14019,7 @@ function uC(t, n, { classNames: r, months: i, focused: s, dateLib: o }) {
|
|
|
14019
14019
|
!(t.current instanceof HTMLElement) || // validation required for the animation to work as expected
|
|
14020
14020
|
i.length === 0 || h.length === 0 || i.length !== h.length)
|
|
14021
14021
|
return;
|
|
14022
|
-
const u = o.isSameMonth(i[0].date, h[0].date), m = o.isAfter(i[0].date, h[0].date), g = m ? r[
|
|
14022
|
+
const u = o.isSameMonth(i[0].date, h[0].date), m = o.isAfter(i[0].date, h[0].date), g = m ? r[sn.caption_after_enter] : r[sn.caption_before_enter], C = m ? r[sn.weeks_after_enter] : r[sn.weeks_before_enter], S = l.current, k = t.current.cloneNode(!0);
|
|
14023
14023
|
if (k instanceof HTMLElement ? (rl(k).forEach((b) => {
|
|
14024
14024
|
if (!(b instanceof HTMLElement))
|
|
14025
14025
|
return;
|
|
@@ -14052,9 +14052,9 @@ function uC(t, n, { classNames: r, months: i, focused: s, dateLib: o }) {
|
|
|
14052
14052
|
const T = cC(y);
|
|
14053
14053
|
T && (T.style.opacity = "0");
|
|
14054
14054
|
const D = il(y);
|
|
14055
|
-
D && (D.classList.add(m ? r[
|
|
14055
|
+
D && (D.classList.add(m ? r[sn.caption_before_exit] : r[sn.caption_after_exit]), D.addEventListener("animationend", M));
|
|
14056
14056
|
const I = sl(y);
|
|
14057
|
-
I && I.classList.add(m ? r[
|
|
14057
|
+
I && I.classList.add(m ? r[sn.weeks_before_exit] : r[sn.weeks_after_exit]), b.insertBefore(y, b.firstChild);
|
|
14058
14058
|
});
|
|
14059
14059
|
}
|
|
14060
14060
|
});
|
|
@@ -14382,7 +14382,7 @@ function MC(t, n) {
|
|
|
14382
14382
|
}
|
|
14383
14383
|
}
|
|
14384
14384
|
function pn(t, n) {
|
|
14385
|
-
return t instanceof
|
|
14385
|
+
return t instanceof Yt && t.timeZone === n ? t : new Yt(t, n);
|
|
14386
14386
|
}
|
|
14387
14387
|
function hi(t, n, r) {
|
|
14388
14388
|
return pn(t, n);
|
|
@@ -14405,29 +14405,29 @@ function ol(t, n, r) {
|
|
|
14405
14405
|
return t && (Array.isArray(t) ? t.map((i) => td(i, n)) : td(t, n));
|
|
14406
14406
|
}
|
|
14407
14407
|
function AC(t) {
|
|
14408
|
-
var
|
|
14408
|
+
var at;
|
|
14409
14409
|
let n = t;
|
|
14410
14410
|
const r = n.timeZone;
|
|
14411
14411
|
if (r && (n = {
|
|
14412
14412
|
...t,
|
|
14413
14413
|
timeZone: r
|
|
14414
|
-
}, n.today && (n.today = pn(n.today, r)), n.month && (n.month = pn(n.month, r)), n.defaultMonth && (n.defaultMonth = pn(n.defaultMonth, r)), n.startMonth && (n.startMonth = pn(n.startMonth, r)), n.endMonth && (n.endMonth = pn(n.endMonth, r)), n.mode === "single" && n.selected ? n.selected = pn(n.selected, r) : n.mode === "multiple" && n.selected ? n.selected = (
|
|
14414
|
+
}, n.today && (n.today = pn(n.today, r)), n.month && (n.month = pn(n.month, r)), n.defaultMonth && (n.defaultMonth = pn(n.defaultMonth, r)), n.startMonth && (n.startMonth = pn(n.startMonth, r)), n.endMonth && (n.endMonth = pn(n.endMonth, r)), n.mode === "single" && n.selected ? n.selected = pn(n.selected, r) : n.mode === "multiple" && n.selected ? n.selected = (at = n.selected) == null ? void 0 : at.map((Ve) => pn(Ve, r)) : n.mode === "range" && n.selected && (n.selected = {
|
|
14415
14415
|
from: n.selected.from ? pn(n.selected.from, r) : n.selected.from,
|
|
14416
14416
|
to: n.selected.to ? pn(n.selected.to, r) : n.selected.to
|
|
14417
14417
|
}), n.disabled !== void 0 && (n.disabled = ol(n.disabled, r)), n.hidden !== void 0 && (n.hidden = ol(n.hidden, r)), n.modifiers)) {
|
|
14418
14418
|
const Ve = {};
|
|
14419
|
-
Object.keys(n.modifiers).forEach((
|
|
14419
|
+
Object.keys(n.modifiers).forEach((Ke) => {
|
|
14420
14420
|
var Oe;
|
|
14421
|
-
Ve[
|
|
14421
|
+
Ve[Ke] = ol((Oe = n.modifiers) == null ? void 0 : Oe[Ke], r);
|
|
14422
14422
|
}), n.modifiers = Ve;
|
|
14423
14423
|
}
|
|
14424
14424
|
const { components: i, formatters: s, labels: o, dateLib: l, locale: c, classNames: a } = co(() => {
|
|
14425
|
-
const Ve = { ...fp, ...n.locale },
|
|
14426
|
-
weekStartsOn:
|
|
14425
|
+
const Ve = { ...fp, ...n.locale }, Ke = n.broadcastCalendar ? 1 : n.weekStartsOn, Oe = n.noonSafe && n.timeZone ? oC(n.timeZone, {
|
|
14426
|
+
weekStartsOn: Ke,
|
|
14427
14427
|
locale: Ve
|
|
14428
|
-
}) : void 0, Ze = n.dateLib && Oe ? { ...Oe, ...n.dateLib } : n.dateLib ?? Oe, Wt = new
|
|
14428
|
+
}) : void 0, Ze = n.dateLib && Oe ? { ...Oe, ...n.dateLib } : n.dateLib ?? Oe, Wt = new dn({
|
|
14429
14429
|
locale: Ve,
|
|
14430
|
-
weekStartsOn:
|
|
14430
|
+
weekStartsOn: Ke,
|
|
14431
14431
|
firstWeekContainsDate: n.firstWeekContainsDate,
|
|
14432
14432
|
useAdditionalWeekYearTokens: n.useAdditionalWeekYearTokens,
|
|
14433
14433
|
useAdditionalDayOfYearTokens: n.useAdditionalDayOfYearTokens,
|
|
@@ -14459,17 +14459,17 @@ function AC(t) {
|
|
|
14459
14459
|
n.classNames
|
|
14460
14460
|
]);
|
|
14461
14461
|
n.today || (n = { ...n, today: l.today() });
|
|
14462
|
-
const { captionLayout: h, mode: u, navLayout: m, numberOfMonths: g = 1, onDayBlur: C, onDayClick: S, onDayFocus: k, onDayKeyDown: d, onDayMouseEnter: f, onDayMouseLeave: p, onNextClick: b, onPrevClick: x, showWeekNumber: y, styles: _ } = n, { formatCaption: E, formatDay: M, formatMonthDropdown: T, formatWeekNumber: D, formatWeekNumberHeader: I, formatWeekdayName: R, formatYearDropdown: O } = s, z = yC(n, l), { days: U, months: G, navStart: q, navEnd: $, previousMonth: B, nextMonth: F, goToMonth: K } = z, W = z_(U, n, q, $, l), { isSelected: Y, select: H, selected: X } = MC(n, l) ?? {}, { blur: le, focused: J, isFocusTarget: ae, moveFocus: ce, setFocused: te } = _C(n, z, W, Y ?? (() => !1), l), { labelDayButton: de, labelGridcell: ge, labelGrid: Ne, labelMonthDropdown: _e, labelNav: Re, labelPrevious: qe, labelNext: nt, labelWeekday: Be, labelWeekNumber: ze, labelWeekNumberHeader: V, labelYearDropdown: ee } = o, ie = co(() => iC(l, n.ISOWeek, n.broadcastCalendar, n.today), [l, n.ISOWeek, n.broadcastCalendar, n.today]), he = u !== void 0 || S !== void 0, ue =
|
|
14462
|
+
const { captionLayout: h, mode: u, navLayout: m, numberOfMonths: g = 1, onDayBlur: C, onDayClick: S, onDayFocus: k, onDayKeyDown: d, onDayMouseEnter: f, onDayMouseLeave: p, onNextClick: b, onPrevClick: x, showWeekNumber: y, styles: _ } = n, { formatCaption: E, formatDay: M, formatMonthDropdown: T, formatWeekNumber: D, formatWeekNumberHeader: I, formatWeekdayName: R, formatYearDropdown: O } = s, z = yC(n, l), { days: U, months: G, navStart: q, navEnd: $, previousMonth: B, nextMonth: F, goToMonth: K } = z, W = z_(U, n, q, $, l), { isSelected: Y, select: H, selected: X } = MC(n, l) ?? {}, { blur: le, focused: J, isFocusTarget: ae, moveFocus: ce, setFocused: te } = _C(n, z, W, Y ?? (() => !1), l), { labelDayButton: de, labelGridcell: ge, labelGrid: Ne, labelMonthDropdown: _e, labelNav: Re, labelPrevious: qe, labelNext: nt, labelWeekday: Be, labelWeekNumber: ze, labelWeekNumberHeader: V, labelYearDropdown: ee } = o, ie = co(() => iC(l, n.ISOWeek, n.broadcastCalendar, n.today), [l, n.ISOWeek, n.broadcastCalendar, n.today]), he = u !== void 0 || S !== void 0, ue = ht(() => {
|
|
14463
14463
|
B && (K(B), x == null || x(B));
|
|
14464
|
-
}, [B, K, x]), se =
|
|
14464
|
+
}, [B, K, x]), se = ht(() => {
|
|
14465
14465
|
F && (K(F), b == null || b(F));
|
|
14466
|
-
}, [K, F, b]), pe =
|
|
14467
|
-
Oe.preventDefault(), Oe.stopPropagation(), te(Ve), !
|
|
14468
|
-
}, [H, S, te]), Te =
|
|
14469
|
-
te(Ve), k == null || k(Ve.date,
|
|
14470
|
-
}, [k, te]), De =
|
|
14471
|
-
le(), C == null || C(Ve.date,
|
|
14472
|
-
}, [le, C]), $e =
|
|
14466
|
+
}, [K, F, b]), pe = ht((Ve, Ke) => (Oe) => {
|
|
14467
|
+
Oe.preventDefault(), Oe.stopPropagation(), te(Ve), !Ke.disabled && (H == null || H(Ve.date, Ke, Oe), S == null || S(Ve.date, Ke, Oe));
|
|
14468
|
+
}, [H, S, te]), Te = ht((Ve, Ke) => (Oe) => {
|
|
14469
|
+
te(Ve), k == null || k(Ve.date, Ke, Oe);
|
|
14470
|
+
}, [k, te]), De = ht((Ve, Ke) => (Oe) => {
|
|
14471
|
+
le(), C == null || C(Ve.date, Ke, Oe);
|
|
14472
|
+
}, [le, C]), $e = ht((Ve, Ke) => (Oe) => {
|
|
14473
14473
|
const Ze = {
|
|
14474
14474
|
ArrowLeft: [
|
|
14475
14475
|
Oe.shiftKey ? "month" : "day",
|
|
@@ -14488,21 +14488,21 @@ function AC(t) {
|
|
|
14488
14488
|
};
|
|
14489
14489
|
if (Ze[Oe.key]) {
|
|
14490
14490
|
Oe.preventDefault(), Oe.stopPropagation();
|
|
14491
|
-
const [Wt,
|
|
14492
|
-
ce(Wt,
|
|
14493
|
-
}
|
|
14494
|
-
d == null || d(Ve.date,
|
|
14495
|
-
}, [ce, d, n.dir]), rt =
|
|
14496
|
-
f == null || f(Ve.date,
|
|
14497
|
-
}, [f]), me =
|
|
14498
|
-
p == null || p(Ve.date,
|
|
14499
|
-
}, [p]), Se =
|
|
14500
|
-
const Oe = Number(
|
|
14491
|
+
const [Wt, Je] = Ze[Oe.key];
|
|
14492
|
+
ce(Wt, Je);
|
|
14493
|
+
}
|
|
14494
|
+
d == null || d(Ve.date, Ke, Oe);
|
|
14495
|
+
}, [ce, d, n.dir]), rt = ht((Ve, Ke) => (Oe) => {
|
|
14496
|
+
f == null || f(Ve.date, Ke, Oe);
|
|
14497
|
+
}, [f]), me = ht((Ve, Ke) => (Oe) => {
|
|
14498
|
+
p == null || p(Ve.date, Ke, Oe);
|
|
14499
|
+
}, [p]), Se = ht((Ve) => (Ke) => {
|
|
14500
|
+
const Oe = Number(Ke.target.value), Ze = l.setMonth(l.startOfMonth(Ve), Oe);
|
|
14501
14501
|
K(Ze);
|
|
14502
|
-
}, [l, K]), Ge =
|
|
14503
|
-
const Oe = Number(
|
|
14502
|
+
}, [l, K]), Ge = ht((Ve) => (Ke) => {
|
|
14503
|
+
const Oe = Number(Ke.target.value), Ze = l.setYear(l.startOfMonth(Ve), Oe);
|
|
14504
14504
|
K(Ze);
|
|
14505
|
-
}, [l, K]), { className:
|
|
14505
|
+
}, [l, K]), { className: st, style: pt } = co(() => ({
|
|
14506
14506
|
className: [a[Le.Root], n.className].filter(Boolean).join(" "),
|
|
14507
14507
|
style: { ..._ == null ? void 0 : _[Le.Root], ...n.style }
|
|
14508
14508
|
}), [a, n.className, n.style, _]), et = V_(n), bt = lo(null);
|
|
@@ -14512,7 +14512,7 @@ function AC(t) {
|
|
|
14512
14512
|
focused: J,
|
|
14513
14513
|
dateLib: l
|
|
14514
14514
|
});
|
|
14515
|
-
const
|
|
14515
|
+
const gt = {
|
|
14516
14516
|
dayPickerProps: n,
|
|
14517
14517
|
selected: X,
|
|
14518
14518
|
select: H,
|
|
@@ -14530,31 +14530,31 @@ function AC(t) {
|
|
|
14530
14530
|
};
|
|
14531
14531
|
return ve.createElement(
|
|
14532
14532
|
mp.Provider,
|
|
14533
|
-
{ value:
|
|
14533
|
+
{ value: gt },
|
|
14534
14534
|
ve.createElement(
|
|
14535
14535
|
i.Root,
|
|
14536
|
-
{ rootRef: n.animate ? bt : void 0, className:
|
|
14536
|
+
{ rootRef: n.animate ? bt : void 0, className: st, style: pt, dir: n.dir, id: n.id, lang: n.lang, nonce: n.nonce, title: n.title, role: n.role, "aria-label": n["aria-label"], "aria-labelledby": n["aria-labelledby"], ...et },
|
|
14537
14537
|
ve.createElement(
|
|
14538
14538
|
i.Months,
|
|
14539
14539
|
{ className: a[Le.Months], style: _ == null ? void 0 : _[Le.Months] },
|
|
14540
14540
|
!n.hideNavigation && !m && ve.createElement(i.Nav, { "data-animated-nav": n.animate ? "true" : void 0, className: a[Le.Nav], style: _ == null ? void 0 : _[Le.Nav], "aria-label": Re(), onPreviousClick: ue, onNextClick: se, previousMonth: B, nextMonth: F }),
|
|
14541
|
-
G.map((Ve,
|
|
14541
|
+
G.map((Ve, Ke) => ve.createElement(
|
|
14542
14542
|
i.Month,
|
|
14543
14543
|
{
|
|
14544
14544
|
"data-animated-month": n.animate ? "true" : void 0,
|
|
14545
14545
|
className: a[Le.Month],
|
|
14546
14546
|
style: _ == null ? void 0 : _[Le.Month],
|
|
14547
14547
|
// biome-ignore lint/suspicious/noArrayIndexKey: breaks animation
|
|
14548
|
-
key:
|
|
14549
|
-
displayIndex:
|
|
14548
|
+
key: Ke,
|
|
14549
|
+
displayIndex: Ke,
|
|
14550
14550
|
calendarMonth: Ve
|
|
14551
14551
|
},
|
|
14552
|
-
m === "around" && !n.hideNavigation &&
|
|
14552
|
+
m === "around" && !n.hideNavigation && Ke === 0 && ve.createElement(
|
|
14553
14553
|
i.PreviousMonthButton,
|
|
14554
14554
|
{ type: "button", className: a[Le.PreviousMonthButton], tabIndex: B ? void 0 : -1, "aria-disabled": B ? void 0 : !0, "aria-label": qe(B), onClick: ue, "data-animated-button": n.animate ? "true" : void 0 },
|
|
14555
14555
|
ve.createElement(i.Chevron, { disabled: B ? void 0 : !0, className: a[Le.Chevron], orientation: n.dir === "rtl" ? "right" : "left" })
|
|
14556
14556
|
),
|
|
14557
|
-
ve.createElement(i.MonthCaption, { "data-animated-caption": n.animate ? "true" : void 0, className: a[Le.MonthCaption], style: _ == null ? void 0 : _[Le.MonthCaption], calendarMonth: Ve, displayIndex:
|
|
14557
|
+
ve.createElement(i.MonthCaption, { "data-animated-caption": n.animate ? "true" : void 0, className: a[Le.MonthCaption], style: _ == null ? void 0 : _[Le.MonthCaption], calendarMonth: Ve, displayIndex: Ke }, h != null && h.startsWith("dropdown") ? ve.createElement(
|
|
14558
14558
|
i.DropdownNav,
|
|
14559
14559
|
{ className: a[Le.Dropdowns], style: _ == null ? void 0 : _[Le.Dropdowns] },
|
|
14560
14560
|
(() => {
|
|
@@ -14574,12 +14574,12 @@ function AC(t) {
|
|
|
14574
14574
|
wordWrap: "normal"
|
|
14575
14575
|
} }, E(Ve.date, l.options, l))
|
|
14576
14576
|
) : ve.createElement(i.CaptionLabel, { className: a[Le.CaptionLabel], role: "status", "aria-live": "polite" }, E(Ve.date, l.options, l))),
|
|
14577
|
-
m === "around" && !n.hideNavigation &&
|
|
14577
|
+
m === "around" && !n.hideNavigation && Ke === g - 1 && ve.createElement(
|
|
14578
14578
|
i.NextMonthButton,
|
|
14579
14579
|
{ type: "button", className: a[Le.NextMonthButton], tabIndex: F ? void 0 : -1, "aria-disabled": F ? void 0 : !0, "aria-label": nt(F), onClick: se, "data-animated-button": n.animate ? "true" : void 0 },
|
|
14580
14580
|
ve.createElement(i.Chevron, { disabled: F ? void 0 : !0, className: a[Le.Chevron], orientation: n.dir === "rtl" ? "left" : "right" })
|
|
14581
14581
|
),
|
|
14582
|
-
|
|
14582
|
+
Ke === g - 1 && m === "after" && !n.hideNavigation && ve.createElement(i.Nav, { "data-animated-nav": n.animate ? "true" : void 0, className: a[Le.Nav], style: _ == null ? void 0 : _[Le.Nav], "aria-label": Re(), onPreviousClick: ue, onNextClick: se, previousMonth: B, nextMonth: F }),
|
|
14583
14583
|
ve.createElement(
|
|
14584
14584
|
i.MonthGrid,
|
|
14585
14585
|
{ role: "grid", "aria-multiselectable": u === "multiple" || u === "range", "aria-label": Ne(Ve.date, l.options, l) || void 0, className: a[Le.MonthGrid], style: _ == null ? void 0 : _[Le.MonthGrid] },
|
|
@@ -14596,13 +14596,13 @@ function AC(t) {
|
|
|
14596
14596
|
locale: c
|
|
14597
14597
|
}), className: a[Le.WeekNumber], scope: "row", role: "rowheader" }, D(Oe.weekNumber, l)),
|
|
14598
14598
|
Oe.days.map((Ze) => {
|
|
14599
|
-
const { date: Wt } = Ze,
|
|
14600
|
-
if (
|
|
14599
|
+
const { date: Wt } = Ze, Je = W(Ze);
|
|
14600
|
+
if (Je[St.focused] = !Je.hidden && !!(J != null && J.isEqualTo(Ze)), Je[An.selected] = (Y == null ? void 0 : Y(Wt)) || Je.selected, ba(X)) {
|
|
14601
14601
|
const { from: Vi, to: $i } = X;
|
|
14602
|
-
|
|
14602
|
+
Je[An.range_start] = !!(Vi && $i && l.isSameDay(Wt, Vi)), Je[An.range_end] = !!(Vi && $i && l.isSameDay(Wt, $i)), Je[An.range_middle] = or(X, Wt, !0, l);
|
|
14603
14603
|
}
|
|
14604
|
-
const ai = rC(
|
|
14605
|
-
return ve.createElement(i.Day, { key: `${Ze.isoDate}_${Ze.displayMonthId}`, day: Ze, modifiers:
|
|
14604
|
+
const ai = rC(Je, _, n.modifiersStyles), Hi = F_(Je, a, n.modifiersClassNames), Ia = !he && !Je.hidden ? ge(Wt, Je, l.options, l) : void 0;
|
|
14605
|
+
return ve.createElement(i.Day, { key: `${Ze.isoDate}_${Ze.displayMonthId}`, day: Ze, modifiers: Je, className: Hi.join(" "), style: ai, role: "gridcell", "aria-selected": Je.selected || void 0, "aria-label": Ia, "data-day": Ze.isoDate, "data-month": Ze.outside ? Ze.dateMonthId : void 0, "data-selected": Je.selected || void 0, "data-disabled": Je.disabled || void 0, "data-hidden": Je.hidden || void 0, "data-outside": Ze.outside || void 0, "data-focused": Je.focused || void 0, "data-today": Je.today || void 0 }, !Je.hidden && he ? ve.createElement(i.DayButton, { className: a[Le.DayButton], style: _ == null ? void 0 : _[Le.DayButton], type: "button", day: Ze, modifiers: Je, disabled: !Je.focused && Je.disabled || void 0, "aria-disabled": Je.focused && Je.disabled || void 0, tabIndex: ae(Ze) ? 0 : -1, "aria-label": de(Wt, Je, l.options, l), onClick: pe(Ze, Je), onBlur: De(Ze, Je), onFocus: Te(Ze, Je), onKeyDown: $e(Ze, Je), onMouseEnter: rt(Ze, Je), onMouseLeave: me(Ze, Je) }, M(Wt, l.options, l)) : !Je.hidden && M(Ze.date, l.options, l));
|
|
14606
14606
|
})
|
|
14607
14607
|
)))
|
|
14608
14608
|
)
|
|
@@ -14808,7 +14808,7 @@ const al = (t) => {
|
|
|
14808
14808
|
if (t)
|
|
14809
14809
|
return n ? new Date(
|
|
14810
14810
|
Date.UTC(t.getFullYear(), t.getMonth(), t.getDate())
|
|
14811
|
-
).toISOString() :
|
|
14811
|
+
).toISOString() : qt(t, "yyyy-MM-dd");
|
|
14812
14812
|
}, Ap = v.forwardRef(
|
|
14813
14813
|
({
|
|
14814
14814
|
date: t,
|
|
@@ -14827,7 +14827,7 @@ const al = (t) => {
|
|
|
14827
14827
|
}, C) => {
|
|
14828
14828
|
const [S, k] = v.useState(!1), [d, f] = v.useState(/* @__PURE__ */ new Date()), [p, b] = v.useState(""), [x, y] = v.useState(""), _ = v.useId(), E = v.useMemo(() => al(t), [t]), M = v.useMemo(() => al(u), [u]), T = v.useMemo(() => al(m), [m]);
|
|
14829
14829
|
v.useEffect(() => {
|
|
14830
|
-
E ? (b(
|
|
14830
|
+
E ? (b(qt(E, "yyyy-MM-dd")), y("")) : t || (b(""), y(""));
|
|
14831
14831
|
}, [t, E]), v.useEffect(() => {
|
|
14832
14832
|
S && f(E || /* @__PURE__ */ new Date());
|
|
14833
14833
|
}, [S, E]);
|
|
@@ -14859,7 +14859,7 @@ const al = (t) => {
|
|
|
14859
14859
|
);
|
|
14860
14860
|
if (F < K) {
|
|
14861
14861
|
y(
|
|
14862
|
-
`Date must be on or after ${
|
|
14862
|
+
`Date must be on or after ${qt(K, "yyyy-MM-dd")}`
|
|
14863
14863
|
);
|
|
14864
14864
|
return;
|
|
14865
14865
|
}
|
|
@@ -14872,7 +14872,7 @@ const al = (t) => {
|
|
|
14872
14872
|
);
|
|
14873
14873
|
if (F > K) {
|
|
14874
14874
|
y(
|
|
14875
|
-
`Date must be on or before ${
|
|
14875
|
+
`Date must be on or before ${qt(K, "yyyy-MM-dd")}`
|
|
14876
14876
|
);
|
|
14877
14877
|
return;
|
|
14878
14878
|
}
|
|
@@ -15012,10 +15012,10 @@ const Dp = v.forwardRef(
|
|
|
15012
15012
|
}, [a]);
|
|
15013
15013
|
const S = (I) => {
|
|
15014
15014
|
I.stopPropagation(), n == null || n({ from: void 0, to: void 0 }), m(null), C(0);
|
|
15015
|
-
}, k = () => t != null && t.from ? t.to ? `${
|
|
15015
|
+
}, k = () => t != null && t.from ? t.to ? `${qt(new Date(t.from), "LLL dd, y")} - ${qt(
|
|
15016
15016
|
new Date(t.to),
|
|
15017
15017
|
"LLL dd, y"
|
|
15018
|
-
)}` :
|
|
15018
|
+
)}` : qt(new Date(t.from), "LLL dd, y") : r, d = (I) => {
|
|
15019
15019
|
if (!I || !I.from) return { from: void 0, to: void 0 };
|
|
15020
15020
|
if (o) {
|
|
15021
15021
|
const R = new Date(
|
|
@@ -15040,8 +15040,8 @@ const Dp = v.forwardRef(
|
|
|
15040
15040
|
return { from: R, to: O };
|
|
15041
15041
|
} else
|
|
15042
15042
|
return {
|
|
15043
|
-
from: I.from ?
|
|
15044
|
-
to: I.to ?
|
|
15043
|
+
from: I.from ? qt(I.from, "yyyy-MM-dd") : void 0,
|
|
15044
|
+
to: I.to ? qt(I.to, "yyyy-MM-dd") : void 0
|
|
15045
15045
|
};
|
|
15046
15046
|
}, f = (I) => {
|
|
15047
15047
|
if (!I) {
|
|
@@ -15070,7 +15070,7 @@ const Dp = v.forwardRef(
|
|
|
15070
15070
|
if (!(t != null && t.from)) return;
|
|
15071
15071
|
const I = typeof t.from == "string" ? new Date(t.from) : t.from, R = t.to ? typeof t.to == "string" ? new Date(t.to) : t.to : void 0;
|
|
15072
15072
|
return { from: I, to: R };
|
|
15073
|
-
})() || void 0, _ = !!(u != null && u.from), E = u != null && u.from && (u != null && u.to) ? `Apply: ${
|
|
15073
|
+
})() || void 0, _ = !!(u != null && u.from), E = u != null && u.from && (u != null && u.to) ? `Apply: ${qt(u.from, "MMM dd")} – ${qt(u.to, "MMM dd")}` : u != null && u.from ? `Apply: ${qt(u.from, "MMM dd")}` : "Apply", M = /* @__PURE__ */ new Date(), T = nl(M, 1), D = [
|
|
15074
15074
|
{ label: "Today", from: M, to: M },
|
|
15075
15075
|
{ label: "Yesterday", from: T, to: T },
|
|
15076
15076
|
{
|
|
@@ -23548,13 +23548,13 @@ function qC(t, n, r, i, s, o) {
|
|
|
23548
23548
|
if (ae) {
|
|
23549
23549
|
const Ge = I(V);
|
|
23550
23550
|
if (Ge && Ge.parentNode !== De) {
|
|
23551
|
-
let
|
|
23552
|
-
for (;
|
|
23553
|
-
for (V =
|
|
23554
|
-
|
|
23555
|
-
|
|
23551
|
+
let st = Ge, pt = null;
|
|
23552
|
+
for (; st.parentNode !== De; ) {
|
|
23553
|
+
for (V = pt = st.parentNode.cloneNode(!1); st.childNodes[0]; )
|
|
23554
|
+
pt.appendChild(st.childNodes[0]);
|
|
23555
|
+
st.appendChild(pt), st = st.parentNode;
|
|
23556
23556
|
}
|
|
23557
|
-
|
|
23557
|
+
st.parentNode.appendChild(Ge);
|
|
23558
23558
|
}
|
|
23559
23559
|
ae = ae.cloneNode(!1);
|
|
23560
23560
|
}
|
|
@@ -26825,7 +26825,7 @@ wa.buttonList = void 0;
|
|
|
26825
26825
|
var aS = oS(r0);
|
|
26826
26826
|
wa.buttonList = sS(Ar);
|
|
26827
26827
|
var lS = wa.default = aS.default;
|
|
26828
|
-
class
|
|
26828
|
+
class nn {
|
|
26829
26829
|
// The + prefix indicates that these fields aren't writeable
|
|
26830
26830
|
// Lexer holding the input string.
|
|
26831
26831
|
// Start offset, zero-based inclusive.
|
|
@@ -26842,10 +26842,10 @@ class en {
|
|
|
26842
26842
|
* - Otherwise, returns null.
|
|
26843
26843
|
*/
|
|
26844
26844
|
static range(n, r) {
|
|
26845
|
-
return r ? !n || !n.loc || !r.loc || n.loc.lexer !== r.loc.lexer ? null : new
|
|
26845
|
+
return r ? !n || !n.loc || !r.loc || n.loc.lexer !== r.loc.lexer ? null : new nn(n.loc.lexer, n.loc.start, r.loc.end) : n && n.loc;
|
|
26846
26846
|
}
|
|
26847
26847
|
}
|
|
26848
|
-
class
|
|
26848
|
+
class un {
|
|
26849
26849
|
// don't expand the token
|
|
26850
26850
|
// used in \noexpand
|
|
26851
26851
|
constructor(n, r) {
|
|
@@ -26856,7 +26856,7 @@ class ln {
|
|
|
26856
26856
|
* the whole input range enclosed by these two.
|
|
26857
26857
|
*/
|
|
26858
26858
|
range(n, r) {
|
|
26859
|
-
return new
|
|
26859
|
+
return new un(r, nn.range(this, n));
|
|
26860
26860
|
}
|
|
26861
26861
|
}
|
|
26862
26862
|
class ye {
|
|
@@ -26905,7 +26905,7 @@ var lg = function t(n) {
|
|
|
26905
26905
|
}, vS = function(n) {
|
|
26906
26906
|
var r = /^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(n);
|
|
26907
26907
|
return r ? r[2] !== ":" || !/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(r[1]) ? null : r[1].toLowerCase() : "_relative";
|
|
26908
|
-
},
|
|
26908
|
+
}, lt = {
|
|
26909
26909
|
deflt: cS,
|
|
26910
26910
|
escape: mS,
|
|
26911
26911
|
hyphenate: dS,
|
|
@@ -27065,7 +27065,7 @@ class l0 {
|
|
|
27065
27065
|
*/
|
|
27066
27066
|
isTrusted(n) {
|
|
27067
27067
|
if (n.url && !n.protocol) {
|
|
27068
|
-
var r =
|
|
27068
|
+
var r = lt.protocolFromUrl(n.url);
|
|
27069
27069
|
if (r == null)
|
|
27070
27070
|
return !1;
|
|
27071
27071
|
n.protocol = r;
|
|
@@ -27124,7 +27124,7 @@ class _r {
|
|
|
27124
27124
|
return this.size >= 2;
|
|
27125
27125
|
}
|
|
27126
27126
|
}
|
|
27127
|
-
var c0 = 0, Mo = 1, wi = 2, cr = 3, ms = 4, yn = 5, Ti = 6,
|
|
27127
|
+
var c0 = 0, Mo = 1, wi = 2, cr = 3, ms = 4, yn = 5, Ti = 6, Kt = 7, zn = [new _r(c0, 0, !1), new _r(Mo, 0, !0), new _r(wi, 1, !1), new _r(cr, 1, !0), new _r(ms, 2, !1), new _r(yn, 2, !0), new _r(Ti, 3, !1), new _r(Kt, 3, !0)], yS = [ms, yn, ms, yn, Ti, Kt, Ti, Kt], wS = [yn, yn, yn, yn, Kt, Kt, Kt, Kt], xS = [wi, cr, ms, yn, Ti, Kt, Ti, Kt], _S = [cr, cr, yn, yn, Kt, Kt, Kt, Kt], CS = [Mo, Mo, cr, cr, yn, yn, Kt, Kt], SS = [c0, Mo, wi, cr, wi, cr, wi, cr], Pe = {
|
|
27128
27128
|
DISPLAY: zn[c0],
|
|
27129
27129
|
TEXT: zn[wi],
|
|
27130
27130
|
SCRIPT: zn[ms],
|
|
@@ -30202,16 +30202,16 @@ var Ql = {
|
|
|
30202
30202
|
return r;
|
|
30203
30203
|
}, HS = /[\s"'>/=\x00-\x1f]/, hg = function(n) {
|
|
30204
30204
|
var r = "<" + n;
|
|
30205
|
-
this.classes.length && (r += ' class="' +
|
|
30205
|
+
this.classes.length && (r += ' class="' + lt.escape(Lr(this.classes)) + '"');
|
|
30206
30206
|
var i = "";
|
|
30207
30207
|
for (var s in this.style)
|
|
30208
|
-
this.style.hasOwnProperty(s) && (i +=
|
|
30209
|
-
i && (r += ' style="' +
|
|
30208
|
+
this.style.hasOwnProperty(s) && (i += lt.hyphenate(s) + ":" + this.style[s] + ";");
|
|
30209
|
+
i && (r += ' style="' + lt.escape(i) + '"');
|
|
30210
30210
|
for (var o in this.attributes)
|
|
30211
30211
|
if (this.attributes.hasOwnProperty(o)) {
|
|
30212
30212
|
if (HS.test(o))
|
|
30213
30213
|
throw new ye("Invalid attribute name '" + o + "'");
|
|
30214
|
-
r += " " + o + '="' +
|
|
30214
|
+
r += " " + o + '="' + lt.escape(this.attributes[o]) + '"';
|
|
30215
30215
|
}
|
|
30216
30216
|
r += ">";
|
|
30217
30217
|
for (var l = 0; l < this.children.length; l++)
|
|
@@ -30272,10 +30272,10 @@ class VS {
|
|
|
30272
30272
|
return n;
|
|
30273
30273
|
}
|
|
30274
30274
|
toMarkup() {
|
|
30275
|
-
var n = '<img src="' +
|
|
30275
|
+
var n = '<img src="' + lt.escape(this.src) + '"' + (' alt="' + lt.escape(this.alt) + '"'), r = "";
|
|
30276
30276
|
for (var i in this.style)
|
|
30277
|
-
this.style.hasOwnProperty(i) && (r +=
|
|
30278
|
-
return r && (n += ' style="' +
|
|
30277
|
+
this.style.hasOwnProperty(i) && (r += lt.hyphenate(i) + ":" + this.style[i] + ";");
|
|
30278
|
+
return r && (n += ' style="' + lt.escape(r) + '"'), n += "'/>", n;
|
|
30279
30279
|
}
|
|
30280
30280
|
}
|
|
30281
30281
|
var $S = {
|
|
@@ -30310,13 +30310,13 @@ class _n {
|
|
|
30310
30310
|
*/
|
|
30311
30311
|
toMarkup() {
|
|
30312
30312
|
var n = !1, r = "<span";
|
|
30313
|
-
this.classes.length && (n = !0, r += ' class="', r +=
|
|
30313
|
+
this.classes.length && (n = !0, r += ' class="', r += lt.escape(Lr(this.classes)), r += '"');
|
|
30314
30314
|
var i = "";
|
|
30315
30315
|
this.italic > 0 && (i += "margin-right:" + this.italic + "em;");
|
|
30316
30316
|
for (var s in this.style)
|
|
30317
|
-
this.style.hasOwnProperty(s) && (i +=
|
|
30318
|
-
i && (n = !0, r += ' style="' +
|
|
30319
|
-
var o =
|
|
30317
|
+
this.style.hasOwnProperty(s) && (i += lt.hyphenate(s) + ":" + this.style[s] + ";");
|
|
30318
|
+
i && (n = !0, r += ' style="' + lt.escape(i) + '"');
|
|
30319
|
+
var o = lt.escape(this.text);
|
|
30320
30320
|
return n ? (r += ">", r += o, r += "</span>", r) : o;
|
|
30321
30321
|
}
|
|
30322
30322
|
}
|
|
@@ -30335,7 +30335,7 @@ class hr {
|
|
|
30335
30335
|
toMarkup() {
|
|
30336
30336
|
var n = '<svg xmlns="http://www.w3.org/2000/svg"';
|
|
30337
30337
|
for (var r in this.attributes)
|
|
30338
|
-
Object.prototype.hasOwnProperty.call(this.attributes, r) && (n += " " + r + '="' +
|
|
30338
|
+
Object.prototype.hasOwnProperty.call(this.attributes, r) && (n += " " + r + '="' + lt.escape(this.attributes[r]) + '"');
|
|
30339
30339
|
n += ">";
|
|
30340
30340
|
for (var i = 0; i < this.children.length; i++)
|
|
30341
30341
|
n += this.children[i].toMarkup();
|
|
@@ -30351,7 +30351,7 @@ class Or {
|
|
|
30351
30351
|
return this.alternate ? r.setAttribute("d", this.alternate) : r.setAttribute("d", ad[this.pathName]), r;
|
|
30352
30352
|
}
|
|
30353
30353
|
toMarkup() {
|
|
30354
|
-
return this.alternate ? '<path d="' +
|
|
30354
|
+
return this.alternate ? '<path d="' + lt.escape(this.alternate) + '"/>' : '<path d="' + lt.escape(ad[this.pathName]) + '"/>';
|
|
30355
30355
|
}
|
|
30356
30356
|
}
|
|
30357
30357
|
class Jl {
|
|
@@ -30367,7 +30367,7 @@ class Jl {
|
|
|
30367
30367
|
toMarkup() {
|
|
30368
30368
|
var n = "<line";
|
|
30369
30369
|
for (var r in this.attributes)
|
|
30370
|
-
Object.prototype.hasOwnProperty.call(this.attributes, r) && (n += " " + r + '="' +
|
|
30370
|
+
Object.prototype.hasOwnProperty.call(this.attributes, r) && (n += " " + r + '="' + lt.escape(this.attributes[r]) + '"');
|
|
30371
30371
|
return n += "/>", n;
|
|
30372
30372
|
}
|
|
30373
30373
|
}
|
|
@@ -30405,7 +30405,7 @@ function N(t, n, r, i, s, o) {
|
|
|
30405
30405
|
replace: i
|
|
30406
30406
|
}, o && i && (vt[t][i] = vt[t][s]);
|
|
30407
30407
|
}
|
|
30408
|
-
var A = "math", fe = "text", L = "main", j = "ams", xt = "accent-token", ke = "bin",
|
|
30408
|
+
var A = "math", fe = "text", L = "main", j = "ams", xt = "accent-token", ke = "bin", Jt = "close", zi = "inner", Ie = "mathord", zt = "op-token", hn = "open", xa = "punct", Z = "rel", gr = "spacing", ne = "textord";
|
|
30409
30409
|
N(A, L, Z, "≡", "\\equiv", !0);
|
|
30410
30410
|
N(A, L, Z, "≺", "\\prec", !0);
|
|
30411
30411
|
N(A, L, Z, "≻", "\\succ", !0);
|
|
@@ -30462,10 +30462,10 @@ N(fe, L, ne, "†", "\\textdagger");
|
|
|
30462
30462
|
N(A, L, ne, "‡", "\\ddag");
|
|
30463
30463
|
N(fe, L, ne, "‡", "\\ddag");
|
|
30464
30464
|
N(fe, L, ne, "‡", "\\textdaggerdbl");
|
|
30465
|
-
N(A, L,
|
|
30466
|
-
N(A, L,
|
|
30467
|
-
N(A, L,
|
|
30468
|
-
N(A, L,
|
|
30465
|
+
N(A, L, Jt, "⎱", "\\rmoustache", !0);
|
|
30466
|
+
N(A, L, hn, "⎰", "\\lmoustache", !0);
|
|
30467
|
+
N(A, L, Jt, "⟯", "\\rgroup", !0);
|
|
30468
|
+
N(A, L, hn, "⟮", "\\lgroup", !0);
|
|
30469
30469
|
N(A, L, ke, "∓", "\\mp", !0);
|
|
30470
30470
|
N(A, L, ke, "⊖", "\\ominus", !0);
|
|
30471
30471
|
N(A, L, ke, "⊎", "\\uplus", !0);
|
|
@@ -30595,10 +30595,10 @@ N(A, j, ne, "ℸ", "\\daleth", !0);
|
|
|
30595
30595
|
N(A, j, ne, "ℷ", "\\gimel", !0);
|
|
30596
30596
|
N(A, j, ne, "ϝ", "\\digamma", !0);
|
|
30597
30597
|
N(A, j, ne, "ϰ", "\\varkappa");
|
|
30598
|
-
N(A, j,
|
|
30599
|
-
N(A, j,
|
|
30600
|
-
N(A, j,
|
|
30601
|
-
N(A, j,
|
|
30598
|
+
N(A, j, hn, "┌", "\\@ulcorner", !0);
|
|
30599
|
+
N(A, j, Jt, "┐", "\\@urcorner", !0);
|
|
30600
|
+
N(A, j, hn, "└", "\\@llcorner", !0);
|
|
30601
|
+
N(A, j, Jt, "┘", "\\@lrcorner", !0);
|
|
30602
30602
|
N(A, j, Z, "≦", "\\leqq", !0);
|
|
30603
30603
|
N(A, j, Z, "⩽", "\\leqslant", !0);
|
|
30604
30604
|
N(A, j, Z, "⪕", "\\eqslantless", !0);
|
|
@@ -30816,14 +30816,14 @@ N(A, L, ke, "∨", "\\lor");
|
|
|
30816
30816
|
N(A, L, ke, "∧", "\\wedge", !0);
|
|
30817
30817
|
N(A, L, ke, "∨", "\\vee", !0);
|
|
30818
30818
|
N(A, L, ne, "√", "\\surd");
|
|
30819
|
-
N(A, L,
|
|
30820
|
-
N(A, L,
|
|
30821
|
-
N(A, L,
|
|
30822
|
-
N(A, L,
|
|
30823
|
-
N(A, L,
|
|
30824
|
-
N(A, L,
|
|
30825
|
-
N(A, L,
|
|
30826
|
-
N(A, L,
|
|
30819
|
+
N(A, L, hn, "⟨", "\\langle", !0);
|
|
30820
|
+
N(A, L, hn, "∣", "\\lvert");
|
|
30821
|
+
N(A, L, hn, "∥", "\\lVert");
|
|
30822
|
+
N(A, L, Jt, "?", "?");
|
|
30823
|
+
N(A, L, Jt, "!", "!");
|
|
30824
|
+
N(A, L, Jt, "⟩", "\\rangle", !0);
|
|
30825
|
+
N(A, L, Jt, "∣", "\\rvert");
|
|
30826
|
+
N(A, L, Jt, "∥", "\\rVert");
|
|
30827
30827
|
N(A, L, Z, "=", "=");
|
|
30828
30828
|
N(A, L, Z, ":", ":");
|
|
30829
30829
|
N(A, L, Z, "≈", "\\approx", !0);
|
|
@@ -30876,26 +30876,26 @@ N(A, L, ke, "⋄", "\\diamond");
|
|
|
30876
30876
|
N(A, L, ke, "⋆", "\\star");
|
|
30877
30877
|
N(A, L, ke, "◃", "\\triangleleft");
|
|
30878
30878
|
N(A, L, ke, "▹", "\\triangleright");
|
|
30879
|
-
N(A, L,
|
|
30879
|
+
N(A, L, hn, "{", "\\{");
|
|
30880
30880
|
N(fe, L, ne, "{", "\\{");
|
|
30881
30881
|
N(fe, L, ne, "{", "\\textbraceleft");
|
|
30882
|
-
N(A, L,
|
|
30882
|
+
N(A, L, Jt, "}", "\\}");
|
|
30883
30883
|
N(fe, L, ne, "}", "\\}");
|
|
30884
30884
|
N(fe, L, ne, "}", "\\textbraceright");
|
|
30885
|
-
N(A, L,
|
|
30886
|
-
N(A, L,
|
|
30887
|
-
N(A, L,
|
|
30885
|
+
N(A, L, hn, "{", "\\lbrace");
|
|
30886
|
+
N(A, L, Jt, "}", "\\rbrace");
|
|
30887
|
+
N(A, L, hn, "[", "\\lbrack", !0);
|
|
30888
30888
|
N(fe, L, ne, "[", "\\lbrack", !0);
|
|
30889
|
-
N(A, L,
|
|
30889
|
+
N(A, L, Jt, "]", "\\rbrack", !0);
|
|
30890
30890
|
N(fe, L, ne, "]", "\\rbrack", !0);
|
|
30891
|
-
N(A, L,
|
|
30892
|
-
N(A, L,
|
|
30891
|
+
N(A, L, hn, "(", "\\lparen", !0);
|
|
30892
|
+
N(A, L, Jt, ")", "\\rparen", !0);
|
|
30893
30893
|
N(fe, L, ne, "<", "\\textless", !0);
|
|
30894
30894
|
N(fe, L, ne, ">", "\\textgreater", !0);
|
|
30895
|
-
N(A, L,
|
|
30896
|
-
N(A, L,
|
|
30897
|
-
N(A, L,
|
|
30898
|
-
N(A, L,
|
|
30895
|
+
N(A, L, hn, "⌊", "\\lfloor", !0);
|
|
30896
|
+
N(A, L, Jt, "⌋", "\\rfloor", !0);
|
|
30897
|
+
N(A, L, hn, "⌈", "\\lceil", !0);
|
|
30898
|
+
N(A, L, Jt, "⌉", "\\rceil", !0);
|
|
30899
30899
|
N(A, L, ne, "\\", "\\backslash");
|
|
30900
30900
|
N(A, L, ne, "∣", "|");
|
|
30901
30901
|
N(A, L, ne, "∣", "\\vert");
|
|
@@ -31036,9 +31036,9 @@ N(fe, j, ne, "Z", "ℤ");
|
|
|
31036
31036
|
N(A, L, Ie, "h", "ℎ");
|
|
31037
31037
|
N(fe, L, Ie, "h", "ℎ");
|
|
31038
31038
|
var He = "";
|
|
31039
|
-
for (var
|
|
31040
|
-
var Mt = Ao.charAt(
|
|
31041
|
-
He = String.fromCharCode(55349, 56320 +
|
|
31039
|
+
for (var Zt = 0; Zt < Ao.length; Zt++) {
|
|
31040
|
+
var Mt = Ao.charAt(Zt);
|
|
31041
|
+
He = String.fromCharCode(55349, 56320 + Zt), N(A, L, Ie, Mt, He), N(fe, L, ne, Mt, He), He = String.fromCharCode(55349, 56372 + Zt), N(A, L, Ie, Mt, He), N(fe, L, ne, Mt, He), He = String.fromCharCode(55349, 56424 + Zt), N(A, L, Ie, Mt, He), N(fe, L, ne, Mt, He), He = String.fromCharCode(55349, 56580 + Zt), N(A, L, Ie, Mt, He), N(fe, L, ne, Mt, He), He = String.fromCharCode(55349, 56684 + Zt), N(A, L, Ie, Mt, He), N(fe, L, ne, Mt, He), He = String.fromCharCode(55349, 56736 + Zt), N(A, L, Ie, Mt, He), N(fe, L, ne, Mt, He), He = String.fromCharCode(55349, 56788 + Zt), N(A, L, Ie, Mt, He), N(fe, L, ne, Mt, He), He = String.fromCharCode(55349, 56840 + Zt), N(A, L, Ie, Mt, He), N(fe, L, ne, Mt, He), He = String.fromCharCode(55349, 56944 + Zt), N(A, L, Ie, Mt, He), N(fe, L, ne, Mt, He), Zt < 26 && (He = String.fromCharCode(55349, 56632 + Zt), N(A, L, Ie, Mt, He), N(fe, L, ne, Mt, He), He = String.fromCharCode(55349, 56476 + Zt), N(A, L, Ie, Mt, He), N(fe, L, ne, Mt, He));
|
|
31042
31042
|
}
|
|
31043
31043
|
He = "𝕜";
|
|
31044
31044
|
N(A, L, Ie, "k", He);
|
|
@@ -31225,11 +31225,11 @@ var no = [
|
|
|
31225
31225
|
l.height > r && (r = l.height), l.depth > i && (i = l.depth), l.maxFontSize > s && (s = l.maxFontSize);
|
|
31226
31226
|
}
|
|
31227
31227
|
n.height = r, n.depth = i, n.maxFontSize = s;
|
|
31228
|
-
},
|
|
31228
|
+
}, en = function(n, r, i, s) {
|
|
31229
31229
|
var o = new Ps(n, r, i, s);
|
|
31230
31230
|
return f0(o), o;
|
|
31231
31231
|
}, pg = (t, n, r, i) => new Ps(t, n, r, i), QS = function(n, r, i) {
|
|
31232
|
-
var s =
|
|
31232
|
+
var s = en([n], [], r);
|
|
31233
31233
|
return s.height = Math.max(i || r.fontMetrics().defaultRuleThickness, r.minRuleThickness), s.style.borderBottomWidth = we(s.height), s.maxFontSize = 1, s;
|
|
31234
31234
|
}, JS = function(n, r, i, s) {
|
|
31235
31235
|
var o = new d0(n, r, i, s);
|
|
@@ -31238,7 +31238,7 @@ var no = [
|
|
|
31238
31238
|
var r = new Is(n);
|
|
31239
31239
|
return f0(r), r;
|
|
31240
31240
|
}, ek = function(n, r) {
|
|
31241
|
-
return n instanceof Is ?
|
|
31241
|
+
return n instanceof Is ? en([], [n], r) : n;
|
|
31242
31242
|
}, tk = function(n) {
|
|
31243
31243
|
if (n.positionType === "individualShift") {
|
|
31244
31244
|
for (var r = n.children, i = [r[0]], s = -r[0].shift - r[0].elem.depth, o = s, l = 1; l < r.length; l++) {
|
|
@@ -31289,32 +31289,32 @@ var no = [
|
|
|
31289
31289
|
}
|
|
31290
31290
|
}
|
|
31291
31291
|
o += 2;
|
|
31292
|
-
var h =
|
|
31292
|
+
var h = en(["pstrut"], []);
|
|
31293
31293
|
h.style.height = we(o);
|
|
31294
31294
|
for (var u = [], m = s, g = s, C = s, S = 0; S < i.length; S++) {
|
|
31295
31295
|
var k = i[S];
|
|
31296
31296
|
if (k.type === "kern")
|
|
31297
31297
|
C += k.size;
|
|
31298
31298
|
else {
|
|
31299
|
-
var d = k.elem, f = k.wrapperClasses || [], p = k.wrapperStyle || {}, b =
|
|
31299
|
+
var d = k.elem, f = k.wrapperClasses || [], p = k.wrapperStyle || {}, b = en(f, [h, d], void 0, p);
|
|
31300
31300
|
b.style.top = we(-o - C - d.depth), k.marginLeft && (b.style.marginLeft = k.marginLeft), k.marginRight && (b.style.marginRight = k.marginRight), u.push(b), C += d.height + d.depth;
|
|
31301
31301
|
}
|
|
31302
31302
|
m = Math.min(m, C), g = Math.max(g, C);
|
|
31303
31303
|
}
|
|
31304
|
-
var x =
|
|
31304
|
+
var x = en(["vlist"], u);
|
|
31305
31305
|
x.style.height = we(g);
|
|
31306
31306
|
var y;
|
|
31307
31307
|
if (m < 0) {
|
|
31308
|
-
var _ =
|
|
31308
|
+
var _ = en([], []), E = en(["vlist"], [_]);
|
|
31309
31309
|
E.style.height = we(-m);
|
|
31310
|
-
var M =
|
|
31311
|
-
y = [
|
|
31310
|
+
var M = en(["vlist-s"], [new _n("")]);
|
|
31311
|
+
y = [en(["vlist-r"], [x, M]), en(["vlist-r"], [E])];
|
|
31312
31312
|
} else
|
|
31313
|
-
y = [
|
|
31314
|
-
var T =
|
|
31313
|
+
y = [en(["vlist-r"], [x])];
|
|
31314
|
+
var T = en(["vlist-t"], y);
|
|
31315
31315
|
return y.length === 2 && T.classes.push("vlist-t2"), T.height = g, T.depth = -m, T;
|
|
31316
31316
|
}, rk = (t, n) => {
|
|
31317
|
-
var r =
|
|
31317
|
+
var r = en(["mspace"], [], n), i = kt(t, n);
|
|
31318
31318
|
return r.style.marginRight = we(i), r;
|
|
31319
31319
|
}, ro = function(n, r, i) {
|
|
31320
31320
|
var s = "";
|
|
@@ -31413,7 +31413,7 @@ var no = [
|
|
|
31413
31413
|
fontMap: vg,
|
|
31414
31414
|
makeSymbol: Nn,
|
|
31415
31415
|
mathsym: jS,
|
|
31416
|
-
makeSpan:
|
|
31416
|
+
makeSpan: en,
|
|
31417
31417
|
makeSvgSpan: pg,
|
|
31418
31418
|
makeLineSpan: QS,
|
|
31419
31419
|
makeAnchor: JS,
|
|
@@ -31566,7 +31566,7 @@ var Lo = function(n) {
|
|
|
31566
31566
|
}, Ht = function(n, r, i, s) {
|
|
31567
31567
|
s === void 0 && (s = [null, null]);
|
|
31568
31568
|
for (var o = [], l = 0; l < n.length; l++) {
|
|
31569
|
-
var c =
|
|
31569
|
+
var c = ot(n[l], r);
|
|
31570
31570
|
if (c instanceof Is) {
|
|
31571
31571
|
var a = c.children;
|
|
31572
31572
|
o.push(...a);
|
|
@@ -31630,7 +31630,7 @@ var Lo = function(n) {
|
|
|
31630
31630
|
}, ps = function(n, r) {
|
|
31631
31631
|
var i = ["nulldelimiter"].concat(n.baseSizingClasses());
|
|
31632
31632
|
return mr(r.concat(i));
|
|
31633
|
-
},
|
|
31633
|
+
}, ot = function(n, r, i) {
|
|
31634
31634
|
if (!n)
|
|
31635
31635
|
return mr();
|
|
31636
31636
|
if (Do[n.type]) {
|
|
@@ -31672,7 +31672,7 @@ function nc(t, n) {
|
|
|
31672
31672
|
function xg(t) {
|
|
31673
31673
|
return new Is(t);
|
|
31674
31674
|
}
|
|
31675
|
-
class
|
|
31675
|
+
class an {
|
|
31676
31676
|
constructor(n, r, i) {
|
|
31677
31677
|
this.type = void 0, this.attributes = void 0, this.children = void 0, this.classes = void 0, this.type = n, this.attributes = {}, this.children = r || [], this.classes = i || [];
|
|
31678
31678
|
}
|
|
@@ -31712,8 +31712,8 @@ class sn {
|
|
|
31712
31712
|
toMarkup() {
|
|
31713
31713
|
var n = "<" + this.type;
|
|
31714
31714
|
for (var r in this.attributes)
|
|
31715
|
-
Object.prototype.hasOwnProperty.call(this.attributes, r) && (n += " " + r + '="', n +=
|
|
31716
|
-
this.classes.length > 0 && (n += ' class ="' +
|
|
31715
|
+
Object.prototype.hasOwnProperty.call(this.attributes, r) && (n += " " + r + '="', n += lt.escape(this.attributes[r]), n += '"');
|
|
31716
|
+
this.classes.length > 0 && (n += ' class ="' + lt.escape(Lr(this.classes)) + '"'), n += ">";
|
|
31717
31717
|
for (var i = 0; i < this.children.length; i++)
|
|
31718
31718
|
n += this.children[i].toMarkup();
|
|
31719
31719
|
return n += "</" + this.type + ">", n;
|
|
@@ -31740,7 +31740,7 @@ class qn {
|
|
|
31740
31740
|
* (representing the text itself).
|
|
31741
31741
|
*/
|
|
31742
31742
|
toMarkup() {
|
|
31743
|
-
return
|
|
31743
|
+
return lt.escape(this.toText());
|
|
31744
31744
|
}
|
|
31745
31745
|
/**
|
|
31746
31746
|
* Converts the text node into a string
|
|
@@ -31780,7 +31780,7 @@ class fk {
|
|
|
31780
31780
|
}
|
|
31781
31781
|
}
|
|
31782
31782
|
var be = {
|
|
31783
|
-
MathNode:
|
|
31783
|
+
MathNode: an,
|
|
31784
31784
|
TextNode: qn,
|
|
31785
31785
|
SpaceNode: fk,
|
|
31786
31786
|
newDocumentFragment: xg
|
|
@@ -31840,14 +31840,14 @@ function hl(t) {
|
|
|
31840
31840
|
} else
|
|
31841
31841
|
return !1;
|
|
31842
31842
|
}
|
|
31843
|
-
var
|
|
31843
|
+
var rn = function(n, r, i) {
|
|
31844
31844
|
if (n.length === 1) {
|
|
31845
|
-
var s =
|
|
31846
|
-
return i && s instanceof
|
|
31845
|
+
var s = mt(n[0], r);
|
|
31846
|
+
return i && s instanceof an && s.type === "mo" && (s.setAttribute("lspace", "0em"), s.setAttribute("rspace", "0em")), [s];
|
|
31847
31847
|
}
|
|
31848
31848
|
for (var o = [], l, c = 0; c < n.length; c++) {
|
|
31849
|
-
var a =
|
|
31850
|
-
if (a instanceof
|
|
31849
|
+
var a = mt(n[c], r);
|
|
31850
|
+
if (a instanceof an && l instanceof an) {
|
|
31851
31851
|
if (a.type === "mtext" && l.type === "mtext" && a.getAttribute("mathvariant") === l.getAttribute("mathvariant")) {
|
|
31852
31852
|
l.children.push(...a.children);
|
|
31853
31853
|
continue;
|
|
@@ -31861,7 +31861,7 @@ var tn = function(n, r, i) {
|
|
|
31861
31861
|
a.children = [...l.children, ...a.children], o.pop();
|
|
31862
31862
|
else if ((a.type === "msup" || a.type === "msub") && a.children.length >= 1 && (l.type === "mn" || hl(l))) {
|
|
31863
31863
|
var h = a.children[0];
|
|
31864
|
-
h instanceof
|
|
31864
|
+
h instanceof an && h.type === "mn" && (h.children = [...l.children, ...h.children], o.pop());
|
|
31865
31865
|
} else if (l.type === "mi" && l.children.length === 1) {
|
|
31866
31866
|
var u = l.children[0];
|
|
31867
31867
|
if (u instanceof qn && u.text === "̸" && (a.type === "mo" || a.type === "mi" || a.type === "mn")) {
|
|
@@ -31874,8 +31874,8 @@ var tn = function(n, r, i) {
|
|
|
31874
31874
|
}
|
|
31875
31875
|
return o;
|
|
31876
31876
|
}, Ir = function(n, r, i) {
|
|
31877
|
-
return h0(
|
|
31878
|
-
},
|
|
31877
|
+
return h0(rn(n, r, i));
|
|
31878
|
+
}, mt = function(n, r) {
|
|
31879
31879
|
if (!n)
|
|
31880
31880
|
return new be.MathNode("mrow");
|
|
31881
31881
|
if (Ro[n.type]) {
|
|
@@ -31885,8 +31885,8 @@ var tn = function(n, r, i) {
|
|
|
31885
31885
|
throw new ye("Got group of unknown type: '" + n.type + "'");
|
|
31886
31886
|
};
|
|
31887
31887
|
function bd(t, n, r, i, s) {
|
|
31888
|
-
var o =
|
|
31889
|
-
o.length === 1 && o[0] instanceof
|
|
31888
|
+
var o = rn(t, r), l;
|
|
31889
|
+
o.length === 1 && o[0] instanceof an && ["mrow", "mtable"].includes(o[0].type) ? l = o[0] : l = new be.MathNode("mrow", o);
|
|
31890
31890
|
var c = new be.MathNode("annotation", [new be.TextNode(n)]);
|
|
31891
31891
|
c.setAttribute("encoding", "application/x-tex");
|
|
31892
31892
|
var a = new be.MathNode("semantics", [l, c]), h = new be.MathNode("math", [a]);
|
|
@@ -32130,10 +32130,10 @@ function Ca(t) {
|
|
|
32130
32130
|
}
|
|
32131
32131
|
var g0 = (t, n) => {
|
|
32132
32132
|
var r, i, s;
|
|
32133
|
-
t && t.type === "supsub" ? (i = je(t.base, "accent"), r = i.base, t.base = r, s = WS(
|
|
32134
|
-
var o =
|
|
32133
|
+
t && t.type === "supsub" ? (i = je(t.base, "accent"), r = i.base, t.base = r, s = WS(ot(t, n)), t.base = i) : (i = je(t, "accent"), r = i.base);
|
|
32134
|
+
var o = ot(r, n.havingCrampedStyle()), l = i.isShifty && lt.isCharacterBox(r), c = 0;
|
|
32135
32135
|
if (l) {
|
|
32136
|
-
var a =
|
|
32136
|
+
var a = lt.getBaseElem(r), h = ot(a, n.havingCrampedStyle());
|
|
32137
32137
|
c = dd(h).skew;
|
|
32138
32138
|
}
|
|
32139
32139
|
var u = i.label === "\\c", m = u ? o.height + o.depth : Math.min(o.height, n.fontMetrics().xHeight), g;
|
|
@@ -32179,7 +32179,7 @@ var g0 = (t, n) => {
|
|
|
32179
32179
|
var f = oe.makeSpan(["mord", "accent"], [g], n);
|
|
32180
32180
|
return s ? (s.children[0] = f, s.height = Math.max(f.height, s.height), s.classes[0] = "mord", s) : f;
|
|
32181
32181
|
}, Sg = (t, n) => {
|
|
32182
|
-
var r = t.isStretchy ? pr.mathMLnode(t.label) : new be.MathNode("mo", [Cn(t.label, t.mode)]), i = new be.MathNode("mover", [
|
|
32182
|
+
var r = t.isStretchy ? pr.mathMLnode(t.label) : new be.MathNode("mo", [Cn(t.label, t.mode)]), i = new be.MathNode("mover", [mt(t.base, n), r]);
|
|
32183
32183
|
return i.setAttribute("accent", "true"), i;
|
|
32184
32184
|
}, xk = new RegExp(["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring"].map((t) => "\\" + t).join("|"));
|
|
32185
32185
|
Ce({
|
|
@@ -32245,7 +32245,7 @@ Ce({
|
|
|
32245
32245
|
};
|
|
32246
32246
|
},
|
|
32247
32247
|
htmlBuilder: (t, n) => {
|
|
32248
|
-
var r =
|
|
32248
|
+
var r = ot(t.base, n), i = pr.svgSpan(t, n), s = t.label === "\\utilde" ? 0.12 : 0, o = oe.makeVList({
|
|
32249
32249
|
positionType: "top",
|
|
32250
32250
|
positionData: r.height,
|
|
32251
32251
|
children: [{
|
|
@@ -32263,7 +32263,7 @@ Ce({
|
|
|
32263
32263
|
return oe.makeSpan(["mord", "accentunder"], [o], n);
|
|
32264
32264
|
},
|
|
32265
32265
|
mathmlBuilder: (t, n) => {
|
|
32266
|
-
var r = pr.mathMLnode(t.label), i = new be.MathNode("munder", [
|
|
32266
|
+
var r = pr.mathMLnode(t.label), i = new be.MathNode("munder", [mt(t.base, n), r]);
|
|
32267
32267
|
return i.setAttribute("accentunder", "true"), i;
|
|
32268
32268
|
}
|
|
32269
32269
|
});
|
|
@@ -32323,10 +32323,10 @@ Ce({
|
|
|
32323
32323
|
// Flow is unable to correctly infer the type of `group`, even though it's
|
|
32324
32324
|
// unambiguously determined from the passed-in `type` above.
|
|
32325
32325
|
htmlBuilder(t, n) {
|
|
32326
|
-
var r = n.style, i = n.havingStyle(r.sup()), s = oe.wrapFragment(
|
|
32326
|
+
var r = n.style, i = n.havingStyle(r.sup()), s = oe.wrapFragment(ot(t.body, i, n), n), o = t.label.slice(0, 2) === "\\x" ? "x" : "cd";
|
|
32327
32327
|
s.classes.push(o + "-arrow-pad");
|
|
32328
32328
|
var l;
|
|
32329
|
-
t.below && (i = n.havingStyle(r.sub()), l = oe.wrapFragment(
|
|
32329
|
+
t.below && (i = n.havingStyle(r.sub()), l = oe.wrapFragment(ot(t.below, i, n), n), l.classes.push(o + "-arrow-pad"));
|
|
32330
32330
|
var c = pr.svgSpan(t, n), a = -n.fontMetrics().axisHeight + 0.5 * c.height, h = -n.fontMetrics().axisHeight - 0.5 * c.height - 0.111;
|
|
32331
32331
|
(s.depth > 0.25 || t.label === "\\xleftequilibrium") && (h -= s.depth);
|
|
32332
32332
|
var u;
|
|
@@ -32368,14 +32368,14 @@ Ce({
|
|
|
32368
32368
|
r.setAttribute("minsize", t.label.charAt(0) === "x" ? "1.75em" : "3.0em");
|
|
32369
32369
|
var i;
|
|
32370
32370
|
if (t.body) {
|
|
32371
|
-
var s = so(
|
|
32371
|
+
var s = so(mt(t.body, n));
|
|
32372
32372
|
if (t.below) {
|
|
32373
|
-
var o = so(
|
|
32373
|
+
var o = so(mt(t.below, n));
|
|
32374
32374
|
i = new be.MathNode("munderover", [r, o, s]);
|
|
32375
32375
|
} else
|
|
32376
32376
|
i = new be.MathNode("mover", [r, s]);
|
|
32377
32377
|
} else if (t.below) {
|
|
32378
|
-
var l = so(
|
|
32378
|
+
var l = so(mt(t.below, n));
|
|
32379
32379
|
i = new be.MathNode("munder", [r, l]);
|
|
32380
32380
|
} else
|
|
32381
32381
|
i = so(), i = new be.MathNode("mover", [r, i]);
|
|
@@ -32388,7 +32388,7 @@ function kg(t, n) {
|
|
|
32388
32388
|
return _k([t.mclass], r, n);
|
|
32389
32389
|
}
|
|
32390
32390
|
function Eg(t, n) {
|
|
32391
|
-
var r, i =
|
|
32391
|
+
var r, i = rn(t.body, n);
|
|
32392
32392
|
return t.mclass === "minner" ? r = new be.MathNode("mpadded", i) : t.mclass === "mord" ? t.isCharacterBox ? (r = i[0], r.type = "mi") : r = new be.MathNode("mi", i) : (t.isCharacterBox ? (r = i[0], r.type = "mo") : r = new be.MathNode("mo", i), t.mclass === "mbin" ? (r.attributes.lspace = "0.22em", r.attributes.rspace = "0.22em") : t.mclass === "mpunct" ? (r.attributes.lspace = "0em", r.attributes.rspace = "0.17em") : t.mclass === "mopen" || t.mclass === "mclose" ? (r.attributes.lspace = "0em", r.attributes.rspace = "0em") : t.mclass === "minner" && (r.attributes.lspace = "0.0556em", r.attributes.width = "+0.1111em")), r;
|
|
32393
32393
|
}
|
|
32394
32394
|
Ce({
|
|
@@ -32409,7 +32409,7 @@ Ce({
|
|
|
32409
32409
|
mclass: "m" + i.slice(5),
|
|
32410
32410
|
// TODO(kevinb): don't prefix with 'm'
|
|
32411
32411
|
body: Ot(s),
|
|
32412
|
-
isCharacterBox:
|
|
32412
|
+
isCharacterBox: lt.isCharacterBox(s)
|
|
32413
32413
|
};
|
|
32414
32414
|
},
|
|
32415
32415
|
htmlBuilder: kg,
|
|
@@ -32434,7 +32434,7 @@ Ce({
|
|
|
32434
32434
|
mode: r.mode,
|
|
32435
32435
|
mclass: Sa(n[0]),
|
|
32436
32436
|
body: Ot(n[1]),
|
|
32437
|
-
isCharacterBox:
|
|
32437
|
+
isCharacterBox: lt.isCharacterBox(n[1])
|
|
32438
32438
|
};
|
|
32439
32439
|
}
|
|
32440
32440
|
});
|
|
@@ -32471,7 +32471,7 @@ Ce({
|
|
|
32471
32471
|
mode: r.mode,
|
|
32472
32472
|
mclass: l,
|
|
32473
32473
|
body: [a],
|
|
32474
|
-
isCharacterBox:
|
|
32474
|
+
isCharacterBox: lt.isCharacterBox(a)
|
|
32475
32475
|
};
|
|
32476
32476
|
},
|
|
32477
32477
|
htmlBuilder: kg,
|
|
@@ -32500,7 +32500,7 @@ Ce({
|
|
|
32500
32500
|
return i.style.textShadow = "0.02em 0.01em 0.04px", i;
|
|
32501
32501
|
},
|
|
32502
32502
|
mathmlBuilder(t, n) {
|
|
32503
|
-
var r =
|
|
32503
|
+
var r = rn(t.body, n), i = new be.MathNode("mstyle", r);
|
|
32504
32504
|
return i.setAttribute("style", "text-shadow: 0.02em 0.01em 0.04px"), i;
|
|
32505
32505
|
}
|
|
32506
32506
|
});
|
|
@@ -32651,11 +32651,11 @@ Ce({
|
|
|
32651
32651
|
};
|
|
32652
32652
|
},
|
|
32653
32653
|
htmlBuilder(t, n) {
|
|
32654
|
-
var r = n.havingStyle(n.style.sup()), i = oe.wrapFragment(
|
|
32654
|
+
var r = n.havingStyle(n.style.sup()), i = oe.wrapFragment(ot(t.label, r, n), n);
|
|
32655
32655
|
return i.classes.push("cd-label-" + t.side), i.style.bottom = we(0.8 - i.depth), i.height = 0, i.depth = 0, i;
|
|
32656
32656
|
},
|
|
32657
32657
|
mathmlBuilder(t, n) {
|
|
32658
|
-
var r = new be.MathNode("mrow", [
|
|
32658
|
+
var r = new be.MathNode("mrow", [mt(t.label, n)]);
|
|
32659
32659
|
return r = new be.MathNode("mpadded", [r]), r.setAttribute("width", "0"), t.side === "left" && r.setAttribute("lspace", "-1width"), r.setAttribute("voffset", "0.7em"), r = new be.MathNode("mstyle", [r]), r.setAttribute("displaystyle", "false"), r.setAttribute("scriptlevel", "1"), r;
|
|
32660
32660
|
}
|
|
32661
32661
|
});
|
|
@@ -32676,11 +32676,11 @@ Ce({
|
|
|
32676
32676
|
};
|
|
32677
32677
|
},
|
|
32678
32678
|
htmlBuilder(t, n) {
|
|
32679
|
-
var r = oe.wrapFragment(
|
|
32679
|
+
var r = oe.wrapFragment(ot(t.fragment, n), n);
|
|
32680
32680
|
return r.classes.push("cd-vert-arrow"), r;
|
|
32681
32681
|
},
|
|
32682
32682
|
mathmlBuilder(t, n) {
|
|
32683
|
-
return new be.MathNode("mrow", [
|
|
32683
|
+
return new be.MathNode("mrow", [mt(t.fragment, n)]);
|
|
32684
32684
|
}
|
|
32685
32685
|
});
|
|
32686
32686
|
Ce({
|
|
@@ -32713,7 +32713,7 @@ var Ng = (t, n) => {
|
|
|
32713
32713
|
var r = Ht(t.body, n.withColor(t.color), !1);
|
|
32714
32714
|
return oe.makeFragment(r);
|
|
32715
32715
|
}, Tg = (t, n) => {
|
|
32716
|
-
var r =
|
|
32716
|
+
var r = rn(t.body, n.withColor(t.color)), i = new be.MathNode("mstyle", r);
|
|
32717
32717
|
return i.setAttribute("mathcolor", t.color), i;
|
|
32718
32718
|
};
|
|
32719
32719
|
Ce({
|
|
@@ -33312,7 +33312,7 @@ Ce({
|
|
|
33312
33312
|
},
|
|
33313
33313
|
mathmlBuilder: (t, n) => {
|
|
33314
33314
|
_d(t);
|
|
33315
|
-
var r =
|
|
33315
|
+
var r = rn(t.body, n);
|
|
33316
33316
|
if (t.left !== ".") {
|
|
33317
33317
|
var i = new be.MathNode("mo", [Cn(t.left, t.mode)]);
|
|
33318
33318
|
i.setAttribute("fence", "true"), r.unshift(i);
|
|
@@ -33361,7 +33361,7 @@ Ce({
|
|
|
33361
33361
|
}
|
|
33362
33362
|
});
|
|
33363
33363
|
var b0 = (t, n) => {
|
|
33364
|
-
var r = oe.wrapFragment(
|
|
33364
|
+
var r = oe.wrapFragment(ot(t.body, n), n), i = t.label.slice(1), s = n.sizeMultiplier, o, l = 0, c = lt.isCharacterBox(t.body);
|
|
33365
33365
|
if (i === "sout")
|
|
33366
33366
|
o = oe.makeSpan(["stretchy", "sout"]), o.height = n.fontMetrics().defaultRuleThickness / s, l = -0.5 * n.fontMetrics().xHeight;
|
|
33367
33367
|
else if (i === "phase") {
|
|
@@ -33432,7 +33432,7 @@ var b0 = (t, n) => {
|
|
|
33432
33432
|
}
|
|
33433
33433
|
return /cancel/.test(i) && (p.height = r.height, p.depth = r.depth), /cancel/.test(i) && !c ? oe.makeSpan(["mord", "cancel-lap"], [p], n) : oe.makeSpan(["mord"], [p], n);
|
|
33434
33434
|
}, y0 = (t, n) => {
|
|
33435
|
-
var r = 0, i = new be.MathNode(t.label.indexOf("colorbox") > -1 ? "mpadded" : "menclose", [
|
|
33435
|
+
var r = 0, i = new be.MathNode(t.label.indexOf("colorbox") > -1 ? "mpadded" : "menclose", [mt(t.body, n)]);
|
|
33436
33436
|
switch (t.label) {
|
|
33437
33437
|
case "\\cancel":
|
|
33438
33438
|
i.setAttribute("notation", "updiagonalstrike");
|
|
@@ -33646,7 +33646,7 @@ function Hr(t, n, r) {
|
|
|
33646
33646
|
a && t.gullet.macros.set("\\@eqnsw", "1", !0);
|
|
33647
33647
|
}
|
|
33648
33648
|
function x() {
|
|
33649
|
-
p && (t.gullet.macros.get("\\df@tag") ? (p.push(t.subparse([new
|
|
33649
|
+
p && (t.gullet.macros.get("\\df@tag") ? (p.push(t.subparse([new un("\\df@tag")])), t.gullet.macros.set("\\df@tag", void 0, !0)) : p.push(!!a && t.gullet.macros.get("\\@eqnsw") === "1"));
|
|
33650
33650
|
}
|
|
33651
33651
|
for (b(), f.push(Cd(t)); ; ) {
|
|
33652
33652
|
var y = t.parseExpression(!1, h ? "\\end" : "\\\\");
|
|
@@ -33723,7 +33723,7 @@ var Qn = function(n, r) {
|
|
|
33723
33723
|
c < y.length && (c = y.length);
|
|
33724
33724
|
var M = new Array(y.length);
|
|
33725
33725
|
for (s = 0; s < y.length; ++s) {
|
|
33726
|
-
var T =
|
|
33726
|
+
var T = ot(y[s], r);
|
|
33727
33727
|
E < T.depth && (E = T.depth), _ < T.height && (_ = T.height), M[s] = T;
|
|
33728
33728
|
}
|
|
33729
33729
|
var D = n.rowGaps[i], I = 0;
|
|
@@ -33758,7 +33758,7 @@ var Qn = function(n, r) {
|
|
|
33758
33758
|
}
|
|
33759
33759
|
if (!(s >= c)) {
|
|
33760
33760
|
var J = void 0;
|
|
33761
|
-
(s > 0 || n.hskipBeforeAndAfter) && (J =
|
|
33761
|
+
(s > 0 || n.hskipBeforeAndAfter) && (J = lt.deflt(W.pregap, g), J !== 0 && (U = oe.makeSpan(["arraycolsep"], []), U.style.width = we(J), z.push(U)));
|
|
33762
33762
|
var ae = [];
|
|
33763
33763
|
for (i = 0; i < o; ++i) {
|
|
33764
33764
|
var ce = a[i], te = ce[s];
|
|
@@ -33774,7 +33774,7 @@ var Qn = function(n, r) {
|
|
|
33774
33774
|
ae = oe.makeVList({
|
|
33775
33775
|
positionType: "individualShift",
|
|
33776
33776
|
children: ae
|
|
33777
|
-
}, r), ae = oe.makeSpan(["col-align-" + (W.align || "c")], [ae]), z.push(ae), (s < c - 1 || n.hskipBeforeAndAfter) && (J =
|
|
33777
|
+
}, r), ae = oe.makeSpan(["col-align-" + (W.align || "c")], [ae]), z.push(ae), (s < c - 1 || n.hskipBeforeAndAfter) && (J = lt.deflt(W.postgap, g), J !== 0 && (U = oe.makeSpan(["arraycolsep"], []), U.style.width = we(J), z.push(U)));
|
|
33778
33778
|
}
|
|
33779
33779
|
}
|
|
33780
33780
|
if (a = oe.makeSpan(["mtable"], z), h.length > 0) {
|
|
@@ -33813,7 +33813,7 @@ var Qn = function(n, r) {
|
|
|
33813
33813
|
}, Jn = function(n, r) {
|
|
33814
33814
|
for (var i = [], s = new be.MathNode("mtd", [], ["mtr-glue"]), o = new be.MathNode("mtd", [], ["mml-eqn-num"]), l = 0; l < n.body.length; l++) {
|
|
33815
33815
|
for (var c = n.body[l], a = [], h = 0; h < c.length; h++)
|
|
33816
|
-
a.push(new be.MathNode("mtd", [
|
|
33816
|
+
a.push(new be.MathNode("mtd", [mt(c[h], r)]));
|
|
33817
33817
|
n.tags && n.tags[l] && (a.unshift(s), a.push(s), n.leqno ? a.unshift(o) : a.push(o)), i.push(new be.MathNode("mtr", a));
|
|
33818
33818
|
}
|
|
33819
33819
|
var u = new be.MathNode("mtable", i), m = n.arraystretch === 0.5 ? 0.1 : 0.16 + n.arraystretch - 1 + (n.addJot ? 0.09 : 0);
|
|
@@ -34186,10 +34186,10 @@ Ce({
|
|
|
34186
34186
|
});
|
|
34187
34187
|
var $g = (t, n) => {
|
|
34188
34188
|
var r = t.font, i = n.withFont(r);
|
|
34189
|
-
return
|
|
34189
|
+
return ot(t.body, i);
|
|
34190
34190
|
}, Wg = (t, n) => {
|
|
34191
34191
|
var r = t.font, i = n.withFont(r);
|
|
34192
|
-
return
|
|
34192
|
+
return mt(t.body, i);
|
|
34193
34193
|
}, kd = {
|
|
34194
34194
|
"\\Bbb": "\\mathbb",
|
|
34195
34195
|
"\\bold": "\\mathbf",
|
|
@@ -34245,7 +34245,7 @@ Ce({
|
|
|
34245
34245
|
handler: (t, n) => {
|
|
34246
34246
|
var {
|
|
34247
34247
|
parser: r
|
|
34248
|
-
} = t, i = n[0], s =
|
|
34248
|
+
} = t, i = n[0], s = lt.isCharacterBox(i);
|
|
34249
34249
|
return {
|
|
34250
34250
|
type: "mclass",
|
|
34251
34251
|
mode: r.mode,
|
|
@@ -34295,13 +34295,13 @@ var Ug = (t, n) => {
|
|
|
34295
34295
|
}, _0 = (t, n) => {
|
|
34296
34296
|
var r = Ug(t.size, n.style), i = r.fracNum(), s = r.fracDen(), o;
|
|
34297
34297
|
o = n.havingStyle(i);
|
|
34298
|
-
var l =
|
|
34298
|
+
var l = ot(t.numer, o, n);
|
|
34299
34299
|
if (t.continued) {
|
|
34300
34300
|
var c = 8.5 / n.fontMetrics().ptPerEm, a = 3.5 / n.fontMetrics().ptPerEm;
|
|
34301
34301
|
l.height = l.height < c ? c : l.height, l.depth = l.depth < a ? a : l.depth;
|
|
34302
34302
|
}
|
|
34303
34303
|
o = n.havingStyle(s);
|
|
34304
|
-
var h =
|
|
34304
|
+
var h = ot(t.denom, o, n), u, m, g;
|
|
34305
34305
|
t.hasBarLine ? (t.barSize ? (m = kt(t.barSize, n), u = oe.makeLineSpan("frac-line", n, m)) : u = oe.makeLineSpan("frac-line", n), m = u.height, g = u.height) : (u = null, m = 0, g = n.fontMetrics().defaultRuleThickness);
|
|
34306
34306
|
var C, S, k;
|
|
34307
34307
|
r.size === Pe.DISPLAY.size || t.size === "display" ? (C = n.fontMetrics().num1, m > 0 ? S = 3 * g : S = 7 * g, k = n.fontMetrics().denom1) : (m > 0 ? (C = n.fontMetrics().num2, S = g) : (C = n.fontMetrics().num3, S = 3 * g), k = n.fontMetrics().denom2);
|
|
@@ -34347,7 +34347,7 @@ var Ug = (t, n) => {
|
|
|
34347
34347
|
var y, _;
|
|
34348
34348
|
return t.leftDelim == null ? y = ps(n, ["mopen"]) : y = ur.customSizedDelim(t.leftDelim, x, !0, n.havingStyle(r), t.mode, ["mopen"]), t.continued ? _ = oe.makeSpan([]) : t.rightDelim == null ? _ = ps(n, ["mclose"]) : _ = ur.customSizedDelim(t.rightDelim, x, !0, n.havingStyle(r), t.mode, ["mclose"]), oe.makeSpan(["mord"].concat(o.sizingClasses(n)), [y, oe.makeSpan(["mfrac"], [d]), _], n);
|
|
34349
34349
|
}, C0 = (t, n) => {
|
|
34350
|
-
var r = new be.MathNode("mfrac", [
|
|
34350
|
+
var r = new be.MathNode("mfrac", [mt(t.numer, n), mt(t.denom, n)]);
|
|
34351
34351
|
if (!t.hasBarLine)
|
|
34352
34352
|
r.setAttribute("linethickness", "0px");
|
|
34353
34353
|
else if (t.barSize) {
|
|
@@ -34606,8 +34606,8 @@ Ce({
|
|
|
34606
34606
|
});
|
|
34607
34607
|
var qg = (t, n) => {
|
|
34608
34608
|
var r = n.style, i, s;
|
|
34609
|
-
t.type === "supsub" ? (i = t.sup ?
|
|
34610
|
-
var o =
|
|
34609
|
+
t.type === "supsub" ? (i = t.sup ? ot(t.sup, n.havingStyle(r.sup()), n) : ot(t.sub, n.havingStyle(r.sub()), n), s = je(t.base, "horizBrace")) : s = je(t, "horizBrace");
|
|
34610
|
+
var o = ot(s.base, n.havingBaseStyle(Pe.DISPLAY)), l = pr.svgSpan(s, n), c;
|
|
34611
34611
|
if (s.isOver ? (c = oe.makeVList({
|
|
34612
34612
|
positionType: "firstBaseline",
|
|
34613
34613
|
children: [{
|
|
@@ -34665,7 +34665,7 @@ var qg = (t, n) => {
|
|
|
34665
34665
|
return oe.makeSpan(["mord", s.isOver ? "mover" : "munder"], [c], n);
|
|
34666
34666
|
}, Vk = (t, n) => {
|
|
34667
34667
|
var r = pr.mathMLnode(t.label);
|
|
34668
|
-
return new be.MathNode(t.isOver ? "mover" : "munder", [
|
|
34668
|
+
return new be.MathNode(t.isOver ? "mover" : "munder", [mt(t.base, n), r]);
|
|
34669
34669
|
};
|
|
34670
34670
|
Ce({
|
|
34671
34671
|
type: "horizBrace",
|
|
@@ -34717,7 +34717,7 @@ Ce({
|
|
|
34717
34717
|
},
|
|
34718
34718
|
mathmlBuilder: (t, n) => {
|
|
34719
34719
|
var r = Ir(t.body, n);
|
|
34720
|
-
return r instanceof
|
|
34720
|
+
return r instanceof an || (r = new an("mrow", [r])), r.setAttribute("href", t.href), r;
|
|
34721
34721
|
}
|
|
34722
34722
|
});
|
|
34723
34723
|
Ce({
|
|
@@ -34783,7 +34783,7 @@ Ce({
|
|
|
34783
34783
|
return oe.makeFragment(r);
|
|
34784
34784
|
},
|
|
34785
34785
|
mathmlBuilder(t, n) {
|
|
34786
|
-
return new be.MathNode("mrow",
|
|
34786
|
+
return new be.MathNode("mrow", rn(t.body, n));
|
|
34787
34787
|
}
|
|
34788
34788
|
});
|
|
34789
34789
|
Ce({
|
|
@@ -35032,12 +35032,12 @@ Ce({
|
|
|
35032
35032
|
},
|
|
35033
35033
|
htmlBuilder: (t, n) => {
|
|
35034
35034
|
var r;
|
|
35035
|
-
t.alignment === "clap" ? (r = oe.makeSpan([], [
|
|
35035
|
+
t.alignment === "clap" ? (r = oe.makeSpan([], [ot(t.body, n)]), r = oe.makeSpan(["inner"], [r], n)) : r = oe.makeSpan(["inner"], [ot(t.body, n)]);
|
|
35036
35036
|
var i = oe.makeSpan(["fix"], []), s = oe.makeSpan([t.alignment], [r, i], n), o = oe.makeSpan(["strut"]);
|
|
35037
35037
|
return o.style.height = we(s.height + s.depth), s.depth && (o.style.verticalAlign = we(-s.depth)), s.children.unshift(o), s = oe.makeSpan(["thinbox"], [s], n), oe.makeSpan(["mord", "vbox"], [s], n);
|
|
35038
35038
|
},
|
|
35039
35039
|
mathmlBuilder: (t, n) => {
|
|
35040
|
-
var r = new be.MathNode("mpadded", [
|
|
35040
|
+
var r = new be.MathNode("mpadded", [mt(t.body, n)]);
|
|
35041
35041
|
if (t.alignment !== "rlap") {
|
|
35042
35042
|
var i = t.alignment === "llap" ? "-1" : "-0.5";
|
|
35043
35043
|
r.setAttribute("lspace", i + "width");
|
|
@@ -35126,16 +35126,16 @@ Ce({
|
|
|
35126
35126
|
});
|
|
35127
35127
|
var Yg = (t, n, r, i, s, o, l) => {
|
|
35128
35128
|
t = oe.makeSpan([], [t]);
|
|
35129
|
-
var c = r &&
|
|
35129
|
+
var c = r && lt.isCharacterBox(r), a, h;
|
|
35130
35130
|
if (n) {
|
|
35131
|
-
var u =
|
|
35131
|
+
var u = ot(n, i.havingStyle(s.sup()), i);
|
|
35132
35132
|
h = {
|
|
35133
35133
|
elem: u,
|
|
35134
35134
|
kern: Math.max(i.fontMetrics().bigOpSpacing1, i.fontMetrics().bigOpSpacing3 - u.depth)
|
|
35135
35135
|
};
|
|
35136
35136
|
}
|
|
35137
35137
|
if (r) {
|
|
35138
|
-
var m =
|
|
35138
|
+
var m = ot(r, i.havingStyle(s.sub()), i);
|
|
35139
35139
|
a = {
|
|
35140
35140
|
elem: m,
|
|
35141
35141
|
kern: Math.max(i.fontMetrics().bigOpSpacing2, i.fontMetrics().bigOpSpacing4 - m.height)
|
|
@@ -35256,13 +35256,13 @@ var Yg = (t, n, r, i, s, o, l) => {
|
|
|
35256
35256
|
}, Bs = (t, n) => {
|
|
35257
35257
|
var r;
|
|
35258
35258
|
if (t.symbol)
|
|
35259
|
-
r = new
|
|
35259
|
+
r = new an("mo", [Cn(t.name, t.mode)]), jg.includes(t.name) && r.setAttribute("largeop", "false");
|
|
35260
35260
|
else if (t.body)
|
|
35261
|
-
r = new
|
|
35261
|
+
r = new an("mo", rn(t.body, n));
|
|
35262
35262
|
else {
|
|
35263
|
-
r = new
|
|
35264
|
-
var i = new
|
|
35265
|
-
t.parentIsSupSub ? r = new
|
|
35263
|
+
r = new an("mi", [new qn(t.name.slice(1))]);
|
|
35264
|
+
var i = new an("mo", [Cn("", "text")]);
|
|
35265
|
+
t.parentIsSupSub ? r = new an("mrow", [r, i]) : r = xg([r, i]);
|
|
35266
35266
|
}
|
|
35267
35267
|
return r;
|
|
35268
35268
|
}, $k = {
|
|
@@ -35424,7 +35424,7 @@ var Gg = (t, n) => {
|
|
|
35424
35424
|
l = oe.makeSpan(["mop"], [], n);
|
|
35425
35425
|
return s ? Yg(l, r, i, n, n.style, 0, 0) : l;
|
|
35426
35426
|
}, Uk = (t, n) => {
|
|
35427
|
-
for (var r =
|
|
35427
|
+
for (var r = rn(t.body, n.withFont("mathrm")), i = !0, s = 0; s < r.length; s++) {
|
|
35428
35428
|
var o = r[s];
|
|
35429
35429
|
if (!(o instanceof be.SpaceNode)) if (o instanceof be.MathNode)
|
|
35430
35430
|
switch (o.type) {
|
|
@@ -35504,7 +35504,7 @@ Ce({
|
|
|
35504
35504
|
};
|
|
35505
35505
|
},
|
|
35506
35506
|
htmlBuilder(t, n) {
|
|
35507
|
-
var r =
|
|
35507
|
+
var r = ot(t.body, n.havingCrampedStyle()), i = oe.makeLineSpan("overline-line", n), s = n.fontMetrics().defaultRuleThickness, o = oe.makeVList({
|
|
35508
35508
|
positionType: "firstBaseline",
|
|
35509
35509
|
children: [{
|
|
35510
35510
|
type: "elem",
|
|
@@ -35525,7 +35525,7 @@ Ce({
|
|
|
35525
35525
|
mathmlBuilder(t, n) {
|
|
35526
35526
|
var r = new be.MathNode("mo", [new be.TextNode("‾")]);
|
|
35527
35527
|
r.setAttribute("stretchy", "true");
|
|
35528
|
-
var i = new be.MathNode("mover", [
|
|
35528
|
+
var i = new be.MathNode("mover", [mt(t.body, n), r]);
|
|
35529
35529
|
return i.setAttribute("accent", "true"), i;
|
|
35530
35530
|
}
|
|
35531
35531
|
});
|
|
@@ -35551,7 +35551,7 @@ Ce({
|
|
|
35551
35551
|
return oe.makeFragment(r);
|
|
35552
35552
|
},
|
|
35553
35553
|
mathmlBuilder: (t, n) => {
|
|
35554
|
-
var r =
|
|
35554
|
+
var r = rn(t.body, n);
|
|
35555
35555
|
return new be.MathNode("mphantom", r);
|
|
35556
35556
|
}
|
|
35557
35557
|
});
|
|
@@ -35573,7 +35573,7 @@ Ce({
|
|
|
35573
35573
|
};
|
|
35574
35574
|
},
|
|
35575
35575
|
htmlBuilder: (t, n) => {
|
|
35576
|
-
var r = oe.makeSpan([], [
|
|
35576
|
+
var r = oe.makeSpan([], [ot(t.body, n.withPhantom())]);
|
|
35577
35577
|
if (r.height = 0, r.depth = 0, r.children)
|
|
35578
35578
|
for (var i = 0; i < r.children.length; i++)
|
|
35579
35579
|
r.children[i].height = 0, r.children[i].depth = 0;
|
|
@@ -35586,7 +35586,7 @@ Ce({
|
|
|
35586
35586
|
}, n), oe.makeSpan(["mord"], [r], n);
|
|
35587
35587
|
},
|
|
35588
35588
|
mathmlBuilder: (t, n) => {
|
|
35589
|
-
var r =
|
|
35589
|
+
var r = rn(Ot(t.body), n), i = new be.MathNode("mphantom", r), s = new be.MathNode("mpadded", [i]);
|
|
35590
35590
|
return s.setAttribute("height", "0px"), s.setAttribute("depth", "0px"), s;
|
|
35591
35591
|
}
|
|
35592
35592
|
});
|
|
@@ -35608,11 +35608,11 @@ Ce({
|
|
|
35608
35608
|
};
|
|
35609
35609
|
},
|
|
35610
35610
|
htmlBuilder: (t, n) => {
|
|
35611
|
-
var r = oe.makeSpan(["inner"], [
|
|
35611
|
+
var r = oe.makeSpan(["inner"], [ot(t.body, n.withPhantom())]), i = oe.makeSpan(["fix"], []);
|
|
35612
35612
|
return oe.makeSpan(["mord", "rlap"], [r, i], n);
|
|
35613
35613
|
},
|
|
35614
35614
|
mathmlBuilder: (t, n) => {
|
|
35615
|
-
var r =
|
|
35615
|
+
var r = rn(Ot(t.body), n), i = new be.MathNode("mphantom", r), s = new be.MathNode("mpadded", [i]);
|
|
35616
35616
|
return s.setAttribute("width", "0px"), s;
|
|
35617
35617
|
}
|
|
35618
35618
|
});
|
|
@@ -35636,7 +35636,7 @@ Ce({
|
|
|
35636
35636
|
};
|
|
35637
35637
|
},
|
|
35638
35638
|
htmlBuilder(t, n) {
|
|
35639
|
-
var r =
|
|
35639
|
+
var r = ot(t.body, n), i = kt(t.dy, n);
|
|
35640
35640
|
return oe.makeVList({
|
|
35641
35641
|
positionType: "shift",
|
|
35642
35642
|
positionData: -i,
|
|
@@ -35647,7 +35647,7 @@ Ce({
|
|
|
35647
35647
|
}, n);
|
|
35648
35648
|
},
|
|
35649
35649
|
mathmlBuilder(t, n) {
|
|
35650
|
-
var r = new be.MathNode("mpadded", [
|
|
35650
|
+
var r = new be.MathNode("mpadded", [mt(t.body, n)]), i = t.dy.number + t.dy.unit;
|
|
35651
35651
|
return r.setAttribute("voffset", i), r;
|
|
35652
35652
|
}
|
|
35653
35653
|
});
|
|
@@ -35736,7 +35736,7 @@ Ce({
|
|
|
35736
35736
|
},
|
|
35737
35737
|
htmlBuilder: qk,
|
|
35738
35738
|
mathmlBuilder: (t, n) => {
|
|
35739
|
-
var r = n.havingSize(t.size), i =
|
|
35739
|
+
var r = n.havingSize(t.size), i = rn(t.body, r), s = new be.MathNode("mstyle", i);
|
|
35740
35740
|
return s.setAttribute("mathsize", we(r.sizeMultiplier)), s;
|
|
35741
35741
|
}
|
|
35742
35742
|
});
|
|
@@ -35776,7 +35776,7 @@ Ce({
|
|
|
35776
35776
|
};
|
|
35777
35777
|
},
|
|
35778
35778
|
htmlBuilder: (t, n) => {
|
|
35779
|
-
var r = oe.makeSpan([], [
|
|
35779
|
+
var r = oe.makeSpan([], [ot(t.body, n)]);
|
|
35780
35780
|
if (!t.smashHeight && !t.smashDepth)
|
|
35781
35781
|
return r;
|
|
35782
35782
|
if (t.smashHeight && (r.height = 0, r.children))
|
|
@@ -35795,7 +35795,7 @@ Ce({
|
|
|
35795
35795
|
return oe.makeSpan(["mord"], [o], n);
|
|
35796
35796
|
},
|
|
35797
35797
|
mathmlBuilder: (t, n) => {
|
|
35798
|
-
var r = new be.MathNode("mpadded", [
|
|
35798
|
+
var r = new be.MathNode("mpadded", [mt(t.body, n)]);
|
|
35799
35799
|
return t.smashHeight && r.setAttribute("height", "0px"), t.smashDepth && r.setAttribute("depth", "0px"), r;
|
|
35800
35800
|
}
|
|
35801
35801
|
});
|
|
@@ -35818,7 +35818,7 @@ Ce({
|
|
|
35818
35818
|
};
|
|
35819
35819
|
},
|
|
35820
35820
|
htmlBuilder(t, n) {
|
|
35821
|
-
var r =
|
|
35821
|
+
var r = ot(t.body, n.havingCrampedStyle());
|
|
35822
35822
|
r.height === 0 && (r.height = n.fontMetrics().xHeight), r = oe.wrapFragment(r, n);
|
|
35823
35823
|
var i = n.fontMetrics(), s = i.defaultRuleThickness, o = s;
|
|
35824
35824
|
n.style.id < Pe.TEXT.id && (o = n.fontMetrics().xHeight);
|
|
@@ -35848,7 +35848,7 @@ Ce({
|
|
|
35848
35848
|
}]
|
|
35849
35849
|
}, n);
|
|
35850
35850
|
if (t.index) {
|
|
35851
|
-
var S = n.havingStyle(Pe.SCRIPTSCRIPT), k =
|
|
35851
|
+
var S = n.havingStyle(Pe.SCRIPTSCRIPT), k = ot(t.index, S, n), d = 0.6 * (C.height - C.depth), f = oe.makeVList({
|
|
35852
35852
|
positionType: "shift",
|
|
35853
35853
|
positionData: -d,
|
|
35854
35854
|
children: [{
|
|
@@ -35865,7 +35865,7 @@ Ce({
|
|
|
35865
35865
|
body: r,
|
|
35866
35866
|
index: i
|
|
35867
35867
|
} = t;
|
|
35868
|
-
return i ? new be.MathNode("mroot", [
|
|
35868
|
+
return i ? new be.MathNode("mroot", [mt(r, n), mt(i, n)]) : new be.MathNode("msqrt", [mt(r, n)]);
|
|
35869
35869
|
}
|
|
35870
35870
|
});
|
|
35871
35871
|
var Ad = {
|
|
@@ -35902,7 +35902,7 @@ Ce({
|
|
|
35902
35902
|
return Zg(t.body, i, n);
|
|
35903
35903
|
},
|
|
35904
35904
|
mathmlBuilder(t, n) {
|
|
35905
|
-
var r = Ad[t.style], i = n.havingStyle(r), s =
|
|
35905
|
+
var r = Ad[t.style], i = n.havingStyle(r), s = rn(t.body, i), o = new be.MathNode("mstyle", s), l = {
|
|
35906
35906
|
display: ["0", "true"],
|
|
35907
35907
|
text: ["0", "false"],
|
|
35908
35908
|
script: ["1", "false"],
|
|
@@ -35922,7 +35922,7 @@ var Yk = function(n, r) {
|
|
|
35922
35922
|
return o ? Gg : null;
|
|
35923
35923
|
} else {
|
|
35924
35924
|
if (i.type === "accent")
|
|
35925
|
-
return
|
|
35925
|
+
return lt.isCharacterBox(i.base) ? g0 : null;
|
|
35926
35926
|
if (i.type === "horizBrace") {
|
|
35927
35927
|
var l = !n.sub;
|
|
35928
35928
|
return l === i.isOver ? qg : null;
|
|
@@ -35941,14 +35941,14 @@ ii({
|
|
|
35941
35941
|
base: i,
|
|
35942
35942
|
sup: s,
|
|
35943
35943
|
sub: o
|
|
35944
|
-
} = t, l =
|
|
35944
|
+
} = t, l = ot(i, n), c, a, h = n.fontMetrics(), u = 0, m = 0, g = i && lt.isCharacterBox(i);
|
|
35945
35945
|
if (s) {
|
|
35946
35946
|
var C = n.havingStyle(n.style.sup());
|
|
35947
|
-
c =
|
|
35947
|
+
c = ot(s, C, n), g || (u = l.height - C.fontMetrics().supDrop * C.sizeMultiplier / n.sizeMultiplier);
|
|
35948
35948
|
}
|
|
35949
35949
|
if (o) {
|
|
35950
35950
|
var S = n.havingStyle(n.style.sub());
|
|
35951
|
-
a =
|
|
35951
|
+
a = ot(o, S, n), g || (m = l.depth + S.fontMetrics().subDrop * S.sizeMultiplier / n.sizeMultiplier);
|
|
35952
35952
|
}
|
|
35953
35953
|
var k;
|
|
35954
35954
|
n.style === Pe.DISPLAY ? k = h.sup1 : n.style.cramped ? k = h.sup3 : k = h.sup2;
|
|
@@ -36013,8 +36013,8 @@ ii({
|
|
|
36013
36013
|
mathmlBuilder(t, n) {
|
|
36014
36014
|
var r = !1, i, s;
|
|
36015
36015
|
t.base && t.base.type === "horizBrace" && (s = !!t.sup, s === t.base.isOver && (r = !0, i = t.base.isOver)), t.base && (t.base.type === "op" || t.base.type === "operatorname") && (t.base.parentIsSupSub = !0);
|
|
36016
|
-
var o = [
|
|
36017
|
-
t.sub && o.push(
|
|
36016
|
+
var o = [mt(t.base, n)];
|
|
36017
|
+
t.sub && o.push(mt(t.sub, n)), t.sup && o.push(mt(t.sup, n));
|
|
36018
36018
|
var l;
|
|
36019
36019
|
if (r)
|
|
36020
36020
|
l = i ? "mover" : "munder";
|
|
@@ -36211,7 +36211,7 @@ Ce({
|
|
|
36211
36211
|
};
|
|
36212
36212
|
},
|
|
36213
36213
|
htmlBuilder(t, n) {
|
|
36214
|
-
var r =
|
|
36214
|
+
var r = ot(t.body, n), i = oe.makeLineSpan("underline-line", n), s = n.fontMetrics().defaultRuleThickness, o = oe.makeVList({
|
|
36215
36215
|
positionType: "top",
|
|
36216
36216
|
positionData: r.height,
|
|
36217
36217
|
children: [{
|
|
@@ -36233,7 +36233,7 @@ Ce({
|
|
|
36233
36233
|
mathmlBuilder(t, n) {
|
|
36234
36234
|
var r = new be.MathNode("mo", [new be.TextNode("‾")]);
|
|
36235
36235
|
r.setAttribute("stretchy", "true");
|
|
36236
|
-
var i = new be.MathNode("munder", [
|
|
36236
|
+
var i = new be.MathNode("munder", [mt(t.body, n), r]);
|
|
36237
36237
|
return i.setAttribute("accentunder", "true"), i;
|
|
36238
36238
|
}
|
|
36239
36239
|
});
|
|
@@ -36257,7 +36257,7 @@ Ce({
|
|
|
36257
36257
|
};
|
|
36258
36258
|
},
|
|
36259
36259
|
htmlBuilder(t, n) {
|
|
36260
|
-
var r =
|
|
36260
|
+
var r = ot(t.body, n), i = n.fontMetrics().axisHeight, s = 0.5 * (r.height - i - (r.depth + i));
|
|
36261
36261
|
return oe.makeVList({
|
|
36262
36262
|
positionType: "shift",
|
|
36263
36263
|
positionData: s,
|
|
@@ -36268,7 +36268,7 @@ Ce({
|
|
|
36268
36268
|
}, n);
|
|
36269
36269
|
},
|
|
36270
36270
|
mathmlBuilder(t, n) {
|
|
36271
|
-
return new be.MathNode("mpadded", [
|
|
36271
|
+
return new be.MathNode("mpadded", [mt(t.body, n)], ["vcenter"]);
|
|
36272
36272
|
}
|
|
36273
36273
|
});
|
|
36274
36274
|
Ce({
|
|
@@ -36325,17 +36325,17 @@ class Pd {
|
|
|
36325
36325
|
lex() {
|
|
36326
36326
|
var n = this.input, r = this.tokenRegex.lastIndex;
|
|
36327
36327
|
if (r === n.length)
|
|
36328
|
-
return new
|
|
36328
|
+
return new un("EOF", new nn(this, r, r));
|
|
36329
36329
|
var i = this.tokenRegex.exec(n);
|
|
36330
36330
|
if (i === null || i.index !== r)
|
|
36331
|
-
throw new ye("Unexpected character: '" + n[r] + "'", new
|
|
36331
|
+
throw new ye("Unexpected character: '" + n[r] + "'", new un(n[r], new nn(this, r, r + 1)));
|
|
36332
36332
|
var s = i[6] || i[3] || (i[2] ? "\\ " : " ");
|
|
36333
36333
|
if (this.catcodes[s] === 14) {
|
|
36334
36334
|
var o = n.indexOf(`
|
|
36335
36335
|
`, this.tokenRegex.lastIndex);
|
|
36336
36336
|
return o === -1 ? (this.tokenRegex.lastIndex = n.length, this.settings.reportNonstrict("commentAtEnd", "% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")) : this.tokenRegex.lastIndex = o + 1, this.lex();
|
|
36337
36337
|
}
|
|
36338
|
-
return new
|
|
36338
|
+
return new un(s, new nn(this, r, this.tokenRegex.lastIndex));
|
|
36339
36339
|
}
|
|
36340
36340
|
}
|
|
36341
36341
|
class eE {
|
|
@@ -37081,7 +37081,7 @@ class nE {
|
|
|
37081
37081
|
start: r,
|
|
37082
37082
|
end: i
|
|
37083
37083
|
} = this.consumeArg());
|
|
37084
|
-
return this.pushToken(new
|
|
37084
|
+
return this.pushToken(new un("EOF", i.loc)), this.pushTokens(s), new un("", nn.range(r, i));
|
|
37085
37085
|
}
|
|
37086
37086
|
/**
|
|
37087
37087
|
* Consume all following space tokens, without expansion.
|
|
@@ -37223,7 +37223,7 @@ class nE {
|
|
|
37223
37223
|
* tokens, or return `undefined` if no such macro is defined.
|
|
37224
37224
|
*/
|
|
37225
37225
|
expandMacro(n) {
|
|
37226
|
-
return this.macros.has(n) ? this.expandTokens([new
|
|
37226
|
+
return this.macros.has(n) ? this.expandTokens([new un(n)]) : void 0;
|
|
37227
37227
|
}
|
|
37228
37228
|
/**
|
|
37229
37229
|
* Fully expand the given token stream and return the resulting list of
|
|
@@ -37841,7 +37841,7 @@ class Na {
|
|
|
37841
37841
|
*/
|
|
37842
37842
|
subparse(n) {
|
|
37843
37843
|
var r = this.nextToken;
|
|
37844
|
-
this.consume(), this.gullet.pushToken(new
|
|
37844
|
+
this.consume(), this.gullet.pushToken(new un("}")), this.gullet.pushTokens(n);
|
|
37845
37845
|
var i = this.parseExpression(!1);
|
|
37846
37846
|
return this.expect("}"), this.nextToken = r, i;
|
|
37847
37847
|
}
|
|
@@ -37983,11 +37983,11 @@ class Na {
|
|
|
37983
37983
|
};
|
|
37984
37984
|
} else if (ao[o.text]) {
|
|
37985
37985
|
var h = Fd.test(o.text), u = [];
|
|
37986
|
-
for (u.push(new
|
|
37986
|
+
for (u.push(new un(ao[o.text])), this.consume(); ; ) {
|
|
37987
37987
|
var m = this.fetch().text;
|
|
37988
37988
|
if (!ao[m] || Fd.test(m) !== h)
|
|
37989
37989
|
break;
|
|
37990
|
-
u.unshift(new
|
|
37990
|
+
u.unshift(new un(ao[m])), this.consume();
|
|
37991
37991
|
}
|
|
37992
37992
|
var g = this.subparse(u);
|
|
37993
37993
|
h ? s = {
|
|
@@ -38242,7 +38242,7 @@ class Na {
|
|
|
38242
38242
|
this.expect(l), this.gullet.endGroup(), o = {
|
|
38243
38243
|
type: "ordgroup",
|
|
38244
38244
|
mode: this.mode,
|
|
38245
|
-
loc:
|
|
38245
|
+
loc: nn.range(i, a),
|
|
38246
38246
|
body: c,
|
|
38247
38247
|
// A group formed by \begingroup...\endgroup is a semi-simple group
|
|
38248
38248
|
// which doesn't affect spacing in math mode, i.e., is transparent.
|
|
@@ -38271,17 +38271,17 @@ class Na {
|
|
|
38271
38271
|
o === "-" && n[i + 1].text === "-" && (i + 1 < r && n[i + 2].text === "-" ? (n.splice(i, 3, {
|
|
38272
38272
|
type: "textord",
|
|
38273
38273
|
mode: "text",
|
|
38274
|
-
loc:
|
|
38274
|
+
loc: nn.range(s, n[i + 2]),
|
|
38275
38275
|
text: "---"
|
|
38276
38276
|
}), r -= 2) : (n.splice(i, 2, {
|
|
38277
38277
|
type: "textord",
|
|
38278
38278
|
mode: "text",
|
|
38279
|
-
loc:
|
|
38279
|
+
loc: nn.range(s, n[i + 1]),
|
|
38280
38280
|
text: "--"
|
|
38281
38281
|
}), r -= 1)), (o === "'" || o === "`") && n[i + 1].text === o && (n.splice(i, 2, {
|
|
38282
38282
|
type: "textord",
|
|
38283
38283
|
mode: "text",
|
|
38284
|
-
loc:
|
|
38284
|
+
loc: nn.range(s, n[i + 1]),
|
|
38285
38285
|
text: o + o
|
|
38286
38286
|
}), r -= 1);
|
|
38287
38287
|
}
|
|
@@ -38311,7 +38311,7 @@ class Na {
|
|
|
38311
38311
|
var l;
|
|
38312
38312
|
if (vt[this.mode][r]) {
|
|
38313
38313
|
this.settings.strict && this.mode === "math" && ec.indexOf(r) >= 0 && this.settings.reportNonstrict("unicodeTextInMathMode", 'Latin-1/Unicode text character "' + r[0] + '" used in math mode', n);
|
|
38314
|
-
var c = vt[this.mode][r].group, a =
|
|
38314
|
+
var c = vt[this.mode][r].group, a = nn.range(n), h;
|
|
38315
38315
|
if (US.hasOwnProperty(c)) {
|
|
38316
38316
|
var u = c;
|
|
38317
38317
|
h = {
|
|
@@ -38333,7 +38333,7 @@ class Na {
|
|
|
38333
38333
|
this.settings.strict && (cg(r.charCodeAt(0)) ? this.mode === "math" && this.settings.reportNonstrict("unicodeTextInMathMode", 'Unicode text character "' + r[0] + '" used in math mode', n) : this.settings.reportNonstrict("unknownSymbol", 'Unrecognized Unicode character "' + r[0] + '"' + (" (" + r.charCodeAt(0) + ")"), n)), l = {
|
|
38334
38334
|
type: "textord",
|
|
38335
38335
|
mode: "text",
|
|
38336
|
-
loc:
|
|
38336
|
+
loc: nn.range(n),
|
|
38337
38337
|
text: r
|
|
38338
38338
|
};
|
|
38339
38339
|
else
|
|
@@ -38349,7 +38349,7 @@ class Na {
|
|
|
38349
38349
|
l = {
|
|
38350
38350
|
type: "accent",
|
|
38351
38351
|
mode: this.mode,
|
|
38352
|
-
loc:
|
|
38352
|
+
loc: nn.range(n),
|
|
38353
38353
|
label: C,
|
|
38354
38354
|
isStretchy: !1,
|
|
38355
38355
|
isShifty: !0,
|
|
@@ -38374,7 +38374,7 @@ var E0 = function(n, r) {
|
|
|
38374
38374
|
type: "tag",
|
|
38375
38375
|
mode: "text",
|
|
38376
38376
|
body: s,
|
|
38377
|
-
tag: i.subparse([new
|
|
38377
|
+
tag: i.subparse([new un("\\df@tag")])
|
|
38378
38378
|
}];
|
|
38379
38379
|
}
|
|
38380
38380
|
return s;
|
|
@@ -39382,8 +39382,8 @@ var O0 = "MenuSub", [GE, S2] = si(O0), k2 = (t) => {
|
|
|
39382
39382
|
GE,
|
|
39383
39383
|
{
|
|
39384
39384
|
scope: n,
|
|
39385
|
-
contentId:
|
|
39386
|
-
triggerId:
|
|
39385
|
+
contentId: Qt(),
|
|
39386
|
+
triggerId: Qt(),
|
|
39387
39387
|
trigger: c,
|
|
39388
39388
|
onTriggerChange: a,
|
|
39389
39389
|
children: r
|
|
@@ -39546,7 +39546,7 @@ function vs(t) {
|
|
|
39546
39546
|
var eN = c2, tN = T0, nN = d2, rN = f2, iN = R0, sN = h2, oN = Ta, aN = p2, lN = v2, cN = y2, uN = x2, dN = _2, fN = C2, hN = k2, mN = E2, pN = T2, Ma = "DropdownMenu", [gN] = lE(
|
|
39547
39547
|
Ma,
|
|
39548
39548
|
[o2]
|
|
39549
|
-
),
|
|
39549
|
+
), jt = o2(), [vN, A2] = gN(Ma), D2 = (t) => {
|
|
39550
39550
|
const {
|
|
39551
39551
|
__scopeDropdownMenu: n,
|
|
39552
39552
|
children: r,
|
|
@@ -39555,7 +39555,7 @@ var eN = c2, tN = T0, nN = d2, rN = f2, iN = R0, sN = h2, oN = Ta, aN = p2, lN =
|
|
|
39555
39555
|
defaultOpen: o,
|
|
39556
39556
|
onOpenChange: l,
|
|
39557
39557
|
modal: c = !0
|
|
39558
|
-
} = t, a =
|
|
39558
|
+
} = t, a = jt(n), h = v.useRef(null), [u, m] = xn({
|
|
39559
39559
|
prop: s,
|
|
39560
39560
|
defaultProp: o ?? !1,
|
|
39561
39561
|
onChange: l,
|
|
@@ -39565,9 +39565,9 @@ var eN = c2, tN = T0, nN = d2, rN = f2, iN = R0, sN = h2, oN = Ta, aN = p2, lN =
|
|
|
39565
39565
|
vN,
|
|
39566
39566
|
{
|
|
39567
39567
|
scope: n,
|
|
39568
|
-
triggerId:
|
|
39568
|
+
triggerId: Qt(),
|
|
39569
39569
|
triggerRef: h,
|
|
39570
|
-
contentId:
|
|
39570
|
+
contentId: Qt(),
|
|
39571
39571
|
open: u,
|
|
39572
39572
|
onOpenChange: m,
|
|
39573
39573
|
onOpenToggle: v.useCallback(() => m((g) => !g), [m]),
|
|
@@ -39579,7 +39579,7 @@ var eN = c2, tN = T0, nN = d2, rN = f2, iN = R0, sN = h2, oN = Ta, aN = p2, lN =
|
|
|
39579
39579
|
D2.displayName = Ma;
|
|
39580
39580
|
var R2 = "DropdownMenuTrigger", L2 = v.forwardRef(
|
|
39581
39581
|
(t, n) => {
|
|
39582
|
-
const { __scopeDropdownMenu: r, disabled: i = !1, ...s } = t, o = A2(R2, r), l =
|
|
39582
|
+
const { __scopeDropdownMenu: r, disabled: i = !1, ...s } = t, o = A2(R2, r), l = jt(r);
|
|
39583
39583
|
return /* @__PURE__ */ w(tN, { asChild: !0, ...l, children: /* @__PURE__ */ w(
|
|
39584
39584
|
vE.button,
|
|
39585
39585
|
{
|
|
@@ -39605,13 +39605,13 @@ var R2 = "DropdownMenuTrigger", L2 = v.forwardRef(
|
|
|
39605
39605
|
);
|
|
39606
39606
|
L2.displayName = R2;
|
|
39607
39607
|
var bN = "DropdownMenuPortal", O2 = (t) => {
|
|
39608
|
-
const { __scopeDropdownMenu: n, ...r } = t, i =
|
|
39608
|
+
const { __scopeDropdownMenu: n, ...r } = t, i = jt(n);
|
|
39609
39609
|
return /* @__PURE__ */ w(nN, { ...i, ...r });
|
|
39610
39610
|
};
|
|
39611
39611
|
O2.displayName = bN;
|
|
39612
39612
|
var I2 = "DropdownMenuContent", P2 = v.forwardRef(
|
|
39613
39613
|
(t, n) => {
|
|
39614
|
-
const { __scopeDropdownMenu: r, ...i } = t, s = A2(I2, r), o =
|
|
39614
|
+
const { __scopeDropdownMenu: r, ...i } = t, s = A2(I2, r), o = jt(r), l = v.useRef(!1);
|
|
39615
39615
|
return /* @__PURE__ */ w(
|
|
39616
39616
|
rN,
|
|
39617
39617
|
{
|
|
@@ -39643,59 +39643,59 @@ var I2 = "DropdownMenuContent", P2 = v.forwardRef(
|
|
|
39643
39643
|
P2.displayName = I2;
|
|
39644
39644
|
var yN = "DropdownMenuGroup", B2 = v.forwardRef(
|
|
39645
39645
|
(t, n) => {
|
|
39646
|
-
const { __scopeDropdownMenu: r, ...i } = t, s =
|
|
39646
|
+
const { __scopeDropdownMenu: r, ...i } = t, s = jt(r);
|
|
39647
39647
|
return /* @__PURE__ */ w(iN, { ...s, ...i, ref: n });
|
|
39648
39648
|
}
|
|
39649
39649
|
);
|
|
39650
39650
|
B2.displayName = yN;
|
|
39651
39651
|
var wN = "DropdownMenuLabel", z2 = v.forwardRef(
|
|
39652
39652
|
(t, n) => {
|
|
39653
|
-
const { __scopeDropdownMenu: r, ...i } = t, s =
|
|
39653
|
+
const { __scopeDropdownMenu: r, ...i } = t, s = jt(r);
|
|
39654
39654
|
return /* @__PURE__ */ w(sN, { ...s, ...i, ref: n });
|
|
39655
39655
|
}
|
|
39656
39656
|
);
|
|
39657
39657
|
z2.displayName = wN;
|
|
39658
39658
|
var xN = "DropdownMenuItem", F2 = v.forwardRef(
|
|
39659
39659
|
(t, n) => {
|
|
39660
|
-
const { __scopeDropdownMenu: r, ...i } = t, s =
|
|
39660
|
+
const { __scopeDropdownMenu: r, ...i } = t, s = jt(r);
|
|
39661
39661
|
return /* @__PURE__ */ w(oN, { ...s, ...i, ref: n });
|
|
39662
39662
|
}
|
|
39663
39663
|
);
|
|
39664
39664
|
F2.displayName = xN;
|
|
39665
39665
|
var _N = "DropdownMenuCheckboxItem", H2 = v.forwardRef((t, n) => {
|
|
39666
|
-
const { __scopeDropdownMenu: r, ...i } = t, s =
|
|
39666
|
+
const { __scopeDropdownMenu: r, ...i } = t, s = jt(r);
|
|
39667
39667
|
return /* @__PURE__ */ w(aN, { ...s, ...i, ref: n });
|
|
39668
39668
|
});
|
|
39669
39669
|
H2.displayName = _N;
|
|
39670
39670
|
var CN = "DropdownMenuRadioGroup", V2 = v.forwardRef((t, n) => {
|
|
39671
|
-
const { __scopeDropdownMenu: r, ...i } = t, s =
|
|
39671
|
+
const { __scopeDropdownMenu: r, ...i } = t, s = jt(r);
|
|
39672
39672
|
return /* @__PURE__ */ w(lN, { ...s, ...i, ref: n });
|
|
39673
39673
|
});
|
|
39674
39674
|
V2.displayName = CN;
|
|
39675
39675
|
var SN = "DropdownMenuRadioItem", $2 = v.forwardRef((t, n) => {
|
|
39676
|
-
const { __scopeDropdownMenu: r, ...i } = t, s =
|
|
39676
|
+
const { __scopeDropdownMenu: r, ...i } = t, s = jt(r);
|
|
39677
39677
|
return /* @__PURE__ */ w(cN, { ...s, ...i, ref: n });
|
|
39678
39678
|
});
|
|
39679
39679
|
$2.displayName = SN;
|
|
39680
39680
|
var kN = "DropdownMenuItemIndicator", W2 = v.forwardRef((t, n) => {
|
|
39681
|
-
const { __scopeDropdownMenu: r, ...i } = t, s =
|
|
39681
|
+
const { __scopeDropdownMenu: r, ...i } = t, s = jt(r);
|
|
39682
39682
|
return /* @__PURE__ */ w(uN, { ...s, ...i, ref: n });
|
|
39683
39683
|
});
|
|
39684
39684
|
W2.displayName = kN;
|
|
39685
39685
|
var EN = "DropdownMenuSeparator", U2 = v.forwardRef((t, n) => {
|
|
39686
|
-
const { __scopeDropdownMenu: r, ...i } = t, s =
|
|
39686
|
+
const { __scopeDropdownMenu: r, ...i } = t, s = jt(r);
|
|
39687
39687
|
return /* @__PURE__ */ w(dN, { ...s, ...i, ref: n });
|
|
39688
39688
|
});
|
|
39689
39689
|
U2.displayName = EN;
|
|
39690
39690
|
var NN = "DropdownMenuArrow", TN = v.forwardRef(
|
|
39691
39691
|
(t, n) => {
|
|
39692
|
-
const { __scopeDropdownMenu: r, ...i } = t, s =
|
|
39692
|
+
const { __scopeDropdownMenu: r, ...i } = t, s = jt(r);
|
|
39693
39693
|
return /* @__PURE__ */ w(fN, { ...s, ...i, ref: n });
|
|
39694
39694
|
}
|
|
39695
39695
|
);
|
|
39696
39696
|
TN.displayName = NN;
|
|
39697
39697
|
var MN = (t) => {
|
|
39698
|
-
const { __scopeDropdownMenu: n, children: r, open: i, onOpenChange: s, defaultOpen: o } = t, l =
|
|
39698
|
+
const { __scopeDropdownMenu: n, children: r, open: i, onOpenChange: s, defaultOpen: o } = t, l = jt(n), [c, a] = xn({
|
|
39699
39699
|
prop: i,
|
|
39700
39700
|
defaultProp: o ?? !1,
|
|
39701
39701
|
onChange: s,
|
|
@@ -39703,12 +39703,12 @@ var MN = (t) => {
|
|
|
39703
39703
|
});
|
|
39704
39704
|
return /* @__PURE__ */ w(hN, { ...l, open: c, onOpenChange: a, children: r });
|
|
39705
39705
|
}, AN = "DropdownMenuSubTrigger", q2 = v.forwardRef((t, n) => {
|
|
39706
|
-
const { __scopeDropdownMenu: r, ...i } = t, s =
|
|
39706
|
+
const { __scopeDropdownMenu: r, ...i } = t, s = jt(r);
|
|
39707
39707
|
return /* @__PURE__ */ w(mN, { ...s, ...i, ref: n });
|
|
39708
39708
|
});
|
|
39709
39709
|
q2.displayName = AN;
|
|
39710
39710
|
var DN = "DropdownMenuSubContent", Y2 = v.forwardRef((t, n) => {
|
|
39711
|
-
const { __scopeDropdownMenu: r, ...i } = t, s =
|
|
39711
|
+
const { __scopeDropdownMenu: r, ...i } = t, s = jt(r);
|
|
39712
39712
|
return /* @__PURE__ */ w(
|
|
39713
39713
|
pN,
|
|
39714
39714
|
{
|
|
@@ -42707,22 +42707,22 @@ const XT = Av((t, n) => ({
|
|
|
42707
42707
|
}
|
|
42708
42708
|
}));
|
|
42709
42709
|
function U0() {
|
|
42710
|
-
const { addToast: t, removeToast: n, toasts: r, clearToasts: i } = XT(), s =
|
|
42710
|
+
const { addToast: t, removeToast: n, toasts: r, clearToasts: i } = XT(), s = ht(
|
|
42711
42711
|
(u) => t(u),
|
|
42712
42712
|
[t]
|
|
42713
|
-
), o =
|
|
42713
|
+
), o = ht(
|
|
42714
42714
|
(u, m = {}) => t({ type: "success", message: u, ...m }),
|
|
42715
42715
|
[t]
|
|
42716
|
-
), l =
|
|
42716
|
+
), l = ht(
|
|
42717
42717
|
(u, m = {}) => t({ type: "error", message: u, ...m }),
|
|
42718
42718
|
[t]
|
|
42719
|
-
), c =
|
|
42719
|
+
), c = ht(
|
|
42720
42720
|
(u, m = {}) => t({ type: "warning", message: u, ...m }),
|
|
42721
42721
|
[t]
|
|
42722
|
-
), a =
|
|
42722
|
+
), a = ht(
|
|
42723
42723
|
(u, m = {}) => t({ type: "info", message: u, ...m }),
|
|
42724
42724
|
[t]
|
|
42725
|
-
), h =
|
|
42725
|
+
), h = ht(
|
|
42726
42726
|
(u) => {
|
|
42727
42727
|
n(u);
|
|
42728
42728
|
},
|
|
@@ -42821,39 +42821,42 @@ const KT = ({
|
|
|
42821
42821
|
// Clickable columns configuration
|
|
42822
42822
|
clickableColumns: he = []
|
|
42823
42823
|
}) => {
|
|
42824
|
-
const ue = uc(), [se, pe] = Mv(), { success: Te, error: De } = U0(), [$e, rt] = v.useState(!1), [me, Se] = v.useState(null), [Ge,
|
|
42825
|
-
let
|
|
42826
|
-
for (;
|
|
42827
|
-
const
|
|
42828
|
-
if ((
|
|
42829
|
-
return
|
|
42830
|
-
|
|
42824
|
+
const ue = uc(), [se, pe] = Mv(), { success: Te, error: De } = U0(), [$e, rt] = v.useState(!1), [me, Se] = v.useState(null), [Ge, st] = v.useState(!1), [pt, et] = v.useState(""), bt = v.useRef(!1), gt = v.useRef(pt), at = Wo(), Ve = () => {
|
|
42825
|
+
let Xe = document.getElementById("dashboard-main-content");
|
|
42826
|
+
for (; Xe && !(Xe === document.body || Xe === document.documentElement); ) {
|
|
42827
|
+
const Ut = getComputedStyle(Xe).overflowY;
|
|
42828
|
+
if ((Ut === "auto" || Ut === "scroll") && Xe.scrollHeight > Xe.clientHeight)
|
|
42829
|
+
return Xe;
|
|
42830
|
+
Xe = Xe.parentElement;
|
|
42831
42831
|
}
|
|
42832
42832
|
return null;
|
|
42833
|
-
},
|
|
42834
|
-
|
|
42835
|
-
|
|
42833
|
+
}, Ke = () => {
|
|
42834
|
+
var Ut;
|
|
42835
|
+
const Ae = Ve(), Xe = Ae ? Ae.scrollTop : window.scrollY;
|
|
42836
|
+
Xe > 0 && sessionStorage.setItem(`scrollPos:${at.pathname}`, String(Xe));
|
|
42837
|
+
const it = ((Ut = t == null ? void 0 : t.pagination) == null ? void 0 : Ut.page) ?? o;
|
|
42838
|
+
it > 1 ? sessionStorage.setItem(`listPage:${at.pathname}`, String(it)) : sessionStorage.removeItem(`listPage:${at.pathname}`);
|
|
42836
42839
|
}, Oe = () => {
|
|
42837
|
-
const Ae = `scrollPos:${
|
|
42838
|
-
if (!
|
|
42840
|
+
const Ae = `scrollPos:${at.pathname}`, Xe = sessionStorage.getItem(Ae);
|
|
42841
|
+
if (!Xe) return;
|
|
42839
42842
|
sessionStorage.removeItem(Ae);
|
|
42840
|
-
const
|
|
42841
|
-
if (!(
|
|
42842
|
-
let
|
|
42843
|
-
const
|
|
42843
|
+
const it = parseInt(Xe, 10);
|
|
42844
|
+
if (!(it > 0)) return;
|
|
42845
|
+
let Ut = 0;
|
|
42846
|
+
const Gt = 50, li = () => {
|
|
42844
42847
|
const br = Ve(), Ys = Math.max(
|
|
42845
42848
|
document.documentElement.scrollHeight,
|
|
42846
42849
|
document.body.scrollHeight
|
|
42847
42850
|
), Cv = br ? br.scrollHeight : Ys, Sv = br ? br.clientHeight : window.innerHeight, ou = Cv - Sv;
|
|
42848
|
-
if (ou >=
|
|
42849
|
-
const au = Math.min(
|
|
42851
|
+
if (ou >= it || Ut >= Gt) {
|
|
42852
|
+
const au = Math.min(it, Math.max(ou, 0));
|
|
42850
42853
|
br ? br.scrollTop = au : window.scrollTo(0, au);
|
|
42851
42854
|
return;
|
|
42852
42855
|
}
|
|
42853
|
-
|
|
42856
|
+
Ut++, setTimeout(li, 50);
|
|
42854
42857
|
};
|
|
42855
42858
|
requestAnimationFrame(() => requestAnimationFrame(li));
|
|
42856
|
-
}, Ze = (t == null ? void 0 : t.items) ?? n ?? [], Wt = (t == null ? void 0 : t.loading) ?? r,
|
|
42859
|
+
}, Ze = (t == null ? void 0 : t.items) ?? n ?? [], Wt = (t == null ? void 0 : t.loading) ?? r, Je = (t == null ? void 0 : t.error) ?? i, ai = (t == null ? void 0 : t.pagination) ?? {
|
|
42857
42860
|
page: o,
|
|
42858
42861
|
pageSize: l,
|
|
42859
42862
|
total: c,
|
|
@@ -42862,27 +42865,33 @@ const KT = ({
|
|
|
42862
42865
|
v.useEffect(() => {
|
|
42863
42866
|
if (_t && !bt.current) {
|
|
42864
42867
|
bt.current = !0;
|
|
42865
|
-
const Ae = parseInt(se.get("page"), 10);
|
|
42866
|
-
|
|
42868
|
+
const Ae = parseInt(se.get("page"), 10), Xe = parseInt(sessionStorage.getItem(`listPage:${at.pathname}`), 10), it = Ae > 0 ? Ae : Xe > 0 ? Xe : 0;
|
|
42869
|
+
it > 0 && tr && (tr(it), it > 1 && pe(
|
|
42870
|
+
(Ut) => {
|
|
42871
|
+
const Gt = new URLSearchParams(Ut);
|
|
42872
|
+
return Gt.set("page", String(it)), Gt;
|
|
42873
|
+
},
|
|
42874
|
+
{ replace: !0 }
|
|
42875
|
+
)), sessionStorage.removeItem(`listPage:${at.pathname}`), _t().then(() => {
|
|
42867
42876
|
Oe();
|
|
42868
42877
|
}).catch(() => {
|
|
42869
42878
|
});
|
|
42870
42879
|
}
|
|
42871
42880
|
}, [_t]), v.useEffect(() => {
|
|
42872
|
-
if (!_t || !bt.current ||
|
|
42881
|
+
if (!_t || !bt.current || gt.current === pt)
|
|
42873
42882
|
return;
|
|
42874
42883
|
const Ae = setTimeout(() => {
|
|
42875
|
-
Be && (
|
|
42876
|
-
(
|
|
42877
|
-
const
|
|
42878
|
-
return
|
|
42884
|
+
Be && (gt.current = pt, $r == null || $r({ search: pt }), Hi !== 1 && (tr == null || tr(1), pe(
|
|
42885
|
+
(Xe) => {
|
|
42886
|
+
const it = new URLSearchParams(Xe);
|
|
42887
|
+
return it.delete("page"), it;
|
|
42879
42888
|
},
|
|
42880
42889
|
{ replace: !0 }
|
|
42881
42890
|
)), _t == null || _t());
|
|
42882
42891
|
}, 300);
|
|
42883
42892
|
return () => clearTimeout(Ae);
|
|
42884
42893
|
}, [
|
|
42885
|
-
|
|
42894
|
+
pt,
|
|
42886
42895
|
Be,
|
|
42887
42896
|
Hi,
|
|
42888
42897
|
$r,
|
|
@@ -42892,9 +42901,9 @@ const KT = ({
|
|
|
42892
42901
|
const pv = v.useCallback(
|
|
42893
42902
|
(Ae) => {
|
|
42894
42903
|
tr ? (tr(Ae), _t == null || _t(), pe(
|
|
42895
|
-
(
|
|
42896
|
-
const
|
|
42897
|
-
return Ae <= 1 ?
|
|
42904
|
+
(Xe) => {
|
|
42905
|
+
const it = new URLSearchParams(Xe);
|
|
42906
|
+
return Ae <= 1 ? it.delete("page") : it.set("page", String(Ae)), it;
|
|
42898
42907
|
},
|
|
42899
42908
|
{ replace: !0 }
|
|
42900
42909
|
)) : h == null || h(Ae);
|
|
@@ -42903,9 +42912,9 @@ const KT = ({
|
|
|
42903
42912
|
), gv = v.useCallback(
|
|
42904
42913
|
(Ae) => {
|
|
42905
42914
|
Pa ? (Pa(Ae), _t == null || _t(), pe(
|
|
42906
|
-
(
|
|
42907
|
-
const
|
|
42908
|
-
return
|
|
42915
|
+
(Xe) => {
|
|
42916
|
+
const it = new URLSearchParams(Xe);
|
|
42917
|
+
return it.delete("page"), it;
|
|
42909
42918
|
},
|
|
42910
42919
|
{ replace: !0 }
|
|
42911
42920
|
)) : u == null || u(Ae);
|
|
@@ -42918,12 +42927,12 @@ const KT = ({
|
|
|
42918
42927
|
[$r, k]
|
|
42919
42928
|
), tu = v.useCallback(() => {
|
|
42920
42929
|
if (I) {
|
|
42921
|
-
const Ae = ie ? (
|
|
42930
|
+
const Ae = ie ? (at == null ? void 0 : at.state) || {} : {}, Xe = G ? G({}) : U, it = ee ? ee({}) : null, Ut = I.split("/").filter(Boolean)[0], Gt = Xe || (it ? { [Ut]: it } : void 0);
|
|
42922
42931
|
ue(I, {
|
|
42923
42932
|
state: {
|
|
42924
42933
|
...Ae,
|
|
42925
|
-
...
|
|
42926
|
-
...
|
|
42934
|
+
...Gt && { customBreadcrumbPaths: Gt },
|
|
42935
|
+
...it && { parentPath: it }
|
|
42927
42936
|
}
|
|
42928
42937
|
});
|
|
42929
42938
|
} else
|
|
@@ -42936,17 +42945,17 @@ const KT = ({
|
|
|
42936
42945
|
G,
|
|
42937
42946
|
ee,
|
|
42938
42947
|
ie,
|
|
42939
|
-
|
|
42948
|
+
at == null ? void 0 : at.state
|
|
42940
42949
|
]), Ba = v.useCallback(
|
|
42941
42950
|
(Ae) => {
|
|
42942
42951
|
if (R) {
|
|
42943
|
-
const
|
|
42944
|
-
f ? window.open(li, "_blank", "noopener,noreferrer") : (
|
|
42952
|
+
const Xe = z ? z(Ae) : void 0, it = ie ? (at == null ? void 0 : at.state) || {} : {}, Ut = G ? G(Ae) : U, Gt = ee ? ee(Ae) : null, li = `${R}/${ae(Ae)}`;
|
|
42953
|
+
f ? window.open(li, "_blank", "noopener,noreferrer") : (Ke(), ue(li, {
|
|
42945
42954
|
state: {
|
|
42946
|
-
...
|
|
42947
|
-
...
|
|
42948
|
-
...
|
|
42949
|
-
...
|
|
42955
|
+
...it,
|
|
42956
|
+
...Xe && { breadcrumbName: Xe },
|
|
42957
|
+
...Ut && { customBreadcrumbPaths: Ut },
|
|
42958
|
+
...Gt && { parentPath: Gt }
|
|
42950
42959
|
}
|
|
42951
42960
|
}));
|
|
42952
42961
|
} else
|
|
@@ -42962,21 +42971,21 @@ const KT = ({
|
|
|
42962
42971
|
G,
|
|
42963
42972
|
ee,
|
|
42964
42973
|
ie,
|
|
42965
|
-
|
|
42974
|
+
at == null ? void 0 : at.state,
|
|
42966
42975
|
f
|
|
42967
42976
|
]
|
|
42968
42977
|
), nu = v.useCallback(
|
|
42969
42978
|
(Ae) => {
|
|
42970
42979
|
if (O) {
|
|
42971
|
-
const
|
|
42972
|
-
|
|
42980
|
+
const Xe = z ? z(Ae) : void 0, it = ie ? (at == null ? void 0 : at.state) || {} : {}, Ut = G ? G(Ae) : U, Gt = ee ? ee(Ae) : null, br = O.split("?")[0].split("/").filter(Boolean)[0], Ys = Ut || (Gt ? { [br]: Gt } : void 0);
|
|
42981
|
+
Ke(), ue(`${O}/${ae(Ae)}/edit`, {
|
|
42973
42982
|
state: {
|
|
42974
|
-
...
|
|
42975
|
-
...
|
|
42983
|
+
...it,
|
|
42984
|
+
...Xe && { breadcrumbName: Xe },
|
|
42976
42985
|
...Ys && {
|
|
42977
42986
|
customBreadcrumbPaths: Ys
|
|
42978
42987
|
},
|
|
42979
|
-
...
|
|
42988
|
+
...Gt && { parentPath: Gt }
|
|
42980
42989
|
}
|
|
42981
42990
|
});
|
|
42982
42991
|
} else
|
|
@@ -42992,27 +43001,27 @@ const KT = ({
|
|
|
42992
43001
|
G,
|
|
42993
43002
|
ee,
|
|
42994
43003
|
ie,
|
|
42995
|
-
|
|
43004
|
+
at == null ? void 0 : at.state
|
|
42996
43005
|
]
|
|
42997
43006
|
), bv = v.useCallback(() => {
|
|
42998
43007
|
_t ? _t() : T == null || T();
|
|
42999
43008
|
}, [_t, T]), yv = v.useCallback(
|
|
43000
43009
|
(Ae) => {
|
|
43001
|
-
|
|
43010
|
+
Ke(), ue(Ae);
|
|
43002
43011
|
},
|
|
43003
|
-
[ue,
|
|
43012
|
+
[ue, at.pathname]
|
|
43004
43013
|
), ru = v.useCallback((Ae) => {
|
|
43005
43014
|
Se(Ae), rt(!0);
|
|
43006
43015
|
}, []), wv = async () => {
|
|
43007
43016
|
var Ae;
|
|
43008
43017
|
if (me) {
|
|
43009
|
-
|
|
43018
|
+
st(!0);
|
|
43010
43019
|
try {
|
|
43011
43020
|
qs ? (await qs(ae(me)), _t == null || _t(), Te(`${B} Deleted successfully`)) : M && (await M(me), Te(`${B} Deleted successfully`)), rt(!1), Se(null);
|
|
43012
|
-
} catch (
|
|
43013
|
-
De(((Ae =
|
|
43021
|
+
} catch (Xe) {
|
|
43022
|
+
De(((Ae = Xe == null ? void 0 : Xe.data) == null ? void 0 : Ae.message) || `Failed to delete ${Fa}`), console.error("Delete error:", Xe);
|
|
43014
43023
|
} finally {
|
|
43015
|
-
|
|
43024
|
+
st(!1);
|
|
43016
43025
|
}
|
|
43017
43026
|
}
|
|
43018
43027
|
}, xv = v.useMemo(() => {
|
|
@@ -43049,14 +43058,14 @@ const KT = ({
|
|
|
43049
43058
|
V
|
|
43050
43059
|
]), za = I || y, _v = _t || T, Fa = v.useMemo(() => me ? Re ? Re(me) : me.name || me.title || J : J, [me, Re, J]), iu = () => te ? /* @__PURE__ */ Q("div", { className: "flex items-center gap-2", children: [
|
|
43051
43060
|
nt,
|
|
43052
|
-
p && b.length > 0 && $.length > 0 && /* @__PURE__ */ w(Nt, { children: $.map((Ae,
|
|
43061
|
+
p && b.length > 0 && $.length > 0 && /* @__PURE__ */ w(Nt, { children: $.map((Ae, Xe) => /* @__PURE__ */ Q(
|
|
43053
43062
|
Ue,
|
|
43054
43063
|
{
|
|
43055
43064
|
variant: Ae.variant || "outline",
|
|
43056
43065
|
size: "sm",
|
|
43057
43066
|
onClick: () => {
|
|
43058
|
-
var
|
|
43059
|
-
return (
|
|
43067
|
+
var it;
|
|
43068
|
+
return (it = Ae.onClick) == null ? void 0 : it.call(Ae, b);
|
|
43060
43069
|
},
|
|
43061
43070
|
disabled: Ae.disabled,
|
|
43062
43071
|
className: "cursor-pointer",
|
|
@@ -43065,7 +43074,7 @@ const KT = ({
|
|
|
43065
43074
|
Ae.label
|
|
43066
43075
|
]
|
|
43067
43076
|
},
|
|
43068
|
-
Ae.label ||
|
|
43077
|
+
Ae.label || Xe
|
|
43069
43078
|
)) }),
|
|
43070
43079
|
D && (v.isValidElement(D) ? D : /* @__PURE__ */ Q(
|
|
43071
43080
|
Ue,
|
|
@@ -43110,7 +43119,7 @@ const KT = ({
|
|
|
43110
43119
|
data: Ze,
|
|
43111
43120
|
columns: s,
|
|
43112
43121
|
loading: Wt,
|
|
43113
|
-
error:
|
|
43122
|
+
error: Je,
|
|
43114
43123
|
currentPage: Hi,
|
|
43115
43124
|
pageSize: Ia,
|
|
43116
43125
|
totalItems: Vi,
|
|
@@ -43122,7 +43131,7 @@ const KT = ({
|
|
|
43122
43131
|
sortDirection: g,
|
|
43123
43132
|
onSort: C,
|
|
43124
43133
|
searchable: Be,
|
|
43125
|
-
searchValue: $r ?
|
|
43134
|
+
searchValue: $r ? pt : S,
|
|
43126
43135
|
filters: qe,
|
|
43127
43136
|
onSearchChange: vv,
|
|
43128
43137
|
searchPlaceholder: d,
|
|
@@ -43173,9 +43182,9 @@ const KT = ({
|
|
|
43173
43182
|
] });
|
|
43174
43183
|
};
|
|
43175
43184
|
KT.displayName = "CrudList";
|
|
43176
|
-
var Us = (t) => t.type === "checkbox", Zr = (t) => t instanceof Date,
|
|
43185
|
+
var Us = (t) => t.type === "checkbox", Zr = (t) => t instanceof Date, tn = (t) => t == null;
|
|
43177
43186
|
const K4 = (t) => typeof t == "object";
|
|
43178
|
-
var Bt = (t) => !
|
|
43187
|
+
var Bt = (t) => !tn(t) && !Array.isArray(t) && K4(t) && !Zr(t), QT = (t) => Bt(t) && t.target ? Us(t.target) ? t.target.checked : t.target.value : t, JT = (t) => t.substring(0, t.search(/\.\d+(\.|$)/)) || t, eM = (t, n) => t.has(JT(n)), tM = (t) => {
|
|
43179
43188
|
const n = t.constructor && t.constructor.prototype;
|
|
43180
43189
|
return Bt(n) && n.hasOwnProperty("isPrototypeOf");
|
|
43181
43190
|
}, q0 = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
|
|
@@ -43197,9 +43206,9 @@ function Vt(t) {
|
|
|
43197
43206
|
var La = (t) => /^\w*$/.test(t), Dt = (t) => t === void 0, Y0 = (t) => Array.isArray(t) ? t.filter(Boolean) : [], j0 = (t) => Y0(t.replace(/["|']|\]/g, "").split(/\.|\[/)), Me = (t, n, r) => {
|
|
43198
43207
|
if (!n || !Bt(t))
|
|
43199
43208
|
return r;
|
|
43200
|
-
const i = (La(n) ? [n] : j0(n)).reduce((s, o) =>
|
|
43209
|
+
const i = (La(n) ? [n] : j0(n)).reduce((s, o) => tn(s) ? s : s[o], t);
|
|
43201
43210
|
return Dt(i) || i === t ? Dt(t[n]) ? r : t[n] : i;
|
|
43202
|
-
}, Pn = (t) => typeof t == "boolean",
|
|
43211
|
+
}, Pn = (t) => typeof t == "boolean", ft = (t, n, r) => {
|
|
43203
43212
|
let i = -1;
|
|
43204
43213
|
const s = La(n) ? [n] : j0(n), o = s.length, l = o - 1;
|
|
43205
43214
|
for (; ++i < o; ) {
|
|
@@ -43247,7 +43256,7 @@ var rM = (t, n, r, i = !0) => {
|
|
|
43247
43256
|
return s;
|
|
43248
43257
|
};
|
|
43249
43258
|
const iM = typeof window < "u" ? ve.useLayoutEffect : ve.useEffect;
|
|
43250
|
-
var
|
|
43259
|
+
var ln = (t) => typeof t == "string", sM = (t, n, r, i, s) => ln(t) ? (i && n.watch.add(t), Me(r, t, s)) : Array.isArray(t) ? t.map((o) => (i && n.watch.add(o), Me(r, o))) : (i && (n.watchAll = !0), r), lc = (t) => tn(t) || !K4(t);
|
|
43251
43260
|
function Er(t, n, r = /* @__PURE__ */ new WeakSet()) {
|
|
43252
43261
|
if (lc(t) || lc(n))
|
|
43253
43262
|
return Object.is(t, n);
|
|
@@ -43309,7 +43318,7 @@ function J4(t, n) {
|
|
|
43309
43318
|
}
|
|
43310
43319
|
return r;
|
|
43311
43320
|
}
|
|
43312
|
-
var
|
|
43321
|
+
var Xt = (t) => Bt(t) && !Object.keys(t).length, G0 = (t) => t.type === "file", Mn = (t) => typeof t == "function", Fo = (t) => {
|
|
43313
43322
|
if (!q0)
|
|
43314
43323
|
return !1;
|
|
43315
43324
|
const n = t ? t.ownerDocument : 0;
|
|
@@ -43330,7 +43339,7 @@ function lM(t) {
|
|
|
43330
43339
|
}
|
|
43331
43340
|
function Pt(t, n) {
|
|
43332
43341
|
const r = Array.isArray(n) ? n : La(n) ? [n] : j0(n), i = r.length === 1 ? t : aM(t, r), s = r.length - 1, o = r[s];
|
|
43333
|
-
return i && delete i[o], s !== 0 && (Bt(i) &&
|
|
43342
|
+
return i && delete i[o], s !== 0 && (Bt(i) && Xt(i) || Array.isArray(i) && lM(i)) && Pt(t, r.slice(0, -1)), t;
|
|
43334
43343
|
}
|
|
43335
43344
|
var cM = (t) => {
|
|
43336
43345
|
for (const n in t)
|
|
@@ -43353,7 +43362,7 @@ function gi(t, n, r) {
|
|
|
43353
43362
|
for (const i in t) {
|
|
43354
43363
|
const s = t[i];
|
|
43355
43364
|
if (tv(s))
|
|
43356
|
-
Dt(n) || lc(r[i]) ? r[i] = cc(s, Array.isArray(s) ? [] : {}) : gi(s,
|
|
43365
|
+
Dt(n) || lc(r[i]) ? r[i] = cc(s, Array.isArray(s) ? [] : {}) : gi(s, tn(n) ? {} : n[i], r[i]);
|
|
43357
43366
|
else {
|
|
43358
43367
|
const o = n[i];
|
|
43359
43368
|
r[i] = !Er(s, o);
|
|
@@ -43377,7 +43386,7 @@ var nv = (t) => {
|
|
|
43377
43386
|
) : jd;
|
|
43378
43387
|
}
|
|
43379
43388
|
return jd;
|
|
43380
|
-
}, rv = (t, { valueAsNumber: n, valueAsDate: r, setValueAs: i }) => Dt(t) ? t : n ? t === "" ? NaN : t && +t : r &&
|
|
43389
|
+
}, rv = (t, { valueAsNumber: n, valueAsDate: r, setValueAs: i }) => Dt(t) ? t : n ? t === "" ? NaN : t && +t : r && ln(t) ? new Date(t) : i ? i(t) : t;
|
|
43381
43390
|
const Zd = {
|
|
43382
43391
|
isValid: !1,
|
|
43383
43392
|
value: null
|
|
@@ -43394,7 +43403,7 @@ var uM = (t, n, r, i) => {
|
|
|
43394
43403
|
const s = {};
|
|
43395
43404
|
for (const o of t) {
|
|
43396
43405
|
const l = Me(n, o);
|
|
43397
|
-
l &&
|
|
43406
|
+
l && ft(s, o, l._f);
|
|
43398
43407
|
}
|
|
43399
43408
|
return {
|
|
43400
43409
|
criteriaMode: r,
|
|
@@ -43459,16 +43468,16 @@ function ef(t, n, r) {
|
|
|
43459
43468
|
var hM = (t, n, r, i) => {
|
|
43460
43469
|
r(t);
|
|
43461
43470
|
const { name: s, ...o } = t;
|
|
43462
|
-
return
|
|
43471
|
+
return Xt(o) || Object.keys(o).length >= Object.keys(n).length || Object.keys(o).find((l) => n[l] === (!i || Tn.all));
|
|
43463
43472
|
}, mM = (t, n, r) => !t || !n || t === n || rs(t).some((i) => i && (r ? i === n : i.startsWith(n) || n.startsWith(i))), pM = (t, n, r, i, s) => s.isOnAll ? !1 : !r && s.isOnTouch ? !(n || t) : (r ? i.isOnBlur : s.isOnBlur) ? !t : (r ? i.isOnChange : s.isOnChange) ? t : !0, gM = (t, n) => !Y0(Me(t, n)).length && Pt(t, n), vM = (t, n, r) => {
|
|
43464
43473
|
const i = rs(Me(t, r));
|
|
43465
|
-
return
|
|
43474
|
+
return ft(i, "root", n[r]), ft(t, r, i), t;
|
|
43466
43475
|
};
|
|
43467
43476
|
function tf(t, n, r = "validate") {
|
|
43468
|
-
if (
|
|
43477
|
+
if (ln(t) || Array.isArray(t) && t.every(ln) || Pn(t) && !t)
|
|
43469
43478
|
return {
|
|
43470
43479
|
type: r,
|
|
43471
|
-
message:
|
|
43480
|
+
message: ln(t) ? t : "",
|
|
43472
43481
|
ref: n
|
|
43473
43482
|
};
|
|
43474
43483
|
}
|
|
@@ -43490,8 +43499,8 @@ var pi = (t) => Bt(t) && !Ho(t) ? t : {
|
|
|
43490
43499
|
...D(R ? U : G, q)
|
|
43491
43500
|
};
|
|
43492
43501
|
};
|
|
43493
|
-
if (o ? !Array.isArray(p) || !p.length : a && (!M && (T ||
|
|
43494
|
-
const { value: R, message: O } =
|
|
43502
|
+
if (o ? !Array.isArray(p) || !p.length : a && (!M && (T || tn(p)) || Pn(p) && !p || E && !nv(c).isValid || _ && !iv(c).isValid)) {
|
|
43503
|
+
const { value: R, message: O } = ln(a) ? { value: !!a, message: a } : pi(a);
|
|
43495
43504
|
if (R && (y[k] = {
|
|
43496
43505
|
type: ir.required,
|
|
43497
43506
|
message: O,
|
|
@@ -43500,25 +43509,25 @@ var pi = (t) => Bt(t) && !Ho(t) ? t : {
|
|
|
43500
43509
|
}, !i))
|
|
43501
43510
|
return x(O), y;
|
|
43502
43511
|
}
|
|
43503
|
-
if (!T && (!
|
|
43512
|
+
if (!T && (!tn(m) || !tn(g))) {
|
|
43504
43513
|
let R, O;
|
|
43505
43514
|
const z = pi(g), U = pi(m);
|
|
43506
|
-
if (!
|
|
43515
|
+
if (!tn(p) && !isNaN(p)) {
|
|
43507
43516
|
const G = l.valueAsNumber || p && +p;
|
|
43508
|
-
|
|
43517
|
+
tn(z.value) || (R = G > z.value), tn(U.value) || (O = G < U.value);
|
|
43509
43518
|
} else {
|
|
43510
43519
|
const G = l.valueAsDate || new Date(p), q = (F) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + F), $ = l.type == "time", B = l.type == "week";
|
|
43511
|
-
|
|
43520
|
+
ln(z.value) && p && (R = $ ? q(p) > q(z.value) : B ? p > z.value : G > new Date(z.value)), ln(U.value) && p && (O = $ ? q(p) < q(U.value) : B ? p < U.value : G < new Date(U.value));
|
|
43512
43521
|
}
|
|
43513
43522
|
if ((R || O) && (I(!!R, z.message, U.message, ir.max, ir.min), !i))
|
|
43514
43523
|
return x(y[k].message), y;
|
|
43515
43524
|
}
|
|
43516
|
-
if ((h || u) && !T && (
|
|
43517
|
-
const R = pi(h), O = pi(u), z = !
|
|
43525
|
+
if ((h || u) && !T && (ln(p) || o && Array.isArray(p))) {
|
|
43526
|
+
const R = pi(h), O = pi(u), z = !tn(R.value) && p.length > +R.value, U = !tn(O.value) && p.length < +O.value;
|
|
43518
43527
|
if ((z || U) && (I(z, R.message, O.message), !i))
|
|
43519
43528
|
return x(y[k].message), y;
|
|
43520
43529
|
}
|
|
43521
|
-
if (C && !T &&
|
|
43530
|
+
if (C && !T && ln(p)) {
|
|
43522
43531
|
const { value: R, message: O } = pi(C);
|
|
43523
43532
|
if (Ho(R) && !p.match(R) && (y[k] = {
|
|
43524
43533
|
type: ir.pattern,
|
|
@@ -43539,7 +43548,7 @@ var pi = (t) => Bt(t) && !Ho(t) ? t : {
|
|
|
43539
43548
|
} else if (Bt(S)) {
|
|
43540
43549
|
let R = {};
|
|
43541
43550
|
for (const O in S) {
|
|
43542
|
-
if (!
|
|
43551
|
+
if (!Xt(R) && !i)
|
|
43543
43552
|
break;
|
|
43544
43553
|
const z = tf(await S[O](p, r), b, O);
|
|
43545
43554
|
z && (R = {
|
|
@@ -43547,7 +43556,7 @@ var pi = (t) => Bt(t) && !Ho(t) ? t : {
|
|
|
43547
43556
|
...D(O, z.message)
|
|
43548
43557
|
}, x(z.message), i && (y[k] = R));
|
|
43549
43558
|
}
|
|
43550
|
-
if (!
|
|
43559
|
+
if (!Xt(R) && (y[k] = {
|
|
43551
43560
|
ref: b,
|
|
43552
43561
|
...R
|
|
43553
43562
|
}, !i))
|
|
@@ -43610,31 +43619,31 @@ function yM(t = {}) {
|
|
|
43610
43619
|
clearTimeout(h), h = setTimeout(V, ee);
|
|
43611
43620
|
}, k = async (V) => {
|
|
43612
43621
|
if (!n.disabled && (u.isValid || m.isValid || V)) {
|
|
43613
|
-
const ee = n.resolver ?
|
|
43622
|
+
const ee = n.resolver ? Xt((await E()).errors) : await T(i, !0);
|
|
43614
43623
|
ee !== r.isValid && g.state.next({
|
|
43615
43624
|
isValid: ee
|
|
43616
43625
|
});
|
|
43617
43626
|
}
|
|
43618
43627
|
}, d = (V, ee) => {
|
|
43619
43628
|
!n.disabled && (u.isValidating || u.validatingFields || m.isValidating || m.validatingFields) && ((V || Array.from(c.mount)).forEach((ie) => {
|
|
43620
|
-
ie && (ee ?
|
|
43629
|
+
ie && (ee ? ft(r.validatingFields, ie, ee) : Pt(r.validatingFields, ie));
|
|
43621
43630
|
}), g.state.next({
|
|
43622
43631
|
validatingFields: r.validatingFields,
|
|
43623
|
-
isValidating: !
|
|
43632
|
+
isValidating: !Xt(r.validatingFields)
|
|
43624
43633
|
}));
|
|
43625
43634
|
}, f = (V, ee = [], ie, he, ue = !0, se = !0) => {
|
|
43626
43635
|
if (he && ie && !n.disabled) {
|
|
43627
43636
|
if (l.action = !0, se && Array.isArray(Me(i, V))) {
|
|
43628
43637
|
const pe = ie(Me(i, V), he.argA, he.argB);
|
|
43629
|
-
ue &&
|
|
43638
|
+
ue && ft(i, V, pe);
|
|
43630
43639
|
}
|
|
43631
43640
|
if (se && Array.isArray(Me(r.errors, V))) {
|
|
43632
43641
|
const pe = ie(Me(r.errors, V), he.argA, he.argB);
|
|
43633
|
-
ue &&
|
|
43642
|
+
ue && ft(r.errors, V, pe), gM(r.errors, V);
|
|
43634
43643
|
}
|
|
43635
43644
|
if ((u.touchedFields || m.touchedFields) && se && Array.isArray(Me(r.touchedFields, V))) {
|
|
43636
43645
|
const pe = ie(Me(r.touchedFields, V), he.argA, he.argB);
|
|
43637
|
-
ue &&
|
|
43646
|
+
ue && ft(r.touchedFields, V, pe);
|
|
43638
43647
|
}
|
|
43639
43648
|
(u.dirtyFields || m.dirtyFields) && (r.dirtyFields = gi(s, o)), g.state.next({
|
|
43640
43649
|
name: V,
|
|
@@ -43644,9 +43653,9 @@ function yM(t = {}) {
|
|
|
43644
43653
|
isValid: r.isValid
|
|
43645
43654
|
});
|
|
43646
43655
|
} else
|
|
43647
|
-
|
|
43656
|
+
ft(o, V, ee);
|
|
43648
43657
|
}, p = (V, ee) => {
|
|
43649
|
-
|
|
43658
|
+
ft(r.errors, V, ee), g.state.next({
|
|
43650
43659
|
errors: r.errors
|
|
43651
43660
|
});
|
|
43652
43661
|
}, b = (V) => {
|
|
@@ -43658,7 +43667,7 @@ function yM(t = {}) {
|
|
|
43658
43667
|
const ue = Me(i, V);
|
|
43659
43668
|
if (ue) {
|
|
43660
43669
|
const se = Me(o, V, Dt(ie) ? Me(s, V) : ie);
|
|
43661
|
-
Dt(se) || he && he.defaultChecked || ee ?
|
|
43670
|
+
Dt(se) || he && he.defaultChecked || ee ? ft(o, V, ee ? se : Xd(ue._f)) : z(V, se), l.mount && !l.action && k();
|
|
43662
43671
|
}
|
|
43663
43672
|
}, y = (V, ee, ie, he, ue) => {
|
|
43664
43673
|
let se = !1, pe = !1;
|
|
@@ -43669,18 +43678,18 @@ function yM(t = {}) {
|
|
|
43669
43678
|
if (!ie || he) {
|
|
43670
43679
|
(u.isDirty || m.isDirty) && (pe = r.isDirty, r.isDirty = Te.isDirty = I(), se = pe !== Te.isDirty);
|
|
43671
43680
|
const De = Er(Me(s, V), ee);
|
|
43672
|
-
pe = !!Me(r.dirtyFields, V), De ? Pt(r.dirtyFields, V) :
|
|
43681
|
+
pe = !!Me(r.dirtyFields, V), De ? Pt(r.dirtyFields, V) : ft(r.dirtyFields, V, !0), Te.dirtyFields = r.dirtyFields, se = se || (u.dirtyFields || m.dirtyFields) && pe !== !De;
|
|
43673
43682
|
}
|
|
43674
43683
|
if (ie) {
|
|
43675
43684
|
const De = Me(r.touchedFields, V);
|
|
43676
|
-
De || (
|
|
43685
|
+
De || (ft(r.touchedFields, V, ie), Te.touchedFields = r.touchedFields, se = se || (u.touchedFields || m.touchedFields) && De !== ie);
|
|
43677
43686
|
}
|
|
43678
43687
|
se && ue && g.state.next(Te);
|
|
43679
43688
|
}
|
|
43680
43689
|
return se ? Te : {};
|
|
43681
43690
|
}, _ = (V, ee, ie, he) => {
|
|
43682
43691
|
const ue = Me(r.errors, V), se = (u.isValid || m.isValid) && Pn(ee) && r.isValid !== ee;
|
|
43683
|
-
if (n.delayError && ie ? (a = S(() => p(V, ie)), a(n.delayError)) : (clearTimeout(h), a = null, ie ?
|
|
43692
|
+
if (n.delayError && ie ? (a = S(() => p(V, ie)), a(n.delayError)) : (clearTimeout(h), a = null, ie ? ft(r.errors, V, ie) : Pt(r.errors, V)), (ie ? !Er(ue, ie) : ue) || !Xt(he) || se) {
|
|
43684
43693
|
const pe = {
|
|
43685
43694
|
...he,
|
|
43686
43695
|
...se && Pn(ee) ? { isValid: ee } : {},
|
|
@@ -43701,7 +43710,7 @@ function yM(t = {}) {
|
|
|
43701
43710
|
if (V)
|
|
43702
43711
|
for (const ie of V) {
|
|
43703
43712
|
const he = Me(ee, ie);
|
|
43704
|
-
he ?
|
|
43713
|
+
he ? ft(r.errors, ie, he) : Pt(r.errors, ie);
|
|
43705
43714
|
}
|
|
43706
43715
|
else
|
|
43707
43716
|
r.errors = ee;
|
|
@@ -43719,9 +43728,9 @@ function yM(t = {}) {
|
|
|
43719
43728
|
const $e = await nf(ue, c.disabled, o, C, n.shouldUseNativeValidation && !ee, Te);
|
|
43720
43729
|
if (De && u.validatingFields && d([se.name]), $e[se.name] && (ie.valid = !1, ee))
|
|
43721
43730
|
break;
|
|
43722
|
-
!ee && (Me($e, se.name) ? Te ? vM(r.errors, $e, se.name) :
|
|
43731
|
+
!ee && (Me($e, se.name) ? Te ? vM(r.errors, $e, se.name) : ft(r.errors, se.name, $e[se.name]) : Pt(r.errors, se.name));
|
|
43723
43732
|
}
|
|
43724
|
-
!
|
|
43733
|
+
!Xt(pe) && await T(pe, ee, ie);
|
|
43725
43734
|
}
|
|
43726
43735
|
}
|
|
43727
43736
|
return ie.valid;
|
|
@@ -43731,14 +43740,14 @@ function yM(t = {}) {
|
|
|
43731
43740
|
ee && (ee._f.refs ? ee._f.refs.every((ie) => !Cl(ie)) : !Cl(ee._f.ref)) && J(V);
|
|
43732
43741
|
}
|
|
43733
43742
|
c.unMount = /* @__PURE__ */ new Set();
|
|
43734
|
-
}, I = (V, ee) => !n.disabled && (V && ee &&
|
|
43735
|
-
...l.mount ? o : Dt(ee) ? s :
|
|
43743
|
+
}, I = (V, ee) => !n.disabled && (V && ee && ft(o, V, ee), !Er(F(), s)), R = (V, ee, ie) => sM(V, c, {
|
|
43744
|
+
...l.mount ? o : Dt(ee) ? s : ln(V) ? { [V]: ee } : ee
|
|
43736
43745
|
}, ie, ee), O = (V) => Y0(Me(l.mount ? o : s, V, n.shouldUnregister ? Me(s, V, []) : [])), z = (V, ee, ie = {}) => {
|
|
43737
43746
|
const he = Me(i, V);
|
|
43738
43747
|
let ue = ee;
|
|
43739
43748
|
if (he) {
|
|
43740
43749
|
const se = he._f;
|
|
43741
|
-
se && (!se.disabled &&
|
|
43750
|
+
se && (!se.disabled && ft(o, V, rv(ee, se)), ue = Fo(se.ref) && tn(ee) ? "" : ee, ev(se.ref) ? [...se.ref.options].forEach((pe) => pe.selected = ue.includes(pe.value)) : se.refs ? Us(se.ref) ? se.refs.forEach((pe) => {
|
|
43742
43751
|
(!pe.defaultChecked || !pe.disabled) && (Array.isArray(ue) ? pe.checked = !!ue.find((Te) => Te === pe.value) : pe.checked = ue === pe.value || !!ue);
|
|
43743
43752
|
}) : se.refs.forEach((pe) => pe.checked = pe.value === ue) : G0(se.ref) ? se.ref.value = "" : (se.ref.value = ue, se.ref.type || g.state.next({
|
|
43744
43753
|
name: V,
|
|
@@ -43755,14 +43764,14 @@ function yM(t = {}) {
|
|
|
43755
43764
|
}
|
|
43756
43765
|
}, G = (V, ee, ie = {}) => {
|
|
43757
43766
|
const he = Me(i, V), ue = c.array.has(V), se = Vt(ee);
|
|
43758
|
-
|
|
43767
|
+
ft(o, V, se), ue ? (g.array.next({
|
|
43759
43768
|
name: V,
|
|
43760
43769
|
values: Vt(o)
|
|
43761
43770
|
}), (u.isDirty || u.dirtyFields || m.isDirty || m.dirtyFields) && ie.shouldDirty && g.state.next({
|
|
43762
43771
|
name: V,
|
|
43763
43772
|
dirtyFields: gi(s, o),
|
|
43764
43773
|
isDirty: I(V, se)
|
|
43765
|
-
})) : he && !he._f && !
|
|
43774
|
+
})) : he && !he._f && !tn(se) ? U(V, se, ie) : z(V, se, ie), Jd(V, c) && g.state.next({ ...r, name: V }), g.state.next({
|
|
43766
43775
|
name: l.mount ? V : void 0,
|
|
43767
43776
|
values: Vt(o)
|
|
43768
43777
|
});
|
|
@@ -43776,23 +43785,23 @@ function yM(t = {}) {
|
|
|
43776
43785
|
if (ue) {
|
|
43777
43786
|
let De, $e;
|
|
43778
43787
|
const rt = ee.type ? Xd(ue._f) : QT(V), me = V.type === qd.BLUR || V.type === qd.FOCUS_OUT, Se = !fM(ue._f) && !n.resolver && !Me(r.errors, ie) && !ue._f.deps || pM(me, Me(r.touchedFields, ie), r.isSubmitted, Te, pe), Ge = Jd(ie, c, me);
|
|
43779
|
-
|
|
43780
|
-
const
|
|
43788
|
+
ft(o, ie, rt), me ? (!ee || !ee.readOnly) && (ue._f.onBlur && ue._f.onBlur(V), a && a(0)) : ue._f.onChange && ue._f.onChange(V);
|
|
43789
|
+
const st = y(ie, rt, me), pt = !Xt(st) || Ge;
|
|
43781
43790
|
if (!me && g.state.next({
|
|
43782
43791
|
name: ie,
|
|
43783
43792
|
type: V.type,
|
|
43784
43793
|
values: Vt(o)
|
|
43785
43794
|
}), Se)
|
|
43786
|
-
return (u.isValid || m.isValid) && (n.mode === "onBlur" ? me && k() : me || k()),
|
|
43795
|
+
return (u.isValid || m.isValid) && (n.mode === "onBlur" ? me && k() : me || k()), pt && g.state.next({ name: ie, ...Ge ? {} : st });
|
|
43787
43796
|
if (!me && Ge && g.state.next({ ...r }), n.resolver) {
|
|
43788
43797
|
const { errors: et } = await E([ie]);
|
|
43789
43798
|
if (se(rt), he) {
|
|
43790
|
-
const bt = ef(r.errors, i, ie),
|
|
43791
|
-
De =
|
|
43799
|
+
const bt = ef(r.errors, i, ie), gt = ef(et, i, bt.name || ie);
|
|
43800
|
+
De = gt.error, ie = gt.name, $e = Xt(et);
|
|
43792
43801
|
}
|
|
43793
43802
|
} else
|
|
43794
43803
|
d([ie], !0), De = (await nf(ue, c.disabled, o, C, n.shouldUseNativeValidation))[ie], d([ie]), se(rt), he && (De ? $e = !1 : (u.isValid || m.isValid) && ($e = await T(i, !0)));
|
|
43795
|
-
he && (ue._f.deps && (!Array.isArray(ue._f.deps) || ue._f.deps.length > 0) && B(ue._f.deps), _(ie, $e, De,
|
|
43804
|
+
he && (ue._f.deps && (!Array.isArray(ue._f.deps) || ue._f.deps.length > 0) && B(ue._f.deps), _(ie, $e, De, st));
|
|
43796
43805
|
}
|
|
43797
43806
|
}, $ = (V, ee) => {
|
|
43798
43807
|
if (Me(r.errors, ee) && V.focus)
|
|
@@ -43802,13 +43811,13 @@ function yM(t = {}) {
|
|
|
43802
43811
|
const ue = rs(V);
|
|
43803
43812
|
if (n.resolver) {
|
|
43804
43813
|
const se = await M(Dt(V) ? V : ue);
|
|
43805
|
-
ie =
|
|
43814
|
+
ie = Xt(se), he = V ? !ue.some((pe) => Me(se, pe)) : ie;
|
|
43806
43815
|
} else V ? (he = (await Promise.all(ue.map(async (se) => {
|
|
43807
43816
|
const pe = Me(i, se);
|
|
43808
43817
|
return await T(pe && pe._f ? { [se]: pe } : pe);
|
|
43809
43818
|
}))).every(Boolean), !(!he && !r.isValid) && k()) : he = ie = await T(i);
|
|
43810
43819
|
return g.state.next({
|
|
43811
|
-
...!
|
|
43820
|
+
...!ln(V) || (u.isValid || m.isValid) && ie !== r.isValid ? {} : { name: V },
|
|
43812
43821
|
...n.resolver || !V ? { isValid: ie } : {},
|
|
43813
43822
|
errors: r.errors
|
|
43814
43823
|
}), ee.shouldFocus && !he && is(i, $, V ? ue : c.mount), he;
|
|
@@ -43816,7 +43825,7 @@ function yM(t = {}) {
|
|
|
43816
43825
|
let ie = {
|
|
43817
43826
|
...l.mount ? o : s
|
|
43818
43827
|
};
|
|
43819
|
-
return ee && (ie = J4(ee.dirtyFields ? r.dirtyFields : r.touchedFields, ie)), Dt(V) ? ie :
|
|
43828
|
+
return ee && (ie = J4(ee.dirtyFields ? r.dirtyFields : r.touchedFields, ie)), Dt(V) ? ie : ln(V) ? Me(ie, V) : V.map((he) => Me(ie, he));
|
|
43820
43829
|
}, K = (V, ee) => ({
|
|
43821
43830
|
invalid: !!Me((ee || r).errors, V),
|
|
43822
43831
|
isDirty: !!Me((ee || r).dirtyFields, V),
|
|
@@ -43829,7 +43838,7 @@ function yM(t = {}) {
|
|
|
43829
43838
|
});
|
|
43830
43839
|
}, Y = (V, ee, ie) => {
|
|
43831
43840
|
const he = (Me(i, V, { _f: {} })._f || {}).ref, ue = Me(r.errors, V) || {}, { ref: se, message: pe, type: Te, ...De } = ue;
|
|
43832
|
-
|
|
43841
|
+
ft(r.errors, V, {
|
|
43833
43842
|
...De,
|
|
43834
43843
|
...ee,
|
|
43835
43844
|
ref: he
|
|
@@ -43869,7 +43878,7 @@ function yM(t = {}) {
|
|
|
43869
43878
|
}, ce = (V, ee = {}) => {
|
|
43870
43879
|
let ie = Me(i, V);
|
|
43871
43880
|
const he = Pn(ee.disabled) || Pn(n.disabled);
|
|
43872
|
-
return
|
|
43881
|
+
return ft(i, V, {
|
|
43873
43882
|
...ie || {},
|
|
43874
43883
|
_f: {
|
|
43875
43884
|
...ie && ie._f ? ie._f : { ref: { name: V } },
|
|
@@ -43899,7 +43908,7 @@ function yM(t = {}) {
|
|
|
43899
43908
|
const se = Dt(ue.value) && ue.querySelectorAll && ue.querySelectorAll("input,select,textarea")[0] || ue, pe = oM(se), Te = ie._f.refs || [];
|
|
43900
43909
|
if (pe ? Te.find((De) => De === se) : se === ie._f.ref)
|
|
43901
43910
|
return;
|
|
43902
|
-
|
|
43911
|
+
ft(i, V, {
|
|
43903
43912
|
_f: {
|
|
43904
43913
|
...ie._f,
|
|
43905
43914
|
...pe ? {
|
|
@@ -43937,7 +43946,7 @@ function yM(t = {}) {
|
|
|
43937
43946
|
if (c.disabled.size)
|
|
43938
43947
|
for (const se of c.disabled)
|
|
43939
43948
|
Pt(ue, se);
|
|
43940
|
-
if (Pt(r.errors, "root"),
|
|
43949
|
+
if (Pt(r.errors, "root"), Xt(r.errors)) {
|
|
43941
43950
|
g.state.next({
|
|
43942
43951
|
errors: {}
|
|
43943
43952
|
});
|
|
@@ -43951,15 +43960,15 @@ function yM(t = {}) {
|
|
|
43951
43960
|
if (g.state.next({
|
|
43952
43961
|
isSubmitted: !0,
|
|
43953
43962
|
isSubmitting: !1,
|
|
43954
|
-
isSubmitSuccessful:
|
|
43963
|
+
isSubmitSuccessful: Xt(r.errors) && !he,
|
|
43955
43964
|
submitCount: r.submitCount + 1,
|
|
43956
43965
|
errors: r.errors
|
|
43957
43966
|
}), he)
|
|
43958
43967
|
throw he;
|
|
43959
43968
|
}, Ne = (V, ee = {}) => {
|
|
43960
|
-
Me(i, V) && (Dt(ee.defaultValue) ? G(V, Vt(Me(s, V))) : (G(V, ee.defaultValue),
|
|
43969
|
+
Me(i, V) && (Dt(ee.defaultValue) ? G(V, Vt(Me(s, V))) : (G(V, ee.defaultValue), ft(s, V, Vt(ee.defaultValue))), ee.keepTouched || Pt(r.touchedFields, V), ee.keepDirty || (Pt(r.dirtyFields, V), r.isDirty = ee.defaultValue ? I(V, Vt(Me(s, V))) : I()), ee.keepError || (Pt(r.errors, V), u.isValid && k()), g.state.next({ ...r }));
|
|
43961
43970
|
}, _e = (V, ee = {}) => {
|
|
43962
|
-
const ie = V ? Vt(V) : s, he = Vt(ie), ue =
|
|
43971
|
+
const ie = V ? Vt(V) : s, he = Vt(ie), ue = Xt(V), se = ue ? s : he;
|
|
43963
43972
|
if (ee.keepDefaultValues || (s = ie), !ee.keepValues) {
|
|
43964
43973
|
if (ee.keepDirtyValues) {
|
|
43965
43974
|
const pe = /* @__PURE__ */ new Set([
|
|
@@ -43967,7 +43976,7 @@ function yM(t = {}) {
|
|
|
43967
43976
|
...Object.keys(gi(s, o))
|
|
43968
43977
|
]);
|
|
43969
43978
|
for (const Te of Array.from(pe))
|
|
43970
|
-
Me(r.dirtyFields, Te) ?
|
|
43979
|
+
Me(r.dirtyFields, Te) ? ft(se, Te, Me(o, Te)) : G(Te, Me(se, Te));
|
|
43971
43980
|
} else {
|
|
43972
43981
|
if (q0 && Dt(V))
|
|
43973
43982
|
for (const pe of c.mount) {
|
|
@@ -44003,7 +44012,7 @@ function yM(t = {}) {
|
|
|
44003
44012
|
watch: /* @__PURE__ */ new Set(),
|
|
44004
44013
|
watchAll: !1,
|
|
44005
44014
|
focus: ""
|
|
44006
|
-
}, l.mount = !u.isValid || !!ee.keepIsValid || !!ee.keepDirtyValues || !n.shouldUnregister && !
|
|
44015
|
+
}, l.mount = !u.isValid || !!ee.keepIsValid || !!ee.keepDirtyValues || !n.shouldUnregister && !Xt(se), l.watch = !!n.shouldUnregister, l.action = !1, ee.keepErrors || (r.errors = {}), g.state.next({
|
|
44007
44016
|
submitCount: ee.keepSubmitCount ? r.submitCount : 0,
|
|
44008
44017
|
isDirty: ue ? !1 : ee.keepDirty ? r.isDirty : !!(ee.keepDefaultValues && !Er(V, s)),
|
|
44009
44018
|
isSubmitted: ee.keepIsSubmitted ? r.isSubmitted : !1,
|
|
@@ -44190,8 +44199,8 @@ const rf = (t, n, r) => {
|
|
|
44190
44199
|
const s = Me(n.fields, i), o = Object.assign(t[i] || {}, { ref: s && s.ref });
|
|
44191
44200
|
if (_M(n.names || Object.keys(t), i)) {
|
|
44192
44201
|
const l = Object.assign({}, Me(r, i));
|
|
44193
|
-
|
|
44194
|
-
} else
|
|
44202
|
+
ft(l, "root", o), ft(r, i, l);
|
|
44203
|
+
} else ft(r, i, o);
|
|
44195
44204
|
}
|
|
44196
44205
|
return r;
|
|
44197
44206
|
}, _M = (t, n) => t.some((r) => r.startsWith(n + "."));
|
|
@@ -44238,12 +44247,12 @@ var CM = function(t, n) {
|
|
|
44238
44247
|
};
|
|
44239
44248
|
const ov = Vo();
|
|
44240
44249
|
function kM({ children: t }) {
|
|
44241
|
-
const [n, r] = bn({}), i =
|
|
44250
|
+
const [n, r] = bn({}), i = ht((l, c) => {
|
|
44242
44251
|
r((a) => ({ ...a, [l]: c }));
|
|
44243
|
-
}, []), s =
|
|
44252
|
+
}, []), s = ht(
|
|
44244
44253
|
(l) => n[l],
|
|
44245
44254
|
[n]
|
|
44246
|
-
), o =
|
|
44255
|
+
), o = ht((l) => {
|
|
44247
44256
|
r((c) => {
|
|
44248
44257
|
const a = { ...c };
|
|
44249
44258
|
return delete a[l], a;
|
|
@@ -44347,12 +44356,12 @@ const av = (t) => {
|
|
|
44347
44356
|
}, [c, E, R, le]), ge = v.useCallback(() => {
|
|
44348
44357
|
le && le(), l ? l() : de();
|
|
44349
44358
|
}, [l, de, le]), Ne = async (se) => {
|
|
44350
|
-
var $e, rt, me, Se, Ge,
|
|
44359
|
+
var $e, rt, me, Se, Ge, st, pt;
|
|
44351
44360
|
($e = se == null ? void 0 : se.preventDefault) == null || $e.call(se);
|
|
44352
44361
|
const pe = (F == null ? void 0 : F.values) || {}, Te = av(s), De = {};
|
|
44353
44362
|
if (Te.forEach(({ name: et, label: bt }) => {
|
|
44354
|
-
const
|
|
44355
|
-
(
|
|
44363
|
+
const gt = pe[et];
|
|
44364
|
+
(gt == null || gt === "" || Array.isArray(gt) && gt.length === 0 || typeof gt == "object" && !Array.isArray(gt) && gt !== null && Object.keys(gt).length === 0) && (De[et] = `${bt} is required`);
|
|
44356
44365
|
}), Object.keys(De).length > 0) {
|
|
44357
44366
|
B == null || B.setFormErrors(De);
|
|
44358
44367
|
return;
|
|
@@ -44367,8 +44376,8 @@ const av = (t) => {
|
|
|
44367
44376
|
z(`${C || "Item"} created successfully`), le && le(), h && bt ? h(bt, R) : de();
|
|
44368
44377
|
}
|
|
44369
44378
|
} catch (et) {
|
|
44370
|
-
const bt = ((me = (rt = et == null ? void 0 : et.data) == null ? void 0 : rt.error) == null ? void 0 : me.details) || ((Se = et == null ? void 0 : et.error) == null ? void 0 : Se.details),
|
|
44371
|
-
bt && Object.keys(bt).length > 0 ? U(null, { details: bt }) : U(
|
|
44379
|
+
const bt = ((me = (rt = et == null ? void 0 : et.data) == null ? void 0 : rt.error) == null ? void 0 : me.details) || ((Se = et == null ? void 0 : et.error) == null ? void 0 : Se.details), gt = ((st = (Ge = et == null ? void 0 : et.data) == null ? void 0 : Ge.error) == null ? void 0 : st.message) || ((pt = et == null ? void 0 : et.data) == null ? void 0 : pt.message) || (et == null ? void 0 : et.message) || "Something went wrong";
|
|
44380
|
+
bt && Object.keys(bt).length > 0 ? U(null, { details: bt }) : U(gt);
|
|
44372
44381
|
}
|
|
44373
44382
|
};
|
|
44374
44383
|
if (t && s) {
|
|
@@ -44455,11 +44464,11 @@ const av = (t) => {
|
|
|
44455
44464
|
try {
|
|
44456
44465
|
await (o == null ? void 0 : o(se));
|
|
44457
44466
|
} catch (Se) {
|
|
44458
|
-
const Ge = ((Te = (pe = Se == null ? void 0 : Se.data) == null ? void 0 : pe.error) == null ? void 0 : Te.details) || ((De = Se == null ? void 0 : Se.error) == null ? void 0 : De.details),
|
|
44459
|
-
Ge && Object.keys(Ge).length > 0 ? U(null, { details: Ge }) : U(
|
|
44467
|
+
const Ge = ((Te = (pe = Se == null ? void 0 : Se.data) == null ? void 0 : pe.error) == null ? void 0 : Te.details) || ((De = Se == null ? void 0 : Se.error) == null ? void 0 : De.details), st = ((rt = ($e = Se == null ? void 0 : Se.data) == null ? void 0 : $e.error) == null ? void 0 : rt.message) || ((me = Se == null ? void 0 : Se.data) == null ? void 0 : me.message) || (Se == null ? void 0 : Se.message) || "Something went wrong";
|
|
44468
|
+
Ge && Object.keys(Ge).length > 0 ? U(null, { details: Ge }) : U(st);
|
|
44460
44469
|
}
|
|
44461
44470
|
}, ee = (se) => {
|
|
44462
|
-
var
|
|
44471
|
+
var at;
|
|
44463
44472
|
const {
|
|
44464
44473
|
name: pe,
|
|
44465
44474
|
type: Te = "text",
|
|
@@ -44469,16 +44478,16 @@ const av = (t) => {
|
|
|
44469
44478
|
required: me,
|
|
44470
44479
|
disabled: Se,
|
|
44471
44480
|
options: Ge = [],
|
|
44472
|
-
className:
|
|
44473
|
-
...
|
|
44474
|
-
} = se, et = (
|
|
44481
|
+
className: st,
|
|
44482
|
+
...pt
|
|
44483
|
+
} = se, et = (at = qe[pe]) == null ? void 0 : at.message, bt = Be(pe), gt = {
|
|
44475
44484
|
label: De,
|
|
44476
44485
|
placeholder: $e,
|
|
44477
44486
|
description: rt,
|
|
44478
44487
|
error: et,
|
|
44479
44488
|
required: me,
|
|
44480
44489
|
disabled: Se || J || ae,
|
|
44481
|
-
className:
|
|
44490
|
+
className: st
|
|
44482
44491
|
};
|
|
44483
44492
|
switch (Te) {
|
|
44484
44493
|
case "text":
|
|
@@ -44490,59 +44499,59 @@ const av = (t) => {
|
|
|
44490
44499
|
return /* @__PURE__ */ w(
|
|
44491
44500
|
ac,
|
|
44492
44501
|
{
|
|
44493
|
-
...
|
|
44502
|
+
...gt,
|
|
44494
44503
|
type: Te,
|
|
44495
44504
|
emitValue: !1,
|
|
44496
44505
|
..._e.register(pe),
|
|
44497
|
-
...
|
|
44506
|
+
...pt
|
|
44498
44507
|
}
|
|
44499
44508
|
);
|
|
44500
44509
|
case "textarea":
|
|
44501
44510
|
return /* @__PURE__ */ w(
|
|
44502
44511
|
U4,
|
|
44503
44512
|
{
|
|
44504
|
-
...
|
|
44513
|
+
...gt,
|
|
44505
44514
|
emitValue: !1,
|
|
44506
44515
|
..._e.register(pe),
|
|
44507
|
-
...
|
|
44516
|
+
...pt
|
|
44508
44517
|
}
|
|
44509
44518
|
);
|
|
44510
44519
|
case "select":
|
|
44511
44520
|
return /* @__PURE__ */ w(
|
|
44512
44521
|
q4,
|
|
44513
44522
|
{
|
|
44514
|
-
...
|
|
44523
|
+
...gt,
|
|
44515
44524
|
options: Ge,
|
|
44516
44525
|
value: bt,
|
|
44517
44526
|
onChange: (Ze) => ze(pe, Ze, { shouldValidate: !0 }),
|
|
44518
|
-
...
|
|
44527
|
+
...pt
|
|
44519
44528
|
}
|
|
44520
44529
|
);
|
|
44521
44530
|
case "search-select":
|
|
44522
44531
|
return /* @__PURE__ */ w(
|
|
44523
44532
|
FT,
|
|
44524
44533
|
{
|
|
44525
|
-
...
|
|
44534
|
+
...gt,
|
|
44526
44535
|
options: Ge,
|
|
44527
44536
|
value: bt,
|
|
44528
44537
|
onChange: (Ze) => ze(pe, Ze, { shouldValidate: !0 }),
|
|
44529
|
-
...
|
|
44538
|
+
...pt
|
|
44530
44539
|
}
|
|
44531
44540
|
);
|
|
44532
44541
|
case "switch":
|
|
44533
44542
|
return /* @__PURE__ */ w(
|
|
44534
44543
|
Y4,
|
|
44535
44544
|
{
|
|
44536
|
-
...
|
|
44545
|
+
...gt,
|
|
44537
44546
|
checked: bt,
|
|
44538
44547
|
onCheckedChange: (Ze) => ze(pe, Ze, { shouldValidate: !0 }),
|
|
44539
|
-
...
|
|
44548
|
+
...pt
|
|
44540
44549
|
}
|
|
44541
44550
|
);
|
|
44542
44551
|
case "section":
|
|
44543
44552
|
const {
|
|
44544
44553
|
title: Ve,
|
|
44545
|
-
description:
|
|
44554
|
+
description: Ke,
|
|
44546
44555
|
icon: Oe
|
|
44547
44556
|
} = se;
|
|
44548
44557
|
return /* @__PURE__ */ w(
|
|
@@ -44553,7 +44562,7 @@ const av = (t) => {
|
|
|
44553
44562
|
Oe && /* @__PURE__ */ w("div", { className: "flex-shrink-0 h-8 w-8 rounded-lg bg-primary/10 flex items-center justify-center", children: /* @__PURE__ */ w(Oe, { className: "h-4 w-4 text-primary" }) }),
|
|
44554
44563
|
/* @__PURE__ */ Q("div", { className: "flex-1 min-w-0", children: [
|
|
44555
44564
|
/* @__PURE__ */ w("h3", { className: "text-lg font-semibold text-foreground tracking-tight", children: Ve }),
|
|
44556
|
-
|
|
44565
|
+
Ke && /* @__PURE__ */ w("p", { className: "text-sm text-muted-foreground mt-1", children: Ke })
|
|
44557
44566
|
] })
|
|
44558
44567
|
] })
|
|
44559
44568
|
},
|
|
@@ -44565,11 +44574,11 @@ const av = (t) => {
|
|
|
44565
44574
|
return /* @__PURE__ */ w(
|
|
44566
44575
|
ac,
|
|
44567
44576
|
{
|
|
44568
|
-
...
|
|
44577
|
+
...gt,
|
|
44569
44578
|
type: "text",
|
|
44570
44579
|
emitValue: !1,
|
|
44571
44580
|
..._e.register(pe),
|
|
44572
|
-
...
|
|
44581
|
+
...pt
|
|
44573
44582
|
}
|
|
44574
44583
|
);
|
|
44575
44584
|
}
|
|
@@ -44821,13 +44830,13 @@ function NM({
|
|
|
44821
44830
|
defaultCollapsed: n = !1,
|
|
44822
44831
|
children: r
|
|
44823
44832
|
}) {
|
|
44824
|
-
const [i, s] = bn(t), [o, l] = bn(n), c =
|
|
44833
|
+
const [i, s] = bn(t), [o, l] = bn(n), c = ht(() => {
|
|
44825
44834
|
s((g) => !g);
|
|
44826
|
-
}, []), a =
|
|
44835
|
+
}, []), a = ht((g) => {
|
|
44827
44836
|
s(g);
|
|
44828
|
-
}, []), h =
|
|
44837
|
+
}, []), h = ht(() => {
|
|
44829
44838
|
l((g) => !g);
|
|
44830
|
-
}, []), u =
|
|
44839
|
+
}, []), u = ht((g) => {
|
|
44831
44840
|
l(g);
|
|
44832
44841
|
}, []), m = {
|
|
44833
44842
|
isOpen: i,
|
|
@@ -44977,7 +44986,7 @@ var PM = [
|
|
|
44977
44986
|
{
|
|
44978
44987
|
scope: r,
|
|
44979
44988
|
disabled: o,
|
|
44980
|
-
contentId:
|
|
44989
|
+
contentId: Qt(),
|
|
44981
44990
|
open: a,
|
|
44982
44991
|
onOpenToggle: v.useCallback(() => h((u) => !u), [h]),
|
|
44983
44992
|
children: /* @__PURE__ */ w(
|
|
@@ -45579,9 +45588,9 @@ function YM() {
|
|
|
45579
45588
|
}
|
|
45580
45589
|
const mv = Vo(null);
|
|
45581
45590
|
function jM({ children: t }) {
|
|
45582
|
-
const [n, r] = bn(null), i =
|
|
45591
|
+
const [n, r] = bn(null), i = ht((o) => {
|
|
45583
45592
|
r(o);
|
|
45584
|
-
}, []), s =
|
|
45593
|
+
}, []), s = ht(() => {
|
|
45585
45594
|
r(null);
|
|
45586
45595
|
}, []);
|
|
45587
45596
|
return /* @__PURE__ */ w(mv.Provider, { value: { slot: n, setSlot: i, clearSlot: s }, children: t });
|
|
@@ -45841,7 +45850,7 @@ const KM = ({
|
|
|
45841
45850
|
if (a)
|
|
45842
45851
|
a(te);
|
|
45843
45852
|
else if (m && W) {
|
|
45844
|
-
const me = y ? y(te) : void 0, Se = T ? (F == null ? void 0 : F.state) || {} : {}, Ge = E ? E(te) : _,
|
|
45853
|
+
const me = y ? y(te) : void 0, Se = T ? (F == null ? void 0 : F.state) || {} : {}, Ge = E ? E(te) : _, st = M ? M(te) : null, et = m.split("?")[0].split("/").filter(Boolean)[0], bt = Ge || (st ? { [et]: st } : void 0);
|
|
45845
45854
|
B(`${m}/${W}/edit`, {
|
|
45846
45855
|
state: {
|
|
45847
45856
|
...Se,
|
|
@@ -45849,7 +45858,7 @@ const KM = ({
|
|
|
45849
45858
|
...bt && {
|
|
45850
45859
|
customBreadcrumbPaths: bt
|
|
45851
45860
|
},
|
|
45852
|
-
...
|
|
45861
|
+
...st && { parentPath: st }
|
|
45853
45862
|
}
|
|
45854
45863
|
});
|
|
45855
45864
|
}
|
|
@@ -45964,7 +45973,7 @@ const KM = ({
|
|
|
45964
45973
|
case "number":
|
|
45965
45974
|
return me.format ? me.format(Se) : new Intl.NumberFormat().format(Se);
|
|
45966
45975
|
case "list":
|
|
45967
|
-
return Array.isArray(Se) ? /* @__PURE__ */ w("div", { className: "flex flex-wrap gap-1", children: Se.map((Ge,
|
|
45976
|
+
return Array.isArray(Se) ? /* @__PURE__ */ w("div", { className: "flex flex-wrap gap-1", children: Se.map((Ge, st) => /* @__PURE__ */ w(Gi, { variant: "outline", children: me.getItemLabel ? me.getItemLabel(Ge) : String(Ge) }, st)) }) : String(Se);
|
|
45968
45977
|
case "link":
|
|
45969
45978
|
return /* @__PURE__ */ w(
|
|
45970
45979
|
"a",
|
|
@@ -46015,12 +46024,12 @@ const KM = ({
|
|
|
46015
46024
|
/* @__PURE__ */ w("div", { className: $e, children: l.map((me) => {
|
|
46016
46025
|
if (me.hidden && (typeof me.hidden == "function" ? te && me.hidden(te) : me.hidden))
|
|
46017
46026
|
return null;
|
|
46018
|
-
const Se = De(me), Ge = me.colSpan || 1,
|
|
46027
|
+
const Se = De(me), Ge = me.colSpan || 1, st = re(
|
|
46019
46028
|
Ge === 2 && "md:col-span-2",
|
|
46020
46029
|
Ge === 3 && "lg:col-span-3",
|
|
46021
46030
|
Ge === "full" && "col-span-full"
|
|
46022
46031
|
);
|
|
46023
|
-
return /* @__PURE__ */ Q("div", { className:
|
|
46032
|
+
return /* @__PURE__ */ Q("div", { className: st, children: [
|
|
46024
46033
|
/* @__PURE__ */ Q("dt", { className: "text-sm font-medium text-muted-foreground mb-1", children: [
|
|
46025
46034
|
me.icon && /* @__PURE__ */ w(me.icon, { className: "inline-block mr-2 h-4 w-4" }),
|
|
46026
46035
|
me.label
|