@cronocode/react-box 3.1.7 → 3.1.9
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/BOX_AI_CONTEXT.md +658 -119
- package/components/dataGrid/contracts/dataGridContract.d.ts +2 -0
- package/components/dataGrid.cjs +1 -1
- package/components/dataGrid.mjs +233 -229
- package/core/boxStyles.d.ts +134 -22
- package/core/theme/theme.d.ts +1 -1
- package/core/variables.d.ts +2 -0
- package/core.cjs +3 -3
- package/core.mjs +456 -320
- package/package.json +1 -1
package/core.mjs
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import we, { useContext as xe, useState as de, useLayoutEffect as
|
|
2
|
-
import { jsx as
|
|
1
|
+
import we, { useContext as xe, useState as de, useLayoutEffect as U, useMemo as le, useEffect as ge, useRef as Ne } from "react";
|
|
2
|
+
import { jsx as S } from "react/jsx-runtime";
|
|
3
3
|
import T from "./components/baseSvg.mjs";
|
|
4
|
-
import
|
|
4
|
+
import Fe from "./box.mjs";
|
|
5
5
|
function fe(...e) {
|
|
6
|
-
return e.reduce((r,
|
|
7
|
-
t && r.push(
|
|
6
|
+
return e.reduce((r, a) => a ? typeof a == "string" ? (r.push(a), r) : Array.isArray(a) ? (r.push(...fe(...a)), r) : (Object.entries(a).forEach(([l, t]) => {
|
|
7
|
+
t && r.push(l);
|
|
8
8
|
}), r) : r, []);
|
|
9
9
|
}
|
|
10
|
-
const
|
|
10
|
+
const Y = 4;
|
|
11
11
|
var o;
|
|
12
12
|
((e) => {
|
|
13
13
|
((r) => {
|
|
14
|
-
function
|
|
14
|
+
function a(t, n) {
|
|
15
15
|
return `${t}${n.replace("/", "-")}`;
|
|
16
16
|
}
|
|
17
|
-
r.fraction =
|
|
18
|
-
function
|
|
17
|
+
r.fraction = a;
|
|
18
|
+
function l(t) {
|
|
19
19
|
return [`${t} path`, `${t} circle`, `${t} rect`, `${t} line`];
|
|
20
20
|
}
|
|
21
|
-
r.svg =
|
|
21
|
+
r.svg = l;
|
|
22
22
|
})(e.ClassName || (e.ClassName = {})), ((r) => {
|
|
23
|
-
function
|
|
24
|
-
return `${x /
|
|
23
|
+
function a(x, C, k = Y) {
|
|
24
|
+
return `${x / k}rem`;
|
|
25
25
|
}
|
|
26
|
-
r.rem =
|
|
27
|
-
function
|
|
26
|
+
r.rem = a;
|
|
27
|
+
function l(x) {
|
|
28
28
|
return `${x}px`;
|
|
29
29
|
}
|
|
30
|
-
r.px =
|
|
30
|
+
r.px = l;
|
|
31
31
|
function t(x) {
|
|
32
|
-
const [C,
|
|
33
|
-
return `${+C / +
|
|
32
|
+
const [C, k] = x.split("/");
|
|
33
|
+
return `${+C / +k * 100}%`;
|
|
34
34
|
}
|
|
35
35
|
r.fraction = t;
|
|
36
36
|
function n(x, C) {
|
|
@@ -44,18 +44,18 @@ var o;
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
r.widthHeight = n;
|
|
47
|
-
function s(x) {
|
|
48
|
-
return (C, R) => `var(--${x}${R});`;
|
|
49
|
-
}
|
|
50
|
-
r.variables = s;
|
|
51
47
|
function u(x) {
|
|
52
|
-
return (C,
|
|
48
|
+
return (C, k) => `var(--${x}${k});`;
|
|
49
|
+
}
|
|
50
|
+
r.variables = u;
|
|
51
|
+
function c(x) {
|
|
52
|
+
return (C, k) => `var(--${x}${k});`;
|
|
53
53
|
}
|
|
54
|
-
r.svgVariables =
|
|
55
|
-
function
|
|
54
|
+
r.svgVariables = c;
|
|
55
|
+
function s(x, C) {
|
|
56
56
|
return `repeat(${C},minmax(0,1fr))`;
|
|
57
57
|
}
|
|
58
|
-
r.gridColumns =
|
|
58
|
+
r.gridColumns = s;
|
|
59
59
|
function m(x, C) {
|
|
60
60
|
return C === "full-row" ? "1/-1" : `span ${C}/span ${C}`;
|
|
61
61
|
}
|
|
@@ -68,13 +68,13 @@ var o;
|
|
|
68
68
|
return `${C}deg`;
|
|
69
69
|
}
|
|
70
70
|
r.rotate = y;
|
|
71
|
-
function
|
|
71
|
+
function z(x, C) {
|
|
72
72
|
return C === "xAxis" ? "-1 1" : "1 -1";
|
|
73
73
|
}
|
|
74
|
-
r.flip =
|
|
74
|
+
r.flip = z;
|
|
75
75
|
})(e.Value || (e.Value = {}));
|
|
76
76
|
})(o || (o = {}));
|
|
77
|
-
var
|
|
77
|
+
var Z;
|
|
78
78
|
((e) => {
|
|
79
79
|
e.colors = {
|
|
80
80
|
currentColor: "currentColor",
|
|
@@ -397,25 +397,25 @@ var Y;
|
|
|
397
397
|
"-9/12",
|
|
398
398
|
"-10/12",
|
|
399
399
|
"-11/12"
|
|
400
|
-
];
|
|
401
|
-
const
|
|
400
|
+
], e.percentString = "";
|
|
401
|
+
const a = { ...{
|
|
402
402
|
inherit: "inherit",
|
|
403
403
|
none: "none"
|
|
404
|
-
}, ...e.colors, ...e.bgImages, ...e.shadows },
|
|
404
|
+
}, ...e.colors, ...e.bgImages, ...e.shadows }, l = {}, t = {};
|
|
405
405
|
let n = {};
|
|
406
|
-
function
|
|
407
|
-
return y in
|
|
406
|
+
function u(y) {
|
|
407
|
+
return y in l || (y in n ? (t[y] = n[y], l[y] = n[y]) : y in a ? (t[y] = a[y], l[y] = a[y]) : (t[y] = y, l[y] = y)), `var(--${y})`;
|
|
408
408
|
}
|
|
409
|
-
e.getVariableValue =
|
|
410
|
-
function
|
|
411
|
-
return Object.entries(
|
|
409
|
+
e.getVariableValue = u;
|
|
410
|
+
function c() {
|
|
411
|
+
return Object.entries(l).map(([y, z]) => `--${y}: ${z};`).join("");
|
|
412
412
|
}
|
|
413
|
-
e.generateVariables =
|
|
414
|
-
function
|
|
413
|
+
e.generateVariables = c;
|
|
414
|
+
function s() {
|
|
415
415
|
const y = { ...t };
|
|
416
|
-
return Object.keys(t).forEach((
|
|
416
|
+
return Object.keys(t).forEach((z) => delete t[z]), y;
|
|
417
417
|
}
|
|
418
|
-
e.getPendingVariables =
|
|
418
|
+
e.getPendingVariables = s;
|
|
419
419
|
function m() {
|
|
420
420
|
return Object.keys(t).length > 0;
|
|
421
421
|
}
|
|
@@ -424,8 +424,8 @@ var Y;
|
|
|
424
424
|
n = y;
|
|
425
425
|
}
|
|
426
426
|
e.setUserVariables = f;
|
|
427
|
-
})(
|
|
428
|
-
const
|
|
427
|
+
})(Z || (Z = {}));
|
|
428
|
+
const i = Z, L = {
|
|
429
429
|
/** The appearance CSS property is used to display UI elements with platform-specific styling, based on the operating system's theme. */
|
|
430
430
|
appearance: [
|
|
431
431
|
{
|
|
@@ -580,12 +580,15 @@ const d = Y, L = {
|
|
|
580
580
|
valueFormat: o.Value.rem
|
|
581
581
|
},
|
|
582
582
|
{
|
|
583
|
-
values:
|
|
583
|
+
values: i.percentages,
|
|
584
584
|
valueFormat: o.Value.fraction
|
|
585
585
|
},
|
|
586
586
|
{
|
|
587
|
-
values:
|
|
587
|
+
values: i.negativePercentages,
|
|
588
588
|
valueFormat: o.Value.fraction
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
values: i.percentString
|
|
589
592
|
}
|
|
590
593
|
],
|
|
591
594
|
/** The right CSS property participates in specifying the horizontal position of a positioned element. This inset property has no effect on non-positioned elements. */
|
|
@@ -595,12 +598,15 @@ const d = Y, L = {
|
|
|
595
598
|
valueFormat: o.Value.rem
|
|
596
599
|
},
|
|
597
600
|
{
|
|
598
|
-
values:
|
|
601
|
+
values: i.percentages,
|
|
599
602
|
valueFormat: o.Value.fraction
|
|
600
603
|
},
|
|
601
604
|
{
|
|
602
|
-
values:
|
|
605
|
+
values: i.negativePercentages,
|
|
603
606
|
valueFormat: o.Value.fraction
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
values: i.percentString
|
|
604
610
|
}
|
|
605
611
|
],
|
|
606
612
|
/** The bottom CSS property participates in setting the vertical position of a positioned element. This inset property has no effect on non-positioned elements. */
|
|
@@ -610,12 +616,15 @@ const d = Y, L = {
|
|
|
610
616
|
valueFormat: o.Value.rem
|
|
611
617
|
},
|
|
612
618
|
{
|
|
613
|
-
values:
|
|
619
|
+
values: i.percentages,
|
|
614
620
|
valueFormat: o.Value.fraction
|
|
615
621
|
},
|
|
616
622
|
{
|
|
617
|
-
values:
|
|
623
|
+
values: i.negativePercentages,
|
|
618
624
|
valueFormat: o.Value.fraction
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
values: i.percentString
|
|
619
628
|
}
|
|
620
629
|
],
|
|
621
630
|
/** The left CSS property participates in specifying the horizontal position of a positioned element. This inset property has no effect on non-positioned elements. */
|
|
@@ -625,12 +634,15 @@ const d = Y, L = {
|
|
|
625
634
|
valueFormat: o.Value.rem
|
|
626
635
|
},
|
|
627
636
|
{
|
|
628
|
-
values:
|
|
637
|
+
values: i.percentages,
|
|
629
638
|
valueFormat: o.Value.fraction
|
|
630
639
|
},
|
|
631
640
|
{
|
|
632
|
-
values:
|
|
641
|
+
values: i.negativePercentages,
|
|
633
642
|
valueFormat: o.Value.fraction
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
values: i.percentString
|
|
634
646
|
}
|
|
635
647
|
],
|
|
636
648
|
/** The inset CSS property is a shorthand that corresponds to the top, right, bottom, and/or left properties. It has the same multi-value syntax of the margin shorthand. */
|
|
@@ -638,6 +650,9 @@ const d = Y, L = {
|
|
|
638
650
|
{
|
|
639
651
|
values: 0,
|
|
640
652
|
valueFormat: o.Value.rem
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
values: i.percentString
|
|
641
656
|
}
|
|
642
657
|
],
|
|
643
658
|
/** The `box-sizing` CSS property sets how the total width and height of an element is calculated. */
|
|
@@ -842,6 +857,9 @@ const d = Y, L = {
|
|
|
842
857
|
{
|
|
843
858
|
values: 0,
|
|
844
859
|
valueFormat: o.Value.rem
|
|
860
|
+
},
|
|
861
|
+
{
|
|
862
|
+
values: i.percentString
|
|
845
863
|
}
|
|
846
864
|
],
|
|
847
865
|
/** The row-gap CSS property sets the size of the gap (gutter) between an element's rows. */
|
|
@@ -850,6 +868,10 @@ const d = Y, L = {
|
|
|
850
868
|
styleName: "row-gap",
|
|
851
869
|
values: 0,
|
|
852
870
|
valueFormat: o.Value.rem
|
|
871
|
+
},
|
|
872
|
+
{
|
|
873
|
+
styleName: "row-gap",
|
|
874
|
+
values: i.percentString
|
|
853
875
|
}
|
|
854
876
|
],
|
|
855
877
|
/** The column-gap CSS property sets the size of the gap (gutter) between an element's columns. */
|
|
@@ -858,6 +880,10 @@ const d = Y, L = {
|
|
|
858
880
|
styleName: "column-gap",
|
|
859
881
|
values: 0,
|
|
860
882
|
valueFormat: o.Value.rem
|
|
883
|
+
},
|
|
884
|
+
{
|
|
885
|
+
styleName: "column-gap",
|
|
886
|
+
values: i.percentString
|
|
861
887
|
}
|
|
862
888
|
],
|
|
863
889
|
/** The order CSS property sets the order to lay out an item in a flex or grid container. Items in a container are sorted by ascending order value and then by their source code order. Items not given an explicit order value are assigned the default value of 0. */
|
|
@@ -879,11 +905,14 @@ const d = Y, L = {
|
|
|
879
905
|
valueFormat: () => "100vh"
|
|
880
906
|
},
|
|
881
907
|
{
|
|
882
|
-
values:
|
|
908
|
+
values: i.percentages,
|
|
883
909
|
valueFormat: o.Value.fraction
|
|
884
910
|
},
|
|
885
911
|
{
|
|
886
912
|
values: ["auto", "fit-content", "max-content", "min-content"]
|
|
913
|
+
},
|
|
914
|
+
{
|
|
915
|
+
values: i.percentString
|
|
887
916
|
}
|
|
888
917
|
],
|
|
889
918
|
/** The min-height CSS property sets the minimum height of an element. It prevents the used value of the height property from becoming smaller than the value specified for min-height. */
|
|
@@ -901,12 +930,16 @@ const d = Y, L = {
|
|
|
901
930
|
},
|
|
902
931
|
{
|
|
903
932
|
styleName: "min-height",
|
|
904
|
-
values:
|
|
933
|
+
values: i.percentages,
|
|
905
934
|
valueFormat: o.Value.fraction
|
|
906
935
|
},
|
|
907
936
|
{
|
|
908
937
|
styleName: "min-height",
|
|
909
938
|
values: ["auto", "fit-content", "max-content", "min-content"]
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
styleName: "min-height",
|
|
942
|
+
values: i.percentString
|
|
910
943
|
}
|
|
911
944
|
],
|
|
912
945
|
/** The max-height CSS property sets the maximum height of an element. It prevents the used value of the height property from becoming larger than the value specified for max-height. */
|
|
@@ -924,12 +957,16 @@ const d = Y, L = {
|
|
|
924
957
|
},
|
|
925
958
|
{
|
|
926
959
|
styleName: "max-height",
|
|
927
|
-
values:
|
|
960
|
+
values: i.percentages,
|
|
928
961
|
valueFormat: o.Value.fraction
|
|
929
962
|
},
|
|
930
963
|
{
|
|
931
964
|
styleName: "max-height",
|
|
932
965
|
values: ["auto", "fit-content", "max-content", "min-content"]
|
|
966
|
+
},
|
|
967
|
+
{
|
|
968
|
+
styleName: "max-height",
|
|
969
|
+
values: i.percentString
|
|
933
970
|
}
|
|
934
971
|
],
|
|
935
972
|
/** The width CSS property sets an element's width. By default, it sets the width of the content area, but if box-sizing is set to border-box, it sets the width of the border area. */
|
|
@@ -944,11 +981,14 @@ const d = Y, L = {
|
|
|
944
981
|
valueFormat: () => "100vw"
|
|
945
982
|
},
|
|
946
983
|
{
|
|
947
|
-
values:
|
|
984
|
+
values: i.percentages,
|
|
948
985
|
valueFormat: o.Value.fraction
|
|
949
986
|
},
|
|
950
987
|
{
|
|
951
988
|
values: ["auto", "fit-content", "max-content", "min-content"]
|
|
989
|
+
},
|
|
990
|
+
{
|
|
991
|
+
values: i.percentString
|
|
952
992
|
}
|
|
953
993
|
],
|
|
954
994
|
/** The min-width CSS property sets the minimum width of an element. It prevents the used value of the width property from becoming smaller than the value specified for min-width. */
|
|
@@ -966,12 +1006,16 @@ const d = Y, L = {
|
|
|
966
1006
|
},
|
|
967
1007
|
{
|
|
968
1008
|
styleName: "min-width",
|
|
969
|
-
values:
|
|
1009
|
+
values: i.percentages,
|
|
970
1010
|
valueFormat: o.Value.fraction
|
|
971
1011
|
},
|
|
972
1012
|
{
|
|
973
1013
|
styleName: "min-width",
|
|
974
1014
|
values: ["auto", "fit-content", "max-content", "min-content"]
|
|
1015
|
+
},
|
|
1016
|
+
{
|
|
1017
|
+
styleName: "min-width",
|
|
1018
|
+
values: i.percentString
|
|
975
1019
|
}
|
|
976
1020
|
],
|
|
977
1021
|
/** The max-width CSS property sets the maximum width of an element. It prevents the used value of the width property from becoming larger than the value specified by max-width. */
|
|
@@ -989,12 +1033,16 @@ const d = Y, L = {
|
|
|
989
1033
|
},
|
|
990
1034
|
{
|
|
991
1035
|
styleName: "max-width",
|
|
992
|
-
values:
|
|
1036
|
+
values: i.percentages,
|
|
993
1037
|
valueFormat: o.Value.fraction
|
|
994
1038
|
},
|
|
995
1039
|
{
|
|
996
1040
|
styleName: "max-width",
|
|
997
1041
|
values: ["auto", "fit-content", "max-content", "min-content"]
|
|
1042
|
+
},
|
|
1043
|
+
{
|
|
1044
|
+
styleName: "max-width",
|
|
1045
|
+
values: i.percentString
|
|
998
1046
|
}
|
|
999
1047
|
],
|
|
1000
1048
|
/** The letter-spacing CSS property sets the horizontal spacing behavior between text characters. This value is added to the natural spacing between characters while rendering the text. Positive values of letter-spacing causes characters to spread farther apart, while negative values of letter-spacing bring characters closer together. */
|
|
@@ -1037,8 +1085,13 @@ const d = Y, L = {
|
|
|
1037
1085
|
styleName: "margin"
|
|
1038
1086
|
},
|
|
1039
1087
|
{
|
|
1040
|
-
|
|
1088
|
+
styleName: "margin",
|
|
1089
|
+
values: i.percentages,
|
|
1041
1090
|
valueFormat: o.Value.fraction
|
|
1091
|
+
},
|
|
1092
|
+
{
|
|
1093
|
+
values: i.percentString,
|
|
1094
|
+
styleName: "margin"
|
|
1042
1095
|
}
|
|
1043
1096
|
],
|
|
1044
1097
|
/** The margin-inline CSS shorthand property is a shorthand property that defines both the logical inline start and end margins of an element, which maps to physical margins depending on the element's writing mode, directionality, and text orientation. */
|
|
@@ -1053,8 +1106,13 @@ const d = Y, L = {
|
|
|
1053
1106
|
styleName: "margin-inline"
|
|
1054
1107
|
},
|
|
1055
1108
|
{
|
|
1056
|
-
|
|
1109
|
+
styleName: "margin-inline",
|
|
1110
|
+
values: i.percentages,
|
|
1057
1111
|
valueFormat: o.Value.fraction
|
|
1112
|
+
},
|
|
1113
|
+
{
|
|
1114
|
+
values: i.percentString,
|
|
1115
|
+
styleName: "margin-inline"
|
|
1058
1116
|
}
|
|
1059
1117
|
],
|
|
1060
1118
|
/** The margin-block CSS shorthand property defines the logical block start and end margins of an element, which maps to physical margins depending on the element's writing mode, directionality, and text orientation. */
|
|
@@ -1069,8 +1127,13 @@ const d = Y, L = {
|
|
|
1069
1127
|
styleName: "margin-block"
|
|
1070
1128
|
},
|
|
1071
1129
|
{
|
|
1072
|
-
|
|
1130
|
+
styleName: "margin-block",
|
|
1131
|
+
values: i.percentages,
|
|
1073
1132
|
valueFormat: o.Value.fraction
|
|
1133
|
+
},
|
|
1134
|
+
{
|
|
1135
|
+
values: i.percentString,
|
|
1136
|
+
styleName: "margin-block"
|
|
1074
1137
|
}
|
|
1075
1138
|
],
|
|
1076
1139
|
/** The margin-top CSS property sets the margin area on the top of an element. A positive value places it farther from its neighbors, while a negative value places it closer. */
|
|
@@ -1085,8 +1148,13 @@ const d = Y, L = {
|
|
|
1085
1148
|
styleName: "margin-top"
|
|
1086
1149
|
},
|
|
1087
1150
|
{
|
|
1088
|
-
values:
|
|
1089
|
-
valueFormat: o.Value.fraction
|
|
1151
|
+
values: i.percentages,
|
|
1152
|
+
valueFormat: o.Value.fraction,
|
|
1153
|
+
styleName: "margin-top"
|
|
1154
|
+
},
|
|
1155
|
+
{
|
|
1156
|
+
values: i.percentString,
|
|
1157
|
+
styleName: "margin-top"
|
|
1090
1158
|
}
|
|
1091
1159
|
],
|
|
1092
1160
|
/** The margin-right CSS property sets the margin area on the right side of an element. A positive value places it farther from its neighbors, while a negative value places it closer. */
|
|
@@ -1101,8 +1169,13 @@ const d = Y, L = {
|
|
|
1101
1169
|
styleName: "margin-right"
|
|
1102
1170
|
},
|
|
1103
1171
|
{
|
|
1104
|
-
values:
|
|
1105
|
-
valueFormat: o.Value.fraction
|
|
1172
|
+
values: i.percentages,
|
|
1173
|
+
valueFormat: o.Value.fraction,
|
|
1174
|
+
styleName: "margin-right"
|
|
1175
|
+
},
|
|
1176
|
+
{
|
|
1177
|
+
values: i.percentString,
|
|
1178
|
+
styleName: "margin-right"
|
|
1106
1179
|
}
|
|
1107
1180
|
],
|
|
1108
1181
|
/** The margin-bottom CSS property sets the margin area on the bottom of an element. A positive value places it farther from its neighbors, while a negative value places it closer. */
|
|
@@ -1117,8 +1190,13 @@ const d = Y, L = {
|
|
|
1117
1190
|
styleName: "margin-bottom"
|
|
1118
1191
|
},
|
|
1119
1192
|
{
|
|
1120
|
-
values:
|
|
1121
|
-
valueFormat: o.Value.fraction
|
|
1193
|
+
values: i.percentages,
|
|
1194
|
+
valueFormat: o.Value.fraction,
|
|
1195
|
+
styleName: "margin-bottom"
|
|
1196
|
+
},
|
|
1197
|
+
{
|
|
1198
|
+
values: i.percentString,
|
|
1199
|
+
styleName: "margin-bottom"
|
|
1122
1200
|
}
|
|
1123
1201
|
],
|
|
1124
1202
|
/** The margin-left CSS property sets the margin area on the left side of an element. A positive value places it farther from its neighbors, while a negative value places it closer. */
|
|
@@ -1133,8 +1211,13 @@ const d = Y, L = {
|
|
|
1133
1211
|
styleName: "margin-left"
|
|
1134
1212
|
},
|
|
1135
1213
|
{
|
|
1136
|
-
values:
|
|
1137
|
-
valueFormat: o.Value.fraction
|
|
1214
|
+
values: i.percentages,
|
|
1215
|
+
valueFormat: o.Value.fraction,
|
|
1216
|
+
styleName: "margin-left"
|
|
1217
|
+
},
|
|
1218
|
+
{
|
|
1219
|
+
values: i.percentString,
|
|
1220
|
+
styleName: "margin-left"
|
|
1138
1221
|
}
|
|
1139
1222
|
],
|
|
1140
1223
|
/** The padding CSS shorthand property sets the padding area on all four sides of an element at once. */
|
|
@@ -1145,8 +1228,13 @@ const d = Y, L = {
|
|
|
1145
1228
|
valueFormat: o.Value.rem
|
|
1146
1229
|
},
|
|
1147
1230
|
{
|
|
1148
|
-
values:
|
|
1149
|
-
valueFormat: o.Value.fraction
|
|
1231
|
+
values: i.percentages,
|
|
1232
|
+
valueFormat: o.Value.fraction,
|
|
1233
|
+
styleName: "padding"
|
|
1234
|
+
},
|
|
1235
|
+
{
|
|
1236
|
+
values: i.percentString,
|
|
1237
|
+
styleName: "padding"
|
|
1150
1238
|
}
|
|
1151
1239
|
],
|
|
1152
1240
|
/** The padding-inline CSS shorthand property defines the logical inline start and end padding of an element, which maps to physical padding properties depending on the element's writing mode, directionality, and text orientation. */
|
|
@@ -1157,8 +1245,13 @@ const d = Y, L = {
|
|
|
1157
1245
|
valueFormat: o.Value.rem
|
|
1158
1246
|
},
|
|
1159
1247
|
{
|
|
1160
|
-
values:
|
|
1161
|
-
valueFormat: o.Value.fraction
|
|
1248
|
+
values: i.percentages,
|
|
1249
|
+
valueFormat: o.Value.fraction,
|
|
1250
|
+
styleName: "padding-inline"
|
|
1251
|
+
},
|
|
1252
|
+
{
|
|
1253
|
+
values: i.percentString,
|
|
1254
|
+
styleName: "padding-inline"
|
|
1162
1255
|
}
|
|
1163
1256
|
],
|
|
1164
1257
|
/** The padding-block CSS shorthand property defines the logical block start and end padding of an element, which maps to physical padding properties depending on the element's writing mode, directionality, and text orientation. */
|
|
@@ -1169,8 +1262,13 @@ const d = Y, L = {
|
|
|
1169
1262
|
valueFormat: o.Value.rem
|
|
1170
1263
|
},
|
|
1171
1264
|
{
|
|
1172
|
-
values:
|
|
1173
|
-
valueFormat: o.Value.fraction
|
|
1265
|
+
values: i.percentages,
|
|
1266
|
+
valueFormat: o.Value.fraction,
|
|
1267
|
+
styleName: "padding-block"
|
|
1268
|
+
},
|
|
1269
|
+
{
|
|
1270
|
+
values: i.percentString,
|
|
1271
|
+
styleName: "padding-block"
|
|
1174
1272
|
}
|
|
1175
1273
|
],
|
|
1176
1274
|
/** The padding-top CSS property sets the height of the padding area on the top of an element. */
|
|
@@ -1181,8 +1279,13 @@ const d = Y, L = {
|
|
|
1181
1279
|
valueFormat: o.Value.rem
|
|
1182
1280
|
},
|
|
1183
1281
|
{
|
|
1184
|
-
values:
|
|
1185
|
-
valueFormat: o.Value.fraction
|
|
1282
|
+
values: i.percentages,
|
|
1283
|
+
valueFormat: o.Value.fraction,
|
|
1284
|
+
styleName: "padding-top"
|
|
1285
|
+
},
|
|
1286
|
+
{
|
|
1287
|
+
values: i.percentString,
|
|
1288
|
+
styleName: "padding-top"
|
|
1186
1289
|
}
|
|
1187
1290
|
],
|
|
1188
1291
|
/** The padding-right CSS property sets the width of the padding area on the right of an element. */
|
|
@@ -1193,8 +1296,13 @@ const d = Y, L = {
|
|
|
1193
1296
|
valueFormat: o.Value.rem
|
|
1194
1297
|
},
|
|
1195
1298
|
{
|
|
1196
|
-
values:
|
|
1197
|
-
valueFormat: o.Value.fraction
|
|
1299
|
+
values: i.percentages,
|
|
1300
|
+
valueFormat: o.Value.fraction,
|
|
1301
|
+
styleName: "padding-right"
|
|
1302
|
+
},
|
|
1303
|
+
{
|
|
1304
|
+
values: i.percentString,
|
|
1305
|
+
styleName: "padding-right"
|
|
1198
1306
|
}
|
|
1199
1307
|
],
|
|
1200
1308
|
/** The padding-bottom CSS property sets the height of the padding area on the bottom of an element. */
|
|
@@ -1205,8 +1313,13 @@ const d = Y, L = {
|
|
|
1205
1313
|
valueFormat: o.Value.rem
|
|
1206
1314
|
},
|
|
1207
1315
|
{
|
|
1208
|
-
values:
|
|
1209
|
-
valueFormat: o.Value.fraction
|
|
1316
|
+
values: i.percentages,
|
|
1317
|
+
valueFormat: o.Value.fraction,
|
|
1318
|
+
styleName: "padding-bottom"
|
|
1319
|
+
},
|
|
1320
|
+
{
|
|
1321
|
+
values: i.percentString,
|
|
1322
|
+
styleName: "padding-bottom"
|
|
1210
1323
|
}
|
|
1211
1324
|
],
|
|
1212
1325
|
/** The padding-left CSS property sets the width of the padding area to the left of an element. */
|
|
@@ -1217,8 +1330,13 @@ const d = Y, L = {
|
|
|
1217
1330
|
valueFormat: o.Value.rem
|
|
1218
1331
|
},
|
|
1219
1332
|
{
|
|
1220
|
-
values:
|
|
1221
|
-
valueFormat: o.Value.fraction
|
|
1333
|
+
values: i.percentages,
|
|
1334
|
+
valueFormat: o.Value.fraction,
|
|
1335
|
+
styleName: "padding-left"
|
|
1336
|
+
},
|
|
1337
|
+
{
|
|
1338
|
+
values: i.percentString,
|
|
1339
|
+
styleName: "padding-left"
|
|
1222
1340
|
}
|
|
1223
1341
|
],
|
|
1224
1342
|
/** The object-fit CSS property sets how the content of a replaced element, such as an <img> or <video>, should be resized to fit its container. */
|
|
@@ -1470,14 +1588,14 @@ const d = Y, L = {
|
|
|
1470
1588
|
/** The color CSS property sets the foreground color value of an element's text and text decorations, and sets the currentcolor value. */
|
|
1471
1589
|
color: [
|
|
1472
1590
|
{
|
|
1473
|
-
values:
|
|
1591
|
+
values: i.colorValues,
|
|
1474
1592
|
valueFormat: (e, r) => r(e)
|
|
1475
1593
|
}
|
|
1476
1594
|
],
|
|
1477
1595
|
/** The background-color CSS property sets the background color of an element. */
|
|
1478
1596
|
bgColor: [
|
|
1479
1597
|
{
|
|
1480
|
-
values:
|
|
1598
|
+
values: i.colorValues,
|
|
1481
1599
|
valueFormat: (e, r) => r(e),
|
|
1482
1600
|
styleName: "background-color"
|
|
1483
1601
|
}
|
|
@@ -1485,7 +1603,7 @@ const d = Y, L = {
|
|
|
1485
1603
|
/** The border-color shorthand CSS property sets the color of an element's border. */
|
|
1486
1604
|
borderColor: [
|
|
1487
1605
|
{
|
|
1488
|
-
values:
|
|
1606
|
+
values: i.colorValues,
|
|
1489
1607
|
valueFormat: (e, r) => r(e),
|
|
1490
1608
|
styleName: "border-color"
|
|
1491
1609
|
}
|
|
@@ -1493,7 +1611,7 @@ const d = Y, L = {
|
|
|
1493
1611
|
/** The outline-color CSS property sets the color of an element's outline. */
|
|
1494
1612
|
outlineColor: [
|
|
1495
1613
|
{
|
|
1496
|
-
values:
|
|
1614
|
+
values: i.colorValues,
|
|
1497
1615
|
valueFormat: (e, r) => r(e),
|
|
1498
1616
|
styleName: "outline-color"
|
|
1499
1617
|
}
|
|
@@ -1501,21 +1619,21 @@ const d = Y, L = {
|
|
|
1501
1619
|
/** The fill CSS property defines how SVG text content and the interior canvas of SVG shapes are filled or painted. If present, it overrides the element's fill attribute. */
|
|
1502
1620
|
fill: [
|
|
1503
1621
|
{
|
|
1504
|
-
values:
|
|
1622
|
+
values: i.colorValues,
|
|
1505
1623
|
valueFormat: (e, r) => r(e)
|
|
1506
1624
|
}
|
|
1507
1625
|
],
|
|
1508
1626
|
/** The stroke CSS property defines the color or SVG paint server used to draw an element's stroke. */
|
|
1509
1627
|
stroke: [
|
|
1510
1628
|
{
|
|
1511
|
-
values:
|
|
1629
|
+
values: i.colorValues,
|
|
1512
1630
|
valueFormat: (e, r) => r(e)
|
|
1513
1631
|
}
|
|
1514
1632
|
],
|
|
1515
1633
|
/** The background-image CSS property sets one or more background images on an element. */
|
|
1516
1634
|
bgImage: [
|
|
1517
1635
|
{
|
|
1518
|
-
values:
|
|
1636
|
+
values: i.bgImageValues,
|
|
1519
1637
|
valueFormat: (e, r) => r(e),
|
|
1520
1638
|
styleName: "background-image"
|
|
1521
1639
|
}
|
|
@@ -1523,7 +1641,7 @@ const d = Y, L = {
|
|
|
1523
1641
|
/** The box-shadow CSS property adds shadow effects around an element's frame */
|
|
1524
1642
|
shadow: [
|
|
1525
1643
|
{
|
|
1526
|
-
values:
|
|
1644
|
+
values: i.shadowValues,
|
|
1527
1645
|
valueFormat: (e, r) => r(e),
|
|
1528
1646
|
styleName: "box-shadow"
|
|
1529
1647
|
}
|
|
@@ -1532,36 +1650,46 @@ const d = Y, L = {
|
|
|
1532
1650
|
translateX: [
|
|
1533
1651
|
{
|
|
1534
1652
|
values: 0,
|
|
1535
|
-
valueFormat: (e) => `translateX(${e /
|
|
1653
|
+
valueFormat: (e) => `translateX(${e / Y}rem)`,
|
|
1536
1654
|
styleName: "transform"
|
|
1537
1655
|
},
|
|
1538
1656
|
{
|
|
1539
|
-
values:
|
|
1657
|
+
values: i.percentages,
|
|
1540
1658
|
valueFormat: (e) => `translateX(${o.Value.fraction(e)})`,
|
|
1541
1659
|
styleName: "transform"
|
|
1542
1660
|
},
|
|
1543
1661
|
{
|
|
1544
|
-
values:
|
|
1662
|
+
values: i.negativePercentages,
|
|
1545
1663
|
valueFormat: (e) => `translateX(${o.Value.fraction(e)})`,
|
|
1546
1664
|
styleName: "transform"
|
|
1665
|
+
},
|
|
1666
|
+
{
|
|
1667
|
+
values: i.percentString,
|
|
1668
|
+
valueFormat: (e) => `translateX(${e})`,
|
|
1669
|
+
styleName: "transform"
|
|
1547
1670
|
}
|
|
1548
1671
|
],
|
|
1549
1672
|
/** The translateY() CSS function repositions an element vertically on the 2D plane. */
|
|
1550
1673
|
translateY: [
|
|
1551
1674
|
{
|
|
1552
1675
|
values: 0,
|
|
1553
|
-
valueFormat: (e) => `translateY(${e /
|
|
1676
|
+
valueFormat: (e) => `translateY(${e / Y}rem)`,
|
|
1554
1677
|
styleName: "transform"
|
|
1555
1678
|
},
|
|
1556
1679
|
{
|
|
1557
|
-
values:
|
|
1680
|
+
values: i.percentages,
|
|
1558
1681
|
valueFormat: (e) => `translateY(${o.Value.fraction(e)})`,
|
|
1559
1682
|
styleName: "transform"
|
|
1560
1683
|
},
|
|
1561
1684
|
{
|
|
1562
|
-
values:
|
|
1685
|
+
values: i.negativePercentages,
|
|
1563
1686
|
valueFormat: (e) => `translateY(${o.Value.fraction(e)})`,
|
|
1564
1687
|
styleName: "transform"
|
|
1688
|
+
},
|
|
1689
|
+
{
|
|
1690
|
+
values: i.percentString,
|
|
1691
|
+
valueFormat: (e) => `translateY(${e})`,
|
|
1692
|
+
styleName: "transform"
|
|
1565
1693
|
}
|
|
1566
1694
|
],
|
|
1567
1695
|
/** The content CSS property replaces content with a generated value. It can be used to define what is rendered inside an element or pseudo-element. */
|
|
@@ -1592,7 +1720,7 @@ const d = Y, L = {
|
|
|
1592
1720
|
hasDisabled: ":has([disabled])",
|
|
1593
1721
|
before: "::before",
|
|
1594
1722
|
after: "::after"
|
|
1595
|
-
},
|
|
1723
|
+
}, W = {
|
|
1596
1724
|
indeterminate: ":indeterminate",
|
|
1597
1725
|
checked: ":checked",
|
|
1598
1726
|
required: ":required",
|
|
@@ -1600,14 +1728,14 @@ const d = Y, L = {
|
|
|
1600
1728
|
selected: '[aria-selected="true"]'
|
|
1601
1729
|
}, Ve = {
|
|
1602
1730
|
theme: ""
|
|
1603
|
-
},
|
|
1604
|
-
(e, [r],
|
|
1731
|
+
}, K = { ...me, ...W, ...Ve }, ye = Object.entries(K).reduce(
|
|
1732
|
+
(e, [r], a) => (e[r] = Math.pow(2, a), e),
|
|
1605
1733
|
{}
|
|
1606
|
-
),
|
|
1734
|
+
), X = Object.entries(K).reduce(
|
|
1607
1735
|
(e, [r]) => {
|
|
1608
|
-
const
|
|
1609
|
-
return Object.entries(e).forEach(([
|
|
1610
|
-
e[+
|
|
1736
|
+
const a = ye[r];
|
|
1737
|
+
return Object.entries(e).forEach(([l, t]) => {
|
|
1738
|
+
e[+l + a] = [...t, r];
|
|
1611
1739
|
}), e;
|
|
1612
1740
|
},
|
|
1613
1741
|
{ 0: [] }
|
|
@@ -1631,34 +1759,34 @@ const d = Y, L = {
|
|
|
1631
1759
|
/** Styles applied for 2x extra-large screens and larger. >= 1536 */
|
|
1632
1760
|
xxl: 1536
|
|
1633
1761
|
};
|
|
1634
|
-
var
|
|
1762
|
+
var Q;
|
|
1635
1763
|
((e) => {
|
|
1636
|
-
function r(n,
|
|
1637
|
-
const
|
|
1638
|
-
return
|
|
1639
|
-
f in
|
|
1640
|
-
}),
|
|
1764
|
+
function r(n, u, c) {
|
|
1765
|
+
const s = { ...n }, m = s.props || {};
|
|
1766
|
+
return u.forEach((f) => {
|
|
1767
|
+
f in s && (m[f] = s[f], delete s[f]);
|
|
1768
|
+
}), c && Object.entries(c).forEach(([f, y]) => {
|
|
1641
1769
|
m[f] = y;
|
|
1642
|
-
}),
|
|
1770
|
+
}), s.props = m, s;
|
|
1643
1771
|
}
|
|
1644
1772
|
e.buildProps = r;
|
|
1645
|
-
function
|
|
1773
|
+
function a(n) {
|
|
1646
1774
|
return !!n && typeof n == "object";
|
|
1647
1775
|
}
|
|
1648
|
-
e.isObject =
|
|
1649
|
-
function
|
|
1650
|
-
return n.reduce((
|
|
1651
|
-
const m = s
|
|
1652
|
-
|
|
1653
|
-
}),
|
|
1776
|
+
e.isObject = a;
|
|
1777
|
+
function l(...n) {
|
|
1778
|
+
return n.reduce((u, c) => (Object.keys(c ?? {}).forEach((s) => {
|
|
1779
|
+
const m = u[s], f = c[s];
|
|
1780
|
+
a(f) && "clean" in f && f.clean ? u[s] = f : s in W && typeof f == "boolean" || (s in W && Array.isArray(f) ? u[s] = l(m, f[1] ?? {}) : Array.isArray(m) && Array.isArray(f) ? u[s] = m.concat(...f) : a(m) && a(f) ? u[s] = l(m, f) : u[s] = f);
|
|
1781
|
+
}), u), {});
|
|
1654
1782
|
}
|
|
1655
|
-
e.mergeDeep =
|
|
1656
|
-
function t(n,
|
|
1657
|
-
return n in
|
|
1783
|
+
e.mergeDeep = l;
|
|
1784
|
+
function t(n, u) {
|
|
1785
|
+
return n in u;
|
|
1658
1786
|
}
|
|
1659
1787
|
e.isKeyOf = t;
|
|
1660
|
-
})(
|
|
1661
|
-
const
|
|
1788
|
+
})(Q || (Q = {}));
|
|
1789
|
+
const R = Q, se = {
|
|
1662
1790
|
h1: {
|
|
1663
1791
|
styles: { fontSize: 14 * 2.5 }
|
|
1664
1792
|
},
|
|
@@ -2763,41 +2891,49 @@ const S = Z, se = {
|
|
|
2763
2891
|
};
|
|
2764
2892
|
var J;
|
|
2765
2893
|
((e) => {
|
|
2766
|
-
function r(
|
|
2767
|
-
return
|
|
2768
|
-
L[
|
|
2769
|
-
}), Object.entries(n).forEach(([
|
|
2770
|
-
const
|
|
2771
|
-
L[
|
|
2894
|
+
function r(l, t, n) {
|
|
2895
|
+
return i.setUserVariables(l), Object.entries(t).forEach(([u, c]) => {
|
|
2896
|
+
L[u] = c;
|
|
2897
|
+
}), Object.entries(n).forEach(([u, c]) => {
|
|
2898
|
+
const s = L[u];
|
|
2899
|
+
L[u] = s ? [...c, ...s] : c;
|
|
2772
2900
|
}), { extendedProps: t, extendedPropTypes: n };
|
|
2773
2901
|
}
|
|
2774
2902
|
e.extend = r, e.componentsStyles = se;
|
|
2775
|
-
function l
|
|
2776
|
-
return e.componentsStyles =
|
|
2903
|
+
function a(l) {
|
|
2904
|
+
return e.componentsStyles = R.mergeDeep(se, l), l;
|
|
2777
2905
|
}
|
|
2778
|
-
e.components =
|
|
2906
|
+
e.components = a;
|
|
2779
2907
|
})(J || (J = {}));
|
|
2780
|
-
const $e = J,
|
|
2908
|
+
const $e = J, ee = we.createContext({ theme: "", setTheme: () => {
|
|
2781
2909
|
} });
|
|
2782
|
-
function
|
|
2783
|
-
const { children: r, theme:
|
|
2784
|
-
return
|
|
2785
|
-
if (a
|
|
2786
|
-
const
|
|
2787
|
-
|
|
2788
|
-
|
|
2910
|
+
function re(e) {
|
|
2911
|
+
const { children: r, theme: a, use: l = "local" } = e, [t, n] = de(a ?? "light");
|
|
2912
|
+
return U(() => {
|
|
2913
|
+
if (a !== void 0) return;
|
|
2914
|
+
const u = window.matchMedia("(prefers-color-scheme: dark)");
|
|
2915
|
+
n(u.matches ? "dark" : "light");
|
|
2916
|
+
const c = (s) => {
|
|
2917
|
+
n(s.matches ? "dark" : "light");
|
|
2789
2918
|
};
|
|
2790
|
-
|
|
2919
|
+
return u.addEventListener("change", c), () => u.removeEventListener("change", c);
|
|
2920
|
+
}, [a]), U(() => {
|
|
2921
|
+
if (l === "local") return;
|
|
2922
|
+
const u = document.documentElement;
|
|
2923
|
+
return u.classList.add(t), () => {
|
|
2924
|
+
u.classList.remove(t);
|
|
2925
|
+
};
|
|
2926
|
+
}, [t, l]), l === "local" ? /* @__PURE__ */ S(ee.Provider, { value: { theme: t, setTheme: n }, children: /* @__PURE__ */ S(Fe, { className: t, children: r }) }) : /* @__PURE__ */ S(ee.Provider, { value: { theme: t, setTheme: n }, children: r });
|
|
2791
2927
|
}
|
|
2792
2928
|
((e) => {
|
|
2793
2929
|
function r() {
|
|
2794
|
-
const { theme:
|
|
2795
|
-
return [
|
|
2930
|
+
const { theme: a, setTheme: l } = xe(ee);
|
|
2931
|
+
return [a, l];
|
|
2796
2932
|
}
|
|
2797
2933
|
e.useTheme = r;
|
|
2798
|
-
})(
|
|
2799
|
-
const
|
|
2800
|
-
class
|
|
2934
|
+
})(re || (re = {}));
|
|
2935
|
+
const Se = re;
|
|
2936
|
+
class ze {
|
|
2801
2937
|
constructor() {
|
|
2802
2938
|
this._index = 0, this._cache = {};
|
|
2803
2939
|
}
|
|
@@ -2805,89 +2941,89 @@ class ke {
|
|
|
2805
2941
|
return this._cache[r] || (this._cache[r] = this.getByIndex(this._index++)), this._cache[r];
|
|
2806
2942
|
}
|
|
2807
2943
|
getByIndex(r) {
|
|
2808
|
-
const { first:
|
|
2944
|
+
const { first: a, next: l } = ke, t = r - a.length;
|
|
2809
2945
|
if (t < 0)
|
|
2810
|
-
return
|
|
2811
|
-
const n = Math.floor(t /
|
|
2812
|
-
return this.getByIndex(n) +
|
|
2946
|
+
return a[r];
|
|
2947
|
+
const n = Math.floor(t / l.length), u = t - n * l.length;
|
|
2948
|
+
return this.getByIndex(n) + l[u];
|
|
2813
2949
|
}
|
|
2814
2950
|
}
|
|
2815
|
-
const
|
|
2951
|
+
const ke = {
|
|
2816
2952
|
first: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",
|
|
2817
2953
|
next: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
|
|
2818
2954
|
};
|
|
2819
|
-
function
|
|
2820
|
-
const { clean: r, component:
|
|
2955
|
+
function Re(e) {
|
|
2956
|
+
const { clean: r, component: a, variant: l } = e;
|
|
2821
2957
|
return le(() => {
|
|
2822
2958
|
if (r) return;
|
|
2823
|
-
const t =
|
|
2959
|
+
const t = a?.split(".");
|
|
2824
2960
|
if (!t) return;
|
|
2825
|
-
const n = t.reduce((
|
|
2961
|
+
const n = t.reduce((s, m, f) => f === 0 ? $e.componentsStyles[m] : s?.children?.[m], void 0);
|
|
2826
2962
|
if (!n) return;
|
|
2827
|
-
if (!
|
|
2828
|
-
const
|
|
2829
|
-
if (
|
|
2830
|
-
const
|
|
2831
|
-
return n.styles ?
|
|
2832
|
-
}, [r,
|
|
2963
|
+
if (!l) return n.styles;
|
|
2964
|
+
const u = fe(l);
|
|
2965
|
+
if (u.length === 0) return n.styles;
|
|
2966
|
+
const c = R.mergeDeep(...u.map((s) => n.variants?.[s]));
|
|
2967
|
+
return n.styles ? R.mergeDeep(n.styles, c) : c;
|
|
2968
|
+
}, [r, a, l]);
|
|
2833
2969
|
}
|
|
2834
|
-
const Ae = new
|
|
2970
|
+
const Ae = new ze(), Oe = typeof window < "u" && typeof window.document < "u", H = typeof process == "object" && process.env?.NODE_ENV === "test", Ee = Oe && !H ? U : ge, be = "_b", I = "_s";
|
|
2835
2971
|
function He(e, r) {
|
|
2836
|
-
const
|
|
2837
|
-
return B.addClassNames(
|
|
2972
|
+
const a = Re(e), l = le(() => a ? R.mergeDeep(a, e) : e, [e, a]), t = [r ? I : be];
|
|
2973
|
+
return B.addClassNames(l, t, []), Ee(() => {
|
|
2838
2974
|
B.flush();
|
|
2839
|
-
}, [
|
|
2975
|
+
}, [l]), t;
|
|
2840
2976
|
}
|
|
2841
2977
|
var B;
|
|
2842
2978
|
((e) => {
|
|
2843
|
-
let r = !0,
|
|
2844
|
-
const
|
|
2845
|
-
let
|
|
2846
|
-
const
|
|
2847
|
-
let
|
|
2979
|
+
let r = !0, a = !1;
|
|
2980
|
+
const l = /* @__PURE__ */ new Set(), t = [], n = [];
|
|
2981
|
+
let u = 0;
|
|
2982
|
+
const c = Object.keys(L).reduce((b, h, w) => (b[h] = w, b), {});
|
|
2983
|
+
let s = {};
|
|
2848
2984
|
function m(b, h, w, p, g) {
|
|
2849
|
-
Object.entries(b).forEach(([v,
|
|
2850
|
-
if (
|
|
2851
|
-
x(v,
|
|
2852
|
-
else if (
|
|
2853
|
-
m(
|
|
2854
|
-
else if (
|
|
2855
|
-
if (Array.isArray(
|
|
2856
|
-
const [
|
|
2857
|
-
m(
|
|
2985
|
+
Object.entries(b).forEach(([v, d]) => {
|
|
2986
|
+
if (R.isKeyOf(v, L))
|
|
2987
|
+
x(v, d, h, w, p, g);
|
|
2988
|
+
else if (R.isKeyOf(v, me))
|
|
2989
|
+
m(d, h, [...w, v], p, g);
|
|
2990
|
+
else if (R.isKeyOf(v, W)) {
|
|
2991
|
+
if (Array.isArray(d)) {
|
|
2992
|
+
const [N, F] = d;
|
|
2993
|
+
m(F, h, [...w, v], p, g);
|
|
2858
2994
|
}
|
|
2859
|
-
|
|
2860
|
-
} else
|
|
2861
|
-
m(
|
|
2862
|
-
}) :
|
|
2995
|
+
R.isObject(d) && m(d, h, [...w, v], p, g);
|
|
2996
|
+
} else R.isKeyOf(v, D) ? m(d, h, w, v, g) : R.isKeyOf(v, P) ? Object.entries(d).forEach(([N, F]) => {
|
|
2997
|
+
m(F, h, [...w, P[v]], p, N);
|
|
2998
|
+
}) : R.isKeyOf(v, ie) && Object.entries(d).forEach(([N, F]) => {
|
|
2863
2999
|
const $ = [...w, ie[v]];
|
|
2864
|
-
Object.entries(
|
|
2865
|
-
|
|
3000
|
+
Object.entries(F).forEach(([V, O]) => {
|
|
3001
|
+
R.isKeyOf(V, P) ? Object.entries(O).forEach(([M, E]) => {
|
|
2866
3002
|
m(
|
|
2867
|
-
|
|
3003
|
+
E,
|
|
2868
3004
|
h,
|
|
2869
3005
|
[...$, P[V]],
|
|
2870
3006
|
p,
|
|
2871
3007
|
// Use | as separator to distinguish theme from group name
|
|
2872
|
-
`${
|
|
3008
|
+
`${N}|${M}`
|
|
2873
3009
|
);
|
|
2874
|
-
}) : m({ [V]: O }, h, $, p,
|
|
3010
|
+
}) : m({ [V]: O }, h, $, p, N);
|
|
2875
3011
|
});
|
|
2876
3012
|
});
|
|
2877
3013
|
});
|
|
2878
3014
|
}
|
|
2879
3015
|
e.addClassNames = m;
|
|
2880
3016
|
function f() {
|
|
2881
|
-
const b =
|
|
3017
|
+
const b = i.hasPendingVariables();
|
|
2882
3018
|
if (!r && !b) return;
|
|
2883
3019
|
console.debug("\x1B[36m%s\x1B[0m", "[react-box]: flush");
|
|
2884
|
-
const h =
|
|
2885
|
-
if (
|
|
2886
|
-
if (
|
|
2887
|
-
const p =
|
|
3020
|
+
const h = q(), w = h.sheet;
|
|
3021
|
+
if (a) {
|
|
3022
|
+
if (i.hasPendingVariables()) {
|
|
3023
|
+
const p = i.getPendingVariables(), g = `:root{${Object.entries(p).map(([v, d]) => `--${v}: ${d};`).join("")}}`;
|
|
2888
3024
|
if (w && !H)
|
|
2889
3025
|
try {
|
|
2890
|
-
w.insertRule(g, 0),
|
|
3026
|
+
w.insertRule(g, 0), u++;
|
|
2891
3027
|
} catch {
|
|
2892
3028
|
}
|
|
2893
3029
|
else
|
|
@@ -2896,7 +3032,7 @@ var B;
|
|
|
2896
3032
|
}
|
|
2897
3033
|
} else {
|
|
2898
3034
|
const p = [
|
|
2899
|
-
`:root{${
|
|
3035
|
+
`:root{${i.generateVariables()}}`,
|
|
2900
3036
|
":root{--borderColor: black;--outlineColor: black;--lineHeight: 1.2;--fontSize: 14px;--transitionTime: 0.25s;--svgTransitionTime: 0.3s;}",
|
|
2901
3037
|
"#crono-box {position: absolute;top: 0;left: 0;height: 0;z-index:99999;}",
|
|
2902
3038
|
"html{font-size: 16px;font-family: Arial, sans-serif;}",
|
|
@@ -2912,28 +3048,28 @@ var B;
|
|
|
2912
3048
|
if (w && !H)
|
|
2913
3049
|
for (const g of p)
|
|
2914
3050
|
try {
|
|
2915
|
-
w.insertRule(g,
|
|
3051
|
+
w.insertRule(g, u), u++;
|
|
2916
3052
|
} catch {
|
|
2917
3053
|
}
|
|
2918
3054
|
else
|
|
2919
3055
|
h.textContent = p.join(`
|
|
2920
3056
|
`);
|
|
2921
|
-
|
|
3057
|
+
a = !0;
|
|
2922
3058
|
}
|
|
2923
3059
|
if (t.length > 0) {
|
|
2924
3060
|
if (t.sort((p, g) => p[1] - g[1] || p[0] - g[0]), w && !H)
|
|
2925
3061
|
for (const [p, g, v] of t) {
|
|
2926
|
-
const
|
|
2927
|
-
let
|
|
2928
|
-
for (let
|
|
2929
|
-
if (
|
|
2930
|
-
|
|
3062
|
+
const d = g * 1e5 + p;
|
|
3063
|
+
let N = n.length;
|
|
3064
|
+
for (let F = 0; F < n.length; F++)
|
|
3065
|
+
if (d < n[F]) {
|
|
3066
|
+
N = F;
|
|
2931
3067
|
break;
|
|
2932
3068
|
}
|
|
2933
3069
|
try {
|
|
2934
|
-
w.insertRule(v,
|
|
3070
|
+
w.insertRule(v, u + N), n.splice(N, 0, d);
|
|
2935
3071
|
} catch {
|
|
2936
|
-
w.insertRule(v, w.cssRules.length), n.push(
|
|
3072
|
+
w.insertRule(v, w.cssRules.length), n.push(d);
|
|
2937
3073
|
}
|
|
2938
3074
|
}
|
|
2939
3075
|
else
|
|
@@ -2944,9 +3080,9 @@ var B;
|
|
|
2944
3080
|
}
|
|
2945
3081
|
e.flush = f;
|
|
2946
3082
|
function y(b, h, w, p, g) {
|
|
2947
|
-
const
|
|
2948
|
-
if (!
|
|
2949
|
-
const
|
|
3083
|
+
const d = L[b].find((V) => Array.isArray(V.values) ? V.values.includes(h) : typeof h == typeof V.values);
|
|
3084
|
+
if (!d) return null;
|
|
3085
|
+
const N = c[b] ?? 0, F = D[p] ?? 0, $ = C(
|
|
2950
3086
|
b,
|
|
2951
3087
|
h,
|
|
2952
3088
|
w,
|
|
@@ -2954,41 +3090,41 @@ var B;
|
|
|
2954
3090
|
g
|
|
2955
3091
|
);
|
|
2956
3092
|
if (g) {
|
|
2957
|
-
const V =
|
|
3093
|
+
const V = X[w], O = V.includes("theme"), E = (O ? V.filter((j) => j !== "theme") : V).map((j) => K[j]).join(""), G = g.includes("|");
|
|
2958
3094
|
let A;
|
|
2959
|
-
if (
|
|
2960
|
-
const [
|
|
2961
|
-
A = `.${
|
|
2962
|
-
} else O ? A = `.${g} .${$}${
|
|
2963
|
-
const he =
|
|
2964
|
-
return p !== "normal" ? { rule: `@media(min-width: ${D[p]}px){${ne}}`, sortIndex:
|
|
3095
|
+
if (G) {
|
|
3096
|
+
const [j, Ce] = g.split("|");
|
|
3097
|
+
A = `.${j} .${Ce}${E} .${$}`;
|
|
3098
|
+
} else O ? A = `.${g} .${$}${E}` : A = `.${g}${E} .${$}`;
|
|
3099
|
+
const he = d.selector?.(A, "") ?? A, ve = Array.isArray(d.styleName) ? d.styleName : [d.styleName ?? b], pe = d.valueFormat?.(h, i.getVariableValue) ?? h, ne = `${he}{${ve.map((j) => `${j}:${pe}`).join(";")}}`;
|
|
3100
|
+
return p !== "normal" ? { rule: `@media(min-width: ${D[p]}px){${ne}}`, sortIndex: N, breakpointOrder: F } : { rule: ne, sortIndex: N, breakpointOrder: F };
|
|
2965
3101
|
} else {
|
|
2966
|
-
const V =
|
|
2967
|
-
return p !== "normal" ? { rule: `@media(min-width: ${D[p]}px){${
|
|
3102
|
+
const V = X[w].map((A) => K[A]).join(""), O = d.selector?.(`.${$}`, V) ?? `.${$}${V}`, M = Array.isArray(d.styleName) ? d.styleName : [d.styleName ?? b], E = d.valueFormat?.(h, i.getVariableValue) ?? h, G = `${O}{${M.map((A) => `${A}:${E}`).join(";")}}`;
|
|
3103
|
+
return p !== "normal" ? { rule: `@media(min-width: ${D[p]}px){${G}}`, sortIndex: N, breakpointOrder: F } : { rule: G, sortIndex: N, breakpointOrder: F };
|
|
2968
3104
|
}
|
|
2969
3105
|
}
|
|
2970
|
-
function
|
|
2971
|
-
|
|
3106
|
+
function z() {
|
|
3107
|
+
s = {}, l.clear(), t.length = 0, n.length = 0, u = 0, a = !1;
|
|
2972
3108
|
}
|
|
2973
|
-
e.clear =
|
|
3109
|
+
e.clear = z;
|
|
2974
3110
|
function x(b, h, w, p, g = "normal", v) {
|
|
2975
3111
|
if (h == null) return;
|
|
2976
|
-
const
|
|
2977
|
-
if (!
|
|
2978
|
-
|
|
2979
|
-
const $ = y(b, h,
|
|
2980
|
-
$ && (t.push([$.sortIndex, $.breakpointOrder, $.rule]), r = !0),
|
|
3112
|
+
const d = p.reduce(($, V) => $ + ye[V], 0), N = C(b, h, d, g, v), F = `${g}-${d}-${b}-${h}-${v ?? ""}`;
|
|
3113
|
+
if (!l.has(F)) {
|
|
3114
|
+
l.add(F);
|
|
3115
|
+
const $ = y(b, h, d, g, v);
|
|
3116
|
+
$ && (t.push([$.sortIndex, $.breakpointOrder, $.rule]), r = !0), s[g] ? s[g][d] ? s[g][d][b] || (s[g][d][b] = /* @__PURE__ */ new Set()) : s[g][d] = { [b]: /* @__PURE__ */ new Set() } : s[g] = { [d]: { [b]: /* @__PURE__ */ new Set() } }, v ? (s[g][d].__parents ? s[g][d].__parents[v] ? s[g][d].__parents[v][b] || (s[g][d].__parents[v][b] = /* @__PURE__ */ new Set()) : s[g][d].__parents[v] = { [b]: /* @__PURE__ */ new Set() } : s[g][d].__parents = { [v]: { [b]: /* @__PURE__ */ new Set() } }, s[g][d].__parents[v][b].add(h)) : s[g][d][b].add(h);
|
|
2981
3117
|
}
|
|
2982
|
-
w.push(
|
|
3118
|
+
w.push(N);
|
|
2983
3119
|
}
|
|
2984
3120
|
function C(b, h, w, p, g) {
|
|
2985
|
-
const v =
|
|
2986
|
-
return H ?
|
|
3121
|
+
const v = X[w], d = `${p === "normal" ? "" : `${p}-`}${v.map((N) => `${N}-`).join("")}${g ? `${g}-` : ""}${b}-${h}`;
|
|
3122
|
+
return H ? d : Ae.getIdentity(d);
|
|
2987
3123
|
}
|
|
2988
|
-
const
|
|
2989
|
-
function
|
|
2990
|
-
let b = document.getElementById(
|
|
2991
|
-
return b || (b = document.createElement("style"), b.setAttribute("id",
|
|
3124
|
+
const k = "crono-styles";
|
|
3125
|
+
function q() {
|
|
3126
|
+
let b = document.getElementById(k);
|
|
3127
|
+
return b || (b = document.createElement("style"), b.setAttribute("id", k), b.setAttribute("type", "text/css"), document.head.insertBefore(b, document.head.firstChild)), b;
|
|
2992
3128
|
}
|
|
2993
3129
|
})(B || (B = {}));
|
|
2994
3130
|
var ue;
|
|
@@ -3006,12 +3142,12 @@ Array.prototype.add || (Array.prototype.add = function(...e) {
|
|
|
3006
3142
|
return r.push(...e), r;
|
|
3007
3143
|
});
|
|
3008
3144
|
Array.prototype.sumBy || (Array.prototype.sumBy = function(e, r = 0) {
|
|
3009
|
-
return this.reduce((
|
|
3145
|
+
return this.reduce((a, l, t) => a + e(l, t), r);
|
|
3010
3146
|
});
|
|
3011
3147
|
Array.prototype.sortBy || (Array.prototype.sortBy = function(e, r) {
|
|
3012
|
-
return [...this].sort((
|
|
3013
|
-
const n = e(
|
|
3014
|
-
return n <
|
|
3148
|
+
return [...this].sort((l, t) => {
|
|
3149
|
+
const n = e(l), u = e(t);
|
|
3150
|
+
return n < u ? r === "DESC" ? 1 : -1 : n > u ? r === "DESC" ? -1 : 1 : 0;
|
|
3015
3151
|
});
|
|
3016
3152
|
});
|
|
3017
3153
|
Array.prototype.maxBy || (Array.prototype.maxBy = function(e) {
|
|
@@ -3024,54 +3160,54 @@ Array.prototype.findOrThrow || (Array.prototype.findOrThrow = function(e) {
|
|
|
3024
3160
|
});
|
|
3025
3161
|
Array.prototype.toRecord || (Array.prototype.toRecord = function(e) {
|
|
3026
3162
|
return this.reduce(
|
|
3027
|
-
(r,
|
|
3028
|
-
const
|
|
3029
|
-
if (!
|
|
3030
|
-
const [t, n] =
|
|
3163
|
+
(r, a) => {
|
|
3164
|
+
const l = e(a);
|
|
3165
|
+
if (!l) return r;
|
|
3166
|
+
const [t, n] = l;
|
|
3031
3167
|
return r[t] = n, r;
|
|
3032
3168
|
},
|
|
3033
3169
|
{}
|
|
3034
3170
|
);
|
|
3035
3171
|
});
|
|
3036
3172
|
Array.prototype.groupBy || (Array.prototype.groupBy = function(e, r = !1) {
|
|
3037
|
-
const
|
|
3038
|
-
const
|
|
3039
|
-
return r && typeof
|
|
3173
|
+
const a = this.reduce((l, t, n) => {
|
|
3174
|
+
const u = e(t, n);
|
|
3175
|
+
return r && typeof u != "number" && !u || (l.has(u) === !1 && l.set(u, []), l.get(u)?.push(t)), l;
|
|
3040
3176
|
}, /* @__PURE__ */ new Map());
|
|
3041
|
-
return Array.from(
|
|
3177
|
+
return Array.from(a, ([l, t]) => ({ key: l, values: t }));
|
|
3042
3178
|
});
|
|
3043
|
-
function
|
|
3044
|
-
const { node: r = null, event:
|
|
3179
|
+
function Me(e) {
|
|
3180
|
+
const { node: r = null, event: a = "click", hideOnScroll: l = !1, hideOnResize: t = !1, hideOnEscape: n = !0 } = e ?? {}, [u, c] = de(!1), s = Ne(null);
|
|
3045
3181
|
return ge(() => {
|
|
3046
3182
|
function m(C) {
|
|
3047
|
-
(r ??
|
|
3183
|
+
(r ?? s.current)?.contains(C.target) === !1 && c(!1);
|
|
3048
3184
|
}
|
|
3049
3185
|
function f() {
|
|
3050
|
-
|
|
3186
|
+
c(!1);
|
|
3051
3187
|
}
|
|
3052
3188
|
function y(C) {
|
|
3053
|
-
(r ??
|
|
3189
|
+
(r ?? s.current)?.contains(C.target) === !1 && c(!1);
|
|
3054
3190
|
}
|
|
3055
|
-
function
|
|
3056
|
-
C.key === "Escape" &&
|
|
3191
|
+
function z(C) {
|
|
3192
|
+
C.key === "Escape" && c(!1);
|
|
3057
3193
|
}
|
|
3058
3194
|
const x = new AbortController();
|
|
3059
|
-
return
|
|
3195
|
+
return u && (window.addEventListener(a, m, x), n && window.addEventListener("keydown", z, x), t && window.addEventListener("resize", f, x), l && window.addEventListener("scroll", y, { signal: x.signal, capture: !0 })), () => {
|
|
3060
3196
|
x.abort();
|
|
3061
3197
|
};
|
|
3062
|
-
}, [r,
|
|
3198
|
+
}, [r, u]), [u, c, s];
|
|
3063
3199
|
}
|
|
3064
|
-
const
|
|
3200
|
+
const je = {
|
|
3065
3201
|
selected: "aria-selected"
|
|
3066
3202
|
};
|
|
3067
3203
|
var ce;
|
|
3068
3204
|
((e) => {
|
|
3069
|
-
function r(
|
|
3070
|
-
|
|
3205
|
+
function r(a, l, t) {
|
|
3206
|
+
a !== void 0 && a != null && (t[je[l] ?? l] = Array.isArray(a) ? a[0] : a);
|
|
3071
3207
|
}
|
|
3072
3208
|
e.assignBooleanProp = r;
|
|
3073
3209
|
})(ce || (ce = {}));
|
|
3074
|
-
function
|
|
3210
|
+
function Ge(e) {
|
|
3075
3211
|
let r;
|
|
3076
3212
|
return Object.defineProperty({
|
|
3077
3213
|
clear() {
|
|
@@ -3084,36 +3220,36 @@ function Me(e) {
|
|
|
3084
3220
|
function Ie(e, r) {
|
|
3085
3221
|
if (!e) return { score: 1, matches: [] };
|
|
3086
3222
|
if (!r) return null;
|
|
3087
|
-
const
|
|
3223
|
+
const a = e.toLowerCase(), l = r.toLowerCase();
|
|
3088
3224
|
let t = 0, n = 0;
|
|
3089
|
-
const
|
|
3090
|
-
let
|
|
3091
|
-
for (; t <
|
|
3092
|
-
|
|
3093
|
-
return
|
|
3225
|
+
const u = [];
|
|
3226
|
+
let c = -1, s = 0, m = 0;
|
|
3227
|
+
for (; t < a.length && n < l.length; )
|
|
3228
|
+
a[t] === l[n] ? (c === -1 && (c = n), t++, m++, s += m, (n === 0 || /\s|_|-/.test(r[n - 1])) && (s += 5), e[t - 1] === r[n] && (s += 1)) : (c !== -1 && (u.push([c, n]), c = -1), m = 0), n++;
|
|
3229
|
+
return c !== -1 && u.push([c, n]), t < a.length ? null : (s = s / r.length, { score: s, matches: u });
|
|
3094
3230
|
}
|
|
3095
3231
|
function Pe(e, r) {
|
|
3096
3232
|
return Ie(e, r) !== null;
|
|
3097
3233
|
}
|
|
3098
|
-
var
|
|
3234
|
+
var te;
|
|
3099
3235
|
((e) => {
|
|
3100
|
-
function r(
|
|
3236
|
+
function r(a, l = 300) {
|
|
3101
3237
|
let t = !1, n;
|
|
3102
|
-
return (...
|
|
3238
|
+
return (...u) => {
|
|
3103
3239
|
if (t) {
|
|
3104
|
-
n =
|
|
3240
|
+
n = u;
|
|
3105
3241
|
return;
|
|
3106
3242
|
}
|
|
3107
|
-
|
|
3108
|
-
t = !1, n &&
|
|
3109
|
-
},
|
|
3243
|
+
a(...u), t = !0, setTimeout(() => {
|
|
3244
|
+
t = !1, n && a(...n);
|
|
3245
|
+
}, l);
|
|
3110
3246
|
};
|
|
3111
3247
|
}
|
|
3112
3248
|
e.throttle = r;
|
|
3113
|
-
})(
|
|
3114
|
-
const De =
|
|
3249
|
+
})(te || (te = {}));
|
|
3250
|
+
const De = te;
|
|
3115
3251
|
function Ue(e) {
|
|
3116
|
-
return /* @__PURE__ */
|
|
3252
|
+
return /* @__PURE__ */ S(T, { viewBox: "4 2 16 18", width: "1rem", fill: "currentColor", ...e, children: /* @__PURE__ */ S(
|
|
3117
3253
|
"path",
|
|
3118
3254
|
{
|
|
3119
3255
|
fillRule: "evenodd",
|
|
@@ -3124,25 +3260,25 @@ function Ue(e) {
|
|
|
3124
3260
|
}
|
|
3125
3261
|
const _ = /* @__PURE__ */ new Map();
|
|
3126
3262
|
function We() {
|
|
3127
|
-
const [e] =
|
|
3128
|
-
const
|
|
3129
|
-
let
|
|
3130
|
-
return
|
|
3263
|
+
const [e] = Se.useTheme(), r = le(() => {
|
|
3264
|
+
const a = "crono-box";
|
|
3265
|
+
let l = document.getElementById(a);
|
|
3266
|
+
return l || (l = document.createElement("div"), l.id = a, document.body.appendChild(l)), l;
|
|
3131
3267
|
}, []);
|
|
3132
|
-
return
|
|
3268
|
+
return U(() => {
|
|
3133
3269
|
if (!e) return;
|
|
3134
|
-
const
|
|
3135
|
-
return _.set(e,
|
|
3270
|
+
const a = _.get(e) ?? 0;
|
|
3271
|
+
return _.set(e, a + 1), a === 0 && r.classList.add(e), () => {
|
|
3136
3272
|
const t = (_.get(e) ?? 1) - 1;
|
|
3137
3273
|
t <= 0 ? (_.delete(e), r.classList.remove(e)) : _.set(e, t);
|
|
3138
3274
|
};
|
|
3139
3275
|
}, [r, e]), r;
|
|
3140
3276
|
}
|
|
3141
3277
|
function Ke(e) {
|
|
3142
|
-
return /* @__PURE__ */
|
|
3278
|
+
return /* @__PURE__ */ S(T, { ...e, children: /* @__PURE__ */ S("path", { d: "M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z" }) });
|
|
3143
3279
|
}
|
|
3144
3280
|
function qe(e) {
|
|
3145
|
-
return /* @__PURE__ */
|
|
3281
|
+
return /* @__PURE__ */ S(T, { viewBox: "0 0 16 16", width: "18", ...e, children: /* @__PURE__ */ S(
|
|
3146
3282
|
"path",
|
|
3147
3283
|
{
|
|
3148
3284
|
strokeWidth: 4,
|
|
@@ -3151,84 +3287,84 @@ function qe(e) {
|
|
|
3151
3287
|
) });
|
|
3152
3288
|
}
|
|
3153
3289
|
function Xe(e) {
|
|
3154
|
-
return /* @__PURE__ */
|
|
3290
|
+
return /* @__PURE__ */ S(T, { viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ S("path", { d: "M3 5h8v2H3V5zm0 6h8v2H3v-2zm0 6h8v2H3v-2zm12-12h6v6h-6V5zm1 1v4h4V6h-4zm-1 7h6v6h-6v-6zm1 1v4h4v-4h-4z" }) });
|
|
3155
3291
|
}
|
|
3156
3292
|
function Ye(e) {
|
|
3157
|
-
return /* @__PURE__ */
|
|
3293
|
+
return /* @__PURE__ */ S(T, { viewBox: "0 0 1024 1024", ...e, children: /* @__PURE__ */ S("path", { d: "M31.997 1023.957a31.699 31.699 0 0 1-22.611-9.386C3.328 1008.556 0 1000.493 0 991.96s3.328-16.596 9.386-22.611L328.25 650.484l-152.52-152.52a95.907 95.907 0 0 1-25.087-92.152 95.31 95.31 0 0 1 44.327-58.62l.896-.512a353.464 353.464 0 0 1 176.156-47.398c20.137 0 40.36 1.749 60.283 5.205L597.71 44.54A95.224 95.224 0 0 1 678.685.085c25.64 0 49.745 9.983 67.877 28.073l249.195 249.195a95.224 95.224 0 0 1 25.897 88.74 95.139 95.139 0 0 1-42.152 60.154L719.513 591.695a352.227 352.227 0 0 1-42.663 237.292A95.395 95.395 0 0 1 594 876.514a95.523 95.523 0 0 1-67.963-28.2L373.43 695.706 54.61 1014.614a31.912 31.912 0 0 1-22.612 9.343zm340.025-660.68c-50.64 0-100.685 13.566-144.798 39.207a31.57 31.57 0 0 0-14.676 19.497 31.699 31.699 0 0 0 8.362 30.675L571.344 803.09c6.059 6.059 14.122 9.386 22.697 9.386a31.699 31.699 0 0 0 27.56-15.785 287.421 287.421 0 0 0 31.06-212.676 31.997 31.997 0 0 1 13.907-34.471l278.59-177.266a31.57 31.57 0 0 0 14.037-20.051 31.699 31.699 0 0 0-8.618-29.566l-249.28-249.28a31.912 31.912 0 0 0-49.618 5.418l-177.308 278.59a31.827 31.827 0 0 1-34.472 13.908 293.778 293.778 0 0 0-67.877-8.02z" }) });
|
|
3158
3294
|
}
|
|
3159
|
-
var
|
|
3295
|
+
var oe;
|
|
3160
3296
|
((e) => {
|
|
3161
|
-
function r(
|
|
3162
|
-
return
|
|
3297
|
+
function r(a) {
|
|
3298
|
+
return a.charAt(0).toUpperCase() + a.slice(1);
|
|
3163
3299
|
}
|
|
3164
3300
|
e.capitalize = r;
|
|
3165
|
-
})(
|
|
3166
|
-
const Ze =
|
|
3167
|
-
function
|
|
3168
|
-
return /* @__PURE__ */
|
|
3301
|
+
})(oe || (oe = {}));
|
|
3302
|
+
const Ze = oe;
|
|
3303
|
+
function Qe(e) {
|
|
3304
|
+
return /* @__PURE__ */ S(T, { viewBox: "0 0 488.4 488.4", ...e, children: /* @__PURE__ */ S("path", { d: "M0 203.25c0 112.1 91.2 203.2 203.2 203.2 51.6 0 98.8-19.4 134.7-51.2l129.5 129.5c2.4 2.4 5.5 3.6 8.7 3.6s6.3-1.2 8.7-3.6c4.8-4.8 4.8-12.5 0-17.3l-129.6-129.5c31.8-35.9 51.2-83 51.2-134.7C406.4 91.15 315.2.05 203.2.05S0 91.15 0 203.25zm381.9 0c0 98.5-80.2 178.7-178.7 178.7s-178.7-80.2-178.7-178.7 80.2-178.7 178.7-178.7 178.7 80.1 178.7 178.7z" }) });
|
|
3169
3305
|
}
|
|
3170
|
-
var
|
|
3306
|
+
var ae;
|
|
3171
3307
|
((e) => {
|
|
3172
|
-
function r(
|
|
3173
|
-
const t = Array.from(
|
|
3174
|
-
(n,
|
|
3175
|
-
const
|
|
3176
|
-
return
|
|
3308
|
+
function r(l) {
|
|
3309
|
+
const t = Array.from(l.elements).reduce(
|
|
3310
|
+
(n, u) => {
|
|
3311
|
+
const c = u.name;
|
|
3312
|
+
return c && (n[c] || (n[c] = []), n[c].push(u)), n;
|
|
3177
3313
|
},
|
|
3178
3314
|
{}
|
|
3179
3315
|
);
|
|
3180
|
-
return Object.entries(t).reduce((n, [
|
|
3181
|
-
if (
|
|
3182
|
-
const
|
|
3183
|
-
|
|
3316
|
+
return Object.entries(t).reduce((n, [u, c]) => {
|
|
3317
|
+
if (c.length === 1) {
|
|
3318
|
+
const s = c[0];
|
|
3319
|
+
a(n, u, s.type === "checkbox" || s.type === "radio" ? s.checked : s.value);
|
|
3184
3320
|
} else {
|
|
3185
|
-
const
|
|
3186
|
-
|
|
3321
|
+
const s = c.reduce((m, f) => (f.type === "checkbox" || f.type === "radio" ? f.checked && m.push(f.value) : m.push(f.value), m), []);
|
|
3322
|
+
a(n, u, s);
|
|
3187
3323
|
}
|
|
3188
3324
|
return n;
|
|
3189
3325
|
}, {});
|
|
3190
3326
|
}
|
|
3191
3327
|
e.getFormEntries = r;
|
|
3192
|
-
function l
|
|
3328
|
+
function a(l, t, n) {
|
|
3193
3329
|
if (t.includes(".")) {
|
|
3194
|
-
const
|
|
3195
|
-
let
|
|
3196
|
-
|
|
3197
|
-
if (
|
|
3198
|
-
const f =
|
|
3330
|
+
const u = t.split(".");
|
|
3331
|
+
let c = l;
|
|
3332
|
+
u.forEach((s, m) => {
|
|
3333
|
+
if (u.length > m + 1) {
|
|
3334
|
+
const f = s.match(/^(.+)\[(\d)\]$/);
|
|
3199
3335
|
if (f) {
|
|
3200
|
-
const [, y,
|
|
3201
|
-
|
|
3336
|
+
const [, y, z] = f;
|
|
3337
|
+
c[y] = c[y] || [], c[y][z] = c[y][z] || {}, c = c[y][z];
|
|
3202
3338
|
} else
|
|
3203
|
-
|
|
3339
|
+
c[s] = c[s] || {}, c = c[s];
|
|
3204
3340
|
} else
|
|
3205
|
-
|
|
3341
|
+
c[s] = n;
|
|
3206
3342
|
});
|
|
3207
3343
|
} else
|
|
3208
|
-
|
|
3344
|
+
l[t] = n;
|
|
3209
3345
|
}
|
|
3210
|
-
})(
|
|
3211
|
-
const
|
|
3346
|
+
})(ae || (ae = {}));
|
|
3347
|
+
const Je = ae;
|
|
3212
3348
|
export {
|
|
3213
3349
|
ce as B,
|
|
3214
3350
|
qe as D,
|
|
3215
3351
|
Ue as E,
|
|
3216
3352
|
De as F,
|
|
3217
3353
|
Xe as G,
|
|
3218
|
-
|
|
3354
|
+
R as O,
|
|
3219
3355
|
Ye as P,
|
|
3220
3356
|
Ke as S,
|
|
3221
|
-
|
|
3222
|
-
|
|
3357
|
+
Se as T,
|
|
3358
|
+
i as V,
|
|
3223
3359
|
$e as a,
|
|
3224
|
-
|
|
3360
|
+
Me as b,
|
|
3225
3361
|
fe as c,
|
|
3226
|
-
|
|
3227
|
-
|
|
3362
|
+
Qe as d,
|
|
3363
|
+
Je as e,
|
|
3228
3364
|
Pe as f,
|
|
3229
3365
|
Ze as g,
|
|
3230
3366
|
We as h,
|
|
3231
3367
|
ue as i,
|
|
3232
|
-
|
|
3368
|
+
Ge as m,
|
|
3233
3369
|
He as u
|
|
3234
3370
|
};
|