nuclo 0.1.84 → 0.1.86

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){}const c="undefined"!=typeof window&&"undefined"!=typeof document;function l(e){if(!e?.parentNode)return!1;try{return e.parentNode.removeChild(e),!0}catch(e){return!1}}function d(e){if(!c)return null;try{return document.createComment(e)}catch(e){return null}}function m(e){return d(e)}function p(e,t="hidden"){try{return document.createComment(`conditional-${e}-${t}`)}catch(e){return null}}function u(e){if(!c)throw Error("Cannot create comment in non-browser environment");const t=d(`${e}-${Math.random().toString(36).slice(2)}`);if(!t)throw Error("Failed to create comment");return t}function f(e){const t=d(e+"-end");if(!t)throw Error("Failed to create end comment");return{start:u(e+"-start"),end:t}}function y(e,...t){return e?(t.forEach(t=>{if(null!=t){let r;if("string"==typeof t){const e=function(e){if(!c)return null;try{return document.createTextNode(e+"")}catch(e){return null}}(t);if(!e)return;r=e}else r=t;!function(e,t){try{return e.appendChild(t),!0}catch(e){return!1}}(e,r)}}),e):e}function g(e){return!!e&&("boolean"==typeof e.isConnected?e.isConnected:!(!c||"undefined"==typeof document)&&document.contains(e))}function h(e,t){if(!e?.parentNode)return!1;try{return e.parentNode.replaceChild(t,e),!0}catch(e){return!1}}const b=new Map,P=new Map,S={};let k=!1;function w(e){const t=e.target;if(!(t&&"undefined"!=typeof Node&&t instanceof Node))return;let r=t;for(;r;){if(r instanceof Element){const e=P.get(r);e&&(g(r)?C(e):P.delete(r))}r=r.parentNode}}function x(e,t){let r;try{r=t.resolver()}catch(e){return}const n=null===(o=r)||"object"!=typeof o;var o;if(!n||!Object.is(r,t.lastValue))try{t.applyValue(r),t.lastValue=n?r:S}catch(e){}}function C(e){for(const[t,r]of e.attributeResolvers)x(0,r)}function v(e,t,r,n){if(!(e instanceof Element&&t&&"function"==typeof r))return;k||"undefined"!=typeof document&&"function"==typeof document.addEventListener&&(document.addEventListener("update",w,!0),k=!0);const o=function(e){let t=P.get(e);return t||(t={attributeResolvers:new Map},P.set(e,t)),t}(e),s={resolver:r,applyValue:n,lastValue:S};o.attributeResolvers.set(t,s),x(0,s)}function R(e,t,r){try{return null==r||""===r?(e.style[t]="",!0):(e.style[t]=r+"",!0)}catch{return!1}}function B(e,t){if(e?.style&&t)for(const[r,n]of Object.entries(t))R(e,r,n)||a()}const T="__nuclo_reactive_className__",I="__nuclo_static_className__";function E(e,t,r,n=!1){if(null==r)return;if("style"===t)return i=r,void((o=e)&&(s(i)?v(o,"style",i,e=>{B(o,e)}):B(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[I]||(e[I]=new Set(e.className.split(" ").filter(e=>e))),e[T]=!0}(e),v(e,t+"",n,t=>{!function(e,t){const r=function(e){return e[I]}(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||"")+"")})):v(e,t+"",n,e=>{a(e,!1)})}else{if("className"===t&&e instanceof HTMLElement&&function(e){return!!e[T]}(e)){const t=(r||"")+"";if(t){!function(e,t){t&&(e[I]||(e[I]=new Set),t.split(" ").filter(e=>e).forEach(t=>{e[I].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 N(e,t,r=!0){if(t)for(const n of Object.keys(t))E(e,n,t[n],r&&"className"===n)}const W=new WeakMap;function M(n,o,a){if(null==o)return null;if(s(o)){if(i(o))try{let s=W.get(o);if(s||(s={value:o(),error:!1},W.set(o,s)),s.error)return A(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 N(n,{className:()=>{const t=e();return r(t)&&"className"in t&&"string"==typeof t.className?t.className:""}}),null}return e(i)&&null!=i?A(a,o,i):null}catch(e){return W.set(o,{value:void 0,error:!0}),A(a,()=>"")}const s=o(n,a);return null==s?null:e(s)?j(a,s):t(s)?s:(r(s)&&N(n,s),null)}const c=o;return e(c)?j(a,c):t(c)?c:(N(n,c),null)}function A(e,t,r){const n=document.createDocumentFragment(),o=m(` text-${e} `);o&&n.appendChild(o);const s=function(e,t){if("function"!=typeof e)return document.createTextNode("");let r;if(arguments.length>1)r=t;else try{r=e()}catch(e){r=""}const n=void 0===r?"":r+"",o=document.createTextNode(n);return b.set(o,{resolver:e,lastValue:n}),o}(t,r);return n.appendChild(s),n}function j(e,t){const r=document.createDocumentFragment(),n=m(` text-${e} `);n&&r.appendChild(n);const o=document.createTextNode(t+"");return r.appendChild(o),r}function L(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=M(e,i,n);a&&(a.parentNode!==s&&s.appendChild(a),n+=1,o+=1)}return{element:e,nextIndex:n,appended:o}}function z(e,t){const r=document.createElement(e);return L(r,t,0),r}function D(e,t){const r=document.createElementNS("http://www.w3.org/2000/svg",e);return L(r,t,0),r}function O(e){return(...t)=>function(e,...t){return(r,n)=>{const o=document.createElement(e);return L(o,t,n),o}}(e,...t)}function F(e){return(...t)=>function(e,...t){return(r,n)=>{const o=document.createElementNS("http://www.w3.org/2000/svg",e);return L(o,t,n),o}}(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"],V=["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"],_=["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"];function q(e=globalThis){const t="__nuclo_tags_registered";e[t]||(V.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]=O(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){l(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);e.splice(e.indexOf(n),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=>{const n=function(e,t,r){const{start:n,end:o}=f("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 n.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)?(W.delete(e),M(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=M(t,e,r);return n&&!n.parentNode?n:null}):M(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;l(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){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(!c)return m("when-ssr")||null;const{start:r,end:n}=f("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=new Set;function se(e,t){e._conditionalInfo=t,oe.add(e)}const ie=new Map;function ae(e){const t=[],r=new Set;for(const n of e){if("string"!=typeof n)continue;const e=n.trim();e&&(r.has(e)||(r.add(e),t.push(e)))}return t}function ce(e,t){let r=ie.get(e);r||(r=new Set,ie.set(e,r)),r.add(t)}function le(...e){const t=ae(e);return e=>{if(e instanceof Element)for(const r of t)ce(r,e)}}const de=[function(e){G.forEach(t=>{t.startMarker.isConnected&&t.endMarker.isConnected?e&&!e.contains(t.startMarker)||X(t):G.delete(t)})},function(e){Z.forEach(t=>{if(!e||e.contains(t.startMarker))try{t.update()}catch(e){Z.delete(t)}})},function(e){if(c)try{oe.forEach(t=>{t.isConnected?e&&!e.contains(t)||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?D(e.tagName,e.modifiers):z(e.tagName,e.modifiers)}catch(t){return e.isSvg?document.createElementNS("http://www.w3.org/2000/svg",e.tagName):document.createElement(e.tagName)}}(t);se(r,t),h(e,r)}else if(!r&&n){const r=p(t.tagName);r&&(se(r,t),h(e,r))}}(t):function(e){oe.delete(e)}(t)})}catch(e){}},function(e){for(const[t,r]of P)g(t)?e&&!e.contains(t)||C(r):P.delete(t)},function(e){for(const[t,r]of b){if(!g(t)){b.delete(t);continue}if(e&&!e.contains(t))continue;let n;try{n=r.resolver()}catch(e){a(),n=void 0}const o=void 0===n?"":n+"";o!==r.lastValue&&(t.textContent=o,r.lastValue=o)}},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 me(...e){let t;if(e.length>0){const r=function(e){const t=ae(e);if(0===t.length)return[];const r=new Set;for(const e of t){const t=ie.get(e);if(t){for(const e of t)g(e)?r.add(e):t.delete(e);0===t.size&&ie.delete(e)}}return Array.from(r)}(e);if(1===r.length){const e=r[0];t={roots:r,contains:t=>e.contains(t)}}else t={roots:r,contains:e=>{for(const t of r)if(t.contains(e))return!0;return!1}}}for(const e of de)e(t)}function pe(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 ue(e,t,r=0){const n=e(t||document.body,r);return(t||document.body).appendChild(n),n}const fe=[{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"}],ye=["bold","center","flex"],ge=new Map;function he(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 be(e){return Object.entries(e).sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>`${e}:${t}`).join("|")}function Pe(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 Se(e,t){Pe(e,t)}class ke{styles={};getStyles(){return{...this.styles}}getClassName(e="",t){return function(e,t="",r){const n=be(e),o=t?`${t}:${n}`:n,s=function(e){return ge.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)||Pe(t,e,r),t}const i=he(n),a=t?`n${t}-${i}`:"n"+i;return function(e,t){ge.set(e,t)}(o,a),Pe(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 we(e){return e.isShorthand?()=>(new ke).add(e.cssProperty,e.defaultValue||""):t=>(new ke).add(e.cssProperty,t||"")}!function(){const e=ke.prototype;for(const t of fe)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 xe={};for(const e of fe)xe[e.name]=we(e);for(const e of ye)"bold"===e||"center"===e?xe[e]=()=>(new ke)[e]():"flex"===e&&(xe[e]=e=>(new ke).flex(e));const{display:Ce,flex:ve,grid:Re,bg:Be,color:Te,accentColor:Ie,fontSize:Ee,fontWeight:Ne,fontFamily:We,lineHeight:Me,letterSpacing:Ae,textAlign:je,textDecoration:Le,bold:ze,fontStyle:De,fontVariant:Oe,fontStretch:Fe,textTransform:$e,textIndent:Ve,textOverflow:_e,textShadow:qe,whiteSpace:Ge,wordSpacing:He,wordWrap:Ue,overflowWrap:Xe,textAlignLast:Ye,textJustify:Je,textDecorationLine:Ke,textDecorationColor:Qe,textDecorationStyle:Ze,textDecorationThickness:et,textUnderlineOffset:tt,verticalAlign:rt,position:nt,padding:ot,paddingTop:st,paddingRight:it,paddingBottom:at,paddingLeft:ct,margin:lt,marginTop:dt,marginRight:mt,marginBottom:pt,marginLeft:ut,width:ft,height:yt,minWidth:gt,maxWidth:ht,minHeight:bt,maxHeight:Pt,boxSizing:St,top:kt,right:wt,bottom:xt,left:Ct,zIndex:vt,flexDirection:Rt,alignItems:Bt,justifyContent:Tt,center:It,gap:Et,flexWrap:Nt,flexGrow:Wt,flexShrink:Mt,flexBasis:At,alignSelf:jt,alignContent:Lt,justifySelf:zt,justifyItems:Dt,gridTemplateColumns:Ot,gridTemplateRows:Ft,gridTemplateAreas:$t,gridColumn:Vt,gridRow:_t,gridColumnStart:qt,gridColumnEnd:Gt,gridRowStart:Ht,gridRowEnd:Ut,gridArea:Xt,gridAutoColumns:Yt,gridAutoRows:Jt,gridAutoFlow:Kt,border:Qt,borderTop:Zt,borderRight:er,borderBottom:tr,borderLeft:rr,borderWidth:nr,borderStyle:or,borderColor:sr,borderTopWidth:ir,borderRightWidth:ar,borderBottomWidth:cr,borderLeftWidth:lr,borderTopStyle:dr,borderRightStyle:mr,borderBottomStyle:pr,borderLeftStyle:ur,borderTopColor:fr,borderRightColor:yr,borderBottomColor:gr,borderLeftColor:hr,borderRadius:br,borderTopLeftRadius:Pr,borderTopRightRadius:Sr,borderBottomLeftRadius:kr,borderBottomRightRadius:wr,outline:xr,outlineWidth:Cr,outlineStyle:vr,outlineColor:Rr,outlineOffset:Br,backgroundColor:Tr,backgroundImage:Ir,backgroundRepeat:Er,backgroundPosition:Nr,backgroundSize:Wr,backgroundAttachment:Mr,backgroundClip:Ar,backgroundOrigin:jr,boxShadow:Lr,opacity:zr,transition:Dr,transitionProperty:Or,transitionDuration:Fr,transitionTimingFunction:$r,transitionDelay:Vr,transform:_r,transformOrigin:qr,transformStyle:Gr,perspective:Hr,perspectiveOrigin:Ur,backfaceVisibility:Xr,animation:Yr,animationName:Jr,animationDuration:Kr,animationTimingFunction:Qr,animationDelay:Zr,animationIterationCount:en,animationDirection:tn,animationFillMode:rn,animationPlayState:nn,filter:on,backdropFilter:sn,overflow:an,overflowX:cn,overflowY:ln,visibility:dn,objectFit:mn,objectPosition:pn,listStyle:un,listStyleType:fn,listStylePosition:yn,listStyleImage:gn,borderCollapse:hn,borderSpacing:bn,captionSide:Pn,emptyCells:Sn,tableLayout:kn,content:wn,quotes:xn,counterReset:Cn,counterIncrement:vn,appearance:Rn,userSelect:Bn,pointerEvents:Tn,resize:In,scrollBehavior:En,clip:Nn,clipPath:Wn,isolation:Mn,mixBlendMode:An,willChange:jn,contain:Ln,pageBreakBefore:zn,pageBreakAfter:Dn,pageBreakInside:On,breakBefore:Fn,breakAfter:$n,breakInside:Vn,orphans:_n,widows:qn,columnCount:Gn,columnFill:Hn,columnGap:Un,columnRule:Xn,columnRuleColor:Yn,columnRuleStyle:Jn,columnRuleWidth:Kn,columnSpan:Qn,columnWidth:Zn,columns:eo,cursor:to}=xe,ro={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 no(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 oo(e){return e in ro}function so(e){return ro[e]}const io=new Map;function ao(e){const t=Array.isArray(e)?e:Object.entries(e),r=new Map;for(const[e,n]of t){let t=io.get(n);t||(t=no(n),io.set(n,t)),r.set(e,t)}return function(e,n){let o,s;void 0!==n?(o=e,s=n):e instanceof ke?(o=e,s=void 0):(o=void 0,s=e);const i=null!=s&&Object.keys(s).length>0;if(!o&&!i)return{className:""};if(i){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)&&oo(t)&&r instanceof ke&&e.push({queryName:t,query:{type:"pseudo",pseudoClass:so(t)},styles:r.getStyles()});if(0===e.length&&!o)return{className:""};const i=[];i.length=e.length+(o?1:0);let a=0;if(o){const e=o.getStyles();i[a++]="default:"+be(e)}for(const{queryName:t,styles:r}of e){const e=be(r);i[a++]=`${t}:${e}`}const c="n"+he(i.sort().join("||"));let l={};o&&(l={...o.getStyles()},Pe(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},Pe(c,l,e.condition,e.type);for(const{query:e,styles:t}of m)Pe(c,t,void 0,"pseudo",e.pseudoClass);return{className:c}}return{className:o.getClassName()}}}const co=ao;var lo=Object.freeze({__proto__:null,StyleBuilder:ke,accentColor:Ie,alignContent:Lt,alignItems:Bt,alignSelf:jt,animation:Yr,animationDelay:Zr,animationDirection:tn,animationDuration:Kr,animationFillMode:rn,animationIterationCount:en,animationName:Jr,animationPlayState:nn,animationTimingFunction:Qr,appearance:Rn,backdropFilter:sn,backfaceVisibility:Xr,backgroundAttachment:Mr,backgroundClip:Ar,backgroundColor:Tr,backgroundImage:Ir,backgroundOrigin:jr,backgroundPosition:Nr,backgroundRepeat:Er,backgroundSize:Wr,bg:Be,bold:ze,border:Qt,borderBottom:tr,borderBottomColor:gr,borderBottomLeftRadius:kr,borderBottomRightRadius:wr,borderBottomStyle:pr,borderBottomWidth:cr,borderCollapse:hn,borderColor:sr,borderLeft:rr,borderLeftColor:hr,borderLeftStyle:ur,borderLeftWidth:lr,borderRadius:br,borderRight:er,borderRightColor:yr,borderRightStyle:mr,borderRightWidth:ar,borderSpacing:bn,borderStyle:or,borderTop:Zt,borderTopColor:fr,borderTopLeftRadius:Pr,borderTopRightRadius:Sr,borderTopStyle:dr,borderTopWidth:ir,borderWidth:nr,bottom:xt,boxShadow:Lr,boxSizing:St,breakAfter:$n,breakBefore:Fn,breakInside:Vn,captionSide:Pn,center:It,clip:Nn,clipPath:Wn,color:Te,columnCount:Gn,columnFill:Hn,columnGap:Un,columnRule:Xn,columnRuleColor:Yn,columnRuleStyle:Jn,columnRuleWidth:Kn,columnSpan:Qn,columnWidth:Zn,columns:eo,contain:Ln,content:wn,counterIncrement:vn,counterReset:Cn,createBreakpoints:co,createCSSClass:Se,createStyleQueries:ao,cursor:to,display:Ce,emptyCells:Sn,filter:on,flex:ve,flexBasis:At,flexDirection:Rt,flexGrow:Wt,flexShrink:Mt,flexWrap:Nt,fontFamily:We,fontSize:Ee,fontStretch:Fe,fontStyle:De,fontVariant:Oe,fontWeight:Ne,gap:Et,grid:Re,gridArea:Xt,gridAutoColumns:Yt,gridAutoFlow:Kt,gridAutoRows:Jt,gridColumn:Vt,gridColumnEnd:Gt,gridColumnStart:qt,gridRow:_t,gridRowEnd:Ut,gridRowStart:Ht,gridTemplateAreas:$t,gridTemplateColumns:Ot,gridTemplateRows:Ft,height:yt,isolation:Mn,justifyContent:Tt,justifyItems:Dt,justifySelf:zt,left:Ct,letterSpacing:Ae,lineHeight:Me,listStyle:un,listStyleImage:gn,listStylePosition:yn,listStyleType:fn,margin:lt,marginBottom:pt,marginLeft:ut,marginRight:mt,marginTop:dt,maxHeight:Pt,maxWidth:ht,minHeight:bt,minWidth:gt,mixBlendMode:An,objectFit:mn,objectPosition:pn,opacity:zr,orphans:_n,outline:xr,outlineColor:Rr,outlineOffset:Br,outlineStyle:vr,outlineWidth:Cr,overflow:an,overflowWrap:Xe,overflowX:cn,overflowY:ln,padding:ot,paddingBottom:at,paddingLeft:ct,paddingRight:it,paddingTop:st,pageBreakAfter:Dn,pageBreakBefore:zn,pageBreakInside:On,perspective:Hr,perspectiveOrigin:Ur,pointerEvents:Tn,position:nt,quotes:xn,resize:In,right:wt,scrollBehavior:En,tableLayout:kn,textAlign:je,textAlignLast:Ye,textDecoration:Le,textDecorationColor:Qe,textDecorationLine:Ke,textDecorationStyle:Ze,textDecorationThickness:et,textIndent:Ve,textJustify:Je,textOverflow:_e,textShadow:qe,textTransform:$e,textUnderlineOffset:tt,top:kt,transform:_r,transformOrigin:qr,transformStyle:Gr,transition:Dr,transitionDelay:Vr,transitionDuration:Fr,transitionProperty:Or,transitionTimingFunction:$r,userSelect:Bn,verticalAlign:rt,visibility:dn,whiteSpace:Ge,widows:qn,width:ft,willChange:jn,wordSpacing:He,wordWrap:Ue,zIndex:vt});function mo(){q();const e=globalThis;e.list=Y,e.update=me,e.when=ne,e.on=pe,e.scope=le,e.render=ue;for(const[t,r]of Object.entries(lo))try{e[t]=r}catch{}}mo();export{$ as HTML_TAGS,_ as SELF_CLOSING_TAGS,V as SVG_TAGS,ke as StyleBuilder,Ie as accentColor,Lt as alignContent,Bt as alignItems,jt as alignSelf,Yr as animation,Zr as animationDelay,tn as animationDirection,Kr as animationDuration,rn as animationFillMode,en as animationIterationCount,Jr as animationName,nn as animationPlayState,Qr as animationTimingFunction,Rn as appearance,y as appendChildren,N as applyAttributes,M as applyNodeModifier,sn as backdropFilter,Xr as backfaceVisibility,Mr as backgroundAttachment,Ar as backgroundClip,Tr as backgroundColor,Ir as backgroundImage,jr as backgroundOrigin,Nr as backgroundPosition,Er as backgroundRepeat,Wr as backgroundSize,Be as bg,ze as bold,Qt as border,tr as borderBottom,gr as borderBottomColor,kr as borderBottomLeftRadius,wr as borderBottomRightRadius,pr as borderBottomStyle,cr as borderBottomWidth,hn as borderCollapse,sr as borderColor,rr as borderLeft,hr as borderLeftColor,ur as borderLeftStyle,lr as borderLeftWidth,br as borderRadius,er as borderRight,yr as borderRightColor,mr as borderRightStyle,ar as borderRightWidth,bn as borderSpacing,or as borderStyle,Zt as borderTop,fr as borderTopColor,Pr as borderTopLeftRadius,Sr as borderTopRightRadius,dr as borderTopStyle,ir as borderTopWidth,nr as borderWidth,xt as bottom,Lr as boxShadow,St as boxSizing,$n as breakAfter,Fn as breakBefore,Vn as breakInside,Pn as captionSide,It as center,Nn as clip,Wn as clipPath,Te as color,Gn as columnCount,Hn as columnFill,Un as columnGap,Xn as columnRule,Yn as columnRuleColor,Jn as columnRuleStyle,Kn as columnRuleWidth,Qn as columnSpan,Zn as columnWidth,eo as columns,Ln as contain,wn as content,vn as counterIncrement,Cn as counterReset,co as createBreakpoints,Se as createCSSClass,m as createComment,p as createConditionalComment,z as createHtmlElementWithModifiers,O as createHtmlTagBuilder,ao as createStyleQueries,D as createSvgElementWithModifiers,F as createSvgTagBuilder,to as cursor,Ce as display,Sn as emptyCells,on as filter,ve as flex,At as flexBasis,Rt as flexDirection,Wt as flexGrow,Mt as flexShrink,Nt as flexWrap,We as fontFamily,Ee as fontSize,Fe as fontStretch,De as fontStyle,Oe as fontVariant,Ne as fontWeight,Et as gap,Re as grid,Xt as gridArea,Yt as gridAutoColumns,Kt as gridAutoFlow,Jt as gridAutoRows,Vt as gridColumn,Gt as gridColumnEnd,qt as gridColumnStart,_t as gridRow,Ut as gridRowEnd,Ht as gridRowStart,$t as gridTemplateAreas,Ot as gridTemplateColumns,Ft as gridTemplateRows,yt as height,mo as initializeRuntime,o as isBoolean,c as isBrowser,s as isFunction,t as isNode,r as isObject,e as isPrimitive,n as isTagLike,i as isZeroArityFunction,Mn as isolation,Tt as justifyContent,Dt as justifyItems,zt as justifySelf,Ct as left,Ae as letterSpacing,Me as lineHeight,Y as list,un as listStyle,gn as listStyleImage,yn as listStylePosition,fn as listStyleType,lt as margin,pt as marginBottom,ut as marginLeft,mt as marginRight,dt as marginTop,Pt as maxHeight,ht as maxWidth,bt as minHeight,gt as minWidth,An as mixBlendMode,mn as objectFit,pn as objectPosition,pe as on,zr as opacity,_n as orphans,xr as outline,Rr as outlineColor,Br as outlineOffset,vr as outlineStyle,Cr as outlineWidth,an as overflow,Xe as overflowWrap,cn as overflowX,ln as overflowY,ot as padding,at as paddingBottom,ct as paddingLeft,it as paddingRight,st as paddingTop,Dn as pageBreakAfter,zn as pageBreakBefore,On as pageBreakInside,Hr as perspective,Ur as perspectiveOrigin,Tn as pointerEvents,nt as position,xn as quotes,q as registerGlobalTagBuilders,ue as render,h as replaceNodeSafely,In as resize,wt as right,le as scope,En as scrollBehavior,kn as tableLayout,je as textAlign,Ye as textAlignLast,Le as textDecoration,Qe as textDecorationColor,Ke as textDecorationLine,Ze as textDecorationStyle,et as textDecorationThickness,Ve as textIndent,Je as textJustify,_e as textOverflow,qe as textShadow,$e as textTransform,tt as textUnderlineOffset,kt as top,_r as transform,qr as transformOrigin,Gr as transformStyle,Dr as transition,Vr as transitionDelay,Fr as transitionDuration,Or as transitionProperty,$r as transitionTimingFunction,me as update,Bn as userSelect,rt as verticalAlign,dn as visibility,ne as when,Ge as whiteSpace,qn as widows,ft as width,jn as willChange,He as wordSpacing,Ue as wordWrap,vt 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 i(e){return"function"==typeof e}function s(e){return i(e)&&0===e.length}function a(e,t){void 0!==console&&console.error("nuclo: "+e,t)}const c="undefined"!=typeof window&&"undefined"!=typeof document;function l(e){return globalThis.document?document.createElement(e):null}function d(e,t){return globalThis.document?document.createElementNS(e,t):null}function u(e){return globalThis.document?document.createTextNode(e):null}function m(){return globalThis.document?document.createDocumentFragment():null}function p(e){if(!e?.parentNode)return!1;try{return e.parentNode.removeChild(e),!0}catch(e){return a("Failed to remove child node",e),!1}}function f(e){if(!c)return null;try{return document.createComment(e)}catch(e){return a("Failed to create comment node",e),null}}function y(e){return f(e)}function g(e,t="hidden"){try{return document.createComment(`conditional-${e}-${t}`)}catch(e){return a("Failed to create conditional comment",e),null}}function h(e){if(!c)throw Error("Cannot create comment in non-browser environment");const t=f(`${e}-${Math.random().toString(36).slice(2)}`);if(!t)throw Error("Failed to create comment");return t}function b(e){const t=f(e+"-end");if(!t)throw Error("Failed to create end comment");return{start:h(e+"-start"),end:t}}function P(e,...t){return e?(t.forEach(function(t){if(null!=t){let r;if("string"==typeof t){const e=function(e){if(!c)return null;try{return u(e+"")}catch(e){return a("Failed to create text node",e),null}}(t);if(!e)return;r=e}else r=t;!function(e,t){try{return e.appendChild(t),!0}catch(e){return a("Failed to append child node",e),!1}}(e,r)}}),e):e}function S(e){return!!e&&("boolean"==typeof e.isConnected?e.isConnected:!(!c||"undefined"==typeof document)&&document.contains(e))}function k(e,t){if(!e?.parentNode)return!1;try{return e.parentNode.replaceChild(t,e),!0}catch(e){return a("Error replacing conditional node",e),!1}}const w=new Map,v=new Map,x={};let C=!1;function R(e){const t=e.target;if(!(t&&"undefined"!=typeof Node&&t instanceof Node))return;let r=t;for(;r;){if(r instanceof Element){let e=null,t=null;for(const[n,o]of v){const i=n.deref();if(void 0!==i){if(i===r){e=n,t=o;break}}else v.delete(n)}t&&e&&(S(r)?T(t):v.delete(e))}r=r.parentNode}}function B(e,t){let r;try{r=t.resolver()}catch(t){return void a("Failed to resolve reactive attribute: "+e,t)}const n=null===(o=r)||"object"!=typeof o;var o;if(!n||!Object.is(r,t.lastValue))try{t.applyValue(r),t.lastValue=n?r:x}catch(t){a("Failed to apply reactive attribute: "+e,t)}}function T(e){for(const[t,r]of e.attributeResolvers)B(t,r)}function E(e,t,r,n){if(!(e instanceof Element&&t&&"function"==typeof r))return void a("Invalid parameters for registerAttributeResolver");C||"undefined"!=typeof document&&"function"==typeof document.addEventListener&&(document.addEventListener("update",R,!0),C=!0);const o=function(e){for(const[t,r]of v){const n=t.deref();if(void 0!==n){if(n===e)return r}else v.delete(t)}const t={attributeResolvers:new Map};return v.set(new WeakRef(e),t),t}(e),i={resolver:r,applyValue:n,lastValue:x};o.attributeResolvers.set(t,i),B(t,i)}function I(e,t,r){try{return null==r||""===r?(e.style[t]="",!0):(e.style[t]=r+"",!0)}catch{return!1}}function N(e,t){if(e?.style&&t)for(const[r,n]of Object.entries(t))I(e,r,n)||a(`Failed to set style property '${r}'`)}const W="__nuclo_reactive_className__",M="__nuclo_static_className__";function A(e,t,r,n=!1){if(null==r)return;if("style"===t)return s=r,void((o=e)&&(i(s)?E(o,"style",s,function(e){N(o,e)}):N(o,s)));var o,s;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(function(e){return e}));t.split(" ").filter(function(e){return e}).forEach(function(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(i(r)&&0===r.length){const n=r;"className"===t&&e instanceof HTMLElement?(function(e){e[M]||(e[M]=new Set(e.className.split(" ").filter(function(e){return e}))),e[W]=!0}(e),E(e,t+"",n,function(t){!function(e,t){const r=function(e){return e[M]}(e);if(r&&r.size>0&&t){const n=new Set(r);t.split(" ").filter(function(e){return e}).forEach(function(e){n.add(e)}),e.className=Array.from(n).join(" ")}else e.className=t||(r&&r.size>0?Array.from(r).join(" "):"")}(e,(t||"")+"")})):E(e,t+"",n,function(e){a(e,!1)})}else{if("className"===t&&e instanceof HTMLElement&&function(e){return!!e[W]}(e)){const t=(r||"")+"";if(t){!function(e,t){t&&(e[M]||(e[M]=new Set),t.split(" ").filter(function(e){return e}).forEach(function(t){e[M].add(t)}))}(e,t);const r=new Set(e.className.split(" ").filter(function(e){return e}));t.split(" ").filter(function(e){return e}).forEach(function(e){r.add(e)}),e.className=Array.from(r).join(" ")}return}a(r,n)}}function j(e,t,r=!0){if(t)for(const n of Object.keys(t))A(e,n,t[n],r&&"className"===n)}const F=new WeakMap;function L(n,o,c){if(null==o)return null;if(i(o)){if(s(o))try{let i=F.get(o);if(i||(i={value:o(),error:!1},F.set(o,i)),i.error)return z(c,function(){return""});const s=i.value;if(r(s)&&!t(s)&&"className"in s&&"string"==typeof s.className&&1===Object.keys(s).length){const e=o;return j(n,{className:function(){const t=e();return r(t)&&"className"in t&&"string"==typeof t.className?t.className:""}}),null}return e(s)&&null!=s?z(c,o,s):null}catch(e){return F.set(o,{value:void 0,error:!0}),a("Error evaluating reactive text function:",e),z(c,function(){return""})}const i=o(n,c);return null==i?null:e(i)?O(c,i):t(i)?i:(r(i)&&j(n,i),null)}const l=o;return e(l)?O(c,l):t(l)?l:(j(n,l),null)}function z(e,t,r){const n=m();if(!n)throw Error("Failed to create document fragment: document not available");const o=y(` text-${e} `);o&&n.appendChild(o);const i=function(e,t){if("function"!=typeof e){a("Invalid resolver provided to createReactiveTextNode");const e=u("");if(!e)throw Error("Failed to create text node: document not available");return e}let r;if(arguments.length>1)r=t;else try{r=e()}catch(e){a("Failed to evaluate reactive text resolver",e),r=""}const n=void 0===r?"":r+"",o=u(n);if(!o)throw Error("Failed to create text node: document not available");return w.set(new WeakRef(o),{resolver:e,lastValue:n}),o}(t,r);return n.appendChild(i),n}function O(e,t){const r=m();if(!r)throw Error("Failed to create document fragment: document not available");const n=y(` text-${e} `);n&&r.appendChild(n);const o=u(t+"");return o&&r.appendChild(o),r}function D(e,t,r=0){if(!t||0===t.length)return{element:e,nextIndex:r,appended:0};let n=r,o=0;const i=e;for(let r=0;t.length>r;r+=1){const s=t[r];if(null==s)continue;const a=L(e,s,n);a&&(a.parentNode!==i&&i.appendChild(a),n+=1,o+=1)}return{element:e,nextIndex:n,appended:o}}function $(e,t){const r=l(e);return D(r,t,0),r}function V(e,t){const r=d("http://www.w3.org/2000/svg",e);if(!r)throw Error("Failed to create SVG element: "+e);return D(r,t,0),r}function _(e){return(...t)=>function(e,...t){return function(r,n){const o=l(e);return D(o,t,n),o}}(e,...t)}function q(e){return(...t)=>function(e,...t){return function(r,n){const o=d("http://www.w3.org/2000/svg",e);if(!o)throw Error("Failed to create SVG element: "+e);return D(o,t,n),o}}(e,...t)}const G=["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"],H=["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"],U=["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"];function X(e=globalThis){const t="__nuclo_tags_registered";e[t]||(H.forEach(t=>function(e,t){const r=t+"Svg";r in e||(e[r]=q(t))}(e,t)),G.forEach(t=>function(e,t){t in e&&"function"!=typeof e[t]||(e[t]=_(t))}(e,t)),e[t]=!0)}const Y=new Set;function J(e,t,r){return function(e,t,r){if(i(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 K(e){p(e.element)}function Q(e){const{host:t,startMarker:r,endMarker:n}=e,o=r.parentNode??t,i=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,i))return;const s=new Map,a=new Map;e.records.forEach(function(e){const t=a.get(e.item);t?t.push(e):a.set(e.item,[e])}),i.forEach(function(t,r){if(e.lastSyncedItems.length>r&&e.lastSyncedItems[r]===t){const n=e.records[r];if(n&&n.item===t){s.set(r,n);const e=a.get(t);e.splice(e.indexOf(n),1),0===e.length&&a.delete(t)}}});const c=[],l=new Set(e.records);let d=n;for(let t=i.length-1;t>=0;t--){const r=i[t];let n=s.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=J(e,r,t);if(!o)continue;n={item:r,element:o}}c.unshift(n);const u=n.element;u.nextSibling!==d&&o.insertBefore(u,d),d=u}l.forEach(K),e.records=c,e.lastSyncedItems=[...i]}function Z(e,t){return function(r){const n=function(e,t,r){const{start:n,end:o}=b("list"),i={itemsProvider:e,renderItem:t,startMarker:n,endMarker:o,records:[],host:r,lastSyncedItems:[]},s=r;return s.appendChild(n),s.appendChild(o),Y.add(i),Q(i),i}(e,t,r);return n.startMarker}}function ee(e,t){try{return e()}catch(e){if(t)return t(e),!1;throw e}}function te(e,t){return"function"==typeof e?ee(e,t):!!e}function re(e,t,r,n){return i(e)?s(e)?(F.delete(e),L(t,e,r)):function(e,t,r){const n=e,o=n.appendChild.bind(n),i=n.insertBefore.bind(n);n.appendChild=function(e){return i(e,t)};try{return r()}finally{n.appendChild=o}}(t,n,()=>{const n=L(t,e,r);return n&&!n.parentNode?n:null}):L(t,e,r)}const ne=new Set;function oe(e){const{groups:t,elseContent:r,host:n,index:o,endMarker:i}=e,s=function(e,t){for(let t=0;e.length>t;t++)if(te(e[t].condition))return t;return t.length>0?-1:null}(t,r);if(s===e.activeIndex)return;if(function(e,t){let r=e.nextSibling;for(;r&&r!==t;){const e=r.nextSibling;p(r),r=e}}(e.startMarker,e.endMarker),e.activeIndex=s,null===s)return;const c=function(e,t,r,n){const o=[];for(const i of e){const e=re(i,t,r,n);e&&o.push(e)}return o}(0>s?r:t[s].content,n,o,i);!function(e,t){const r=t.parentNode;r&&e.forEach(function(e){!function(e,t,r){try{return e.insertBefore(t,r),!0}catch(e){return a("Failed to insert node before reference",e),!1}}(r,e,t)})}(c,i)}class ie{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(!c)return y("when-ssr")||null;const{start:r,end:n}=b("when"),o={startMarker:r,endMarker:n,host:e,index:t,groups:[...this.groups],elseContent:[...this.elseContent],activeIndex:null,update:function(){oe(o)}};!function(e){ne.add(e)}(o);const i=e;return i.appendChild(r),i.appendChild(n),oe(o),r}}function se(e){return Object.assign(function(t,r){return e.render(t,r)},{when:function(t,...r){return e.when(t,...r),se(e)},else:function(...t){return e.else(...t),se(e)}})}function ae(e,...t){return se(new ie(e,...t))}const ce=new Set;function le(e,t){e._conditionalInfo=t,ce.add(new WeakRef(e))}function de(e){for(const t of ce)if(t.deref()===e){ce.delete(t);break}}function ue(e){const t=function(e){return e._conditionalInfo??null}(e);if(!t)return;const r=ee(t.condition,e=>{a("Error evaluating conditional condition",e)}),n=e.nodeType===Node.ELEMENT_NODE;if(r&&!n){const r=function(e){try{return e.isSvg?V(e.tagName,e.modifiers):$(e.tagName,e.modifiers)}catch(t){if(a(`Error applying modifiers in conditional element "${e.tagName}"`,t),e.isSvg){const t=d("http://www.w3.org/2000/svg",e.tagName);if(!t)throw Error("Failed to create SVG element: "+e.tagName);return t}const r=l(e.tagName);if(!r)throw Error("Failed to create element: "+e.tagName);return r}}(t);le(r,t),k(e,r)}else if(!r&&n){const r=g(t.tagName);r&&(le(r,t),k(e,r))}}const me=new Map;function pe(e){const t=[],r=new Set;for(const n of e){if("string"!=typeof n)continue;const e=n.trim();e&&(r.has(e)||(r.add(e),t.push(e)))}return t}function fe(e,t){let r=me.get(e);r||(r=new Set,me.set(e,r)),r.add(new WeakRef(t))}function ye(...e){const t=pe(e);return function(e){if(e instanceof Element)for(const r of t)fe(r,e)}}const ge=[function(e){Y.forEach(function(t){t.startMarker.isConnected&&t.endMarker.isConnected?e&&!e.contains(t.startMarker)||Q(t):Y.delete(t)})},function(e){ne.forEach(function(t){if(!e||e.contains(t.startMarker))try{t.update()}catch(e){ne.delete(t)}})},function(e){if(c)try{const t=function(){const e=[],t=[];for(const r of ce){const n=r.deref();void 0===n?t.push(r):e.push(n)}for(const e of t)ce.delete(e);return e}();for(const r of t)r.isConnected?e&&!e.contains(r)||ue(r):de(r)}catch(e){a("Error during conditional elements update",e)}},function(e){const t=[];for(const[r,n]of v){const o=r.deref();void 0!==o&&S(o)?e&&!e.contains(o)||T(n):t.push(r)}for(const e of t)v.delete(e)},function(e){const t=[];for(const[r,n]of w){const o=r.deref();if(void 0===o){t.push(r);continue}if(!S(o)){t.push(r);continue}if(e&&!e.contains(o))continue;let i;try{i=n.resolver()}catch(e){a("Failed to update reactive text node",e),i=void 0}const s=void 0===i?"":i+"";s!==n.lastValue&&(o.textContent=s,n.lastValue=s)}for(const e of t)w.delete(e)},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("Error dispatching global update event",e)}}];function he(...e){let t;if(e.length>0){const r=function(e){const t=pe(e);if(0===t.length)return[];const r=new Set;for(const e of t){const t=me.get(e);if(!t)continue;const n=[];for(const e of t){const t=e.deref();void 0!==t&&S(t)?r.add(t):n.push(e)}for(const e of n)t.delete(e);0===t.size&&me.delete(e)}return Array.from(r)}(e);if(1===r.length){const e=r[0];t={roots:r,contains:function(t){return e.contains(t)}}}else t={roots:r,contains:function(e){for(const t of r)if(t.contains(e))return!0;return!1}}}for(const e of ge)e(t)}const be=new WeakMap;function Pe(e,t,r){return function(n){if(!n||"function"!=typeof n.addEventListener)return;const o=n,i=function(r){try{t.call(o,r)}catch(t){a(`Error in '${e}' listener`,t)}};o.addEventListener(e,i,r),function(e,t,r,n,o){let i=be.get(e);i||(i=new Map,be.set(e,i));let s=i.get(t);s||(s=new Set,i.set(t,s)),s.add({original:r,wrapped:n,options:o})}(o,e,t,i,r)}}function Se(e,t,r=0){const n=e(t||document.body,r);return(t||document.body).appendChild(n),n}const ke=[{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"}],we=["bold","center","flex"],ve=new Map;function xe(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 Ce(e){return Object.entries(e).sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>`${e}:${t}`).join("|")}function Re(e,t,r,n="media",o){let i=document.querySelector("#nuclo-styles");i||(i=l("style"),i.id="nuclo-styles",document.head.appendChild(i));const s=Object.entries(t).map(function([e,t]){return`${e}: ${t}`}).join("; ");if(o){const r=`.${e}${o}`,n=i.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} { ${s} }`,d);return}if(r){const o=i.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,u=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(u(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 m=null;for(const t of Array.from(l.cssRules))if(t instanceof CSSStyleRule&&t.selectorText==="."+e){m=t;break}if(m){const e=m.style;e.cssText="";for(const[r,n]of Object.entries(t))e.setProperty(r,n)}else l.insertRule(`.${e} { ${s} }`,l.cssRules.length)}else{const r=i.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} { ${s} }`,o)}}function Be(e,t){Re(e,t)}class Te{styles={};getStyles(){return{...this.styles}}getClassName(e="",t){return function(e,t="",r){const n=Ce(e),o=t?`${t}:${n}`:n,i=function(e){return ve.get(e)}(o);if(i){const t=i;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(function(e){return"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(function(t){return t instanceof CSSStyleRule&&t.selectorText==="."+e})}return Array.from(n.sheet.cssRules||[]).some(function(t){return t instanceof CSSStyleRule&&t.selectorText==="."+e})}(t,r)||Re(t,e,r),t}const s=xe(n),a=t?`n${t}-${s}`:"n"+s;return function(e,t){ve.set(e,t)}(o,a),Re(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 Ee(e){return e.isShorthand?()=>(new Te).add(e.cssProperty,e.defaultValue||""):t=>(new Te).add(e.cssProperty,t||"")}!function(){const e=Te.prototype;for(const t of ke)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 Ie={};for(const e of ke)Ie[e.name]=Ee(e);for(const e of we)"bold"===e||"center"===e?Ie[e]=()=>(new Te)[e]():"flex"===e&&(Ie[e]=e=>(new Te).flex(e));const{display:Ne,flex:We,grid:Me,bg:Ae,color:je,accentColor:Fe,fontSize:Le,fontWeight:ze,fontFamily:Oe,lineHeight:De,letterSpacing:$e,textAlign:Ve,textDecoration:_e,bold:qe,fontStyle:Ge,fontVariant:He,fontStretch:Ue,textTransform:Xe,textIndent:Ye,textOverflow:Je,textShadow:Ke,whiteSpace:Qe,wordSpacing:Ze,wordWrap:et,overflowWrap:tt,textAlignLast:rt,textJustify:nt,textDecorationLine:ot,textDecorationColor:it,textDecorationStyle:st,textDecorationThickness:at,textUnderlineOffset:ct,verticalAlign:lt,position:dt,padding:ut,paddingTop:mt,paddingRight:pt,paddingBottom:ft,paddingLeft:yt,margin:gt,marginTop:ht,marginRight:bt,marginBottom:Pt,marginLeft:St,width:kt,height:wt,minWidth:vt,maxWidth:xt,minHeight:Ct,maxHeight:Rt,boxSizing:Bt,top:Tt,right:Et,bottom:It,left:Nt,zIndex:Wt,flexDirection:Mt,alignItems:At,justifyContent:jt,center:Ft,gap:Lt,flexWrap:zt,flexGrow:Ot,flexShrink:Dt,flexBasis:$t,alignSelf:Vt,alignContent:_t,justifySelf:qt,justifyItems:Gt,gridTemplateColumns:Ht,gridTemplateRows:Ut,gridTemplateAreas:Xt,gridColumn:Yt,gridRow:Jt,gridColumnStart:Kt,gridColumnEnd:Qt,gridRowStart:Zt,gridRowEnd:er,gridArea:tr,gridAutoColumns:rr,gridAutoRows:nr,gridAutoFlow:or,border:ir,borderTop:sr,borderRight:ar,borderBottom:cr,borderLeft:lr,borderWidth:dr,borderStyle:ur,borderColor:mr,borderTopWidth:pr,borderRightWidth:fr,borderBottomWidth:yr,borderLeftWidth:gr,borderTopStyle:hr,borderRightStyle:br,borderBottomStyle:Pr,borderLeftStyle:Sr,borderTopColor:kr,borderRightColor:wr,borderBottomColor:vr,borderLeftColor:xr,borderRadius:Cr,borderTopLeftRadius:Rr,borderTopRightRadius:Br,borderBottomLeftRadius:Tr,borderBottomRightRadius:Er,outline:Ir,outlineWidth:Nr,outlineStyle:Wr,outlineColor:Mr,outlineOffset:Ar,backgroundColor:jr,backgroundImage:Fr,backgroundRepeat:Lr,backgroundPosition:zr,backgroundSize:Or,backgroundAttachment:Dr,backgroundClip:$r,backgroundOrigin:Vr,boxShadow:_r,opacity:qr,transition:Gr,transitionProperty:Hr,transitionDuration:Ur,transitionTimingFunction:Xr,transitionDelay:Yr,transform:Jr,transformOrigin:Kr,transformStyle:Qr,perspective:Zr,perspectiveOrigin:en,backfaceVisibility:tn,animation:rn,animationName:nn,animationDuration:on,animationTimingFunction:sn,animationDelay:an,animationIterationCount:cn,animationDirection:ln,animationFillMode:dn,animationPlayState:un,filter:mn,backdropFilter:pn,overflow:fn,overflowX:yn,overflowY:gn,visibility:hn,objectFit:bn,objectPosition:Pn,listStyle:Sn,listStyleType:kn,listStylePosition:wn,listStyleImage:vn,borderCollapse:xn,borderSpacing:Cn,captionSide:Rn,emptyCells:Bn,tableLayout:Tn,content:En,quotes:In,counterReset:Nn,counterIncrement:Wn,appearance:Mn,userSelect:An,pointerEvents:jn,resize:Fn,scrollBehavior:Ln,clip:zn,clipPath:On,isolation:Dn,mixBlendMode:$n,willChange:Vn,contain:_n,pageBreakBefore:qn,pageBreakAfter:Gn,pageBreakInside:Hn,breakBefore:Un,breakAfter:Xn,breakInside:Yn,orphans:Jn,widows:Kn,columnCount:Qn,columnFill:Zn,columnGap:eo,columnRule:to,columnRuleColor:ro,columnRuleStyle:no,columnRuleWidth:oo,columnSpan:io,columnWidth:so,columns:ao,cursor:co}=Ie,lo={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 uo(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 mo(e){return e in lo}function po(e){return lo[e]}const fo=new Map;function yo(e){const t=Array.isArray(e)?e:Object.entries(e),r=new Map;for(const[e,n]of t){let t=fo.get(n);t||(t=uo(n),fo.set(n,t)),r.set(e,t)}return function(e,n){let o,i;void 0!==n?(o=e,i=n):e instanceof Te?(o=e,i=void 0):(o=void 0,i=e);const s=null!=i&&Object.keys(i).length>0;if(!o&&!s)return{className:""};if(s){const e=[],n=new Set;for(const[o]of t){const t=i?.[o];t&&(n.add(o),e.push({queryName:o,query:r.get(o),styles:t.getStyles()}))}for(const[t,r]of Object.entries(i??{}))!n.has(t)&&mo(t)&&r instanceof Te&&e.push({queryName:t,query:{type:"pseudo",pseudoClass:po(t)},styles:r.getStyles()});if(0===e.length&&!o)return{className:""};const s=[];s.length=e.length+(o?1:0);let a=0;if(o){const e=o.getStyles();s[a++]="default:"+Ce(e)}for(const{queryName:t,styles:r}of e){const e=Ce(r);s[a++]=`${t}:${e}`}const c="n"+xe(s.sort().join("||"));let l={};o&&(l={...o.getStyles()},Re(c,l));const d=[],u=[];for(const t of e)"pseudo"===t.query.type?u.push(t):d.push(t);for(const{query:e,styles:t}of d)l={...l,...t},Re(c,l,e.condition,e.type);for(const{query:e,styles:t}of u)Re(c,t,void 0,"pseudo",e.pseudoClass);return{className:c}}return{className:o.getClassName()}}}const go=yo;var ho=Object.freeze({__proto__:null,StyleBuilder:Te,accentColor:Fe,alignContent:_t,alignItems:At,alignSelf:Vt,animation:rn,animationDelay:an,animationDirection:ln,animationDuration:on,animationFillMode:dn,animationIterationCount:cn,animationName:nn,animationPlayState:un,animationTimingFunction:sn,appearance:Mn,backdropFilter:pn,backfaceVisibility:tn,backgroundAttachment:Dr,backgroundClip:$r,backgroundColor:jr,backgroundImage:Fr,backgroundOrigin:Vr,backgroundPosition:zr,backgroundRepeat:Lr,backgroundSize:Or,bg:Ae,bold:qe,border:ir,borderBottom:cr,borderBottomColor:vr,borderBottomLeftRadius:Tr,borderBottomRightRadius:Er,borderBottomStyle:Pr,borderBottomWidth:yr,borderCollapse:xn,borderColor:mr,borderLeft:lr,borderLeftColor:xr,borderLeftStyle:Sr,borderLeftWidth:gr,borderRadius:Cr,borderRight:ar,borderRightColor:wr,borderRightStyle:br,borderRightWidth:fr,borderSpacing:Cn,borderStyle:ur,borderTop:sr,borderTopColor:kr,borderTopLeftRadius:Rr,borderTopRightRadius:Br,borderTopStyle:hr,borderTopWidth:pr,borderWidth:dr,bottom:It,boxShadow:_r,boxSizing:Bt,breakAfter:Xn,breakBefore:Un,breakInside:Yn,captionSide:Rn,center:Ft,clip:zn,clipPath:On,color:je,columnCount:Qn,columnFill:Zn,columnGap:eo,columnRule:to,columnRuleColor:ro,columnRuleStyle:no,columnRuleWidth:oo,columnSpan:io,columnWidth:so,columns:ao,contain:_n,content:En,counterIncrement:Wn,counterReset:Nn,createBreakpoints:go,createCSSClass:Be,createStyleQueries:yo,cursor:co,display:Ne,emptyCells:Bn,filter:mn,flex:We,flexBasis:$t,flexDirection:Mt,flexGrow:Ot,flexShrink:Dt,flexWrap:zt,fontFamily:Oe,fontSize:Le,fontStretch:Ue,fontStyle:Ge,fontVariant:He,fontWeight:ze,gap:Lt,grid:Me,gridArea:tr,gridAutoColumns:rr,gridAutoFlow:or,gridAutoRows:nr,gridColumn:Yt,gridColumnEnd:Qt,gridColumnStart:Kt,gridRow:Jt,gridRowEnd:er,gridRowStart:Zt,gridTemplateAreas:Xt,gridTemplateColumns:Ht,gridTemplateRows:Ut,height:wt,isolation:Dn,justifyContent:jt,justifyItems:Gt,justifySelf:qt,left:Nt,letterSpacing:$e,lineHeight:De,listStyle:Sn,listStyleImage:vn,listStylePosition:wn,listStyleType:kn,margin:gt,marginBottom:Pt,marginLeft:St,marginRight:bt,marginTop:ht,maxHeight:Rt,maxWidth:xt,minHeight:Ct,minWidth:vt,mixBlendMode:$n,objectFit:bn,objectPosition:Pn,opacity:qr,orphans:Jn,outline:Ir,outlineColor:Mr,outlineOffset:Ar,outlineStyle:Wr,outlineWidth:Nr,overflow:fn,overflowWrap:tt,overflowX:yn,overflowY:gn,padding:ut,paddingBottom:ft,paddingLeft:yt,paddingRight:pt,paddingTop:mt,pageBreakAfter:Gn,pageBreakBefore:qn,pageBreakInside:Hn,perspective:Zr,perspectiveOrigin:en,pointerEvents:jn,position:dt,quotes:In,resize:Fn,right:Et,scrollBehavior:Ln,tableLayout:Tn,textAlign:Ve,textAlignLast:rt,textDecoration:_e,textDecorationColor:it,textDecorationLine:ot,textDecorationStyle:st,textDecorationThickness:at,textIndent:Ye,textJustify:nt,textOverflow:Je,textShadow:Ke,textTransform:Xe,textUnderlineOffset:ct,top:Tt,transform:Jr,transformOrigin:Kr,transformStyle:Qr,transition:Gr,transitionDelay:Yr,transitionDuration:Ur,transitionProperty:Hr,transitionTimingFunction:Xr,userSelect:An,verticalAlign:lt,visibility:hn,whiteSpace:Qe,widows:Kn,width:kt,willChange:Vn,wordSpacing:Ze,wordWrap:et,zIndex:Wt});function bo(){X();const e=globalThis;e.list=Z,e.update=he,e.when=ae,e.on=Pe,e.scope=ye,e.render=Se;for(const[t,r]of Object.entries(ho))try{e[t]=r}catch{}}bo();export{G as HTML_TAGS,U as SELF_CLOSING_TAGS,H as SVG_TAGS,Te as StyleBuilder,Fe as accentColor,_t as alignContent,At as alignItems,Vt as alignSelf,rn as animation,an as animationDelay,ln as animationDirection,on as animationDuration,dn as animationFillMode,cn as animationIterationCount,nn as animationName,un as animationPlayState,sn as animationTimingFunction,Mn as appearance,P as appendChildren,j as applyAttributes,L as applyNodeModifier,pn as backdropFilter,tn as backfaceVisibility,Dr as backgroundAttachment,$r as backgroundClip,jr as backgroundColor,Fr as backgroundImage,Vr as backgroundOrigin,zr as backgroundPosition,Lr as backgroundRepeat,Or as backgroundSize,Ae as bg,qe as bold,ir as border,cr as borderBottom,vr as borderBottomColor,Tr as borderBottomLeftRadius,Er as borderBottomRightRadius,Pr as borderBottomStyle,yr as borderBottomWidth,xn as borderCollapse,mr as borderColor,lr as borderLeft,xr as borderLeftColor,Sr as borderLeftStyle,gr as borderLeftWidth,Cr as borderRadius,ar as borderRight,wr as borderRightColor,br as borderRightStyle,fr as borderRightWidth,Cn as borderSpacing,ur as borderStyle,sr as borderTop,kr as borderTopColor,Rr as borderTopLeftRadius,Br as borderTopRightRadius,hr as borderTopStyle,pr as borderTopWidth,dr as borderWidth,It as bottom,_r as boxShadow,Bt as boxSizing,Xn as breakAfter,Un as breakBefore,Yn as breakInside,Rn as captionSide,Ft as center,zn as clip,On as clipPath,je as color,Qn as columnCount,Zn as columnFill,eo as columnGap,to as columnRule,ro as columnRuleColor,no as columnRuleStyle,oo as columnRuleWidth,io as columnSpan,so as columnWidth,ao as columns,_n as contain,En as content,Wn as counterIncrement,Nn as counterReset,go as createBreakpoints,Be as createCSSClass,y as createComment,g as createConditionalComment,$ as createHtmlElementWithModifiers,_ as createHtmlTagBuilder,yo as createStyleQueries,V as createSvgElementWithModifiers,q as createSvgTagBuilder,co as cursor,Ne as display,Bn as emptyCells,mn as filter,We as flex,$t as flexBasis,Mt as flexDirection,Ot as flexGrow,Dt as flexShrink,zt as flexWrap,Oe as fontFamily,Le as fontSize,Ue as fontStretch,Ge as fontStyle,He as fontVariant,ze as fontWeight,Lt as gap,Me as grid,tr as gridArea,rr as gridAutoColumns,or as gridAutoFlow,nr as gridAutoRows,Yt as gridColumn,Qt as gridColumnEnd,Kt as gridColumnStart,Jt as gridRow,er as gridRowEnd,Zt as gridRowStart,Xt as gridTemplateAreas,Ht as gridTemplateColumns,Ut as gridTemplateRows,wt as height,bo as initializeRuntime,o as isBoolean,c as isBrowser,i as isFunction,t as isNode,r as isObject,e as isPrimitive,n as isTagLike,s as isZeroArityFunction,Dn as isolation,jt as justifyContent,Gt as justifyItems,qt as justifySelf,Nt as left,$e as letterSpacing,De as lineHeight,Z as list,Sn as listStyle,vn as listStyleImage,wn as listStylePosition,kn as listStyleType,gt as margin,Pt as marginBottom,St as marginLeft,bt as marginRight,ht as marginTop,Rt as maxHeight,xt as maxWidth,Ct as minHeight,vt as minWidth,$n as mixBlendMode,bn as objectFit,Pn as objectPosition,Pe as on,qr as opacity,Jn as orphans,Ir as outline,Mr as outlineColor,Ar as outlineOffset,Wr as outlineStyle,Nr as outlineWidth,fn as overflow,tt as overflowWrap,yn as overflowX,gn as overflowY,ut as padding,ft as paddingBottom,yt as paddingLeft,pt as paddingRight,mt as paddingTop,Gn as pageBreakAfter,qn as pageBreakBefore,Hn as pageBreakInside,Zr as perspective,en as perspectiveOrigin,jn as pointerEvents,dt as position,In as quotes,X as registerGlobalTagBuilders,Se as render,k as replaceNodeSafely,Fn as resize,Et as right,ye as scope,Ln as scrollBehavior,Tn as tableLayout,Ve as textAlign,rt as textAlignLast,_e as textDecoration,it as textDecorationColor,ot as textDecorationLine,st as textDecorationStyle,at as textDecorationThickness,Ye as textIndent,nt as textJustify,Je as textOverflow,Ke as textShadow,Xe as textTransform,ct as textUnderlineOffset,Tt as top,Jr as transform,Kr as transformOrigin,Qr as transformStyle,Gr as transition,Yr as transitionDelay,Ur as transitionDuration,Hr as transitionProperty,Xr as transitionTimingFunction,he as update,An as userSelect,lt as verticalAlign,hn as visibility,ae as when,Qe as whiteSpace,Kn as widows,kt as width,Vn as willChange,Ze as wordSpacing,et as wordWrap,Wt as zIndex};
2
2
  //# sourceMappingURL=nuclo.js.map