@fwkui/x-css 1.0.21 → 1.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -13,6 +13,7 @@ type XCSSConfig = {
13
13
  compression?: boolean;
14
14
  debounceMs?: number;
15
15
  sizeLast?: number;
16
+ loadOnInit?: boolean;
16
17
  };
17
18
  };
18
19
  interface XCSSCacheData {
@@ -38,9 +39,69 @@ declare const _default: {
38
39
 
39
40
  type BootloaderScriptOptions = {
40
41
  compact?: boolean;
42
+ loadOnInit?: boolean;
41
43
  };
42
44
  declare const getBootloaderScript: (styleIdInput?: string, version?: string, options?: BootloaderScriptOptions) => string;
43
45
 
46
+ type TailwindConversionStatus = 'converted' | 'passthrough' | 'unsupported';
47
+ type TailwindTokenClassification = 'tailwind' | 'xcss' | 'ambiguous' | 'unknown';
48
+ type TailwindConversionMode = 'legacy' | 'safe' | 'strict';
49
+ interface TailwindConversionWarning {
50
+ token: string;
51
+ message: string;
52
+ }
53
+ interface TailwindTokenConversion {
54
+ input: string;
55
+ outputs: string[];
56
+ status: TailwindConversionStatus;
57
+ classification: TailwindTokenClassification;
58
+ exact: boolean;
59
+ warnings: TailwindConversionWarning[];
60
+ }
61
+ interface TailwindConversionResult {
62
+ input: string;
63
+ output: string;
64
+ details: TailwindTokenConversion[];
65
+ converted: string[];
66
+ passthrough: string[];
67
+ unsupported: string[];
68
+ ambiguous: string[];
69
+ warnings: TailwindConversionWarning[];
70
+ }
71
+ interface TailwindConversionOptions {
72
+ preserveUnknown?: boolean;
73
+ mode?: TailwindConversionMode;
74
+ }
75
+ declare const classifyTailwindToken: (token: string) => TailwindTokenClassification;
76
+ declare const convertTailwindToken: (token: string, options?: TailwindConversionOptions) => TailwindTokenConversion;
77
+ declare const convertTailwindClasses: (input: string, options?: TailwindConversionOptions) => TailwindConversionResult;
78
+ declare const tailwindToXcss: (input: string, options?: TailwindConversionOptions) => TailwindConversionResult;
79
+
80
+ type TailwindCoverageSupport = 'exact' | 'partial' | 'manual';
81
+ interface TailwindCoverageEntry {
82
+ group: string;
83
+ support: TailwindCoverageSupport;
84
+ examples: string[];
85
+ notes: string;
86
+ }
87
+ interface TailwindMigrationReadinessOptions extends TailwindConversionOptions {
88
+ }
89
+ interface TailwindMigrationReadinessReport {
90
+ input: string;
91
+ conversion: TailwindConversionResult;
92
+ autoApplyOutput: string;
93
+ exactConverted: string[];
94
+ approximateConverted: string[];
95
+ passthroughXcss: string[];
96
+ reviewRequired: string[];
97
+ blocked: string[];
98
+ safeToAutoApply: boolean;
99
+ releaseDecision: 'safe' | 'review' | 'blocked';
100
+ }
101
+ declare const TAILWIND_COVERAGE_MATRIX: readonly TailwindCoverageEntry[];
102
+ declare const getTailwindCoverageMatrix: () => readonly TailwindCoverageEntry[];
103
+ declare const assessTailwindMigrationReadiness: (input: string, options?: TailwindMigrationReadinessOptions) => TailwindMigrationReadinessReport;
104
+
44
105
  type CssRoot = Document | ShadowRoot;
45
106
  interface SharedXCSSInstance {
46
107
  clsx: (...args: any[]) => string;
@@ -57,4 +118,4 @@ declare const setClsxRoot: (root: CssRoot) => void;
57
118
  declare const getCss: (root?: CssRoot | null) => string;
58
119
  declare const ready: (root?: CssRoot | null) => Promise<void>;
59
120
 
60
- export { type BootloaderScriptOptions, type SharedXCSSInstance, type XCSSConfig, clsx, createSharedClsx, createSharedInstance, _default as default, getBootloaderScript, getCss, observe, ready, setClsxRoot };
121
+ export { type BootloaderScriptOptions, type SharedXCSSInstance, TAILWIND_COVERAGE_MATRIX, type TailwindConversionMode, type TailwindConversionOptions, type TailwindConversionResult, type TailwindConversionStatus, type TailwindConversionWarning, type TailwindCoverageEntry, type TailwindCoverageSupport, type TailwindMigrationReadinessOptions, type TailwindMigrationReadinessReport, type TailwindTokenClassification, type TailwindTokenConversion, type XCSSConfig, assessTailwindMigrationReadiness, classifyTailwindToken, clsx, convertTailwindClasses, convertTailwindToken, createSharedClsx, createSharedInstance, _default as default, getBootloaderScript, getCss, getTailwindCoverageMatrix, observe, ready, setClsxRoot, tailwindToXcss };
package/dist/index.d.ts CHANGED
@@ -13,6 +13,7 @@ type XCSSConfig = {
13
13
  compression?: boolean;
14
14
  debounceMs?: number;
15
15
  sizeLast?: number;
16
+ loadOnInit?: boolean;
16
17
  };
17
18
  };
18
19
  interface XCSSCacheData {
@@ -38,9 +39,69 @@ declare const _default: {
38
39
 
39
40
  type BootloaderScriptOptions = {
40
41
  compact?: boolean;
42
+ loadOnInit?: boolean;
41
43
  };
42
44
  declare const getBootloaderScript: (styleIdInput?: string, version?: string, options?: BootloaderScriptOptions) => string;
43
45
 
46
+ type TailwindConversionStatus = 'converted' | 'passthrough' | 'unsupported';
47
+ type TailwindTokenClassification = 'tailwind' | 'xcss' | 'ambiguous' | 'unknown';
48
+ type TailwindConversionMode = 'legacy' | 'safe' | 'strict';
49
+ interface TailwindConversionWarning {
50
+ token: string;
51
+ message: string;
52
+ }
53
+ interface TailwindTokenConversion {
54
+ input: string;
55
+ outputs: string[];
56
+ status: TailwindConversionStatus;
57
+ classification: TailwindTokenClassification;
58
+ exact: boolean;
59
+ warnings: TailwindConversionWarning[];
60
+ }
61
+ interface TailwindConversionResult {
62
+ input: string;
63
+ output: string;
64
+ details: TailwindTokenConversion[];
65
+ converted: string[];
66
+ passthrough: string[];
67
+ unsupported: string[];
68
+ ambiguous: string[];
69
+ warnings: TailwindConversionWarning[];
70
+ }
71
+ interface TailwindConversionOptions {
72
+ preserveUnknown?: boolean;
73
+ mode?: TailwindConversionMode;
74
+ }
75
+ declare const classifyTailwindToken: (token: string) => TailwindTokenClassification;
76
+ declare const convertTailwindToken: (token: string, options?: TailwindConversionOptions) => TailwindTokenConversion;
77
+ declare const convertTailwindClasses: (input: string, options?: TailwindConversionOptions) => TailwindConversionResult;
78
+ declare const tailwindToXcss: (input: string, options?: TailwindConversionOptions) => TailwindConversionResult;
79
+
80
+ type TailwindCoverageSupport = 'exact' | 'partial' | 'manual';
81
+ interface TailwindCoverageEntry {
82
+ group: string;
83
+ support: TailwindCoverageSupport;
84
+ examples: string[];
85
+ notes: string;
86
+ }
87
+ interface TailwindMigrationReadinessOptions extends TailwindConversionOptions {
88
+ }
89
+ interface TailwindMigrationReadinessReport {
90
+ input: string;
91
+ conversion: TailwindConversionResult;
92
+ autoApplyOutput: string;
93
+ exactConverted: string[];
94
+ approximateConverted: string[];
95
+ passthroughXcss: string[];
96
+ reviewRequired: string[];
97
+ blocked: string[];
98
+ safeToAutoApply: boolean;
99
+ releaseDecision: 'safe' | 'review' | 'blocked';
100
+ }
101
+ declare const TAILWIND_COVERAGE_MATRIX: readonly TailwindCoverageEntry[];
102
+ declare const getTailwindCoverageMatrix: () => readonly TailwindCoverageEntry[];
103
+ declare const assessTailwindMigrationReadiness: (input: string, options?: TailwindMigrationReadinessOptions) => TailwindMigrationReadinessReport;
104
+
44
105
  type CssRoot = Document | ShadowRoot;
45
106
  interface SharedXCSSInstance {
46
107
  clsx: (...args: any[]) => string;
@@ -57,4 +118,4 @@ declare const setClsxRoot: (root: CssRoot) => void;
57
118
  declare const getCss: (root?: CssRoot | null) => string;
58
119
  declare const ready: (root?: CssRoot | null) => Promise<void>;
59
120
 
60
- export { type BootloaderScriptOptions, type SharedXCSSInstance, type XCSSConfig, clsx, createSharedClsx, createSharedInstance, _default as default, getBootloaderScript, getCss, observe, ready, setClsxRoot };
121
+ export { type BootloaderScriptOptions, type SharedXCSSInstance, TAILWIND_COVERAGE_MATRIX, type TailwindConversionMode, type TailwindConversionOptions, type TailwindConversionResult, type TailwindConversionStatus, type TailwindConversionWarning, type TailwindCoverageEntry, type TailwindCoverageSupport, type TailwindMigrationReadinessOptions, type TailwindMigrationReadinessReport, type TailwindTokenClassification, type TailwindTokenConversion, type XCSSConfig, assessTailwindMigrationReadiness, classifyTailwindToken, clsx, convertTailwindClasses, convertTailwindToken, createSharedClsx, createSharedInstance, _default as default, getBootloaderScript, getCss, getTailwindCoverageMatrix, observe, ready, setClsxRoot, tailwindToXcss };
package/dist/index.js CHANGED
@@ -1,20 +1,29 @@
1
- "use strict";var _e=Object.defineProperty;var Et=Object.getOwnPropertyDescriptor;var Rt=Object.getOwnPropertyNames;var It=Object.prototype.hasOwnProperty;var Tt=(e,t)=>{for(var r in t)_e(e,r,{get:t[r],enumerable:!0})},At=(e,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Rt(t))!It.call(e,n)&&n!==r&&_e(e,n,{get:()=>t[n],enumerable:!(s=Et(t,n))||s.enumerable});return e};var _t=e=>At(_e({},"__esModule",{value:!0}),e);var mr={};Tt(mr,{clsx:()=>dr,createSharedClsx:()=>cr,createSharedInstance:()=>lr,default:()=>gr,getBootloaderScript:()=>ct,getCss:()=>pr,observe:()=>fr,ready:()=>br,setClsxRoot:()=>ur});module.exports=_t(mr);var Je=e=>(e=e||new Map,{all:e,on(t,r){let s=e.get(t);s?s.push(r):e.set(t,[r])},off(t,r){let s=e.get(t);s&&(r?s.splice(s.indexOf(r)>>>0,1):e.set(t,[]))},emit(t,r){let s=e.get(t);s&&s.slice().forEach(l=>{l(r)});let n=e.get("*");n&&n.slice().forEach(l=>{l(t,r)})}});function Ot(e,t,r){let s=0;for(let n=t;n<r;n++){let l=e.charCodeAt(n);if(l===91){s++;continue}if(l===93){s>0&&s--;continue}if(l===58&&s===0)return n}return-1}function Lt(e,t,r){let s=0;for(let n=r-1;n>=t;n--){let l=e.charCodeAt(n);if(l===93){s++;continue}if(l===91){s>0&&s--;continue}if(l===64&&s===0)return n}return-1}function Pt(e,t,r){let s=0;for(let n=t;n<r;n++){let l=e.charCodeAt(n);if(l===91){s++;continue}if(l===93){if(s===0)return!1;s--}}return s===0}function jt(e){return e>=97&&e<=122}function ge(e){if(!e||e.length<2||!Pt(e,0,e.length))return null;let t=0,r=e.length,s="",n=Lt(e,t,r);n>t&&(s=e.substring(n+1,r),r=n);let l="",f="",u=Ot(e,t,r);if(u>0&&u<r){let A=e.substring(t,u);t=u+1,l=A}let y=t;for(;y<r;){let A=e.charCodeAt(y);if(A>=48&&A<=57)y++;else break}if(y>t&&(f=e.substring(t,y),t=y),t>=r||e.charCodeAt(t)===38)return null;if(e.charCodeAt(t)===91){let A=e.indexOf("]",t);if(A>t)return{mq:l,layer:f,prop:e.substring(t,A+1),val:"",selector:s}}let k=t;for(;k<r;){let A=e.charCodeAt(k);if(A===45||A===46){if(k+1<r){let x=e.charCodeAt(k+1);if(A===45&&x===45&&k>t||x>=48&&x<=57)break}k++;continue}if(!jt(A))break;k++}if(k===t)return null;let X=e.substring(t,k),N=e.substring(k,r);return{mq:l,layer:f,prop:X,val:N,selector:s}}var Ge={a:"all",ac:"align-content",acc:"accent-color",ai:"align-items",ani:"animation",anic:"animation-composition",anide:"animation-delay",anidi:"animation-direction",anidu:"animation-duration",anifm:"animation-fill-mode",aniic:"animation-iteration-count",anin:"animation-name",anips:"animation-play-state",anitf:"animation-timing-function",ap:"appearance",ar:"aspect-ratio",as:"align-self",b:"bottom",bd:"border",bda:"border-radius",bdb:"border-bottom",bdbc:"border-bottom-color",bdblc:"border-block-color",bdble:"border-block-end",bdblec:"border-block-end-color",bdbles:"border-block-end-style",bdblew:"border-block-end-width",bdblk:"border-block",bdblr:"border-bottom-left-radius",bdbls:"border-block-start",bdblsc:"border-block-start-color",bdblss:"border-block-start-style",bdblst:"border-block-style",bdblsw:"border-block-start-width",bdblwi:"border-block-width",bdbr:"box-decoration-break",bdbrr:"border-bottom-right-radius",bdbst:"border-bottom-style",bdbw:"border-bottom-width",bdc:"border-color",bdcl:"border-collapse",bdeer:"border-end-end-radius",bdesr:"border-end-start-radius",bdi:"border-inline",bdic:"border-inline-color",bdie:"border-inline-end",bdiec:"border-inline-end-color",bdies:"border-inline-end-style",bdiew:"border-inline-end-width",bdimg:"border-image",bdinw:"border-inline-width",bdio:"border-image-outset",bdir:"border-image-repeat",bdis:"border-image-slice",bdisc:"border-inline-start-color",bdisrc:"border-image-source",bdiss:"border-inline-start-style",bdista:"border-inline-start",bdistl:"border-inline-style",bdisw:"border-inline-start-width",bdiw:"border-image-width",bdl:"border-left",bdlc:"border-left-color",bdls:"border-left-style",bdlw:"border-left-width",bdr:"border-right",bdra:"border-radius",bdrc:"border-right-color",bdrs:"border-right-style",bdrw:"border-right-width",bds:"border-style",bdser:"border-start-end-radius",bdsp:"border-spacing",bdssr:"border-start-start-radius",bdt:"border-top",bdtc:"border-top-color",bdtlr:"border-top-left-radius",bdtrr:"border-top-right-radius",bdts:"border-top-style",bdtw:"border-top-width",bdw:"border-width",bg:"background",bga:"background-attachment",bgbm:"background-blend-mode",bgc:"background-color",bgcl:"background-clip",bgi:"background-image",bgo:"background-origin",bgp:"background-position",bgpx:"background-position-x",bgpy:"background-position-y",bgr:"background-repeat",bgs:"background-size",bkdf:"backdrop-filter",bkfv:"backface-visibility",blks:"block-size",brka:"break-after",brkb:"break-before",brki:"break-inside",bxsh:"box-shadow",bxshd:"box-shadow",bxsz:"box-sizing",c:"color",caps:"caption-side",cip:"color-interpolation",ciw:"contain-intrinsic-width",clpp:"clip-path",clr:"clear",cnt:"contain",cntibs:"contain-intrinsic-block-size",cntih:"contain-intrinsic-height",cntiis:"contain-intrinsic-inline-size",cntis:"contain-intrinsic-size",cntri:"counter-increment",cntrr:"counter-reset",cntrs:"counter-set",col:"columns",colc:"column-count",colf:"column-fill",colg:"column-gap",colr:"column-rule",colrc:"column-rule-color",colrs:"column-rule-style",colrw:"column-rule-width",cols:"column-span",colw:"column-width",cr:"cursor",crtc:"caret-color",csch:"color-scheme",ctr:"container",ctrn:"container-name",ctrt:"container-type",ctt:"content",d:"display",dir:"direction",empc:"empty-cells",fca:"forced-color-adjust",ff:"font-family",fl:"float",flt:"filter",fn:"font",fnf:"font-family",fnfs:"font-feature-settings",fnk:"font-kerning",fnlo:"font-language-override",fnos:"font-optical-sizing",fnp:"font-palette",fns:"font-size",fnsa:"font-size-adjust",fnsp:"font-synthesis-position",fnss:"font-synthesis-style",fnssc:"font-synthesis-small-caps",fnstr:"font-stretch",fnsty:"font-style",fnsw:"font-synthesis-weight",fnsyn:"font-synthesis",fnv:"font-variant",fnva:"font-variant-alternates",fnvc:"font-variant-caps",fnve:"font-variant-emoji",fnvea:"font-variant-east-asian",fnvl:"font-variant-ligatures",fnvn:"font-variant-numeric",fnvp:"font-variant-position",fnvs:"font-variation-settings",fnw:"font-weight",fw:"font-weight",fx:"flex",fxb:"flex-basis",fxd:"flex-direction",fxf:"flex-flow",fxg:"flex-grow",fxs:"flex-shrink",fxw:"flex-wrap",g:"grid",ga:"grid-area",gac:"grid-auto-columns",gaf:"grid-auto-flow",gap:"gap",gar:"grid-auto-rows",gc:"grid-column",gce:"grid-column-end",gcs:"grid-column-start",gr:"grid-row",gre:"grid-row-end",grs:"grid-row-start",gt:"grid-template",gta:"grid-template-areas",gtc:"grid-template-columns",gtr:"grid-template-rows",h:"height",hc:"hyphenate-character",hlc:"hyphenate-limit-chars",hp:"hanging-punctuation",hyp:"hyphens",i:"inset",ibe:"inset-block-end",iblk:"inset-block",ibsta:"inset-block-start",ii:"inset-inline",iie:"inset-inline-end",iis:"inset-inline-start",imgo:"image-orientation",imgr:"image-rendering",ins:"inline-size",is:"isolation",jc:"justify-content",ji:"justify-items",js:"justify-self",l:"left",lbrk:"line-break",lh:"line-height",lisp:"list-style-position",ls:"list-style",lsi:"list-style-image",lst:"list-style-type",lts:"letter-spacing",m:"margin",mb:"margin-bottom",mbd:"mix-blend-mode",mbe:"margin-block-end",mblk:"margin-block",mbs:"max-block-size",mbsta:"margin-block-start",mh:"max-height",mibs:"min-block-size",mie:"margin-inline-end",mih:"min-height",min:"margin-inline",mis:"max-inline-size",mista:"margin-inline-start",misz:"min-inline-size",miw:"min-width",ml:"margin-left",mr:"margin-right",msk:"mask",mskb:"mask-border",mskbm:"mask-border-mode",mskbo:"mask-border-outset",mskbr:"mask-border-repeat",mskbs:"mask-border-slice",mskbsrc:"mask-border-source",mskbw:"mask-border-width",mskc:"mask-clip",mskcp:"mask-composite",mski:"mask-image",mskm:"mask-mode",msko:"mask-origin",mskp:"mask-position",mskr:"mask-repeat",msks:"mask-size",mskt:"mask-type",mt:"margin-top",mtd:"math-depth",mts:"math-style",mw:"max-width",mxw:"max-width",of:"object-fit",ofa:"offset-anchor",ofd:"offset-distance",ofl:"overflow",ofla:"overflow-anchor",oflb:"overflow-block",oflcm:"overflow-clip-margin",ofli:"overflow-inline",oflw:"overflow-wrap",oflx:"overflow-x",ofly:"overflow-y",ofp:"offset-path",ofpo:"offset-position",ofr:"offset-rotate",ofs:"offset",olc:"outline-color",oli:"outline",olo:"outline-offset",ols:"outline-style",olw:"outline-width",op:"object-position",opc:"opacity",ord:"order",orp:"orphans",orsby:"overscroll-behavior-y",osrbb:"overscroll-behavior-block",osrbh:"overscroll-behavior",osrbi:"overscroll-behavior-inline",osrbx:"overscroll-behavior-x",p:"padding",pb:"padding-bottom",pbe:"padding-block-end",pblk:"padding-block",pbs:"padding-block-start",pe:"pointer-events",pg:"page",pgba:"page-break-after",pgbb:"page-break-before",pgbi:"page-break-inside",pi:"padding-inline",pie:"padding-inline-end",pis:"padding-inline-start",pl:"padding-left",plc:"place-content",pli:"place-items",pls:"place-self",pos:"position",pr:"padding-right",prca:"print-color-adjust",pso:"perspective-origin",psp:"perspective",pt:"padding-top",pto:"paint-order",qts:"quotes",r:"right",rbp:"ruby-position",rgap:"row-gap",rot:"rotate",rsz:"resize",s:"scale",sbc:"scrollbar-color",sbg:"scrollbar-gutter",sbw:"scrollbar-width",scrb:"scroll-behavior",scrm:"scroll-margin",scrmb:"scroll-margin-bottom",scrmbe:"scroll-margin-block-end",scrmblk:"scroll-margin-block",scrmbs:"scroll-margin-block-start",scrmi:"scroll-margin-inline",scrmie:"scroll-margin-inline-end",scrmis:"scroll-margin-inline-start",scrml:"scroll-margin-left",scrmr:"scroll-margin-right",scrmt:"scroll-margin-top",scrp:"scroll-padding",scrpb:"scroll-padding-bottom",scrpblk:"scroll-padding-block",scrpbs:"scroll-padding-block-start",scrpi:"scroll-padding-inline",scrpie:"scroll-padding-inline-end",scrpis:"scroll-padding-inline-start",scrpl:"scroll-padding-left",scrpr:"scroll-padding-right",scrpt:"scroll-padding-top",scrsa:"scroll-snap-align",scrss:"scroll-snap-stop",scrst:"scroll-snap-type",shit:"shape-image-threshold",shm:"shape-margin",sho:"shape-outside",srcpbe:"scroll-padding-block-end",t:"top",ta:"text-align",tal:"text-align-last",tbl:"table-layout",tbs:"tab-size",tcu:"text-combine-upright",td:"text-decoration",tdc:"text-decoration-color",tdl:"text-decoration-line",tds:"text-decoration-style",tdsi:"text-decoration-skip-ink",tdt:"text-decoration-thickness",tec:"text-emphasis-color",tep:"text-emphasis-position",teph:"text-emphasis",tes:"text-emphasis-style",ti:"text-indent",tj:"text-justify",toa:"touch-action",tol:"text-overflow",tor:"text-orientation",tra:"transform",trab:"transform-box",tran:"transition",tranb:"transition-behavior",trand:"transition-delay",trandur:"transition-duration",tranp:"transition-property",trantf:"transition-timing-function",trao:"transform-origin",tras:"transform-style",trd:"text-rendering",trl:"translate",tsh:"text-shadow",ttr:"text-transform",tuo:"text-underline-offset",tup:"text-underline-position",tw:"text-wrap",unib:"unicode-bidi",us:"user-select",v:"visibility",va:"vertical-align",w:"width",wc:"will-change",wd:"widows",wlc:"-webkit-line-clamp",wrb:"word-break",wrs:"word-spacing",wrtm:"writing-mode",ws:"white-space",wsc:"white-space-collapse",wtfc:"-webkit-text-fill-color",wts:"-webkit-text-stroke",wtsc:"-webkit-text-stroke-color",wtsw:"-webkit-text-stroke-width",z:"z-index",zo:"zoom"},Ye={in:"inherit",ini:"initial",un:"unset",rv:"revert",n:"none",a:"auto",t:"top",b:"bottom",l:"left",r:"right",c:"center",m:"middle",j:"justify",s:"start",e:"end",tr:"transparent",cc:"currentColor",minc:"min-content",maxc:"max-content",fitc:"fit-content",sol:"solid",das:"dashed",dot:"dotted",dub:"double",vis:"visible",h:"hidden",col:"collapse"},M={ac:{s:"start",e:"end",fs:"flex-start",fe:"flex-end",n:"normal",b:"baseline",fb:"first baseline",lb:"last baseline",sp:"space-between",sa:"space-around",se:"space-evenly",st:"stretch",sc:"safe center",uc:"unsafe center"},acc:{u:"unset"},ai:{n:"normal",c:"center",s:"start",e:"end",fs:"flex-start",fe:"flex-end",ss:"self-start",se:"self-end",b:"baseline",fb:"first baseline",lb:"last baseline",sc:"safe center",uc:"unsafe center"},anic:{r:"replace",a:"add",ac:"accumulate",ra:"replace, add",aac:"add, accumulate",raac:"replace, add, accumulate"},anidi:{r:"reverse",a:"alternate",ar:"alternate-reverse",nr:"normal, reverse",arn:"alternate, reverse, normal"},anifm:{f:"forwards",b:"backwards",nb:"none, backwards",fbn:"both, forwards, none"},anin:{s:"slide"},anips:{p:"paused",r:"running"},anitf:{ei:"ease-in",eo:"ease-out",eio:"ease-in-out",l:"linear",ss:"step-start",se:"step-end"},ap:{mb:"menulist-button",tf:"textfield",b:"button",c:"checkbox"},ar:{s:"1 / 1",v:"16 / 9"},as:{n:"normal",c:"center",s:"start",e:"end",ss:"self-start",se:"self-end",fs:"flex-start",fe:"flex-end",b:"baseline",fb:"first baseline",lb:"last baseline",st:"stretch",sc:"safe center",uc:"unsafe center"},bd:{d:"dotted",ds:"dashed",db:"double",g:"groove",r:"ridge",i:"inset",o:"outset"},bdbles:{d:"dotted",ds:"dashed",db:"double",g:"groove",r:"ridge",i:"inset",o:"outset"},bdblss:{d:"dotted",ds:"dashed",db:"double",g:"groove",r:"ridge",i:"inset",o:"outset"},bdblst:{d:"dotted",ds:"dashed",db:"double",g:"groove",r:"ridge",i:"inset",o:"outset"},bdbr:{c:"clone",s:"slice"},bdbst:{d:"dotted",ds:"dashed",db:"double",g:"groove",r:"ridge",i:"inset",o:"outset"},bdbw:{t:"thin",m:"medium",th:"thick"},bdcl:{s:"separate",c:"collapse"},bdir:{st:"stretch",r:"repeat",rn:"round",s:"space"},bdlw:{t:"thin",m:"medium",th:"thick"},bdrs:{dt:"dotted",ds:"dashed",s:"solid",db:"double",g:"groove",r:"ridge",in:"inset",out:"outset"},bdrw:{t:"thin",m:"medium",th:"thick"},bds:{dt:"dotted",ds:"dashed",s:"solid",db:"double",g:"groove",r:"ridge",in:"inset",out:"outset"},bdts:{dt:"dotted",ds:"dashed",s:"solid",db:"double",g:"groove",r:"ridge",in:"inset",out:"outset"},bdtw:{t:"thin",m:"medium",th:"thick"},bdw:{t:"thin",m:"medium",th:"thick"},bga:{s:"scroll",f:"fixed",l:"local"},bgbm:{n:"normal",m:"multiply",s:"screen",o:"overlay",d:"darken",l:"lighten",cd:"color-dodge",i:"color-burn",hl:"hard-light",sl:"soft-light",di:"difference",e:"exclusion",h:"hue",sa:"saturation",c:"color",lu:"luminosity"},bgc:{t:"transparent",c:"currentcolor"},bgcl:{bb:"border-box",pb:"padding-box",cb:"content-box",t:"text"},bgo:{bb:"border-box",pb:"padding-box",cb:"content-box"},bgp:{t:"top",b:"bottom",l:"left",r:"right",c:"center",lt:"left top",ct:"center top",rt:"right top",lc:"left center",cc:"center center",rc:"right center",lb:"left bottom",cb:"center bottom",rb:"right bottom"},bgpx:{l:"left",r:"right",c:"center"},bgpy:{t:"top",b:"bottom",c:"center"},bgr:{r:"repeat",x:"repeat-x",y:"repeat-y",s:"space",rn:"round",n:"no-repeat",rs:"repeat space",rr:"repeat repeat",nr:"no-repeat round"},bgs:{c:"contain"},c:{i:"inherit",t:"transparent"},cr:{p:"pointer",d:"default",cm:"context-menu",h:"help",pg:"progress",w:"wait",c:"cell",t:"text",vt:"vertical-text",al:"alias",cp:"copy",mo:"move",nd:"no-drop",na:"not-allowed",gr:"grab",gb:"grabbing",as:"all-scroll",colr:"col-resize",rr:"row-resize",nr:"n-resize",er:"e-resize",sr:"s-resize",wr:"w-resize",ner:"ne-resize",ser:"se-resize",swr:"sw-resize",ewr:"ew-resize",nsr:"ns-resize",nesw:"nesw-resize",nwse:"nwse-resize",zi:"zoom-in",zo:"zoom-out"},d:{b:"block",ib:"inline-block",i:"inline",f:"flex",if:"inline-flex",t:"table",it:"inline-table",tcp:"table-caption",tcell:"table-cell",tcol:"table-column",tcolg:"table-column-group",tfg:"table-footer-group",thg:"table-header-group",trg:"table-row-group",tr:"table-row",fr:"flow-root",g:"grid",ig:"inline-grid",c:"contents",li:"list-item"},ff:{a:"ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",s:"ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif",m:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace"},fl:{is:"inline-start",ie:"inline-end",r:"right",l:"left"},fx:{i:"0 1 auto",a:"1 1 auto"},fxd:{r:"row",rr:"row-reverse",c:"column",cr:"column-reverse"},fxw:{w:"wrap",wr:"wrap-reverse",n:"nowrap"},gac:{mic:"min-content",mac:"max-content",mm:"minmax(0, 1fr)"},gaf:{r:"row",c:"column",d:"dense",rd:"row dense",cd:"column dense"},gar:{mic:"min-content",mac:"max-content",mm:"minmax(0, 1fr)"},gc:{f:"1 / -1"},gr:{f:"1 / -1"},gtc:{s:"subgrid"},gtr:{s:"subgrid"},h:{mic:"min-content",mac:"max-content",fc:"fit-content"},hyp:{m:"manual"},is:{i:"isolate"},jc:{c:"center",s:"start",e:"end",fs:"flex-start",fe:"flex-end",l:"left",r:"right",n:"normal",sp:"space-between",sa:"space-around",se:"space-evenly",st:"stretch",sc:"safe center",uc:"unsafe center"},ji:{n:"normal",st:"stretch",c:"center",s:"start",e:"end",fs:"flex-start",fe:"flex-end",ss:"self-start",se:"self-end",l:"left",r:"right",b:"baseline",fb:"first baseline",lb:"last baseline",lr:"legacy right",ll:"legacy left",lc:"legacy center",sc:"safe center",uc:"unsafe center"},js:{n:"normal",st:"stretch",c:"center",s:"start",e:"end",fs:"flex-start",fe:"flex-end",ss:"self-start",se:"self-end",l:"left",r:"right",b:"baseline",sc:"safe center",uc:"unsafe center"},lisp:{i:"inside",o:"outside"},ls:{i:"inside",di:"disc",c:"circle",s:"square",de:"decimal",g:"georgian",tci:"trad-chinese-informal",k:"kannada"},lst:{di:"disc",c:"circle",s:"square",de:"decimal",g:"georgian",tci:"trad-chinese-informal",k:"kannada"},lts:{n:"normal"},mbd:{n:"normal",m:"multiply",s:"screen",o:"overlay",d:"darken",l:"lighten",cd:"color-dodge",i:"color-burn",hl:"hard-light",sl:"soft-light",di:"difference",e:"exclusion",h:"hue",sa:"saturation",c:"color",lu:"luminosity"},mih:{f:"100%",mic:"min-content",mac:"max-content",fc:"fit-content"},miw:{f:"100%",mic:"min-content",mac:"max-content",fc:"fit-content"},of:{c:"contain",cv:"cover",f:"fill",sd:"scale-down"},oflw:{c:"clip",s:"scroll"},oflx:{c:"clip",s:"scroll"},ofly:{c:"clip",s:"scroll"},olc:{i:"inherit",c:"currentColor",t:"transparent"},ols:{dt:"dotted",ds:"dashed",s:"solid",db:"double",g:"groove",r:"ridge",in:"inset",out:"outset"},olw:{t:"thin",m:"medium",th:"thick"},op:{b:"bottom",c:"center",l:"left",r:"right",t:"top",lb:"left bottom",lt:"left top",rb:"right bottom",rt:"right top"},orsby:{c:"contain"},osrbb:{c:"contain"},osrbh:{c:"contain"},osrbi:{c:"contain"},osrbx:{c:"contain"},pi:{s:"start",c:"center",e:"end",b:"baseline",st:"stretch"},pos:{s:"static",f:"fixed",a:"absolute",r:"relative",st:"sticky"},rsz:{b:"both",h:"horizontal",v:"vertical"},ta:{s:"start",e:"end",l:"left",r:"right",c:"center",j:"justify",mp:"match-parent",mc:"-moz-center",wc:"-webkit-center"},tal:{s:"start",e:"end",l:"left",r:"right",c:"center",j:"justify"},td:{u:"underline"},tdl:{u:"underline",o:"overline",lt:"line-through",b:"blink"},tds:{db:"double",dt:"dotted",ds:"dashed",w:"wavy"},tdt:{ff:"from-font"},tep:{or:"over right",ol:"over left",ur:"under right",ul:"under left",lo:"left over",ru:"right under",lu:"left under"},tj:{iw:"inter-word",ic:"inter-character",d:"distribute"},toa:{p:"pan-x",py:"pan-y",pm:"pan-x pan-y",pi:"pinch-zoom"},tol:{c:"clip",e:"ellipsis"},tor:{m:"mixed",u:"upright",sr:"sideways-right",sl:"sideways-left",s:"sideways",ugo:"use-glyph-orientation"},trd:{op:"optimizeSpeed",ol:"optimizeLegibility",g:"geometricPrecision"},ttr:{c:"capitalize",u:"uppercase",l:"lowercase",fw:"full-width",fsk:"full-size-kana"},tup:{u:"under",l:"left",r:"right",ul:"under left",ru:"right under"},tw:{w:"wrap",n:"nowrap",b:"balance",p:"pretty"},us:{t:"text",all:"all",c:"contain"},v:{c:"collapse"},va:{bl:"baseline",t:"top",m:"middle",b:"bottom",tt:"text-top",tb:"text-bottom",sb:"sub",sp:"super"},w:{mic:"min-content",mac:"max-content",fc:"fit-content",f:"100%"},wc:{sp:"scroll-position",c:"contents",t:"transform"},wtsw:{m:"medium",t:"thick"}};M.ji=M.jc;M.js=M.jc;M.pc=M.jc;M.pi=M.jc;M.ps=M.jc;var zt={SHORT_PROPERTIES:Ge,COMMON_VALUES:Ye,SPECIFIC_VALUES:M},st=e=>{let t=typeof e?.styleId=="string"&&e.styleId.trim()?e.styleId.trim():"fwkui",r=typeof e?.version=="string"&&e.version.trim()?e.version.trim():"v1",s=e?.compression??!0,n=typeof e?.debounceMs=="number"&&e.debounceMs>=0?e.debounceMs:1e3,l=typeof e?.sizeLast=="number"&&Number.isFinite(e.sizeLast)&&e.sizeLast>=0?Math.floor(e.sizeLast):1e3;return{styleId:t,version:r,compression:s,debounceMs:n,sizeLast:l}},Dt=e=>`${e.styleId}_cache_${e.version}`,Mt=e=>`${e.styleId}_ks_${e.version}`,Xt=e=>`${e.styleId}_bc_${e.version}`,ot=e=>{if(!e||typeof e!="object")return!1;let t=e;return t.__xcss_cache_v===2&&t.compressed===!0&&typeof t.payload=="string"},Oe=e=>{if(!e||typeof e!="object")return!1;let t=e;return t.__xcss_cache_v===3&&t.compressed===!0&&t.algorithm==="deflate-raw"&&t.encoding==="base64"&&typeof t.payload=="string"},it=()=>typeof CompressionStream<"u"&&typeof Blob<"u"&&typeof Response<"u",at=()=>typeof DecompressionStream<"u"&&typeof Blob<"u"&&typeof Response<"u",$t=e=>{if(typeof btoa=="function"){let r="";for(let n=0;n<e.length;n+=32768){let l=e.subarray(n,n+32768);for(let f=0;f<l.length;f++)r+=String.fromCharCode(l[f])}return btoa(r)}let t=globalThis.Buffer;if(typeof t<"u")return t.from(e).toString("base64");throw new Error("XCSS: base64 encoding is not supported in this runtime")},Bt=e=>{if(typeof atob=="function"){let r=atob(e),s=new Uint8Array(r.length);for(let n=0;n<r.length;n++)s[n]=r.charCodeAt(n);return s}let t=globalThis.Buffer;if(typeof t<"u")return new Uint8Array(t.from(e,"base64"));throw new Error("XCSS: base64 decoding is not supported in this runtime")},Kt=async e=>{if(!it())throw new Error("XCSS: CompressionStream is not supported");let t=new Blob([e]).stream().pipeThrough(new CompressionStream("deflate-raw")),r=await new Response(t).arrayBuffer();return $t(new Uint8Array(r))},Ut=async e=>{if(!at())throw new Error("XCSS: DecompressionStream is not supported");let t=Bt(e),r=new Uint8Array(t.length);r.set(t);let s=new Blob([r.buffer]).stream().pipeThrough(new DecompressionStream("deflate-raw"));return await new Response(s).text()},Nt=e=>{try{let t=JSON.parse(e);return Oe(t)}catch{return!1}},Ht=e=>{if(!e)return"";let t=new Map,r=[],s=256;for(let l=0;l<256;l++)t.set(String.fromCharCode(l),l);let n=e[0];for(let l=1;l<e.length;l++){let f=e[l],u=n+f;t.has(u)?n=u:(r.push(t.get(n)),t.set(u,s++),n=f)}return r.push(t.get(n)),r.map(l=>String.fromCharCode(l)).join("")},lt=e=>{if(!e)return"";let t=new Map,r=256,s="";for(let u=0;u<256;u++)t.set(u,String.fromCharCode(u));let n=e.split("").map(u=>u.charCodeAt(0)),l=n[0],f=t.get(l)||"";s=f;for(let u=1;u<n.length;u++){let y=n[u],k=t.get(y);k||(k=y===r?f+f[0]:""),s+=k,t.set(r++,f+k[0]),f=k}return s},Qe=e=>{if(!e||typeof e!="object")return null;let t=e,r=t.default&&typeof t.default=="object"?t.default:t,s=r.SHORT_PROPERTIES,n=r.COMMON_VALUES,l=r.SPECIFIC_VALUES;return!s||!n||!l||typeof s!="object"||typeof n!="object"||typeof l!="object"?null:{SHORT_PROPERTIES:s,COMMON_VALUES:n,SPECIFIC_VALUES:l}},et=e=>{if(!e||typeof e!="object")return null;let t=e,r=Array.isArray(t.entries)?t.entries:Array.isArray(t.k)?t.k:null;if(!r)return null;let s=r.filter(l=>Array.isArray(l)&&l.length===2&&typeof l[0]=="string"&&typeof l[1]=="string"),n=typeof t.sizeLast=="number"?t.sizeLast:typeof t.s=="number"?t.s:null;return n===null?null:{source:typeof t.source=="string"?t.source:"",sizeLast:n,entries:s}},Vt=(e,t)=>{let r=t;for(;r<e.length&&/\s/.test(e[r]);)r++;return r},Wt=(e,t)=>{let r=0,s=null,n=!1,l=!1,f=!1;for(let u=t;u<e.length;u++){let y=e[u],k=e[u+1];if(l){y===`
2
- `&&(l=!1);continue}if(f){y==="*"&&k==="/"&&(f=!1,u++);continue}if(s){if(n){n=!1;continue}if(y==="\\"){n=!0;continue}y===s&&(s=null);continue}if(y==="/"&&k==="/"){l=!0,u++;continue}if(y==="/"&&k==="*"){f=!0,u++;continue}if(y==='"'||y==="'"||y==="`"){s=y;continue}if(y==="{"){r++;continue}if(y==="}"&&(r--,r===0))return u}return-1},me=(e,t)=>{let r=e.indexOf(t);if(r===-1)return null;let s=Vt(e,r+t.length);if(e[s]!=="{")return null;let n=Wt(e,s);return n===-1?null:e.slice(s,n+1)},Y=(e,t)=>{let r=t;for(;r<e.length;){let s=e[r],n=e[r+1];if(/\s/.test(s)){r++;continue}if(s==="/"&&n==="/"){for(r+=2;r<e.length&&e[r]!==`
3
- `;)r++;continue}if(s==="/"&&n==="*"){for(r+=2;r<e.length;){if(e[r]==="*"&&e[r+1]==="/"){r+=2;break}r++}continue}break}return r},tt=(e,t)=>{let r=e[t];if(r!=='"'&&r!=="'")return null;let s="",n=t+1;for(;n<e.length;){let l=e[n];if(l==="\\"){if(n++,n>=e.length)return null;let f=e[n];s+={n:`
4
- `,r:"\r",t:" ",b:"\b",f:"\f",v:"\v","\\":"\\",'"':'"',"'":"'"}[f]??f,n++;continue}if(l===r)return{value:s,end:n+1};s+=l,n++}return null},Ft=(e,t)=>{let r=e[t];if(!r||!/[A-Za-z_$]/.test(r))return null;let s=t+1;for(;s<e.length&&/[A-Za-z0-9_$]/.test(e[s]);)s++;return{value:e.slice(t,s),end:s}},he=e=>{let t=(n,l)=>{let f=Y(n,l);return n[f]==="{"?r(n,f):tt(n,f)},r=(n,l)=>{let f=Y(n,l);if(n[f]!=="{")return null;f++;let u={};for(;f<n.length;){if(f=Y(n,f),n[f]==="}")return{value:u,end:f+1};let y=tt(n,f)||Ft(n,f);if(!y||(f=Y(n,y.end),n[f]!==":"))return null;f++;let k=t(n,f);if(!k)return null;if(u[y.value]=k.value,f=Y(n,k.end),n[f]===","){f++;continue}return n[f]==="}"?{value:u,end:f+1}:null}return null},s=r(e,0);return s&&Y(e,s.end)===e.length?s.value:null},qt=e=>{let t=me(e,"export const SHORT_PROPERTIES ="),r=me(e,"export const COMMON_VALUES ="),s=me(e,"export const SPECIFIC_VALUES =");if(t&&r&&s)return Qe({SHORT_PROPERTIES:he(t),COMMON_VALUES:he(r),SPECIFIC_VALUES:he(s)});let n=me(e,"export default");return n?Qe(he(n)):null},Zt=async e=>{let t=typeof process<"u"?process:null;if(!t||typeof t.getBuiltinModule!="function")return null;let r=e.startsWith("file:"),s=e.startsWith("/")||e.startsWith("./")||e.startsWith("../")||/^[A-Za-z]:[\\/]/.test(e);if(!r&&!s)return null;let n=t.getBuiltinModule("node:fs/promises");return n?.readFile?n.readFile(r?new URL(e):e,"utf8"):null},Jt=async e=>{let t=await Zt(e);if(typeof t=="string")return t;if(typeof fetch=="function"){let r=await fetch(e);if(!r.ok)throw new Error(`XCSS: Failed to fetch dictionary module: ${r.status}`);return r.text()}throw new Error("XCSS: fetch is not supported in this runtime")},Gt=async e=>{let t=await Jt(e),r=qt(t);if(!r)throw new Error(Yt);return r},Yt="XCSS: dictionary module must export plain-object SHORT_PROPERTIES, COMMON_VALUES and SPECIFIC_VALUES",Qt=(e,t)=>{if(!e||typeof document>"u")return;t=t||"fwkui";let r=Array.from({length:24},(s,n)=>"l"+n);if(!e.querySelector('style[id="'+t+'"]')){let s=document.createElement("style");s.id=t;let n=`@layer ${r.join(", ")};`;if(s.textContent=n,!(e instanceof ShadowRoot))document.head.append(s);else try{e.prepend(s)}catch{e.appendChild(s)}}},er=e=>{let t=Array.isArray(e.excludes)?e.excludes:[],r=st(e.cache),s=JSON.stringify({base:e.base||"",aliases:e.aliases||{},breakpoints:e.breakpoints||[],theme:e.theme||{},prefix:e.prefix||"",excludes:t,excludePrefixes:e.excludePrefixes||[],dictionaryImport:e.dictionaryImport??!0,cache:r}),n=0;if(s.length===0)return n.toString();for(let l=0;l<s.length;l++){let f=s.charCodeAt(l);n=(n<<5)-n+f,n|=0}return n.toString()},le=e=>{if(!e||typeof e!="object")return null;let t=e;return typeof t.configHash!="string"||!t.cssText||typeof t.cssText!="object"||Array.isArray(t.cssText)||!t.rulesSet||typeof t.rulesSet!="object"||Array.isArray(t.rulesSet)||!Array.isArray(t.keys)||typeof t.sizeLast!="number"||!Number.isFinite(t.sizeLast)||t.sizeLast<0?null:{configHash:t.configHash,cssText:t.cssText,rulesSet:t.rulesSet,keys:t.keys,sizeLast:t.sizeLast}},rt=e=>{if(!e)return null;try{let t=JSON.parse(e);if(ot(t)){let r=lt(t.payload);return r?le(JSON.parse(r)):null}return Oe(t)?null:le(t)}catch{return null}},tr=async e=>{if(!e)return null;try{let t=JSON.parse(e);if(ot(t)){let r=lt(t.payload);return r?le(JSON.parse(r)):null}if(Oe(t)){let r=await Ut(t.payload);return r?le(JSON.parse(r)):null}return le(t)}catch{return null}},nt=(e,t)=>{if(e==="root")return t;let r=/@media[^{]+\{\n?([\s\S]+)\n?\}/.exec(t);return r&&r[1]?r[1].trim():t},Le=(e={base:"",aliases:{},excludes:[],excludePrefixes:[],breakpoints:[],theme:{},prefix:"",dictionaryImport:!0,cache:{styleId:"fwkui",version:"v1",compression:!0,debounceMs:1e3,sizeLast:1e3}})=>{let{base:t=null,breakpoints:r=[],aliases:s={},theme:n={},excludes:l=[],excludePrefixes:f=[],prefix:u="",dictionaryImport:y=!0,cache:k={}}=e||{};Array.isArray(r)||(r=[]),Array.isArray(l)||(l=[]),Array.isArray(f)||(f=[]),(!s||typeof s!="object")&&(s={}),(!n||typeof n!="object")&&(n={});let X=st(k),N=Dt(X),A=Mt(X),x=Xt(X),P=l,ee=f.filter(o=>typeof o=="string").map(o=>o.trim()).filter(o=>o.length>0),ye=o=>{let a=o.replace(/[.+?^${}()|[\]\\]/g,"\\$&");return new RegExp("^"+a.replace(/\*/g,".*")+"$")},Me=P.filter(o=>typeof o=="string").map(o=>o.trim()).filter(o=>o.length>0).map(o=>{if(o.includes("*")){let a=ye(o);return p=>a.test(p)}return a=>a===o}),dt=o=>ee.some(a=>o.startsWith(a))?!0:Me.some(a=>a(o)),Xe=o=>!(dt(o)||u&&!o.startsWith(u)),ft=["default","xs","sm","md","lg","xl","2xl","sma","mda","lga","xla"],ut=r.filter(o=>!!o&&typeof o=="object"&&!Array.isArray(o)).map(o=>Object.keys(o)[0]).filter(o=>typeof o=="string"&&o.length>0),pt=new Set([...ft,...ut]),Se=o=>!o||pt.has(o),bt=y!==!1,gt=new Set(["mx","my","px","py","bdx","bdy"]),we=new Set,xe=o=>o?!bt||!F||Object.keys(F).length===0?!0:!!F[o]||gt.has(o)||we.has(o):!1,F={},ce={},Ce={},ke={},$e=()=>{ke={...Ce,...n}},de=o=>{if(!o){F={},ce={},Ce={},we=new Set,$e();return}F=o.SHORT_PROPERTIES,ce=o.SPECIFIC_VALUES,Ce=o.COMMON_VALUES,we=new Set(Object.values(F)),$e()},fe=!0,ve=Promise.resolve();y===!1?de(null):typeof y=="string"?(fe=!1,de(null),ve=Gt(y).then(o=>{de(o)}).catch(o=>{console.warn("XCSS: Failed to import dictionary from URL",o)}).finally(()=>{fe=!0})):de(zt);let te=null,mt=(o=typeof document<"u"?document:void 0)=>{let a=typeof window<"u"&&typeof document<"u",p=a?window:null,b=p?.localStorage||null,m=null,E=Array.isArray(t)?t.length>0:!!t;o&&(m="getRootNode"in o?o.getRootNode():o);let v=new Map,g=new Set,S=X.sizeLast,h=!0,$=`xcss_${Math.random().toString(36).slice(2)}${Date.now().toString(36)}`,R=[],z=!1,j=null,re=i=>{typeof i=="number"&&Number.isFinite(i)&&i>S&&(S=i)},ne=i=>{i&&(i.source&&i.source===$||(re(i.sizeLast),i.entries.forEach(([d,c])=>{let C=v.get(d);C!==c&&(C||g.has(c)||(v.set(d,c),g.add(c)))})))},L=()=>{if(z=!1,!a||R.length===0)return;let i={source:$,sizeLast:S,entries:R.splice(0,R.length)};if(j)try{j.postMessage(i);return}catch{j=null}if(b)try{b.setItem(A,JSON.stringify(i))}catch{}},q=i=>{a&&(R.push(i),!z&&(z=!0,queueMicrotask(L)))};if(a&&m&&Qt(m,X.styleId),a&&typeof BroadcastChannel<"u")try{j=new BroadcastChannel(x),j.addEventListener("message",i=>{ne(et(i.data))})}catch{j=null}let H=Je(),Z=[{default:""},{xs:"screen and (max-width: 575px)"},{sm:"screen and (min-width: 576px)"},{md:"screen and (min-width: 768px)"},{lg:"screen and (min-width: 992px)"},{xl:"screen and (min-width: 1200px)"},{"2xl":"screen and (min-width: 1400px)"},{sma:"screen and (max-width: 768px)"},{mda:"screen and (max-width: 992px)"},{lga:"screen and (max-width: 1200px)"},{xla:"screen and (max-width: 1400px)"},...r],J=Z.filter((i,d)=>Z.findLastIndex(c=>Object.keys(c)[0]==Object.keys(i)[0])==d),V=J.map(i=>Object.keys(i)[0]),B={},_={},O={root:""},T={root:[]},ue={root:!1},se=er(e),oe=null,G=0,ie=!1,pe=null,ae=null,Ie=i=>{try{b?.setItem(N,i)}catch(d){console.warn("XCSS: Failed to save cache",d)}},be=i=>{!a||!b||typeof i=="string"&&b.getItem(N)!==i||(b.removeItem(N),b.removeItem(A))},xt=i=>{if(!a||!b)return;te=i;let d=++G;try{let c=JSON.stringify(i),C=()=>{let w={__xcss_cache_v:2,compressed:!0,payload:Ht(c)};Ie(JSON.stringify(w))};if(!X.compression){Ie(c);return}if(it()&&at()){Kt(c).then(w=>{if(d!==G)return;Ie(JSON.stringify({__xcss_cache_v:3,compressed:!0,algorithm:"deflate-raw",encoding:"base64",payload:w}))}).catch(()=>{d===G&&C()});return}C()}catch(c){console.warn("XCSS: Failed to save cache",c)}},Ne=()=>{a&&(oe&&clearTimeout(oe),oe=setTimeout(()=>{let i={};for(let C in B)i[C]=Array.from(B[C]);let d={};Object.keys(O).forEach(C=>{if(C==="root")d[C]=O[C];else{let w=Z.find(D=>Object.keys(D)[0]===C)?.[C];w&&O[C]?d[C]=`@media ${w} {
5
- ${O[C]}
6
- }`:d[C]=O[C]||""}});let c={configHash:se,cssText:d,rulesSet:i,keys:Array.from(v.entries()),sizeLast:S};xt(c)},X.debounceMs))};if(a&&b)try{let i=b.getItem(N);if(i){let d=rt(i);if(!d)Nt(i)?ae={raw:i}:be(i);else if(d.configHash!==se)be(i);else{if(pe=d,ie=!0,d.keys&&d.keys.forEach(([c,C])=>{v.set(c,C),g.add(C)}),re(d.sizeLast),d.cssText)for(let c in d.cssText)O[c]=nt(c,d.cssText[c]);te=d}}}catch(i){console.error(i)}a&&(_.root=new CSSStyleSheet),V.forEach(i=>{if(B[i]=new Set,a){let d=J.find(c=>Object.keys(c)[0]==i)?.[i]||"";_[i]=new CSSStyleSheet({media:d})}ie||(O[i]=""),T[i]=[],ue[i]=!1});let Ct=()=>{if(!m)return;let i=m.querySelector(`style[id="${X.styleId}"]`);i&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.remove()})})},He=i=>{if(i.keys&&i.keys.forEach(([d,c])=>{v.set(d,c),g.add(c)}),re(i.sizeLast),i.cssText)for(let d in i.cssText){if(d==="root"&&E)continue;let c=nt(d,i.cssText[d]);O[d]=c,a&&_[d]&&_[d].replaceSync(c)}if(i.rulesSet)for(let d in i.rulesSet)B[d]||(B[d]=new Set),i.rulesSet[d].forEach(c=>B[d].add(c));te=i,Ct()};if(ie&&pe&&He(pe),t&&Array.isArray(t)?(O.root=t.join(`
7
- `),a&&_.root&&_.root.replaceSync(O.root)):(O.root=t||"",a&&_.root&&_.root.replaceSync(O.root)),a&&m?.adoptedStyleSheets){let i=m.adoptedStyleSheets,d=["root",...V].map(c=>_[c]).filter(c=>c&&!i.includes(c));d.length>0&&(m.adoptedStyleSheets=[...i,...d])}a&&b&&ae&&!ie&&(async()=>{let i=await tr(ae.raw);if(!i){be(ae.raw);return}if(i.configHash!==se){be(ae.raw);return}ie=!0,pe=i,He(i)})(),a&&p?.addEventListener&&p.addEventListener("storage",i=>{if(i.key===A&&i.newValue)try{ne(et(JSON.parse(i.newValue)))}catch{}});let kt=(i,d)=>{let{media:c,property:C,selector:w,layer:D,className:I}=d,K=O,U=T,Te=ue;D=Number(D)||0;let Fe=v.get(i),vt=Fe?`.${Fe}${w}`:`.${I}${w}`;var Ae=`@layer l${D}{${vt}{${C}}}`;B[c]||(B[c]=new Set);let qe=B[c];if(!qe.has(Ae))if(qe.add(Ae),U[c]||(U[c]=[]),U[c].push(Ae),a)if(h){let W=U[c];W.length>0&&(K[c]+=(K[c]?`
8
- `:"")+W.join(`
9
- `),_[c]&&_[c].replaceSync(K[c]),U[c]=[])}else Te[c]||(Te[c]=!0,queueMicrotask(()=>{let W=U[c],Ze=_[c];W.length>0&&(K[c]+=(K[c]?`
10
- `:"")+W.join(`
11
- `),Ze&&Ze.replaceSync(K[c]),U[c]=[],Ne()),Te[c]=!1}));else{let W=U[c];W.length>0&&(K[c]+=(K[c]?`
12
- `:"")+W.join(`
13
- `),U[c]=[])}},Ve=i=>{i.forEach(d=>{let c=Ue(d);c&&kt(d,c)})},We=i=>{if(i.length===0)return;let d=()=>Ve(i);fe?d():ve.then(d)};return H.on("observeDom",We),{clsx:(...i)=>{let d=i.map(w=>Array.isArray(w)?w:[w]).flat(1/0).map(w=>typeof w=="string"?w.split(/(\s|\t)+/g):[]).flat(1/0);d=d.filter(w=>typeof w=="string"&&w.trim()),d=[...new Set(d)];let c=w=>{if(!Xe(w))return!1;if(fe)return!!Ue(w);let D=u?w.slice(u.length):w,I=ge(D);if(!I||!Se(I.mq))return!1;let K=(I.selector||"").replace(/(';|;)/g,U=>U=="';"?";":" ");return K&&!Ee(K)?!1:I.prop.startsWith("[")?!!Be(I.prop+I.val):xe(I.prop)?(I.prop==="&",I.val.length>0):!1},C=d.map(w=>{let D=w;if(v.has(w))D=v.get(w);else if(c(w)){let I;do I="D"+(S++).toString(32).toUpperCase();while(g.has(I));v.set(w,I),g.add(I),q([w,I]),D=I,Ne()}return D});return!a||h?H.emit("observeDom",d):queueMicrotask(()=>H.emit("observeDom",d)),C.join(" ")},observe:()=>{!a||!m||(wt(m,i=>{h?Ve(i):We(i)}),h=!1)},getCssString:()=>Object.entries(O).map(([i,d])=>{if(!d)return"";if(i==="root"||i==="default")return d;let c=Z.find(C=>Object.keys(C)[0]===i)?.[i];return c?`@media ${c} {
14
- ${d}
15
- }`:d}).join(`
16
- `)}};function Be(o){let a=new RegExp("^(\\[(?<p>[a-zA-Z]+)\\])$"),{p=""}=a.exec(o)?.groups??{};if(p&&s[p]&&Array.isArray(s[p])){let b=s[p],m=[],E=!0,v=g=>{let S=g.trim();if(!S)return null;let h=S.endsWith(";")?S.slice(0,-1).trim():S,$=h.indexOf(":");if($<=0||$>=h.length-1)return null;let R=h.slice(0,$).trim(),z=h.slice($+1).trim();return!R||!z||!/^(?:--[a-zA-Z0-9-_]+|-?[a-zA-Z][a-zA-Z0-9-]*)$/.test(R)?null:`${R}:${z}`};for(let g of b){if(typeof g!="string"){E=!1;break}let S=v(g);if(S){if(typeof CSS<"u"&&!CSS.supports(S)){E=!1;break}m.push(S);continue}E=!1;break}if(m.length>0&&E)return m.join(";")}return null}function Ke(o,a){let p=Be(o+a);if(p)return p;if(!o||a===void 0)return null;let b=F[o],m=b||o,E=a[0],v=!1,g=a;if(E==="!"&&(v=!0,g=g.substring(1),E=g[0]),g.startsWith("--"))g="var("+g+")";else if(E==="["&&g.endsWith("]"))g=g.substring(1,g.length-1);else if(g.length>0){let R=g[0].toLowerCase()+g.substring(1),z=ce[o]?.[R]||ke[R];if(!z){let j=g.toLowerCase();z=ce[o]?.[j]||ke[j]}g=z||g}if(g=g.replace(/(';|;)/g,R=>R=="';"?";":" "),!g)return null;let S=g+(v?" !important":""),h=[m+":"+S];switch(m){case"mx":h=[`margin-left:${S}`,`margin-right:${S}`];break;case"my":h=[`margin-top:${S}`,`margin-bottom:${S}`];break;case"px":h=[`padding-left:${S}`,`padding-right:${S}`];break;case"py":h=[`padding-top:${S}`,`padding-bottom:${S}`];break;case"bdx":h=[`border-left:${S}`,`border-right:${S}`];break;case"bdy":h=[`border-top:${S}`,`border-bottom:${S}`];break}return!(typeof CSS<"u")||h.every(R=>CSS.supports(R))?h.join(";"):null}let ht=o=>{let a=0;for(let p=o.length-1;p>=0;p--){let b=o[p];if(b==="]"){a++;continue}if(b==="["){a>0&&a--;continue}if(b==="@"&&a===0)return{body:o.slice(0,p),selector:o.slice(p+1)}}return{body:o,selector:""}},yt=o=>{let a=[],p=0,b=0;for(let m=0;m<o.length;m++){let E=o[m];if(E==="["){b++;continue}if(E==="]"){b>0&&b--;continue}E==="&"&&b===0&&(a.push(o.slice(p,m)),p=m+1)}return a.push(o.slice(p)),a},Ee=o=>{if(!o)return!0;let a=o.trim();if(!a)return!0;if(/[{}]/.test(a)||a==="#"||a==="("||a===")"||a===","||a===">"||a==="+"||a==="~"||a.startsWith("(")||a.startsWith(")"))return!1;let p=0;for(let b=0;b<a.length;b++){let m=a[b];if(m==="("){p++;continue}if(m===")"){if(p===0)return!1;p--}}return p===0};function Ue(o){if(!Xe(o))return null;let a=u?o.slice(u.length):o,p=typeof CSS<"u"?CSS.escape(o):St(o);if(a.includes("&")&&!a.startsWith("&")){let{body:j,selector:re}=ht(a),ne=yt(j).map(L=>L.trim()).filter(L=>L.length>0).map(L=>u&&L.startsWith(u)?L.slice(u.length):L);if(ne.length>1){let L="",q="",H=re,Z=!1,J=[];for(let _ of ne){let O=H?`${_}@${H}`:_,T=ge(O);if(!T||!Se(T.mq)||!T.prop.startsWith("[")&&!xe(T.prop))return null;Z?(!T.mq&&L&&(T.mq=L),!T.layer&&q&&(T.layer=q)):(L=T.mq||"",q=T.layer||"",Z=!0);let ue=T.mq||"",se=T.layer||"",oe=T.selector||"";if(ue!==L||se!==q||oe!==H)return null;let G=Ke(T.prop,T.val);if(!G)return null;J.push(G)}if(J.length===0)return null;let V=H.replace(/(';|;)/g,_=>_=="';"?";":" "),B=`selector(${p}${V})`;if(V){if(typeof CSS<"u"){if(!CSS.supports(B))return null}else if(!Ee(V))return null}return{media:L||"default",layer:q||"0",className:p,property:J.join(";"),selector:V,cssRules:`.${p}${V}{${J.join(";")}}`}}}let b=ge(a);if(!b||!Se(b.mq)||!b.prop.startsWith("[")&&!xe(b.prop))return null;let{mq:m="default",layer:E="0",prop:v,val:g,selector:S=""}=b,h=[],$=Ke(v,g);if($&&h.push($),h.length===0)return null;let R=S.replace(/(';|;)/g,j=>j=="';"?";":" "),z=`selector(${p}${R})`;if(R){if(typeof CSS<"u"){if(!CSS.supports(z))return null}else if(!Ee(R))return null}return{media:m||"default",layer:E||"0",className:p,property:h.join(";"),selector:R,cssRules:`.${p}${R}{${h.join(";")}}`}}let St=o=>o.replace(/([^\w-])/g,"\\$1"),Re=o=>{var a=[...o?.classList||[]].filter(p=>{if(p){let b=p.charCodeAt(0)==45?p.charCodeAt(1):p.charCodeAt(0);return b>=97&&b<=122||b>=48&&b<=57}return!1});return o?.children?.length>0&&Array.from(o?.children).forEach(p=>{a.push(...Re(p))}),a.flat(1/0)},wt=(o,a)=>{if(typeof a!="function")throw new Error("Callback is not a function");if(!o)return;let p;"documentElement"in o?p=o.documentElement:(o instanceof Element||"tagName"in o||"host"in o)&&(p=o),p&&(p instanceof Element&&a(Re(p)),typeof MutationObserver<"u"&&new MutationObserver(b=>{for(let m of b)if(m.type=="attributes"&&m.attributeName=="class"){if(m.target.nodeType==1){let E=String(m.target?.className??""),v=String(m?.oldValue??"");if(E||v){let g=E.split(" ").map(h=>h.trim()).filter(h=>h),S=v.split(" ").map(h=>h.trim()).filter(h=>h);g=g.filter(h=>!S.includes(h)),typeof a=="function"&&a([...new Set(g)])}}}else if(m.type=="childList"&&m.addedNodes.length>0){let E=[...m.addedNodes].filter(v=>v.nodeType==1).map(v=>Re(v)).flat(1/0);typeof a=="function"&&a([...new Set(E)])}}).observe(p,{attributes:!0,attributeOldValue:!0,attributeFilter:["class"],childList:!0,subtree:!0}))};return{buildCss:mt,exportCache:()=>typeof window>"u"||!window.localStorage?te:rt(window.localStorage.getItem(N))||te,ready:ve}},rr=(e,t)=>{Le(t).buildCss(e).observe()},nr=(e,t)=>Le(t).buildCss(e).clsx,Pe={css:Le,cssObserve:rr,clsx:nr};var sr=(e,t)=>(e=e||"fwkui",t=t||"v1",`${e}_cache_${t}`),ct=(e="fwkui",t="v1",r)=>{let s=String(e||"").trim()||"fwkui",n=sr(s,t),l=JSON.stringify(s),f=JSON.stringify(n),u=`
1
+ "use strict";var Be=Object.defineProperty;var nn=Object.getOwnPropertyDescriptor;var rn=Object.getOwnPropertyNames;var sn=Object.prototype.hasOwnProperty;var on=(e,t)=>{for(var n in t)Be(e,n,{get:t[n],enumerable:!0})},an=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of rn(t))!sn.call(e,s)&&s!==n&&Be(e,s,{get:()=>t[s],enumerable:!(r=nn(t,s))||r.enumerable});return e};var ln=e=>an(Be({},"__esModule",{value:!0}),e);var Lr={};on(Lr,{TAILWIND_COVERAGE_MATRIX:()=>Dt,assessTailwindMigrationReadiness:()=>wr,classifyTailwindToken:()=>$t,clsx:()=>Tr,convertTailwindClasses:()=>ke,convertTailwindToken:()=>zt,createSharedClsx:()=>Er,createSharedInstance:()=>kr,default:()=>Or,getBootloaderScript:()=>Rt,getCss:()=>Ar,getTailwindCoverageMatrix:()=>xr,observe:()=>Rr,ready:()=>_r,setClsxRoot:()=>Ir,tailwindToXcss:()=>hr});module.exports=ln(Lr);var gt=e=>(e=e||new Map,{all:e,on(t,n){let r=e.get(t);r?r.push(n):e.set(t,[n])},off(t,n){let r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit(t,n){let r=e.get(t);r&&r.slice().forEach(o=>{o(n)});let s=e.get("*");s&&s.slice().forEach(o=>{o(t,n)})}});function cn(e,t,n){let r=0;for(let s=t;s<n;s++){let o=e.charCodeAt(s);if(o===91){r++;continue}if(o===93){r>0&&r--;continue}if(o===58&&r===0)return s}return-1}function dn(e,t,n){let r=0;for(let s=n-1;s>=t;s--){let o=e.charCodeAt(s);if(o===93){r++;continue}if(o===91){r>0&&r--;continue}if(o===64&&r===0)return s}return-1}function un(e,t,n){let r=0;for(let s=t;s<n;s++){let o=e.charCodeAt(s);if(o===91){r++;continue}if(o===93){if(r===0)return!1;r--}}return r===0}function fn(e){return e>=97&&e<=122}function oe(e){if(!e||e.length<2||!un(e,0,e.length))return null;let t=0,n=e.length,r="",s=dn(e,t,n);s>t&&(r=e.substring(s+1,n),n=s);let o="",i="",c=cn(e,t,n);if(c>0&&c<n){let m=e.substring(t,c);t=c+1,o=m}let b=t;for(;b<n;){let m=e.charCodeAt(b);if(m>=48&&m<=57)b++;else break}if(b>t&&(i=e.substring(t,b),t=b),t>=n||e.charCodeAt(t)===38)return null;if(e.charCodeAt(t)===91){let m=e.indexOf("]",t);if(m>t)return{mq:o,layer:i,prop:e.substring(t,m+1),val:"",selector:r}}let w=t;for(;w<n;){let m=e.charCodeAt(w);if(m===45||m===46){if(w+1<n){let E=e.charCodeAt(w+1);if(m===45&&E===45&&w>t||E>=48&&E<=57)break}w++;continue}if(!fn(m))break;w++}if(w===t)return null;let j=e.substring(t,w),M=e.substring(w,n);return{mq:o,layer:i,prop:j,val:M,selector:r}}var mt={a:"all",ac:"align-content",acc:"accent-color",ai:"align-items",ani:"animation",anic:"animation-composition",anide:"animation-delay",anidi:"animation-direction",anidu:"animation-duration",anifm:"animation-fill-mode",aniic:"animation-iteration-count",anin:"animation-name",anips:"animation-play-state",anitf:"animation-timing-function",ap:"appearance",ar:"aspect-ratio",as:"align-self",b:"bottom",bd:"border",bda:"border-radius",bdb:"border-bottom",bdbc:"border-bottom-color",bdblc:"border-block-color",bdble:"border-block-end",bdblec:"border-block-end-color",bdbles:"border-block-end-style",bdblew:"border-block-end-width",bdblk:"border-block",bdblr:"border-bottom-left-radius",bdbls:"border-block-start",bdblsc:"border-block-start-color",bdblss:"border-block-start-style",bdblst:"border-block-style",bdblsw:"border-block-start-width",bdblwi:"border-block-width",bdbr:"box-decoration-break",bdbrr:"border-bottom-right-radius",bdbst:"border-bottom-style",bdbw:"border-bottom-width",bdc:"border-color",bdcl:"border-collapse",bdeer:"border-end-end-radius",bdesr:"border-end-start-radius",bdi:"border-inline",bdic:"border-inline-color",bdie:"border-inline-end",bdiec:"border-inline-end-color",bdies:"border-inline-end-style",bdiew:"border-inline-end-width",bdimg:"border-image",bdinw:"border-inline-width",bdio:"border-image-outset",bdir:"border-image-repeat",bdis:"border-image-slice",bdisc:"border-inline-start-color",bdisrc:"border-image-source",bdiss:"border-inline-start-style",bdista:"border-inline-start",bdistl:"border-inline-style",bdisw:"border-inline-start-width",bdiw:"border-image-width",bdl:"border-left",bdlc:"border-left-color",bdls:"border-left-style",bdlw:"border-left-width",bdr:"border-right",bdra:"border-radius",bdrc:"border-right-color",bdrs:"border-right-style",bdrw:"border-right-width",bds:"border-style",bdser:"border-start-end-radius",bdsp:"border-spacing",bdssr:"border-start-start-radius",bdt:"border-top",bdtc:"border-top-color",bdtlr:"border-top-left-radius",bdtrr:"border-top-right-radius",bdts:"border-top-style",bdtw:"border-top-width",bdw:"border-width",bg:"background",bga:"background-attachment",bgbm:"background-blend-mode",bgc:"background-color",bgcl:"background-clip",bgi:"background-image",bgo:"background-origin",bgp:"background-position",bgpx:"background-position-x",bgpy:"background-position-y",bgr:"background-repeat",bgs:"background-size",bkdf:"backdrop-filter",bkfv:"backface-visibility",blks:"block-size",brka:"break-after",brkb:"break-before",brki:"break-inside",bxsh:"box-shadow",bxshd:"box-shadow",bxsz:"box-sizing",c:"color",caps:"caption-side",cip:"color-interpolation",ciw:"contain-intrinsic-width",clpp:"clip-path",clr:"clear",cnt:"contain",cntibs:"contain-intrinsic-block-size",cntih:"contain-intrinsic-height",cntiis:"contain-intrinsic-inline-size",cntis:"contain-intrinsic-size",cntri:"counter-increment",cntrr:"counter-reset",cntrs:"counter-set",col:"columns",colc:"column-count",colf:"column-fill",colg:"column-gap",colr:"column-rule",colrc:"column-rule-color",colrs:"column-rule-style",colrw:"column-rule-width",cols:"column-span",colw:"column-width",cr:"cursor",crtc:"caret-color",csch:"color-scheme",ctr:"container",ctrn:"container-name",ctrt:"container-type",ctt:"content",d:"display",dir:"direction",empc:"empty-cells",fca:"forced-color-adjust",ff:"font-family",fl:"float",flt:"filter",fn:"font",fnf:"font-family",fnfs:"font-feature-settings",fnk:"font-kerning",fnlo:"font-language-override",fnos:"font-optical-sizing",fnp:"font-palette",fns:"font-size",fnsa:"font-size-adjust",fnsp:"font-synthesis-position",fnss:"font-synthesis-style",fnssc:"font-synthesis-small-caps",fnstr:"font-stretch",fnsty:"font-style",fnsw:"font-synthesis-weight",fnsyn:"font-synthesis",fnv:"font-variant",fnva:"font-variant-alternates",fnvc:"font-variant-caps",fnve:"font-variant-emoji",fnvea:"font-variant-east-asian",fnvl:"font-variant-ligatures",fnvn:"font-variant-numeric",fnvp:"font-variant-position",fnvs:"font-variation-settings",fnw:"font-weight",fw:"font-weight",fx:"flex",fxb:"flex-basis",fxd:"flex-direction",fxf:"flex-flow",fxg:"flex-grow",fxs:"flex-shrink",fxw:"flex-wrap",g:"grid",ga:"grid-area",gac:"grid-auto-columns",gaf:"grid-auto-flow",gap:"gap",gar:"grid-auto-rows",gc:"grid-column",gce:"grid-column-end",gcs:"grid-column-start",gr:"grid-row",gre:"grid-row-end",grs:"grid-row-start",gt:"grid-template",gta:"grid-template-areas",gtc:"grid-template-columns",gtr:"grid-template-rows",h:"height",hc:"hyphenate-character",hlc:"hyphenate-limit-chars",hp:"hanging-punctuation",hyp:"hyphens",i:"inset",ibe:"inset-block-end",iblk:"inset-block",ibsta:"inset-block-start",ii:"inset-inline",iie:"inset-inline-end",iis:"inset-inline-start",imgo:"image-orientation",imgr:"image-rendering",ins:"inline-size",is:"isolation",jc:"justify-content",ji:"justify-items",js:"justify-self",l:"left",lbrk:"line-break",lh:"line-height",lisp:"list-style-position",ls:"list-style",lsi:"list-style-image",lst:"list-style-type",lts:"letter-spacing",m:"margin",mb:"margin-bottom",mbd:"mix-blend-mode",mbe:"margin-block-end",mblk:"margin-block",mbs:"max-block-size",mbsta:"margin-block-start",mh:"max-height",mibs:"min-block-size",mie:"margin-inline-end",mih:"min-height",min:"margin-inline",mis:"max-inline-size",mista:"margin-inline-start",misz:"min-inline-size",miw:"min-width",ml:"margin-left",mr:"margin-right",msk:"mask",mskb:"mask-border",mskbm:"mask-border-mode",mskbo:"mask-border-outset",mskbr:"mask-border-repeat",mskbs:"mask-border-slice",mskbsrc:"mask-border-source",mskbw:"mask-border-width",mskc:"mask-clip",mskcp:"mask-composite",mski:"mask-image",mskm:"mask-mode",msko:"mask-origin",mskp:"mask-position",mskr:"mask-repeat",msks:"mask-size",mskt:"mask-type",mt:"margin-top",mtd:"math-depth",mts:"math-style",mw:"max-width",mxw:"max-width",of:"object-fit",ofa:"offset-anchor",ofd:"offset-distance",ofl:"overflow",ofla:"overflow-anchor",oflb:"overflow-block",oflcm:"overflow-clip-margin",ofli:"overflow-inline",oflw:"overflow-wrap",oflx:"overflow-x",ofly:"overflow-y",ofp:"offset-path",ofpo:"offset-position",ofr:"offset-rotate",ofs:"offset",olc:"outline-color",oli:"outline",olo:"outline-offset",ols:"outline-style",olw:"outline-width",op:"object-position",opc:"opacity",ord:"order",orp:"orphans",orsby:"overscroll-behavior-y",osrbb:"overscroll-behavior-block",osrbh:"overscroll-behavior",osrbi:"overscroll-behavior-inline",osrbx:"overscroll-behavior-x",p:"padding",pb:"padding-bottom",pbe:"padding-block-end",pblk:"padding-block",pbs:"padding-block-start",pe:"pointer-events",pg:"page",pgba:"page-break-after",pgbb:"page-break-before",pgbi:"page-break-inside",pi:"padding-inline",pie:"padding-inline-end",pis:"padding-inline-start",pl:"padding-left",plc:"place-content",pli:"place-items",pls:"place-self",pos:"position",pr:"padding-right",prca:"print-color-adjust",pso:"perspective-origin",psp:"perspective",pt:"padding-top",pto:"paint-order",qts:"quotes",r:"right",rbp:"ruby-position",rgap:"row-gap",rot:"rotate",rsz:"resize",s:"scale",sbc:"scrollbar-color",sbg:"scrollbar-gutter",sbw:"scrollbar-width",scrb:"scroll-behavior",scrm:"scroll-margin",scrmb:"scroll-margin-bottom",scrmbe:"scroll-margin-block-end",scrmblk:"scroll-margin-block",scrmbs:"scroll-margin-block-start",scrmi:"scroll-margin-inline",scrmie:"scroll-margin-inline-end",scrmis:"scroll-margin-inline-start",scrml:"scroll-margin-left",scrmr:"scroll-margin-right",scrmt:"scroll-margin-top",scrp:"scroll-padding",scrpb:"scroll-padding-bottom",scrpblk:"scroll-padding-block",scrpbs:"scroll-padding-block-start",scrpi:"scroll-padding-inline",scrpie:"scroll-padding-inline-end",scrpis:"scroll-padding-inline-start",scrpl:"scroll-padding-left",scrpr:"scroll-padding-right",scrpt:"scroll-padding-top",scrsa:"scroll-snap-align",scrss:"scroll-snap-stop",scrst:"scroll-snap-type",shit:"shape-image-threshold",shm:"shape-margin",sho:"shape-outside",srcpbe:"scroll-padding-block-end",t:"top",ta:"text-align",tal:"text-align-last",tbl:"table-layout",tbs:"tab-size",tcu:"text-combine-upright",td:"text-decoration",tdc:"text-decoration-color",tdl:"text-decoration-line",tds:"text-decoration-style",tdsi:"text-decoration-skip-ink",tdt:"text-decoration-thickness",tec:"text-emphasis-color",tep:"text-emphasis-position",teph:"text-emphasis",tes:"text-emphasis-style",ti:"text-indent",tj:"text-justify",toa:"touch-action",tol:"text-overflow",tor:"text-orientation",tra:"transform",trab:"transform-box",tran:"transition",tranb:"transition-behavior",trand:"transition-delay",trandur:"transition-duration",tranp:"transition-property",trantf:"transition-timing-function",trao:"transform-origin",tras:"transform-style",trd:"text-rendering",trl:"translate",tsh:"text-shadow",ttr:"text-transform",tuo:"text-underline-offset",tup:"text-underline-position",tw:"text-wrap",unib:"unicode-bidi",us:"user-select",v:"visibility",va:"vertical-align",w:"width",wc:"will-change",wd:"widows",wlc:"-webkit-line-clamp",wrb:"word-break",wrs:"word-spacing",wrtm:"writing-mode",ws:"white-space",wsc:"white-space-collapse",wtfc:"-webkit-text-fill-color",wts:"-webkit-text-stroke",wtsc:"-webkit-text-stroke-color",wtsw:"-webkit-text-stroke-width",z:"z-index",zo:"zoom"},bt={in:"inherit",ini:"initial",un:"unset",rv:"revert",n:"none",a:"auto",t:"top",b:"bottom",l:"left",r:"right",c:"center",m:"middle",j:"justify",s:"start",e:"end",tr:"transparent",cc:"currentColor",minc:"min-content",maxc:"max-content",fitc:"fit-content",sol:"solid",das:"dashed",dot:"dotted",dub:"double",vis:"visible",h:"hidden",col:"collapse"},N={ac:{s:"start",e:"end",fs:"flex-start",fe:"flex-end",n:"normal",b:"baseline",fb:"first baseline",lb:"last baseline",sp:"space-between",sa:"space-around",se:"space-evenly",st:"stretch",sc:"safe center",uc:"unsafe center"},acc:{u:"unset"},ai:{n:"normal",c:"center",s:"start",e:"end",fs:"flex-start",fe:"flex-end",ss:"self-start",se:"self-end",b:"baseline",fb:"first baseline",lb:"last baseline",sc:"safe center",uc:"unsafe center"},anic:{r:"replace",a:"add",ac:"accumulate",ra:"replace, add",aac:"add, accumulate",raac:"replace, add, accumulate"},anidi:{r:"reverse",a:"alternate",ar:"alternate-reverse",nr:"normal, reverse",arn:"alternate, reverse, normal"},anifm:{f:"forwards",b:"backwards",nb:"none, backwards",fbn:"both, forwards, none"},anin:{s:"slide"},anips:{p:"paused",r:"running"},anitf:{ei:"ease-in",eo:"ease-out",eio:"ease-in-out",l:"linear",ss:"step-start",se:"step-end"},ap:{mb:"menulist-button",tf:"textfield",b:"button",c:"checkbox"},ar:{s:"1 / 1",v:"16 / 9"},as:{n:"normal",c:"center",s:"start",e:"end",ss:"self-start",se:"self-end",fs:"flex-start",fe:"flex-end",b:"baseline",fb:"first baseline",lb:"last baseline",st:"stretch",sc:"safe center",uc:"unsafe center"},bd:{d:"dotted",ds:"dashed",db:"double",g:"groove",r:"ridge",i:"inset",o:"outset"},bdbles:{d:"dotted",ds:"dashed",db:"double",g:"groove",r:"ridge",i:"inset",o:"outset"},bdblss:{d:"dotted",ds:"dashed",db:"double",g:"groove",r:"ridge",i:"inset",o:"outset"},bdblst:{d:"dotted",ds:"dashed",db:"double",g:"groove",r:"ridge",i:"inset",o:"outset"},bdbr:{c:"clone",s:"slice"},bdbst:{d:"dotted",ds:"dashed",db:"double",g:"groove",r:"ridge",i:"inset",o:"outset"},bdbw:{t:"thin",m:"medium",th:"thick"},bdcl:{s:"separate",c:"collapse"},bdir:{st:"stretch",r:"repeat",rn:"round",s:"space"},bdlw:{t:"thin",m:"medium",th:"thick"},bdrs:{dt:"dotted",ds:"dashed",s:"solid",db:"double",g:"groove",r:"ridge",in:"inset",out:"outset"},bdrw:{t:"thin",m:"medium",th:"thick"},bds:{dt:"dotted",ds:"dashed",s:"solid",db:"double",g:"groove",r:"ridge",in:"inset",out:"outset"},bdts:{dt:"dotted",ds:"dashed",s:"solid",db:"double",g:"groove",r:"ridge",in:"inset",out:"outset"},bdtw:{t:"thin",m:"medium",th:"thick"},bdw:{t:"thin",m:"medium",th:"thick"},bga:{s:"scroll",f:"fixed",l:"local"},bgbm:{n:"normal",m:"multiply",s:"screen",o:"overlay",d:"darken",l:"lighten",cd:"color-dodge",i:"color-burn",hl:"hard-light",sl:"soft-light",di:"difference",e:"exclusion",h:"hue",sa:"saturation",c:"color",lu:"luminosity"},bgc:{t:"transparent",c:"currentcolor"},bgcl:{bb:"border-box",pb:"padding-box",cb:"content-box",t:"text"},bgo:{bb:"border-box",pb:"padding-box",cb:"content-box"},bgp:{t:"top",b:"bottom",l:"left",r:"right",c:"center",lt:"left top",ct:"center top",rt:"right top",lc:"left center",cc:"center center",rc:"right center",lb:"left bottom",cb:"center bottom",rb:"right bottom"},bgpx:{l:"left",r:"right",c:"center"},bgpy:{t:"top",b:"bottom",c:"center"},bgr:{r:"repeat",x:"repeat-x",y:"repeat-y",s:"space",rn:"round",n:"no-repeat",rs:"repeat space",rr:"repeat repeat",nr:"no-repeat round"},bgs:{c:"contain"},c:{i:"inherit",t:"transparent"},cr:{p:"pointer",d:"default",cm:"context-menu",h:"help",pg:"progress",w:"wait",c:"cell",t:"text",vt:"vertical-text",al:"alias",cp:"copy",mo:"move",nd:"no-drop",na:"not-allowed",gr:"grab",gb:"grabbing",as:"all-scroll",colr:"col-resize",rr:"row-resize",nr:"n-resize",er:"e-resize",sr:"s-resize",wr:"w-resize",ner:"ne-resize",ser:"se-resize",swr:"sw-resize",ewr:"ew-resize",nsr:"ns-resize",nesw:"nesw-resize",nwse:"nwse-resize",zi:"zoom-in",zo:"zoom-out"},d:{b:"block",ib:"inline-block",i:"inline",f:"flex",if:"inline-flex",t:"table",it:"inline-table",tcp:"table-caption",tcell:"table-cell",tcol:"table-column",tcolg:"table-column-group",tfg:"table-footer-group",thg:"table-header-group",trg:"table-row-group",tr:"table-row",fr:"flow-root",g:"grid",ig:"inline-grid",c:"contents",li:"list-item"},ff:{a:"ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",s:"ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif",m:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace"},fl:{is:"inline-start",ie:"inline-end",r:"right",l:"left"},fx:{i:"0 1 auto",a:"1 1 auto"},fxd:{r:"row",rr:"row-reverse",c:"column",cr:"column-reverse"},fxw:{w:"wrap",wr:"wrap-reverse",n:"nowrap"},gac:{mic:"min-content",mac:"max-content",mm:"minmax(0, 1fr)"},gaf:{r:"row",c:"column",d:"dense",rd:"row dense",cd:"column dense"},gar:{mic:"min-content",mac:"max-content",mm:"minmax(0, 1fr)"},gc:{f:"1 / -1"},gr:{f:"1 / -1"},gtc:{s:"subgrid"},gtr:{s:"subgrid"},h:{mic:"min-content",mac:"max-content",fc:"fit-content"},hyp:{m:"manual"},is:{i:"isolate"},jc:{c:"center",s:"start",e:"end",fs:"flex-start",fe:"flex-end",l:"left",r:"right",n:"normal",sp:"space-between",sa:"space-around",se:"space-evenly",st:"stretch",sc:"safe center",uc:"unsafe center"},ji:{n:"normal",st:"stretch",c:"center",s:"start",e:"end",fs:"flex-start",fe:"flex-end",ss:"self-start",se:"self-end",l:"left",r:"right",b:"baseline",fb:"first baseline",lb:"last baseline",lr:"legacy right",ll:"legacy left",lc:"legacy center",sc:"safe center",uc:"unsafe center"},js:{n:"normal",st:"stretch",c:"center",s:"start",e:"end",fs:"flex-start",fe:"flex-end",ss:"self-start",se:"self-end",l:"left",r:"right",b:"baseline",sc:"safe center",uc:"unsafe center"},lisp:{i:"inside",o:"outside"},ls:{i:"inside",di:"disc",c:"circle",s:"square",de:"decimal",g:"georgian",tci:"trad-chinese-informal",k:"kannada"},lst:{di:"disc",c:"circle",s:"square",de:"decimal",g:"georgian",tci:"trad-chinese-informal",k:"kannada"},lts:{n:"normal"},mbd:{n:"normal",m:"multiply",s:"screen",o:"overlay",d:"darken",l:"lighten",cd:"color-dodge",i:"color-burn",hl:"hard-light",sl:"soft-light",di:"difference",e:"exclusion",h:"hue",sa:"saturation",c:"color",lu:"luminosity"},mih:{f:"100%",mic:"min-content",mac:"max-content",fc:"fit-content"},miw:{f:"100%",mic:"min-content",mac:"max-content",fc:"fit-content"},of:{c:"contain",cv:"cover",f:"fill",sd:"scale-down"},oflw:{c:"clip",s:"scroll"},oflx:{c:"clip",s:"scroll"},ofly:{c:"clip",s:"scroll"},olc:{i:"inherit",c:"currentColor",t:"transparent"},ols:{dt:"dotted",ds:"dashed",s:"solid",db:"double",g:"groove",r:"ridge",in:"inset",out:"outset"},olw:{t:"thin",m:"medium",th:"thick"},op:{b:"bottom",c:"center",l:"left",r:"right",t:"top",lb:"left bottom",lt:"left top",rb:"right bottom",rt:"right top"},orsby:{c:"contain"},osrbb:{c:"contain"},osrbh:{c:"contain"},osrbi:{c:"contain"},osrbx:{c:"contain"},pi:{s:"start",c:"center",e:"end",b:"baseline",st:"stretch"},pos:{s:"static",f:"fixed",a:"absolute",r:"relative",st:"sticky"},rsz:{b:"both",h:"horizontal",v:"vertical"},ta:{s:"start",e:"end",l:"left",r:"right",c:"center",j:"justify",mp:"match-parent",mc:"-moz-center",wc:"-webkit-center"},tal:{s:"start",e:"end",l:"left",r:"right",c:"center",j:"justify"},td:{u:"underline"},tdl:{u:"underline",o:"overline",lt:"line-through",b:"blink"},tds:{db:"double",dt:"dotted",ds:"dashed",w:"wavy"},tdt:{ff:"from-font"},tep:{or:"over right",ol:"over left",ur:"under right",ul:"under left",lo:"left over",ru:"right under",lu:"left under"},tj:{iw:"inter-word",ic:"inter-character",d:"distribute"},toa:{p:"pan-x",py:"pan-y",pm:"pan-x pan-y",pi:"pinch-zoom"},tol:{c:"clip",e:"ellipsis"},tor:{m:"mixed",u:"upright",sr:"sideways-right",sl:"sideways-left",s:"sideways",ugo:"use-glyph-orientation"},trd:{op:"optimizeSpeed",ol:"optimizeLegibility",g:"geometricPrecision"},ttr:{c:"capitalize",u:"uppercase",l:"lowercase",fw:"full-width",fsk:"full-size-kana"},tup:{u:"under",l:"left",r:"right",ul:"under left",ru:"right under"},tw:{w:"wrap",n:"nowrap",b:"balance",p:"pretty"},us:{t:"text",all:"all",c:"contain"},v:{c:"collapse"},va:{bl:"baseline",t:"top",m:"middle",b:"bottom",tt:"text-top",tb:"text-bottom",sb:"sub",sp:"super"},w:{mic:"min-content",mac:"max-content",fc:"fit-content",f:"100%"},wc:{sp:"scroll-position",c:"contents",t:"transform"},wtsw:{m:"medium",t:"thick"}};N.ji=N.jc;N.js=N.jc;N.pc=N.jc;N.pi=N.jc;N.ps=N.jc;var pn={SHORT_PROPERTIES:mt,COMMON_VALUES:bt,SPECIFIC_VALUES:N},vt=e=>{let t=typeof e?.styleId=="string"&&e.styleId.trim()?e.styleId.trim():"fwkui",n=typeof e?.version=="string"&&e.version.trim()?e.version.trim():"v1",r=e?.compression??!0,s=typeof e?.debounceMs=="number"&&e.debounceMs>=0?e.debounceMs:1e3,o=typeof e?.sizeLast=="number"&&Number.isFinite(e.sizeLast)&&e.sizeLast>=0?Math.floor(e.sizeLast):1e3,i=e?.loadOnInit??!1;return{styleId:t,version:n,compression:r,debounceMs:s,sizeLast:o,loadOnInit:i}},gn=e=>`${e.styleId}_cache_${e.version}`,mn=e=>`${e.styleId}_ks_${e.version}`,bn=e=>`${e.styleId}_bc_${e.version}`,hn=e=>`${e.styleId}_kr_${e.version}`,yn=e=>`${e.styleId}_kr_lock_${e.version}`,Fe=(e,t)=>{if(!e)return{sizeLast:0,entries:[]};try{let n=e.getItem(t);if(!n)return{sizeLast:0,entries:[]};let r=JSON.parse(n),s=typeof r.sizeLast=="number"?r.sizeLast:typeof r.s=="number"?r.s:0,i=(Array.isArray(r.entries)?r.entries:Array.isArray(r.e)?r.e:[]).filter(c=>Array.isArray(c)&&c.length===2&&typeof c[0]=="string"&&typeof c[1]=="string");return{sizeLast:Number.isFinite(s)&&s>=0?Math.floor(s):0,entries:i}}catch{return{sizeLast:0,entries:[]}}},ht=(e,t,n)=>{if(e)try{e.setItem(t,JSON.stringify({s:n.sizeLast,e:n.entries}))}catch{}},xn=()=>{if(typeof window>"u"||typeof window.localStorage>"u")return!1;try{let e="__xcss_cache_probe__";return window.localStorage.setItem(e,"1"),window.localStorage.removeItem(e),!0}catch{return!1}},wn=()=>typeof navigator<"u"&&typeof navigator.locks<"u"&&typeof navigator.locks.request=="function",Sn=()=>xn(),Ct=e=>{if(!e||typeof e!="object")return!1;let t=e;return t.__xcss_cache_v===2&&t.compressed===!0&&typeof t.payload=="string"},Ve=e=>{if(!e||typeof e!="object")return!1;let t=e;return t.__xcss_cache_v===3&&t.compressed===!0&&t.algorithm==="deflate-raw"&&t.encoding==="base64"&&typeof t.payload=="string"},kt=()=>typeof CompressionStream<"u"&&typeof Blob<"u"&&typeof Response<"u",Et=()=>typeof DecompressionStream<"u"&&typeof Blob<"u"&&typeof Response<"u",vn=e=>{if(typeof btoa=="function"){let n="";for(let s=0;s<e.length;s+=32768){let o=e.subarray(s,s+32768);for(let i=0;i<o.length;i++)n+=String.fromCharCode(o[i])}return btoa(n)}let t=globalThis.Buffer;if(typeof t<"u")return t.from(e).toString("base64");throw new Error("XCSS: base64 encoding is not supported in this runtime")},Cn=e=>{if(typeof atob=="function"){let n=atob(e),r=new Uint8Array(n.length);for(let s=0;s<n.length;s++)r[s]=n.charCodeAt(s);return r}let t=globalThis.Buffer;if(typeof t<"u")return new Uint8Array(t.from(e,"base64"));throw new Error("XCSS: base64 decoding is not supported in this runtime")},kn=async e=>{if(!kt())throw new Error("XCSS: CompressionStream is not supported");let t=new Blob([e]).stream().pipeThrough(new CompressionStream("deflate-raw")),n=await new Response(t).arrayBuffer();return vn(new Uint8Array(n))},En=async e=>{if(!Et())throw new Error("XCSS: DecompressionStream is not supported");let t=Cn(e),n=new Uint8Array(t.length);n.set(t);let r=new Blob([n.buffer]).stream().pipeThrough(new DecompressionStream("deflate-raw"));return await new Response(r).text()},Tn=e=>{try{let t=JSON.parse(e);return Ve(t)}catch{return!1}},Rn=e=>{if(!e)return"";let t=new Map,n=[],r=256;for(let o=0;o<256;o++)t.set(String.fromCharCode(o),o);let s=e[0];for(let o=1;o<e.length;o++){let i=e[o],c=s+i;t.has(c)?s=c:(n.push(t.get(s)),t.set(c,r++),s=i)}return n.push(t.get(s)),n.map(o=>String.fromCharCode(o)).join("")},Tt=e=>{if(!e)return"";let t=new Map,n=256,r="";for(let c=0;c<256;c++)t.set(c,String.fromCharCode(c));let s=e.split("").map(c=>c.charCodeAt(0)),o=s[0],i=t.get(o)||"";r=i;for(let c=1;c<s.length;c++){let b=s[c],w=t.get(b);w||(w=b===n?i+i[0]:""),r+=w,t.set(n++,i+w[0]),i=w}return r},yt=e=>{if(!e||typeof e!="object")return null;let t=e,n=t.default&&typeof t.default=="object"?t.default:t,r=n.SHORT_PROPERTIES,s=n.COMMON_VALUES,o=n.SPECIFIC_VALUES;return!r||!s||!o||typeof r!="object"||typeof s!="object"||typeof o!="object"?null:{SHORT_PROPERTIES:r,COMMON_VALUES:s,SPECIFIC_VALUES:o}},xt=e=>{if(!e||typeof e!="object")return null;let t=e,n=Array.isArray(t.entries)?t.entries:Array.isArray(t.k)?t.k:null;if(!n)return null;let r=n.filter(o=>Array.isArray(o)&&o.length===2&&typeof o[0]=="string"&&typeof o[1]=="string"),s=typeof t.sizeLast=="number"?t.sizeLast:typeof t.s=="number"?t.s:null;return s===null?null:{source:typeof t.source=="string"?t.source:"",sizeLast:s,entries:r}},In=(e,t)=>{let n=t;for(;n<e.length&&/\s/.test(e[n]);)n++;return n},An=(e,t)=>{let n=0,r=null,s=!1,o=!1,i=!1;for(let c=t;c<e.length;c++){let b=e[c],w=e[c+1];if(o){b===`
2
+ `&&(o=!1);continue}if(i){b==="*"&&w==="/"&&(i=!1,c++);continue}if(r){if(s){s=!1;continue}if(b==="\\"){s=!0;continue}b===r&&(r=null);continue}if(b==="/"&&w==="/"){o=!0,c++;continue}if(b==="/"&&w==="*"){i=!0,c++;continue}if(b==='"'||b==="'"||b==="`"){r=b;continue}if(b==="{"){n++;continue}if(b==="}"&&(n--,n===0))return c}return-1},Se=(e,t)=>{let n=e.indexOf(t);if(n===-1)return null;let r=In(e,n+t.length);if(e[r]!=="{")return null;let s=An(e,r);return s===-1?null:e.slice(r,s+1)},ae=(e,t)=>{let n=t;for(;n<e.length;){let r=e[n],s=e[n+1];if(/\s/.test(r)){n++;continue}if(r==="/"&&s==="/"){for(n+=2;n<e.length&&e[n]!==`
3
+ `;)n++;continue}if(r==="/"&&s==="*"){for(n+=2;n<e.length;){if(e[n]==="*"&&e[n+1]==="/"){n+=2;break}n++}continue}break}return n},wt=(e,t)=>{let n=e[t];if(n!=='"'&&n!=="'")return null;let r="",s=t+1;for(;s<e.length;){let o=e[s];if(o==="\\"){if(s++,s>=e.length)return null;let i=e[s];r+={n:`
4
+ `,r:"\r",t:" ",b:"\b",f:"\f",v:"\v","\\":"\\",'"':'"',"'":"'"}[i]??i,s++;continue}if(o===n)return{value:r,end:s+1};r+=o,s++}return null},_n=(e,t)=>{let n=e[t];if(!n||!/[A-Za-z_$]/.test(n))return null;let r=t+1;for(;r<e.length&&/[A-Za-z0-9_$]/.test(e[r]);)r++;return{value:e.slice(t,r),end:r}},ve=e=>{let t=(s,o)=>{let i=ae(s,o);return s[i]==="{"?n(s,i):wt(s,i)},n=(s,o)=>{let i=ae(s,o);if(s[i]!=="{")return null;i++;let c={};for(;i<s.length;){if(i=ae(s,i),s[i]==="}")return{value:c,end:i+1};let b=wt(s,i)||_n(s,i);if(!b||(i=ae(s,b.end),s[i]!==":"))return null;i++;let w=t(s,i);if(!w)return null;if(c[b.value]=w.value,i=ae(s,w.end),s[i]===","){i++;continue}return s[i]==="}"?{value:c,end:i+1}:null}return null},r=n(e,0);return r&&ae(e,r.end)===e.length?r.value:null},On=e=>{let t=Se(e,"export const SHORT_PROPERTIES ="),n=Se(e,"export const COMMON_VALUES ="),r=Se(e,"export const SPECIFIC_VALUES =");if(t&&n&&r)return yt({SHORT_PROPERTIES:ve(t),COMMON_VALUES:ve(n),SPECIFIC_VALUES:ve(r)});let s=Se(e,"export default");return s?yt(ve(s)):null},Ln=async e=>{let t=typeof process<"u"?process:null;if(!t||typeof t.getBuiltinModule!="function")return null;let n=e.startsWith("file:"),r=e.startsWith("/")||e.startsWith("./")||e.startsWith("../")||/^[A-Za-z]:[\\/]/.test(e);if(!n&&!r)return null;let s=t.getBuiltinModule("node:fs/promises");return s?.readFile?s.readFile(n?new URL(e):e,"utf8"):null},jn=async e=>{let t=await Ln(e);if(typeof t=="string")return t;if(typeof fetch=="function"){let n=await fetch(e);if(!n.ok)throw new Error(`XCSS: Failed to fetch dictionary module: ${n.status}`);return n.text()}throw new Error("XCSS: fetch is not supported in this runtime")},$n=async e=>{let t=await jn(e),n=On(t);if(!n)throw new Error(zn);return n},zn="XCSS: dictionary module must export plain-object SHORT_PROPERTIES, COMMON_VALUES and SPECIFIC_VALUES",Dn=(e,t)=>{if(!e||typeof document>"u")return;t=t||"fwkui";let n=Array.from({length:24},(r,s)=>"l"+s);if(!e.querySelector('style[id="'+t+'"]')){let r=document.createElement("style");r.id=t;let s=`@layer ${n.join(", ")};`;if(r.textContent=s,!(e instanceof ShadowRoot))document.head.append(r);else try{e.prepend(r)}catch{e.appendChild(r)}}},Mn=e=>{let t=Array.isArray(e.excludes)?e.excludes:[],n=vt(e.cache),r=JSON.stringify({base:e.base||"",aliases:e.aliases||{},breakpoints:e.breakpoints||[],theme:e.theme||{},prefix:e.prefix||"",excludes:t,excludePrefixes:e.excludePrefixes||[],dictionaryImport:e.dictionaryImport??!0,cache:n}),s=0;if(r.length===0)return s.toString();for(let o=0;o<r.length;o++){let i=r.charCodeAt(o);s=(s<<5)-s+i,s|=0}return s.toString()},St=e=>{if(!e)return null;try{let t=JSON.parse(e);if(Ct(t)){let n=Tt(t.payload);return n?JSON.parse(n):null}return Ve(t)?null:t}catch{return null}},Pn=async e=>{if(!e)return null;try{let t=JSON.parse(e);if(Ct(t)){let n=Tt(t.payload);return n?JSON.parse(n):null}if(Ve(t)){let n=await En(t.payload);return n?JSON.parse(n):null}return t}catch{return null}},Wn=(e,t)=>{if(e==="root")return t;let n=/@media[^{]+\{\n?([\s\S]+)\n?\}/.exec(t);return n&&n[1]?n[1].trim():t},Nn=e=>Array.isArray(e)?e.join(`
5
+ `):e||"",Xn=(e,t)=>e?!t||t===e?e:t.startsWith(e)?t:`${e}
6
+ ${t}`:t,He=(e={base:"",aliases:{},excludes:[],excludePrefixes:[],breakpoints:[],theme:{},prefix:"",dictionaryImport:!0,cache:{styleId:"fwkui",version:"v1",compression:!0,debounceMs:1e3,sizeLast:1e3,loadOnInit:!1}})=>{let{base:t=null,breakpoints:n=[],aliases:r={},theme:s={},excludes:o=[],excludePrefixes:i=[],prefix:c="",dictionaryImport:b=!0,cache:w={}}=e||{};Array.isArray(n)||(n=[]),Array.isArray(o)||(o=[]),Array.isArray(i)||(i=[]),(!r||typeof r!="object")&&(r={}),(!s||typeof s!="object")&&(s={});let j=vt(w),M=gn(j),m=mn(j),E=bn(j),D=o,ce=i.filter(l=>typeof l=="string").map(l=>l.trim()).filter(l=>l.length>0),Ee=l=>{let d=l.replace(/[.+?^${}()|[\]\\]/g,"\\$&");return new RegExp("^"+d.replace(/\*/g,".*")+"$")},tt=D.filter(l=>typeof l=="string").map(l=>l.trim()).filter(l=>l.length>0).map(l=>{if(l.includes("*")){let d=Ee(l);return p=>d.test(p)}return d=>d===l}),Mt=l=>ce.some(d=>l.startsWith(d))?!0:tt.some(d=>d(l)),nt=l=>!(Mt(l)||c&&!l.startsWith(c)),Pt=["default","xs","sm","md","lg","xl","2xl","sma","mda","lga","xla"],Wt=n.filter(l=>!!l&&typeof l=="object"&&!Array.isArray(l)).map(l=>Object.keys(l)[0]).filter(l=>typeof l=="string"&&l.length>0),Nt=new Set([...Pt,...Wt]),Te=l=>!l||Nt.has(l),Xt=b!==!1,Ut=new Set(["mx","my","px","py","bdx","bdy"]),Re=new Set,Ie=l=>l?!Xt||!Q||Object.keys(Q).length===0?!0:!!Q[l]||Ut.has(l)||Re.has(l):!1,Q={},pe={},Ae={},_e={},rt=()=>{_e={...Ae,...s}},ge=l=>{if(!l){Q={},pe={},Ae={},Re=new Set,rt();return}Q=l.SHORT_PROPERTIES,pe=l.SPECIFIC_VALUES,Ae=l.COMMON_VALUES,Re=new Set(Object.values(Q)),rt()},me=!0,Oe=Promise.resolve();b===!1?ge(null):typeof b=="string"?(me=!1,ge(null),Oe=$n(b).then(l=>{ge(l)}).catch(l=>{console.warn("XCSS: Failed to import dictionary from URL",l)}).finally(()=>{me=!0})):ge(pn);let de=null,Kt=(l=typeof document<"u"?document:void 0)=>{let d=typeof window<"u"&&typeof document<"u",p=d?window:null,C=p?.localStorage||null,T=d&&Sn(),S=j.loadOnInit&&T,v=S?C:null,h=null,k=Nn(t);l&&(h="getRootNode"in l?l.getRootNode():l);let x=new Map,P=new Map,I=new Set,z=(a,u)=>{x.set(a,u),P.set(u,a),I.add(u)},B=a=>P.get(a)||a,ee=hn(j),be=yn(j),L=j.sizeLast,X=new Set,F=!1,V=null,H=!0,q=`xcss_${Math.random().toString(36).slice(2)}${Date.now().toString(36)}`,ne=[],Z=!1,J=null,A=a=>{typeof a=="number"&&Number.isFinite(a)&&a>L&&(L=a)},re=a=>{a&&a.forEach(([u,f])=>{let g=x.get(u);g!==f&&(g||I.has(f)&&P.get(f)!==u||z(u,f))})};if(S){let a=Fe(v,ee);A(a.sizeLast),re(a.entries)}let he=a=>{a&&(a.source&&a.source===q||(A(a.sizeLast),a.entries.forEach(([u,f])=>{let g=x.get(u);g!==f&&(g||I.has(f)||z(u,f))})))},$e=()=>{if(Z=!1,!d||ne.length===0)return;let a={source:q,sizeLast:L,entries:ne.splice(0,ne.length)};if(J)try{J.postMessage(a);return}catch{J=null}if(v)try{v.setItem(m,JSON.stringify(a))}catch{}},se=a=>{!d||!S||(ne.push(a),!Z&&(Z=!0,queueMicrotask($e)))},at=a=>{let u;do u="D"+(L++).toString(32).toUpperCase();while(I.has(u));return z(a,u),u},qt=a=>{let u=x.get(a);if(u)return u;if(!S||!v)return at(a);let f=Fe(v,ee),g=new Map(f.entries),y=new Set(f.entries.map(([,$])=>$));A(f.sizeLast),re(f.entries);let _=g.get(a);if(_)return z(a,_),_;let R=Math.max(L,f.sizeLast,j.sizeLast),O;do O="D"+(R++).toString(32).toUpperCase();while(y.has(O)||I.has(O));return g.set(a,O),y.add(O),z(a,O),A(R),ht(v,ee,{sizeLast:R,entries:[...f.entries,[a,O]]}),se([a,O]),O},Zt=async a=>{if(!S||!v||a.length===0)return;let u=()=>{let g=Fe(v,ee),y=new Map(g.entries),_=new Set(g.entries.map(([,$])=>$));A(g.sizeLast),re(g.entries);let R=Math.max(L,g.sizeLast,j.sizeLast),O=[];return a.forEach($=>{if(x.has($))return;let ie=y.get($);if(ie){z($,ie);return}let W;do W="D"+(R++).toString(32).toUpperCase();while(_.has(W)||I.has(W));y.set($,W),_.add(W),O.push([$,W]),z($,W)}),A(R),O.length===0?[]:(ht(v,ee,{sizeLast:R,entries:[...g.entries,...O]}),O)},f=[];if(wn())try{await navigator.locks.request(be,async()=>{f=u()})}catch{f=u()}else f=u();f.length!==0&&(f.forEach(g=>se(g)),Ke(f.map(([g])=>g)),Xe())},Jt=async()=>{if(!(!S||!d))return V||(V=(async()=>{for(;X.size>0;){let a=Array.from(X);X.clear(),await Zt(a)}})().finally(()=>{V=null}),V)},$r=a=>{!S||!d||(X.add(a),!F&&(F=!0,queueMicrotask(()=>{F=!1,Jt()})))};if(d&&h&&Dn(h,j.styleId),S&&d&&typeof BroadcastChannel<"u")try{J=new BroadcastChannel(E),J.addEventListener("message",a=>{he(xt(a.data))})}catch{J=null}let ze=gt(),ye=[{default:""},{xs:"screen and (max-width: 575px)"},{sm:"screen and (min-width: 576px)"},{md:"screen and (min-width: 768px)"},{lg:"screen and (min-width: 992px)"},{xl:"screen and (min-width: 1200px)"},{"2xl":"screen and (min-width: 1400px)"},{sma:"screen and (max-width: 768px)"},{mda:"screen and (max-width: 992px)"},{lga:"screen and (max-width: 1200px)"},{xla:"screen and (max-width: 1400px)"},...n],lt=ye.filter((a,u)=>ye.findLastIndex(f=>Object.keys(f)[0]==Object.keys(a)[0])==u),De=lt.map(a=>Object.keys(a)[0]),G={},te={},U={root:""},Gt={root:[]},Yt={root:!1},Me=Mn(e),Pe=null,We=0,xe=!1,we=null,ue=null,Ne=a=>{try{v?.setItem(M,a)}catch(u){console.warn("XCSS: Failed to save cache",u)}},ct=a=>{!d||!v||typeof a=="string"&&v.getItem(M)!==a||(v.removeItem(M),v.removeItem(m))},Qt=a=>{if(!S||!d||!v)return;de=a;let u=++We;try{let f=JSON.stringify(a),g=()=>{let y={__xcss_cache_v:2,compressed:!0,payload:Rn(f)};Ne(JSON.stringify(y))};if(!j.compression){Ne(f);return}if(kt()&&Et()){kn(f).then(y=>{if(u!==We)return;Ne(JSON.stringify({__xcss_cache_v:3,compressed:!0,algorithm:"deflate-raw",encoding:"base64",payload:y}))}).catch(()=>{u===We&&g()});return}g()}catch(f){console.warn("XCSS: Failed to save cache",f)}},Xe=()=>{!d||!S||(Pe&&clearTimeout(Pe),Pe=setTimeout(()=>{let a={};for(let g in G)a[g]=Array.from(G[g]);let u={};Object.keys(U).forEach(g=>{if(g==="root")u[g]=U[g];else{let y=ye.find(_=>Object.keys(_)[0]===g)?.[g];y&&U[g]?u[g]=`@media ${y} {
7
+ ${U[g]}
8
+ }`:u[g]=U[g]||""}});let f={configHash:Me,cssText:u,rulesSet:a,keys:Array.from(x.entries()),sizeLast:L};Qt(f)},j.debounceMs))};if(S&&d&&v)try{let a=v.getItem(M);if(a){let u=St(a);u?u.configHash!==Me?v.removeItem(M):(we=u,xe=!0,de=u):Tn(a)?ue={raw:a}:v.removeItem(M)}}catch(a){console.error(a)}d&&(te.root=new CSSStyleSheet);let Ue=(a,u)=>{U[a]=u,d&&te[a]&&te[a].replaceSync(u)};De.forEach(a=>{if(G[a]=new Set,d){let u=lt.find(f=>Object.keys(f)[0]==a)?.[a]||"";te[a]=new CSSStyleSheet({media:u})}U[a]="",Gt[a]=[],Yt[a]=!1}),Ue("root",k);let dt=()=>{if(!h)return;let a=h.querySelector(`style[id="${j.styleId}"]`);if(a){let u=typeof requestAnimationFrame=="function"?requestAnimationFrame:f=>setTimeout(()=>f(Date.now()),0);u(()=>{u(()=>{a.remove()})})}},ut=a=>{a.keys&&re(a.keys),A(a.sizeLast),["root",...De].forEach(f=>{let g=G[f]||new Set,y=a.rulesSet?.[f]||[],_=new Set([...y,...Array.from(g)]);if(G[f]=_,f==="root"){let $=typeof a.cssText?.root=="string"?a.cssText.root:"",ie=Xn(k,$);Ue("root",ie);return}let R=Array.from(_).join(`
9
+ `),O=typeof a.cssText?.[f]=="string"?Wn(f,a.cssText[f]):"";Ue(f,R||O)}),de=a,dt()};if(xe&&we&&ut(we),d&&h?.adoptedStyleSheets){let a=h.adoptedStyleSheets,u=["root",...De].map(f=>te[f]).filter(f=>f&&!a.includes(f));u.length>0&&(h.adoptedStyleSheets=[...a,...u])}S||dt(),S&&d&&v&&ue&&!xe&&(async()=>{let a=await Pn(ue.raw);if(!a){ct(ue.raw);return}if(a.configHash!==Me){ct(ue.raw);return}xe=!0,we=a,ut(a)})(),S&&d&&p?.addEventListener&&p.addEventListener("storage",a=>{if(a.key===m&&a.newValue)try{he(xt(JSON.parse(a.newValue)))}catch{}});let en=(a,u,f)=>{try{a.insertRule(u,a.cssRules.length)}catch{try{a.replaceSync(f)}catch{}}},tn=(a,u)=>{let{media:f,property:g,selector:y,layer:_,className:R}=u,O=U;_=Number(_)||0;let $=x.get(a),ie=$?`.${$}${y}`:`.${R}${y}`;var W=`@layer l${_}{${ie}{${g}}}`;G[f]||(G[f]=new Set);let pt=G[f];pt.has(W)||(pt.add(W),O[f]+=(O[f]?`
10
+ `:"")+W,d&&te[f]&&en(te[f],W,O[f]),Xe())},ft=a=>{a.forEach(u=>{let f=B(u),g=ot(f);g&&tn(f,g)})},Ke=a=>{if(a.length===0)return;let u=()=>ft(a);me?u():Oe.then(u)};return ze.on("observeDom",Ke),{clsx:(...a)=>{let u=a.map(y=>Array.isArray(y)?y:[y]).flat(1/0).map(y=>typeof y=="string"?y.split(/(\s|\t)+/g):[]).flat(1/0);u=u.filter(y=>typeof y=="string"&&y.trim()),u=[...new Set(u)];let f=y=>{if(!nt(y))return!1;if(me)return!!ot(y);let _=c?y.slice(c.length):y,R=oe(_);if(!R||!Te(R.mq))return!1;let O=(R.selector||"").replace(/(';|;)/g,$=>$=="';"?";":" ");return O&&!Le(O)?!1:R.prop.startsWith("[")?!!st(R.prop+R.val):Ie(R.prop)?(R.prop==="&",R.val.length>0):!1},g=u.map(y=>{let _=y;if(x.has(y))_=x.get(y);else if(f(y))if(S&&d)_=qt(y);else{let R=at(y);se([y,R]),Xe(),_=R}return _});return!d||H?ze.emit("observeDom",u):queueMicrotask(()=>ze.emit("observeDom",u)),g.join(" ")},observe:()=>{!d||!h||(Ht(h,a=>{H?ft(a):Ke(a)}),H=!1)},getCssString:()=>Object.entries(U).map(([a,u])=>{if(!u)return"";if(a==="root"||a==="default")return u;let f=ye.find(g=>Object.keys(g)[0]===a)?.[a];return f?`@media ${f} {
11
+ ${u}
12
+ }`:u}).join(`
13
+ `)}};function st(l){let d=new RegExp("^(\\[(?<p>[a-zA-Z]+)\\])$"),{p=""}=d.exec(l)?.groups??{};if(p&&r[p]&&Array.isArray(r[p])){let C=r[p],T=[],S=!0,v=h=>{let k=h.trim();if(!k)return null;let x=k.endsWith(";")?k.slice(0,-1).trim():k,P=x.indexOf(":");if(P<=0||P>=x.length-1)return null;let I=x.slice(0,P).trim(),z=x.slice(P+1).trim();return!I||!z||!/^(?:--[a-zA-Z0-9-_]+|-?[a-zA-Z][a-zA-Z0-9-]*)$/.test(I)?null:`${I}:${z}`};for(let h of C){if(typeof h!="string"){S=!1;break}let k=v(h);if(k){if(typeof CSS<"u"&&!CSS.supports(k)){S=!1;break}T.push(k);continue}S=!1;break}if(T.length>0&&S)return T.join(";")}return null}function it(l,d){let p=st(l+d);if(p)return p;if(!l||d===void 0)return null;let C=Q[l],T=C||l,S=d[0],v=!1,h=d;if(S==="!"&&(v=!0,h=h.substring(1),S=h[0]),h.startsWith("--"))h="var("+h+")";else if(S==="["&&h.endsWith("]"))h=h.substring(1,h.length-1);else if(h.length>0){let I=h[0].toLowerCase()+h.substring(1),z=pe[l]?.[I]||_e[I];if(!z){let B=h.toLowerCase();z=pe[l]?.[B]||_e[B]}h=z||h}if(h=h.replace(/(';|;)/g,I=>I=="';"?";":" "),!h)return null;let k=h+(v?" !important":""),x=[T+":"+k];switch(T){case"mx":x=[`margin-left:${k}`,`margin-right:${k}`];break;case"my":x=[`margin-top:${k}`,`margin-bottom:${k}`];break;case"px":x=[`padding-left:${k}`,`padding-right:${k}`];break;case"py":x=[`padding-top:${k}`,`padding-bottom:${k}`];break;case"bdx":x=[`border-left:${k}`,`border-right:${k}`];break;case"bdy":x=[`border-top:${k}`,`border-bottom:${k}`];break}return!(typeof CSS<"u")||x.every(I=>CSS.supports(I))?x.join(";"):null}let Bt=l=>{let d=0;for(let p=l.length-1;p>=0;p--){let C=l[p];if(C==="]"){d++;continue}if(C==="["){d>0&&d--;continue}if(C==="@"&&d===0)return{body:l.slice(0,p),selector:l.slice(p+1)}}return{body:l,selector:""}},Ft=l=>{let d=[],p=0,C=0;for(let T=0;T<l.length;T++){let S=l[T];if(S==="["){C++;continue}if(S==="]"){C>0&&C--;continue}S==="&"&&C===0&&(d.push(l.slice(p,T)),p=T+1)}return d.push(l.slice(p)),d},Le=l=>{if(!l)return!0;let d=l.trim();if(!d)return!0;if(/[{}]/.test(d)||d==="#"||d==="("||d===")"||d===","||d===">"||d==="+"||d==="~"||d.startsWith("(")||d.startsWith(")"))return!1;let p=0;for(let C=0;C<d.length;C++){let T=d[C];if(T==="("){p++;continue}if(T===")"){if(p===0)return!1;p--}}return p===0};function ot(l){if(!nt(l))return null;let d=c?l.slice(c.length):l,p=typeof CSS<"u"?CSS.escape(l):Vt(l);if(d.includes("&")&&!d.startsWith("&")){let{body:B,selector:ee}=Bt(d),be=Ft(B).map(L=>L.trim()).filter(L=>L.length>0).map(L=>c&&L.startsWith(c)?L.slice(c.length):L);if(be.length>1){let L="",X="",F=ee,V=!1,H=[];for(let Z of be){let J=F?`${Z}@${F}`:Z,A=oe(J);if(!A||!Te(A.mq)||!A.prop.startsWith("[")&&!Ie(A.prop))return null;V?(!A.mq&&L&&(A.mq=L),!A.layer&&X&&(A.layer=X)):(L=A.mq||"",X=A.layer||"",V=!0);let re=A.mq||"",he=A.layer||"",$e=A.selector||"";if(re!==L||he!==X||$e!==F)return null;let se=it(A.prop,A.val);if(!se)return null;H.push(se)}if(H.length===0)return null;let q=F.replace(/(';|;)/g,Z=>Z=="';"?";":" "),ne=`selector(${p}${q})`;if(q){if(typeof CSS<"u"){if(!CSS.supports(ne))return null}else if(!Le(q))return null}return{media:L||"default",layer:X||"0",className:p,property:H.join(";"),selector:q,cssRules:`.${p}${q}{${H.join(";")}}`}}}let C=oe(d);if(!C||!Te(C.mq)||!C.prop.startsWith("[")&&!Ie(C.prop))return null;let{mq:T="default",layer:S="0",prop:v,val:h,selector:k=""}=C,x=[],P=it(v,h);if(P&&x.push(P),x.length===0)return null;let I=k.replace(/(';|;)/g,B=>B=="';"?";":" "),z=`selector(${p}${I})`;if(I){if(typeof CSS<"u"){if(!CSS.supports(z))return null}else if(!Le(I))return null}return{media:T||"default",layer:S||"0",className:p,property:x.join(";"),selector:I,cssRules:`.${p}${I}{${x.join(";")}}`}}let Vt=l=>l.replace(/([^\w-])/g,"\\$1"),je=l=>{var d=[...l?.classList||[]].filter(p=>{if(p){let C=p.charCodeAt(0)==45?p.charCodeAt(1):p.charCodeAt(0);return C>=97&&C<=122||C>=48&&C<=57}return!1});return l?.children?.length>0&&Array.from(l?.children).forEach(p=>{d.push(...je(p))}),d.flat(1/0)},Ht=(l,d)=>{if(typeof d!="function")throw new Error("Callback is not a function");if(!l)return;let p;"documentElement"in l?p=l.documentElement:(l instanceof Element||"tagName"in l||"host"in l)&&(p=l),p&&(p instanceof Element&&d(je(p)),typeof MutationObserver<"u"&&new MutationObserver(C=>{for(let T of C)if(T.type=="attributes"&&T.attributeName=="class"){if(T.target.nodeType==1){let S=String(T.target?.className??""),v=String(T?.oldValue??"");if(S||v){let h=S.split(" ").map(x=>x.trim()).filter(x=>x),k=v.split(" ").map(x=>x.trim()).filter(x=>x);h=h.filter(x=>!k.includes(x)),typeof d=="function"&&d([...new Set(h)])}}}else if(T.type=="childList"&&T.addedNodes.length>0){let S=[...T.addedNodes].filter(v=>v.nodeType==1).map(v=>je(v)).flat(1/0);typeof d=="function"&&d([...new Set(S)])}}).observe(p,{attributes:!0,attributeOldValue:!0,attributeFilter:["class"],childList:!0,subtree:!0}))};return{buildCss:Kt,exportCache:()=>!j.loadOnInit||typeof window>"u"||!window.localStorage?de:St(window.localStorage.getItem(M))||de,ready:Oe}},Un=(e,t)=>{He(t).buildCss(e).observe()},Kn=(e,t)=>He(t).buildCss(e).clsx,qe={css:He,cssObserve:Un,clsx:Kn};var Bn=(e,t)=>(e=e||"fwkui",t=t||"v1",`${e}_cache_${t}`),Rt=(e="fwkui",t="v1",n)=>{let r=String(e||"").trim()||"fwkui",s=Bn(r,t),o=n?.loadOnInit??!1,i=JSON.stringify(r),c=JSON.stringify(s),w=`
17
14
  (async function () {
15
+ function canUseCacheRuntime() {
16
+ if (typeof window === 'undefined' || !window.localStorage) return false;
17
+ try {
18
+ var probeKey = '__xcss_cache_probe__';
19
+ localStorage.setItem(probeKey, '1');
20
+ localStorage.removeItem(probeKey);
21
+ return true;
22
+ } catch (_error) {
23
+ return false;
24
+ }
25
+ }
26
+
18
27
  function decompressLZW(compressed) {
19
28
  if (!compressed) return '';
20
29
  var dictionary = {};
@@ -97,9 +106,11 @@ ${d}
97
106
 
98
107
  try {
99
108
  if (typeof window === 'undefined' || !window.localStorage) return;
109
+ if (!${JSON.stringify(o)}) return;
110
+ if (!canUseCacheRuntime()) return;
100
111
 
101
- var styleId = ${l};
102
- var key = ${f};
112
+ var styleId = ${i};
113
+ var key = ${c};
103
114
  var raw = localStorage.getItem(key);
104
115
  if (!raw) return;
105
116
  var payload=await parseCache(raw);
@@ -123,5 +134,5 @@ ${d}
123
134
  styleEl.textContent = css;
124
135
  } catch (_error) {}
125
136
  })();
126
- `.trim();return r?.compact?u.replace(/\s+/g," ").trim():u};var je="__FWXCSS_SHARED__",or={base:"html,body{font-size:16px;padding:0;margin:0;}"},ir=e=>{if(!e)return!1;let t=typeof Document<"u",r=typeof ShadowRoot<"u",s=t&&e instanceof Document,n=r&&e instanceof ShadowRoot;return s||n},ar=e=>{let t=[],r=s=>{if(s){if(typeof s=="string"||typeof s=="number"){t.push(String(s));return}if(Array.isArray(s)){s.forEach(r);return}typeof s=="object"&&Object.keys(s).forEach(n=>{s[n]&&t.push(n)})}};return e.forEach(r),t},De=e=>{let t=new WeakMap,r=null,s=e??or,n=typeof document<"u"?document:null,l=x=>{let P=Pe.css(s);return{...P.buildCss(x??void 0),ready:P.ready}},f=()=>(r||(r=l(null)),r),u=x=>{if(!x)return f();let P=t.get(x);return P||(P=l(x),t.set(x,P)),P};return{clsx:(...x)=>{let P,ee=x[x.length-1];ir(ee)&&(P=ee,x=x.slice(0,-1));let ye=ar(x);return u(P||n).clsx(ye.join(" "))},observe:x=>{u(x||n).observe()},setClsxRoot:x=>{n=x||(typeof document<"u"?document:null)},getCss:x=>x?u(x).getCssString():n?u(n).getCssString():f().getCssString(),ready:x=>x?u(x).ready:n?u(n).ready:f().ready}},lr=e=>De(e),cr=e=>De(e),ze=typeof globalThis<"u"?globalThis:typeof window<"u"?window:global,Q=ze[je]||De();ze[je]||(ze[je]=Q);var dr=Q.clsx,fr=Q.observe,ur=Q.setClsxRoot,pr=Q.getCss,br=Q.ready;var gr=Pe;0&&(module.exports={clsx,createSharedClsx,createSharedInstance,getBootloaderScript,getCss,observe,ready,setClsxRoot});
137
+ `.trim();return n?.compact?w.replace(/\s+/g," ").trim():w};var Fn={preserveUnknown:!0,mode:"legacy"},Vn=new Set(["xs","sm","md","lg","xl","2xl"]),_t={hover:":hover",focus:":focus",active:":active",visited:":visited",disabled:":disabled",checked:":checked","focus-within":":focus-within","focus-visible":":focus-visible",first:":first-child",last:":last-child",odd:":nth-child(odd)",even:":nth-child(even)",before:"::before",after:"::after",placeholder:"::placeholder",selection:"::selection"},Hn=new Set([...Object.keys(_t),"dark","group-hover","group-focus","group-focus-within","peer-hover","peer-focus","placeholder","before","after","selection"]),qn={0:"0",px:"1px","0.5":"2px",1:"4px","1.5":"6px",2:"8px","2.5":"10px",3:"12px","3.5":"14px",4:"16px",5:"20px",6:"24px",7:"28px",8:"32px",9:"36px",10:"40px",11:"44px",12:"48px",14:"56px",16:"64px",20:"80px",24:"96px",28:"112px",32:"128px",36:"144px",40:"160px",44:"176px",48:"192px",52:"208px",56:"224px",60:"240px",64:"256px",72:"288px",80:"320px",96:"384px"},K={none:"0",sm:"2px",DEFAULT:"4px",md:"6px",lg:"8px",xl:"12px","2xl":"16px","3xl":"24px",full:"9999px"},Zn={xs:"12px",sm:"14px",base:"16px",lg:"18px",xl:"20px","2xl":"24px","3xl":"30px","4xl":"36px","5xl":"48px","6xl":"60px","7xl":"72px","8xl":"96px","9xl":"128px"},Jn={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},Gn={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:"12px",4:"16px",5:"20px",6:"24px",7:"28px",8:"32px",9:"36px",10:"40px"},Yn={tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},Y={sm:"[0;1px;2px;0;rgb(0 0 0 / 0.05)]",DEFAULT:"[0;1px;3px;0;rgb(0 0 0 / 0.1),0;1px;2px;-1px;rgb(0 0 0 / 0.1)]",md:"[0;4px;6px;-1px;rgb(0 0 0 / 0.1),0;2px;4px;-2px;rgb(0 0 0 / 0.1)]",lg:"[0;10px;15px;-3px;rgb(0 0 0 / 0.1),0;4px;6px;-4px;rgb(0 0 0 / 0.1)]",xl:"[0;20px;25px;-5px;rgb(0 0 0 / 0.1),0;8px;10px;-6px;rgb(0 0 0 / 0.1)]","2xl":"[0;25px;50px;-12px;rgb(0 0 0 / 0.25)]",none:"[none]"},Qn={auto:"auto",full:"100%",screen:"100vw",min:"min-content",max:"max-content",fit:"fit-content"},er={auto:"auto",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"},tr={xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},nr=e=>`[${e.replace(/ /g,";")}]`,rr=e=>{if(!e||e.startsWith("[")&&e.endsWith("]"))return e;let t=e[0];return t==="#"||t==="!"||t==="-"||/[0-9]/.test(t)?e:/[(),/:]/.test(e)||/\s/.test(e)?nr(e):`${t.toUpperCase()}${e.slice(1)}`},Ot=(e,t)=>`${e}${rr(t)}`,It={transparent:"transparent",current:"currentColor",inherit:"inherit",white:"#ffffff",black:"#000000","slate-50":"#f8fafc","slate-100":"#f1f5f9","slate-200":"#e2e8f0","slate-300":"#cbd5e1","slate-400":"#94a3b8","slate-500":"#64748b","slate-600":"#475569","slate-700":"#334155","slate-800":"#1e293b","slate-900":"#0f172a","gray-50":"#f9fafb","gray-100":"#f3f4f6","gray-200":"#e5e7eb","gray-300":"#d1d5db","gray-400":"#9ca3af","gray-500":"#6b7280","gray-600":"#4b5563","gray-700":"#374151","gray-800":"#1f2937","gray-900":"#111827","red-50":"#fef2f2","red-100":"#fee2e2","red-200":"#fecaca","red-300":"#fca5a5","red-400":"#f87171","red-500":"#ef4444","red-600":"#dc2626","red-700":"#b91c1c","red-800":"#991b1b","red-900":"#7f1d1d","orange-50":"#fff7ed","orange-100":"#ffedd5","orange-200":"#fed7aa","orange-300":"#fdba74","orange-400":"#fb923c","orange-500":"#f97316","orange-600":"#ea580c","orange-700":"#c2410c","orange-800":"#9a3412","orange-900":"#7c2d12","amber-50":"#fffbeb","amber-100":"#fef3c7","amber-200":"#fde68a","amber-300":"#fcd34d","amber-400":"#fbbf24","amber-500":"#f59e0b","amber-600":"#d97706","amber-700":"#b45309","amber-800":"#92400e","amber-900":"#78350f","yellow-50":"#fefce8","yellow-100":"#fef9c3","yellow-200":"#fef08a","yellow-300":"#fde047","yellow-400":"#facc15","yellow-500":"#eab308","yellow-600":"#ca8a04","yellow-700":"#a16207","yellow-800":"#854d0e","yellow-900":"#713f12","green-50":"#f0fdf4","green-100":"#dcfce7","green-200":"#bbf7d0","green-300":"#86efac","green-400":"#4ade80","green-500":"#22c55e","green-600":"#16a34a","green-700":"#15803d","green-800":"#166534","green-900":"#14532d","emerald-50":"#ecfdf5","emerald-100":"#d1fae5","emerald-200":"#a7f3d0","emerald-300":"#6ee7b7","emerald-400":"#34d399","emerald-500":"#10b981","emerald-600":"#059669","emerald-700":"#047857","emerald-800":"#065f46","emerald-900":"#064e3b","blue-50":"#eff6ff","blue-100":"#dbeafe","blue-200":"#bfdbfe","blue-300":"#93c5fd","blue-400":"#60a5fa","blue-500":"#3b82f6","blue-600":"#2563eb","blue-700":"#1d4ed8","blue-800":"#1e40af","blue-900":"#1e3a8a","indigo-50":"#eef2ff","indigo-100":"#e0e7ff","indigo-200":"#c7d2fe","indigo-300":"#a5b4fc","indigo-400":"#818cf8","indigo-500":"#6366f1","indigo-600":"#4f46e5","indigo-700":"#4338ca","indigo-800":"#3730a3","indigo-900":"#312e81","violet-50":"#f5f3ff","violet-100":"#ede9fe","violet-200":"#ddd6fe","violet-300":"#c4b5fd","violet-400":"#a78bfa","violet-500":"#8b5cf6","violet-600":"#7c3aed","violet-700":"#6d28d9","violet-800":"#5b21b6","violet-900":"#4c1d95","purple-50":"#faf5ff","purple-100":"#f3e8ff","purple-200":"#e9d5ff","purple-300":"#d8b4fe","purple-400":"#c084fc","purple-500":"#a855f7","purple-600":"#9333ea","purple-700":"#7e22ce","purple-800":"#6b21a8","purple-900":"#581c87","pink-50":"#fdf2f8","pink-100":"#fce7f3","pink-200":"#fbcfe8","pink-300":"#f9a8d4","pink-400":"#f472b6","pink-500":"#ec4899","pink-600":"#db2777","pink-700":"#be185d","pink-800":"#9d174d","pink-900":"#831843","cyan-50":"#ecfeff","cyan-100":"#cffafe","cyan-200":"#a5f3fc","cyan-300":"#67e8f9","cyan-400":"#22d3ee","cyan-500":"#06b6d4","cyan-600":"#0891b2","cyan-700":"#0e7490","cyan-800":"#155e75","cyan-900":"#164e63"},Ze={flex:["dF"],"inline-flex":["dIf"],block:["dB"],"inline-block":["dIb"],inline:["dI"],hidden:["dN"],grid:["dG"],"inline-grid":["dIg"],contents:["dC"],relative:["posR"],absolute:["posA"],fixed:["posF"],sticky:["pos[sticky]"],static:["posS"],"flex-row":["fxd[row]"],"flex-col":["fxd[column]"],"flex-row-reverse":["fxd[row-reverse]"],"flex-col-reverse":["fxd[column-reverse]"],"flex-wrap":["fxw[wrap]"],"flex-nowrap":["fxw[nowrap]"],"items-start":["ai[start]"],"items-end":["ai[end]"],"items-center":["ai[center]"],"items-stretch":["ai[stretch]"],"items-baseline":["ai[baseline]"],"content-start":["ac[start]"],"content-end":["ac[end]"],"content-center":["ac[center]"],"content-between":["ac[space-between]"],"content-around":["ac[space-around]"],"content-evenly":["ac[space-evenly]"],"content-stretch":["ac[stretch]"],"content-baseline":["ac[baseline]"],"justify-start":["jc[start]"],"justify-end":["jc[end]"],"justify-center":["jc[center]"],"justify-between":["jc[space-between]"],"justify-around":["jc[space-around]"],"justify-evenly":["jc[space-evenly]"],"justify-items-start":["ji[start]"],"justify-items-end":["ji[end]"],"justify-items-center":["ji[center]"],"justify-items-stretch":["ji[stretch]"],"justify-items-baseline":["ji[baseline]"],"justify-self-auto":["js[auto]"],"justify-self-start":["js[start]"],"justify-self-end":["js[end]"],"justify-self-center":["js[center]"],"justify-self-stretch":["js[stretch]"],"place-items-start":["pli[start]"],"place-items-end":["pli[end]"],"place-items-center":["pli[center]"],"place-items-stretch":["pli[stretch]"],"place-content-start":["plc[start]"],"place-content-end":["plc[end]"],"place-content-center":["plc[center]"],"place-content-between":["plc[space-between]"],"place-content-around":["plc[space-around]"],"place-content-evenly":["plc[space-evenly]"],"place-content-stretch":["plc[stretch]"],"place-self-auto":["pls[auto]"],"place-self-start":["pls[start]"],"place-self-end":["pls[end]"],"place-self-center":["pls[center]"],"place-self-stretch":["pls[stretch]"],"self-auto":["as[auto]"],"self-start":["as[start]"],"self-end":["as[end]"],"self-center":["as[center]"],"self-stretch":["as[stretch]"],"appearance-none":["ap[none]"],"font-sans":["ffA"],"font-serif":["ffS"],"font-mono":["ffM"],italic:["fnsty[italic]"],"not-italic":["fnsty[normal]"],underline:["tdlU"],"line-through":["tdlLt"],uppercase:["ttrU"],lowercase:["ttrL"],capitalize:["ttrC"],truncate:["ofl[hidden]","tolE","ws[nowrap]"],"whitespace-normal":["ws[normal]"],"whitespace-nowrap":["ws[nowrap]"],"whitespace-pre":["ws[pre]"],"whitespace-pre-wrap":["ws[pre-wrap]"],"text-left":["taL"],"text-center":["taC"],"text-right":["taR"],"overflow-hidden":["ofl[hidden]"],"overflow-auto":["ofl[auto]"],"overflow-scroll":["ofl[scroll]"],"overflow-visible":["ofl[visible]"],"overflow-x-hidden":["oflx[hidden]"],"overflow-x-auto":["oflx[auto]"],"overflow-x-scroll":["oflx[scroll]"],"overflow-y-hidden":["ofly[hidden]"],"overflow-y-auto":["ofly[auto]"],"overflow-y-scroll":["ofly[scroll]"],"cursor-pointer":["crP"],"cursor-not-allowed":["crNa"],"cursor-default":["crD"],"select-none":["us[none]"],"rounded-none":["bdra0"],rounded:[`bdra${K.DEFAULT}`],"rounded-sm":[`bdra${K.sm}`],"rounded-md":[`bdra${K.md}`],"rounded-lg":[`bdra${K.lg}`],"rounded-xl":[`bdra${K.xl}`],"rounded-2xl":[`bdra${K["2xl"]}`],"rounded-3xl":[`bdra${K["3xl"]}`],"rounded-full":[`bdra${K.full}`],border:["bdw1px","bds[solid]",Ot("bdc","currentColor")],"border-0":["bdw0"],"border-2":["bdw2px"],"border-4":["bdw4px"],"border-8":["bdw8px"],"border-solid":["bds[solid]"],"border-dashed":["bds[dashed]"],"border-dotted":["bds[dotted]"],"shadow-sm":[`bxsh${Y.sm}`],shadow:[`bxsh${Y.DEFAULT}`],"shadow-md":[`bxsh${Y.md}`],"shadow-lg":[`bxsh${Y.lg}`],"shadow-xl":[`bxsh${Y.xl}`],"shadow-2xl":[`bxsh${Y["2xl"]}`],"shadow-none":[`bxsh${Y.none}`],"w-full":["w100%"],"w-screen":["w100vw"],"w-auto":["w[auto]"],"h-full":["h100%"],"h-screen":["h100vh"],"h-auto":["h[auto]"],"min-w-full":["miw100%"],"min-h-full":["mih100%"],"min-h-screen":["mih100vh"],"max-w-full":["mw100%"],"max-h-full":["mh100%"],"max-w-none":["mw[none]"],"max-h-none":["mh[none]"],"flex-1":["fx1"],"flex-auto":["fx[a]"],"flex-initial":["fx[i]"],"flex-none":["fx[none]"],grow:["fxg1"],"grow-0":["fxg0"],shrink:["fxs1"],"shrink-0":["fxs0"],"aspect-square":["ar1"],"aspect-video":["ar[16/9]"],"aspect-auto":["ar[auto]"],"object-contain":["of[contain]"],"object-cover":["of[cover]"],"object-fill":["of[fill]"],"object-none":["of[none]"],"object-scale-down":["of[scale-down]"],"object-center":["op[center]"],"object-top":["op[top]"],"object-right":["op[right]"],"object-bottom":["op[bottom]"],"object-left":["op[left]"]},Je={"rounded-t":["bdtlr4px","bdtrr4px"],"rounded-r":["bdtrr4px","bdbrr4px"],"rounded-b":["bdblr4px","bdbrr4px"],"rounded-l":["bdtlr4px","bdblr4px"]},At=new Set([...Object.keys(Ze),...Object.keys(Je),"appearance-none","transition"]),sr=["p-","px-","py-","pt-","pr-","pb-","pl-","m-","mx-","my-","mt-","mr-","mb-","ml-","gap-","gap-x-","gap-y-","top-","right-","bottom-","left-","inset-","inset-x-","inset-y-","w-","h-","min-w-","min-h-","max-w-","max-h-","size-","bg-","text-","border-","placeholder-","divide-","rounded-","font-","leading-","tracking-","opacity-","z-","shadow-","duration-","ease-","delay-","translate-","scale-","rotate-","skew-","ring-","outline-","from-","via-","to-","basis-","order-"],ir=new Set(["m","mx","my","mt","mr","mb","ml","top","right","bottom","left","inset","inset-x","inset-y"]),or=new Set(["m","mx","my","mt","mr","mb","ml","top","right","bottom","left","inset","inset-x","inset-y"]),ar=e=>{let t={...Fn,...e};return e?.preserveUnknown===void 0&&(t.preserveUnknown=t.mode==="legacy"),t},lr=(e,t)=>{let n=[],r=0,s="";for(let o of e){if(o==="["&&r++,o==="]"&&(r=Math.max(0,r-1)),o===t&&r===0){n.push(s),s="";continue}s+=o}return s&&n.push(s),n},cr=e=>{if(It[e])return It[e];if(/^\[(.+)\]$/.test(e)){let t=e.match(/^\[(.+)\]$/);if(!t)return null;let n=t[1].trim();if(n.startsWith("#")||n.startsWith("rgb")||n.startsWith("hsl")||n==="transparent"||n==="currentColor")return n}return null},fe=(e,t)=>{if(t[e]!==void 0)return t[e];if(/^\[(.+)\]$/.test(e)){let n=e.match(/^\[(.+)\]$/);return n?n[1]:null}return null},Ce=(e,t)=>{let n=!1,r=e;if(e.startsWith("-")){if(!t)return null;n=!0,r=e.slice(1)}if(r.startsWith("[")&&r.endsWith("]")){let o=r.slice(1,-1);return n?`-${o}`:o}let s=qn[r];return s?n&&s!=="0"?`-${s}`:s:null},Lt=e=>{let t=e.match(/^(\d+)\/(\d+)$/);if(!t)return null;let n=Number(t[1]),r=Number(t[2]);return r?`${n/r*100}%`:null},dr=(e,t)=>{let n=null,r=[],s=[];for(let i of t){if(Vn.has(i)){n=i;continue}let c=_t[i];if(c){r.push(c);continue}s.push({token:i,message:`unsupported Tailwind variant \`${i}\``})}let o=r.length>0?`@${r.join("")}`:"";return{tokens:e.map(i=>{let c=`${i}${o}`;return n?`${n}:${c}`:c}),warnings:s}},ur=(e,t)=>{let n=ir.has(e),r=t==="auto"&&or.has(e)?"auto":Ce(t,n);if(!r)return null;let o={p:["p"],px:["px"],py:["py"],pt:["pt"],pr:["pr"],pb:["pb"],pl:["pl"],m:["m"],mx:["mx"],my:["my"],mt:["mt"],mr:["mr"],mb:["mb"],ml:["ml"],gap:["gap"],"gap-x":["cgap"],"gap-y":["rgap"],top:["t"],right:["r"],bottom:["b"],left:["l"],inset:["i"],"inset-x":["l","r"],"inset-y":["t","b"]}[e];return o?r==="auto"?o.map(i=>`${i}[auto]`):o.map(i=>`${i}${r}`):null},fr=e=>fe(e,{auto:"auto",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"})??Lt(e)??Ce(e,!1),pr=e=>{if(e==="first")return"-9999";if(e==="last")return"9999";if(e==="none")return"0";if(/^-?\d+$/.test(e))return e;if(/^\[(.+)\]$/.test(e)){let t=e.match(/^\[(.+)\]$/);return t?t[1]:null}return null},gr=(e,t)=>{let r={w:"w",h:"h","min-w":"miw","min-h":"mih","max-w":"mw","max-h":"mh"}[e];if(!r)return null;let s=e==="h"||e==="min-h"||e==="max-h"?er:Qn,o=fe(t,e.startsWith("max-w")?{...tr,...s}:s)??Lt(t)??Ce(t,!1);return o?`${r}[${o}]`:null},mr=e=>{let t=[];if(Ze[e])return{input:e,outputs:Ze[e],status:"converted",exact:!0,warnings:t};if(Je[e])return{input:e,outputs:Je[e],status:"converted",exact:!0,warnings:t};let n=[[/^bg-(.+)$/,"bgc"],[/^text-(.+)$/,"c"],[/^border-(.+)$/,"bdc"]];for(let[o,i]of n){let c=e.match(o);if(!c)continue;let b=cr(c[1]);if(b)return{input:e,outputs:[Ot(i,b)],status:"converted",exact:!0,warnings:t}}let r=["p","px","py","pt","pr","pb","pl","m","mx","my","mt","mr","mb","ml","gap","gap-x","gap-y","top","right","bottom","left","inset","inset-x","inset-y"];for(let o of r){let i=e.startsWith("-")?e.slice(1):e;if(!i.startsWith(`${o}-`))continue;let c=e.startsWith("-")?`-${i.slice(o.length+1)}`:i.slice(o.length+1),b=ur(o,c);if(b)return{input:e,outputs:b,status:"converted",exact:!0,warnings:t}}let s=["w","h","min-w","min-h","max-w","max-h"];for(let o of s){if(!e.startsWith(`${o}-`))continue;let i=e.slice(o.length+1),c=gr(o,i);if(c)return{input:e,outputs:[c],status:"converted",exact:!0,warnings:t}}if(e.startsWith("size-")){let o=e.slice(5),i=Ce(o,!1);if(i)return{input:e,outputs:[`w${i}`,`h${i}`],status:"converted",exact:!0,warnings:t}}if(e.startsWith("rounded-")){let o=e.slice(8),i=fe(o,K);if(i)return{input:e,outputs:[`bdra${i}`],status:"converted",exact:!0,warnings:t}}if(e.startsWith("font-")){let o=e.slice(5),i=Jn[o];if(i)return{input:e,outputs:[`fw${i}`],status:"converted",exact:!0,warnings:t}}if(e.startsWith("text-")){let o=e.slice(5),i=Zn[o];if(i)return{input:e,outputs:[`fns${i}`],status:"converted",exact:!0,warnings:t}}if(e.startsWith("leading-")){let o=e.slice(8),i=fe(o,Gn);if(i)return{input:e,outputs:[`lh${i}`],status:"converted",exact:!0,warnings:t}}if(e.startsWith("tracking-")){let o=e.slice(9),i=fe(o,Yn);if(i)return{input:e,outputs:[`lts${i}`],status:"converted",exact:!0,warnings:t}}if(e.startsWith("opacity-")){let o=e.slice(8),i=Number(o);if(!Number.isNaN(i))return{input:e,outputs:[`opc${String(i/100)}`],status:"converted",exact:!0,warnings:t}}if(e.startsWith("z-")){let o=e.slice(2);if(/^-?\d+$/.test(o))return{input:e,outputs:[`z${o}`],status:"converted",exact:!0,warnings:t}}if(e.startsWith("shadow")){let o=e==="shadow"?"DEFAULT":e.slice(7),i=Y[o];if(i)return{input:e,outputs:[`bxsh${i}`],status:"converted",exact:!0,warnings:t}}if(e.startsWith("basis-")){let o=e.slice(6),i=fr(o);if(i)return{input:e,outputs:[`fxb[${i}]`],status:"converted",exact:!0,warnings:t}}if(e.startsWith("order-")){let o=e.slice(6),i=pr(o);if(i)return{input:e,outputs:/^-?\d+$/.test(i)?[`ord${i}`]:[`ord[${i}]`],status:"converted",exact:!0,warnings:t}}return e.startsWith("transition")?(t.push({token:e,message:`Tailwind transition utility \`${e}\` converted approximately to 200ms transition`}),{input:e,outputs:["tran0.2s"],status:"converted",exact:!1,warnings:t}):e.startsWith("duration-")||e.startsWith("ease-")||e.startsWith("delay-")?(t.push({token:e,message:`Tailwind motion utility \`${e}\` requires manual review in x-css migration`}),{input:e,outputs:[],status:"unsupported",exact:!1,warnings:t}):(t.push({token:e,message:`Tailwind utility \`${e}\` is not mapped yet`}),{input:e,outputs:[],status:"unsupported",exact:!1,warnings:t})},jt=e=>{let t=lr(e,":");return t.length===1?{variants:[],base:e}:{variants:t.slice(0,-1),base:t[t.length-1]}},br=e=>{if(!e)return!1;if(At.has(e))return!0;let t=e.startsWith("-")?e.slice(1):e;return At.has(t)||sr.some(n=>t.startsWith(n))?!0:/^(?:[a-z0-9]+-)+\[[^\]]+\]$/i.test(t)},$t=e=>{let{variants:t,base:n}=jt(e),r=br(n)||t.some(c=>Hn.has(c)),s=oe(e),o=/[A-Z[#0-9!@]/.test(e)||e.includes("--")||s!==null&&(s.selector.length>0||s.layer.length>0||s.mq.length>0)||s!==null&&s.val.length>0,i=s!==null&&o;return r&&i?"ambiguous":r?"tailwind":i?"xcss":"unknown"},zt=(e,t)=>{let n=ar(t),r=$t(e);if(r==="xcss")return{input:e,outputs:[e],status:"passthrough",classification:r,exact:!0,warnings:[]};let{variants:s,base:o}=jt(e),i=mr(o);if(i.status==="converted"){let b=dr(i.outputs,s);if(b.warnings.length>0){let w=[{token:e,message:`Tailwind token \`${e}\` uses variants that are not mapped safely`},...i.warnings,...b.warnings];return n.preserveUnknown?{input:e,outputs:[e],status:"passthrough",classification:"ambiguous",exact:!1,warnings:w}:{input:e,outputs:[],status:"unsupported",classification:"ambiguous",exact:!1,warnings:w}}return{input:e,outputs:b.tokens,status:"converted",classification:r,exact:i.exact,warnings:i.warnings}}let c=[...i.warnings];return r==="ambiguous"&&c.unshift({token:e,message:`Tailwind token \`${e}\` is ambiguous with x-css syntax and requires review`}),r==="unknown"&&c.unshift({token:e,message:`Token \`${e}\` is neither recognized Tailwind nor confirmed x-css`}),n.preserveUnknown?{input:e,outputs:[e],status:"passthrough",classification:r,exact:!1,warnings:c}:{input:e,outputs:[],status:"unsupported",classification:r,exact:!1,warnings:c}},ke=(e,t)=>{let r=e.split(/\s+/).map(i=>i.trim()).filter(Boolean).map(i=>zt(i,t)),s=r.flatMap(i=>i.outputs),o=r.flatMap(i=>i.warnings);return{input:e,output:s.join(" "),details:r,converted:r.filter(i=>i.status==="converted").flatMap(i=>i.outputs),passthrough:r.filter(i=>i.status==="passthrough").flatMap(i=>i.outputs),unsupported:r.filter(i=>i.status==="unsupported").map(i=>i.input),ambiguous:r.filter(i=>i.classification==="ambiguous").map(i=>i.input),warnings:o}},hr=ke;var Dt=[{group:"layout-core",support:"exact",examples:["flex","inline-flex","grid","block","hidden","relative","absolute"],notes:"display, position, flex-direction, flex-wrap, and core layout helpers map 1:1 to x-css tokens."},{group:"spacing-size",support:"exact",examples:["p-4","gap-4","mx-auto","w-1/2","max-w-7xl","inset-x-4","inset-y-2"],notes:"spacing scale, fractions, width/height keywords, auto margins, and axis inset helpers are safe to auto-apply."},{group:"color-border-shadow",support:"exact",examples:["bg-white","text-slate-900","border","border-slate-200","shadow-lg"],notes:"core color, border, rounded, and shadow utilities are exact when the target token is supported in the built-in dictionary."},{group:"typography",support:"exact",examples:["font-semibold","text-sm","leading-6","tracking-wide","uppercase","truncate"],notes:"font family, weight, size, line-height, letter-spacing, casing, whitespace, and overflow text helpers are mapped directly."},{group:"alignment-placement",support:"exact",examples:["items-baseline","justify-between","place-items-center","content-between","justify-self-end"],notes:"align, justify, place, self, and content helpers are safe to auto-apply."},{group:"object-appearance",support:"exact",examples:["appearance-none","object-cover","object-center","aspect-video","basis-1/2","order-last"],notes:"appearance, object-fit/object-position, aspect-ratio, flex-basis, and order helpers are mapped exactly."},{group:"state-variants-safe",support:"exact",examples:["hover:bg-slate-50","focus:text-blue-600","before:bg-slate-50","placeholder:text-slate-400"],notes:"responsive variants and safe pseudo/pseudo-element variants are supported directly: hover, focus, active, visited, disabled, checked, before, after, placeholder, selection, first, last, odd, even."},{group:"motion-basic",support:"partial",examples:["transition"],notes:"transition currently degrades to a generic 200ms x-css transition and should be reviewed before release."},{group:"motion-detailed",support:"manual",examples:["duration-200","ease-out","delay-150"],notes:"timing-specific motion helpers are not auto-mapped safely and should block blind migration."},{group:"contextual-variants",support:"manual",examples:["group-hover:bg-slate-50","peer-focus:text-blue-600","dark:bg-slate-900"],notes:"group, peer, and dark-mode variants need product-specific rewrite strategy and should not be auto-applied."},{group:"generated-content-and-dividers",support:"manual",examples:["divide-x",'before:content-[""]'],notes:"divide helpers and arbitrary generated-content flows need manual implementation review."},{group:"transform-effects",support:"manual",examples:["translate-x-4","scale-95","rotate-45","ring-2","outline-none","bg-gradient-to-r"],notes:"transforms, rings, advanced outlines, and gradients are not mapped safely enough for production auto-migration."}],yr={mode:"safe",preserveUnknown:!1},Ge=e=>e.status==="converted"?e.exact:e.status==="passthrough"&&e.classification==="xcss",xr=()=>Dt,wr=(e,t)=>{let n={...yr,...t},r=ke(e,n),s=r.details.filter(m=>m.status==="converted"&&m.exact).flatMap(m=>m.outputs),o=r.details.filter(m=>m.status==="converted"&&!m.exact).flatMap(m=>m.outputs),i=r.details.filter(m=>m.status==="passthrough"&&m.classification==="xcss").flatMap(m=>m.outputs),c=r.details.filter(m=>!Ge(m)).map(m=>m.input),b=r.details.filter(m=>Ge(m)||m.status==="converted"?!1:m.status==="unsupported"||m.classification==="ambiguous"||m.classification==="unknown").map(m=>m.input),w=r.details.flatMap(m=>Ge(m)?m.outputs:[]).join(" "),j=c.length===0,M=b.length>0?"blocked":j?"safe":"review";return{input:e,conversion:r,autoApplyOutput:w,exactConverted:s,approximateConverted:o,passthroughXcss:i,reviewRequired:c,blocked:b,safeToAutoApply:j,releaseDecision:M}};var Ye="__FWXCSS_SHARED__",Sr={base:"html,body{font-size:16px;padding:0;margin:0;}"},vr=e=>{if(!e)return!1;let t=typeof Document<"u",n=typeof ShadowRoot<"u",r=t&&e instanceof Document,s=n&&e instanceof ShadowRoot;return r||s},Cr=e=>{let t=[],n=r=>{if(r){if(typeof r=="string"||typeof r=="number"){t.push(String(r));return}if(Array.isArray(r)){r.forEach(n);return}typeof r=="object"&&Object.keys(r).forEach(s=>{r[s]&&t.push(s)})}};return e.forEach(n),t},et=e=>{let t=new WeakMap,n=null,r=e??Sr,s=typeof document<"u"?document:null,o=E=>{let D=qe.css(r);return{...D.buildCss(E??void 0),ready:D.ready}},i=()=>(n||(n=o(null)),n),c=E=>{if(!E)return i();let D=t.get(E);return D||(D=o(E),t.set(E,D)),D};return{clsx:(...E)=>{let D,ce=E[E.length-1];vr(ce)&&(D=ce,E=E.slice(0,-1));let Ee=Cr(E);return c(D||s).clsx(Ee.join(" "))},observe:E=>{c(E||s).observe()},setClsxRoot:E=>{s=E||(typeof document<"u"?document:null)},getCss:E=>E?c(E).getCssString():s?c(s).getCssString():i().getCssString(),ready:E=>E?c(E).ready:s?c(s).ready:i().ready}},kr=e=>et(e),Er=e=>et(e),Qe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:global,le=Qe[Ye]||et();Qe[Ye]||(Qe[Ye]=le);var Tr=le.clsx,Rr=le.observe,Ir=le.setClsxRoot,Ar=le.getCss,_r=le.ready;var Or=qe;0&&(module.exports={TAILWIND_COVERAGE_MATRIX,assessTailwindMigrationReadiness,classifyTailwindToken,clsx,convertTailwindClasses,convertTailwindToken,createSharedClsx,createSharedInstance,getBootloaderScript,getCss,getTailwindCoverageMatrix,observe,ready,setClsxRoot,tailwindToXcss});
127
138
  //# sourceMappingURL=index.js.map