qstd 0.1.0 → 0.1.2

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.
@@ -7,10 +7,8 @@ var React11 = require('react');
7
7
  var reactDom = require('react-dom');
8
8
  var framerMotion = require('framer-motion');
9
9
  var react = require('@floating-ui/react');
10
- var css = require('panda/css');
11
10
  var reactSpinners = require('react-spinners');
12
11
  var reactLoaderSpinner = require('react-loader-spinner');
13
- var jsx = require('panda/jsx');
14
12
  var jsxRuntime = require('react/jsx-runtime');
15
13
  var nanoid = require('nanoid');
16
14
  var mmb = require('music-metadata-browser');
@@ -43,116 +41,574 @@ var React11__namespace = /*#__PURE__*/_interopNamespace(React11);
43
41
  var mmb__namespace = /*#__PURE__*/_interopNamespace(mmb);
44
42
 
45
43
  // src/react/index.ts
46
- var base = jsx.styled("div", { base: { m: 0 } });
44
+
45
+ // styled-system/helpers.mjs
46
+ function isObject(value) {
47
+ return typeof value === "object" && value != null && !Array.isArray(value);
48
+ }
49
+ var isObjectOrArray = (obj) => typeof obj === "object" && obj !== null;
50
+ function compact(value) {
51
+ return Object.fromEntries(Object.entries(value ?? {}).filter(([_, value2]) => value2 !== void 0));
52
+ }
53
+ var isBaseCondition = (v) => v === "base";
54
+ function filterBaseConditions(c) {
55
+ return c.slice().filter((v) => !isBaseCondition(v));
56
+ }
57
+ function toChar(code) {
58
+ return String.fromCharCode(code + (code > 25 ? 39 : 97));
59
+ }
60
+ function toName(code) {
61
+ let name = "";
62
+ let x;
63
+ for (x = Math.abs(code); x > 52; x = x / 52 | 0) name = toChar(x % 52) + name;
64
+ return toChar(x % 52) + name;
65
+ }
66
+ function toPhash(h, x) {
67
+ let i = x.length;
68
+ while (i) h = h * 33 ^ x.charCodeAt(--i);
69
+ return h;
70
+ }
71
+ function toHash(value) {
72
+ return toName(toPhash(5381, value) >>> 0);
73
+ }
74
+ var importantRegex = /\s*!(important)?/i;
75
+ function isImportant(value) {
76
+ return typeof value === "string" ? importantRegex.test(value) : false;
77
+ }
78
+ function withoutImportant(value) {
79
+ return typeof value === "string" ? value.replace(importantRegex, "").trim() : value;
80
+ }
81
+ function withoutSpace(str) {
82
+ return typeof str === "string" ? str.replaceAll(" ", "_") : str;
83
+ }
84
+ var memo = (fn) => {
85
+ const cache = /* @__PURE__ */ new Map();
86
+ const get = (...args) => {
87
+ const key = JSON.stringify(args);
88
+ if (cache.has(key)) {
89
+ return cache.get(key);
90
+ }
91
+ const result = fn(...args);
92
+ cache.set(key, result);
93
+ return result;
94
+ };
95
+ return get;
96
+ };
97
+ var MERGE_OMIT = /* @__PURE__ */ new Set(["__proto__", "constructor", "prototype"]);
98
+ function mergeProps(...sources) {
99
+ return sources.reduce((prev, obj) => {
100
+ if (!obj) return prev;
101
+ Object.keys(obj).forEach((key) => {
102
+ if (MERGE_OMIT.has(key)) return;
103
+ const prevValue = prev[key];
104
+ const value = obj[key];
105
+ if (isObject(prevValue) && isObject(value)) {
106
+ prev[key] = mergeProps(prevValue, value);
107
+ } else {
108
+ prev[key] = value;
109
+ }
110
+ });
111
+ return prev;
112
+ }, {});
113
+ }
114
+ var isNotNullish = (element) => element != null;
115
+ function walkObject(target, predicate, options = {}) {
116
+ const { stop, getKey } = options;
117
+ function inner(value, path = []) {
118
+ if (isObjectOrArray(value)) {
119
+ const result = {};
120
+ for (const [prop, child] of Object.entries(value)) {
121
+ const key = getKey?.(prop, child) ?? prop;
122
+ const childPath = [...path, key];
123
+ if (stop?.(value, childPath)) {
124
+ return predicate(value, path);
125
+ }
126
+ const next = inner(child, childPath);
127
+ if (isNotNullish(next)) {
128
+ result[key] = next;
129
+ }
130
+ }
131
+ return result;
132
+ }
133
+ return predicate(value, path);
134
+ }
135
+ return inner(target);
136
+ }
137
+ function toResponsiveObject(values, breakpoints) {
138
+ return values.reduce(
139
+ (acc, current, index) => {
140
+ const key = breakpoints[index];
141
+ if (current != null) {
142
+ acc[key] = current;
143
+ }
144
+ return acc;
145
+ },
146
+ {}
147
+ );
148
+ }
149
+ function normalizeStyleObject(styles, context2, shorthand = true) {
150
+ const { utility, conditions: conditions2 } = context2;
151
+ const { hasShorthand, resolveShorthand: resolveShorthand2 } = utility;
152
+ return walkObject(
153
+ styles,
154
+ (value) => {
155
+ return Array.isArray(value) ? toResponsiveObject(value, conditions2.breakpoints.keys) : value;
156
+ },
157
+ {
158
+ stop: (value) => Array.isArray(value),
159
+ getKey: shorthand ? (prop) => hasShorthand ? resolveShorthand2(prop) : prop : void 0
160
+ }
161
+ );
162
+ }
163
+ var fallbackCondition = {
164
+ shift: (v) => v,
165
+ finalize: (v) => v,
166
+ breakpoints: { keys: [] }
167
+ };
168
+ var sanitize = (value) => typeof value === "string" ? value.replaceAll(/[\n\s]+/g, " ") : value;
169
+ function createCss(context2) {
170
+ const { utility, hash, conditions: conds = fallbackCondition } = context2;
171
+ const formatClassName = (str) => [utility.prefix, str].filter(Boolean).join("-");
172
+ const hashFn = (conditions2, className) => {
173
+ let result;
174
+ if (hash) {
175
+ const baseArray = [...conds.finalize(conditions2), className];
176
+ result = formatClassName(utility.toHash(baseArray, toHash));
177
+ } else {
178
+ const baseArray = [...conds.finalize(conditions2), formatClassName(className)];
179
+ result = baseArray.join(":");
180
+ }
181
+ return result;
182
+ };
183
+ return memo(({ base: base2, ...styles } = {}) => {
184
+ const styleObject = Object.assign(styles, base2);
185
+ const normalizedObject = normalizeStyleObject(styleObject, context2);
186
+ const classNames = /* @__PURE__ */ new Set();
187
+ walkObject(normalizedObject, (value, paths) => {
188
+ if (value == null) return;
189
+ const important = isImportant(value);
190
+ const [prop, ...allConditions] = conds.shift(paths);
191
+ const conditions2 = filterBaseConditions(allConditions);
192
+ const transformed = utility.transform(prop, withoutImportant(sanitize(value)));
193
+ let className = hashFn(conditions2, transformed.className);
194
+ if (important) className = `${className}!`;
195
+ classNames.add(className);
196
+ });
197
+ return Array.from(classNames).join(" ");
198
+ });
199
+ }
200
+ function compactStyles(...styles) {
201
+ return styles.flat().filter((style) => isObject(style) && Object.keys(compact(style)).length > 0);
202
+ }
203
+ function createMergeCss(context2) {
204
+ function resolve(styles) {
205
+ const allStyles = compactStyles(...styles);
206
+ if (allStyles.length === 1) return allStyles;
207
+ return allStyles.map((style) => normalizeStyleObject(style, context2));
208
+ }
209
+ function mergeCss2(...styles) {
210
+ return mergeProps(...resolve(styles));
211
+ }
212
+ function assignCss2(...styles) {
213
+ return Object.assign({}, ...resolve(styles));
214
+ }
215
+ return { mergeCss: memo(mergeCss2), assignCss: assignCss2 };
216
+ }
217
+ var wordRegex = /([A-Z])/g;
218
+ var msRegex = /^ms-/;
219
+ var hypenateProperty = memo((property) => {
220
+ if (property.startsWith("--")) return property;
221
+ return property.replace(wordRegex, "-$1").replace(msRegex, "-ms-").toLowerCase();
222
+ });
223
+ var lengthUnits = "cm,mm,Q,in,pc,pt,px,em,ex,ch,rem,lh,rlh,vw,vh,vmin,vmax,vb,vi,svw,svh,lvw,lvh,dvw,dvh,cqw,cqh,cqi,cqb,cqmin,cqmax,%";
224
+ `(?:${lengthUnits.split(",").join("|")})`;
225
+ function splitProps(props, ...keys) {
226
+ const descriptors = Object.getOwnPropertyDescriptors(props);
227
+ const dKeys = Object.keys(descriptors);
228
+ const split = (k) => {
229
+ const clone = {};
230
+ for (let i = 0; i < k.length; i++) {
231
+ const key = k[i];
232
+ if (descriptors[key]) {
233
+ Object.defineProperty(clone, key, descriptors[key]);
234
+ delete descriptors[key];
235
+ }
236
+ }
237
+ return clone;
238
+ };
239
+ const fn = (key) => split(Array.isArray(key) ? key : dKeys.filter(key));
240
+ return keys.map(fn).concat(split(dKeys));
241
+ }
242
+ var uniq = (...items) => {
243
+ const set = items.reduce((acc, currItems) => {
244
+ if (currItems) {
245
+ currItems.forEach((item) => acc.add(item));
246
+ }
247
+ return acc;
248
+ }, /* @__PURE__ */ new Set([]));
249
+ return Array.from(set);
250
+ };
251
+ var htmlProps = ["htmlSize", "htmlTranslate", "htmlWidth", "htmlHeight"];
252
+ function convert(key) {
253
+ return htmlProps.includes(key) ? key.replace("html", "").toLowerCase() : key;
254
+ }
255
+ function normalizeHTMLProps(props) {
256
+ return Object.fromEntries(Object.entries(props).map(([key, value]) => [convert(key), value]));
257
+ }
258
+ normalizeHTMLProps.keys = htmlProps;
259
+
260
+ // styled-system/css/conditions.mjs
261
+ var conditionsStr = "_hover,_focus,_focusWithin,_focusVisible,_disabled,_active,_visited,_target,_readOnly,_readWrite,_empty,_checked,_enabled,_expanded,_highlighted,_complete,_incomplete,_dragging,_before,_after,_firstLetter,_firstLine,_marker,_selection,_file,_backdrop,_first,_last,_only,_even,_odd,_firstOfType,_lastOfType,_onlyOfType,_peerFocus,_peerHover,_peerActive,_peerFocusWithin,_peerFocusVisible,_peerDisabled,_peerChecked,_peerInvalid,_peerExpanded,_peerPlaceholderShown,_groupFocus,_groupHover,_groupActive,_groupFocusWithin,_groupFocusVisible,_groupDisabled,_groupChecked,_groupExpanded,_groupInvalid,_indeterminate,_required,_valid,_invalid,_autofill,_inRange,_outOfRange,_placeholder,_placeholderShown,_pressed,_selected,_grabbed,_underValue,_overValue,_atValue,_default,_optional,_open,_closed,_fullscreen,_loading,_hidden,_current,_currentPage,_currentStep,_today,_unavailable,_rangeStart,_rangeEnd,_now,_topmost,_motionReduce,_motionSafe,_print,_landscape,_portrait,_dark,_light,_osDark,_osLight,_highContrast,_lessContrast,_moreContrast,_ltr,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_horizontal,_vertical,_icon,_starting,_noscript,_invertedColors,_activeMouse,_activeKeyboard,_checkbox,_radioLabel,_radioDisabled,_radioSelected,_radioCircleOuter,_radioCircleInner,_radioFocusRing,_path,_svg,xs,xsOnly,xsDown,sm,smOnly,smDown,md,mdOnly,mdDown,lg,lgOnly,lgDown,xl,xlOnly,xlDown,2xl,2xlOnly,2xlDown,xsToSm,xsToMd,xsToLg,xsToXl,xsTo2xl,smToMd,smToLg,smToXl,smTo2xl,mdToLg,mdToXl,mdTo2xl,lgToXl,lgTo2xl,xlTo2xl,@/xs,@/sm,@/md,@/lg,@/xl,@/2xl,@/3xl,@/4xl,@/5xl,@/6xl,@/7xl,@/8xl,base";
262
+ var conditions = new Set(conditionsStr.split(","));
263
+ var conditionRegex = /^@|&|&$/;
264
+ function isCondition(value) {
265
+ return conditions.has(value) || conditionRegex.test(value);
266
+ }
267
+ var underscoreRegex = /^_/;
268
+ var conditionsSelectorRegex = /&|@/;
269
+ function finalizeConditions(paths) {
270
+ return paths.map((path) => {
271
+ if (conditions.has(path)) {
272
+ return path.replace(underscoreRegex, "");
273
+ }
274
+ if (conditionsSelectorRegex.test(path)) {
275
+ return `[${withoutSpace(path.trim())}]`;
276
+ }
277
+ return path;
278
+ });
279
+ }
280
+ function sortConditions(paths) {
281
+ return paths.sort((a, b) => {
282
+ const aa = isCondition(a);
283
+ const bb = isCondition(b);
284
+ if (aa && !bb) return 1;
285
+ if (!aa && bb) return -1;
286
+ return 0;
287
+ });
288
+ }
289
+
290
+ // styled-system/css/css.mjs
291
+ var utilities = "aspectRatio:asp/ar,boxDecorationBreak:bx-db,zIndex:z,boxSizing:bx-s,objectPosition:obj-p,objectFit:obj-f,overscrollBehavior:ovs-b,overscrollBehaviorX:ovs-bx,overscrollBehaviorY:ovs-by,position:pos/1,top:top,left:left,inset:inset,insetInline:inset-x/insetX,insetBlock:inset-y/insetY,insetBlockEnd:inset-be,insetBlockStart:inset-bs,insetInlineEnd:inset-e/insetEnd/end,insetInlineStart:inset-s/insetStart/start,right:right,bottom:bottom,float:float,visibility:vis,display:d,hideFrom:hide,hideBelow:show,flexBasis:flex-b,flex:flex,flexDirection:flex-d/flexDir,flexGrow:flex-g,flexShrink:flex-sh,gridTemplateColumns:grid-tc,gridTemplateRows:grid-tr,gridColumn:grid-c,gridRow:grid-r,gridColumnStart:grid-cs/colStart,gridColumnEnd:grid-ce/colEnd,gridAutoFlow:grid-af,gridAutoColumns:grid-ac/autoCols,gridAutoRows:grid-ar,gap:gap,gridGap:grid-g,gridRowGap:grid-rg,gridColumnGap:grid-cg,rowGap:rg/rowG,columnGap:cg/colG,justifyContent:jc,alignContent:ac,alignItems:ai,alignSelf:as,padding:p/1,paddingLeft:pl/1,paddingRight:pr/1,paddingTop:pt/1,paddingBottom:pb/1,paddingBlock:py/1/paddingY,paddingBlockEnd:pbe,paddingBlockStart:pbs,paddingInline:px/paddingX/1,paddingInlineEnd:pe/1/paddingEnd,paddingInlineStart:ps/1/paddingStart,marginLeft:ml/1,marginRight:mr/1,marginTop:mt/1,marginBottom:mb/1,margin:m/1,marginBlock:my/1/marginY,marginBlockEnd:mbe,marginBlockStart:mbs,marginInline:mx/1/marginX,marginInlineEnd:me/1/marginEnd,marginInlineStart:ms/1/marginStart,spaceX:sx,spaceY:sy,outlineWidth:ring-w/ringWidth,outlineColor:ring-c/ringColor,outline:ring/1,outlineOffset:ring-o/ringOffset,focusRing:focus-ring,focusVisibleRing:focus-v-ring,focusRingColor:focus-ring-c,focusRingOffset:focus-ring-o,focusRingWidth:focus-ring-w,focusRingStyle:focus-ring-s,divideX:dvd-x,divideY:dvd-y,divideColor:dvd-c,divideStyle:dvd-s,width:w/1,inlineSize:w-is,minWidth:min-w/minW,minInlineSize:min-w-is,maxWidth:max-w/maxW,maxInlineSize:max-w-is,height:h/1,blockSize:h-bs,minHeight:min-h/minH,minBlockSize:min-h-bs,maxHeight:max-h/maxH,maxBlockSize:max-b,boxSize:size,color:c,fontFamily:ff,fontSize:fs,fontSizeAdjust:fs-a,fontPalette:fp,fontKerning:fk,fontFeatureSettings:ff-s,fontWeight:fw,fontSmoothing:fsmt,fontVariant:fv,fontVariantAlternates:fv-alt,fontVariantCaps:fv-caps,fontVariationSettings:fv-s,fontVariantNumeric:fv-num,letterSpacing:ls,lineHeight:lh,textAlign:ta,textDecoration:td,textDecorationColor:td-c,textEmphasisColor:te-c,textDecorationStyle:td-s,textDecorationThickness:td-t,textUnderlineOffset:tu-o,textTransform:tt,textIndent:ti,textShadow:tsh,textShadowColor:tsh-c/textShadowColor,textOverflow:tov,verticalAlign:va,wordBreak:wb,textWrap:tw,truncate:trunc,lineClamp:lc,listStyleType:li-t,listStylePosition:li-pos,listStyleImage:li-img,listStyle:li-s,backgroundPosition:bg-p/bgPosition,backgroundPositionX:bg-p-x/bgPositionX,backgroundPositionY:bg-p-y/bgPositionY,backgroundAttachment:bg-a/bgAttachment,backgroundClip:bg-cp/bgClip,background:bg/1,backgroundColor:bg-c/bgColor,backgroundOrigin:bg-o/bgOrigin,backgroundImage:bg-i/bgImage,backgroundRepeat:bg-r/bgRepeat,backgroundBlendMode:bg-bm/bgBlendMode,backgroundSize:bg-s/bgSize,backgroundGradient:bg-grad/bgGradient,backgroundLinear:bg-linear/bgLinear,backgroundRadial:bg-radial/bgRadial,backgroundConic:bg-conic/bgConic,textGradient:txt-grad,gradientFromPosition:grad-from-pos,gradientToPosition:grad-to-pos,gradientFrom:grad-from,gradientTo:grad-to,gradientVia:grad-via,gradientViaPosition:grad-via-pos,borderRadius:rounded/br,borderTopLeftRadius:bdr-tl/roundedTopLeft,borderTopRightRadius:bdr-tr/roundedTopRight,borderBottomRightRadius:bdr-br/roundedBottomRight,borderBottomLeftRadius:bdr-bl/roundedBottomLeft,borderTopRadius:bdr-t/roundedTop,borderRightRadius:bdr-r/roundedRight,borderBottomRadius:bdr-b/roundedBottom,borderLeftRadius:bdr-l/roundedLeft,borderStartStartRadius:bdr-ss/roundedStartStart,borderStartEndRadius:bdr-se/roundedStartEnd,borderStartRadius:bdr-s/roundedStart,borderEndStartRadius:bdr-es/roundedEndStart,borderEndEndRadius:bdr-ee/roundedEndEnd,borderEndRadius:bdr-e/roundedEnd,border:bd,borderWidth:bd-w,borderTopWidth:bd-t-w,borderLeftWidth:bd-l-w,borderRightWidth:bd-r-w,borderBottomWidth:bd-b-w,borderBlockStartWidth:bd-bs-w,borderBlockEndWidth:bd-be-w,borderColor:bd-c,borderInline:bd-x/borderX,borderInlineWidth:bd-x-w/borderXWidth,borderInlineColor:bd-x-c/borderXColor,borderBlock:bd-y/borderY,borderBlockWidth:bd-y-w/borderYWidth,borderBlockColor:bd-y-c/borderYColor,borderLeft:bd-l,borderLeftColor:bd-l-c,borderInlineStart:bd-s/borderStart,borderInlineStartWidth:bd-s-w/borderStartWidth,borderInlineStartColor:bd-s-c/borderStartColor,borderRight:bd-r,borderRightColor:bd-r-c,borderInlineEnd:bd-e/borderEnd,borderInlineEndWidth:bd-e-w/borderEndWidth,borderInlineEndColor:bd-e-c/borderEndColor,borderTop:bd-t,borderTopColor:bd-t-c,borderBottom:bd-b,borderBottomColor:bd-b-c,borderBlockEnd:bd-be,borderBlockEndColor:bd-be-c,borderBlockStart:bd-bs,borderBlockStartColor:bd-bs-c,opacity:op,boxShadow:bx-sh/shadow,boxShadowColor:bx-sh-c/shadowColor,mixBlendMode:mix-bm,filter:filter,brightness:brightness,contrast:contrast,grayscale:grayscale,hueRotate:hue-rotate,invert:invert,saturate:saturate,sepia:sepia,dropShadow:drop-shadow,blur:blur,backdropFilter:bkdp,backdropBlur:bkdp-blur,backdropBrightness:bkdp-brightness,backdropContrast:bkdp-contrast,backdropGrayscale:bkdp-grayscale,backdropHueRotate:bkdp-hue-rotate,backdropInvert:bkdp-invert,backdropOpacity:bkdp-opacity,backdropSaturate:bkdp-saturate,backdropSepia:bkdp-sepia,borderCollapse:bd-cl,borderSpacing:bd-sp,borderSpacingX:bd-sx,borderSpacingY:bd-sy,tableLayout:tbl,transitionTimingFunction:trs-tmf,transitionDelay:trs-dly,transitionDuration:trs-dur,transitionProperty:trs-prop,transition:trs,animation:anim,animationName:anim-n,animationTimingFunction:anim-tmf,animationDuration:anim-dur,animationDelay:anim-dly,animationPlayState:anim-ps,animationComposition:anim-comp,animationFillMode:anim-fm,animationDirection:anim-dir,animationIterationCount:anim-ic,animationRange:anim-r,animationState:anim-s,animationRangeStart:anim-rs,animationRangeEnd:anim-re,animationTimeline:anim-tl,transformOrigin:trf-o,transformBox:trf-b,transformStyle:trf-s,transform:trf,rotate:rotate,rotateX:rotate-x,rotateY:rotate-y,rotateZ:rotate-z,scale:scale,scaleX:scale-x,scaleY:scale-y,translate:translate,translateX:translate-x/x,translateY:translate-y/y,translateZ:translate-z/z,accentColor:ac-c,caretColor:ca-c,scrollBehavior:scr-bhv,scrollbar:scr-bar,scrollbarColor:scr-bar-c,scrollbarGutter:scr-bar-g,scrollbarWidth:scr-bar-w,scrollMargin:scr-m,scrollMarginLeft:scr-ml,scrollMarginRight:scr-mr,scrollMarginTop:scr-mt,scrollMarginBottom:scr-mb,scrollMarginBlock:scr-my/scrollMarginY,scrollMarginBlockEnd:scr-mbe,scrollMarginBlockStart:scr-mbt,scrollMarginInline:scr-mx/scrollMarginX,scrollMarginInlineEnd:scr-me,scrollMarginInlineStart:scr-ms,scrollPadding:scr-p,scrollPaddingBlock:scr-py/scrollPaddingY,scrollPaddingBlockStart:scr-pbs,scrollPaddingBlockEnd:scr-pbe,scrollPaddingInline:scr-px/scrollPaddingX,scrollPaddingInlineEnd:scr-pe,scrollPaddingInlineStart:scr-ps,scrollPaddingLeft:scr-pl,scrollPaddingRight:scr-pr,scrollPaddingTop:scr-pt,scrollPaddingBottom:scr-pb,scrollSnapAlign:scr-sa,scrollSnapStop:scrs-s,scrollSnapType:scrs-t,scrollSnapStrictness:scrs-strt,scrollSnapMargin:scrs-m,scrollSnapMarginTop:scrs-mt,scrollSnapMarginBottom:scrs-mb,scrollSnapMarginLeft:scrs-ml,scrollSnapMarginRight:scrs-mr,scrollSnapCoordinate:scrs-c,scrollSnapDestination:scrs-d,scrollSnapPointsX:scrs-px,scrollSnapPointsY:scrs-py,scrollSnapTypeX:scrs-tx,scrollSnapTypeY:scrs-ty,scrollTimeline:scrtl,scrollTimelineAxis:scrtl-a,scrollTimelineName:scrtl-n,touchAction:tch-a,userSelect:us,overflow:ov,overflowWrap:ov-wrap,overflowX:ov-x,overflowY:ov-y,overflowAnchor:ov-a,overflowBlock:ov-b,overflowInline:ov-i,overflowClipBox:ovcp-bx,overflowClipMargin:ovcp-m,overscrollBehaviorBlock:ovs-bb,overscrollBehaviorInline:ovs-bi,fill:fill,stroke:stk,strokeWidth:stk-w,strokeDasharray:stk-dsh,strokeDashoffset:stk-do,strokeLinecap:stk-lc,strokeLinejoin:stk-lj,strokeMiterlimit:stk-ml,strokeOpacity:stk-op,srOnly:sr,debug:debug,appearance:ap,backfaceVisibility:bfv,clipPath:cp-path,hyphens:hy,mask:msk,maskImage:msk-i,maskSize:msk-s,textSizeAdjust:txt-adj,container:cq,containerName:cq-n,containerType:cq-t,cursor:cursor,gridRowStart:rowStart/1,gridRowEnd:rowEnd/1,textStyle:textStyle";
292
+ var classNameByProp = /* @__PURE__ */ new Map();
293
+ var shorthands = /* @__PURE__ */ new Map();
294
+ utilities.split(",").forEach((utility) => {
295
+ const [prop, meta] = utility.split(":");
296
+ const [className, ...shorthandList] = meta.split("/");
297
+ classNameByProp.set(prop, className);
298
+ if (shorthandList.length) {
299
+ shorthandList.forEach((shorthand) => {
300
+ shorthands.set(shorthand === "1" ? className : shorthand, prop);
301
+ });
302
+ }
303
+ });
304
+ var resolveShorthand = (prop) => shorthands.get(prop) || prop;
305
+ var context = {
306
+ conditions: {
307
+ shift: sortConditions,
308
+ finalize: finalizeConditions,
309
+ breakpoints: { keys: ["base", "xs", "sm", "md", "lg", "xl", "2xl"] }
310
+ },
311
+ utility: {
312
+ transform: (prop, value) => {
313
+ const key = resolveShorthand(prop);
314
+ const propKey = classNameByProp.get(key) || hypenateProperty(key);
315
+ return { className: `${propKey}_${withoutSpace(value)}` };
316
+ },
317
+ hasShorthand: true,
318
+ toHash: (path, hashFn) => hashFn(path.join(":")),
319
+ resolveShorthand
320
+ }
321
+ };
322
+ var cssFn = createCss(context);
323
+ var css = (...styles) => cssFn(mergeCss(...styles));
324
+ css.raw = (...styles) => mergeCss(...styles);
325
+ var { mergeCss} = createMergeCss(context);
326
+
327
+ // styled-system/css/cx.mjs
328
+ function cx() {
329
+ let str = "", i = 0, arg;
330
+ for (; i < arguments.length; ) {
331
+ if ((arg = arguments[i++]) && typeof arg === "string") {
332
+ str && (str += " ");
333
+ str += arg;
334
+ }
335
+ }
336
+ return str;
337
+ }
338
+
339
+ // styled-system/css/cva.mjs
340
+ var defaults = (conf) => ({
341
+ base: {},
342
+ variants: {},
343
+ defaultVariants: {},
344
+ compoundVariants: [],
345
+ ...conf
346
+ });
347
+ function cva(config) {
348
+ const { base: base2, variants, defaultVariants, compoundVariants } = defaults(config);
349
+ const getVariantProps = (variants2) => ({ ...defaultVariants, ...compact(variants2) });
350
+ function resolve(props = {}) {
351
+ const computedVariants = getVariantProps(props);
352
+ let variantCss = { ...base2 };
353
+ for (const [key, value] of Object.entries(computedVariants)) {
354
+ if (variants[key]?.[value]) {
355
+ variantCss = mergeCss(variantCss, variants[key][value]);
356
+ }
357
+ }
358
+ const compoundVariantCss = getCompoundVariantCss(compoundVariants, computedVariants);
359
+ return mergeCss(variantCss, compoundVariantCss);
360
+ }
361
+ function merge(__cva) {
362
+ const override = defaults(__cva.config);
363
+ const variantKeys2 = uniq(__cva.variantKeys, Object.keys(variants));
364
+ return cva({
365
+ base: mergeCss(base2, override.base),
366
+ variants: Object.fromEntries(
367
+ variantKeys2.map((key) => [key, mergeCss(variants[key], override.variants[key])])
368
+ ),
369
+ defaultVariants: mergeProps(defaultVariants, override.defaultVariants),
370
+ compoundVariants: [...compoundVariants, ...override.compoundVariants]
371
+ });
372
+ }
373
+ function cvaFn(props) {
374
+ return css(resolve(props));
375
+ }
376
+ const variantKeys = Object.keys(variants);
377
+ function splitVariantProps(props) {
378
+ return splitProps(props, variantKeys);
379
+ }
380
+ const variantMap = Object.fromEntries(Object.entries(variants).map(([key, value]) => [key, Object.keys(value)]));
381
+ return Object.assign(memo(cvaFn), {
382
+ __cva__: true,
383
+ variantMap,
384
+ variantKeys,
385
+ raw: resolve,
386
+ config,
387
+ merge,
388
+ splitVariantProps,
389
+ getVariantProps
390
+ });
391
+ }
392
+ function getCompoundVariantCss(compoundVariants, variantMap) {
393
+ let result = {};
394
+ compoundVariants.forEach((compoundVariant) => {
395
+ const isMatching = Object.entries(compoundVariant).every(([key, value]) => {
396
+ if (key === "css") return true;
397
+ const values = Array.isArray(value) ? value : [value];
398
+ return values.some((value2) => variantMap[key] === value2);
399
+ });
400
+ if (isMatching) {
401
+ result = mergeCss(result, compoundVariant.css);
402
+ }
403
+ });
404
+ return result;
405
+ }
406
+
407
+ // styled-system/jsx/is-valid-prop.mjs
408
+ var userGeneratedStr = "css,ar,pos,insetX,insetY,insetEnd,end,insetStart,start,flexDir,colStart,colEnd,autoCols,rowG,colG,p,pl,pr,pt,pb,py,paddingY,paddingX,px,pe,paddingEnd,ps,paddingStart,ml,mr,mt,mb,m,my,marginY,mx,marginX,me,marginEnd,ms,marginStart,ringWidth,ringColor,ring,ringOffset,w,minW,maxW,h,minH,maxH,textShadowColor,bgPosition,bgPositionX,bgPositionY,bgAttachment,bgClip,bg,bgColor,bgOrigin,bgImage,bgRepeat,bgBlendMode,bgSize,bgGradient,bgLinear,bgRadial,bgConic,br,roundedTopLeft,roundedTopRight,roundedBottomRight,roundedBottomLeft,roundedTop,roundedRight,roundedBottom,roundedLeft,roundedStartStart,roundedStartEnd,roundedStart,roundedEndStart,roundedEndEnd,roundedEnd,borderX,borderXWidth,borderXColor,borderY,borderYWidth,borderYColor,borderStart,borderStartWidth,borderStartColor,borderEnd,borderEndWidth,borderEndColor,shadow,shadowColor,x,y,z,scrollMarginY,scrollMarginX,scrollPaddingY,scrollPaddingX,rowStart,rowEnd,rounded,aspectRatio,boxDecorationBreak,zIndex,boxSizing,objectPosition,objectFit,overscrollBehavior,overscrollBehaviorX,overscrollBehaviorY,position,top,left,inset,insetInline,insetBlock,insetBlockEnd,insetBlockStart,insetInlineEnd,insetInlineStart,right,bottom,float,visibility,display,hideFrom,hideBelow,flexBasis,flex,flexDirection,flexGrow,flexShrink,gridTemplateColumns,gridTemplateRows,gridColumn,gridRow,gridColumnStart,gridColumnEnd,gridAutoFlow,gridAutoColumns,gridAutoRows,gap,gridGap,gridRowGap,gridColumnGap,rowGap,columnGap,justifyContent,alignContent,alignItems,alignSelf,padding,paddingLeft,paddingRight,paddingTop,paddingBottom,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingInline,paddingInlineEnd,paddingInlineStart,marginLeft,marginRight,marginTop,marginBottom,margin,marginBlock,marginBlockEnd,marginBlockStart,marginInline,marginInlineEnd,marginInlineStart,spaceX,spaceY,outlineWidth,outlineColor,outline,outlineOffset,focusRing,focusVisibleRing,focusRingColor,focusRingOffset,focusRingWidth,focusRingStyle,divideX,divideY,divideColor,divideStyle,width,inlineSize,minWidth,minInlineSize,maxWidth,maxInlineSize,height,blockSize,minHeight,minBlockSize,maxHeight,maxBlockSize,boxSize,color,fontFamily,fontSize,fontSizeAdjust,fontPalette,fontKerning,fontFeatureSettings,fontWeight,fontSmoothing,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariationSettings,fontVariantNumeric,letterSpacing,lineHeight,textAlign,textDecoration,textDecorationColor,textEmphasisColor,textDecorationStyle,textDecorationThickness,textUnderlineOffset,textTransform,textIndent,textShadow,textOverflow,verticalAlign,wordBreak,textWrap,truncate,lineClamp,listStyleType,listStylePosition,listStyleImage,listStyle,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundAttachment,backgroundClip,background,backgroundColor,backgroundOrigin,backgroundImage,backgroundRepeat,backgroundBlendMode,backgroundSize,backgroundGradient,backgroundLinear,backgroundRadial,backgroundConic,textGradient,gradientFromPosition,gradientToPosition,gradientFrom,gradientTo,gradientVia,gradientViaPosition,borderRadius,borderTopLeftRadius,borderTopRightRadius,borderBottomRightRadius,borderBottomLeftRadius,borderTopRadius,borderRightRadius,borderBottomRadius,borderLeftRadius,borderStartStartRadius,borderStartEndRadius,borderStartRadius,borderEndStartRadius,borderEndEndRadius,borderEndRadius,border,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,borderBlockStartWidth,borderBlockEndWidth,borderColor,borderInline,borderInlineWidth,borderInlineColor,borderBlock,borderBlockWidth,borderBlockColor,borderLeft,borderLeftColor,borderInlineStart,borderInlineStartWidth,borderInlineStartColor,borderRight,borderRightColor,borderInlineEnd,borderInlineEndWidth,borderInlineEndColor,borderTop,borderTopColor,borderBottom,borderBottomColor,borderBlockEnd,borderBlockEndColor,borderBlockStart,borderBlockStartColor,opacity,boxShadow,boxShadowColor,mixBlendMode,filter,brightness,contrast,grayscale,hueRotate,invert,saturate,sepia,dropShadow,blur,backdropFilter,backdropBlur,backdropBrightness,backdropContrast,backdropGrayscale,backdropHueRotate,backdropInvert,backdropOpacity,backdropSaturate,backdropSepia,borderCollapse,borderSpacing,borderSpacingX,borderSpacingY,tableLayout,transitionTimingFunction,transitionDelay,transitionDuration,transitionProperty,transition,animation,animationName,animationTimingFunction,animationDuration,animationDelay,animationPlayState,animationComposition,animationFillMode,animationDirection,animationIterationCount,animationRange,animationState,animationRangeStart,animationRangeEnd,animationTimeline,transformOrigin,transformBox,transformStyle,transform,rotate,rotateX,rotateY,rotateZ,scale,scaleX,scaleY,translate,translateX,translateY,translateZ,accentColor,caretColor,scrollBehavior,scrollbar,scrollbarColor,scrollbarGutter,scrollbarWidth,scrollMargin,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollMarginBottom,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollPadding,scrollPaddingBlock,scrollPaddingBlockStart,scrollPaddingBlockEnd,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollPaddingBottom,scrollSnapAlign,scrollSnapStop,scrollSnapType,scrollSnapStrictness,scrollSnapMargin,scrollSnapMarginTop,scrollSnapMarginBottom,scrollSnapMarginLeft,scrollSnapMarginRight,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,touchAction,userSelect,overflow,overflowWrap,overflowX,overflowY,overflowAnchor,overflowBlock,overflowInline,overflowClipBox,overflowClipMargin,overscrollBehaviorBlock,overscrollBehaviorInline,fill,stroke,strokeWidth,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,srOnly,debug,appearance,backfaceVisibility,clipPath,hyphens,mask,maskImage,maskSize,textSizeAdjust,container,containerName,containerType,cursor,grid,center,relative,absolute,fixed,sticky,size,pointer,strokeColor,cols,rows,placeI,placeC,placeS,alignI,alignC,alignS,justifyI,justifyC,justifyS,colN,spaceBetween,rowN,gridRowStart,gridRowEnd,colorPalette,_hover,_focus,_focusWithin,_focusVisible,_disabled,_active,_visited,_target,_readOnly,_readWrite,_empty,_checked,_enabled,_expanded,_highlighted,_complete,_incomplete,_dragging,_before,_after,_firstLetter,_firstLine,_marker,_selection,_file,_backdrop,_first,_last,_only,_even,_odd,_firstOfType,_lastOfType,_onlyOfType,_peerFocus,_peerHover,_peerActive,_peerFocusWithin,_peerFocusVisible,_peerDisabled,_peerChecked,_peerInvalid,_peerExpanded,_peerPlaceholderShown,_groupFocus,_groupHover,_groupActive,_groupFocusWithin,_groupFocusVisible,_groupDisabled,_groupChecked,_groupExpanded,_groupInvalid,_indeterminate,_required,_valid,_invalid,_autofill,_inRange,_outOfRange,_placeholder,_placeholderShown,_pressed,_selected,_grabbed,_underValue,_overValue,_atValue,_default,_optional,_open,_closed,_fullscreen,_loading,_hidden,_current,_currentPage,_currentStep,_today,_unavailable,_rangeStart,_rangeEnd,_now,_topmost,_motionReduce,_motionSafe,_print,_landscape,_portrait,_dark,_light,_osDark,_osLight,_highContrast,_lessContrast,_moreContrast,_ltr,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_horizontal,_vertical,_icon,_starting,_noscript,_invertedColors,_activeMouse,_activeKeyboard,_checkbox,_radioLabel,_radioDisabled,_radioSelected,_radioCircleOuter,_radioCircleInner,_radioFocusRing,_path,_svg,xs,xsOnly,xsDown,sm,smOnly,smDown,md,mdOnly,mdDown,lg,lgOnly,lgDown,xl,xlOnly,xlDown,2xl,2xlOnly,2xlDown,xsToSm,xsToMd,xsToLg,xsToXl,xsTo2xl,smToMd,smToLg,smToXl,smTo2xl,mdToLg,mdToXl,mdTo2xl,lgToXl,lgTo2xl,xlTo2xl,@/xs,@/sm,@/md,@/lg,@/xl,@/2xl,@/3xl,@/4xl,@/5xl,@/6xl,@/7xl,@/8xl,textStyle";
409
+ var userGenerated = userGeneratedStr.split(",");
410
+ var cssPropertiesStr = "WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,WebkitUserSelect,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,anchorName,anchorScope,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationRange,animationRangeEnd,animationRangeStart,animationTimeline,animationTimingFunction,appearance,aspectRatio,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockSize,border,borderBlock,borderBlockColor,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBlockStyle,borderBlockWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineColor,borderInlineEnd,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderInlineStyle,borderInlineWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,clipRule,color,colorInterpolationFilters,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,cx,cy,d,direction,display,dominantBaseline,emptyCells,fieldSizing,fill,fillOpacity,fillRule,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,floodColor,floodOpacity,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontVariationSettings,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,interpolateSize,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lightingColor,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,marker,markerEnd,markerMid,markerStart,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overlay,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,positionAnchor,positionArea,positionTry,positionTryFallbacks,positionTryOrder,positionVisibility,printColorAdjust,quotes,r,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,rx,ry,scale,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginBottom,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockEnd,scrollPaddingBlockStart,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,scrollbarColor,scrollbarGutter,scrollbarWidth,shapeImageThreshold,shapeMargin,shapeOutside,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,tabSize,tableLayout,textAlign,textAlignLast,textAnchor,textBox,textBoxEdge,textBoxTrim,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textSpacingTrim,textTransform,textUnderlineOffset,textUnderlinePosition,textWrap,textWrapMode,textWrapStyle,timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,vectorEffect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,visibility,whiteSpace,whiteSpaceCollapse,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,x,y,zIndex,zoom,alignmentBaseline,baselineShift,colorInterpolation,colorRendering,glyphOrientationVertical";
411
+ var allCssProperties = cssPropertiesStr.split(",").concat(userGenerated);
412
+ var properties = new Map(allCssProperties.map((prop) => [prop, true]));
413
+ var cssPropertySelectorRegex = /&|@/;
414
+ var isCssProperty = /* @__PURE__ */ memo((prop) => {
415
+ return properties.has(prop) || prop.startsWith("--") || cssPropertySelectorRegex.test(prop);
416
+ });
417
+
418
+ // styled-system/jsx/factory-helper.mjs
419
+ var defaultShouldForwardProp = (prop, variantKeys) => !variantKeys.includes(prop) && !isCssProperty(prop);
420
+ var composeShouldForwardProps = (tag, shouldForwardProp) => tag.__shouldForwardProps__ && shouldForwardProp ? (propName) => tag.__shouldForwardProps__(propName) && shouldForwardProp(propName) : shouldForwardProp;
421
+ var composeCvaFn = (cvaA, cvaB) => {
422
+ if (cvaA && !cvaB) return cvaA;
423
+ if (!cvaA && cvaB) return cvaB;
424
+ if (cvaA.__cva__ && cvaB.__cva__ || cvaA.__recipe__ && cvaB.__recipe__) return cvaA.merge(cvaB);
425
+ const error = new TypeError("Cannot merge cva with recipe. Please use either cva or recipe.");
426
+ TypeError.captureStackTrace?.(error);
427
+ throw error;
428
+ };
429
+ var getDisplayName = (Component) => {
430
+ if (typeof Component === "string") return Component;
431
+ return Component?.displayName || Component?.name || "Component";
432
+ };
433
+
434
+ // styled-system/jsx/factory.mjs
435
+ function styledFn(Dynamic, configOrCva = {}, options = {}) {
436
+ const cvaFn = configOrCva.__cva__ || configOrCva.__recipe__ ? configOrCva : cva(configOrCva);
437
+ const forwardFn = options.shouldForwardProp || defaultShouldForwardProp;
438
+ const shouldForwardProp = (prop) => {
439
+ if (options.forwardProps?.includes(prop)) return true;
440
+ return forwardFn(prop, cvaFn.variantKeys);
441
+ };
442
+ const defaultProps = Object.assign(
443
+ options.dataAttr && configOrCva.__name__ ? { "data-recipe": configOrCva.__name__ } : {},
444
+ options.defaultProps
445
+ );
446
+ const __cvaFn__ = composeCvaFn(Dynamic.__cva__, cvaFn);
447
+ const __shouldForwardProps__ = composeShouldForwardProps(Dynamic, shouldForwardProp);
448
+ const __base__ = Dynamic.__base__ || Dynamic;
449
+ const StyledComponent = /* @__PURE__ */ React11.forwardRef(function StyledComponent2(props, ref) {
450
+ const { as: Element2 = __base__, unstyled, children, ...restProps } = props;
451
+ const combinedProps = React11.useMemo(() => Object.assign({}, defaultProps, restProps), [restProps]);
452
+ const [htmlProps2, forwardedProps, variantProps, styleProps, elementProps] = React11.useMemo(() => {
453
+ return splitProps(combinedProps, normalizeHTMLProps.keys, __shouldForwardProps__, __cvaFn__.variantKeys, isCssProperty);
454
+ }, [combinedProps]);
455
+ function recipeClass() {
456
+ const { css: cssStyles, ...propStyles } = styleProps;
457
+ const compoundVariantStyles = __cvaFn__.__getCompoundVariantCss__?.(variantProps);
458
+ return cx(__cvaFn__(variantProps, false), css(compoundVariantStyles, propStyles, cssStyles), combinedProps.className);
459
+ }
460
+ function cvaClass() {
461
+ const { css: cssStyles, ...propStyles } = styleProps;
462
+ const cvaStyles = __cvaFn__.raw(variantProps);
463
+ return cx(css(cvaStyles, propStyles, cssStyles), combinedProps.className);
464
+ }
465
+ const classes = () => {
466
+ if (unstyled) {
467
+ const { css: cssStyles, ...propStyles } = styleProps;
468
+ return cx(css(propStyles, cssStyles), combinedProps.className);
469
+ }
470
+ return configOrCva.__recipe__ ? recipeClass() : cvaClass();
471
+ };
472
+ return React11.createElement(Element2, {
473
+ ref,
474
+ ...forwardedProps,
475
+ ...elementProps,
476
+ ...normalizeHTMLProps(htmlProps2),
477
+ className: classes()
478
+ }, children ?? combinedProps.children);
479
+ });
480
+ const name = getDisplayName(__base__);
481
+ StyledComponent.displayName = `styled.${name}`;
482
+ StyledComponent.__cva__ = __cvaFn__;
483
+ StyledComponent.__base__ = __base__;
484
+ StyledComponent.__shouldForwardProps__ = shouldForwardProp;
485
+ return StyledComponent;
486
+ }
487
+ function createJsxFactory() {
488
+ const cache = /* @__PURE__ */ new Map();
489
+ return new Proxy(styledFn, {
490
+ apply(_, __, args) {
491
+ return styledFn(...args);
492
+ },
493
+ get(_, el) {
494
+ if (!cache.has(el)) {
495
+ cache.set(el, styledFn(el));
496
+ }
497
+ return cache.get(el);
498
+ }
499
+ });
500
+ }
501
+ var styled = /* @__PURE__ */ createJsxFactory();
502
+ var base = styled("div", { base: { m: 0 } });
47
503
  var tags = {
48
504
  div: base,
49
- a: jsx.styled("a"),
50
- br: jsx.styled("br"),
51
- button: jsx.styled("button"),
52
- canvas: jsx.styled("canvas"),
53
- form: jsx.styled("form"),
54
- h1: jsx.styled("h1"),
55
- h2: jsx.styled("h2"),
56
- h3: jsx.styled("h3"),
57
- hr: jsx.styled("hr"),
58
- nav: jsx.styled("nav"),
59
- main: jsx.styled("main"),
60
- aside: jsx.styled("aside"),
61
- article: jsx.styled("article"),
62
- section: jsx.styled("section"),
63
- details: jsx.styled("details"),
64
- header: jsx.styled("header"),
65
- footer: jsx.styled("footer"),
66
- strong: jsx.styled("strong"),
67
- em: jsx.styled("em"),
68
- img: jsx.styled("img"),
69
- del: jsx.styled("del"),
70
- ins: jsx.styled("ins"),
71
- kbd: jsx.styled("kbd"),
72
- code: jsx.styled("code"),
73
- mark: jsx.styled("mark"),
74
- samp: jsx.styled("samp"),
75
- small: jsx.styled("small"),
76
- sub: jsx.styled("sub"),
77
- sup: jsx.styled("sup"),
78
- u: jsx.styled("u"),
79
- var: jsx.styled("var"),
80
- input: jsx.styled("input"),
81
- label: jsx.styled("label"),
82
- legend: jsx.styled("legend"),
83
- p: jsx.styled("p"),
84
- select: jsx.styled("select"),
85
- span: jsx.styled("span"),
86
- svg: jsx.styled("svg"),
87
- textarea: jsx.styled("textarea"),
88
- table: jsx.styled("table"),
89
- tr: jsx.styled("tr"),
90
- th: jsx.styled("th"),
91
- td: jsx.styled("td"),
92
- tbody: jsx.styled("tbody"),
93
- thead: jsx.styled("thead"),
94
- tfoot: jsx.styled("tfoot"),
95
- progress: jsx.styled("progress"),
96
- ol: jsx.styled("ol"),
97
- ul: jsx.styled("ul"),
98
- li: jsx.styled("li"),
99
- blockquote: jsx.styled("blockquote"),
100
- pre: jsx.styled("pre")
505
+ a: styled("a"),
506
+ br: styled("br"),
507
+ button: styled("button"),
508
+ canvas: styled("canvas"),
509
+ form: styled("form"),
510
+ h1: styled("h1"),
511
+ h2: styled("h2"),
512
+ h3: styled("h3"),
513
+ hr: styled("hr"),
514
+ nav: styled("nav"),
515
+ main: styled("main"),
516
+ aside: styled("aside"),
517
+ article: styled("article"),
518
+ section: styled("section"),
519
+ details: styled("details"),
520
+ header: styled("header"),
521
+ footer: styled("footer"),
522
+ strong: styled("strong"),
523
+ em: styled("em"),
524
+ img: styled("img"),
525
+ del: styled("del"),
526
+ ins: styled("ins"),
527
+ kbd: styled("kbd"),
528
+ code: styled("code"),
529
+ mark: styled("mark"),
530
+ samp: styled("samp"),
531
+ small: styled("small"),
532
+ sub: styled("sub"),
533
+ sup: styled("sup"),
534
+ u: styled("u"),
535
+ var: styled("var"),
536
+ input: styled("input"),
537
+ label: styled("label"),
538
+ legend: styled("legend"),
539
+ p: styled("p"),
540
+ select: styled("select"),
541
+ span: styled("span"),
542
+ svg: styled("svg"),
543
+ textarea: styled("textarea"),
544
+ table: styled("table"),
545
+ tr: styled("tr"),
546
+ th: styled("th"),
547
+ td: styled("td"),
548
+ tbody: styled("tbody"),
549
+ thead: styled("thead"),
550
+ tfoot: styled("tfoot"),
551
+ progress: styled("progress"),
552
+ ol: styled("ol"),
553
+ ul: styled("ul"),
554
+ li: styled("li"),
555
+ blockquote: styled("blockquote"),
556
+ pre: styled("pre")
101
557
  };
102
558
  var motionTags = {
103
- div: jsx.styled(framerMotion.motion.div, { base: { m: 0 } }),
104
- a: jsx.styled(framerMotion.motion.a),
105
- br: jsx.styled(framerMotion.motion.br),
106
- button: jsx.styled(framerMotion.motion.button),
107
- canvas: jsx.styled(framerMotion.motion.canvas),
108
- form: jsx.styled(framerMotion.motion.form),
109
- h1: jsx.styled(framerMotion.motion.h1),
110
- h2: jsx.styled(framerMotion.motion.h2),
111
- h3: jsx.styled(framerMotion.motion.h3),
112
- hr: jsx.styled(framerMotion.motion.hr),
113
- nav: jsx.styled(framerMotion.motion.nav),
114
- main: jsx.styled(framerMotion.motion.main),
115
- aside: jsx.styled(framerMotion.motion.aside),
116
- article: jsx.styled(framerMotion.motion.article),
117
- section: jsx.styled(framerMotion.motion.section),
118
- details: jsx.styled(framerMotion.motion.details),
119
- header: jsx.styled(framerMotion.motion.header),
120
- footer: jsx.styled(framerMotion.motion.footer),
121
- strong: jsx.styled(framerMotion.motion.strong),
122
- em: jsx.styled(framerMotion.motion.em),
123
- img: jsx.styled(framerMotion.motion.img),
124
- del: jsx.styled(framerMotion.motion.del),
125
- ins: jsx.styled(framerMotion.motion.ins),
126
- kbd: jsx.styled(framerMotion.motion.kbd),
127
- code: jsx.styled(framerMotion.motion.code),
128
- mark: jsx.styled(framerMotion.motion.mark),
129
- samp: jsx.styled(framerMotion.motion.samp),
130
- small: jsx.styled(framerMotion.motion.small),
131
- sub: jsx.styled(framerMotion.motion.sub),
132
- sup: jsx.styled(framerMotion.motion.sup),
133
- u: jsx.styled(framerMotion.motion.u),
134
- var: jsx.styled(framerMotion.motion.var),
135
- input: jsx.styled(framerMotion.motion.input),
136
- label: jsx.styled(framerMotion.motion.label),
137
- legend: jsx.styled(framerMotion.motion.legend),
138
- p: jsx.styled(framerMotion.motion.p),
139
- select: jsx.styled(framerMotion.motion.select),
140
- span: jsx.styled(framerMotion.motion.span),
141
- svg: jsx.styled(framerMotion.motion.svg),
142
- textarea: jsx.styled(framerMotion.motion.textarea),
143
- table: jsx.styled(framerMotion.motion.table),
144
- tr: jsx.styled(framerMotion.motion.tr),
145
- th: jsx.styled(framerMotion.motion.th),
146
- td: jsx.styled(framerMotion.motion.td),
147
- tbody: jsx.styled(framerMotion.motion.tbody),
148
- thead: jsx.styled(framerMotion.motion.thead),
149
- tfoot: jsx.styled(framerMotion.motion.tfoot),
150
- progress: jsx.styled(framerMotion.motion.progress),
151
- ol: jsx.styled(framerMotion.motion.ol),
152
- ul: jsx.styled(framerMotion.motion.ul),
153
- li: jsx.styled(framerMotion.motion.li),
154
- blockquote: jsx.styled(framerMotion.motion.blockquote),
155
- pre: jsx.styled(framerMotion.motion.pre)
559
+ div: styled(framerMotion.motion.div, { base: { m: 0 } }),
560
+ a: styled(framerMotion.motion.a),
561
+ br: styled(framerMotion.motion.br),
562
+ button: styled(framerMotion.motion.button),
563
+ canvas: styled(framerMotion.motion.canvas),
564
+ form: styled(framerMotion.motion.form),
565
+ h1: styled(framerMotion.motion.h1),
566
+ h2: styled(framerMotion.motion.h2),
567
+ h3: styled(framerMotion.motion.h3),
568
+ hr: styled(framerMotion.motion.hr),
569
+ nav: styled(framerMotion.motion.nav),
570
+ main: styled(framerMotion.motion.main),
571
+ aside: styled(framerMotion.motion.aside),
572
+ article: styled(framerMotion.motion.article),
573
+ section: styled(framerMotion.motion.section),
574
+ details: styled(framerMotion.motion.details),
575
+ header: styled(framerMotion.motion.header),
576
+ footer: styled(framerMotion.motion.footer),
577
+ strong: styled(framerMotion.motion.strong),
578
+ em: styled(framerMotion.motion.em),
579
+ img: styled(framerMotion.motion.img),
580
+ del: styled(framerMotion.motion.del),
581
+ ins: styled(framerMotion.motion.ins),
582
+ kbd: styled(framerMotion.motion.kbd),
583
+ code: styled(framerMotion.motion.code),
584
+ mark: styled(framerMotion.motion.mark),
585
+ samp: styled(framerMotion.motion.samp),
586
+ small: styled(framerMotion.motion.small),
587
+ sub: styled(framerMotion.motion.sub),
588
+ sup: styled(framerMotion.motion.sup),
589
+ u: styled(framerMotion.motion.u),
590
+ var: styled(framerMotion.motion.var),
591
+ input: styled(framerMotion.motion.input),
592
+ label: styled(framerMotion.motion.label),
593
+ legend: styled(framerMotion.motion.legend),
594
+ p: styled(framerMotion.motion.p),
595
+ select: styled(framerMotion.motion.select),
596
+ span: styled(framerMotion.motion.span),
597
+ svg: styled(framerMotion.motion.svg),
598
+ textarea: styled(framerMotion.motion.textarea),
599
+ table: styled(framerMotion.motion.table),
600
+ tr: styled(framerMotion.motion.tr),
601
+ th: styled(framerMotion.motion.th),
602
+ td: styled(framerMotion.motion.td),
603
+ tbody: styled(framerMotion.motion.tbody),
604
+ thead: styled(framerMotion.motion.thead),
605
+ tfoot: styled(framerMotion.motion.tfoot),
606
+ progress: styled(framerMotion.motion.progress),
607
+ ol: styled(framerMotion.motion.ol),
608
+ ul: styled(framerMotion.motion.ul),
609
+ li: styled(framerMotion.motion.li),
610
+ blockquote: styled(framerMotion.motion.blockquote),
611
+ pre: styled(framerMotion.motion.pre)
156
612
  };
157
613
  var loadingIconsMap = {
158
614
  rotatingLines: reactLoaderSpinner.RotatingLines,
@@ -311,7 +767,7 @@ function Menu(props) {
311
767
  defaultStyles.overflow = "hidden";
312
768
  if (childProps.outline === void 0 && childProps.style?.outline === void 0)
313
769
  defaultStyles.outline = "none";
314
- const defaultsClassName = Object.keys(defaultStyles).length > 0 ? css.css(defaultStyles) : "";
770
+ const defaultsClassName = Object.keys(defaultStyles).length > 0 ? css(defaultStyles) : "";
315
771
  const mergedStyle = {
316
772
  ...childProps.style || {},
317
773
  ...restStyle || {}
@@ -609,8 +1065,8 @@ var extractElAndStyles = (extract, anyProps) => {
609
1065
  } : void 0;
610
1066
  const remaining = omit(rest, ["loadingPosition", "loadingIcon", "isLoading"]);
611
1067
  const cursor = anyProps.isLoading ? "not-allowed" : "pointer";
612
- const btnClassName = extract.is === "btn" ? css.css({ display: "flex", alignI: "center", cursor }) : "";
613
- const linkClassName = extract.isLink ? css.css({
1068
+ const btnClassName = extract.is === "btn" ? css({ display: "flex", alignI: "center", cursor }) : "";
1069
+ const linkClassName = extract.isLink ? css({
614
1070
  color: { base: "blue.500", _dark: "blue.400" },
615
1071
  _hover: { textDecoration: "underline" },
616
1072
  cursor
@@ -742,11 +1198,11 @@ var Button = motionTags.button;
742
1198
  var Base = motionTags.div;
743
1199
  var SwitchContext = React11__namespace.default.createContext(null);
744
1200
  var useSwitchContext = () => {
745
- const context = React11__namespace.default.useContext(SwitchContext);
746
- if (!context) {
1201
+ const context2 = React11__namespace.default.useContext(SwitchContext);
1202
+ if (!context2) {
747
1203
  throw new Error("Switch compound components must be used within Switch");
748
1204
  }
749
- return context;
1205
+ return context2;
750
1206
  };
751
1207
  function Switch(props) {
752
1208
  const {
@@ -1904,11 +2360,11 @@ function AccordionProvider(props) {
1904
2360
  return /* @__PURE__ */ jsxRuntime.jsx(AccordionContext.Provider, { value: { setState, state }, children: props.children });
1905
2361
  }
1906
2362
  function useAccordion() {
1907
- const context = React11__namespace.default.useContext(AccordionContext);
1908
- if (context === void 0) {
2363
+ const context2 = React11__namespace.default.useContext(AccordionContext);
2364
+ if (context2 === void 0) {
1909
2365
  throw new Error("useAccordion must be used within a AccordionProvider");
1910
2366
  }
1911
- return context;
2367
+ return context2;
1912
2368
  }
1913
2369
  function AccordionComponent(props) {
1914
2370
  const accordion = useAccordion();
@@ -2244,11 +2700,11 @@ function DrawerProvider(props) {
2244
2700
  return /* @__PURE__ */ jsxRuntime.jsx(DrawerContext.Provider, { value, children: props.children });
2245
2701
  }
2246
2702
  function useDrawer() {
2247
- const context = React11__namespace.default.useContext(DrawerContext);
2248
- if (context === void 0) {
2703
+ const context2 = React11__namespace.default.useContext(DrawerContext);
2704
+ if (context2 === void 0) {
2249
2705
  throw new Error("useDrawer must be used within a DrawerProvider");
2250
2706
  }
2251
- return context;
2707
+ return context2;
2252
2708
  }
2253
2709
  function Drawer(props) {
2254
2710
  return /* @__PURE__ */ jsxRuntime.jsx(DrawerProvider, { children: /* @__PURE__ */ jsxRuntime.jsx(DrawerComponent, { ...props }) });
@@ -2526,7 +2982,7 @@ function Tooltip(props) {
2526
2982
  const referenceRef = React11__namespace.default.useRef(null);
2527
2983
  const arrowRef = React11__namespace.default.useRef(null);
2528
2984
  const [open, setOpen] = React11__namespace.default.useState(false);
2529
- const { x, y, refs, strategy, middlewareData, context } = react.useFloating({
2985
+ const { x, y, refs, strategy, middlewareData, context: context2 } = react.useFloating({
2530
2986
  open,
2531
2987
  onOpenChange: setOpen,
2532
2988
  placement: placement === "auto" ? "top" : placement,
@@ -2539,14 +2995,14 @@ function Tooltip(props) {
2539
2995
  whileElementsMounted: react.autoUpdate,
2540
2996
  strategy: "fixed"
2541
2997
  });
2542
- const hover = react.useHover(context, {
2998
+ const hover = react.useHover(context2, {
2543
2999
  delay: { open: delay, close: 120 },
2544
3000
  handleClose: react.safePolygon(),
2545
3001
  move: true
2546
3002
  });
2547
- const focus = react.useFocus(context);
2548
- const dismiss = react.useDismiss(context);
2549
- const role = react.useRole(context, { role: "tooltip" });
3003
+ const focus = react.useFocus(context2);
3004
+ const dismiss = react.useDismiss(context2);
3005
+ const role = react.useRole(context2, { role: "tooltip" });
2550
3006
  const { getReferenceProps, getFloatingProps } = react.useInteractions([
2551
3007
  hover,
2552
3008
  focus,
@@ -2571,7 +3027,7 @@ function Tooltip(props) {
2571
3027
  }, [follow, refs]);
2572
3028
  const arrowX = middlewareData?.arrow?.x ?? 0;
2573
3029
  const arrowY = middlewareData?.arrow?.y ?? 0;
2574
- const side = context.placement || "top";
3030
+ const side = context2.placement || "top";
2575
3031
  const ARROW_SIZE = 10;
2576
3032
  const anchorOffset = Math.max(ARROW_SIZE / 2 - 1, 3);
2577
3033
  const arrowAnchorStyle = side.startsWith("top") ? { bottom: -anchorOffset } : side.startsWith("bottom") ? { top: -anchorOffset } : side.startsWith("left") ? { right: -anchorOffset } : { left: -anchorOffset };