@jasonshimmy/custom-elements-runtime 1.0.4 → 1.0.5
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/custom-elements-runtime.cjs.js +1 -1
- package/dist/custom-elements-runtime.cjs.js.map +1 -1
- package/dist/custom-elements-runtime.es.js +8 -0
- package/dist/custom-elements-runtime.es.js.map +1 -1
- package/dist/custom-elements-runtime.umd.js +1 -1
- package/dist/custom-elements-runtime.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
sup { top: -.5em }
|
|
60
60
|
[disabled], [aria-disabled=true] { cursor: not-allowed }
|
|
61
61
|
[hidden] { display: none }
|
|
62
|
-
`,Bt={neutral:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#9f9fa9",500:"#71717b",600:"#52525c",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},primary:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},secondary:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},success:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},info:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},warning:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},error:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},white:{DEFAULT:"#ffffff"},black:{DEFAULT:"#000000"},transparent:{DEFAULT:"transparent"},current:{DEFAULT:"currentColor"}},Ut=Object.fromEntries(Object.entries(Bt).map(([e,t])=>[e,Object.fromEntries(Object.entries(t).map(([r,n])=>[r,`var(--color-${e}${r==="DEFAULT"?"":`-${r}`}, ${n})`]))])),le="0.25rem",qt={"3xs":64,"2xs":72,xs:80,sm:96,md:112,lg:128,xl:144,"2xl":168,"3xl":192,"4xl":224,"5xl":256,"6xl":288,"7xl":320},Ft=()=>{const e={};for(const[t,r]of Object.entries(qt))e[`max-w-${t}`]=`max-width:calc(${le} * ${r});`,e[`min-w-${t}`]=`min-width:calc(${le} * ${r});`,e[`w-${t}`]=`width:calc(${le} * ${r});`,e[`max-h-${t}`]=`max-height:calc(${le} * ${r});`,e[`min-h-${t}`]=`min-height:calc(${le} * ${r});`,e[`h-${t}`]=`height:calc(${le} * ${r});`;return e},Kt=()=>{const e={};for(const t of[1,2,3,4,5,6,7,8,9,10,11,12])e[`grid-cols-${t}`]=`grid-template-columns:repeat(${t},minmax(0,1fr));`,e[`grid-rows-${t}`]=`grid-template-rows:repeat(${t},minmax(0,1fr));`,e[`col-span-${t}`]=`grid-column:span ${t} / span ${t};`,e[`row-span-${t}`]=`grid-row:span ${t} / span ${t};`;return e},Le={block:"display:block;",inline:"display:inline;","inline-block":"display:inline-block;",flex:"display:flex;","inline-flex":"display:inline-flex;",grid:"display:grid;",hidden:"display:none;","w-full":"width:100%;","w-screen":"width:100dvw;","h-full":"height:100%;","h-screen":"height:100dvw;","max-w-full":"max-width:100%;","max-h-full":"max-height:100%;","max-w-screen":"max-width:100dvw;","max-h-screen":"max-height:100dvh;","min-w-0":"min-width:0;","min-h-0":"min-height:0;","min-w-screen":"min-width:100dvw;","min-h-screen":"min-height:100dvh;",...Ft(),"m-auto":"margin:auto;","mx-auto":"margin-inline:auto;","my-auto":"margin-block:auto;","overflow-auto":"overflow:auto;","overflow-hidden":"overflow:hidden;","overflow-visible":"overflow:visible;","overflow-scroll":"overflow:scroll;","pointer-events-none":"pointer-events:none;","pointer-events-auto":"pointer-events:auto;","sr-only":"position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0;","not-sr-only":"position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal;",...Kt(),absolute:"position:absolute;",relative:"position:relative;",fixed:"position:fixed;",sticky:"position:sticky;","font-bold":"font-weight:700;","font-semibold":"font-weight:600;","font-medium":"font-weight:500;","font-light":"font-weight:300;",underline:"text-decoration-line:underline;",overline:"text-decoration-line:overline;","line-through":"text-decoration-line:line-through;","no-underline":"text-decoration-line:none;",italic:"font-style:italic;","not-italic":"font-style:normal;",uppercase:"text-transform:uppercase;",lowercase:"text-transform:lowercase;",capitalize:"text-transform:capitalize;","normal-case":"text-transform:none;","text-left":"text-align:left;","text-center":"text-align:center;","text-right":"text-align:right;","text-xs":"font-size:0.75rem;line-height:calc(1 / 0.75)","text-sm":"font-size:0.875rem;line-height:calc(1.25 / 0.875)","text-base":"font-size:1rem;line-height:calc(1.5 / 1)","text-lg":"font-size:1.125rem;line-height:calc(1.75 / 1.125)","text-xl":"font-size:1.25rem;line-height:calc(1.75 / 1.25)","text-2xl":"font-size:1.5rem;line-height:calc(2 / 1.5)","text-3xl":"font-size:1.875rem;line-height:calc(2.25 / 1.875)","text-4xl":"font-size:2.25rem;line-height:calc(2.5 / 2.25)","text-5xl":"font-size:3rem;line-height:1","text-6xl":"font-size:3.75rem;line-height:1","text-7xl":"font-size:4.5rem;line-height:1","text-8xl":"font-size:6rem;line-height:1",border:"border-width:1px;","border-t":"border-top-width:1px;","border-r":"border-right-width:1px;","border-b":"border-bottom-width:1px;","border-l":"border-left-width:1px;","border-x":"border-inline-width:1px;","border-y":"border-block-width:1px;","border-2":"border-width:2px;","border-4":"border-width:4px;","border-6":"border-width:6px;","border-8":"border-width:8px;","rounded-none":"border-radius:0;","rounded-xs":"border-radius:0.125rem;","rounded-t-xs":"border-top-left-radius:0.125rem;border-top-right-radius:0.125rem;","rounded-r-xs":"border-top-right-radius:0.125rem;border-bottom-right-radius:0.125rem;","rounded-b-xs":"border-bottom-left-radius:0.125rem;border-bottom-right-radius:0.125rem;","rounded-l-xs":"border-top-left-radius:0.125rem;border-bottom-left-radius:0.125rem;","rounded-sm":"border-radius:0.25rem;","rounded-t-sm":"border-top-left-radius:0.25rem;border-top-right-radius:0.25rem;","rounded-r-sm":"border-top-right-radius:0.25rem;border-bottom-right-radius:0.25rem;","rounded-b-sm":"border-bottom-left-radius:0.25rem;border-bottom-right-radius:0.25rem;","rounded-l-sm":"border-top-left-radius:0.25rem;border-bottom-left-radius:0.25rem;","rounded-md":"border-radius:0.375rem;","rounded-t-md":"border-top-left-radius:0.375rem;border-top-right-radius:0.375rem;","rounded-r-md":"border-top-right-radius:0.375rem;border-bottom-right-radius:0.375rem;","rounded-b-md":"border-bottom-left-radius:0.375rem;border-bottom-right-radius:0.375rem;","rounded-l-md":"border-top-left-radius:0.375rem;border-bottom-left-radius:0.375rem;","rounded-lg":"border-radius:0.5rem;","rounded-t-lg":"border-top-left-radius:0.5rem;border-top-right-radius:0.5rem;","rounded-r-lg":"border-top-right-radius:0.5rem;border-bottom-right-radius:0.5rem;","rounded-b-lg":"border-bottom-left-radius:0.5rem;border-bottom-right-radius:0.5rem;","rounded-l-lg":"border-top-left-radius:0.5rem;border-bottom-left-radius:0.5rem;","rounded-xl":"border-radius:0.75rem;","rounded-t-xl":"border-top-left-radius:0.75rem;border-top-right-radius:0.75rem;","rounded-r-xl":"border-top-right-radius:0.75rem;border-bottom-right-radius:0.75rem;","rounded-b-xl":"border-bottom-left-radius:0.75rem;border-bottom-right-radius:0.75rem;","rounded-l-xl":"border-top-left-radius:0.75rem;border-bottom-left-radius:0.75rem;","rounded-2xl":"border-radius:1rem;","rounded-t-2xl":"border-top-left-radius:1rem;border-top-right-radius:1rem;","rounded-r-2xl":"border-top-right-radius:1rem;border-bottom-right-radius:1rem;","rounded-b-2xl":"border-bottom-left-radius:1rem;border-bottom-right-radius:1rem;","rounded-l-2xl":"border-top-left-radius:1rem;border-bottom-left-radius:1rem;","rounded-3xl":"border-radius:1.5rem;","rounded-t-3xl":"border-top-left-radius:1.5rem;border-top-right-radius:1.5rem;","rounded-r-3xl":"border-top-right-radius:1.5rem;border-bottom-right-radius:1.5rem;","rounded-b-3xl":"border-bottom-left-radius:1.5rem;border-bottom-right-radius:1.5rem;","rounded-l-3xl":"border-top-left-radius:1.5rem;border-bottom-left-radius:1.5rem;","rounded-4xl":"border-radius:2rem;","rounded-t-4xl":"border-top-left-radius:2rem;border-top-right-radius:2rem;","rounded-r-4xl":"border-top-right-radius:2rem;border-bottom-right-radius:2rem;","rounded-b-4xl":"border-bottom-left-radius:2rem;border-bottom-right-radius:2rem;","rounded-l-4xl":"border-top-left-radius:2rem;border-bottom-left-radius:2rem;","rounded-full":"border-radius:9999px;","rounded-t-full":"border-top-left-radius:9999px;border-top-right-radius:9999px;","rounded-r-full":"border-top-right-radius:9999px;border-bottom-right-radius:9999px;","rounded-b-full":"border-bottom-left-radius:9999px;border-bottom-right-radius:9999px;","rounded-l-full":"border-top-left-radius:9999px;border-bottom-left-radius:9999px;","shadow-none":"--ce-shadow-color: rgb(0 0 0 / 0);box-shadow:0 0 var(--ce-shadow-color, #0000);","shadow-xs":"--ce-shadow-color: rgb(0 0 0 / 0.05);box-shadow:0 1px 2px 0 var(--ce-shadow-color, rgb(0 0 0 / 0.05));","shadow-sm":"--ce-shadow-color: rgb(0 0 0 / 0.1);box-shadow:0 1px 3px 0 var(--ce-shadow-color, rgb(0 0 0 / 0.1)),0 1px 2px -1px var(--ce-shadow-color, rgb(0 0 0 / 0.1));","shadow-md":"--ce-shadow-color: rgb(0 0 0 / 0.1);box-shadow:0 4px 6px -1px var(--ce-shadow-color, rgb(0 0 0 / 0.1)),0 2px 4px -2px var(--ce-shadow-color, rgb(0 0 0 / 0.1));","shadow-lg":"--ce-shadow-color: rgb(0 0 0 / 0.1);box-shadow:0 10px 15px -3px var(--ce-shadow-color, rgb(0 0 0 / 0.1)),0 4px 6px -4px var(--ce-shadow-color, rgb(0 0 0 / 0.1));","shadow-xl":"--ce-shadow-color: rgb(0 0 0 / 0.1);box-shadow:0 20px 25px -5px var(--ce-shadow-color, rgb(0 0 0 / 0.1)),0 8px 10px -6px var(--ce-shadow-color, rgb(0 0 0 / 0.1));","shadow-2xl":"--ce-shadow-color: rgb(0 0 0 / 0.25);box-shadow:0 25px 50px -12px var(--ce-shadow-color, rgb(0 0 0 / 0.25));",truncate:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap;",visible:"visibility:visible;",invisible:"visibility:hidden;","items-center":"align-items:center;","items-start":"align-items:flex-start;","items-end":"align-items:flex-end;","items-baseline":"align-items:baseline;","items-stretch":"align-items:stretch;","justify-center":"justify-content:center;","justify-start":"justify-content:flex-start;","justify-between":"justify-content:space-between;","justify-around":"justify-content:space-around;","justify-evenly":"justify-content:space-evenly;","justify-end":"justify-content:flex-end;","flex-wrap":"flex-wrap:wrap;","flex-nowrap":"flex-wrap:nowrap;","flex-wrap-reverse":"flex-wrap:wrap-reverse;","content-center":"align-content:center;","content-start":"align-content:flex-start;","content-end":"align-content:flex-end;","content-between":"align-content:space-between;","content-around":"align-content:space-around;","content-stretch":"align-content:stretch;","self-auto":"align-self:auto;","self-start":"align-self:flex-start;","self-end":"align-self:flex-end;","self-center":"align-self:center;","self-stretch":"align-self:stretch;","flex-1":"flex:1 1 0%;","flex-auto":"flex:1 1 auto;","flex-initial":"flex:0 1 auto;","flex-none":"flex:0 0 auto;","flex-col":"flex-direction:column;","flex-row":"flex-direction:row;",grow:"flex-grow:1;",shrink:"flex-shrink:1;","grow-0":"flex-grow:0;","shrink-0":"flex-shrink:0;","font-sans":"font-family:ui-sans-serif,system-ui,sans-serif;","font-serif":"font-family:ui-serif,Georgia,serif;","font-mono":"font-family:ui-monospace,SFMono-Regular,monospace;","line-clamp-1":"display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;","line-clamp-2":"display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;","line-clamp-3":"display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;","line-clamp-4":"display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;",transition:"transition-property:all;transition-duration:150ms;transition-timing-function:ease-in-out;","transition-all":"transition-property:all;","transition-colors":"transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;","transition-shadow":"transition-property:box-shadow;","transition-opacity":"transition-property:opacity;","transition-transform":"transition-property:transform;","transition-none":"transition-property:none;","cursor-auto":"cursor:auto;","cursor-default":"cursor:default;","cursor-pointer":"cursor:pointer;","cursor-wait":"cursor:wait;","cursor-text":"cursor:text;","cursor-move":"cursor:move;","cursor-help":"cursor:help;","cursor-not-allowed":"cursor:not-allowed;","z-0":"z-index:0;","z-10":"z-index:10;","z-20":"z-index:20;","z-30":"z-index:30;","z-40":"z-index:40;","z-50":"z-index:50;"},Ye={m:["margin"],mx:["margin-inline"],my:["margin-block"],mt:["margin-top"],mr:["margin-right"],mb:["margin-bottom"],ml:["margin-left"],p:["padding"],px:["padding-inline"],py:["padding-block"],pt:["padding-top"],pr:["padding-right"],pb:["padding-bottom"],pl:["padding-left"],inset:["inset"],"inset-x":["inset-inline"],"inset-y":["inset-block"],h:["height"],w:["width"],"min-h":["min-height"],"min-w":["min-width"],"max-h":["max-height"],"max-w":["max-width"],top:["top"],bottom:["bottom"],left:["left"],right:["right"],gap:["gap"],"gap-x":["column-gap"],"gap-y":["row-gap"]};function G(e,t){let r=0,n=0;for(let i=0;i<e.length;i++){const s=e[i];if(s==="[")r++;else if(s==="]"&&r>0)r--;else if(s==="(")n++;else if(s===")"&&n>0)n--;else if(r===0&&n===0&&(s===">"||s==="+"||s==="~"||s===" "))return e.slice(0,i)+t+e.slice(i)}return e+t}const Vt={before:(e,t)=>`${e}::before{${t}}`,after:(e,t)=>`${e}::after{${t}}`,hover:(e,t)=>`${G(e,":hover")}{${t}}`,focus:(e,t)=>`${G(e,":focus")}{${t}}`,active:(e,t)=>`${G(e,":active")}{${t}}`,disabled:(e,t)=>`${G(e,":disabled")}{${t}}`,visited:(e,t)=>`${G(e,":visited")}{${t}}`,checked:(e,t)=>`${G(e,":checked")}{${t}}`,first:(e,t)=>`${G(e,":first-child")}{${t}}`,last:(e,t)=>`${G(e,":last-child")}{${t}}`,odd:(e,t)=>`${G(e,":nth-child(odd)")}{${t}}`,even:(e,t)=>`${G(e,":nth-child(even)")}{${t}}`,"focus-within":(e,t)=>`${G(e,":focus-within")}{${t}}`,"focus-visible":(e,t)=>`${G(e,":focus-visible")}{${t}}`,"group-hover":(e,t)=>`.group:hover ${e}{${t}}`,"group-focus":(e,t)=>`.group:focus ${e}{${t}}`,"group-active":(e,t)=>`.group:active ${e}{${t}}`,"group-disabled":(e,t)=>`.group:disabled ${e}{${t}}`,"peer-hover":(e,t)=>`.peer:hover ~ ${e}{${t}}`,"peer-focus":(e,t)=>`.peer:focus ~ ${e}{${t}}`,"peer-checked":(e,t)=>`.peer:checked ~ ${e}{${t}}`,"peer-disabled":(e,t)=>`.peer:disabled ~ ${e}{${t}}`},Me={sm:"(min-width:640px)",md:"(min-width:768px)",lg:"(min-width:1024px)",xl:"(min-width:1280px)","2xl":"(min-width:1536px)",dark:"(prefers-color-scheme: dark)"},je=["sm","md","lg","xl","2xl"];function Ne(e){const t=e.startsWith("-"),n=(t?e.slice(1):e).split("-");if(n.length<2)return null;const i=n.slice(0,-1).join("-"),s=n[n.length-1],o=parseFloat(s);if(Number.isNaN(o)||!Ye[i])return null;const a=t?"-":"";return Ye[i].map(u=>`${u}:calc(${a}${le} * ${o});`).join("")}function et(e){const t=e.replace("#",""),r=parseInt(t,16),n=r>>16&255,i=r>>8&255,s=r&255;return`${n} ${i} ${s}`}function Jt(e){const t=/^(bg|text|border|decoration|shadow|outline|caret|accent|fill|stroke)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/.exec(e);if(!t)return null;const[,r,n,i="DEFAULT"]=t,s=Ut[n]?.[i];if(!s)return null;if(r==="shadow")return`--ce-shadow-color:${s};`;const a={bg:"background-color",decoration:"text-decoration-color",text:"color",border:"border-color",outline:"outline-color",caret:"caret-color",accent:"accent-color",fill:"fill",stroke:"stroke"}[r];return a?`${a}:${s};`:null}function Zt(e){const[t,r]=e.split("/");if(!r)return{base:t};const n=parseInt(r,10);return isNaN(n)||n<0||n>100?{base:t}:{base:t,opacity:n/100}}function We(e){const{base:t,opacity:r}=Zt(e),n=Jt(t);if(n){if(r!==void 0){const s=/#([0-9a-f]{6})/i.exec(n);if(s){const o=et(s[0]);return n.replace(/#([0-9a-f]{6})/i,`rgb(${o} / ${r})`)}}return n}const i=Te(t);if(i&&r!==void 0){const s=/#([0-9a-f]{6})/i.exec(i);if(s){const o=et(s[0]);return i.replace(/#([0-9a-f]{6})/i,`rgb(${o} / ${r})`)}}return i}function ze(e){const t=/^opacity-(\d{1,3})$/.exec(e);if(!t)return null;const r=parseInt(t[1],10);return r<0||r>100?null:`opacity:${r/100};`}function Te(e){if(e.startsWith("[")&&e.endsWith("]")&&!e.includes("-[")){const i=e.slice(1,-1).trim().match(/^([a-zA-Z][a-zA-Z0-9-]*)\s*:(.*)$/);if(i){const s=i[1].trim();let o=i[2].trim();return o=o.replace(/url\('\s*([^']*?)\s*'\)/g,'url("$1")'),o=o.replace(/^'([^']*)'$/g,'"$1"'),`${s}:${o};`}return null}const t=e.indexOf("-["),r=e.endsWith("]");if(t>0&&r){const n=e.slice(0,t);let i=e.slice(t+2,-1);i=i.replace(/_/g," ");const s={bg:"background-color",text:"color",shadow:"box-shadow",p:"padding",px:"padding-inline",py:"padding-block",m:"margin",mx:"margin-inline",my:"margin-block",w:"width",h:"height","min-w":"min-width","max-w":"max-width","min-h":"min-height","max-h":"max-height","border-t":"border-top-width","border-b":"border-bottom-width","border-l":"border-left-width","border-r":"border-right-width","border-x":"border-inline-width","border-y":"border-block-width","grid-cols":"grid-template-columns","grid-rows":"grid-template-rows",transition:"transition-property",ease:"transition-timing-function",delay:"transition-delay",duration:"transition-duration",list:"list-style",break:"word-break",flex:"flex-direction",items:"align-items",justify:"justify-content",whitespace:"white-space",select:"user-select",content:"align-content",self:"align-self",basis:"flex-basis",tracking:"letter-spacing",scroll:"scroll-behavior",weight:"font-weight",leading:"line-height",z:"z-index"};if(n==="rotate")return`transform:rotate(${i});`;const o=s[n]??n.replace(/_/g,"-");if(o&&i)return`${o}:${i};`}return null}function Gt(e){if(e.startsWith("[")&&e.endsWith("]")){const r=e.slice(1,-1);return r.includes("&")?r:e}const t=e.indexOf("-[");if(t>0&&e.endsWith("]")){const r=e.slice(t+2,-1).replace(/_/g,"-");return r.includes("&")?r:e.replace(/_/g,"-")}return null}function Qt(e){return e.replace(/([!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~])/g,"\\$1")}function Xt(e){const t=/class\s*=\s*(['"])(.*?)\1/g,r=[];let n;for(;n=t.exec(e);){const i=n[2].split(/\s+/).filter(Boolean);i.length&&r.push(...i)}return r.filter(Boolean)}const tt=new Map,Yt=16;function er(e){const t=Date.now(),r=tt.get(e);if(r&&t-r.timestamp<Yt)return r.css;const n=Xt(e),i=new Set(n),s=[],o=[],a=[],u=[],m={};function g(w,c=!1){const h=(c?"dark|":"")+w;if(h in m)return m[h];const y=d(w,c);return m[h]=y,y}function b(w){const c=w.some(y=>je.includes(y)),h=w.includes("dark");return w.length===0?1:!c&&!h?2:c&&!h?3:4}function p(w){const c=[];let h="",y=0,C=0;for(let k=0;k<w.length;k++){const f=w[k];f==="["?y++:f==="]"&&y>0?y--:f==="("?C++:f===")"&&C>0&&C--,f===":"&&y===0&&C===0?(c.push(h),h=""):h+=f}return h&&c.push(h),c}function l(w){switch(w){case"hover":return":hover";case"focus":return":focus";case"active":return":active";case"visited":return":visited";case"disabled":return":disabled";case"checked":return":checked";case"first":return":first-child";case"last":return":last-child";case"odd":return":nth-child(odd)";case"even":return":nth-child(even)";case"focus-within":return":focus-within";case"focus-visible":return":focus-visible";default:return null}}function d(w,c=!1){const h=p(w);let y=!1;const C=h.find(E=>(E.startsWith("!")&&(y=!0,E=E.slice(1)),Le[E]||Ne(E)||ze(E)||We(E)||Te(E)));if(!C)return null;const k=C.replace(/^!/,""),f=Le[k]??Ne(k)??ze(k)??We(k)??Te(k);if(!f)return null;const v=h.indexOf(C);let A=v>=0?h.slice(0,v):[];c&&(A=A.filter(E=>E!=="dark"));const _=`.${Qt(w)}`,$="__SUBJECT__",T=y?f.replace(/;$/," !important;"):f;let R=$;const S=[];for(const E of A)E.startsWith("group-")?(R=`.group:${E.slice(6)} ${R}`,S.push(E)):E.startsWith("peer-")&&(R=R.replace($,`.peer:${E.slice(5)}~${$}`),S.push(E));A=A.filter(E=>!S.includes(E));const P=[],U=[];let V=null;for(const E of A){if(E==="dark"||je.includes(E))continue;const q=Gt(E);if(q){V=q;continue}const D=l(E);if(D){V?U.push(D):P.push(D);continue}const W=Vt[E];typeof W=="function"&&(R=W(R,T).split("{")[0])}function xe(E,q){if(!q)return E;let D=0,W=0;if(E.length&&(E[0]===">"||E[0]==="+"||E[0]==="~"||E[0]===" ")){let O=1;for(;O<E.length&&E[O]===" ";)O++;for(;O<E.length;O++){const I=E[O];if(I==="["?D++:I==="]"&&D>0?D--:I==="("?W++:I===")"&&W>0&&W--,D===0&&W===0&&(E[O]===">"||E[O]==="+"||E[O]==="~"||E[O]===" "))return E.slice(0,O)+q+E.slice(O)}return E+q}for(let O=0;O<E.length;O++){const I=E[O];if(I==="["?D++:I==="]"&&D>0?D--:I==="("?W++:I===")"&&W>0&&W--,D===0&&W===0&&(I===">"||I==="+"||I==="~"||I===" "))return E.slice(0,O)+q+E.slice(O)}return E+q}const K=P.join(""),L=U.join("");if(V)if(V.includes("&")){const E=V.indexOf("&"),q=V.slice(0,E),D=V.slice(E+1),W=$+K,O=R;if(P.length===0)R=O.replace($,q+W+L+D);else{const I=xe(D,L);R=O.replace($,q+W+I)}}else R=R.replace($,`${V}${$+K}`),L&&(R=R.replace($,`${$}${L}`));else R=$+K+L;R=R.replace(new RegExp($,"g"),_);let j=`${R}{${T}}`;const J=A.filter(E=>je.includes(E)),Z=J.length?J[J.length-1]:null,z=A.includes("dark");return c&&Z?j=`@media (prefers-color-scheme: dark) and ${Me[Z]}{${j}}`:c?j=`@media (prefers-color-scheme: dark){${j}}`:z&&Z?j=`@media (prefers-color-scheme: dark) and ${Me[Z]}{${j}}`:z?j=`@media (prefers-color-scheme: dark){${j}}`:Z&&(j=`@media ${Me[Z]}{${j}}`),j}for(const w of i){const c=p(w),h=c.find(f=>Le[f]||Ne(f)||ze(f)||We(f)||Te(f));if(!h)continue;const y=c.indexOf(h),C=y>=0?c.slice(0,y):[],k=b(C);if(k===4){const f=g(w,!0);f&&u.push(f)}else{const f=g(w);f&&(k===1?s.push(f):k===2?o.push(f):k===3&&a.push(f))}}const x=[...s,...o,...a,...u].join("");return tt.set(e,{css:x,timestamp:t}),x}const me=[];function tr(e,t,r,n,i,s,o,a){if(e){me.push(r);try{const u=t.render(r);if(u instanceof Promise){s(!0),u.then(m=>{s(!1),o(null),rt(e,m,r,n,i),a(e.innerHTML)}).catch(m=>{s(!1),o(m)});return}rt(e,u,r,n,i),a(e.innerHTML)}finally{me.pop()}}}function rt(e,t,r,n,i){e&&(Dt(e,Array.isArray(t)?t:[t],r,n),i(e.innerHTML))}function rr(e,t,r,n,i,s,o){if(s!==null&&clearTimeout(s),Date.now()-t<16){if(i(r+1),r===15)console.warn(`⚠️ Component is re-rendering rapidly. This might indicate:
|
|
62
|
+
`,Bt={neutral:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#9f9fa9",500:"#71717b",600:"#52525c",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},primary:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},secondary:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},success:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},info:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},warning:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},error:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},white:{DEFAULT:"#ffffff"},black:{DEFAULT:"#000000"},transparent:{DEFAULT:"transparent"},current:{DEFAULT:"currentColor"}},Ut=Object.fromEntries(Object.entries(Bt).map(([e,t])=>[e,Object.fromEntries(Object.entries(t).map(([r,n])=>[r,`var(--color-${e}${r==="DEFAULT"?"":`-${r}`}, ${n})`]))])),le="0.25rem",qt={"3xs":64,"2xs":72,xs:80,sm:96,md:112,lg:128,xl:144,"2xl":168,"3xl":192,"4xl":224,"5xl":256,"6xl":288,"7xl":320},Ft=()=>{const e={};for(const[t,r]of Object.entries(qt))e[`max-w-${t}`]=`max-width:calc(${le} * ${r});`,e[`min-w-${t}`]=`min-width:calc(${le} * ${r});`,e[`w-${t}`]=`width:calc(${le} * ${r});`,e[`max-h-${t}`]=`max-height:calc(${le} * ${r});`,e[`min-h-${t}`]=`min-height:calc(${le} * ${r});`,e[`h-${t}`]=`height:calc(${le} * ${r});`;return e},Kt=()=>{const e={};for(const t of[1,2,3,4,5,6,7,8,9,10,11,12])e[`grid-cols-${t}`]=`grid-template-columns:repeat(${t},minmax(0,1fr));`,e[`grid-rows-${t}`]=`grid-template-rows:repeat(${t},minmax(0,1fr));`,e[`col-span-${t}`]=`grid-column:span ${t} / span ${t};`,e[`row-span-${t}`]=`grid-row:span ${t} / span ${t};`;return e},Le={block:"display:block;",inline:"display:inline;","inline-block":"display:inline-block;",flex:"display:flex;","inline-flex":"display:inline-flex;",grid:"display:grid;",hidden:"display:none;","w-full":"width:100%;","w-screen":"width:100dvw;","h-full":"height:100%;","h-screen":"height:100dvw;","max-w-full":"max-width:100%;","max-h-full":"max-height:100%;","max-w-screen":"max-width:100dvw;","max-h-screen":"max-height:100dvh;","min-w-0":"min-width:0;","min-h-0":"min-height:0;","min-w-screen":"min-width:100dvw;","min-h-screen":"min-height:100dvh;",...Ft(),"m-auto":"margin:auto;","mx-auto":"margin-inline:auto;","my-auto":"margin-block:auto;","overflow-auto":"overflow:auto;","overflow-hidden":"overflow:hidden;","overflow-visible":"overflow:visible;","overflow-scroll":"overflow:scroll;","overflow-y-auto":"overflow-y:auto;","overflow-y-hidden":"overflow-y:hidden;","overflow-y-visible":"overflow-y:visible;","overflow-y-scroll":"overflow-y:scroll;","overflow-x-auto":"overflow-x:auto;","overflow-x-hidden":"overflow-x:hidden;","overflow-x-visible":"overflow-x:visible;","overflow-x-scroll":"overflow-x:scroll;","pointer-events-none":"pointer-events:none;","pointer-events-auto":"pointer-events:auto;","sr-only":"position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0;","not-sr-only":"position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal;",...Kt(),absolute:"position:absolute;",relative:"position:relative;",fixed:"position:fixed;",sticky:"position:sticky;","font-bold":"font-weight:700;","font-semibold":"font-weight:600;","font-medium":"font-weight:500;","font-light":"font-weight:300;",underline:"text-decoration-line:underline;",overline:"text-decoration-line:overline;","line-through":"text-decoration-line:line-through;","no-underline":"text-decoration-line:none;",italic:"font-style:italic;","not-italic":"font-style:normal;",uppercase:"text-transform:uppercase;",lowercase:"text-transform:lowercase;",capitalize:"text-transform:capitalize;","normal-case":"text-transform:none;","text-left":"text-align:left;","text-center":"text-align:center;","text-right":"text-align:right;","text-xs":"font-size:0.75rem;line-height:calc(1 / 0.75)","text-sm":"font-size:0.875rem;line-height:calc(1.25 / 0.875)","text-base":"font-size:1rem;line-height:calc(1.5 / 1)","text-lg":"font-size:1.125rem;line-height:calc(1.75 / 1.125)","text-xl":"font-size:1.25rem;line-height:calc(1.75 / 1.25)","text-2xl":"font-size:1.5rem;line-height:calc(2 / 1.5)","text-3xl":"font-size:1.875rem;line-height:calc(2.25 / 1.875)","text-4xl":"font-size:2.25rem;line-height:calc(2.5 / 2.25)","text-5xl":"font-size:3rem;line-height:1","text-6xl":"font-size:3.75rem;line-height:1","text-7xl":"font-size:4.5rem;line-height:1","text-8xl":"font-size:6rem;line-height:1",border:"border-width:1px;","border-t":"border-top-width:1px;","border-r":"border-right-width:1px;","border-b":"border-bottom-width:1px;","border-l":"border-left-width:1px;","border-x":"border-inline-width:1px;","border-y":"border-block-width:1px;","border-2":"border-width:2px;","border-4":"border-width:4px;","border-6":"border-width:6px;","border-8":"border-width:8px;","rounded-none":"border-radius:0;","rounded-xs":"border-radius:0.125rem;","rounded-t-xs":"border-top-left-radius:0.125rem;border-top-right-radius:0.125rem;","rounded-r-xs":"border-top-right-radius:0.125rem;border-bottom-right-radius:0.125rem;","rounded-b-xs":"border-bottom-left-radius:0.125rem;border-bottom-right-radius:0.125rem;","rounded-l-xs":"border-top-left-radius:0.125rem;border-bottom-left-radius:0.125rem;","rounded-sm":"border-radius:0.25rem;","rounded-t-sm":"border-top-left-radius:0.25rem;border-top-right-radius:0.25rem;","rounded-r-sm":"border-top-right-radius:0.25rem;border-bottom-right-radius:0.25rem;","rounded-b-sm":"border-bottom-left-radius:0.25rem;border-bottom-right-radius:0.25rem;","rounded-l-sm":"border-top-left-radius:0.25rem;border-bottom-left-radius:0.25rem;","rounded-md":"border-radius:0.375rem;","rounded-t-md":"border-top-left-radius:0.375rem;border-top-right-radius:0.375rem;","rounded-r-md":"border-top-right-radius:0.375rem;border-bottom-right-radius:0.375rem;","rounded-b-md":"border-bottom-left-radius:0.375rem;border-bottom-right-radius:0.375rem;","rounded-l-md":"border-top-left-radius:0.375rem;border-bottom-left-radius:0.375rem;","rounded-lg":"border-radius:0.5rem;","rounded-t-lg":"border-top-left-radius:0.5rem;border-top-right-radius:0.5rem;","rounded-r-lg":"border-top-right-radius:0.5rem;border-bottom-right-radius:0.5rem;","rounded-b-lg":"border-bottom-left-radius:0.5rem;border-bottom-right-radius:0.5rem;","rounded-l-lg":"border-top-left-radius:0.5rem;border-bottom-left-radius:0.5rem;","rounded-xl":"border-radius:0.75rem;","rounded-t-xl":"border-top-left-radius:0.75rem;border-top-right-radius:0.75rem;","rounded-r-xl":"border-top-right-radius:0.75rem;border-bottom-right-radius:0.75rem;","rounded-b-xl":"border-bottom-left-radius:0.75rem;border-bottom-right-radius:0.75rem;","rounded-l-xl":"border-top-left-radius:0.75rem;border-bottom-left-radius:0.75rem;","rounded-2xl":"border-radius:1rem;","rounded-t-2xl":"border-top-left-radius:1rem;border-top-right-radius:1rem;","rounded-r-2xl":"border-top-right-radius:1rem;border-bottom-right-radius:1rem;","rounded-b-2xl":"border-bottom-left-radius:1rem;border-bottom-right-radius:1rem;","rounded-l-2xl":"border-top-left-radius:1rem;border-bottom-left-radius:1rem;","rounded-3xl":"border-radius:1.5rem;","rounded-t-3xl":"border-top-left-radius:1.5rem;border-top-right-radius:1.5rem;","rounded-r-3xl":"border-top-right-radius:1.5rem;border-bottom-right-radius:1.5rem;","rounded-b-3xl":"border-bottom-left-radius:1.5rem;border-bottom-right-radius:1.5rem;","rounded-l-3xl":"border-top-left-radius:1.5rem;border-bottom-left-radius:1.5rem;","rounded-4xl":"border-radius:2rem;","rounded-t-4xl":"border-top-left-radius:2rem;border-top-right-radius:2rem;","rounded-r-4xl":"border-top-right-radius:2rem;border-bottom-right-radius:2rem;","rounded-b-4xl":"border-bottom-left-radius:2rem;border-bottom-right-radius:2rem;","rounded-l-4xl":"border-top-left-radius:2rem;border-bottom-left-radius:2rem;","rounded-full":"border-radius:9999px;","rounded-t-full":"border-top-left-radius:9999px;border-top-right-radius:9999px;","rounded-r-full":"border-top-right-radius:9999px;border-bottom-right-radius:9999px;","rounded-b-full":"border-bottom-left-radius:9999px;border-bottom-right-radius:9999px;","rounded-l-full":"border-top-left-radius:9999px;border-bottom-left-radius:9999px;","shadow-none":"--ce-shadow-color: rgb(0 0 0 / 0);box-shadow:0 0 var(--ce-shadow-color, #0000);","shadow-xs":"--ce-shadow-color: rgb(0 0 0 / 0.05);box-shadow:0 1px 2px 0 var(--ce-shadow-color, rgb(0 0 0 / 0.05));","shadow-sm":"--ce-shadow-color: rgb(0 0 0 / 0.1);box-shadow:0 1px 3px 0 var(--ce-shadow-color, rgb(0 0 0 / 0.1)),0 1px 2px -1px var(--ce-shadow-color, rgb(0 0 0 / 0.1));","shadow-md":"--ce-shadow-color: rgb(0 0 0 / 0.1);box-shadow:0 4px 6px -1px var(--ce-shadow-color, rgb(0 0 0 / 0.1)),0 2px 4px -2px var(--ce-shadow-color, rgb(0 0 0 / 0.1));","shadow-lg":"--ce-shadow-color: rgb(0 0 0 / 0.1);box-shadow:0 10px 15px -3px var(--ce-shadow-color, rgb(0 0 0 / 0.1)),0 4px 6px -4px var(--ce-shadow-color, rgb(0 0 0 / 0.1));","shadow-xl":"--ce-shadow-color: rgb(0 0 0 / 0.1);box-shadow:0 20px 25px -5px var(--ce-shadow-color, rgb(0 0 0 / 0.1)),0 8px 10px -6px var(--ce-shadow-color, rgb(0 0 0 / 0.1));","shadow-2xl":"--ce-shadow-color: rgb(0 0 0 / 0.25);box-shadow:0 25px 50px -12px var(--ce-shadow-color, rgb(0 0 0 / 0.25));",truncate:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap;",visible:"visibility:visible;",invisible:"visibility:hidden;","items-center":"align-items:center;","items-start":"align-items:flex-start;","items-end":"align-items:flex-end;","items-baseline":"align-items:baseline;","items-stretch":"align-items:stretch;","justify-center":"justify-content:center;","justify-start":"justify-content:flex-start;","justify-between":"justify-content:space-between;","justify-around":"justify-content:space-around;","justify-evenly":"justify-content:space-evenly;","justify-end":"justify-content:flex-end;","flex-wrap":"flex-wrap:wrap;","flex-nowrap":"flex-wrap:nowrap;","flex-wrap-reverse":"flex-wrap:wrap-reverse;","content-center":"align-content:center;","content-start":"align-content:flex-start;","content-end":"align-content:flex-end;","content-between":"align-content:space-between;","content-around":"align-content:space-around;","content-stretch":"align-content:stretch;","self-auto":"align-self:auto;","self-start":"align-self:flex-start;","self-end":"align-self:flex-end;","self-center":"align-self:center;","self-stretch":"align-self:stretch;","flex-1":"flex:1 1 0%;","flex-auto":"flex:1 1 auto;","flex-initial":"flex:0 1 auto;","flex-none":"flex:0 0 auto;","flex-col":"flex-direction:column;","flex-row":"flex-direction:row;",grow:"flex-grow:1;",shrink:"flex-shrink:1;","grow-0":"flex-grow:0;","shrink-0":"flex-shrink:0;","font-sans":"font-family:ui-sans-serif,system-ui,sans-serif;","font-serif":"font-family:ui-serif,Georgia,serif;","font-mono":"font-family:ui-monospace,SFMono-Regular,monospace;","line-clamp-1":"display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;","line-clamp-2":"display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;","line-clamp-3":"display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;","line-clamp-4":"display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;",transition:"transition-property:all;transition-duration:150ms;transition-timing-function:ease-in-out;","transition-all":"transition-property:all;","transition-colors":"transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;","transition-shadow":"transition-property:box-shadow;","transition-opacity":"transition-property:opacity;","transition-transform":"transition-property:transform;","transition-none":"transition-property:none;","cursor-auto":"cursor:auto;","cursor-default":"cursor:default;","cursor-pointer":"cursor:pointer;","cursor-wait":"cursor:wait;","cursor-text":"cursor:text;","cursor-move":"cursor:move;","cursor-help":"cursor:help;","cursor-not-allowed":"cursor:not-allowed;","z-0":"z-index:0;","z-10":"z-index:10;","z-20":"z-index:20;","z-30":"z-index:30;","z-40":"z-index:40;","z-50":"z-index:50;"},Ye={m:["margin"],mx:["margin-inline"],my:["margin-block"],mt:["margin-top"],mr:["margin-right"],mb:["margin-bottom"],ml:["margin-left"],p:["padding"],px:["padding-inline"],py:["padding-block"],pt:["padding-top"],pr:["padding-right"],pb:["padding-bottom"],pl:["padding-left"],inset:["inset"],"inset-x":["inset-inline"],"inset-y":["inset-block"],h:["height"],w:["width"],"min-h":["min-height"],"min-w":["min-width"],"max-h":["max-height"],"max-w":["max-width"],top:["top"],bottom:["bottom"],left:["left"],right:["right"],gap:["gap"],"gap-x":["column-gap"],"gap-y":["row-gap"]};function G(e,t){let r=0,n=0;for(let i=0;i<e.length;i++){const s=e[i];if(s==="[")r++;else if(s==="]"&&r>0)r--;else if(s==="(")n++;else if(s===")"&&n>0)n--;else if(r===0&&n===0&&(s===">"||s==="+"||s==="~"||s===" "))return e.slice(0,i)+t+e.slice(i)}return e+t}const Vt={before:(e,t)=>`${e}::before{${t}}`,after:(e,t)=>`${e}::after{${t}}`,hover:(e,t)=>`${G(e,":hover")}{${t}}`,focus:(e,t)=>`${G(e,":focus")}{${t}}`,active:(e,t)=>`${G(e,":active")}{${t}}`,disabled:(e,t)=>`${G(e,":disabled")}{${t}}`,visited:(e,t)=>`${G(e,":visited")}{${t}}`,checked:(e,t)=>`${G(e,":checked")}{${t}}`,first:(e,t)=>`${G(e,":first-child")}{${t}}`,last:(e,t)=>`${G(e,":last-child")}{${t}}`,odd:(e,t)=>`${G(e,":nth-child(odd)")}{${t}}`,even:(e,t)=>`${G(e,":nth-child(even)")}{${t}}`,"focus-within":(e,t)=>`${G(e,":focus-within")}{${t}}`,"focus-visible":(e,t)=>`${G(e,":focus-visible")}{${t}}`,"group-hover":(e,t)=>`.group:hover ${e}{${t}}`,"group-focus":(e,t)=>`.group:focus ${e}{${t}}`,"group-active":(e,t)=>`.group:active ${e}{${t}}`,"group-disabled":(e,t)=>`.group:disabled ${e}{${t}}`,"peer-hover":(e,t)=>`.peer:hover ~ ${e}{${t}}`,"peer-focus":(e,t)=>`.peer:focus ~ ${e}{${t}}`,"peer-checked":(e,t)=>`.peer:checked ~ ${e}{${t}}`,"peer-disabled":(e,t)=>`.peer:disabled ~ ${e}{${t}}`},Me={sm:"(min-width:640px)",md:"(min-width:768px)",lg:"(min-width:1024px)",xl:"(min-width:1280px)","2xl":"(min-width:1536px)",dark:"(prefers-color-scheme: dark)"},je=["sm","md","lg","xl","2xl"];function Ne(e){const t=e.startsWith("-"),n=(t?e.slice(1):e).split("-");if(n.length<2)return null;const i=n.slice(0,-1).join("-"),s=n[n.length-1],o=parseFloat(s);if(Number.isNaN(o)||!Ye[i])return null;const a=t?"-":"";return Ye[i].map(u=>`${u}:calc(${a}${le} * ${o});`).join("")}function et(e){const t=e.replace("#",""),r=parseInt(t,16),n=r>>16&255,i=r>>8&255,s=r&255;return`${n} ${i} ${s}`}function Jt(e){const t=/^(bg|text|border|decoration|shadow|outline|caret|accent|fill|stroke)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/.exec(e);if(!t)return null;const[,r,n,i="DEFAULT"]=t,s=Ut[n]?.[i];if(!s)return null;if(r==="shadow")return`--ce-shadow-color:${s};`;const a={bg:"background-color",decoration:"text-decoration-color",text:"color",border:"border-color",outline:"outline-color",caret:"caret-color",accent:"accent-color",fill:"fill",stroke:"stroke"}[r];return a?`${a}:${s};`:null}function Zt(e){const[t,r]=e.split("/");if(!r)return{base:t};const n=parseInt(r,10);return isNaN(n)||n<0||n>100?{base:t}:{base:t,opacity:n/100}}function We(e){const{base:t,opacity:r}=Zt(e),n=Jt(t);if(n){if(r!==void 0){const s=/#([0-9a-f]{6})/i.exec(n);if(s){const o=et(s[0]);return n.replace(/#([0-9a-f]{6})/i,`rgb(${o} / ${r})`)}}return n}const i=Te(t);if(i&&r!==void 0){const s=/#([0-9a-f]{6})/i.exec(i);if(s){const o=et(s[0]);return i.replace(/#([0-9a-f]{6})/i,`rgb(${o} / ${r})`)}}return i}function ze(e){const t=/^opacity-(\d{1,3})$/.exec(e);if(!t)return null;const r=parseInt(t[1],10);return r<0||r>100?null:`opacity:${r/100};`}function Te(e){if(e.startsWith("[")&&e.endsWith("]")&&!e.includes("-[")){const i=e.slice(1,-1).trim().match(/^([a-zA-Z][a-zA-Z0-9-]*)\s*:(.*)$/);if(i){const s=i[1].trim();let o=i[2].trim();return o=o.replace(/url\('\s*([^']*?)\s*'\)/g,'url("$1")'),o=o.replace(/^'([^']*)'$/g,'"$1"'),`${s}:${o};`}return null}const t=e.indexOf("-["),r=e.endsWith("]");if(t>0&&r){const n=e.slice(0,t);let i=e.slice(t+2,-1);i=i.replace(/_/g," ");const s={bg:"background-color",text:"color",shadow:"box-shadow",p:"padding",px:"padding-inline",py:"padding-block",m:"margin",mx:"margin-inline",my:"margin-block",w:"width",h:"height","min-w":"min-width","max-w":"max-width","min-h":"min-height","max-h":"max-height","border-t":"border-top-width","border-b":"border-bottom-width","border-l":"border-left-width","border-r":"border-right-width","border-x":"border-inline-width","border-y":"border-block-width","grid-cols":"grid-template-columns","grid-rows":"grid-template-rows",transition:"transition-property",ease:"transition-timing-function",delay:"transition-delay",duration:"transition-duration",list:"list-style",break:"word-break",flex:"flex-direction",items:"align-items",justify:"justify-content",whitespace:"white-space",select:"user-select",content:"align-content",self:"align-self",basis:"flex-basis",tracking:"letter-spacing",scroll:"scroll-behavior",weight:"font-weight",leading:"line-height",z:"z-index"};if(n==="rotate")return`transform:rotate(${i});`;const o=s[n]??n.replace(/_/g,"-");if(o&&i)return`${o}:${i};`}return null}function Gt(e){if(e.startsWith("[")&&e.endsWith("]")){const r=e.slice(1,-1);return r.includes("&")?r:e}const t=e.indexOf("-[");if(t>0&&e.endsWith("]")){const r=e.slice(t+2,-1).replace(/_/g,"-");return r.includes("&")?r:e.replace(/_/g,"-")}return null}function Qt(e){return e.replace(/([!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~])/g,"\\$1")}function Xt(e){const t=/class\s*=\s*(['"])(.*?)\1/g,r=[];let n;for(;n=t.exec(e);){const i=n[2].split(/\s+/).filter(Boolean);i.length&&r.push(...i)}return r.filter(Boolean)}const tt=new Map,Yt=16;function er(e){const t=Date.now(),r=tt.get(e);if(r&&t-r.timestamp<Yt)return r.css;const n=Xt(e),i=new Set(n),s=[],o=[],a=[],u=[],m={};function g(w,c=!1){const h=(c?"dark|":"")+w;if(h in m)return m[h];const y=d(w,c);return m[h]=y,y}function b(w){const c=w.some(y=>je.includes(y)),h=w.includes("dark");return w.length===0?1:!c&&!h?2:c&&!h?3:4}function p(w){const c=[];let h="",y=0,C=0;for(let k=0;k<w.length;k++){const f=w[k];f==="["?y++:f==="]"&&y>0?y--:f==="("?C++:f===")"&&C>0&&C--,f===":"&&y===0&&C===0?(c.push(h),h=""):h+=f}return h&&c.push(h),c}function l(w){switch(w){case"hover":return":hover";case"focus":return":focus";case"active":return":active";case"visited":return":visited";case"disabled":return":disabled";case"checked":return":checked";case"first":return":first-child";case"last":return":last-child";case"odd":return":nth-child(odd)";case"even":return":nth-child(even)";case"focus-within":return":focus-within";case"focus-visible":return":focus-visible";default:return null}}function d(w,c=!1){const h=p(w);let y=!1;const C=h.find(E=>(E.startsWith("!")&&(y=!0,E=E.slice(1)),Le[E]||Ne(E)||ze(E)||We(E)||Te(E)));if(!C)return null;const k=C.replace(/^!/,""),f=Le[k]??Ne(k)??ze(k)??We(k)??Te(k);if(!f)return null;const v=h.indexOf(C);let A=v>=0?h.slice(0,v):[];c&&(A=A.filter(E=>E!=="dark"));const _=`.${Qt(w)}`,$="__SUBJECT__",T=y?f.replace(/;$/," !important;"):f;let R=$;const S=[];for(const E of A)E.startsWith("group-")?(R=`.group:${E.slice(6)} ${R}`,S.push(E)):E.startsWith("peer-")&&(R=R.replace($,`.peer:${E.slice(5)}~${$}`),S.push(E));A=A.filter(E=>!S.includes(E));const P=[],U=[];let V=null;for(const E of A){if(E==="dark"||je.includes(E))continue;const q=Gt(E);if(q){V=q;continue}const D=l(E);if(D){V?U.push(D):P.push(D);continue}const W=Vt[E];typeof W=="function"&&(R=W(R,T).split("{")[0])}function xe(E,q){if(!q)return E;let D=0,W=0;if(E.length&&(E[0]===">"||E[0]==="+"||E[0]==="~"||E[0]===" ")){let O=1;for(;O<E.length&&E[O]===" ";)O++;for(;O<E.length;O++){const I=E[O];if(I==="["?D++:I==="]"&&D>0?D--:I==="("?W++:I===")"&&W>0&&W--,D===0&&W===0&&(E[O]===">"||E[O]==="+"||E[O]==="~"||E[O]===" "))return E.slice(0,O)+q+E.slice(O)}return E+q}for(let O=0;O<E.length;O++){const I=E[O];if(I==="["?D++:I==="]"&&D>0?D--:I==="("?W++:I===")"&&W>0&&W--,D===0&&W===0&&(I===">"||I==="+"||I==="~"||I===" "))return E.slice(0,O)+q+E.slice(O)}return E+q}const K=P.join(""),L=U.join("");if(V)if(V.includes("&")){const E=V.indexOf("&"),q=V.slice(0,E),D=V.slice(E+1),W=$+K,O=R;if(P.length===0)R=O.replace($,q+W+L+D);else{const I=xe(D,L);R=O.replace($,q+W+I)}}else R=R.replace($,`${V}${$+K}`),L&&(R=R.replace($,`${$}${L}`));else R=$+K+L;R=R.replace(new RegExp($,"g"),_);let j=`${R}{${T}}`;const J=A.filter(E=>je.includes(E)),Z=J.length?J[J.length-1]:null,z=A.includes("dark");return c&&Z?j=`@media (prefers-color-scheme: dark) and ${Me[Z]}{${j}}`:c?j=`@media (prefers-color-scheme: dark){${j}}`:z&&Z?j=`@media (prefers-color-scheme: dark) and ${Me[Z]}{${j}}`:z?j=`@media (prefers-color-scheme: dark){${j}}`:Z&&(j=`@media ${Me[Z]}{${j}}`),j}for(const w of i){const c=p(w),h=c.find(f=>Le[f]||Ne(f)||ze(f)||We(f)||Te(f));if(!h)continue;const y=c.indexOf(h),C=y>=0?c.slice(0,y):[],k=b(C);if(k===4){const f=g(w,!0);f&&u.push(f)}else{const f=g(w);f&&(k===1?s.push(f):k===2?o.push(f):k===3&&a.push(f))}}const x=[...s,...o,...a,...u].join("");return tt.set(e,{css:x,timestamp:t}),x}const me=[];function tr(e,t,r,n,i,s,o,a){if(e){me.push(r);try{const u=t.render(r);if(u instanceof Promise){s(!0),u.then(m=>{s(!1),o(null),rt(e,m,r,n,i),a(e.innerHTML)}).catch(m=>{s(!1),o(m)});return}rt(e,u,r,n,i),a(e.innerHTML)}finally{me.pop()}}}function rt(e,t,r,n,i){e&&(Dt(e,Array.isArray(t)?t:[t],r,n),i(e.innerHTML))}function rr(e,t,r,n,i,s,o){if(s!==null&&clearTimeout(s),Date.now()-t<16){if(i(r+1),r===15)console.warn(`⚠️ Component is re-rendering rapidly. This might indicate:
|
|
63
63
|
Common causes:
|
|
64
64
|
• Event handler calling a function immediately: @click="\${fn()}" should be @click="\${fn}"
|
|
65
65
|
• State modification during render
|