@fwkui/x-css 1.0.12 → 1.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
- "use strict";var Y=Object.defineProperty;var ye=Object.getOwnPropertyDescriptor;var we=Object.getOwnPropertyNames;var Se=Object.prototype.hasOwnProperty;var xe=(e,t)=>{for(var n in t)Y(e,n,{get:t[n],enumerable:!0})},ke=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let b of we(t))!Se.call(e,b)&&b!==n&&Y(e,b,{get:()=>t[b],enumerable:!(a=ye(t,b))||a.enumerable});return e};var Ce=e=>ke(Y({},"__esModule",{value:!0}),e);var _e={};xe(_e,{clsx:()=>De,default:()=>Me,getCss:()=>Pe,setClsxRoot:()=>ze});module.exports=Ce(_e);var le=e=>(e=e||new Map,{all:e,on(t,n){let a=e.get(t);a?a.push(n):e.set(t,[n])},off(t,n){let a=e.get(t);a&&(n?a.splice(a.indexOf(n)>>>0,1):e.set(t,[]))},emit(t,n){let a=e.get(t);a&&a.slice().forEach(w=>{w(n)});let b=e.get("*");b&&b.slice().forEach(w=>{w(t,n)})}});function ve(e){return e>=97&&e<=122}function Q(e){if(!e||e.length<2)return null;let t=0,n=e.length,a="",b=e.lastIndexOf("@");if(b>0){let m=e.lastIndexOf("]");(m===-1||b>m)&&(a=e.substring(b+1),n=b)}let w="",C="",z=e.indexOf(":",t);if(z>0&&z<n){let m=e.substring(t,z);t=z+1,w=m}let O=t;for(;O<n;){let m=e.charCodeAt(O);if(m>=48&&m<=57)O++;else break}if(O>t&&(C=e.substring(t,O),t=O),t>=n)return null;if(e.charCodeAt(t)===38)return{mq:w,layer:C,prop:"&",val:e.substring(t+1,n),selector:a};if(e.charCodeAt(t)===91){let m=e.indexOf("]",t);if(m>t)return{mq:w,layer:C,prop:e.substring(t,m+1),val:"",selector:a}}let v=t;for(;v<n;){let m=e.charCodeAt(v);if(m===45||m===46){if(v+1<n){let R=e.charCodeAt(v+1);if(m===45&&R===45&&v>t||R>=48&&R<=57)break}v++;continue}if(!ve(m))break;v++}if(v===t)return null;let g=e.substring(t,v),E=e.substring(v,n);return{mq:w,layer:C,prop:g,val:E,selector:a}}var ce={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"},de={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"},j={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"}};j.ji=j.jc;j.js=j.jc;j.pc=j.jc;j.pi=j.jc;j.ps=j.jc;var Ee=e=>{if(!e||typeof e!="object")return null;let t=e,n=t.default&&typeof t.default=="object"?t.default:t,a=n.SHORT_PROPERTIES,b=n.COMMON_VALUES,w=n.SPECIFIC_VALUES;return!a||!b||!w||typeof a!="object"||typeof b!="object"||typeof w!="object"?null:{SHORT_PROPERTIES:a,COMMON_VALUES:b,SPECIFIC_VALUES:w}},Re=async e=>{let t=await import(e),n=Ee(t);if(!n)throw new Error("XCSS: dictionary module must export SHORT_PROPERTIES, COMMON_VALUES and SPECIFIC_VALUES");return n},Te=(e,t)=>{if(!e||typeof document>"u")return;t=t||"fwkui";let n=Array.from({length:24},(a,b)=>"l"+b);if(!e.querySelector('style[id="'+t+'"]')){let a=document.createElement("style");if(a.id=t,!(e instanceof ShadowRoot))document.head.append(a);else try{e.prepend(a)}catch{e.appendChild(a)}let b=`@layer ${n.join(", ")};`,w=setInterval(()=>{if(a.sheet){clearInterval(w);try{a.sheet.insertRule(b,a.sheet.cssRules.length)}catch{}}},10)}},Ie=e=>{let t=JSON.stringify({base:e.base||"",aliases:e.aliases||{},breakpoints:e.breakpoints||[],theme:e.theme||{},prefix:e.prefix||"",exclude:e.exclude||[],dictionaryImport:e.dictionaryImport??!0}),n=0;if(t.length===0)return n.toString();for(let a=0;a<t.length;a++){let b=t.charCodeAt(a);n=(n<<5)-n+b,n|=0}return n.toString()},U="xcss_cache_v1",Z=(e={base:"",aliases:{},exclude:[],breakpoints:[],theme:{},prefix:"",dictionaryImport:!0})=>{let{base:t=null,breakpoints:n=[],aliases:a={},theme:b={},exclude:w=[],prefix:C="",dictionaryImport:z=!0}=e||{};Array.isArray(n)||(n=[]),Array.isArray(w)||(w=[]),(!a||typeof a!="object")&&(a={}),(!b||typeof b!="object")&&(b={});let O={},v={},g={},E={},m=()=>{E={...g,...b}},R=o=>{if(!o){O={},v={},g={},m();return}O=o.SHORT_PROPERTIES,v=o.SPECIFIC_VALUES,g=o.COMMON_VALUES,m()},M=!0,K=Promise.resolve();z===!1?R(null):typeof z=="string"?(M=!1,R(null),K=Re(z).then(o=>{R(o)}).catch(o=>{console.warn("XCSS: Failed to import dictionary from URL",o)}).finally(()=>{M=!0})):R({SHORT_PROPERTIES:ce,COMMON_VALUES:de,SPECIFIC_VALUES:j});let A=(o=typeof document<"u"?document:void 0)=>{let p=typeof window<"u"&&typeof document<"u",c=null;o&&(c="getRootNode"in o?o.getRootNode():o);let y=new Map;p&&c&&Te(c);let h=le(),k=[{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],S=k.filter((i,r)=>k.findLastIndex(s=>Object.keys(s)[0]==Object.keys(i)[0])==r),f=S.map(i=>Object.keys(i)[0]),u={},d={},x={root:""},T={root:[]},D={root:!1},H=Ie(e),F=null,P=!1,ue=i=>{if(!(!p||!window.localStorage))try{localStorage.setItem(U,JSON.stringify(i))}catch(r){console.warn("XCSS: Failed to save cache",r)}},ne=()=>{p&&(F&&clearTimeout(F),F=setTimeout(()=>{let i={};for(let l in u)i[l]=Array.from(u[l]);let r={};Object.keys(x).forEach(l=>{if(l==="root")r[l]=x[l];else{let I=k.find(_=>Object.keys(_)[0]===l)?.[l];I&&x[l]?r[l]=`@media ${I} {
2
- ${x[l]}
3
- }`:r[l]=x[l]||""}});let s={configHash:H,cssText:r,rulesSet:i,keys:Array.from(y.entries())};ue(s)},1e3))};if(p&&window.localStorage)try{let i=localStorage.getItem(U);if(i){let r=JSON.parse(i);if(r&&r.configHash===H){if(r.keys&&r.keys.forEach(([s,l])=>y.set(s,l)),r.cssText)for(let s in r.cssText){let l=r.cssText[s];if(s!=="root"){let I=/@media[^{]+\{\n?([\s\S]+)\n?\}/.exec(l);I&&I[1]?x[s]=I[1].trim():x[s]=l}else x[s]=l}P=!0}else localStorage.removeItem(U)}}catch(i){console.error(i)}if(p&&(d.root=new CSSStyleSheet),f.forEach(i=>{if(u[i]=new Set,p){let r=S.find(s=>Object.keys(s)[0]==i)?.[i]||"";d[i]=new CSSStyleSheet({media:r})}P||(x[i]=""),T[i]=[],D[i]=!1}),P&&p&&window.localStorage){let i=localStorage.getItem(U);if(i){let r=JSON.parse(i);if(r.rulesSet)for(let s in r.rulesSet)u[s]&&r.rulesSet[s].forEach(l=>u[s].add(l))}if(c){let r=c.querySelector('style[id="fwkui"]');r&&r.remove()}}t&&Array.isArray(t)?(x.root=t.join(`
4
- `),p&&d.root&&d.root.replaceSync(x.root)):(x.root=t||"",p&&d.root&&d.root.replaceSync(x.root)),p&&c&&["root",...f].forEach(i=>{d[i]&&c?.adoptedStyleSheets&&(c.adoptedStyleSheets.includes(d[i])||(c.adoptedStyleSheets=[...c.adoptedStyleSheets,d[i]]))});let ge=(i,r)=>{let{media:s,property:l,selector:I,layer:_,className:B}=r,L=x,$=T,J=D;_=Number(_)||0;let se=y.get(i),he=se?`.${se}${I}`:`.${B}${I}`;var G=`@layer l${_}{${he}{${l}}}`;u[s]||(u[s]=new Set);let ie=u[s];if(!ie.has(G))if(ie.add(G),$[s]||($[s]=[]),$[s].push(G),p)J[s]||(J[s]=!0,queueMicrotask(()=>{let V=$[s],ae=d[s];V.length>0&&(L[s]+=(L[s]?`
5
- `:"")+V.join(`
6
- `),ae&&ae.replaceSync(L[s]),$[s]=[],ne()),J[s]=!1}));else{let V=$[s];V.length>0&&(L[s]+=(L[s]?`
7
- `:"")+V.join(`
8
- `),$[s]=[])}},me=i=>{i.forEach(r=>{let s=re(r);s&&ge(r,s)})},oe=i=>{if(i.length===0)return;let r=()=>me(i);M?r():K.then(r)};return h.on("observeDom",oe),{clsx:(...i)=>{let r=i.map(l=>Array.isArray(l)?l:[l]).flat(1/0).map(l=>typeof l=="string"?l.split(/(\s|\t)+/g):[]).flat(1/0);r=r.filter(l=>typeof l=="string"&&l.trim()),r=[...new Set(r)];let s=r.map(l=>{let I=l;if(y.has(l))I=y.get(l);else{let _=!C||l.startsWith(C),B=_&&C?l.slice(C.length):l;if(_&&Q(B)){let L="D"+y.size.toString(32).toUpperCase();y.set(l,L),I=L,ne()}}return I});return p?queueMicrotask(()=>h.emit("observeDom",r)):h.emit("observeDom",r),s.join(" ")},observe:()=>{!p||!c||pe(c,i=>{oe(i)})},getCssString:()=>Object.entries(x).map(([i,r])=>{if(!r)return"";if(i==="root"||i==="default")return r;let s=k.find(l=>Object.keys(l)[0]===i)?.[i];return s?`@media ${s} {
9
- ${r}
10
- }`:r}).join(`
11
- `)}};function X(o){let p=new RegExp("^(\\[(?<p>[a-zA-Z]+)\\])$"),{p:c=""}=p.exec(o)?.groups??{};if(c&&a[c]&&Array.isArray(a[c])){let y=a[c],h=[],k=!0;for(let S of y){let f=re(S);f&&f.property?h.push(f.property):typeof CSS<"u"&&CSS.supports(S)||typeof CSS>"u"?h.push(S):k=!1}if(h.length>0&&(typeof CSS>"u"||k))return h.join(";")}return null}function fe(o,p){let c=X(o+p);if(c)return c;if(!o||p===void 0)return null;let y=O[o],h=y||o,k=p[0],S=!1,f=p;if(k==="!"&&(S=!0,f=f.substring(1),k=f[0]),f.startsWith("--"))f="var("+f+")";else if(k==="["&&f.endsWith("]"))f=f.substring(1,f.length-1);else if(f.length>0){let T=f[0].toLowerCase()+f.substring(1),D=v[o]?.[T]||E[T];if(!D){let H=f.toLowerCase();D=v[o]?.[H]||E[H]}f=D||f}if(f=f.replace(/(';|;)/g,T=>T=="';"?";":" "),!f)return null;let u=f+(S?" !important":""),d=[h+":"+u];switch(h){case"mx":d=[`margin-left:${u}`,`margin-right:${u}`];break;case"my":d=[`margin-top:${u}`,`margin-bottom:${u}`];break;case"px":d=[`padding-left:${u}`,`padding-right:${u}`];break;case"py":d=[`padding-top:${u}`,`padding-bottom:${u}`];break;case"bdx":d=[`border-left:${u}`,`border-right:${u}`];break;case"bdy":d=[`border-top:${u}`,`border-bottom:${u}`];break}return!(typeof CSS<"u")||d.every(T=>CSS.supports(T))?d.join(";"):null}function re(o){if(C&&!o.startsWith(C)||w.length>0&&w.every(P=>P.includes("*")?new RegExp("^"+P.replace(/\*/g,".+")+"$").test(o):P==o))return null;let c=C?o.slice(C.length):o,y=Q(c);if(!y)return null;let{mq:h="default",layer:k="0",prop:S,val:f,selector:u=""}=y,d=[],x=fe(S,f);if(x&&d.push(x),d.length==0)return null;let T=u.replace(/(';|;)/g,P=>P=="';"?";":" "),D=typeof CSS<"u"?CSS.escape(o):be(o),H=`selector(${D}${T})`;return typeof CSS<"u"&&T&&!CSS.supports(H)?null:{media:h||"default",layer:k||"0",className:D,property:d.join(";"),selector:T,cssRules:`.${D}${T}{${d.join(";")}}`}}let be=o=>o.replace(/([^\w-])/g,"\\$1"),q=o=>{var p=[...o?.classList||[]].filter(c=>{if(c){let y=c.charCodeAt(0)==45?c.charCodeAt(1):c.charCodeAt(0);return y>=97&&y<=122||y>=48&&y<=57}return!1});return o?.children?.length>0&&Array.from(o?.children).forEach(c=>{p.push(...q(c))}),p.flat(1/0)},pe=(o,p)=>{if(typeof p!="function")throw new Error("Callback is not a function");if(!o)return;let c;"documentElement"in o?c=o.documentElement:(o instanceof Element||"tagName"in o||"host"in o)&&(c=o),c&&(c instanceof Element&&p(q(c)),typeof MutationObserver<"u"&&new MutationObserver(y=>{for(let h of y)if(h.type=="attributes"&&h.attributeName=="class"){if(h.target.nodeType==1){let k=String(h.target?.className??""),S=String(h?.oldValue??"");if(k||S){let f=k.split(" ").map(d=>d.trim()).filter(d=>d),u=S.split(" ").map(d=>d.trim()).filter(d=>d);f=f.filter(d=>!u.includes(d)),typeof p=="function"&&p([...new Set(f)])}}}else if(h.type=="childList"&&h.addedNodes.length>0){let k=[...h.addedNodes].filter(S=>S.nodeType==1).map(S=>q(S)).flat(1/0);typeof p=="function"&&p([...new Set(k)])}}).observe(c,{attributes:!0,attributeOldValue:!0,attributeFilter:["class"],childList:!0,subtree:!0}))};return{buildCss:A,exportCache:()=>typeof localStorage>"u"?null:JSON.parse(localStorage.getItem(U)||"null"),ready:K}},je=(e,t)=>{Z(t).buildCss(e).observe()},Oe=(e,t)=>Z(t).buildCss(e).clsx,N={css:Z,cssObserve:je,clsx:Oe};var ee="__FWXCSS_SHARED__",Ae=()=>{let e=new WeakMap,t=null,n=typeof document<"u"?document:null,a=g=>{if(!g)return!1;let E=typeof Document<"u",m=typeof ShadowRoot<"u",R=E&&g instanceof Document,M=m&&g instanceof ShadowRoot;return R||M},b=()=>(t||(t=N.css().buildCss(void 0)),t),w=g=>N.css({base:"html,body{font-size:16px;padding:0;margin:0;}"}).buildCss(g),C=g=>{if(!g)return b();let E=e.get(g);return E||(E=w(g),e.set(g,E)),E};return{clsx:(...g)=>{let E,m=g[g.length-1];a(m)&&(E=m,g=g.slice(0,-1));let R=[],M=A=>{if(A){if(typeof A=="string"||typeof A=="number"){R.push(String(A));return}if(Array.isArray(A)){A.forEach(M);return}typeof A=="object"&&Object.keys(A).forEach(X=>{A[X]&&R.push(X)})}};return g.forEach(M),C(E||n).clsx(R.join(" "))},setClsxRoot:g=>{n=g||(typeof document<"u"?document:null)},getCss:()=>b().getCssString()}},te=typeof globalThis<"u"?globalThis:typeof window<"u"?window:global,W=te[ee]||Ae();te[ee]||(te[ee]=W);var De=W.clsx,ze=W.setClsxRoot,Pe=W.getCss,Me=N;0&&(module.exports={clsx,getCss,setClsxRoot});
1
+ "use strict";var ne=Object.defineProperty;var De=Object.getOwnPropertyDescriptor;var ve=Object.getOwnPropertyNames;var Ie=Object.prototype.hasOwnProperty;var Ae=(e,n)=>{for(var s in n)ne(e,s,{get:n[s],enumerable:!0})},Oe=(e,n,s,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let d of ve(n))!Ie.call(e,d)&&d!==s&&ne(e,d,{get:()=>n[d],enumerable:!(r=De(n,d))||r.enumerable});return e};var Pe=e=>Oe(ne({},"__esModule",{value:!0}),e);var qe={};Ae(qe,{clsx:()=>Ve,default:()=>Ue,getCss:()=>We,setClsxRoot:()=>Ke});module.exports=Pe(qe);var ye=e=>(e=e||new Map,{all:e,on(n,s){let r=e.get(n);r?r.push(s):e.set(n,[s])},off(n,s){let r=e.get(n);r&&(s?r.splice(r.indexOf(s)>>>0,1):e.set(n,[]))},emit(n,s){let r=e.get(n);r&&r.slice().forEach(S=>{S(s)});let d=e.get("*");d&&d.slice().forEach(S=>{S(n,s)})}});function ke(e){return e>=97&&e<=122}function re(e){if(!e||e.length<2)return null;let n=0,s=e.length,r="",d=e.lastIndexOf("@");if(d>0){let C=e.lastIndexOf("]");(C===-1||d>C)&&(r=e.substring(d+1),s=d)}let S="",A="",$=e.indexOf(":",n);if($>0&&$<s){let C=e.substring(n,$);n=$+1,S=C}let T=n;for(;T<s;){let C=e.charCodeAt(T);if(C>=48&&C<=57)T++;else break}if(T>n&&(A=e.substring(n,T),n=T),n>=s)return null;if(e.charCodeAt(n)===38)return{mq:S,layer:A,prop:"&",val:e.substring(n+1,s),selector:r};if(e.charCodeAt(n)===91){let C=e.indexOf("]",n);if(C>n)return{mq:S,layer:A,prop:e.substring(n,C+1),val:"",selector:r}}let R=n;for(;R<s;){let C=e.charCodeAt(R);if(C===45||C===46){if(R+1<s){let O=e.charCodeAt(R+1);if(C===45&&O===45&&R>n||O>=48&&O<=57)break}R++;continue}if(!ke(C))break;R++}if(R===n)return null;let m=e.substring(n,R),D=e.substring(R,s);return{mq:S,layer:A,prop:m,val:D,selector:r}}var se=e=>{if(!e||typeof e!="object")return null;let n=e,s=n.default&&typeof n.default=="object"?n.default:n,r=s.SHORT_PROPERTIES,d=s.COMMON_VALUES,S=s.SPECIFIC_VALUES;return!r||!d||!S||typeof r!="object"||typeof d!="object"||typeof S!="object"?null:{SHORT_PROPERTIES:r,COMMON_VALUES:d,SPECIFIC_VALUES:S}},$e=async e=>{let n=await import(e),s=se(n);if(!s)throw new Error(ge);return s},ge="XCSS: dictionary module must export SHORT_PROPERTIES, COMMON_VALUES and SPECIFIC_VALUES",Se=()=>{let e=typeof require=="function"?require:null;if(!e)return null;for(let n of["./dictionary.js","./dictionary"])try{let s=e(n),r=se(s);if(r)return r}catch{}return null},je=async()=>{let e=Se();if(e)return e;let n=["./dictionary.mjs","./dictionary.js","./dictionary"],s=null;for(let r of n)try{let d=await import(r),S=se(d);if(S)return S}catch(d){s=d}throw s||new Error(ge)},He=(e,n)=>{if(!e||typeof document>"u")return;n=n||"fwkui";let s=Array.from({length:24},(r,d)=>"l"+d);if(!e.querySelector('style[id="'+n+'"]')){let r=document.createElement("style");if(r.id=n,!(e instanceof ShadowRoot))document.head.append(r);else try{e.prepend(r)}catch{e.appendChild(r)}let d=`@layer ${s.join(", ")};`,S=setInterval(()=>{if(r.sheet){clearInterval(S);try{r.sheet.insertRule(d,r.sheet.cssRules.length)}catch{}}},10)}},Me=e=>{let n=Array.isArray(e.excludes)?e.excludes:Array.isArray(e.exclude)?e.exclude:[],s=JSON.stringify({base:e.base||"",aliases:e.aliases||{},breakpoints:e.breakpoints||[],theme:e.theme||{},prefix:e.prefix||"",excludes:n,excludePrefixes:e.excludePrefixes||[],dictionaryImport:e.dictionaryImport??!0}),r=0;if(s.length===0)return r.toString();for(let d=0;d<s.length;d++){let S=s.charCodeAt(d);r=(r<<5)-r+S,r|=0}return r.toString()},q="xcss_cache_v1",oe=(e={base:"",aliases:{},excludes:[],excludePrefixes:[],breakpoints:[],theme:{},prefix:"",dictionaryImport:!0})=>{let{base:n=null,breakpoints:s=[],aliases:r={},theme:d={},excludes:S=[],exclude:A=[],excludePrefixes:$=[],prefix:T="",dictionaryImport:R=!0}=e||{};Array.isArray(s)||(s=[]),Array.isArray(S)||(S=[]),Array.isArray(A)||(A=[]),Array.isArray($)||($=[]),(!r||typeof r!="object")&&(r={}),(!d||typeof d!="object")&&(d={});let m=[...S,...A],D=$.filter(t=>typeof t=="string").map(t=>t.trim()).filter(t=>t.length>0),C=t=>{let o=t.replace(/[.+?^${}()|[\]\\]/g,"\\$&");return new RegExp("^"+o.replace(/\*/g,".*")+"$")},O=m.filter(t=>typeof t=="string").map(t=>t.trim()).filter(t=>t.length>0).map(t=>{if(t.includes("*")){let o=C(t);return c=>o.test(c)}return o=>o===t}),L=t=>D.some(o=>t.startsWith(o))?!0:O.some(o=>o(t)),J=t=>!(T&&!t.startsWith(T)||L(t)),v={},H={},z={},Y={},le=()=>{Y={...z,...d}},_=t=>{if(!t){v={},H={},z={},le();return}v=t.SHORT_PROPERTIES,H=t.SPECIFIC_VALUES,z=t.COMMON_VALUES,le()},X=!0,F=Promise.resolve();if(R===!1)_(null);else if(typeof R=="string")X=!1,_(null),F=$e(R).then(t=>{_(t)}).catch(t=>{console.warn("XCSS: Failed to import dictionary from URL",t)}).finally(()=>{X=!0});else{let t=Se();t?_(t):(X=!1,_(null),F=je().then(o=>{_(o)}).catch(o=>{console.warn("XCSS: Failed to load built-in dictionary module",o)}).finally(()=>{X=!0}))}let he=(t=typeof document<"u"?document:void 0)=>{let o=typeof window<"u"&&typeof document<"u",c=null;t&&(c="getRootNode"in t?t.getRootNode():t);let x=new Map;o&&c&&He(c);let h=ye(),w=[{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)"},...s],E=w.filter((l,i)=>w.findLastIndex(a=>Object.keys(a)[0]==Object.keys(l)[0])==i),f=E.map(l=>Object.keys(l)[0]),y={},u={},b={root:""},I={root:[]},j={root:!1},V=Me(e),K=null,Z=!1,Ee=l=>{if(!(!o||!window.localStorage))try{localStorage.setItem(q,JSON.stringify(l))}catch(i){console.warn("XCSS: Failed to save cache",i)}},ce=()=>{o&&(K&&clearTimeout(K),K=setTimeout(()=>{let l={};for(let g in y)l[g]=Array.from(y[g]);let i={};Object.keys(b).forEach(g=>{if(g==="root")i[g]=b[g];else{let p=w.find(P=>Object.keys(P)[0]===g)?.[g];p&&b[g]?i[g]=`@media ${p} {
2
+ ${b[g]}
3
+ }`:i[g]=b[g]||""}});let a={configHash:V,cssText:i,rulesSet:l,keys:Array.from(x.entries())};Ee(a)},1e3))};if(o&&window.localStorage)try{let l=localStorage.getItem(q);if(l){let i=JSON.parse(l);if(i&&i.configHash===V){if(i.keys&&i.keys.forEach(([a,g])=>x.set(a,g)),i.cssText)for(let a in i.cssText){let g=i.cssText[a];if(a!=="root"){let p=/@media[^{]+\{\n?([\s\S]+)\n?\}/.exec(g);p&&p[1]?b[a]=p[1].trim():b[a]=g}else b[a]=g}Z=!0}else localStorage.removeItem(q)}}catch(l){console.error(l)}if(o&&(u.root=new CSSStyleSheet),f.forEach(l=>{if(y[l]=new Set,o){let i=E.find(a=>Object.keys(a)[0]==l)?.[l]||"";u[l]=new CSSStyleSheet({media:i})}Z||(b[l]=""),I[l]=[],j[l]=!1}),Z&&o&&window.localStorage){let l=localStorage.getItem(q);if(l){let i=JSON.parse(l);if(i.rulesSet)for(let a in i.rulesSet)y[a]&&i.rulesSet[a].forEach(g=>y[a].add(g))}if(c){let i=c.querySelector('style[id="fwkui"]');i&&i.remove()}}n&&Array.isArray(n)?(b.root=n.join(`
4
+ `),o&&u.root&&u.root.replaceSync(b.root)):(b.root=n||"",o&&u.root&&u.root.replaceSync(b.root)),o&&c&&["root",...f].forEach(l=>{u[l]&&c?.adoptedStyleSheets&&(c.adoptedStyleSheets.includes(u[l])||(c.adoptedStyleSheets=[...c.adoptedStyleSheets,u[l]]))});let we=(l,i)=>{let{media:a,property:g,selector:p,layer:P,className:k}=i,W=b,M=I,ee=j;P=Number(P)||0;let fe=x.get(l),Te=fe?`.${fe}${p}`:`.${k}${p}`;var te=`@layer l${P}{${Te}{${g}}}`;y[a]||(y[a]=new Set);let ue=y[a];if(!ue.has(te))if(ue.add(te),M[a]||(M[a]=[]),M[a].push(te),o)ee[a]||(ee[a]=!0,queueMicrotask(()=>{let U=M[a],pe=u[a];U.length>0&&(W[a]+=(W[a]?`
5
+ `:"")+U.join(`
6
+ `),pe&&pe.replaceSync(W[a]),M[a]=[],ce()),ee[a]=!1}));else{let U=M[a];U.length>0&&(W[a]+=(W[a]?`
7
+ `:"")+U.join(`
8
+ `),M[a]=[])}},Re=l=>{l.forEach(i=>{let a=G(i);a&&we(i,a)})},de=l=>{if(l.length===0)return;let i=()=>Re(l);X?i():F.then(i)};return h.on("observeDom",de),{clsx:(...l)=>{let i=l.map(p=>Array.isArray(p)?p:[p]).flat(1/0).map(p=>typeof p=="string"?p.split(/(\s|\t)+/g):[]).flat(1/0);i=i.filter(p=>typeof p=="string"&&p.trim()),i=[...new Set(i)];let a=p=>{if(!J(p))return!1;if(X)return!!G(p);let P=T?p.slice(T.length):p,k=re(P);return k?k.prop.startsWith("[")?!0:(k.prop==="&",k.val.length>0):!1},g=i.map(p=>{let P=p;if(x.has(p))P=x.get(p);else if(a(p)){let k="D"+x.size.toString(32).toUpperCase();x.set(p,k),P=k,ce()}return P});return o?queueMicrotask(()=>h.emit("observeDom",i)):h.emit("observeDom",i),g.join(" ")},observe:()=>{!o||!c||be(c,l=>{de(l)})},getCssString:()=>Object.entries(b).map(([l,i])=>{if(!i)return"";if(l==="root"||l==="default")return i;let a=w.find(g=>Object.keys(g)[0]===l)?.[l];return a?`@media ${a} {
9
+ ${i}
10
+ }`:i}).join(`
11
+ `)}};function me(t){let o=new RegExp("^(\\[(?<p>[a-zA-Z]+)\\])$"),{p:c=""}=o.exec(t)?.groups??{};if(c&&r[c]&&Array.isArray(r[c])){let x=r[c],h=[],w=!0;for(let E of x){let f=G(E);f&&f.property?h.push(f.property):typeof CSS<"u"&&CSS.supports(E)||typeof CSS>"u"?h.push(E):w=!1}if(h.length>0&&(typeof CSS>"u"||w))return h.join(";")}return null}function Ce(t,o){let c=me(t+o);if(c)return c;if(!t||o===void 0)return null;let x=v[t],h=x||t,w=o[0],E=!1,f=o;if(w==="!"&&(E=!0,f=f.substring(1),w=f[0]),f.startsWith("--"))f="var("+f+")";else if(w==="["&&f.endsWith("]"))f=f.substring(1,f.length-1);else if(f.length>0){let I=f[0].toLowerCase()+f.substring(1),j=H[t]?.[I]||Y[I];if(!j){let V=f.toLowerCase();j=H[t]?.[V]||Y[V]}f=j||f}if(f=f.replace(/(';|;)/g,I=>I=="';"?";":" "),!f)return null;let y=f+(E?" !important":""),u=[h+":"+y];switch(h){case"mx":u=[`margin-left:${y}`,`margin-right:${y}`];break;case"my":u=[`margin-top:${y}`,`margin-bottom:${y}`];break;case"px":u=[`padding-left:${y}`,`padding-right:${y}`];break;case"py":u=[`padding-top:${y}`,`padding-bottom:${y}`];break;case"bdx":u=[`border-left:${y}`,`border-right:${y}`];break;case"bdy":u=[`border-top:${y}`,`border-bottom:${y}`];break}return!(typeof CSS<"u")||u.every(I=>CSS.supports(I))?u.join(";"):null}function G(t){if(!J(t))return null;let o=T?t.slice(T.length):t,c=re(o);if(!c)return null;let{mq:x="default",layer:h="0",prop:w,val:E,selector:f=""}=c,y=[],u=Ce(w,E);if(u&&y.push(u),y.length==0)return null;let b=f.replace(/(';|;)/g,K=>K=="';"?";":" "),I=typeof CSS<"u"?CSS.escape(t):xe(t),j=`selector(${I}${b})`;return typeof CSS<"u"&&b&&!CSS.supports(j)?null:{media:x||"default",layer:h||"0",className:I,property:y.join(";"),selector:b,cssRules:`.${I}${b}{${y.join(";")}}`}}let xe=t=>t.replace(/([^\w-])/g,"\\$1"),Q=t=>{var o=[...t?.classList||[]].filter(c=>{if(c){let x=c.charCodeAt(0)==45?c.charCodeAt(1):c.charCodeAt(0);return x>=97&&x<=122||x>=48&&x<=57}return!1});return t?.children?.length>0&&Array.from(t?.children).forEach(c=>{o.push(...Q(c))}),o.flat(1/0)},be=(t,o)=>{if(typeof o!="function")throw new Error("Callback is not a function");if(!t)return;let c;"documentElement"in t?c=t.documentElement:(t instanceof Element||"tagName"in t||"host"in t)&&(c=t),c&&(c instanceof Element&&o(Q(c)),typeof MutationObserver<"u"&&new MutationObserver(x=>{for(let h of x)if(h.type=="attributes"&&h.attributeName=="class"){if(h.target.nodeType==1){let w=String(h.target?.className??""),E=String(h?.oldValue??"");if(w||E){let f=w.split(" ").map(u=>u.trim()).filter(u=>u),y=E.split(" ").map(u=>u.trim()).filter(u=>u);f=f.filter(u=>!y.includes(u)),typeof o=="function"&&o([...new Set(f)])}}}else if(h.type=="childList"&&h.addedNodes.length>0){let w=[...h.addedNodes].filter(E=>E.nodeType==1).map(E=>Q(E)).flat(1/0);typeof o=="function"&&o([...new Set(w)])}}).observe(c,{attributes:!0,attributeOldValue:!0,attributeFilter:["class"],childList:!0,subtree:!0}))};return{buildCss:he,exportCache:()=>typeof localStorage>"u"?null:JSON.parse(localStorage.getItem(q)||"null"),ready:F}},Le=(e,n)=>{oe(n).buildCss(e).observe()},_e=(e,n)=>oe(n).buildCss(e).clsx,N={css:oe,cssObserve:Le,clsx:_e};var ie="__FWXCSS_SHARED__",Xe=()=>{let e=new WeakMap,n=null,s=typeof document<"u"?document:null,r=m=>{if(!m)return!1;let D=typeof Document<"u",C=typeof ShadowRoot<"u",O=D&&m instanceof Document,L=C&&m instanceof ShadowRoot;return O||L},d=()=>(n||(n=N.css().buildCss(void 0)),n),S=m=>N.css({base:"html,body{font-size:16px;padding:0;margin:0;}"}).buildCss(m),A=m=>{if(!m)return d();let D=e.get(m);return D||(D=S(m),e.set(m,D)),D};return{clsx:(...m)=>{let D,C=m[m.length-1];r(C)&&(D=C,m=m.slice(0,-1));let O=[],L=v=>{if(v){if(typeof v=="string"||typeof v=="number"){O.push(String(v));return}if(Array.isArray(v)){v.forEach(L);return}typeof v=="object"&&Object.keys(v).forEach(H=>{v[H]&&O.push(H)})}};return m.forEach(L),A(D||s).clsx(O.join(" "))},setClsxRoot:m=>{s=m||(typeof document<"u"?document:null)},getCss:()=>d().getCssString()}},ae=typeof globalThis<"u"?globalThis:typeof window<"u"?window:global,B=ae[ie]||Xe();ae[ie]||(ae[ie]=B);var Ve=B.clsx,Ke=B.setClsxRoot,We=B.getCss,Ue=N;0&&(module.exports={clsx,getCss,setClsxRoot});
12
12
  //# sourceMappingURL=index.js.map