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