@cronocode/react-box 3.1.11 → 3.1.12
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/core/boxStyles.d.ts +4 -2
- package/core.cjs +1 -1
- package/core.mjs +163 -162
- package/package.json +1 -1
package/core.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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
|
|
2
|
+
import { jsx as $ } from "react/jsx-runtime";
|
|
3
3
|
import T from "./components/baseSvg.mjs";
|
|
4
4
|
import Fe from "./box.mjs";
|
|
5
5
|
function fe(...e) {
|
|
@@ -44,10 +44,10 @@ var a;
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
r.widthHeight = n;
|
|
47
|
-
function
|
|
47
|
+
function i(x) {
|
|
48
48
|
return (C, R) => `var(--${x}${R});`;
|
|
49
49
|
}
|
|
50
|
-
r.variables =
|
|
50
|
+
r.variables = i;
|
|
51
51
|
function c(x) {
|
|
52
52
|
return (C, R) => `var(--${x}${R});`;
|
|
53
53
|
}
|
|
@@ -403,10 +403,10 @@ var Z;
|
|
|
403
403
|
none: "none"
|
|
404
404
|
}, ...e.colors, ...e.bgImages, ...e.shadows }, o = {}, t = {};
|
|
405
405
|
let n = {};
|
|
406
|
-
function
|
|
406
|
+
function i(y) {
|
|
407
407
|
return y in o || (y in n ? (t[y] = n[y], o[y] = n[y]) : y in l ? (t[y] = l[y], o[y] = l[y]) : (t[y] = y, o[y] = y)), `var(--${y})`;
|
|
408
408
|
}
|
|
409
|
-
e.getVariableValue =
|
|
409
|
+
e.getVariableValue = i;
|
|
410
410
|
function c() {
|
|
411
411
|
return Object.entries(o).map(([y, z]) => `--${y}: ${z};`).join("");
|
|
412
412
|
}
|
|
@@ -425,7 +425,7 @@ var Z;
|
|
|
425
425
|
}
|
|
426
426
|
e.setUserVariables = f;
|
|
427
427
|
})(Z || (Z = {}));
|
|
428
|
-
const
|
|
428
|
+
const s = 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,15 +580,15 @@ const i = Z, L = {
|
|
|
580
580
|
valueFormat: a.Value.rem
|
|
581
581
|
},
|
|
582
582
|
{
|
|
583
|
-
values:
|
|
583
|
+
values: s.percentages,
|
|
584
584
|
valueFormat: a.Value.fraction
|
|
585
585
|
},
|
|
586
586
|
{
|
|
587
|
-
values:
|
|
587
|
+
values: s.negativePercentages,
|
|
588
588
|
valueFormat: a.Value.fraction
|
|
589
589
|
},
|
|
590
590
|
{
|
|
591
|
-
values:
|
|
591
|
+
values: s.percentString
|
|
592
592
|
}
|
|
593
593
|
],
|
|
594
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. */
|
|
@@ -598,15 +598,15 @@ const i = Z, L = {
|
|
|
598
598
|
valueFormat: a.Value.rem
|
|
599
599
|
},
|
|
600
600
|
{
|
|
601
|
-
values:
|
|
601
|
+
values: s.percentages,
|
|
602
602
|
valueFormat: a.Value.fraction
|
|
603
603
|
},
|
|
604
604
|
{
|
|
605
|
-
values:
|
|
605
|
+
values: s.negativePercentages,
|
|
606
606
|
valueFormat: a.Value.fraction
|
|
607
607
|
},
|
|
608
608
|
{
|
|
609
|
-
values:
|
|
609
|
+
values: s.percentString
|
|
610
610
|
}
|
|
611
611
|
],
|
|
612
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. */
|
|
@@ -616,15 +616,15 @@ const i = Z, L = {
|
|
|
616
616
|
valueFormat: a.Value.rem
|
|
617
617
|
},
|
|
618
618
|
{
|
|
619
|
-
values:
|
|
619
|
+
values: s.percentages,
|
|
620
620
|
valueFormat: a.Value.fraction
|
|
621
621
|
},
|
|
622
622
|
{
|
|
623
|
-
values:
|
|
623
|
+
values: s.negativePercentages,
|
|
624
624
|
valueFormat: a.Value.fraction
|
|
625
625
|
},
|
|
626
626
|
{
|
|
627
|
-
values:
|
|
627
|
+
values: s.percentString
|
|
628
628
|
}
|
|
629
629
|
],
|
|
630
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. */
|
|
@@ -634,15 +634,15 @@ const i = Z, L = {
|
|
|
634
634
|
valueFormat: a.Value.rem
|
|
635
635
|
},
|
|
636
636
|
{
|
|
637
|
-
values:
|
|
637
|
+
values: s.percentages,
|
|
638
638
|
valueFormat: a.Value.fraction
|
|
639
639
|
},
|
|
640
640
|
{
|
|
641
|
-
values:
|
|
641
|
+
values: s.negativePercentages,
|
|
642
642
|
valueFormat: a.Value.fraction
|
|
643
643
|
},
|
|
644
644
|
{
|
|
645
|
-
values:
|
|
645
|
+
values: s.percentString
|
|
646
646
|
}
|
|
647
647
|
],
|
|
648
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. */
|
|
@@ -652,7 +652,7 @@ const i = Z, L = {
|
|
|
652
652
|
valueFormat: a.Value.rem
|
|
653
653
|
},
|
|
654
654
|
{
|
|
655
|
-
values:
|
|
655
|
+
values: s.percentString
|
|
656
656
|
}
|
|
657
657
|
],
|
|
658
658
|
/** The `box-sizing` CSS property sets how the total width and height of an element is calculated. */
|
|
@@ -859,7 +859,7 @@ const i = Z, L = {
|
|
|
859
859
|
valueFormat: a.Value.rem
|
|
860
860
|
},
|
|
861
861
|
{
|
|
862
|
-
values:
|
|
862
|
+
values: s.percentString
|
|
863
863
|
}
|
|
864
864
|
],
|
|
865
865
|
/** The row-gap CSS property sets the size of the gap (gutter) between an element's rows. */
|
|
@@ -871,7 +871,7 @@ const i = Z, L = {
|
|
|
871
871
|
},
|
|
872
872
|
{
|
|
873
873
|
styleName: "row-gap",
|
|
874
|
-
values:
|
|
874
|
+
values: s.percentString
|
|
875
875
|
}
|
|
876
876
|
],
|
|
877
877
|
/** The column-gap CSS property sets the size of the gap (gutter) between an element's columns. */
|
|
@@ -883,7 +883,7 @@ const i = Z, L = {
|
|
|
883
883
|
},
|
|
884
884
|
{
|
|
885
885
|
styleName: "column-gap",
|
|
886
|
-
values:
|
|
886
|
+
values: s.percentString
|
|
887
887
|
}
|
|
888
888
|
],
|
|
889
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. */
|
|
@@ -905,14 +905,14 @@ const i = Z, L = {
|
|
|
905
905
|
valueFormat: () => "100vh"
|
|
906
906
|
},
|
|
907
907
|
{
|
|
908
|
-
values:
|
|
908
|
+
values: s.percentages,
|
|
909
909
|
valueFormat: a.Value.fraction
|
|
910
910
|
},
|
|
911
911
|
{
|
|
912
912
|
values: ["auto", "fit-content", "max-content", "min-content"]
|
|
913
913
|
},
|
|
914
914
|
{
|
|
915
|
-
values:
|
|
915
|
+
values: s.percentString
|
|
916
916
|
}
|
|
917
917
|
],
|
|
918
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. */
|
|
@@ -930,7 +930,7 @@ const i = Z, L = {
|
|
|
930
930
|
},
|
|
931
931
|
{
|
|
932
932
|
styleName: "min-height",
|
|
933
|
-
values:
|
|
933
|
+
values: s.percentages,
|
|
934
934
|
valueFormat: a.Value.fraction
|
|
935
935
|
},
|
|
936
936
|
{
|
|
@@ -939,7 +939,7 @@ const i = Z, L = {
|
|
|
939
939
|
},
|
|
940
940
|
{
|
|
941
941
|
styleName: "min-height",
|
|
942
|
-
values:
|
|
942
|
+
values: s.percentString
|
|
943
943
|
}
|
|
944
944
|
],
|
|
945
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. */
|
|
@@ -957,7 +957,7 @@ const i = Z, L = {
|
|
|
957
957
|
},
|
|
958
958
|
{
|
|
959
959
|
styleName: "max-height",
|
|
960
|
-
values:
|
|
960
|
+
values: s.percentages,
|
|
961
961
|
valueFormat: a.Value.fraction
|
|
962
962
|
},
|
|
963
963
|
{
|
|
@@ -966,7 +966,7 @@ const i = Z, L = {
|
|
|
966
966
|
},
|
|
967
967
|
{
|
|
968
968
|
styleName: "max-height",
|
|
969
|
-
values:
|
|
969
|
+
values: s.percentString
|
|
970
970
|
}
|
|
971
971
|
],
|
|
972
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. */
|
|
@@ -981,14 +981,14 @@ const i = Z, L = {
|
|
|
981
981
|
valueFormat: () => "100vw"
|
|
982
982
|
},
|
|
983
983
|
{
|
|
984
|
-
values:
|
|
984
|
+
values: s.percentages,
|
|
985
985
|
valueFormat: a.Value.fraction
|
|
986
986
|
},
|
|
987
987
|
{
|
|
988
988
|
values: ["auto", "fit-content", "max-content", "min-content"]
|
|
989
989
|
},
|
|
990
990
|
{
|
|
991
|
-
values:
|
|
991
|
+
values: s.percentString
|
|
992
992
|
}
|
|
993
993
|
],
|
|
994
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. */
|
|
@@ -1006,7 +1006,7 @@ const i = Z, L = {
|
|
|
1006
1006
|
},
|
|
1007
1007
|
{
|
|
1008
1008
|
styleName: "min-width",
|
|
1009
|
-
values:
|
|
1009
|
+
values: s.percentages,
|
|
1010
1010
|
valueFormat: a.Value.fraction
|
|
1011
1011
|
},
|
|
1012
1012
|
{
|
|
@@ -1015,7 +1015,7 @@ const i = Z, L = {
|
|
|
1015
1015
|
},
|
|
1016
1016
|
{
|
|
1017
1017
|
styleName: "min-width",
|
|
1018
|
-
values:
|
|
1018
|
+
values: s.percentString
|
|
1019
1019
|
}
|
|
1020
1020
|
],
|
|
1021
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. */
|
|
@@ -1033,7 +1033,7 @@ const i = Z, L = {
|
|
|
1033
1033
|
},
|
|
1034
1034
|
{
|
|
1035
1035
|
styleName: "max-width",
|
|
1036
|
-
values:
|
|
1036
|
+
values: s.percentages,
|
|
1037
1037
|
valueFormat: a.Value.fraction
|
|
1038
1038
|
},
|
|
1039
1039
|
{
|
|
@@ -1042,7 +1042,7 @@ const i = Z, L = {
|
|
|
1042
1042
|
},
|
|
1043
1043
|
{
|
|
1044
1044
|
styleName: "max-width",
|
|
1045
|
-
values:
|
|
1045
|
+
values: s.percentString
|
|
1046
1046
|
}
|
|
1047
1047
|
],
|
|
1048
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. */
|
|
@@ -1086,11 +1086,11 @@ const i = Z, L = {
|
|
|
1086
1086
|
},
|
|
1087
1087
|
{
|
|
1088
1088
|
styleName: "margin",
|
|
1089
|
-
values:
|
|
1089
|
+
values: s.percentages,
|
|
1090
1090
|
valueFormat: a.Value.fraction
|
|
1091
1091
|
},
|
|
1092
1092
|
{
|
|
1093
|
-
values:
|
|
1093
|
+
values: s.percentString,
|
|
1094
1094
|
styleName: "margin"
|
|
1095
1095
|
}
|
|
1096
1096
|
],
|
|
@@ -1107,11 +1107,11 @@ const i = Z, L = {
|
|
|
1107
1107
|
},
|
|
1108
1108
|
{
|
|
1109
1109
|
styleName: "margin-inline",
|
|
1110
|
-
values:
|
|
1110
|
+
values: s.percentages,
|
|
1111
1111
|
valueFormat: a.Value.fraction
|
|
1112
1112
|
},
|
|
1113
1113
|
{
|
|
1114
|
-
values:
|
|
1114
|
+
values: s.percentString,
|
|
1115
1115
|
styleName: "margin-inline"
|
|
1116
1116
|
}
|
|
1117
1117
|
],
|
|
@@ -1128,11 +1128,11 @@ const i = Z, L = {
|
|
|
1128
1128
|
},
|
|
1129
1129
|
{
|
|
1130
1130
|
styleName: "margin-block",
|
|
1131
|
-
values:
|
|
1131
|
+
values: s.percentages,
|
|
1132
1132
|
valueFormat: a.Value.fraction
|
|
1133
1133
|
},
|
|
1134
1134
|
{
|
|
1135
|
-
values:
|
|
1135
|
+
values: s.percentString,
|
|
1136
1136
|
styleName: "margin-block"
|
|
1137
1137
|
}
|
|
1138
1138
|
],
|
|
@@ -1148,12 +1148,12 @@ const i = Z, L = {
|
|
|
1148
1148
|
styleName: "margin-top"
|
|
1149
1149
|
},
|
|
1150
1150
|
{
|
|
1151
|
-
values:
|
|
1151
|
+
values: s.percentages,
|
|
1152
1152
|
valueFormat: a.Value.fraction,
|
|
1153
1153
|
styleName: "margin-top"
|
|
1154
1154
|
},
|
|
1155
1155
|
{
|
|
1156
|
-
values:
|
|
1156
|
+
values: s.percentString,
|
|
1157
1157
|
styleName: "margin-top"
|
|
1158
1158
|
}
|
|
1159
1159
|
],
|
|
@@ -1169,12 +1169,12 @@ const i = Z, L = {
|
|
|
1169
1169
|
styleName: "margin-right"
|
|
1170
1170
|
},
|
|
1171
1171
|
{
|
|
1172
|
-
values:
|
|
1172
|
+
values: s.percentages,
|
|
1173
1173
|
valueFormat: a.Value.fraction,
|
|
1174
1174
|
styleName: "margin-right"
|
|
1175
1175
|
},
|
|
1176
1176
|
{
|
|
1177
|
-
values:
|
|
1177
|
+
values: s.percentString,
|
|
1178
1178
|
styleName: "margin-right"
|
|
1179
1179
|
}
|
|
1180
1180
|
],
|
|
@@ -1190,12 +1190,12 @@ const i = Z, L = {
|
|
|
1190
1190
|
styleName: "margin-bottom"
|
|
1191
1191
|
},
|
|
1192
1192
|
{
|
|
1193
|
-
values:
|
|
1193
|
+
values: s.percentages,
|
|
1194
1194
|
valueFormat: a.Value.fraction,
|
|
1195
1195
|
styleName: "margin-bottom"
|
|
1196
1196
|
},
|
|
1197
1197
|
{
|
|
1198
|
-
values:
|
|
1198
|
+
values: s.percentString,
|
|
1199
1199
|
styleName: "margin-bottom"
|
|
1200
1200
|
}
|
|
1201
1201
|
],
|
|
@@ -1211,12 +1211,12 @@ const i = Z, L = {
|
|
|
1211
1211
|
styleName: "margin-left"
|
|
1212
1212
|
},
|
|
1213
1213
|
{
|
|
1214
|
-
values:
|
|
1214
|
+
values: s.percentages,
|
|
1215
1215
|
valueFormat: a.Value.fraction,
|
|
1216
1216
|
styleName: "margin-left"
|
|
1217
1217
|
},
|
|
1218
1218
|
{
|
|
1219
|
-
values:
|
|
1219
|
+
values: s.percentString,
|
|
1220
1220
|
styleName: "margin-left"
|
|
1221
1221
|
}
|
|
1222
1222
|
],
|
|
@@ -1228,12 +1228,12 @@ const i = Z, L = {
|
|
|
1228
1228
|
valueFormat: a.Value.rem
|
|
1229
1229
|
},
|
|
1230
1230
|
{
|
|
1231
|
-
values:
|
|
1231
|
+
values: s.percentages,
|
|
1232
1232
|
valueFormat: a.Value.fraction,
|
|
1233
1233
|
styleName: "padding"
|
|
1234
1234
|
},
|
|
1235
1235
|
{
|
|
1236
|
-
values:
|
|
1236
|
+
values: s.percentString,
|
|
1237
1237
|
styleName: "padding"
|
|
1238
1238
|
}
|
|
1239
1239
|
],
|
|
@@ -1245,12 +1245,12 @@ const i = Z, L = {
|
|
|
1245
1245
|
valueFormat: a.Value.rem
|
|
1246
1246
|
},
|
|
1247
1247
|
{
|
|
1248
|
-
values:
|
|
1248
|
+
values: s.percentages,
|
|
1249
1249
|
valueFormat: a.Value.fraction,
|
|
1250
1250
|
styleName: "padding-inline"
|
|
1251
1251
|
},
|
|
1252
1252
|
{
|
|
1253
|
-
values:
|
|
1253
|
+
values: s.percentString,
|
|
1254
1254
|
styleName: "padding-inline"
|
|
1255
1255
|
}
|
|
1256
1256
|
],
|
|
@@ -1262,12 +1262,12 @@ const i = Z, L = {
|
|
|
1262
1262
|
valueFormat: a.Value.rem
|
|
1263
1263
|
},
|
|
1264
1264
|
{
|
|
1265
|
-
values:
|
|
1265
|
+
values: s.percentages,
|
|
1266
1266
|
valueFormat: a.Value.fraction,
|
|
1267
1267
|
styleName: "padding-block"
|
|
1268
1268
|
},
|
|
1269
1269
|
{
|
|
1270
|
-
values:
|
|
1270
|
+
values: s.percentString,
|
|
1271
1271
|
styleName: "padding-block"
|
|
1272
1272
|
}
|
|
1273
1273
|
],
|
|
@@ -1279,12 +1279,12 @@ const i = Z, L = {
|
|
|
1279
1279
|
valueFormat: a.Value.rem
|
|
1280
1280
|
},
|
|
1281
1281
|
{
|
|
1282
|
-
values:
|
|
1282
|
+
values: s.percentages,
|
|
1283
1283
|
valueFormat: a.Value.fraction,
|
|
1284
1284
|
styleName: "padding-top"
|
|
1285
1285
|
},
|
|
1286
1286
|
{
|
|
1287
|
-
values:
|
|
1287
|
+
values: s.percentString,
|
|
1288
1288
|
styleName: "padding-top"
|
|
1289
1289
|
}
|
|
1290
1290
|
],
|
|
@@ -1296,12 +1296,12 @@ const i = Z, L = {
|
|
|
1296
1296
|
valueFormat: a.Value.rem
|
|
1297
1297
|
},
|
|
1298
1298
|
{
|
|
1299
|
-
values:
|
|
1299
|
+
values: s.percentages,
|
|
1300
1300
|
valueFormat: a.Value.fraction,
|
|
1301
1301
|
styleName: "padding-right"
|
|
1302
1302
|
},
|
|
1303
1303
|
{
|
|
1304
|
-
values:
|
|
1304
|
+
values: s.percentString,
|
|
1305
1305
|
styleName: "padding-right"
|
|
1306
1306
|
}
|
|
1307
1307
|
],
|
|
@@ -1313,12 +1313,12 @@ const i = Z, L = {
|
|
|
1313
1313
|
valueFormat: a.Value.rem
|
|
1314
1314
|
},
|
|
1315
1315
|
{
|
|
1316
|
-
values:
|
|
1316
|
+
values: s.percentages,
|
|
1317
1317
|
valueFormat: a.Value.fraction,
|
|
1318
1318
|
styleName: "padding-bottom"
|
|
1319
1319
|
},
|
|
1320
1320
|
{
|
|
1321
|
-
values:
|
|
1321
|
+
values: s.percentString,
|
|
1322
1322
|
styleName: "padding-bottom"
|
|
1323
1323
|
}
|
|
1324
1324
|
],
|
|
@@ -1330,12 +1330,12 @@ const i = Z, L = {
|
|
|
1330
1330
|
valueFormat: a.Value.rem
|
|
1331
1331
|
},
|
|
1332
1332
|
{
|
|
1333
|
-
values:
|
|
1333
|
+
values: s.percentages,
|
|
1334
1334
|
valueFormat: a.Value.fraction,
|
|
1335
1335
|
styleName: "padding-left"
|
|
1336
1336
|
},
|
|
1337
1337
|
{
|
|
1338
|
-
values:
|
|
1338
|
+
values: s.percentString,
|
|
1339
1339
|
styleName: "padding-left"
|
|
1340
1340
|
}
|
|
1341
1341
|
],
|
|
@@ -1588,14 +1588,14 @@ const i = Z, L = {
|
|
|
1588
1588
|
/** The color CSS property sets the foreground color value of an element's text and text decorations, and sets the currentcolor value. */
|
|
1589
1589
|
color: [
|
|
1590
1590
|
{
|
|
1591
|
-
values:
|
|
1591
|
+
values: s.colorValues,
|
|
1592
1592
|
valueFormat: (e, r) => r(e)
|
|
1593
1593
|
}
|
|
1594
1594
|
],
|
|
1595
1595
|
/** The background-color CSS property sets the background color of an element. */
|
|
1596
1596
|
bgColor: [
|
|
1597
1597
|
{
|
|
1598
|
-
values:
|
|
1598
|
+
values: s.colorValues,
|
|
1599
1599
|
valueFormat: (e, r) => r(e),
|
|
1600
1600
|
styleName: "background-color"
|
|
1601
1601
|
}
|
|
@@ -1603,7 +1603,7 @@ const i = Z, L = {
|
|
|
1603
1603
|
/** The border-color shorthand CSS property sets the color of an element's border. */
|
|
1604
1604
|
borderColor: [
|
|
1605
1605
|
{
|
|
1606
|
-
values:
|
|
1606
|
+
values: s.colorValues,
|
|
1607
1607
|
valueFormat: (e, r) => r(e),
|
|
1608
1608
|
styleName: "border-color"
|
|
1609
1609
|
}
|
|
@@ -1611,7 +1611,7 @@ const i = Z, L = {
|
|
|
1611
1611
|
/** The outline-color CSS property sets the color of an element's outline. */
|
|
1612
1612
|
outlineColor: [
|
|
1613
1613
|
{
|
|
1614
|
-
values:
|
|
1614
|
+
values: s.colorValues,
|
|
1615
1615
|
valueFormat: (e, r) => r(e),
|
|
1616
1616
|
styleName: "outline-color"
|
|
1617
1617
|
}
|
|
@@ -1619,21 +1619,21 @@ const i = Z, L = {
|
|
|
1619
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. */
|
|
1620
1620
|
fill: [
|
|
1621
1621
|
{
|
|
1622
|
-
values:
|
|
1622
|
+
values: s.colorValues,
|
|
1623
1623
|
valueFormat: (e, r) => r(e)
|
|
1624
1624
|
}
|
|
1625
1625
|
],
|
|
1626
1626
|
/** The stroke CSS property defines the color or SVG paint server used to draw an element's stroke. */
|
|
1627
1627
|
stroke: [
|
|
1628
1628
|
{
|
|
1629
|
-
values:
|
|
1629
|
+
values: s.colorValues,
|
|
1630
1630
|
valueFormat: (e, r) => r(e)
|
|
1631
1631
|
}
|
|
1632
1632
|
],
|
|
1633
1633
|
/** The background-image CSS property sets one or more background images on an element. */
|
|
1634
1634
|
bgImage: [
|
|
1635
1635
|
{
|
|
1636
|
-
values:
|
|
1636
|
+
values: s.bgImageValues,
|
|
1637
1637
|
valueFormat: (e, r) => r(e),
|
|
1638
1638
|
styleName: "background-image"
|
|
1639
1639
|
}
|
|
@@ -1641,7 +1641,7 @@ const i = Z, L = {
|
|
|
1641
1641
|
/** The box-shadow CSS property adds shadow effects around an element's frame */
|
|
1642
1642
|
shadow: [
|
|
1643
1643
|
{
|
|
1644
|
-
values:
|
|
1644
|
+
values: s.shadowValues,
|
|
1645
1645
|
valueFormat: (e, r) => r(e),
|
|
1646
1646
|
styleName: "box-shadow"
|
|
1647
1647
|
}
|
|
@@ -1654,17 +1654,17 @@ const i = Z, L = {
|
|
|
1654
1654
|
styleName: "transform"
|
|
1655
1655
|
},
|
|
1656
1656
|
{
|
|
1657
|
-
values:
|
|
1657
|
+
values: s.percentages,
|
|
1658
1658
|
valueFormat: (e) => `translateX(${a.Value.fraction(e)})`,
|
|
1659
1659
|
styleName: "transform"
|
|
1660
1660
|
},
|
|
1661
1661
|
{
|
|
1662
|
-
values:
|
|
1662
|
+
values: s.negativePercentages,
|
|
1663
1663
|
valueFormat: (e) => `translateX(${a.Value.fraction(e)})`,
|
|
1664
1664
|
styleName: "transform"
|
|
1665
1665
|
},
|
|
1666
1666
|
{
|
|
1667
|
-
values:
|
|
1667
|
+
values: s.percentString,
|
|
1668
1668
|
valueFormat: (e) => `translateX(${e})`,
|
|
1669
1669
|
styleName: "transform"
|
|
1670
1670
|
}
|
|
@@ -1677,17 +1677,17 @@ const i = Z, L = {
|
|
|
1677
1677
|
styleName: "transform"
|
|
1678
1678
|
},
|
|
1679
1679
|
{
|
|
1680
|
-
values:
|
|
1680
|
+
values: s.percentages,
|
|
1681
1681
|
valueFormat: (e) => `translateY(${a.Value.fraction(e)})`,
|
|
1682
1682
|
styleName: "transform"
|
|
1683
1683
|
},
|
|
1684
1684
|
{
|
|
1685
|
-
values:
|
|
1685
|
+
values: s.negativePercentages,
|
|
1686
1686
|
valueFormat: (e) => `translateY(${a.Value.fraction(e)})`,
|
|
1687
1687
|
styleName: "transform"
|
|
1688
1688
|
},
|
|
1689
1689
|
{
|
|
1690
|
-
values:
|
|
1690
|
+
values: s.percentString,
|
|
1691
1691
|
valueFormat: (e) => `translateY(${e})`,
|
|
1692
1692
|
styleName: "transform"
|
|
1693
1693
|
}
|
|
@@ -1719,7 +1719,8 @@ const i = Z, L = {
|
|
|
1719
1719
|
hasRequired: ":has(:required)",
|
|
1720
1720
|
hasDisabled: ":has([disabled])",
|
|
1721
1721
|
before: "::before",
|
|
1722
|
-
after: "::after"
|
|
1722
|
+
after: "::after",
|
|
1723
|
+
placeholderStyles: "::placeholder"
|
|
1723
1724
|
}, W = {
|
|
1724
1725
|
indeterminate: ":indeterminate",
|
|
1725
1726
|
checked: ":checked",
|
|
@@ -1745,7 +1746,7 @@ const i = Z, L = {
|
|
|
1745
1746
|
activeGroup: "active",
|
|
1746
1747
|
disabledGroup: "disabled",
|
|
1747
1748
|
selectedGroup: "selected"
|
|
1748
|
-
},
|
|
1749
|
+
}, se = {
|
|
1749
1750
|
theme: "theme"
|
|
1750
1751
|
}, P = {
|
|
1751
1752
|
/** Styles applied for small screens and larger. >= 640 */
|
|
@@ -1761,9 +1762,9 @@ const i = Z, L = {
|
|
|
1761
1762
|
};
|
|
1762
1763
|
var Q;
|
|
1763
1764
|
((e) => {
|
|
1764
|
-
function r(n,
|
|
1765
|
+
function r(n, i, c) {
|
|
1765
1766
|
const u = { ...n }, m = u.props || {};
|
|
1766
|
-
return
|
|
1767
|
+
return i.forEach((f) => {
|
|
1767
1768
|
f in u && (m[f] = u[f], delete u[f]);
|
|
1768
1769
|
}), c && Object.entries(c).forEach(([f, y]) => {
|
|
1769
1770
|
m[f] = y;
|
|
@@ -1775,18 +1776,18 @@ var Q;
|
|
|
1775
1776
|
}
|
|
1776
1777
|
e.isObject = l;
|
|
1777
1778
|
function o(...n) {
|
|
1778
|
-
return n.reduce((
|
|
1779
|
-
const m =
|
|
1780
|
-
l(f) && "clean" in f && f.clean ?
|
|
1781
|
-
}),
|
|
1779
|
+
return n.reduce((i, c) => (Object.keys(c ?? {}).forEach((u) => {
|
|
1780
|
+
const m = i[u], f = c[u];
|
|
1781
|
+
l(f) && "clean" in f && f.clean ? i[u] = f : u in W && typeof f == "boolean" || (u in W && Array.isArray(f) ? i[u] = o(m, f[1] ?? {}) : Array.isArray(m) && Array.isArray(f) ? i[u] = m.concat(...f) : l(m) && l(f) ? i[u] = o(m, f) : i[u] = f);
|
|
1782
|
+
}), i), {});
|
|
1782
1783
|
}
|
|
1783
1784
|
e.mergeDeep = o;
|
|
1784
|
-
function t(n,
|
|
1785
|
-
return n in
|
|
1785
|
+
function t(n, i) {
|
|
1786
|
+
return n in i;
|
|
1786
1787
|
}
|
|
1787
1788
|
e.isKeyOf = t;
|
|
1788
1789
|
})(Q || (Q = {}));
|
|
1789
|
-
const k = Q,
|
|
1790
|
+
const k = Q, ie = {
|
|
1790
1791
|
h1: {
|
|
1791
1792
|
styles: { fontSize: 14 * 2.5 }
|
|
1792
1793
|
},
|
|
@@ -2909,52 +2910,52 @@ const k = Q, se = {
|
|
|
2909
2910
|
}
|
|
2910
2911
|
}
|
|
2911
2912
|
};
|
|
2912
|
-
function
|
|
2913
|
+
function Se(e) {
|
|
2913
2914
|
const r = { ...e };
|
|
2914
2915
|
for (const [l, o] of Object.entries(r)) {
|
|
2915
2916
|
if (!o.extends) continue;
|
|
2916
2917
|
const t = r[o.extends];
|
|
2917
2918
|
if (!t) continue;
|
|
2918
|
-
const { extends: n, ...
|
|
2919
|
-
r[l] = k.mergeDeep({}, t,
|
|
2919
|
+
const { extends: n, ...i } = o;
|
|
2920
|
+
r[l] = k.mergeDeep({}, t, i);
|
|
2920
2921
|
}
|
|
2921
2922
|
return r;
|
|
2922
2923
|
}
|
|
2923
2924
|
var J;
|
|
2924
2925
|
((e) => {
|
|
2925
2926
|
function r(o, t, n) {
|
|
2926
|
-
return
|
|
2927
|
-
L[
|
|
2928
|
-
}), Object.entries(n).forEach(([
|
|
2929
|
-
const u = L[
|
|
2930
|
-
L[
|
|
2927
|
+
return s.setUserVariables(o), Object.entries(t).forEach(([i, c]) => {
|
|
2928
|
+
L[i] = c;
|
|
2929
|
+
}), Object.entries(n).forEach(([i, c]) => {
|
|
2930
|
+
const u = L[i];
|
|
2931
|
+
L[i] = u ? [...c, ...u] : c;
|
|
2931
2932
|
}), { extendedProps: t, extendedPropTypes: n };
|
|
2932
2933
|
}
|
|
2933
|
-
e.extend = r, e.componentsStyles =
|
|
2934
|
+
e.extend = r, e.componentsStyles = ie;
|
|
2934
2935
|
function l(o) {
|
|
2935
|
-
return e.componentsStyles =
|
|
2936
|
+
return e.componentsStyles = Se(k.mergeDeep(ie, o)), o;
|
|
2936
2937
|
}
|
|
2937
2938
|
e.components = l;
|
|
2938
2939
|
})(J || (J = {}));
|
|
2939
|
-
const
|
|
2940
|
+
const $e = J, ee = we.createContext({ theme: "", setTheme: () => {
|
|
2940
2941
|
} });
|
|
2941
2942
|
function re(e) {
|
|
2942
2943
|
const { children: r, theme: l, use: o = "local" } = e, [t, n] = de(l ?? "light");
|
|
2943
2944
|
return U(() => {
|
|
2944
2945
|
if (l !== void 0) return;
|
|
2945
|
-
const
|
|
2946
|
-
n(
|
|
2946
|
+
const i = window.matchMedia("(prefers-color-scheme: dark)");
|
|
2947
|
+
n(i.matches ? "dark" : "light");
|
|
2947
2948
|
const c = (u) => {
|
|
2948
2949
|
n(u.matches ? "dark" : "light");
|
|
2949
2950
|
};
|
|
2950
|
-
return
|
|
2951
|
+
return i.addEventListener("change", c), () => i.removeEventListener("change", c);
|
|
2951
2952
|
}, [l]), U(() => {
|
|
2952
2953
|
if (o === "local") return;
|
|
2953
|
-
const
|
|
2954
|
-
return
|
|
2955
|
-
|
|
2954
|
+
const i = document.documentElement;
|
|
2955
|
+
return i.classList.add(t), () => {
|
|
2956
|
+
i.classList.remove(t);
|
|
2956
2957
|
};
|
|
2957
|
-
}, [t, o]), o === "local" ? /* @__PURE__ */
|
|
2958
|
+
}, [t, o]), o === "local" ? /* @__PURE__ */ $(ee.Provider, { value: { theme: t, setTheme: n }, children: /* @__PURE__ */ $(Fe, { className: t, children: r }) }) : /* @__PURE__ */ $(ee.Provider, { value: { theme: t, setTheme: n }, children: r });
|
|
2958
2959
|
}
|
|
2959
2960
|
((e) => {
|
|
2960
2961
|
function r() {
|
|
@@ -2975,8 +2976,8 @@ class ke {
|
|
|
2975
2976
|
const { first: l, next: o } = Re, t = r - l.length;
|
|
2976
2977
|
if (t < 0)
|
|
2977
2978
|
return l[r];
|
|
2978
|
-
const n = Math.floor(t / o.length),
|
|
2979
|
-
return this.getByIndex(n) + o[
|
|
2979
|
+
const n = Math.floor(t / o.length), i = t - n * o.length;
|
|
2980
|
+
return this.getByIndex(n) + o[i];
|
|
2980
2981
|
}
|
|
2981
2982
|
}
|
|
2982
2983
|
const Re = {
|
|
@@ -2989,12 +2990,12 @@ function Ae(e) {
|
|
|
2989
2990
|
if (r) return;
|
|
2990
2991
|
const t = l?.split(".");
|
|
2991
2992
|
if (!t) return;
|
|
2992
|
-
const n = t.reduce((u, m, f) => f === 0 ?
|
|
2993
|
+
const n = t.reduce((u, m, f) => f === 0 ? $e.componentsStyles[m] : u?.children?.[m], void 0);
|
|
2993
2994
|
if (!n) return;
|
|
2994
2995
|
if (!o) return n.styles;
|
|
2995
|
-
const
|
|
2996
|
-
if (
|
|
2997
|
-
const c = k.mergeDeep(...
|
|
2996
|
+
const i = fe(o);
|
|
2997
|
+
if (i.length === 0) return n.styles;
|
|
2998
|
+
const c = k.mergeDeep(...i.map((u) => n.variants?.[u]));
|
|
2998
2999
|
return n.styles ? k.mergeDeep(n.styles, c) : c;
|
|
2999
3000
|
}, [r, l, o]);
|
|
3000
3001
|
}
|
|
@@ -3009,7 +3010,7 @@ var B;
|
|
|
3009
3010
|
((e) => {
|
|
3010
3011
|
let r = !0, l = !1;
|
|
3011
3012
|
const o = /* @__PURE__ */ new Set(), t = [], n = [];
|
|
3012
|
-
let
|
|
3013
|
+
let i = 0;
|
|
3013
3014
|
const c = Object.keys(L).reduce((b, h, w) => (b[h] = w, b), {});
|
|
3014
3015
|
let u = {};
|
|
3015
3016
|
function m(b, h, w, p, g) {
|
|
@@ -3027,35 +3028,35 @@ var B;
|
|
|
3027
3028
|
k.isObject(d) && m(d, h, [...w, v], p, g);
|
|
3028
3029
|
} else k.isKeyOf(v, P) ? m(d, h, w, v, g) : k.isKeyOf(v, D) ? Object.entries(d).forEach(([N, F]) => {
|
|
3029
3030
|
m(F, h, [...w, D[v]], p, N);
|
|
3030
|
-
}) : k.isKeyOf(v,
|
|
3031
|
-
const
|
|
3031
|
+
}) : k.isKeyOf(v, se) && Object.entries(d).forEach(([N, F]) => {
|
|
3032
|
+
const S = [...w, se[v]];
|
|
3032
3033
|
Object.entries(F).forEach(([V, O]) => {
|
|
3033
3034
|
k.isKeyOf(V, D) ? Object.entries(O).forEach(([M, E]) => {
|
|
3034
3035
|
m(
|
|
3035
3036
|
E,
|
|
3036
3037
|
h,
|
|
3037
|
-
[
|
|
3038
|
+
[...S, D[V]],
|
|
3038
3039
|
p,
|
|
3039
3040
|
// Use | as separator to distinguish theme from group name
|
|
3040
3041
|
`${N}|${M}`
|
|
3041
3042
|
);
|
|
3042
|
-
}) : m({ [V]: O }, h,
|
|
3043
|
+
}) : m({ [V]: O }, h, S, p, N);
|
|
3043
3044
|
});
|
|
3044
3045
|
});
|
|
3045
3046
|
});
|
|
3046
3047
|
}
|
|
3047
3048
|
e.addClassNames = m;
|
|
3048
3049
|
function f() {
|
|
3049
|
-
const b =
|
|
3050
|
+
const b = s.hasPendingVariables();
|
|
3050
3051
|
if (!r && !b) return;
|
|
3051
3052
|
console.debug("\x1B[36m%s\x1B[0m", "[react-box]: flush");
|
|
3052
3053
|
const h = q(), w = h.sheet;
|
|
3053
3054
|
if (l) {
|
|
3054
|
-
if (
|
|
3055
|
-
const p =
|
|
3055
|
+
if (s.hasPendingVariables()) {
|
|
3056
|
+
const p = s.getPendingVariables(), g = `:root{${Object.entries(p).map(([v, d]) => `--${v}: ${d};`).join("")}}`;
|
|
3056
3057
|
if (w && !H)
|
|
3057
3058
|
try {
|
|
3058
|
-
w.insertRule(g, 0),
|
|
3059
|
+
w.insertRule(g, 0), i++;
|
|
3059
3060
|
} catch {
|
|
3060
3061
|
}
|
|
3061
3062
|
else
|
|
@@ -3064,7 +3065,7 @@ var B;
|
|
|
3064
3065
|
}
|
|
3065
3066
|
} else {
|
|
3066
3067
|
const p = [
|
|
3067
|
-
`:root{${
|
|
3068
|
+
`:root{${s.generateVariables()}}`,
|
|
3068
3069
|
":root{--borderColor: black;--outlineColor: black;--lineHeight: 1.2;--fontSize: 14px;--transitionTime: 0.25s;--svgTransitionTime: 0.3s;}",
|
|
3069
3070
|
"#crono-box {position: absolute;top: 0;left: 0;height: 0;z-index:99999;}",
|
|
3070
3071
|
"html{font-size: 16px;font-family: Arial, sans-serif;}",
|
|
@@ -3080,7 +3081,7 @@ var B;
|
|
|
3080
3081
|
if (w && !H)
|
|
3081
3082
|
for (const g of p)
|
|
3082
3083
|
try {
|
|
3083
|
-
w.insertRule(g,
|
|
3084
|
+
w.insertRule(g, i), i++;
|
|
3084
3085
|
} catch {
|
|
3085
3086
|
}
|
|
3086
3087
|
else
|
|
@@ -3099,7 +3100,7 @@ var B;
|
|
|
3099
3100
|
break;
|
|
3100
3101
|
}
|
|
3101
3102
|
try {
|
|
3102
|
-
w.insertRule(v,
|
|
3103
|
+
w.insertRule(v, i + N), n.splice(N, 0, d);
|
|
3103
3104
|
} catch {
|
|
3104
3105
|
w.insertRule(v, w.cssRules.length), n.push(d);
|
|
3105
3106
|
}
|
|
@@ -3114,7 +3115,7 @@ var B;
|
|
|
3114
3115
|
function y(b, h, w, p, g) {
|
|
3115
3116
|
const d = L[b].find((V) => Array.isArray(V.values) ? V.values.includes(h) : typeof h == typeof V.values);
|
|
3116
3117
|
if (!d) return null;
|
|
3117
|
-
const N = c[b] ?? 0, F = P[p] ?? 0,
|
|
3118
|
+
const N = c[b] ?? 0, F = P[p] ?? 0, S = C(
|
|
3118
3119
|
b,
|
|
3119
3120
|
h,
|
|
3120
3121
|
w,
|
|
@@ -3126,26 +3127,26 @@ var B;
|
|
|
3126
3127
|
let A;
|
|
3127
3128
|
if (G) {
|
|
3128
3129
|
const [j, Ce] = g.split("|");
|
|
3129
|
-
A = `.${j} .${Ce}${E} .${
|
|
3130
|
-
} else O ? A = `.${g} .${
|
|
3131
|
-
const he = d.selector?.(A, "") ?? A, ve = Array.isArray(d.styleName) ? d.styleName : [d.styleName ?? b], pe = d.valueFormat?.(h,
|
|
3130
|
+
A = `.${j} .${Ce}${E} .${S}`;
|
|
3131
|
+
} else O ? A = `.${g} .${S}${E}` : A = `.${g}${E} .${S}`;
|
|
3132
|
+
const he = d.selector?.(A, "") ?? A, ve = Array.isArray(d.styleName) ? d.styleName : [d.styleName ?? b], pe = d.valueFormat?.(h, s.getVariableValue) ?? h, ne = `${he}{${ve.map((j) => `${j}:${pe}`).join(";")}}`;
|
|
3132
3133
|
return p !== "normal" ? { rule: `@media(min-width: ${P[p]}px){${ne}}`, sortIndex: N, breakpointOrder: F } : { rule: ne, sortIndex: N, breakpointOrder: F };
|
|
3133
3134
|
} else {
|
|
3134
|
-
const V = X[w].map((A) => K[A]).join(""), O = d.selector?.(`.${
|
|
3135
|
+
const V = X[w].map((A) => K[A]).join(""), O = d.selector?.(`.${S}`, V) ?? `.${S}${V}`, M = Array.isArray(d.styleName) ? d.styleName : [d.styleName ?? b], E = d.valueFormat?.(h, s.getVariableValue) ?? h, G = `${O}{${M.map((A) => `${A}:${E}`).join(";")}}`;
|
|
3135
3136
|
return p !== "normal" ? { rule: `@media(min-width: ${P[p]}px){${G}}`, sortIndex: N, breakpointOrder: F } : { rule: G, sortIndex: N, breakpointOrder: F };
|
|
3136
3137
|
}
|
|
3137
3138
|
}
|
|
3138
3139
|
function z() {
|
|
3139
|
-
u = {}, o.clear(), t.length = 0, n.length = 0,
|
|
3140
|
+
u = {}, o.clear(), t.length = 0, n.length = 0, i = 0, l = !1;
|
|
3140
3141
|
}
|
|
3141
3142
|
e.clear = z;
|
|
3142
3143
|
function x(b, h, w, p, g = "normal", v) {
|
|
3143
3144
|
if (h == null) return;
|
|
3144
|
-
const d = p.reduce((
|
|
3145
|
+
const d = p.reduce((S, V) => S + ye[V], 0), N = C(b, h, d, g, v), F = `${g}-${d}-${b}-${h}-${v ?? ""}`;
|
|
3145
3146
|
if (!o.has(F)) {
|
|
3146
3147
|
o.add(F);
|
|
3147
|
-
const
|
|
3148
|
-
|
|
3148
|
+
const S = y(b, h, d, g, v);
|
|
3149
|
+
S && (t.push([S.sortIndex, S.breakpointOrder, S.rule]), r = !0), u[g] ? u[g][d] ? u[g][d][b] || (u[g][d][b] = /* @__PURE__ */ new Set()) : u[g][d] = { [b]: /* @__PURE__ */ new Set() } : u[g] = { [d]: { [b]: /* @__PURE__ */ new Set() } }, v ? (u[g][d].__parents ? u[g][d].__parents[v] ? u[g][d].__parents[v][b] || (u[g][d].__parents[v][b] = /* @__PURE__ */ new Set()) : u[g][d].__parents[v] = { [b]: /* @__PURE__ */ new Set() } : u[g][d].__parents = { [v]: { [b]: /* @__PURE__ */ new Set() } }, u[g][d].__parents[v][b].add(h)) : u[g][d][b].add(h);
|
|
3149
3150
|
}
|
|
3150
3151
|
w.push(N);
|
|
3151
3152
|
}
|
|
@@ -3178,8 +3179,8 @@ Array.prototype.sumBy || (Array.prototype.sumBy = function(e, r = 0) {
|
|
|
3178
3179
|
});
|
|
3179
3180
|
Array.prototype.sortBy || (Array.prototype.sortBy = function(e, r) {
|
|
3180
3181
|
return [...this].sort((o, t) => {
|
|
3181
|
-
const n = e(o),
|
|
3182
|
-
return n <
|
|
3182
|
+
const n = e(o), i = e(t);
|
|
3183
|
+
return n < i ? r === "DESC" ? 1 : -1 : n > i ? r === "DESC" ? -1 : 1 : 0;
|
|
3183
3184
|
});
|
|
3184
3185
|
});
|
|
3185
3186
|
Array.prototype.maxBy || (Array.prototype.maxBy = function(e) {
|
|
@@ -3203,13 +3204,13 @@ Array.prototype.toRecord || (Array.prototype.toRecord = function(e) {
|
|
|
3203
3204
|
});
|
|
3204
3205
|
Array.prototype.groupBy || (Array.prototype.groupBy = function(e, r = !1) {
|
|
3205
3206
|
const l = this.reduce((o, t, n) => {
|
|
3206
|
-
const
|
|
3207
|
-
return r && typeof
|
|
3207
|
+
const i = e(t, n);
|
|
3208
|
+
return r && typeof i != "number" && !i || (o.has(i) === !1 && o.set(i, []), o.get(i)?.push(t)), o;
|
|
3208
3209
|
}, /* @__PURE__ */ new Map());
|
|
3209
3210
|
return Array.from(l, ([o, t]) => ({ key: o, values: t }));
|
|
3210
3211
|
});
|
|
3211
3212
|
function Ge(e) {
|
|
3212
|
-
const { node: r = null, event: l = "click", hideOnScroll: o = !1, hideOnResize: t = !1, hideOnEscape: n = !0 } = e ?? {}, [
|
|
3213
|
+
const { node: r = null, event: l = "click", hideOnScroll: o = !1, hideOnResize: t = !1, hideOnEscape: n = !0 } = e ?? {}, [i, c] = de(!1), u = Ne(null);
|
|
3213
3214
|
return ge(() => {
|
|
3214
3215
|
function m(C) {
|
|
3215
3216
|
(r ?? u.current)?.contains(C.target) === !1 && c(!1);
|
|
@@ -3224,10 +3225,10 @@ function Ge(e) {
|
|
|
3224
3225
|
C.key === "Escape" && c(!1);
|
|
3225
3226
|
}
|
|
3226
3227
|
const x = new AbortController();
|
|
3227
|
-
return
|
|
3228
|
+
return i && (window.addEventListener(l, m, x), n && window.addEventListener("keydown", z, x), t && window.addEventListener("resize", f, x), o && window.addEventListener("scroll", y, { signal: x.signal, capture: !0 })), () => {
|
|
3228
3229
|
x.abort();
|
|
3229
3230
|
};
|
|
3230
|
-
}, [r,
|
|
3231
|
+
}, [r, i]), [i, c, u];
|
|
3231
3232
|
}
|
|
3232
3233
|
const Ie = {
|
|
3233
3234
|
selected: "aria-selected"
|
|
@@ -3254,17 +3255,17 @@ function Le(e, r) {
|
|
|
3254
3255
|
if (!r) return null;
|
|
3255
3256
|
const l = e.toLowerCase(), o = r.toLowerCase();
|
|
3256
3257
|
let t = 0, n = 0;
|
|
3257
|
-
const
|
|
3258
|
+
const i = [];
|
|
3258
3259
|
let c = -1, u = 0, m = 0;
|
|
3259
3260
|
for (; t < l.length && n < o.length; )
|
|
3260
|
-
l[t] === o[n] ? (c === -1 && (c = n), t++, m++, u += m, (n === 0 || /\s|_|-/.test(r[n - 1])) && (u += 5), e[t - 1] === r[n] && (u += 1)) : (c !== -1 && (
|
|
3261
|
-
return c !== -1 &&
|
|
3261
|
+
l[t] === o[n] ? (c === -1 && (c = n), t++, m++, u += m, (n === 0 || /\s|_|-/.test(r[n - 1])) && (u += 5), e[t - 1] === r[n] && (u += 1)) : (c !== -1 && (i.push([c, n]), c = -1), m = 0), n++;
|
|
3262
|
+
return c !== -1 && i.push([c, n]), t < l.length ? null : (u = u / r.length, { score: u, matches: i });
|
|
3262
3263
|
}
|
|
3263
3264
|
function Pe(e, r) {
|
|
3264
3265
|
return Le(e, r) !== null;
|
|
3265
3266
|
}
|
|
3266
3267
|
function Ue(e) {
|
|
3267
|
-
return /* @__PURE__ */
|
|
3268
|
+
return /* @__PURE__ */ $(T, { viewBox: "4 2 16 18", width: "1rem", fill: "currentColor", ...e, children: /* @__PURE__ */ $(
|
|
3268
3269
|
"path",
|
|
3269
3270
|
{
|
|
3270
3271
|
fillRule: "evenodd",
|
|
@@ -3277,12 +3278,12 @@ var te;
|
|
|
3277
3278
|
((e) => {
|
|
3278
3279
|
function r(l, o = 300) {
|
|
3279
3280
|
let t = !1, n;
|
|
3280
|
-
return (...
|
|
3281
|
+
return (...i) => {
|
|
3281
3282
|
if (t) {
|
|
3282
|
-
n =
|
|
3283
|
+
n = i;
|
|
3283
3284
|
return;
|
|
3284
3285
|
}
|
|
3285
|
-
l(...
|
|
3286
|
+
l(...i), t = !0, setTimeout(() => {
|
|
3286
3287
|
t = !1, n && l(...n);
|
|
3287
3288
|
}, o);
|
|
3288
3289
|
};
|
|
@@ -3306,10 +3307,10 @@ function Ke() {
|
|
|
3306
3307
|
}, [r, e]), r;
|
|
3307
3308
|
}
|
|
3308
3309
|
function qe(e) {
|
|
3309
|
-
return /* @__PURE__ */
|
|
3310
|
+
return /* @__PURE__ */ $(T, { ...e, children: /* @__PURE__ */ $("path", { d: "M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z" }) });
|
|
3310
3311
|
}
|
|
3311
3312
|
function Xe(e) {
|
|
3312
|
-
return /* @__PURE__ */
|
|
3313
|
+
return /* @__PURE__ */ $(T, { viewBox: "0 0 16 16", width: "18", ...e, children: /* @__PURE__ */ $(
|
|
3313
3314
|
"path",
|
|
3314
3315
|
{
|
|
3315
3316
|
strokeWidth: 4,
|
|
@@ -3318,10 +3319,10 @@ function Xe(e) {
|
|
|
3318
3319
|
) });
|
|
3319
3320
|
}
|
|
3320
3321
|
function Ye(e) {
|
|
3321
|
-
return /* @__PURE__ */
|
|
3322
|
+
return /* @__PURE__ */ $(T, { viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ $("path", { d: "M3 5h8v2H3V5zm0 6h8v2H3v-2zm0 6h8v2H3v-2zm12-12h6v6h-6V5zm1 1v4h4V6h-4zm-1 7h6v6h-6v-6zm1 1v4h4v-4h-4z" }) });
|
|
3322
3323
|
}
|
|
3323
3324
|
function Ze(e) {
|
|
3324
|
-
return /* @__PURE__ */
|
|
3325
|
+
return /* @__PURE__ */ $(T, { viewBox: "0 0 1024 1024", ...e, children: /* @__PURE__ */ $("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" }) });
|
|
3325
3326
|
}
|
|
3326
3327
|
var oe;
|
|
3327
3328
|
((e) => {
|
|
@@ -3332,25 +3333,25 @@ var oe;
|
|
|
3332
3333
|
})(oe || (oe = {}));
|
|
3333
3334
|
const Qe = oe;
|
|
3334
3335
|
function Je(e) {
|
|
3335
|
-
return /* @__PURE__ */
|
|
3336
|
+
return /* @__PURE__ */ $(T, { viewBox: "0 0 488.4 488.4", ...e, children: /* @__PURE__ */ $("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" }) });
|
|
3336
3337
|
}
|
|
3337
3338
|
var ae;
|
|
3338
3339
|
((e) => {
|
|
3339
3340
|
function r(o) {
|
|
3340
3341
|
const t = Array.from(o.elements).reduce(
|
|
3341
|
-
(n,
|
|
3342
|
-
const c =
|
|
3343
|
-
return c && (n[c] || (n[c] = []), n[c].push(
|
|
3342
|
+
(n, i) => {
|
|
3343
|
+
const c = i.name;
|
|
3344
|
+
return c && (n[c] || (n[c] = []), n[c].push(i)), n;
|
|
3344
3345
|
},
|
|
3345
3346
|
{}
|
|
3346
3347
|
);
|
|
3347
|
-
return Object.entries(t).reduce((n, [
|
|
3348
|
+
return Object.entries(t).reduce((n, [i, c]) => {
|
|
3348
3349
|
if (c.length === 1) {
|
|
3349
3350
|
const u = c[0];
|
|
3350
|
-
l(n,
|
|
3351
|
+
l(n, i, u.type === "checkbox" || u.type === "radio" ? u.checked : u.value);
|
|
3351
3352
|
} else {
|
|
3352
3353
|
const u = c.reduce((m, f) => (f.type === "checkbox" || f.type === "radio" ? f.checked && m.push(f.value) : m.push(f.value), m), []);
|
|
3353
|
-
l(n,
|
|
3354
|
+
l(n, i, u);
|
|
3354
3355
|
}
|
|
3355
3356
|
return n;
|
|
3356
3357
|
}, {});
|
|
@@ -3358,10 +3359,10 @@ var ae;
|
|
|
3358
3359
|
e.getFormEntries = r;
|
|
3359
3360
|
function l(o, t, n) {
|
|
3360
3361
|
if (t.includes(".")) {
|
|
3361
|
-
const
|
|
3362
|
+
const i = t.split(".");
|
|
3362
3363
|
let c = o;
|
|
3363
|
-
|
|
3364
|
-
if (
|
|
3364
|
+
i.forEach((u, m) => {
|
|
3365
|
+
if (i.length > m + 1) {
|
|
3365
3366
|
const f = u.match(/^(.+)\[(\d)\]$/);
|
|
3366
3367
|
if (f) {
|
|
3367
3368
|
const [, y, z] = f;
|
|
@@ -3386,8 +3387,8 @@ export {
|
|
|
3386
3387
|
Ze as P,
|
|
3387
3388
|
qe as S,
|
|
3388
3389
|
ze as T,
|
|
3389
|
-
|
|
3390
|
-
|
|
3390
|
+
s as V,
|
|
3391
|
+
$e as a,
|
|
3391
3392
|
Ge as b,
|
|
3392
3393
|
fe as c,
|
|
3393
3394
|
Je as d,
|