nuclo 0.1.65 → 0.1.67

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/nuclo.js CHANGED
@@ -1,2 +1,2 @@
1
- function e(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function t(e){return e instanceof Node}function r(e){return"object"==typeof e&&null!==e}function n(e){return r(e)&&"tagName"in e}function o(e){return"boolean"==typeof e}function s(e){return"function"==typeof e}function i(e){return s(e)&&0===e.length}function a(e,t){}function c(e,t){try{return e()}catch(e){return t}}const l="undefined"!=typeof window&&"undefined"!=typeof document;function d(e){if(!e?.parentNode)return!1;try{return e.parentNode.removeChild(e),!0}catch(e){return!1}}function m(e){if(!l)return null;try{return document.createComment(e)}catch(e){return null}}function p(e){return m(e)}function u(e,t="hidden"){try{return document.createComment(`conditional-${e}-${t}`)}catch(e){return null}}function f(e){if(!l)throw Error("Cannot create comment in non-browser environment");const t=m(`${e}-${Math.random().toString(36).slice(2)}`);if(!t)throw Error("Failed to create comment");return t}function y(e){const t=m(e+"-end");if(!t)throw Error("Failed to create end comment");return{start:f(e+"-start"),end:t}}function g(e,...t){return e?(t.forEach(t=>{if(null!=t){let r;if("string"==typeof t){const e=function(e){if(!l)return null;try{return document.createTextNode(e+"")}catch(e){return null}}(t);if(!e)return;r=e}else r=t;!function(e,t){if(!e||!t)return!1;try{return e.appendChild(t),!0}catch(e){return!1}}(e,r)}}),e):e}function h(e){return!!e&&("boolean"==typeof e.isConnected?e.isConnected:!(!l||"undefined"==typeof document)&&document.contains(e))}function b(e,t){if(!e?.parentNode)return!1;try{return e.parentNode.replaceChild(t,e),!0}catch(e){return!1}}const P=new Map,S=new Map;function k(e,t){t.attributeResolvers.forEach(({resolver:e,applyValue:t},r)=>{try{t(c(e))}catch(e){}})}function w(e,t,r,n){if(!(e instanceof Element&&t&&"function"==typeof r))return;const o=function(e){let t=S.get(e);return t||(t={attributeResolvers:new Map},S.set(e,t)),t}(e);o.attributeResolvers.set(t,{resolver:r,applyValue:n});try{n(c(r))}catch(e){}if(!o.updateListener){const t=()=>k(0,o);e.addEventListener("update",t),o.updateListener=t}}function x(e,t,r){try{return null==r||""===r?(e.style[t]="",!0):(e.style[t]=r+"",!0)}catch{return!1}}function C(e,t){if(e?.style&&t)for(const[r,n]of Object.entries(t))x(e,r,n)||a()}const v="__nuclo_reactive_className__",R="__nuclo_static_className__";function B(e,t,r,n=!1){if(null==r)return;if("style"===t)return i=r,void((o=e)&&(s(i)?w(o,"style",()=>{try{return i()}catch(e){return null}},e=>{C(o,e)}):C(o,i)));var o,i;const a=(r,n=!1)=>{if(null!=r)if("className"===t&&e instanceof HTMLElement&&n)!function(e,t){if(!t)return;const r=e.className;if(r&&r!==t){const n=new Set(r.split(" ").filter(e=>e));t.split(" ").filter(e=>e).forEach(e=>n.add(e)),e.className=Array.from(n).join(" ")}else e.className=t}(e,r+"");else if(e instanceof Element&&"http://www.w3.org/2000/svg"===e.namespaceURI)e.setAttribute(t+"",r+"");else if(t in e)try{e[t]=r}catch{e instanceof Element&&e.setAttribute(t+"",r+"")}else e instanceof Element&&e.setAttribute(t+"",r+"")};if(s(r)&&0===r.length){const n=r;"className"===t&&e instanceof HTMLElement?(function(e){e[R]||(e[R]=new Set(e.className.split(" ").filter(e=>e))),e[v]=!0}(e),w(e,t+"",n,t=>{!function(e,t){const r=function(e){return e[R]}(e);if(r&&r.size>0&&t){const n=new Set(r);t.split(" ").filter(e=>e).forEach(e=>n.add(e)),e.className=Array.from(n).join(" ")}else e.className=t||(r&&r.size>0?Array.from(r).join(" "):"")}(e,(t||"")+"")})):w(e,t+"",n,e=>{a(e,!1)})}else{if("className"===t&&e instanceof HTMLElement&&function(e){return!!e[v]}(e)){const t=(r||"")+"";if(t){!function(e,t){t&&(e[R]||(e[R]=new Set),t.split(" ").filter(e=>e).forEach(t=>{e[R].add(t)}))}(e,t);const r=new Set(e.className.split(" ").filter(e=>e));t.split(" ").filter(e=>e).forEach(e=>r.add(e)),e.className=Array.from(r).join(" ")}return}a(r,n)}}function T(e,t,r=!0){if(t)for(const n of Object.keys(t))B(e,n,t[n],r&&"className"===n)}const I=new WeakMap;function E(e,n,o){if(!s(e)||0!==e.length)return!1;if(!function(e){const{value:t,error:r}=function(e){const t=I.get(e);if(t)return t;try{const t={value:e(),error:!1};return I.set(e,t),t}catch{const t={value:void 0,error:!0};return I.set(e,t),t}}(e);return!r&&"boolean"==typeof t}(e))return!1;const i=n.filter((e,t)=>t!==o);return 0!==i.length&&i.some(e=>!!(r(e)||t(e)||s(e)&&e.length>0))}function N(n,o,a){if(null==o)return null;if(s(o)){if(i(o))try{let s=I.get(o);if(s||(s={value:o(),error:!1},I.set(o,s)),s.error)return W(a,()=>"");const i=s.value;if(r(i)&&!t(i)&&"className"in i&&"string"==typeof i.className&&1===Object.keys(i).length){const e=o;return T(n,{className:()=>e().className}),null}return e(i)&&null!=i?W(a,o,i):null}catch(e){return I.set(o,{value:void 0,error:!0}),W(a,()=>"")}const s=o(n,a);return null==s?null:e(s)?M(a,s):t(s)?s:(r(s)&&T(n,s),null)}const c=o;return null==c?null:e(c)?M(a,c):t(c)?c:(r(c)&&T(n,c),null)}function W(e,t,r){const n=document.createDocumentFragment(),o=p(` text-${e} `);o&&n.appendChild(o);const s=function(e,t){if("function"!=typeof e)return document.createTextNode("");const r=arguments.length>1?t:c(e,""),n=void 0===r?"":r+"",o=document.createTextNode(n);return P.set(o,{resolver:e,lastValue:n}),o}(t,r);return n.appendChild(s),n}function M(e,t){const r=document.createDocumentFragment(),n=p(` text-${e} `);n&&r.appendChild(n);const o=document.createTextNode(t+"");return r.appendChild(o),r}const A=new Set;function L(e,t){e._conditionalInfo=t,A.add(e)}function j(e,t,r=0){if(!t||0===t.length)return{element:e,nextIndex:r,appended:0};let n=r,o=0;const s=e;for(let r=0;t.length>r;r+=1){const i=t[r];if(null==i)continue;const a=N(e,i,n);a&&(a.parentNode!==s&&s.appendChild(a),n+=1,o+=1)}return{element:e,nextIndex:n,appended:o}}function D(e,t){const r=document.createElement(e);return j(r,t,0),r}function O(e,t){const r=document.createElementNS("http://www.w3.org/2000/svg",e);return j(r,t,0),r}function z(e){return(...t)=>function(e,...t){return(r,n)=>{const{condition:o,otherModifiers:s}=function(e){const t=function(e){for(let t=0;e.length>t;t+=1)if(E(e[t],e,t))return t;return-1}(e);return-1===t?{condition:null,otherModifiers:e}:{condition:e[t],otherModifiers:e.filter((e,r)=>r!==t)}}(t);if(o)return function(e,t,r){const n=t();if(!l)return n?D(e,r):u(e,"ssr");const o={condition:t,tagName:e,modifiers:r,isSvg:!1};if(n){const t=D(e,r);return L(t,o),t}const s=u(e);if(!s)throw Error("Failed to create conditional comment for "+e);return L(s,o),s}(e,o,s);const i=document.createElement(e);return j(i,s,n),i}}(e,...t)}function F(e){return(...t)=>function(e,...t){return(r,n)=>{const o=t.findIndex(e=>"function"==typeof e&&0===e.length);if(-1!==o){const r=t[o],n=t.filter((e,t)=>t!==o);return function(e,t,r){const n=t();if(!l)return n?O(e,r):u(e,"ssr");const o={condition:t,tagName:e,modifiers:r,isSvg:!0};if(n){const t=O(e,r);return L(t,o),t}const s=u(e);if(!s)throw Error("Failed to create conditional comment for "+e);return L(s,o),s}(e,r,n)}const s=document.createElementNS("http://www.w3.org/2000/svg",e);return j(s,t,n),s}}(e,...t)}const $=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","menu","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"],_=["a","animate","animateMotion","animateTransform","circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tspan","use","view"],V=["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"];function q(e=globalThis){const t="__nuclo_tags_registered";e[t]||(_.forEach(t=>function(e,t){const r=t+"Svg";r in e||(e[r]=F(t))}(e,t)),$.forEach(t=>function(e,t){t in e&&"function"!=typeof e[t]||(e[t]=z(t))}(e,t)),e[t]=!0)}const G=new Set;function H(e,t,r){return function(e,t,r){if(s(e)){const o=e(t,r);return o&&n(o)?o:null}return e&&n(e)?e:null}(e.renderItem(t,r),e.host,r)}function U(e){d(e.element)}function X(e){const{host:t,startMarker:r,endMarker:n}=e,o=r.parentNode??t,s=e.itemsProvider();if(function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;e.length>r;r++)if((r in e?e[r]:void 0)!==(r in t?t[r]:void 0))return!1;return!0}(e.lastSyncedItems,s))return;const i=new Map,a=new Map;e.records.forEach(e=>{const t=a.get(e.item);t?t.push(e):a.set(e.item,[e])}),s.forEach((t,r)=>{if(e.lastSyncedItems.length>r&&e.lastSyncedItems[r]===t){const n=e.records[r];if(n&&n.item===t){i.set(r,n);const e=a.get(t);if(e){const r=e.indexOf(n);0>r||(e.splice(r,1),0===e.length&&a.delete(t))}}}});const c=[],l=new Set(e.records);let d=n;for(let t=s.length-1;t>=0;t--){const r=s[t];let n=i.get(t);if(!n){const e=a.get(r);e&&e.length>0&&(n=e.shift(),0===e.length&&a.delete(r))}if(n)l.delete(n);else{const o=H(e,r,t);if(!o)continue;n={item:r,element:o}}c.unshift(n);const m=n.element;m.nextSibling!==d&&o.insertBefore(m,d),d=m}l.forEach(U),e.records=c,e.lastSyncedItems=[...s]}function Y(e,t){return(r,n)=>{const o=function(e,t,r){const{start:n,end:o}=y("list"),s={itemsProvider:e,renderItem:t,startMarker:n,endMarker:o,records:[],host:r,lastSyncedItems:[]},i=r;return i.appendChild(n),i.appendChild(o),G.add(s),X(s),s}(e,t,r);return o.startMarker}}function J(e,t){try{return e()}catch(e){if(t)return t(e),!1;throw e}}function K(e,t){return"function"==typeof e?J(e,t):!!e}function Q(e,t,r,n){return s(e)?i(e)?(I.delete(e),N(t,e,r)):function(e,t,r){const n=e,o=n.appendChild.bind(n),s=n.insertBefore.bind(n);n.appendChild=function(e){return s(e,t)};try{return r()}finally{n.appendChild=o}}(t,n,()=>{const n=N(t,e,r);return n&&!n.parentNode?n:null}):N(t,e,r)}const Z=new Set;function ee(e){const{groups:t,elseContent:r,host:n,index:o,endMarker:s}=e,i=function(e,t){for(let t=0;e.length>t;t++)if(K(e[t].condition))return t;return t.length>0?-1:null}(t,r);if(i===e.activeIndex)return;if(function(e,t){let r=e.nextSibling;for(;r&&r!==t;){const e=r.nextSibling;d(r),r=e}}(e.startMarker,e.endMarker),e.activeIndex=i,null===i)return;const a=function(e,t,r,n){const o=[];for(const s of e){const e=Q(s,t,r,n);e&&o.push(e)}return o}(0>i?r:t[i].content,n,o,s);!function(e,t){const r=t.parentNode;r&&e.forEach(e=>function(e,t,r){if(!e||!t)return!1;try{return e.insertBefore(t,r),!0}catch(e){return!1}}(r,e,t))}(a,s)}class te{groups=[];elseContent=[];constructor(e,...t){this.groups.push({condition:e,content:t})}when(e,...t){return this.groups.push({condition:e,content:t}),this}else(...e){return this.elseContent=e,this}render(e,t){if(!l)return p("when-ssr")||null;const{start:r,end:n}=y("when"),o={startMarker:r,endMarker:n,host:e,index:t,groups:[...this.groups],elseContent:[...this.elseContent],activeIndex:null,update:()=>ee(o)};!function(e){Z.add(e)}(o);const s=e;return s.appendChild(r),s.appendChild(n),ee(o),r}}function re(e){return Object.assign((t,r)=>e.render(t,r),{when:(t,...r)=>(e.when(t,...r),re(e)),else:(...t)=>(e.else(...t),re(e))})}function ne(e,...t){return re(new te(e,...t))}const oe=[function(){G.forEach(e=>{e.startMarker.isConnected&&e.endMarker.isConnected?X(e):G.delete(e)})},function(){Z.forEach(e=>{try{e.update()}catch(t){Z.delete(e)}})},function(){if(l)try{A.forEach(e=>{e.isConnected?function(e){const t=function(e){return e._conditionalInfo??null}(e);if(!t)return;const r=J(t.condition,e=>{}),n=e.nodeType===Node.ELEMENT_NODE;if(r&&!n){const r=function(e){try{return e.isSvg?O(e.tagName,e.modifiers):D(e.tagName,e.modifiers)}catch(t){return e.isSvg?document.createElementNS("http://www.w3.org/2000/svg",e.tagName):document.createElement(e.tagName)}}(t);L(r,t),b(e,r)}else if(!r&&n){const r=u(t.tagName);r&&(L(r,t),b(e,r))}}(e):function(e){A.delete(e)}(e)})}catch(e){}},function(){S.forEach((e,t)=>{if(!h(t))return e.updateListener&&t.removeEventListener("update",e.updateListener),void S.delete(t);k(0,e)})},function(){P.forEach((e,t)=>{if(h(t))try{const r=c(e.resolver),n=void 0===r?"":r+"";n!==e.lastValue&&(t.textContent=n,e.lastValue=n)}catch(e){}else P.delete(t)})},function(){if("undefined"==typeof document)return;const e=document.body?[document.body,document]:[document];for(const t of e)try{t.dispatchEvent(new Event("update",{bubbles:!0}))}catch(e){a()}}];function se(){for(const e of oe)e()}function ie(e,t,r){return n=>{if(!n||"function"!=typeof n.addEventListener)return;const o=n;o.addEventListener(e,e=>{try{t.call(o,e)}catch(e){}},r)}}function ae(e,t,r=0){const n=e(t||document.body,r);return(t||document.body).appendChild(n),n}const ce=[{name:"display",cssProperty:"display"},{name:"grid",cssProperty:"display",defaultValue:"grid",isShorthand:!0},{name:"bg",cssProperty:"background-color"},{name:"color",cssProperty:"color"},{name:"accentColor",cssProperty:"accent-color"},{name:"fontSize",cssProperty:"font-size"},{name:"fontWeight",cssProperty:"font-weight"},{name:"fontFamily",cssProperty:"font-family"},{name:"lineHeight",cssProperty:"line-height"},{name:"letterSpacing",cssProperty:"letter-spacing"},{name:"textAlign",cssProperty:"text-align"},{name:"textDecoration",cssProperty:"text-decoration"},{name:"fontStyle",cssProperty:"font-style"},{name:"fontVariant",cssProperty:"font-variant"},{name:"fontStretch",cssProperty:"font-stretch"},{name:"textTransform",cssProperty:"text-transform"},{name:"textIndent",cssProperty:"text-indent"},{name:"textOverflow",cssProperty:"text-overflow"},{name:"textShadow",cssProperty:"text-shadow"},{name:"whiteSpace",cssProperty:"white-space"},{name:"wordSpacing",cssProperty:"word-spacing"},{name:"wordWrap",cssProperty:"word-wrap"},{name:"overflowWrap",cssProperty:"overflow-wrap"},{name:"textAlignLast",cssProperty:"text-align-last"},{name:"textJustify",cssProperty:"text-justify"},{name:"textDecorationLine",cssProperty:"text-decoration-line"},{name:"textDecorationColor",cssProperty:"text-decoration-color"},{name:"textDecorationStyle",cssProperty:"text-decoration-style"},{name:"textDecorationThickness",cssProperty:"text-decoration-thickness"},{name:"textUnderlineOffset",cssProperty:"text-underline-offset"},{name:"verticalAlign",cssProperty:"vertical-align"},{name:"position",cssProperty:"position"},{name:"padding",cssProperty:"padding"},{name:"paddingTop",cssProperty:"padding-top"},{name:"paddingRight",cssProperty:"padding-right"},{name:"paddingBottom",cssProperty:"padding-bottom"},{name:"paddingLeft",cssProperty:"padding-left"},{name:"margin",cssProperty:"margin"},{name:"marginTop",cssProperty:"margin-top"},{name:"marginRight",cssProperty:"margin-right"},{name:"marginBottom",cssProperty:"margin-bottom"},{name:"marginLeft",cssProperty:"margin-left"},{name:"width",cssProperty:"width"},{name:"height",cssProperty:"height"},{name:"minWidth",cssProperty:"min-width"},{name:"maxWidth",cssProperty:"max-width"},{name:"minHeight",cssProperty:"min-height"},{name:"maxHeight",cssProperty:"max-height"},{name:"boxSizing",cssProperty:"box-sizing"},{name:"top",cssProperty:"top"},{name:"right",cssProperty:"right"},{name:"bottom",cssProperty:"bottom"},{name:"left",cssProperty:"left"},{name:"zIndex",cssProperty:"z-index"},{name:"flexDirection",cssProperty:"flex-direction"},{name:"alignItems",cssProperty:"align-items"},{name:"justifyContent",cssProperty:"justify-content"},{name:"gap",cssProperty:"gap"},{name:"flexWrap",cssProperty:"flex-wrap"},{name:"flexGrow",cssProperty:"flex-grow"},{name:"flexShrink",cssProperty:"flex-shrink"},{name:"flexBasis",cssProperty:"flex-basis"},{name:"alignSelf",cssProperty:"align-self"},{name:"alignContent",cssProperty:"align-content"},{name:"justifySelf",cssProperty:"justify-self"},{name:"justifyItems",cssProperty:"justify-items"},{name:"gridTemplateColumns",cssProperty:"grid-template-columns"},{name:"gridTemplateRows",cssProperty:"grid-template-rows"},{name:"gridTemplateAreas",cssProperty:"grid-template-areas"},{name:"gridColumn",cssProperty:"grid-column"},{name:"gridRow",cssProperty:"grid-row"},{name:"gridColumnStart",cssProperty:"grid-column-start"},{name:"gridColumnEnd",cssProperty:"grid-column-end"},{name:"gridRowStart",cssProperty:"grid-row-start"},{name:"gridRowEnd",cssProperty:"grid-row-end"},{name:"gridArea",cssProperty:"grid-area"},{name:"gridAutoColumns",cssProperty:"grid-auto-columns"},{name:"gridAutoRows",cssProperty:"grid-auto-rows"},{name:"gridAutoFlow",cssProperty:"grid-auto-flow"},{name:"border",cssProperty:"border"},{name:"borderTop",cssProperty:"border-top"},{name:"borderRight",cssProperty:"border-right"},{name:"borderBottom",cssProperty:"border-bottom"},{name:"borderLeft",cssProperty:"border-left"},{name:"borderWidth",cssProperty:"border-width"},{name:"borderStyle",cssProperty:"border-style"},{name:"borderColor",cssProperty:"border-color"},{name:"borderTopWidth",cssProperty:"border-top-width"},{name:"borderRightWidth",cssProperty:"border-right-width"},{name:"borderBottomWidth",cssProperty:"border-bottom-width"},{name:"borderLeftWidth",cssProperty:"border-left-width"},{name:"borderTopStyle",cssProperty:"border-top-style"},{name:"borderRightStyle",cssProperty:"border-right-style"},{name:"borderBottomStyle",cssProperty:"border-bottom-style"},{name:"borderLeftStyle",cssProperty:"border-left-style"},{name:"borderTopColor",cssProperty:"border-top-color"},{name:"borderRightColor",cssProperty:"border-right-color"},{name:"borderBottomColor",cssProperty:"border-bottom-color"},{name:"borderLeftColor",cssProperty:"border-left-color"},{name:"borderRadius",cssProperty:"border-radius"},{name:"borderTopLeftRadius",cssProperty:"border-top-left-radius"},{name:"borderTopRightRadius",cssProperty:"border-top-right-radius"},{name:"borderBottomLeftRadius",cssProperty:"border-bottom-left-radius"},{name:"borderBottomRightRadius",cssProperty:"border-bottom-right-radius"},{name:"outline",cssProperty:"outline"},{name:"outlineWidth",cssProperty:"outline-width"},{name:"outlineStyle",cssProperty:"outline-style"},{name:"outlineColor",cssProperty:"outline-color"},{name:"outlineOffset",cssProperty:"outline-offset"},{name:"backgroundColor",cssProperty:"background-color"},{name:"backgroundImage",cssProperty:"background-image"},{name:"backgroundRepeat",cssProperty:"background-repeat"},{name:"backgroundPosition",cssProperty:"background-position"},{name:"backgroundSize",cssProperty:"background-size"},{name:"backgroundAttachment",cssProperty:"background-attachment"},{name:"backgroundClip",cssProperty:"background-clip"},{name:"backgroundOrigin",cssProperty:"background-origin"},{name:"boxShadow",cssProperty:"box-shadow"},{name:"opacity",cssProperty:"opacity"},{name:"transition",cssProperty:"transition"},{name:"transitionProperty",cssProperty:"transition-property"},{name:"transitionDuration",cssProperty:"transition-duration"},{name:"transitionTimingFunction",cssProperty:"transition-timing-function"},{name:"transitionDelay",cssProperty:"transition-delay"},{name:"transform",cssProperty:"transform"},{name:"transformOrigin",cssProperty:"transform-origin"},{name:"transformStyle",cssProperty:"transform-style"},{name:"perspective",cssProperty:"perspective"},{name:"perspectiveOrigin",cssProperty:"perspective-origin"},{name:"backfaceVisibility",cssProperty:"backface-visibility"},{name:"animation",cssProperty:"animation"},{name:"animationName",cssProperty:"animation-name"},{name:"animationDuration",cssProperty:"animation-duration"},{name:"animationTimingFunction",cssProperty:"animation-timing-function"},{name:"animationDelay",cssProperty:"animation-delay"},{name:"animationIterationCount",cssProperty:"animation-iteration-count"},{name:"animationDirection",cssProperty:"animation-direction"},{name:"animationFillMode",cssProperty:"animation-fill-mode"},{name:"animationPlayState",cssProperty:"animation-play-state"},{name:"filter",cssProperty:"filter"},{name:"backdropFilter",cssProperty:"backdrop-filter"},{name:"overflow",cssProperty:"overflow"},{name:"overflowX",cssProperty:"overflow-x"},{name:"overflowY",cssProperty:"overflow-y"},{name:"visibility",cssProperty:"visibility"},{name:"objectFit",cssProperty:"object-fit"},{name:"objectPosition",cssProperty:"object-position"},{name:"listStyle",cssProperty:"list-style"},{name:"listStyleType",cssProperty:"list-style-type"},{name:"listStylePosition",cssProperty:"list-style-position"},{name:"listStyleImage",cssProperty:"list-style-image"},{name:"borderCollapse",cssProperty:"border-collapse"},{name:"borderSpacing",cssProperty:"border-spacing"},{name:"captionSide",cssProperty:"caption-side"},{name:"emptyCells",cssProperty:"empty-cells"},{name:"tableLayout",cssProperty:"table-layout"},{name:"content",cssProperty:"content"},{name:"quotes",cssProperty:"quotes"},{name:"counterReset",cssProperty:"counter-reset"},{name:"counterIncrement",cssProperty:"counter-increment"},{name:"appearance",cssProperty:"appearance"},{name:"userSelect",cssProperty:"user-select"},{name:"pointerEvents",cssProperty:"pointer-events"},{name:"resize",cssProperty:"resize"},{name:"scrollBehavior",cssProperty:"scroll-behavior"},{name:"clip",cssProperty:"clip"},{name:"clipPath",cssProperty:"clip-path"},{name:"isolation",cssProperty:"isolation"},{name:"mixBlendMode",cssProperty:"mix-blend-mode"},{name:"willChange",cssProperty:"will-change"},{name:"contain",cssProperty:"contain"},{name:"pageBreakBefore",cssProperty:"page-break-before"},{name:"pageBreakAfter",cssProperty:"page-break-after"},{name:"pageBreakInside",cssProperty:"page-break-inside"},{name:"breakBefore",cssProperty:"break-before"},{name:"breakAfter",cssProperty:"break-after"},{name:"breakInside",cssProperty:"break-inside"},{name:"orphans",cssProperty:"orphans"},{name:"widows",cssProperty:"widows"},{name:"columnCount",cssProperty:"column-count"},{name:"columnFill",cssProperty:"column-fill"},{name:"columnGap",cssProperty:"column-gap"},{name:"columnRule",cssProperty:"column-rule"},{name:"columnRuleColor",cssProperty:"column-rule-color"},{name:"columnRuleStyle",cssProperty:"column-rule-style"},{name:"columnRuleWidth",cssProperty:"column-rule-width"},{name:"columnSpan",cssProperty:"column-span"},{name:"columnWidth",cssProperty:"column-width"},{name:"columns",cssProperty:"columns"},{name:"cursor",cssProperty:"cursor"},{name:"aspectRatio",cssProperty:"aspect-ratio"},{name:"clear",cssProperty:"clear"},{name:"float",cssProperty:"float"},{name:"order",cssProperty:"order"},{name:"placeContent",cssProperty:"place-content"},{name:"placeItems",cssProperty:"place-items"},{name:"placeSelf",cssProperty:"place-self"},{name:"hyphens",cssProperty:"hyphens"},{name:"lineBreak",cssProperty:"line-break"},{name:"wordBreak",cssProperty:"word-break"},{name:"textOrientation",cssProperty:"text-orientation"},{name:"writingMode",cssProperty:"writing-mode"},{name:"direction",cssProperty:"direction"},{name:"unicodeBidi",cssProperty:"unicode-bidi"},{name:"backgroundBlendMode",cssProperty:"background-blend-mode"},{name:"backgroundPositionX",cssProperty:"background-position-x"},{name:"backgroundPositionY",cssProperty:"background-position-y"},{name:"borderImage",cssProperty:"border-image"},{name:"borderImageSource",cssProperty:"border-image-source"},{name:"borderImageSlice",cssProperty:"border-image-slice"},{name:"borderImageWidth",cssProperty:"border-image-width"},{name:"borderImageOutset",cssProperty:"border-image-outset"},{name:"borderImageRepeat",cssProperty:"border-image-repeat"},{name:"inset",cssProperty:"inset"},{name:"insetBlock",cssProperty:"inset-block"},{name:"insetBlockStart",cssProperty:"inset-block-start"},{name:"insetBlockEnd",cssProperty:"inset-block-end"},{name:"insetInline",cssProperty:"inset-inline"},{name:"insetInlineStart",cssProperty:"inset-inline-start"},{name:"insetInlineEnd",cssProperty:"inset-inline-end"},{name:"marginBlock",cssProperty:"margin-block"},{name:"marginBlockStart",cssProperty:"margin-block-start"},{name:"marginBlockEnd",cssProperty:"margin-block-end"},{name:"marginInline",cssProperty:"margin-inline"},{name:"marginInlineStart",cssProperty:"margin-inline-start"},{name:"marginInlineEnd",cssProperty:"margin-inline-end"},{name:"paddingBlock",cssProperty:"padding-block"},{name:"paddingBlockStart",cssProperty:"padding-block-start"},{name:"paddingBlockEnd",cssProperty:"padding-block-end"},{name:"paddingInline",cssProperty:"padding-inline"},{name:"paddingInlineStart",cssProperty:"padding-inline-start"},{name:"paddingInlineEnd",cssProperty:"padding-inline-end"},{name:"inlineSize",cssProperty:"inline-size"},{name:"blockSize",cssProperty:"block-size"},{name:"minInlineSize",cssProperty:"min-inline-size"},{name:"minBlockSize",cssProperty:"min-block-size"},{name:"maxInlineSize",cssProperty:"max-inline-size"},{name:"maxBlockSize",cssProperty:"max-block-size"},{name:"borderBlock",cssProperty:"border-block"},{name:"borderBlockStart",cssProperty:"border-block-start"},{name:"borderBlockEnd",cssProperty:"border-block-end"},{name:"borderInline",cssProperty:"border-inline"},{name:"borderInlineStart",cssProperty:"border-inline-start"},{name:"borderInlineEnd",cssProperty:"border-inline-end"},{name:"borderBlockWidth",cssProperty:"border-block-width"},{name:"borderBlockStartWidth",cssProperty:"border-block-start-width"},{name:"borderBlockEndWidth",cssProperty:"border-block-end-width"},{name:"borderInlineWidth",cssProperty:"border-inline-width"},{name:"borderInlineStartWidth",cssProperty:"border-inline-start-width"},{name:"borderInlineEndWidth",cssProperty:"border-inline-end-width"},{name:"borderBlockStyle",cssProperty:"border-block-style"},{name:"borderBlockStartStyle",cssProperty:"border-block-start-style"},{name:"borderBlockEndStyle",cssProperty:"border-block-end-style"},{name:"borderInlineStyle",cssProperty:"border-inline-style"},{name:"borderInlineStartStyle",cssProperty:"border-inline-start-style"},{name:"borderInlineEndStyle",cssProperty:"border-inline-end-style"},{name:"borderBlockColor",cssProperty:"border-block-color"},{name:"borderBlockStartColor",cssProperty:"border-block-start-color"},{name:"borderBlockEndColor",cssProperty:"border-block-end-color"},{name:"borderInlineColor",cssProperty:"border-inline-color"},{name:"borderInlineStartColor",cssProperty:"border-inline-start-color"},{name:"borderInlineEndColor",cssProperty:"border-inline-end-color"},{name:"borderStartStartRadius",cssProperty:"border-start-start-radius"},{name:"borderStartEndRadius",cssProperty:"border-start-end-radius"},{name:"borderEndStartRadius",cssProperty:"border-end-start-radius"},{name:"borderEndEndRadius",cssProperty:"border-end-end-radius"},{name:"scrollMargin",cssProperty:"scroll-margin"},{name:"scrollMarginTop",cssProperty:"scroll-margin-top"},{name:"scrollMarginRight",cssProperty:"scroll-margin-right"},{name:"scrollMarginBottom",cssProperty:"scroll-margin-bottom"},{name:"scrollMarginLeft",cssProperty:"scroll-margin-left"},{name:"scrollPadding",cssProperty:"scroll-padding"},{name:"scrollPaddingTop",cssProperty:"scroll-padding-top"},{name:"scrollPaddingRight",cssProperty:"scroll-padding-right"},{name:"scrollPaddingBottom",cssProperty:"scroll-padding-bottom"},{name:"scrollPaddingLeft",cssProperty:"scroll-padding-left"},{name:"overscrollBehavior",cssProperty:"overscroll-behavior"},{name:"overscrollBehaviorX",cssProperty:"overscroll-behavior-x"},{name:"overscrollBehaviorY",cssProperty:"overscroll-behavior-y"},{name:"caretColor",cssProperty:"caret-color"},{name:"caretShape",cssProperty:"caret-shape"},{name:"caretAnimation",cssProperty:"caret-animation"},{name:"imageRendering",cssProperty:"image-rendering"},{name:"colorScheme",cssProperty:"color-scheme"},{name:"contentVisibility",cssProperty:"content-visibility"},{name:"touchAction",cssProperty:"touch-action"},{name:"containerType",cssProperty:"container-type"},{name:"containerName",cssProperty:"container-name"},{name:"container",cssProperty:"container"},{name:"fontFeatureSettings",cssProperty:"font-feature-settings"},{name:"fontKerning",cssProperty:"font-kerning"},{name:"fontSynthesis",cssProperty:"font-synthesis"},{name:"fontOpticalSizing",cssProperty:"font-optical-sizing"},{name:"fontDisplay",cssProperty:"font-display"},{name:"fontVariantCaps",cssProperty:"font-variant-caps"},{name:"fontVariantNumeric",cssProperty:"font-variant-numeric"},{name:"fontVariantLigatures",cssProperty:"font-variant-ligatures"},{name:"fontVariantEastAsian",cssProperty:"font-variant-east-asian"},{name:"fontVariantAlternates",cssProperty:"font-variant-alternates"},{name:"fontVariantPosition",cssProperty:"font-variant-position"},{name:"textRendering",cssProperty:"text-rendering"},{name:"textCombineUpright",cssProperty:"text-combine-upright"},{name:"textSizeAdjust",cssProperty:"text-size-adjust"},{name:"mask",cssProperty:"mask"},{name:"maskImage",cssProperty:"mask-image"},{name:"maskMode",cssProperty:"mask-mode"},{name:"maskRepeat",cssProperty:"mask-repeat"},{name:"maskPosition",cssProperty:"mask-position"},{name:"maskSize",cssProperty:"mask-size"},{name:"maskOrigin",cssProperty:"mask-origin"},{name:"maskClip",cssProperty:"mask-clip"},{name:"maskComposite",cssProperty:"mask-composite"},{name:"clipRule",cssProperty:"clip-rule"},{name:"gridColumnGap",cssProperty:"grid-column-gap"},{name:"gridRowGap",cssProperty:"grid-row-gap"},{name:"gridGap",cssProperty:"grid-gap"}],le=["bold","center","flex"],de=new Map;function me(e){let t=0;for(let r=0;e.length>r;r++)t=(t<<5)-t+e.charCodeAt(r),t&=t;return Math.abs(t).toString(16).padStart(8,"0").substring(0,8)}function pe(e){return Object.entries(e).sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>`${e}:${t}`).join("|")}function ue(e,t,r,n="media",o){let s=document.querySelector("#nuclo-styles");s||(s=document.createElement("style"),s.id="nuclo-styles",document.head.appendChild(s));const i=Object.entries(t).map(([e,t])=>`${e}: ${t}`).join("; ");if(o){const r=`.${e}${o}`,n=s.sheet;if(!n)return;const a=n.cssRules,c=a.length;let l=null,d=c;for(let e=0;c>e;e++){const t=a[e];if(t instanceof CSSStyleRule){if(t.selectorText===r){l=t,d=e;break}t.selectorText.includes(":")||(d=e+1)}}if(l){const e=l.style;e.cssText="";for(const[r,n]of Object.entries(t))e.setProperty(r,n)}else n.insertRule(`${r} { ${i} }`,d);return}if(r){const o=s.sheet;if(!o)return;const a=o.cssRules,c=a.length;let l=null;const d=e=>"media"===n&&e instanceof CSSMediaRule?e.media.mediaText===r:("container"===n&&e instanceof CSSContainerRule||"supports"===n&&e instanceof CSSSupportsRule)&&e.conditionText===r,m=e=>e instanceof CSSMediaRule||e instanceof CSSContainerRule||e instanceof CSSSupportsRule;for(let e=0;c>e;e++){const t=a[e];if(d(t)){l=t;break}}if(!l){let e=c;for(let t=c-1;t>=0;t--){const r=a[t];if(m(r)){e=t+1;break}if(r instanceof CSSStyleRule){e=t+1;break}}o.insertRule(`${"media"===n?"@media":"container"===n?"@container":"supports"===n?"@supports":"@media"} ${r} {}`,e),l=o.cssRules[e]}let p=null;for(const t of Array.from(l.cssRules))if(t instanceof CSSStyleRule&&t.selectorText==="."+e){p=t;break}if(p){const e=p.style;e.cssText="";for(const[r,n]of Object.entries(t))e.setProperty(r,n)}else l.insertRule(`.${e} { ${i} }`,l.cssRules.length)}else{const r=s.sheet;if(!r)return;let n=null,o=0;const a=e=>e instanceof CSSMediaRule||e instanceof CSSContainerRule||e instanceof CSSSupportsRule,c=r.cssRules,l=c.length;for(let t=0;l>t;t++){const r=c[t];if(r instanceof CSSStyleRule&&r.selectorText==="."+e){n=r,o=t;break}a(r)||(o=t+1)}if(n){const e=n.style;e.cssText="";for(const[r,n]of Object.entries(t))e.setProperty(r,n)}else r.insertRule(`.${e} { ${i} }`,o)}}function fe(e,t){ue(e,t)}class ye{styles={};getStyles(){return{...this.styles}}getClassName(e="",t){return function(e,t="",r){const n=pe(e),o=t?`${t}:${n}`:n,s=function(e){return de.get(e)}(o);if(s){const t=s;return function(e,t,r="media"){const n=document.querySelector("#nuclo-styles");if(!n||!n.sheet)return!1;if(t){const o=Array.from(n.sheet.cssRules||[]).find(e=>"media"===r&&e instanceof CSSMediaRule?e.media.mediaText===t:("container"===r&&e instanceof CSSContainerRule||"supports"===r&&e instanceof CSSSupportsRule)&&e.conditionText===t);return!!o&&Array.from(o.cssRules).some(t=>t instanceof CSSStyleRule&&t.selectorText==="."+e)}return Array.from(n.sheet.cssRules||[]).some(t=>t instanceof CSSStyleRule&&t.selectorText==="."+e)}(t,r)||ue(t,e,r),t}const i=me(n),a=t?`n${t}-${i}`:"n"+i;return function(e,t){de.set(e,t)}(o,a),ue(a,e,r),a}(this.styles,e,t)}getClassNames(){return[this.getClassName()]}getClassDefinitions(){return Object.entries(this.styles).map(([e,t])=>({className:this.getClassName(),property:e,value:t}))}toString(){return this.getClassName()}add(e,t){return this.styles[e]=t,this}bold(){return this.styles["font-weight"]="bold",this}center(){return this.styles["justify-content"]="center",this.styles["align-items"]="center",this}flex(e){return void 0!==e?this.styles.flex=e:this.styles.display="flex",this}}function ge(e){return e.isShorthand?()=>(new ye).add(e.cssProperty,e.defaultValue||""):t=>(new ye).add(e.cssProperty,t||"")}!function(){const e=ye.prototype;for(const t of ce)t.name in e||(e[t.name]=t.isShorthand?function(){return this.add(t.cssProperty,t.defaultValue||""),this}:function(e){return this.add(t.cssProperty,e),this})}();const he={};for(const e of ce)he[e.name]=ge(e);for(const e of le)"bold"===e||"center"===e?he[e]=()=>(new ye)[e]():"flex"===e&&(he[e]=e=>(new ye).flex(e));const{display:be,flex:Pe,grid:Se,bg:ke,color:we,accentColor:xe,fontSize:Ce,fontWeight:ve,fontFamily:Re,lineHeight:Be,letterSpacing:Te,textAlign:Ie,textDecoration:Ee,bold:Ne,fontStyle:We,fontVariant:Me,fontStretch:Ae,textTransform:Le,textIndent:je,textOverflow:De,textShadow:Oe,whiteSpace:ze,wordSpacing:Fe,wordWrap:$e,overflowWrap:_e,textAlignLast:Ve,textJustify:qe,textDecorationLine:Ge,textDecorationColor:He,textDecorationStyle:Ue,textDecorationThickness:Xe,textUnderlineOffset:Ye,verticalAlign:Je,position:Ke,padding:Qe,paddingTop:Ze,paddingRight:et,paddingBottom:tt,paddingLeft:rt,margin:nt,marginTop:ot,marginRight:st,marginBottom:it,marginLeft:at,width:ct,height:lt,minWidth:dt,maxWidth:mt,minHeight:pt,maxHeight:ut,boxSizing:ft,top:yt,right:gt,bottom:ht,left:bt,zIndex:Pt,flexDirection:St,alignItems:kt,justifyContent:wt,center:xt,gap:Ct,flexWrap:vt,flexGrow:Rt,flexShrink:Bt,flexBasis:Tt,alignSelf:It,alignContent:Et,justifySelf:Nt,justifyItems:Wt,gridTemplateColumns:Mt,gridTemplateRows:At,gridTemplateAreas:Lt,gridColumn:jt,gridRow:Dt,gridColumnStart:Ot,gridColumnEnd:zt,gridRowStart:Ft,gridRowEnd:$t,gridArea:_t,gridAutoColumns:Vt,gridAutoRows:qt,gridAutoFlow:Gt,border:Ht,borderTop:Ut,borderRight:Xt,borderBottom:Yt,borderLeft:Jt,borderWidth:Kt,borderStyle:Qt,borderColor:Zt,borderTopWidth:er,borderRightWidth:tr,borderBottomWidth:rr,borderLeftWidth:nr,borderTopStyle:or,borderRightStyle:sr,borderBottomStyle:ir,borderLeftStyle:ar,borderTopColor:cr,borderRightColor:lr,borderBottomColor:dr,borderLeftColor:mr,borderRadius:pr,borderTopLeftRadius:ur,borderTopRightRadius:fr,borderBottomLeftRadius:yr,borderBottomRightRadius:gr,outline:hr,outlineWidth:br,outlineStyle:Pr,outlineColor:Sr,outlineOffset:kr,backgroundColor:wr,backgroundImage:xr,backgroundRepeat:Cr,backgroundPosition:vr,backgroundSize:Rr,backgroundAttachment:Br,backgroundClip:Tr,backgroundOrigin:Ir,boxShadow:Er,opacity:Nr,transition:Wr,transitionProperty:Mr,transitionDuration:Ar,transitionTimingFunction:Lr,transitionDelay:jr,transform:Dr,transformOrigin:Or,transformStyle:zr,perspective:Fr,perspectiveOrigin:$r,backfaceVisibility:_r,animation:Vr,animationName:qr,animationDuration:Gr,animationTimingFunction:Hr,animationDelay:Ur,animationIterationCount:Xr,animationDirection:Yr,animationFillMode:Jr,animationPlayState:Kr,filter:Qr,backdropFilter:Zr,overflow:en,overflowX:tn,overflowY:rn,visibility:nn,objectFit:on,objectPosition:sn,listStyle:an,listStyleType:cn,listStylePosition:ln,listStyleImage:dn,borderCollapse:mn,borderSpacing:pn,captionSide:un,emptyCells:fn,tableLayout:yn,content:gn,quotes:hn,counterReset:bn,counterIncrement:Pn,appearance:Sn,userSelect:kn,pointerEvents:wn,resize:xn,scrollBehavior:Cn,clip:vn,clipPath:Rn,isolation:Bn,mixBlendMode:Tn,willChange:In,contain:En,pageBreakBefore:Nn,pageBreakAfter:Wn,pageBreakInside:Mn,breakBefore:An,breakAfter:Ln,breakInside:jn,orphans:Dn,widows:On,columnCount:zn,columnFill:Fn,columnGap:$n,columnRule:_n,columnRuleColor:Vn,columnRuleStyle:qn,columnRuleWidth:Gn,columnSpan:Hn,columnWidth:Un,columns:Xn,cursor:Yn}=he,Jn={hover:":hover",active:":active",focus:":focus","focus-visible":":focus-visible","focus-within":":focus-within",visited:":visited",link:":link",target:":target",root:":root",empty:":empty",enabled:":enabled",disabled:":disabled",checked:":checked",indeterminate:":indeterminate",default:":default",required:":required",optional:":optional",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","first-child":":first-child","last-child":":last-child","only-child":":only-child","first-of-type":":first-of-type","last-of-type":":last-of-type","only-of-type":":only-of-type","nth-child":":nth-child","nth-last-child":":nth-last-child","nth-of-type":":nth-of-type","nth-last-of-type":":nth-last-of-type",lang:":lang",dir:":dir",not:":not",is:":is",where:":where",has:":has","any-link":":any-link","local-link":":local-link",scope:":scope",current:":current",past:":past",future:":future",playing:":playing",paused:":paused",seeking:":seeking",muted:":muted","volume-locked":":volume-locked",buffering:":buffering",stalled:":stalled","picture-in-picture":":picture-in-picture",fullscreen:":fullscreen",modal:":modal","popover-open":":popover-open","user-invalid":":user-invalid","user-valid":":user-valid"};function Kn(e){const t=e.trim();return t.startsWith("&:")||t.startsWith(":")?{type:"pseudo",pseudoClass:(t.startsWith("&:")?t.slice(1):t).trim()}:t.startsWith("@media ")?{type:"media",condition:t.slice(7).trim()}:t.startsWith("@container ")?{type:"container",condition:t.slice(11).trim()}:t.startsWith("@supports ")?{type:"supports",condition:t.slice(10).trim()}:t.startsWith("@style ")?{type:"style",condition:t.slice(7).trim()}:{type:"media",condition:t}}function Qn(e){return e in Jn}function Zn(e){return Jn[e]}const eo=new Map;function to(e){const t=Array.isArray(e)?e:Object.entries(e),r=new Map;for(const[e,n]of t){let t=eo.get(n);t||(t=Kn(n),eo.set(n,t)),r.set(e,t)}return function(e,n){let o,s;if(void 0!==n?(o=e,s=n):e instanceof ye?(o=e,s=void 0):(o=void 0,s=e),!(o||s&&0!==Object.keys(s).length))return"";if(s&&Object.keys(s).length>0){const e=[],n=new Set;for(const[o]of t){const t=s[o];t&&(n.add(o),e.push({queryName:o,query:r.get(o),styles:t.getStyles()}))}for(const[t,r]of Object.entries(s))!n.has(t)&&Qn(t)&&r instanceof ye&&e.push({queryName:t,query:{type:"pseudo",pseudoClass:Zn(t)},styles:r.getStyles()});const i=[];i.length=e.length+(o?1:0);let a=0;if(o){const e=o.getStyles();i[a++]="default:"+pe(e)}for(const{queryName:t,styles:r}of e){const e=pe(r);i[a++]=`${t}:${e}`}const c="n"+me(i.sort().join("||"));let l={};o&&(l={...o.getStyles()},ue(c,l));const d=[],m=[];for(const t of e)"pseudo"===t.query.type?m.push(t):d.push(t);for(const{query:e,styles:t}of d)l={...l,...t},ue(c,l,e.condition,e.type);for(const{query:e,styles:t}of m)"pseudo"===e.type&&ue(c,t,void 0,"pseudo",e.pseudoClass);return{className:c}}return o?{className:o.getClassName()}:""}}const ro=to;var no=Object.freeze({__proto__:null,StyleBuilder:ye,accentColor:xe,alignContent:Et,alignItems:kt,alignSelf:It,animation:Vr,animationDelay:Ur,animationDirection:Yr,animationDuration:Gr,animationFillMode:Jr,animationIterationCount:Xr,animationName:qr,animationPlayState:Kr,animationTimingFunction:Hr,appearance:Sn,backdropFilter:Zr,backfaceVisibility:_r,backgroundAttachment:Br,backgroundClip:Tr,backgroundColor:wr,backgroundImage:xr,backgroundOrigin:Ir,backgroundPosition:vr,backgroundRepeat:Cr,backgroundSize:Rr,bg:ke,bold:Ne,border:Ht,borderBottom:Yt,borderBottomColor:dr,borderBottomLeftRadius:yr,borderBottomRightRadius:gr,borderBottomStyle:ir,borderBottomWidth:rr,borderCollapse:mn,borderColor:Zt,borderLeft:Jt,borderLeftColor:mr,borderLeftStyle:ar,borderLeftWidth:nr,borderRadius:pr,borderRight:Xt,borderRightColor:lr,borderRightStyle:sr,borderRightWidth:tr,borderSpacing:pn,borderStyle:Qt,borderTop:Ut,borderTopColor:cr,borderTopLeftRadius:ur,borderTopRightRadius:fr,borderTopStyle:or,borderTopWidth:er,borderWidth:Kt,bottom:ht,boxShadow:Er,boxSizing:ft,breakAfter:Ln,breakBefore:An,breakInside:jn,captionSide:un,center:xt,clip:vn,clipPath:Rn,color:we,columnCount:zn,columnFill:Fn,columnGap:$n,columnRule:_n,columnRuleColor:Vn,columnRuleStyle:qn,columnRuleWidth:Gn,columnSpan:Hn,columnWidth:Un,columns:Xn,contain:En,content:gn,counterIncrement:Pn,counterReset:bn,createBreakpoints:ro,createCSSClass:fe,createStyleQueries:to,cursor:Yn,display:be,emptyCells:fn,filter:Qr,flex:Pe,flexBasis:Tt,flexDirection:St,flexGrow:Rt,flexShrink:Bt,flexWrap:vt,fontFamily:Re,fontSize:Ce,fontStretch:Ae,fontStyle:We,fontVariant:Me,fontWeight:ve,gap:Ct,grid:Se,gridArea:_t,gridAutoColumns:Vt,gridAutoFlow:Gt,gridAutoRows:qt,gridColumn:jt,gridColumnEnd:zt,gridColumnStart:Ot,gridRow:Dt,gridRowEnd:$t,gridRowStart:Ft,gridTemplateAreas:Lt,gridTemplateColumns:Mt,gridTemplateRows:At,height:lt,isolation:Bn,justifyContent:wt,justifyItems:Wt,justifySelf:Nt,left:bt,letterSpacing:Te,lineHeight:Be,listStyle:an,listStyleImage:dn,listStylePosition:ln,listStyleType:cn,margin:nt,marginBottom:it,marginLeft:at,marginRight:st,marginTop:ot,maxHeight:ut,maxWidth:mt,minHeight:pt,minWidth:dt,mixBlendMode:Tn,objectFit:on,objectPosition:sn,opacity:Nr,orphans:Dn,outline:hr,outlineColor:Sr,outlineOffset:kr,outlineStyle:Pr,outlineWidth:br,overflow:en,overflowWrap:_e,overflowX:tn,overflowY:rn,padding:Qe,paddingBottom:tt,paddingLeft:rt,paddingRight:et,paddingTop:Ze,pageBreakAfter:Wn,pageBreakBefore:Nn,pageBreakInside:Mn,perspective:Fr,perspectiveOrigin:$r,pointerEvents:wn,position:Ke,quotes:hn,resize:xn,right:gt,scrollBehavior:Cn,tableLayout:yn,textAlign:Ie,textAlignLast:Ve,textDecoration:Ee,textDecorationColor:He,textDecorationLine:Ge,textDecorationStyle:Ue,textDecorationThickness:Xe,textIndent:je,textJustify:qe,textOverflow:De,textShadow:Oe,textTransform:Le,textUnderlineOffset:Ye,top:yt,transform:Dr,transformOrigin:Or,transformStyle:zr,transition:Wr,transitionDelay:jr,transitionDuration:Ar,transitionProperty:Mr,transitionTimingFunction:Lr,userSelect:kn,verticalAlign:Je,visibility:nn,whiteSpace:ze,widows:On,width:ct,willChange:In,wordSpacing:Fe,wordWrap:$e,zIndex:Pt});function oo(){if(q(),"undefined"!=typeof globalThis){const e=globalThis;e.list=Y,e.update=se,e.when=ne,e.on=ie,e.render=ae;for(const[t,r]of Object.entries(no))try{e[t]=r}catch(e){}}}"undefined"!=typeof globalThis&&oo();export{$ as HTML_TAGS,V as SELF_CLOSING_TAGS,_ as SVG_TAGS,ye as StyleBuilder,xe as accentColor,Et as alignContent,kt as alignItems,It as alignSelf,Vr as animation,Ur as animationDelay,Yr as animationDirection,Gr as animationDuration,Jr as animationFillMode,Xr as animationIterationCount,qr as animationName,Kr as animationPlayState,Hr as animationTimingFunction,Sn as appearance,g as appendChildren,T as applyAttributes,N as applyNodeModifier,Zr as backdropFilter,_r as backfaceVisibility,Br as backgroundAttachment,Tr as backgroundClip,wr as backgroundColor,xr as backgroundImage,Ir as backgroundOrigin,vr as backgroundPosition,Cr as backgroundRepeat,Rr as backgroundSize,ke as bg,Ne as bold,Ht as border,Yt as borderBottom,dr as borderBottomColor,yr as borderBottomLeftRadius,gr as borderBottomRightRadius,ir as borderBottomStyle,rr as borderBottomWidth,mn as borderCollapse,Zt as borderColor,Jt as borderLeft,mr as borderLeftColor,ar as borderLeftStyle,nr as borderLeftWidth,pr as borderRadius,Xt as borderRight,lr as borderRightColor,sr as borderRightStyle,tr as borderRightWidth,pn as borderSpacing,Qt as borderStyle,Ut as borderTop,cr as borderTopColor,ur as borderTopLeftRadius,fr as borderTopRightRadius,or as borderTopStyle,er as borderTopWidth,Kt as borderWidth,ht as bottom,Er as boxShadow,ft as boxSizing,Ln as breakAfter,An as breakBefore,jn as breakInside,un as captionSide,xt as center,vn as clip,Rn as clipPath,we as color,zn as columnCount,Fn as columnFill,$n as columnGap,_n as columnRule,Vn as columnRuleColor,qn as columnRuleStyle,Gn as columnRuleWidth,Hn as columnSpan,Un as columnWidth,Xn as columns,En as contain,gn as content,Pn as counterIncrement,bn as counterReset,ro as createBreakpoints,fe as createCSSClass,p as createComment,u as createConditionalComment,D as createHtmlElementWithModifiers,z as createHtmlTagBuilder,to as createStyleQueries,O as createSvgElementWithModifiers,F as createSvgTagBuilder,Yn as cursor,be as display,fn as emptyCells,Qr as filter,Pe as flex,Tt as flexBasis,St as flexDirection,Rt as flexGrow,Bt as flexShrink,vt as flexWrap,Re as fontFamily,Ce as fontSize,Ae as fontStretch,We as fontStyle,Me as fontVariant,ve as fontWeight,Ct as gap,Se as grid,_t as gridArea,Vt as gridAutoColumns,Gt as gridAutoFlow,qt as gridAutoRows,jt as gridColumn,zt as gridColumnEnd,Ot as gridColumnStart,Dt as gridRow,$t as gridRowEnd,Ft as gridRowStart,Lt as gridTemplateAreas,Mt as gridTemplateColumns,At as gridTemplateRows,lt as height,oo as initializeRuntime,o as isBoolean,l as isBrowser,s as isFunction,t as isNode,r as isObject,e as isPrimitive,n as isTagLike,i as isZeroArityFunction,Bn as isolation,wt as justifyContent,Wt as justifyItems,Nt as justifySelf,bt as left,Te as letterSpacing,Be as lineHeight,Y as list,an as listStyle,dn as listStyleImage,ln as listStylePosition,cn as listStyleType,nt as margin,it as marginBottom,at as marginLeft,st as marginRight,ot as marginTop,ut as maxHeight,mt as maxWidth,pt as minHeight,dt as minWidth,Tn as mixBlendMode,on as objectFit,sn as objectPosition,ie as on,Nr as opacity,Dn as orphans,hr as outline,Sr as outlineColor,kr as outlineOffset,Pr as outlineStyle,br as outlineWidth,en as overflow,_e as overflowWrap,tn as overflowX,rn as overflowY,Qe as padding,tt as paddingBottom,rt as paddingLeft,et as paddingRight,Ze as paddingTop,Wn as pageBreakAfter,Nn as pageBreakBefore,Mn as pageBreakInside,Fr as perspective,$r as perspectiveOrigin,wn as pointerEvents,Ke as position,hn as quotes,q as registerGlobalTagBuilders,ae as render,b as replaceNodeSafely,xn as resize,gt as right,Cn as scrollBehavior,yn as tableLayout,Ie as textAlign,Ve as textAlignLast,Ee as textDecoration,He as textDecorationColor,Ge as textDecorationLine,Ue as textDecorationStyle,Xe as textDecorationThickness,je as textIndent,qe as textJustify,De as textOverflow,Oe as textShadow,Le as textTransform,Ye as textUnderlineOffset,yt as top,Dr as transform,Or as transformOrigin,zr as transformStyle,Wr as transition,jr as transitionDelay,Ar as transitionDuration,Mr as transitionProperty,Lr as transitionTimingFunction,se as update,kn as userSelect,Je as verticalAlign,nn as visibility,ne as when,ze as whiteSpace,On as widows,ct as width,In as willChange,Fe as wordSpacing,$e as wordWrap,Pt as zIndex};
1
+ function e(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function t(e){return e instanceof Node}function r(e){return"object"==typeof e&&null!==e}function n(e){return r(e)&&"tagName"in e}function o(e){return"boolean"==typeof e}function s(e){return"function"==typeof e}function i(e){return s(e)&&0===e.length}function a(e,t){}function c(e,t){try{return e()}catch(e){return t}}const l="undefined"!=typeof window&&"undefined"!=typeof document;function d(e){if(!e?.parentNode)return!1;try{return e.parentNode.removeChild(e),!0}catch(e){return!1}}function m(e){if(!l)return null;try{return document.createComment(e)}catch(e){return null}}function p(e){return m(e)}function u(e,t="hidden"){try{return document.createComment(`conditional-${e}-${t}`)}catch(e){return null}}function f(e){if(!l)throw Error("Cannot create comment in non-browser environment");const t=m(`${e}-${Math.random().toString(36).slice(2)}`);if(!t)throw Error("Failed to create comment");return t}function y(e){const t=m(e+"-end");if(!t)throw Error("Failed to create end comment");return{start:f(e+"-start"),end:t}}function g(e,...t){return e?(t.forEach(t=>{if(null!=t){let r;if("string"==typeof t){const e=function(e){if(!l)return null;try{return document.createTextNode(e+"")}catch(e){return null}}(t);if(!e)return;r=e}else r=t;!function(e,t){if(!e||!t)return!1;try{return e.appendChild(t),!0}catch(e){return!1}}(e,r)}}),e):e}function h(e){return!!e&&("boolean"==typeof e.isConnected?e.isConnected:!(!l||"undefined"==typeof document)&&document.contains(e))}function b(e,t){if(!e?.parentNode)return!1;try{return e.parentNode.replaceChild(t,e),!0}catch(e){return!1}}const P=new Map,S=new Map;function k(e,t){t.attributeResolvers.forEach(({resolver:e,applyValue:t},r)=>{try{t(c(e))}catch(e){}})}function w(e,t,r,n){if(!(e instanceof Element&&t&&"function"==typeof r))return;const o=function(e){let t=S.get(e);return t||(t={attributeResolvers:new Map},S.set(e,t)),t}(e);o.attributeResolvers.set(t,{resolver:r,applyValue:n});try{n(c(r))}catch(e){}if(!o.updateListener){const t=()=>k(0,o);e.addEventListener("update",t),o.updateListener=t}}function x(e,t,r){try{return null==r||""===r?(e.style[t]="",!0):(e.style[t]=r+"",!0)}catch{return!1}}function C(e,t){if(e?.style&&t)for(const[r,n]of Object.entries(t))x(e,r,n)||a()}const v="__nuclo_reactive_className__",R="__nuclo_static_className__";function B(e,t,r,n=!1){if(null==r)return;if("style"===t)return i=r,void((o=e)&&(s(i)?w(o,"style",()=>{try{return i()}catch(e){return null}},e=>{C(o,e)}):C(o,i)));var o,i;const a=(r,n=!1)=>{if(null!=r)if("className"===t&&e instanceof HTMLElement&&n)!function(e,t){if(!t)return;const r=e.className;if(r&&r!==t){const n=new Set(r.split(" ").filter(e=>e));t.split(" ").filter(e=>e).forEach(e=>n.add(e)),e.className=Array.from(n).join(" ")}else e.className=t}(e,r+"");else if(e instanceof Element&&"http://www.w3.org/2000/svg"===e.namespaceURI)e.setAttribute(t+"",r+"");else if(t in e)try{e[t]=r}catch{e instanceof Element&&e.setAttribute(t+"",r+"")}else e instanceof Element&&e.setAttribute(t+"",r+"")};if(s(r)&&0===r.length){const n=r;"className"===t&&e instanceof HTMLElement?(function(e){e[R]||(e[R]=new Set(e.className.split(" ").filter(e=>e))),e[v]=!0}(e),w(e,t+"",n,t=>{!function(e,t){const r=function(e){return e[R]}(e);if(r&&r.size>0&&t){const n=new Set(r);t.split(" ").filter(e=>e).forEach(e=>n.add(e)),e.className=Array.from(n).join(" ")}else e.className=t||(r&&r.size>0?Array.from(r).join(" "):"")}(e,(t||"")+"")})):w(e,t+"",n,e=>{a(e,!1)})}else{if("className"===t&&e instanceof HTMLElement&&function(e){return!!e[v]}(e)){const t=(r||"")+"";if(t){!function(e,t){t&&(e[R]||(e[R]=new Set),t.split(" ").filter(e=>e).forEach(t=>{e[R].add(t)}))}(e,t);const r=new Set(e.className.split(" ").filter(e=>e));t.split(" ").filter(e=>e).forEach(e=>r.add(e)),e.className=Array.from(r).join(" ")}return}a(r,n)}}function T(e,t,r=!0){if(t)for(const n of Object.keys(t))B(e,n,t[n],r&&"className"===n)}const I=new WeakMap;function E(e,n,o){if(!s(e)||0!==e.length)return!1;if(!function(e){const{value:t,error:r}=function(e){const t=I.get(e);if(t)return t;try{const t={value:e(),error:!1};return I.set(e,t),t}catch{const t={value:void 0,error:!0};return I.set(e,t),t}}(e);return!r&&"boolean"==typeof t}(e))return!1;const i=n.filter((e,t)=>t!==o);return 0!==i.length&&i.some(e=>!!(r(e)||t(e)||s(e)&&e.length>0))}function N(n,o,a){if(null==o)return null;if(s(o)){if(i(o))try{let s=I.get(o);if(s||(s={value:o(),error:!1},I.set(o,s)),s.error)return W(a,()=>"");const i=s.value;if(r(i)&&!t(i)&&"className"in i&&"string"==typeof i.className&&1===Object.keys(i).length){const e=o;return T(n,{className:()=>e().className}),null}return e(i)&&null!=i?W(a,o,i):null}catch(e){return I.set(o,{value:void 0,error:!0}),W(a,()=>"")}const s=o(n,a);return null==s?null:e(s)?M(a,s):t(s)?s:(r(s)&&T(n,s),null)}const c=o;return null==c?null:e(c)?M(a,c):t(c)?c:(r(c)&&T(n,c),null)}function W(e,t,r){const n=document.createDocumentFragment(),o=p(` text-${e} `);o&&n.appendChild(o);const s=function(e,t){if("function"!=typeof e)return document.createTextNode("");const r=arguments.length>1?t:c(e,""),n=void 0===r?"":r+"",o=document.createTextNode(n);return P.set(o,{resolver:e,lastValue:n}),o}(t,r);return n.appendChild(s),n}function M(e,t){const r=document.createDocumentFragment(),n=p(` text-${e} `);n&&r.appendChild(n);const o=document.createTextNode(t+"");return r.appendChild(o),r}const A=new Set;function L(e,t){e._conditionalInfo=t,A.add(e)}function j(e,t,r=0){if(!t||0===t.length)return{element:e,nextIndex:r,appended:0};let n=r,o=0;const s=e;for(let r=0;t.length>r;r+=1){const i=t[r];if(null==i)continue;const a=N(e,i,n);a&&(a.parentNode!==s&&s.appendChild(a),n+=1,o+=1)}return{element:e,nextIndex:n,appended:o}}function D(e,t){const r=document.createElement(e);return j(r,t,0),r}function O(e,t){const r=document.createElementNS("http://www.w3.org/2000/svg",e);return j(r,t,0),r}function z(e){return(...t)=>function(e,...t){return(r,n)=>{const{condition:o,otherModifiers:s}=function(e){const t=function(e){for(let t=0;e.length>t;t+=1)if(E(e[t],e,t))return t;return-1}(e);return-1===t?{condition:null,otherModifiers:e}:{condition:e[t],otherModifiers:e.filter((e,r)=>r!==t)}}(t);if(o)return function(e,t,r){const n=t();if(!l)return n?D(e,r):u(e,"ssr");const o={condition:t,tagName:e,modifiers:r,isSvg:!1};if(n){const t=D(e,r);return L(t,o),t}const s=u(e);if(!s)throw Error("Failed to create conditional comment for "+e);return L(s,o),s}(e,o,s);const i=document.createElement(e);return j(i,s,n),i}}(e,...t)}function F(e){return(...t)=>function(e,...t){return(r,n)=>{const o=t.findIndex(e=>"function"==typeof e&&0===e.length);if(-1!==o){const r=t[o],n=t.filter((e,t)=>t!==o);return function(e,t,r){const n=t();if(!l)return n?O(e,r):u(e,"ssr");const o={condition:t,tagName:e,modifiers:r,isSvg:!0};if(n){const t=O(e,r);return L(t,o),t}const s=u(e);if(!s)throw Error("Failed to create conditional comment for "+e);return L(s,o),s}(e,r,n)}const s=document.createElementNS("http://www.w3.org/2000/svg",e);return j(s,t,n),s}}(e,...t)}const $=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","menu","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"],_=["a","animate","animateMotion","animateTransform","circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tspan","use","view"],V=["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"];function q(e=globalThis){const t="__nuclo_tags_registered";e[t]||(_.forEach(t=>function(e,t){const r=t+"Svg";r in e||(e[r]=F(t))}(e,t)),$.forEach(t=>function(e,t){t in e&&"function"!=typeof e[t]||(e[t]=z(t))}(e,t)),e[t]=!0)}const G=new Set;function H(e,t,r){return function(e,t,r){if(s(e)){const o=e(t,r);return o&&n(o)?o:null}return e&&n(e)?e:null}(e.renderItem(t,r),e.host,r)}function U(e){d(e.element)}function X(e){const{host:t,startMarker:r,endMarker:n}=e,o=r.parentNode??t,s=e.itemsProvider();if(function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;e.length>r;r++)if((r in e?e[r]:void 0)!==(r in t?t[r]:void 0))return!1;return!0}(e.lastSyncedItems,s))return;const i=new Map,a=new Map;e.records.forEach(e=>{const t=a.get(e.item);t?t.push(e):a.set(e.item,[e])}),s.forEach((t,r)=>{if(e.lastSyncedItems.length>r&&e.lastSyncedItems[r]===t){const n=e.records[r];if(n&&n.item===t){i.set(r,n);const e=a.get(t);if(e){const r=e.indexOf(n);0>r||(e.splice(r,1),0===e.length&&a.delete(t))}}}});const c=[],l=new Set(e.records);let d=n;for(let t=s.length-1;t>=0;t--){const r=s[t];let n=i.get(t);if(!n){const e=a.get(r);e&&e.length>0&&(n=e.shift(),0===e.length&&a.delete(r))}if(n)l.delete(n);else{const o=H(e,r,t);if(!o)continue;n={item:r,element:o}}c.unshift(n);const m=n.element;m.nextSibling!==d&&o.insertBefore(m,d),d=m}l.forEach(U),e.records=c,e.lastSyncedItems=[...s]}function Y(e,t){return(r,n)=>{const o=function(e,t,r){const{start:n,end:o}=y("list"),s={itemsProvider:e,renderItem:t,startMarker:n,endMarker:o,records:[],host:r,lastSyncedItems:[]},i=r;return i.appendChild(n),i.appendChild(o),G.add(s),X(s),s}(e,t,r);return o.startMarker}}function J(e,t){try{return e()}catch(e){if(t)return t(e),!1;throw e}}function K(e,t){return"function"==typeof e?J(e,t):!!e}function Q(e,t,r,n){return s(e)?i(e)?(I.delete(e),N(t,e,r)):function(e,t,r){const n=e,o=n.appendChild.bind(n),s=n.insertBefore.bind(n);n.appendChild=function(e){return s(e,t)};try{return r()}finally{n.appendChild=o}}(t,n,()=>{const n=N(t,e,r);return n&&!n.parentNode?n:null}):N(t,e,r)}const Z=new Set;function ee(e){const{groups:t,elseContent:r,host:n,index:o,endMarker:s}=e,i=function(e,t){for(let t=0;e.length>t;t++)if(K(e[t].condition))return t;return t.length>0?-1:null}(t,r);if(i===e.activeIndex)return;if(function(e,t){let r=e.nextSibling;for(;r&&r!==t;){const e=r.nextSibling;d(r),r=e}}(e.startMarker,e.endMarker),e.activeIndex=i,null===i)return;const a=function(e,t,r,n){const o=[];for(const s of e){const e=Q(s,t,r,n);e&&o.push(e)}return o}(0>i?r:t[i].content,n,o,s);!function(e,t){const r=t.parentNode;r&&e.forEach(e=>function(e,t,r){if(!e||!t)return!1;try{return e.insertBefore(t,r),!0}catch(e){return!1}}(r,e,t))}(a,s)}class te{groups=[];elseContent=[];constructor(e,...t){this.groups.push({condition:e,content:t})}when(e,...t){return this.groups.push({condition:e,content:t}),this}else(...e){return this.elseContent=e,this}render(e,t){if(!l)return p("when-ssr")||null;const{start:r,end:n}=y("when"),o={startMarker:r,endMarker:n,host:e,index:t,groups:[...this.groups],elseContent:[...this.elseContent],activeIndex:null,update:()=>ee(o)};!function(e){Z.add(e)}(o);const s=e;return s.appendChild(r),s.appendChild(n),ee(o),r}}function re(e){return Object.assign((t,r)=>e.render(t,r),{when:(t,...r)=>(e.when(t,...r),re(e)),else:(...t)=>(e.else(...t),re(e))})}function ne(e,...t){return re(new te(e,...t))}const oe=[function(){G.forEach(e=>{e.startMarker.isConnected&&e.endMarker.isConnected?X(e):G.delete(e)})},function(){Z.forEach(e=>{try{e.update()}catch(t){Z.delete(e)}})},function(){if(l)try{A.forEach(e=>{e.isConnected?function(e){const t=function(e){return e._conditionalInfo??null}(e);if(!t)return;const r=J(t.condition,e=>{}),n=e.nodeType===Node.ELEMENT_NODE;if(r&&!n){const r=function(e){try{return e.isSvg?O(e.tagName,e.modifiers):D(e.tagName,e.modifiers)}catch(t){return e.isSvg?document.createElementNS("http://www.w3.org/2000/svg",e.tagName):document.createElement(e.tagName)}}(t);L(r,t),b(e,r)}else if(!r&&n){const r=u(t.tagName);r&&(L(r,t),b(e,r))}}(e):function(e){A.delete(e)}(e)})}catch(e){}},function(){S.forEach((e,t)=>{if(!h(t))return e.updateListener&&t.removeEventListener("update",e.updateListener),void S.delete(t);k(0,e)})},function(){P.forEach((e,t)=>{if(h(t))try{const r=c(e.resolver),n=void 0===r?"":r+"";n!==e.lastValue&&(t.textContent=n,e.lastValue=n)}catch(e){}else P.delete(t)})},function(){if("undefined"==typeof document)return;const e=document.body?[document.body,document]:[document];for(const t of e)try{t.dispatchEvent(new Event("update",{bubbles:!0}))}catch(e){a()}}];function se(){for(const e of oe)e()}function ie(e,t,r){return n=>{if(!n||"function"!=typeof n.addEventListener)return;const o=n;o.addEventListener(e,e=>{try{t.call(o,e)}catch(e){}},r)}}function ae(e,t,r=0){const n=e(t||document.body,r);return(t||document.body).appendChild(n),n}const ce=[{name:"display",cssProperty:"display"},{name:"grid",cssProperty:"display",defaultValue:"grid",isShorthand:!0},{name:"bg",cssProperty:"background-color"},{name:"color",cssProperty:"color"},{name:"accentColor",cssProperty:"accent-color"},{name:"fontSize",cssProperty:"font-size"},{name:"fontWeight",cssProperty:"font-weight"},{name:"fontFamily",cssProperty:"font-family"},{name:"lineHeight",cssProperty:"line-height"},{name:"letterSpacing",cssProperty:"letter-spacing"},{name:"textAlign",cssProperty:"text-align"},{name:"textDecoration",cssProperty:"text-decoration"},{name:"fontStyle",cssProperty:"font-style"},{name:"fontVariant",cssProperty:"font-variant"},{name:"fontStretch",cssProperty:"font-stretch"},{name:"textTransform",cssProperty:"text-transform"},{name:"textIndent",cssProperty:"text-indent"},{name:"textOverflow",cssProperty:"text-overflow"},{name:"textShadow",cssProperty:"text-shadow"},{name:"whiteSpace",cssProperty:"white-space"},{name:"wordSpacing",cssProperty:"word-spacing"},{name:"wordWrap",cssProperty:"word-wrap"},{name:"overflowWrap",cssProperty:"overflow-wrap"},{name:"textAlignLast",cssProperty:"text-align-last"},{name:"textJustify",cssProperty:"text-justify"},{name:"textDecorationLine",cssProperty:"text-decoration-line"},{name:"textDecorationColor",cssProperty:"text-decoration-color"},{name:"textDecorationStyle",cssProperty:"text-decoration-style"},{name:"textDecorationThickness",cssProperty:"text-decoration-thickness"},{name:"textUnderlineOffset",cssProperty:"text-underline-offset"},{name:"verticalAlign",cssProperty:"vertical-align"},{name:"position",cssProperty:"position"},{name:"padding",cssProperty:"padding"},{name:"paddingTop",cssProperty:"padding-top"},{name:"paddingRight",cssProperty:"padding-right"},{name:"paddingBottom",cssProperty:"padding-bottom"},{name:"paddingLeft",cssProperty:"padding-left"},{name:"margin",cssProperty:"margin"},{name:"marginTop",cssProperty:"margin-top"},{name:"marginRight",cssProperty:"margin-right"},{name:"marginBottom",cssProperty:"margin-bottom"},{name:"marginLeft",cssProperty:"margin-left"},{name:"width",cssProperty:"width"},{name:"height",cssProperty:"height"},{name:"minWidth",cssProperty:"min-width"},{name:"maxWidth",cssProperty:"max-width"},{name:"minHeight",cssProperty:"min-height"},{name:"maxHeight",cssProperty:"max-height"},{name:"boxSizing",cssProperty:"box-sizing"},{name:"top",cssProperty:"top"},{name:"right",cssProperty:"right"},{name:"bottom",cssProperty:"bottom"},{name:"left",cssProperty:"left"},{name:"zIndex",cssProperty:"z-index"},{name:"flexDirection",cssProperty:"flex-direction"},{name:"alignItems",cssProperty:"align-items"},{name:"justifyContent",cssProperty:"justify-content"},{name:"gap",cssProperty:"gap"},{name:"flexWrap",cssProperty:"flex-wrap"},{name:"flexGrow",cssProperty:"flex-grow"},{name:"flexShrink",cssProperty:"flex-shrink"},{name:"flexBasis",cssProperty:"flex-basis"},{name:"alignSelf",cssProperty:"align-self"},{name:"alignContent",cssProperty:"align-content"},{name:"justifySelf",cssProperty:"justify-self"},{name:"justifyItems",cssProperty:"justify-items"},{name:"gridTemplateColumns",cssProperty:"grid-template-columns"},{name:"gridTemplateRows",cssProperty:"grid-template-rows"},{name:"gridTemplateAreas",cssProperty:"grid-template-areas"},{name:"gridColumn",cssProperty:"grid-column"},{name:"gridRow",cssProperty:"grid-row"},{name:"gridColumnStart",cssProperty:"grid-column-start"},{name:"gridColumnEnd",cssProperty:"grid-column-end"},{name:"gridRowStart",cssProperty:"grid-row-start"},{name:"gridRowEnd",cssProperty:"grid-row-end"},{name:"gridArea",cssProperty:"grid-area"},{name:"gridAutoColumns",cssProperty:"grid-auto-columns"},{name:"gridAutoRows",cssProperty:"grid-auto-rows"},{name:"gridAutoFlow",cssProperty:"grid-auto-flow"},{name:"border",cssProperty:"border"},{name:"borderTop",cssProperty:"border-top"},{name:"borderRight",cssProperty:"border-right"},{name:"borderBottom",cssProperty:"border-bottom"},{name:"borderLeft",cssProperty:"border-left"},{name:"borderWidth",cssProperty:"border-width"},{name:"borderStyle",cssProperty:"border-style"},{name:"borderColor",cssProperty:"border-color"},{name:"borderTopWidth",cssProperty:"border-top-width"},{name:"borderRightWidth",cssProperty:"border-right-width"},{name:"borderBottomWidth",cssProperty:"border-bottom-width"},{name:"borderLeftWidth",cssProperty:"border-left-width"},{name:"borderTopStyle",cssProperty:"border-top-style"},{name:"borderRightStyle",cssProperty:"border-right-style"},{name:"borderBottomStyle",cssProperty:"border-bottom-style"},{name:"borderLeftStyle",cssProperty:"border-left-style"},{name:"borderTopColor",cssProperty:"border-top-color"},{name:"borderRightColor",cssProperty:"border-right-color"},{name:"borderBottomColor",cssProperty:"border-bottom-color"},{name:"borderLeftColor",cssProperty:"border-left-color"},{name:"borderRadius",cssProperty:"border-radius"},{name:"borderTopLeftRadius",cssProperty:"border-top-left-radius"},{name:"borderTopRightRadius",cssProperty:"border-top-right-radius"},{name:"borderBottomLeftRadius",cssProperty:"border-bottom-left-radius"},{name:"borderBottomRightRadius",cssProperty:"border-bottom-right-radius"},{name:"outline",cssProperty:"outline"},{name:"outlineWidth",cssProperty:"outline-width"},{name:"outlineStyle",cssProperty:"outline-style"},{name:"outlineColor",cssProperty:"outline-color"},{name:"outlineOffset",cssProperty:"outline-offset"},{name:"backgroundColor",cssProperty:"background-color"},{name:"backgroundImage",cssProperty:"background-image"},{name:"backgroundRepeat",cssProperty:"background-repeat"},{name:"backgroundPosition",cssProperty:"background-position"},{name:"backgroundSize",cssProperty:"background-size"},{name:"backgroundAttachment",cssProperty:"background-attachment"},{name:"backgroundClip",cssProperty:"background-clip"},{name:"backgroundOrigin",cssProperty:"background-origin"},{name:"boxShadow",cssProperty:"box-shadow"},{name:"opacity",cssProperty:"opacity"},{name:"transition",cssProperty:"transition"},{name:"transitionProperty",cssProperty:"transition-property"},{name:"transitionDuration",cssProperty:"transition-duration"},{name:"transitionTimingFunction",cssProperty:"transition-timing-function"},{name:"transitionDelay",cssProperty:"transition-delay"},{name:"transform",cssProperty:"transform"},{name:"transformOrigin",cssProperty:"transform-origin"},{name:"transformStyle",cssProperty:"transform-style"},{name:"perspective",cssProperty:"perspective"},{name:"perspectiveOrigin",cssProperty:"perspective-origin"},{name:"backfaceVisibility",cssProperty:"backface-visibility"},{name:"animation",cssProperty:"animation"},{name:"animationName",cssProperty:"animation-name"},{name:"animationDuration",cssProperty:"animation-duration"},{name:"animationTimingFunction",cssProperty:"animation-timing-function"},{name:"animationDelay",cssProperty:"animation-delay"},{name:"animationIterationCount",cssProperty:"animation-iteration-count"},{name:"animationDirection",cssProperty:"animation-direction"},{name:"animationFillMode",cssProperty:"animation-fill-mode"},{name:"animationPlayState",cssProperty:"animation-play-state"},{name:"filter",cssProperty:"filter"},{name:"backdropFilter",cssProperty:"backdrop-filter"},{name:"overflow",cssProperty:"overflow"},{name:"overflowX",cssProperty:"overflow-x"},{name:"overflowY",cssProperty:"overflow-y"},{name:"visibility",cssProperty:"visibility"},{name:"objectFit",cssProperty:"object-fit"},{name:"objectPosition",cssProperty:"object-position"},{name:"listStyle",cssProperty:"list-style"},{name:"listStyleType",cssProperty:"list-style-type"},{name:"listStylePosition",cssProperty:"list-style-position"},{name:"listStyleImage",cssProperty:"list-style-image"},{name:"borderCollapse",cssProperty:"border-collapse"},{name:"borderSpacing",cssProperty:"border-spacing"},{name:"captionSide",cssProperty:"caption-side"},{name:"emptyCells",cssProperty:"empty-cells"},{name:"tableLayout",cssProperty:"table-layout"},{name:"content",cssProperty:"content"},{name:"quotes",cssProperty:"quotes"},{name:"counterReset",cssProperty:"counter-reset"},{name:"counterIncrement",cssProperty:"counter-increment"},{name:"appearance",cssProperty:"appearance"},{name:"userSelect",cssProperty:"user-select"},{name:"pointerEvents",cssProperty:"pointer-events"},{name:"resize",cssProperty:"resize"},{name:"scrollBehavior",cssProperty:"scroll-behavior"},{name:"clip",cssProperty:"clip"},{name:"clipPath",cssProperty:"clip-path"},{name:"isolation",cssProperty:"isolation"},{name:"mixBlendMode",cssProperty:"mix-blend-mode"},{name:"willChange",cssProperty:"will-change"},{name:"contain",cssProperty:"contain"},{name:"pageBreakBefore",cssProperty:"page-break-before"},{name:"pageBreakAfter",cssProperty:"page-break-after"},{name:"pageBreakInside",cssProperty:"page-break-inside"},{name:"breakBefore",cssProperty:"break-before"},{name:"breakAfter",cssProperty:"break-after"},{name:"breakInside",cssProperty:"break-inside"},{name:"orphans",cssProperty:"orphans"},{name:"widows",cssProperty:"widows"},{name:"columnCount",cssProperty:"column-count"},{name:"columnFill",cssProperty:"column-fill"},{name:"columnGap",cssProperty:"column-gap"},{name:"columnRule",cssProperty:"column-rule"},{name:"columnRuleColor",cssProperty:"column-rule-color"},{name:"columnRuleStyle",cssProperty:"column-rule-style"},{name:"columnRuleWidth",cssProperty:"column-rule-width"},{name:"columnSpan",cssProperty:"column-span"},{name:"columnWidth",cssProperty:"column-width"},{name:"columns",cssProperty:"columns"},{name:"cursor",cssProperty:"cursor"},{name:"aspectRatio",cssProperty:"aspect-ratio"},{name:"clear",cssProperty:"clear"},{name:"float",cssProperty:"float"},{name:"order",cssProperty:"order"},{name:"placeContent",cssProperty:"place-content"},{name:"placeItems",cssProperty:"place-items"},{name:"placeSelf",cssProperty:"place-self"},{name:"hyphens",cssProperty:"hyphens"},{name:"lineBreak",cssProperty:"line-break"},{name:"wordBreak",cssProperty:"word-break"},{name:"textOrientation",cssProperty:"text-orientation"},{name:"writingMode",cssProperty:"writing-mode"},{name:"direction",cssProperty:"direction"},{name:"unicodeBidi",cssProperty:"unicode-bidi"},{name:"backgroundBlendMode",cssProperty:"background-blend-mode"},{name:"backgroundPositionX",cssProperty:"background-position-x"},{name:"backgroundPositionY",cssProperty:"background-position-y"},{name:"borderImage",cssProperty:"border-image"},{name:"borderImageSource",cssProperty:"border-image-source"},{name:"borderImageSlice",cssProperty:"border-image-slice"},{name:"borderImageWidth",cssProperty:"border-image-width"},{name:"borderImageOutset",cssProperty:"border-image-outset"},{name:"borderImageRepeat",cssProperty:"border-image-repeat"},{name:"inset",cssProperty:"inset"},{name:"insetBlock",cssProperty:"inset-block"},{name:"insetBlockStart",cssProperty:"inset-block-start"},{name:"insetBlockEnd",cssProperty:"inset-block-end"},{name:"insetInline",cssProperty:"inset-inline"},{name:"insetInlineStart",cssProperty:"inset-inline-start"},{name:"insetInlineEnd",cssProperty:"inset-inline-end"},{name:"marginBlock",cssProperty:"margin-block"},{name:"marginBlockStart",cssProperty:"margin-block-start"},{name:"marginBlockEnd",cssProperty:"margin-block-end"},{name:"marginInline",cssProperty:"margin-inline"},{name:"marginInlineStart",cssProperty:"margin-inline-start"},{name:"marginInlineEnd",cssProperty:"margin-inline-end"},{name:"paddingBlock",cssProperty:"padding-block"},{name:"paddingBlockStart",cssProperty:"padding-block-start"},{name:"paddingBlockEnd",cssProperty:"padding-block-end"},{name:"paddingInline",cssProperty:"padding-inline"},{name:"paddingInlineStart",cssProperty:"padding-inline-start"},{name:"paddingInlineEnd",cssProperty:"padding-inline-end"},{name:"inlineSize",cssProperty:"inline-size"},{name:"blockSize",cssProperty:"block-size"},{name:"minInlineSize",cssProperty:"min-inline-size"},{name:"minBlockSize",cssProperty:"min-block-size"},{name:"maxInlineSize",cssProperty:"max-inline-size"},{name:"maxBlockSize",cssProperty:"max-block-size"},{name:"borderBlock",cssProperty:"border-block"},{name:"borderBlockStart",cssProperty:"border-block-start"},{name:"borderBlockEnd",cssProperty:"border-block-end"},{name:"borderInline",cssProperty:"border-inline"},{name:"borderInlineStart",cssProperty:"border-inline-start"},{name:"borderInlineEnd",cssProperty:"border-inline-end"},{name:"borderBlockWidth",cssProperty:"border-block-width"},{name:"borderBlockStartWidth",cssProperty:"border-block-start-width"},{name:"borderBlockEndWidth",cssProperty:"border-block-end-width"},{name:"borderInlineWidth",cssProperty:"border-inline-width"},{name:"borderInlineStartWidth",cssProperty:"border-inline-start-width"},{name:"borderInlineEndWidth",cssProperty:"border-inline-end-width"},{name:"borderBlockStyle",cssProperty:"border-block-style"},{name:"borderBlockStartStyle",cssProperty:"border-block-start-style"},{name:"borderBlockEndStyle",cssProperty:"border-block-end-style"},{name:"borderInlineStyle",cssProperty:"border-inline-style"},{name:"borderInlineStartStyle",cssProperty:"border-inline-start-style"},{name:"borderInlineEndStyle",cssProperty:"border-inline-end-style"},{name:"borderBlockColor",cssProperty:"border-block-color"},{name:"borderBlockStartColor",cssProperty:"border-block-start-color"},{name:"borderBlockEndColor",cssProperty:"border-block-end-color"},{name:"borderInlineColor",cssProperty:"border-inline-color"},{name:"borderInlineStartColor",cssProperty:"border-inline-start-color"},{name:"borderInlineEndColor",cssProperty:"border-inline-end-color"},{name:"borderStartStartRadius",cssProperty:"border-start-start-radius"},{name:"borderStartEndRadius",cssProperty:"border-start-end-radius"},{name:"borderEndStartRadius",cssProperty:"border-end-start-radius"},{name:"borderEndEndRadius",cssProperty:"border-end-end-radius"},{name:"scrollMargin",cssProperty:"scroll-margin"},{name:"scrollMarginTop",cssProperty:"scroll-margin-top"},{name:"scrollMarginRight",cssProperty:"scroll-margin-right"},{name:"scrollMarginBottom",cssProperty:"scroll-margin-bottom"},{name:"scrollMarginLeft",cssProperty:"scroll-margin-left"},{name:"scrollPadding",cssProperty:"scroll-padding"},{name:"scrollPaddingTop",cssProperty:"scroll-padding-top"},{name:"scrollPaddingRight",cssProperty:"scroll-padding-right"},{name:"scrollPaddingBottom",cssProperty:"scroll-padding-bottom"},{name:"scrollPaddingLeft",cssProperty:"scroll-padding-left"},{name:"overscrollBehavior",cssProperty:"overscroll-behavior"},{name:"overscrollBehaviorX",cssProperty:"overscroll-behavior-x"},{name:"overscrollBehaviorY",cssProperty:"overscroll-behavior-y"},{name:"caretColor",cssProperty:"caret-color"},{name:"caretShape",cssProperty:"caret-shape"},{name:"caretAnimation",cssProperty:"caret-animation"},{name:"imageRendering",cssProperty:"image-rendering"},{name:"colorScheme",cssProperty:"color-scheme"},{name:"contentVisibility",cssProperty:"content-visibility"},{name:"touchAction",cssProperty:"touch-action"},{name:"containerType",cssProperty:"container-type"},{name:"containerName",cssProperty:"container-name"},{name:"container",cssProperty:"container"},{name:"fontFeatureSettings",cssProperty:"font-feature-settings"},{name:"fontKerning",cssProperty:"font-kerning"},{name:"fontSynthesis",cssProperty:"font-synthesis"},{name:"fontOpticalSizing",cssProperty:"font-optical-sizing"},{name:"fontDisplay",cssProperty:"font-display"},{name:"fontVariantCaps",cssProperty:"font-variant-caps"},{name:"fontVariantNumeric",cssProperty:"font-variant-numeric"},{name:"fontVariantLigatures",cssProperty:"font-variant-ligatures"},{name:"fontVariantEastAsian",cssProperty:"font-variant-east-asian"},{name:"fontVariantAlternates",cssProperty:"font-variant-alternates"},{name:"fontVariantPosition",cssProperty:"font-variant-position"},{name:"textRendering",cssProperty:"text-rendering"},{name:"textCombineUpright",cssProperty:"text-combine-upright"},{name:"textSizeAdjust",cssProperty:"text-size-adjust"},{name:"mask",cssProperty:"mask"},{name:"maskImage",cssProperty:"mask-image"},{name:"maskMode",cssProperty:"mask-mode"},{name:"maskRepeat",cssProperty:"mask-repeat"},{name:"maskPosition",cssProperty:"mask-position"},{name:"maskSize",cssProperty:"mask-size"},{name:"maskOrigin",cssProperty:"mask-origin"},{name:"maskClip",cssProperty:"mask-clip"},{name:"maskComposite",cssProperty:"mask-composite"},{name:"clipRule",cssProperty:"clip-rule"},{name:"gridColumnGap",cssProperty:"grid-column-gap"},{name:"gridRowGap",cssProperty:"grid-row-gap"},{name:"gridGap",cssProperty:"grid-gap"}],le=["bold","center","flex"],de=new Map;function me(e){let t=0;for(let r=0;e.length>r;r++)t=(t<<5)-t+e.charCodeAt(r),t&=t;return Math.abs(t).toString(16).padStart(8,"0").substring(0,8)}function pe(e){return Object.entries(e).sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>`${e}:${t}`).join("|")}function ue(e,t,r,n="media",o){let s=document.querySelector("#nuclo-styles");s||(s=document.createElement("style"),s.id="nuclo-styles",document.head.appendChild(s));const i=Object.entries(t).map(([e,t])=>`${e}: ${t}`).join("; ");if(o){const r=`.${e}${o}`,n=s.sheet;if(!n)return;const a=n.cssRules,c=a.length;let l=null,d=c;for(let e=0;c>e;e++){const t=a[e];if(t instanceof CSSStyleRule){if(t.selectorText===r){l=t,d=e;break}t.selectorText.includes(":")||(d=e+1)}}if(l){const e=l.style;e.cssText="";for(const[r,n]of Object.entries(t))e.setProperty(r,n)}else n.insertRule(`${r} { ${i} }`,d);return}if(r){const o=s.sheet;if(!o)return;const a=o.cssRules,c=a.length;let l=null;const d=e=>"media"===n&&e instanceof CSSMediaRule?e.media.mediaText===r:("container"===n&&e instanceof CSSContainerRule||"supports"===n&&e instanceof CSSSupportsRule)&&e.conditionText===r,m=e=>e instanceof CSSMediaRule||e instanceof CSSContainerRule||e instanceof CSSSupportsRule;for(let e=0;c>e;e++){const t=a[e];if(d(t)){l=t;break}}if(!l){let e=c;for(let t=c-1;t>=0;t--){const r=a[t];if(m(r)){e=t+1;break}if(r instanceof CSSStyleRule){e=t+1;break}}o.insertRule(`${"media"===n?"@media":"container"===n?"@container":"supports"===n?"@supports":"@media"} ${r} {}`,e),l=o.cssRules[e]}let p=null;for(const t of Array.from(l.cssRules))if(t instanceof CSSStyleRule&&t.selectorText==="."+e){p=t;break}if(p){const e=p.style;e.cssText="";for(const[r,n]of Object.entries(t))e.setProperty(r,n)}else l.insertRule(`.${e} { ${i} }`,l.cssRules.length)}else{const r=s.sheet;if(!r)return;let n=null,o=0;const a=e=>e instanceof CSSMediaRule||e instanceof CSSContainerRule||e instanceof CSSSupportsRule,c=r.cssRules,l=c.length;for(let t=0;l>t;t++){const r=c[t];if(r instanceof CSSStyleRule&&r.selectorText==="."+e){n=r,o=t;break}a(r)||(o=t+1)}if(n){const e=n.style;e.cssText="";for(const[r,n]of Object.entries(t))e.setProperty(r,n)}else r.insertRule(`.${e} { ${i} }`,o)}}function fe(e,t){ue(e,t)}class ye{styles={};getStyles(){return{...this.styles}}getClassName(e="",t){return function(e,t="",r){const n=pe(e),o=t?`${t}:${n}`:n,s=function(e){return de.get(e)}(o);if(s){const t=s;return function(e,t,r="media"){const n=document.querySelector("#nuclo-styles");if(!n||!n.sheet)return!1;if(t){const o=Array.from(n.sheet.cssRules||[]).find(e=>"media"===r&&e instanceof CSSMediaRule?e.media.mediaText===t:("container"===r&&e instanceof CSSContainerRule||"supports"===r&&e instanceof CSSSupportsRule)&&e.conditionText===t);return!!o&&Array.from(o.cssRules).some(t=>t instanceof CSSStyleRule&&t.selectorText==="."+e)}return Array.from(n.sheet.cssRules||[]).some(t=>t instanceof CSSStyleRule&&t.selectorText==="."+e)}(t,r)||ue(t,e,r),t}const i=me(n),a=t?`n${t}-${i}`:"n"+i;return function(e,t){de.set(e,t)}(o,a),ue(a,e,r),a}(this.styles,e,t)}getClassNames(){return[this.getClassName()]}getClassDefinitions(){return Object.entries(this.styles).map(([e,t])=>({className:this.getClassName(),property:e,value:t}))}toString(){return this.getClassName()}add(e,t){return this.styles[e]=t,this}bold(){return this.styles["font-weight"]="bold",this}center(){return this.styles["justify-content"]="center",this.styles["align-items"]="center",this}flex(e){return void 0!==e?this.styles.flex=e:this.styles.display="flex",this}}function ge(e){return e.isShorthand?()=>(new ye).add(e.cssProperty,e.defaultValue||""):t=>(new ye).add(e.cssProperty,t||"")}!function(){const e=ye.prototype;for(const t of ce)t.name in e||(e[t.name]=t.isShorthand?function(){return this.add(t.cssProperty,t.defaultValue||""),this}:function(e){return this.add(t.cssProperty,e),this})}();const he={};for(const e of ce)he[e.name]=ge(e);for(const e of le)"bold"===e||"center"===e?he[e]=()=>(new ye)[e]():"flex"===e&&(he[e]=e=>(new ye).flex(e));const{display:be,flex:Pe,grid:Se,bg:ke,color:we,accentColor:xe,fontSize:Ce,fontWeight:ve,fontFamily:Re,lineHeight:Be,letterSpacing:Te,textAlign:Ie,textDecoration:Ee,bold:Ne,fontStyle:We,fontVariant:Me,fontStretch:Ae,textTransform:Le,textIndent:je,textOverflow:De,textShadow:Oe,whiteSpace:ze,wordSpacing:Fe,wordWrap:$e,overflowWrap:_e,textAlignLast:Ve,textJustify:qe,textDecorationLine:Ge,textDecorationColor:He,textDecorationStyle:Ue,textDecorationThickness:Xe,textUnderlineOffset:Ye,verticalAlign:Je,position:Ke,padding:Qe,paddingTop:Ze,paddingRight:et,paddingBottom:tt,paddingLeft:rt,margin:nt,marginTop:ot,marginRight:st,marginBottom:it,marginLeft:at,width:ct,height:lt,minWidth:dt,maxWidth:mt,minHeight:pt,maxHeight:ut,boxSizing:ft,top:yt,right:gt,bottom:ht,left:bt,zIndex:Pt,flexDirection:St,alignItems:kt,justifyContent:wt,center:xt,gap:Ct,flexWrap:vt,flexGrow:Rt,flexShrink:Bt,flexBasis:Tt,alignSelf:It,alignContent:Et,justifySelf:Nt,justifyItems:Wt,gridTemplateColumns:Mt,gridTemplateRows:At,gridTemplateAreas:Lt,gridColumn:jt,gridRow:Dt,gridColumnStart:Ot,gridColumnEnd:zt,gridRowStart:Ft,gridRowEnd:$t,gridArea:_t,gridAutoColumns:Vt,gridAutoRows:qt,gridAutoFlow:Gt,border:Ht,borderTop:Ut,borderRight:Xt,borderBottom:Yt,borderLeft:Jt,borderWidth:Kt,borderStyle:Qt,borderColor:Zt,borderTopWidth:er,borderRightWidth:tr,borderBottomWidth:rr,borderLeftWidth:nr,borderTopStyle:or,borderRightStyle:sr,borderBottomStyle:ir,borderLeftStyle:ar,borderTopColor:cr,borderRightColor:lr,borderBottomColor:dr,borderLeftColor:mr,borderRadius:pr,borderTopLeftRadius:ur,borderTopRightRadius:fr,borderBottomLeftRadius:yr,borderBottomRightRadius:gr,outline:hr,outlineWidth:br,outlineStyle:Pr,outlineColor:Sr,outlineOffset:kr,backgroundColor:wr,backgroundImage:xr,backgroundRepeat:Cr,backgroundPosition:vr,backgroundSize:Rr,backgroundAttachment:Br,backgroundClip:Tr,backgroundOrigin:Ir,boxShadow:Er,opacity:Nr,transition:Wr,transitionProperty:Mr,transitionDuration:Ar,transitionTimingFunction:Lr,transitionDelay:jr,transform:Dr,transformOrigin:Or,transformStyle:zr,perspective:Fr,perspectiveOrigin:$r,backfaceVisibility:_r,animation:Vr,animationName:qr,animationDuration:Gr,animationTimingFunction:Hr,animationDelay:Ur,animationIterationCount:Xr,animationDirection:Yr,animationFillMode:Jr,animationPlayState:Kr,filter:Qr,backdropFilter:Zr,overflow:en,overflowX:tn,overflowY:rn,visibility:nn,objectFit:on,objectPosition:sn,listStyle:an,listStyleType:cn,listStylePosition:ln,listStyleImage:dn,borderCollapse:mn,borderSpacing:pn,captionSide:un,emptyCells:fn,tableLayout:yn,content:gn,quotes:hn,counterReset:bn,counterIncrement:Pn,appearance:Sn,userSelect:kn,pointerEvents:wn,resize:xn,scrollBehavior:Cn,clip:vn,clipPath:Rn,isolation:Bn,mixBlendMode:Tn,willChange:In,contain:En,pageBreakBefore:Nn,pageBreakAfter:Wn,pageBreakInside:Mn,breakBefore:An,breakAfter:Ln,breakInside:jn,orphans:Dn,widows:On,columnCount:zn,columnFill:Fn,columnGap:$n,columnRule:_n,columnRuleColor:Vn,columnRuleStyle:qn,columnRuleWidth:Gn,columnSpan:Hn,columnWidth:Un,columns:Xn,cursor:Yn}=he,Jn={hover:":hover",active:":active",focus:":focus","focus-visible":":focus-visible","focus-within":":focus-within",visited:":visited",link:":link",target:":target",root:":root",empty:":empty",enabled:":enabled",disabled:":disabled",checked:":checked",indeterminate:":indeterminate",default:":default",required:":required",optional:":optional",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","first-child":":first-child","last-child":":last-child","only-child":":only-child","first-of-type":":first-of-type","last-of-type":":last-of-type","only-of-type":":only-of-type","nth-child":":nth-child","nth-last-child":":nth-last-child","nth-of-type":":nth-of-type","nth-last-of-type":":nth-last-of-type",lang:":lang",dir:":dir",not:":not",is:":is",where:":where",has:":has","any-link":":any-link","local-link":":local-link",scope:":scope",current:":current",past:":past",future:":future",playing:":playing",paused:":paused",seeking:":seeking",muted:":muted","volume-locked":":volume-locked",buffering:":buffering",stalled:":stalled","picture-in-picture":":picture-in-picture",fullscreen:":fullscreen",modal:":modal","popover-open":":popover-open","user-invalid":":user-invalid","user-valid":":user-valid"};function Kn(e){const t=e.trim();return t.startsWith("&:")||t.startsWith(":")?{type:"pseudo",pseudoClass:(t.startsWith("&:")?t.slice(1):t).trim()}:t.startsWith("@media ")?{type:"media",condition:t.slice(7).trim()}:t.startsWith("@container ")?{type:"container",condition:t.slice(11).trim()}:t.startsWith("@supports ")?{type:"supports",condition:t.slice(10).trim()}:t.startsWith("@style ")?{type:"style",condition:t.slice(7).trim()}:{type:"media",condition:t}}function Qn(e){return e in Jn}function Zn(e){return Jn[e]}const eo=new Map;function to(e){const t=Array.isArray(e)?e:Object.entries(e),r=new Map;for(const[e,n]of t){let t=eo.get(n);t||(t=Kn(n),eo.set(n,t)),r.set(e,t)}return function(e,n){let o,s;if(void 0!==n?(o=e,s=n):e instanceof ye?(o=e,s=void 0):(o=void 0,s=e),!(o||s&&0!==Object.keys(s).length))return{className:""};if(s&&Object.keys(s).length>0){const e=[],n=new Set;for(const[o]of t){const t=s[o];t&&(n.add(o),e.push({queryName:o,query:r.get(o),styles:t.getStyles()}))}for(const[t,r]of Object.entries(s))!n.has(t)&&Qn(t)&&r instanceof ye&&e.push({queryName:t,query:{type:"pseudo",pseudoClass:Zn(t)},styles:r.getStyles()});const i=[];i.length=e.length+(o?1:0);let a=0;if(o){const e=o.getStyles();i[a++]="default:"+pe(e)}for(const{queryName:t,styles:r}of e){const e=pe(r);i[a++]=`${t}:${e}`}const c="n"+me(i.sort().join("||"));let l={};o&&(l={...o.getStyles()},ue(c,l));const d=[],m=[];for(const t of e)"pseudo"===t.query.type?m.push(t):d.push(t);for(const{query:e,styles:t}of d)l={...l,...t},ue(c,l,e.condition,e.type);for(const{query:e,styles:t}of m)"pseudo"===e.type&&ue(c,t,void 0,"pseudo",e.pseudoClass);return{className:c}}return o?{className:o.getClassName()}:{className:""}}}const ro=to;var no=Object.freeze({__proto__:null,StyleBuilder:ye,accentColor:xe,alignContent:Et,alignItems:kt,alignSelf:It,animation:Vr,animationDelay:Ur,animationDirection:Yr,animationDuration:Gr,animationFillMode:Jr,animationIterationCount:Xr,animationName:qr,animationPlayState:Kr,animationTimingFunction:Hr,appearance:Sn,backdropFilter:Zr,backfaceVisibility:_r,backgroundAttachment:Br,backgroundClip:Tr,backgroundColor:wr,backgroundImage:xr,backgroundOrigin:Ir,backgroundPosition:vr,backgroundRepeat:Cr,backgroundSize:Rr,bg:ke,bold:Ne,border:Ht,borderBottom:Yt,borderBottomColor:dr,borderBottomLeftRadius:yr,borderBottomRightRadius:gr,borderBottomStyle:ir,borderBottomWidth:rr,borderCollapse:mn,borderColor:Zt,borderLeft:Jt,borderLeftColor:mr,borderLeftStyle:ar,borderLeftWidth:nr,borderRadius:pr,borderRight:Xt,borderRightColor:lr,borderRightStyle:sr,borderRightWidth:tr,borderSpacing:pn,borderStyle:Qt,borderTop:Ut,borderTopColor:cr,borderTopLeftRadius:ur,borderTopRightRadius:fr,borderTopStyle:or,borderTopWidth:er,borderWidth:Kt,bottom:ht,boxShadow:Er,boxSizing:ft,breakAfter:Ln,breakBefore:An,breakInside:jn,captionSide:un,center:xt,clip:vn,clipPath:Rn,color:we,columnCount:zn,columnFill:Fn,columnGap:$n,columnRule:_n,columnRuleColor:Vn,columnRuleStyle:qn,columnRuleWidth:Gn,columnSpan:Hn,columnWidth:Un,columns:Xn,contain:En,content:gn,counterIncrement:Pn,counterReset:bn,createBreakpoints:ro,createCSSClass:fe,createStyleQueries:to,cursor:Yn,display:be,emptyCells:fn,filter:Qr,flex:Pe,flexBasis:Tt,flexDirection:St,flexGrow:Rt,flexShrink:Bt,flexWrap:vt,fontFamily:Re,fontSize:Ce,fontStretch:Ae,fontStyle:We,fontVariant:Me,fontWeight:ve,gap:Ct,grid:Se,gridArea:_t,gridAutoColumns:Vt,gridAutoFlow:Gt,gridAutoRows:qt,gridColumn:jt,gridColumnEnd:zt,gridColumnStart:Ot,gridRow:Dt,gridRowEnd:$t,gridRowStart:Ft,gridTemplateAreas:Lt,gridTemplateColumns:Mt,gridTemplateRows:At,height:lt,isolation:Bn,justifyContent:wt,justifyItems:Wt,justifySelf:Nt,left:bt,letterSpacing:Te,lineHeight:Be,listStyle:an,listStyleImage:dn,listStylePosition:ln,listStyleType:cn,margin:nt,marginBottom:it,marginLeft:at,marginRight:st,marginTop:ot,maxHeight:ut,maxWidth:mt,minHeight:pt,minWidth:dt,mixBlendMode:Tn,objectFit:on,objectPosition:sn,opacity:Nr,orphans:Dn,outline:hr,outlineColor:Sr,outlineOffset:kr,outlineStyle:Pr,outlineWidth:br,overflow:en,overflowWrap:_e,overflowX:tn,overflowY:rn,padding:Qe,paddingBottom:tt,paddingLeft:rt,paddingRight:et,paddingTop:Ze,pageBreakAfter:Wn,pageBreakBefore:Nn,pageBreakInside:Mn,perspective:Fr,perspectiveOrigin:$r,pointerEvents:wn,position:Ke,quotes:hn,resize:xn,right:gt,scrollBehavior:Cn,tableLayout:yn,textAlign:Ie,textAlignLast:Ve,textDecoration:Ee,textDecorationColor:He,textDecorationLine:Ge,textDecorationStyle:Ue,textDecorationThickness:Xe,textIndent:je,textJustify:qe,textOverflow:De,textShadow:Oe,textTransform:Le,textUnderlineOffset:Ye,top:yt,transform:Dr,transformOrigin:Or,transformStyle:zr,transition:Wr,transitionDelay:jr,transitionDuration:Ar,transitionProperty:Mr,transitionTimingFunction:Lr,userSelect:kn,verticalAlign:Je,visibility:nn,whiteSpace:ze,widows:On,width:ct,willChange:In,wordSpacing:Fe,wordWrap:$e,zIndex:Pt});function oo(){if(q(),"undefined"!=typeof globalThis){const e=globalThis;e.list=Y,e.update=se,e.when=ne,e.on=ie,e.render=ae;for(const[t,r]of Object.entries(no))try{e[t]=r}catch(e){}}}"undefined"!=typeof globalThis&&oo();export{$ as HTML_TAGS,V as SELF_CLOSING_TAGS,_ as SVG_TAGS,ye as StyleBuilder,xe as accentColor,Et as alignContent,kt as alignItems,It as alignSelf,Vr as animation,Ur as animationDelay,Yr as animationDirection,Gr as animationDuration,Jr as animationFillMode,Xr as animationIterationCount,qr as animationName,Kr as animationPlayState,Hr as animationTimingFunction,Sn as appearance,g as appendChildren,T as applyAttributes,N as applyNodeModifier,Zr as backdropFilter,_r as backfaceVisibility,Br as backgroundAttachment,Tr as backgroundClip,wr as backgroundColor,xr as backgroundImage,Ir as backgroundOrigin,vr as backgroundPosition,Cr as backgroundRepeat,Rr as backgroundSize,ke as bg,Ne as bold,Ht as border,Yt as borderBottom,dr as borderBottomColor,yr as borderBottomLeftRadius,gr as borderBottomRightRadius,ir as borderBottomStyle,rr as borderBottomWidth,mn as borderCollapse,Zt as borderColor,Jt as borderLeft,mr as borderLeftColor,ar as borderLeftStyle,nr as borderLeftWidth,pr as borderRadius,Xt as borderRight,lr as borderRightColor,sr as borderRightStyle,tr as borderRightWidth,pn as borderSpacing,Qt as borderStyle,Ut as borderTop,cr as borderTopColor,ur as borderTopLeftRadius,fr as borderTopRightRadius,or as borderTopStyle,er as borderTopWidth,Kt as borderWidth,ht as bottom,Er as boxShadow,ft as boxSizing,Ln as breakAfter,An as breakBefore,jn as breakInside,un as captionSide,xt as center,vn as clip,Rn as clipPath,we as color,zn as columnCount,Fn as columnFill,$n as columnGap,_n as columnRule,Vn as columnRuleColor,qn as columnRuleStyle,Gn as columnRuleWidth,Hn as columnSpan,Un as columnWidth,Xn as columns,En as contain,gn as content,Pn as counterIncrement,bn as counterReset,ro as createBreakpoints,fe as createCSSClass,p as createComment,u as createConditionalComment,D as createHtmlElementWithModifiers,z as createHtmlTagBuilder,to as createStyleQueries,O as createSvgElementWithModifiers,F as createSvgTagBuilder,Yn as cursor,be as display,fn as emptyCells,Qr as filter,Pe as flex,Tt as flexBasis,St as flexDirection,Rt as flexGrow,Bt as flexShrink,vt as flexWrap,Re as fontFamily,Ce as fontSize,Ae as fontStretch,We as fontStyle,Me as fontVariant,ve as fontWeight,Ct as gap,Se as grid,_t as gridArea,Vt as gridAutoColumns,Gt as gridAutoFlow,qt as gridAutoRows,jt as gridColumn,zt as gridColumnEnd,Ot as gridColumnStart,Dt as gridRow,$t as gridRowEnd,Ft as gridRowStart,Lt as gridTemplateAreas,Mt as gridTemplateColumns,At as gridTemplateRows,lt as height,oo as initializeRuntime,o as isBoolean,l as isBrowser,s as isFunction,t as isNode,r as isObject,e as isPrimitive,n as isTagLike,i as isZeroArityFunction,Bn as isolation,wt as justifyContent,Wt as justifyItems,Nt as justifySelf,bt as left,Te as letterSpacing,Be as lineHeight,Y as list,an as listStyle,dn as listStyleImage,ln as listStylePosition,cn as listStyleType,nt as margin,it as marginBottom,at as marginLeft,st as marginRight,ot as marginTop,ut as maxHeight,mt as maxWidth,pt as minHeight,dt as minWidth,Tn as mixBlendMode,on as objectFit,sn as objectPosition,ie as on,Nr as opacity,Dn as orphans,hr as outline,Sr as outlineColor,kr as outlineOffset,Pr as outlineStyle,br as outlineWidth,en as overflow,_e as overflowWrap,tn as overflowX,rn as overflowY,Qe as padding,tt as paddingBottom,rt as paddingLeft,et as paddingRight,Ze as paddingTop,Wn as pageBreakAfter,Nn as pageBreakBefore,Mn as pageBreakInside,Fr as perspective,$r as perspectiveOrigin,wn as pointerEvents,Ke as position,hn as quotes,q as registerGlobalTagBuilders,ae as render,b as replaceNodeSafely,xn as resize,gt as right,Cn as scrollBehavior,yn as tableLayout,Ie as textAlign,Ve as textAlignLast,Ee as textDecoration,He as textDecorationColor,Ge as textDecorationLine,Ue as textDecorationStyle,Xe as textDecorationThickness,je as textIndent,qe as textJustify,De as textOverflow,Oe as textShadow,Le as textTransform,Ye as textUnderlineOffset,yt as top,Dr as transform,Or as transformOrigin,zr as transformStyle,Wr as transition,jr as transitionDelay,Ar as transitionDuration,Mr as transitionProperty,Lr as transitionTimingFunction,se as update,kn as userSelect,Je as verticalAlign,nn as visibility,ne as when,ze as whiteSpace,On as widows,ct as width,In as willChange,Fe as wordSpacing,$e as wordWrap,Pt as zIndex};
2
2
  //# sourceMappingURL=nuclo.js.map