mnfst 0.5.313 → 0.5.314
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/lib/manifest.appwrite.data.js +1 -1
- package/lib/manifest.data.js +1 -1
- package/lib/manifest.data.min.js +1 -1
- package/lib/manifest.integrity.json +10 -10
- package/lib/manifest.js +2 -2
- package/lib/manifest.min.js +1 -1
- package/lib/manifest.modules.integrity.json +7 -7
- package/lib/manifest.sw.js +1 -1
- package/lib/manifest.sw.min.js +1 -1
- package/lib/manifest.utilities.js +71 -48
- package/lib/manifest.utilities.min.js +1 -1
- package/lib/manifest.utilities.min.js.map +1 -1
- package/lib/manifest.utilities.node.mjs +56 -43
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(){class e{constructor(e={}){if(this.usesStaticPrerenderUtilities=function(){if("undefined"==typeof document)return!1;try{if(!document.querySelector('meta[name="manifest:prerendered"][content="1"]'))return!1;for(const e of document.querySelectorAll('link[rel="stylesheet"][href]'))if((e.getAttribute("href")||"").toLowerCase().includes("prerender.utilities.css"))return!0}catch(e){return!1}return!1}(),this.usesStaticPrerenderUtilities)return this.debug=!0===e.debug,this.startTime=performance.now(),this.options={rootSelector:e.rootSelector||":root",themeSelector:e.themeSelector||"@theme",debounceTime:e.debounceTime||50,maxCacheAge:e.maxCacheAge||864e5,debug:!1!==e.debug,...e},this.criticalStyleElement=null,this.styleElement=null,this.tailwindLink=null,this.observer=null,this.isCompiling=!1,this.compileTimeout=null,this.cache=new Map,this.hasInitialized=!0,this.staticUtilitiesCoveredClasses=null,this.ignoredClassPatterns=[/^hljs/,/^language-/,/^copy$/,/^copied$/,/^lines$/,/^selected$/],this.ignoredElementSelectors=["pre","code","x-code","x-code-group"],void(this.significantChangeSelectors=["[data-component]","[x-data]"]);this.debug=!0===e.debug,this.startTime=performance.now();performance.now();if(this.criticalStyleElement=document.createElement("style"),this.criticalStyleElement.id="manifest-styles-critical",document.head)document.head.firstChild?document.head.insertBefore(this.criticalStyleElement,document.head.firstChild):document.head.appendChild(this.criticalStyleElement);else{const e=setInterval(()=>{document.head&&(clearInterval(e),document.head.firstChild?document.head.insertBefore(this.criticalStyleElement,document.head.firstChild):document.head.appendChild(this.criticalStyleElement))},1)}this.options={rootSelector:e.rootSelector||":root",themeSelector:e.themeSelector||"@theme",debounceTime:e.debounceTime||50,maxCacheAge:e.maxCacheAge||864e5,debug:!1!==e.debug,...e},this.regexPatterns={root:new RegExp(`${this.options.rootSelector}\\s*{([^}]*)}`,"g"),theme:new RegExp(`${this.options.themeSelector}\\s*{([^}]*)}`,"g"),variable:/--([\w-]+):\s*([^;]+);/g,tailwindPrefix:/^(color|font|text|font-weight|tracking|leading|breakpoint|container|spacing|radius|shadow|inset-shadow|drop-shadow|blur|perspective|aspect|ease|animate|border-width|border-style|outline|outline-width|outline-style|ring|ring-offset|divide|accent|caret|decoration|placeholder|selection|scrollbar)-/};const t={"color-":(e,t)=>{const s=[],i=(t,i,n)=>{s.push([`${t}-${e}`,`${i}: ${n}`])};return i("text","color",t),i("bg","background-color",t),i("border","border-color",t),i("outline","outline-color",t),i("ring","box-shadow",`0 0 0 1px ${t}`),i("fill","fill",t),i("stroke","stroke",t),i("decoration","text-decoration-color",t),i("accent","accent-color",t),i("caret","caret-color",t),s.push([`from-${e}`,`--tw-gradient-from: ${t}; --tw-gradient-stops: var(--tw-gradient-via-stops)`]),s.push([`via-${e}`,`--tw-gradient-via: ${t}; --tw-gradient-stops: var(--tw-gradient-via-stops)`]),s.push([`to-${e}`,`--tw-gradient-to: ${t}; --tw-gradient-stops: var(--tw-gradient-via-stops)`]),s},"font-":(e,t)=>[[`font-${e}`,`font-family: ${t}`]],"text-":(e,t)=>[[`text-${e}`,`font-size: ${t}`]],"font-weight-":(e,t)=>[[`font-${e}`,`font-weight: ${t}`]],"tracking-":(e,t)=>[[`tracking-${e}`,`letter-spacing: ${t}`]],"leading-":(e,t)=>[[`leading-${e}`,`line-height: ${t}`]],"breakpoint-":(e,t)=>[[`@${e}`,`@media (min-width: ${t})`]],"container-":(e,t)=>[[`container-${e}`,`max-width: ${t}`],[`@container-${e}`,`@container (min-width: ${t})`]],"spacing-":(e,t)=>[[`gap-${e}`,`gap: ${t}`],[`p-${e}`,`padding: ${t}`],[`px-${e}`,`padding-left: ${t}; padding-right: ${t}`],[`py-${e}`,`padding-top: ${t}; padding-bottom: ${t}`],[`m-${e}`,`margin: ${t}`],[`mx-${e}`,`margin-left: ${t}; margin-right: ${t}`],[`my-${e}`,`margin-top: ${t}; margin-bottom: ${t}`],[`space-x-${e}`,`> * + * { margin-left: ${t}; }`],[`space-y-${e}`,`> * + * { margin-top: ${t}; }`],[`max-w-${e}`,`max-width: ${t}`],[`max-h-${e}`,`max-height: ${t}`],[`min-w-${e}`,`min-width: ${t}`],[`min-h-${e}`,`min-height: ${t}`],[`w-${e}`,`width: ${t}`],[`h-${e}`,`height: ${t}`]],"radius-":(e,t)=>[[`rounded-${e}`,`border-radius: ${t}`]],"shadow-":(e,t)=>[[`shadow-${e}`,`box-shadow: ${t}`]],"inset-shadow-":(e,t)=>[[`inset-shadow-${e}`,`box-shadow: inset ${t}`]],"drop-shadow-":(e,t)=>[[`drop-shadow-${e}`,`filter: drop-shadow(${t})`]],"blur-":(e,t)=>[[`blur-${e}`,`filter: blur(${t})`]],"perspective-":(e,t)=>[[`perspective-${e}`,`perspective: ${t}`]],"aspect-":(e,t)=>[[`aspect-${e}`,`aspect-ratio: ${t}`]],"ease-":(e,t)=>[[`ease-${e}`,`transition-timing-function: ${t}`]],"animate-":(e,t)=>[[`animate-${e}`,`animation: ${t}`]],"border-width-":(e,t)=>[[`border-${e}`,`border-width: ${t}`]],"border-style-":(e,t)=>[[`border-${e}`,`border-style: ${t}`]],"outline-":(e,t)=>[[`outline-${e}`,`outline-color: ${t}`]],"outline-width-":(e,t)=>[[`outline-${e}`,`outline-width: ${t}`]],"outline-style-":(e,t)=>[[`outline-${e}`,`outline-style: ${t}`]],"ring-":(e,t)=>[[`ring-${e}`,`box-shadow: 0 0 0 ${t} var(--color-ring)`]],"ring-offset-":(e,t)=>[[`ring-offset-${e}`,`--tw-ring-offset-width: ${t}`]],"divide-":(e,t)=>[[`divide-${e}`,`border-color: ${t}`]],"accent-":(e,t)=>[[`accent-${e}`,`accent-color: ${t}`]],"caret-":(e,t)=>[[`caret-${e}`,`caret-color: ${t}`]],"decoration-":(e,t)=>[[`decoration-${e}`,`text-decoration-color: ${t}`]],"placeholder-":(e,t)=>[[`placeholder-${e}`,`&::placeholder { color: ${t} }`]],"selection-":(e,t)=>[[`selection-${e}`,`&::selection { background-color: ${t} }`]],"scrollbar-":(e,t)=>[[`scrollbar-${e}`,`scrollbar-color: ${t}`]]};this.utilityGenerators={"color-":t["color-"],"font-":t["font-"],"text-":t["text-"],"font-weight-":t["font-weight-"],"tracking-":t["tracking-"],"leading-":t["leading-"],"spacing-":t["spacing-"],"radius-":t["radius-"],"shadow-":t["shadow-"],"blur-":t["blur-"]},Object.assign(this.utilityGenerators,t),this.variants={hover:":hover",focus:":focus","focus-visible":":focus-visible","focus-within":":focus-within",active:":active",visited:":visited",target:":target",first:":first-child",last:":last-child",only:":only-child",odd:":nth-child(odd)",even:":nth-child(even)","first-of-type":":first-of-type","last-of-type":":last-of-type","only-of-type":":only-of-type",empty:":empty",disabled:":disabled",enabled:":enabled",checked:":checked",indeterminate:":indeterminate",default:":default",required:":required",valid:":valid",invalid:":invalid","in-range":":in-range","out-of-range":":out-of-range","placeholder-shown":":placeholder-shown",autofill:":autofill","read-only":":read-only","read-write":":read-write",optional:":optional","user-valid":":user-valid","user-invalid":":user-invalid",inert:":inert",open:":is([open], :popover-open, :open) &",closed:":not(:is([open], :popover-open, :open)) &",paused:'[data-state="paused"] &',playing:'[data-state="playing"] &',muted:'[data-state="muted"] &',unmuted:'[data-state="unmuted"] &',collapsed:'[data-state="collapsed"] &',expanded:'[data-state="expanded"] &',unchecked:":not(:checked)",selected:'[data-state="selected"] &',unselected:'[data-state="unselected"] &',"details-content":"::details-content",nth:":nth-child","nth-last":":nth-last-child","nth-of-type":":nth-of-type","nth-last-of-type":":nth-last-of-type",has:":has",not:":not",before:"::before",after:"::after","first-letter":"::first-letter","first-line":"::first-line",marker:"::marker",selection:"::selection",file:"::file-selector-button",backdrop:"::backdrop",placeholder:"::placeholder","target-text":"::target-text","spelling-error":"::spelling-error","grammar-error":"::grammar-error",dark:".dark &",light:".light &",group:".group &","group-hover":".group:hover &","group-focus":".group:focus &","group-focus-within":".group:focus-within &","group-active":".group:active &","group-disabled":".group:disabled &","group-visited":".group:visited &","group-checked":".group:checked &","group-required":".group:required &","group-valid":".group:valid &","group-invalid":".group:invalid &","group-in-range":".group:in-range &","group-out-of-range":".group:out-of-range &","group-placeholder-shown":".group:placeholder-shown &","group-autofill":".group:autofill &","group-read-only":".group:read-only &","group-read-write":".group:read-write &","group-optional":".group:optional &","group-user-valid":".group:user-valid &","group-user-invalid":".group:user-invalid &",peer:".peer ~ &","peer-hover":".peer:hover ~ &","peer-focus":".peer:focus ~ &","peer-focus-within":".peer:focus-within ~ &","peer-active":".peer:active ~ &","peer-disabled":".peer:disabled ~ &","peer-visited":".peer:visited ~ &","peer-checked":".peer:checked ~ &","peer-required":".peer:required ~ &","peer-valid":".peer:valid ~ &","peer-invalid":".peer:invalid ~ &","peer-in-range":".peer:in-range ~ &","peer-out-of-range":".peer:out-of-range ~ &","peer-placeholder-shown":".peer:placeholder-shown ~ &","peer-autofill":".peer:autofill ~ &","peer-read-only":".peer:read-only ~ &","peer-read-write":".peer:read-write ~ &","peer-optional":".peer:optional ~ &","peer-user-valid":".peer:user-valid ~ &","peer-user-invalid":".peer:user-invalid &","motion-safe":"@media (prefers-reduced-motion: no-preference)","motion-reduce":"@media (prefers-reduced-motion: reduce)",print:"@media print",portrait:"@media (orientation: portrait)",landscape:"@media (orientation: landscape)","contrast-more":"@media (prefers-contrast: more)","contrast-less":"@media (prefers-contrast: less)","forced-colors":"@media (forced-colors: active)",rtl:'&:where(:dir(rtl), [dir="rtl"], [dir="rtl"] *)',ltr:'&:where(:dir(ltr), [dir="ltr"], [dir="ltr"] *)',"[dir=rtl]":'[dir="rtl"] &',"[dir=ltr]":'[dir="ltr"] &',"pointer-fine":"@media (pointer: fine)","pointer-coarse":"@media (pointer: coarse)","pointer-none":"@media (pointer: none)","any-pointer-fine":"@media (any-pointer: fine)","any-pointer-coarse":"@media (any-pointer: coarse)","any-pointer-none":"@media (any-pointer: none)","scripting-enabled":"@media (scripting: enabled)","can-hover":"@media (hover: hover)","can-not-hover":"@media (hover: none)","any-hover":"@media (any-hover: hover)","any-hover-none":"@media (any-hover: none)","any-pointer":"@media (any-pointer: fine)","any-pointer-coarse":"@media (any-pointer: coarse)","any-pointer-none":"@media (any-pointer: none)",color:"@media (color)","color-gamut":"@media (color-gamut: srgb)","color-gamut-p3":"@media (color-gamut: p3)","color-gamut-rec2020":"@media (color-gamut: rec2020)",monochrome:"@media (monochrome)","monochrome-color":"@media (monochrome: 0)","monochrome-grayscale":"@media (monochrome: 1)","inverted-colors":"@media (inverted-colors: inverted)","inverted-colors-none":"@media (inverted-colors: none)",update:"@media (update: fast)","update-slow":"@media (update: slow)","update-none":"@media (update: none)","overflow-block":"@media (overflow-block: scroll)","overflow-block-paged":"@media (overflow-block: paged)","overflow-inline":"@media (overflow-inline: scroll)","overflow-inline-auto":"@media (overflow-inline: auto)","prefers-color-scheme":"@media (prefers-color-scheme: dark)","prefers-color-scheme-light":"@media (prefers-color-scheme: light)","prefers-contrast":"@media (prefers-contrast: more)","prefers-contrast-less":"@media (prefers-contrast: less)","prefers-contrast-no-preference":"@media (prefers-contrast: no-preference)","prefers-reduced-motion":"@media (prefers-reduced-motion: reduce)","prefers-reduced-motion-no-preference":"@media (prefers-reduced-motion: no-preference)","prefers-reduced-transparency":"@media (prefers-reduced-transparency: reduce)","prefers-reduced-transparency-no-preference":"@media (prefers-reduced-transparency: no-preference)",resolution:"@media (resolution: 1dppx)","resolution-low":"@media (resolution: 1dppx)","resolution-high":"@media (resolution: 2dppx)",scan:"@media (scan: progressive)","scan-interlace":"@media (scan: interlace)",scripting:"@media (scripting: enabled)","scripting-none":"@media (scripting: none)","scripting-initial-only":"@media (scripting: initial-only)",container:"@container","container-name":"@container","!":"!important",sm:"@media (min-width: 640px)",md:"@media (min-width: 768px)",lg:"@media (min-width: 1024px)",xl:"@media (min-width: 1280px)","2xl":"@media (min-width: 1536px)",supports:"@supports",starting:"@starting-style",touch:"@media (pointer: coarse)",cursor:"@media (pointer: fine) and (hover: hover)",pointer:"@media (any-pointer: fine)",mac:'html[data-os="macos"] &',windows:'html[data-os="windows"] &',linux:'html[data-os="linux"] &',ios:'html[data-os="ios"] &',android:'html[data-os="android"] &',apple:'html[data-os="macos"] &, html[data-os="ios"] &',"aria-expanded":'&[aria-expanded="true"]',"aria-collapsed":'&[aria-expanded="false"]',"aria-pressed":'&[aria-pressed="true"]',"aria-unpressed":'&[aria-pressed="false"]',"aria-checked":'&[aria-checked="true"]',"aria-unchecked":'&[aria-checked="false"]',"aria-selected":'&[aria-selected="true"]',"aria-unselected":'&[aria-selected="false"]',"aria-invalid":'&[aria-invalid="true"]',"aria-valid":'&[aria-invalid="false"]',"aria-required":'&[aria-required="true"]',"aria-optional":'&[aria-required="false"]',"aria-disabled":'&[aria-disabled="true"]',"aria-enabled":'&[aria-disabled="false"]',"aria-hidden":'&[aria-hidden="true"]',"aria-visible":'&[aria-hidden="false"]',"aria-busy":'&[aria-busy="true"]',"aria-available":'&[aria-busy="false"]',"aria-current":'&[aria-current="true"]',"aria-not-current":'&[aria-current="false"]',"aria-live":'&:is([aria-live="polite"], [aria-live="assertive"])',"aria-atomic":'&[aria-atomic="true"]',"aria-relevant":'&:is([aria-relevant="additions"], [aria-relevant="removals"], [aria-relevant="text"], [aria-relevant="all"])'},this.variantGroups={state:["hover","focus","active","visited","target","open","closed","paused","playing","muted","unmuted","collapsed","expanded","unchecked","selected","unselected"],child:["first","last","only","odd","even"],form:["disabled","enabled","checked","indeterminate","required","valid","invalid"],pseudo:["before","after","first-letter","first-line","marker","selection","file","backdrop"],media:["dark","light","motion-safe","motion-reduce","print","portrait","landscape","rtl","ltr","can-hover","can-not-hover","any-hover","any-hover-none","color","monochrome","inverted-colors","inverted-colors-none","update","update-slow","update-none","overflow-block","overflow-block-paged","overflow-inline","overflow-inline-auto","prefers-color-scheme","prefers-color-scheme-light","prefers-contrast","prefers-contrast-less","prefers-contrast-no-preference","prefers-reduced-motion","prefers-reduced-motion-no-preference","prefers-reduced-transparency","prefers-reduced-transparency-no-preference","resolution","resolution-low","resolution-high","scan","scan-interlace","scripting","scripting-none","scripting-initial-only","forced-colors","contrast-more","contrast-less","pointer-fine","pointer-coarse","pointer-none","any-pointer-fine","any-pointer-coarse","any-pointer-none","scripting-enabled"],responsive:["sm","md","lg","xl","2xl"],device:["touch","cursor","pointer"],os:["mac","windows","linux","ios","android","apple"],group:["group","group-hover","group-focus","group-active","group-disabled","group-checked","group-required","group-valid","group-invalid"],peer:["peer","peer-hover","peer-focus","peer-active","peer-disabled","peer-checked","peer-required","peer-valid","peer-invalid"],data:["data-open","data-closed","data-checked","data-unchecked","data-visible","data-hidden","data-disabled","data-loading","data-error","data-success","data-warning","data-selected","data-highlighted","data-pressed","data-expanded","data-collapsed","data-active","data-inactive","data-valid","data-invalid","data-required","data-optional","data-readonly","data-write"],aria:["aria-expanded","aria-collapsed","aria-pressed","aria-unpressed","aria-checked","aria-unchecked","aria-selected","aria-unselected","aria-invalid","aria-valid","aria-required","aria-optional","aria-disabled","aria-enabled","aria-hidden","aria-visible","aria-busy","aria-available","aria-current","aria-not-current","aria-live","aria-atomic","aria-relevant"]},this.classCache=new Map,this.staticUtilitiesCoveredClasses=null,this.staticUtilitiesReady=Promise.all([this.detectStaticUtilitiesSheet(),this.loadUtilitiesSafelist()]),this.staticUtilitiesReady.then(()=>this.setupUncoveredClassWatcher()),this.addCriticalBlockingStylesSync(),this.styleElement=document.createElement("style"),this.styleElement.id="manifest-styles",document.head.appendChild(this.styleElement),this.setupUtilityStylesOrderObserver(),this.tailwindLink=null,this.observer=null,this.isCompiling=!1,this.compileTimeout=null,this.cache=new Map,this.lastThemeHash=null,this.processedElements=new WeakSet,this.activeBreakpoints=new Set,this.activeModifiers=new Set,this.cssFiles=new Set,this.pendingStyles=new Map,this.currentThemeVars=new Map,this.hasInitialized=!1,this.lastCompileTime=0,this.minCompileInterval=100,this.cssContentCache=new Map,this.lastClassesHash="",this.staticClassCache=new Set,this.dynamicClassCache=new Set,this.quietClasses=new Set,this.hasScannedStatic=!1,this.staticScanPromise=null,this.ignoredClassPatterns=[/^hljs/,/^language-/,/^copy$/,/^copied$/,/^lines$/,/^selected$/],this.ignoredElementSelectors=["pre","code","x-code","x-code-group"],this.ignoredAttributes=["id","data-order","data-component-id","data-highlighted","data-processed","x-intersect","x-intersect:leave","x-show","x-hide","x-transition","aria-expanded","aria-selected","aria-current","aria-hidden","aria-label","tabindex","role","title","alt","data-state","data-value"],this.significantChangeSelectors=["[data-component]","[x-data]"],this.pseudoClasses=["hover","focus","active","disabled","dark"],this.customUtilities=new Map,this.loadAndApplyCache(),this.generateSynchronousUtilities(),this.setupComponentLoadListener(),this.waitForTailwind().then(()=>{this.startProcessing()})}addIgnoredClassPattern(e){Array.isArray(this.ignoredClassPatterns)||(this.ignoredClassPatterns=[]),e instanceof RegExp?this.ignoredClassPatterns.push(e):"string"==typeof e&&this.ignoredClassPatterns.push(new RegExp(e))}addIgnoredElementSelector(e){Array.isArray(this.ignoredElementSelectors)||(this.ignoredElementSelectors=[]),"string"==typeof e&&this.ignoredElementSelectors.push(e)}addSignificantChangeSelector(e){Array.isArray(this.significantChangeSelectors)||(this.significantChangeSelectors=[]),"string"==typeof e&&this.significantChangeSelectors.push(e)}triggerRecompilation(e="manual"){this.compile()}debounce(e,t){let s;return function(...i){clearTimeout(s),s=setTimeout(()=>{clearTimeout(s),e(...i)},t)}}async waitForTailwind(){return new Promise(e=>{if(this.isTailwindAvailable())return void e();const t=setInterval(()=>{this.isTailwindAvailable()&&(clearInterval(t),e())},100);document.addEventListener("DOMContentLoaded",()=>{this.isTailwindAvailable()&&(clearInterval(t),e())}),setTimeout(()=>{clearInterval(t),e()},5e3)})}isTailwindAvailable(){return Array.from(document.styleSheets).some(e=>e.href&&(e.href.includes("tailwind")||e.href.includes("tailwindcss")||e.href.includes("manifest")))||document.querySelector('[class*="tailwind"]')||window.tailwind||document.head.innerHTML.includes("tailwind")||document.head.innerHTML.includes("manifest")}}function t(e){return e.hasAttribute("data-mnfst-utilities")||!e.id&&(e.textContent||"").trimStart().startsWith("/*! tailwindcss")}function s(e,t){return e.reduceRight((e,t)=>`${t} { ${e} }`,t)}e.prototype.addCriticalBlockingStylesSync=function(){if(!this.criticalStyleElement)return;if(this.hasShippedUtilitiesSheet())return;performance.now();try{const e=new Map,t=document.querySelectorAll("style:not(#manifest-styles):not(#manifest-styles-critical)");for(const s of t)if(s.textContent){const t=this.extractThemeVariables(s.textContent);for(const[s,i]of t.entries())e.set(s,i)}try{if(document.documentElement){const t=document.documentElement.outerHTML,s=/<style[^>]*>([\s\S]*?)<\/style>/gi;let i;for(;null!==(i=s.exec(t));){const t=i[1],s=this.extractThemeVariables(t);for(const[t,i]of s.entries())e.set(t,i)}}}catch(e){}try{const t=Array.from(document.styleSheets);for(const s of t)try{const t=Array.from(s.cssRules||[]);for(const s of t){if(s.type===CSSRule.STYLE_RULE&&s.styleSheet)try{const t=Array.from(s.styleSheet.cssRules||[]);for(const s of t)if(s.type===CSSRule.STYLE_RULE){const t=s.cssText,i=this.extractThemeVariables(t);for(const[t,s]of i.entries())e.set(t,s)}}catch(e){}if(s.type===CSSRule.STYLE_RULE){const t=s.cssText,i=this.extractThemeVariables(t);for(const[t,s]of i.entries())e.set(t,s)}}}catch(e){}}catch(e){}try{if(document.documentElement){const t=getComputedStyle(document.documentElement);let s=0;for(let i=0;i<t.length;i++){const n=t[i];if(n.startsWith("--")){const i=t.getPropertyValue(n);i&&i.trim()&&(e.set(n.substring(2),i.trim()),s++)}}}}catch(e){}const s=new Set;try{if(document.documentElement){const e=document.documentElement.outerHTML,t=/class=["']([^"']+)["']/gi;let i;for(;null!==(i=t.exec(e));){const e=i[1].split(/\s+/).filter(Boolean);for(const t of e)/^(border|bg|text|ring|outline|decoration|caret|accent|fill|stroke)-[a-z0-9-]+(\/[0-9]+)?$/.test(t)&&s.add(t)}}if(document.body){const e=document.body.querySelectorAll("*");for(const t of e)if(t.className&&"string"==typeof t.className){const e=t.className.split(/\s+/).filter(Boolean);for(const t of e)/^(border|bg|text|ring|outline|decoration|caret|accent|fill|stroke)-[a-z0-9-]+(\/[0-9]+)?$/.test(t)&&s.add(t)}}}catch(e){}if(e.size>0){performance.now();const t=`:root { ${Array.from(e.entries()).map(([e,t])=>`--${e}: ${t};`).join("\n")} }`;let i=null;if(s.size>0)i={classes:Array.from(s),variableSuffixes:[]};else{const e=localStorage.getItem("tailwind-cache");let t=new Set;if(e)try{const s=JSON.parse(e),i=Object.values(s);for(const e of i){const e=i.sort((e,t)=>(t.timestamp||0)-(e.timestamp||0))[0];if(e&&e.css){const s=e.css.match(/\.([a-zA-Z0-9_-]+(?::[a-zA-Z0-9_-]+)*)\s*{/g);if(s)for(const e of s){const s=e.replace(/^\./,"").replace(/\s*{.*$/,"");/^(border|bg|text|ring|outline|decoration|caret|accent|fill|stroke)-[a-z0-9-]+(\/[0-9]+)?$/.test(s.split(":").pop())&&t.add(s)}}}}catch(e){}if(t.size>0)i={classes:Array.from(t),variableSuffixes:[]};else{try{const e=(document.documentElement.innerHTML||"").match(/class=["']([^"']+)["']/g);if(e)for(const s of e){const e=s.replace(/class=["']/,"").replace(/["']$/,"").split(/\s+/).filter(Boolean);for(const s of e)/^(border|bg|text|ring|outline|decoration|caret|accent|fill|stroke)-[a-z0-9-]+(\/[0-9]+)?$/.test(s)&&t.add(s)}}catch(e){}t.size>0&&(i={classes:Array.from(t),variableSuffixes:[]})}}if(!i||!i.classes||0===i.classes.length){const t=Array.from(e.entries()).filter(([e])=>e.startsWith("color-"));if(t.length>0){const e=[];for(const[s]of t){const t=s.replace("color-","");e.push(`text-${t}`),e.push(`bg-${t}`),e.push(`border-${t}`)}i={classes:e,variableSuffixes:[]}}}if(i&&i.classes&&i.classes.length>0){const e=this.generateUtilitiesFromVars(t,i);if(e){performance.now();this.criticalStyleElement.textContent=e,document.body?document.body.offsetHeight:document.documentElement.offsetHeight;performance.now()}}}}catch(e){}},e.prototype.generateSynchronousUtilities=function(){if(!this.usesStaticPrerenderUtilities&&!this.hasShippedUtilitiesSheet())try{const e=this.styleElement.textContent&&this.styleElement.textContent.trim();let t=new Map;const s=new Set,i=document.querySelectorAll("style:not(#manifest-styles)");for(const e of i)if(e.textContent){const s=this.extractThemeVariables(e.textContent);for(const[e,i]of s.entries())t.set(e,i)}try{const e=document.documentElement.outerHTML,s=/<style[^>]*>([\s\S]*?)<\/style>/gi;let i;for(;null!==(i=s.exec(e));){const e=i[1],s=this.extractThemeVariables(e);for(const[e,i]of s.entries())t.set(e,i)}}catch(e){}try{if(document.documentElement){const e=getComputedStyle(document.documentElement),s=e.length;for(let i=0;i<s;i++){const s=e[i];if(s.startsWith("--")){const i=e.getPropertyValue(s);i&&i.trim()&&t.set(s.substring(2),i.trim())}}}}catch(e){}try{const e=document.documentElement.outerHTML,t=/class=["']([^"']+)["']/gi;let i;for(;null!==(i=t.exec(e));){const e=i[1].split(/\s+/).filter(Boolean);for(const t of e)/^(border|bg|text|ring|outline|decoration|caret|accent|fill|stroke)-[a-z0-9-]+(\/[0-9]+)?$/.test(t)&&s.add(t)}}catch(e){const t=document.querySelectorAll("*");for(const e of t)if(e.className&&"string"==typeof e.className){const t=e.className.split(/\s+/);for(const e of t)/^(border|bg|text|ring|outline|decoration|caret|accent|fill|stroke)-[a-z0-9-]+(\/[0-9]+)?$/.test(e)&&s.add(e)}}if(t.size>0&&s.size>0){const i=`:root { ${Array.from(t.entries()).map(([e,t])=>`--${e}: ${t};`).join("\n")} }`,n={classes:Array.from(s),variableSuffixes:[]},r=this.generateUtilitiesFromVars(i,n);if(r){const t=`@layer utilities {\n${r}\n}`;e?this.styleElement.textContent+="\n\n"+t:this.styleElement.textContent=t,this.ensureUtilityStylesLast(),this.criticalStyleElement&&r.trim()&&(this.criticalStyleElement.textContent="")}}}catch(e){}},e.prototype.loadAndApplyCache=function(){performance.now();try{const e=localStorage.getItem("tailwind-cache");if(e){const t=JSON.parse(e);this.cache=new Map(Object.entries(t));let s=new Set;try{if(document.documentElement){const e=document.documentElement.outerHTML,t=/class=["']([^"']+)["']/gi;let i;for(;null!==(i=t.exec(e));){i[1].split(/\s+/).filter(Boolean).forEach(e=>{e.startsWith("x-")||e.startsWith("$")||s.add(e)})}}}catch(e){}let i=null,n=0;if(s.size>0)for(const[e,t]of this.cache.entries()){const r=e.lastIndexOf("-"),a=r>0?e.substring(0,r):e,o=a?a.split(","):[],l=new Set(o);let c=0;for(const e of s)l.has(e)&&c++;const d=c/s.size,h=(Date.now()-t.timestamp)/864e5,u=.7*d+.3*(1-Math.min(h,1));u>n&&(n=u,i=t)}const r=i||Array.from(this.cache.entries()).sort((e,t)=>t[1].timestamp-e[1].timestamp)[0]?.[1];if(r&&r.css&&!this.hasShippedUtilitiesSheet()){performance.now();const e=this.stripCoveredRulesFromCss(r.css);if(this.styleElement.textContent=e,this.ensureUtilityStylesLast(),this.scheduleEnsureUtilityStylesLast(),this.lastThemeHash=r.themeHash,this.criticalStyleElement&&!this.criticalStyleElement.textContent){let t=e;t=t.replace(/@layer\s+utilities\s*\{/g,"").replace(/\}\s*$/,"").trim(),t&&(this.criticalStyleElement.textContent=t)}}}}catch(e){}},e.prototype.MAX_PERSISTED_CACHE_ENTRIES=20,e.prototype.evictOldestCacheEntries=function(e){if(this.cache.size<=e)return;const t=Array.from(this.cache.entries()).sort((e,t)=>(e[1].timestamp||0)-(t[1].timestamp||0)),s=t.length-e;for(let e=0;e<s;e++)this.cache.delete(t[e][0])},e.prototype.savePersistentCache=function(){this.evictOldestCacheEntries(this.MAX_PERSISTED_CACHE_ENTRIES);let e=0;for(;this.cache.size>0&&e<4;)try{const e=JSON.stringify(Object.fromEntries(this.cache));return void localStorage.setItem("tailwind-cache",e)}catch(t){if(!(t&&("QuotaExceededError"===t.name||22===t.code||1014===t.code)))return void console.warn("Failed to save cached styles:",t);const s=Math.max(1,Math.floor(this.cache.size/2));this.evictOldestCacheEntries(s),e++}try{localStorage.removeItem("tailwind-cache")}catch(e){}},e.prototype.loadPersistentCache=function(){try{const e=localStorage.getItem("tailwind-cache");if(e){const t=JSON.parse(e);this.cache=new Map(Object.entries(t))}}catch(e){console.warn("Failed to load cached styles:",e)}},e.prototype.generateThemeHash=function(e){return encodeURIComponent(e).slice(0,8)},e.prototype.cleanupCache=function(){const e=Date.now(),t=this.options.maxCacheAge,s=[];for(const[i,n]of this.cache.entries())n.timestamp&&e-n.timestamp>t&&s.push(i);for(const e of s)this.cache.delete(e);s.length>0&&this.savePersistentCache()},e.prototype.ensureUtilityStylesLast=function(){this.styleElement&&this.styleElement.parentNode&&document.head.lastElementChild!==this.styleElement&&(document.head.appendChild(this.styleElement),this.resyncUtilitiesText&&this.resyncUtilitiesText())},e.prototype.setupUtilityStylesOrderObserver=function(){if(!document.head||!this.styleElement)return;const e=this;new MutationObserver(t=>{for(const s of t)if("childList"===s.type&&s.addedNodes.length)for(const t of s.addedNodes)if(t.nodeType===Node.ELEMENT_NODE&&t!==e.styleElement){e.ensureUtilityStylesLast();break}}).observe(document.head,{childList:!0,subtree:!1})},e.prototype.scheduleEnsureUtilityStylesLast=function(){const e=this;[0,100,500].forEach(t=>{setTimeout(()=>e.ensureUtilityStylesLast(),t)})},e.prototype.discoverCssFiles=function(){try{const e=Array.from(document.styleSheets);for(const t of e)try{const e=e=>e.includes("manifestjs")||e.includes("mnfst")||e.includes("jsdelivr")&&(e.includes("manifestjs")||e.includes("mnfst"))||e.includes("unpkg")&&(e.includes("manifestjs")||e.includes("mnfst"));t.href&&(t.href.startsWith(window.location.origin)||e(t.href))&&this.cssFiles.add(t.href);const s=Array.from(t.cssRules||[]);for(const t of s)t.type===CSSRule.IMPORT_RULE&&t.href&&(t.href.startsWith(window.location.origin)||e(t.href))&&this.cssFiles.add(t.href)}catch(e){}const s=document.querySelectorAll("style:not(#manifest-styles)");for(const e of s)if(!t(e)&&e.textContent&&e.textContent.trim()){const t=e.id||`inline-style-${Array.from(s).indexOf(e)}`;this.inlineStyleSources||(this.inlineStyleSources=new Map),this.inlineStyleSources.set(t,e),this.cssFiles.add("inline:"+t)}}catch(e){console.warn("Error discovering CSS files:",e)}},e.prototype.scanStaticClasses=async function(){return this.staticScanPromise||(this.staticScanPromise=(async()=>{try{const e=new Set,t=document.documentElement.outerHTML;this.extractClassesFromHTML(t,e);let s=window.ManifestComponentsRegistry;const i=2e3,n=50;let r=0;for(;!s&&r<i;)await new Promise(e=>setTimeout(e,n)),s=window.ManifestComponentsRegistry,r+=n;const a=[];if(s&&s.manifest){const e=[...s.manifest.preloadedComponents||[],...s.manifest.components||[]];a.push(...e)}const o=a.map(async t=>{try{const s=[t.startsWith("/")?t:"/"+t,t];for(const t of s)try{const s=await fetch(t);if(s.ok){const t=await s.text();this.extractClassesFromHTML(t,e);break}}catch(e){continue}}catch(e){}});await Promise.all(o);for(const t of e)this.staticClassCache.add(t);return this.hasScannedStatic=!0,e}catch(e){return console.warn("[TailwindCompiler] Error scanning static classes:",e),this.hasScannedStatic=!0,new Set}})()),this.staticScanPromise},e.prototype.extractClassesFromHTML=function(e,t){const s=/(?<![:\w])class=(["'])((?:(?!\1)[\s\S])*)\1/g;let i;for(;null!==(i=s.exec(e));){const e=i[2].split(/\s+/).filter(Boolean);for(const s of e)!s||s.startsWith("x-")||s.startsWith("$")||t.add(s)}const n=/(?<![\w-])(?::|x-bind:)class=(["'])((?:(?!\1)[\s\S])*)\1/g;for(;null!==(i=n.exec(e));)this.collectBindingClasses(i[2],t);const r=/x-data=["']([^"']+)["']/g;for(;null!==(i=r.exec(e));){const e=i[1].match(/['"`]([^'"`\s]+)['"`]/g);if(e)for(const s of e){const e=s.replace(/['"`]/g,"");e&&!e.startsWith("$")&&!e.includes("(")&&/[a-zA-Z0-9]/.test(e)&&t.add(e)}}},e.prototype.collectBindingClasses=function(e,t){if(!e)return;e.includes("&")&&(e=e.replace(/"/g,'"').replace(/�?39;|'/g,"'").replace(/&/g,"&"));const s=e=>{e&&!e.startsWith("x-")&&!e.startsWith("$")&&/[a-zA-Z0-9]/.test(e)&&(e.includes("://")||/^\d+:/.test(e)||(e.includes("[")?/[{}'"`$;]/:/[(){}'"`$;,]/).test(e)||t.add(e))},i=/(['"`])((?:\\[\s\S]|(?!\1)[^\\])*)\1/g;let n;for(;null!==(n=i.exec(e));){for(const e of n[2].split(/\s+/))s(e);"`"===n[1]&&n[2].includes("${")&&this.collectBindingClasses(n[2].replace(/`/g," "),t)}const r=/[{,]\s*([A-Za-z_][\w-]*)\s*:/g;for(;null!==(n=r.exec(e));)s(n[1])},e.prototype.getUsedClasses=function(){try{const e=new Set,t=new Set;for(const t of this.staticClassCache)e.add(t);for(const t of this.dynamicClassCache)e.add(t);const s=document.getElementsByTagName("*");for(const t of s){let s=[];"string"==typeof t.className?s=t.className.split(/\s+/).filter(Boolean):t.classList&&(s=Array.from(t.classList));for(const t of s){if(!t)continue;this.ignoredClassPatterns.some(e=>e.test(t))||(e.add(t),this.staticClassCache.has(t)||this.dynamicClassCache.add(t))}}for(const s of e){const e=s.split(":"),i=e[e.length-1].split("-");if(i.length>1){let e=i.slice(1).join("-"),s=e;if(e.includes("/")){const i=e.split("/");s=i[0];i[1];t.add(s),t.add(e)}else t.add(e);if(i.length>2){const e=i.slice(1).join("-");e.includes("/")?t.add(e.split("/")[0]):t.add(e)}}}return{classes:this.filterStaticallyCoveredClasses(Array.from(e)),variableSuffixes:Array.from(t)}}catch(e){return console.error("Error getting used classes:",e),{classes:[],variableSuffixes:[]}}},e.prototype.fetchThemeContent=async function(){const e=new Set,t=[];0===this.cssFiles.size&&this.discoverCssFiles();for(const s of this.cssFiles){const i=(async()=>{try{let t="",i=!0;if(s.startsWith("inline:")){const e=s.replace("inline:",""),n=this.inlineStyleSources&&this.inlineStyleSources.get(e),r=n&&n.isConnected?n:e?document.getElementById(e):document.querySelector("style");r&&(t=r.textContent),i=!1}else{const e=s,n=this.cssContentCache.get(e),r=Date.now();let a;if(a=s.includes("manifestjs")||s.includes("mnfst")||s.includes("jsdelivr")||s.includes("unpkg")?this.hasScannedStatic?6e4:3e5:this.hasScannedStatic?5e3:3e4,n&&r-n.timestamp<a&&(t=n.content,i=!1),i){const i=Math.floor(r/1e3),n=`${s}${s.includes("?")?"&":"?"}t=${i}`,a=await fetch(n);if(!a.ok)return void console.warn("Failed to fetch stylesheet:",n);t=await a.text(),this.cssContentCache.set(e,{content:t,timestamp:r})}}t&&e.add(t)}catch(e){console.warn(`Error fetching CSS from ${s}:`,e)}})();t.push(i)}return await Promise.all(t),this.lastThemeKey=Array.from(e).sort().join("\n"),this.lastThemeCss=Array.from(e).join("\n"),this.lastThemeCss},e.prototype.extractThemeVariables=function(e){const t=new Map,s=/--([\w-]+):\s*([^;}]+)(?=[;}])/g;let i;for(;null!==(i=s.exec(e));){const e=i[1],s=i[2].trim();t.set(e,s)}return t},e.prototype.extractCustomUtilities=function(e){const t=new Map,s=e=>{if("string"==typeof e)return e.replace(/\[object Object\](;?\s*)/g,"").trim();if(e&&"object"==typeof e&&e.css)return s(e.css);const t=String(e);return"[object Object]"===t?"":t},i=/(?:@layer\s+utilities\s*{[^}]*}|^)(?:[^{}]*?)(?:^|\s)(\.!?[\w-]+)\s*{([^}]+)}/gm;let n;for(;null!==(n=i.exec(e));){const e=n[1].substring(1),i=n[2].trim(),r=e.startsWith("!")?e.slice(1):e;if(this.isTailwindGeneratedClass(r))continue;const a=/\s!important/.test(i);let o=i;e.startsWith("!")?a||(o=i.includes(";")?i.replace(/;/g," !important;"):i+" !important"):a&&(o=i.replace(/\s!important/g,""));const l=s(o);if(t.has(e)){const i=t.get(e),n=s(i);t.set(e,`${n}; ${l}`)}else t.set(e,l)}const r=(e=>{const t=[];let s=0;for(;s<e.length;){const i=e.indexOf(":where(",s);if(-1===i)break;let n=1,r=i+7;for(;r<e.length&&n>0;)"("===e[r]?n++:")"===e[r]&&n--,r++;if(n>0){s=i+1;continue}const a=e.slice(i+7,r-1);for(;r<e.length&&/\s/.test(e[r]);)r++;if(r>=e.length||"{"!==e[r]){s=i+1;continue}let o=1,l=r+1;for(r++;r<e.length&&o>0;)"{"===e[r]?o++:"}"===e[r]&&o--,r++;if(o>0){s=i+1;continue}const c=e.slice(l,r-1).trim();t.push({selectorContent:a,cssRules:c,fullMatch:e.slice(i,r)}),s=r}return t})(e);for(const e of r){const i=e.selectorContent,n=e.cssRules,r=/\s!important/.test(n),a=i.match(/\.(!?[\w-]+)/g);if(a)for(const e of a){const a=e.substring(1),o=a.startsWith("!")?a.slice(1):a;if(this.isTailwindGeneratedClass(o))continue;let l=n;a.startsWith("!")?r||(l=n.includes(";")?n.replace(/;/g," !important;"):n+" !important"):r&&(l=n.replace(/\s!important/g,""));const c=a,d={selector:`:where(${i})`,css:s(l),fullBlock:!0};if(t.has(c)){const e=t.get(c);if("string"==typeof e){const i=s(e);t.set(c,[{selector:`.${a}`,css:i},d])}else if(Array.isArray(e)){const t=e.find(e=>e.selector===d.selector);if(t){const e=s(t.css),i=s(d.css);t.css=`${e}; ${i}`}else e.push(d)}else if(e&&e.selector)if(e.selector===d.selector){const i=s(e.css),n=s(d.css);e.css=`${i}; ${n}`,t.set(c,[e])}else t.set(c,[e,d])}else t.set(c,[d])}}try{let i=0;for(;i<e.length;){for(;i<e.length&&/\s/.test(e[i]);)i++;if(i>=e.length)break;if("@"===e[i]){for(;i<e.length&&"\n"!==e[i]&&"}"!==e[i];)i++;continue}let n=i;for(;i<e.length&&"{"!==e[i];)i++;if(i>=e.length)break;const r=e.slice(n,i).trim();i++;let a=1,o=i;for(;i<e.length&&a>0;)"{"===e[i]?a++:"}"===e[i]&&a--,i++;if(a>0)continue;const l=e.slice(o,i-1).trim();if(r.startsWith("@"))continue;const c=r.match(/\.!?[A-Za-z0-9_-]+/g);if(!c)continue;const d=/\s!important/.test(l);for(const e of c){const i=e.substring(1),n=i.startsWith("!")?i.slice(1):i;if(this.isTailwindGeneratedClass(n))continue;const r=i.startsWith("!");let a=l;r?d||(a=l.includes(";")?l.replace(/;/g," !important;"):l+" !important"):d&&(a=l.replace(/\s!important/g,""));const o=s(a);if(t.has(i)){const e=t.get(i);if(Array.isArray(e))t.set(i,[...e,{selector:`.${i}`,css:o,fullBlock:!0}]);else{const n=s(e);t.set(i,[{selector:`.${i}`,css:n},{selector:`.${i}`,css:o,fullBlock:!0}])}}else t.set(i,o)}}}catch(e){}try{const i=[],n=(e,t="",s=!0)=>{let r=0;for(;r<e.length;){for(;r<e.length&&/\s/.test(e[r]);)r++;if(r>=e.length)break;let a=r;for(;r<e.length&&"{"!==e[r];)r++;if(r>=e.length)break;const o=e.slice(a,r).trim();r++;let l=1,c=r;for(;r<e.length&&l>0;)"{"===e[r]?l++:"}"===e[r]&&l--,r++;const d=e.slice(c,r-1),h=t?o.replace(/&/g,t).trim():o.trim();if(s){const e=d.trim();e&&i.push({selector:h,css:e,fullBlock:!0})}n(d,h,!1)}};n(e,"");for(const e of i){let i=e.selector.replace(/\/\*[^]*?\*\//g,"").replace(/\s+/g," ").trim();const n=i.match(/\.!?[A-Za-z0-9_-]+/g);if(!n)continue;const r=/\s!important/.test(e.css);for(const a of n){const n=a.slice(1),o=n.startsWith("!")?n.slice(1):n;if(this.isTailwindGeneratedClass(o))continue;const l=n.startsWith("!");let c=e.css;l?r||(c=e.css.includes(";")?e.css.replace(/;/g," !important;"):e.css+" !important"):r&&(c=e.css.replace(/\s!important/g,""));const d={selector:i,css:s(c),fullBlock:e.fullBlock||!1};if(t.has(n)){const e=t.get(n);if("string"==typeof e){const i=s(e);t.set(n,[{selector:`.${n}`,css:i},d])}else if(Array.isArray(e)){const t=e.find(e=>e.selector===d.selector);if(t){const e=s(t.css),i=s(d.css);t.css=`${e}; ${i}`}else e.push(d)}else if(e&&e.selector)if(e.selector===d.selector){const i=s(e.css),r=s(d.css);e.css=`${i}; ${r}`,t.set(n,[e])}else t.set(n,[e,d])}else t.set(n,[d])}}}catch(e){}for(const[e,s]of t.entries()){if(!Array.isArray(s))continue;const i=new Set,n=[];for(const e of s){if(!e||"object"!=typeof e)continue;const t=String(e.selector||"").replace(/\s+/g," ").trim(),s=String(e.css||"").replace(/\s+/g," ").trim();if(!s)continue;const r=`${t}\0${s}`;i.has(r)||(i.add(r),n.push(e))}n.length>0&&t.set(e,n)}return t},e.prototype.isTailwindGeneratedClass=function(e){return[/^[a-z]+-\d+$/,/^[a-z]+-\[/,/^(text|bg|border|ring|shadow|opacity|scale|rotate|translate|skew|origin|transform|transition|duration|delay|ease|animate|backdrop|blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|saturate|sepia|filter|backdrop-)/,/^(sm|md|lg|xl|2xl):/,/^(hover|focus|active|disabled|group-hover|group-focus|peer-hover|peer-focus):/,/^(dark|light):/,/^!/,/^\[/].some(t=>t.test(e))},e.prototype.parseClassName=function(e){if(this.classCache.has(e))return this.classCache.get(e);const t={important:e.startsWith("!"),variants:[],baseClass:e};t.important&&(e=e.slice(1));const s=[];let i="",n=0;for(let t=0;t<e.length;t++){const r=e[t];"["===r?n++:"]"===r&&n--,":"===r&&0===n?(s.push(i),i=""):i+=r}return s.push(i),t.baseClass=s.pop(),t.variants=s.map(e=>{const s=this.variants[e];if(s)return{name:e,selector:s,isArbitrary:!1};if(e.startsWith("[")&&e.endsWith("]")){const t=e.slice(1,-1);if(t.startsWith("&"))return{name:e,selector:t,isArbitrary:!0};if(t.startsWith("data-"))return{name:e,selector:`[${t}] &`,isArbitrary:!0}}const i=e.match(/^(group-|peer-)?(data|aria)-(.+)$/);if(i){const t=i[1]&&/^&([[:][^&]*)$/.exec(this.variants[`${i[2]}-${i[3]}`]||""),s=t?t[1]:function(e,t){if(t.startsWith("[")&&t.endsWith("]")){const s=t.slice(1,-1).match(/^([a-zA-Z0-9_-]+)(?:([~|^$*]?=)(.+))?$/);if(!s)return null;if(!s[2])return`[${e}-${s[1]}]`;const i=s[3].replace(/^(['"])(.*)\1$/,"$2").replace(/_/g," ").replace(/"/g,'\\"');return`[${e}-${s[1]}${s[2]}"${i}"]`}return/^[a-zA-Z0-9_-]+$/.test(t)?"aria"===e?`[aria-${t}="true"]`:`[data-${t}]`:null}(i[2],i[3]);if(s){return{name:e,selector:i[1]?"group-"===i[1]?`:where(.group${s}) &`:`:where(.peer${s}) ~ &`:`&${s}`,isArbitrary:!1}}}const n=e.match(/^(nth|nth-last|nth-of-type|nth-last-of-type)-(\d+)$/);if(n){const t=n[1],s=n[2],i=this.variants[t];if(i)return{name:e,selector:`${i}(${s})`,isArbitrary:!1}}const r=e.match(/^(nth|nth-last|nth-of-type|nth-last-of-type)-\[(.+)\]$/);if(r){const t=r[1],s=r[2],i=this.variants[t];if(i)return{name:e,selector:`${i}(${s})`,isArbitrary:!1}}const a=e.match(/^has-\[(.+)\]$/);if(a){const t=a[1],s=this.variants.has;if(s)return{name:e,selector:`${s}(${t})`,isArbitrary:!1}}const o=e.match(/^not-\\\[(.+?)\\\]$/);if(o){const t=o[1],s=this.variants.not;if(s)return{name:e,selector:`${s}([${t}])`,isArbitrary:!1}}if(e.startsWith("@")){const t={"3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},s=e.indexOf("/"),i=-1!==s?e.slice(s+1):"",n=i?`@container ${i}`:"@container",r=(-1!==s?e.slice(0,s):e).slice(1);let a;if(""===r||"container"===r)return{name:e,selector:n,isArbitrary:!1};if(a=r.match(/^(?:min-)?\[(.+)\]$/))return{name:e,selector:`${n} (width >= ${a[1]})`,isArbitrary:!1};if(a=r.match(/^max-\[(.+)\]$/))return{name:e,selector:`${n} (width < ${a[1]})`,isArbitrary:!1};if(a=r.match(/^max-(.+)$/)){if(t[a[1]])return{name:e,selector:`${n} (width < ${t[a[1]]})`,isArbitrary:!1}}else if(t[r])return{name:e,selector:`${n} (width >= ${t[r]})`,isArbitrary:!1}}const l=e.match(/^(min|max)-(?:\[(.+)\]|(sm|md|lg|xl|2xl))$/);if(l){const t=l[3]&&/\(min-width:\s*([^)]+)\)/.exec(this.variants[l[3]]||""),s=l[2]?l[2].replace(/_/g," "):t&&t[1].trim();if(s&&!/[{};]/.test(s))return{name:e,selector:`@media (width ${"max"===l[1]?"<":">="} ${s})`,isArbitrary:!1}}return this._warnedVariants||(this._warnedVariants=new Set),this._warnedVariants.has(e)||(this._warnedVariants.add(e),console.warn(`Unknown variant: ${e}`)),t.unknown=!0,null}).filter(Boolean),this.classCache.set(e,t),t},e.prototype.generateUtilitiesFromVars=function(e,t){try{const i=[],n=new Set,r=this.extractThemeVariables(e),{classes:a,variableSuffixes:o}=t,l=t.rulesOut,c=t.keysOut;let d=null;const f=(e,t,s)=>{i.push({rule:e,key:u(e,s,d.concat(d[3]?2:t))})};if(0===r.size)return"";const m=e=>e.replace(/[^a-zA-Z0-9-]/g,"\\$&"),g=(e,t)=>{const i=a.filter(t=>{const s=t.split(":"),i=s[s.length-1];return i===e||i.startsWith("!")&&i.slice(1)===e});if(a.includes(e)){const s=`.${m(e)} { ${t} }`;n.has(s)||(f(s,0),n.add(s))}if(a.includes("!"+e)){const s=t.includes(";")?t.replace(/;/g," !important;"):t+" !important",i=`.${m("!"+e)} { ${s} }`;n.has(i)||(f(i,1),n.add(i))}for(const r of i){if(r===e)continue;const i=this.parseClassName(r);if(i.unknown)continue;const a=i.important,o="string"==typeof t?t:t&&"object"==typeof t&&t.css?t.css:String(t),l=a?o.includes(";")?o.replace(/;/g," !important;"):o+" !important":o;let c=`.${m(r)}`,d=!1,u="";const p=[];for(const e of i.variants)if(e.isArbitrary){let t=e.selector;t.startsWith("&")?(t=t.replace(/_/g," ").replace(/&/g,c),c=t):(t=t.replace(/_/g," "),c={baseClass:c,arbitrarySelector:t})}else e.selector.includes("&")?c=e.selector.replace(/&/g,c):e.selector.startsWith(":")?c=`${c}${e.selector}`:e.selector.startsWith("@")&&(d=!0,p.push(e.selector),u=p[0]);let g;g="object"==typeof c&&c.arbitrarySelector?`${c.baseClass} {\n ${c.arbitrarySelector} {\n ${l}\n }\n}`:`${c} { ${l} }`;const y=d?s(p,g):g;n.has(y)||(f(y,2,h(i.variants)),n.add(y))}},y=a.map(e=>this.parseClassName(e).baseClass);let w=-1;for(const[e,t]of r.entries()){if(w++,!e.match(this.regexPatterns.tailwindPrefix))continue;const t=e.split("-").slice(1).join("-");if(!y.some(e=>e.includes(t)))continue;const s=`var(--${e})`,i=e.split("-")[0]+"-",n=this.utilityGenerators[i];if(n){const e=n(t,s);for(let t=0;t<e.length;t++){const[i,n]=e[t];a.some(e=>{const t=this.parseClassName(e).baseClass;return t===i||t==="!"+i||t.startsWith("!")&&t.slice(1)===i})&&(d=[0,w,t,0],g(i,n));const r=new Set;for(const e of a){const t=this.parseClassName(e).baseClass;if(t.includes("/")){if(t.split("/")[0]===i){const e=t.split("/")[1];!isNaN(e)&&e>=0&&e<=100&&r.add(t)}}}for(const e of r){const i=`color-mix(in oklch, ${s} ${e.split("/")[1]}%, transparent)`,r=n.replace(s,i);d=[0,w,t,1],g(e,r)}}}}return p(i,l,c)}catch(e){return console.error("Error generating utilities:",e),""}};const i=new Set(["row","row-wrap","col","col-wrap","trailing"]),n={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},r={hidden:"none",block:"block","inline-block":"inline-block",inline:"inline",flex:"flex","inline-flex":"inline-flex",grid:"grid","inline-grid":"inline-grid",contents:"contents","flow-root":"flow-root","list-item":"list-item",table:"table","inline-table":"inline-table","table-caption":"table-caption","table-cell":"table-cell","table-column":"table-column","table-column-group":"table-column-group","table-footer-group":"table-footer-group","table-header-group":"table-header-group","table-row-group":"table-row-group","table-row":"table-row"};function a(e){const t=e.startsWith("max-"),s=t||e.startsWith("min-")?e.slice(4):e;return Object.prototype.hasOwnProperty.call(n,s)?{px:n[s],max:t}:null}function o(e){const t=a(e);return t.max?-t.px:t.px}const l=-1e6,c=new Set(["motion-safe","motion-reduce","contrast-more","contrast-less","prefers-reduced-motion","prefers-reduced-motion-no-preference","prefers-contrast","prefers-contrast-less","prefers-contrast-no-preference"]);function d(e){if(!e)return null;if(a(e))return o(e);const t=/^(min|max)-\[(.+)\]$/.exec(e);if(!t)return null;const s=/^(-?\d*\.?\d+)(px|rem|em)$/.exec(t[2].trim()),i=s?parseFloat(s[1])*("px"===s[2]?1:16):null;return"max"===t[1]?null===i?-1e5:-i:null===i?1e5:i}function h(e){let t=-1,s=0;const i=[];for(const n of e||[]){if(!n||"string"!=typeof n.selector||!n.selector.startsWith("@media"))continue;const e=d(n.name);null!==e?(i.push(e),t=Math.max(t,1)):(t=Math.max(t,c.has(n.name)?0:2),s++)}return i.sort((e,t)=>t-e),s=1===t?Math.min(s,1):0,[t<0?2:t,i.length?i[0]:l,i.length>1?i[1]:l,s]}function u(e,t,s){return(v(e)?[1].concat(t||[2,l,l,0]):[0,0,0,0,0]).concat(s)}function f(e){return e.slice().sort((e,t)=>C(e.key,t.key))}function p(e,t,s){const i=f(e);if(t)for(const e of i)t.push(e.rule),s.push(e.key);return i.map(e=>e.rule).join("\n")}function m(e){return e.includes("{")?e:e.split(";").map(e=>e.trim()).filter(e=>e&&!/^display\s*:/.test(e)).join("; ")}function g(e,t,s){return i.has(e)&&1===t.variants.length&&a(t.variants[0].name)?function(e){let t="",s=0;for(const i of e)"{"===i?s++:"}"===i?s=Math.max(0,s-1):0===s&&(t+=i);const i=t.match(/(?:^|[\s;])display\s*:\s*([^;!]+)/);return i?i[1].trim():null}(s):null}function y(e){const t=[];for(const s of e){const e=s.split(":");if(2!==e.length||!Object.prototype.hasOwnProperty.call(r,e[1]))continue;const i=a(e[0]);i&&t.push({cls:s,media:i.max?`@media (width < ${i.px}px)`:`@media (min-width: ${i.px}px)`,rank:o(e[0]),css:r[e[1]]})}return t}e.prototype.generateCustomUtilities=function(e){try{const t=[],i=new Set,{classes:n}=e,r=e.rulesOut,a=e.keysOut;let c=null;const d=(e,s,i)=>{t.push({rule:e,key:u(e,i,c.concat(s))})},f=[],w=e=>"string"!=typeof e?e:e.replace(/\[object Object\](;?\s*)/g,"").trim();if(0===this.customUtilities.size)return"";const v=e=>e.replace(/[^a-zA-Z0-9-]/g,"\\$&"),C=(e,t)=>{if(/&\s*[:\.\[{]/.test(e)||/&\s*\n\s*[:\.\[{]/.test(e)||/\]\s*&/.test(e)||/&\s*$/.test(e.split("\n").find(e=>e.trim().startsWith("&"))||""))return e;let s="",i=0,n=!1,r="",a=!1;for(;i<e.length;){const o=e[i],l=i+1<e.length?e[i+1]:"",c=i>0?e[i-1]:"";if('"'!==o&&"'"!==o||a)if(n)s+=o,i++;else if("/"!==o||"*"!==l)if(a){if("*"===o&&"/"===l){a=!1,s+=o,i++;continue}s+=o,i++}else{if("&"===o){const n=e.slice(i+1,Math.min(i+10,e.length));if(n.match(/^[:\.\[\+\>~,)]/)||n.match(/^\s+[:\.\[\+\>~,{]/)||""===n||"\n"===n[0]||"\n"===c&&(":"===n[0]||"."===n[0]||"["===n[0]||" "===n[0])){s+=t,i++;continue}}s+=o,i++}else a=!0,s+=o,i++;else n?o===r&&"\\"!==c&&(n=!1,r=""):(n=!0,r=o),s+=o,i++}return s},b=(e,t,r)=>{"string"!=typeof t&&(t="object"==typeof t&&t&&t.css?t.css:String(t));const a=n.filter(t=>{const s=t.split(":"),i=s[s.length-1];return i===e||i.startsWith("!")&&i.slice(1)===e});if(n.includes("!"+e)){const s=/\s!important/.test(t)?t:t.includes(";")?t.replace(/;/g," !important;"):t+" !important";let n;if(r&&r.selector)if(r.selector.includes(":where("))n=`.${v("!"+e)} { ${s} }`;else{const t=`.${v("!"+e)}`;let i=r.selector.replace(new RegExp(`\\.${e}(?=[^a-zA-Z0-9_-]|$)`),t);i===r.selector&&(i=`${r.selector}${t}`),n=`${i} { ${s} }`}else n=`.${v("!"+e)} { ${s} }`;i.has(n)||(d(n,1),i.add(n))}for(const n of a){if(n===e)continue;const a=this.parseClassName(n);if(a.unknown)continue;const l=a.important,c="string"==typeof t?t:t&&"object"==typeof t&&t.css?t.css:String(t);let u=l?c.includes(";")?c.replace(/;/g," !important;"):c+" !important":c,p=`.${v(n)}`,y=!1,w="";const b=[];let $=null;for(const e of a.variants)if(e.isArbitrary){let t=e.selector;t.startsWith("&")?(t=t.replace(/_/g," ").replace(/&/g,p),p=t):(t=t.replace(/_/g," "),p={baseClass:p,arbitrarySelector:t})}else e.selector.includes("&")?p=e.selector.replace(/&/g,p):e.selector.startsWith(":")?p=`${p}${e.selector}`:e.selector.startsWith("@")&&(y=!0,b.push(e.selector),w=b[0]);const S=!l&&!a.baseClass.startsWith("!")&&"string"==typeof p&&g(e,a,c);if(S){f.push({cls:n,media:w,rank:o(a.variants[0].name),css:S});const e=m(c);if(!e)continue;u=e}let x,E,A="string"==typeof u?u:String(u);if(A=A.replace(/\[object Object\](;?\s*)/g,"").trim(),"object"==typeof p&&p.arbitrarySelector)x=`${p.baseClass} {\n ${p.arbitrarySelector} {\n ${A}\n }\n}`;else if($){const t=r&&void 0!==r.fullBlock?r.fullBlock:A.includes("@starting-style")||A.includes("@media")||A.includes("@supports")||A.includes("{")&&A.includes("}");if(r&&r.selector)if(r.selector.includes(":where("))if(t){x=`${p} {\n ${$} {\n${C(A,p)}\n }\n}`}else x=`${p} {\n ${$} {\n ${A}\n }\n}`;else{const s=new RegExp(`\\.${e}(?=[^a-zA-Z0-9_-]|$)`);let i=r.selector.replace(s,p);if(i===r.selector&&(i=`${r.selector}${p}`),t){x=`${i} {\n ${$} {\n${C(A,i)}\n }\n}`}else x=`${i} {\n ${$} {\n ${A}\n }\n}`}else if(t){x=`${p} {\n ${$} {\n${C(A,p)}\n }\n}`}else x=`${p} {\n ${$} {\n ${A}\n }\n}`}else{const t=r&&void 0!==r.fullBlock?r.fullBlock:A.includes("@starting-style")||A.includes("@media")||A.includes("@supports")||A.includes("{")&&A.includes("}");if(r&&r.selector)if(r.selector.includes(":where("))if(t){x=`${p} {\n${C(A,p)}\n}`}else x=`${p} { ${A} }`;else{const s=new RegExp(`\\.${e}(?=[^a-zA-Z0-9_-]|$)`);let i=r.selector.replace(s,p);if(i===r.selector&&(i=`${r.selector}${p}`),t){x=`${i} {\n${C(A,i)}\n}`}else x=`${i} { ${A} }`}else if(t){x=`${p} {\n${C(A,p)}\n}`}else x=`${p} { ${A} }`}E=y?"string"==typeof x&&x.trim().startsWith("@media")?x:s(b,x):x,i.has(E)||(d(E,2,h(a.variants)),i.add(E))}};let $=-1;for(const[e,t]of this.customUtilities.entries()){$++;const s=e.startsWith("!")?e.slice(1):e;if(n.some(t=>{const i=this.parseClassName(t).baseClass;return i===e||i===s||i==="!"+s||i.startsWith("!")&&i.slice(1)===s})){let e=t;if("string"==typeof t)e=w(t);else if(Array.isArray(t));else if(t&&t.css){e=w("string"==typeof t.css?t.css:t.css&&"object"==typeof t.css&&t.css.css?t.css.css:String(t.css))}else e=w(String(t));if("string"==typeof t)c=[1,$,0,0],b(s,e,null);else if(Array.isArray(t))for(let e=0;e<t.length;e++){const i=t[e];if(c=[1,$,e,0],i&&i.css&&i.selector){const e=w("string"==typeof i.css?i.css:i.css&&"object"==typeof i.css&&i.css.css?i.css.css:String(i.css));b(s,e,{selector:i.selector,fullBlock:i.fullBlock||!1})}}else if(t&&t.css&&t.selector){const e=w("string"==typeof t.css?t.css:t.css&&"object"==typeof t.css&&t.css.css?t.css.css:String(t.css));c=[1,$,0,0],b(s,e,{selector:t.selector,fullBlock:t.fullBlock||!1})}}}if(f.length){const e=new Set(f.map(e=>e.cls)),t=f.concat(y(n).filter(t=>!e.has(t.cls)));t.sort((e,t)=>e.rank-t.rank||(e.cls<t.cls?-1:e.cls>t.cls?1:0));for(const e of t){const t=`.${v(e.cls)}`,s=`${e.media} { ${t}${t} { display: ${e.css} } }`;i.has(s)||(i.add(s),c=[2,0,0,0],d(s,2,[1,e.rank,l,0]))}}return p(t,r,a)}catch(e){return console.error("Error generating custom utilities:",e),""}},e.prototype.generateOrderedUtilities=function(e,t){const s=Object.assign({},t,{rulesOut:[],keysOut:[]});return this.generateUtilitiesFromVars(e,s),this.generateCustomUtilities(s),f(s.rulesOut.map((e,t)=>({rule:e,key:s.keysOut[t]})))},e.prototype.orderedUtilitiesCss=function(e){return e.map(e=>e.rule).join("\n\n")};const w=e=>`@layer utilities {\n${e.entries.map(e=>e.rule).join("\n\n")}\n}`,v=e=>e.trim().startsWith("@media");function C(e,t){for(let s=0;s<e.length;s++)if(e[s]!==t[s])return e[s]-t[s];return 0}function b(e){const t=[];let s=0,i="";for(const n of e)"["===n?s++:"]"===n&&s--,":"===n&&0===s?(t.push(i),i=""):i+=n;return t}function $(e){return b(e).length>0}function S(){try{const e=!1!==navigator.onLine;if(document.documentElement.setAttribute("data-online",e?"true":"false"),window.Alpine&&"function"==typeof window.Alpine.store){const t=window.Alpine.store("device");t&&(t.online=e)}}catch(e){}}e.prototype.generateKeyedUtilities=function(e,t){return this.generateOrderedUtilities(e,{classes:t,variableSuffixes:[]})},e.prototype.utilitiesLayerRule=function(){const e=this.styleElement&&this.styleElement.sheet;if(!e||"undefined"==typeof CSSLayerBlockRule)return null;try{for(const t of e.cssRules)if(t instanceof CSSLayerBlockRule&&"utilities"===t.name)return t}catch(e){}return null},e.prototype.entriesMatchSheet=function(e){const t=this.utilitiesLayerRule();if(!t||t.cssRules.length!==e.length)return!1;for(let s=0;s<e.length;s++)if(t.cssRules[s]instanceof CSSMediaRule!=!!e[s].key[0])return!1;return!0},e.prototype.recordAppliedUtilities=function(e,t,s){this._applied=null,!0!==window.__manifestRender&&this.entriesMatchSheet(e)&&(this._applied={themeKey:this.lastThemeKey,themeCss:t,entries:e,rules:new Set(e.map(e=>e.rule)),classes:new Set(s),dirty:!1})},e.prototype.resyncUtilitiesText=function(){const e=this._applied;e&&e.dirty&&(e.dirty=!1,this.styleElement.textContent=w(e),this.entriesMatchSheet(e.entries)||(this._applied=null))},e.prototype.canCompileDelta=function(){return!!this._applied&&!0!==window.__manifestRender&&!!this.utilitiesLayerRule()},e.prototype.compileDelta=function(e){const t=this._applied,s=[];for(const e of this.dynamicClassCache)t.classes.has(e)||s.push(e);const i=this.filterStaticallyCoveredClasses(s);if(y(i).length)return!1;const n=i.length?this.generateKeyedUtilities(e,i).filter(e=>!t.rules.has(e.rule)):[];if(n.some(e=>2===e.key[5]))return!1;const r=t.entries,a=[];for(const e of n){let t=0,s=r.length;for(;t<s;){const i=t+s>>1;C(r[i].key,e.key)<=0?t=i+1:s=i}const i=e.key.length-1;if(2===e.key[i]){const s=t=>t&&0===C(t.key.slice(0,i),e.key.slice(0,i))&&2===t.key[i];if(s(r[t-1])||s(r[t])||a.some(e=>s(e.e)))return!1}a.push({e:e,at:t})}for(const e of s)t.classes.add(e);if(!a.length)return!0;const o=this.utilitiesLayerRule();try{a.sort((e,t)=>C(e.e.key,t.e.key)),a.forEach((e,s)=>{o.insertRule(e.e.rule,e.at+s),r.splice(e.at+s,0,e.e),t.rules.add(e.e.rule)})}catch(e){return this._applied=null,!1}return t.dirty=!0,this.schedulePersistentSave(e),!0},e.prototype.schedulePersistentSave=function(e){clearTimeout(this._persistTimer);const t=()=>{if(!this._applied)return;const t=Array.from(this.dynamicClassCache).sort().join(","),s=this.generateThemeHash(e);this.cache.set(`${t}-${s}`,{css:w(this._applied),timestamp:Date.now(),themeHash:s}),this.savePersistentCache()};this._persistTimer=setTimeout(window.ManifestPending?.background?.(t)??t,1e3)},e.prototype.filterCriticalUtilities=function(e,t){if(!e||!t)return"";const s=t.match(/\.([a-zA-Z0-9_:!\\-]+)\s*{/g)||[],i=new Set;for(const e of s){const t=e.replace(/^\./,"").replace(/\s*{.*$/,"").replace(/\\/g,""),s=t.split(":"),n=s.length>1?s[s.length-1]:t,r=n.startsWith("!")?n.slice(1):n;i.add(r)}const n=e.split("\n"),r=[];let a=!1,o="",l="";for(const e of n){const t=e.match(/^\.([a-zA-Z0-9_:!\\-]+)\s*{/);if(t){if(o){const e=l.replace(/\\/g,"").split(":").pop().replace(/^!/,"");i.has(e)||r.push(o)}l=t[1],o=e,a=!0}else if(a){if(o+="\n"+e,"}"===e.trim()){const e=l.replace(/\\/g,"").split(":").pop().replace(/^!/,"");i.has(e)||r.push(o),o="",l="",a=!1}}else r.push(e)}if(o){const e=l.replace(/\\/g,"").split(":").pop().replace(/^!/,"");i.has(e)||r.push(o)}return r.join("\n").trim()},e.prototype.clearStaleUtilityPatches=function(){this.staticUtilitiesCoveredClasses&&(this._applied=null,this.styleElement&&(this.styleElement.textContent=""),this.criticalStyleElement&&this.criticalStyleElement.parentNode&&(this.criticalStyleElement.parentNode.removeChild(this.criticalStyleElement),this.criticalStyleElement=null))},e.prototype.compile=async function(){if(this.usesStaticPrerenderUtilities)return void(window.__manifestUtilitiesReady||(window.__manifestUtilitiesReady=!0,window.dispatchEvent(new CustomEvent("manifest:utilities-ready"))));performance.now();try{const e=Date.now();if(e-this.lastCompileTime<this.minCompileInterval||this.isCompiling)return void(this._retryQueued||(this._retryQueued=!0,window.__manifestUtilitiesPending=(window.__manifestUtilitiesPending||0)+1,setTimeout(()=>{this._retryQueued=!1,window.__manifestUtilitiesPending=Math.max(0,(window.__manifestUtilitiesPending||1)-1),this.compile()},this.minCompileInterval+50)));if(this.lastCompileTime=e,this.isCompiling=!0,this.quietClasses.clear(),window.__manifestUtilitiesPending=(window.__manifestUtilitiesPending||0)+1,this._compileCounted=!0,!this.hasScannedStatic){await this.scanStaticClasses(),this.staticUtilitiesReady&&await this.staticUtilitiesReady;const e=await this.fetchThemeContent();if(e){const t=this.extractCustomUtilities(e);for(const[e,s]of t.entries())this.customUtilities.set(e,s);const s=this.extractThemeVariables(e);for(const[e,t]of s.entries())this.currentThemeVars.set(e,t);const i={classes:this.filterStaticallyCoveredClasses(Array.from(this.staticClassCache)),variableSuffixes:[]};for(const e of this.staticClassCache){const t=e.split(":"),s=t[t.length-1].split("-");s.length>1&&i.variableSuffixes.push(s.slice(1).join("-"))}const n=this.orderedUtilitiesCss(this.generateOrderedUtilities(e,i));if(n){const t=`@layer utilities {\n${n}\n}`;this.styleElement.textContent=t,this.ensureUtilityStylesLast(),this.scheduleEnsureUtilityStylesLast(),requestAnimationFrame(()=>{requestAnimationFrame(()=>{this.criticalStyleElement&&this.criticalStyleElement.parentNode&&(this.criticalStyleElement.parentNode.removeChild(this.criticalStyleElement),this.criticalStyleElement=null),this.ensureUtilityStylesLast()})}),this.lastClassesHash=i.classes.sort().join(",");const s=this.generateThemeHash(e),r=`${this.lastClassesHash}-${s}`;this.cache.set(r,{css:t,timestamp:Date.now(),themeHash:s}),this.savePersistentCache()}else this.clearStaleUtilityPatches()}return this.hasInitialized=!0,void(this.isCompiling=!1)}let t=null;if(this.canCompileDelta()&&(t=await this.fetchThemeContent(),t&&this.lastThemeKey===this._applied.themeKey&&this.compileDelta(this._applied.themeCss)))return;const s=this.getUsedClasses(),i=Array.from(this.dynamicClassCache),n=i.sort().join(",");if(n!==this.lastClassesHash||!this.hasInitialized){const e=t||await this.fetchThemeContent();if(!e)return void(this.isCompiling=!1);const r=this.extractCustomUtilities(e);for(const[e,t]of r.entries())this.customUtilities.set(e,t);const a=this.extractThemeVariables(e);let o=!1;for(const[e,t]of a.entries()){this.currentThemeVars.get(e)!==t&&(o=!0,this.currentThemeVars.set(e,t))}if(o||n!==this.lastClassesHash){const t=this.generateOrderedUtilities(e,s),r=this.orderedUtilitiesCss(t);if(r){const s=`@layer utilities {\n${r}\n}`;this.styleElement.textContent=s,this.ensureUtilityStylesLast(),this.scheduleEnsureUtilityStylesLast(),requestAnimationFrame(()=>{requestAnimationFrame(()=>{this.criticalStyleElement&&this.criticalStyleElement.parentNode&&(this.criticalStyleElement.parentNode.removeChild(this.criticalStyleElement),this.criticalStyleElement=null),this.ensureUtilityStylesLast()})}),this.lastClassesHash=n,this.recordAppliedUtilities(t,e,i),this.dynamicClassCache.size>i.length&&this.compile();const a=this.generateThemeHash(e),o=`${this.lastClassesHash}-${a}`;this.cache.set(o,{css:s,timestamp:Date.now(),themeHash:a}),this.savePersistentCache()}else this.clearStaleUtilityPatches()}else this._applied=null}}catch(e){console.error("[Manifest Utilities] Error compiling Tailwind CSS:",e)}finally{this.isCompiling=!1,this._compileCounted&&(this._compileCounted=!1,window.__manifestUtilitiesPending=Math.max(0,(window.__manifestUtilitiesPending||1)-1),window.__manifestUtilitiesPending||window.dispatchEvent(new CustomEvent("manifest:utilities-idle"))),window.__manifestUtilitiesReady||(window.__manifestUtilitiesReady=!0,window.dispatchEvent(new CustomEvent("manifest:utilities-ready")))}},e.prototype.findStaticUtilitiesElement=function(){try{return document.querySelector('link[rel="stylesheet"][data-mnfst-utilities], style[data-mnfst-utilities]')}catch(e){return null}},e.prototype.findStaticUtilitiesElements=function(){try{return Array.from(document.querySelectorAll('link[rel="stylesheet"][data-mnfst-utilities], style[data-mnfst-utilities], link[rel="stylesheet"][href*="prerender.tailwind.css"], link[rel="stylesheet"][href*="prerender.utilities.css"]'))}catch(e){return[]}},e.prototype.hasShippedUtilitiesSheet=function(){return this.findStaticUtilitiesElements().length>0},e.prototype.extractSelectorsFromCssText=function(e){const t=[],s=e.length;let i=0;for(;i<s;){if(" "===e[i]||"\n"===e[i]||"\r"===e[i]||"\t"===e[i]){i++;continue}for(;i<s&&/\s/.test(e[i]);)i++;if(i>=s)break;if("/"===e[i]&&"*"===e[i+1]){const t=e.indexOf("*/",i+2);i=-1===t?s:t+2;continue}if("@"===e[i]){let n=i;for(;n<s&&"{"!==e[n]&&";"!==e[n];)n++;if(n>=s||";"===e[n]){i=n+1;continue}i=n+1;let r=1;const a=i;for(;i<s&&r>0;)"{"===e[i]?r++:"}"===e[i]&&r--,i++;t.push(...this.extractSelectorsFromCssText(e.slice(a,i-1)));continue}const n=i;for(;i<s&&"{"!==e[i]&&"}"!==e[i];)i++;if(i>=s||"}"===e[i]){i++;continue}const r=e.slice(n,i).trim();i++;let a=1;for(;i<s&&a>0;)"{"===e[i]?a++:"}"===e[i]&&a--,i++;r&&t.push(r)}return t},e.prototype.unescapeClassToken=function(e){return e.replace(/\\([0-9a-fA-F]{1,6}) ?|\\(.)/g,(e,t,s)=>t?String.fromCodePoint(parseInt(t,16)):s)},e.prototype.classNamesFromCssText=function(e){const t=new Set,s=/\.((?:\\[0-9a-fA-F]{1,6} ?|\\.|[a-zA-Z0-9_-])+)/g;for(const i of this.extractSelectorsFromCssText(e)){let e;for(s.lastIndex=0;null!==(e=s.exec(i));)t.add(this.unescapeClassToken(e[1]))}return t},e.prototype.readStaticUtilitiesRules=function(e){try{const t=Array.from(document.styleSheets).find(t=>t.ownerNode===e),s=t&&t.cssRules;if(s&&s.length>0){const e=Array.from(s).map(e=>e.cssText).join("\n");return this.classNamesFromCssText(e)}}catch(e){}return null},e.prototype.detectStaticUtilitiesSheet=function(){this.staticUtilitiesCoveredClasses=null;const e=this.findStaticUtilitiesElements();if(!e.length)return Promise.resolve();const t=e=>{if(e){this.staticUtilitiesCoveredClasses||(this.staticUtilitiesCoveredClasses=new Set);for(const t of e)this.staticUtilitiesCoveredClasses.add(t)}};return Promise.all(e.map(e=>{if("STYLE"===e.tagName)return t(this.classNamesFromCssText(e.textContent||"")),null;const s=this.readStaticUtilitiesRules(e);return s?(t(s),null):new Promise(s=>{let i=!1;const n=()=>{i||(i=!0,clearTimeout(o),e.removeEventListener("load",r),e.removeEventListener("error",a),t(this.readStaticUtilitiesRules(e)),s())},r=()=>n(),a=()=>n(),o=setTimeout(n,2e3);e.addEventListener("load",r,{once:!0}),e.addEventListener("error",a,{once:!0})})})).then(()=>{})},e.prototype.loadUtilitiesSafelist=async function(){this.safelistClasses=new Set,this.safelistPatterns=[];try{let e=window.__manifestLoaded||null;!e&&window.__manifestPromise&&(e=await window.__manifestPromise);const t=e&&"object"==typeof e?e.utilities:null;if(t&&Array.isArray(t.safelist))for(const e of t.safelist)"string"==typeof e&&e&&this.safelistClasses.add(e);if(t&&Array.isArray(t.patterns))for(const e of t.patterns)if("string"==typeof e)try{this.safelistPatterns.push(new RegExp(e))}catch(e){}}catch(e){}},e.prototype.isClassSafelisted=function(e){if(this.safelistClasses&&this.safelistClasses.has(e))return!0;if(this.safelistPatterns)for(const t of this.safelistPatterns)if(t.test(e))return!0;return!1},e.prototype.isClassCovered=function(e){const t=this.staticUtilitiesCoveredClasses;return!(!t||!t.has(e))||this.isClassSafelisted(e)},e.prototype.hasSafelistEntries=function(){return!!(this.safelistClasses&&this.safelistClasses.size||this.safelistPatterns&&this.safelistPatterns.length)},e.prototype.filterStaticallyCoveredClasses=function(e){const t=this.staticUtilitiesCoveredClasses;if(!(t&&0!==t.size||this.hasSafelistEntries()))return e;const s=e.filter(e=>!this.isClassCovered(e));if(!this.bareClassesEmitRules(s.filter(e=>!$(e))))return s;const i=new Set(s),n=[e,this.staticClassCache||[],this.dynamicClassCache||[]];for(const e of n)for(const t of e)this.isAtRuleVariantClass(t)&&i.add(t);return Array.from(i)},e.prototype.bareClassesEmitRules=function(e){if(!e.length)return!1;const t=this.lastThemeCss;if(!t)return!0;try{const s={classes:e,variableSuffixes:[]};return!(!(this.generateUtilitiesFromVars(t,s)||"").trim()&&!(this.generateCustomUtilities(s)||"").trim())}catch(e){return!0}},e.prototype.isAtRuleVariantClass=function(e){const t=b(e.replace(/^!/,""));return!!t.length&&t.every(e=>{const t=this.variants&&this.variants[e];return t?t.startsWith("@"):e.startsWith("@")||/^(min-|max-)?(sm|md|lg|xl|2xl)$/.test(e)||/^(min|max)-\[.+\]$/.test(e)})},e.prototype.stripCoveredRulesFromCss=function(e){const t=this.staticUtilitiesCoveredClasses;if(!e||(!t||0===t.size)&&!this.hasSafelistEntries())return e;const s=e=>{const t=[],r=e.length;let a=0;for(;a<r;){if(" "===e[a]||"\n"===e[a]||"\r"===e[a]||"\t"===e[a]){t.push(e[a]),a++;continue}const o=a;for(;a<r&&/\s/.test(e[a]);)a++;if(a>o&&t.push(e.slice(o,a)),a>=r)break;if("/"===e[a]&&"*"===e[a+1]){const s=e.indexOf("*/",a+2),i=-1===s?r:s+2;t.push(e.slice(a,i)),a=i;continue}if("@"===e[a]){let i=a;for(;i<r&&"{"!==e[i]&&";"!==e[i];)i++;if(i>=r||";"===e[i]){t.push(e.slice(a,i+1)),a=i+1;continue}const n=e.slice(a,i+1);a=i+1;let o=1;const l=a;for(;a<r&&o>0;)"{"===e[a]?o++:"}"===e[a]&&o--,a++;t.push(`${n}${s(e.slice(l,a-1))}}`);continue}const l=a;for(;a<r&&"{"!==e[a]&&"}"!==e[a];)a++;if(a>=r||"}"===e[a]){a++;continue}const c=e.slice(l,a).trim(),d=a;a++;let h=1;for(;a<r&&h>0;)"{"===e[a]?h++:"}"===e[a]&&h--,a++;const u=c+e.slice(d,a),f=[],p=/\.((?:\\[0-9a-fA-F]{1,6} ?|\\.|[a-zA-Z0-9_-])+)/g;let m;for(;null!==(m=p.exec(c));)f.push(this.unescapeClassToken(m[1]));const g=f.length>0&&f.every(e=>this.isClassCovered(e)),y=f.some(e=>this.isAtRuleVariantClass(e));g?i&&y&&t.push(u):(t.push(u),f.length>0&&!f.some($)&&(n=!0))}return t.join("\n")};let i=!1,n=!1;const r=s(e);return n?(i=!0,s(e)):r},e.prototype.tailwindEngineWasSkipped=function(){try{if(!document.querySelector('script[src*="manifest.js"][data-tailwind]'))return!1;const e=this.findStaticUtilitiesElement();return!(!e||!e.hasAttribute("data-mnfst-utilities-complete"))}catch(e){return!1}},e.prototype.setupUncoveredClassWatcher=function(){if(this.usesStaticPrerenderUtilities)return;if(!this.tailwindEngineWasSkipped())return;if(window.__mnfstTailwindWatcherArmed)return;window.__mnfstTailwindWatcherArmed=!0;let e=new Set,t=!1,s=null;const i=t=>{const s=t.getAttribute&&t.getAttribute("class");if(s)for(const t of s.split(/\s+/))t&&!this.isClassCovered(t)&&e.add(t)},n=this.debounce(()=>{if(t||0===e.size)return;const i=Array.from(e).sort();e=new Set,t=!0,console.warn("[Manifest Utilities] Uncovered utility class(es) — loading the Tailwind engine:",i.join(", ")),window.Manifest.loadPlugin("tailwind").then(()=>{s&&s.disconnect(),window.dispatchEvent(new CustomEvent("manifest:utilities-uncovered",{detail:{classes:i,engineLoaded:!0}}))}).catch(e=>{t=!1,console.error("[Manifest Utilities] Failed to load the Tailwind engine:",e),window.dispatchEvent(new CustomEvent("manifest:utilities-uncovered",{detail:{classes:i,engineLoaded:!1}}))})},this.options.debounceTime||50);s=new MutationObserver(t=>{for(const e of t)if("attributes"===e.type)e.target.nodeType===Node.ELEMENT_NODE&&i(e.target);else if("childList"===e.type)for(const t of e.addedNodes)if(t.nodeType===Node.ELEMENT_NODE&&(i(t),t.querySelectorAll))for(const e of t.querySelectorAll("[class]"))i(e);e.size>0&&n()}),s.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class"]}),this.uncoveredClassObserver=s;for(const e of document.querySelectorAll("[class]"))i(e);e.size>0&&n()},e.prototype.setupComponentLoadListener=function(){const e=this.debounce(()=>this.compile(),this.options.debounceTime),t=()=>{this.hasScannedStatic||(this.staticScanPromise=null,this.hasScannedStatic=!1),e()};document.addEventListener("manifest:component-loaded",t),document.addEventListener("manifest:components-processed",t),document.addEventListener("manifest:components-ready",t),document.addEventListener("manifest:components-processed",t),document.addEventListener("manifest:components-ready",t),document.addEventListener("manifest:route-change",t=>{this.hasScannedStatic&&setTimeout(()=>{const t=this.dynamicClassCache.size,s=this.lastClassesHash,i=(this.getUsedClasses(),this.dynamicClassCache.size),n=Array.from(this.dynamicClassCache),r=n.sort().join(",");if(i>t&&r!==s){n.filter(e=>!(e.includes("hljs")||e.startsWith("language-")||e.includes("copy")||e.includes("lines"))).length>0&&e()}},300)});new MutationObserver(t=>{let s=!1;for(const e of t)if("attributes"===e.type){if(this.ignoredAttributes.includes(e.attributeName)||"class"!==e.attributeName)continue;e.target.nodeType===Node.ELEMENT_NODE&&this.collectNewClasses(e.target)&&(s=!0)}else if("childList"===e.type)for(const t of e.addedNodes){if(t.nodeType!==Node.ELEMENT_NODE)continue;const e=this.ignoredElementSelectors.some(e=>t.tagName?.toLowerCase()===e.toLowerCase()||t.closest(e));this.collectSubtreeClasses(t,e)?s=!0:s||e||this.hasInitialized||!this.isSignificantNode(t)||(s=!0)}s&&e()}).observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class"]})},e.prototype.collectNewClasses=function(e,t){if(!e.getAttribute)return!1;const s=e.getAttribute("class");let i=!!s&&this.recordClasses(s.split(/\s+/),t);const n=e.getAttribute(":class")||e.getAttribute("x-bind:class");return n&&this.recordClasses(this.bindingClasses(n),t)&&(i=!0),i},e.prototype.bindingClasses=function(e){this._bindingClasses||(this._bindingClasses=new Map);let t=this._bindingClasses.get(e);if(!t){const s=new Set;this.collectBindingClasses(e,s),t=Array.from(s),this._bindingClasses.size>500&&this._bindingClasses.clear(),this._bindingClasses.set(e,t)}return t},e.prototype.recordClasses=function(e,t){let s=!1;for(const i of e)i&&!this.staticClassCache.has(i)&&(this.dynamicClassCache.has(i)?!t&&this.quietClasses.delete(i)&&(s=!0):this.ignoredClassPatterns.some(e=>e.test(i))||(this.dynamicClassCache.add(i),t?this.quietClasses.add(i):s=!0));return s},e.prototype.collectSubtreeClasses=function(e,t){let s=this.collectNewClasses(e,t);const i=e.getElementsByTagName?e.getElementsByTagName("*"):[];for(let e=0;e<i.length;e++)this.collectNewClasses(i[e],t)&&(s=!0);return s},e.prototype.isSignificantNode=function(e){return this.significantChangeSelectors.some(t=>{try{return e.matches?.(t)||e.querySelector?.(t)}catch(e){return!1}})},e.prototype.startProcessing=async function(){if(!this.usesStaticPrerenderUtilities)try{await this.compile(),this.hasInitialized=!0}catch(e){console.error("Error starting Tailwind compiler:",e)}},function(){try{const e=document.documentElement;if(!e)return;if((window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches||!0===window.navigator.standalone)&&!e.hasAttribute("data-standalone")&&e.setAttribute("data-standalone",""),!e.hasAttribute("data-native")){const t=window.Capacitor;!(!t||"function"==typeof t.isNativePlatform&&!t.isNativePlatform())&&e.setAttribute("data-native","")}e.setAttribute("data-online",!1===navigator.onLine?"false":"true")}catch(e){}}(),window.addEventListener("online",S),window.addEventListener("offline",S);let x=!1;function E(){x||window.Alpine&&"function"==typeof window.Alpine.magic&&"function"==typeof window.Alpine.store&&(x=!0,function(){const e=document.documentElement;window.Alpine.store("device",{online:!1!==navigator.onLine}),window.Alpine.magic("device",()=>({get os(){return e.getAttribute("data-os")||""},get touch(){return(navigator.maxTouchPoints||0)>1||window.matchMedia&&window.matchMedia("(pointer: coarse)").matches||!1},get online(){const e=window.Alpine.store("device");return e?!1!==e.online:!1!==navigator.onLine},get standalone(){return e.hasAttribute("data-standalone")||!!window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches||!0===window.navigator.standalone},get native(){return e.hasAttribute("data-native")},get platform(){return e.getAttribute("data-platform")||(e.hasAttribute("data-native")?e.getAttribute("data-os")||"native":"web")}}))}())}if(window.ensureManifestDeviceInitialized=E,document.addEventListener("alpine:init",E),window.Alpine&&"function"==typeof window.Alpine.magic)setTimeout(E,0);else{const e=setInterval(()=>{window.Alpine&&"function"==typeof window.Alpine.magic&&(clearInterval(e),E())},10);setTimeout(()=>clearInterval(e),5e3)}!function(){try{const e=document.documentElement;if(!e||e.getAttribute("data-os"))return;const t=navigator.userAgent||"",s=navigator.userAgentData&&navigator.userAgentData.platform||navigator.platform||"",i=(navigator.maxTouchPoints||0)>1;let n="";/Android/i.test(t)?n="android":/iPhone|iPad|iPod/i.test(t)||/Mac/i.test(s)&&i?n="ios":/Mac/i.test(s)||/Mac OS X/i.test(t)?n="macos":/Win/i.test(s)||/Windows/i.test(t)?n="windows":(/Linux|X11|CrOS/i.test(s)||/Linux/i.test(t))&&(n="linux"),n&&e.setAttribute("data-os",n)}catch(e){}}(),function(){try{if(document.getElementById("manifest-tailwind-variants"))return;const e=Array.from(document.querySelectorAll('style[type="text/tailwindcss"]')).some(e=>/@custom-variant\s+dark[\s({]/.test(e.textContent||"")),t=document.createElement("style");t.id="manifest-tailwind-variants",t.setAttribute("type","text/tailwindcss"),t.textContent=["@custom-variant touch (@media (pointer: coarse));","@custom-variant cursor (@media (pointer: fine) and (hover: hover));","@custom-variant pointer (@media (any-pointer: fine));",'@custom-variant mac (&:where([data-os="macos"] *));','@custom-variant windows (&:where([data-os="windows"] *));','@custom-variant linux (&:where([data-os="linux"] *));','@custom-variant ios (&:where([data-os="ios"] *));','@custom-variant android (&:where([data-os="android"] *));','@custom-variant apple (&:where([data-os="macos"] *, [data-os="ios"] *));','@custom-variant online (&:where([data-online="true"] *));','@custom-variant offline (&:where([data-online="false"] *));',"@custom-variant standalone (&:where([data-standalone] *));","@custom-variant native (&:where([data-native] *));","@custom-variant web (&:where(html:not([data-native]) *));",...e?[]:["@custom-variant dark (&:where(.dark, .dark *));"]].join("\n"),(document.head||document.documentElement).appendChild(t)}catch(e){}}();const A=window.ManifestUtilities,k=A&&A.styleElement&&A.styleElement.isConnected?A:new e;if(window.ManifestUtilities=k,"loading"===document.readyState&&document.addEventListener("DOMContentLoaded",()=>{}),"PerformanceObserver"in window)try{new PerformanceObserver(e=>{for(const t of e.getEntries());}).observe({entryTypes:["paint"]})}catch(e){}k.__mnfstDomReadyBound||(k.__mnfstDomReadyBound=!0,document.addEventListener("DOMContentLoaded",()=>{k.usesStaticPrerenderUtilities||k.isCompiling||k.compile()}))}();
|
|
1
|
+
!function(){class e{constructor(e={}){if(this.usesStaticPrerenderUtilities=function(){if("undefined"==typeof document)return!1;try{if(!document.querySelector('meta[name="manifest:prerendered"][content="1"]'))return!1;for(const e of document.querySelectorAll('link[rel="stylesheet"][href]'))if((e.getAttribute("href")||"").toLowerCase().includes("prerender.utilities.css"))return!0}catch(e){return!1}return!1}(),this.usesStaticPrerenderUtilities)return this.debug=!0===e.debug,this.startTime=performance.now(),this.options={rootSelector:e.rootSelector||":root",themeSelector:e.themeSelector||"@theme",debounceTime:e.debounceTime||50,maxCacheAge:e.maxCacheAge||864e5,debug:!1!==e.debug,...e},this.criticalStyleElement=null,this.styleElement=null,this.tailwindLink=null,this.observer=null,this.isCompiling=!1,this.compileTimeout=null,this.cache=new Map,this.hasInitialized=!0,this.staticUtilitiesCoveredClasses=null,this.ignoredClassPatterns=[/^hljs/,/^language-/,/^copy$/,/^copied$/,/^lines$/,/^selected$/],this.ignoredElementSelectors=["pre","code","x-code","x-code-group"],void(this.significantChangeSelectors=["[data-component]","[x-data]"]);this.debug=!0===e.debug,this.startTime=performance.now();performance.now();if(this.criticalStyleElement=document.createElement("style"),this.criticalStyleElement.id="manifest-styles-critical",document.head)document.head.firstChild?document.head.insertBefore(this.criticalStyleElement,document.head.firstChild):document.head.appendChild(this.criticalStyleElement);else{const e=setInterval(()=>{document.head&&(clearInterval(e),document.head.firstChild?document.head.insertBefore(this.criticalStyleElement,document.head.firstChild):document.head.appendChild(this.criticalStyleElement))},1)}this.options={rootSelector:e.rootSelector||":root",themeSelector:e.themeSelector||"@theme",debounceTime:e.debounceTime||50,maxCacheAge:e.maxCacheAge||864e5,debug:!1!==e.debug,...e},this.regexPatterns={root:new RegExp(`${this.options.rootSelector}\\s*{([^}]*)}`,"g"),theme:new RegExp(`${this.options.themeSelector}\\s*{([^}]*)}`,"g"),variable:/--([\w-]+):\s*([^;]+);/g,tailwindPrefix:/^(color|font|text|font-weight|tracking|leading|breakpoint|container|spacing|radius|shadow|inset-shadow|drop-shadow|blur|perspective|aspect|ease|animate|border-width|border-style|outline|outline-width|outline-style|ring|ring-offset|divide|accent|caret|decoration|placeholder|selection|scrollbar)-/};const t={"color-":(e,t)=>{const s=[],i=(t,i,n)=>{s.push([`${t}-${e}`,`${i}: ${n}`])};return i("text","color",t),i("bg","background-color",t),i("border","border-color",t),i("outline","outline-color",t),i("ring","box-shadow",`0 0 0 1px ${t}`),i("fill","fill",t),i("stroke","stroke",t),i("decoration","text-decoration-color",t),i("accent","accent-color",t),i("caret","caret-color",t),s.push([`from-${e}`,`--tw-gradient-from: ${t}; --tw-gradient-stops: var(--tw-gradient-via-stops)`]),s.push([`via-${e}`,`--tw-gradient-via: ${t}; --tw-gradient-stops: var(--tw-gradient-via-stops)`]),s.push([`to-${e}`,`--tw-gradient-to: ${t}; --tw-gradient-stops: var(--tw-gradient-via-stops)`]),s},"font-":(e,t)=>[[`font-${e}`,`font-family: ${t}`]],"text-":(e,t)=>[[`text-${e}`,`font-size: ${t}`]],"font-weight-":(e,t)=>[[`font-${e}`,`font-weight: ${t}`]],"tracking-":(e,t)=>[[`tracking-${e}`,`letter-spacing: ${t}`]],"leading-":(e,t)=>[[`leading-${e}`,`line-height: ${t}`]],"breakpoint-":(e,t)=>[[`@${e}`,`@media (min-width: ${t})`]],"container-":(e,t)=>[[`container-${e}`,`max-width: ${t}`],[`@container-${e}`,`@container (min-width: ${t})`]],"spacing-":(e,t)=>[[`gap-${e}`,`gap: ${t}`],[`p-${e}`,`padding: ${t}`],[`px-${e}`,`padding-left: ${t}; padding-right: ${t}`],[`py-${e}`,`padding-top: ${t}; padding-bottom: ${t}`],[`m-${e}`,`margin: ${t}`],[`mx-${e}`,`margin-left: ${t}; margin-right: ${t}`],[`my-${e}`,`margin-top: ${t}; margin-bottom: ${t}`],[`space-x-${e}`,`> * + * { margin-left: ${t}; }`],[`space-y-${e}`,`> * + * { margin-top: ${t}; }`],[`max-w-${e}`,`max-width: ${t}`],[`max-h-${e}`,`max-height: ${t}`],[`min-w-${e}`,`min-width: ${t}`],[`min-h-${e}`,`min-height: ${t}`],[`w-${e}`,`width: ${t}`],[`h-${e}`,`height: ${t}`]],"radius-":(e,t)=>[[`rounded-${e}`,`border-radius: ${t}`]],"shadow-":(e,t)=>[[`shadow-${e}`,`box-shadow: ${t}`]],"inset-shadow-":(e,t)=>[[`inset-shadow-${e}`,`box-shadow: inset ${t}`]],"drop-shadow-":(e,t)=>[[`drop-shadow-${e}`,`filter: drop-shadow(${t})`]],"blur-":(e,t)=>[[`blur-${e}`,`filter: blur(${t})`]],"perspective-":(e,t)=>[[`perspective-${e}`,`perspective: ${t}`]],"aspect-":(e,t)=>[[`aspect-${e}`,`aspect-ratio: ${t}`]],"ease-":(e,t)=>[[`ease-${e}`,`transition-timing-function: ${t}`]],"animate-":(e,t)=>[[`animate-${e}`,`animation: ${t}`]],"border-width-":(e,t)=>[[`border-${e}`,`border-width: ${t}`]],"border-style-":(e,t)=>[[`border-${e}`,`border-style: ${t}`]],"outline-":(e,t)=>[[`outline-${e}`,`outline-color: ${t}`]],"outline-width-":(e,t)=>[[`outline-${e}`,`outline-width: ${t}`]],"outline-style-":(e,t)=>[[`outline-${e}`,`outline-style: ${t}`]],"ring-":(e,t)=>[[`ring-${e}`,`box-shadow: 0 0 0 ${t} var(--color-ring)`]],"ring-offset-":(e,t)=>[[`ring-offset-${e}`,`--tw-ring-offset-width: ${t}`]],"divide-":(e,t)=>[[`divide-${e}`,`border-color: ${t}`]],"accent-":(e,t)=>[[`accent-${e}`,`accent-color: ${t}`]],"caret-":(e,t)=>[[`caret-${e}`,`caret-color: ${t}`]],"decoration-":(e,t)=>[[`decoration-${e}`,`text-decoration-color: ${t}`]],"placeholder-":(e,t)=>[[`placeholder-${e}`,`&::placeholder { color: ${t} }`]],"selection-":(e,t)=>[[`selection-${e}`,`&::selection { background-color: ${t} }`]],"scrollbar-":(e,t)=>[[`scrollbar-${e}`,`scrollbar-color: ${t}`]]};this.utilityGenerators={"color-":t["color-"],"font-":t["font-"],"text-":t["text-"],"font-weight-":t["font-weight-"],"tracking-":t["tracking-"],"leading-":t["leading-"],"spacing-":t["spacing-"],"radius-":t["radius-"],"shadow-":t["shadow-"],"blur-":t["blur-"]},Object.assign(this.utilityGenerators,t),this.variants={hover:":hover",focus:":focus","focus-visible":":focus-visible","focus-within":":focus-within",active:":active",visited:":visited",target:":target",first:":first-child",last:":last-child",only:":only-child",odd:":nth-child(odd)",even:":nth-child(even)","first-of-type":":first-of-type","last-of-type":":last-of-type","only-of-type":":only-of-type",empty:":empty",disabled:":disabled",enabled:":enabled",checked:":checked",indeterminate:":indeterminate",default:":default",required:":required",valid:":valid",invalid:":invalid","in-range":":in-range","out-of-range":":out-of-range","placeholder-shown":":placeholder-shown",autofill:":autofill","read-only":":read-only","read-write":":read-write",optional:":optional","user-valid":":user-valid","user-invalid":":user-invalid",inert:":inert",open:":is([open], :popover-open, :open) &",closed:":not(:is([open], :popover-open, :open)) &",paused:'[data-state="paused"] &',playing:'[data-state="playing"] &',muted:'[data-state="muted"] &',unmuted:'[data-state="unmuted"] &',collapsed:'[data-state="collapsed"] &',expanded:'[data-state="expanded"] &',unchecked:":not(:checked)",selected:'[data-state="selected"] &',unselected:'[data-state="unselected"] &',"details-content":"::details-content",nth:":nth-child","nth-last":":nth-last-child","nth-of-type":":nth-of-type","nth-last-of-type":":nth-last-of-type",has:":has",not:":not",before:"::before",after:"::after","first-letter":"::first-letter","first-line":"::first-line",marker:"::marker",selection:"::selection",file:"::file-selector-button",backdrop:"::backdrop",placeholder:"::placeholder","target-text":"::target-text","spelling-error":"::spelling-error","grammar-error":"::grammar-error",dark:".dark &",light:".light &",group:".group &","group-hover":".group:hover &","group-focus":".group:focus &","group-focus-within":".group:focus-within &","group-active":".group:active &","group-disabled":".group:disabled &","group-visited":".group:visited &","group-checked":".group:checked &","group-required":".group:required &","group-valid":".group:valid &","group-invalid":".group:invalid &","group-in-range":".group:in-range &","group-out-of-range":".group:out-of-range &","group-placeholder-shown":".group:placeholder-shown &","group-autofill":".group:autofill &","group-read-only":".group:read-only &","group-read-write":".group:read-write &","group-optional":".group:optional &","group-user-valid":".group:user-valid &","group-user-invalid":".group:user-invalid &",peer:".peer ~ &","peer-hover":".peer:hover ~ &","peer-focus":".peer:focus ~ &","peer-focus-within":".peer:focus-within ~ &","peer-active":".peer:active ~ &","peer-disabled":".peer:disabled ~ &","peer-visited":".peer:visited ~ &","peer-checked":".peer:checked ~ &","peer-required":".peer:required ~ &","peer-valid":".peer:valid ~ &","peer-invalid":".peer:invalid ~ &","peer-in-range":".peer:in-range ~ &","peer-out-of-range":".peer:out-of-range ~ &","peer-placeholder-shown":".peer:placeholder-shown ~ &","peer-autofill":".peer:autofill ~ &","peer-read-only":".peer:read-only ~ &","peer-read-write":".peer:read-write ~ &","peer-optional":".peer:optional ~ &","peer-user-valid":".peer:user-valid ~ &","peer-user-invalid":".peer:user-invalid &","motion-safe":"@media (prefers-reduced-motion: no-preference)","motion-reduce":"@media (prefers-reduced-motion: reduce)",print:"@media print",portrait:"@media (orientation: portrait)",landscape:"@media (orientation: landscape)","contrast-more":"@media (prefers-contrast: more)","contrast-less":"@media (prefers-contrast: less)","forced-colors":"@media (forced-colors: active)",rtl:'&:where(:dir(rtl), [dir="rtl"], [dir="rtl"] *)',ltr:'&:where(:dir(ltr), [dir="ltr"], [dir="ltr"] *)',"[dir=rtl]":'[dir="rtl"] &',"[dir=ltr]":'[dir="ltr"] &',"pointer-fine":"@media (pointer: fine)","pointer-coarse":"@media (pointer: coarse)","pointer-none":"@media (pointer: none)","any-pointer-fine":"@media (any-pointer: fine)","any-pointer-coarse":"@media (any-pointer: coarse)","any-pointer-none":"@media (any-pointer: none)","scripting-enabled":"@media (scripting: enabled)","can-hover":"@media (hover: hover)","can-not-hover":"@media (hover: none)","any-hover":"@media (any-hover: hover)","any-hover-none":"@media (any-hover: none)","any-pointer":"@media (any-pointer: fine)","any-pointer-coarse":"@media (any-pointer: coarse)","any-pointer-none":"@media (any-pointer: none)",color:"@media (color)","color-gamut":"@media (color-gamut: srgb)","color-gamut-p3":"@media (color-gamut: p3)","color-gamut-rec2020":"@media (color-gamut: rec2020)",monochrome:"@media (monochrome)","monochrome-color":"@media (monochrome: 0)","monochrome-grayscale":"@media (monochrome: 1)","inverted-colors":"@media (inverted-colors: inverted)","inverted-colors-none":"@media (inverted-colors: none)",update:"@media (update: fast)","update-slow":"@media (update: slow)","update-none":"@media (update: none)","overflow-block":"@media (overflow-block: scroll)","overflow-block-paged":"@media (overflow-block: paged)","overflow-inline":"@media (overflow-inline: scroll)","overflow-inline-auto":"@media (overflow-inline: auto)","prefers-color-scheme":"@media (prefers-color-scheme: dark)","prefers-color-scheme-light":"@media (prefers-color-scheme: light)","prefers-contrast":"@media (prefers-contrast: more)","prefers-contrast-less":"@media (prefers-contrast: less)","prefers-contrast-no-preference":"@media (prefers-contrast: no-preference)","prefers-reduced-motion":"@media (prefers-reduced-motion: reduce)","prefers-reduced-motion-no-preference":"@media (prefers-reduced-motion: no-preference)","prefers-reduced-transparency":"@media (prefers-reduced-transparency: reduce)","prefers-reduced-transparency-no-preference":"@media (prefers-reduced-transparency: no-preference)",resolution:"@media (resolution: 1dppx)","resolution-low":"@media (resolution: 1dppx)","resolution-high":"@media (resolution: 2dppx)",scan:"@media (scan: progressive)","scan-interlace":"@media (scan: interlace)",scripting:"@media (scripting: enabled)","scripting-none":"@media (scripting: none)","scripting-initial-only":"@media (scripting: initial-only)",container:"@container","container-name":"@container","!":"!important",sm:"@media (min-width: 640px)",md:"@media (min-width: 768px)",lg:"@media (min-width: 1024px)",xl:"@media (min-width: 1280px)","2xl":"@media (min-width: 1536px)",starting:"@starting-style",touch:"@media (pointer: coarse)",cursor:"@media (pointer: fine) and (hover: hover)",pointer:"@media (any-pointer: fine)",mac:'html[data-os="macos"] &',windows:'html[data-os="windows"] &',linux:'html[data-os="linux"] &',ios:'html[data-os="ios"] &',android:'html[data-os="android"] &',apple:'html[data-os="macos"] &, html[data-os="ios"] &',"aria-expanded":'&[aria-expanded="true"]',"aria-collapsed":'&[aria-expanded="false"]',"aria-pressed":'&[aria-pressed="true"]',"aria-unpressed":'&[aria-pressed="false"]',"aria-checked":'&[aria-checked="true"]',"aria-unchecked":'&[aria-checked="false"]',"aria-selected":'&[aria-selected="true"]',"aria-unselected":'&[aria-selected="false"]',"aria-invalid":'&[aria-invalid="true"]',"aria-valid":'&[aria-invalid="false"]',"aria-required":'&[aria-required="true"]',"aria-optional":'&[aria-required="false"]',"aria-disabled":'&[aria-disabled="true"]',"aria-enabled":'&[aria-disabled="false"]',"aria-hidden":'&[aria-hidden="true"]',"aria-visible":'&[aria-hidden="false"]',"aria-busy":'&[aria-busy="true"]',"aria-available":'&[aria-busy="false"]',"aria-current":'&[aria-current="true"]',"aria-not-current":'&[aria-current="false"]',"aria-live":'&:is([aria-live="polite"], [aria-live="assertive"])',"aria-atomic":'&[aria-atomic="true"]',"aria-relevant":'&:is([aria-relevant="additions"], [aria-relevant="removals"], [aria-relevant="text"], [aria-relevant="all"])'},this.variantGroups={state:["hover","focus","active","visited","target","open","closed","paused","playing","muted","unmuted","collapsed","expanded","unchecked","selected","unselected"],child:["first","last","only","odd","even"],form:["disabled","enabled","checked","indeterminate","required","valid","invalid"],pseudo:["before","after","first-letter","first-line","marker","selection","file","backdrop"],media:["dark","light","motion-safe","motion-reduce","print","portrait","landscape","rtl","ltr","can-hover","can-not-hover","any-hover","any-hover-none","color","monochrome","inverted-colors","inverted-colors-none","update","update-slow","update-none","overflow-block","overflow-block-paged","overflow-inline","overflow-inline-auto","prefers-color-scheme","prefers-color-scheme-light","prefers-contrast","prefers-contrast-less","prefers-contrast-no-preference","prefers-reduced-motion","prefers-reduced-motion-no-preference","prefers-reduced-transparency","prefers-reduced-transparency-no-preference","resolution","resolution-low","resolution-high","scan","scan-interlace","scripting","scripting-none","scripting-initial-only","forced-colors","contrast-more","contrast-less","pointer-fine","pointer-coarse","pointer-none","any-pointer-fine","any-pointer-coarse","any-pointer-none","scripting-enabled"],responsive:["sm","md","lg","xl","2xl"],device:["touch","cursor","pointer"],os:["mac","windows","linux","ios","android","apple"],group:["group","group-hover","group-focus","group-active","group-disabled","group-checked","group-required","group-valid","group-invalid"],peer:["peer","peer-hover","peer-focus","peer-active","peer-disabled","peer-checked","peer-required","peer-valid","peer-invalid"],data:["data-open","data-closed","data-checked","data-unchecked","data-visible","data-hidden","data-disabled","data-loading","data-error","data-success","data-warning","data-selected","data-highlighted","data-pressed","data-expanded","data-collapsed","data-active","data-inactive","data-valid","data-invalid","data-required","data-optional","data-readonly","data-write"],aria:["aria-expanded","aria-collapsed","aria-pressed","aria-unpressed","aria-checked","aria-unchecked","aria-selected","aria-unselected","aria-invalid","aria-valid","aria-required","aria-optional","aria-disabled","aria-enabled","aria-hidden","aria-visible","aria-busy","aria-available","aria-current","aria-not-current","aria-live","aria-atomic","aria-relevant"]},this.classCache=new Map,this.staticUtilitiesCoveredClasses=null,this.staticUtilitiesReady=Promise.all([this.detectStaticUtilitiesSheet(),this.loadUtilitiesSafelist()]),this.staticUtilitiesReady.then(()=>this.setupUncoveredClassWatcher()),this.addCriticalBlockingStylesSync(),this.styleElement=document.createElement("style"),this.styleElement.id="manifest-styles",document.head.appendChild(this.styleElement),this.setupUtilityStylesOrderObserver(),this.tailwindLink=null,this.observer=null,this.isCompiling=!1,this.compileTimeout=null,this.cache=new Map,this.lastThemeHash=null,this.processedElements=new WeakSet,this.activeBreakpoints=new Set,this.activeModifiers=new Set,this.cssFiles=new Set,this.pendingStyles=new Map,this.currentThemeVars=new Map,this.hasInitialized=!1,this.lastCompileTime=0,this.minCompileInterval=100,this.cssContentCache=new Map,this.lastClassesHash="",this.staticClassCache=new Set,this.dynamicClassCache=new Set,this.quietClasses=new Set,this.hasScannedStatic=!1,this.staticScanPromise=null,this.ignoredClassPatterns=[/^hljs/,/^language-/,/^copy$/,/^copied$/,/^lines$/,/^selected$/],this.ignoredElementSelectors=["pre","code","x-code","x-code-group"],this.ignoredAttributes=["id","data-order","data-component-id","data-highlighted","data-processed","x-intersect","x-intersect:leave","x-show","x-hide","x-transition","aria-expanded","aria-selected","aria-current","aria-hidden","aria-label","tabindex","role","title","alt","data-state","data-value"],this.significantChangeSelectors=["[data-component]","[x-data]"],this.pseudoClasses=["hover","focus","active","disabled","dark"],this.customUtilities=new Map,this.loadAndApplyCache(),this.generateSynchronousUtilities(),this.setupComponentLoadListener(),this.waitForTailwind().then(()=>{this.startProcessing()})}addIgnoredClassPattern(e){Array.isArray(this.ignoredClassPatterns)||(this.ignoredClassPatterns=[]),e instanceof RegExp?this.ignoredClassPatterns.push(e):"string"==typeof e&&this.ignoredClassPatterns.push(new RegExp(e))}addIgnoredElementSelector(e){Array.isArray(this.ignoredElementSelectors)||(this.ignoredElementSelectors=[]),"string"==typeof e&&this.ignoredElementSelectors.push(e)}addSignificantChangeSelector(e){Array.isArray(this.significantChangeSelectors)||(this.significantChangeSelectors=[]),"string"==typeof e&&this.significantChangeSelectors.push(e)}triggerRecompilation(e="manual"){this.compile()}debounce(e,t){let s;return function(...i){clearTimeout(s),s=setTimeout(()=>{clearTimeout(s),e(...i)},t)}}async waitForTailwind(){return new Promise(e=>{if(this.isTailwindAvailable())return void e();const t=setInterval(()=>{this.isTailwindAvailable()&&(clearInterval(t),e())},100);document.addEventListener("DOMContentLoaded",()=>{this.isTailwindAvailable()&&(clearInterval(t),e())}),setTimeout(()=>{clearInterval(t),e()},5e3)})}isTailwindAvailable(){return Array.from(document.styleSheets).some(e=>e.href&&(e.href.includes("tailwind")||e.href.includes("tailwindcss")||e.href.includes("manifest")))||document.querySelector('[class*="tailwind"]')||window.tailwind||document.head.innerHTML.includes("tailwind")||document.head.innerHTML.includes("manifest")}}e.prototype.addCriticalBlockingStylesSync=function(){if(!this.criticalStyleElement)return;if(this.hasShippedUtilitiesSheet())return;performance.now();try{const e=new Map,s=document.querySelectorAll("style:not(#manifest-styles):not(#manifest-styles-critical)");for(const t of s)if(t.textContent){const s=this.extractThemeVariables(t.textContent);for(const[t,i]of s.entries())e.set(t,i)}try{if(document.documentElement){const t=document.documentElement.outerHTML,s=/<style[^>]*>([\s\S]*?)<\/style>/gi;let i;for(;null!==(i=s.exec(t));){const t=i[1],s=this.extractThemeVariables(t);for(const[t,i]of s.entries())e.set(t,i)}}}catch(e){}try{const t=Array.from(document.styleSheets);for(const s of t)try{const t=Array.from(s.cssRules||[]);for(const s of t){if(s.type===CSSRule.STYLE_RULE&&s.styleSheet)try{const t=Array.from(s.styleSheet.cssRules||[]);for(const s of t)if(s.type===CSSRule.STYLE_RULE){const t=s.cssText,i=this.extractThemeVariables(t);for(const[t,s]of i.entries())e.set(t,s)}}catch(e){}if(s.type===CSSRule.STYLE_RULE){const t=s.cssText,i=this.extractThemeVariables(t);for(const[t,s]of i.entries())e.set(t,s)}}}catch(e){}}catch(e){}try{if(document.documentElement){const t=getComputedStyle(document.documentElement);let s=0;for(let i=0;i<t.length;i++){const n=t[i];if(n.startsWith("--")){const i=t.getPropertyValue(n);i&&i.trim()&&(e.set(n.substring(2),i.trim()),s++)}}}}catch(e){}const i=new Set;try{if(document.documentElement){const e=document.documentElement.outerHTML,t=/class=["']([^"']+)["']/gi;let s;for(;null!==(s=t.exec(e));){const e=s[1].split(/\s+/).filter(Boolean);for(const t of e)/^(border|bg|text|ring|outline|decoration|caret|accent|fill|stroke)-[a-z0-9-]+(\/[0-9]+)?$/.test(t)&&i.add(t)}}if(document.body){const e=document.body.querySelectorAll("*");for(const t of e)if(t.className&&"string"==typeof t.className){const e=t.className.split(/\s+/).filter(Boolean);for(const t of e)/^(border|bg|text|ring|outline|decoration|caret|accent|fill|stroke)-[a-z0-9-]+(\/[0-9]+)?$/.test(t)&&i.add(t)}}}catch(e){}if(e.size>0){performance.now();const s=`:root { ${Array.from(e.entries()).map(([e,t])=>`--${e}: ${t};`).join("\n")} }`;let n=null;if(i.size>0)n={classes:Array.from(i),variableSuffixes:[]};else{const e=localStorage.getItem(t);let s=new Set;if(e)try{const t=JSON.parse(e),i=Object.values(t);for(const e of i){const e=i.sort((e,t)=>(t.timestamp||0)-(e.timestamp||0))[0];if(e&&e.css){const t=e.css.match(/\.([a-zA-Z0-9_-]+(?::[a-zA-Z0-9_-]+)*)\s*{/g);if(t)for(const e of t){const t=e.replace(/^\./,"").replace(/\s*{.*$/,"");/^(border|bg|text|ring|outline|decoration|caret|accent|fill|stroke)-[a-z0-9-]+(\/[0-9]+)?$/.test(t.split(":").pop())&&s.add(t)}}}}catch(e){}if(s.size>0)n={classes:Array.from(s),variableSuffixes:[]};else{try{const e=(document.documentElement.innerHTML||"").match(/class=["']([^"']+)["']/g);if(e)for(const t of e){const e=t.replace(/class=["']/,"").replace(/["']$/,"").split(/\s+/).filter(Boolean);for(const t of e)/^(border|bg|text|ring|outline|decoration|caret|accent|fill|stroke)-[a-z0-9-]+(\/[0-9]+)?$/.test(t)&&s.add(t)}}catch(e){}s.size>0&&(n={classes:Array.from(s),variableSuffixes:[]})}}if(!n||!n.classes||0===n.classes.length){const t=Array.from(e.entries()).filter(([e])=>e.startsWith("color-"));if(t.length>0){const e=[];for(const[s]of t){const t=s.replace("color-","");e.push(`text-${t}`),e.push(`bg-${t}`),e.push(`border-${t}`)}n={classes:e,variableSuffixes:[]}}}if(n&&n.classes&&n.classes.length>0){const e=this.generateUtilitiesFromVars(s,n);if(e){performance.now();this.criticalStyleElement.textContent=e,document.body?document.body.offsetHeight:document.documentElement.offsetHeight;performance.now()}}}}catch(e){}},e.prototype.generateSynchronousUtilities=function(){if(!this.usesStaticPrerenderUtilities&&!this.hasShippedUtilitiesSheet())try{const e=this.styleElement.textContent&&this.styleElement.textContent.trim();let t=new Map;const s=new Set,i=document.querySelectorAll("style:not(#manifest-styles)");for(const e of i)if(e.textContent){const s=this.extractThemeVariables(e.textContent);for(const[e,i]of s.entries())t.set(e,i)}try{const e=document.documentElement.outerHTML,s=/<style[^>]*>([\s\S]*?)<\/style>/gi;let i;for(;null!==(i=s.exec(e));){const e=i[1],s=this.extractThemeVariables(e);for(const[e,i]of s.entries())t.set(e,i)}}catch(e){}try{if(document.documentElement){const e=getComputedStyle(document.documentElement),s=e.length;for(let i=0;i<s;i++){const s=e[i];if(s.startsWith("--")){const i=e.getPropertyValue(s);i&&i.trim()&&t.set(s.substring(2),i.trim())}}}}catch(e){}try{const e=document.documentElement.outerHTML,t=/class=["']([^"']+)["']/gi;let i;for(;null!==(i=t.exec(e));){const e=i[1].split(/\s+/).filter(Boolean);for(const t of e)/^(border|bg|text|ring|outline|decoration|caret|accent|fill|stroke)-[a-z0-9-]+(\/[0-9]+)?$/.test(t)&&s.add(t)}}catch(e){const t=document.querySelectorAll("*");for(const e of t)if(e.className&&"string"==typeof e.className){const t=e.className.split(/\s+/);for(const e of t)/^(border|bg|text|ring|outline|decoration|caret|accent|fill|stroke)-[a-z0-9-]+(\/[0-9]+)?$/.test(e)&&s.add(e)}}if(t.size>0&&s.size>0){const i=`:root { ${Array.from(t.entries()).map(([e,t])=>`--${e}: ${t};`).join("\n")} }`,n={classes:Array.from(s),variableSuffixes:[]},r=this.generateUtilitiesFromVars(i,n);if(r){const t=`@layer utilities {\n${r}\n}`;e?this.styleElement.textContent+="\n\n"+t:this.styleElement.textContent=t,this.ensureUtilityStylesLast(),this.criticalStyleElement&&r.trim()&&(this.criticalStyleElement.textContent="")}}}catch(e){}};const t="tailwind-cache:v2",s=["tailwind-cache"];function i(){for(const e of s)try{localStorage.removeItem(e)}catch(e){}}function n(e){return e.hasAttribute("data-mnfst-utilities")||!e.id&&(e.textContent||"").trimStart().startsWith("/*! tailwindcss")}function r(e,t){return e.reduceRight((e,t)=>`${t} { ${e} }`,t)}e.prototype.loadAndApplyCache=function(){performance.now();i();try{const e=localStorage.getItem(t);if(e){const t=JSON.parse(e);this.cache=new Map(Object.entries(t));let s=new Set;try{if(document.documentElement){const e=document.documentElement.outerHTML,t=/class=["']([^"']+)["']/gi;let i;for(;null!==(i=t.exec(e));){i[1].split(/\s+/).filter(Boolean).forEach(e=>{e.startsWith("x-")||e.startsWith("$")||s.add(e)})}}}catch(e){}let i=null,n=0;if(s.size>0)for(const[e,t]of this.cache.entries()){const r=e.lastIndexOf("-"),o=r>0?e.substring(0,r):e,a=o?o.split(","):[],l=new Set(a);let c=0;for(const e of s)l.has(e)&&c++;const d=c/s.size,h=(Date.now()-t.timestamp)/864e5,u=.7*d+.3*(1-Math.min(h,1));u>n&&(n=u,i=t)}const r=i||Array.from(this.cache.entries()).sort((e,t)=>t[1].timestamp-e[1].timestamp)[0]?.[1];if(r&&r.css&&!this.hasShippedUtilitiesSheet()){performance.now();const e=this.stripCoveredRulesFromCss(r.css);if(this.styleElement.textContent=e,this.ensureUtilityStylesLast(),this.scheduleEnsureUtilityStylesLast(),this.lastThemeHash=r.themeHash,this.criticalStyleElement&&!this.criticalStyleElement.textContent){let t=e;t=t.replace(/@layer\s+utilities\s*\{/g,"").replace(/\}\s*$/,"").trim(),t&&(this.criticalStyleElement.textContent=t)}}}}catch(e){}},e.prototype.MAX_PERSISTED_CACHE_ENTRIES=20,e.prototype.evictOldestCacheEntries=function(e){if(this.cache.size<=e)return;const t=Array.from(this.cache.entries()).sort((e,t)=>(e[1].timestamp||0)-(t[1].timestamp||0)),s=t.length-e;for(let e=0;e<s;e++)this.cache.delete(t[e][0])},e.prototype.savePersistentCache=function(){this.evictOldestCacheEntries(this.MAX_PERSISTED_CACHE_ENTRIES);let e=0;for(;this.cache.size>0&&e<4;)try{const e=JSON.stringify(Object.fromEntries(this.cache));return void localStorage.setItem(t,e)}catch(t){if(!(t&&("QuotaExceededError"===t.name||22===t.code||1014===t.code)))return void console.warn("Failed to save cached styles:",t);const s=Math.max(1,Math.floor(this.cache.size/2));this.evictOldestCacheEntries(s),e++}try{localStorage.removeItem(t)}catch(e){}},e.prototype.loadPersistentCache=function(){i();try{const e=localStorage.getItem(t);if(e){const t=JSON.parse(e);this.cache=new Map(Object.entries(t))}}catch(e){console.warn("Failed to load cached styles:",e)}},e.prototype.generateThemeHash=function(e){return encodeURIComponent(e).slice(0,8)},e.prototype.cleanupCache=function(){const e=Date.now(),t=this.options.maxCacheAge,s=[];for(const[i,n]of this.cache.entries())n.timestamp&&e-n.timestamp>t&&s.push(i);for(const e of s)this.cache.delete(e);s.length>0&&this.savePersistentCache()},e.prototype.ensureUtilityStylesLast=function(){this.styleElement&&this.styleElement.parentNode&&document.head.lastElementChild!==this.styleElement&&(document.head.appendChild(this.styleElement),this.resyncUtilitiesText&&this.resyncUtilitiesText())},e.prototype.setupUtilityStylesOrderObserver=function(){if(!document.head||!this.styleElement)return;const e=this;new MutationObserver(t=>{for(const s of t)if("childList"===s.type&&s.addedNodes.length)for(const t of s.addedNodes)if(t.nodeType===Node.ELEMENT_NODE&&t!==e.styleElement){e.ensureUtilityStylesLast();break}}).observe(document.head,{childList:!0,subtree:!1})},e.prototype.scheduleEnsureUtilityStylesLast=function(){const e=this;[0,100,500].forEach(t=>{setTimeout(()=>e.ensureUtilityStylesLast(),t)})},e.prototype.discoverCssFiles=function(){try{const e=Array.from(document.styleSheets);for(const t of e)try{const e=e=>e.includes("manifestjs")||e.includes("mnfst")||e.includes("jsdelivr")&&(e.includes("manifestjs")||e.includes("mnfst"))||e.includes("unpkg")&&(e.includes("manifestjs")||e.includes("mnfst"));t.href&&(t.href.startsWith(window.location.origin)||e(t.href))&&this.cssFiles.add(t.href);const s=Array.from(t.cssRules||[]);for(const t of s)t.type===CSSRule.IMPORT_RULE&&t.href&&(t.href.startsWith(window.location.origin)||e(t.href))&&this.cssFiles.add(t.href)}catch(e){}const t=document.querySelectorAll("style:not(#manifest-styles)");for(const e of t)if(!n(e)&&e.textContent&&e.textContent.trim()){const s=e.id||`inline-style-${Array.from(t).indexOf(e)}`;this.inlineStyleSources||(this.inlineStyleSources=new Map),this.inlineStyleSources.set(s,e),this.cssFiles.add("inline:"+s)}}catch(e){console.warn("Error discovering CSS files:",e)}},e.prototype.scanStaticClasses=async function(){return this.staticScanPromise||(this.staticScanPromise=(async()=>{try{const e=new Set,t=document.documentElement.outerHTML;this.extractClassesFromHTML(t,e);let s=window.ManifestComponentsRegistry;const i=2e3,n=50;let r=0;for(;!s&&r<i;)await new Promise(e=>setTimeout(e,n)),s=window.ManifestComponentsRegistry,r+=n;const o=[];if(s&&s.manifest){const e=[...s.manifest.preloadedComponents||[],...s.manifest.components||[]];o.push(...e)}const a=o.map(async t=>{try{const s=[t.startsWith("/")?t:"/"+t,t];for(const t of s)try{const s=await fetch(t);if(s.ok){const t=await s.text();this.extractClassesFromHTML(t,e);break}}catch(e){continue}}catch(e){}});await Promise.all(a);for(const t of e)this.staticClassCache.add(t);return this.hasScannedStatic=!0,e}catch(e){return console.warn("[TailwindCompiler] Error scanning static classes:",e),this.hasScannedStatic=!0,new Set}})()),this.staticScanPromise},e.prototype.extractClassesFromHTML=function(e,t){const s=/(?<![:\w])class=(["'])((?:(?!\1)[\s\S])*)\1/g;let i;for(;null!==(i=s.exec(e));){const e=i[2].split(/\s+/).filter(Boolean);for(const s of e)!s||s.startsWith("x-")||s.startsWith("$")||t.add(s)}const n=/(?<![\w-])(?::|x-bind:)class=(["'])((?:(?!\1)[\s\S])*)\1/g;for(;null!==(i=n.exec(e));)this.collectBindingClasses(i[2],t);const r=/x-data=["']([^"']+)["']/g;for(;null!==(i=r.exec(e));){const e=i[1].match(/['"`]([^'"`\s]+)['"`]/g);if(e)for(const s of e){const e=s.replace(/['"`]/g,"");e&&!e.startsWith("$")&&!e.includes("(")&&/[a-zA-Z0-9]/.test(e)&&t.add(e)}}},e.prototype.collectBindingClasses=function(e,t){if(!e)return;e.includes("&")&&(e=e.replace(/"/g,'"').replace(/�?39;|'/g,"'").replace(/&/g,"&"));const s=e=>{e&&!e.startsWith("x-")&&!e.startsWith("$")&&/[a-zA-Z0-9]/.test(e)&&(e.includes("://")||/^\d+:/.test(e)||(e.includes("[")?/[{}'"`$;]/:/[(){}'"`$;,]/).test(e)||t.add(e))},i=/(['"`])((?:\\[\s\S]|(?!\1)[^\\])*)\1/g;let n;for(;null!==(n=i.exec(e));){for(const e of n[2].split(/\s+/))s(e);"`"===n[1]&&n[2].includes("${")&&this.collectBindingClasses(n[2].replace(/`/g," "),t)}const r=/[{,]\s*([A-Za-z_][\w-]*)\s*:/g;for(;null!==(n=r.exec(e));)s(n[1])},e.prototype.getUsedClasses=function(){try{const e=new Set,t=new Set;for(const t of this.staticClassCache)e.add(t);for(const t of this.dynamicClassCache)e.add(t);const s=document.getElementsByTagName("*");for(const t of s){let s=[];"string"==typeof t.className?s=t.className.split(/\s+/).filter(Boolean):t.classList&&(s=Array.from(t.classList));for(const t of s){if(!t)continue;this.ignoredClassPatterns.some(e=>e.test(t))||(e.add(t),this.staticClassCache.has(t)||this.dynamicClassCache.add(t))}}for(const s of e){const e=s.split(":"),i=e[e.length-1].split("-");if(i.length>1){let e=i.slice(1).join("-"),s=e;if(e.includes("/")){const i=e.split("/");s=i[0];i[1];t.add(s),t.add(e)}else t.add(e);if(i.length>2){const e=i.slice(1).join("-");e.includes("/")?t.add(e.split("/")[0]):t.add(e)}}}return{classes:this.filterStaticallyCoveredClasses(Array.from(e)),variableSuffixes:Array.from(t)}}catch(e){return console.error("Error getting used classes:",e),{classes:[],variableSuffixes:[]}}},e.prototype.fetchThemeContent=async function(){const e=new Set,t=[];0===this.cssFiles.size&&this.discoverCssFiles();for(const s of this.cssFiles){const i=(async()=>{try{let t="",i=!0;if(s.startsWith("inline:")){const e=s.replace("inline:",""),n=this.inlineStyleSources&&this.inlineStyleSources.get(e),r=n&&n.isConnected?n:e?document.getElementById(e):document.querySelector("style");r&&(t=r.textContent),i=!1}else{const e=s,n=this.cssContentCache.get(e),r=Date.now();let o;if(o=s.includes("manifestjs")||s.includes("mnfst")||s.includes("jsdelivr")||s.includes("unpkg")?this.hasScannedStatic?6e4:3e5:this.hasScannedStatic?5e3:3e4,n&&r-n.timestamp<o&&(t=n.content,i=!1),i){const i=Math.floor(r/1e3),n=`${s}${s.includes("?")?"&":"?"}t=${i}`,o=await fetch(n);if(!o.ok)return void console.warn("Failed to fetch stylesheet:",n);t=await o.text(),this.cssContentCache.set(e,{content:t,timestamp:r})}}t&&e.add(t)}catch(e){console.warn(`Error fetching CSS from ${s}:`,e)}})();t.push(i)}return await Promise.all(t),this.lastThemeKey=Array.from(e).sort().join("\n"),this.lastThemeCss=Array.from(e).join("\n"),this.lastThemeCss},e.prototype.extractThemeVariables=function(e){const t=new Map,s=/--([\w-]+):\s*([^;}]+)(?=[;}])/g;let i;for(;null!==(i=s.exec(e));){const e=i[1],s=i[2].trim();t.set(e,s)}return t},e.prototype.extractCustomUtilities=function(e){const t=new Map,s=e=>{if("string"==typeof e)return e.replace(/\[object Object\](;?\s*)/g,"").trim();if(e&&"object"==typeof e&&e.css)return s(e.css);const t=String(e);return"[object Object]"===t?"":t},i=/(?:@layer\s+utilities\s*{[^}]*}|^)(?:[^{}]*?)(?:^|\s)(\.!?[\w-]+)\s*{([^}]+)}/gm;let n;for(;null!==(n=i.exec(e));){const e=n[1].substring(1),i=n[2].trim(),r=e.startsWith("!")?e.slice(1):e;if(this.isTailwindGeneratedClass(r))continue;const o=/\s!important/.test(i);let a=i;e.startsWith("!")?o||(a=i.includes(";")?i.replace(/;/g," !important;"):i+" !important"):o&&(a=i.replace(/\s!important/g,""));const l=s(a);if(t.has(e)){const i=t.get(e),n=s(i);t.set(e,`${n}; ${l}`)}else t.set(e,l)}const r=(e=>{const t=[];let s=0;for(;s<e.length;){const i=e.indexOf(":where(",s);if(-1===i)break;let n=1,r=i+7;for(;r<e.length&&n>0;)"("===e[r]?n++:")"===e[r]&&n--,r++;if(n>0){s=i+1;continue}const o=e.slice(i+7,r-1);for(;r<e.length&&/\s/.test(e[r]);)r++;if(r>=e.length||"{"!==e[r]){s=i+1;continue}let a=1,l=r+1;for(r++;r<e.length&&a>0;)"{"===e[r]?a++:"}"===e[r]&&a--,r++;if(a>0){s=i+1;continue}const c=e.slice(l,r-1).trim();t.push({selectorContent:o,cssRules:c,fullMatch:e.slice(i,r)}),s=r}return t})(e);for(const e of r){const i=e.selectorContent,n=e.cssRules,r=/\s!important/.test(n),o=i.match(/\.(!?[\w-]+)/g);if(o)for(const e of o){const o=e.substring(1),a=o.startsWith("!")?o.slice(1):o;if(this.isTailwindGeneratedClass(a))continue;let l=n;o.startsWith("!")?r||(l=n.includes(";")?n.replace(/;/g," !important;"):n+" !important"):r&&(l=n.replace(/\s!important/g,""));const c=o,d={selector:`:where(${i})`,css:s(l),fullBlock:!0};if(t.has(c)){const e=t.get(c);if("string"==typeof e){const i=s(e);t.set(c,[{selector:`.${o}`,css:i},d])}else if(Array.isArray(e)){const t=e.find(e=>e.selector===d.selector);if(t){const e=s(t.css),i=s(d.css);t.css=`${e}; ${i}`}else e.push(d)}else if(e&&e.selector)if(e.selector===d.selector){const i=s(e.css),n=s(d.css);e.css=`${i}; ${n}`,t.set(c,[e])}else t.set(c,[e,d])}else t.set(c,[d])}}try{let i=0;for(;i<e.length;){for(;i<e.length&&/\s/.test(e[i]);)i++;if(i>=e.length)break;if("@"===e[i]){for(;i<e.length&&"\n"!==e[i]&&"}"!==e[i];)i++;continue}let n=i;for(;i<e.length&&"{"!==e[i];)i++;if(i>=e.length)break;const r=e.slice(n,i).trim();i++;let o=1,a=i;for(;i<e.length&&o>0;)"{"===e[i]?o++:"}"===e[i]&&o--,i++;if(o>0)continue;const l=e.slice(a,i-1).trim();if(r.startsWith("@"))continue;const c=r.match(/\.!?[A-Za-z0-9_-]+/g);if(!c)continue;const d=/\s!important/.test(l);for(const e of c){const i=e.substring(1),n=i.startsWith("!")?i.slice(1):i;if(this.isTailwindGeneratedClass(n))continue;const r=i.startsWith("!");let o=l;r?d||(o=l.includes(";")?l.replace(/;/g," !important;"):l+" !important"):d&&(o=l.replace(/\s!important/g,""));const a=s(o);if(t.has(i)){const e=t.get(i);if(Array.isArray(e))t.set(i,[...e,{selector:`.${i}`,css:a,fullBlock:!0}]);else{const n=s(e);t.set(i,[{selector:`.${i}`,css:n},{selector:`.${i}`,css:a,fullBlock:!0}])}}else t.set(i,a)}}}catch(e){}try{const i=[],n=(e,t="",s=!0)=>{let r=0;for(;r<e.length;){for(;r<e.length&&/\s/.test(e[r]);)r++;if(r>=e.length)break;let o=r;for(;r<e.length&&"{"!==e[r];)r++;if(r>=e.length)break;const a=e.slice(o,r).trim();r++;let l=1,c=r;for(;r<e.length&&l>0;)"{"===e[r]?l++:"}"===e[r]&&l--,r++;const d=e.slice(c,r-1),h=t?a.replace(/&/g,t).trim():a.trim();if(s){const e=d.trim();e&&i.push({selector:h,css:e,fullBlock:!0})}n(d,h,!1)}};n(e,"");for(const e of i){let i=e.selector.replace(/\/\*[^]*?\*\//g,"").replace(/\s+/g," ").trim();const n=i.match(/\.!?[A-Za-z0-9_-]+/g);if(!n)continue;const r=/\s!important/.test(e.css);for(const o of n){const n=o.slice(1),a=n.startsWith("!")?n.slice(1):n;if(this.isTailwindGeneratedClass(a))continue;const l=n.startsWith("!");let c=e.css;l?r||(c=e.css.includes(";")?e.css.replace(/;/g," !important;"):e.css+" !important"):r&&(c=e.css.replace(/\s!important/g,""));const d={selector:i,css:s(c),fullBlock:e.fullBlock||!1};if(t.has(n)){const e=t.get(n);if("string"==typeof e){const i=s(e);t.set(n,[{selector:`.${n}`,css:i},d])}else if(Array.isArray(e)){const t=e.find(e=>e.selector===d.selector);if(t){const e=s(t.css),i=s(d.css);t.css=`${e}; ${i}`}else e.push(d)}else if(e&&e.selector)if(e.selector===d.selector){const i=s(e.css),r=s(d.css);e.css=`${i}; ${r}`,t.set(n,[e])}else t.set(n,[e,d])}else t.set(n,[d])}}}catch(e){}for(const[e,s]of t.entries()){if(!Array.isArray(s))continue;const i=new Set,n=[];for(const e of s){if(!e||"object"!=typeof e)continue;const t=String(e.selector||"").replace(/\s+/g," ").trim(),s=String(e.css||"").replace(/\s+/g," ").trim();if(!s)continue;const r=`${t}\0${s}`;i.has(r)||(i.add(r),n.push(e))}n.length>0&&t.set(e,n)}return t},e.prototype.isTailwindGeneratedClass=function(e){return[/^[a-z]+-\d+$/,/^[a-z]+-\[/,/^(text|bg|border|ring|shadow|opacity|scale|rotate|translate|skew|origin|transform|transition|duration|delay|ease|animate|backdrop|blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|saturate|sepia|filter|backdrop-)/,/^(sm|md|lg|xl|2xl):/,/^(hover|focus|active|disabled|group-hover|group-focus|peer-hover|peer-focus):/,/^(dark|light):/,/^!/,/^\[/].some(t=>t.test(e))},e.prototype.parseClassName=function(e){if(this.classCache.has(e))return this.classCache.get(e);const t={important:e.startsWith("!"),variants:[],baseClass:e};t.important&&(e=e.slice(1));const s=[];let i="",n=0;for(let t=0;t<e.length;t++){const r=e[t];"["===r?n++:"]"===r&&n--,":"===r&&0===n?(s.push(i),i=""):i+=r}return s.push(i),t.baseClass=s.pop(),t.variants=s.map(e=>{const s=this.variants[e];if(s)return{name:e,selector:s,isArbitrary:!1};if(e.startsWith("[")&&e.endsWith("]")){const t=e.slice(1,-1);if(t.startsWith("&"))return{name:e,selector:t,isArbitrary:!0};if(t.startsWith("data-"))return{name:e,selector:`[${t}] &`,isArbitrary:!0}}const i=e.match(/^(group-|peer-)?(data|aria)-(.+)$/);if(i){const t=i[1]&&/^&([[:][^&]*)$/.exec(this.variants[`${i[2]}-${i[3]}`]||""),s=t?t[1]:function(e,t){if(t.startsWith("[")&&t.endsWith("]")){const s=t.slice(1,-1).match(/^([a-zA-Z0-9_-]+)(?:([~|^$*]?=)(.+))?$/);if(!s)return null;if(!s[2])return`[${e}-${s[1]}]`;const i=s[3].replace(/^(['"])(.*)\1$/,"$2").replace(/_/g," ").replace(/"/g,'\\"');return`[${e}-${s[1]}${s[2]}"${i}"]`}return/^[a-zA-Z0-9_-]+$/.test(t)?"aria"===e?`[aria-${t}="true"]`:`[data-${t}]`:null}(i[2],i[3]);if(s){return{name:e,selector:i[1]?"group-"===i[1]?`:where(.group${s}) &`:`:where(.peer${s}) ~ &`:`&${s}`,isArbitrary:!1}}}const n=e.match(/^(nth|nth-last|nth-of-type|nth-last-of-type)-(\d+)$/);if(n){const t=n[1],s=n[2],i=this.variants[t];if(i)return{name:e,selector:`${i}(${s})`,isArbitrary:!1}}const r=e.match(/^(nth|nth-last|nth-of-type|nth-last-of-type)-\[(.+)\]$/);if(r){const t=r[1],s=r[2],i=this.variants[t];if(i)return{name:e,selector:`${i}(${s})`,isArbitrary:!1}}const o=e.match(/^has-\[(.+)\]$/);if(o){const t=o[1],s=this.variants.has;if(s)return{name:e,selector:`${s}(${t})`,isArbitrary:!1}}const a=e.match(/^not-\\\[(.+?)\\\]$/);if(a){const t=a[1],s=this.variants.not;if(s)return{name:e,selector:`${s}([${t}])`,isArbitrary:!1}}if(e.startsWith("@")){const t={"3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},s=e.indexOf("/"),i=-1!==s?e.slice(s+1):"",n=i?`@container ${i}`:"@container",r=(-1!==s?e.slice(0,s):e).slice(1);let o;if(""===r||"container"===r)return{name:e,selector:n,isArbitrary:!1};if(o=r.match(/^(?:min-)?\[(.+)\]$/))return{name:e,selector:`${n} (width >= ${o[1]})`,isArbitrary:!1};if(o=r.match(/^max-\[(.+)\]$/))return{name:e,selector:`${n} (width < ${o[1]})`,isArbitrary:!1};if(o=r.match(/^max-(.+)$/)){if(t[o[1]])return{name:e,selector:`${n} (width < ${t[o[1]]})`,isArbitrary:!1}}else if(t[r])return{name:e,selector:`${n} (width >= ${t[r]})`,isArbitrary:!1}}const l=e.match(/^(min|max)-(?:\[(.+)\]|(sm|md|lg|xl|2xl))$/);if(l){const t=l[3]&&/\(min-width:\s*([^)]+)\)/.exec(this.variants[l[3]]||""),s=l[2]?l[2].replace(/_/g," "):t&&t[1].trim();if(s&&!/[{};]/.test(s))return{name:e,selector:`@media (width ${"max"===l[1]?"<":">="} ${s})`,isArbitrary:!1}}return this._warnedVariants||(this._warnedVariants=new Set),this._warnedVariants.has(e)||(this._warnedVariants.add(e),console.warn(`Unknown variant: ${e}`)),t.unknown=!0,null}).filter(Boolean),this.classCache.set(e,t),t},e.prototype.generateUtilitiesFromVars=function(e,t){try{const s=[],i=new Set,n=this.extractThemeVariables(e),{classes:o,variableSuffixes:a}=t,l=t.rulesOut,c=t.keysOut;let d=null;const h=(e,t,i)=>{s.push({rule:e,key:v(e,i,d.concat(d[3]?2:t))})};if(0===n.size)return"";const u=e=>e.replace(/[^a-zA-Z0-9-]/g,"\\$&"),f=(e,t)=>{const s=o.filter(t=>{const s=t.split(":"),i=s[s.length-1];return i===e||i.startsWith("!")&&i.slice(1)===e});if(o.includes(e)){const s=`.${u(e)} { ${t} }`;i.has(s)||(h(s,0),i.add(s))}if(o.includes("!"+e)){const s=t.includes(";")?t.replace(/;/g," !important;"):t+" !important",n=`.${u("!"+e)} { ${s} }`;i.has(n)||(h(n,1),i.add(n))}for(const n of s){if(n===e)continue;const s=this.parseClassName(n);if(s.unknown)continue;const o=s.important,a="string"==typeof t?t:t&&"object"==typeof t&&t.css?t.css:String(t),l=o?a.includes(";")?a.replace(/;/g," !important;"):a+" !important":a;let c=`.${u(n)}`,d=!1,f="";const p=[];for(const e of s.variants)if(e.isArbitrary){let t=e.selector;t.startsWith("&")?(t=t.replace(/_/g," ").replace(/&/g,c),c=t):(t=t.replace(/_/g," "),c={baseClass:c,arbitrarySelector:t})}else e.selector.includes("&")?c=e.selector.replace(/&/g,c):e.selector.startsWith(":")?c=`${c}${e.selector}`:e.selector.startsWith("@")&&(d=!0,p.push(e.selector),f=p[0]);let m;m="object"==typeof c&&c.arbitrarySelector?`${c.baseClass} {\n ${c.arbitrarySelector} {\n ${l}\n }\n}`:`${c} { ${l} }`;const g=d?r(p,m):m;i.has(g)||(h(g,2,w(s.variants)),i.add(g))}},p=o.map(e=>this.parseClassName(e).baseClass);let m=-1;for(const[e,t]of n.entries()){if(m++,!e.match(this.regexPatterns.tailwindPrefix))continue;const t=e.split("-").slice(1).join("-");if(!p.some(e=>e.includes(t)))continue;const s=`var(--${e})`,i=e.split("-")[0]+"-",n=this.utilityGenerators[i];if(n){const e=n(t,s);for(let t=0;t<e.length;t++){const[i,n]=e[t];o.some(e=>{const t=this.parseClassName(e).baseClass;return t===i||t==="!"+i||t.startsWith("!")&&t.slice(1)===i})&&(d=[0,m,t,0],f(i,n));const r=new Set;for(const e of o){const t=this.parseClassName(e).baseClass;if(t.includes("/")){if(t.split("/")[0]===i){const e=t.split("/")[1];!isNaN(e)&&e>=0&&e<=100&&r.add(t)}}}for(const e of r){const i=`color-mix(in oklch, ${s} ${e.split("/")[1]}%, transparent)`,r=n.replace(s,i);d=[0,m,t,1],f(e,r)}}}}return b(s,l,c)}catch(e){return console.error("Error generating utilities:",e),""}};const o=new Set(["row","row-wrap","col","col-wrap","trailing"]),a={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},l={hidden:"none",block:"block","inline-block":"inline-block",inline:"inline",flex:"flex","inline-flex":"inline-flex",grid:"grid","inline-grid":"inline-grid",contents:"contents","flow-root":"flow-root","list-item":"list-item",table:"table","inline-table":"inline-table","table-caption":"table-caption","table-cell":"table-cell","table-column":"table-column","table-column-group":"table-column-group","table-footer-group":"table-footer-group","table-header-group":"table-header-group","table-row-group":"table-row-group","table-row":"table-row"};function c(e){const t=e.startsWith("max-"),s=t||e.startsWith("min-")?e.slice(4):e;return Object.prototype.hasOwnProperty.call(a,s)?{px:a[s],max:t}:null}function d(e){const t=c(e);return t.max?-t.px:t.px}const h=-1e9,u=1e7,f=10,p=[[/prefers-reduced-motion:\s*no-preference/,1],[/prefers-reduced-motion:\s*reduce/,2],[/prefers-contrast:\s*more/,3],[/prefers-contrast:\s*less/,4],[/orientation:\s*portrait/,21],[/orientation:\s*landscape/,22],[/prefers-color-scheme/,23],[/^@media print/,25],[/forced-colors/,26],[/inverted-colors/,27],[/\(pointer:\s*none/,28],[/\(pointer:\s*coarse/,29],[/\(pointer:\s*fine/,30],[/any-pointer:\s*none/,31],[/any-pointer:\s*coarse/,32],[/any-pointer:\s*fine/,33],[/scripting:\s*none/,34]];function m(e){const t=/^(-?\d*\.?\d+)(px|rem|em)$/.exec(e.trim());return t?parseFloat(t[1])*("px"===t[2]?1:16):null}function g(e){let t=/\((?:min-width:\s*|width\s*>=\s*)([^)]+)\)/.exec(e);if(t){const e=m(t[1]);return null===e?1e5:e}if(t=/\((?:max-width:\s*|width\s*<\s*)([^)]+)\)/.exec(e),t){const e=m(t[1]);return null===e?-1e5:-e}return null}function y(e){if("string"!=typeof e||!e.startsWith("@"))return null;if(e.startsWith("@supports"))return 0;if(e.startsWith("@container"))return 20*u+(g(e)||0);if(e.startsWith("@starting-style"))return 24*u;if(!e.startsWith("@media"))return 40*u;const t=g(e);if(null!==t)return f*u+t;for(const[t,s]of p)if(t.test(e))return s*u;return 40*u}function w(e){const t=[];for(const s of e||[]){const e=s&&y(s.selector);null!=e&&t.push(e)}return t.sort((e,t)=>t-e),[0,1,2].map(e=>e<t.length?t[e]:h)}function v(e,t,s){return(A(e)?[1].concat(t||[40*u,h,h]):[0,0,0,0]).concat(s)}function C(e){return e.slice().sort((e,t)=>k(e.key,t.key))}function b(e,t,s){const i=C(e);if(t)for(const e of i)t.push(e.rule),s.push(e.key);return i.map(e=>e.rule).join("\n")}function $(e){return e.includes("{")?e:e.split(";").map(e=>e.trim()).filter(e=>e&&!/^display\s*:/.test(e)).join("; ")}function S(e,t,s){return o.has(e)&&1===t.variants.length&&c(t.variants[0].name)?function(e){let t="",s=0;for(const i of e)"{"===i?s++:"}"===i?s=Math.max(0,s-1):0===s&&(t+=i);const i=t.match(/(?:^|[\s;])display\s*:\s*([^;!]+)/);return i?i[1].trim():null}(s):null}function x(e){const t=[];for(const s of e){const e=s.split(":");if(2!==e.length||!Object.prototype.hasOwnProperty.call(l,e[1]))continue;const i=c(e[0]);i&&t.push({cls:s,media:i.max?`@media (width < ${i.px}px)`:`@media (min-width: ${i.px}px)`,rank:d(e[0]),css:l[e[1]]})}return t}e.prototype.generateCustomUtilities=function(e){try{const t=[],s=new Set,{classes:i}=e,n=e.rulesOut,o=e.keysOut;let a=null;const l=(e,s,i)=>{t.push({rule:e,key:v(e,i,a.concat(s))})},c=[],p=e=>"string"!=typeof e?e:e.replace(/\[object Object\](;?\s*)/g,"").trim();if(0===this.customUtilities.size)return"";const m=e=>e.replace(/[^a-zA-Z0-9-]/g,"\\$&"),g=(e,t)=>{if(/&\s*[:\.\[{]/.test(e)||/&\s*\n\s*[:\.\[{]/.test(e)||/\]\s*&/.test(e)||/&\s*$/.test(e.split("\n").find(e=>e.trim().startsWith("&"))||""))return e;let s="",i=0,n=!1,r="",o=!1;for(;i<e.length;){const a=e[i],l=i+1<e.length?e[i+1]:"",c=i>0?e[i-1]:"";if('"'!==a&&"'"!==a||o)if(n)s+=a,i++;else if("/"!==a||"*"!==l)if(o){if("*"===a&&"/"===l){o=!1,s+=a,i++;continue}s+=a,i++}else{if("&"===a){const n=e.slice(i+1,Math.min(i+10,e.length));if(n.match(/^[:\.\[\+\>~,)]/)||n.match(/^\s+[:\.\[\+\>~,{]/)||""===n||"\n"===n[0]||"\n"===c&&(":"===n[0]||"."===n[0]||"["===n[0]||" "===n[0])){s+=t,i++;continue}}s+=a,i++}else o=!0,s+=a,i++;else n?a===r&&"\\"!==c&&(n=!1,r=""):(n=!0,r=a),s+=a,i++}return s},y=(e,t,n)=>{"string"!=typeof t&&(t="object"==typeof t&&t&&t.css?t.css:String(t));const o=i.filter(t=>{const s=t.split(":"),i=s[s.length-1];return i===e||i.startsWith("!")&&i.slice(1)===e});if(i.includes("!"+e)){const i=/\s!important/.test(t)?t:t.includes(";")?t.replace(/;/g," !important;"):t+" !important";let r;if(n&&n.selector)if(n.selector.includes(":where("))r=`.${m("!"+e)} { ${i} }`;else{const t=`.${m("!"+e)}`;let s=n.selector.replace(new RegExp(`\\.${e}(?=[^a-zA-Z0-9_-]|$)`),t);s===n.selector&&(s=`${n.selector}${t}`),r=`${s} { ${i} }`}else r=`.${m("!"+e)} { ${i} }`;s.has(r)||(l(r,1),s.add(r))}for(const i of o){if(i===e)continue;const o=this.parseClassName(i);if(o.unknown)continue;const a=o.important,h="string"==typeof t?t:t&&"object"==typeof t&&t.css?t.css:String(t);let u=a?h.includes(";")?h.replace(/;/g," !important;"):h+" !important":h,f=`.${m(i)}`,p=!1,y="";const v=[];let C=null;for(const e of o.variants)if(e.isArbitrary){let t=e.selector;t.startsWith("&")?(t=t.replace(/_/g," ").replace(/&/g,f),f=t):(t=t.replace(/_/g," "),f={baseClass:f,arbitrarySelector:t})}else e.selector.includes("&")?f=e.selector.replace(/&/g,f):e.selector.startsWith(":")?f=`${f}${e.selector}`:e.selector.startsWith("@")&&(p=!0,v.push(e.selector),y=v[0]);const b=!a&&!o.baseClass.startsWith("!")&&"string"==typeof f&&S(e,o,h);if(b){c.push({cls:i,media:y,rank:d(o.variants[0].name),css:b});const e=$(h);if(!e)continue;u=e}let x,E,A="string"==typeof u?u:String(u);if(A=A.replace(/\[object Object\](;?\s*)/g,"").trim(),"object"==typeof f&&f.arbitrarySelector)x=`${f.baseClass} {\n ${f.arbitrarySelector} {\n ${A}\n }\n}`;else if(C){const t=n&&void 0!==n.fullBlock?n.fullBlock:A.includes("@starting-style")||A.includes("@media")||A.includes("@supports")||A.includes("{")&&A.includes("}");if(n&&n.selector)if(n.selector.includes(":where("))if(t){x=`${f} {\n ${C} {\n${g(A,f)}\n }\n}`}else x=`${f} {\n ${C} {\n ${A}\n }\n}`;else{const s=new RegExp(`\\.${e}(?=[^a-zA-Z0-9_-]|$)`);let i=n.selector.replace(s,f);if(i===n.selector&&(i=`${n.selector}${f}`),t){x=`${i} {\n ${C} {\n${g(A,i)}\n }\n}`}else x=`${i} {\n ${C} {\n ${A}\n }\n}`}else if(t){x=`${f} {\n ${C} {\n${g(A,f)}\n }\n}`}else x=`${f} {\n ${C} {\n ${A}\n }\n}`}else{const t=n&&void 0!==n.fullBlock?n.fullBlock:A.includes("@starting-style")||A.includes("@media")||A.includes("@supports")||A.includes("{")&&A.includes("}");if(n&&n.selector)if(n.selector.includes(":where("))if(t){x=`${f} {\n${g(A,f)}\n}`}else x=`${f} { ${A} }`;else{const s=new RegExp(`\\.${e}(?=[^a-zA-Z0-9_-]|$)`);let i=n.selector.replace(s,f);if(i===n.selector&&(i=`${n.selector}${f}`),t){x=`${i} {\n${g(A,i)}\n}`}else x=`${i} { ${A} }`}else if(t){x=`${f} {\n${g(A,f)}\n}`}else x=`${f} { ${A} }`}E=p?"string"==typeof x&&x.trim().startsWith("@media")?x:r(v,x):x,s.has(E)||(l(E,2,w(o.variants)),s.add(E))}};let C=-1;for(const[e,t]of this.customUtilities.entries()){C++;const s=e.startsWith("!")?e.slice(1):e;if(i.some(t=>{const i=this.parseClassName(t).baseClass;return i===e||i===s||i==="!"+s||i.startsWith("!")&&i.slice(1)===s})){let e=t;if("string"==typeof t)e=p(t);else if(Array.isArray(t));else if(t&&t.css){e=p("string"==typeof t.css?t.css:t.css&&"object"==typeof t.css&&t.css.css?t.css.css:String(t.css))}else e=p(String(t));if("string"==typeof t)a=[1,C,0,0],y(s,e,null);else if(Array.isArray(t))for(let e=0;e<t.length;e++){const i=t[e];if(a=[1,C,e,0],i&&i.css&&i.selector){const e=p("string"==typeof i.css?i.css:i.css&&"object"==typeof i.css&&i.css.css?i.css.css:String(i.css));y(s,e,{selector:i.selector,fullBlock:i.fullBlock||!1})}}else if(t&&t.css&&t.selector){const e=p("string"==typeof t.css?t.css:t.css&&"object"==typeof t.css&&t.css.css?t.css.css:String(t.css));a=[1,C,0,0],y(s,e,{selector:t.selector,fullBlock:t.fullBlock||!1})}}}if(c.length){const e=new Set(c.map(e=>e.cls)),t=c.concat(x(i).filter(t=>!e.has(t.cls)));t.sort((e,t)=>e.rank-t.rank||(e.cls<t.cls?-1:e.cls>t.cls?1:0));for(const e of t){const t=`.${m(e.cls)}`,i=`${e.media} { ${t}${t} { display: ${e.css} } }`;s.has(i)||(s.add(i),a=[2,0,0,0],l(i,2,[f*u+e.rank,h,h]))}}return b(t,n,o)}catch(e){return console.error("Error generating custom utilities:",e),""}},e.prototype.generateOrderedUtilities=function(e,t){const s=Object.assign({},t,{rulesOut:[],keysOut:[]});return this.generateUtilitiesFromVars(e,s),this.generateCustomUtilities(s),C(s.rulesOut.map((e,t)=>({rule:e,key:s.keysOut[t]})))},e.prototype.orderedUtilitiesCss=function(e){return e.map(e=>e.rule).join("\n\n")};const E=e=>`@layer utilities {\n${e.entries.map(e=>e.rule).join("\n\n")}\n}`,A=e=>e.trim().startsWith("@");function k(e,t){for(let s=0;s<e.length;s++)if(e[s]!==t[s])return e[s]-t[s];return 0}function T(e){const t=[];let s=0,i="";for(const n of e)"["===n?s++:"]"===n&&s--,":"===n&&0===s?(t.push(i),i=""):i+=n;return t}function U(e){return T(e).length>0}function _(){try{const e=!1!==navigator.onLine;if(document.documentElement.setAttribute("data-online",e?"true":"false"),window.Alpine&&"function"==typeof window.Alpine.store){const t=window.Alpine.store("device");t&&(t.online=e)}}catch(e){}}e.prototype.generateKeyedUtilities=function(e,t){return this.generateOrderedUtilities(e,{classes:t,variableSuffixes:[]})},e.prototype.utilitiesLayerRule=function(){const e=this.styleElement&&this.styleElement.sheet;if(!e||"undefined"==typeof CSSLayerBlockRule)return null;try{for(const t of e.cssRules)if(t instanceof CSSLayerBlockRule&&"utilities"===t.name)return t}catch(e){}return null},e.prototype.entriesMatchSheet=function(e){const t=this.utilitiesLayerRule();if(!t||t.cssRules.length!==e.length)return!1;for(let s=0;s<e.length;s++)if(!(t.cssRules[s]instanceof CSSStyleRule)!=!!e[s].key[0])return!1;return!0},e.prototype.recordAppliedUtilities=function(e,t,s){this._applied=null,!0!==window.__manifestRender&&this.entriesMatchSheet(e)&&(this._applied={themeKey:this.lastThemeKey,themeCss:t,entries:e,rules:new Set(e.map(e=>e.rule)),classes:new Set(s),dirty:!1})},e.prototype.resyncUtilitiesText=function(){const e=this._applied;e&&e.dirty&&(e.dirty=!1,this.styleElement.textContent=E(e),this.entriesMatchSheet(e.entries)||(this._applied=null))},e.prototype.canCompileDelta=function(){return!!this._applied&&!0!==window.__manifestRender&&!!this.utilitiesLayerRule()},e.prototype.compileDelta=function(e){const t=this._applied,s=[];for(const e of this.dynamicClassCache)t.classes.has(e)||s.push(e);const i=this.filterStaticallyCoveredClasses(s);if(x(i).length)return!1;const n=i.length?this.generateKeyedUtilities(e,i).filter(e=>!t.rules.has(e.rule)):[];if(n.some(e=>2===e.key[4]))return!1;const r=t.entries,o=[];for(const e of n){let t=0,s=r.length;for(;t<s;){const i=t+s>>1;k(r[i].key,e.key)<=0?t=i+1:s=i}const i=e.key.length-1;if(2===e.key[i]){const s=t=>t&&0===k(t.key.slice(0,i),e.key.slice(0,i))&&2===t.key[i];if(s(r[t-1])||s(r[t])||o.some(e=>s(e.e)))return!1}o.push({e:e,at:t})}for(const e of s)t.classes.add(e);if(!o.length)return!0;const a=this.utilitiesLayerRule();try{o.sort((e,t)=>k(e.e.key,t.e.key)),o.forEach((e,s)=>{a.insertRule(e.e.rule,e.at+s),r.splice(e.at+s,0,e.e),t.rules.add(e.e.rule)})}catch(e){return this._applied=null,!1}return t.dirty=!0,this.schedulePersistentSave(e),!0},e.prototype.schedulePersistentSave=function(e){clearTimeout(this._persistTimer);const t=()=>{if(!this._applied)return;const t=Array.from(this.dynamicClassCache).sort().join(","),s=this.generateThemeHash(e);this.cache.set(`${t}-${s}`,{css:E(this._applied),timestamp:Date.now(),themeHash:s}),this.savePersistentCache()};this._persistTimer=setTimeout(window.ManifestPending?.background?.(t)??t,1e3)},e.prototype.filterCriticalUtilities=function(e,t){if(!e||!t)return"";const s=t.match(/\.([a-zA-Z0-9_:!\\-]+)\s*{/g)||[],i=new Set;for(const e of s){const t=e.replace(/^\./,"").replace(/\s*{.*$/,"").replace(/\\/g,""),s=t.split(":"),n=s.length>1?s[s.length-1]:t,r=n.startsWith("!")?n.slice(1):n;i.add(r)}const n=e.split("\n"),r=[];let o=!1,a="",l="";for(const e of n){const t=e.match(/^\.([a-zA-Z0-9_:!\\-]+)\s*{/);if(t){if(a){const e=l.replace(/\\/g,"").split(":").pop().replace(/^!/,"");i.has(e)||r.push(a)}l=t[1],a=e,o=!0}else if(o){if(a+="\n"+e,"}"===e.trim()){const e=l.replace(/\\/g,"").split(":").pop().replace(/^!/,"");i.has(e)||r.push(a),a="",l="",o=!1}}else r.push(e)}if(a){const e=l.replace(/\\/g,"").split(":").pop().replace(/^!/,"");i.has(e)||r.push(a)}return r.join("\n").trim()},e.prototype.clearStaleUtilityPatches=function(){this.staticUtilitiesCoveredClasses&&(this._applied=null,this.styleElement&&(this.styleElement.textContent=""),this.criticalStyleElement&&this.criticalStyleElement.parentNode&&(this.criticalStyleElement.parentNode.removeChild(this.criticalStyleElement),this.criticalStyleElement=null))},e.prototype.compile=async function(){if(this.usesStaticPrerenderUtilities)return void(window.__manifestUtilitiesReady||(window.__manifestUtilitiesReady=!0,window.dispatchEvent(new CustomEvent("manifest:utilities-ready"))));performance.now();try{const e=Date.now();if(e-this.lastCompileTime<this.minCompileInterval||this.isCompiling)return void(this._retryQueued||(this._retryQueued=!0,window.__manifestUtilitiesPending=(window.__manifestUtilitiesPending||0)+1,setTimeout(()=>{this._retryQueued=!1,window.__manifestUtilitiesPending=Math.max(0,(window.__manifestUtilitiesPending||1)-1),this.compile()},this.minCompileInterval+50)));if(this.lastCompileTime=e,this.isCompiling=!0,this.quietClasses.clear(),window.__manifestUtilitiesPending=(window.__manifestUtilitiesPending||0)+1,this._compileCounted=!0,!this.hasScannedStatic){await this.scanStaticClasses(),this.staticUtilitiesReady&&await this.staticUtilitiesReady;const e=await this.fetchThemeContent();if(e){const t=this.extractCustomUtilities(e);for(const[e,s]of t.entries())this.customUtilities.set(e,s);const s=this.extractThemeVariables(e);for(const[e,t]of s.entries())this.currentThemeVars.set(e,t);const i={classes:this.filterStaticallyCoveredClasses(Array.from(this.staticClassCache)),variableSuffixes:[]};for(const e of this.staticClassCache){const t=e.split(":"),s=t[t.length-1].split("-");s.length>1&&i.variableSuffixes.push(s.slice(1).join("-"))}const n=this.orderedUtilitiesCss(this.generateOrderedUtilities(e,i));if(n){const t=`@layer utilities {\n${n}\n}`;this.styleElement.textContent=t,this.ensureUtilityStylesLast(),this.scheduleEnsureUtilityStylesLast(),requestAnimationFrame(()=>{requestAnimationFrame(()=>{this.criticalStyleElement&&this.criticalStyleElement.parentNode&&(this.criticalStyleElement.parentNode.removeChild(this.criticalStyleElement),this.criticalStyleElement=null),this.ensureUtilityStylesLast()})}),this.lastClassesHash=i.classes.sort().join(",");const s=this.generateThemeHash(e),r=`${this.lastClassesHash}-${s}`;this.cache.set(r,{css:t,timestamp:Date.now(),themeHash:s}),this.savePersistentCache()}else this.clearStaleUtilityPatches()}return this.hasInitialized=!0,void(this.isCompiling=!1)}let t=null;if(this.canCompileDelta()&&(t=await this.fetchThemeContent(),t&&this.lastThemeKey===this._applied.themeKey&&this.compileDelta(this._applied.themeCss)))return;const s=this.getUsedClasses(),i=Array.from(this.dynamicClassCache),n=i.sort().join(",");if(n!==this.lastClassesHash||!this.hasInitialized){const e=t||await this.fetchThemeContent();if(!e)return void(this.isCompiling=!1);const r=this.extractCustomUtilities(e);for(const[e,t]of r.entries())this.customUtilities.set(e,t);const o=this.extractThemeVariables(e);let a=!1;for(const[e,t]of o.entries()){this.currentThemeVars.get(e)!==t&&(a=!0,this.currentThemeVars.set(e,t))}if(a||n!==this.lastClassesHash){const t=this.generateOrderedUtilities(e,s),r=this.orderedUtilitiesCss(t);if(r){const s=`@layer utilities {\n${r}\n}`;this.styleElement.textContent=s,this.ensureUtilityStylesLast(),this.scheduleEnsureUtilityStylesLast(),requestAnimationFrame(()=>{requestAnimationFrame(()=>{this.criticalStyleElement&&this.criticalStyleElement.parentNode&&(this.criticalStyleElement.parentNode.removeChild(this.criticalStyleElement),this.criticalStyleElement=null),this.ensureUtilityStylesLast()})}),this.lastClassesHash=n,this.recordAppliedUtilities(t,e,i),this.dynamicClassCache.size>i.length&&this.compile();const o=this.generateThemeHash(e),a=`${this.lastClassesHash}-${o}`;this.cache.set(a,{css:s,timestamp:Date.now(),themeHash:o}),this.savePersistentCache()}else this.clearStaleUtilityPatches()}else this._applied=null}}catch(e){console.error("[Manifest Utilities] Error compiling Tailwind CSS:",e)}finally{this.isCompiling=!1,this._compileCounted&&(this._compileCounted=!1,window.__manifestUtilitiesPending=Math.max(0,(window.__manifestUtilitiesPending||1)-1),window.__manifestUtilitiesPending||window.dispatchEvent(new CustomEvent("manifest:utilities-idle"))),window.__manifestUtilitiesReady||(window.__manifestUtilitiesReady=!0,window.dispatchEvent(new CustomEvent("manifest:utilities-ready")))}},e.prototype.findStaticUtilitiesElement=function(){try{return document.querySelector('link[rel="stylesheet"][data-mnfst-utilities], style[data-mnfst-utilities]')}catch(e){return null}},e.prototype.findStaticUtilitiesElements=function(){try{return Array.from(document.querySelectorAll('link[rel="stylesheet"][data-mnfst-utilities], style[data-mnfst-utilities], link[rel="stylesheet"][href*="prerender.tailwind.css"], link[rel="stylesheet"][href*="prerender.utilities.css"]'))}catch(e){return[]}},e.prototype.hasShippedUtilitiesSheet=function(){return this.findStaticUtilitiesElements().length>0},e.prototype.extractSelectorsFromCssText=function(e){const t=[],s=e.length;let i=0;for(;i<s;){if(" "===e[i]||"\n"===e[i]||"\r"===e[i]||"\t"===e[i]){i++;continue}for(;i<s&&/\s/.test(e[i]);)i++;if(i>=s)break;if("/"===e[i]&&"*"===e[i+1]){const t=e.indexOf("*/",i+2);i=-1===t?s:t+2;continue}if("@"===e[i]){let n=i;for(;n<s&&"{"!==e[n]&&";"!==e[n];)n++;if(n>=s||";"===e[n]){i=n+1;continue}i=n+1;let r=1;const o=i;for(;i<s&&r>0;)"{"===e[i]?r++:"}"===e[i]&&r--,i++;t.push(...this.extractSelectorsFromCssText(e.slice(o,i-1)));continue}const n=i;for(;i<s&&"{"!==e[i]&&"}"!==e[i];)i++;if(i>=s||"}"===e[i]){i++;continue}const r=e.slice(n,i).trim();i++;let o=1;for(;i<s&&o>0;)"{"===e[i]?o++:"}"===e[i]&&o--,i++;r&&t.push(r)}return t},e.prototype.unescapeClassToken=function(e){return e.replace(/\\([0-9a-fA-F]{1,6}) ?|\\(.)/g,(e,t,s)=>t?String.fromCodePoint(parseInt(t,16)):s)},e.prototype.classNamesFromCssText=function(e){const t=new Set,s=/\.((?:\\[0-9a-fA-F]{1,6} ?|\\.|[a-zA-Z0-9_-])+)/g;for(const i of this.extractSelectorsFromCssText(e)){let e;for(s.lastIndex=0;null!==(e=s.exec(i));)t.add(this.unescapeClassToken(e[1]))}return t},e.prototype.readStaticUtilitiesRules=function(e){try{const t=Array.from(document.styleSheets).find(t=>t.ownerNode===e),s=t&&t.cssRules;if(s&&s.length>0){const e=Array.from(s).map(e=>e.cssText).join("\n");return this.classNamesFromCssText(e)}}catch(e){}return null},e.prototype.detectStaticUtilitiesSheet=function(){this.staticUtilitiesCoveredClasses=null;const e=this.findStaticUtilitiesElements();if(!e.length)return Promise.resolve();const t=e=>{if(e){this.staticUtilitiesCoveredClasses||(this.staticUtilitiesCoveredClasses=new Set);for(const t of e)this.staticUtilitiesCoveredClasses.add(t)}};return Promise.all(e.map(e=>{if("STYLE"===e.tagName)return t(this.classNamesFromCssText(e.textContent||"")),null;const s=this.readStaticUtilitiesRules(e);return s?(t(s),null):new Promise(s=>{let i=!1;const n=()=>{i||(i=!0,clearTimeout(a),e.removeEventListener("load",r),e.removeEventListener("error",o),t(this.readStaticUtilitiesRules(e)),s())},r=()=>n(),o=()=>n(),a=setTimeout(n,2e3);e.addEventListener("load",r,{once:!0}),e.addEventListener("error",o,{once:!0})})})).then(()=>{})},e.prototype.loadUtilitiesSafelist=async function(){this.safelistClasses=new Set,this.safelistPatterns=[];try{let e=window.__manifestLoaded||null;!e&&window.__manifestPromise&&(e=await window.__manifestPromise);const t=e&&"object"==typeof e?e.utilities:null;if(t&&Array.isArray(t.safelist))for(const e of t.safelist)"string"==typeof e&&e&&this.safelistClasses.add(e);if(t&&Array.isArray(t.patterns))for(const e of t.patterns)if("string"==typeof e)try{this.safelistPatterns.push(new RegExp(e))}catch(e){}}catch(e){}},e.prototype.isClassSafelisted=function(e){if(this.safelistClasses&&this.safelistClasses.has(e))return!0;if(this.safelistPatterns)for(const t of this.safelistPatterns)if(t.test(e))return!0;return!1},e.prototype.isClassCovered=function(e){const t=this.staticUtilitiesCoveredClasses;return!(!t||!t.has(e))||this.isClassSafelisted(e)},e.prototype.hasSafelistEntries=function(){return!!(this.safelistClasses&&this.safelistClasses.size||this.safelistPatterns&&this.safelistPatterns.length)},e.prototype.filterStaticallyCoveredClasses=function(e){const t=this.staticUtilitiesCoveredClasses;if(!(t&&0!==t.size||this.hasSafelistEntries()))return e;const s=e.filter(e=>!this.isClassCovered(e));if(!this.bareClassesEmitRules(s.filter(e=>!U(e))))return s;const i=new Set(s),n=[e,this.staticClassCache||[],this.dynamicClassCache||[]];for(const e of n)for(const t of e)this.isAtRuleVariantClass(t)&&i.add(t);return Array.from(i)},e.prototype.bareClassesEmitRules=function(e){if(!e.length)return!1;const t=this.lastThemeCss;if(!t)return!0;try{const s={classes:e,variableSuffixes:[]};return!(!(this.generateUtilitiesFromVars(t,s)||"").trim()&&!(this.generateCustomUtilities(s)||"").trim())}catch(e){return!0}},e.prototype.isAtRuleVariantClass=function(e){const t=T(e.replace(/^!/,""));return!!t.length&&t.every(e=>{const t=this.variants&&this.variants[e];return t?t.startsWith("@"):e.startsWith("@")||/^(min-|max-)?(sm|md|lg|xl|2xl)$/.test(e)||/^(min|max)-\[.+\]$/.test(e)})},e.prototype.stripCoveredRulesFromCss=function(e){const t=this.staticUtilitiesCoveredClasses;if(!e||(!t||0===t.size)&&!this.hasSafelistEntries())return e;const s=e=>{const t=[],r=e.length;let o=0;for(;o<r;){if(" "===e[o]||"\n"===e[o]||"\r"===e[o]||"\t"===e[o]){t.push(e[o]),o++;continue}const a=o;for(;o<r&&/\s/.test(e[o]);)o++;if(o>a&&t.push(e.slice(a,o)),o>=r)break;if("/"===e[o]&&"*"===e[o+1]){const s=e.indexOf("*/",o+2),i=-1===s?r:s+2;t.push(e.slice(o,i)),o=i;continue}if("@"===e[o]){let i=o;for(;i<r&&"{"!==e[i]&&";"!==e[i];)i++;if(i>=r||";"===e[i]){t.push(e.slice(o,i+1)),o=i+1;continue}const n=e.slice(o,i+1);o=i+1;let a=1;const l=o;for(;o<r&&a>0;)"{"===e[o]?a++:"}"===e[o]&&a--,o++;t.push(`${n}${s(e.slice(l,o-1))}}`);continue}const l=o;for(;o<r&&"{"!==e[o]&&"}"!==e[o];)o++;if(o>=r||"}"===e[o]){o++;continue}const c=e.slice(l,o).trim(),d=o;o++;let h=1;for(;o<r&&h>0;)"{"===e[o]?h++:"}"===e[o]&&h--,o++;const u=c+e.slice(d,o),f=[],p=/\.((?:\\[0-9a-fA-F]{1,6} ?|\\.|[a-zA-Z0-9_-])+)/g;let m;for(;null!==(m=p.exec(c));)f.push(this.unescapeClassToken(m[1]));const g=f.length>0&&f.every(e=>this.isClassCovered(e)),y=f.some(e=>this.isAtRuleVariantClass(e));g?i&&y&&t.push(u):(t.push(u),f.length>0&&!f.some(U)&&(n=!0))}return t.join("\n")};let i=!1,n=!1;const r=s(e);return n?(i=!0,s(e)):r},e.prototype.tailwindEngineWasSkipped=function(){try{if(!document.querySelector('script[src*="manifest.js"][data-tailwind]'))return!1;const e=this.findStaticUtilitiesElement();return!(!e||!e.hasAttribute("data-mnfst-utilities-complete"))}catch(e){return!1}},e.prototype.setupUncoveredClassWatcher=function(){if(this.usesStaticPrerenderUtilities)return;if(!this.tailwindEngineWasSkipped())return;if(window.__mnfstTailwindWatcherArmed)return;window.__mnfstTailwindWatcherArmed=!0;let e=new Set,t=!1,s=null;const i=t=>{const s=t.getAttribute&&t.getAttribute("class");if(s)for(const t of s.split(/\s+/))t&&!this.isClassCovered(t)&&e.add(t)},n=this.debounce(()=>{if(t||0===e.size)return;const i=Array.from(e).sort();e=new Set,t=!0,console.warn("[Manifest Utilities] Uncovered utility class(es) — loading the Tailwind engine:",i.join(", ")),window.Manifest.loadPlugin("tailwind").then(()=>{s&&s.disconnect(),window.dispatchEvent(new CustomEvent("manifest:utilities-uncovered",{detail:{classes:i,engineLoaded:!0}}))}).catch(e=>{t=!1,console.error("[Manifest Utilities] Failed to load the Tailwind engine:",e),window.dispatchEvent(new CustomEvent("manifest:utilities-uncovered",{detail:{classes:i,engineLoaded:!1}}))})},this.options.debounceTime||50);s=new MutationObserver(t=>{for(const e of t)if("attributes"===e.type)e.target.nodeType===Node.ELEMENT_NODE&&i(e.target);else if("childList"===e.type)for(const t of e.addedNodes)if(t.nodeType===Node.ELEMENT_NODE&&(i(t),t.querySelectorAll))for(const e of t.querySelectorAll("[class]"))i(e);e.size>0&&n()}),s.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class"]}),this.uncoveredClassObserver=s;for(const e of document.querySelectorAll("[class]"))i(e);e.size>0&&n()},e.prototype.setupComponentLoadListener=function(){const e=this.debounce(()=>this.compile(),this.options.debounceTime),t=()=>{this.hasScannedStatic||(this.staticScanPromise=null,this.hasScannedStatic=!1),e()};document.addEventListener("manifest:component-loaded",t),document.addEventListener("manifest:components-processed",t),document.addEventListener("manifest:components-ready",t),document.addEventListener("manifest:components-processed",t),document.addEventListener("manifest:components-ready",t),document.addEventListener("manifest:route-change",t=>{this.hasScannedStatic&&setTimeout(()=>{const t=this.dynamicClassCache.size,s=this.lastClassesHash,i=(this.getUsedClasses(),this.dynamicClassCache.size),n=Array.from(this.dynamicClassCache),r=n.sort().join(",");if(i>t&&r!==s){n.filter(e=>!(e.includes("hljs")||e.startsWith("language-")||e.includes("copy")||e.includes("lines"))).length>0&&e()}},300)});new MutationObserver(t=>{let s=!1;for(const e of t)if("attributes"===e.type){if(this.ignoredAttributes.includes(e.attributeName)||"class"!==e.attributeName)continue;e.target.nodeType===Node.ELEMENT_NODE&&this.collectNewClasses(e.target)&&(s=!0)}else if("childList"===e.type)for(const t of e.addedNodes){if(t.nodeType!==Node.ELEMENT_NODE)continue;const e=this.ignoredElementSelectors.some(e=>t.tagName?.toLowerCase()===e.toLowerCase()||t.closest(e));this.collectSubtreeClasses(t,e)?s=!0:s||e||this.hasInitialized||!this.isSignificantNode(t)||(s=!0)}s&&e()}).observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class"]})},e.prototype.collectNewClasses=function(e,t){if(!e.getAttribute)return!1;const s=e.getAttribute("class");let i=!!s&&this.recordClasses(s.split(/\s+/),t);const n=e.getAttribute(":class")||e.getAttribute("x-bind:class");return n&&this.recordClasses(this.bindingClasses(n),t)&&(i=!0),i},e.prototype.bindingClasses=function(e){this._bindingClasses||(this._bindingClasses=new Map);let t=this._bindingClasses.get(e);if(!t){const s=new Set;this.collectBindingClasses(e,s),t=Array.from(s),this._bindingClasses.size>500&&this._bindingClasses.clear(),this._bindingClasses.set(e,t)}return t},e.prototype.recordClasses=function(e,t){let s=!1;for(const i of e)i&&!this.staticClassCache.has(i)&&(this.dynamicClassCache.has(i)?!t&&this.quietClasses.delete(i)&&(s=!0):this.ignoredClassPatterns.some(e=>e.test(i))||(this.dynamicClassCache.add(i),t?this.quietClasses.add(i):s=!0));return s},e.prototype.collectSubtreeClasses=function(e,t){let s=this.collectNewClasses(e,t);const i=e.getElementsByTagName?e.getElementsByTagName("*"):[];for(let e=0;e<i.length;e++)this.collectNewClasses(i[e],t)&&(s=!0);return s},e.prototype.isSignificantNode=function(e){return this.significantChangeSelectors.some(t=>{try{return e.matches?.(t)||e.querySelector?.(t)}catch(e){return!1}})},e.prototype.startProcessing=async function(){if(!this.usesStaticPrerenderUtilities)try{await this.compile(),this.hasInitialized=!0}catch(e){console.error("Error starting Tailwind compiler:",e)}},function(){try{const e=document.documentElement;if(!e)return;if((window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches||!0===window.navigator.standalone)&&!e.hasAttribute("data-standalone")&&e.setAttribute("data-standalone",""),!e.hasAttribute("data-native")){const t=window.Capacitor;!(!t||"function"==typeof t.isNativePlatform&&!t.isNativePlatform())&&e.setAttribute("data-native","")}e.setAttribute("data-online",!1===navigator.onLine?"false":"true")}catch(e){}}(),window.addEventListener("online",_),window.addEventListener("offline",_);let L=!1;function P(){L||window.Alpine&&"function"==typeof window.Alpine.magic&&"function"==typeof window.Alpine.store&&(L=!0,function(){const e=document.documentElement;window.Alpine.store("device",{online:!1!==navigator.onLine}),window.Alpine.magic("device",()=>({get os(){return e.getAttribute("data-os")||""},get touch(){return(navigator.maxTouchPoints||0)>1||window.matchMedia&&window.matchMedia("(pointer: coarse)").matches||!1},get online(){const e=window.Alpine.store("device");return e?!1!==e.online:!1!==navigator.onLine},get standalone(){return e.hasAttribute("data-standalone")||!!window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches||!0===window.navigator.standalone},get native(){return e.hasAttribute("data-native")},get platform(){return e.getAttribute("data-platform")||(e.hasAttribute("data-native")?e.getAttribute("data-os")||"native":"web")}}))}())}if(window.ensureManifestDeviceInitialized=P,document.addEventListener("alpine:init",P),window.Alpine&&"function"==typeof window.Alpine.magic)setTimeout(P,0);else{const e=setInterval(()=>{window.Alpine&&"function"==typeof window.Alpine.magic&&(clearInterval(e),P())},10);setTimeout(()=>clearInterval(e),5e3)}!function(){try{const e=document.documentElement;if(!e||e.getAttribute("data-os"))return;const t=navigator.userAgent||"",s=navigator.userAgentData&&navigator.userAgentData.platform||navigator.platform||"",i=(navigator.maxTouchPoints||0)>1;let n="";/Android/i.test(t)?n="android":/iPhone|iPad|iPod/i.test(t)||/Mac/i.test(s)&&i?n="ios":/Mac/i.test(s)||/Mac OS X/i.test(t)?n="macos":/Win/i.test(s)||/Windows/i.test(t)?n="windows":(/Linux|X11|CrOS/i.test(s)||/Linux/i.test(t))&&(n="linux"),n&&e.setAttribute("data-os",n)}catch(e){}}(),function(){try{if(document.getElementById("manifest-tailwind-variants"))return;const e=Array.from(document.querySelectorAll('style[type="text/tailwindcss"]')).some(e=>/@custom-variant\s+dark[\s({]/.test(e.textContent||"")),t=document.createElement("style");t.id="manifest-tailwind-variants",t.setAttribute("type","text/tailwindcss"),t.textContent=["@custom-variant touch (@media (pointer: coarse));","@custom-variant cursor (@media (pointer: fine) and (hover: hover));","@custom-variant pointer (@media (any-pointer: fine));",'@custom-variant mac (&:where([data-os="macos"] *));','@custom-variant windows (&:where([data-os="windows"] *));','@custom-variant linux (&:where([data-os="linux"] *));','@custom-variant ios (&:where([data-os="ios"] *));','@custom-variant android (&:where([data-os="android"] *));','@custom-variant apple (&:where([data-os="macos"] *, [data-os="ios"] *));','@custom-variant online (&:where([data-online="true"] *));','@custom-variant offline (&:where([data-online="false"] *));',"@custom-variant standalone (&:where([data-standalone] *));","@custom-variant native (&:where([data-native] *));","@custom-variant web (&:where(html:not([data-native]) *));",...e?[]:["@custom-variant dark (&:where(.dark, .dark *));"]].join("\n"),(document.head||document.documentElement).appendChild(t)}catch(e){}}();const M=window.ManifestUtilities,N=M&&M.styleElement&&M.styleElement.isConnected?M:new e;if(window.ManifestUtilities=N,"loading"===document.readyState&&document.addEventListener("DOMContentLoaded",()=>{}),"PerformanceObserver"in window)try{new PerformanceObserver(e=>{for(const t of e.getEntries());}).observe({entryTypes:["paint"]})}catch(e){}N.__mnfstDomReadyBound||(N.__mnfstDomReadyBound=!0,document.addEventListener("DOMContentLoaded",()=>{N.usesStaticPrerenderUtilities||N.isCompiling||N.compile()}))}();
|
|
2
2
|
//# sourceMappingURL=manifest.utilities.min.js.map
|