mnfst 0.5.333 → 0.5.335

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.
@@ -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)",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"style"===e.localName||"link"===e.localName}function r(e){return e.hasAttribute("data-mnfst-utilities")||!e.id&&(e.textContent||"").trimStart().startsWith("/*! tailwindcss")}function o(e){const t=String(e||"").toLowerCase();return!t||"localhost"===t||"127.0.0.1"===t||"[::1]"===t||"::1"===t||"0.0.0.0"===t||t.endsWith(".localhost")||t.endsWith(".local")||t.endsWith(".test")}function a(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){let t=2166136261;for(let s=0;s<e.length;s++)t^=e.charCodeAt(s),t=Math.imul(t,16777619);return(t>>>0).toString(36)+e.length.toString(36)},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(){if(!this.styleElement||!this.styleElement.parentNode)return;let e=this.styleElement.nextElementSibling;for(;e&&!n(e);)e=e.nextElementSibling;(e||this.styleElement.parentNode!==document.head)&&(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&&n(t)){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(!r(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(!!!document.querySelector("[data-mnfst-utilities][data-mnfst-utilities-complete]")&&s&&s.manifest){const e=[...s.manifest.preloadedComponents||[],...s.manifest.components||[]];o.push(...e)}const a=o.map(async t=>{try{const s=window.ManifestComponentsLoader,i=t.split("/").pop().replace(".html",""),n=s&&(s.cache?.[i]||s._raw?.[i]);if(n){const t=await n;if(t)return void this.extractClassesFromHTML(t,e)}const r=[t.startsWith("/")?t:"/"+t,t];for(const t of r)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(/&quot;/g,'"').replace(/&#0?39;|&apos;/g,"'").replace(/&amp;/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;a=s.includes("manifestjs")||s.includes("mnfst")||s.includes("jsdelivr")||s.includes("unpkg")?this.hasScannedStatic?6e4:3e5:this.hasScannedStatic?5e3:3e4;const l=o(location.hostname);if(n&&(!l||r-n.timestamp<a)&&(t=n.content,i=!1),i){const i=l?`${s}${s.includes("?")?"&":"?"}t=${Math.floor(r/1e3)}`:s,n=this._cssInflight||(this._cssInflight=new Map);let o=n.get(i);if(!o){o=fetch(i).then(e=>e.ok?e.text():null),n.set(i,o);const e=()=>n.delete(i);o.then(e,e)}if(t=await o,null===t)return void console.warn("Failed to fetch stylesheet:",i);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:r,variableSuffixes:o}=t,l=t.rulesOut,c=t.keysOut;let d=null;const h=(e,t,i)=>{s.push({rule:e,key:b(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=r.filter(t=>{const s=t.split(":"),i=s[s.length-1];return i===e||i.startsWith("!")&&i.slice(1)===e});if(r.includes(e)){const s=`.${u(e)} { ${t} }`;i.has(s)||(h(s,0),i.add(s))}if(r.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 r=s.important,o="string"==typeof t?t:t&&"object"==typeof t&&t.css?t.css:String(t),l=r?o.includes(";")?o.replace(/;/g," !important;"):o+" !important":o;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?a(p,m):m;i.has(g)||(h(g,2,C(s.variants)),i.add(g))}},p=r.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];r.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 o=new Set;for(const e of r){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&&o.add(t)}}}for(const e of o){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 $(s,l,c)}catch(e){return console.error("Error generating utilities:",e),""}};const l=new Set(["row","row-wrap","col","col-wrap","trailing"]),c={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},d={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 h(e){const t=e.startsWith("max-"),s=t||e.startsWith("min-")?e.slice(4):e;return Object.prototype.hasOwnProperty.call(c,s)?{px:c[s],max:t}:null}function u(e){const t=h(e);return t.max?-t.px:t.px}const f=-1e9,p=1e7,m=10,g=[[/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 y(e){const t=/^(-?\d*\.?\d+)(px|rem|em)$/.exec(e.trim());return t?parseFloat(t[1])*("px"===t[2]?1:16):null}function w(e){let t=/\((?:min-width:\s*|width\s*>=\s*)([^)]+)\)/.exec(e);if(t){const e=y(t[1]);return null===e?1e5:e}if(t=/\((?:max-width:\s*|width\s*<\s*)([^)]+)\)/.exec(e),t){const e=y(t[1]);return null===e?-1e5:-e}return null}function v(e){if("string"!=typeof e||!e.startsWith("@"))return null;if(e.startsWith("@supports"))return 0;if(e.startsWith("@container"))return 20*p+(w(e)||0);if(e.startsWith("@starting-style"))return 24*p;if(!e.startsWith("@media"))return 40*p;const t=w(e);if(null!==t)return m*p+t;for(const[t,s]of g)if(t.test(e))return s*p;return 40*p}function C(e){const t=[];for(const s of e||[]){const e=s&&v(s.selector);null!=e&&t.push(e)}return t.sort((e,t)=>t-e),[0,1,2].map(e=>e<t.length?t[e]:f)}function b(e,t,s){return(T(e)?[1].concat(t||[40*p,f,f]):[0,0,0,0]).concat(s)}function S(e){return e.slice().sort((e,t)=>U(e.key,t.key))}function $(e,t,s){const i=S(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 x(e){return e.includes("{")?e:e.split(";").map(e=>e.trim()).filter(e=>e&&!/^display\s*:/.test(e)).join("; ")}function E(e,t,s){return l.has(e)&&1===t.variants.length&&h(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 A(e){const t=[];for(const s of e){const e=s.split(":");if(2!==e.length||!Object.prototype.hasOwnProperty.call(d,e[1]))continue;const i=h(e[0]);i&&t.push({cls:s,media:i.max?`@media (width < ${i.px}px)`:`@media (min-width: ${i.px}px)`,rank:u(e[0]),css:d[e[1]]})}return t}e.prototype.generateCustomUtilities=function(e){try{const t=[],s=new Set,{classes:i}=e,n=e.rulesOut,r=e.keysOut;let o=null;const l=(e,s,i)=>{t.push({rule:e,key:b(e,i,o.concat(s))})},c=[],d=e=>"string"!=typeof e?e:e.replace(/\[object Object\](;?\s*)/g,"").trim();if(0===this.customUtilities.size)return"";const h=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 r=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=`.${h("!"+e)} { ${i} }`;else{const t=`.${h("!"+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=`.${h("!"+e)} { ${i} }`;s.has(r)||(l(r,1),s.add(r))}for(const i of r){if(i===e)continue;const r=this.parseClassName(i);if(r.unknown)continue;const o=r.important,d="string"==typeof t?t:t&&"object"==typeof t&&t.css?t.css:String(t);let f=o?d.includes(";")?d.replace(/;/g," !important;"):d+" !important":d,p=`.${h(i)}`,m=!1,y="";const w=[];let v=null;for(const e of r.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("@")&&(m=!0,w.push(e.selector),y=w[0]);const b=!o&&!r.baseClass.startsWith("!")&&"string"==typeof p&&E(e,r,d);if(b){c.push({cls:i,media:y,rank:u(r.variants[0].name),css:b});const e=x(d);if(!e)continue;f=e}let S,$,A="string"==typeof f?f:String(f);if(A=A.replace(/\[object Object\](;?\s*)/g,"").trim(),"object"==typeof p&&p.arbitrarySelector)S=`${p.baseClass} {\n ${p.arbitrarySelector} {\n ${A}\n }\n}`;else if(v){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){S=`${p} {\n ${v} {\n${g(A,p)}\n }\n}`}else S=`${p} {\n ${v} {\n ${A}\n }\n}`;else{const s=new RegExp(`\\.${e}(?=[^a-zA-Z0-9_-]|$)`);let i=n.selector.replace(s,p);if(i===n.selector&&(i=`${n.selector}${p}`),t){S=`${i} {\n ${v} {\n${g(A,i)}\n }\n}`}else S=`${i} {\n ${v} {\n ${A}\n }\n}`}else if(t){S=`${p} {\n ${v} {\n${g(A,p)}\n }\n}`}else S=`${p} {\n ${v} {\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){S=`${p} {\n${g(A,p)}\n}`}else S=`${p} { ${A} }`;else{const s=new RegExp(`\\.${e}(?=[^a-zA-Z0-9_-]|$)`);let i=n.selector.replace(s,p);if(i===n.selector&&(i=`${n.selector}${p}`),t){S=`${i} {\n${g(A,i)}\n}`}else S=`${i} { ${A} }`}else if(t){S=`${p} {\n${g(A,p)}\n}`}else S=`${p} { ${A} }`}$=m?"string"==typeof S&&S.trim().startsWith("@media")?S:a(w,S):S,s.has($)||(l($,2,C(r.variants)),s.add($))}};let w=-1;for(const[e,t]of this.customUtilities.entries()){w++;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=d(t);else if(Array.isArray(t));else if(t&&t.css){e=d("string"==typeof t.css?t.css:t.css&&"object"==typeof t.css&&t.css.css?t.css.css:String(t.css))}else e=d(String(t));if("string"==typeof t)o=[1,w,0,0],y(s,e,null);else if(Array.isArray(t))for(let e=0;e<t.length;e++){const i=t[e];if(o=[1,w,e,0],i&&i.css&&i.selector){const e=d("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=d("string"==typeof t.css?t.css:t.css&&"object"==typeof t.css&&t.css.css?t.css.css:String(t.css));o=[1,w,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(A(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=`.${h(e.cls)}`,i=`${e.media} { ${t}${t} { display: ${e.css} } }`;s.has(i)||(s.add(i),o=[2,0,0,0],l(i,2,[m*p+e.rank,f,f]))}}return $(t,n,r)}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),S(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 k=e=>`@layer utilities {\n${e.entries.map(e=>e.rule).join("\n\n")}\n}`,T=e=>e.trim().startsWith("@");function U(e,t){for(let s=0;s<e.length;s++)if(e[s]!==t[s])return e[s]-t[s];return 0}function _(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 L(e){return _(e).length>0}function P(){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=k(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);if(this.staticUtilitiesCoveredClasses&&t.entries.length&&s.some(e=>this.isAtRuleVariantClass(e)&&this.isClassCovered(e)))return!1;const i=this.filterStaticallyCoveredClasses(s);if(A(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;U(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===U(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)=>U(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:k(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.dropCriticalStyles=function(){this.criticalStyleElement&&requestAnimationFrame(()=>requestAnimationFrame(()=>{this.criticalStyleElement&&this.criticalStyleElement.parentNode&&(this.criticalStyleElement.parentNode.removeChild(this.criticalStyleElement),this.criticalStyleElement=null),this.ensureUtilityStylesLast()}))},e.prototype.armEmptyDelta=function(e,t){this.styleElement&&(!this.staticUtilitiesCoveredClasses&&this.styleElement.textContent.trim()||(this._applied=null,this.styleElement.textContent="@layer utilities {\n}",this.recordAppliedUtilities([],e,t)))},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.generateOrderedUtilities(e,i),r=this.orderedUtilitiesCss(n);if(r){const t=`@layer utilities {\n${r}\n}`;this._applied=null,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(","),this.recordAppliedUtilities(n,e,[]);const s=this.generateThemeHash(e),o=`${this.lastClassesHash}-${s}`;this.cache.set(o,{css:t,timestamp:Date.now(),themeHash:s}),this.savePersistentCache()}else this.clearStaleUtilityPatches(),this.armEmptyDelta(e,[])}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 void this.dropCriticalStyles();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._applied=null,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(),this.lastClassesHash=n,this.armEmptyDelta(e,i)}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=>!L(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=_(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(L)&&(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);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,!1,!0)&&(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,s){if(!e.getAttribute)return!1;const i=e.getAttribute("class");let n=!1;if(i){const e=this._seenClassStrings||(this._seenClassStrings=new Set);e.has(i)||(n=this.recordClasses(i.split(/\s+/),t),t||(e.size>5e3&&e.clear(),e.add(i)))}if(s)return n;const r=e.getAttribute(":class")||e.getAttribute("x-bind:class");return r&&this.recordClasses(this.bindingClasses(r),t)&&(n=!0),n},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",P),window.addEventListener("offline",P);let M=!1;function N(){M||window.Alpine&&"function"==typeof window.Alpine.magic&&"function"==typeof window.Alpine.store&&(M=!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=N,document.addEventListener("alpine:init",N),window.Alpine&&"function"==typeof window.Alpine.magic)setTimeout(N,0);else{const e=setInterval(()=>{window.Alpine&&"function"==typeof window.Alpine.magic&&(clearInterval(e),N())},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 W=window.ManifestUtilities,R=W&&W.styleElement&&W.styleElement.isConnected?W:new e;if(window.ManifestUtilities=R,"loading"===document.readyState&&document.addEventListener("DOMContentLoaded",()=>{}),"PerformanceObserver"in window)try{new PerformanceObserver(e=>{for(const t of e.getEntries());}).observe({entryTypes:["paint"]})}catch(e){}R.__mnfstDomReadyBound||(R.__mnfstDomReadyBound=!0,document.addEventListener("DOMContentLoaded",()=>{R.usesStaticPrerenderUtilities||R.isCompiling||R.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")}}function t(e){try{for(const t of document.querySelectorAll("style")){if(!o(t))continue;const s=/--([\w-]+)\s*:/g;let i;for(;null!==(i=s.exec(t.textContent||""));)e.delete(i[1])}}catch(e){}}e.prototype.addCriticalBlockingStylesSync=function(){if(!this.criticalStyleElement)return;if(this.hasShippedUtilitiesSheet())return;performance.now();try{const e=new Map,i=document.querySelectorAll("style:not(#manifest-styles):not(#manifest-styles-critical)");for(const t of i)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){}t(e);const n=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)&&n.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)&&n.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(n.size>0)i={classes:Array.from(n),variableSuffixes:[]};else{const e=localStorage.getItem(s);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 s=new Map;const i=new Set,n=document.querySelectorAll("style:not(#manifest-styles)");for(const e of n)if(e.textContent){const t=this.extractThemeVariables(e.textContent);for(const[e,i]of t.entries())s.set(e,i)}try{const e=document.documentElement.outerHTML,t=/<style[^>]*>([\s\S]*?)<\/style>/gi;let i;for(;null!==(i=t.exec(e));){const e=i[1],t=this.extractThemeVariables(e);for(const[e,i]of t.entries())s.set(e,i)}}catch(e){}try{if(document.documentElement){const e=getComputedStyle(document.documentElement),t=e.length;for(let i=0;i<t;i++){const t=e[i];if(t.startsWith("--")){const i=e.getPropertyValue(t);i&&i.trim()&&s.set(t.substring(2),i.trim())}}}}catch(e){}t(s);try{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)}}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)&&i.add(e)}}if(s.size>0&&i.size>0){const t=`:root { ${Array.from(s.entries()).map(([e,t])=>`--${e}: ${t};`).join("\n")} }`,n={classes:Array.from(i),variableSuffixes:[]},r=this.generateUtilitiesFromVars(t,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 s="tailwind-cache:v2",i=["tailwind-cache"];function n(){for(const e of i)try{localStorage.removeItem(e)}catch(e){}}function r(e){return"style"===e.localName||"link"===e.localName}function o(e){return e.hasAttribute("data-mnfst-utilities")||!e.id&&(e.textContent||"").trimStart().startsWith("/*! tailwindcss")}function a(e){const t=String(e||"").toLowerCase();return!t||"localhost"===t||"127.0.0.1"===t||"[::1]"===t||"::1"===t||"0.0.0.0"===t||t.endsWith(".localhost")||t.endsWith(".local")||t.endsWith(".test")}function l(e,t){return e.reduceRight((e,t)=>`${t} { ${e} }`,t)}e.prototype.loadAndApplyCache=function(){performance.now();n();try{const e=localStorage.getItem(s);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,u=(Date.now()-t.timestamp)/864e5,h=.7*d+.3*(1-Math.min(u,1));h>n&&(n=h,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(s,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(s)}catch(e){}},e.prototype.loadPersistentCache=function(){n();try{const e=localStorage.getItem(s);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){let t=2166136261;for(let s=0;s<e.length;s++)t^=e.charCodeAt(s),t=Math.imul(t,16777619);return(t>>>0).toString(36)+e.length.toString(36)},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(){if(!this.styleElement||!this.styleElement.parentNode)return;let e=this.styleElement.nextElementSibling;for(;e&&!r(e);)e=e.nextElementSibling;(e||this.styleElement.parentNode!==document.head)&&(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&&r(t)){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(!o(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(!!!document.querySelector("[data-mnfst-utilities][data-mnfst-utilities-complete]")&&s&&s.manifest){const e=[...s.manifest.preloadedComponents||[],...s.manifest.components||[]];o.push(...e)}const a=o.map(async t=>{try{const s=window.ManifestComponentsLoader,i=t.split("/").pop().replace(".html",""),n=s&&(s.cache?.[i]||s._raw?.[i]);if(n){const t=await n;if(t)return void this.extractClassesFromHTML(t,e)}const r=[t.startsWith("/")?t:"/"+t,t];for(const t of r)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(/&quot;/g,'"').replace(/&#0?39;|&apos;/g,"'").replace(/&amp;/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;o=s.includes("manifestjs")||s.includes("mnfst")||s.includes("jsdelivr")||s.includes("unpkg")?this.hasScannedStatic?6e4:3e5:this.hasScannedStatic?5e3:3e4;const l=a(location.hostname);if(n&&(!l||r-n.timestamp<o)&&(t=n.content,i=!1),i){const i=l?`${s}${s.includes("?")?"&":"?"}t=${Math.floor(r/1e3)}`:s,n=this._cssInflight||(this._cssInflight=new Map);let o=n.get(i);if(!o){o=fetch(i).then(e=>e.ok?e.text():null),n.set(i,o);const e=()=>n.delete(i);o.then(e,e)}if(t=await o,null===t)return void console.warn("Failed to fetch stylesheet:",i);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),u=t?a.replace(/&/g,t).trim():a.trim();if(s){const e=d.trim();e&&i.push({selector:u,css:e,fullBlock:!0})}n(d,u,!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:r,variableSuffixes:o}=t,a=t.rulesOut,c=t.keysOut;let d=null;const u=(e,t,i)=>{s.push({rule:e,key:C(e,i,d.concat(d[3]?2:t))})};if(0===n.size)return"";const h=e=>e.replace(/[^a-zA-Z0-9-]/g,"\\$&"),f=(e,t)=>{const s=r.filter(t=>{const s=t.split(":"),i=s[s.length-1];return i===e||i.startsWith("!")&&i.slice(1)===e});if(r.includes(e)){const s=`.${h(e)} { ${t} }`;i.has(s)||(u(s,0),i.add(s))}if(r.includes("!"+e)){const s=t.includes(";")?t.replace(/;/g," !important;"):t+" !important",n=`.${h("!"+e)} { ${s} }`;i.has(n)||(u(n,1),i.add(n))}for(const n of s){if(n===e)continue;const s=this.parseClassName(n);if(s.unknown)continue;const r=s.important,o="string"==typeof t?t:t&&"object"==typeof t&&t.css?t.css:String(t),a=r?o.includes(";")?o.replace(/;/g," !important;"):o+" !important":o;let c=`.${h(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 ${a}\n }\n}`:`${c} { ${a} }`;const y=d?l(p,m):m;i.has(y)||(u(y,2,S(s.variants)),i.add(y))}},p=r.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];r.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 o=new Set;for(const e of r){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&&o.add(t)}}}for(const e of o){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 x(s,a,c)}catch(e){return console.error("Error generating utilities:",e),""}};const c=new Set(["row","row-wrap","col","col-wrap","trailing"]),d={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},u={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 h(e){const t=e.startsWith("max-"),s=t||e.startsWith("min-")?e.slice(4):e;return Object.prototype.hasOwnProperty.call(d,s)?{px:d[s],max:t}:null}function f(e){const t=h(e);return t.max?-t.px:t.px}const p=-1e9,m=1e7,y=10,g=[[/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 w(e){const t=/^(-?\d*\.?\d+)(px|rem|em)$/.exec(e.trim());return t?parseFloat(t[1])*("px"===t[2]?1:16):null}function v(e){let t=/\((?:min-width:\s*|width\s*>=\s*)([^)]+)\)/.exec(e);if(t){const e=w(t[1]);return null===e?1e5:e}if(t=/\((?:max-width:\s*|width\s*<\s*)([^)]+)\)/.exec(e),t){const e=w(t[1]);return null===e?-1e5:-e}return null}function b(e){if("string"!=typeof e||!e.startsWith("@"))return null;if(e.startsWith("@supports"))return 0;if(e.startsWith("@container"))return 20*m+(v(e)||0);if(e.startsWith("@starting-style"))return 24*m;if(!e.startsWith("@media"))return 40*m;const t=v(e);if(null!==t)return y*m+t;for(const[t,s]of g)if(t.test(e))return s*m;return 40*m}function S(e){const t=[];for(const s of e||[]){const e=s&&b(s.selector);null!=e&&t.push(e)}return t.sort((e,t)=>t-e),[0,1,2].map(e=>e<t.length?t[e]:p)}function C(e,t,s){return(U(e)?[1].concat(t||[40*m,p,p]):[0,0,0,0]).concat(s)}function $(e){return e.slice().sort((e,t)=>_(e.key,t.key))}function x(e,t,s){const i=$(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(e){return e.includes("{")?e:e.split(";").map(e=>e.trim()).filter(e=>e&&!/^display\s*:/.test(e)).join("; ")}function A(e,t,s){return c.has(e)&&1===t.variants.length&&h(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 k(e){const t=[];for(const s of e){const e=s.split(":");if(2!==e.length||!Object.prototype.hasOwnProperty.call(u,e[1]))continue;const i=h(e[0]);i&&t.push({cls:s,media:i.max?`@media (width < ${i.px}px)`:`@media (min-width: ${i.px}px)`,rank:f(e[0]),css:u[e[1]]})}return t}e.prototype.generateCustomUtilities=function(e){try{const t=[],s=new Set,{classes:i}=e,n=e.rulesOut,r=e.keysOut;let o=null;const a=(e,s,i)=>{t.push({rule:e,key:C(e,i,o.concat(s))})},c=[],d=e=>"string"!=typeof e?e:e.replace(/\[object Object\](;?\s*)/g,"").trim();if(0===this.customUtilities.size)return"";const u=e=>e.replace(/[^a-zA-Z0-9-]/g,"\\$&"),h=(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},g=(e,t,n)=>{"string"!=typeof t&&(t="object"==typeof t&&t&&t.css?t.css:String(t));const r=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=`.${u("!"+e)} { ${i} }`;else{const t=`.${u("!"+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=`.${u("!"+e)} { ${i} }`;s.has(r)||(a(r,1),s.add(r))}for(const i of r){if(i===e)continue;const r=this.parseClassName(i);if(r.unknown)continue;const o=r.important,d="string"==typeof t?t:t&&"object"==typeof t&&t.css?t.css:String(t);let p=o?d.includes(";")?d.replace(/;/g," !important;"):d+" !important":d,m=`.${u(i)}`,y=!1,g="";const w=[];let v=null;for(const e of r.variants)if(e.isArbitrary){let t=e.selector;t.startsWith("&")?(t=t.replace(/_/g," ").replace(/&/g,m),m=t):(t=t.replace(/_/g," "),m={baseClass:m,arbitrarySelector:t})}else e.selector.includes("&")?m=e.selector.replace(/&/g,m):e.selector.startsWith(":")?m=`${m}${e.selector}`:e.selector.startsWith("@")&&(y=!0,w.push(e.selector),g=w[0]);const b=!o&&!r.baseClass.startsWith("!")&&"string"==typeof m&&A(e,r,d);if(b){c.push({cls:i,media:g,rank:f(r.variants[0].name),css:b});const e=E(d);if(!e)continue;p=e}let C,$,x="string"==typeof p?p:String(p);if(x=x.replace(/\[object Object\](;?\s*)/g,"").trim(),"object"==typeof m&&m.arbitrarySelector)C=`${m.baseClass} {\n ${m.arbitrarySelector} {\n ${x}\n }\n}`;else if(v){const t=n&&void 0!==n.fullBlock?n.fullBlock:x.includes("@starting-style")||x.includes("@media")||x.includes("@supports")||x.includes("{")&&x.includes("}");if(n&&n.selector)if(n.selector.includes(":where("))if(t){C=`${m} {\n ${v} {\n${h(x,m)}\n }\n}`}else C=`${m} {\n ${v} {\n ${x}\n }\n}`;else{const s=new RegExp(`\\.${e}(?=[^a-zA-Z0-9_-]|$)`);let i=n.selector.replace(s,m);if(i===n.selector&&(i=`${n.selector}${m}`),t){C=`${i} {\n ${v} {\n${h(x,i)}\n }\n}`}else C=`${i} {\n ${v} {\n ${x}\n }\n}`}else if(t){C=`${m} {\n ${v} {\n${h(x,m)}\n }\n}`}else C=`${m} {\n ${v} {\n ${x}\n }\n}`}else{const t=n&&void 0!==n.fullBlock?n.fullBlock:x.includes("@starting-style")||x.includes("@media")||x.includes("@supports")||x.includes("{")&&x.includes("}");if(n&&n.selector)if(n.selector.includes(":where("))if(t){C=`${m} {\n${h(x,m)}\n}`}else C=`${m} { ${x} }`;else{const s=new RegExp(`\\.${e}(?=[^a-zA-Z0-9_-]|$)`);let i=n.selector.replace(s,m);if(i===n.selector&&(i=`${n.selector}${m}`),t){C=`${i} {\n${h(x,i)}\n}`}else C=`${i} { ${x} }`}else if(t){C=`${m} {\n${h(x,m)}\n}`}else C=`${m} { ${x} }`}$=y?"string"==typeof C&&C.trim().startsWith("@media")?C:l(w,C):C,s.has($)||(a($,2,S(r.variants)),s.add($))}};let w=-1;for(const[e,t]of this.customUtilities.entries()){w++;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=d(t);else if(Array.isArray(t));else if(t&&t.css){e=d("string"==typeof t.css?t.css:t.css&&"object"==typeof t.css&&t.css.css?t.css.css:String(t.css))}else e=d(String(t));if("string"==typeof t)o=[1,w,0,0],g(s,e,null);else if(Array.isArray(t))for(let e=0;e<t.length;e++){const i=t[e];if(o=[1,w,e,0],i&&i.css&&i.selector){const e=d("string"==typeof i.css?i.css:i.css&&"object"==typeof i.css&&i.css.css?i.css.css:String(i.css));g(s,e,{selector:i.selector,fullBlock:i.fullBlock||!1})}}else if(t&&t.css&&t.selector){const e=d("string"==typeof t.css?t.css:t.css&&"object"==typeof t.css&&t.css.css?t.css.css:String(t.css));o=[1,w,0,0],g(s,e,{selector:t.selector,fullBlock:t.fullBlock||!1})}}}if(c.length){const e=new Set(c.map(e=>e.cls)),t=c.concat(k(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=`.${u(e.cls)}`,i=`${e.media} { ${t}${t} { display: ${e.css} } }`;s.has(i)||(s.add(i),o=[2,0,0,0],a(i,2,[y*m+e.rank,p,p]))}}return x(t,n,r)}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),$(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 T=e=>`@layer utilities {\n${e.entries.map(e=>e.rule).join("\n\n")}\n}`,U=e=>e.trim().startsWith("@");function _(e,t){for(let s=0;s<e.length;s++)if(e[s]!==t[s])return e[s]-t[s];return 0}function L(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 M(e){return L(e).length>0}function N(){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=T(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);if(this.staticUtilitiesCoveredClasses&&t.entries.length&&s.some(e=>this.isAtRuleVariantClass(e)&&this.isClassCovered(e)))return!1;const i=this.filterStaticallyCoveredClasses(s);if(k(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;_(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===_(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)=>_(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:T(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.dropCriticalStyles=function(){this.criticalStyleElement&&requestAnimationFrame(()=>requestAnimationFrame(()=>{this.criticalStyleElement&&this.criticalStyleElement.parentNode&&(this.criticalStyleElement.parentNode.removeChild(this.criticalStyleElement),this.criticalStyleElement=null),this.ensureUtilityStylesLast()}))},e.prototype.armEmptyDelta=function(e,t){this.styleElement&&(!this.staticUtilitiesCoveredClasses&&this.styleElement.textContent.trim()||(this._applied=null,this.styleElement.textContent="@layer utilities {\n}",this.recordAppliedUtilities([],e,t)))},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.generateOrderedUtilities(e,i),r=this.orderedUtilitiesCss(n);if(r){const t=`@layer utilities {\n${r}\n}`;this._applied=null,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(","),this.recordAppliedUtilities(n,e,[]);const s=this.generateThemeHash(e),o=`${this.lastClassesHash}-${s}`;this.cache.set(o,{css:t,timestamp:Date.now(),themeHash:s}),this.savePersistentCache()}else this.clearStaleUtilityPatches(),this.armEmptyDelta(e,[])}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 void this.dropCriticalStyles();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._applied=null,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(),this.lastClassesHash=n,this.armEmptyDelta(e,i)}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=>!M(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=L(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 u=1;for(;o<r&&u>0;)"{"===e[o]?u++:"}"===e[o]&&u--,o++;const h=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 y=f.length>0&&f.every(e=>this.isClassCovered(e)),g=f.some(e=>this.isAtRuleVariantClass(e));y?i&&g&&t.push(h):(t.push(h),f.length>0&&!f.some(M)&&(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);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,!1,!0)&&(s=!0)}else if("childList"===e.type)for(const t of e.addedNodes){if(t.nodeType!==Node.ELEMENT_NODE||t.hasAttribute("data-tailwind-seed"))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,s){if(!e.getAttribute)return!1;const i=e.getAttribute("class");let n=!1;if(i){const e=this._seenClassStrings||(this._seenClassStrings=new Set);e.has(i)||(n=this.recordClasses(i.split(/\s+/),t),t||(e.size>5e3&&e.clear(),e.add(i)))}if(s)return n;const r=e.getAttribute(":class")||e.getAttribute("x-bind:class");return r&&this.recordClasses(this.bindingClasses(r),t)&&(n=!0),n},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",N),window.addEventListener("offline",N);let P=!1;function O(){P||window.Alpine&&"function"==typeof window.Alpine.magic&&"function"==typeof window.Alpine.store&&(P=!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=O,document.addEventListener("alpine:init",O),window.Alpine&&"function"==typeof window.Alpine.magic)setTimeout(O,0);else{const e=setInterval(()=>{window.Alpine&&"function"==typeof window.Alpine.magic&&(clearInterval(e),O())},10);setTimeout(()=>clearInterval(e),5e3)}const z=new Set(["dark","light","window-resizing"]);function W(){return Array.from(document.querySelectorAll('style[type="text/tailwindcss"]:not(#manifest-tailwind-variants)'),e=>e.textContent)}function R(){const e=document.getElementById("manifest-tailwind-variants");return e?e.textContent:null}function q(e){return"style"===e.localName&&!e.id&&!e.hasAttribute("data-tailwind-cache")&&!e.hasAttribute("data-mnfst-utilities")&&(e.textContent||"").startsWith("/*! tailwindcss")}function j(){for(const e of document.querySelectorAll("style"))if(q(e))return e;return null}function I(e,t){if(!e)return t;for(const s of e.split(/\s+/))s&&!z.has(s)&&t.add(s);return t}function F(e,t,s){e&&!s.has(e)&&(s.size>4e3&&s.clear(),s.add(e),I(e,t))}function B(e){for(const t of document.querySelectorAll("[class]"))t.hasAttribute("data-tailwind-seed")||I(t.getAttribute("class"),e);return e}const D=/^[^\s"'`{}();,]+$/;function H(e,t){const s=/(['"`])((?:\\.|(?!\1)[^\\])*)\1/g;let i;for(;null!==(i=s.exec(e));)if(!i[2].includes("${"))for(const e of i[2].split(/\s+/))e&&D.test(e)&&!z.has(e)&&t.add(e);const n=/[{,]\s*([A-Za-z_][\w-]*)\s*:/g;for(;null!==(i=n.exec(e));)t.add(i[1]);return t}function V(){try{return!!document.querySelector('[data-mnfst-utilities], link[href*="prerender.tailwind.css"], link[href*="prerender.utilities.css"]')}catch(e){return!0}}function Z(e){return e&&1===e.nodeType&&"style"===e.localName&&"text/tailwindcss"===e.getAttribute("type")}function G(e){return Z(e)||!!(e&&1===e.nodeType&&e.firstElementChild&&e.querySelector('style[type="text/tailwindcss"]'))}function J(e){document.hidden||"function"!=typeof requestAnimationFrame?setTimeout(e,0):requestAnimationFrame(e)}function K(e,t){const s=document.createElement("template");s.setAttribute("data-tailwind-seed",""),s.setAttribute("class",Array.from(e).join(" "));let i=!1;const n=()=>{i||(i=!0,r.disconnect(),s.remove(),t())},r=new MutationObserver(e=>{for(const t of e){const e=1===t.target.nodeType?t.target:t.target.parentNode;if(e&&q(e))return n()}});r.observe(document.head,{childList:!0,subtree:!0,characterData:!0}),document.head.appendChild(s),J(n)}function Q(e){const t=e.record,s=new Set(t.tokens),i=new Set,n=[];let r=!1,o=null,a=null,l="loading"!==document.readyState;const c=()=>{o&&o.disconnect(),n.forEach(e=>e.disconnect())};e.stop=()=>{c(),a&&a.disconnect()};const d=(s,i)=>{if(r)return;r=!0,c(),e.reason=s;const n="unseen"===s?t.tokens:null;(e.load||(e.load=window.Manifest.loadTailwind())).then(()=>((t,s,i)=>{const n=()=>{const n=j();return!!n&&(e.style&&e.style.isConnected&&(e.style.parentNode.insertBefore(n,e.style),e.style.remove()),e.style=null,se(e,t),window.dispatchEvent(new CustomEvent("manifest:tailwind-cache",{detail:{engineLoaded:!0,reason:s,unseen:i||[]}})),!0)},r=()=>J(()=>{n()||(a=new MutationObserver(()=>{n()&&a.disconnect()}),a.observe(document.head,{childList:!0,subtree:!0,characterData:!0}))});t?K(t,r):r()})(n,s,i)).catch(()=>{e.load=null,r=!1,p()})},u=(s=!l)=>{const i=R();var n,r;return n=W(),r=t.blocks,!(n.length!==r.length||!n.every((e,t)=>e===r[t])||null!==i&&void 0!==t.variants&&i!==t.variants)||(s&&(e.style&&e.style.remove(),e.style=null,ee(e)),d("config"),!1)},h=e=>{const t=new MutationObserver(()=>u());t.observe(e,{characterData:!0,childList:!0,subtree:!0}),n.push(t)},f=(e,t)=>{if(!e||i.has(e))return;let n=!0;for(const i of e.split(/\s+/))!i||z.has(i)||s.has(i)||(t.add(i),n=!1);n&&(i.size>4e3&&i.clear(),i.add(e))},p=()=>{o=new MutationObserver(e=>{if(r)return;const t=new Set;let s=!1;for(const i of e)if("attributes"!==i.type){Z(i.target)&&(s=!0);for(const e of i.removedNodes)G(e)&&(s=!0);for(const e of i.addedNodes)if(1===e.nodeType&&!e.hasAttribute("data-tailwind-seed")&&(Z(e)&&(s=!0,h(e)),f(e.getAttribute("class"),t),e.firstElementChild)){for(const s of e.querySelectorAll("[class]"))f(s.getAttribute("class"),t);for(const t of e.querySelectorAll('style[type="text/tailwindcss"]'))s=!0,h(t)}}else{if("type"===i.attributeName){"style"===i.target.localName&&(s=!0);continue}f(i.oldValue,t),f(i.target.getAttribute("class"),t)}s&&!u()||t.size&&d("unseen",Array.from(t))}),o.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeOldValue:!0,attributeFilter:["class","type"]}),document.querySelectorAll('style[type="text/tailwindcss"]').forEach(h)},m=()=>{const e=new Set;for(const t of document.querySelectorAll("[class]"))t.hasAttribute("data-tailwind-seed")||f(t.getAttribute("class"),e);e.size&&d("unseen",Array.from(e))};if(function(e){try{const t=X(e);if(!e.id||t.ids[0]===e.id||!t.ids.includes(e.id))return;t.ids=[e.id,...t.ids.filter(t=>t!==e.id)],Y(e,t)}catch(e){}}(e),p(),!u(!0))return;m();const y=()=>{if(r)return;if(V())return d("shipped");const e=u(!0);l=!0,e&&m()};l?y():document.addEventListener("DOMContentLoaded",y,{once:!0})}function X(e){try{const t=JSON.parse(localStorage.getItem(e.key)||"null");if(t&&Array.isArray(t.ids)&&t.sizes&&"object"==typeof t.sizes)return t.skip&&"object"==typeof t.skip&&!Array.isArray(t.skip)||(t.skip={}),t.over&&"object"==typeof t.over||(t.over={}),t}catch(e){}return{ids:[],sizes:{},skip:{},over:{}}}function Y(e,t){try{return localStorage.setItem(e.key,JSON.stringify(t)),!0}catch(e){return!1}}function ee(e){try{if(!e.pathId)return;e.skipped=!0;const t=X(e);t.skip[e.pathId]=Date.now();const s=Object.keys(t.skip).sort((e,s)=>t.skip[s]-t.skip[e]);for(const e of s.slice(32))delete t.skip[e];Y(e,t)}catch(e){}}function te(e,t){const s=e.idFor(t.blocks),i=`${e.key}:${s}`;try{const n=X(e),r=t=>{n.ids=n.ids.filter(e=>e!==t),delete n.sizes[t],localStorage.removeItem(`${e.key}:${t}`)},o=JSON.stringify(t);n.ids=[s,...n.ids.filter(e=>e!==s)],n.sizes[s]=o.length,delete n.over[s];const a=()=>n.ids.reduce((e,t)=>e+(n.sizes[t]||0),0);for(;n.ids.length>1&&(n.ids.length>4||a()>1048576);)r(n.ids[n.ids.length-1]);for(!function(e,t){const s=e.key.slice(0,e.key.lastIndexOf(":")+1),i=new Set([e.key,...t.ids.map(t=>`${e.key}:${t}`)]);for(let e=localStorage.length-1;e>=0;e--){const t=localStorage.key(e);t&&t.startsWith(s)&&!i.has(t)&&localStorage.removeItem(t)}}(e,n);;)try{return localStorage.setItem(i,o),localStorage.setItem(e.key,JSON.stringify(n)),!0}catch(t){if(n.ids.length<=1)return r(s),Y(e,n),!1;r(n.ids[n.ids.length-1])}}catch(e){return!1}}function se(e,t){if(e.recording)return;e.recording=!0,e.parsedMismatch&&!e.skipped&&ee(e);const s=()=>e.idFor(W());if(function(e,t){const s=e.over[t];return"number"==typeof s&&Date.now()-s>=0&&Date.now()-s<=6048e5}(X(e),s()))return;const i=new Set,n=B(new Set(t||[]));let r=new Set(t||[]),o=0,a=j()?0:-1,l=!0,c=null,d=null,u=0,h=!1,f=!1;const p=[],m=e=>e&&e.textContent.length>262144||n.size>6e3,y=()=>{T(),function(e,t){try{const s=X(e);s.over[t]=Date.now();const i=Object.keys(s.over).sort((e,t)=>s.over[t]-s.over[e]);for(const e of i.slice(16))delete s.over[e];s.ids=s.ids.filter(e=>e!==t),delete s.sizes[t],localStorage.removeItem(`${e.key}:${t}`),Y(e,s)}catch(e){}}(e,s()),e.over=!0},g=t=>{if(e.parsedMismatch&&!e.skipped&&ee(e),f||V())return;const s=j();if(!s)return;if(a!==o)return b();if(m(s))return y();l=!1,u=Date.now();const i=!(!document.body||!document.body.querySelector('style[type="text/tailwindcss"]')),n={v:e.v,t:u,blocks:W(),variants:R(),body:i,tokens:Array.from(t),css:s.textContent};te(e,n)&&(e.saved=n)},w=e=>{if(f)return;if(h&&!e)return void(d=setTimeout(()=>w(),250));const t=j();if(h||!t||a!==o)return e&&e();if(m(t))return y();const s=B(new Set),i=[];for(const e of n)r.has(e)||(s.has(e)?r.add(e):i.push(e));if(!i.length)return e&&e();h=!0;const l=o;K(i,()=>{h=!1,o===l&&i.forEach(e=>r.add(e)),e&&e()})},v=()=>{if(c=null,l&&!f){if(h)return b();if(m(j()))return y();!function(e){const t=s=>{for(const t of s.querySelectorAll("[\\:class], [x-bind\\:class]"))H(t.getAttribute(":class")||t.getAttribute("x-bind:class")||"",e);let i=null;try{const e=document.evaluate(".//*[@*[starts-with(name(), 'x-transition:')]]",s,null,7,null);i=Array.from({length:e.snapshotLength},(t,s)=>e.snapshotItem(s))}catch(e){i=s.querySelectorAll("*")}for(const t of i)for(const s of t.attributes)s.name.startsWith("x-transition:")&&I(s.value,e);for(const i of s.querySelectorAll("template"))if(i.content&&!i.hasAttribute("data-tailwind-seed")){for(const t of i.content.querySelectorAll("[class]"))I(t.getAttribute("class"),e);t(i.content)}};t(document)}(n),w(()=>g(r))}},b=()=>{f||(l=!0,clearTimeout(c),c=setTimeout(v,Math.max(1e3,u+1e4-Date.now())))},S=()=>{clearTimeout(d),d=setTimeout(()=>w(),250),b()},C=()=>{e.parsedMismatch&&!e.skipped&&ee(e),o++,r=new Set,e.recordingEnded="blocks",T()},$=e=>{const t=new MutationObserver(C);t.observe(e,{characterData:!0,childList:!0,subtree:!0}),p.push(t)},x=new MutationObserver(e=>{const t=n.size;let s=!1;for(const t of e)if("attributes"!==t.type){Z(t.target)&&(s=!0);for(const e of t.removedNodes)G(e)&&(s=!0);for(const e of t.addedNodes)if(1===e.nodeType&&!e.hasAttribute("data-tailwind-seed")&&(Z(e)&&(s=!0,$(e)),F(e.getAttribute("class"),n,i),e.firstElementChild)){for(const t of e.querySelectorAll("[class]"))F(t.getAttribute("class"),n,i);for(const t of e.querySelectorAll('style[type="text/tailwindcss"]'))s=!0,$(t)}}else{if("type"===t.attributeName){"style"===t.target.localName&&(s=!0);continue}if(t.target.hasAttribute("data-tailwind-seed"))continue;F(t.oldValue,n,i),F(t.target.getAttribute("class"),n,i)}s?C():n.size!==t&&S()});x.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeOldValue:!0,attributeFilter:["class","type"]}),document.querySelectorAll('style[type="text/tailwindcss"]').forEach($);const E=new MutationObserver(e=>{for(const t of e){const e=1===t.target.nodeType?t.target:t.target.parentNode;if(e&&q(e)||Array.from(t.addedNodes).some(e=>1===e.nodeType&&q(e))){const e=a!==o;return a=o,e?S():b()}}});E.observe(document.head,{childList:!0,subtree:!0,characterData:!0});const A=()=>{l&&!f&&a===o&&(clearTimeout(c),g(B(new Set(r))))},k=()=>{"hidden"===document.visibilityState&&A()};window.addEventListener("pagehide",A),document.addEventListener("visibilitychange",k);const T=()=>{f=!0,x.disconnect(),E.disconnect(),p.forEach(e=>e.disconnect()),clearTimeout(c),clearTimeout(d),window.removeEventListener("pagehide",A),document.removeEventListener("visibilitychange",k)};e.stop=T,b()}function ie(e){e.parsedMismatch&&!e.skipped&&ee(e),e.record&&e.style&&e.style.isConnected?Q(e):function(e){if(document.body)return e();let t=!1;const s=()=>{t||(t=!0,i.disconnect(),e())},i=new MutationObserver(()=>{document.body&&s()});i.observe(document.documentElement,{childList:!0}),document.addEventListener("DOMContentLoaded",s,{once:!0})}(()=>se(e,null))}!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 ne=window.ManifestUtilities,re=ne&&ne.styleElement&&ne.styleElement.isConnected?ne:new e;if(window.ManifestUtilities=re,function(){const e=window.__tailwindCache;e&&!e.armed&&(e.armed=!0,e.decision?e.decision.then(()=>ie(e)):ie(e))}(),"loading"===document.readyState&&document.addEventListener("DOMContentLoaded",()=>{}),"PerformanceObserver"in window)try{new PerformanceObserver(e=>{for(const t of e.getEntries());}).observe({entryTypes:["paint"]})}catch(e){}re.__mnfstDomReadyBound||(re.__mnfstDomReadyBound=!0,document.addEventListener("DOMContentLoaded",()=>{re.usesStaticPrerenderUtilities||re.isCompiling||re.compile()}))}();
2
2
  //# sourceMappingURL=manifest.utilities.min.js.map